pdf.worker.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041
  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.459';
  23. PDFJS.build = '9c6316f';
  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. var byte = this.bytes[pos];
  1721. if (byte === 0) {
  1722. // |byte| might be zero, because the corresponding chunk has not been
  1723. // loaded yet. In this case, this.ensureByte(pos) will throw an
  1724. // exception and nothing is returned.
  1725. this.ensureByte(pos);
  1726. }
  1727. this.pos++;
  1728. return byte;
  1729. },
  1730. getUint16: function ChunkedStream_getUint16() {
  1731. var b0 = this.getByte();
  1732. var b1 = this.getByte();
  1733. return (b0 << 8) + b1;
  1734. },
  1735. getInt32: function ChunkedStream_getInt32() {
  1736. var b0 = this.getByte();
  1737. var b1 = this.getByte();
  1738. var b2 = this.getByte();
  1739. var b3 = this.getByte();
  1740. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  1741. },
  1742. // returns subarray of original buffer
  1743. // should only be read
  1744. getBytes: function ChunkedStream_getBytes(length) {
  1745. var bytes = this.bytes;
  1746. var pos = this.pos;
  1747. var strEnd = this.end;
  1748. if (!length) {
  1749. this.ensureRange(pos, strEnd);
  1750. return bytes.subarray(pos, strEnd);
  1751. }
  1752. var end = pos + length;
  1753. if (end > strEnd) {
  1754. end = strEnd;
  1755. }
  1756. this.ensureRange(pos, end);
  1757. this.pos = end;
  1758. return bytes.subarray(pos, end);
  1759. },
  1760. peekBytes: function ChunkedStream_peekBytes(length) {
  1761. var bytes = this.getBytes(length);
  1762. this.pos -= bytes.length;
  1763. return bytes;
  1764. },
  1765. getByteRange: function ChunkedStream_getBytes(begin, end) {
  1766. this.ensureRange(begin, end);
  1767. return this.bytes.subarray(begin, end);
  1768. },
  1769. skip: function ChunkedStream_skip(n) {
  1770. if (!n) {
  1771. n = 1;
  1772. }
  1773. this.pos += n;
  1774. },
  1775. reset: function ChunkedStream_reset() {
  1776. this.pos = this.start;
  1777. },
  1778. moveStart: function ChunkedStream_moveStart() {
  1779. this.start = this.pos;
  1780. },
  1781. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  1782. this.ensureRange(start, start + length);
  1783. function ChunkedStreamSubstream() {}
  1784. ChunkedStreamSubstream.prototype = Object.create(this);
  1785. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  1786. var chunkSize = this.chunkSize;
  1787. var beginChunk = Math.floor(this.start / chunkSize);
  1788. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  1789. var missingChunks = [];
  1790. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1791. if (!(chunk in this.loadedChunks)) {
  1792. missingChunks.push(chunk);
  1793. }
  1794. }
  1795. return missingChunks;
  1796. };
  1797. var subStream = new ChunkedStreamSubstream();
  1798. subStream.pos = subStream.start = start;
  1799. subStream.end = start + length || this.end;
  1800. subStream.dict = dict;
  1801. return subStream;
  1802. },
  1803. isStream: true
  1804. };
  1805. return ChunkedStream;
  1806. })();
  1807. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  1808. function ChunkedStreamManager(length, chunkSize, url, args) {
  1809. this.stream = new ChunkedStream(length, chunkSize, this);
  1810. this.length = length;
  1811. this.chunkSize = chunkSize;
  1812. this.url = url;
  1813. this.disableAutoFetch = args.disableAutoFetch;
  1814. var msgHandler = this.msgHandler = args.msgHandler;
  1815. if (args.chunkedViewerLoading) {
  1816. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  1817. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  1818. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  1819. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  1820. };
  1821. } else {
  1822. var getXhr = function getXhr() {
  1823. return new XMLHttpRequest();
  1824. };
  1825. this.networkManager = new NetworkManager(this.url, {
  1826. getXhr: getXhr,
  1827. httpHeaders: args.httpHeaders,
  1828. withCredentials: args.withCredentials
  1829. });
  1830. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  1831. this.networkManager.requestRange(begin, end, {
  1832. onDone: this.onReceiveData.bind(this),
  1833. onProgress: this.onProgress.bind(this)
  1834. });
  1835. };
  1836. }
  1837. this.currRequestId = 0;
  1838. this.chunksNeededByRequest = {};
  1839. this.requestsByChunk = {};
  1840. this.callbacksByRequest = {};
  1841. this._loadedStreamCapability = createPromiseCapability();
  1842. if (args.initialData) {
  1843. this.setInitialData(args.initialData);
  1844. }
  1845. }
  1846. ChunkedStreamManager.prototype = {
  1847. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  1848. this.stream.onReceiveInitialData(data);
  1849. if (this.stream.allChunksLoaded()) {
  1850. this._loadedStreamCapability.resolve(this.stream);
  1851. } else if (this.msgHandler) {
  1852. this.msgHandler.send('DocProgress', {
  1853. loaded: data.length,
  1854. total: this.length
  1855. });
  1856. }
  1857. },
  1858. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  1859. return this._loadedStreamCapability.promise;
  1860. },
  1861. // Get all the chunks that are not yet loaded and groups them into
  1862. // contiguous ranges to load in as few requests as possible
  1863. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  1864. var missingChunks = this.stream.getMissingChunks();
  1865. this.requestChunks(missingChunks);
  1866. return this._loadedStreamCapability.promise;
  1867. },
  1868. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  1869. callback) {
  1870. var requestId = this.currRequestId++;
  1871. var chunksNeeded;
  1872. var i, ii;
  1873. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  1874. for (i = 0, ii = chunks.length; i < ii; i++) {
  1875. if (!this.stream.hasChunk(chunks[i])) {
  1876. chunksNeeded[chunks[i]] = true;
  1877. }
  1878. }
  1879. if (isEmptyObj(chunksNeeded)) {
  1880. if (callback) {
  1881. callback();
  1882. }
  1883. return;
  1884. }
  1885. this.callbacksByRequest[requestId] = callback;
  1886. var chunksToRequest = [];
  1887. for (var chunk in chunksNeeded) {
  1888. chunk = chunk | 0;
  1889. if (!(chunk in this.requestsByChunk)) {
  1890. this.requestsByChunk[chunk] = [];
  1891. chunksToRequest.push(chunk);
  1892. }
  1893. this.requestsByChunk[chunk].push(requestId);
  1894. }
  1895. if (!chunksToRequest.length) {
  1896. return;
  1897. }
  1898. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  1899. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  1900. var groupedChunk = groupedChunksToRequest[i];
  1901. var begin = groupedChunk.beginChunk * this.chunkSize;
  1902. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  1903. this.sendRequest(begin, end);
  1904. }
  1905. },
  1906. getStream: function ChunkedStreamManager_getStream() {
  1907. return this.stream;
  1908. },
  1909. // Loads any chunks in the requested range that are not yet loaded
  1910. requestRange: function ChunkedStreamManager_requestRange(
  1911. begin, end, callback) {
  1912. end = Math.min(end, this.length);
  1913. var beginChunk = this.getBeginChunk(begin);
  1914. var endChunk = this.getEndChunk(end);
  1915. var chunks = [];
  1916. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1917. chunks.push(chunk);
  1918. }
  1919. this.requestChunks(chunks, callback);
  1920. },
  1921. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  1922. callback) {
  1923. ranges = ranges || [];
  1924. var chunksToRequest = [];
  1925. for (var i = 0; i < ranges.length; i++) {
  1926. var beginChunk = this.getBeginChunk(ranges[i].begin);
  1927. var endChunk = this.getEndChunk(ranges[i].end);
  1928. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1929. if (chunksToRequest.indexOf(chunk) < 0) {
  1930. chunksToRequest.push(chunk);
  1931. }
  1932. }
  1933. }
  1934. chunksToRequest.sort(function(a, b) { return a - b; });
  1935. this.requestChunks(chunksToRequest, callback);
  1936. },
  1937. // Groups a sorted array of chunks into as few continguous larger
  1938. // chunks as possible
  1939. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  1940. var groupedChunks = [];
  1941. var beginChunk = -1;
  1942. var prevChunk = -1;
  1943. for (var i = 0; i < chunks.length; ++i) {
  1944. var chunk = chunks[i];
  1945. if (beginChunk < 0) {
  1946. beginChunk = chunk;
  1947. }
  1948. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  1949. groupedChunks.push({ beginChunk: beginChunk,
  1950. endChunk: prevChunk + 1 });
  1951. beginChunk = chunk;
  1952. }
  1953. if (i + 1 === chunks.length) {
  1954. groupedChunks.push({ beginChunk: beginChunk,
  1955. endChunk: chunk + 1 });
  1956. }
  1957. prevChunk = chunk;
  1958. }
  1959. return groupedChunks;
  1960. },
  1961. onProgress: function ChunkedStreamManager_onProgress(args) {
  1962. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  1963. args.loaded);
  1964. this.msgHandler.send('DocProgress', {
  1965. loaded: bytesLoaded,
  1966. total: this.length
  1967. });
  1968. },
  1969. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  1970. var chunk = args.chunk;
  1971. var begin = args.begin;
  1972. var end = begin + chunk.byteLength;
  1973. var beginChunk = this.getBeginChunk(begin);
  1974. var endChunk = this.getEndChunk(end);
  1975. this.stream.onReceiveData(begin, chunk);
  1976. if (this.stream.allChunksLoaded()) {
  1977. this._loadedStreamCapability.resolve(this.stream);
  1978. }
  1979. var loadedRequests = [];
  1980. var i, requestId;
  1981. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  1982. // The server might return more chunks than requested
  1983. var requestIds = this.requestsByChunk[chunk] || [];
  1984. delete this.requestsByChunk[chunk];
  1985. for (i = 0; i < requestIds.length; ++i) {
  1986. requestId = requestIds[i];
  1987. var chunksNeeded = this.chunksNeededByRequest[requestId];
  1988. if (chunk in chunksNeeded) {
  1989. delete chunksNeeded[chunk];
  1990. }
  1991. if (!isEmptyObj(chunksNeeded)) {
  1992. continue;
  1993. }
  1994. loadedRequests.push(requestId);
  1995. }
  1996. }
  1997. // If there are no pending requests, automatically fetch the next
  1998. // unfetched chunk of the PDF
  1999. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  2000. var nextEmptyChunk;
  2001. if (this.stream.numChunksLoaded === 1) {
  2002. // This is a special optimization so that after fetching the first
  2003. // chunk, rather than fetching the second chunk, we fetch the last
  2004. // chunk.
  2005. var lastChunk = this.stream.numChunks - 1;
  2006. if (!this.stream.hasChunk(lastChunk)) {
  2007. nextEmptyChunk = lastChunk;
  2008. }
  2009. } else {
  2010. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  2011. }
  2012. if (isInt(nextEmptyChunk)) {
  2013. this.requestChunks([nextEmptyChunk]);
  2014. }
  2015. }
  2016. for (i = 0; i < loadedRequests.length; ++i) {
  2017. requestId = loadedRequests[i];
  2018. var callback = this.callbacksByRequest[requestId];
  2019. delete this.callbacksByRequest[requestId];
  2020. if (callback) {
  2021. callback();
  2022. }
  2023. }
  2024. this.msgHandler.send('DocProgress', {
  2025. loaded: this.stream.numChunksLoaded * this.chunkSize,
  2026. total: this.length
  2027. });
  2028. },
  2029. onError: function ChunkedStreamManager_onError(err) {
  2030. this._loadedStreamCapability.reject(err);
  2031. },
  2032. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  2033. var chunk = Math.floor(begin / this.chunkSize);
  2034. return chunk;
  2035. },
  2036. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  2037. if (end % this.chunkSize === 0) {
  2038. return end / this.chunkSize;
  2039. }
  2040. // 0 -> 0
  2041. // 1 -> 1
  2042. // 99 -> 1
  2043. // 100 -> 1
  2044. // 101 -> 2
  2045. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  2046. return chunk;
  2047. }
  2048. };
  2049. return ChunkedStreamManager;
  2050. })();
  2051. // The maximum number of bytes fetched per range request
  2052. var RANGE_CHUNK_SIZE = 65536;
  2053. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  2054. var BasePdfManager = (function BasePdfManagerClosure() {
  2055. function BasePdfManager() {
  2056. throw new Error('Cannot initialize BaseManagerManager');
  2057. }
  2058. BasePdfManager.prototype = {
  2059. onLoadedStream: function BasePdfManager_onLoadedStream() {
  2060. throw new NotImplementedException();
  2061. },
  2062. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  2063. return this.ensure(this.pdfDocument, prop, args);
  2064. },
  2065. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  2066. return this.ensure(this.pdfDocument.xref, prop, args);
  2067. },
  2068. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  2069. return this.ensure(this.pdfDocument.catalog, prop, args);
  2070. },
  2071. getPage: function BasePdfManager_pagePage(pageIndex) {
  2072. return this.pdfDocument.getPage(pageIndex);
  2073. },
  2074. cleanup: function BasePdfManager_cleanup() {
  2075. return this.pdfDocument.cleanup();
  2076. },
  2077. ensure: function BasePdfManager_ensure(obj, prop, args) {
  2078. return new NotImplementedException();
  2079. },
  2080. requestRange: function BasePdfManager_ensure(begin, end) {
  2081. return new NotImplementedException();
  2082. },
  2083. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  2084. return new NotImplementedException();
  2085. },
  2086. updatePassword: function BasePdfManager_updatePassword(password) {
  2087. this.pdfDocument.xref.password = this.password = password;
  2088. if (this._passwordChangedCapability) {
  2089. this._passwordChangedCapability.resolve();
  2090. }
  2091. },
  2092. passwordChanged: function BasePdfManager_passwordChanged() {
  2093. this._passwordChangedCapability = createPromiseCapability();
  2094. return this._passwordChangedCapability.promise;
  2095. },
  2096. terminate: function BasePdfManager_terminate() {
  2097. return new NotImplementedException();
  2098. }
  2099. };
  2100. return BasePdfManager;
  2101. })();
  2102. var LocalPdfManager = (function LocalPdfManagerClosure() {
  2103. function LocalPdfManager(data, password) {
  2104. var stream = new Stream(data);
  2105. this.pdfDocument = new PDFDocument(this, stream, password);
  2106. this._loadedStreamCapability = createPromiseCapability();
  2107. this._loadedStreamCapability.resolve(stream);
  2108. }
  2109. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2110. LocalPdfManager.prototype.constructor = LocalPdfManager;
  2111. LocalPdfManager.prototype.ensure =
  2112. function LocalPdfManager_ensure(obj, prop, args) {
  2113. return new Promise(function (resolve, reject) {
  2114. try {
  2115. var value = obj[prop];
  2116. var result;
  2117. if (typeof value === 'function') {
  2118. result = value.apply(obj, args);
  2119. } else {
  2120. result = value;
  2121. }
  2122. resolve(result);
  2123. } catch (e) {
  2124. reject(e);
  2125. }
  2126. });
  2127. };
  2128. LocalPdfManager.prototype.requestRange =
  2129. function LocalPdfManager_requestRange(begin, end) {
  2130. return Promise.resolve();
  2131. };
  2132. LocalPdfManager.prototype.requestLoadedStream =
  2133. function LocalPdfManager_requestLoadedStream() {
  2134. };
  2135. LocalPdfManager.prototype.onLoadedStream =
  2136. function LocalPdfManager_getLoadedStream() {
  2137. return this._loadedStreamCapability.promise;
  2138. };
  2139. LocalPdfManager.prototype.terminate =
  2140. function LocalPdfManager_terminate() {
  2141. return;
  2142. };
  2143. return LocalPdfManager;
  2144. })();
  2145. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  2146. function NetworkPdfManager(args, msgHandler) {
  2147. this.msgHandler = msgHandler;
  2148. var params = {
  2149. msgHandler: msgHandler,
  2150. httpHeaders: args.httpHeaders,
  2151. withCredentials: args.withCredentials,
  2152. chunkedViewerLoading: args.chunkedViewerLoading,
  2153. disableAutoFetch: args.disableAutoFetch,
  2154. initialData: args.initialData
  2155. };
  2156. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  2157. args.url, params);
  2158. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  2159. args.password);
  2160. }
  2161. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2162. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  2163. NetworkPdfManager.prototype.ensure =
  2164. function NetworkPdfManager_ensure(obj, prop, args) {
  2165. var pdfManager = this;
  2166. return new Promise(function (resolve, reject) {
  2167. function ensureHelper() {
  2168. try {
  2169. var result;
  2170. var value = obj[prop];
  2171. if (typeof value === 'function') {
  2172. result = value.apply(obj, args);
  2173. } else {
  2174. result = value;
  2175. }
  2176. resolve(result);
  2177. } catch(e) {
  2178. if (!(e instanceof MissingDataException)) {
  2179. reject(e);
  2180. return;
  2181. }
  2182. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  2183. }
  2184. }
  2185. ensureHelper();
  2186. });
  2187. };
  2188. NetworkPdfManager.prototype.requestRange =
  2189. function NetworkPdfManager_requestRange(begin, end) {
  2190. return new Promise(function (resolve) {
  2191. this.streamManager.requestRange(begin, end, function() {
  2192. resolve();
  2193. });
  2194. }.bind(this));
  2195. };
  2196. NetworkPdfManager.prototype.requestLoadedStream =
  2197. function NetworkPdfManager_requestLoadedStream() {
  2198. this.streamManager.requestAllChunks();
  2199. };
  2200. NetworkPdfManager.prototype.onLoadedStream =
  2201. function NetworkPdfManager_getLoadedStream() {
  2202. return this.streamManager.onLoadedStream();
  2203. };
  2204. NetworkPdfManager.prototype.terminate =
  2205. function NetworkPdfManager_terminate() {
  2206. this.streamManager.networkManager.abortAllRequests();
  2207. };
  2208. return NetworkPdfManager;
  2209. })();
  2210. var Page = (function PageClosure() {
  2211. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  2212. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  2213. this.pdfManager = pdfManager;
  2214. this.pageIndex = pageIndex;
  2215. this.pageDict = pageDict;
  2216. this.xref = xref;
  2217. this.ref = ref;
  2218. this.fontCache = fontCache;
  2219. this.idCounters = {
  2220. obj: 0
  2221. };
  2222. this.resourcesPromise = null;
  2223. }
  2224. Page.prototype = {
  2225. getPageProp: function Page_getPageProp(key) {
  2226. return this.pageDict.get(key);
  2227. },
  2228. getInheritedPageProp: function Page_inheritPageProp(key) {
  2229. var dict = this.pageDict;
  2230. var value = dict.get(key);
  2231. while (value === undefined) {
  2232. dict = dict.get('Parent');
  2233. if (!dict) {
  2234. break;
  2235. }
  2236. value = dict.get(key);
  2237. }
  2238. return value;
  2239. },
  2240. get content() {
  2241. return this.getPageProp('Contents');
  2242. },
  2243. get resources() {
  2244. var value = this.getInheritedPageProp('Resources');
  2245. // For robustness: The spec states that a \Resources entry has to be
  2246. // present, but can be empty. Some document omit it still. In this case
  2247. // return an empty dictionary:
  2248. if (value === undefined) {
  2249. value = Dict.empty;
  2250. }
  2251. return shadow(this, 'resources', value);
  2252. },
  2253. get mediaBox() {
  2254. var obj = this.getInheritedPageProp('MediaBox');
  2255. // Reset invalid media box to letter size.
  2256. if (!isArray(obj) || obj.length !== 4) {
  2257. obj = LETTER_SIZE_MEDIABOX;
  2258. }
  2259. return shadow(this, 'mediaBox', obj);
  2260. },
  2261. get view() {
  2262. var mediaBox = this.mediaBox;
  2263. var cropBox = this.getInheritedPageProp('CropBox');
  2264. if (!isArray(cropBox) || cropBox.length !== 4) {
  2265. return shadow(this, 'view', mediaBox);
  2266. }
  2267. // From the spec, 6th ed., p.963:
  2268. // "The crop, bleed, trim, and art boxes should not ordinarily
  2269. // extend beyond the boundaries of the media box. If they do, they are
  2270. // effectively reduced to their intersection with the media box."
  2271. cropBox = Util.intersect(cropBox, mediaBox);
  2272. if (!cropBox) {
  2273. return shadow(this, 'view', mediaBox);
  2274. }
  2275. return shadow(this, 'view', cropBox);
  2276. },
  2277. get annotationRefs() {
  2278. return shadow(this, 'annotationRefs',
  2279. this.getInheritedPageProp('Annots'));
  2280. },
  2281. get rotate() {
  2282. var rotate = this.getInheritedPageProp('Rotate') || 0;
  2283. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  2284. if (rotate % 90 !== 0) {
  2285. rotate = 0;
  2286. } else if (rotate >= 360) {
  2287. rotate = rotate % 360;
  2288. } else if (rotate < 0) {
  2289. // The spec doesn't cover negatives, assume its counterclockwise
  2290. // rotation. The following is the other implementation of modulo.
  2291. rotate = ((rotate % 360) + 360) % 360;
  2292. }
  2293. return shadow(this, 'rotate', rotate);
  2294. },
  2295. getContentStream: function Page_getContentStream() {
  2296. var content = this.content;
  2297. var stream;
  2298. if (isArray(content)) {
  2299. // fetching items
  2300. var xref = this.xref;
  2301. var i, n = content.length;
  2302. var streams = [];
  2303. for (i = 0; i < n; ++i) {
  2304. streams.push(xref.fetchIfRef(content[i]));
  2305. }
  2306. stream = new StreamsSequenceStream(streams);
  2307. } else if (isStream(content)) {
  2308. stream = content;
  2309. } else {
  2310. // replacing non-existent page content with empty one
  2311. stream = new NullStream();
  2312. }
  2313. return stream;
  2314. },
  2315. loadResources: function Page_loadResources(keys) {
  2316. if (!this.resourcesPromise) {
  2317. // TODO: add async getInheritedPageProp and remove this.
  2318. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  2319. }
  2320. return this.resourcesPromise.then(function resourceSuccess() {
  2321. var objectLoader = new ObjectLoader(this.resources.map,
  2322. keys,
  2323. this.xref);
  2324. return objectLoader.load();
  2325. }.bind(this));
  2326. },
  2327. getOperatorList: function Page_getOperatorList(handler, intent) {
  2328. var self = this;
  2329. var pdfManager = this.pdfManager;
  2330. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2331. []);
  2332. var resourcesPromise = this.loadResources([
  2333. 'ExtGState',
  2334. 'ColorSpace',
  2335. 'Pattern',
  2336. 'Shading',
  2337. 'XObject',
  2338. 'Font'
  2339. // ProcSet
  2340. // Properties
  2341. ]);
  2342. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  2343. handler, this.pageIndex,
  2344. 'p' + this.pageIndex + '_',
  2345. this.idCounters,
  2346. this.fontCache);
  2347. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
  2348. var pageListPromise = dataPromises.then(function(data) {
  2349. var contentStream = data[0];
  2350. var opList = new OperatorList(intent, handler, self.pageIndex);
  2351. handler.send('StartRenderPage', {
  2352. transparency: partialEvaluator.hasBlendModes(self.resources),
  2353. pageIndex: self.pageIndex,
  2354. intent: intent
  2355. });
  2356. return partialEvaluator.getOperatorList(contentStream, self.resources,
  2357. opList).then(function () {
  2358. return opList;
  2359. });
  2360. });
  2361. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  2362. return Promise.all([pageListPromise, annotationsPromise]).then(
  2363. function(datas) {
  2364. var pageOpList = datas[0];
  2365. var annotations = datas[1];
  2366. if (annotations.length === 0) {
  2367. pageOpList.flush(true);
  2368. return pageOpList;
  2369. }
  2370. var annotationsReadyPromise = Annotation.appendToOperatorList(
  2371. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  2372. return annotationsReadyPromise.then(function () {
  2373. pageOpList.flush(true);
  2374. return pageOpList;
  2375. });
  2376. });
  2377. },
  2378. extractTextContent: function Page_extractTextContent() {
  2379. var handler = {
  2380. on: function nullHandlerOn() {},
  2381. send: function nullHandlerSend() {}
  2382. };
  2383. var self = this;
  2384. var pdfManager = this.pdfManager;
  2385. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2386. []);
  2387. var resourcesPromise = this.loadResources([
  2388. 'ExtGState',
  2389. 'XObject',
  2390. 'Font'
  2391. ]);
  2392. var dataPromises = Promise.all([contentStreamPromise,
  2393. resourcesPromise]);
  2394. return dataPromises.then(function(data) {
  2395. var contentStream = data[0];
  2396. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  2397. handler, self.pageIndex,
  2398. 'p' + self.pageIndex + '_',
  2399. self.idCounters,
  2400. self.fontCache);
  2401. return partialEvaluator.getTextContent(contentStream,
  2402. self.resources);
  2403. });
  2404. },
  2405. getAnnotationsData: function Page_getAnnotationsData() {
  2406. var annotations = this.annotations;
  2407. var annotationsData = [];
  2408. for (var i = 0, n = annotations.length; i < n; ++i) {
  2409. annotationsData.push(annotations[i].getData());
  2410. }
  2411. return annotationsData;
  2412. },
  2413. get annotations() {
  2414. var annotations = [];
  2415. var annotationRefs = (this.annotationRefs || []);
  2416. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  2417. var annotationRef = annotationRefs[i];
  2418. var annotation = Annotation.fromRef(this.xref, annotationRef);
  2419. if (annotation) {
  2420. annotations.push(annotation);
  2421. }
  2422. }
  2423. return shadow(this, 'annotations', annotations);
  2424. }
  2425. };
  2426. return Page;
  2427. })();
  2428. /**
  2429. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  2430. * `PDFDoc`, this one doesn't have any job management code.
  2431. * Right now there exists one PDFDocument on the main thread + one object
  2432. * for each worker. If there is no worker support enabled, there are two
  2433. * `PDFDocument` objects on the main thread created.
  2434. */
  2435. var PDFDocument = (function PDFDocumentClosure() {
  2436. function PDFDocument(pdfManager, arg, password) {
  2437. if (isStream(arg)) {
  2438. init.call(this, pdfManager, arg, password);
  2439. } else if (isArrayBuffer(arg)) {
  2440. init.call(this, pdfManager, new Stream(arg), password);
  2441. } else {
  2442. error('PDFDocument: Unknown argument type');
  2443. }
  2444. }
  2445. function init(pdfManager, stream, password) {
  2446. assert(stream.length > 0, 'stream must have data');
  2447. this.pdfManager = pdfManager;
  2448. this.stream = stream;
  2449. var xref = new XRef(this.stream, password, pdfManager);
  2450. this.xref = xref;
  2451. }
  2452. function find(stream, needle, limit, backwards) {
  2453. var pos = stream.pos;
  2454. var end = stream.end;
  2455. if (pos + limit > end) {
  2456. limit = end - pos;
  2457. }
  2458. var str = bytesToString(stream.getBytes(limit));
  2459. stream.pos = pos;
  2460. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  2461. if (index == -1) {
  2462. return false; /* not found */
  2463. }
  2464. stream.pos += index;
  2465. return true; /* found */
  2466. }
  2467. var DocumentInfoValidators = {
  2468. get entries() {
  2469. // Lazily build this since all the validation functions below are not
  2470. // defined until after this file loads.
  2471. return shadow(this, 'entries', {
  2472. Title: isString,
  2473. Author: isString,
  2474. Subject: isString,
  2475. Keywords: isString,
  2476. Creator: isString,
  2477. Producer: isString,
  2478. CreationDate: isString,
  2479. ModDate: isString,
  2480. Trapped: isName
  2481. });
  2482. }
  2483. };
  2484. PDFDocument.prototype = {
  2485. parse: function PDFDocument_parse(recoveryMode) {
  2486. this.setup(recoveryMode);
  2487. try {
  2488. // checking if AcroForm is present
  2489. this.acroForm = this.catalog.catDict.get('AcroForm');
  2490. if (this.acroForm) {
  2491. this.xfa = this.acroForm.get('XFA');
  2492. var fields = this.acroForm.get('Fields');
  2493. if ((!fields || !isArray(fields) || fields.length === 0) &&
  2494. !this.xfa) {
  2495. // no fields and no XFA -- not a form (?)
  2496. this.acroForm = null;
  2497. }
  2498. }
  2499. } catch (ex) {
  2500. info('Something wrong with AcroForm entry');
  2501. this.acroForm = null;
  2502. }
  2503. },
  2504. get linearization() {
  2505. var length = this.stream.length;
  2506. var linearization = false;
  2507. if (length) {
  2508. try {
  2509. linearization = new Linearization(this.stream);
  2510. if (linearization.length != length) {
  2511. linearization = false;
  2512. }
  2513. } catch (err) {
  2514. if (err instanceof MissingDataException) {
  2515. throw err;
  2516. }
  2517. info('The linearization data is not available ' +
  2518. 'or unreadable PDF data is found');
  2519. linearization = false;
  2520. }
  2521. }
  2522. // shadow the prototype getter with a data property
  2523. return shadow(this, 'linearization', linearization);
  2524. },
  2525. get startXRef() {
  2526. var stream = this.stream;
  2527. var startXRef = 0;
  2528. var linearization = this.linearization;
  2529. if (linearization) {
  2530. // Find end of first obj.
  2531. stream.reset();
  2532. if (find(stream, 'endobj', 1024)) {
  2533. startXRef = stream.pos + 6;
  2534. }
  2535. } else {
  2536. // Find startxref by jumping backward from the end of the file.
  2537. var step = 1024;
  2538. var found = false, pos = stream.end;
  2539. while (!found && pos > 0) {
  2540. pos -= step - 'startxref'.length;
  2541. if (pos < 0) {
  2542. pos = 0;
  2543. }
  2544. stream.pos = pos;
  2545. found = find(stream, 'startxref', step, true);
  2546. }
  2547. if (found) {
  2548. stream.skip(9);
  2549. var ch;
  2550. do {
  2551. ch = stream.getByte();
  2552. } while (Lexer.isSpace(ch));
  2553. var str = '';
  2554. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  2555. str += String.fromCharCode(ch);
  2556. ch = stream.getByte();
  2557. }
  2558. startXRef = parseInt(str, 10);
  2559. if (isNaN(startXRef)) {
  2560. startXRef = 0;
  2561. }
  2562. }
  2563. }
  2564. // shadow the prototype getter with a data property
  2565. return shadow(this, 'startXRef', startXRef);
  2566. },
  2567. get mainXRefEntriesOffset() {
  2568. var mainXRefEntriesOffset = 0;
  2569. var linearization = this.linearization;
  2570. if (linearization) {
  2571. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  2572. }
  2573. // shadow the prototype getter with a data property
  2574. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  2575. },
  2576. // Find the header, remove leading garbage and setup the stream
  2577. // starting from the header.
  2578. checkHeader: function PDFDocument_checkHeader() {
  2579. var stream = this.stream;
  2580. stream.reset();
  2581. if (find(stream, '%PDF-', 1024)) {
  2582. // Found the header, trim off any garbage before it.
  2583. stream.moveStart();
  2584. // Reading file format version
  2585. var MAX_VERSION_LENGTH = 12;
  2586. var version = '', ch;
  2587. while ((ch = stream.getByte()) > 0x20) { // SPACE
  2588. if (version.length >= MAX_VERSION_LENGTH) {
  2589. break;
  2590. }
  2591. version += String.fromCharCode(ch);
  2592. }
  2593. // removing "%PDF-"-prefix
  2594. this.pdfFormatVersion = version.substring(5);
  2595. return;
  2596. }
  2597. // May not be a PDF file, continue anyway.
  2598. },
  2599. parseStartXRef: function PDFDocument_parseStartXRef() {
  2600. var startXRef = this.startXRef;
  2601. this.xref.setStartXRef(startXRef);
  2602. },
  2603. setup: function PDFDocument_setup(recoveryMode) {
  2604. this.xref.parse(recoveryMode);
  2605. this.catalog = new Catalog(this.pdfManager, this.xref);
  2606. },
  2607. get numPages() {
  2608. var linearization = this.linearization;
  2609. var num = linearization ? linearization.numPages : this.catalog.numPages;
  2610. // shadow the prototype getter
  2611. return shadow(this, 'numPages', num);
  2612. },
  2613. get documentInfo() {
  2614. var docInfo = {
  2615. PDFFormatVersion: this.pdfFormatVersion,
  2616. IsAcroFormPresent: !!this.acroForm,
  2617. IsXFAPresent: !!this.xfa
  2618. };
  2619. var infoDict;
  2620. try {
  2621. infoDict = this.xref.trailer.get('Info');
  2622. } catch (err) {
  2623. info('The document information dictionary is invalid.');
  2624. }
  2625. if (infoDict) {
  2626. var validEntries = DocumentInfoValidators.entries;
  2627. // Only fill the document info with valid entries from the spec.
  2628. for (var key in validEntries) {
  2629. if (infoDict.has(key)) {
  2630. var value = infoDict.get(key);
  2631. // Make sure the value conforms to the spec.
  2632. if (validEntries[key](value)) {
  2633. docInfo[key] = (typeof value !== 'string' ?
  2634. value : stringToPDFString(value));
  2635. } else {
  2636. info('Bad value in document info for "' + key + '"');
  2637. }
  2638. }
  2639. }
  2640. }
  2641. return shadow(this, 'documentInfo', docInfo);
  2642. },
  2643. get fingerprint() {
  2644. var xref = this.xref, hash, fileID = '';
  2645. if (xref.trailer.has('ID')) {
  2646. hash = stringToBytes(xref.trailer.get('ID')[0]);
  2647. } else {
  2648. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  2649. }
  2650. for (var i = 0, n = hash.length; i < n; i++) {
  2651. fileID += hash[i].toString(16);
  2652. }
  2653. return shadow(this, 'fingerprint', fileID);
  2654. },
  2655. getPage: function PDFDocument_getPage(pageIndex) {
  2656. return this.catalog.getPage(pageIndex);
  2657. },
  2658. cleanup: function PDFDocument_cleanup() {
  2659. return this.catalog.cleanup();
  2660. }
  2661. };
  2662. return PDFDocument;
  2663. })();
  2664. var Name = (function NameClosure() {
  2665. function Name(name) {
  2666. this.name = name;
  2667. }
  2668. Name.prototype = {};
  2669. var nameCache = {};
  2670. Name.get = function Name_get(name) {
  2671. var nameValue = nameCache[name];
  2672. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  2673. };
  2674. return Name;
  2675. })();
  2676. var Cmd = (function CmdClosure() {
  2677. function Cmd(cmd) {
  2678. this.cmd = cmd;
  2679. }
  2680. Cmd.prototype = {};
  2681. var cmdCache = {};
  2682. Cmd.get = function Cmd_get(cmd) {
  2683. var cmdValue = cmdCache[cmd];
  2684. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  2685. };
  2686. return Cmd;
  2687. })();
  2688. var Dict = (function DictClosure() {
  2689. var nonSerializable = function nonSerializableClosure() {
  2690. return nonSerializable; // creating closure on some variable
  2691. };
  2692. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  2693. 'Background': true,
  2694. 'ExtGState': true,
  2695. 'Halftone': true,
  2696. 'Layout': true,
  2697. 'Mask': true,
  2698. 'Pagination': true,
  2699. 'Printing': true
  2700. };
  2701. function isRecursionAllowedFor(dict) {
  2702. if (!isName(dict.Type)) {
  2703. return true;
  2704. }
  2705. var dictType = dict.Type.name;
  2706. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  2707. }
  2708. // xref is optional
  2709. function Dict(xref) {
  2710. // Map should only be used internally, use functions below to access.
  2711. this.map = Object.create(null);
  2712. this.xref = xref;
  2713. this.objId = null;
  2714. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  2715. }
  2716. Dict.prototype = {
  2717. assignXref: function Dict_assignXref(newXref) {
  2718. this.xref = newXref;
  2719. },
  2720. // automatically dereferences Ref objects
  2721. get: function Dict_get(key1, key2, key3) {
  2722. var value;
  2723. var xref = this.xref;
  2724. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  2725. typeof key2 == 'undefined') {
  2726. return xref ? xref.fetchIfRef(value) : value;
  2727. }
  2728. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  2729. typeof key3 == 'undefined') {
  2730. return xref ? xref.fetchIfRef(value) : value;
  2731. }
  2732. value = this.map[key3] || null;
  2733. return xref ? xref.fetchIfRef(value) : value;
  2734. },
  2735. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  2736. getAsync: function Dict_getAsync(key1, key2, key3) {
  2737. var value;
  2738. var xref = this.xref;
  2739. if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
  2740. typeof key2 === 'undefined') {
  2741. if (xref) {
  2742. return xref.fetchIfRefAsync(value);
  2743. }
  2744. return Promise.resolve(value);
  2745. }
  2746. if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
  2747. typeof key3 === 'undefined') {
  2748. if (xref) {
  2749. return xref.fetchIfRefAsync(value);
  2750. }
  2751. return Promise.resolve(value);
  2752. }
  2753. value = this.map[key3] || null;
  2754. if (xref) {
  2755. return xref.fetchIfRefAsync(value);
  2756. }
  2757. return Promise.resolve(value);
  2758. },
  2759. // no dereferencing
  2760. getRaw: function Dict_getRaw(key) {
  2761. return this.map[key];
  2762. },
  2763. // creates new map and dereferences all Refs
  2764. getAll: function Dict_getAll() {
  2765. var all = Object.create(null);
  2766. var queue = null;
  2767. var key, obj;
  2768. for (key in this.map) {
  2769. obj = this.get(key);
  2770. if (obj instanceof Dict) {
  2771. if (isRecursionAllowedFor(obj)) {
  2772. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  2773. } else {
  2774. all[key] = this.getRaw(key);
  2775. }
  2776. } else {
  2777. all[key] = obj;
  2778. }
  2779. }
  2780. if (!queue) {
  2781. return all;
  2782. }
  2783. // trying to take cyclic references into the account
  2784. var processed = Object.create(null);
  2785. while (queue.length > 0) {
  2786. var item = queue.shift();
  2787. var itemObj = item.obj;
  2788. var objId = itemObj.objId;
  2789. if (objId && objId in processed) {
  2790. item.target[item.key] = processed[objId];
  2791. continue;
  2792. }
  2793. var dereferenced = Object.create(null);
  2794. for (key in itemObj.map) {
  2795. obj = itemObj.get(key);
  2796. if (obj instanceof Dict) {
  2797. if (isRecursionAllowedFor(obj)) {
  2798. queue.push({target: dereferenced, key: key, obj: obj});
  2799. } else {
  2800. dereferenced[key] = itemObj.getRaw(key);
  2801. }
  2802. } else {
  2803. dereferenced[key] = obj;
  2804. }
  2805. }
  2806. if (objId) {
  2807. processed[objId] = dereferenced;
  2808. }
  2809. item.target[item.key] = dereferenced;
  2810. }
  2811. return all;
  2812. },
  2813. set: function Dict_set(key, value) {
  2814. this.map[key] = value;
  2815. },
  2816. has: function Dict_has(key) {
  2817. return key in this.map;
  2818. },
  2819. forEach: function Dict_forEach(callback) {
  2820. for (var key in this.map) {
  2821. callback(key, this.get(key));
  2822. }
  2823. }
  2824. };
  2825. Dict.empty = new Dict(null);
  2826. return Dict;
  2827. })();
  2828. var Ref = (function RefClosure() {
  2829. function Ref(num, gen) {
  2830. this.num = num;
  2831. this.gen = gen;
  2832. }
  2833. Ref.prototype = {
  2834. toString: function Ref_toString() {
  2835. return 'R' + this.num + '.' + this.gen;
  2836. }
  2837. };
  2838. return Ref;
  2839. })();
  2840. // The reference is identified by number and generation.
  2841. // This structure stores only one instance of the reference.
  2842. var RefSet = (function RefSetClosure() {
  2843. function RefSet() {
  2844. this.dict = {};
  2845. }
  2846. RefSet.prototype = {
  2847. has: function RefSet_has(ref) {
  2848. return ref.toString() in this.dict;
  2849. },
  2850. put: function RefSet_put(ref) {
  2851. this.dict[ref.toString()] = true;
  2852. },
  2853. remove: function RefSet_remove(ref) {
  2854. delete this.dict[ref.toString()];
  2855. }
  2856. };
  2857. return RefSet;
  2858. })();
  2859. var RefSetCache = (function RefSetCacheClosure() {
  2860. function RefSetCache() {
  2861. this.dict = Object.create(null);
  2862. }
  2863. RefSetCache.prototype = {
  2864. get: function RefSetCache_get(ref) {
  2865. return this.dict[ref.toString()];
  2866. },
  2867. has: function RefSetCache_has(ref) {
  2868. return ref.toString() in this.dict;
  2869. },
  2870. put: function RefSetCache_put(ref, obj) {
  2871. this.dict[ref.toString()] = obj;
  2872. },
  2873. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  2874. this.dict[ref.toString()] = this.get(aliasRef);
  2875. },
  2876. forEach: function RefSetCache_forEach(fn, thisArg) {
  2877. for (var i in this.dict) {
  2878. fn.call(thisArg, this.dict[i]);
  2879. }
  2880. },
  2881. clear: function RefSetCache_clear() {
  2882. this.dict = Object.create(null);
  2883. }
  2884. };
  2885. return RefSetCache;
  2886. })();
  2887. var Catalog = (function CatalogClosure() {
  2888. function Catalog(pdfManager, xref) {
  2889. this.pdfManager = pdfManager;
  2890. this.xref = xref;
  2891. this.catDict = xref.getCatalogObj();
  2892. this.fontCache = new RefSetCache();
  2893. assert(isDict(this.catDict),
  2894. 'catalog object is not a dictionary');
  2895. this.pagePromises = [];
  2896. }
  2897. Catalog.prototype = {
  2898. get metadata() {
  2899. var streamRef = this.catDict.getRaw('Metadata');
  2900. if (!isRef(streamRef)) {
  2901. return shadow(this, 'metadata', null);
  2902. }
  2903. var encryptMetadata = (!this.xref.encrypt ? false :
  2904. this.xref.encrypt.encryptMetadata);
  2905. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  2906. var metadata;
  2907. if (stream && isDict(stream.dict)) {
  2908. var type = stream.dict.get('Type');
  2909. var subtype = stream.dict.get('Subtype');
  2910. if (isName(type) && isName(subtype) &&
  2911. type.name === 'Metadata' && subtype.name === 'XML') {
  2912. // XXX: This should examine the charset the XML document defines,
  2913. // however since there are currently no real means to decode
  2914. // arbitrary charsets, let's just hope that the author of the PDF
  2915. // was reasonable enough to stick with the XML default charset,
  2916. // which is UTF-8.
  2917. try {
  2918. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  2919. } catch (e) {
  2920. info('Skipping invalid metadata.');
  2921. }
  2922. }
  2923. }
  2924. return shadow(this, 'metadata', metadata);
  2925. },
  2926. get toplevelPagesDict() {
  2927. var pagesObj = this.catDict.get('Pages');
  2928. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  2929. // shadow the prototype getter
  2930. return shadow(this, 'toplevelPagesDict', pagesObj);
  2931. },
  2932. get documentOutline() {
  2933. var obj = null;
  2934. try {
  2935. obj = this.readDocumentOutline();
  2936. } catch (ex) {
  2937. if (ex instanceof MissingDataException) {
  2938. throw ex;
  2939. }
  2940. warn('Unable to read document outline');
  2941. }
  2942. return shadow(this, 'documentOutline', obj);
  2943. },
  2944. readDocumentOutline: function Catalog_readDocumentOutline() {
  2945. var xref = this.xref;
  2946. var obj = this.catDict.get('Outlines');
  2947. var root = { items: [] };
  2948. if (isDict(obj)) {
  2949. obj = obj.getRaw('First');
  2950. var processed = new RefSet();
  2951. if (isRef(obj)) {
  2952. var queue = [{obj: obj, parent: root}];
  2953. // to avoid recursion keeping track of the items
  2954. // in the processed dictionary
  2955. processed.put(obj);
  2956. while (queue.length > 0) {
  2957. var i = queue.shift();
  2958. var outlineDict = xref.fetchIfRef(i.obj);
  2959. if (outlineDict === null) {
  2960. continue;
  2961. }
  2962. if (!outlineDict.has('Title')) {
  2963. error('Invalid outline item');
  2964. }
  2965. var dest = outlineDict.get('A');
  2966. if (dest) {
  2967. dest = dest.get('D');
  2968. } else if (outlineDict.has('Dest')) {
  2969. dest = outlineDict.getRaw('Dest');
  2970. if (isName(dest)) {
  2971. dest = dest.name;
  2972. }
  2973. }
  2974. var title = outlineDict.get('Title');
  2975. var outlineItem = {
  2976. dest: dest,
  2977. title: stringToPDFString(title),
  2978. color: outlineDict.get('C') || [0, 0, 0],
  2979. count: outlineDict.get('Count'),
  2980. bold: !!(outlineDict.get('F') & 2),
  2981. italic: !!(outlineDict.get('F') & 1),
  2982. items: []
  2983. };
  2984. i.parent.items.push(outlineItem);
  2985. obj = outlineDict.getRaw('First');
  2986. if (isRef(obj) && !processed.has(obj)) {
  2987. queue.push({obj: obj, parent: outlineItem});
  2988. processed.put(obj);
  2989. }
  2990. obj = outlineDict.getRaw('Next');
  2991. if (isRef(obj) && !processed.has(obj)) {
  2992. queue.push({obj: obj, parent: i.parent});
  2993. processed.put(obj);
  2994. }
  2995. }
  2996. }
  2997. }
  2998. return (root.items.length > 0 ? root.items : null);
  2999. },
  3000. get numPages() {
  3001. var obj = this.toplevelPagesDict.get('Count');
  3002. assert(
  3003. isInt(obj),
  3004. 'page count in top level pages object is not an integer'
  3005. );
  3006. // shadow the prototype getter
  3007. return shadow(this, 'num', obj);
  3008. },
  3009. get destinations() {
  3010. function fetchDestination(dest) {
  3011. return isDict(dest) ? dest.get('D') : dest;
  3012. }
  3013. var xref = this.xref;
  3014. var dests = {}, nameTreeRef, nameDictionaryRef;
  3015. var obj = this.catDict.get('Names');
  3016. if (obj && obj.has('Dests')) {
  3017. nameTreeRef = obj.getRaw('Dests');
  3018. } else if (this.catDict.has('Dests')) {
  3019. nameDictionaryRef = this.catDict.get('Dests');
  3020. }
  3021. if (nameDictionaryRef) {
  3022. // reading simple destination dictionary
  3023. obj = nameDictionaryRef;
  3024. obj.forEach(function catalogForEach(key, value) {
  3025. if (!value) {
  3026. return;
  3027. }
  3028. dests[key] = fetchDestination(value);
  3029. });
  3030. }
  3031. if (nameTreeRef) {
  3032. var nameTree = new NameTree(nameTreeRef, xref);
  3033. var names = nameTree.getAll();
  3034. for (var name in names) {
  3035. if (!names.hasOwnProperty(name)) {
  3036. continue;
  3037. }
  3038. dests[name] = fetchDestination(names[name]);
  3039. }
  3040. }
  3041. return shadow(this, 'destinations', dests);
  3042. },
  3043. get attachments() {
  3044. var xref = this.xref;
  3045. var attachments = null, nameTreeRef;
  3046. var obj = this.catDict.get('Names');
  3047. if (obj) {
  3048. nameTreeRef = obj.getRaw('EmbeddedFiles');
  3049. }
  3050. if (nameTreeRef) {
  3051. var nameTree = new NameTree(nameTreeRef, xref);
  3052. var names = nameTree.getAll();
  3053. for (var name in names) {
  3054. if (!names.hasOwnProperty(name)) {
  3055. continue;
  3056. }
  3057. var fs = new FileSpec(names[name], xref);
  3058. if (!attachments) {
  3059. attachments = {};
  3060. }
  3061. attachments[stringToPDFString(name)] = fs.serializable;
  3062. }
  3063. }
  3064. return shadow(this, 'attachments', attachments);
  3065. },
  3066. get javaScript() {
  3067. var xref = this.xref;
  3068. var obj = this.catDict.get('Names');
  3069. var javaScript = [];
  3070. if (obj && obj.has('JavaScript')) {
  3071. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  3072. var names = nameTree.getAll();
  3073. for (var name in names) {
  3074. if (!names.hasOwnProperty(name)) {
  3075. continue;
  3076. }
  3077. // We don't really use the JavaScript right now. This code is
  3078. // defensive so we don't cause errors on document load.
  3079. var jsDict = names[name];
  3080. if (!isDict(jsDict)) {
  3081. continue;
  3082. }
  3083. var type = jsDict.get('S');
  3084. if (!isName(type) || type.name !== 'JavaScript') {
  3085. continue;
  3086. }
  3087. var js = jsDict.get('JS');
  3088. if (!isString(js) && !isStream(js)) {
  3089. continue;
  3090. }
  3091. if (isStream(js)) {
  3092. js = bytesToString(js.getBytes());
  3093. }
  3094. javaScript.push(stringToPDFString(js));
  3095. }
  3096. }
  3097. // Append OpenAction actions to javaScript array
  3098. var openactionDict = this.catDict.get('OpenAction');
  3099. if (isDict(openactionDict)) {
  3100. var objType = openactionDict.get('Type');
  3101. var actionType = openactionDict.get('S');
  3102. var action = openactionDict.get('N');
  3103. var isPrintAction = (isName(objType) && objType.name === 'Action' &&
  3104. isName(actionType) && actionType.name === 'Named' &&
  3105. isName(action) && action.name === 'Print');
  3106. if (isPrintAction) {
  3107. javaScript.push('print(true);');
  3108. }
  3109. }
  3110. return shadow(this, 'javaScript', javaScript);
  3111. },
  3112. cleanup: function Catalog_cleanup() {
  3113. var promises = [];
  3114. this.fontCache.forEach(function (promise) {
  3115. promises.push(promise);
  3116. });
  3117. return Promise.all(promises).then(function (translatedFonts) {
  3118. for (var i = 0, ii = translatedFonts.length; i < ii; i++) {
  3119. var font = translatedFonts[i].dict;
  3120. delete font.translated;
  3121. }
  3122. this.fontCache.clear();
  3123. }.bind(this));
  3124. },
  3125. getPage: function Catalog_getPage(pageIndex) {
  3126. if (!(pageIndex in this.pagePromises)) {
  3127. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  3128. function (a) {
  3129. var dict = a[0];
  3130. var ref = a[1];
  3131. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  3132. this.fontCache);
  3133. }.bind(this)
  3134. );
  3135. }
  3136. return this.pagePromises[pageIndex];
  3137. },
  3138. getPageDict: function Catalog_getPageDict(pageIndex) {
  3139. var capability = createPromiseCapability();
  3140. var nodesToVisit = [this.catDict.getRaw('Pages')];
  3141. var currentPageIndex = 0;
  3142. var xref = this.xref;
  3143. function next() {
  3144. while (nodesToVisit.length) {
  3145. var currentNode = nodesToVisit.pop();
  3146. if (isRef(currentNode)) {
  3147. xref.fetchAsync(currentNode).then(function (obj) {
  3148. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  3149. if (pageIndex === currentPageIndex) {
  3150. capability.resolve([obj, currentNode]);
  3151. } else {
  3152. currentPageIndex++;
  3153. next();
  3154. }
  3155. return;
  3156. }
  3157. nodesToVisit.push(obj);
  3158. next();
  3159. }.bind(this), capability.reject.bind(capability));
  3160. return;
  3161. }
  3162. // must be a child page dictionary
  3163. assert(
  3164. isDict(currentNode),
  3165. 'page dictionary kid reference points to wrong type of object'
  3166. );
  3167. var count = currentNode.get('Count');
  3168. // Skip nodes where the page can't be.
  3169. if (currentPageIndex + count <= pageIndex) {
  3170. currentPageIndex += count;
  3171. continue;
  3172. }
  3173. var kids = currentNode.get('Kids');
  3174. assert(isArray(kids), 'page dictionary kids object is not an array');
  3175. if (count === kids.length) {
  3176. // Nodes that don't have the page have been skipped and this is the
  3177. // bottom of the tree which means the page requested must be a
  3178. // descendant of this pages node. Ideally we would just resolve the
  3179. // promise with the page ref here, but there is the case where more
  3180. // pages nodes could link to single a page (see issue 3666 pdf). To
  3181. // handle this push it back on the queue so if it is a pages node it
  3182. // will be descended into.
  3183. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  3184. currentPageIndex = pageIndex;
  3185. continue;
  3186. } else {
  3187. for (var last = kids.length - 1; last >= 0; last--) {
  3188. nodesToVisit.push(kids[last]);
  3189. }
  3190. }
  3191. }
  3192. capability.reject('Page index ' + pageIndex + ' not found.');
  3193. }
  3194. next();
  3195. return capability.promise;
  3196. },
  3197. getPageIndex: function Catalog_getPageIndex(ref) {
  3198. // The page tree nodes have the count of all the leaves below them. To get
  3199. // how many pages are before we just have to walk up the tree and keep
  3200. // adding the count of siblings to the left of the node.
  3201. var xref = this.xref;
  3202. function pagesBeforeRef(kidRef) {
  3203. var total = 0;
  3204. var parentRef;
  3205. return xref.fetchAsync(kidRef).then(function (node) {
  3206. if (!node) {
  3207. return null;
  3208. }
  3209. parentRef = node.getRaw('Parent');
  3210. return node.getAsync('Parent');
  3211. }).then(function (parent) {
  3212. if (!parent) {
  3213. return null;
  3214. }
  3215. return parent.getAsync('Kids');
  3216. }).then(function (kids) {
  3217. if (!kids) {
  3218. return null;
  3219. }
  3220. var kidPromises = [];
  3221. var found = false;
  3222. for (var i = 0; i < kids.length; i++) {
  3223. var kid = kids[i];
  3224. assert(isRef(kid), 'kids must be a ref');
  3225. if (kid.num == kidRef.num) {
  3226. found = true;
  3227. break;
  3228. }
  3229. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  3230. if (kid.has('Count')) {
  3231. var count = kid.get('Count');
  3232. total += count;
  3233. } else { // page leaf node
  3234. total++;
  3235. }
  3236. }));
  3237. }
  3238. if (!found) {
  3239. error('kid ref not found in parents kids');
  3240. }
  3241. return Promise.all(kidPromises).then(function () {
  3242. return [total, parentRef];
  3243. });
  3244. });
  3245. }
  3246. var total = 0;
  3247. function next(ref) {
  3248. return pagesBeforeRef(ref).then(function (args) {
  3249. if (!args) {
  3250. return total;
  3251. }
  3252. var count = args[0];
  3253. var parentRef = args[1];
  3254. total += count;
  3255. return next(parentRef);
  3256. });
  3257. }
  3258. return next(ref);
  3259. }
  3260. };
  3261. return Catalog;
  3262. })();
  3263. var XRef = (function XRefClosure() {
  3264. function XRef(stream, password) {
  3265. this.stream = stream;
  3266. this.entries = [];
  3267. this.xrefstms = {};
  3268. // prepare the XRef cache
  3269. this.cache = [];
  3270. this.password = password;
  3271. this.stats = {
  3272. streamTypes: [],
  3273. fontTypes: []
  3274. };
  3275. }
  3276. XRef.prototype = {
  3277. setStartXRef: function XRef_setStartXRef(startXRef) {
  3278. // Store the starting positions of xref tables as we process them
  3279. // so we can recover from missing data errors
  3280. this.startXRefQueue = [startXRef];
  3281. },
  3282. parse: function XRef_parse(recoveryMode) {
  3283. var trailerDict;
  3284. if (!recoveryMode) {
  3285. trailerDict = this.readXRef();
  3286. } else {
  3287. warn('Indexing all PDF objects');
  3288. trailerDict = this.indexObjects();
  3289. }
  3290. trailerDict.assignXref(this);
  3291. this.trailer = trailerDict;
  3292. var encrypt = trailerDict.get('Encrypt');
  3293. if (encrypt) {
  3294. var ids = trailerDict.get('ID');
  3295. var fileId = (ids && ids.length) ? ids[0] : '';
  3296. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  3297. this.password);
  3298. }
  3299. // get the root dictionary (catalog) object
  3300. if (!(this.root = trailerDict.get('Root'))) {
  3301. error('Invalid root reference');
  3302. }
  3303. },
  3304. processXRefTable: function XRef_processXRefTable(parser) {
  3305. if (!('tableState' in this)) {
  3306. // Stores state of the table as we process it so we can resume
  3307. // from middle of table in case of missing data error
  3308. this.tableState = {
  3309. entryNum: 0,
  3310. streamPos: parser.lexer.stream.pos,
  3311. parserBuf1: parser.buf1,
  3312. parserBuf2: parser.buf2
  3313. };
  3314. }
  3315. var obj = this.readXRefTable(parser);
  3316. // Sanity check
  3317. if (!isCmd(obj, 'trailer')) {
  3318. error('Invalid XRef table: could not find trailer dictionary');
  3319. }
  3320. // Read trailer dictionary, e.g.
  3321. // trailer
  3322. // << /Size 22
  3323. // /Root 20R
  3324. // /Info 10R
  3325. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  3326. // >>
  3327. // The parser goes through the entire stream << ... >> and provides
  3328. // a getter interface for the key-value table
  3329. var dict = parser.getObj();
  3330. // The pdflib PDF generator can generate a nested trailer dictionary
  3331. if (!isDict(dict) && dict.dict) {
  3332. dict = dict.dict;
  3333. }
  3334. if (!isDict(dict)) {
  3335. error('Invalid XRef table: could not parse trailer dictionary');
  3336. }
  3337. delete this.tableState;
  3338. return dict;
  3339. },
  3340. readXRefTable: function XRef_readXRefTable(parser) {
  3341. // Example of cross-reference table:
  3342. // xref
  3343. // 0 1 <-- subsection header (first obj #, obj count)
  3344. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  3345. // 23 2 <-- subsection header ... and so on ...
  3346. // 0000025518 00002 n
  3347. // 0000025635 00000 n
  3348. // trailer
  3349. // ...
  3350. var stream = parser.lexer.stream;
  3351. var tableState = this.tableState;
  3352. stream.pos = tableState.streamPos;
  3353. parser.buf1 = tableState.parserBuf1;
  3354. parser.buf2 = tableState.parserBuf2;
  3355. // Outer loop is over subsection headers
  3356. var obj;
  3357. while (true) {
  3358. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  3359. if (isCmd(obj = parser.getObj(), 'trailer')) {
  3360. break;
  3361. }
  3362. tableState.firstEntryNum = obj;
  3363. tableState.entryCount = parser.getObj();
  3364. }
  3365. var first = tableState.firstEntryNum;
  3366. var count = tableState.entryCount;
  3367. if (!isInt(first) || !isInt(count)) {
  3368. error('Invalid XRef table: wrong types in subsection header');
  3369. }
  3370. // Inner loop is over objects themselves
  3371. for (var i = tableState.entryNum; i < count; i++) {
  3372. tableState.streamPos = stream.pos;
  3373. tableState.entryNum = i;
  3374. tableState.parserBuf1 = parser.buf1;
  3375. tableState.parserBuf2 = parser.buf2;
  3376. var entry = {};
  3377. entry.offset = parser.getObj();
  3378. entry.gen = parser.getObj();
  3379. var type = parser.getObj();
  3380. if (isCmd(type, 'f')) {
  3381. entry.free = true;
  3382. } else if (isCmd(type, 'n')) {
  3383. entry.uncompressed = true;
  3384. }
  3385. // Validate entry obj
  3386. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  3387. !(entry.free || entry.uncompressed)) {
  3388. console.log(entry.offset, entry.gen, entry.free,
  3389. entry.uncompressed);
  3390. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  3391. }
  3392. if (!this.entries[i + first]) {
  3393. this.entries[i + first] = entry;
  3394. }
  3395. }
  3396. tableState.entryNum = 0;
  3397. tableState.streamPos = stream.pos;
  3398. tableState.parserBuf1 = parser.buf1;
  3399. tableState.parserBuf2 = parser.buf2;
  3400. delete tableState.firstEntryNum;
  3401. delete tableState.entryCount;
  3402. }
  3403. // Per issue 3248: hp scanners generate bad XRef
  3404. if (first === 1 && this.entries[1] && this.entries[1].free) {
  3405. // shifting the entries
  3406. this.entries.shift();
  3407. }
  3408. // Sanity check: as per spec, first object must be free
  3409. if (this.entries[0] && !this.entries[0].free) {
  3410. error('Invalid XRef table: unexpected first object');
  3411. }
  3412. return obj;
  3413. },
  3414. processXRefStream: function XRef_processXRefStream(stream) {
  3415. if (!('streamState' in this)) {
  3416. // Stores state of the stream as we process it so we can resume
  3417. // from middle of stream in case of missing data error
  3418. var streamParameters = stream.dict;
  3419. var byteWidths = streamParameters.get('W');
  3420. var range = streamParameters.get('Index');
  3421. if (!range) {
  3422. range = [0, streamParameters.get('Size')];
  3423. }
  3424. this.streamState = {
  3425. entryRanges: range,
  3426. byteWidths: byteWidths,
  3427. entryNum: 0,
  3428. streamPos: stream.pos
  3429. };
  3430. }
  3431. this.readXRefStream(stream);
  3432. delete this.streamState;
  3433. return stream.dict;
  3434. },
  3435. readXRefStream: function XRef_readXRefStream(stream) {
  3436. var i, j;
  3437. var streamState = this.streamState;
  3438. stream.pos = streamState.streamPos;
  3439. var byteWidths = streamState.byteWidths;
  3440. var typeFieldWidth = byteWidths[0];
  3441. var offsetFieldWidth = byteWidths[1];
  3442. var generationFieldWidth = byteWidths[2];
  3443. var entryRanges = streamState.entryRanges;
  3444. while (entryRanges.length > 0) {
  3445. var first = entryRanges[0];
  3446. var n = entryRanges[1];
  3447. if (!isInt(first) || !isInt(n)) {
  3448. error('Invalid XRef range fields: ' + first + ', ' + n);
  3449. }
  3450. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  3451. !isInt(generationFieldWidth)) {
  3452. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  3453. }
  3454. for (i = streamState.entryNum; i < n; ++i) {
  3455. streamState.entryNum = i;
  3456. streamState.streamPos = stream.pos;
  3457. var type = 0, offset = 0, generation = 0;
  3458. for (j = 0; j < typeFieldWidth; ++j) {
  3459. type = (type << 8) | stream.getByte();
  3460. }
  3461. // if type field is absent, its default value is 1
  3462. if (typeFieldWidth === 0) {
  3463. type = 1;
  3464. }
  3465. for (j = 0; j < offsetFieldWidth; ++j) {
  3466. offset = (offset << 8) | stream.getByte();
  3467. }
  3468. for (j = 0; j < generationFieldWidth; ++j) {
  3469. generation = (generation << 8) | stream.getByte();
  3470. }
  3471. var entry = {};
  3472. entry.offset = offset;
  3473. entry.gen = generation;
  3474. switch (type) {
  3475. case 0:
  3476. entry.free = true;
  3477. break;
  3478. case 1:
  3479. entry.uncompressed = true;
  3480. break;
  3481. case 2:
  3482. break;
  3483. default:
  3484. error('Invalid XRef entry type: ' + type);
  3485. }
  3486. if (!this.entries[first + i]) {
  3487. this.entries[first + i] = entry;
  3488. }
  3489. }
  3490. streamState.entryNum = 0;
  3491. streamState.streamPos = stream.pos;
  3492. entryRanges.splice(0, 2);
  3493. }
  3494. },
  3495. indexObjects: function XRef_indexObjects() {
  3496. // Simple scan through the PDF content to find objects,
  3497. // trailers and XRef streams.
  3498. function readToken(data, offset) {
  3499. var token = '', ch = data[offset];
  3500. while (ch !== 13 && ch !== 10) {
  3501. if (++offset >= data.length) {
  3502. break;
  3503. }
  3504. token += String.fromCharCode(ch);
  3505. ch = data[offset];
  3506. }
  3507. return token;
  3508. }
  3509. function skipUntil(data, offset, what) {
  3510. var length = what.length, dataLength = data.length;
  3511. var skipped = 0;
  3512. // finding byte sequence
  3513. while (offset < dataLength) {
  3514. var i = 0;
  3515. while (i < length && data[offset + i] == what[i]) {
  3516. ++i;
  3517. }
  3518. if (i >= length) {
  3519. break; // sequence found
  3520. }
  3521. offset++;
  3522. skipped++;
  3523. }
  3524. return skipped;
  3525. }
  3526. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  3527. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  3528. 101, 102]);
  3529. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  3530. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  3531. var stream = this.stream;
  3532. stream.pos = 0;
  3533. var buffer = stream.getBytes();
  3534. var position = stream.start, length = buffer.length;
  3535. var trailers = [], xrefStms = [];
  3536. while (position < length) {
  3537. var ch = buffer[position];
  3538. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  3539. ++position;
  3540. continue;
  3541. }
  3542. if (ch === 37) { // %-comment
  3543. do {
  3544. ++position;
  3545. if (position >= length) {
  3546. break;
  3547. }
  3548. ch = buffer[position];
  3549. } while (ch !== 13 && ch !== 10);
  3550. continue;
  3551. }
  3552. var token = readToken(buffer, position);
  3553. var m;
  3554. if (token === 'xref') {
  3555. position += skipUntil(buffer, position, trailerBytes);
  3556. trailers.push(position);
  3557. position += skipUntil(buffer, position, startxrefBytes);
  3558. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  3559. this.entries[m[1]] = {
  3560. offset: position,
  3561. gen: m[2] | 0,
  3562. uncompressed: true
  3563. };
  3564. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  3565. var content = buffer.subarray(position, position + contentLength);
  3566. // checking XRef stream suspect
  3567. // (it shall have '/XRef' and next char is not a letter)
  3568. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  3569. if (xrefTagOffset < contentLength &&
  3570. content[xrefTagOffset + 5] < 64) {
  3571. xrefStms.push(position);
  3572. this.xrefstms[position] = 1; // don't read it recursively
  3573. }
  3574. position += contentLength;
  3575. } else {
  3576. position += token.length + 1;
  3577. }
  3578. }
  3579. // reading XRef streams
  3580. var i, ii;
  3581. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  3582. this.startXRefQueue.push(xrefStms[i]);
  3583. this.readXRef(/* recoveryMode */ true);
  3584. }
  3585. // finding main trailer
  3586. var dict;
  3587. for (i = 0, ii = trailers.length; i < ii; ++i) {
  3588. stream.pos = trailers[i];
  3589. var parser = new Parser(new Lexer(stream), true, this);
  3590. var obj = parser.getObj();
  3591. if (!isCmd(obj, 'trailer')) {
  3592. continue;
  3593. }
  3594. // read the trailer dictionary
  3595. if (!isDict(dict = parser.getObj())) {
  3596. continue;
  3597. }
  3598. // taking the first one with 'ID'
  3599. if (dict.has('ID')) {
  3600. return dict;
  3601. }
  3602. }
  3603. // no tailer with 'ID', taking last one (if exists)
  3604. if (dict) {
  3605. return dict;
  3606. }
  3607. // nothing helps
  3608. // calling error() would reject worker with an UnknownErrorException.
  3609. throw new InvalidPDFException('Invalid PDF structure');
  3610. },
  3611. readXRef: function XRef_readXRef(recoveryMode) {
  3612. var stream = this.stream;
  3613. try {
  3614. while (this.startXRefQueue.length) {
  3615. var startXRef = this.startXRefQueue[0];
  3616. stream.pos = startXRef + stream.start;
  3617. var parser = new Parser(new Lexer(stream), true, this);
  3618. var obj = parser.getObj();
  3619. var dict;
  3620. // Get dictionary
  3621. if (isCmd(obj, 'xref')) {
  3622. // Parse end-of-file XRef
  3623. dict = this.processXRefTable(parser);
  3624. if (!this.topDict) {
  3625. this.topDict = dict;
  3626. }
  3627. // Recursively get other XRefs 'XRefStm', if any
  3628. obj = dict.get('XRefStm');
  3629. if (isInt(obj)) {
  3630. var pos = obj;
  3631. // ignore previously loaded xref streams
  3632. // (possible infinite recursion)
  3633. if (!(pos in this.xrefstms)) {
  3634. this.xrefstms[pos] = 1;
  3635. this.startXRefQueue.push(pos);
  3636. }
  3637. }
  3638. } else if (isInt(obj)) {
  3639. // Parse in-stream XRef
  3640. if (!isInt(parser.getObj()) ||
  3641. !isCmd(parser.getObj(), 'obj') ||
  3642. !isStream(obj = parser.getObj())) {
  3643. error('Invalid XRef stream');
  3644. }
  3645. dict = this.processXRefStream(obj);
  3646. if (!this.topDict) {
  3647. this.topDict = dict;
  3648. }
  3649. if (!dict) {
  3650. error('Failed to read XRef stream');
  3651. }
  3652. } else {
  3653. error('Invalid XRef stream header');
  3654. }
  3655. // Recursively get previous dictionary, if any
  3656. obj = dict.get('Prev');
  3657. if (isInt(obj)) {
  3658. this.startXRefQueue.push(obj);
  3659. } else if (isRef(obj)) {
  3660. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  3661. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  3662. this.startXRefQueue.push(obj.num);
  3663. }
  3664. this.startXRefQueue.shift();
  3665. }
  3666. return this.topDict;
  3667. } catch (e) {
  3668. if (e instanceof MissingDataException) {
  3669. throw e;
  3670. }
  3671. info('(while reading XRef): ' + e);
  3672. }
  3673. if (recoveryMode) {
  3674. return;
  3675. }
  3676. throw new XRefParseException();
  3677. },
  3678. getEntry: function XRef_getEntry(i) {
  3679. var xrefEntry = this.entries[i];
  3680. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  3681. return xrefEntry;
  3682. }
  3683. return null;
  3684. },
  3685. fetchIfRef: function XRef_fetchIfRef(obj) {
  3686. if (!isRef(obj)) {
  3687. return obj;
  3688. }
  3689. return this.fetch(obj);
  3690. },
  3691. fetch: function XRef_fetch(ref, suppressEncryption) {
  3692. assert(isRef(ref), 'ref object is not a reference');
  3693. var num = ref.num;
  3694. if (num in this.cache) {
  3695. var cacheEntry = this.cache[num];
  3696. return cacheEntry;
  3697. }
  3698. var xrefEntry = this.getEntry(num);
  3699. // the referenced entry can be free
  3700. if (xrefEntry === null) {
  3701. return (this.cache[num] = null);
  3702. }
  3703. if (xrefEntry.uncompressed) {
  3704. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  3705. } else {
  3706. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  3707. }
  3708. if (isDict(xrefEntry)){
  3709. xrefEntry.objId = ref.toString();
  3710. } else if (isStream(xrefEntry)) {
  3711. xrefEntry.dict.objId = ref.toString();
  3712. }
  3713. return xrefEntry;
  3714. },
  3715. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  3716. suppressEncryption) {
  3717. var gen = ref.gen;
  3718. var num = ref.num;
  3719. if (xrefEntry.gen !== gen) {
  3720. error('inconsistent generation in XRef');
  3721. }
  3722. var stream = this.stream.makeSubStream(xrefEntry.offset +
  3723. this.stream.start);
  3724. var parser = new Parser(new Lexer(stream), true, this);
  3725. var obj1 = parser.getObj();
  3726. var obj2 = parser.getObj();
  3727. var obj3 = parser.getObj();
  3728. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  3729. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  3730. !isCmd(obj3)) {
  3731. error('bad XRef entry');
  3732. }
  3733. if (!isCmd(obj3, 'obj')) {
  3734. // some bad PDFs use "obj1234" and really mean 1234
  3735. if (obj3.cmd.indexOf('obj') === 0) {
  3736. num = parseInt(obj3.cmd.substring(3), 10);
  3737. if (!isNaN(num)) {
  3738. return num;
  3739. }
  3740. }
  3741. error('bad XRef entry');
  3742. }
  3743. if (this.encrypt && !suppressEncryption) {
  3744. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num, gen));
  3745. } else {
  3746. xrefEntry = parser.getObj();
  3747. }
  3748. if (!isStream(xrefEntry)) {
  3749. this.cache[num] = xrefEntry;
  3750. }
  3751. return xrefEntry;
  3752. },
  3753. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  3754. suppressEncryption) {
  3755. var tableOffset = xrefEntry.offset;
  3756. var stream = this.fetch(new Ref(tableOffset, 0));
  3757. if (!isStream(stream)) {
  3758. error('bad ObjStm stream');
  3759. }
  3760. var first = stream.dict.get('First');
  3761. var n = stream.dict.get('N');
  3762. if (!isInt(first) || !isInt(n)) {
  3763. error('invalid first and n parameters for ObjStm stream');
  3764. }
  3765. var parser = new Parser(new Lexer(stream), false, this);
  3766. parser.allowStreams = true;
  3767. var i, entries = [], num, nums = [];
  3768. // read the object numbers to populate cache
  3769. for (i = 0; i < n; ++i) {
  3770. num = parser.getObj();
  3771. if (!isInt(num)) {
  3772. error('invalid object number in the ObjStm stream: ' + num);
  3773. }
  3774. nums.push(num);
  3775. var offset = parser.getObj();
  3776. if (!isInt(offset)) {
  3777. error('invalid object offset in the ObjStm stream: ' + offset);
  3778. }
  3779. }
  3780. // read stream objects for cache
  3781. for (i = 0; i < n; ++i) {
  3782. entries.push(parser.getObj());
  3783. num = nums[i];
  3784. var entry = this.entries[num];
  3785. if (entry && entry.offset === tableOffset && entry.gen === i) {
  3786. this.cache[num] = entries[i];
  3787. }
  3788. }
  3789. xrefEntry = entries[xrefEntry.gen];
  3790. if (xrefEntry === undefined) {
  3791. error('bad XRef entry for compressed object');
  3792. }
  3793. return xrefEntry;
  3794. },
  3795. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  3796. if (!isRef(obj)) {
  3797. return Promise.resolve(obj);
  3798. }
  3799. return this.fetchAsync(obj);
  3800. },
  3801. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  3802. return new Promise(function (resolve, reject) {
  3803. var tryFetch = function () {
  3804. try {
  3805. resolve(this.fetch(ref, suppressEncryption));
  3806. } catch (e) {
  3807. if (e instanceof MissingDataException) {
  3808. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  3809. return;
  3810. }
  3811. reject(e);
  3812. }
  3813. }.bind(this);
  3814. tryFetch();
  3815. }.bind(this));
  3816. },
  3817. getCatalogObj: function XRef_getCatalogObj() {
  3818. return this.root;
  3819. }
  3820. };
  3821. return XRef;
  3822. })();
  3823. /**
  3824. * A NameTree is like a Dict but has some advantageous properties, see the
  3825. * spec (7.9.6) for more details.
  3826. * TODO: implement all the Dict functions and make this more efficent.
  3827. */
  3828. var NameTree = (function NameTreeClosure() {
  3829. function NameTree(root, xref) {
  3830. this.root = root;
  3831. this.xref = xref;
  3832. }
  3833. NameTree.prototype = {
  3834. getAll: function NameTree_getAll() {
  3835. var dict = {};
  3836. if (!this.root) {
  3837. return dict;
  3838. }
  3839. var xref = this.xref;
  3840. // reading name tree
  3841. var processed = new RefSet();
  3842. processed.put(this.root);
  3843. var queue = [this.root];
  3844. while (queue.length > 0) {
  3845. var i, n;
  3846. var obj = xref.fetchIfRef(queue.shift());
  3847. if (!isDict(obj)) {
  3848. continue;
  3849. }
  3850. if (obj.has('Kids')) {
  3851. var kids = obj.get('Kids');
  3852. for (i = 0, n = kids.length; i < n; i++) {
  3853. var kid = kids[i];
  3854. if (processed.has(kid)) {
  3855. error('invalid destinations');
  3856. }
  3857. queue.push(kid);
  3858. processed.put(kid);
  3859. }
  3860. continue;
  3861. }
  3862. var names = obj.get('Names');
  3863. if (names) {
  3864. for (i = 0, n = names.length; i < n; i += 2) {
  3865. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  3866. }
  3867. }
  3868. }
  3869. return dict;
  3870. }
  3871. };
  3872. return NameTree;
  3873. })();
  3874. /**
  3875. * "A PDF file can refer to the contents of another file by using a File
  3876. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  3877. * NOTE: Only embedded files are supported (as part of the attachments support)
  3878. * TODO: support the 'URL' file system (with caching if !/V), portable
  3879. * collections attributes and related files (/RF)
  3880. */
  3881. var FileSpec = (function FileSpecClosure() {
  3882. function FileSpec(root, xref) {
  3883. if (!root || !isDict(root)) {
  3884. return;
  3885. }
  3886. this.xref = xref;
  3887. this.root = root;
  3888. if (root.has('FS')) {
  3889. this.fs = root.get('FS');
  3890. }
  3891. this.description = root.has('Desc') ?
  3892. stringToPDFString(root.get('Desc')) :
  3893. '';
  3894. if (root.has('RF')) {
  3895. warn('Related file specifications are not supported');
  3896. }
  3897. this.contentAvailable = true;
  3898. if (!root.has('EF')) {
  3899. this.contentAvailable = false;
  3900. warn('Non-embedded file specifications are not supported');
  3901. }
  3902. }
  3903. function pickPlatformItem(dict) {
  3904. // Look for the filename in this order:
  3905. // UF, F, Unix, Mac, DOS
  3906. if (dict.has('UF')) {
  3907. return dict.get('UF');
  3908. } else if (dict.has('F')) {
  3909. return dict.get('F');
  3910. } else if (dict.has('Unix')) {
  3911. return dict.get('Unix');
  3912. } else if (dict.has('Mac')) {
  3913. return dict.get('Mac');
  3914. } else if (dict.has('DOS')) {
  3915. return dict.get('DOS');
  3916. } else {
  3917. return null;
  3918. }
  3919. }
  3920. FileSpec.prototype = {
  3921. get filename() {
  3922. if (!this._filename && this.root) {
  3923. var filename = pickPlatformItem(this.root) || 'unnamed';
  3924. this._filename = stringToPDFString(filename).
  3925. replace(/\\\\/g, '\\').
  3926. replace(/\\\//g, '/').
  3927. replace(/\\/g, '/');
  3928. }
  3929. return this._filename;
  3930. },
  3931. get content() {
  3932. if (!this.contentAvailable) {
  3933. return null;
  3934. }
  3935. if (!this.contentRef && this.root) {
  3936. this.contentRef = pickPlatformItem(this.root.get('EF'));
  3937. }
  3938. var content = null;
  3939. if (this.contentRef) {
  3940. var xref = this.xref;
  3941. var fileObj = xref.fetchIfRef(this.contentRef);
  3942. if (fileObj && isStream(fileObj)) {
  3943. content = fileObj.getBytes();
  3944. } else {
  3945. warn('Embedded file specification points to non-existing/invalid ' +
  3946. 'content');
  3947. }
  3948. } else {
  3949. warn('Embedded file specification does not have a content');
  3950. }
  3951. return content;
  3952. },
  3953. get serializable() {
  3954. return {
  3955. filename: this.filename,
  3956. content: this.content
  3957. };
  3958. }
  3959. };
  3960. return FileSpec;
  3961. })();
  3962. /**
  3963. * A helper for loading missing data in object graphs. It traverses the graph
  3964. * depth first and queues up any objects that have missing data. Once it has
  3965. * has traversed as many objects that are available it attempts to bundle the
  3966. * missing data requests and then resume from the nodes that weren't ready.
  3967. *
  3968. * NOTE: It provides protection from circular references by keeping track of
  3969. * of loaded references. However, you must be careful not to load any graphs
  3970. * that have references to the catalog or other pages since that will cause the
  3971. * entire PDF document object graph to be traversed.
  3972. */
  3973. var ObjectLoader = (function() {
  3974. function mayHaveChildren(value) {
  3975. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  3976. }
  3977. function addChildren(node, nodesToVisit) {
  3978. var value;
  3979. if (isDict(node) || isStream(node)) {
  3980. var map;
  3981. if (isDict(node)) {
  3982. map = node.map;
  3983. } else {
  3984. map = node.dict.map;
  3985. }
  3986. for (var key in map) {
  3987. value = map[key];
  3988. if (mayHaveChildren(value)) {
  3989. nodesToVisit.push(value);
  3990. }
  3991. }
  3992. } else if (isArray(node)) {
  3993. for (var i = 0, ii = node.length; i < ii; i++) {
  3994. value = node[i];
  3995. if (mayHaveChildren(value)) {
  3996. nodesToVisit.push(value);
  3997. }
  3998. }
  3999. }
  4000. }
  4001. function ObjectLoader(obj, keys, xref) {
  4002. this.obj = obj;
  4003. this.keys = keys;
  4004. this.xref = xref;
  4005. this.refSet = null;
  4006. }
  4007. ObjectLoader.prototype = {
  4008. load: function ObjectLoader_load() {
  4009. var keys = this.keys;
  4010. this.capability = createPromiseCapability();
  4011. // Don't walk the graph if all the data is already loaded.
  4012. if (!(this.xref.stream instanceof ChunkedStream) ||
  4013. this.xref.stream.getMissingChunks().length === 0) {
  4014. this.capability.resolve();
  4015. return this.capability.promise;
  4016. }
  4017. this.refSet = new RefSet();
  4018. // Setup the initial nodes to visit.
  4019. var nodesToVisit = [];
  4020. for (var i = 0; i < keys.length; i++) {
  4021. nodesToVisit.push(this.obj[keys[i]]);
  4022. }
  4023. this.walk(nodesToVisit);
  4024. return this.capability.promise;
  4025. },
  4026. walk: function ObjectLoader_walk(nodesToVisit) {
  4027. var nodesToRevisit = [];
  4028. var pendingRequests = [];
  4029. // DFS walk of the object graph.
  4030. while (nodesToVisit.length) {
  4031. var currentNode = nodesToVisit.pop();
  4032. // Only references or chunked streams can cause missing data exceptions.
  4033. if (isRef(currentNode)) {
  4034. // Skip nodes that have already been visited.
  4035. if (this.refSet.has(currentNode)) {
  4036. continue;
  4037. }
  4038. try {
  4039. var ref = currentNode;
  4040. this.refSet.put(ref);
  4041. currentNode = this.xref.fetch(currentNode);
  4042. } catch (e) {
  4043. if (!(e instanceof MissingDataException)) {
  4044. throw e;
  4045. }
  4046. nodesToRevisit.push(currentNode);
  4047. pendingRequests.push({ begin: e.begin, end: e.end });
  4048. }
  4049. }
  4050. if (currentNode && currentNode.getBaseStreams) {
  4051. var baseStreams = currentNode.getBaseStreams();
  4052. var foundMissingData = false;
  4053. for (var i = 0; i < baseStreams.length; i++) {
  4054. var stream = baseStreams[i];
  4055. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  4056. foundMissingData = true;
  4057. pendingRequests.push({
  4058. begin: stream.start,
  4059. end: stream.end
  4060. });
  4061. }
  4062. }
  4063. if (foundMissingData) {
  4064. nodesToRevisit.push(currentNode);
  4065. }
  4066. }
  4067. addChildren(currentNode, nodesToVisit);
  4068. }
  4069. if (pendingRequests.length) {
  4070. this.xref.stream.manager.requestRanges(pendingRequests,
  4071. function pendingRequestCallback() {
  4072. nodesToVisit = nodesToRevisit;
  4073. for (var i = 0; i < nodesToRevisit.length; i++) {
  4074. var node = nodesToRevisit[i];
  4075. // Remove any reference nodes from the currrent refset so they
  4076. // aren't skipped when we revist them.
  4077. if (isRef(node)) {
  4078. this.refSet.remove(node);
  4079. }
  4080. }
  4081. this.walk(nodesToVisit);
  4082. }.bind(this));
  4083. return;
  4084. }
  4085. // Everything is loaded.
  4086. this.refSet = null;
  4087. this.capability.resolve();
  4088. }
  4089. };
  4090. return ObjectLoader;
  4091. })();
  4092. var ISOAdobeCharset = [
  4093. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  4094. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  4095. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  4096. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  4097. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  4098. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  4099. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  4100. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  4101. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  4102. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  4103. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  4104. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  4105. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  4106. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  4107. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  4108. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  4109. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  4110. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  4111. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  4112. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  4113. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  4114. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  4115. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  4116. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  4117. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  4118. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  4119. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  4120. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  4121. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  4122. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  4123. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  4124. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  4125. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  4126. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  4127. ];
  4128. var ExpertCharset = [
  4129. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  4130. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  4131. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  4132. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  4133. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  4134. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  4135. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  4136. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  4137. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4138. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4139. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4140. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  4141. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  4142. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  4143. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  4144. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  4145. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  4146. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  4147. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  4148. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  4149. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  4150. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  4151. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4152. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4153. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4154. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4155. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4156. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4157. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  4158. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  4159. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  4160. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  4161. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  4162. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  4163. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  4164. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  4165. 'Ydieresissmall'
  4166. ];
  4167. var ExpertSubsetCharset = [
  4168. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  4169. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  4170. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  4171. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  4172. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  4173. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  4174. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  4175. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4176. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4177. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4178. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  4179. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  4180. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  4181. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4182. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4183. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4184. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4185. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4186. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4187. 'periodinferior', 'commainferior'
  4188. ];
  4189. var CIDToUnicodeMaps = {
  4190. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  4191. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  4192. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  4193. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  4194. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  4195. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  4196. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  4197. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  4198. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  4199. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  4200. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  4201. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  4202. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  4203. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  4204. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  4205. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  4206. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  4207. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  4208. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  4209. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  4210. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  4211. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  4212. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  4213. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  4214. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  4215. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  4216. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  4217. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  4218. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  4219. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  4220. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  4221. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  4222. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  4223. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  4224. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  4225. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  4226. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  4227. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  4228. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  4229. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  4230. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  4231. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  4232. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  4233. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  4234. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  4235. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  4236. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  4237. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  4238. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  4239. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  4240. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  4241. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  4242. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  4243. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  4244. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  4245. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  4246. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  4247. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  4248. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  4249. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  4250. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  4251. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  4252. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  4253. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  4254. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  4255. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  4256. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  4257. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  4258. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  4259. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  4260. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  4261. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  4262. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  4263. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  4264. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  4265. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  4266. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  4267. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  4268. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  4269. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  4270. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  4271. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  4272. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  4273. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  4274. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  4275. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  4276. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  4277. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  4278. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  4279. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  4280. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  4281. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  4282. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  4283. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  4284. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  4285. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  4286. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  4287. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  4288. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  4289. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  4290. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  4291. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  4292. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  4293. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  4294. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  4295. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  4296. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  4297. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  4298. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  4299. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  4300. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  4301. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  4302. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  4303. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  4304. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  4305. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  4306. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  4307. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  4308. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  4309. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  4310. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  4311. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  4312. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  4313. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  4314. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  4315. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  4316. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  4317. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  4318. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  4319. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  4320. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  4321. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  4322. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  4323. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  4324. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  4325. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  4326. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  4327. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  4328. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  4329. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  4330. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  4331. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  4332. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  4333. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  4334. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  4335. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  4336. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  4337. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  4338. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  4339. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  4340. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  4341. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  4342. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  4343. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  4344. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  4345. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  4346. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  4347. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  4348. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  4349. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  4350. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  4351. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  4352. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  4353. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  4354. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  4355. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  4356. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  4357. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  4358. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  4359. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  4360. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  4361. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  4362. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  4363. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  4364. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  4365. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  4366. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  4367. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  4368. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  4369. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  4370. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  4371. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  4372. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  4373. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  4374. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  4375. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  4376. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  4377. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  4378. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  4379. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  4380. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  4381. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  4382. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  4383. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  4384. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  4385. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  4386. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  4387. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  4388. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  4389. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  4390. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  4391. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  4392. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  4393. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  4394. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  4395. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  4396. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  4397. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  4398. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  4399. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  4400. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  4401. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  4402. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  4403. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  4404. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  4405. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  4406. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  4407. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  4408. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  4409. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  4410. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  4411. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  4412. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  4413. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  4414. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  4415. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  4416. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  4417. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  4418. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  4419. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  4420. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  4421. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  4422. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  4423. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  4424. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  4425. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  4426. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  4427. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  4428. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  4429. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  4430. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  4431. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  4432. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  4433. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  4434. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  4435. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  4436. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  4437. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  4438. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  4439. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  4440. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  4441. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  4442. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  4443. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  4444. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  4445. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  4446. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  4447. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  4448. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  4449. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  4450. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  4451. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  4452. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  4453. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  4454. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  4455. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  4456. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  4457. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  4458. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  4459. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  4460. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  4461. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  4462. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  4463. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  4464. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  4465. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  4466. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  4467. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  4468. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  4469. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  4470. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  4471. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  4472. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  4473. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  4474. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  4475. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  4476. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  4477. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  4478. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  4479. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  4480. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  4481. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  4482. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  4483. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  4484. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  4485. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  4486. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  4487. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  4488. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  4489. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  4490. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  4491. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  4492. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  4493. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  4494. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  4495. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  4496. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  4497. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  4498. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  4499. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  4500. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  4501. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  4502. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  4503. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  4504. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  4505. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  4506. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  4507. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  4508. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  4509. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  4510. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  4511. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  4512. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  4513. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  4514. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  4515. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  4516. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  4517. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  4518. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  4519. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  4520. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  4521. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  4522. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  4523. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  4524. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  4525. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  4526. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  4527. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  4528. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  4529. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  4530. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  4531. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  4532. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  4533. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  4534. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  4535. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  4536. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  4537. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  4538. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  4539. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  4540. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  4541. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  4542. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  4543. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  4544. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  4545. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  4546. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  4547. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  4548. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  4549. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  4550. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  4551. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  4552. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  4553. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  4554. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  4555. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  4556. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  4557. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  4558. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  4559. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  4560. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  4561. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  4562. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  4563. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  4564. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  4565. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  4566. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  4567. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  4568. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  4569. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  4570. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  4571. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  4572. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  4573. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  4574. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  4575. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  4576. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  4577. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  4578. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  4579. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  4580. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  4581. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  4582. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  4583. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  4584. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  4585. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  4586. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  4587. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  4588. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  4589. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  4590. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  4591. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  4592. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  4593. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  4594. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  4595. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  4596. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  4597. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  4598. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  4599. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  4600. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  4601. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  4602. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  4603. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  4604. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  4605. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  4606. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  4607. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  4608. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  4609. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  4610. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  4611. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  4612. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  4613. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  4614. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  4615. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  4616. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  4617. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  4618. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  4619. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  4620. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  4621. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  4622. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  4623. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  4624. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  4625. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  4626. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  4627. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  4628. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  4629. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  4630. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  4631. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  4632. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  4633. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  4634. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  4635. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  4636. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  4637. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  4638. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  4639. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  4640. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  4641. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  4642. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  4643. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  4644. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  4645. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  4646. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  4647. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  4648. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  4649. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  4650. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  4651. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  4652. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  4653. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  4654. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  4655. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  4656. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  4657. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  4658. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  4659. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  4660. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  4661. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  4662. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  4663. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  4664. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  4665. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  4666. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  4667. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  4668. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  4669. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  4670. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  4671. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  4672. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  4673. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  4674. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  4675. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  4676. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  4677. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  4678. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  4679. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  4680. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  4681. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  4682. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  4683. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  4684. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  4685. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  4686. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  4687. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  4688. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  4689. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  4690. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  4691. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  4692. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  4693. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  4694. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  4695. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  4696. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  4697. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  4698. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  4699. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  4700. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  4701. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  4702. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  4703. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  4704. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  4705. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  4706. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  4707. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  4708. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  4709. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  4710. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  4711. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  4712. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  4713. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  4714. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  4715. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  4716. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  4717. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  4718. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  4719. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  4720. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  4721. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  4722. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  4723. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  4724. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  4725. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  4726. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  4727. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  4728. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  4729. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  4730. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  4731. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  4732. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  4733. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  4734. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  4735. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  4736. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  4737. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  4738. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  4739. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  4740. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  4741. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  4742. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  4743. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  4744. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  4745. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  4746. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  4747. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  4748. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  4749. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  4750. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  4751. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  4752. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  4753. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  4754. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  4755. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  4756. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  4757. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  4758. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  4759. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  4760. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  4761. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  4762. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  4763. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  4764. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  4765. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  4766. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  4767. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  4768. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  4769. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  4770. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  4771. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  4772. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  4773. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  4774. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  4775. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  4776. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  4777. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  4778. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  4779. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  4780. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  4781. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  4782. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  4783. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  4784. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  4785. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  4786. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  4787. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  4788. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  4789. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  4790. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  4791. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  4792. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  4793. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  4794. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  4795. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  4796. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  4797. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  4798. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  4799. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  4800. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  4801. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  4802. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  4803. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  4804. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  4805. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  4806. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  4807. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  4808. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  4809. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  4810. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  4811. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  4812. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  4813. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  4814. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  4815. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  4816. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  4817. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  4818. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  4819. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  4820. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  4821. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  4822. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  4823. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  4824. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  4825. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  4826. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  4827. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  4828. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  4829. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  4830. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  4831. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  4832. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  4833. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  4834. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  4835. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  4836. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  4837. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  4838. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  4839. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  4840. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  4841. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  4842. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  4843. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  4844. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  4845. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  4846. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  4847. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  4848. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  4849. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  4850. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  4851. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  4852. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  4853. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  4854. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  4855. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  4856. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  4857. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  4858. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  4859. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  4860. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  4861. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  4862. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  4863. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  4864. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  4865. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  4866. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  4867. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  4868. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  4869. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  4870. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  4871. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  4872. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  4873. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  4874. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  4875. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  4876. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  4877. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  4878. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  4879. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  4880. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  4881. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  4882. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  4883. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  4884. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  4885. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  4886. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  4887. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  4888. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  4889. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  4890. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  4891. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  4892. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  4893. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  4894. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  4895. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  4896. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  4897. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  4898. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  4899. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  4900. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  4901. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  4902. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  4903. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  4904. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  4905. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  4906. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  4907. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  4908. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  4909. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  4910. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  4911. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  4912. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  4913. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  4914. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  4915. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  4916. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  4917. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  4918. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  4919. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  4920. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  4921. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  4922. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  4923. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  4924. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  4925. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  4926. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  4927. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  4928. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  4929. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  4930. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  4931. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  4932. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  4933. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  4934. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  4935. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  4936. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  4937. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  4938. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  4939. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  4940. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  4941. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  4942. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  4943. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  4944. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  4945. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  4946. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  4947. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  4948. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  4949. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  4950. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  4951. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  4952. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  4953. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  4954. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  4955. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  4956. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  4957. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  4958. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  4959. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  4960. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  4961. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  4962. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  4963. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  4964. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  4965. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  4966. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  4967. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  4968. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  4969. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  4970. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  4971. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  4972. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  4973. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  4974. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  4975. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  4976. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  4977. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  4978. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  4979. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  4980. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  4981. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  4982. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  4983. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  4984. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  4985. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  4986. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  4987. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  4988. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  4989. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  4990. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  4991. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  4992. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  4993. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  4994. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  4995. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  4996. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  4997. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  4998. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  4999. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  5000. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  5001. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  5002. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  5003. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  5004. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  5005. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  5006. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  5007. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  5008. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  5009. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  5010. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  5011. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  5012. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  5013. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  5014. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  5015. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  5016. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  5017. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  5018. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  5019. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  5020. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  5021. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  5022. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  5023. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  5024. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  5025. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  5026. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  5027. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  5028. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  5029. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  5030. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  5031. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  5032. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  5033. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  5034. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  5035. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  5036. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  5037. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  5038. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  5039. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  5040. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  5041. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  5042. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  5043. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  5044. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  5045. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  5046. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  5047. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  5048. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  5049. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  5050. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  5051. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  5052. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  5053. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  5054. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  5055. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  5056. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  5057. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  5058. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  5059. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  5060. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  5061. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  5062. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  5063. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  5064. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  5065. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  5066. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  5067. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  5068. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  5069. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  5070. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  5071. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  5072. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  5073. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  5074. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  5075. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  5076. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  5077. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  5078. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  5079. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  5080. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  5081. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  5082. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  5083. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  5084. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  5085. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  5086. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  5087. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  5088. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  5089. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  5090. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  5091. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  5092. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  5093. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  5094. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  5095. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  5096. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  5097. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  5098. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  5099. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  5100. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  5101. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  5102. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  5103. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  5104. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  5105. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  5106. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  5107. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  5108. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  5109. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  5110. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  5111. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  5112. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  5113. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  5114. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  5115. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  5116. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  5117. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  5118. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  5119. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  5120. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  5121. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  5122. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  5123. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  5124. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  5125. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  5126. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  5127. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  5128. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  5129. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  5130. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  5131. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  5132. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  5133. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  5134. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  5135. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  5136. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  5137. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  5138. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  5139. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  5140. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  5141. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  5142. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  5143. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  5144. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  5145. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  5146. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  5147. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  5148. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  5149. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  5150. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  5151. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  5152. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  5153. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  5154. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  5155. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  5156. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  5157. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  5158. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  5159. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  5160. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  5161. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  5162. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  5163. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  5164. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  5165. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  5166. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  5167. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  5168. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  5169. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  5170. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  5171. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  5172. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  5173. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  5174. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  5175. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  5176. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  5177. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  5178. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  5179. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  5180. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  5181. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  5182. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  5183. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  5184. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  5185. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  5186. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  5187. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  5188. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  5189. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  5190. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  5191. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  5192. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  5193. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  5194. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  5195. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  5196. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  5197. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  5198. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  5199. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  5200. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  5201. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  5202. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  5203. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  5204. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  5205. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  5206. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  5207. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  5208. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  5209. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  5210. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  5211. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  5212. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  5213. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  5214. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  5215. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  5216. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  5217. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  5218. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  5219. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  5220. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  5221. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  5222. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  5223. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  5224. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  5225. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  5226. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  5227. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  5228. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  5229. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  5230. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  5231. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  5232. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  5233. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  5234. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  5235. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  5236. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  5237. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  5238. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  5239. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  5240. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  5241. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  5242. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  5243. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  5244. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  5245. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  5246. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  5247. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  5248. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  5249. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  5250. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  5251. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  5252. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  5253. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  5254. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  5255. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  5256. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  5257. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  5258. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  5259. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  5260. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  5261. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  5262. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  5263. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  5264. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  5265. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  5266. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  5267. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  5268. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  5269. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  5270. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  5271. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  5272. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  5273. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  5274. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  5275. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  5276. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  5277. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  5278. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  5279. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  5280. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  5281. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  5282. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  5283. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  5284. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  5285. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  5286. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  5287. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  5288. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  5289. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  5290. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  5291. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  5292. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  5293. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  5294. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  5295. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  5296. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  5297. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  5298. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  5299. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  5300. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  5301. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  5302. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  5303. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  5304. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  5305. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  5306. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  5307. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  5308. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  5309. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  5310. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  5311. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  5312. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  5313. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  5314. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  5315. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  5316. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  5317. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  5318. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  5319. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  5320. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  5321. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  5322. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  5323. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  5324. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  5325. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  5326. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  5327. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  5328. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  5329. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  5330. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  5331. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  5332. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  5333. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  5334. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  5335. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  5336. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  5337. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  5338. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  5339. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  5340. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  5341. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  5342. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  5343. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  5344. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  5345. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  5346. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  5347. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  5348. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  5349. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  5350. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  5351. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  5352. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  5353. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  5354. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  5355. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  5356. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  5357. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  5358. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  5359. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  5360. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  5361. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  5362. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  5363. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  5364. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  5365. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  5366. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  5367. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  5368. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  5369. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  5370. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  5371. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  5372. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  5373. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  5374. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  5375. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  5376. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  5377. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  5378. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  5379. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  5380. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  5381. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  5382. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  5383. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  5384. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  5385. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  5386. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  5387. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  5388. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  5389. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  5390. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  5391. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  5392. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  5393. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  5394. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  5395. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  5396. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  5397. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  5398. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  5399. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  5400. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  5401. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  5402. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  5403. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  5404. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  5405. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  5406. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  5407. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  5408. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  5409. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  5410. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  5411. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  5412. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  5413. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  5414. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  5415. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  5416. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  5417. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  5418. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  5419. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  5420. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  5421. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  5422. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  5423. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  5424. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  5425. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  5426. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  5427. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  5428. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  5429. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  5430. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  5431. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  5432. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  5433. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  5434. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  5435. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  5436. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  5437. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  5438. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  5439. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  5440. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  5441. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  5442. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  5443. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  5444. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  5445. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  5446. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  5447. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  5448. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  5449. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  5450. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  5451. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  5452. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  5453. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  5454. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  5455. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  5456. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  5457. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  5458. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  5459. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  5460. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  5461. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  5462. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  5463. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  5464. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  5465. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  5466. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  5467. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  5468. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  5469. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  5470. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  5471. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  5472. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  5473. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  5474. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  5475. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  5476. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  5477. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  5478. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  5479. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  5480. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  5481. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  5482. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  5483. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  5484. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  5485. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  5486. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  5487. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  5488. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  5489. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  5490. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  5491. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  5492. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  5493. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  5494. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  5495. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  5496. 38315, 38741, 171581, 173594],
  5497. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  5498. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  5499. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  5500. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  5501. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  5502. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  5503. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  5504. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  5505. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  5506. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  5507. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  5508. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  5509. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  5510. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  5511. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  5512. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  5513. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  5514. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  5515. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  5516. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  5517. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  5518. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  5519. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  5520. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  5521. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  5522. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  5523. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  5524. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  5525. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  5526. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  5527. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  5528. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  5529. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  5530. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  5531. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  5532. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  5533. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  5534. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  5535. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  5536. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  5537. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  5538. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  5539. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  5540. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  5541. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  5542. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  5543. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  5544. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  5545. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  5546. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  5547. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  5548. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  5549. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  5550. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  5551. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  5552. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  5553. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  5554. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  5555. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  5556. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  5557. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  5558. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  5559. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  5560. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  5561. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  5562. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  5563. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  5564. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  5565. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  5566. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  5567. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  5568. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  5569. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  5570. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  5571. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  5572. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  5573. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  5574. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  5575. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  5576. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  5577. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  5578. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  5579. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  5580. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  5581. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  5582. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  5583. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  5584. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  5585. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  5586. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  5587. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  5588. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  5589. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  5590. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  5591. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  5592. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  5593. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  5594. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  5595. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  5596. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  5597. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  5598. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  5599. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  5600. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  5601. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  5602. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  5603. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  5604. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  5605. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  5606. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  5607. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  5608. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  5609. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  5610. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  5611. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  5612. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  5613. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  5614. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  5615. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  5616. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  5617. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  5618. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  5619. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  5620. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  5621. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  5622. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  5623. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  5624. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  5625. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  5626. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  5627. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  5628. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  5629. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  5630. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  5631. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  5632. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  5633. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  5634. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  5635. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  5636. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  5637. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  5638. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  5639. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  5640. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  5641. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  5642. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  5643. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  5644. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  5645. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  5646. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  5647. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  5648. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  5649. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  5650. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  5651. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  5652. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  5653. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  5654. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  5655. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  5656. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  5657. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  5658. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  5659. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  5660. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  5661. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  5662. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  5663. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  5664. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  5665. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  5666. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  5667. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  5668. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  5669. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  5670. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  5671. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  5672. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  5673. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  5674. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  5675. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  5676. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  5677. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  5678. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  5679. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  5680. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  5681. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  5682. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  5683. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  5684. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  5685. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  5686. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  5687. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  5688. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  5689. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  5690. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  5691. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  5692. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  5693. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  5694. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  5695. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  5696. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  5697. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  5698. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  5699. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  5700. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  5701. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  5702. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  5703. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  5704. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  5705. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  5706. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  5707. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  5708. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  5709. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  5710. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  5711. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  5712. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  5713. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  5714. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  5715. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  5716. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  5717. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  5718. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  5719. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  5720. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  5721. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  5722. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  5723. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  5724. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  5725. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  5726. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  5727. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  5728. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  5729. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  5730. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  5731. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  5732. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  5733. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  5734. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  5735. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  5736. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  5737. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  5738. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  5739. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  5740. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  5741. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  5742. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  5743. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  5744. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  5745. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  5746. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  5747. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  5748. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  5749. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  5750. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  5751. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  5752. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  5753. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  5754. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  5755. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  5756. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  5757. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  5758. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  5759. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  5760. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  5761. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  5762. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  5763. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  5764. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  5765. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  5766. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  5767. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  5768. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  5769. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  5770. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  5771. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  5772. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  5773. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  5774. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  5775. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  5776. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  5777. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  5778. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  5779. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  5780. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  5781. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  5782. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  5783. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  5784. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  5785. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  5786. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  5787. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  5788. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  5789. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  5790. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  5791. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  5792. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  5793. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  5794. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  5795. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  5796. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  5797. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  5798. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  5799. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  5800. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  5801. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  5802. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  5803. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  5804. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  5805. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  5806. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  5807. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  5808. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  5809. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  5810. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  5811. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  5812. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  5813. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  5814. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  5815. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  5816. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  5817. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  5818. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  5819. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  5820. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  5821. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  5822. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  5823. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  5824. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  5825. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  5826. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  5827. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  5828. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  5829. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  5830. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  5831. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  5832. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  5833. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  5834. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  5835. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  5836. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  5837. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  5838. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  5839. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  5840. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  5841. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  5842. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  5843. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  5844. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  5845. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  5846. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  5847. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  5848. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  5849. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  5850. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  5851. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  5852. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  5853. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  5854. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  5855. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  5856. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  5857. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  5858. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  5859. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  5860. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  5861. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  5862. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  5863. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  5864. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  5865. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  5866. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  5867. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  5868. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  5869. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  5870. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  5871. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  5872. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  5873. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  5874. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  5875. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  5876. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  5877. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  5878. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  5879. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  5880. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  5881. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  5882. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  5883. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  5884. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  5885. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  5886. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  5887. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  5888. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  5889. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  5890. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  5891. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  5892. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  5893. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  5894. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  5895. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  5896. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  5897. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  5898. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  5899. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  5900. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  5901. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  5902. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  5903. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  5904. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  5905. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  5906. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  5907. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  5908. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  5909. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  5910. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  5911. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  5912. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  5913. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  5914. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  5915. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  5916. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  5917. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  5918. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  5919. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  5920. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  5921. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  5922. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  5923. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  5924. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  5925. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  5926. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  5927. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  5928. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  5929. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  5930. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  5931. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  5932. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  5933. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  5934. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  5935. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  5936. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  5937. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  5938. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  5939. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  5940. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  5941. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  5942. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  5943. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  5944. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  5945. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  5946. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  5947. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  5948. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  5949. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  5950. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  5951. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  5952. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  5953. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  5954. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  5955. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  5956. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  5957. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  5958. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  5959. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  5960. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  5961. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  5962. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  5963. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  5964. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  5965. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  5966. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  5967. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  5968. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  5969. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  5970. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  5971. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  5972. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  5973. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  5974. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  5975. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  5976. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  5977. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  5978. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  5979. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  5980. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  5981. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  5982. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  5983. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  5984. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  5985. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  5986. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  5987. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  5988. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  5989. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  5990. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  5991. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  5992. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  5993. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  5994. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  5995. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  5996. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  5997. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  5998. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  5999. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  6000. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  6001. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  6002. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  6003. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  6004. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  6005. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  6006. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  6007. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  6008. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  6009. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  6010. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  6011. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  6012. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  6013. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  6014. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  6015. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  6016. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  6017. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  6018. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  6019. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  6020. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  6021. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  6022. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  6023. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  6024. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  6025. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  6026. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  6027. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  6028. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  6029. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  6030. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  6031. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  6032. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  6033. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  6034. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  6035. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  6036. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  6037. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  6038. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  6039. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  6040. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  6041. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  6042. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  6043. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  6044. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  6045. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  6046. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  6047. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  6048. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  6049. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  6050. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  6051. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  6052. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  6053. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  6054. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  6055. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  6056. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  6057. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  6058. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  6059. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  6060. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  6061. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  6062. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  6063. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  6064. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  6065. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  6066. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  6067. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  6068. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  6069. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  6070. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  6071. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  6072. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  6073. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  6074. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  6075. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  6076. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  6077. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  6078. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  6079. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  6080. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  6081. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  6082. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  6083. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  6084. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  6085. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  6086. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  6087. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  6088. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  6089. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  6090. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  6091. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  6092. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  6093. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  6094. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  6095. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  6096. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  6097. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  6098. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  6099. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  6100. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  6101. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  6102. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  6103. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  6104. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  6105. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  6106. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  6107. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  6108. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  6109. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  6110. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  6111. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  6112. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  6113. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  6114. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  6115. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  6116. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  6117. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  6118. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  6119. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  6120. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  6121. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  6122. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  6123. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  6124. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  6125. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  6126. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  6127. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  6128. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  6129. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  6130. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  6131. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  6132. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  6133. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  6134. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  6135. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  6136. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  6137. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  6138. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  6139. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  6140. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  6141. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  6142. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  6143. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  6144. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  6145. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  6146. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  6147. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  6148. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  6149. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  6150. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  6151. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  6152. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  6153. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  6154. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  6155. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  6156. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  6157. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  6158. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  6159. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  6160. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  6161. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  6162. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  6163. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  6164. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  6165. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  6166. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  6167. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  6168. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  6169. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  6170. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  6171. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  6172. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  6173. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  6174. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  6175. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  6176. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  6177. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  6178. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  6179. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  6180. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  6181. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  6182. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  6183. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  6184. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  6185. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  6186. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  6187. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  6188. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  6189. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  6190. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  6191. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  6192. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  6193. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  6194. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  6195. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  6196. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  6197. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  6198. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  6199. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  6200. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  6201. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  6202. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  6203. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  6204. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  6205. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  6206. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  6207. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  6208. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  6209. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  6210. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  6211. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  6212. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  6213. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  6214. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  6215. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  6216. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  6217. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  6218. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  6219. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  6220. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  6221. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  6222. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  6223. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  6224. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  6225. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  6226. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  6227. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  6228. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  6229. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  6230. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  6231. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  6232. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  6233. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  6234. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  6235. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  6236. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  6237. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  6238. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  6239. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  6240. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  6241. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  6242. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  6243. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  6244. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  6245. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  6246. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  6247. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  6248. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  6249. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  6250. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  6251. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  6252. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  6253. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  6254. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  6255. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  6256. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  6257. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  6258. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  6259. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  6260. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  6261. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  6262. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  6263. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  6264. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  6265. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  6266. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  6267. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  6268. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  6269. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  6270. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  6271. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  6272. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  6273. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  6274. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  6275. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  6276. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  6277. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  6278. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  6279. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  6280. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  6281. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  6282. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  6283. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  6284. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  6285. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  6286. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  6287. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  6288. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  6289. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  6290. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  6291. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  6292. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  6293. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  6294. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  6295. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  6296. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  6297. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  6298. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  6299. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  6300. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  6301. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  6302. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  6303. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  6304. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  6305. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  6306. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  6307. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  6308. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  6309. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  6310. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  6311. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  6312. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  6313. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  6314. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  6315. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  6316. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  6317. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  6318. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  6319. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  6320. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  6321. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  6322. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  6323. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  6324. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  6325. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  6326. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  6327. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  6328. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  6329. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  6330. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  6331. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  6332. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  6333. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  6334. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  6335. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  6336. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  6337. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  6338. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  6339. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  6340. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  6341. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  6342. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  6343. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  6344. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  6345. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  6346. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  6347. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  6348. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  6349. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  6350. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  6351. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  6352. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  6353. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  6354. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  6355. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  6356. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  6357. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  6358. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  6359. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  6360. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  6361. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  6362. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  6363. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  6364. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  6365. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  6366. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  6367. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  6368. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  6369. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  6370. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  6371. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  6372. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  6373. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  6374. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  6375. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  6376. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  6377. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  6378. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  6379. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  6380. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  6381. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  6382. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  6383. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  6384. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  6385. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  6386. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  6387. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  6388. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  6389. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  6390. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  6391. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  6392. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  6393. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  6394. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  6395. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  6396. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  6397. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  6398. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  6399. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  6400. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  6401. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  6402. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  6403. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  6404. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  6405. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  6406. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  6407. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  6408. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  6409. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  6410. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  6411. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  6412. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  6413. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  6414. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  6415. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  6416. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  6417. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  6418. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  6419. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  6420. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  6421. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  6422. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  6423. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  6424. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  6425. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  6426. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  6427. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  6428. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  6429. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  6430. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  6431. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  6432. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  6433. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  6434. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  6435. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  6436. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  6437. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  6438. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  6439. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  6440. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  6441. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  6442. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  6443. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  6444. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  6445. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  6446. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  6447. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  6448. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  6449. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  6450. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  6451. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  6452. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  6453. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  6454. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  6455. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  6456. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  6457. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  6458. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  6459. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  6460. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  6461. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  6462. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  6463. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  6464. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  6465. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  6466. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  6467. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  6468. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  6469. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  6470. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  6471. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  6472. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  6473. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  6474. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  6475. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  6476. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  6477. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  6478. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  6479. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  6480. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  6481. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  6482. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  6483. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  6484. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  6485. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  6486. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  6487. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  6488. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  6489. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  6490. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  6491. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  6492. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  6493. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  6494. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  6495. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  6496. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  6497. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  6498. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  6499. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  6500. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  6501. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  6502. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  6503. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  6504. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  6505. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  6506. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  6507. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  6508. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  6509. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  6510. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  6511. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  6512. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  6513. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  6514. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  6515. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  6516. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  6517. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  6518. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  6519. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  6520. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  6521. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  6522. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  6523. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  6524. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  6525. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  6526. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  6527. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  6528. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  6529. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  6530. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  6531. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  6532. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  6533. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  6534. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  6535. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  6536. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  6537. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  6538. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  6539. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  6540. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  6541. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  6542. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  6543. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  6544. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  6545. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  6546. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  6547. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  6548. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  6549. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  6550. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  6551. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  6552. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  6553. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  6554. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  6555. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  6556. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  6557. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  6558. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  6559. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  6560. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  6561. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  6562. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  6563. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  6564. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  6565. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  6566. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  6567. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  6568. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  6569. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  6570. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  6571. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  6572. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  6573. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  6574. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  6575. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  6576. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  6577. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  6578. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  6579. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  6580. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  6581. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  6582. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  6583. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  6584. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  6585. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  6586. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  6587. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  6588. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  6589. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  6590. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  6591. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  6592. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  6593. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  6594. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  6595. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  6596. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  6597. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  6598. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  6599. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  6600. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  6601. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  6602. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  6603. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  6604. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  6605. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  6606. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  6607. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  6608. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  6609. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  6610. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  6611. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  6612. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  6613. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  6614. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  6615. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  6616. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  6617. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  6618. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  6619. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  6620. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  6621. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  6622. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  6623. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  6624. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  6625. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  6626. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  6627. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  6628. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  6629. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  6630. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  6631. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  6632. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  6633. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  6634. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  6635. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  6636. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  6637. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  6638. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  6639. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  6640. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  6641. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  6642. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  6643. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  6644. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  6645. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  6646. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  6647. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  6648. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  6649. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  6650. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  6651. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  6652. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  6653. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  6654. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  6655. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  6656. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  6657. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  6658. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  6659. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  6660. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  6661. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  6662. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  6663. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  6664. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  6665. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  6666. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  6667. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  6668. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  6669. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  6670. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  6671. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  6672. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  6673. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  6674. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  6675. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  6676. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  6677. {f: 6, c: 55198}],
  6678. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  6679. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  6680. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  6681. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  6682. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  6683. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  6684. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  6685. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  6686. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  6687. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  6688. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  6689. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  6690. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  6691. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  6692. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  6693. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  6694. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  6695. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  6696. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  6697. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  6698. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  6699. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  6700. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  6701. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  6702. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  6703. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  6704. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  6705. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  6706. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  6707. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  6708. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  6709. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  6710. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  6711. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  6712. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  6713. [12057, 21353, 63192], [12059, 21430, 63193],
  6714. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  6715. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  6716. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  6717. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  6718. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  6719. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  6720. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  6721. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  6722. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  6723. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  6724. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  6725. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  6726. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  6727. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  6728. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  6729. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  6730. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  6731. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  6732. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  6733. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  6734. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  6735. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  6736. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  6737. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  6738. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  6739. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  6740. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  6741. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  6742. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  6743. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  6744. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  6745. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  6746. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  6747. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  6748. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  6749. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  6750. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  6751. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  6752. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  6753. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  6754. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  6755. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  6756. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  6757. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  6758. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  6759. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  6760. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  6761. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  6762. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  6763. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  6764. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  6765. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  6766. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  6767. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  6768. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  6769. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  6770. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  6771. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  6772. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  6773. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  6774. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  6775. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  6776. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  6777. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  6778. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  6779. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  6780. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  6781. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  6782. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  6783. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  6784. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  6785. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  6786. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  6787. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  6788. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  6789. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  6790. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  6791. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  6792. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  6793. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  6794. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  6795. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  6796. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  6797. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  6798. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  6799. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  6800. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  6801. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  6802. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  6803. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  6804. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  6805. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  6806. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  6807. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  6808. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  6809. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  6810. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  6811. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  6812. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  6813. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  6814. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  6815. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  6816. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  6817. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  6818. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  6819. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  6820. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  6821. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  6822. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  6823. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  6824. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  6825. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  6826. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  6827. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  6828. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  6829. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  6830. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  6831. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  6832. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  6833. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  6834. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  6835. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  6836. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  6837. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  6838. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  6839. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  6840. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  6841. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  6842. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  6843. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  6844. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  6845. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  6846. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  6847. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  6848. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  6849. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  6850. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  6851. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  6852. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  6853. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  6854. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  6855. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  6856. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  6857. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  6858. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  6859. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  6860. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  6861. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  6862. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  6863. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  6864. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  6865. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  6866. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  6867. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  6868. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  6869. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  6870. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  6871. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  6872. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  6873. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  6874. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  6875. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  6876. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  6877. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  6878. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  6879. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  6880. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  6881. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  6882. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  6883. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  6884. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  6885. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  6886. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  6887. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  6888. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  6889. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  6890. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  6891. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  6892. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  6893. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  6894. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  6895. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  6896. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  6897. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  6898. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  6899. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  6900. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  6901. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  6902. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  6903. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  6904. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  6905. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  6906. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  6907. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  6908. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  6909. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  6910. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  6911. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  6912. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  6913. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  6914. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  6915. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  6916. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  6917. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  6918. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  6919. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  6920. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  6921. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  6922. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  6923. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  6924. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  6925. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  6926. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  6927. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  6928. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  6929. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  6930. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  6931. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  6932. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  6933. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  6934. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  6935. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  6936. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  6937. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  6938. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  6939. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  6940. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  6941. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  6942. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  6943. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  6944. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  6945. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  6946. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  6947. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  6948. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  6949. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  6950. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  6951. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  6952. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  6953. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  6954. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  6955. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  6956. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  6957. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  6958. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  6959. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  6960. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  6961. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  6962. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  6963. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  6964. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  6965. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  6966. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  6967. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  6968. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  6969. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  6970. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  6971. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  6972. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  6973. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  6974. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  6975. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  6976. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  6977. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  6978. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  6979. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  6980. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  6981. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  6982. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  6983. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  6984. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  6985. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  6986. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  6987. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  6988. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  6989. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  6990. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  6991. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  6992. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  6993. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  6994. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  6995. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  6996. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  6997. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  6998. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  6999. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  7000. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  7001. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  7002. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  7003. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  7004. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  7005. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  7006. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  7007. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  7008. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  7009. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  7010. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  7011. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  7012. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  7013. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  7014. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  7015. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  7016. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  7017. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  7018. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  7019. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  7020. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  7021. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  7022. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  7023. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  7024. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  7025. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  7026. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  7027. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  7028. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  7029. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  7030. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  7031. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  7032. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  7033. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  7034. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  7035. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  7036. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  7037. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  7038. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  7039. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  7040. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  7041. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  7042. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  7043. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  7044. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  7045. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  7046. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  7047. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  7048. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  7049. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  7050. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  7051. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  7052. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  7053. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  7054. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  7055. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  7056. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  7057. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  7058. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  7059. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  7060. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  7061. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  7062. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  7063. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  7064. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  7065. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  7066. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  7067. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  7068. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  7069. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  7070. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  7071. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  7072. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  7073. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  7074. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  7075. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  7076. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  7077. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  7078. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  7079. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  7080. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  7081. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  7082. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  7083. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  7084. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  7085. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  7086. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  7087. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  7088. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  7089. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  7090. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  7091. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  7092. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  7093. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  7094. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  7095. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  7096. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  7097. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  7098. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  7099. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  7100. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  7101. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  7102. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  7103. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  7104. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  7105. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  7106. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  7107. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  7108. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  7109. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  7110. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  7111. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  7112. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  7113. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  7114. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  7115. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  7116. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  7117. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  7118. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  7119. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  7120. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  7121. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  7122. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  7123. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  7124. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  7125. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  7126. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  7127. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  7128. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  7129. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  7130. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  7131. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  7132. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  7133. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  7134. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  7135. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  7136. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  7137. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  7138. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  7139. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  7140. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  7141. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  7142. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  7143. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  7144. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  7145. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  7146. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  7147. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  7148. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  7149. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  7150. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  7151. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  7152. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  7153. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  7154. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  7155. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  7156. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  7157. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  7158. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  7159. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  7160. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  7161. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  7162. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  7163. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  7164. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  7165. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  7166. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  7167. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  7168. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  7169. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  7170. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  7171. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  7172. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  7173. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  7174. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  7175. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  7176. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  7177. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  7178. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  7179. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  7180. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  7181. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  7182. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  7183. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  7184. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  7185. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  7186. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  7187. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  7188. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  7189. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  7190. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  7191. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  7192. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  7193. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  7194. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  7195. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  7196. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  7197. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  7198. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  7199. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  7200. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  7201. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  7202. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  7203. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  7204. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  7205. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  7206. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  7207. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  7208. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  7209. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  7210. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  7211. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  7212. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  7213. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  7214. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  7215. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  7216. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  7217. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  7218. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  7219. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  7220. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  7221. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  7222. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  7223. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  7224. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  7225. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  7226. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  7227. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  7228. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  7229. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  7230. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  7231. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  7232. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  7233. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  7234. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  7235. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  7236. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  7237. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  7238. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  7239. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  7240. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  7241. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  7242. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  7243. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  7244. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  7245. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  7246. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  7247. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  7248. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  7249. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  7250. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  7251. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  7252. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  7253. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  7254. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  7255. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  7256. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  7257. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  7258. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  7259. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  7260. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  7261. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  7262. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  7263. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  7264. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  7265. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  7266. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  7267. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  7268. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  7269. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  7270. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  7271. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  7272. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  7273. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  7274. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  7275. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  7276. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  7277. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  7278. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  7279. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  7280. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  7281. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  7282. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  7283. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  7284. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  7285. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  7286. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  7287. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  7288. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  7289. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  7290. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  7291. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  7292. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  7293. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  7294. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  7295. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  7296. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  7297. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  7298. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  7299. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  7300. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  7301. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  7302. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  7303. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  7304. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  7305. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  7306. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  7307. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  7308. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  7309. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  7310. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  7311. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  7312. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  7313. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  7314. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  7315. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  7316. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  7317. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  7318. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  7319. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  7320. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  7321. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  7322. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  7323. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  7324. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  7325. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  7326. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  7327. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  7328. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  7329. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  7330. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  7331. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  7332. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  7333. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  7334. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  7335. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  7336. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  7337. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  7338. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  7339. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  7340. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  7341. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  7342. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  7343. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  7344. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  7345. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  7346. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  7347. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  7348. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  7349. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  7350. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  7351. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  7352. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  7353. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  7354. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  7355. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  7356. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  7357. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  7358. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  7359. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  7360. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  7361. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  7362. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  7363. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  7364. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  7365. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  7366. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  7367. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  7368. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  7369. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  7370. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  7371. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  7372. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  7373. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  7374. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  7375. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  7376. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  7377. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  7378. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  7379. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  7380. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  7381. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  7382. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  7383. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  7384. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  7385. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  7386. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  7387. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  7388. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  7389. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  7390. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  7391. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  7392. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  7393. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  7394. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  7395. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  7396. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  7397. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  7398. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  7399. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  7400. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  7401. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  7402. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  7403. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  7404. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  7405. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  7406. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  7407. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  7408. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  7409. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  7410. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  7411. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  7412. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  7413. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  7414. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  7415. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  7416. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  7417. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  7418. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  7419. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  7420. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  7421. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  7422. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  7423. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  7424. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  7425. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  7426. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  7427. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  7428. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  7429. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  7430. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  7431. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  7432. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  7433. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  7434. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  7435. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  7436. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  7437. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  7438. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  7439. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  7440. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  7441. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  7442. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  7443. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  7444. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  7445. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  7446. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  7447. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  7448. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  7449. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  7450. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  7451. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  7452. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  7453. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  7454. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  7455. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  7456. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  7457. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  7458. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  7459. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  7460. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  7461. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  7462. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  7463. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  7464. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  7465. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  7466. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  7467. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  7468. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  7469. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  7470. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  7471. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  7472. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  7473. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  7474. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  7475. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  7476. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  7477. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  7478. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  7479. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  7480. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  7481. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  7482. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  7483. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  7484. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  7485. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  7486. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  7487. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  7488. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  7489. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  7490. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  7491. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  7492. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  7493. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  7494. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  7495. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  7496. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  7497. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  7498. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  7499. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  7500. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  7501. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  7502. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  7503. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  7504. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  7505. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  7506. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  7507. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  7508. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  7509. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  7510. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  7511. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  7512. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  7513. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  7514. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  7515. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  7516. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  7517. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  7518. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  7519. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  7520. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  7521. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  7522. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  7523. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  7524. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  7525. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  7526. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  7527. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  7528. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  7529. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  7530. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  7531. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  7532. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  7533. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  7534. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  7535. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  7536. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  7537. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  7538. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  7539. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  7540. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  7541. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  7542. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  7543. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  7544. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  7545. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  7546. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  7547. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  7548. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  7549. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  7550. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  7551. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  7552. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  7553. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  7554. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  7555. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  7556. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  7557. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  7558. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  7559. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  7560. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  7561. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  7562. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  7563. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  7564. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  7565. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  7566. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  7567. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  7568. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  7569. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  7570. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  7571. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  7572. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  7573. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  7574. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  7575. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  7576. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  7577. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  7578. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  7579. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  7580. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  7581. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  7582. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  7583. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  7584. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  7585. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  7586. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  7587. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  7588. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  7589. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  7590. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  7591. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  7592. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  7593. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  7594. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  7595. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  7596. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  7597. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  7598. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  7599. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  7600. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  7601. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  7602. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  7603. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  7604. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  7605. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  7606. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  7607. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  7608. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  7609. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  7610. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  7611. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  7612. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  7613. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  7614. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  7615. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  7616. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  7617. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  7618. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  7619. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  7620. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  7621. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  7622. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  7623. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  7624. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  7625. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  7626. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  7627. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  7628. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  7629. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  7630. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  7631. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  7632. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  7633. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  7634. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  7635. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  7636. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  7637. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  7638. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  7639. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  7640. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  7641. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  7642. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  7643. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  7644. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  7645. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  7646. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  7647. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  7648. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  7649. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  7650. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  7651. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  7652. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  7653. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  7654. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  7655. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  7656. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  7657. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  7658. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  7659. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  7660. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  7661. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  7662. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  7663. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  7664. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  7665. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  7666. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  7667. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  7668. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  7669. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  7670. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  7671. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  7672. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  7673. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  7674. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  7675. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  7676. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  7677. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  7678. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  7679. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  7680. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  7681. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  7682. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  7683. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  7684. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  7685. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  7686. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  7687. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  7688. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  7689. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  7690. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  7691. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  7692. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  7693. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  7694. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  7695. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  7696. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  7697. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  7698. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  7699. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  7700. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  7701. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  7702. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  7703. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  7704. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  7705. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  7706. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  7707. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  7708. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  7709. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  7710. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  7711. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  7712. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  7713. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  7714. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  7715. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  7716. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  7717. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  7718. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  7719. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  7720. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  7721. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  7722. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  7723. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  7724. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  7725. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  7726. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  7727. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  7728. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  7729. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  7730. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  7731. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  7732. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  7733. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  7734. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  7735. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  7736. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  7737. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  7738. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  7739. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  7740. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  7741. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  7742. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  7743. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  7744. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  7745. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  7746. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  7747. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  7748. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  7749. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  7750. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  7751. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  7752. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  7753. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  7754. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  7755. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  7756. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  7757. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  7758. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  7759. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  7760. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  7761. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  7762. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  7763. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  7764. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  7765. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  7766. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  7767. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  7768. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  7769. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  7770. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  7771. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  7772. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  7773. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  7774. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  7775. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  7776. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  7777. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  7778. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  7779. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  7780. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  7781. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  7782. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  7783. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  7784. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  7785. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  7786. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  7787. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  7788. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  7789. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  7790. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  7791. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  7792. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  7793. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  7794. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  7795. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  7796. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  7797. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  7798. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  7799. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  7800. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  7801. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  7802. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  7803. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  7804. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  7805. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  7806. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  7807. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  7808. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  7809. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  7810. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  7811. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  7812. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  7813. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  7814. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  7815. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  7816. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  7817. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  7818. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  7819. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  7820. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  7821. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  7822. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  7823. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  7824. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  7825. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  7826. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  7827. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  7828. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  7829. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  7830. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  7831. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  7832. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  7833. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  7834. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  7835. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  7836. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  7837. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  7838. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  7839. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  7840. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  7841. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  7842. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  7843. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  7844. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  7845. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  7846. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  7847. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  7848. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  7849. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  7850. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  7851. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  7852. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  7853. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  7854. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  7855. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  7856. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  7857. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  7858. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  7859. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  7860. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  7861. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  7862. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  7863. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  7864. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  7865. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  7866. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  7867. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  7868. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  7869. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  7870. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  7871. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  7872. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  7873. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  7874. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  7875. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  7876. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  7877. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  7878. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  7879. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  7880. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  7881. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  7882. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  7883. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  7884. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  7885. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  7886. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  7887. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  7888. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  7889. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  7890. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  7891. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  7892. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  7893. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  7894. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  7895. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  7896. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  7897. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  7898. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  7899. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  7900. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  7901. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  7902. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  7903. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  7904. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  7905. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  7906. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  7907. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  7908. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  7909. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  7910. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  7911. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  7912. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  7913. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  7914. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  7915. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  7916. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  7917. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  7918. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  7919. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  7920. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  7921. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  7922. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  7923. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  7924. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  7925. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  7926. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  7927. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  7928. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  7929. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  7930. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  7931. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  7932. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  7933. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  7934. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  7935. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  7936. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  7937. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  7938. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  7939. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  7940. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  7941. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  7942. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  7943. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  7944. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  7945. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  7946. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  7947. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  7948. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  7949. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  7950. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  7951. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  7952. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  7953. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  7954. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  7955. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  7956. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  7957. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  7958. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  7959. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  7960. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  7961. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  7962. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  7963. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  7964. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  7965. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  7966. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  7967. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  7968. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  7969. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  7970. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  7971. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  7972. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  7973. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  7974. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  7975. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  7976. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  7977. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  7978. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  7979. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  7980. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  7981. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  7982. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  7983. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  7984. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  7985. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  7986. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  7987. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  7988. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  7989. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  7990. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  7991. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  7992. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  7993. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  7994. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  7995. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  7996. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  7997. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  7998. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  7999. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  8000. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  8001. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  8002. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  8003. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  8004. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  8005. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  8006. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  8007. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  8008. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  8009. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  8010. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  8011. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  8012. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  8013. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  8014. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  8015. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  8016. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  8017. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  8018. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  8019. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  8020. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  8021. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  8022. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  8023. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  8024. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  8025. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  8026. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  8027. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  8028. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  8029. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  8030. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  8031. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  8032. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  8033. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  8034. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  8035. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  8036. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  8037. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  8038. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  8039. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  8040. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  8041. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  8042. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  8043. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  8044. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  8045. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  8046. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  8047. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  8048. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  8049. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  8050. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  8051. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  8052. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  8053. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  8054. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  8055. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  8056. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  8057. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  8058. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  8059. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  8060. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  8061. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  8062. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  8063. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  8064. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  8065. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  8066. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  8067. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  8068. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  8069. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  8070. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  8071. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  8072. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  8073. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  8074. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  8075. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  8076. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  8077. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  8078. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  8079. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  8080. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  8081. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  8082. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  8083. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  8084. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  8085. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  8086. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  8087. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  8088. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  8089. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  8090. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  8091. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  8092. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  8093. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  8094. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  8095. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  8096. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  8097. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  8098. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  8099. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  8100. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  8101. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  8102. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  8103. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  8104. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  8105. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  8106. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  8107. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  8108. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  8109. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  8110. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  8111. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  8112. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  8113. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  8114. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  8115. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  8116. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  8117. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  8118. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  8119. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  8120. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  8121. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  8122. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  8123. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  8124. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  8125. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  8126. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  8127. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  8128. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  8129. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  8130. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  8131. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  8132. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  8133. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  8134. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  8135. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  8136. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  8137. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  8138. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  8139. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  8140. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  8141. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  8142. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  8143. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  8144. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  8145. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  8146. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  8147. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  8148. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  8149. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  8150. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  8151. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  8152. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  8153. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  8154. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  8155. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  8156. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  8157. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  8158. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  8159. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  8160. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  8161. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  8162. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  8163. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  8164. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  8165. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  8166. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  8167. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  8168. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  8169. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  8170. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  8171. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  8172. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  8173. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  8174. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  8175. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  8176. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  8177. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  8178. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  8179. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  8180. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  8181. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  8182. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  8183. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  8184. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  8185. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  8186. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  8187. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  8188. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  8189. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  8190. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  8191. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  8192. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  8193. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  8194. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  8195. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  8196. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  8197. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  8198. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  8199. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  8200. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  8201. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  8202. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  8203. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  8204. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  8205. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  8206. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  8207. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  8208. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  8209. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  8210. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  8211. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  8212. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  8213. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  8214. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  8215. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  8216. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  8217. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  8218. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  8219. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  8220. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  8221. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  8222. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  8223. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  8224. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  8225. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  8226. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  8227. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  8228. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  8229. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  8230. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  8231. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  8232. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  8233. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  8234. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  8235. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  8236. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  8237. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  8238. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  8239. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  8240. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  8241. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  8242. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  8243. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  8244. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  8245. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  8246. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  8247. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  8248. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  8249. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  8250. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  8251. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  8252. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  8253. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  8254. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  8255. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  8256. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  8257. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  8258. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  8259. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  8260. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  8261. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  8262. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  8263. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  8264. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  8265. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  8266. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  8267. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  8268. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  8269. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  8270. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  8271. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  8272. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  8273. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  8274. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  8275. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  8276. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  8277. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  8278. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  8279. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  8280. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  8281. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  8282. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  8283. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  8284. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  8285. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  8286. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  8287. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  8288. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  8289. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  8290. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  8291. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  8292. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  8293. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  8294. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  8295. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  8296. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  8297. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  8298. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  8299. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  8300. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  8301. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  8302. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  8303. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  8304. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  8305. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  8306. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  8307. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  8308. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  8309. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  8310. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  8311. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  8312. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  8313. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  8314. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  8315. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  8316. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  8317. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  8318. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  8319. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  8320. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  8321. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  8322. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  8323. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  8324. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  8325. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  8326. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  8327. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  8328. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  8329. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  8330. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  8331. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  8332. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  8333. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  8334. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  8335. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  8336. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  8337. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  8338. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  8339. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  8340. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  8341. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  8342. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  8343. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  8344. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  8345. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  8346. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  8347. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  8348. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  8349. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  8350. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  8351. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  8352. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  8353. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  8354. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  8355. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  8356. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  8357. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  8358. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  8359. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  8360. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  8361. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  8362. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  8363. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  8364. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  8365. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  8366. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  8367. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  8368. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  8369. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  8370. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  8371. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  8372. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  8373. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  8374. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  8375. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  8376. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  8377. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  8378. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  8379. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  8380. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  8381. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  8382. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  8383. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  8384. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  8385. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  8386. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  8387. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  8388. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  8389. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  8390. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  8391. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  8392. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  8393. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  8394. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  8395. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  8396. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  8397. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  8398. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  8399. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  8400. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  8401. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  8402. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  8403. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  8404. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  8405. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  8406. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  8407. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  8408. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  8409. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  8410. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  8411. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  8412. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  8413. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  8414. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  8415. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  8416. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  8417. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  8418. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  8419. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  8420. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  8421. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  8422. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  8423. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  8424. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  8425. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  8426. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  8427. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  8428. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  8429. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  8430. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  8431. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  8432. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  8433. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  8434. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  8435. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  8436. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  8437. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  8438. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  8439. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  8440. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  8441. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  8442. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  8443. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  8444. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  8445. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  8446. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  8447. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  8448. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  8449. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  8450. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  8451. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  8452. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  8453. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  8454. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  8455. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  8456. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  8457. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  8458. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  8459. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  8460. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  8461. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  8462. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  8463. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  8464. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  8465. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  8466. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  8467. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  8468. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  8469. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  8470. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  8471. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  8472. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  8473. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  8474. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  8475. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  8476. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  8477. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  8478. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  8479. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  8480. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  8481. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  8482. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  8483. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  8484. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  8485. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  8486. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  8487. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  8488. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  8489. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  8490. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  8491. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  8492. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  8493. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  8494. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  8495. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  8496. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  8497. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  8498. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  8499. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  8500. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  8501. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  8502. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  8503. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  8504. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  8505. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  8506. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  8507. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  8508. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  8509. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  8510. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  8511. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  8512. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  8513. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  8514. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  8515. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  8516. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  8517. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  8518. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  8519. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  8520. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  8521. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  8522. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  8523. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  8524. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  8525. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  8526. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  8527. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  8528. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  8529. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  8530. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  8531. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  8532. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  8533. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  8534. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  8535. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  8536. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  8537. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  8538. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  8539. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  8540. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  8541. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  8542. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  8543. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  8544. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  8545. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  8546. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  8547. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  8548. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  8549. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  8550. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  8551. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  8552. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  8553. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  8554. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  8555. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  8556. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  8557. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  8558. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  8559. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  8560. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  8561. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  8562. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  8563. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  8564. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  8565. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  8566. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  8567. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  8568. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  8569. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  8570. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  8571. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  8572. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  8573. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  8574. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  8575. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  8576. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  8577. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  8578. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  8579. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  8580. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  8581. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  8582. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  8583. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  8584. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  8585. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  8586. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  8587. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  8588. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  8589. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  8590. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  8591. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  8592. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  8593. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  8594. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  8595. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  8596. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  8597. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  8598. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  8599. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  8600. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  8601. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  8602. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  8603. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  8604. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  8605. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  8606. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  8607. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  8608. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  8609. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  8610. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  8611. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  8612. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  8613. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  8614. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  8615. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  8616. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  8617. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  8618. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  8619. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  8620. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  8621. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  8622. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  8623. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  8624. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  8625. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  8626. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  8627. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  8628. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  8629. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  8630. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  8631. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  8632. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  8633. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  8634. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  8635. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  8636. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  8637. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  8638. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  8639. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  8640. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  8641. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  8642. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  8643. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  8644. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  8645. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  8646. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  8647. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  8648. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  8649. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  8650. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  8651. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  8652. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  8653. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  8654. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  8655. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  8656. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  8657. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  8658. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  8659. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  8660. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  8661. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  8662. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  8663. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  8664. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  8665. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  8666. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  8667. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  8668. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  8669. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  8670. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  8671. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  8672. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  8673. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  8674. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  8675. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  8676. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  8677. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  8678. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  8679. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  8680. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  8681. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  8682. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  8683. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  8684. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  8685. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  8686. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  8687. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  8688. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  8689. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  8690. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  8691. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  8692. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  8693. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  8694. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  8695. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  8696. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  8697. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  8698. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  8699. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  8700. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  8701. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  8702. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  8703. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  8704. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  8705. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  8706. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  8707. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  8708. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  8709. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  8710. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  8711. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  8712. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  8713. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  8714. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  8715. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  8716. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  8717. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  8718. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  8719. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  8720. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  8721. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  8722. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  8723. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  8724. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  8725. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  8726. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  8727. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  8728. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  8729. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  8730. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  8731. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  8732. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  8733. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  8734. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  8735. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  8736. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  8737. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  8738. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  8739. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  8740. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  8741. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  8742. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  8743. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  8744. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  8745. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  8746. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  8747. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  8748. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  8749. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  8750. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  8751. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  8752. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  8753. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  8754. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  8755. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  8756. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  8757. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  8758. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  8759. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  8760. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  8761. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  8762. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  8763. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  8764. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  8765. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  8766. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  8767. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  8768. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  8769. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  8770. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  8771. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  8772. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  8773. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  8774. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  8775. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  8776. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  8777. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  8778. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  8779. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  8780. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  8781. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  8782. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  8783. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  8784. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  8785. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  8786. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  8787. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  8788. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  8789. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  8790. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  8791. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  8792. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  8793. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  8794. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  8795. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  8796. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  8797. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  8798. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  8799. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  8800. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  8801. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  8802. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  8803. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  8804. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  8805. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  8806. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  8807. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  8808. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  8809. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  8810. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  8811. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  8812. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  8813. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  8814. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  8815. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  8816. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  8817. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  8818. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  8819. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  8820. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  8821. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  8822. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  8823. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  8824. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  8825. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  8826. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  8827. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  8828. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  8829. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  8830. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  8831. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  8832. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  8833. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  8834. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  8835. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  8836. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  8837. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  8838. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  8839. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  8840. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  8841. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  8842. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  8843. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  8844. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  8845. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  8846. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  8847. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  8848. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  8849. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  8850. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  8851. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  8852. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  8853. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  8854. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  8855. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  8856. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  8857. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  8858. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  8859. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  8860. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  8861. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  8862. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  8863. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  8864. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  8865. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  8866. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  8867. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  8868. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  8869. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  8870. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  8871. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  8872. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  8873. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  8874. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  8875. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  8876. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  8877. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  8878. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  8879. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  8880. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  8881. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  8882. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  8883. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  8884. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  8885. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  8886. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  8887. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  8888. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  8889. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  8890. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  8891. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  8892. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  8893. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  8894. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  8895. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  8896. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  8897. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  8898. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  8899. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  8900. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  8901. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  8902. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  8903. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  8904. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  8905. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  8906. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  8907. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  8908. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  8909. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  8910. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  8911. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  8912. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  8913. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  8914. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  8915. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  8916. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  8917. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  8918. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  8919. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  8920. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  8921. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  8922. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  8923. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  8924. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  8925. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  8926. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  8927. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  8928. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  8929. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  8930. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  8931. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  8932. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  8933. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  8934. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  8935. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  8936. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  8937. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  8938. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  8939. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  8940. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  8941. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  8942. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  8943. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  8944. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  8945. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  8946. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  8947. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  8948. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  8949. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  8950. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  8951. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  8952. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  8953. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  8954. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  8955. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  8956. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  8957. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  8958. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  8959. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  8960. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  8961. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  8962. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  8963. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  8964. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  8965. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  8966. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  8967. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  8968. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  8969. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  8970. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  8971. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  8972. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  8973. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  8974. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  8975. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  8976. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  8977. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  8978. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  8979. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  8980. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  8981. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  8982. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  8983. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  8984. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  8985. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  8986. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  8987. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  8988. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  8989. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  8990. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  8991. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  8992. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  8993. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  8994. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  8995. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  8996. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  8997. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  8998. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  8999. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  9000. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  9001. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  9002. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  9003. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  9004. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  9005. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  9006. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  9007. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  9008. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  9009. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  9010. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  9011. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  9012. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  9013. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  9014. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  9015. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  9016. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  9017. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  9018. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  9019. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  9020. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  9021. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  9022. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  9023. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  9024. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  9025. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  9026. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  9027. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  9028. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  9029. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  9030. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  9031. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  9032. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  9033. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  9034. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  9035. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  9036. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  9037. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  9038. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  9039. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  9040. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  9041. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  9042. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  9043. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  9044. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  9045. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  9046. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  9047. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  9048. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  9049. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  9050. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  9051. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  9052. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  9053. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  9054. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  9055. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  9056. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  9057. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  9058. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  9059. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  9060. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  9061. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  9062. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  9063. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  9064. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  9065. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  9066. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  9067. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  9068. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  9069. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  9070. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  9071. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  9072. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  9073. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  9074. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  9075. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  9076. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  9077. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  9078. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  9079. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  9080. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  9081. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  9082. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  9083. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  9084. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  9085. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  9086. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  9087. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  9088. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  9089. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  9090. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  9091. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  9092. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  9093. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  9094. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  9095. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  9096. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  9097. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  9098. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  9099. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  9100. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  9101. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  9102. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  9103. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  9104. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  9105. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  9106. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  9107. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  9108. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  9109. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  9110. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  9111. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  9112. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  9113. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  9114. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  9115. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  9116. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  9117. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  9118. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  9119. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  9120. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  9121. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  9122. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  9123. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  9124. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  9125. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  9126. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  9127. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  9128. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  9129. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  9130. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  9131. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  9132. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  9133. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  9134. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  9135. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  9136. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  9137. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  9138. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  9139. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  9140. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  9141. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  9142. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  9143. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  9144. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  9145. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  9146. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  9147. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  9148. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  9149. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  9150. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  9151. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  9152. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  9153. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  9154. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  9155. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  9156. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  9157. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  9158. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  9159. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  9160. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  9161. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  9162. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  9163. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  9164. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  9165. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  9166. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  9167. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  9168. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  9169. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  9170. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  9171. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  9172. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  9173. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  9174. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  9175. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  9176. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  9177. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  9178. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  9179. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  9180. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  9181. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  9182. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  9183. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  9184. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  9185. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  9186. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  9187. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  9188. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  9189. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  9190. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  9191. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  9192. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  9193. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  9194. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  9195. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  9196. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  9197. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  9198. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  9199. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  9200. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  9201. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  9202. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  9203. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  9204. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  9205. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  9206. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  9207. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  9208. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  9209. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  9210. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  9211. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  9212. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  9213. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  9214. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  9215. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  9216. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  9217. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  9218. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  9219. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  9220. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  9221. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  9222. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  9223. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  9224. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  9225. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  9226. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  9227. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  9228. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  9229. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  9230. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  9231. 23446, 62959, 32347],
  9232. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  9233. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  9234. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  9235. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  9236. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  9237. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  9238. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  9239. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  9240. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  9241. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  9242. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  9243. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  9244. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  9245. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  9246. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  9247. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  9248. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  9249. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  9250. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  9251. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  9252. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  9253. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  9254. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  9255. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  9256. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  9257. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  9258. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  9259. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  9260. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  9261. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  9262. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  9263. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  9264. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  9265. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  9266. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  9267. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  9268. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  9269. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  9270. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  9271. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  9272. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  9273. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  9274. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  9275. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  9276. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  9277. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  9278. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  9279. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  9280. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  9281. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  9282. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  9283. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  9284. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  9285. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  9286. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  9287. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  9288. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  9289. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  9290. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  9291. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  9292. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  9293. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  9294. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  9295. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  9296. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  9297. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  9298. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  9299. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  9300. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  9301. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  9302. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  9303. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  9304. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  9305. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  9306. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  9307. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  9308. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  9309. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  9310. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  9311. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  9312. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  9313. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  9314. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  9315. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  9316. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  9317. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  9318. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  9319. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  9320. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  9321. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  9322. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  9323. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  9324. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  9325. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  9326. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  9327. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  9328. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  9329. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  9330. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  9331. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  9332. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  9333. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  9334. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  9335. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  9336. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  9337. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  9338. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  9339. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  9340. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  9341. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  9342. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  9343. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  9344. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  9345. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  9346. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  9347. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  9348. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  9349. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  9350. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  9351. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  9352. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  9353. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  9354. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  9355. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  9356. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  9357. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  9358. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  9359. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  9360. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  9361. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  9362. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  9363. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  9364. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  9365. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  9366. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  9367. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  9368. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  9369. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  9370. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  9371. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  9372. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  9373. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  9374. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  9375. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  9376. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  9377. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  9378. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  9379. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  9380. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  9381. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  9382. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  9383. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  9384. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  9385. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  9386. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  9387. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  9388. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  9389. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  9390. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  9391. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  9392. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  9393. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  9394. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  9395. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  9396. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  9397. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  9398. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  9399. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  9400. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  9401. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  9402. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  9403. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  9404. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  9405. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  9406. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  9407. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  9408. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  9409. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  9410. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  9411. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  9412. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  9413. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  9414. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  9415. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  9416. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  9417. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  9418. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  9419. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  9420. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  9421. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  9422. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  9423. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  9424. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  9425. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  9426. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  9427. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  9428. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  9429. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  9430. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  9431. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  9432. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  9433. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  9434. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  9435. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  9436. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  9437. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  9438. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  9439. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  9440. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  9441. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  9442. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  9443. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  9444. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  9445. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  9446. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  9447. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  9448. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  9449. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  9450. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  9451. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  9452. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  9453. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  9454. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  9455. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  9456. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  9457. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  9458. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  9459. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  9460. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  9461. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  9462. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  9463. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  9464. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  9465. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  9466. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  9467. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  9468. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  9469. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  9470. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  9471. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  9472. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  9473. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  9474. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  9475. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  9476. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  9477. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  9478. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  9479. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  9480. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  9481. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  9482. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  9483. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  9484. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  9485. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  9486. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  9487. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  9488. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  9489. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  9490. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  9491. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  9492. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  9493. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  9494. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  9495. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  9496. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  9497. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  9498. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  9499. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  9500. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  9501. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  9502. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  9503. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  9504. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  9505. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  9506. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  9507. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  9508. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  9509. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  9510. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  9511. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  9512. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  9513. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  9514. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  9515. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  9516. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  9517. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  9518. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  9519. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  9520. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  9521. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  9522. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  9523. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  9524. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  9525. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  9526. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  9527. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  9528. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  9529. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  9530. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  9531. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  9532. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  9533. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  9534. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  9535. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  9536. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  9537. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  9538. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  9539. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  9540. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  9541. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  9542. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  9543. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  9544. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  9545. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  9546. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  9547. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  9548. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  9549. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  9550. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  9551. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  9552. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  9553. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  9554. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  9555. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  9556. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  9557. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  9558. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  9559. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  9560. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  9561. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  9562. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  9563. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  9564. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  9565. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  9566. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  9567. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  9568. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  9569. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  9570. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  9571. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  9572. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  9573. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  9574. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  9575. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  9576. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  9577. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  9578. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  9579. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  9580. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  9581. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  9582. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  9583. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  9584. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  9585. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  9586. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  9587. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  9588. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  9589. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  9590. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  9591. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  9592. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  9593. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  9594. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  9595. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  9596. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  9597. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  9598. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  9599. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  9600. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  9601. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  9602. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  9603. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  9604. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  9605. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  9606. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  9607. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  9608. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  9609. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  9610. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  9611. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  9612. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  9613. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  9614. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  9615. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  9616. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  9617. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  9618. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  9619. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  9620. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  9621. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  9622. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  9623. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  9624. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  9625. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  9626. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  9627. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  9628. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  9629. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  9630. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  9631. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  9632. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  9633. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  9634. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  9635. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  9636. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  9637. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  9638. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  9639. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  9640. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  9641. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  9642. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  9643. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  9644. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  9645. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  9646. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  9647. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  9648. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  9649. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  9650. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  9651. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  9652. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  9653. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  9654. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  9655. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  9656. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  9657. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  9658. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  9659. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  9660. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  9661. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  9662. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  9663. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  9664. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  9665. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  9666. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  9667. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  9668. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  9669. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  9670. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  9671. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  9672. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  9673. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  9674. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  9675. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  9676. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  9677. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  9678. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  9679. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  9680. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  9681. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  9682. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  9683. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  9684. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  9685. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  9686. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  9687. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  9688. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  9689. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  9690. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  9691. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  9692. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  9693. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  9694. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  9695. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  9696. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  9697. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  9698. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  9699. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  9700. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  9701. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  9702. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  9703. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  9704. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  9705. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  9706. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  9707. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  9708. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  9709. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  9710. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  9711. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  9712. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  9713. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  9714. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  9715. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  9716. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  9717. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  9718. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  9719. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  9720. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  9721. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  9722. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  9723. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  9724. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  9725. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  9726. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  9727. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  9728. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  9729. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  9730. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  9731. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  9732. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  9733. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  9734. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  9735. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  9736. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  9737. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  9738. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  9739. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  9740. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  9741. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  9742. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  9743. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  9744. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  9745. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  9746. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  9747. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  9748. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  9749. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  9750. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  9751. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  9752. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  9753. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  9754. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  9755. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  9756. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  9757. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  9758. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  9759. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  9760. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  9761. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  9762. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  9763. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  9764. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  9765. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  9766. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  9767. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  9768. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  9769. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  9770. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  9771. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  9772. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  9773. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  9774. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  9775. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  9776. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  9777. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  9778. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  9779. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  9780. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  9781. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  9782. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  9783. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  9784. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  9785. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  9786. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  9787. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  9788. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  9789. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  9790. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  9791. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  9792. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  9793. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  9794. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  9795. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  9796. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  9797. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  9798. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  9799. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  9800. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  9801. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  9802. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  9803. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  9804. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  9805. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  9806. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  9807. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  9808. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  9809. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  9810. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  9811. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  9812. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  9813. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  9814. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  9815. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  9816. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  9817. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  9818. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  9819. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  9820. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  9821. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  9822. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  9823. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  9824. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  9825. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  9826. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  9827. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  9828. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  9829. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  9830. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  9831. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  9832. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  9833. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  9834. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  9835. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  9836. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  9837. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  9838. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  9839. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  9840. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  9841. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  9842. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  9843. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  9844. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  9845. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  9846. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  9847. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  9848. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  9849. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  9850. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  9851. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  9852. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  9853. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  9854. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  9855. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  9856. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  9857. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  9858. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  9859. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  9860. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  9861. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  9862. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  9863. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  9864. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  9865. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  9866. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  9867. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  9868. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  9869. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  9870. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  9871. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  9872. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  9873. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  9874. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  9875. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  9876. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  9877. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  9878. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  9879. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  9880. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  9881. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  9882. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  9883. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  9884. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  9885. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  9886. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  9887. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  9888. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  9889. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  9890. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  9891. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  9892. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  9893. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  9894. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  9895. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  9896. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  9897. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  9898. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  9899. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  9900. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  9901. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  9902. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  9903. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  9904. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  9905. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  9906. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  9907. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  9908. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  9909. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  9910. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  9911. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  9912. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  9913. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  9914. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  9915. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  9916. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  9917. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  9918. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  9919. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  9920. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  9921. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  9922. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  9923. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  9924. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  9925. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  9926. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  9927. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  9928. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  9929. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  9930. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  9931. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  9932. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  9933. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  9934. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  9935. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  9936. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  9937. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  9938. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  9939. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  9940. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  9941. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  9942. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  9943. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  9944. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  9945. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  9946. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  9947. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  9948. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  9949. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  9950. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  9951. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  9952. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  9953. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  9954. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  9955. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  9956. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  9957. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  9958. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  9959. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  9960. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  9961. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  9962. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  9963. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  9964. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  9965. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  9966. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  9967. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  9968. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  9969. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  9970. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  9971. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  9972. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  9973. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  9974. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  9975. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  9976. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  9977. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  9978. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  9979. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  9980. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  9981. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  9982. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  9983. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  9984. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  9985. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  9986. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  9987. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  9988. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  9989. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  9990. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  9991. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  9992. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  9993. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  9994. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  9995. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  9996. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  9997. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  9998. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  9999. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  10000. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  10001. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  10002. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  10003. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  10004. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  10005. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  10006. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  10007. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  10008. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  10009. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  10010. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  10011. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  10012. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  10013. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  10014. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  10015. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  10016. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  10017. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  10018. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  10019. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  10020. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  10021. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  10022. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  10023. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  10024. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  10025. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  10026. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  10027. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  10028. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  10029. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  10030. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  10031. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  10032. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  10033. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  10034. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  10035. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  10036. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  10037. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  10038. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  10039. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  10040. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  10041. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  10042. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  10043. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  10044. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  10045. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  10046. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  10047. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  10048. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  10049. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  10050. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  10051. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  10052. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  10053. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  10054. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  10055. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  10056. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  10057. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  10058. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  10059. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  10060. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  10061. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  10062. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  10063. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  10064. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  10065. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  10066. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  10067. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  10068. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  10069. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  10070. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  10071. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  10072. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  10073. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  10074. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  10075. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  10076. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  10077. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  10078. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  10079. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  10080. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  10081. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  10082. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  10083. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  10084. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  10085. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  10086. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  10087. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  10088. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  10089. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  10090. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  10091. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  10092. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  10093. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  10094. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  10095. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  10096. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  10097. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  10098. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  10099. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  10100. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  10101. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  10102. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  10103. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  10104. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  10105. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  10106. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  10107. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  10108. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  10109. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  10110. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  10111. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  10112. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  10113. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  10114. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  10115. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  10116. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  10117. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  10118. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  10119. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  10120. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  10121. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  10122. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  10123. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  10124. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  10125. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  10126. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  10127. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  10128. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  10129. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  10130. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  10131. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  10132. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  10133. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  10134. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  10135. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  10136. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  10137. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  10138. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  10139. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  10140. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  10141. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  10142. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  10143. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  10144. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  10145. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  10146. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  10147. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  10148. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  10149. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  10150. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  10151. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  10152. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  10153. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  10154. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  10155. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  10156. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  10157. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  10158. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  10159. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  10160. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  10161. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  10162. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  10163. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  10164. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  10165. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  10166. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  10167. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  10168. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  10169. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  10170. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  10171. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  10172. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  10173. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  10174. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  10175. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  10176. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  10177. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  10178. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  10179. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  10180. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  10181. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  10182. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  10183. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  10184. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  10185. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  10186. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  10187. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  10188. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  10189. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  10190. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  10191. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  10192. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  10193. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  10194. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  10195. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  10196. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  10197. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  10198. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  10199. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  10200. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  10201. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  10202. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  10203. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  10204. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  10205. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  10206. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  10207. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  10208. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  10209. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  10210. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  10211. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  10212. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  10213. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  10214. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  10215. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  10216. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  10217. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  10218. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  10219. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  10220. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  10221. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  10222. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  10223. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  10224. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  10225. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  10226. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  10227. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  10228. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  10229. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  10230. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  10231. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  10232. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  10233. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  10234. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  10235. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  10236. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  10237. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  10238. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  10239. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  10240. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  10241. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  10242. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  10243. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  10244. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  10245. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  10246. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  10247. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  10248. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  10249. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  10250. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  10251. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  10252. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  10253. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  10254. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  10255. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  10256. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  10257. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  10258. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  10259. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  10260. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  10261. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  10262. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  10263. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  10264. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  10265. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  10266. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  10267. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  10268. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  10269. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  10270. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  10271. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  10272. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  10273. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  10274. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  10275. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  10276. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  10277. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  10278. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  10279. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  10280. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  10281. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  10282. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  10283. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  10284. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  10285. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  10286. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  10287. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  10288. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  10289. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  10290. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  10291. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  10292. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  10293. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  10294. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  10295. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  10296. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  10297. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  10298. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  10299. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  10300. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  10301. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  10302. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  10303. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  10304. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  10305. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  10306. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  10307. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  10308. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  10309. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  10310. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  10311. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  10312. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  10313. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  10314. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  10315. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  10316. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  10317. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  10318. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  10319. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  10320. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  10321. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  10322. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  10323. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  10324. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  10325. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  10326. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  10327. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  10328. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  10329. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  10330. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  10331. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  10332. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  10333. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  10334. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  10335. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  10336. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  10337. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  10338. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  10339. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  10340. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  10341. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  10342. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  10343. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  10344. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  10345. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  10346. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  10347. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  10348. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  10349. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  10350. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  10351. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  10352. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  10353. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  10354. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  10355. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  10356. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  10357. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  10358. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  10359. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  10360. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  10361. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  10362. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  10363. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  10364. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  10365. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  10366. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  10367. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  10368. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  10369. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  10370. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  10371. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  10372. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  10373. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  10374. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  10375. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  10376. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  10377. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  10378. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  10379. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  10380. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  10381. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  10382. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  10383. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  10384. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  10385. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  10386. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  10387. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  10388. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  10389. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  10390. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  10391. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  10392. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  10393. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  10394. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  10395. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  10396. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  10397. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  10398. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  10399. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  10400. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  10401. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  10402. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  10403. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  10404. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  10405. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  10406. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  10407. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  10408. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  10409. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  10410. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  10411. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  10412. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  10413. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  10414. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  10415. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  10416. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  10417. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  10418. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  10419. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  10420. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  10421. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  10422. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  10423. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  10424. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  10425. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  10426. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  10427. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  10428. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  10429. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  10430. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  10431. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  10432. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  10433. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  10434. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  10435. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  10436. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  10437. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  10438. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  10439. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  10440. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  10441. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  10442. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  10443. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  10444. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  10445. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  10446. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  10447. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  10448. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  10449. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  10450. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  10451. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  10452. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  10453. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  10454. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  10455. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  10456. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  10457. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  10458. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  10459. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  10460. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  10461. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  10462. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  10463. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  10464. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  10465. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  10466. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  10467. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  10468. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  10469. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  10470. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  10471. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  10472. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  10473. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  10474. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  10475. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  10476. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  10477. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  10478. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  10479. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  10480. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  10481. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  10482. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  10483. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  10484. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  10485. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  10486. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  10487. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  10488. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  10489. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  10490. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  10491. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  10492. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  10493. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  10494. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  10495. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  10496. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  10497. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  10498. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  10499. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  10500. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  10501. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  10502. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  10503. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  10504. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  10505. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  10506. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  10507. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  10508. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  10509. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  10510. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  10511. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  10512. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  10513. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  10514. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  10515. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  10516. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  10517. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  10518. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  10519. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  10520. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  10521. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  10522. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  10523. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  10524. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  10525. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  10526. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  10527. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  10528. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  10529. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  10530. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  10531. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  10532. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  10533. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  10534. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  10535. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  10536. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  10537. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  10538. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  10539. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  10540. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  10541. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  10542. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  10543. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  10544. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  10545. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  10546. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  10547. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  10548. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  10549. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  10550. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  10551. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  10552. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  10553. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  10554. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  10555. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  10556. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  10557. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  10558. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  10559. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  10560. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  10561. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  10562. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  10563. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  10564. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  10565. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  10566. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  10567. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  10568. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  10569. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  10570. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  10571. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  10572. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  10573. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  10574. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  10575. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  10576. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  10577. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  10578. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  10579. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  10580. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  10581. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  10582. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  10583. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  10584. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  10585. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  10586. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  10587. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  10588. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  10589. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  10590. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  10591. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  10592. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  10593. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  10594. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  10595. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  10596. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  10597. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  10598. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  10599. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  10600. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  10601. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  10602. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  10603. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  10604. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  10605. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  10606. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  10607. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  10608. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  10609. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  10610. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  10611. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  10612. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  10613. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  10614. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  10615. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  10616. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  10617. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  10618. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  10619. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  10620. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  10621. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  10622. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  10623. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  10624. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  10625. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  10626. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  10627. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  10628. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  10629. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  10630. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  10631. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  10632. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  10633. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  10634. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  10635. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  10636. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  10637. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  10638. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  10639. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  10640. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  10641. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  10642. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  10643. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  10644. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  10645. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  10646. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  10647. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  10648. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  10649. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  10650. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  10651. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  10652. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  10653. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  10654. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  10655. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  10656. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  10657. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  10658. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  10659. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  10660. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  10661. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  10662. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  10663. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  10664. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  10665. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  10666. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  10667. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  10668. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  10669. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  10670. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  10671. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  10672. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  10673. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  10674. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  10675. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  10676. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  10677. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  10678. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  10679. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  10680. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  10681. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  10682. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  10683. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  10684. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  10685. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  10686. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  10687. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  10688. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  10689. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  10690. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  10691. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  10692. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  10693. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  10694. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  10695. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  10696. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  10697. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  10698. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  10699. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  10700. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  10701. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  10702. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  10703. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  10704. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  10705. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  10706. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  10707. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  10708. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  10709. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  10710. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  10711. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  10712. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  10713. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  10714. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  10715. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  10716. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  10717. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  10718. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  10719. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  10720. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  10721. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  10722. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  10723. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  10724. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  10725. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  10726. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  10727. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  10728. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  10729. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  10730. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  10731. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  10732. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  10733. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  10734. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  10735. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  10736. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  10737. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  10738. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  10739. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  10740. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  10741. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  10742. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  10743. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  10744. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  10745. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  10746. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  10747. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  10748. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  10749. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  10750. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  10751. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  10752. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  10753. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  10754. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  10755. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  10756. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  10757. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  10758. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  10759. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  10760. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  10761. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  10762. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  10763. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  10764. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  10765. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  10766. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  10767. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  10768. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  10769. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  10770. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  10771. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  10772. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  10773. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  10774. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  10775. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  10776. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  10777. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  10778. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  10779. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  10780. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  10781. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  10782. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  10783. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  10784. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  10785. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  10786. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  10787. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  10788. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  10789. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  10790. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  10791. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  10792. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  10793. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  10794. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  10795. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  10796. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  10797. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  10798. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  10799. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  10800. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  10801. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  10802. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  10803. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  10804. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  10805. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  10806. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  10807. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  10808. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  10809. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  10810. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  10811. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  10812. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  10813. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  10814. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  10815. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  10816. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  10817. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  10818. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  10819. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  10820. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  10821. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  10822. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  10823. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  10824. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  10825. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  10826. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  10827. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  10828. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  10829. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  10830. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  10831. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  10832. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  10833. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  10834. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  10835. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  10836. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  10837. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  10838. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  10839. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  10840. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  10841. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  10842. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  10843. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  10844. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  10845. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  10846. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  10847. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  10848. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  10849. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  10850. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  10851. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  10852. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  10853. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  10854. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  10855. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  10856. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  10857. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  10858. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  10859. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  10860. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  10861. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  10862. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  10863. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  10864. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  10865. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  10866. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  10867. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  10868. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  10869. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  10870. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  10871. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  10872. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  10873. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  10874. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  10875. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  10876. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  10877. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  10878. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  10879. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  10880. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  10881. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  10882. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  10883. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  10884. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  10885. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  10886. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  10887. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  10888. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  10889. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  10890. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  10891. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  10892. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  10893. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  10894. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  10895. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  10896. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  10897. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  10898. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  10899. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  10900. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  10901. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  10902. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  10903. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  10904. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  10905. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  10906. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  10907. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  10908. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  10909. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  10910. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  10911. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  10912. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  10913. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  10914. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  10915. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  10916. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  10917. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  10918. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  10919. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  10920. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  10921. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  10922. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  10923. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  10924. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  10925. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  10926. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  10927. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  10928. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  10929. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  10930. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  10931. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  10932. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  10933. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  10934. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  10935. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  10936. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  10937. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  10938. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  10939. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  10940. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  10941. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  10942. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  10943. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  10944. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  10945. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  10946. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  10947. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  10948. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  10949. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  10950. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  10951. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  10952. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  10953. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  10954. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  10955. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  10956. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  10957. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  10958. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  10959. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  10960. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  10961. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  10962. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  10963. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  10964. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  10965. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  10966. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  10967. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  10968. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  10969. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  10970. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  10971. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  10972. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  10973. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  10974. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  10975. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  10976. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  10977. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  10978. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  10979. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  10980. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  10981. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  10982. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  10983. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  10984. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  10985. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  10986. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  10987. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  10988. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  10989. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  10990. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  10991. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  10992. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  10993. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  10994. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  10995. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  10996. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  10997. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  10998. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  10999. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  11000. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  11001. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  11002. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  11003. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  11004. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  11005. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  11006. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  11007. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  11008. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  11009. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  11010. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  11011. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  11012. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  11013. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  11014. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  11015. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  11016. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  11017. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  11018. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  11019. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  11020. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  11021. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  11022. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  11023. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  11024. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  11025. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  11026. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  11027. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  11028. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  11029. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  11030. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  11031. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  11032. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  11033. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  11034. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  11035. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  11036. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  11037. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  11038. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  11039. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  11040. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  11041. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  11042. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  11043. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  11044. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  11045. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  11046. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  11047. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  11048. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  11049. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  11050. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  11051. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  11052. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  11053. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  11054. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  11055. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  11056. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  11057. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  11058. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  11059. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  11060. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  11061. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  11062. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  11063. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  11064. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  11065. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  11066. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  11067. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  11068. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  11069. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  11070. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  11071. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  11072. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  11073. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  11074. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  11075. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  11076. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  11077. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  11078. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  11079. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  11080. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  11081. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  11082. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  11083. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  11084. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  11085. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  11086. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  11087. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  11088. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  11089. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  11090. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  11091. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  11092. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  11093. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  11094. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  11095. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  11096. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  11097. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  11098. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  11099. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  11100. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  11101. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  11102. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  11103. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  11104. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  11105. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  11106. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  11107. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  11108. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  11109. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  11110. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  11111. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  11112. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  11113. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  11114. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  11115. {f: 7, c: 19887}]
  11116. };
  11117. var DEFAULT_ICON_SIZE = 22; // px
  11118. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  11119. var Annotation = (function AnnotationClosure() {
  11120. // 12.5.5: Algorithm: Appearance streams
  11121. function getTransformMatrix(rect, bbox, matrix) {
  11122. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  11123. var minX = bounds[0];
  11124. var minY = bounds[1];
  11125. var maxX = bounds[2];
  11126. var maxY = bounds[3];
  11127. if (minX === maxX || minY === maxY) {
  11128. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  11129. // just apply the transform for rect
  11130. return [1, 0, 0, 1, rect[0], rect[1]];
  11131. }
  11132. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  11133. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  11134. return [
  11135. xRatio,
  11136. 0,
  11137. 0,
  11138. yRatio,
  11139. rect[0] - minX * xRatio,
  11140. rect[1] - minY * yRatio
  11141. ];
  11142. }
  11143. function getDefaultAppearance(dict) {
  11144. var appearanceState = dict.get('AP');
  11145. if (!isDict(appearanceState)) {
  11146. return;
  11147. }
  11148. var appearance;
  11149. var appearances = appearanceState.get('N');
  11150. if (isDict(appearances)) {
  11151. var as = dict.get('AS');
  11152. if (as && appearances.has(as.name)) {
  11153. appearance = appearances.get(as.name);
  11154. }
  11155. } else {
  11156. appearance = appearances;
  11157. }
  11158. return appearance;
  11159. }
  11160. function Annotation(params) {
  11161. var dict = params.dict;
  11162. var data = this.data = {};
  11163. data.subtype = dict.get('Subtype').name;
  11164. var rect = dict.get('Rect') || [0, 0, 0, 0];
  11165. data.rect = Util.normalizeRect(rect);
  11166. data.annotationFlags = dict.get('F');
  11167. var color = dict.get('C');
  11168. if (isArray(color) && color.length === 3) {
  11169. // TODO(mack): currently only supporting rgb; need support different
  11170. // colorspaces
  11171. data.color = color;
  11172. } else {
  11173. data.color = [0, 0, 0];
  11174. }
  11175. // Some types of annotations have border style dict which has more
  11176. // info than the border array
  11177. if (dict.has('BS')) {
  11178. var borderStyle = dict.get('BS');
  11179. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  11180. } else {
  11181. var borderArray = dict.get('Border') || [0, 0, 1];
  11182. data.borderWidth = borderArray[2] || 0;
  11183. // TODO: implement proper support for annotations with line dash patterns.
  11184. var dashArray = borderArray[3];
  11185. if (data.borderWidth > 0 && dashArray) {
  11186. if (!isArray(dashArray)) {
  11187. // Ignore the border if dashArray is not actually an array,
  11188. // this is consistent with the behaviour in Adobe Reader.
  11189. data.borderWidth = 0;
  11190. } else {
  11191. var dashArrayLength = dashArray.length;
  11192. if (dashArrayLength > 0) {
  11193. // According to the PDF specification: the elements in a dashArray
  11194. // shall be numbers that are nonnegative and not all equal to zero.
  11195. var isInvalid = false;
  11196. var numPositive = 0;
  11197. for (var i = 0; i < dashArrayLength; i++) {
  11198. var validNumber = (+dashArray[i] >= 0);
  11199. if (!validNumber) {
  11200. isInvalid = true;
  11201. break;
  11202. } else if (dashArray[i] > 0) {
  11203. numPositive++;
  11204. }
  11205. }
  11206. if (isInvalid || numPositive === 0) {
  11207. data.borderWidth = 0;
  11208. }
  11209. }
  11210. }
  11211. }
  11212. }
  11213. this.appearance = getDefaultAppearance(dict);
  11214. data.hasAppearance = !!this.appearance;
  11215. data.id = params.ref.num;
  11216. }
  11217. Annotation.prototype = {
  11218. getData: function Annotation_getData() {
  11219. return this.data;
  11220. },
  11221. isInvisible: function Annotation_isInvisible() {
  11222. var data = this.data;
  11223. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  11224. return false;
  11225. } else {
  11226. return !!(data &&
  11227. data.annotationFlags && // Default: not invisible
  11228. data.annotationFlags & 0x1); // Invisible
  11229. }
  11230. },
  11231. isViewable: function Annotation_isViewable() {
  11232. var data = this.data;
  11233. return !!(!this.isInvisible() &&
  11234. data &&
  11235. (!data.annotationFlags ||
  11236. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  11237. data.rect); // rectangle is necessary
  11238. },
  11239. isPrintable: function Annotation_isPrintable() {
  11240. var data = this.data;
  11241. return !!(!this.isInvisible() &&
  11242. data &&
  11243. data.annotationFlags && // Default: not printable
  11244. data.annotationFlags & 0x4 && // Print
  11245. !(data.annotationFlags & 0x2) && // Hidden
  11246. data.rect); // rectangle is necessary
  11247. },
  11248. loadResources: function Annotation_loadResources(keys) {
  11249. return new Promise(function (resolve, reject) {
  11250. this.appearance.dict.getAsync('Resources').then(function (resources) {
  11251. if (!resources) {
  11252. resolve();
  11253. return;
  11254. }
  11255. var objectLoader = new ObjectLoader(resources.map,
  11256. keys,
  11257. resources.xref);
  11258. objectLoader.load().then(function() {
  11259. resolve(resources);
  11260. }, reject);
  11261. }, reject);
  11262. }.bind(this));
  11263. },
  11264. getOperatorList: function Annotation_getOperatorList(evaluator) {
  11265. if (!this.appearance) {
  11266. return Promise.resolve(new OperatorList());
  11267. }
  11268. var data = this.data;
  11269. var appearanceDict = this.appearance.dict;
  11270. var resourcesPromise = this.loadResources([
  11271. 'ExtGState',
  11272. 'ColorSpace',
  11273. 'Pattern',
  11274. 'Shading',
  11275. 'XObject',
  11276. 'Font'
  11277. // ProcSet
  11278. // Properties
  11279. ]);
  11280. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  11281. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  11282. var transform = getTransformMatrix(data.rect, bbox, matrix);
  11283. var self = this;
  11284. return resourcesPromise.then(function(resources) {
  11285. var opList = new OperatorList();
  11286. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  11287. return evaluator.getOperatorList(self.appearance, resources, opList).
  11288. then(function () {
  11289. opList.addOp(OPS.endAnnotation, []);
  11290. self.appearance.reset();
  11291. return opList;
  11292. });
  11293. });
  11294. }
  11295. };
  11296. Annotation.getConstructor =
  11297. function Annotation_getConstructor(subtype, fieldType) {
  11298. if (!subtype) {
  11299. return;
  11300. }
  11301. // TODO(mack): Implement FreeText annotations
  11302. if (subtype === 'Link') {
  11303. return LinkAnnotation;
  11304. } else if (subtype === 'Text') {
  11305. return TextAnnotation;
  11306. } else if (subtype === 'Widget') {
  11307. if (!fieldType) {
  11308. return;
  11309. }
  11310. if (fieldType === 'Tx') {
  11311. return TextWidgetAnnotation;
  11312. } else {
  11313. return WidgetAnnotation;
  11314. }
  11315. } else {
  11316. return Annotation;
  11317. }
  11318. };
  11319. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  11320. var dict = xref.fetchIfRef(ref);
  11321. if (!isDict(dict)) {
  11322. return;
  11323. }
  11324. var subtype = dict.get('Subtype');
  11325. subtype = isName(subtype) ? subtype.name : '';
  11326. if (!subtype) {
  11327. return;
  11328. }
  11329. var fieldType = Util.getInheritableProperty(dict, 'FT');
  11330. fieldType = isName(fieldType) ? fieldType.name : '';
  11331. var Constructor = Annotation.getConstructor(subtype, fieldType);
  11332. if (!Constructor) {
  11333. return;
  11334. }
  11335. var params = {
  11336. dict: dict,
  11337. ref: ref,
  11338. };
  11339. var annotation = new Constructor(params);
  11340. if (annotation.isViewable() || annotation.isPrintable()) {
  11341. return annotation;
  11342. } else {
  11343. if (SUPPORTED_TYPES.indexOf(subtype) === -1) {
  11344. warn('unimplemented annotation type: ' + subtype);
  11345. }
  11346. }
  11347. };
  11348. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  11349. annotations, opList, pdfManager, partialEvaluator, intent) {
  11350. function reject(e) {
  11351. annotationsReadyCapability.reject(e);
  11352. }
  11353. var annotationsReadyCapability = createPromiseCapability();
  11354. var annotationPromises = [];
  11355. for (var i = 0, n = annotations.length; i < n; ++i) {
  11356. if (intent === 'display' && annotations[i].isViewable() ||
  11357. intent === 'print' && annotations[i].isPrintable()) {
  11358. annotationPromises.push(
  11359. annotations[i].getOperatorList(partialEvaluator));
  11360. }
  11361. }
  11362. Promise.all(annotationPromises).then(function(datas) {
  11363. opList.addOp(OPS.beginAnnotations, []);
  11364. for (var i = 0, n = datas.length; i < n; ++i) {
  11365. var annotOpList = datas[i];
  11366. opList.addOpList(annotOpList);
  11367. }
  11368. opList.addOp(OPS.endAnnotations, []);
  11369. annotationsReadyCapability.resolve();
  11370. }, reject);
  11371. return annotationsReadyCapability.promise;
  11372. };
  11373. return Annotation;
  11374. })();
  11375. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  11376. function WidgetAnnotation(params) {
  11377. Annotation.call(this, params);
  11378. var dict = params.dict;
  11379. var data = this.data;
  11380. data.fieldValue = stringToPDFString(
  11381. Util.getInheritableProperty(dict, 'V') || '');
  11382. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  11383. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  11384. var fieldType = Util.getInheritableProperty(dict, 'FT');
  11385. data.fieldType = isName(fieldType) ? fieldType.name : '';
  11386. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  11387. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  11388. // Building the full field name by collecting the field and
  11389. // its ancestors 'T' data and joining them using '.'.
  11390. var fieldName = [];
  11391. var namedItem = dict;
  11392. var ref = params.ref;
  11393. while (namedItem) {
  11394. var parent = namedItem.get('Parent');
  11395. var parentRef = namedItem.getRaw('Parent');
  11396. var name = namedItem.get('T');
  11397. if (name) {
  11398. fieldName.unshift(stringToPDFString(name));
  11399. } else {
  11400. // The field name is absent, that means more than one field
  11401. // with the same name may exist. Replacing the empty name
  11402. // with the '`' plus index in the parent's 'Kids' array.
  11403. // This is not in the PDF spec but necessary to id the
  11404. // the input controls.
  11405. var kids = parent.get('Kids');
  11406. var j, jj;
  11407. for (j = 0, jj = kids.length; j < jj; j++) {
  11408. var kidRef = kids[j];
  11409. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  11410. break;
  11411. }
  11412. }
  11413. fieldName.unshift('`' + j);
  11414. }
  11415. namedItem = parent;
  11416. ref = parentRef;
  11417. }
  11418. data.fullName = fieldName.join('.');
  11419. }
  11420. var parent = Annotation.prototype;
  11421. Util.inherit(WidgetAnnotation, Annotation, {
  11422. isViewable: function WidgetAnnotation_isViewable() {
  11423. if (this.data.fieldType === 'Sig') {
  11424. warn('unimplemented annotation type: Widget signature');
  11425. return false;
  11426. }
  11427. return parent.isViewable.call(this);
  11428. }
  11429. });
  11430. return WidgetAnnotation;
  11431. })();
  11432. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  11433. function TextWidgetAnnotation(params) {
  11434. WidgetAnnotation.call(this, params);
  11435. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  11436. this.data.annotationType = AnnotationType.WIDGET;
  11437. this.data.hasHtml = !this.data.hasAppearance && !!this.data.fieldValue;
  11438. }
  11439. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  11440. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  11441. if (this.appearance) {
  11442. return Annotation.prototype.getOperatorList.call(this, evaluator);
  11443. }
  11444. var opList = new OperatorList();
  11445. var data = this.data;
  11446. // Even if there is an appearance stream, ignore it. This is the
  11447. // behaviour used by Adobe Reader.
  11448. if (!data.defaultAppearance) {
  11449. return Promise.resolve(opList);
  11450. }
  11451. var stream = new Stream(stringToBytes(data.defaultAppearance));
  11452. return evaluator.getOperatorList(stream, this.fieldResources, opList).
  11453. then(function () {
  11454. return opList;
  11455. });
  11456. }
  11457. });
  11458. return TextWidgetAnnotation;
  11459. })();
  11460. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  11461. function InteractiveAnnotation(params) {
  11462. Annotation.call(this, params);
  11463. this.data.hasHtml = true;
  11464. }
  11465. Util.inherit(InteractiveAnnotation, Annotation, { });
  11466. return InteractiveAnnotation;
  11467. })();
  11468. var TextAnnotation = (function TextAnnotationClosure() {
  11469. function TextAnnotation(params) {
  11470. InteractiveAnnotation.call(this, params);
  11471. var dict = params.dict;
  11472. var data = this.data;
  11473. var content = dict.get('Contents');
  11474. var title = dict.get('T');
  11475. data.annotationType = AnnotationType.TEXT;
  11476. data.content = stringToPDFString(content || '');
  11477. data.title = stringToPDFString(title || '');
  11478. if (data.hasAppearance) {
  11479. data.name = 'NoIcon';
  11480. } else {
  11481. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  11482. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  11483. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  11484. }
  11485. if (dict.has('C')) {
  11486. data.hasBgColor = true;
  11487. }
  11488. }
  11489. Util.inherit(TextAnnotation, InteractiveAnnotation, { });
  11490. return TextAnnotation;
  11491. })();
  11492. var LinkAnnotation = (function LinkAnnotationClosure() {
  11493. function LinkAnnotation(params) {
  11494. InteractiveAnnotation.call(this, params);
  11495. var dict = params.dict;
  11496. var data = this.data;
  11497. data.annotationType = AnnotationType.LINK;
  11498. var action = dict.get('A');
  11499. if (action) {
  11500. var linkType = action.get('S').name;
  11501. if (linkType === 'URI') {
  11502. var url = action.get('URI');
  11503. if (isName(url)) {
  11504. // Some bad PDFs do not put parentheses around relative URLs.
  11505. url = '/' + url.name;
  11506. } else if (url) {
  11507. url = addDefaultProtocolToUrl(url);
  11508. }
  11509. // TODO: pdf spec mentions urls can be relative to a Base
  11510. // entry in the dictionary.
  11511. if (!isValidUrl(url, false)) {
  11512. url = '';
  11513. }
  11514. data.url = url;
  11515. } else if (linkType === 'GoTo') {
  11516. data.dest = action.get('D');
  11517. } else if (linkType === 'GoToR') {
  11518. var urlDict = action.get('F');
  11519. if (isDict(urlDict)) {
  11520. // We assume that the 'url' is a Filspec dictionary
  11521. // and fetch the url without checking any further
  11522. url = urlDict.get('F') || '';
  11523. }
  11524. // TODO: pdf reference says that GoToR
  11525. // can also have 'NewWindow' attribute
  11526. if (!isValidUrl(url, false)) {
  11527. url = '';
  11528. }
  11529. data.url = url;
  11530. data.dest = action.get('D');
  11531. } else if (linkType === 'Named') {
  11532. data.action = action.get('N').name;
  11533. } else {
  11534. warn('unrecognized link type: ' + linkType);
  11535. }
  11536. } else if (dict.has('Dest')) {
  11537. // simple destination link
  11538. var dest = dict.get('Dest');
  11539. data.dest = isName(dest) ? dest.name : dest;
  11540. }
  11541. }
  11542. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  11543. function addDefaultProtocolToUrl(url) {
  11544. if (url && url.indexOf('www.') === 0) {
  11545. return ('http://' + url);
  11546. }
  11547. return url;
  11548. }
  11549. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  11550. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  11551. return false;
  11552. }
  11553. });
  11554. return LinkAnnotation;
  11555. })();
  11556. var PDFFunction = (function PDFFunctionClosure() {
  11557. var CONSTRUCT_SAMPLED = 0;
  11558. var CONSTRUCT_INTERPOLATED = 2;
  11559. var CONSTRUCT_STICHED = 3;
  11560. var CONSTRUCT_POSTSCRIPT = 4;
  11561. return {
  11562. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  11563. str) {
  11564. var i, ii;
  11565. var length = 1;
  11566. for (i = 0, ii = size.length; i < ii; i++) {
  11567. length *= size[i];
  11568. }
  11569. length *= outputSize;
  11570. var array = [];
  11571. var codeSize = 0;
  11572. var codeBuf = 0;
  11573. // 32 is a valid bps so shifting won't work
  11574. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  11575. var strBytes = str.getBytes((length * bps + 7) / 8);
  11576. var strIdx = 0;
  11577. for (i = 0; i < length; i++) {
  11578. while (codeSize < bps) {
  11579. codeBuf <<= 8;
  11580. codeBuf |= strBytes[strIdx++];
  11581. codeSize += 8;
  11582. }
  11583. codeSize -= bps;
  11584. array.push((codeBuf >> codeSize) * sampleMul);
  11585. codeBuf &= (1 << codeSize) - 1;
  11586. }
  11587. return array;
  11588. },
  11589. getIR: function PDFFunction_getIR(xref, fn) {
  11590. var dict = fn.dict;
  11591. if (!dict) {
  11592. dict = fn;
  11593. }
  11594. var types = [this.constructSampled,
  11595. null,
  11596. this.constructInterpolated,
  11597. this.constructStiched,
  11598. this.constructPostScript];
  11599. var typeNum = dict.get('FunctionType');
  11600. var typeFn = types[typeNum];
  11601. if (!typeFn) {
  11602. error('Unknown type of function');
  11603. }
  11604. return typeFn.call(this, fn, dict, xref);
  11605. },
  11606. fromIR: function PDFFunction_fromIR(IR) {
  11607. var type = IR[0];
  11608. switch (type) {
  11609. case CONSTRUCT_SAMPLED:
  11610. return this.constructSampledFromIR(IR);
  11611. case CONSTRUCT_INTERPOLATED:
  11612. return this.constructInterpolatedFromIR(IR);
  11613. case CONSTRUCT_STICHED:
  11614. return this.constructStichedFromIR(IR);
  11615. //case CONSTRUCT_POSTSCRIPT:
  11616. default:
  11617. return this.constructPostScriptFromIR(IR);
  11618. }
  11619. },
  11620. parse: function PDFFunction_parse(xref, fn) {
  11621. var IR = this.getIR(xref, fn);
  11622. return this.fromIR(IR);
  11623. },
  11624. constructSampled: function PDFFunction_constructSampled(str, dict) {
  11625. function toMultiArray(arr) {
  11626. var inputLength = arr.length;
  11627. var out = [];
  11628. var index = 0;
  11629. for (var i = 0; i < inputLength; i += 2) {
  11630. out[index] = [arr[i], arr[i + 1]];
  11631. ++index;
  11632. }
  11633. return out;
  11634. }
  11635. var domain = dict.get('Domain');
  11636. var range = dict.get('Range');
  11637. if (!domain || !range) {
  11638. error('No domain or range');
  11639. }
  11640. var inputSize = domain.length / 2;
  11641. var outputSize = range.length / 2;
  11642. domain = toMultiArray(domain);
  11643. range = toMultiArray(range);
  11644. var size = dict.get('Size');
  11645. var bps = dict.get('BitsPerSample');
  11646. var order = dict.get('Order') || 1;
  11647. if (order !== 1) {
  11648. // No description how cubic spline interpolation works in PDF32000:2008
  11649. // As in poppler, ignoring order, linear interpolation may work as good
  11650. info('No support for cubic spline interpolation: ' + order);
  11651. }
  11652. var encode = dict.get('Encode');
  11653. if (!encode) {
  11654. encode = [];
  11655. for (var i = 0; i < inputSize; ++i) {
  11656. encode.push(0);
  11657. encode.push(size[i] - 1);
  11658. }
  11659. }
  11660. encode = toMultiArray(encode);
  11661. var decode = dict.get('Decode');
  11662. if (!decode) {
  11663. decode = range;
  11664. } else {
  11665. decode = toMultiArray(decode);
  11666. }
  11667. var samples = this.getSampleArray(size, outputSize, bps, str);
  11668. return [
  11669. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  11670. outputSize, Math.pow(2, bps) - 1, range
  11671. ];
  11672. },
  11673. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  11674. // See chapter 3, page 109 of the PDF reference
  11675. function interpolate(x, xmin, xmax, ymin, ymax) {
  11676. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  11677. }
  11678. return function constructSampledFromIRResult(args) {
  11679. // See chapter 3, page 110 of the PDF reference.
  11680. var m = IR[1];
  11681. var domain = IR[2];
  11682. var encode = IR[3];
  11683. var decode = IR[4];
  11684. var samples = IR[5];
  11685. var size = IR[6];
  11686. var n = IR[7];
  11687. //var mask = IR[8];
  11688. var range = IR[9];
  11689. if (m != args.length) {
  11690. error('Incorrect number of arguments: ' + m + ' != ' +
  11691. args.length);
  11692. }
  11693. var x = args;
  11694. // Building the cube vertices: its part and sample index
  11695. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  11696. var cubeVertices = 1 << m;
  11697. var cubeN = new Float64Array(cubeVertices);
  11698. var cubeVertex = new Uint32Array(cubeVertices);
  11699. var i, j;
  11700. for (j = 0; j < cubeVertices; j++) {
  11701. cubeN[j] = 1;
  11702. }
  11703. var k = n, pos = 1;
  11704. // Map x_i to y_j for 0 <= i < m using the sampled function.
  11705. for (i = 0; i < m; ++i) {
  11706. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  11707. var domain_2i = domain[i][0];
  11708. var domain_2i_1 = domain[i][1];
  11709. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  11710. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  11711. // Encode_2i, Encode_2i+1)
  11712. var e = interpolate(xi, domain_2i, domain_2i_1,
  11713. encode[i][0], encode[i][1]);
  11714. // e_i' = min(max(e_i, 0), Size_i - 1)
  11715. var size_i = size[i];
  11716. e = Math.min(Math.max(e, 0), size_i - 1);
  11717. // Adjusting the cube: N and vertex sample index
  11718. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  11719. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  11720. var n1 = e - e0; // (e - e0) / (e1 - e0);
  11721. var offset0 = e0 * k;
  11722. var offset1 = offset0 + k; // e1 * k
  11723. for (j = 0; j < cubeVertices; j++) {
  11724. if (j & pos) {
  11725. cubeN[j] *= n1;
  11726. cubeVertex[j] += offset1;
  11727. } else {
  11728. cubeN[j] *= n0;
  11729. cubeVertex[j] += offset0;
  11730. }
  11731. }
  11732. k *= size_i;
  11733. pos <<= 1;
  11734. }
  11735. var y = new Float64Array(n);
  11736. for (j = 0; j < n; ++j) {
  11737. // Sum all cube vertices' samples portions
  11738. var rj = 0;
  11739. for (i = 0; i < cubeVertices; i++) {
  11740. rj += samples[cubeVertex[i] + j] * cubeN[i];
  11741. }
  11742. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  11743. // Decode_2j, Decode_2j+1)
  11744. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  11745. // y_j = min(max(r_j, range_2j), range_2j+1)
  11746. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  11747. }
  11748. return y;
  11749. };
  11750. },
  11751. constructInterpolated: function PDFFunction_constructInterpolated(str,
  11752. dict) {
  11753. var c0 = dict.get('C0') || [0];
  11754. var c1 = dict.get('C1') || [1];
  11755. var n = dict.get('N');
  11756. if (!isArray(c0) || !isArray(c1)) {
  11757. error('Illegal dictionary for interpolated function');
  11758. }
  11759. var length = c0.length;
  11760. var diff = [];
  11761. for (var i = 0; i < length; ++i) {
  11762. diff.push(c1[i] - c0[i]);
  11763. }
  11764. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  11765. },
  11766. constructInterpolatedFromIR:
  11767. function PDFFunction_constructInterpolatedFromIR(IR) {
  11768. var c0 = IR[1];
  11769. var diff = IR[2];
  11770. var n = IR[3];
  11771. var length = diff.length;
  11772. return function constructInterpolatedFromIRResult(args) {
  11773. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  11774. var out = [];
  11775. for (var j = 0; j < length; ++j) {
  11776. out.push(c0[j] + (x * diff[j]));
  11777. }
  11778. return out;
  11779. };
  11780. },
  11781. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  11782. var domain = dict.get('Domain');
  11783. if (!domain) {
  11784. error('No domain');
  11785. }
  11786. var inputSize = domain.length / 2;
  11787. if (inputSize != 1) {
  11788. error('Bad domain for stiched function');
  11789. }
  11790. var fnRefs = dict.get('Functions');
  11791. var fns = [];
  11792. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  11793. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  11794. }
  11795. var bounds = dict.get('Bounds');
  11796. var encode = dict.get('Encode');
  11797. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  11798. },
  11799. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  11800. var domain = IR[1];
  11801. var bounds = IR[2];
  11802. var encode = IR[3];
  11803. var fnsIR = IR[4];
  11804. var fns = [];
  11805. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  11806. fns.push(PDFFunction.fromIR(fnsIR[i]));
  11807. }
  11808. return function constructStichedFromIRResult(args) {
  11809. var clip = function constructStichedFromIRClip(v, min, max) {
  11810. if (v > max) {
  11811. v = max;
  11812. } else if (v < min) {
  11813. v = min;
  11814. }
  11815. return v;
  11816. };
  11817. // clip to domain
  11818. var v = clip(args[0], domain[0], domain[1]);
  11819. // calulate which bound the value is in
  11820. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  11821. if (v < bounds[i]) {
  11822. break;
  11823. }
  11824. }
  11825. // encode value into domain of function
  11826. var dmin = domain[0];
  11827. if (i > 0) {
  11828. dmin = bounds[i - 1];
  11829. }
  11830. var dmax = domain[1];
  11831. if (i < bounds.length) {
  11832. dmax = bounds[i];
  11833. }
  11834. var rmin = encode[2 * i];
  11835. var rmax = encode[2 * i + 1];
  11836. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  11837. // call the appropriate function
  11838. return fns[i]([v2]);
  11839. };
  11840. },
  11841. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  11842. xref) {
  11843. var domain = dict.get('Domain');
  11844. var range = dict.get('Range');
  11845. if (!domain) {
  11846. error('No domain.');
  11847. }
  11848. if (!range) {
  11849. error('No range.');
  11850. }
  11851. var lexer = new PostScriptLexer(fn);
  11852. var parser = new PostScriptParser(lexer);
  11853. var code = parser.parse();
  11854. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  11855. },
  11856. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  11857. IR) {
  11858. var domain = IR[1];
  11859. var range = IR[2];
  11860. var code = IR[3];
  11861. var numOutputs = range.length >> 1;
  11862. var numInputs = domain.length >> 1;
  11863. var evaluator = new PostScriptEvaluator(code);
  11864. // Cache the values for a big speed up, the cache size is limited though
  11865. // since the number of possible values can be huge from a PS function.
  11866. var cache = {};
  11867. // The MAX_CACHE_SIZE is set to ~4x the maximum number of distinct values
  11868. // seen in our tests.
  11869. var MAX_CACHE_SIZE = 2048 * 4;
  11870. var cache_available = MAX_CACHE_SIZE;
  11871. return function constructPostScriptFromIRResult(args) {
  11872. var i, value;
  11873. var key = '';
  11874. var input = new Array(numInputs);
  11875. for (i = 0; i < numInputs; i++) {
  11876. value = args[i];
  11877. input[i] = value;
  11878. key += value + '_';
  11879. }
  11880. var cachedValue = cache[key];
  11881. if (cachedValue !== undefined) {
  11882. return cachedValue;
  11883. }
  11884. var output = new Array(numOutputs);
  11885. var stack = evaluator.execute(input);
  11886. var stackIndex = stack.length - numOutputs;
  11887. for (i = 0; i < numOutputs; i++) {
  11888. value = stack[stackIndex + i];
  11889. var bound = range[i * 2];
  11890. if (value < bound) {
  11891. value = bound;
  11892. } else {
  11893. bound = range[i * 2 +1];
  11894. if (value > bound) {
  11895. value = bound;
  11896. }
  11897. }
  11898. output[i] = value;
  11899. }
  11900. if (cache_available > 0) {
  11901. cache_available--;
  11902. cache[key] = output;
  11903. }
  11904. return output;
  11905. };
  11906. }
  11907. };
  11908. })();
  11909. function isPDFFunction(v) {
  11910. var fnDict;
  11911. if (typeof v != 'object') {
  11912. return false;
  11913. } else if (isDict(v)) {
  11914. fnDict = v;
  11915. } else if (isStream(v)) {
  11916. fnDict = v.dict;
  11917. } else {
  11918. return false;
  11919. }
  11920. return fnDict.has('FunctionType');
  11921. }
  11922. var PostScriptStack = (function PostScriptStackClosure() {
  11923. var MAX_STACK_SIZE = 100;
  11924. function PostScriptStack(initialStack) {
  11925. this.stack = initialStack || [];
  11926. }
  11927. PostScriptStack.prototype = {
  11928. push: function PostScriptStack_push(value) {
  11929. if (this.stack.length >= MAX_STACK_SIZE) {
  11930. error('PostScript function stack overflow.');
  11931. }
  11932. this.stack.push(value);
  11933. },
  11934. pop: function PostScriptStack_pop() {
  11935. if (this.stack.length <= 0) {
  11936. error('PostScript function stack underflow.');
  11937. }
  11938. return this.stack.pop();
  11939. },
  11940. copy: function PostScriptStack_copy(n) {
  11941. if (this.stack.length + n >= MAX_STACK_SIZE) {
  11942. error('PostScript function stack overflow.');
  11943. }
  11944. var stack = this.stack;
  11945. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  11946. stack.push(stack[i]);
  11947. }
  11948. },
  11949. index: function PostScriptStack_index(n) {
  11950. this.push(this.stack[this.stack.length - n - 1]);
  11951. },
  11952. // rotate the last n stack elements p times
  11953. roll: function PostScriptStack_roll(n, p) {
  11954. var stack = this.stack;
  11955. var l = stack.length - n;
  11956. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  11957. for (i = l, j = r; i < j; i++, j--) {
  11958. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11959. }
  11960. for (i = l, j = c - 1; i < j; i++, j--) {
  11961. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11962. }
  11963. for (i = c, j = r; i < j; i++, j--) {
  11964. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11965. }
  11966. }
  11967. };
  11968. return PostScriptStack;
  11969. })();
  11970. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  11971. function PostScriptEvaluator(operators) {
  11972. this.operators = operators;
  11973. }
  11974. PostScriptEvaluator.prototype = {
  11975. execute: function PostScriptEvaluator_execute(initialStack) {
  11976. var stack = new PostScriptStack(initialStack);
  11977. var counter = 0;
  11978. var operators = this.operators;
  11979. var length = operators.length;
  11980. var operator, a, b;
  11981. while (counter < length) {
  11982. operator = operators[counter++];
  11983. if (typeof operator == 'number') {
  11984. // Operator is really an operand and should be pushed to the stack.
  11985. stack.push(operator);
  11986. continue;
  11987. }
  11988. switch (operator) {
  11989. // non standard ps operators
  11990. case 'jz': // jump if false
  11991. b = stack.pop();
  11992. a = stack.pop();
  11993. if (!a) {
  11994. counter = b;
  11995. }
  11996. break;
  11997. case 'j': // jump
  11998. a = stack.pop();
  11999. counter = a;
  12000. break;
  12001. // all ps operators in alphabetical order (excluding if/ifelse)
  12002. case 'abs':
  12003. a = stack.pop();
  12004. stack.push(Math.abs(a));
  12005. break;
  12006. case 'add':
  12007. b = stack.pop();
  12008. a = stack.pop();
  12009. stack.push(a + b);
  12010. break;
  12011. case 'and':
  12012. b = stack.pop();
  12013. a = stack.pop();
  12014. if (isBool(a) && isBool(b)) {
  12015. stack.push(a && b);
  12016. } else {
  12017. stack.push(a & b);
  12018. }
  12019. break;
  12020. case 'atan':
  12021. a = stack.pop();
  12022. stack.push(Math.atan(a));
  12023. break;
  12024. case 'bitshift':
  12025. b = stack.pop();
  12026. a = stack.pop();
  12027. if (a > 0) {
  12028. stack.push(a << b);
  12029. } else {
  12030. stack.push(a >> b);
  12031. }
  12032. break;
  12033. case 'ceiling':
  12034. a = stack.pop();
  12035. stack.push(Math.ceil(a));
  12036. break;
  12037. case 'copy':
  12038. a = stack.pop();
  12039. stack.copy(a);
  12040. break;
  12041. case 'cos':
  12042. a = stack.pop();
  12043. stack.push(Math.cos(a));
  12044. break;
  12045. case 'cvi':
  12046. a = stack.pop() | 0;
  12047. stack.push(a);
  12048. break;
  12049. case 'cvr':
  12050. // noop
  12051. break;
  12052. case 'div':
  12053. b = stack.pop();
  12054. a = stack.pop();
  12055. stack.push(a / b);
  12056. break;
  12057. case 'dup':
  12058. stack.copy(1);
  12059. break;
  12060. case 'eq':
  12061. b = stack.pop();
  12062. a = stack.pop();
  12063. stack.push(a == b);
  12064. break;
  12065. case 'exch':
  12066. stack.roll(2, 1);
  12067. break;
  12068. case 'exp':
  12069. b = stack.pop();
  12070. a = stack.pop();
  12071. stack.push(Math.pow(a, b));
  12072. break;
  12073. case 'false':
  12074. stack.push(false);
  12075. break;
  12076. case 'floor':
  12077. a = stack.pop();
  12078. stack.push(Math.floor(a));
  12079. break;
  12080. case 'ge':
  12081. b = stack.pop();
  12082. a = stack.pop();
  12083. stack.push(a >= b);
  12084. break;
  12085. case 'gt':
  12086. b = stack.pop();
  12087. a = stack.pop();
  12088. stack.push(a > b);
  12089. break;
  12090. case 'idiv':
  12091. b = stack.pop();
  12092. a = stack.pop();
  12093. stack.push((a / b) | 0);
  12094. break;
  12095. case 'index':
  12096. a = stack.pop();
  12097. stack.index(a);
  12098. break;
  12099. case 'le':
  12100. b = stack.pop();
  12101. a = stack.pop();
  12102. stack.push(a <= b);
  12103. break;
  12104. case 'ln':
  12105. a = stack.pop();
  12106. stack.push(Math.log(a));
  12107. break;
  12108. case 'log':
  12109. a = stack.pop();
  12110. stack.push(Math.log(a) / Math.LN10);
  12111. break;
  12112. case 'lt':
  12113. b = stack.pop();
  12114. a = stack.pop();
  12115. stack.push(a < b);
  12116. break;
  12117. case 'mod':
  12118. b = stack.pop();
  12119. a = stack.pop();
  12120. stack.push(a % b);
  12121. break;
  12122. case 'mul':
  12123. b = stack.pop();
  12124. a = stack.pop();
  12125. stack.push(a * b);
  12126. break;
  12127. case 'ne':
  12128. b = stack.pop();
  12129. a = stack.pop();
  12130. stack.push(a != b);
  12131. break;
  12132. case 'neg':
  12133. a = stack.pop();
  12134. stack.push(-a);
  12135. break;
  12136. case 'not':
  12137. a = stack.pop();
  12138. if (isBool(a)) {
  12139. stack.push(!a);
  12140. } else {
  12141. stack.push(~a);
  12142. }
  12143. break;
  12144. case 'or':
  12145. b = stack.pop();
  12146. a = stack.pop();
  12147. if (isBool(a) && isBool(b)) {
  12148. stack.push(a || b);
  12149. } else {
  12150. stack.push(a | b);
  12151. }
  12152. break;
  12153. case 'pop':
  12154. stack.pop();
  12155. break;
  12156. case 'roll':
  12157. b = stack.pop();
  12158. a = stack.pop();
  12159. stack.roll(a, b);
  12160. break;
  12161. case 'round':
  12162. a = stack.pop();
  12163. stack.push(Math.round(a));
  12164. break;
  12165. case 'sin':
  12166. a = stack.pop();
  12167. stack.push(Math.sin(a));
  12168. break;
  12169. case 'sqrt':
  12170. a = stack.pop();
  12171. stack.push(Math.sqrt(a));
  12172. break;
  12173. case 'sub':
  12174. b = stack.pop();
  12175. a = stack.pop();
  12176. stack.push(a - b);
  12177. break;
  12178. case 'true':
  12179. stack.push(true);
  12180. break;
  12181. case 'truncate':
  12182. a = stack.pop();
  12183. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  12184. stack.push(a);
  12185. break;
  12186. case 'xor':
  12187. b = stack.pop();
  12188. a = stack.pop();
  12189. if (isBool(a) && isBool(b)) {
  12190. stack.push(a != b);
  12191. } else {
  12192. stack.push(a ^ b);
  12193. }
  12194. break;
  12195. default:
  12196. error('Unknown operator ' + operator);
  12197. break;
  12198. }
  12199. }
  12200. return stack.stack;
  12201. }
  12202. };
  12203. return PostScriptEvaluator;
  12204. })();
  12205. var ColorSpace = (function ColorSpaceClosure() {
  12206. // Constructor should define this.numComps, this.defaultColor, this.name
  12207. function ColorSpace() {
  12208. error('should not call ColorSpace constructor');
  12209. }
  12210. ColorSpace.prototype = {
  12211. /**
  12212. * Converts the color value to the RGB color. The color components are
  12213. * located in the src array starting from the srcOffset. Returns the array
  12214. * of the rgb components, each value ranging from [0,255].
  12215. */
  12216. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  12217. var rgb = new Uint8Array(3);
  12218. this.getRgbItem(src, srcOffset, rgb, 0);
  12219. return rgb;
  12220. },
  12221. /**
  12222. * Converts the color value to the RGB color, similar to the getRgb method.
  12223. * The result placed into the dest array starting from the destOffset.
  12224. */
  12225. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  12226. dest, destOffset) {
  12227. error('Should not call ColorSpace.getRgbItem');
  12228. },
  12229. /**
  12230. * Converts the specified number of the color values to the RGB colors.
  12231. * The colors are located in the src array starting from the srcOffset.
  12232. * The result is placed into the dest array starting from the destOffset.
  12233. * The src array items shall be in [0,2^bits) range, the dest array items
  12234. * will be in [0,255] range. alpha01 indicates how many alpha components
  12235. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  12236. * array).
  12237. */
  12238. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  12239. dest, destOffset, bits,
  12240. alpha01) {
  12241. error('Should not call ColorSpace.getRgbBuffer');
  12242. },
  12243. /**
  12244. * Determines the number of bytes required to store the result of the
  12245. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  12246. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  12247. */
  12248. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  12249. alpha01) {
  12250. error('Should not call ColorSpace.getOutputLength');
  12251. },
  12252. /**
  12253. * Returns true if source data will be equal the result/output data.
  12254. */
  12255. isPassthrough: function ColorSpace_isPassthrough(bits) {
  12256. return false;
  12257. },
  12258. /**
  12259. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  12260. * how many alpha components there are in the dest array; it will be either
  12261. * 0 (RGB array) or 1 (RGBA array).
  12262. */
  12263. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  12264. originalHeight, width, height,
  12265. actualHeight, bpc, comps, alpha01) {
  12266. var count = originalWidth * originalHeight;
  12267. var rgbBuf = null;
  12268. var numComponentColors = 1 << bpc;
  12269. var needsResizing = originalHeight != height || originalWidth != width;
  12270. var i, ii;
  12271. if (this.isPassthrough(bpc)) {
  12272. rgbBuf = comps;
  12273. } else if (this.numComps === 1 && count > numComponentColors &&
  12274. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  12275. // Optimization: create a color map when there is just one component and
  12276. // we are converting more colors than the size of the color map. We
  12277. // don't build the map if the colorspace is gray or rgb since those
  12278. // methods are faster than building a map. This mainly offers big speed
  12279. // ups for indexed and alternate colorspaces.
  12280. //
  12281. // TODO it may be worth while to cache the color map. While running
  12282. // testing I never hit a cache so I will leave that out for now (perhaps
  12283. // we are reparsing colorspaces too much?).
  12284. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  12285. new Uint16Array(numComponentColors);
  12286. var key;
  12287. for (i = 0; i < numComponentColors; i++) {
  12288. allColors[i] = i;
  12289. }
  12290. var colorMap = new Uint8Array(numComponentColors * 3);
  12291. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  12292. /* alpha01 = */ 0);
  12293. var destPos, rgbPos;
  12294. if (!needsResizing) {
  12295. // Fill in the RGB values directly into |dest|.
  12296. destPos = 0;
  12297. for (i = 0; i < count; ++i) {
  12298. key = comps[i] * 3;
  12299. dest[destPos++] = colorMap[key];
  12300. dest[destPos++] = colorMap[key + 1];
  12301. dest[destPos++] = colorMap[key + 2];
  12302. destPos += alpha01;
  12303. }
  12304. } else {
  12305. rgbBuf = new Uint8Array(count * 3);
  12306. rgbPos = 0;
  12307. for (i = 0; i < count; ++i) {
  12308. key = comps[i] * 3;
  12309. rgbBuf[rgbPos++] = colorMap[key];
  12310. rgbBuf[rgbPos++] = colorMap[key + 1];
  12311. rgbBuf[rgbPos++] = colorMap[key + 2];
  12312. }
  12313. }
  12314. } else {
  12315. if (!needsResizing) {
  12316. // Fill in the RGB values directly into |dest|.
  12317. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  12318. alpha01);
  12319. } else {
  12320. rgbBuf = new Uint8Array(count * 3);
  12321. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  12322. /* alpha01 = */ 0);
  12323. }
  12324. }
  12325. if (rgbBuf) {
  12326. if (needsResizing) {
  12327. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  12328. height, dest, alpha01);
  12329. } else {
  12330. rgbPos = 0;
  12331. destPos = 0;
  12332. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  12333. dest[destPos++] = rgbBuf[rgbPos++];
  12334. dest[destPos++] = rgbBuf[rgbPos++];
  12335. dest[destPos++] = rgbBuf[rgbPos++];
  12336. destPos += alpha01;
  12337. }
  12338. }
  12339. }
  12340. },
  12341. /**
  12342. * True if the colorspace has components in the default range of [0, 1].
  12343. * This should be true for all colorspaces except for lab color spaces
  12344. * which are [0,100], [-128, 127], [-128, 127].
  12345. */
  12346. usesZeroToOneRange: true
  12347. };
  12348. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  12349. var IR = ColorSpace.parseToIR(cs, xref, res);
  12350. if (IR instanceof AlternateCS) {
  12351. return IR;
  12352. }
  12353. return ColorSpace.fromIR(IR);
  12354. };
  12355. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  12356. var name = isArray(IR) ? IR[0] : IR;
  12357. var whitePoint, blackPoint;
  12358. switch (name) {
  12359. case 'DeviceGrayCS':
  12360. return this.singletons.gray;
  12361. case 'DeviceRgbCS':
  12362. return this.singletons.rgb;
  12363. case 'DeviceCmykCS':
  12364. return this.singletons.cmyk;
  12365. case 'CalGrayCS':
  12366. whitePoint = IR[1].WhitePoint;
  12367. blackPoint = IR[1].BlackPoint;
  12368. var gamma = IR[1].Gamma;
  12369. return new CalGrayCS(whitePoint, blackPoint, gamma);
  12370. case 'PatternCS':
  12371. var basePatternCS = IR[1];
  12372. if (basePatternCS) {
  12373. basePatternCS = ColorSpace.fromIR(basePatternCS);
  12374. }
  12375. return new PatternCS(basePatternCS);
  12376. case 'IndexedCS':
  12377. var baseIndexedCS = IR[1];
  12378. var hiVal = IR[2];
  12379. var lookup = IR[3];
  12380. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  12381. case 'AlternateCS':
  12382. var numComps = IR[1];
  12383. var alt = IR[2];
  12384. var tintFnIR = IR[3];
  12385. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  12386. PDFFunction.fromIR(tintFnIR));
  12387. case 'LabCS':
  12388. whitePoint = IR[1].WhitePoint;
  12389. blackPoint = IR[1].BlackPoint;
  12390. var range = IR[1].Range;
  12391. return new LabCS(whitePoint, blackPoint, range);
  12392. default:
  12393. error('Unkown name ' + name);
  12394. }
  12395. return null;
  12396. };
  12397. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  12398. if (isName(cs)) {
  12399. var colorSpaces = res.get('ColorSpace');
  12400. if (isDict(colorSpaces)) {
  12401. var refcs = colorSpaces.get(cs.name);
  12402. if (refcs) {
  12403. cs = refcs;
  12404. }
  12405. }
  12406. }
  12407. cs = xref.fetchIfRef(cs);
  12408. var mode;
  12409. if (isName(cs)) {
  12410. mode = cs.name;
  12411. this.mode = mode;
  12412. switch (mode) {
  12413. case 'DeviceGray':
  12414. case 'G':
  12415. return 'DeviceGrayCS';
  12416. case 'DeviceRGB':
  12417. case 'RGB':
  12418. return 'DeviceRgbCS';
  12419. case 'DeviceCMYK':
  12420. case 'CMYK':
  12421. return 'DeviceCmykCS';
  12422. case 'Pattern':
  12423. return ['PatternCS', null];
  12424. default:
  12425. error('unrecognized colorspace ' + mode);
  12426. }
  12427. } else if (isArray(cs)) {
  12428. mode = cs[0].name;
  12429. this.mode = mode;
  12430. var numComps, params;
  12431. switch (mode) {
  12432. case 'DeviceGray':
  12433. case 'G':
  12434. return 'DeviceGrayCS';
  12435. case 'DeviceRGB':
  12436. case 'RGB':
  12437. return 'DeviceRgbCS';
  12438. case 'DeviceCMYK':
  12439. case 'CMYK':
  12440. return 'DeviceCmykCS';
  12441. case 'CalGray':
  12442. params = cs[1].getAll();
  12443. return ['CalGrayCS', params];
  12444. case 'CalRGB':
  12445. return 'DeviceRgbCS';
  12446. case 'ICCBased':
  12447. var stream = xref.fetchIfRef(cs[1]);
  12448. var dict = stream.dict;
  12449. numComps = dict.get('N');
  12450. if (numComps == 1) {
  12451. return 'DeviceGrayCS';
  12452. } else if (numComps == 3) {
  12453. return 'DeviceRgbCS';
  12454. } else if (numComps == 4) {
  12455. return 'DeviceCmykCS';
  12456. }
  12457. break;
  12458. case 'Pattern':
  12459. var basePatternCS = cs[1];
  12460. if (basePatternCS) {
  12461. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  12462. }
  12463. return ['PatternCS', basePatternCS];
  12464. case 'Indexed':
  12465. case 'I':
  12466. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  12467. var hiVal = cs[2] + 1;
  12468. var lookup = xref.fetchIfRef(cs[3]);
  12469. if (isStream(lookup)) {
  12470. lookup = lookup.getBytes();
  12471. }
  12472. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  12473. case 'Separation':
  12474. case 'DeviceN':
  12475. var name = cs[1];
  12476. numComps = 1;
  12477. if (isName(name)) {
  12478. numComps = 1;
  12479. } else if (isArray(name)) {
  12480. numComps = name.length;
  12481. }
  12482. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  12483. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  12484. return ['AlternateCS', numComps, alt, tintFnIR];
  12485. case 'Lab':
  12486. params = cs[1].getAll();
  12487. return ['LabCS', params];
  12488. default:
  12489. error('unimplemented color space object "' + mode + '"');
  12490. }
  12491. } else {
  12492. error('unrecognized color space object: "' + cs + '"');
  12493. }
  12494. return null;
  12495. };
  12496. /**
  12497. * Checks if a decode map matches the default decode map for a color space.
  12498. * This handles the general decode maps where there are two values per
  12499. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  12500. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  12501. * slightly different.
  12502. * @param {Array} decode Decode map (usually from an image).
  12503. * @param {Number} n Number of components the color space has.
  12504. */
  12505. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  12506. if (!decode) {
  12507. return true;
  12508. }
  12509. if (n * 2 !== decode.length) {
  12510. warn('The decode map is not the correct length');
  12511. return true;
  12512. }
  12513. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  12514. if (decode[i] !== 0 || decode[i + 1] != 1) {
  12515. return false;
  12516. }
  12517. }
  12518. return true;
  12519. };
  12520. ColorSpace.singletons = {
  12521. get gray() {
  12522. return shadow(this, 'gray', new DeviceGrayCS());
  12523. },
  12524. get rgb() {
  12525. return shadow(this, 'rgb', new DeviceRgbCS());
  12526. },
  12527. get cmyk() {
  12528. return shadow(this, 'cmyk', new DeviceCmykCS());
  12529. }
  12530. };
  12531. return ColorSpace;
  12532. })();
  12533. /**
  12534. * Alternate color space handles both Separation and DeviceN color spaces. A
  12535. * Separation color space is actually just a DeviceN with one color component.
  12536. * Both color spaces use a tinting function to convert colors to a base color
  12537. * space.
  12538. */
  12539. var AlternateCS = (function AlternateCSClosure() {
  12540. function AlternateCS(numComps, base, tintFn) {
  12541. this.name = 'Alternate';
  12542. this.numComps = numComps;
  12543. this.defaultColor = new Float32Array(numComps);
  12544. for (var i = 0; i < numComps; ++i) {
  12545. this.defaultColor[i] = 1;
  12546. }
  12547. this.base = base;
  12548. this.tintFn = tintFn;
  12549. }
  12550. AlternateCS.prototype = {
  12551. getRgb: ColorSpace.prototype.getRgb,
  12552. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  12553. dest, destOffset) {
  12554. var baseNumComps = this.base.numComps;
  12555. var input = 'subarray' in src ?
  12556. src.subarray(srcOffset, srcOffset + this.numComps) :
  12557. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  12558. var tinted = this.tintFn(input);
  12559. this.base.getRgbItem(tinted, 0, dest, destOffset);
  12560. },
  12561. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  12562. dest, destOffset, bits,
  12563. alpha01) {
  12564. var tinted;
  12565. var tintFn = this.tintFn;
  12566. var base = this.base;
  12567. var scale = 1 / ((1 << bits) - 1);
  12568. var baseNumComps = base.numComps;
  12569. var usesZeroToOneRange = base.usesZeroToOneRange;
  12570. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  12571. alpha01 === 0;
  12572. var pos = isPassthrough ? destOffset : 0;
  12573. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  12574. var numComps = this.numComps;
  12575. var scaled = new Float32Array(numComps);
  12576. var i, j;
  12577. if (usesZeroToOneRange) {
  12578. for (i = 0; i < count; i++) {
  12579. for (j = 0; j < numComps; j++) {
  12580. scaled[j] = src[srcOffset++] * scale;
  12581. }
  12582. tinted = tintFn(scaled);
  12583. for (j = 0; j < baseNumComps; j++) {
  12584. baseBuf[pos++] = tinted[j] * 255;
  12585. }
  12586. }
  12587. } else {
  12588. for (i = 0; i < count; i++) {
  12589. for (j = 0; j < numComps; j++) {
  12590. scaled[j] = src[srcOffset++] * scale;
  12591. }
  12592. tinted = tintFn(scaled);
  12593. base.getRgbItem(tinted, 0, baseBuf, pos);
  12594. pos += baseNumComps;
  12595. }
  12596. }
  12597. if (!isPassthrough) {
  12598. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  12599. }
  12600. },
  12601. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  12602. alpha01) {
  12603. return this.base.getOutputLength(inputLength *
  12604. this.base.numComps / this.numComps,
  12605. alpha01);
  12606. },
  12607. isPassthrough: ColorSpace.prototype.isPassthrough,
  12608. fillRgb: ColorSpace.prototype.fillRgb,
  12609. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  12610. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12611. },
  12612. usesZeroToOneRange: true
  12613. };
  12614. return AlternateCS;
  12615. })();
  12616. var PatternCS = (function PatternCSClosure() {
  12617. function PatternCS(baseCS) {
  12618. this.name = 'Pattern';
  12619. this.base = baseCS;
  12620. }
  12621. PatternCS.prototype = {};
  12622. return PatternCS;
  12623. })();
  12624. var IndexedCS = (function IndexedCSClosure() {
  12625. function IndexedCS(base, highVal, lookup) {
  12626. this.name = 'Indexed';
  12627. this.numComps = 1;
  12628. this.defaultColor = new Uint8Array([0]);
  12629. this.base = base;
  12630. this.highVal = highVal;
  12631. var baseNumComps = base.numComps;
  12632. var length = baseNumComps * highVal;
  12633. var lookupArray;
  12634. if (isStream(lookup)) {
  12635. lookupArray = new Uint8Array(length);
  12636. var bytes = lookup.getBytes(length);
  12637. lookupArray.set(bytes);
  12638. } else if (isString(lookup)) {
  12639. lookupArray = new Uint8Array(length);
  12640. for (var i = 0; i < length; ++i) {
  12641. lookupArray[i] = lookup.charCodeAt(i);
  12642. }
  12643. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  12644. lookupArray = lookup;
  12645. } else {
  12646. error('Unrecognized lookup table: ' + lookup);
  12647. }
  12648. this.lookup = lookupArray;
  12649. }
  12650. IndexedCS.prototype = {
  12651. getRgb: ColorSpace.prototype.getRgb,
  12652. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  12653. dest, destOffset) {
  12654. var numComps = this.base.numComps;
  12655. var start = src[srcOffset] * numComps;
  12656. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  12657. },
  12658. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  12659. dest, destOffset, bits,
  12660. alpha01) {
  12661. var base = this.base;
  12662. var numComps = base.numComps;
  12663. var outputDelta = base.getOutputLength(numComps, alpha01);
  12664. var lookup = this.lookup;
  12665. for (var i = 0; i < count; ++i) {
  12666. var lookupPos = src[srcOffset++] * numComps;
  12667. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  12668. destOffset += outputDelta;
  12669. }
  12670. },
  12671. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  12672. return this.base.getOutputLength(inputLength * this.base.numComps,
  12673. alpha01);
  12674. },
  12675. isPassthrough: ColorSpace.prototype.isPassthrough,
  12676. fillRgb: ColorSpace.prototype.fillRgb,
  12677. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  12678. // indexed color maps shouldn't be changed
  12679. return true;
  12680. },
  12681. usesZeroToOneRange: true
  12682. };
  12683. return IndexedCS;
  12684. })();
  12685. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  12686. function DeviceGrayCS() {
  12687. this.name = 'DeviceGray';
  12688. this.numComps = 1;
  12689. this.defaultColor = new Float32Array([0]);
  12690. }
  12691. DeviceGrayCS.prototype = {
  12692. getRgb: ColorSpace.prototype.getRgb,
  12693. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  12694. dest, destOffset) {
  12695. var c = (src[srcOffset] * 255) | 0;
  12696. c = c < 0 ? 0 : c > 255 ? 255 : c;
  12697. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  12698. },
  12699. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  12700. dest, destOffset, bits,
  12701. alpha01) {
  12702. var scale = 255 / ((1 << bits) - 1);
  12703. var j = srcOffset, q = destOffset;
  12704. for (var i = 0; i < count; ++i) {
  12705. var c = (scale * src[j++]) | 0;
  12706. dest[q++] = c;
  12707. dest[q++] = c;
  12708. dest[q++] = c;
  12709. q += alpha01;
  12710. }
  12711. },
  12712. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  12713. alpha01) {
  12714. return inputLength * (3 + alpha01);
  12715. },
  12716. isPassthrough: ColorSpace.prototype.isPassthrough,
  12717. fillRgb: ColorSpace.prototype.fillRgb,
  12718. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  12719. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12720. },
  12721. usesZeroToOneRange: true
  12722. };
  12723. return DeviceGrayCS;
  12724. })();
  12725. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  12726. function DeviceRgbCS() {
  12727. this.name = 'DeviceRGB';
  12728. this.numComps = 3;
  12729. this.defaultColor = new Float32Array([0, 0, 0]);
  12730. }
  12731. DeviceRgbCS.prototype = {
  12732. getRgb: ColorSpace.prototype.getRgb,
  12733. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  12734. dest, destOffset) {
  12735. var r = (src[srcOffset] * 255) | 0;
  12736. var g = (src[srcOffset + 1] * 255) | 0;
  12737. var b = (src[srcOffset + 2] * 255) | 0;
  12738. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  12739. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  12740. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  12741. },
  12742. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  12743. dest, destOffset, bits,
  12744. alpha01) {
  12745. if (bits === 8 && alpha01 === 0) {
  12746. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  12747. return;
  12748. }
  12749. var scale = 255 / ((1 << bits) - 1);
  12750. var j = srcOffset, q = destOffset;
  12751. for (var i = 0; i < count; ++i) {
  12752. dest[q++] = (scale * src[j++]) | 0;
  12753. dest[q++] = (scale * src[j++]) | 0;
  12754. dest[q++] = (scale * src[j++]) | 0;
  12755. q += alpha01;
  12756. }
  12757. },
  12758. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  12759. alpha01) {
  12760. return (inputLength * (3 + alpha01) / 3) | 0;
  12761. },
  12762. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  12763. return bits == 8;
  12764. },
  12765. fillRgb: ColorSpace.prototype.fillRgb,
  12766. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  12767. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12768. },
  12769. usesZeroToOneRange: true
  12770. };
  12771. return DeviceRgbCS;
  12772. })();
  12773. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  12774. // The coefficients below was found using numerical analysis: the method of
  12775. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  12776. // where color_value is the tabular value from the table of sampled RGB colors
  12777. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  12778. // CMYK color conversion using the estimation below:
  12779. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  12780. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  12781. var c = src[srcOffset + 0] * srcScale;
  12782. var m = src[srcOffset + 1] * srcScale;
  12783. var y = src[srcOffset + 2] * srcScale;
  12784. var k = src[srcOffset + 3] * srcScale;
  12785. var r =
  12786. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  12787. 18.82290502165302 * y + 212.25662451639585 * k +
  12788. -285.2331026137004) +
  12789. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  12790. -17.873870861415444 * k - 5.497006427196366) +
  12791. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  12792. 17.5119270841813) +
  12793. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  12794. var g =
  12795. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  12796. 6.871425592049007 * y + 31.159100130055922 * k +
  12797. -79.2970844816548) +
  12798. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  12799. 131.35250912493976 * k - 190.9453302588951) +
  12800. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  12801. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  12802. var b =
  12803. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  12804. 30.89978309703729 * y - 0.23883238689178934 * k +
  12805. -14.183576799673286) +
  12806. m * (10.49593273432072 * m + 63.02378494754052 * y +
  12807. 50.606957656360734 * k - 112.23884253719248) +
  12808. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  12809. -193.58209356861505) +
  12810. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  12811. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  12812. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  12813. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  12814. }
  12815. function DeviceCmykCS() {
  12816. this.name = 'DeviceCMYK';
  12817. this.numComps = 4;
  12818. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  12819. }
  12820. DeviceCmykCS.prototype = {
  12821. getRgb: ColorSpace.prototype.getRgb,
  12822. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  12823. dest, destOffset) {
  12824. convertToRgb(src, srcOffset, 1, dest, destOffset);
  12825. },
  12826. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  12827. dest, destOffset, bits,
  12828. alpha01) {
  12829. var scale = 1 / ((1 << bits) - 1);
  12830. for (var i = 0; i < count; i++) {
  12831. convertToRgb(src, srcOffset, scale, dest, destOffset);
  12832. srcOffset += 4;
  12833. destOffset += 3 + alpha01;
  12834. }
  12835. },
  12836. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  12837. alpha01) {
  12838. return (inputLength / 4 * (3 + alpha01)) | 0;
  12839. },
  12840. isPassthrough: ColorSpace.prototype.isPassthrough,
  12841. fillRgb: ColorSpace.prototype.fillRgb,
  12842. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  12843. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12844. },
  12845. usesZeroToOneRange: true
  12846. };
  12847. return DeviceCmykCS;
  12848. })();
  12849. //
  12850. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  12851. //
  12852. var CalGrayCS = (function CalGrayCSClosure() {
  12853. function CalGrayCS(whitePoint, blackPoint, gamma) {
  12854. this.name = 'CalGray';
  12855. this.numComps = 1;
  12856. this.defaultColor = new Float32Array([0]);
  12857. if (!whitePoint) {
  12858. error('WhitePoint missing - required for color space CalGray');
  12859. }
  12860. blackPoint = blackPoint || [0, 0, 0];
  12861. gamma = gamma || 1;
  12862. // Translate arguments to spec variables.
  12863. this.XW = whitePoint[0];
  12864. this.YW = whitePoint[1];
  12865. this.ZW = whitePoint[2];
  12866. this.XB = blackPoint[0];
  12867. this.YB = blackPoint[1];
  12868. this.ZB = blackPoint[2];
  12869. this.G = gamma;
  12870. // Validate variables as per spec.
  12871. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  12872. error('Invalid WhitePoint components for ' + this.name +
  12873. ', no fallback available');
  12874. }
  12875. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  12876. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  12877. this.XB = this.YB = this.ZB = 0;
  12878. }
  12879. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  12880. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  12881. ', ZB: ' + this.ZB + ', only default values are supported.');
  12882. }
  12883. if (this.G < 1) {
  12884. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  12885. ', falling back to default');
  12886. this.G = 1;
  12887. }
  12888. }
  12889. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  12890. // A represents a gray component of a calibrated gray space.
  12891. // A <---> AG in the spec
  12892. var A = src[srcOffset] * scale;
  12893. var AG = Math.pow(A, cs.G);
  12894. // Computes L as per spec. ( = cs.YW * AG )
  12895. // Except if other than default BlackPoint values are used.
  12896. var L = cs.YW * AG;
  12897. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  12898. // Convert values to rgb range [0, 255].
  12899. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  12900. dest[destOffset] = val;
  12901. dest[destOffset + 1] = val;
  12902. dest[destOffset + 2] = val;
  12903. }
  12904. CalGrayCS.prototype = {
  12905. getRgb: ColorSpace.prototype.getRgb,
  12906. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  12907. dest, destOffset) {
  12908. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  12909. },
  12910. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  12911. dest, destOffset, bits,
  12912. alpha01) {
  12913. var scale = 1 / ((1 << bits) - 1);
  12914. for (var i = 0; i < count; ++i) {
  12915. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  12916. srcOffset += 1;
  12917. destOffset += 3 + alpha01;
  12918. }
  12919. },
  12920. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  12921. return inputLength * (3 + alpha01);
  12922. },
  12923. isPassthrough: ColorSpace.prototype.isPassthrough,
  12924. fillRgb: ColorSpace.prototype.fillRgb,
  12925. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  12926. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12927. },
  12928. usesZeroToOneRange: true
  12929. };
  12930. return CalGrayCS;
  12931. })();
  12932. //
  12933. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  12934. //
  12935. var LabCS = (function LabCSClosure() {
  12936. function LabCS(whitePoint, blackPoint, range) {
  12937. this.name = 'Lab';
  12938. this.numComps = 3;
  12939. this.defaultColor = new Float32Array([0, 0, 0]);
  12940. if (!whitePoint) {
  12941. error('WhitePoint missing - required for color space Lab');
  12942. }
  12943. blackPoint = blackPoint || [0, 0, 0];
  12944. range = range || [-100, 100, -100, 100];
  12945. // Translate args to spec variables
  12946. this.XW = whitePoint[0];
  12947. this.YW = whitePoint[1];
  12948. this.ZW = whitePoint[2];
  12949. this.amin = range[0];
  12950. this.amax = range[1];
  12951. this.bmin = range[2];
  12952. this.bmax = range[3];
  12953. // These are here just for completeness - the spec doesn't offer any
  12954. // formulas that use BlackPoint in Lab
  12955. this.XB = blackPoint[0];
  12956. this.YB = blackPoint[1];
  12957. this.ZB = blackPoint[2];
  12958. // Validate vars as per spec
  12959. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  12960. error('Invalid WhitePoint components, no fallback available');
  12961. }
  12962. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  12963. info('Invalid BlackPoint, falling back to default');
  12964. this.XB = this.YB = this.ZB = 0;
  12965. }
  12966. if (this.amin > this.amax || this.bmin > this.bmax) {
  12967. info('Invalid Range, falling back to defaults');
  12968. this.amin = -100;
  12969. this.amax = 100;
  12970. this.bmin = -100;
  12971. this.bmax = 100;
  12972. }
  12973. }
  12974. // Function g(x) from spec
  12975. function fn_g(x) {
  12976. if (x >= 6 / 29) {
  12977. return x * x * x;
  12978. } else {
  12979. return (108 / 841) * (x - 4 / 29);
  12980. }
  12981. }
  12982. function decode(value, high1, low2, high2) {
  12983. return low2 + (value) * (high2 - low2) / (high1);
  12984. }
  12985. // If decoding is needed maxVal should be 2^bits per component - 1.
  12986. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  12987. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  12988. // not the usual [0, 1]. If a command like setFillColor is used the src
  12989. // values will already be within the correct range. However, if we are
  12990. // converting an image we have to map the values to the correct range given
  12991. // above.
  12992. // Ls,as,bs <---> L*,a*,b* in the spec
  12993. var Ls = src[srcOffset];
  12994. var as = src[srcOffset + 1];
  12995. var bs = src[srcOffset + 2];
  12996. if (maxVal !== false) {
  12997. Ls = decode(Ls, maxVal, 0, 100);
  12998. as = decode(as, maxVal, cs.amin, cs.amax);
  12999. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  13000. }
  13001. // Adjust limits of 'as' and 'bs'
  13002. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  13003. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  13004. // Computes intermediate variables X,Y,Z as per spec
  13005. var M = (Ls + 16) / 116;
  13006. var L = M + (as / 500);
  13007. var N = M - (bs / 200);
  13008. var X = cs.XW * fn_g(L);
  13009. var Y = cs.YW * fn_g(M);
  13010. var Z = cs.ZW * fn_g(N);
  13011. var r, g, b;
  13012. // Using different conversions for D50 and D65 white points,
  13013. // per http://www.color.org/srgb.pdf
  13014. if (cs.ZW < 1) {
  13015. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  13016. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  13017. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  13018. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  13019. } else {
  13020. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  13021. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  13022. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  13023. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  13024. }
  13025. // clamp color values to [0,1] range then convert to [0,255] range.
  13026. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  13027. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  13028. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  13029. }
  13030. LabCS.prototype = {
  13031. getRgb: ColorSpace.prototype.getRgb,
  13032. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  13033. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  13034. },
  13035. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  13036. dest, destOffset, bits,
  13037. alpha01) {
  13038. var maxVal = (1 << bits) - 1;
  13039. for (var i = 0; i < count; i++) {
  13040. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  13041. srcOffset += 3;
  13042. destOffset += 3 + alpha01;
  13043. }
  13044. },
  13045. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  13046. return (inputLength * (3 + alpha01) / 3) | 0;
  13047. },
  13048. isPassthrough: ColorSpace.prototype.isPassthrough,
  13049. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  13050. // XXX: Decoding is handled with the lab conversion because of the strange
  13051. // ranges that are used.
  13052. return true;
  13053. },
  13054. usesZeroToOneRange: false
  13055. };
  13056. return LabCS;
  13057. })();
  13058. var ARCFourCipher = (function ARCFourCipherClosure() {
  13059. function ARCFourCipher(key) {
  13060. this.a = 0;
  13061. this.b = 0;
  13062. var s = new Uint8Array(256);
  13063. var i, j = 0, tmp, keyLength = key.length;
  13064. for (i = 0; i < 256; ++i) {
  13065. s[i] = i;
  13066. }
  13067. for (i = 0; i < 256; ++i) {
  13068. tmp = s[i];
  13069. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13070. s[i] = s[j];
  13071. s[j] = tmp;
  13072. }
  13073. this.s = s;
  13074. }
  13075. ARCFourCipher.prototype = {
  13076. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13077. var i, n = data.length, tmp, tmp2;
  13078. var a = this.a, b = this.b, s = this.s;
  13079. var output = new Uint8Array(n);
  13080. for (i = 0; i < n; ++i) {
  13081. a = (a + 1) & 0xFF;
  13082. tmp = s[a];
  13083. b = (b + tmp) & 0xFF;
  13084. tmp2 = s[b];
  13085. s[a] = tmp2;
  13086. s[b] = tmp;
  13087. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13088. }
  13089. this.a = a;
  13090. this.b = b;
  13091. return output;
  13092. }
  13093. };
  13094. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13095. return ARCFourCipher;
  13096. })();
  13097. var calculateMD5 = (function calculateMD5Closure() {
  13098. var r = new Uint8Array([
  13099. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13100. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13101. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13102. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13103. var k = new Int32Array([
  13104. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13105. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13106. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13107. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13108. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13109. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13110. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13111. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13112. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13113. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13114. -145523070, -1120210379, 718787259, -343485551]);
  13115. function hash(data, offset, length) {
  13116. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13117. // pre-processing
  13118. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13119. var padded = new Uint8Array(paddedLength);
  13120. var i, j, n;
  13121. for (i = 0; i < length; ++i) {
  13122. padded[i] = data[offset++];
  13123. }
  13124. padded[i++] = 0x80;
  13125. n = paddedLength - 8;
  13126. while (i < n) {
  13127. padded[i++] = 0;
  13128. }
  13129. padded[i++] = (length << 3) & 0xFF;
  13130. padded[i++] = (length >> 5) & 0xFF;
  13131. padded[i++] = (length >> 13) & 0xFF;
  13132. padded[i++] = (length >> 21) & 0xFF;
  13133. padded[i++] = (length >>> 29) & 0xFF;
  13134. padded[i++] = 0;
  13135. padded[i++] = 0;
  13136. padded[i++] = 0;
  13137. var w = new Int32Array(16);
  13138. for (i = 0; i < paddedLength;) {
  13139. for (j = 0; j < 16; ++j, i += 4) {
  13140. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13141. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13142. }
  13143. var a = h0, b = h1, c = h2, d = h3, f, g;
  13144. for (j = 0; j < 64; ++j) {
  13145. if (j < 16) {
  13146. f = (b & c) | ((~b) & d);
  13147. g = j;
  13148. } else if (j < 32) {
  13149. f = (d & b) | ((~d) & c);
  13150. g = (5 * j + 1) & 15;
  13151. } else if (j < 48) {
  13152. f = b ^ c ^ d;
  13153. g = (3 * j + 5) & 15;
  13154. } else {
  13155. f = c ^ (b | (~d));
  13156. g = (7 * j) & 15;
  13157. }
  13158. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13159. d = c;
  13160. c = b;
  13161. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13162. a = tmp;
  13163. }
  13164. h0 = (h0 + a) | 0;
  13165. h1 = (h1 + b) | 0;
  13166. h2 = (h2 + c) | 0;
  13167. h3 = (h3 + d) | 0;
  13168. }
  13169. return new Uint8Array([
  13170. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13171. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13172. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13173. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13174. ]);
  13175. }
  13176. return hash;
  13177. })();
  13178. var Word64 = (function Word64Closure() {
  13179. function Word64(highInteger, lowInteger) {
  13180. this.high = highInteger | 0;
  13181. this.low = lowInteger | 0;
  13182. }
  13183. Word64.prototype = {
  13184. and: function Word64_and(word) {
  13185. this.high &= word.high;
  13186. this.low &= word.low;
  13187. },
  13188. xor: function Word64_xor(word) {
  13189. this.high ^= word.high;
  13190. this.low ^= word.low;
  13191. },
  13192. or: function Word64_or(word) {
  13193. this.high |= word.high;
  13194. this.low |= word.low;
  13195. },
  13196. shiftRight: function Word64_shiftRight(places) {
  13197. if (places >= 32) {
  13198. this.low = (this.high >>> (places - 32)) | 0;
  13199. this.high = 0;
  13200. } else {
  13201. this.low = (this.low >>> places) | (this.high << (32 - places));
  13202. this.high = (this.high >>> places) | 0;
  13203. }
  13204. },
  13205. shiftLeft: function Word64_shiftLeft(places) {
  13206. if (places >= 32) {
  13207. this.high = this.low << (places - 32);
  13208. this.low = 0;
  13209. } else {
  13210. this.high = (this.high << places) | (this.low >>> (32 - places));
  13211. this.low = this.low << places;
  13212. }
  13213. },
  13214. rotateRight: function Word64_rotateRight(places) {
  13215. var low, high;
  13216. if (places & 32) {
  13217. high = this.low;
  13218. low = this.high;
  13219. } else {
  13220. low = this.low;
  13221. high = this.high;
  13222. }
  13223. places &= 31;
  13224. this.low = (low >>> places) | (high << (32 - places));
  13225. this.high = (high >>> places) | (low << (32 - places));
  13226. },
  13227. not: function Word64_not() {
  13228. this.high = ~this.high;
  13229. this.low = ~this.low;
  13230. },
  13231. add: function Word64_add(word) {
  13232. var lowAdd = (this.low >>> 0) + (word.low >>> 0);
  13233. var highAdd = (this.high >>> 0) + (word.high >>> 0);
  13234. if (lowAdd > 0xFFFFFFFF) {
  13235. highAdd += 1;
  13236. }
  13237. this.low = lowAdd | 0;
  13238. this.high = highAdd | 0;
  13239. },
  13240. copyTo: function Word64_copyTo(bytes, offset) {
  13241. bytes[offset] = (this.high >>> 24) & 0xFF;
  13242. bytes[offset + 1] = (this.high >> 16) & 0xFF;
  13243. bytes[offset + 2] = (this.high >> 8) & 0xFF;
  13244. bytes[offset + 3] = this.high & 0xFF;
  13245. bytes[offset + 4] = (this.low >>> 24) & 0xFF;
  13246. bytes[offset + 5] = (this.low >> 16) & 0xFF;
  13247. bytes[offset + 6] = (this.low >> 8) & 0xFF;
  13248. bytes[offset + 7] = this.low & 0xFF;
  13249. },
  13250. assign: function Word64_assign(word) {
  13251. this.high = word.high;
  13252. this.low = word.low;
  13253. }
  13254. };
  13255. return Word64;
  13256. })();
  13257. var calculateSHA256 = (function calculateSHA256Closure() {
  13258. function rotr(x, n) {
  13259. return (x >>> n) | (x << 32 - n);
  13260. }
  13261. function ch(x, y, z) {
  13262. return (x & y) ^ (~x & z);
  13263. }
  13264. function maj(x, y, z) {
  13265. return (x & y) ^ (x & z) ^ (y & z);
  13266. }
  13267. function sigma(x) {
  13268. return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
  13269. }
  13270. function sigmaPrime(x) {
  13271. return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
  13272. }
  13273. function littleSigma(x) {
  13274. return rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
  13275. }
  13276. function littleSigmaPrime(x) {
  13277. return rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
  13278. }
  13279. var k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
  13280. 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
  13281. 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
  13282. 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
  13283. 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
  13284. 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
  13285. 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
  13286. 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
  13287. 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
  13288. 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
  13289. 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
  13290. 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
  13291. 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
  13292. 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
  13293. 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
  13294. 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];
  13295. function hash(data, offset, length) {
  13296. // initial hash values
  13297. var h0 = 0x6a09e667, h1 = 0xbb67ae85, h2 = 0x3c6ef372,
  13298. h3 = 0xa54ff53a, h4 = 0x510e527f, h5 = 0x9b05688c,
  13299. h6 = 0x1f83d9ab, h7 = 0x5be0cd19;
  13300. // pre-processing
  13301. var paddedLength = Math.ceil((length + 9) / 64) * 64;
  13302. var padded = new Uint8Array(paddedLength);
  13303. var i, j, n;
  13304. for (i = 0; i < length; ++i) {
  13305. padded[i] = data[offset++];
  13306. }
  13307. padded[i++] = 0x80;
  13308. n = paddedLength - 8;
  13309. while (i < n) {
  13310. padded[i++] = 0;
  13311. }
  13312. padded[i++] = 0;
  13313. padded[i++] = 0;
  13314. padded[i++] = 0;
  13315. padded[i++] = (length >>> 29) & 0xFF;
  13316. padded[i++] = (length >> 21) & 0xFF;
  13317. padded[i++] = (length >> 13) & 0xFF;
  13318. padded[i++] = (length >> 5) & 0xFF;
  13319. padded[i++] = (length << 3) & 0xFF;
  13320. var w = new Uint32Array(64);
  13321. // for each 512 bit block
  13322. for (i = 0; i < paddedLength;) {
  13323. for (j = 0; j < 16; ++j) {
  13324. w[j] = (padded[i] << 24 | (padded[i + 1] << 16) |
  13325. (padded[i + 2] << 8) | (padded[i + 3]));
  13326. i += 4;
  13327. }
  13328. for (j = 16; j < 64; ++j) {
  13329. w[j] = littleSigmaPrime(w[j - 2]) + w[j - 7] +
  13330. littleSigma(w[j - 15]) + w[j - 16] | 0;
  13331. }
  13332. var a = h0, b = h1, c = h2, d = h3, e = h4,
  13333. f = h5, g = h6, h = h7, t1, t2;
  13334. for (j = 0; j < 64; ++j) {
  13335. t1 = h + sigmaPrime(e) + ch(e, f, g) + k[j] + w[j];
  13336. t2 = sigma(a) + maj(a, b, c);
  13337. h = g;
  13338. g = f;
  13339. f = e;
  13340. e = (d + t1) | 0;
  13341. d = c;
  13342. c = b;
  13343. b = a;
  13344. a = (t1 + t2) | 0;
  13345. }
  13346. h0 = (h0 + a) | 0;
  13347. h1 = (h1 + b) | 0;
  13348. h2 = (h2 + c) | 0;
  13349. h3 = (h3 + d) | 0;
  13350. h4 = (h4 + e) | 0;
  13351. h5 = (h5 + f) | 0;
  13352. h6 = (h6 + g) | 0;
  13353. h7 = (h7 + h) | 0;
  13354. }
  13355. return new Uint8Array([
  13356. (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, (h0) & 0xFF,
  13357. (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, (h1) & 0xFF,
  13358. (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, (h2) & 0xFF,
  13359. (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, (h3) & 0xFF,
  13360. (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, (h4) & 0xFF,
  13361. (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, (h5) & 0xFF,
  13362. (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, (h6) & 0xFF,
  13363. (h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, (h7) & 0xFF
  13364. ]);
  13365. }
  13366. return hash;
  13367. })();
  13368. var calculateSHA512 = (function calculateSHA512Closure() {
  13369. function ch(result, x, y, z, tmp) {
  13370. result.assign(x);
  13371. result.and(y);
  13372. tmp.assign(x);
  13373. tmp.not();
  13374. tmp.and(z);
  13375. result.xor(tmp);
  13376. }
  13377. function maj(result, x, y, z, tmp) {
  13378. result.assign(x);
  13379. result.and(y);
  13380. tmp.assign(x);
  13381. tmp.and(z);
  13382. result.xor(tmp);
  13383. tmp.assign(y);
  13384. tmp.and(z);
  13385. result.xor(tmp);
  13386. }
  13387. function sigma(result, x, tmp) {
  13388. result.assign(x);
  13389. result.rotateRight(28);
  13390. tmp.assign(x);
  13391. tmp.rotateRight(34);
  13392. result.xor(tmp);
  13393. tmp.assign(x);
  13394. tmp.rotateRight(39);
  13395. result.xor(tmp);
  13396. }
  13397. function sigmaPrime(result, x, tmp) {
  13398. result.assign(x);
  13399. result.rotateRight(14);
  13400. tmp.assign(x);
  13401. tmp.rotateRight(18);
  13402. result.xor(tmp);
  13403. tmp.assign(x);
  13404. tmp.rotateRight(41);
  13405. result.xor(tmp);
  13406. }
  13407. function littleSigma(result, x, tmp) {
  13408. result.assign(x);
  13409. result.rotateRight(1);
  13410. tmp.assign(x);
  13411. tmp.rotateRight(8);
  13412. result.xor(tmp);
  13413. tmp.assign(x);
  13414. tmp.shiftRight(7);
  13415. result.xor(tmp);
  13416. }
  13417. function littleSigmaPrime(result, x, tmp) {
  13418. result.assign(x);
  13419. result.rotateRight(19);
  13420. tmp.assign(x);
  13421. tmp.rotateRight(61);
  13422. result.xor(tmp);
  13423. tmp.assign(x);
  13424. tmp.shiftRight(6);
  13425. result.xor(tmp);
  13426. }
  13427. var k = [
  13428. new Word64(0x428a2f98, 0xd728ae22), new Word64(0x71374491, 0x23ef65cd),
  13429. new Word64(0xb5c0fbcf, 0xec4d3b2f), new Word64(0xe9b5dba5, 0x8189dbbc),
  13430. new Word64(0x3956c25b, 0xf348b538), new Word64(0x59f111f1, 0xb605d019),
  13431. new Word64(0x923f82a4, 0xaf194f9b), new Word64(0xab1c5ed5, 0xda6d8118),
  13432. new Word64(0xd807aa98, 0xa3030242), new Word64(0x12835b01, 0x45706fbe),
  13433. new Word64(0x243185be, 0x4ee4b28c), new Word64(0x550c7dc3, 0xd5ffb4e2),
  13434. new Word64(0x72be5d74, 0xf27b896f), new Word64(0x80deb1fe, 0x3b1696b1),
  13435. new Word64(0x9bdc06a7, 0x25c71235), new Word64(0xc19bf174, 0xcf692694),
  13436. new Word64(0xe49b69c1, 0x9ef14ad2), new Word64(0xefbe4786, 0x384f25e3),
  13437. new Word64(0x0fc19dc6, 0x8b8cd5b5), new Word64(0x240ca1cc, 0x77ac9c65),
  13438. new Word64(0x2de92c6f, 0x592b0275), new Word64(0x4a7484aa, 0x6ea6e483),
  13439. new Word64(0x5cb0a9dc, 0xbd41fbd4), new Word64(0x76f988da, 0x831153b5),
  13440. new Word64(0x983e5152, 0xee66dfab), new Word64(0xa831c66d, 0x2db43210),
  13441. new Word64(0xb00327c8, 0x98fb213f), new Word64(0xbf597fc7, 0xbeef0ee4),
  13442. new Word64(0xc6e00bf3, 0x3da88fc2), new Word64(0xd5a79147, 0x930aa725),
  13443. new Word64(0x06ca6351, 0xe003826f), new Word64(0x14292967, 0x0a0e6e70),
  13444. new Word64(0x27b70a85, 0x46d22ffc), new Word64(0x2e1b2138, 0x5c26c926),
  13445. new Word64(0x4d2c6dfc, 0x5ac42aed), new Word64(0x53380d13, 0x9d95b3df),
  13446. new Word64(0x650a7354, 0x8baf63de), new Word64(0x766a0abb, 0x3c77b2a8),
  13447. new Word64(0x81c2c92e, 0x47edaee6), new Word64(0x92722c85, 0x1482353b),
  13448. new Word64(0xa2bfe8a1, 0x4cf10364), new Word64(0xa81a664b, 0xbc423001),
  13449. new Word64(0xc24b8b70, 0xd0f89791), new Word64(0xc76c51a3, 0x0654be30),
  13450. new Word64(0xd192e819, 0xd6ef5218), new Word64(0xd6990624, 0x5565a910),
  13451. new Word64(0xf40e3585, 0x5771202a), new Word64(0x106aa070, 0x32bbd1b8),
  13452. new Word64(0x19a4c116, 0xb8d2d0c8), new Word64(0x1e376c08, 0x5141ab53),
  13453. new Word64(0x2748774c, 0xdf8eeb99), new Word64(0x34b0bcb5, 0xe19b48a8),
  13454. new Word64(0x391c0cb3, 0xc5c95a63), new Word64(0x4ed8aa4a, 0xe3418acb),
  13455. new Word64(0x5b9cca4f, 0x7763e373), new Word64(0x682e6ff3, 0xd6b2b8a3),
  13456. new Word64(0x748f82ee, 0x5defb2fc), new Word64(0x78a5636f, 0x43172f60),
  13457. new Word64(0x84c87814, 0xa1f0ab72), new Word64(0x8cc70208, 0x1a6439ec),
  13458. new Word64(0x90befffa, 0x23631e28), new Word64(0xa4506ceb, 0xde82bde9),
  13459. new Word64(0xbef9a3f7, 0xb2c67915), new Word64(0xc67178f2, 0xe372532b),
  13460. new Word64(0xca273ece, 0xea26619c), new Word64(0xd186b8c7, 0x21c0c207),
  13461. new Word64(0xeada7dd6, 0xcde0eb1e), new Word64(0xf57d4f7f, 0xee6ed178),
  13462. new Word64(0x06f067aa, 0x72176fba), new Word64(0x0a637dc5, 0xa2c898a6),
  13463. new Word64(0x113f9804, 0xbef90dae), new Word64(0x1b710b35, 0x131c471b),
  13464. new Word64(0x28db77f5, 0x23047d84), new Word64(0x32caab7b, 0x40c72493),
  13465. new Word64(0x3c9ebe0a, 0x15c9bebc), new Word64(0x431d67c4, 0x9c100d4c),
  13466. new Word64(0x4cc5d4be, 0xcb3e42b6), new Word64(0x597f299c, 0xfc657e2a),
  13467. new Word64(0x5fcb6fab, 0x3ad6faec), new Word64(0x6c44198c, 0x4a475817)];
  13468. function hash(data, offset, length, mode384) {
  13469. mode384 = !!mode384;
  13470. // initial hash values
  13471. var h0, h1, h2, h3, h4, h5, h6, h7;
  13472. if (!mode384) {
  13473. h0 = new Word64(0x6a09e667, 0xf3bcc908);
  13474. h1 = new Word64(0xbb67ae85, 0x84caa73b);
  13475. h2 = new Word64(0x3c6ef372, 0xfe94f82b);
  13476. h3 = new Word64(0xa54ff53a, 0x5f1d36f1);
  13477. h4 = new Word64(0x510e527f, 0xade682d1);
  13478. h5 = new Word64(0x9b05688c, 0x2b3e6c1f);
  13479. h6 = new Word64(0x1f83d9ab, 0xfb41bd6b);
  13480. h7 = new Word64(0x5be0cd19, 0x137e2179);
  13481. }
  13482. else {
  13483. // SHA384 is exactly the same
  13484. // except with different starting values and a trimmed result
  13485. h0 = new Word64(0xcbbb9d5d, 0xc1059ed8);
  13486. h1 = new Word64(0x629a292a, 0x367cd507);
  13487. h2 = new Word64(0x9159015a, 0x3070dd17);
  13488. h3 = new Word64(0x152fecd8, 0xf70e5939);
  13489. h4 = new Word64(0x67332667, 0xffc00b31);
  13490. h5 = new Word64(0x8eb44a87, 0x68581511);
  13491. h6 = new Word64(0xdb0c2e0d, 0x64f98fa7);
  13492. h7 = new Word64(0x47b5481d, 0xbefa4fa4);
  13493. }
  13494. // pre-processing
  13495. var paddedLength = Math.ceil((length + 17) / 128) * 128;
  13496. var padded = new Uint8Array(paddedLength);
  13497. var i, j, n;
  13498. for (i = 0; i < length; ++i) {
  13499. padded[i] = data[offset++];
  13500. }
  13501. padded[i++] = 0x80;
  13502. n = paddedLength - 16;
  13503. while (i < n) {
  13504. padded[i++] = 0;
  13505. }
  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++] = 0;
  13515. padded[i++] = 0;
  13516. padded[i++] = 0;
  13517. padded[i++] = (length >>> 29) & 0xFF;
  13518. padded[i++] = (length >> 21) & 0xFF;
  13519. padded[i++] = (length >> 13) & 0xFF;
  13520. padded[i++] = (length >> 5) & 0xFF;
  13521. padded[i++] = (length << 3) & 0xFF;
  13522. var w = new Array(80);
  13523. for (i = 0; i < 80; i++) {
  13524. w[i] = new Word64(0, 0);
  13525. }
  13526. var a = new Word64(0, 0), b = new Word64(0, 0), c = new Word64(0, 0);
  13527. var d = new Word64(0, 0), e = new Word64(0, 0), f = new Word64(0, 0);
  13528. var g = new Word64(0, 0), h = new Word64(0, 0);
  13529. var t1 = new Word64(0, 0), t2 = new Word64(0, 0);
  13530. var tmp1 = new Word64(0, 0), tmp2 = new Word64(0, 0), tmp3;
  13531. // for each 1024 bit block
  13532. for (i = 0; i < paddedLength;) {
  13533. for (j = 0; j < 16; ++j) {
  13534. w[j].high = (padded[i] << 24) | (padded[i + 1] << 16) |
  13535. (padded[i + 2] << 8) | (padded[i + 3]);
  13536. w[j].low = (padded[i + 4]) << 24 | (padded[i + 5]) << 16 |
  13537. (padded[i + 6]) << 8 | (padded[i + 7]);
  13538. i += 8;
  13539. }
  13540. for (j = 16; j < 80; ++j) {
  13541. tmp3 = w[j];
  13542. littleSigmaPrime(tmp3, w[j - 2], tmp2);
  13543. tmp3.add(w[j - 7]);
  13544. littleSigma(tmp1, w[j - 15], tmp2);
  13545. tmp3.add(tmp1);
  13546. tmp3.add(w[j - 16]);
  13547. }
  13548. a.assign(h0); b.assign(h1); c.assign(h2); d.assign(h3);
  13549. e.assign(h4); f.assign(h5); g.assign(h6); h.assign(h7);
  13550. for (j = 0; j < 80; ++j) {
  13551. t1.assign(h);
  13552. sigmaPrime(tmp1, e, tmp2);
  13553. t1.add(tmp1);
  13554. ch(tmp1, e, f, g, tmp2);
  13555. t1.add(tmp1);
  13556. t1.add(k[j]);
  13557. t1.add(w[j]);
  13558. sigma(t2, a, tmp2);
  13559. maj(tmp1, a, b, c, tmp2);
  13560. t2.add(tmp1);
  13561. tmp3 = h;
  13562. h = g;
  13563. g = f;
  13564. f = e;
  13565. d.add(t1);
  13566. e = d;
  13567. d = c;
  13568. c = b;
  13569. b = a;
  13570. tmp3.assign(t1);
  13571. tmp3.add(t2);
  13572. a = tmp3;
  13573. }
  13574. h0.add(a);
  13575. h1.add(b);
  13576. h2.add(c);
  13577. h3.add(d);
  13578. h4.add(e);
  13579. h5.add(f);
  13580. h6.add(g);
  13581. h7.add(h);
  13582. }
  13583. var result;
  13584. if (!mode384) {
  13585. result = new Uint8Array(64);
  13586. h0.copyTo(result,0);
  13587. h1.copyTo(result,8);
  13588. h2.copyTo(result,16);
  13589. h3.copyTo(result,24);
  13590. h4.copyTo(result,32);
  13591. h5.copyTo(result,40);
  13592. h6.copyTo(result,48);
  13593. h7.copyTo(result,56);
  13594. }
  13595. else {
  13596. result = new Uint8Array(48);
  13597. h0.copyTo(result,0);
  13598. h1.copyTo(result,8);
  13599. h2.copyTo(result,16);
  13600. h3.copyTo(result,24);
  13601. h4.copyTo(result,32);
  13602. h5.copyTo(result,40);
  13603. }
  13604. return result;
  13605. }
  13606. return hash;
  13607. })();
  13608. var calculateSHA384 = (function calculateSHA384Closure() {
  13609. function hash(data, offset, length) {
  13610. return calculateSHA512(data, offset, length, true);
  13611. }
  13612. return hash;
  13613. })();
  13614. var NullCipher = (function NullCipherClosure() {
  13615. function NullCipher() {
  13616. }
  13617. NullCipher.prototype = {
  13618. decryptBlock: function NullCipher_decryptBlock(data) {
  13619. return data;
  13620. }
  13621. };
  13622. return NullCipher;
  13623. })();
  13624. var AES128Cipher = (function AES128CipherClosure() {
  13625. var rcon = new Uint8Array([
  13626. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13627. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13628. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13629. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13630. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13631. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13632. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13633. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13634. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13635. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13636. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13637. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13638. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13639. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13640. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13641. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13642. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13643. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13644. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13645. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13646. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13647. 0x74, 0xe8, 0xcb, 0x8d]);
  13648. var s = new Uint8Array([
  13649. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13650. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13651. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13652. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13653. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13654. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13655. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13656. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13657. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13658. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13659. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13660. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13661. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13662. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13663. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13664. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13665. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13666. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13667. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13668. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13669. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13670. 0xb0, 0x54, 0xbb, 0x16]);
  13671. var inv_s = new Uint8Array([
  13672. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13673. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13674. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13675. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13676. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13677. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13678. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13679. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13680. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13681. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13682. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13683. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13684. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13685. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13686. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13687. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13688. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13689. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13690. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13691. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13692. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13693. 0x55, 0x21, 0x0c, 0x7d]);
  13694. var mixCol = new Uint8Array(256);
  13695. for (var i = 0; i < 256; i++) {
  13696. if (i < 128) {
  13697. mixCol[i] = i << 1;
  13698. } else {
  13699. mixCol[i] = (i << 1) ^ 0x1b;
  13700. }
  13701. }
  13702. var mix = new Uint32Array([
  13703. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13704. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13705. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13706. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13707. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13708. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13709. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13710. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13711. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13712. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13713. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13714. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13715. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13716. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13717. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13718. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13719. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13720. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13721. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13722. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13723. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13724. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13725. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13726. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13727. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13728. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13729. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13730. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13731. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13732. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13733. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13734. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13735. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13736. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13737. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13738. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13739. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13740. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13741. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13742. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13743. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13744. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13745. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13746. function expandKey128(cipherKey) {
  13747. var b = 176, result = new Uint8Array(b);
  13748. result.set(cipherKey);
  13749. for (var j = 16, i = 1; j < b; ++i) {
  13750. // RotWord
  13751. var t1 = result[j - 3], t2 = result[j - 2],
  13752. t3 = result[j - 1], t4 = result[j - 4];
  13753. // SubWord
  13754. t1 = s[t1];
  13755. t2 = s[t2];
  13756. t3 = s[t3];
  13757. t4 = s[t4];
  13758. // Rcon
  13759. t1 = t1 ^ rcon[i];
  13760. for (var n = 0; n < 4; ++n) {
  13761. result[j] = (t1 ^= result[j - 16]);
  13762. j++;
  13763. result[j] = (t2 ^= result[j - 16]);
  13764. j++;
  13765. result[j] = (t3 ^= result[j - 16]);
  13766. j++;
  13767. result[j] = (t4 ^= result[j - 16]);
  13768. j++;
  13769. }
  13770. }
  13771. return result;
  13772. }
  13773. function decrypt128(input, key) {
  13774. var state = new Uint8Array(16);
  13775. state.set(input);
  13776. var i, j, k;
  13777. var t, u, v;
  13778. // AddRoundKey
  13779. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13780. state[j] ^= key[k];
  13781. }
  13782. for (i = 9; i >= 1; --i) {
  13783. // InvShiftRows
  13784. t = state[13];
  13785. state[13] = state[9];
  13786. state[9] = state[5];
  13787. state[5] = state[1];
  13788. state[1] = t;
  13789. t = state[14];
  13790. u = state[10];
  13791. state[14] = state[6];
  13792. state[10] = state[2];
  13793. state[6] = t;
  13794. state[2] = u;
  13795. t = state[15];
  13796. u = state[11];
  13797. v = state[7];
  13798. state[15] = state[3];
  13799. state[11] = t;
  13800. state[7] = u;
  13801. state[3] = v;
  13802. // InvSubBytes
  13803. for (j = 0; j < 16; ++j) {
  13804. state[j] = inv_s[state[j]];
  13805. }
  13806. // AddRoundKey
  13807. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13808. state[j] ^= key[k];
  13809. }
  13810. // InvMixColumns
  13811. for (j = 0; j < 16; j += 4) {
  13812. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13813. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13814. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13815. (s3 >>> 24) ^ (s3 << 8));
  13816. state[j] = (t >>> 24) & 0xFF;
  13817. state[j + 1] = (t >> 16) & 0xFF;
  13818. state[j + 2] = (t >> 8) & 0xFF;
  13819. state[j + 3] = t & 0xFF;
  13820. }
  13821. }
  13822. // InvShiftRows
  13823. t = state[13];
  13824. state[13] = state[9];
  13825. state[9] = state[5];
  13826. state[5] = state[1];
  13827. state[1] = t;
  13828. t = state[14];
  13829. u = state[10];
  13830. state[14] = state[6];
  13831. state[10] = state[2];
  13832. state[6] = t;
  13833. state[2] = u;
  13834. t = state[15];
  13835. u = state[11];
  13836. v = state[7];
  13837. state[15] = state[3];
  13838. state[11] = t;
  13839. state[7] = u;
  13840. state[3] = v;
  13841. for (j = 0; j < 16; ++j) {
  13842. // InvSubBytes
  13843. state[j] = inv_s[state[j]];
  13844. // AddRoundKey
  13845. state[j] ^= key[j];
  13846. }
  13847. return state;
  13848. }
  13849. function encrypt128(input, key) {
  13850. var t, u, v, k;
  13851. var state = new Uint8Array(16);
  13852. state.set(input);
  13853. for (j = 0; j < 16; ++j) {
  13854. // AddRoundKey
  13855. state[j] ^= key[j];
  13856. }
  13857. for (i = 1; i < 10; i++) {
  13858. //SubBytes
  13859. for (j = 0; j < 16; ++j) {
  13860. state[j] = s[state[j]];
  13861. }
  13862. //ShiftRows
  13863. v = state[1];
  13864. state[1] = state[5];
  13865. state[5] = state[9];
  13866. state[9] = state[13];
  13867. state[13] = v;
  13868. v = state[2];
  13869. u = state[6];
  13870. state[2] = state[10];
  13871. state[6] = state[14];
  13872. state[10] = v;
  13873. state[14] = u;
  13874. v = state[3];
  13875. u = state[7];
  13876. t = state[11];
  13877. state[3] = state[15];
  13878. state[7] = v;
  13879. state[11] = u;
  13880. state[15] = t;
  13881. //MixColumns
  13882. for (var j = 0; j < 16; j += 4) {
  13883. var s0 = state[j + 0], s1 = state[j + 1];
  13884. var s2 = state[j + 2], s3 = state[j + 3];
  13885. t = s0 ^ s1 ^ s2 ^ s3;
  13886. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  13887. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  13888. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  13889. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  13890. }
  13891. //AddRoundKey
  13892. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13893. state[j] ^= key[k];
  13894. }
  13895. }
  13896. //SubBytes
  13897. for (j = 0; j < 16; ++j) {
  13898. state[j] = s[state[j]];
  13899. }
  13900. //ShiftRows
  13901. v = state[1];
  13902. state[1] = state[5];
  13903. state[5] = state[9];
  13904. state[9] = state[13];
  13905. state[13] = v;
  13906. v = state[2];
  13907. u = state[6];
  13908. state[2] = state[10];
  13909. state[6] = state[14];
  13910. state[10] = v;
  13911. state[14] = u;
  13912. v = state[3];
  13913. u = state[7];
  13914. t = state[11];
  13915. state[3] = state[15];
  13916. state[7] = v;
  13917. state[11] = u;
  13918. state[15] = t;
  13919. //AddRoundKey
  13920. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13921. state[j] ^= key[k];
  13922. }
  13923. return state;
  13924. }
  13925. function AES128Cipher(key) {
  13926. this.key = expandKey128(key);
  13927. this.buffer = new Uint8Array(16);
  13928. this.bufferPosition = 0;
  13929. }
  13930. function decryptBlock2(data, finalize) {
  13931. var i, j, ii, sourceLength = data.length,
  13932. buffer = this.buffer, bufferLength = this.bufferPosition,
  13933. result = [], iv = this.iv;
  13934. for (i = 0; i < sourceLength; ++i) {
  13935. buffer[bufferLength] = data[i];
  13936. ++bufferLength;
  13937. if (bufferLength < 16) {
  13938. continue;
  13939. }
  13940. // buffer is full, decrypting
  13941. var plain = decrypt128(buffer, this.key);
  13942. // xor-ing the IV vector to get plain text
  13943. for (j = 0; j < 16; ++j) {
  13944. plain[j] ^= iv[j];
  13945. }
  13946. iv = buffer;
  13947. result.push(plain);
  13948. buffer = new Uint8Array(16);
  13949. bufferLength = 0;
  13950. }
  13951. // saving incomplete buffer
  13952. this.buffer = buffer;
  13953. this.bufferLength = bufferLength;
  13954. this.iv = iv;
  13955. if (result.length === 0) {
  13956. return new Uint8Array([]);
  13957. }
  13958. // combining plain text blocks into one
  13959. var outputLength = 16 * result.length;
  13960. if (finalize) {
  13961. // undo a padding that is described in RFC 2898
  13962. var lastBlock = result[result.length - 1];
  13963. outputLength -= lastBlock[15];
  13964. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13965. }
  13966. var output = new Uint8Array(outputLength);
  13967. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13968. output.set(result[i], j);
  13969. }
  13970. return output;
  13971. }
  13972. AES128Cipher.prototype = {
  13973. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13974. var i, sourceLength = data.length;
  13975. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13976. // waiting for IV values -- they are at the start of the stream
  13977. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13978. buffer[bufferLength] = data[i];
  13979. }
  13980. if (bufferLength < 16) {
  13981. // need more data
  13982. this.bufferLength = bufferLength;
  13983. return new Uint8Array([]);
  13984. }
  13985. this.iv = buffer;
  13986. this.buffer = new Uint8Array(16);
  13987. this.bufferLength = 0;
  13988. // starting decryption
  13989. this.decryptBlock = decryptBlock2;
  13990. return this.decryptBlock(data.subarray(16), finalize);
  13991. },
  13992. encrypt: function AES128Cipher_encrypt(data, iv) {
  13993. var i, j, ii, sourceLength = data.length,
  13994. buffer = this.buffer, bufferLength = this.bufferPosition,
  13995. result = [];
  13996. if (!iv) {
  13997. iv = new Uint8Array(16);
  13998. }
  13999. for (i = 0; i < sourceLength; ++i) {
  14000. buffer[bufferLength] = data[i];
  14001. ++bufferLength;
  14002. if (bufferLength < 16) {
  14003. continue;
  14004. }
  14005. for (j = 0; j < 16; ++j) {
  14006. buffer[j] ^= iv[j];
  14007. }
  14008. // buffer is full, encrypting
  14009. var cipher = encrypt128(buffer, this.key);
  14010. iv = cipher;
  14011. result.push(cipher);
  14012. buffer = new Uint8Array(16);
  14013. bufferLength = 0;
  14014. }
  14015. // saving incomplete buffer
  14016. this.buffer = buffer;
  14017. this.bufferLength = bufferLength;
  14018. this.iv = iv;
  14019. if (result.length === 0) {
  14020. return new Uint8Array([]);
  14021. }
  14022. // combining plain text blocks into one
  14023. var outputLength = 16 * result.length;
  14024. var output = new Uint8Array(outputLength);
  14025. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14026. output.set(result[i], j);
  14027. }
  14028. return output;
  14029. }
  14030. };
  14031. return AES128Cipher;
  14032. })();
  14033. var AES256Cipher = (function AES256CipherClosure() {
  14034. var rcon = new Uint8Array([
  14035. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14036. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14037. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14038. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14039. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  14040. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  14041. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  14042. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  14043. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  14044. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  14045. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  14046. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  14047. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  14048. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  14049. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  14050. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  14051. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  14052. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14053. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14054. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14055. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14056. 0x74, 0xe8, 0xcb, 0x8d]);
  14057. var s = new Uint8Array([
  14058. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  14059. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  14060. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  14061. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  14062. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  14063. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  14064. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  14065. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  14066. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  14067. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  14068. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  14069. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  14070. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  14071. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  14072. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  14073. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  14074. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  14075. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  14076. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  14077. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  14078. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  14079. 0xb0, 0x54, 0xbb, 0x16]);
  14080. var inv_s = new Uint8Array([
  14081. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  14082. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  14083. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  14084. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  14085. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  14086. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  14087. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  14088. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  14089. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  14090. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  14091. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  14092. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  14093. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  14094. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  14095. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  14096. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  14097. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  14098. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  14099. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  14100. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  14101. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  14102. 0x55, 0x21, 0x0c, 0x7d]);
  14103. var mixCol = new Uint8Array(256);
  14104. for (var i = 0; i < 256; i++) {
  14105. if (i < 128) {
  14106. mixCol[i] = i << 1;
  14107. } else {
  14108. mixCol[i] = (i << 1) ^ 0x1b;
  14109. }
  14110. }
  14111. var mix = new Uint32Array([
  14112. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  14113. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  14114. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  14115. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  14116. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  14117. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  14118. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  14119. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  14120. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  14121. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  14122. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  14123. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  14124. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  14125. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  14126. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  14127. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  14128. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  14129. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  14130. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  14131. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  14132. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  14133. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  14134. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  14135. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  14136. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  14137. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  14138. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  14139. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  14140. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  14141. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  14142. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  14143. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  14144. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  14145. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  14146. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  14147. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  14148. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  14149. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  14150. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  14151. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  14152. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  14153. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  14154. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  14155. function expandKey256(cipherKey) {
  14156. var b = 240, result = new Uint8Array(b);
  14157. var r = 1;
  14158. result.set(cipherKey);
  14159. for (var j = 32, i = 1; j < b; ++i) {
  14160. if (j % 32 === 16) {
  14161. t1 = s[t1];
  14162. t2 = s[t2];
  14163. t3 = s[t3];
  14164. t4 = s[t4];
  14165. } else if (j % 32 === 0) {
  14166. // RotWord
  14167. var t1 = result[j - 3], t2 = result[j - 2],
  14168. t3 = result[j - 1], t4 = result[j - 4];
  14169. // SubWord
  14170. t1 = s[t1];
  14171. t2 = s[t2];
  14172. t3 = s[t3];
  14173. t4 = s[t4];
  14174. // Rcon
  14175. t1 = t1 ^ r;
  14176. if ((r <<= 1) >= 256) {
  14177. r = (r ^ 0x1b) & 0xFF;
  14178. }
  14179. }
  14180. for (var n = 0; n < 4; ++n) {
  14181. result[j] = (t1 ^= result[j - 32]);
  14182. j++;
  14183. result[j] = (t2 ^= result[j - 32]);
  14184. j++;
  14185. result[j] = (t3 ^= result[j - 32]);
  14186. j++;
  14187. result[j] = (t4 ^= result[j - 32]);
  14188. j++;
  14189. }
  14190. }
  14191. return result;
  14192. }
  14193. function decrypt256(input, key) {
  14194. var state = new Uint8Array(16);
  14195. state.set(input);
  14196. var i, j, k;
  14197. var t, u, v;
  14198. // AddRoundKey
  14199. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14200. state[j] ^= key[k];
  14201. }
  14202. for (i = 13; i >= 1; --i) {
  14203. // InvShiftRows
  14204. t = state[13];
  14205. state[13] = state[9];
  14206. state[9] = state[5];
  14207. state[5] = state[1];
  14208. state[1] = t;
  14209. t = state[14];
  14210. u = state[10];
  14211. state[14] = state[6];
  14212. state[10] = state[2];
  14213. state[6] = t;
  14214. state[2] = u;
  14215. t = state[15];
  14216. u = state[11];
  14217. v = state[7];
  14218. state[15] = state[3];
  14219. state[11] = t;
  14220. state[7] = u;
  14221. state[3] = v;
  14222. // InvSubBytes
  14223. for (j = 0; j < 16; ++j) {
  14224. state[j] = inv_s[state[j]];
  14225. }
  14226. // AddRoundKey
  14227. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14228. state[j] ^= key[k];
  14229. }
  14230. // InvMixColumns
  14231. for (j = 0; j < 16; j += 4) {
  14232. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  14233. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  14234. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  14235. (s3 >>> 24) ^ (s3 << 8));
  14236. state[j] = (t >>> 24) & 0xFF;
  14237. state[j + 1] = (t >> 16) & 0xFF;
  14238. state[j + 2] = (t >> 8) & 0xFF;
  14239. state[j + 3] = t & 0xFF;
  14240. }
  14241. }
  14242. // InvShiftRows
  14243. t = state[13];
  14244. state[13] = state[9];
  14245. state[9] = state[5];
  14246. state[5] = state[1];
  14247. state[1] = t;
  14248. t = state[14];
  14249. u = state[10];
  14250. state[14] = state[6];
  14251. state[10] = state[2];
  14252. state[6] = t;
  14253. state[2] = u;
  14254. t = state[15];
  14255. u = state[11];
  14256. v = state[7];
  14257. state[15] = state[3];
  14258. state[11] = t;
  14259. state[7] = u;
  14260. state[3] = v;
  14261. for (j = 0; j < 16; ++j) {
  14262. // InvSubBytes
  14263. state[j] = inv_s[state[j]];
  14264. // AddRoundKey
  14265. state[j] ^= key[j];
  14266. }
  14267. return state;
  14268. }
  14269. function encrypt256(input, key) {
  14270. var t, u, v, k;
  14271. var state = new Uint8Array(16);
  14272. state.set(input);
  14273. for (j = 0; j < 16; ++j) {
  14274. // AddRoundKey
  14275. state[j] ^= key[j];
  14276. }
  14277. for (i = 1; i < 14; i++) {
  14278. //SubBytes
  14279. for (j = 0; j < 16; ++j) {
  14280. state[j] = s[state[j]];
  14281. }
  14282. //ShiftRows
  14283. v = state[1];
  14284. state[1] = state[5];
  14285. state[5] = state[9];
  14286. state[9] = state[13];
  14287. state[13] = v;
  14288. v = state[2];
  14289. u = state[6];
  14290. state[2] = state[10];
  14291. state[6] = state[14];
  14292. state[10] = v;
  14293. state[14] = u;
  14294. v = state[3];
  14295. u = state[7];
  14296. t = state[11];
  14297. state[3] = state[15];
  14298. state[7] = v;
  14299. state[11] = u;
  14300. state[15] = t;
  14301. //MixColumns
  14302. for (var j = 0; j < 16; j += 4) {
  14303. var s0 = state[j + 0], s1 = state[j + 1];
  14304. var s2 = state[j + 2], s3 = state[j + 3];
  14305. t = s0 ^ s1 ^ s2 ^ s3;
  14306. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  14307. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  14308. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  14309. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  14310. }
  14311. //AddRoundKey
  14312. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14313. state[j] ^= key[k];
  14314. }
  14315. }
  14316. //SubBytes
  14317. for (j = 0; j < 16; ++j) {
  14318. state[j] = s[state[j]];
  14319. }
  14320. //ShiftRows
  14321. v = state[1];
  14322. state[1] = state[5];
  14323. state[5] = state[9];
  14324. state[9] = state[13];
  14325. state[13] = v;
  14326. v = state[2];
  14327. u = state[6];
  14328. state[2] = state[10];
  14329. state[6] = state[14];
  14330. state[10] = v;
  14331. state[14] = u;
  14332. v = state[3];
  14333. u = state[7];
  14334. t = state[11];
  14335. state[3] = state[15];
  14336. state[7] = v;
  14337. state[11] = u;
  14338. state[15] = t;
  14339. //AddRoundKey
  14340. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14341. state[j] ^= key[k];
  14342. }
  14343. return state;
  14344. }
  14345. function AES256Cipher(key) {
  14346. this.key = expandKey256(key);
  14347. this.buffer = new Uint8Array(16);
  14348. this.bufferPosition = 0;
  14349. }
  14350. function decryptBlock2(data, finalize) {
  14351. var i, j, ii, sourceLength = data.length,
  14352. buffer = this.buffer, bufferLength = this.bufferPosition,
  14353. result = [], iv = this.iv;
  14354. for (i = 0; i < sourceLength; ++i) {
  14355. buffer[bufferLength] = data[i];
  14356. ++bufferLength;
  14357. if (bufferLength < 16) {
  14358. continue;
  14359. }
  14360. // buffer is full, encrypting
  14361. var plain = decrypt256(buffer, this.key);
  14362. // xor-ing the IV vector to get plain text
  14363. for (j = 0; j < 16; ++j) {
  14364. plain[j] ^= iv[j];
  14365. }
  14366. iv = buffer;
  14367. result.push(plain);
  14368. buffer = new Uint8Array(16);
  14369. bufferLength = 0;
  14370. }
  14371. // saving incomplete buffer
  14372. this.buffer = buffer;
  14373. this.bufferLength = bufferLength;
  14374. this.iv = iv;
  14375. if (result.length === 0) {
  14376. return new Uint8Array([]);
  14377. }
  14378. // combining plain text blocks into one
  14379. var outputLength = 16 * result.length;
  14380. if (finalize) {
  14381. // undo a padding that is described in RFC 2898
  14382. var lastBlock = result[result.length - 1];
  14383. outputLength -= lastBlock[15];
  14384. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  14385. }
  14386. var output = new Uint8Array(outputLength);
  14387. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14388. output.set(result[i], j);
  14389. }
  14390. return output;
  14391. }
  14392. AES256Cipher.prototype = {
  14393. decryptBlock: function AES256Cipher_decryptBlock(data, finalize, iv) {
  14394. var i, sourceLength = data.length;
  14395. var buffer = this.buffer, bufferLength = this.bufferPosition;
  14396. // if not supplied an IV wait for IV values
  14397. // they are at the start of the stream
  14398. if (iv) {
  14399. this.iv = iv;
  14400. } else {
  14401. for (i = 0; bufferLength < 16 &&
  14402. i < sourceLength; ++i, ++bufferLength) {
  14403. buffer[bufferLength] = data[i];
  14404. }
  14405. if (bufferLength < 16) {
  14406. //need more data
  14407. this.bufferLength = bufferLength;
  14408. return new Uint8Array([]);
  14409. }
  14410. this.iv = buffer;
  14411. data = data.subarray(16);
  14412. }
  14413. this.buffer = new Uint8Array(16);
  14414. this.bufferLength = 0;
  14415. // starting decryption
  14416. this.decryptBlock = decryptBlock2;
  14417. return this.decryptBlock(data, finalize);
  14418. },
  14419. encrypt: function AES256Cipher_encrypt(data, iv) {
  14420. var i, j, ii, sourceLength = data.length,
  14421. buffer = this.buffer, bufferLength = this.bufferPosition,
  14422. result = [];
  14423. if (!iv) {
  14424. iv = new Uint8Array(16);
  14425. }
  14426. for (i = 0; i < sourceLength; ++i) {
  14427. buffer[bufferLength] = data[i];
  14428. ++bufferLength;
  14429. if (bufferLength < 16) {
  14430. continue;
  14431. }
  14432. for (j = 0; j < 16; ++j) {
  14433. buffer[j] ^= iv[j];
  14434. }
  14435. // buffer is full, encrypting
  14436. var cipher = encrypt256(buffer, this.key);
  14437. this.iv = cipher;
  14438. result.push(cipher);
  14439. buffer = new Uint8Array(16);
  14440. bufferLength = 0;
  14441. }
  14442. // saving incomplete buffer
  14443. this.buffer = buffer;
  14444. this.bufferLength = bufferLength;
  14445. this.iv = iv;
  14446. if (result.length === 0) {
  14447. return new Uint8Array([]);
  14448. }
  14449. // combining plain text blocks into one
  14450. var outputLength = 16 * result.length;
  14451. var output = new Uint8Array(outputLength);
  14452. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14453. output.set(result[i], j);
  14454. }
  14455. return output;
  14456. }
  14457. };
  14458. return AES256Cipher;
  14459. })();
  14460. var PDF17 = (function PDF17Closure() {
  14461. function compareByteArrays(array1, array2) {
  14462. if (array1.length !== array2.length) {
  14463. return false;
  14464. }
  14465. for (var i = 0; i < array1.length; i++) {
  14466. if (array1[i] !== array2[i]) {
  14467. return false;
  14468. }
  14469. }
  14470. return true;
  14471. }
  14472. function PDF17() {
  14473. }
  14474. PDF17.prototype = {
  14475. checkOwnerPassword: function PDF17_checkOwnerPassword(password,
  14476. ownerValidationSalt,
  14477. userBytes,
  14478. ownerPassword) {
  14479. var hashData = new Uint8Array(password.length + 56);
  14480. hashData.set(password, 0);
  14481. hashData.set(ownerValidationSalt, password.length);
  14482. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14483. var result = calculateSHA256(hashData, 0, hashData.length);
  14484. return compareByteArrays(result, ownerPassword);
  14485. },
  14486. checkUserPassword: function PDF17_checkUserPassword(password,
  14487. userValidationSalt,
  14488. userPassword) {
  14489. var hashData = new Uint8Array(password.length + 8);
  14490. hashData.set(password, 0);
  14491. hashData.set(userValidationSalt, password.length);
  14492. var result = calculateSHA256(hashData, 0, hashData.length);
  14493. return compareByteArrays(result, userPassword);
  14494. },
  14495. getOwnerKey: function PDF17_getOwnerKey(password, ownerKeySalt, userBytes,
  14496. ownerEncryption) {
  14497. var hashData = new Uint8Array(password.length + 56);
  14498. hashData.set(password, 0);
  14499. hashData.set(ownerKeySalt, password.length);
  14500. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14501. var key = calculateSHA256(hashData, 0, hashData.length);
  14502. var cipher = new AES256Cipher(key);
  14503. return cipher.decryptBlock(ownerEncryption,
  14504. false,
  14505. new Uint8Array(16));
  14506. },
  14507. getUserKey: function PDF17_getUserKey(password, userKeySalt,
  14508. userEncryption) {
  14509. var hashData = new Uint8Array(password.length + 8);
  14510. hashData.set(password, 0);
  14511. hashData.set(userKeySalt, password.length);
  14512. //key is the decryption key for the UE string
  14513. var key = calculateSHA256(hashData, 0, hashData.length);
  14514. var cipher = new AES256Cipher(key);
  14515. return cipher.decryptBlock(userEncryption,
  14516. false,
  14517. new Uint8Array(16));
  14518. }
  14519. };
  14520. return PDF17;
  14521. })();
  14522. var PDF20 = (function PDF20Closure() {
  14523. function concatArrays(array1, array2) {
  14524. var t = new Uint8Array(array1.length + array2.length);
  14525. t.set(array1, 0);
  14526. t.set(array2, array1.length);
  14527. return t;
  14528. }
  14529. function calculatePDF20Hash(password, input, userBytes) {
  14530. //This refers to Algorithm 2.B as defined in ISO 32000-2
  14531. var k = calculateSHA256(input, 0, input.length).subarray(0, 32);
  14532. var e = [0];
  14533. var i = 0;
  14534. while (i < 64 || e[e.length - 1] > i - 32) {
  14535. var arrayLength = password.length + k.length + userBytes.length;
  14536. var k1 = new Uint8Array(arrayLength * 64);
  14537. var array = concatArrays(password, k);
  14538. array = concatArrays(array, userBytes);
  14539. for (var j = 0, pos = 0; j < 64; j++, pos += arrayLength) {
  14540. k1.set(array, pos);
  14541. }
  14542. //AES128 CBC NO PADDING with
  14543. //first 16 bytes of k as the key and the second 16 as the iv.
  14544. var cipher = new AES128Cipher(k.subarray(0, 16));
  14545. e = cipher.encrypt(k1, k.subarray(16, 32));
  14546. //Now we have to take the first 16 bytes of an unsigned
  14547. //big endian integer... and compute the remainder
  14548. //modulo 3.... That is a fairly large number and
  14549. //JavaScript isn't going to handle that well...
  14550. //So we're using a trick that allows us to perform
  14551. //modulo math byte by byte
  14552. var remainder = 0;
  14553. for (var z = 0; z < 16; z++) {
  14554. remainder *= (256 % 3);
  14555. remainder %= 3;
  14556. remainder += ((e[z] >>> 0) % 3);
  14557. remainder %= 3;
  14558. }
  14559. if (remainder === 0) {
  14560. k = calculateSHA256(e, 0, e.length);
  14561. }
  14562. else if (remainder === 1) {
  14563. k = calculateSHA384(e, 0, e.length);
  14564. }
  14565. else if (remainder === 2) {
  14566. k = calculateSHA512(e, 0, e.length);
  14567. }
  14568. i++;
  14569. }
  14570. return k.subarray(0, 32);
  14571. }
  14572. function PDF20() {
  14573. }
  14574. function compareByteArrays(array1, array2) {
  14575. if (array1.length !== array2.length) {
  14576. return false;
  14577. }
  14578. for (var i = 0; i < array1.length; i++) {
  14579. if (array1[i] !== array2[i]) {
  14580. return false;
  14581. }
  14582. }
  14583. return true;
  14584. }
  14585. PDF20.prototype = {
  14586. hash: function PDF20_hash(password, concatBytes, userBytes) {
  14587. return calculatePDF20Hash(password, concatBytes, userBytes);
  14588. },
  14589. checkOwnerPassword: function PDF20_checkOwnerPassword(password,
  14590. ownerValidationSalt,
  14591. userBytes,
  14592. ownerPassword) {
  14593. var hashData = new Uint8Array(password.length + 56);
  14594. hashData.set(password, 0);
  14595. hashData.set(ownerValidationSalt, password.length);
  14596. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14597. var result = calculatePDF20Hash(password, hashData, userBytes);
  14598. return compareByteArrays(result, ownerPassword);
  14599. },
  14600. checkUserPassword: function PDF20_checkUserPassword(password,
  14601. userValidationSalt,
  14602. userPassword) {
  14603. var hashData = new Uint8Array(password.length + 8);
  14604. hashData.set(password, 0);
  14605. hashData.set(userValidationSalt, password.length);
  14606. var result = calculatePDF20Hash(password, hashData, []);
  14607. return compareByteArrays(result, userPassword);
  14608. },
  14609. getOwnerKey: function PDF20_getOwnerKey(password, ownerKeySalt, userBytes,
  14610. ownerEncryption) {
  14611. var hashData = new Uint8Array(password.length + 56);
  14612. hashData.set(password, 0);
  14613. hashData.set(ownerKeySalt, password.length);
  14614. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14615. var key = calculatePDF20Hash(password, hashData, userBytes);
  14616. var cipher = new AES256Cipher(key);
  14617. return cipher.decryptBlock(ownerEncryption,
  14618. false,
  14619. new Uint8Array(16));
  14620. },
  14621. getUserKey: function PDF20_getUserKey(password, userKeySalt,
  14622. userEncryption) {
  14623. var hashData = new Uint8Array(password.length + 8);
  14624. hashData.set(password, 0);
  14625. hashData.set(userKeySalt, password.length);
  14626. //key is the decryption key for the UE string
  14627. var key = calculatePDF20Hash(password, hashData, []);
  14628. var cipher = new AES256Cipher(key);
  14629. return cipher.decryptBlock(userEncryption,
  14630. false,
  14631. new Uint8Array(16));
  14632. }
  14633. };
  14634. return PDF20;
  14635. })();
  14636. var CipherTransform = (function CipherTransformClosure() {
  14637. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  14638. this.stringCipherConstructor = stringCipherConstructor;
  14639. this.streamCipherConstructor = streamCipherConstructor;
  14640. }
  14641. CipherTransform.prototype = {
  14642. createStream: function CipherTransform_createStream(stream, length) {
  14643. var cipher = new this.streamCipherConstructor();
  14644. return new DecryptStream(stream, length,
  14645. function cipherTransformDecryptStream(data, finalize) {
  14646. return cipher.decryptBlock(data, finalize);
  14647. }
  14648. );
  14649. },
  14650. decryptString: function CipherTransform_decryptString(s) {
  14651. var cipher = new this.stringCipherConstructor();
  14652. var data = stringToBytes(s);
  14653. data = cipher.decryptBlock(data, true);
  14654. return bytesToString(data);
  14655. }
  14656. };
  14657. return CipherTransform;
  14658. })();
  14659. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  14660. var defaultPasswordBytes = new Uint8Array([
  14661. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  14662. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  14663. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  14664. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  14665. function createEncryptionKey20(revision, password, ownerPassword,
  14666. ownerValidationSalt, ownerKeySalt, uBytes,
  14667. userPassword, userValidationSalt, userKeySalt,
  14668. ownerEncryption, userEncryption, perms) {
  14669. if (password) {
  14670. var passwordLength = Math.min(127, password.length);
  14671. password = password.subarray(0, passwordLength);
  14672. } else {
  14673. password = [];
  14674. }
  14675. var pdfAlgorithm;
  14676. if (revision === 6) {
  14677. pdfAlgorithm = new PDF20();
  14678. } else {
  14679. pdfAlgorithm = new PDF17();
  14680. }
  14681. if (pdfAlgorithm) {
  14682. if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
  14683. userPassword)) {
  14684. return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
  14685. } else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt,
  14686. uBytes,
  14687. ownerPassword)) {
  14688. return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
  14689. ownerEncryption);
  14690. }
  14691. }
  14692. return null;
  14693. }
  14694. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  14695. flags, revision, keyLength, encryptMetadata) {
  14696. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  14697. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  14698. if (password) {
  14699. n = Math.min(32, password.length);
  14700. for (; i < n; ++i) {
  14701. hashData[i] = password[i];
  14702. }
  14703. }
  14704. j = 0;
  14705. while (i < 32) {
  14706. hashData[i++] = defaultPasswordBytes[j++];
  14707. }
  14708. // as now the padded password in the hashData[0..i]
  14709. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  14710. hashData[i++] = ownerPassword[j];
  14711. }
  14712. hashData[i++] = flags & 0xFF;
  14713. hashData[i++] = (flags >> 8) & 0xFF;
  14714. hashData[i++] = (flags >> 16) & 0xFF;
  14715. hashData[i++] = (flags >>> 24) & 0xFF;
  14716. for (j = 0, n = fileId.length; j < n; ++j) {
  14717. hashData[i++] = fileId[j];
  14718. }
  14719. if (revision >= 4 && !encryptMetadata) {
  14720. hashData[i++] = 0xFF;
  14721. hashData[i++] = 0xFF;
  14722. hashData[i++] = 0xFF;
  14723. hashData[i++] = 0xFF;
  14724. }
  14725. var hash = calculateMD5(hashData, 0, i);
  14726. var keyLengthInBytes = keyLength >> 3;
  14727. if (revision >= 3) {
  14728. for (j = 0; j < 50; ++j) {
  14729. hash = calculateMD5(hash, 0, keyLengthInBytes);
  14730. }
  14731. }
  14732. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  14733. var cipher, checkData;
  14734. if (revision >= 3) {
  14735. for (i = 0; i < 32; ++i) {
  14736. hashData[i] = defaultPasswordBytes[i];
  14737. }
  14738. for (j = 0, n = fileId.length; j < n; ++j) {
  14739. hashData[i++] = fileId[j];
  14740. }
  14741. cipher = new ARCFourCipher(encryptionKey);
  14742. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  14743. n = encryptionKey.length;
  14744. var derivedKey = new Uint8Array(n), k;
  14745. for (j = 1; j <= 19; ++j) {
  14746. for (k = 0; k < n; ++k) {
  14747. derivedKey[k] = encryptionKey[k] ^ j;
  14748. }
  14749. cipher = new ARCFourCipher(derivedKey);
  14750. checkData = cipher.encryptBlock(checkData);
  14751. }
  14752. for (j = 0, n = checkData.length; j < n; ++j) {
  14753. if (userPassword[j] !== checkData[j]) {
  14754. return null;
  14755. }
  14756. }
  14757. } else {
  14758. cipher = new ARCFourCipher(encryptionKey);
  14759. checkData = cipher.encryptBlock(defaultPasswordBytes);
  14760. for (j = 0, n = checkData.length; j < n; ++j) {
  14761. if (userPassword[j] !== checkData[j]) {
  14762. return null;
  14763. }
  14764. }
  14765. }
  14766. return encryptionKey;
  14767. }
  14768. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  14769. var hashData = new Uint8Array(32), i = 0, j, n;
  14770. n = Math.min(32, password.length);
  14771. for (; i < n; ++i) {
  14772. hashData[i] = password[i];
  14773. }
  14774. j = 0;
  14775. while (i < 32) {
  14776. hashData[i++] = defaultPasswordBytes[j++];
  14777. }
  14778. var hash = calculateMD5(hashData, 0, i);
  14779. var keyLengthInBytes = keyLength >> 3;
  14780. if (revision >= 3) {
  14781. for (j = 0; j < 50; ++j) {
  14782. hash = calculateMD5(hash, 0, hash.length);
  14783. }
  14784. }
  14785. var cipher, userPassword;
  14786. if (revision >= 3) {
  14787. userPassword = ownerPassword;
  14788. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  14789. for (j = 19; j >= 0; j--) {
  14790. for (k = 0; k < keyLengthInBytes; ++k) {
  14791. derivedKey[k] = hash[k] ^ j;
  14792. }
  14793. cipher = new ARCFourCipher(derivedKey);
  14794. userPassword = cipher.encryptBlock(userPassword);
  14795. }
  14796. } else {
  14797. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  14798. userPassword = cipher.encryptBlock(ownerPassword);
  14799. }
  14800. return userPassword;
  14801. }
  14802. var identityName = Name.get('Identity');
  14803. function CipherTransformFactory(dict, fileId, password) {
  14804. var filter = dict.get('Filter');
  14805. if (!isName(filter) || filter.name !== 'Standard') {
  14806. error('unknown encryption method');
  14807. }
  14808. this.dict = dict;
  14809. var algorithm = dict.get('V');
  14810. if (!isInt(algorithm) ||
  14811. (algorithm !== 1 && algorithm !== 2 && algorithm !== 4 &&
  14812. algorithm !== 5)) {
  14813. error('unsupported encryption algorithm');
  14814. }
  14815. this.algorithm = algorithm;
  14816. var keyLength = dict.get('Length') || 40;
  14817. if (!isInt(keyLength) ||
  14818. keyLength < 40 || (keyLength % 8) !== 0) {
  14819. error('invalid key length');
  14820. }
  14821. // prepare keys
  14822. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  14823. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  14824. var flags = dict.get('P');
  14825. var revision = dict.get('R');
  14826. // meaningful when V is 4 or 5
  14827. var encryptMetadata = ((algorithm === 4 || algorithm === 5) &&
  14828. dict.get('EncryptMetadata') !== false);
  14829. this.encryptMetadata = encryptMetadata;
  14830. var fileIdBytes = stringToBytes(fileId);
  14831. var passwordBytes;
  14832. if (password) {
  14833. passwordBytes = stringToBytes(password);
  14834. }
  14835. var encryptionKey;
  14836. if (algorithm !== 5) {
  14837. encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  14838. ownerPassword, userPassword, flags,
  14839. revision, keyLength, encryptMetadata);
  14840. }
  14841. else {
  14842. var ownerValidationSalt = stringToBytes(dict.get('O')).subarray(32, 40);
  14843. var ownerKeySalt = stringToBytes(dict.get('O')).subarray(40, 48);
  14844. var uBytes = stringToBytes(dict.get('U')).subarray(0, 48);
  14845. var userValidationSalt = stringToBytes(dict.get('U')).subarray(32, 40);
  14846. var userKeySalt = stringToBytes(dict.get('U')).subarray(40, 48);
  14847. var ownerEncryption = stringToBytes(dict.get('OE'));
  14848. var userEncryption = stringToBytes(dict.get('UE'));
  14849. var perms = stringToBytes(dict.get('Perms'));
  14850. encryptionKey =
  14851. createEncryptionKey20(revision, passwordBytes,
  14852. ownerPassword, ownerValidationSalt,
  14853. ownerKeySalt, uBytes,
  14854. userPassword, userValidationSalt,
  14855. userKeySalt, ownerEncryption,
  14856. userEncryption, perms);
  14857. }
  14858. if (!encryptionKey && !password) {
  14859. throw new PasswordException('No password given',
  14860. PasswordResponses.NEED_PASSWORD);
  14861. } else if (!encryptionKey && password) {
  14862. // Attempting use the password as an owner password
  14863. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  14864. revision, keyLength);
  14865. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  14866. ownerPassword, userPassword, flags,
  14867. revision, keyLength, encryptMetadata);
  14868. }
  14869. if (!encryptionKey) {
  14870. throw new PasswordException('Incorrect Password',
  14871. PasswordResponses.INCORRECT_PASSWORD);
  14872. }
  14873. this.encryptionKey = encryptionKey;
  14874. if (algorithm >= 4) {
  14875. this.cf = dict.get('CF');
  14876. this.stmf = dict.get('StmF') || identityName;
  14877. this.strf = dict.get('StrF') || identityName;
  14878. this.eff = dict.get('EFF') || this.strf;
  14879. }
  14880. }
  14881. function buildObjectKey(num, gen, encryptionKey, isAes) {
  14882. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  14883. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  14884. key[i] = encryptionKey[i];
  14885. }
  14886. key[i++] = num & 0xFF;
  14887. key[i++] = (num >> 8) & 0xFF;
  14888. key[i++] = (num >> 16) & 0xFF;
  14889. key[i++] = gen & 0xFF;
  14890. key[i++] = (gen >> 8) & 0xFF;
  14891. if (isAes) {
  14892. key[i++] = 0x73;
  14893. key[i++] = 0x41;
  14894. key[i++] = 0x6C;
  14895. key[i++] = 0x54;
  14896. }
  14897. var hash = calculateMD5(key, 0, i);
  14898. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  14899. }
  14900. function buildCipherConstructor(cf, name, num, gen, key) {
  14901. var cryptFilter = cf.get(name.name);
  14902. var cfm;
  14903. if (cryptFilter !== null && cryptFilter !== undefined) {
  14904. cfm = cryptFilter.get('CFM');
  14905. }
  14906. if (!cfm || cfm.name === 'None') {
  14907. return function cipherTransformFactoryBuildCipherConstructorNone() {
  14908. return new NullCipher();
  14909. };
  14910. }
  14911. if ('V2' === cfm.name) {
  14912. return function cipherTransformFactoryBuildCipherConstructorV2() {
  14913. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  14914. };
  14915. }
  14916. if ('AESV2' === cfm.name) {
  14917. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  14918. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  14919. };
  14920. }
  14921. if ('AESV3' === cfm.name) {
  14922. return function cipherTransformFactoryBuildCipherConstructorAESV3() {
  14923. return new AES256Cipher(key);
  14924. };
  14925. }
  14926. error('Unknown crypto method');
  14927. }
  14928. CipherTransformFactory.prototype = {
  14929. createCipherTransform:
  14930. function CipherTransformFactory_createCipherTransform(num, gen) {
  14931. if (this.algorithm === 4 || this.algorithm === 5) {
  14932. return new CipherTransform(
  14933. buildCipherConstructor(this.cf, this.stmf,
  14934. num, gen, this.encryptionKey),
  14935. buildCipherConstructor(this.cf, this.strf,
  14936. num, gen, this.encryptionKey));
  14937. }
  14938. // algorithms 1 and 2
  14939. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  14940. var cipherConstructor = function buildCipherCipherConstructor() {
  14941. return new ARCFourCipher(key);
  14942. };
  14943. return new CipherTransform(cipherConstructor, cipherConstructor);
  14944. }
  14945. };
  14946. return CipherTransformFactory;
  14947. })();
  14948. var PatternType = {
  14949. FUNCTION_BASED: 1,
  14950. AXIAL: 2,
  14951. RADIAL: 3,
  14952. FREE_FORM_MESH: 4,
  14953. LATTICE_FORM_MESH: 5,
  14954. COONS_PATCH_MESH: 6,
  14955. TENSOR_PATCH_MESH: 7
  14956. };
  14957. var Pattern = (function PatternClosure() {
  14958. // Constructor should define this.getPattern
  14959. function Pattern() {
  14960. error('should not call Pattern constructor');
  14961. }
  14962. Pattern.prototype = {
  14963. // Input: current Canvas context
  14964. // Output: the appropriate fillStyle or strokeStyle
  14965. getPattern: function Pattern_getPattern(ctx) {
  14966. error('Should not call Pattern.getStyle: ' + ctx);
  14967. }
  14968. };
  14969. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  14970. res) {
  14971. var dict = isStream(shading) ? shading.dict : shading;
  14972. var type = dict.get('ShadingType');
  14973. switch (type) {
  14974. case PatternType.AXIAL:
  14975. case PatternType.RADIAL:
  14976. // Both radial and axial shadings are handled by RadialAxial shading.
  14977. return new Shadings.RadialAxial(dict, matrix, xref, res);
  14978. case PatternType.FREE_FORM_MESH:
  14979. case PatternType.LATTICE_FORM_MESH:
  14980. case PatternType.COONS_PATCH_MESH:
  14981. case PatternType.TENSOR_PATCH_MESH:
  14982. return new Shadings.Mesh(shading, matrix, xref, res);
  14983. default:
  14984. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  14985. return new Shadings.Dummy();
  14986. }
  14987. };
  14988. return Pattern;
  14989. })();
  14990. var Shadings = {};
  14991. // A small number to offset the first/last color stops so we can insert ones to
  14992. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  14993. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  14994. // internally so we have to go bigger.
  14995. Shadings.SMALL_NUMBER = 1e-2;
  14996. // Radial and axial shading have very similar implementations
  14997. // If needed, the implementations can be broken into two classes
  14998. Shadings.RadialAxial = (function RadialAxialClosure() {
  14999. function RadialAxial(dict, matrix, xref, res) {
  15000. this.matrix = matrix;
  15001. this.coordsArr = dict.get('Coords');
  15002. this.shadingType = dict.get('ShadingType');
  15003. this.type = 'Pattern';
  15004. var cs = dict.get('ColorSpace', 'CS');
  15005. cs = ColorSpace.parse(cs, xref, res);
  15006. this.cs = cs;
  15007. var t0 = 0.0, t1 = 1.0;
  15008. if (dict.has('Domain')) {
  15009. var domainArr = dict.get('Domain');
  15010. t0 = domainArr[0];
  15011. t1 = domainArr[1];
  15012. }
  15013. var extendStart = false, extendEnd = false;
  15014. if (dict.has('Extend')) {
  15015. var extendArr = dict.get('Extend');
  15016. extendStart = extendArr[0];
  15017. extendEnd = extendArr[1];
  15018. }
  15019. if (this.shadingType === PatternType.RADIAL &&
  15020. (!extendStart || !extendEnd)) {
  15021. // Radial gradient only currently works if either circle is fully within
  15022. // the other circle.
  15023. var x1 = this.coordsArr[0];
  15024. var y1 = this.coordsArr[1];
  15025. var r1 = this.coordsArr[2];
  15026. var x2 = this.coordsArr[3];
  15027. var y2 = this.coordsArr[4];
  15028. var r2 = this.coordsArr[5];
  15029. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  15030. if (r1 <= r2 + distance &&
  15031. r2 <= r1 + distance) {
  15032. warn('Unsupported radial gradient.');
  15033. }
  15034. }
  15035. this.extendStart = extendStart;
  15036. this.extendEnd = extendEnd;
  15037. var fnObj = dict.get('Function');
  15038. var fn;
  15039. if (isArray(fnObj)) {
  15040. var fnArray = [];
  15041. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15042. var obj = xref.fetchIfRef(fnObj[j]);
  15043. if (!isPDFFunction(obj)) {
  15044. error('Invalid function');
  15045. }
  15046. fnArray.push(PDFFunction.parse(xref, obj));
  15047. }
  15048. fn = function radialAxialColorFunction(arg) {
  15049. var out = [];
  15050. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15051. out.push(fnArray[i](arg)[0]);
  15052. }
  15053. return out;
  15054. };
  15055. } else {
  15056. if (!isPDFFunction(fnObj)) {
  15057. error('Invalid function');
  15058. }
  15059. fn = PDFFunction.parse(xref, fnObj);
  15060. }
  15061. // 10 samples seems good enough for now, but probably won't work
  15062. // if there are sharp color changes. Ideally, we would implement
  15063. // the spec faithfully and add lossless optimizations.
  15064. var diff = t1 - t0;
  15065. var step = diff / 10;
  15066. var colorStops = this.colorStops = [];
  15067. // Protect against bad domains so we don't end up in an infinte loop below.
  15068. if (t0 >= t1 || step <= 0) {
  15069. // Acrobat doesn't seem to handle these cases so we'll ignore for
  15070. // now.
  15071. info('Bad shading domain.');
  15072. return;
  15073. }
  15074. var rgbColor;
  15075. for (var i = t0; i <= t1; i += step) {
  15076. rgbColor = cs.getRgb(fn([i]), 0);
  15077. var cssColor = Util.makeCssRgb(rgbColor);
  15078. colorStops.push([(i - t0) / diff, cssColor]);
  15079. }
  15080. var background = 'transparent';
  15081. if (dict.has('Background')) {
  15082. rgbColor = cs.getRgb(dict.get('Background'), 0);
  15083. background = Util.makeCssRgb(rgbColor);
  15084. }
  15085. if (!extendStart) {
  15086. // Insert a color stop at the front and offset the first real color stop
  15087. // so it doesn't conflict with the one we insert.
  15088. colorStops.unshift([0, background]);
  15089. colorStops[1][0] += Shadings.SMALL_NUMBER;
  15090. }
  15091. if (!extendEnd) {
  15092. // Same idea as above in extendStart but for the end.
  15093. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  15094. colorStops.push([1, background]);
  15095. }
  15096. this.colorStops = colorStops;
  15097. }
  15098. RadialAxial.prototype = {
  15099. getIR: function RadialAxial_getIR() {
  15100. var coordsArr = this.coordsArr;
  15101. var shadingType = this.shadingType;
  15102. var type, p0, p1, r0, r1;
  15103. if (shadingType == PatternType.AXIAL) {
  15104. p0 = [coordsArr[0], coordsArr[1]];
  15105. p1 = [coordsArr[2], coordsArr[3]];
  15106. r0 = null;
  15107. r1 = null;
  15108. type = 'axial';
  15109. } else if (shadingType == PatternType.RADIAL) {
  15110. p0 = [coordsArr[0], coordsArr[1]];
  15111. p1 = [coordsArr[3], coordsArr[4]];
  15112. r0 = coordsArr[2];
  15113. r1 = coordsArr[5];
  15114. type = 'radial';
  15115. } else {
  15116. error('getPattern type unknown: ' + shadingType);
  15117. }
  15118. var matrix = this.matrix;
  15119. if (matrix) {
  15120. p0 = Util.applyTransform(p0, matrix);
  15121. p1 = Util.applyTransform(p1, matrix);
  15122. }
  15123. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  15124. }
  15125. };
  15126. return RadialAxial;
  15127. })();
  15128. // All mesh shading. For now, they will be presented as set of the triangles
  15129. // to be drawn on the canvas and rgb color for each vertex.
  15130. Shadings.Mesh = (function MeshClosure() {
  15131. function MeshStreamReader(stream, context) {
  15132. this.stream = stream;
  15133. this.context = context;
  15134. this.buffer = 0;
  15135. this.bufferLength = 0;
  15136. }
  15137. MeshStreamReader.prototype = {
  15138. get hasData() {
  15139. if (this.stream.end) {
  15140. return this.stream.pos < this.stream.end;
  15141. }
  15142. if (this.bufferLength > 0) {
  15143. return true;
  15144. }
  15145. var nextByte = this.stream.getByte();
  15146. if (nextByte < 0) {
  15147. return false;
  15148. }
  15149. this.buffer = nextByte;
  15150. this.bufferLength = 8;
  15151. return true;
  15152. },
  15153. readBits: function MeshStreamReader_readBits(n) {
  15154. var buffer = this.buffer;
  15155. var bufferLength = this.bufferLength;
  15156. if (n === 32) {
  15157. if (bufferLength === 0) {
  15158. return ((this.stream.getByte() << 24) |
  15159. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  15160. this.stream.getByte()) >>> 0;
  15161. }
  15162. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  15163. (this.stream.getByte() << 8) | this.stream.getByte();
  15164. var nextByte = this.stream.getByte();
  15165. this.buffer = nextByte & ((1 << bufferLength) - 1);
  15166. return ((buffer << (8 - bufferLength)) |
  15167. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  15168. }
  15169. if (n === 8 && bufferLength === 0) {
  15170. return this.stream.getByte();
  15171. }
  15172. while (bufferLength < n) {
  15173. buffer = (buffer << 8) | this.stream.getByte();
  15174. bufferLength += 8;
  15175. }
  15176. bufferLength -= n;
  15177. this.bufferLength = bufferLength;
  15178. this.buffer = buffer & ((1 << bufferLength) - 1);
  15179. return buffer >> bufferLength;
  15180. },
  15181. align: function MeshStreamReader_align() {
  15182. this.buffer = 0;
  15183. this.bufferLength = 0;
  15184. },
  15185. readFlag: function MeshStreamReader_readFlag() {
  15186. return this.readBits(this.context.bitsPerFlag);
  15187. },
  15188. readCoordinate: function MeshStreamReader_readCoordinate() {
  15189. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  15190. var xi = this.readBits(bitsPerCoordinate);
  15191. var yi = this.readBits(bitsPerCoordinate);
  15192. var decode = this.context.decode;
  15193. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  15194. 2.3283064365386963e-10; // 2 ^ -32
  15195. return [
  15196. xi * scale * (decode[1] - decode[0]) + decode[0],
  15197. yi * scale * (decode[3] - decode[2]) + decode[2]
  15198. ];
  15199. },
  15200. readComponents: function MeshStreamReader_readComponents() {
  15201. var numComps = this.context.numComps;
  15202. var bitsPerComponent = this.context.bitsPerComponent;
  15203. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  15204. 2.3283064365386963e-10; // 2 ^ -32
  15205. var decode = this.context.decode;
  15206. var components = [];
  15207. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  15208. var ci = this.readBits(bitsPerComponent);
  15209. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  15210. }
  15211. if (this.context.colorFn) {
  15212. components = this.context.colorFn(components);
  15213. }
  15214. return this.context.colorSpace.getRgb(components, 0);
  15215. }
  15216. };
  15217. function decodeType4Shading(mesh, reader) {
  15218. var coords = mesh.coords;
  15219. var colors = mesh.colors;
  15220. var operators = [];
  15221. var ps = []; // not maintaining cs since that will match ps
  15222. var verticesLeft = 0; // assuming we have all data to start a new triangle
  15223. while (reader.hasData) {
  15224. var f = reader.readFlag();
  15225. var coord = reader.readCoordinate();
  15226. var color = reader.readComponents();
  15227. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  15228. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  15229. switch (f) {
  15230. case 0:
  15231. verticesLeft = 3;
  15232. break;
  15233. case 1:
  15234. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  15235. verticesLeft = 1;
  15236. break;
  15237. case 2:
  15238. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  15239. verticesLeft = 1;
  15240. break;
  15241. }
  15242. operators.push(f);
  15243. }
  15244. ps.push(coords.length);
  15245. coords.push(coord);
  15246. colors.push(color);
  15247. verticesLeft--;
  15248. reader.align();
  15249. }
  15250. var psPacked = new Int32Array(ps);
  15251. mesh.figures.push({
  15252. type: 'triangles',
  15253. coords: psPacked,
  15254. colors: psPacked
  15255. });
  15256. }
  15257. function decodeType5Shading(mesh, reader, verticesPerRow) {
  15258. var coords = mesh.coords;
  15259. var colors = mesh.colors;
  15260. var ps = []; // not maintaining cs since that will match ps
  15261. while (reader.hasData) {
  15262. var coord = reader.readCoordinate();
  15263. var color = reader.readComponents();
  15264. ps.push(coords.length);
  15265. coords.push(coord);
  15266. colors.push(color);
  15267. }
  15268. var psPacked = new Int32Array(ps);
  15269. mesh.figures.push({
  15270. type: 'lattice',
  15271. coords: psPacked,
  15272. colors: psPacked,
  15273. verticesPerRow: verticesPerRow
  15274. });
  15275. }
  15276. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  15277. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  15278. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  15279. var getB = (function getBClosure() {
  15280. function buildB(count) {
  15281. var lut = [];
  15282. for (var i = 0; i <= count; i++) {
  15283. var t = i / count, t_ = 1 - t;
  15284. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  15285. 3 * t * t * t_, t * t * t]));
  15286. }
  15287. return lut;
  15288. }
  15289. var cache = [];
  15290. return function getB(count) {
  15291. if (!cache[count]) {
  15292. cache[count] = buildB(count);
  15293. }
  15294. return cache[count];
  15295. };
  15296. })();
  15297. function buildFigureFromPatch(mesh, index) {
  15298. var figure = mesh.figures[index];
  15299. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  15300. var coords = mesh.coords, colors = mesh.colors;
  15301. var pi = figure.coords;
  15302. var ci = figure.colors;
  15303. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  15304. coords[pi[12]][0], coords[pi[15]][0]);
  15305. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  15306. coords[pi[12]][1], coords[pi[15]][1]);
  15307. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  15308. coords[pi[12]][0], coords[pi[15]][0]);
  15309. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  15310. coords[pi[12]][1], coords[pi[15]][1]);
  15311. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  15312. (mesh.bounds[2] - mesh.bounds[0]));
  15313. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15314. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  15315. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  15316. (mesh.bounds[3] - mesh.bounds[1]));
  15317. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15318. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  15319. var verticesPerRow = splitXBy + 1;
  15320. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  15321. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  15322. var k = 0;
  15323. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  15324. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  15325. c2 = colors[ci[2]], c3 = colors[ci[3]];
  15326. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  15327. for (var row = 0; row <= splitYBy; row++) {
  15328. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  15329. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  15330. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  15331. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  15332. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  15333. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  15334. for (var col = 0; col <= splitXBy; col++, k++) {
  15335. if ((row === 0 || row === splitYBy) &&
  15336. (col === 0 || col === splitXBy)) {
  15337. continue;
  15338. }
  15339. var x = 0, y = 0;
  15340. var q = 0;
  15341. for (var i = 0; i <= 3; i++) {
  15342. for (var j = 0; j <= 3; j++, q++) {
  15343. var m = bRow[row][i] * bCol[col][j];
  15344. x += coords[pi[q]][0] * m;
  15345. y += coords[pi[q]][1] * m;
  15346. }
  15347. }
  15348. figureCoords[k] = coords.length;
  15349. coords.push([x, y]);
  15350. figureColors[k] = colors.length;
  15351. var newColor = new Uint8Array(3);
  15352. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  15353. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  15354. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  15355. colors.push(newColor);
  15356. }
  15357. }
  15358. figureCoords[0] = pi[0];
  15359. figureColors[0] = ci[0];
  15360. figureCoords[splitXBy] = pi[3];
  15361. figureColors[splitXBy] = ci[1];
  15362. figureCoords[verticesPerRow * splitYBy] = pi[12];
  15363. figureColors[verticesPerRow * splitYBy] = ci[2];
  15364. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  15365. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  15366. mesh.figures[index] = {
  15367. type: 'lattice',
  15368. coords: figureCoords,
  15369. colors: figureColors,
  15370. verticesPerRow: verticesPerRow
  15371. };
  15372. }
  15373. function decodeType6Shading(mesh, reader) {
  15374. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  15375. var coords = mesh.coords;
  15376. var colors = mesh.colors;
  15377. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15378. var cs = new Int32Array(4); // c00, c30, c03, c33
  15379. while (reader.hasData) {
  15380. var f = reader.readFlag();
  15381. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  15382. var i, ii;
  15383. var pi = coords.length;
  15384. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  15385. coords.push(reader.readCoordinate());
  15386. }
  15387. var ci = colors.length;
  15388. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15389. colors.push(reader.readComponents());
  15390. }
  15391. var tmp1, tmp2, tmp3, tmp4;
  15392. switch (f) {
  15393. case 0:
  15394. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15395. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15396. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  15397. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15398. cs[2] = ci + 1; cs[3] = ci + 2;
  15399. cs[0] = ci; cs[1] = ci + 3;
  15400. break;
  15401. case 1:
  15402. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15403. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15404. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  15405. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  15406. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15407. tmp1 = cs[2]; tmp2 = cs[3];
  15408. cs[2] = ci + 1; cs[3] = ci;
  15409. cs[0] = tmp1; cs[1] = tmp2;
  15410. break;
  15411. case 2:
  15412. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15413. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  15414. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  15415. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15416. cs[2] = cs[3]; cs[3] = ci + 1;
  15417. cs[0] = cs[1]; cs[1] = ci;
  15418. break;
  15419. case 3:
  15420. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15421. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15422. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  15423. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15424. cs[2] = cs[0]; cs[3] = cs[1];
  15425. cs[0] = ci; cs[1] = ci + 1;
  15426. break;
  15427. }
  15428. // set p11, p12, p21, p22
  15429. ps[5] = coords.length;
  15430. coords.push([
  15431. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  15432. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  15433. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15434. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  15435. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  15436. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  15437. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15438. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  15439. ]);
  15440. ps[6] = coords.length;
  15441. coords.push([
  15442. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  15443. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  15444. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15445. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  15446. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  15447. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  15448. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15449. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  15450. ]);
  15451. ps[9] = coords.length;
  15452. coords.push([
  15453. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  15454. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  15455. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15456. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  15457. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  15458. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  15459. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15460. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  15461. ]);
  15462. ps[10] = coords.length;
  15463. coords.push([
  15464. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  15465. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  15466. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15467. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  15468. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  15469. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  15470. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15471. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  15472. ]);
  15473. mesh.figures.push({
  15474. type: 'patch',
  15475. coords: new Int32Array(ps), // making copies of ps and cs
  15476. colors: new Int32Array(cs)
  15477. });
  15478. }
  15479. }
  15480. function decodeType7Shading(mesh, reader) {
  15481. var coords = mesh.coords;
  15482. var colors = mesh.colors;
  15483. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15484. var cs = new Int32Array(4); // c00, c30, c03, c33
  15485. while (reader.hasData) {
  15486. var f = reader.readFlag();
  15487. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  15488. var i, ii;
  15489. var pi = coords.length;
  15490. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  15491. coords.push(reader.readCoordinate());
  15492. }
  15493. var ci = colors.length;
  15494. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15495. colors.push(reader.readComponents());
  15496. }
  15497. var tmp1, tmp2, tmp3, tmp4;
  15498. switch (f) {
  15499. case 0:
  15500. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15501. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  15502. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  15503. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15504. cs[2] = ci + 1; cs[3] = ci + 2;
  15505. cs[0] = ci; cs[1] = ci + 3;
  15506. break;
  15507. case 1:
  15508. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15509. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15510. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  15511. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  15512. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15513. tmp1 = cs[2]; tmp2 = cs[3];
  15514. cs[2] = ci + 1; cs[3] = ci;
  15515. cs[0] = tmp1; cs[1] = tmp2;
  15516. break;
  15517. case 2:
  15518. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15519. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  15520. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  15521. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15522. cs[2] = cs[3]; cs[3] = ci + 1;
  15523. cs[0] = cs[1]; cs[1] = ci;
  15524. break;
  15525. case 3:
  15526. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15527. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  15528. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  15529. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15530. cs[2] = cs[0]; cs[3] = cs[1];
  15531. cs[0] = ci; cs[1] = ci + 1;
  15532. break;
  15533. }
  15534. mesh.figures.push({
  15535. type: 'patch',
  15536. coords: new Int32Array(ps), // making copies of ps and cs
  15537. colors: new Int32Array(cs)
  15538. });
  15539. }
  15540. }
  15541. function updateBounds(mesh) {
  15542. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  15543. maxX = minX, maxY = minY;
  15544. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  15545. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  15546. minX = minX > x ? x : minX;
  15547. minY = minY > y ? y : minY;
  15548. maxX = maxX < x ? x : maxX;
  15549. maxY = maxY < y ? y : maxY;
  15550. }
  15551. mesh.bounds = [minX, minY, maxX, maxY];
  15552. }
  15553. function packData(mesh) {
  15554. var i, ii, j, jj;
  15555. var coords = mesh.coords;
  15556. var coordsPacked = new Float32Array(coords.length * 2);
  15557. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  15558. var xy = coords[i];
  15559. coordsPacked[j++] = xy[0];
  15560. coordsPacked[j++] = xy[1];
  15561. }
  15562. mesh.coords = coordsPacked;
  15563. var colors = mesh.colors;
  15564. var colorsPacked = new Uint8Array(colors.length * 3);
  15565. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  15566. var c = colors[i];
  15567. colorsPacked[j++] = c[0];
  15568. colorsPacked[j++] = c[1];
  15569. colorsPacked[j++] = c[2];
  15570. }
  15571. mesh.colors = colorsPacked;
  15572. var figures = mesh.figures;
  15573. for (i = 0, ii = figures.length; i < ii; i++) {
  15574. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  15575. for (j = 0, jj = ps.length; j < jj; j++) {
  15576. ps[j] *= 2;
  15577. cs[j] *= 3;
  15578. }
  15579. }
  15580. }
  15581. function Mesh(stream, matrix, xref, res) {
  15582. assert(isStream(stream), 'Mesh data is not a stream');
  15583. var dict = stream.dict;
  15584. this.matrix = matrix;
  15585. this.shadingType = dict.get('ShadingType');
  15586. this.type = 'Pattern';
  15587. this.bbox = dict.get('BBox');
  15588. var cs = dict.get('ColorSpace', 'CS');
  15589. cs = ColorSpace.parse(cs, xref, res);
  15590. this.cs = cs;
  15591. this.background = dict.has('Background') ?
  15592. cs.getRgb(dict.get('Background'), 0) : null;
  15593. var fnObj = dict.get('Function');
  15594. var fn;
  15595. if (!fnObj) {
  15596. fn = null;
  15597. } else if (isArray(fnObj)) {
  15598. var fnArray = [];
  15599. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15600. var obj = xref.fetchIfRef(fnObj[j]);
  15601. if (!isPDFFunction(obj)) {
  15602. error('Invalid function');
  15603. }
  15604. fnArray.push(PDFFunction.parse(xref, obj));
  15605. }
  15606. fn = function radialAxialColorFunction(arg) {
  15607. var out = [];
  15608. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15609. out.push(fnArray[i](arg)[0]);
  15610. }
  15611. return out;
  15612. };
  15613. } else {
  15614. if (!isPDFFunction(fnObj)) {
  15615. error('Invalid function');
  15616. }
  15617. fn = PDFFunction.parse(xref, fnObj);
  15618. }
  15619. this.coords = [];
  15620. this.colors = [];
  15621. this.figures = [];
  15622. var decodeContext = {
  15623. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  15624. bitsPerComponent: dict.get('BitsPerComponent'),
  15625. bitsPerFlag: dict.get('BitsPerFlag'),
  15626. decode: dict.get('Decode'),
  15627. colorFn: fn,
  15628. colorSpace: cs,
  15629. numComps: fn ? 1 : cs.numComps
  15630. };
  15631. var reader = new MeshStreamReader(stream, decodeContext);
  15632. var patchMesh = false;
  15633. switch (this.shadingType) {
  15634. case PatternType.FREE_FORM_MESH:
  15635. decodeType4Shading(this, reader);
  15636. break;
  15637. case PatternType.LATTICE_FORM_MESH:
  15638. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  15639. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  15640. decodeType5Shading(this, reader, verticesPerRow);
  15641. break;
  15642. case PatternType.COONS_PATCH_MESH:
  15643. decodeType6Shading(this, reader);
  15644. patchMesh = true;
  15645. break;
  15646. case PatternType.TENSOR_PATCH_MESH:
  15647. decodeType7Shading(this, reader);
  15648. patchMesh = true;
  15649. break;
  15650. default:
  15651. error('Unsupported mesh type.');
  15652. break;
  15653. }
  15654. if (patchMesh) {
  15655. // dirty bounds calculation for determining, how dense shall be triangles
  15656. updateBounds(this);
  15657. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  15658. buildFigureFromPatch(this, i);
  15659. }
  15660. }
  15661. // calculate bounds
  15662. updateBounds(this);
  15663. packData(this);
  15664. }
  15665. Mesh.prototype = {
  15666. getIR: function Mesh_getIR() {
  15667. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  15668. this.bounds, this.matrix, this.bbox, this.background];
  15669. }
  15670. };
  15671. return Mesh;
  15672. })();
  15673. Shadings.Dummy = (function DummyClosure() {
  15674. function Dummy() {
  15675. this.type = 'Pattern';
  15676. }
  15677. Dummy.prototype = {
  15678. getIR: function Dummy_getIR() {
  15679. return ['Dummy'];
  15680. }
  15681. };
  15682. return Dummy;
  15683. })();
  15684. function getTilingPatternIR(operatorList, dict, args) {
  15685. var matrix = dict.get('Matrix');
  15686. var bbox = dict.get('BBox');
  15687. var xstep = dict.get('XStep');
  15688. var ystep = dict.get('YStep');
  15689. var paintType = dict.get('PaintType');
  15690. var tilingType = dict.get('TilingType');
  15691. return [
  15692. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  15693. paintType, tilingType
  15694. ];
  15695. }
  15696. var PartialEvaluator = (function PartialEvaluatorClosure() {
  15697. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  15698. uniquePrefix, idCounters, fontCache) {
  15699. this.pdfManager = pdfManager;
  15700. this.xref = xref;
  15701. this.handler = handler;
  15702. this.pageIndex = pageIndex;
  15703. this.uniquePrefix = uniquePrefix;
  15704. this.idCounters = idCounters;
  15705. this.fontCache = fontCache;
  15706. }
  15707. // Trying to minimize Date.now() usage and check every 100 time
  15708. var TIME_SLOT_DURATION_MS = 20;
  15709. var CHECK_TIME_EVERY = 100;
  15710. function TimeSlotManager() {
  15711. this.reset();
  15712. }
  15713. TimeSlotManager.prototype = {
  15714. check: function TimeSlotManager_check() {
  15715. if (++this.checked < CHECK_TIME_EVERY) {
  15716. return false;
  15717. }
  15718. this.checked = 0;
  15719. return this.endTime <= Date.now();
  15720. },
  15721. reset: function TimeSlotManager_reset() {
  15722. this.endTime = Date.now() + TIME_SLOT_DURATION_MS;
  15723. this.checked = 0;
  15724. }
  15725. };
  15726. var deferred = Promise.resolve();
  15727. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  15728. PartialEvaluator.prototype = {
  15729. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  15730. if (!isDict(resources)) {
  15731. return false;
  15732. }
  15733. var processed = Object.create(null);
  15734. if (resources.objId) {
  15735. processed[resources.objId] = true;
  15736. }
  15737. var nodes = [resources];
  15738. while (nodes.length) {
  15739. var key;
  15740. var node = nodes.shift();
  15741. // First check the current resources for blend modes.
  15742. var graphicStates = node.get('ExtGState');
  15743. if (isDict(graphicStates)) {
  15744. graphicStates = graphicStates.getAll();
  15745. for (key in graphicStates) {
  15746. var graphicState = graphicStates[key];
  15747. var bm = graphicState['BM'];
  15748. if (isName(bm) && bm.name !== 'Normal') {
  15749. return true;
  15750. }
  15751. }
  15752. }
  15753. // Descend into the XObjects to look for more resources and blend modes.
  15754. var xObjects = node.get('XObject');
  15755. if (!isDict(xObjects)) {
  15756. continue;
  15757. }
  15758. xObjects = xObjects.getAll();
  15759. for (key in xObjects) {
  15760. var xObject = xObjects[key];
  15761. if (!isStream(xObject)) {
  15762. continue;
  15763. }
  15764. if (xObject.dict.objId) {
  15765. if (processed[xObject.dict.objId]) {
  15766. // stream has objId and is processed already
  15767. continue;
  15768. }
  15769. processed[xObject.dict.objId] = true;
  15770. }
  15771. var xResources = xObject.dict.get('Resources');
  15772. // Checking objId to detect an infinite loop.
  15773. if (isDict(xResources) &&
  15774. (!xResources.objId || !processed[xResources.objId])) {
  15775. nodes.push(xResources);
  15776. if (xResources.objId) {
  15777. processed[xResources.objId] = true;
  15778. }
  15779. }
  15780. }
  15781. }
  15782. return false;
  15783. },
  15784. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  15785. xobj, smask,
  15786. operatorList,
  15787. initialState) {
  15788. var matrix = xobj.dict.get('Matrix');
  15789. var bbox = xobj.dict.get('BBox');
  15790. var group = xobj.dict.get('Group');
  15791. if (group) {
  15792. var groupOptions = {
  15793. matrix: matrix,
  15794. bbox: bbox,
  15795. smask: smask,
  15796. isolated: false,
  15797. knockout: false
  15798. };
  15799. var groupSubtype = group.get('S');
  15800. var colorSpace;
  15801. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  15802. groupOptions.isolated = (group.get('I') || false);
  15803. groupOptions.knockout = (group.get('K') || false);
  15804. colorSpace = (group.has('CS') ?
  15805. ColorSpace.parse(group.get('CS'), this.xref, resources) : null);
  15806. }
  15807. if (smask && smask.backdrop) {
  15808. colorSpace = colorSpace || ColorSpace.singletons.rgb;
  15809. smask.backdrop = colorSpace.getRgb(smask.backdrop, 0);
  15810. }
  15811. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  15812. }
  15813. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  15814. return this.getOperatorList(xobj,
  15815. (xobj.dict.get('Resources') || resources), operatorList, initialState).
  15816. then(function () {
  15817. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  15818. if (group) {
  15819. operatorList.addOp(OPS.endGroup, [groupOptions]);
  15820. }
  15821. });
  15822. },
  15823. buildPaintImageXObject:
  15824. function PartialEvaluator_buildPaintImageXObject(resources, image,
  15825. inline, operatorList,
  15826. cacheKey, cache) {
  15827. var self = this;
  15828. var dict = image.dict;
  15829. var w = dict.get('Width', 'W');
  15830. var h = dict.get('Height', 'H');
  15831. if (!(w && isNum(w)) || !(h && isNum(h))) {
  15832. warn('Image dimensions are missing, or not numbers.');
  15833. return;
  15834. }
  15835. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  15836. warn('Image exceeded maximum allowed size and was removed.');
  15837. return;
  15838. }
  15839. var imageMask = (dict.get('ImageMask', 'IM') || false);
  15840. var imgData, args;
  15841. if (imageMask) {
  15842. // This depends on a tmpCanvas being filled with the
  15843. // current fillStyle, such that processing the pixel
  15844. // data can't be done here. Instead of creating a
  15845. // complete PDFImage, only read the information needed
  15846. // for later.
  15847. var width = dict.get('Width', 'W');
  15848. var height = dict.get('Height', 'H');
  15849. var bitStrideLength = (width + 7) >> 3;
  15850. var imgArray = image.getBytes(bitStrideLength * height);
  15851. var decode = dict.get('Decode', 'D');
  15852. var inverseDecode = (!!decode && decode[0] > 0);
  15853. imgData = PDFImage.createMask(imgArray, width, height,
  15854. image instanceof DecodeStream,
  15855. inverseDecode);
  15856. imgData.cached = true;
  15857. args = [imgData];
  15858. operatorList.addOp(OPS.paintImageMaskXObject, args);
  15859. if (cacheKey) {
  15860. cache.key = cacheKey;
  15861. cache.fn = OPS.paintImageMaskXObject;
  15862. cache.args = args;
  15863. }
  15864. return;
  15865. }
  15866. var softMask = (dict.get('SMask', 'SM') || false);
  15867. var mask = (dict.get('Mask') || false);
  15868. var SMALL_IMAGE_DIMENSIONS = 200;
  15869. // Inlining small images into the queue as RGB data
  15870. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  15871. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  15872. var imageObj = new PDFImage(this.xref, resources, image,
  15873. inline, null, null);
  15874. // We force the use of RGBA_32BPP images here, because we can't handle
  15875. // any other kind.
  15876. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  15877. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  15878. return;
  15879. }
  15880. // If there is no imageMask, create the PDFImage and a lot
  15881. // of image processing can be done here.
  15882. var uniquePrefix = (this.uniquePrefix || '');
  15883. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  15884. operatorList.addDependency(objId);
  15885. args = [objId, w, h];
  15886. if (!softMask && !mask && image instanceof JpegStream &&
  15887. image.isNativelySupported(this.xref, resources)) {
  15888. // These JPEGs don't need any more processing so we can just send it.
  15889. operatorList.addOp(OPS.paintJpegXObject, args);
  15890. this.handler.send('obj',
  15891. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  15892. return;
  15893. }
  15894. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  15895. then(function(imageObj) {
  15896. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  15897. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  15898. [imgData.data.buffer]);
  15899. }).then(null, function (reason) {
  15900. warn('Unable to decode image: ' + reason);
  15901. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  15902. });
  15903. operatorList.addOp(OPS.paintImageXObject, args);
  15904. if (cacheKey) {
  15905. cache.key = cacheKey;
  15906. cache.fn = OPS.paintImageXObject;
  15907. cache.args = args;
  15908. }
  15909. },
  15910. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  15911. operatorList,
  15912. stateManager) {
  15913. var smaskContent = smask.get('G');
  15914. var smaskOptions = {
  15915. subtype: smask.get('S').name,
  15916. backdrop: smask.get('BC')
  15917. };
  15918. return this.buildFormXObject(resources, smaskContent, smaskOptions,
  15919. operatorList, stateManager.state.clone());
  15920. },
  15921. handleTilingType:
  15922. function PartialEvaluator_handleTilingType(fn, args, resources,
  15923. pattern, patternDict,
  15924. operatorList) {
  15925. // Create an IR of the pattern code.
  15926. var tilingOpList = new OperatorList();
  15927. return this.getOperatorList(pattern,
  15928. (patternDict.get('Resources') || resources), tilingOpList).
  15929. then(function () {
  15930. // Add the dependencies to the parent operator list so they are
  15931. // resolved before sub operator list is executed synchronously.
  15932. operatorList.addDependencies(tilingOpList.dependencies);
  15933. operatorList.addOp(fn, getTilingPatternIR({
  15934. fnArray: tilingOpList.fnArray,
  15935. argsArray: tilingOpList.argsArray
  15936. }, patternDict, args));
  15937. });
  15938. },
  15939. handleSetFont:
  15940. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  15941. operatorList, state) {
  15942. // TODO(mack): Not needed?
  15943. var fontName;
  15944. if (fontArgs) {
  15945. fontArgs = fontArgs.slice();
  15946. fontName = fontArgs[0].name;
  15947. }
  15948. var self = this;
  15949. return this.loadFont(fontName, fontRef, this.xref, resources).then(
  15950. function (translated) {
  15951. if (!translated.font.isType3Font) {
  15952. return translated;
  15953. }
  15954. return translated.loadType3Data(self, resources, operatorList).then(
  15955. function () {
  15956. return translated;
  15957. });
  15958. }).then(function (translated) {
  15959. state.font = translated.font;
  15960. translated.send(self.handler);
  15961. return translated.loadedName;
  15962. });
  15963. },
  15964. handleText: function PartialEvaluator_handleText(chars, state) {
  15965. var font = state.font;
  15966. var glyphs = font.charsToGlyphs(chars);
  15967. var isAddToPathSet = !!(state.textRenderingMode &
  15968. TextRenderingMode.ADD_TO_PATH_FLAG);
  15969. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  15970. var buildPath = function (fontChar) {
  15971. if (!font.renderer.hasBuiltPath(fontChar)) {
  15972. var path = font.renderer.getPathJs(fontChar);
  15973. this.handler.send('commonobj', [
  15974. font.loadedName + '_path_' + fontChar,
  15975. 'FontPath',
  15976. path
  15977. ]);
  15978. }
  15979. }.bind(this);
  15980. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  15981. var glyph = glyphs[i];
  15982. if (glyph === null) {
  15983. continue;
  15984. }
  15985. buildPath(glyph.fontChar);
  15986. // If the glyph has an accent we need to build a path for its
  15987. // fontChar too, otherwise CanvasGraphics_paintChar will fail.
  15988. var accent = glyph.accent;
  15989. if (accent && accent.fontChar) {
  15990. buildPath(accent.fontChar);
  15991. }
  15992. }
  15993. }
  15994. return glyphs;
  15995. },
  15996. setGState: function PartialEvaluator_setGState(resources, gState,
  15997. operatorList, xref,
  15998. stateManager) {
  15999. // TODO(mack): This should be rewritten so that this function returns
  16000. // what should be added to the queue during each iteration
  16001. function setGStateForKey(gStateObj, key, value) {
  16002. switch (key) {
  16003. case 'Type':
  16004. break;
  16005. case 'LW':
  16006. case 'LC':
  16007. case 'LJ':
  16008. case 'ML':
  16009. case 'D':
  16010. case 'RI':
  16011. case 'FL':
  16012. case 'CA':
  16013. case 'ca':
  16014. gStateObj.push([key, value]);
  16015. break;
  16016. case 'Font':
  16017. promise = promise.then(function () {
  16018. return self.handleSetFont(resources, null, value[0],
  16019. operatorList, stateManager.state).
  16020. then(function (loadedName) {
  16021. operatorList.addDependency(loadedName);
  16022. gStateObj.push([key, [loadedName, value[1]]]);
  16023. });
  16024. });
  16025. break;
  16026. case 'BM':
  16027. gStateObj.push([key, value]);
  16028. break;
  16029. case 'SMask':
  16030. if (isName(value) && value.name === 'None') {
  16031. gStateObj.push([key, false]);
  16032. break;
  16033. }
  16034. var dict = xref.fetchIfRef(value);
  16035. if (isDict(dict)) {
  16036. promise = promise.then(function () {
  16037. return self.handleSMask(dict, resources, operatorList,
  16038. stateManager);
  16039. });
  16040. gStateObj.push([key, true]);
  16041. } else {
  16042. warn('Unsupported SMask type');
  16043. }
  16044. break;
  16045. // Only generate info log messages for the following since
  16046. // they are unlikey to have a big impact on the rendering.
  16047. case 'OP':
  16048. case 'op':
  16049. case 'OPM':
  16050. case 'BG':
  16051. case 'BG2':
  16052. case 'UCR':
  16053. case 'UCR2':
  16054. case 'TR':
  16055. case 'TR2':
  16056. case 'HT':
  16057. case 'SM':
  16058. case 'SA':
  16059. case 'AIS':
  16060. case 'TK':
  16061. // TODO implement these operators.
  16062. info('graphic state operator ' + key);
  16063. break;
  16064. default:
  16065. info('Unknown graphic state operator ' + key);
  16066. break;
  16067. }
  16068. }
  16069. // This array holds the converted/processed state data.
  16070. var gStateObj = [];
  16071. var gStateMap = gState.map;
  16072. var self = this;
  16073. var promise = Promise.resolve();
  16074. for (var key in gStateMap) {
  16075. var value = gStateMap[key];
  16076. setGStateForKey(gStateObj, key, value);
  16077. }
  16078. return promise.then(function () {
  16079. operatorList.addOp(OPS.setGState, [gStateObj]);
  16080. });
  16081. },
  16082. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  16083. resources) {
  16084. function errorFont() {
  16085. return Promise.resolve(new TranslatedFont('g_font_error',
  16086. new ErrorFont('Font ' + fontName + ' is not available'), font));
  16087. }
  16088. var fontRef;
  16089. if (font) { // Loading by ref.
  16090. assert(isRef(font));
  16091. fontRef = font;
  16092. } else { // Loading by name.
  16093. var fontRes = resources.get('Font');
  16094. if (fontRes) {
  16095. fontRef = fontRes.getRaw(fontName);
  16096. } else {
  16097. warn('fontRes not available');
  16098. return errorFont();
  16099. }
  16100. }
  16101. if (!fontRef) {
  16102. warn('fontRef not available');
  16103. return errorFont();
  16104. }
  16105. if (this.fontCache.has(fontRef)) {
  16106. return this.fontCache.get(fontRef);
  16107. }
  16108. font = xref.fetchIfRef(fontRef);
  16109. if (!isDict(font)) {
  16110. return errorFont();
  16111. }
  16112. // We are holding font.translated references just for fontRef that are not
  16113. // dictionaries (Dict). See explanation below.
  16114. if (font.translated) {
  16115. return font.translated;
  16116. }
  16117. var fontCapability = createPromiseCapability();
  16118. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  16119. var descriptor = preEvaluatedFont.descriptor;
  16120. var fontID = fontRef.num + '_' + fontRef.gen;
  16121. if (isDict(descriptor)) {
  16122. if (!descriptor.fontAliases) {
  16123. descriptor.fontAliases = Object.create(null);
  16124. }
  16125. var fontAliases = descriptor.fontAliases;
  16126. var hash = preEvaluatedFont.hash;
  16127. if (fontAliases[hash]) {
  16128. var aliasFontRef = fontAliases[hash].aliasRef;
  16129. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  16130. this.fontCache.putAlias(fontRef, aliasFontRef);
  16131. return this.fontCache.get(fontRef);
  16132. }
  16133. }
  16134. if (!fontAliases[hash]) {
  16135. fontAliases[hash] = {
  16136. fontID: Font.getFontID()
  16137. };
  16138. }
  16139. fontAliases[hash].aliasRef = fontRef;
  16140. fontID = fontAliases[hash].fontID;
  16141. }
  16142. // Workaround for bad PDF generators that don't reference fonts
  16143. // properly, i.e. by not using an object identifier.
  16144. // Check if the fontRef is a Dict (as opposed to a standard object),
  16145. // in which case we don't cache the font and instead reference it by
  16146. // fontName in font.loadedName below.
  16147. var fontRefIsDict = isDict(fontRef);
  16148. if (!fontRefIsDict) {
  16149. this.fontCache.put(fontRef, fontCapability.promise);
  16150. }
  16151. // Keep track of each font we translated so the caller can
  16152. // load them asynchronously before calling display on a page.
  16153. font.loadedName = 'g_font_' + (fontRefIsDict ?
  16154. fontName.replace(/\W/g, '') : fontID);
  16155. font.translated = fontCapability.promise;
  16156. // TODO move promises into translate font
  16157. var translatedPromise;
  16158. try {
  16159. translatedPromise = Promise.resolve(
  16160. this.translateFont(preEvaluatedFont, xref));
  16161. } catch (e) {
  16162. translatedPromise = Promise.reject(e);
  16163. }
  16164. translatedPromise.then(function (translatedFont) {
  16165. if (translatedFont.fontType !== undefined) {
  16166. var xrefFontStats = xref.stats.fontTypes;
  16167. xrefFontStats[translatedFont.fontType] = true;
  16168. }
  16169. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16170. translatedFont, font));
  16171. }, function (reason) {
  16172. // TODO fontCapability.reject?
  16173. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  16174. try {
  16175. // error, but it's still nice to have font type reported
  16176. var descriptor = preEvaluatedFont.descriptor;
  16177. var fontFile3 = descriptor && descriptor.get('FontFile3');
  16178. var subtype = fontFile3 && fontFile3.get('Subtype');
  16179. var fontType = getFontType(preEvaluatedFont.type,
  16180. subtype && subtype.name);
  16181. var xrefFontStats = xref.stats.fontTypes;
  16182. xrefFontStats[fontType] = true;
  16183. } catch (ex) { }
  16184. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16185. new ErrorFont(reason instanceof Error ? reason.message : reason),
  16186. font));
  16187. });
  16188. return fontCapability.promise;
  16189. },
  16190. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  16191. var lastIndex = operatorList.length - 1;
  16192. if (lastIndex < 0 ||
  16193. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  16194. operatorList.addOp(OPS.constructPath, [[fn], args]);
  16195. } else {
  16196. var opArgs = operatorList.argsArray[lastIndex];
  16197. opArgs[0].push(fn);
  16198. Array.prototype.push.apply(opArgs[1], args);
  16199. }
  16200. },
  16201. handleColorN: function PartialEvaluator_handleColorN(operatorList, fn, args,
  16202. cs, patterns, resources, xref) {
  16203. // compile tiling patterns
  16204. var patternName = args[args.length - 1];
  16205. // SCN/scn applies patterns along with normal colors
  16206. var pattern;
  16207. if (isName(patternName) &&
  16208. (pattern = patterns.get(patternName.name))) {
  16209. var dict = (isStream(pattern) ? pattern.dict : pattern);
  16210. var typeNum = dict.get('PatternType');
  16211. if (typeNum === TILING_PATTERN) {
  16212. var color = cs.base ? cs.base.getRgb(args, 0) : null;
  16213. return this.handleTilingType(fn, color, resources, pattern,
  16214. dict, operatorList);
  16215. } else if (typeNum === SHADING_PATTERN) {
  16216. var shading = dict.get('Shading');
  16217. var matrix = dict.get('Matrix');
  16218. pattern = Pattern.parseShading(shading, matrix, xref, resources);
  16219. operatorList.addOp(fn, pattern.getIR());
  16220. return Promise.resolve();
  16221. } else {
  16222. return Promise.reject('Unknown PatternType: ' + typeNum);
  16223. }
  16224. }
  16225. // TODO shall we fail here?
  16226. operatorList.addOp(fn, args);
  16227. return Promise.resolve();
  16228. },
  16229. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  16230. resources,
  16231. operatorList,
  16232. initialState) {
  16233. var self = this;
  16234. var xref = this.xref;
  16235. var imageCache = {};
  16236. assert(operatorList);
  16237. resources = (resources || Dict.empty);
  16238. var xobjs = (resources.get('XObject') || Dict.empty);
  16239. var patterns = (resources.get('Pattern') || Dict.empty);
  16240. var stateManager = new StateManager(initialState || new EvalState());
  16241. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16242. var timeSlotManager = new TimeSlotManager();
  16243. return new Promise(function next(resolve, reject) {
  16244. timeSlotManager.reset();
  16245. var stop, operation = {}, i, ii, cs;
  16246. while (!(stop = timeSlotManager.check()) &&
  16247. preprocessor.read(operation)) {
  16248. var args = operation.args;
  16249. var fn = operation.fn;
  16250. switch (fn | 0) {
  16251. case OPS.paintXObject:
  16252. if (args[0].code) {
  16253. break;
  16254. }
  16255. // eagerly compile XForm objects
  16256. var name = args[0].name;
  16257. if (imageCache.key === name) {
  16258. operatorList.addOp(imageCache.fn, imageCache.args);
  16259. args = null;
  16260. continue;
  16261. }
  16262. var xobj = xobjs.get(name);
  16263. if (xobj) {
  16264. assert(isStream(xobj), 'XObject should be a stream');
  16265. var type = xobj.dict.get('Subtype');
  16266. assert(isName(type),
  16267. 'XObject should have a Name subtype');
  16268. if (type.name === 'Form') {
  16269. stateManager.save();
  16270. return self.buildFormXObject(resources, xobj, null,
  16271. operatorList,
  16272. stateManager.state.clone()).
  16273. then(function () {
  16274. stateManager.restore();
  16275. next(resolve, reject);
  16276. }, reject);
  16277. } else if (type.name === 'Image') {
  16278. self.buildPaintImageXObject(resources, xobj, false,
  16279. operatorList, name, imageCache);
  16280. args = null;
  16281. continue;
  16282. } else if (type.name === 'PS') {
  16283. // PostScript XObjects are unused when viewing documents.
  16284. // See section 4.7.1 of Adobe's PDF reference.
  16285. info('Ignored XObject subtype PS');
  16286. continue;
  16287. } else {
  16288. error('Unhandled XObject subtype ' + type.name);
  16289. }
  16290. }
  16291. break;
  16292. case OPS.setFont:
  16293. var fontSize = args[1];
  16294. // eagerly collect all fonts
  16295. return self.handleSetFont(resources, args, null,
  16296. operatorList, stateManager.state).
  16297. then(function (loadedName) {
  16298. operatorList.addDependency(loadedName);
  16299. operatorList.addOp(OPS.setFont, [loadedName, fontSize]);
  16300. next(resolve, reject);
  16301. }, reject);
  16302. case OPS.endInlineImage:
  16303. var cacheKey = args[0].cacheKey;
  16304. if (cacheKey && imageCache.key === cacheKey) {
  16305. operatorList.addOp(imageCache.fn, imageCache.args);
  16306. args = null;
  16307. continue;
  16308. }
  16309. self.buildPaintImageXObject(resources, args[0], true,
  16310. operatorList, cacheKey, imageCache);
  16311. args = null;
  16312. continue;
  16313. case OPS.showText:
  16314. args[0] = self.handleText(args[0], stateManager.state);
  16315. break;
  16316. case OPS.showSpacedText:
  16317. var arr = args[0];
  16318. var combinedGlyphs = [];
  16319. var arrLength = arr.length;
  16320. for (i = 0; i < arrLength; ++i) {
  16321. var arrItem = arr[i];
  16322. if (isString(arrItem)) {
  16323. Array.prototype.push.apply(combinedGlyphs,
  16324. self.handleText(arrItem, stateManager.state));
  16325. } else if (isNum(arrItem)) {
  16326. combinedGlyphs.push(arrItem);
  16327. }
  16328. }
  16329. args[0] = combinedGlyphs;
  16330. fn = OPS.showText;
  16331. break;
  16332. case OPS.nextLineShowText:
  16333. operatorList.addOp(OPS.nextLine);
  16334. args[0] = self.handleText(args[0], stateManager.state);
  16335. fn = OPS.showText;
  16336. break;
  16337. case OPS.nextLineSetSpacingShowText:
  16338. operatorList.addOp(OPS.nextLine);
  16339. operatorList.addOp(OPS.setWordSpacing, [args.shift()]);
  16340. operatorList.addOp(OPS.setCharSpacing, [args.shift()]);
  16341. args[0] = self.handleText(args[0], stateManager.state);
  16342. fn = OPS.showText;
  16343. break;
  16344. case OPS.setTextRenderingMode:
  16345. stateManager.state.textRenderingMode = args[0];
  16346. break;
  16347. case OPS.setFillColorSpace:
  16348. stateManager.state.fillColorSpace =
  16349. ColorSpace.parse(args[0], xref, resources);
  16350. continue;
  16351. case OPS.setStrokeColorSpace:
  16352. stateManager.state.strokeColorSpace =
  16353. ColorSpace.parse(args[0], xref, resources);
  16354. continue;
  16355. case OPS.setFillColor:
  16356. cs = stateManager.state.fillColorSpace;
  16357. args = cs.getRgb(args, 0);
  16358. fn = OPS.setFillRGBColor;
  16359. break;
  16360. case OPS.setStrokeColor:
  16361. cs = stateManager.state.strokeColorSpace;
  16362. args = cs.getRgb(args, 0);
  16363. fn = OPS.setStrokeRGBColor;
  16364. break;
  16365. case OPS.setFillGray:
  16366. stateManager.state.fillColorSpace = ColorSpace.singletons.gray;
  16367. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16368. fn = OPS.setFillRGBColor;
  16369. break;
  16370. case OPS.setStrokeGray:
  16371. stateManager.state.strokeColorSpace = ColorSpace.singletons.gray;
  16372. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16373. fn = OPS.setStrokeRGBColor;
  16374. break;
  16375. case OPS.setFillCMYKColor:
  16376. stateManager.state.fillColorSpace = ColorSpace.singletons.cmyk;
  16377. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16378. fn = OPS.setFillRGBColor;
  16379. break;
  16380. case OPS.setStrokeCMYKColor:
  16381. stateManager.state.strokeColorSpace = ColorSpace.singletons.cmyk;
  16382. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16383. fn = OPS.setStrokeRGBColor;
  16384. break;
  16385. case OPS.setFillRGBColor:
  16386. stateManager.state.fillColorSpace = ColorSpace.singletons.rgb;
  16387. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16388. break;
  16389. case OPS.setStrokeRGBColor:
  16390. stateManager.state.strokeColorSpace = ColorSpace.singletons.rgb;
  16391. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16392. break;
  16393. case OPS.setFillColorN:
  16394. cs = stateManager.state.fillColorSpace;
  16395. if (cs.name === 'Pattern') {
  16396. return self.handleColorN(operatorList, OPS.setFillColorN,
  16397. args, cs, patterns, resources, xref).then(function() {
  16398. next(resolve, reject);
  16399. }, reject);
  16400. }
  16401. args = cs.getRgb(args, 0);
  16402. fn = OPS.setFillRGBColor;
  16403. break;
  16404. case OPS.setStrokeColorN:
  16405. cs = stateManager.state.strokeColorSpace;
  16406. if (cs.name === 'Pattern') {
  16407. return self.handleColorN(operatorList, OPS.setStrokeColorN,
  16408. args, cs, patterns, resources, xref).then(function() {
  16409. next(resolve, reject);
  16410. }, reject);
  16411. }
  16412. args = cs.getRgb(args, 0);
  16413. fn = OPS.setStrokeRGBColor;
  16414. break;
  16415. case OPS.shadingFill:
  16416. var shadingRes = resources.get('Shading');
  16417. if (!shadingRes) {
  16418. error('No shading resource found');
  16419. }
  16420. var shading = shadingRes.get(args[0].name);
  16421. if (!shading) {
  16422. error('No shading object found');
  16423. }
  16424. var shadingFill = Pattern.parseShading(shading, null, xref,
  16425. resources);
  16426. var patternIR = shadingFill.getIR();
  16427. args = [patternIR];
  16428. fn = OPS.shadingFill;
  16429. break;
  16430. case OPS.setGState:
  16431. var dictName = args[0];
  16432. var extGState = resources.get('ExtGState');
  16433. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16434. break;
  16435. }
  16436. var gState = extGState.get(dictName.name);
  16437. return self.setGState(resources, gState, operatorList, xref,
  16438. stateManager).then(function() {
  16439. next(resolve, reject);
  16440. }, reject);
  16441. case OPS.moveTo:
  16442. case OPS.lineTo:
  16443. case OPS.curveTo:
  16444. case OPS.curveTo2:
  16445. case OPS.curveTo3:
  16446. case OPS.closePath:
  16447. self.buildPath(operatorList, fn, args);
  16448. continue;
  16449. case OPS.rectangle:
  16450. self.buildPath(operatorList, fn, args);
  16451. continue;
  16452. }
  16453. operatorList.addOp(fn, args);
  16454. }
  16455. if (stop) {
  16456. deferred.then(function () {
  16457. next(resolve, reject);
  16458. });
  16459. return;
  16460. }
  16461. // Some PDFs don't close all restores inside object/form.
  16462. // Closing those for them.
  16463. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  16464. operatorList.addOp(OPS.restore, []);
  16465. }
  16466. resolve();
  16467. });
  16468. },
  16469. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  16470. stateManager) {
  16471. stateManager = (stateManager || new StateManager(new TextState()));
  16472. var textContent = {
  16473. items: [],
  16474. styles: Object.create(null)
  16475. };
  16476. var bidiTexts = textContent.items;
  16477. var SPACE_FACTOR = 0.35;
  16478. var MULTI_SPACE_FACTOR = 1.5;
  16479. var self = this;
  16480. var xref = this.xref;
  16481. resources = (xref.fetchIfRef(resources) || Dict.empty);
  16482. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  16483. var xobjs = null;
  16484. var xobjsCache = {};
  16485. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16486. var textState;
  16487. function newTextChunk() {
  16488. var font = textState.font;
  16489. if (!(font.loadedName in textContent.styles)) {
  16490. textContent.styles[font.loadedName] = {
  16491. fontFamily: font.fallbackName,
  16492. ascent: font.ascent,
  16493. descent: font.descent,
  16494. vertical: font.vertical
  16495. };
  16496. }
  16497. return {
  16498. // |str| is initially an array which we push individual chars to, and
  16499. // then runBidi() overwrites it with the final string.
  16500. str: [],
  16501. dir: null,
  16502. width: 0,
  16503. height: 0,
  16504. transform: null,
  16505. fontName: font.loadedName
  16506. };
  16507. }
  16508. function runBidi(textChunk) {
  16509. var str = textChunk.str.join('');
  16510. var bidiResult = PDFJS.bidi(str, -1, textState.font.vertical);
  16511. textChunk.str = bidiResult.str;
  16512. textChunk.dir = bidiResult.dir;
  16513. return textChunk;
  16514. }
  16515. function handleSetFont(fontName, fontRef) {
  16516. return self.loadFont(fontName, fontRef, xref, resources).
  16517. then(function (translated) {
  16518. textState.font = translated.font;
  16519. textState.fontMatrix = translated.font.fontMatrix ||
  16520. FONT_IDENTITY_MATRIX;
  16521. });
  16522. }
  16523. function buildTextGeometry(chars, textChunk) {
  16524. var font = textState.font;
  16525. textChunk = textChunk || newTextChunk();
  16526. if (!textChunk.transform) {
  16527. // 9.4.4 Text Space Details
  16528. var tsm = [textState.fontSize * textState.textHScale, 0,
  16529. 0, textState.fontSize,
  16530. 0, textState.textRise];
  16531. var trm = textChunk.transform = Util.transform(textState.ctm,
  16532. Util.transform(textState.textMatrix, tsm));
  16533. if (!font.vertical) {
  16534. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  16535. } else {
  16536. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  16537. }
  16538. }
  16539. var width = 0;
  16540. var height = 0;
  16541. var glyphs = font.charsToGlyphs(chars);
  16542. var defaultVMetrics = font.defaultVMetrics;
  16543. for (var i = 0; i < glyphs.length; i++) {
  16544. var glyph = glyphs[i];
  16545. if (!glyph) { // Previous glyph was a space.
  16546. width += textState.wordSpacing * textState.textHScale;
  16547. continue;
  16548. }
  16549. var vMetricX = null;
  16550. var vMetricY = null;
  16551. var glyphWidth = null;
  16552. if (font.vertical) {
  16553. if (glyph.vmetric) {
  16554. glyphWidth = glyph.vmetric[0];
  16555. vMetricX = glyph.vmetric[1];
  16556. vMetricY = glyph.vmetric[2];
  16557. } else {
  16558. glyphWidth = glyph.width;
  16559. vMetricX = glyph.width * 0.5;
  16560. vMetricY = defaultVMetrics[2];
  16561. }
  16562. } else {
  16563. glyphWidth = glyph.width;
  16564. }
  16565. var glyphUnicode = glyph.unicode;
  16566. if (NormalizedUnicodes[glyphUnicode] !== undefined) {
  16567. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  16568. }
  16569. glyphUnicode = reverseIfRtl(glyphUnicode);
  16570. // The following will calculate the x and y of the individual glyphs.
  16571. // if (font.vertical) {
  16572. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  16573. // textState.fontMatrix[0];
  16574. // tsm[5] -= vMetricY * textState.fontSize *
  16575. // textState.fontMatrix[0];
  16576. // }
  16577. // var trm = Util.transform(textState.textMatrix, tsm);
  16578. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  16579. // var x = pt[0];
  16580. // var y = pt[1];
  16581. var tx = 0;
  16582. var ty = 0;
  16583. if (!font.vertical) {
  16584. var w0 = glyphWidth * textState.fontMatrix[0];
  16585. tx = (w0 * textState.fontSize + textState.charSpacing) *
  16586. textState.textHScale;
  16587. width += tx;
  16588. } else {
  16589. var w1 = glyphWidth * textState.fontMatrix[0];
  16590. ty = w1 * textState.fontSize + textState.charSpacing;
  16591. height += ty;
  16592. }
  16593. textState.translateTextMatrix(tx, ty);
  16594. textChunk.str.push(glyphUnicode);
  16595. }
  16596. var a = textState.textLineMatrix[0];
  16597. var b = textState.textLineMatrix[1];
  16598. var scaleLineX = Math.sqrt(a * a + b * b);
  16599. a = textState.ctm[0];
  16600. b = textState.ctm[1];
  16601. var scaleCtmX = Math.sqrt(a * a + b * b);
  16602. if (!font.vertical) {
  16603. textChunk.width += width * scaleCtmX * scaleLineX;
  16604. } else {
  16605. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  16606. }
  16607. return textChunk;
  16608. }
  16609. var timeSlotManager = new TimeSlotManager();
  16610. return new Promise(function next(resolve, reject) {
  16611. timeSlotManager.reset();
  16612. var stop, operation = {};
  16613. while (!(stop = timeSlotManager.check()) &&
  16614. (preprocessor.read(operation))) {
  16615. textState = stateManager.state;
  16616. var fn = operation.fn;
  16617. var args = operation.args;
  16618. switch (fn | 0) {
  16619. case OPS.setFont:
  16620. textState.fontSize = args[1];
  16621. return handleSetFont(args[0].name).then(function() {
  16622. next(resolve, reject);
  16623. }, reject);
  16624. case OPS.setTextRise:
  16625. textState.textRise = args[0];
  16626. break;
  16627. case OPS.setHScale:
  16628. textState.textHScale = args[0] / 100;
  16629. break;
  16630. case OPS.setLeading:
  16631. textState.leading = args[0];
  16632. break;
  16633. case OPS.moveText:
  16634. textState.translateTextLineMatrix(args[0], args[1]);
  16635. textState.textMatrix = textState.textLineMatrix.slice();
  16636. break;
  16637. case OPS.setLeadingMoveText:
  16638. textState.leading = -args[1];
  16639. textState.translateTextLineMatrix(args[0], args[1]);
  16640. textState.textMatrix = textState.textLineMatrix.slice();
  16641. break;
  16642. case OPS.nextLine:
  16643. textState.carriageReturn();
  16644. break;
  16645. case OPS.setTextMatrix:
  16646. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  16647. args[4], args[5]);
  16648. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  16649. args[4], args[5]);
  16650. break;
  16651. case OPS.setCharSpacing:
  16652. textState.charSpacing = args[0];
  16653. break;
  16654. case OPS.setWordSpacing:
  16655. textState.wordSpacing = args[0];
  16656. break;
  16657. case OPS.beginText:
  16658. textState.textMatrix = IDENTITY_MATRIX.slice();
  16659. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  16660. break;
  16661. case OPS.showSpacedText:
  16662. var items = args[0];
  16663. var textChunk = newTextChunk();
  16664. var offset;
  16665. for (var j = 0, jj = items.length; j < jj; j++) {
  16666. if (typeof items[j] === 'string') {
  16667. buildTextGeometry(items[j], textChunk);
  16668. } else {
  16669. var val = items[j] / 1000;
  16670. if (!textState.font.vertical) {
  16671. offset = -val * textState.fontSize * textState.textHScale *
  16672. textState.textMatrix[0];
  16673. textState.translateTextMatrix(offset, 0);
  16674. textChunk.width += offset;
  16675. } else {
  16676. offset = -val * textState.fontSize *
  16677. textState.textMatrix[3];
  16678. textState.translateTextMatrix(0, offset);
  16679. textChunk.height += offset;
  16680. }
  16681. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  16682. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  16683. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  16684. fakeSpaces = Math.round(fakeSpaces);
  16685. while (fakeSpaces--) {
  16686. textChunk.str.push(' ');
  16687. }
  16688. } else if (fakeSpaces > SPACE_FACTOR) {
  16689. textChunk.str.push(' ');
  16690. }
  16691. }
  16692. }
  16693. }
  16694. bidiTexts.push(runBidi(textChunk));
  16695. break;
  16696. case OPS.showText:
  16697. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16698. break;
  16699. case OPS.nextLineShowText:
  16700. textState.carriageReturn();
  16701. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16702. break;
  16703. case OPS.nextLineSetSpacingShowText:
  16704. textState.wordSpacing = args[0];
  16705. textState.charSpacing = args[1];
  16706. textState.carriageReturn();
  16707. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  16708. break;
  16709. case OPS.paintXObject:
  16710. if (args[0].code) {
  16711. break;
  16712. }
  16713. if (!xobjs) {
  16714. xobjs = (resources.get('XObject') || Dict.empty);
  16715. }
  16716. var name = args[0].name;
  16717. if (xobjsCache.key === name) {
  16718. if (xobjsCache.texts) {
  16719. Util.appendToArray(bidiTexts, xobjsCache.texts.items);
  16720. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  16721. }
  16722. break;
  16723. }
  16724. var xobj = xobjs.get(name);
  16725. if (!xobj) {
  16726. break;
  16727. }
  16728. assert(isStream(xobj), 'XObject should be a stream');
  16729. var type = xobj.dict.get('Subtype');
  16730. assert(isName(type),
  16731. 'XObject should have a Name subtype');
  16732. if ('Form' !== type.name) {
  16733. xobjsCache.key = name;
  16734. xobjsCache.texts = null;
  16735. break;
  16736. }
  16737. stateManager.save();
  16738. var matrix = xobj.dict.get('Matrix');
  16739. if (isArray(matrix) && matrix.length === 6) {
  16740. stateManager.transform(matrix);
  16741. }
  16742. return self.getTextContent(xobj,
  16743. xobj.dict.get('Resources') || resources, stateManager).
  16744. then(function (formTextContent) {
  16745. Util.appendToArray(bidiTexts, formTextContent.items);
  16746. Util.extendObj(textContent.styles, formTextContent.styles);
  16747. stateManager.restore();
  16748. xobjsCache.key = name;
  16749. xobjsCache.texts = formTextContent;
  16750. next(resolve, reject);
  16751. }, reject);
  16752. case OPS.setGState:
  16753. var dictName = args[0];
  16754. var extGState = resources.get('ExtGState');
  16755. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16756. break;
  16757. }
  16758. var gsStateMap = extGState.get(dictName.name);
  16759. var gsStateFont = null;
  16760. for (var key in gsStateMap) {
  16761. if (key === 'Font') {
  16762. assert(!gsStateFont);
  16763. gsStateFont = gsStateMap[key];
  16764. }
  16765. }
  16766. if (gsStateFont) {
  16767. textState.fontSize = gsStateFont[1];
  16768. return handleSetFont(gsStateFont[0]).then(function() {
  16769. next(resolve, reject);
  16770. }, reject);
  16771. }
  16772. break;
  16773. } // switch
  16774. } // while
  16775. if (stop) {
  16776. deferred.then(function () {
  16777. next(resolve, reject);
  16778. });
  16779. return;
  16780. }
  16781. resolve(textContent);
  16782. });
  16783. },
  16784. extractDataStructures: function
  16785. partialEvaluatorExtractDataStructures(dict, baseDict,
  16786. xref, properties) {
  16787. // 9.10.2
  16788. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  16789. if (toUnicode) {
  16790. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  16791. }
  16792. if (properties.composite) {
  16793. // CIDSystemInfo helps to match CID to glyphs
  16794. var cidSystemInfo = dict.get('CIDSystemInfo');
  16795. if (isDict(cidSystemInfo)) {
  16796. properties.cidSystemInfo = {
  16797. registry: cidSystemInfo.get('Registry'),
  16798. ordering: cidSystemInfo.get('Ordering'),
  16799. supplement: cidSystemInfo.get('Supplement')
  16800. };
  16801. }
  16802. var cidToGidMap = dict.get('CIDToGIDMap');
  16803. if (isStream(cidToGidMap)) {
  16804. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  16805. }
  16806. }
  16807. // Based on 9.6.6 of the spec the encoding can come from multiple places
  16808. // and depends on the font type. The base encoding and differences are
  16809. // read here, but the encoding that is actually used is chosen during
  16810. // glyph mapping in the font.
  16811. // TODO: Loading the built in encoding in the font would allow the
  16812. // differences to be merged in here not require us to hold on to it.
  16813. var differences = [];
  16814. var baseEncodingName = null;
  16815. var encoding;
  16816. if (dict.has('Encoding')) {
  16817. encoding = dict.get('Encoding');
  16818. if (isDict(encoding)) {
  16819. baseEncodingName = encoding.get('BaseEncoding');
  16820. baseEncodingName = (isName(baseEncodingName) ?
  16821. baseEncodingName.name : null);
  16822. // Load the differences between the base and original
  16823. if (encoding.has('Differences')) {
  16824. var diffEncoding = encoding.get('Differences');
  16825. var index = 0;
  16826. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  16827. var data = diffEncoding[j];
  16828. if (isNum(data)) {
  16829. index = data;
  16830. } else {
  16831. differences[index++] = data.name;
  16832. }
  16833. }
  16834. }
  16835. } else if (isName(encoding)) {
  16836. baseEncodingName = encoding.name;
  16837. } else {
  16838. error('Encoding is not a Name nor a Dict');
  16839. }
  16840. // According to table 114 if the encoding is a named encoding it must be
  16841. // one of these predefined encodings.
  16842. if ((baseEncodingName !== 'MacRomanEncoding' &&
  16843. baseEncodingName !== 'MacExpertEncoding' &&
  16844. baseEncodingName !== 'WinAnsiEncoding')) {
  16845. baseEncodingName = null;
  16846. }
  16847. }
  16848. if (baseEncodingName) {
  16849. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  16850. } else {
  16851. encoding = (properties.type === 'TrueType' ?
  16852. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  16853. // The Symbolic attribute can be misused for regular fonts
  16854. // Heuristic: we have to check if the font is a standard one also
  16855. if (!!(properties.flags & FontFlags.Symbolic)) {
  16856. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  16857. Encodings.SymbolSetEncoding :
  16858. Encodings.MacRomanEncoding);
  16859. }
  16860. properties.defaultEncoding = encoding;
  16861. }
  16862. properties.differences = differences;
  16863. properties.baseEncodingName = baseEncodingName;
  16864. properties.dict = dict;
  16865. },
  16866. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  16867. var cmapObj = toUnicode;
  16868. if (isName(cmapObj)) {
  16869. return CMapFactory.create(cmapObj).map;
  16870. } else if (isStream(cmapObj)) {
  16871. var cmap = CMapFactory.create(cmapObj).map;
  16872. // Convert UTF-16BE
  16873. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  16874. // to iterate over all keys.
  16875. cmap.forEach(function(token, i) {
  16876. var str = [];
  16877. for (var k = 0; k < token.length; k += 2) {
  16878. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  16879. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  16880. str.push(w1);
  16881. continue;
  16882. }
  16883. k += 2;
  16884. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  16885. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  16886. }
  16887. cmap[i] = String.fromCharCode.apply(String, str);
  16888. });
  16889. return cmap;
  16890. }
  16891. return null;
  16892. },
  16893. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  16894. // Extract the encoding from the CIDToGIDMap
  16895. var glyphsData = cidToGidStream.getBytes();
  16896. // Set encoding 0 to later verify the font has an encoding
  16897. var result = [];
  16898. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  16899. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  16900. if (glyphID === 0) {
  16901. continue;
  16902. }
  16903. var code = j >> 1;
  16904. result[code] = glyphID;
  16905. }
  16906. return result;
  16907. },
  16908. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  16909. descriptor,
  16910. properties) {
  16911. var glyphsWidths = [];
  16912. var defaultWidth = 0;
  16913. var glyphsVMetrics = [];
  16914. var defaultVMetrics;
  16915. var i, ii, j, jj, start, code, widths;
  16916. if (properties.composite) {
  16917. defaultWidth = dict.get('DW') || 1000;
  16918. widths = dict.get('W');
  16919. if (widths) {
  16920. for (i = 0, ii = widths.length; i < ii; i++) {
  16921. start = widths[i++];
  16922. code = xref.fetchIfRef(widths[i]);
  16923. if (isArray(code)) {
  16924. for (j = 0, jj = code.length; j < jj; j++) {
  16925. glyphsWidths[start++] = code[j];
  16926. }
  16927. } else {
  16928. var width = widths[++i];
  16929. for (j = start; j <= code; j++) {
  16930. glyphsWidths[j] = width;
  16931. }
  16932. }
  16933. }
  16934. }
  16935. if (properties.vertical) {
  16936. var vmetrics = (dict.get('DW2') || [880, -1000]);
  16937. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  16938. vmetrics = dict.get('W2');
  16939. if (vmetrics) {
  16940. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  16941. start = vmetrics[i++];
  16942. code = xref.fetchIfRef(vmetrics[i]);
  16943. if (isArray(code)) {
  16944. for (j = 0, jj = code.length; j < jj; j++) {
  16945. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  16946. }
  16947. } else {
  16948. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  16949. for (j = start; j <= code; j++) {
  16950. glyphsVMetrics[j] = vmetric;
  16951. }
  16952. }
  16953. }
  16954. }
  16955. }
  16956. } else {
  16957. var firstChar = properties.firstChar;
  16958. widths = dict.get('Widths');
  16959. if (widths) {
  16960. j = firstChar;
  16961. for (i = 0, ii = widths.length; i < ii; i++) {
  16962. glyphsWidths[j++] = widths[i];
  16963. }
  16964. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  16965. } else {
  16966. // Trying get the BaseFont metrics (see comment above).
  16967. var baseFontName = dict.get('BaseFont');
  16968. if (isName(baseFontName)) {
  16969. var metrics = this.getBaseFontMetrics(baseFontName.name);
  16970. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  16971. properties);
  16972. defaultWidth = metrics.defaultWidth;
  16973. }
  16974. }
  16975. }
  16976. // Heuristic: detection of monospace font by checking all non-zero widths
  16977. var isMonospace = true;
  16978. var firstWidth = defaultWidth;
  16979. for (var glyph in glyphsWidths) {
  16980. var glyphWidth = glyphsWidths[glyph];
  16981. if (!glyphWidth) {
  16982. continue;
  16983. }
  16984. if (!firstWidth) {
  16985. firstWidth = glyphWidth;
  16986. continue;
  16987. }
  16988. if (firstWidth != glyphWidth) {
  16989. isMonospace = false;
  16990. break;
  16991. }
  16992. }
  16993. if (isMonospace) {
  16994. properties.flags |= FontFlags.FixedPitch;
  16995. }
  16996. properties.defaultWidth = defaultWidth;
  16997. properties.widths = glyphsWidths;
  16998. properties.defaultVMetrics = defaultVMetrics;
  16999. properties.vmetrics = glyphsVMetrics;
  17000. },
  17001. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  17002. // Simulating descriptor flags attribute
  17003. var fontNameWoStyle = baseFontName.split('-')[0];
  17004. return (fontNameWoStyle in serifFonts) ||
  17005. (fontNameWoStyle.search(/serif/gi) !== -1);
  17006. },
  17007. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  17008. var defaultWidth = 0;
  17009. var widths = [];
  17010. var monospace = false;
  17011. var lookupName = (stdFontMap[name] || name);
  17012. if (!(lookupName in Metrics)) {
  17013. // Use default fonts for looking up font metrics if the passed
  17014. // font is not a base font
  17015. if (this.isSerifFont(name)) {
  17016. lookupName = 'Times-Roman';
  17017. } else {
  17018. lookupName = 'Helvetica';
  17019. }
  17020. }
  17021. var glyphWidths = Metrics[lookupName];
  17022. if (isNum(glyphWidths)) {
  17023. defaultWidth = glyphWidths;
  17024. monospace = true;
  17025. } else {
  17026. widths = glyphWidths;
  17027. }
  17028. return {
  17029. defaultWidth: defaultWidth,
  17030. monospace: monospace,
  17031. widths: widths
  17032. };
  17033. },
  17034. buildCharCodeToWidth:
  17035. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  17036. properties) {
  17037. var widths = Object.create(null);
  17038. var differences = properties.differences;
  17039. var encoding = properties.defaultEncoding;
  17040. for (var charCode = 0; charCode < 256; charCode++) {
  17041. if (charCode in differences &&
  17042. widthsByGlyphName[differences[charCode]]) {
  17043. widths[charCode] = widthsByGlyphName[differences[charCode]];
  17044. continue;
  17045. }
  17046. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  17047. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  17048. continue;
  17049. }
  17050. }
  17051. return widths;
  17052. },
  17053. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  17054. var baseDict = dict;
  17055. var type = dict.get('Subtype');
  17056. assert(isName(type), 'invalid font Subtype');
  17057. var composite = false;
  17058. var uint8array;
  17059. if (type.name === 'Type0') {
  17060. // If font is a composite
  17061. // - get the descendant font
  17062. // - set the type according to the descendant font
  17063. // - get the FontDescriptor from the descendant font
  17064. var df = dict.get('DescendantFonts');
  17065. if (!df) {
  17066. error('Descendant fonts are not specified');
  17067. }
  17068. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  17069. type = dict.get('Subtype');
  17070. assert(isName(type), 'invalid font Subtype');
  17071. composite = true;
  17072. }
  17073. var descriptor = dict.get('FontDescriptor');
  17074. if (descriptor) {
  17075. var hash = new MurmurHash3_64();
  17076. var encoding = baseDict.getRaw('Encoding');
  17077. if (isName(encoding)) {
  17078. hash.update(encoding.name);
  17079. } else if (isRef(encoding)) {
  17080. hash.update(encoding.num + '_' + encoding.gen);
  17081. }
  17082. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  17083. if (isStream(toUnicode)) {
  17084. var stream = toUnicode.str || toUnicode;
  17085. uint8array = stream.buffer ?
  17086. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  17087. new Uint8Array(stream.bytes.buffer,
  17088. stream.start, stream.end - stream.start);
  17089. hash.update(uint8array);
  17090. } else if (isName(toUnicode)) {
  17091. hash.update(toUnicode.name);
  17092. }
  17093. var widths = dict.get('Widths') || baseDict.get('Widths');
  17094. if (widths) {
  17095. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  17096. hash.update(uint8array);
  17097. }
  17098. }
  17099. return {
  17100. descriptor: descriptor,
  17101. dict: dict,
  17102. baseDict: baseDict,
  17103. composite: composite,
  17104. type: type.name,
  17105. hash: hash ? hash.hexdigest() : ''
  17106. };
  17107. },
  17108. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  17109. xref) {
  17110. var baseDict = preEvaluatedFont.baseDict;
  17111. var dict = preEvaluatedFont.dict;
  17112. var composite = preEvaluatedFont.composite;
  17113. var descriptor = preEvaluatedFont.descriptor;
  17114. var type = preEvaluatedFont.type;
  17115. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  17116. var properties;
  17117. if (!descriptor) {
  17118. if (type === 'Type3') {
  17119. // FontDescriptor is only required for Type3 fonts when the document
  17120. // is a tagged pdf. Create a barbebones one to get by.
  17121. descriptor = new Dict(null);
  17122. descriptor.set('FontName', Name.get(type));
  17123. } else {
  17124. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  17125. // FontDescriptor was not required.
  17126. // This case is here for compatibility.
  17127. var baseFontName = dict.get('BaseFont');
  17128. if (!isName(baseFontName)) {
  17129. error('Base font is not specified');
  17130. }
  17131. // Using base font name as a font name.
  17132. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  17133. var metrics = this.getBaseFontMetrics(baseFontName);
  17134. // Simulating descriptor flags attribute
  17135. var fontNameWoStyle = baseFontName.split('-')[0];
  17136. var flags =
  17137. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  17138. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  17139. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  17140. FontFlags.Nonsymbolic);
  17141. properties = {
  17142. type: type,
  17143. name: baseFontName,
  17144. widths: metrics.widths,
  17145. defaultWidth: metrics.defaultWidth,
  17146. flags: flags,
  17147. firstChar: 0,
  17148. lastChar: maxCharIndex
  17149. };
  17150. this.extractDataStructures(dict, dict, xref, properties);
  17151. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  17152. properties);
  17153. return new Font(baseFontName, null, properties);
  17154. }
  17155. }
  17156. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  17157. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  17158. // to ignore this rule when a variant of a standart font is used.
  17159. // TODO Fill the width array depending on which of the base font this is
  17160. // a variant.
  17161. var firstChar = (dict.get('FirstChar') || 0);
  17162. var lastChar = (dict.get('LastChar') || maxCharIndex);
  17163. var fontName = descriptor.get('FontName');
  17164. var baseFont = dict.get('BaseFont');
  17165. // Some bad PDFs have a string as the font name.
  17166. if (isString(fontName)) {
  17167. fontName = Name.get(fontName);
  17168. }
  17169. if (isString(baseFont)) {
  17170. baseFont = Name.get(baseFont);
  17171. }
  17172. if (type !== 'Type3') {
  17173. var fontNameStr = fontName && fontName.name;
  17174. var baseFontStr = baseFont && baseFont.name;
  17175. if (fontNameStr !== baseFontStr) {
  17176. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  17177. '" but should be the same as the Font\'s BaseFont "' +
  17178. baseFontStr + '"');
  17179. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  17180. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  17181. if (fontNameStr && baseFontStr &&
  17182. baseFontStr.indexOf(fontNameStr) === 0) {
  17183. fontName = baseFont;
  17184. }
  17185. }
  17186. }
  17187. fontName = (fontName || baseFont);
  17188. assert(isName(fontName), 'invalid font name');
  17189. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  17190. if (fontFile) {
  17191. if (fontFile.dict) {
  17192. var subtype = fontFile.dict.get('Subtype');
  17193. if (subtype) {
  17194. subtype = subtype.name;
  17195. }
  17196. var length1 = fontFile.dict.get('Length1');
  17197. var length2 = fontFile.dict.get('Length2');
  17198. }
  17199. }
  17200. properties = {
  17201. type: type,
  17202. name: fontName.name,
  17203. subtype: subtype,
  17204. file: fontFile,
  17205. length1: length1,
  17206. length2: length2,
  17207. loadedName: baseDict.loadedName,
  17208. composite: composite,
  17209. wideChars: composite,
  17210. fixedPitch: false,
  17211. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  17212. firstChar: firstChar || 0,
  17213. lastChar: (lastChar || maxCharIndex),
  17214. bbox: descriptor.get('FontBBox'),
  17215. ascent: descriptor.get('Ascent'),
  17216. descent: descriptor.get('Descent'),
  17217. xHeight: descriptor.get('XHeight'),
  17218. capHeight: descriptor.get('CapHeight'),
  17219. flags: descriptor.get('Flags'),
  17220. italicAngle: descriptor.get('ItalicAngle'),
  17221. coded: false
  17222. };
  17223. if (composite) {
  17224. var cidEncoding = baseDict.get('Encoding');
  17225. if (isName(cidEncoding)) {
  17226. properties.cidEncoding = cidEncoding.name;
  17227. }
  17228. properties.cMap = CMapFactory.create(cidEncoding,
  17229. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  17230. properties.vertical = properties.cMap.vertical;
  17231. }
  17232. this.extractDataStructures(dict, baseDict, xref, properties);
  17233. this.extractWidths(dict, xref, descriptor, properties);
  17234. if (type === 'Type3') {
  17235. properties.isType3Font = true;
  17236. }
  17237. return new Font(fontName.name, fontFile, properties);
  17238. }
  17239. };
  17240. return PartialEvaluator;
  17241. })();
  17242. var TranslatedFont = (function TranslatedFontClosure() {
  17243. function TranslatedFont(loadedName, font, dict) {
  17244. this.loadedName = loadedName;
  17245. this.font = font;
  17246. this.dict = dict;
  17247. this.type3Loaded = null;
  17248. this.sent = false;
  17249. }
  17250. TranslatedFont.prototype = {
  17251. send: function (handler) {
  17252. if (this.sent) {
  17253. return;
  17254. }
  17255. var fontData = this.font.exportData();
  17256. handler.send('commonobj', [
  17257. this.loadedName,
  17258. 'Font',
  17259. fontData
  17260. ]);
  17261. this.sent = true;
  17262. },
  17263. loadType3Data: function (evaluator, resources, parentOperatorList) {
  17264. assert(this.font.isType3Font);
  17265. if (this.type3Loaded) {
  17266. return this.type3Loaded;
  17267. }
  17268. var translatedFont = this.font;
  17269. var loadCharProcsPromise = Promise.resolve();
  17270. var charProcs = this.dict.get('CharProcs').getAll();
  17271. var fontResources = this.dict.get('Resources') || resources;
  17272. var charProcKeys = Object.keys(charProcs);
  17273. var charProcOperatorList = {};
  17274. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  17275. loadCharProcsPromise = loadCharProcsPromise.then(function (key) {
  17276. var glyphStream = charProcs[key];
  17277. var operatorList = new OperatorList();
  17278. return evaluator.getOperatorList(glyphStream, fontResources,
  17279. operatorList).
  17280. then(function () {
  17281. charProcOperatorList[key] = operatorList.getIR();
  17282. // Add the dependencies to the parent operator list so they are
  17283. // resolved before sub operator list is executed synchronously.
  17284. parentOperatorList.addDependencies(operatorList.dependencies);
  17285. });
  17286. }.bind(this, charProcKeys[i]));
  17287. }
  17288. this.type3Loaded = loadCharProcsPromise.then(function () {
  17289. translatedFont.charProcOperatorList = charProcOperatorList;
  17290. });
  17291. return this.type3Loaded;
  17292. }
  17293. };
  17294. return TranslatedFont;
  17295. })();
  17296. var OperatorList = (function OperatorListClosure() {
  17297. var CHUNK_SIZE = 1000;
  17298. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  17299. function getTransfers(queue) {
  17300. var transfers = [];
  17301. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  17302. for (var i = 0, ii = queue.length; i < ii; i++) {
  17303. switch (fnArray[i]) {
  17304. case OPS.paintInlineImageXObject:
  17305. case OPS.paintInlineImageXObjectGroup:
  17306. case OPS.paintImageMaskXObject:
  17307. var arg = argsArray[i][0]; // first param in imgData
  17308. if (!arg.cached) {
  17309. transfers.push(arg.data.buffer);
  17310. }
  17311. break;
  17312. }
  17313. }
  17314. return transfers;
  17315. }
  17316. function OperatorList(intent, messageHandler, pageIndex) {
  17317. this.messageHandler = messageHandler;
  17318. this.fnArray = [];
  17319. this.argsArray = [];
  17320. this.dependencies = {};
  17321. this.pageIndex = pageIndex;
  17322. this.intent = intent;
  17323. }
  17324. OperatorList.prototype = {
  17325. get length() {
  17326. return this.argsArray.length;
  17327. },
  17328. addOp: function(fn, args) {
  17329. this.fnArray.push(fn);
  17330. this.argsArray.push(args);
  17331. if (this.messageHandler) {
  17332. if (this.fnArray.length >= CHUNK_SIZE) {
  17333. this.flush();
  17334. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  17335. (fn === OPS.restore || fn === OPS.endText)) {
  17336. // heuristic to flush on boundary of restore or endText
  17337. this.flush();
  17338. }
  17339. }
  17340. },
  17341. addDependency: function(dependency) {
  17342. if (dependency in this.dependencies) {
  17343. return;
  17344. }
  17345. this.dependencies[dependency] = true;
  17346. this.addOp(OPS.dependency, [dependency]);
  17347. },
  17348. addDependencies: function(dependencies) {
  17349. for (var key in dependencies) {
  17350. this.addDependency(key);
  17351. }
  17352. },
  17353. addOpList: function(opList) {
  17354. Util.extendObj(this.dependencies, opList.dependencies);
  17355. for (var i = 0, ii = opList.length; i < ii; i++) {
  17356. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  17357. }
  17358. },
  17359. getIR: function() {
  17360. return {
  17361. fnArray: this.fnArray,
  17362. argsArray: this.argsArray,
  17363. length: this.length
  17364. };
  17365. },
  17366. flush: function(lastChunk) {
  17367. new QueueOptimizer().optimize(this);
  17368. var transfers = getTransfers(this);
  17369. this.messageHandler.send('RenderPageChunk', {
  17370. operatorList: {
  17371. fnArray: this.fnArray,
  17372. argsArray: this.argsArray,
  17373. lastChunk: lastChunk,
  17374. length: this.length
  17375. },
  17376. pageIndex: this.pageIndex,
  17377. intent: this.intent
  17378. }, transfers);
  17379. this.dependencies = {};
  17380. this.fnArray.length = 0;
  17381. this.argsArray.length = 0;
  17382. }
  17383. };
  17384. return OperatorList;
  17385. })();
  17386. var StateManager = (function StateManagerClosure() {
  17387. function StateManager(initialState) {
  17388. this.state = initialState;
  17389. this.stateStack = [];
  17390. }
  17391. StateManager.prototype = {
  17392. save: function () {
  17393. var old = this.state;
  17394. this.stateStack.push(this.state);
  17395. this.state = old.clone();
  17396. },
  17397. restore: function () {
  17398. var prev = this.stateStack.pop();
  17399. if (prev) {
  17400. this.state = prev;
  17401. }
  17402. },
  17403. transform: function (args) {
  17404. this.state.ctm = Util.transform(this.state.ctm, args);
  17405. }
  17406. };
  17407. return StateManager;
  17408. })();
  17409. var TextState = (function TextStateClosure() {
  17410. function TextState() {
  17411. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17412. this.fontSize = 0;
  17413. this.font = null;
  17414. this.fontMatrix = FONT_IDENTITY_MATRIX;
  17415. this.textMatrix = IDENTITY_MATRIX.slice();
  17416. this.textLineMatrix = IDENTITY_MATRIX.slice();
  17417. this.charSpacing = 0;
  17418. this.wordSpacing = 0;
  17419. this.leading = 0;
  17420. this.textHScale = 1;
  17421. this.textRise = 0;
  17422. }
  17423. TextState.prototype = {
  17424. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17425. var m = this.textMatrix;
  17426. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17427. },
  17428. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17429. var m = this.textLineMatrix;
  17430. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17431. },
  17432. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  17433. var m = this.textMatrix;
  17434. m[4] = m[0] * x + m[2] * y + m[4];
  17435. m[5] = m[1] * x + m[3] * y + m[5];
  17436. },
  17437. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  17438. var m = this.textLineMatrix;
  17439. m[4] = m[0] * x + m[2] * y + m[4];
  17440. m[5] = m[1] * x + m[3] * y + m[5];
  17441. },
  17442. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  17443. // 9.4.4 Text Space Details
  17444. var tsm = [this.fontSize * this.textHScale, 0,
  17445. 0, this.fontSize,
  17446. 0, this.textRise];
  17447. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  17448. },
  17449. carriageReturn: function TextState_carriageReturn() {
  17450. this.translateTextLineMatrix(0, -this.leading);
  17451. this.textMatrix = this.textLineMatrix.slice();
  17452. },
  17453. clone: function TextState_clone() {
  17454. var clone = Object.create(this);
  17455. clone.textMatrix = this.textMatrix.slice();
  17456. clone.textLineMatrix = this.textLineMatrix.slice();
  17457. clone.fontMatrix = this.fontMatrix.slice();
  17458. return clone;
  17459. }
  17460. };
  17461. return TextState;
  17462. })();
  17463. var EvalState = (function EvalStateClosure() {
  17464. function EvalState() {
  17465. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17466. this.font = null;
  17467. this.textRenderingMode = TextRenderingMode.FILL;
  17468. this.fillColorSpace = ColorSpace.singletons.gray;
  17469. this.strokeColorSpace = ColorSpace.singletons.gray;
  17470. }
  17471. EvalState.prototype = {
  17472. clone: function CanvasExtraState_clone() {
  17473. return Object.create(this);
  17474. },
  17475. };
  17476. return EvalState;
  17477. })();
  17478. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  17479. // Specifies properties for each command
  17480. //
  17481. // If variableArgs === true: [0, `numArgs`] expected
  17482. // If variableArgs === false: exactly `numArgs` expected
  17483. var OP_MAP = {
  17484. // Graphic state
  17485. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  17486. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  17487. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  17488. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  17489. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  17490. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  17491. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  17492. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  17493. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  17494. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  17495. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  17496. // Path
  17497. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  17498. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  17499. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  17500. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  17501. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  17502. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  17503. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  17504. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  17505. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  17506. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17507. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17508. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  17509. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  17510. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  17511. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  17512. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  17513. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  17514. // Clipping
  17515. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  17516. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  17517. // Text
  17518. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  17519. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  17520. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  17521. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  17522. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  17523. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  17524. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  17525. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  17526. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  17527. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  17528. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  17529. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  17530. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  17531. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  17532. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  17533. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  17534. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  17535. variableArgs: false },
  17536. // Type3 fonts
  17537. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  17538. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  17539. // Color
  17540. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  17541. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  17542. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  17543. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  17544. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  17545. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  17546. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  17547. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  17548. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  17549. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  17550. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  17551. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  17552. // Shading
  17553. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  17554. // Images
  17555. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  17556. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  17557. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  17558. // XObjects
  17559. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  17560. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  17561. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  17562. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  17563. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  17564. variableArgs: false },
  17565. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  17566. // Compatibility
  17567. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  17568. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  17569. // (reserved partial commands for the lexer)
  17570. BM: null,
  17571. BD: null,
  17572. 'true': null,
  17573. fa: null,
  17574. fal: null,
  17575. fals: null,
  17576. 'false': null,
  17577. nu: null,
  17578. nul: null,
  17579. 'null': null
  17580. };
  17581. function EvaluatorPreprocessor(stream, xref, stateManager) {
  17582. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  17583. // dictionary
  17584. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  17585. this.stateManager = stateManager;
  17586. this.nonProcessedArgs = [];
  17587. }
  17588. EvaluatorPreprocessor.prototype = {
  17589. get savedStatesDepth() {
  17590. return this.stateManager.stateStack.length;
  17591. },
  17592. read: function EvaluatorPreprocessor_read(operation) {
  17593. // We use an array to represent args, except we use |null| to represent
  17594. // no args because it's more compact than an empty array.
  17595. var args = null;
  17596. while (true) {
  17597. var obj = this.parser.getObj();
  17598. if (isCmd(obj)) {
  17599. var cmd = obj.cmd;
  17600. // Check that the command is valid
  17601. var opSpec = OP_MAP[cmd];
  17602. if (!opSpec) {
  17603. warn('Unknown command "' + cmd + '"');
  17604. continue;
  17605. }
  17606. var fn = opSpec.id;
  17607. var numArgs = opSpec.numArgs;
  17608. if (!opSpec.variableArgs) {
  17609. // Postscript commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
  17610. var argsLength = args !== null ? args.length : 0;
  17611. if (argsLength !== numArgs) {
  17612. var nonProcessedArgs = this.nonProcessedArgs;
  17613. while (argsLength > numArgs) {
  17614. nonProcessedArgs.push(args.shift());
  17615. argsLength--;
  17616. }
  17617. while (argsLength < numArgs && nonProcessedArgs.length !== 0) {
  17618. if (!args) {
  17619. args = [];
  17620. }
  17621. args.unshift(nonProcessedArgs.pop());
  17622. argsLength++;
  17623. }
  17624. }
  17625. if (argsLength < numArgs) {
  17626. // If we receive too few args, it's not possible to possible
  17627. // to execute the command, so skip the command
  17628. info('Command ' + fn + ': because expected ' +
  17629. numArgs + ' args, but received ' + argsLength +
  17630. ' args; skipping');
  17631. args = null;
  17632. continue;
  17633. }
  17634. } else if (argsLength > numArgs) {
  17635. info('Command ' + fn + ': expected [0,' + numArgs +
  17636. '] args, but received ' + argsLength + ' args');
  17637. }
  17638. // TODO figure out how to type-check vararg functions
  17639. this.preprocessCommand(fn, args);
  17640. operation.fn = fn;
  17641. operation.args = args;
  17642. return true;
  17643. } else {
  17644. if (isEOF(obj)) {
  17645. return false; // no more commands
  17646. }
  17647. // argument
  17648. if (obj !== null) {
  17649. if (!args) {
  17650. args = [];
  17651. }
  17652. args.push((obj instanceof Dict ? obj.getAll() : obj));
  17653. assert(args.length <= 33, 'Too many arguments');
  17654. }
  17655. }
  17656. }
  17657. },
  17658. preprocessCommand:
  17659. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  17660. switch (fn | 0) {
  17661. case OPS.save:
  17662. this.stateManager.save();
  17663. break;
  17664. case OPS.restore:
  17665. this.stateManager.restore();
  17666. break;
  17667. case OPS.transform:
  17668. this.stateManager.transform(args);
  17669. break;
  17670. }
  17671. }
  17672. };
  17673. return EvaluatorPreprocessor;
  17674. })();
  17675. var QueueOptimizer = (function QueueOptimizerClosure() {
  17676. function addState(parentState, pattern, fn) {
  17677. var state = parentState;
  17678. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  17679. var item = pattern[i];
  17680. state = (state[item] || (state[item] = []));
  17681. }
  17682. state[pattern[pattern.length - 1]] = fn;
  17683. }
  17684. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  17685. // Handles special case of mainly LaTeX documents which
  17686. // use image masks to draw lines with the current fill style.
  17687. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  17688. // have been found at index.
  17689. for (var i = 0; i < count; i++) {
  17690. var arg = argsArray[index + 4 * i + 2];
  17691. var imageMask = arg.length === 1 && arg[0];
  17692. if (imageMask && imageMask.width === 1 && imageMask.height === 1 &&
  17693. (!imageMask.data.length || (imageMask.data.length === 1 &&
  17694. imageMask.data[0] === 0))) {
  17695. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  17696. continue;
  17697. }
  17698. break;
  17699. }
  17700. return count - i;
  17701. }
  17702. var InitialState = [];
  17703. addState(InitialState,
  17704. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  17705. function foundInlineImageGroup(context) {
  17706. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  17707. // searching for (save, transform, paintInlineImageXObject, restore)+
  17708. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  17709. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  17710. var MAX_WIDTH = 1000;
  17711. var IMAGE_PADDING = 1;
  17712. var fnArray = context.fnArray, argsArray = context.argsArray;
  17713. var j = context.currentOperation - 3, i = j + 4;
  17714. var ii = fnArray.length;
  17715. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17716. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  17717. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  17718. context.currentOperation = i - 1;
  17719. return;
  17720. }
  17721. // assuming that heights of those image is too small (~1 pixel)
  17722. // packing as much as possible by lines
  17723. var maxX = 0;
  17724. var map = [], maxLineHeight = 0;
  17725. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  17726. var q;
  17727. for (q = 0; q < count; q++) {
  17728. var transform = argsArray[j + (q << 2) + 1];
  17729. var img = argsArray[j + (q << 2) + 2][0];
  17730. if (currentX + img.width > MAX_WIDTH) {
  17731. // starting new line
  17732. maxX = Math.max(maxX, currentX);
  17733. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  17734. currentX = 0;
  17735. maxLineHeight = 0;
  17736. }
  17737. map.push({
  17738. transform: transform,
  17739. x: currentX, y: currentY,
  17740. w: img.width, h: img.height
  17741. });
  17742. currentX += img.width + 2 * IMAGE_PADDING;
  17743. maxLineHeight = Math.max(maxLineHeight, img.height);
  17744. }
  17745. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  17746. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  17747. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  17748. var imgRowSize = imgWidth << 2;
  17749. for (q = 0; q < count; q++) {
  17750. var data = argsArray[j + (q << 2) + 2][0].data;
  17751. // copy image by lines and extends pixels into padding
  17752. var rowSize = map[q].w << 2;
  17753. var dataOffset = 0;
  17754. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  17755. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  17756. for (var k = 0, kk = map[q].h; k < kk; k++) {
  17757. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  17758. dataOffset += rowSize;
  17759. offset += imgRowSize;
  17760. }
  17761. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  17762. while (offset >= 0) {
  17763. data[offset - 4] = data[offset];
  17764. data[offset - 3] = data[offset + 1];
  17765. data[offset - 2] = data[offset + 2];
  17766. data[offset - 1] = data[offset + 3];
  17767. data[offset + rowSize] = data[offset + rowSize - 4];
  17768. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  17769. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  17770. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  17771. offset -= imgRowSize;
  17772. }
  17773. }
  17774. // replacing queue items
  17775. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  17776. argsArray.splice(j, count * 4,
  17777. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  17778. data: imgData }, map]);
  17779. context.currentOperation = j;
  17780. });
  17781. addState(InitialState,
  17782. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  17783. function foundImageMaskGroup(context) {
  17784. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  17785. // searching for (save, transform, paintImageMaskXObject, restore)+
  17786. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  17787. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  17788. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  17789. var fnArray = context.fnArray, argsArray = context.argsArray;
  17790. var j = context.currentOperation - 3, i = j + 4;
  17791. var ii = fnArray.length, q;
  17792. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17793. var count = (i - j) >> 2;
  17794. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  17795. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  17796. context.currentOperation = i - 1;
  17797. return;
  17798. }
  17799. var isSameImage = false;
  17800. var transformArgs;
  17801. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  17802. i = j + 4;
  17803. isSameImage = true;
  17804. for (q = 1; q < count; q++, i += 4) {
  17805. var prevTransformArgs = argsArray[i - 3];
  17806. transformArgs = argsArray[i + 1];
  17807. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  17808. prevTransformArgs[0] !== transformArgs[0] ||
  17809. prevTransformArgs[1] !== transformArgs[1] ||
  17810. prevTransformArgs[2] !== transformArgs[2] ||
  17811. prevTransformArgs[3] !== transformArgs[3]) {
  17812. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  17813. isSameImage = false;
  17814. } else {
  17815. count = q;
  17816. }
  17817. break; // different image or transform
  17818. }
  17819. }
  17820. }
  17821. if (isSameImage) {
  17822. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  17823. var positions = new Float32Array(count * 2);
  17824. i = j + 1;
  17825. for (q = 0; q < count; q++) {
  17826. transformArgs = argsArray[i];
  17827. positions[(q << 1)] = transformArgs[4];
  17828. positions[(q << 1) + 1] = transformArgs[5];
  17829. i += 4;
  17830. }
  17831. // replacing queue items
  17832. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  17833. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  17834. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  17835. context.currentOperation = j;
  17836. } else {
  17837. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  17838. var images = [];
  17839. for (q = 0; q < count; q++) {
  17840. transformArgs = argsArray[j + (q << 2) + 1];
  17841. var maskParams = argsArray[j + (q << 2) + 2][0];
  17842. images.push({ data: maskParams.data, width: maskParams.width,
  17843. height: maskParams.height,
  17844. transform: transformArgs });
  17845. }
  17846. // replacing queue items
  17847. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  17848. argsArray.splice(j, count * 4, [images]);
  17849. context.currentOperation = j;
  17850. }
  17851. });
  17852. addState(InitialState,
  17853. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  17854. function (context) {
  17855. var MIN_IMAGES_IN_BLOCK = 3;
  17856. var MAX_IMAGES_IN_BLOCK = 1000;
  17857. var fnArray = context.fnArray, argsArray = context.argsArray;
  17858. var j = context.currentOperation - 3, i = j + 4;
  17859. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  17860. return;
  17861. }
  17862. var ii = fnArray.length;
  17863. var transformArgs;
  17864. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  17865. if (fnArray[i - 3] !== fnArray[i + 1] ||
  17866. fnArray[i - 2] !== fnArray[i + 2] ||
  17867. fnArray[i - 1] !== fnArray[i + 3]) {
  17868. break;
  17869. }
  17870. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  17871. break; // different image
  17872. }
  17873. var prevTransformArgs = argsArray[i - 3];
  17874. transformArgs = argsArray[i + 1];
  17875. if (prevTransformArgs[0] !== transformArgs[0] ||
  17876. prevTransformArgs[1] !== transformArgs[1] ||
  17877. prevTransformArgs[2] !== transformArgs[2] ||
  17878. prevTransformArgs[3] !== transformArgs[3]) {
  17879. break; // different transform
  17880. }
  17881. }
  17882. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  17883. if (count < MIN_IMAGES_IN_BLOCK) {
  17884. context.currentOperation = i - 1;
  17885. return;
  17886. }
  17887. var positions = new Float32Array(count * 2);
  17888. i = j + 1;
  17889. for (var q = 0; q < count; q++) {
  17890. transformArgs = argsArray[i];
  17891. positions[(q << 1)] = transformArgs[4];
  17892. positions[(q << 1) + 1] = transformArgs[5];
  17893. i += 4;
  17894. }
  17895. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  17896. argsArray[j + 1][3], positions];
  17897. // replacing queue items
  17898. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  17899. argsArray.splice(j, count * 4, args);
  17900. context.currentOperation = j;
  17901. });
  17902. addState(InitialState,
  17903. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  17904. function (context) {
  17905. // moving single chars with same font into beginText/endText groups
  17906. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  17907. var MIN_CHARS_IN_BLOCK = 3;
  17908. var MAX_CHARS_IN_BLOCK = 1000;
  17909. var fnArray = context.fnArray, argsArray = context.argsArray;
  17910. var j = context.currentOperation - 4, i = j + 5;
  17911. var ii = fnArray.length;
  17912. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  17913. if (fnArray[i] === OPS.setFont) {
  17914. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  17915. argsArray[i - 5][1] !== argsArray[i][1]) {
  17916. break;
  17917. }
  17918. }
  17919. }
  17920. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  17921. if (count < MIN_CHARS_IN_BLOCK) {
  17922. context.currentOperation = i - 1;
  17923. return;
  17924. }
  17925. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  17926. fnArray[j - 3] === fnArray[j + 2] &&
  17927. fnArray[j - 2] === fnArray[j + 3] &&
  17928. fnArray[j - 1] === fnArray[j + 4] &&
  17929. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  17930. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  17931. // extending one block ahead (very first block might have 'dependency')
  17932. count++;
  17933. j -= 5;
  17934. }
  17935. var k = j + 7;
  17936. i = j + 4;
  17937. for (var q = 1; q < count; q++) {
  17938. fnArray[i] = fnArray[k];
  17939. argsArray[i] = argsArray[k];
  17940. fnArray[i + 1] = fnArray[k + 1];
  17941. argsArray[i + 1] = argsArray[k + 1];
  17942. i += 2;
  17943. k += 5;
  17944. }
  17945. var removed = (count - 1) * 3;
  17946. fnArray.splice(i, removed);
  17947. argsArray.splice(i, removed);
  17948. context.currentOperation = i;
  17949. });
  17950. function QueueOptimizer() {}
  17951. QueueOptimizer.prototype = {
  17952. optimize: function QueueOptimizer_optimize(queue) {
  17953. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  17954. var context = {
  17955. currentOperation: 0,
  17956. fnArray: fnArray,
  17957. argsArray: argsArray
  17958. };
  17959. var i, ii = argsArray.length;
  17960. var state;
  17961. for (i = 0; i < ii; i++) {
  17962. state = (state || InitialState)[fnArray[i]];
  17963. if (typeof state === 'function') { // we found some handler
  17964. context.currentOperation = i;
  17965. state = state(context);
  17966. i = context.currentOperation;
  17967. ii = context.fnArray.length;
  17968. }
  17969. }
  17970. }
  17971. };
  17972. return QueueOptimizer;
  17973. })();
  17974. var BUILT_IN_CMAPS = [
  17975. // << Start unicode maps.
  17976. 'Adobe-GB1-UCS2',
  17977. 'Adobe-CNS1-UCS2',
  17978. 'Adobe-Japan1-UCS2',
  17979. 'Adobe-Korea1-UCS2',
  17980. // >> End unicode maps.
  17981. '78-EUC-H',
  17982. '78-EUC-V',
  17983. '78-H',
  17984. '78-RKSJ-H',
  17985. '78-RKSJ-V',
  17986. '78-V',
  17987. '78ms-RKSJ-H',
  17988. '78ms-RKSJ-V',
  17989. '83pv-RKSJ-H',
  17990. '90ms-RKSJ-H',
  17991. '90ms-RKSJ-V',
  17992. '90msp-RKSJ-H',
  17993. '90msp-RKSJ-V',
  17994. '90pv-RKSJ-H',
  17995. '90pv-RKSJ-V',
  17996. 'Add-H',
  17997. 'Add-RKSJ-H',
  17998. 'Add-RKSJ-V',
  17999. 'Add-V',
  18000. 'Adobe-CNS1-0',
  18001. 'Adobe-CNS1-1',
  18002. 'Adobe-CNS1-2',
  18003. 'Adobe-CNS1-3',
  18004. 'Adobe-CNS1-4',
  18005. 'Adobe-CNS1-5',
  18006. 'Adobe-CNS1-6',
  18007. 'Adobe-GB1-0',
  18008. 'Adobe-GB1-1',
  18009. 'Adobe-GB1-2',
  18010. 'Adobe-GB1-3',
  18011. 'Adobe-GB1-4',
  18012. 'Adobe-GB1-5',
  18013. 'Adobe-Japan1-0',
  18014. 'Adobe-Japan1-1',
  18015. 'Adobe-Japan1-2',
  18016. 'Adobe-Japan1-3',
  18017. 'Adobe-Japan1-4',
  18018. 'Adobe-Japan1-5',
  18019. 'Adobe-Japan1-6',
  18020. 'Adobe-Korea1-0',
  18021. 'Adobe-Korea1-1',
  18022. 'Adobe-Korea1-2',
  18023. 'B5-H',
  18024. 'B5-V',
  18025. 'B5pc-H',
  18026. 'B5pc-V',
  18027. 'CNS-EUC-H',
  18028. 'CNS-EUC-V',
  18029. 'CNS1-H',
  18030. 'CNS1-V',
  18031. 'CNS2-H',
  18032. 'CNS2-V',
  18033. 'ETHK-B5-H',
  18034. 'ETHK-B5-V',
  18035. 'ETen-B5-H',
  18036. 'ETen-B5-V',
  18037. 'ETenms-B5-H',
  18038. 'ETenms-B5-V',
  18039. 'EUC-H',
  18040. 'EUC-V',
  18041. 'Ext-H',
  18042. 'Ext-RKSJ-H',
  18043. 'Ext-RKSJ-V',
  18044. 'Ext-V',
  18045. 'GB-EUC-H',
  18046. 'GB-EUC-V',
  18047. 'GB-H',
  18048. 'GB-V',
  18049. 'GBK-EUC-H',
  18050. 'GBK-EUC-V',
  18051. 'GBK2K-H',
  18052. 'GBK2K-V',
  18053. 'GBKp-EUC-H',
  18054. 'GBKp-EUC-V',
  18055. 'GBT-EUC-H',
  18056. 'GBT-EUC-V',
  18057. 'GBT-H',
  18058. 'GBT-V',
  18059. 'GBTpc-EUC-H',
  18060. 'GBTpc-EUC-V',
  18061. 'GBpc-EUC-H',
  18062. 'GBpc-EUC-V',
  18063. 'H',
  18064. 'HKdla-B5-H',
  18065. 'HKdla-B5-V',
  18066. 'HKdlb-B5-H',
  18067. 'HKdlb-B5-V',
  18068. 'HKgccs-B5-H',
  18069. 'HKgccs-B5-V',
  18070. 'HKm314-B5-H',
  18071. 'HKm314-B5-V',
  18072. 'HKm471-B5-H',
  18073. 'HKm471-B5-V',
  18074. 'HKscs-B5-H',
  18075. 'HKscs-B5-V',
  18076. 'Hankaku',
  18077. 'Hiragana',
  18078. 'KSC-EUC-H',
  18079. 'KSC-EUC-V',
  18080. 'KSC-H',
  18081. 'KSC-Johab-H',
  18082. 'KSC-Johab-V',
  18083. 'KSC-V',
  18084. 'KSCms-UHC-H',
  18085. 'KSCms-UHC-HW-H',
  18086. 'KSCms-UHC-HW-V',
  18087. 'KSCms-UHC-V',
  18088. 'KSCpc-EUC-H',
  18089. 'KSCpc-EUC-V',
  18090. 'Katakana',
  18091. 'NWP-H',
  18092. 'NWP-V',
  18093. 'RKSJ-H',
  18094. 'RKSJ-V',
  18095. 'Roman',
  18096. 'UniCNS-UCS2-H',
  18097. 'UniCNS-UCS2-V',
  18098. 'UniCNS-UTF16-H',
  18099. 'UniCNS-UTF16-V',
  18100. 'UniCNS-UTF32-H',
  18101. 'UniCNS-UTF32-V',
  18102. 'UniCNS-UTF8-H',
  18103. 'UniCNS-UTF8-V',
  18104. 'UniGB-UCS2-H',
  18105. 'UniGB-UCS2-V',
  18106. 'UniGB-UTF16-H',
  18107. 'UniGB-UTF16-V',
  18108. 'UniGB-UTF32-H',
  18109. 'UniGB-UTF32-V',
  18110. 'UniGB-UTF8-H',
  18111. 'UniGB-UTF8-V',
  18112. 'UniJIS-UCS2-H',
  18113. 'UniJIS-UCS2-HW-H',
  18114. 'UniJIS-UCS2-HW-V',
  18115. 'UniJIS-UCS2-V',
  18116. 'UniJIS-UTF16-H',
  18117. 'UniJIS-UTF16-V',
  18118. 'UniJIS-UTF32-H',
  18119. 'UniJIS-UTF32-V',
  18120. 'UniJIS-UTF8-H',
  18121. 'UniJIS-UTF8-V',
  18122. 'UniJIS2004-UTF16-H',
  18123. 'UniJIS2004-UTF16-V',
  18124. 'UniJIS2004-UTF32-H',
  18125. 'UniJIS2004-UTF32-V',
  18126. 'UniJIS2004-UTF8-H',
  18127. 'UniJIS2004-UTF8-V',
  18128. 'UniJISPro-UCS2-HW-V',
  18129. 'UniJISPro-UCS2-V',
  18130. 'UniJISPro-UTF8-V',
  18131. 'UniJISX0213-UTF32-H',
  18132. 'UniJISX0213-UTF32-V',
  18133. 'UniJISX02132004-UTF32-H',
  18134. 'UniJISX02132004-UTF32-V',
  18135. 'UniKS-UCS2-H',
  18136. 'UniKS-UCS2-V',
  18137. 'UniKS-UTF16-H',
  18138. 'UniKS-UTF16-V',
  18139. 'UniKS-UTF32-H',
  18140. 'UniKS-UTF32-V',
  18141. 'UniKS-UTF8-H',
  18142. 'UniKS-UTF8-V',
  18143. 'V',
  18144. 'WP-Symbol'];
  18145. // CMap, not to be confused with TrueType's cmap.
  18146. var CMap = (function CMapClosure() {
  18147. function CMap(builtInCMap) {
  18148. // Codespace ranges are stored as follows:
  18149. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  18150. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  18151. this.codespaceRanges = [[], [], [], []];
  18152. this.numCodespaceRanges = 0;
  18153. this.map = [];
  18154. this.vertical = false;
  18155. this.useCMap = null;
  18156. this.builtInCMap = builtInCMap;
  18157. }
  18158. CMap.prototype = {
  18159. addCodespaceRange: function(n, low, high) {
  18160. this.codespaceRanges[n - 1].push(low, high);
  18161. this.numCodespaceRanges++;
  18162. },
  18163. mapRange: function(low, high, dstLow) {
  18164. var lastByte = dstLow.length - 1;
  18165. while (low <= high) {
  18166. this.map[low] = dstLow;
  18167. // Only the last byte has to be incremented.
  18168. dstLow = dstLow.substr(0, lastByte) +
  18169. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  18170. ++low;
  18171. }
  18172. },
  18173. mapRangeToArray: function(low, high, array) {
  18174. var i = 0, ii = array.length;
  18175. while (low <= high && i < ii) {
  18176. this.map[low] = array[i++];
  18177. ++low;
  18178. }
  18179. },
  18180. mapOne: function(src, dst) {
  18181. this.map[src] = dst;
  18182. },
  18183. lookup: function(code) {
  18184. return this.map[code];
  18185. },
  18186. readCharCode: function(str, offset) {
  18187. var c = 0;
  18188. var codespaceRanges = this.codespaceRanges;
  18189. var codespaceRangesLen = this.codespaceRanges.length;
  18190. // 9.7.6.2 CMap Mapping
  18191. // The code length is at most 4.
  18192. for (var n = 0; n < codespaceRangesLen; n++) {
  18193. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  18194. // Check each codespace range to see if it falls within.
  18195. var codespaceRange = codespaceRanges[n];
  18196. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  18197. var low = codespaceRange[k++];
  18198. var high = codespaceRange[k++];
  18199. if (c >= low && c <= high) {
  18200. return [c, n + 1];
  18201. }
  18202. }
  18203. }
  18204. return [0, 1];
  18205. }
  18206. };
  18207. return CMap;
  18208. })();
  18209. var IdentityCMap = (function IdentityCMapClosure() {
  18210. function IdentityCMap(vertical, n) {
  18211. CMap.call(this);
  18212. this.vertical = vertical;
  18213. this.addCodespaceRange(n, 0, 0xffff);
  18214. this.mapRange(0, 0xffff, '\u0000');
  18215. }
  18216. Util.inherit(IdentityCMap, CMap, {});
  18217. return IdentityCMap;
  18218. })();
  18219. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  18220. function fetchBinaryData(url) {
  18221. var nonBinaryRequest = PDFJS.disableWorker;
  18222. var request = new XMLHttpRequest();
  18223. request.open('GET', url, false);
  18224. if (!nonBinaryRequest) {
  18225. try {
  18226. request.responseType = 'arraybuffer';
  18227. nonBinaryRequest = request.responseType !== 'arraybuffer';
  18228. } catch (e) {
  18229. nonBinaryRequest = true;
  18230. }
  18231. }
  18232. if (nonBinaryRequest && request.overrideMimeType) {
  18233. request.overrideMimeType('text/plain; charset=x-user-defined');
  18234. }
  18235. request.send(null);
  18236. if (request.status === 0 && /^https?:/i.test(url)) {
  18237. error('Unable to get binary cMap at: ' + url);
  18238. }
  18239. if (nonBinaryRequest) {
  18240. var data = Array.prototype.map.call(request.responseText, function (ch) {
  18241. return ch.charCodeAt(0) & 255;
  18242. });
  18243. return new Uint8Array(data);
  18244. }
  18245. return new Uint8Array(request.response);
  18246. }
  18247. function hexToInt(a, size) {
  18248. var n = 0;
  18249. for (var i = 0; i <= size; i++) {
  18250. n = (n << 8) | a[i];
  18251. }
  18252. return n >>> 0;
  18253. }
  18254. function hexToStr(a, size) {
  18255. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  18256. }
  18257. function addHex(a, b, size) {
  18258. var c = 0;
  18259. for (var i = size; i >= 0; i--) {
  18260. c += a[i] + b[i];
  18261. a[i] = c & 255;
  18262. c >>= 8;
  18263. }
  18264. }
  18265. function incHex(a, size) {
  18266. var c = 1;
  18267. for (var i = size; i >= 0 && c > 0; i--) {
  18268. c += a[i];
  18269. a[i] = c & 255;
  18270. c >>= 8;
  18271. }
  18272. }
  18273. var MAX_NUM_SIZE = 16;
  18274. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  18275. function BinaryCMapStream(data) {
  18276. this.buffer = data;
  18277. this.pos = 0;
  18278. this.end = data.length;
  18279. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  18280. }
  18281. BinaryCMapStream.prototype = {
  18282. readByte: function () {
  18283. if (this.pos >= this.end) {
  18284. return -1;
  18285. }
  18286. return this.buffer[this.pos++];
  18287. },
  18288. readNumber: function () {
  18289. var n = 0;
  18290. var last;
  18291. do {
  18292. var b = this.readByte();
  18293. if (b < 0) {
  18294. error('unexpected EOF in bcmap');
  18295. }
  18296. last = !(b & 0x80);
  18297. n = (n << 7) | (b & 0x7F);
  18298. } while (!last);
  18299. return n;
  18300. },
  18301. readSigned: function () {
  18302. var n = this.readNumber();
  18303. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  18304. },
  18305. readHex: function (num, size) {
  18306. num.set(this.buffer.subarray(this.pos,
  18307. this.pos + size + 1));
  18308. this.pos += size + 1;
  18309. },
  18310. readHexNumber: function (num, size) {
  18311. var last;
  18312. var stack = this.tmpBuf, sp = 0;
  18313. do {
  18314. var b = this.readByte();
  18315. if (b < 0) {
  18316. error('unexpected EOF in bcmap');
  18317. }
  18318. last = !(b & 0x80);
  18319. stack[sp++] = b & 0x7F;
  18320. } while (!last);
  18321. var i = size, buffer = 0, bufferSize = 0;
  18322. while (i >= 0) {
  18323. while (bufferSize < 8 && stack.length > 0) {
  18324. buffer = (stack[--sp] << bufferSize) | buffer;
  18325. bufferSize += 7;
  18326. }
  18327. num[i] = buffer & 255;
  18328. i--;
  18329. buffer >>= 8;
  18330. bufferSize -= 8;
  18331. }
  18332. },
  18333. readHexSigned: function (num, size) {
  18334. this.readHexNumber(num, size);
  18335. var sign = num[size] & 1 ? 255 : 0;
  18336. var c = 0;
  18337. for (var i = 0; i <= size; i++) {
  18338. c = ((c & 1) << 8) | num[i];
  18339. num[i] = (c >> 1) ^ sign;
  18340. }
  18341. },
  18342. readString: function () {
  18343. var len = this.readNumber();
  18344. var s = '';
  18345. for (var i = 0; i < len; i++) {
  18346. s += String.fromCharCode(this.readNumber());
  18347. }
  18348. return s;
  18349. }
  18350. };
  18351. function processBinaryCMap(url, cMap, extend) {
  18352. var data = fetchBinaryData(url);
  18353. var stream = new BinaryCMapStream(data);
  18354. var header = stream.readByte();
  18355. cMap.vertical = !!(header & 1);
  18356. var useCMap = null;
  18357. var start = new Uint8Array(MAX_NUM_SIZE);
  18358. var end = new Uint8Array(MAX_NUM_SIZE);
  18359. var char = new Uint8Array(MAX_NUM_SIZE);
  18360. var charCode = new Uint8Array(MAX_NUM_SIZE);
  18361. var tmp = new Uint8Array(MAX_NUM_SIZE);
  18362. var code;
  18363. var b;
  18364. while ((b = stream.readByte()) >= 0) {
  18365. var type = b >> 5;
  18366. if (type === 7) { // metadata, e.g. comment or usecmap
  18367. switch (b & 0x1F) {
  18368. case 0:
  18369. stream.readString(); // skipping comment
  18370. break;
  18371. case 1:
  18372. useCMap = stream.readString();
  18373. break;
  18374. }
  18375. continue;
  18376. }
  18377. var sequence = !!(b & 0x10);
  18378. var dataSize = b & 15;
  18379. assert(dataSize + 1 <= MAX_NUM_SIZE);
  18380. var ucs2DataSize = 1;
  18381. var subitemsCount = stream.readNumber();
  18382. var i;
  18383. switch (type) {
  18384. case 0: // codespacerange
  18385. stream.readHex(start, dataSize);
  18386. stream.readHexNumber(end, dataSize);
  18387. addHex(end, start, dataSize);
  18388. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18389. hexToInt(end, dataSize));
  18390. for (i = 1; i < subitemsCount; i++) {
  18391. incHex(end, dataSize);
  18392. stream.readHexNumber(start, dataSize);
  18393. addHex(start, end, dataSize);
  18394. stream.readHexNumber(end, dataSize);
  18395. addHex(end, start, dataSize);
  18396. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18397. hexToInt(end, dataSize));
  18398. }
  18399. break;
  18400. case 1: // notdefrange
  18401. stream.readHex(start, dataSize);
  18402. stream.readHexNumber(end, dataSize);
  18403. addHex(end, start, dataSize);
  18404. code = stream.readNumber();
  18405. // undefined range, skipping
  18406. for (i = 1; i < subitemsCount; i++) {
  18407. incHex(end, dataSize);
  18408. stream.readHexNumber(start, dataSize);
  18409. addHex(start, end, dataSize);
  18410. stream.readHexNumber(end, dataSize);
  18411. addHex(end, start, dataSize);
  18412. code = stream.readNumber();
  18413. // nop
  18414. }
  18415. break;
  18416. case 2: // cidchar
  18417. stream.readHex(char, dataSize);
  18418. code = stream.readNumber();
  18419. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18420. for (i = 1; i < subitemsCount; i++) {
  18421. incHex(char, dataSize);
  18422. if (!sequence) {
  18423. stream.readHexNumber(tmp, dataSize);
  18424. addHex(char, tmp, dataSize);
  18425. }
  18426. code = stream.readSigned() + (code + 1);
  18427. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18428. }
  18429. break;
  18430. case 3: // cidrange
  18431. stream.readHex(start, dataSize);
  18432. stream.readHexNumber(end, dataSize);
  18433. addHex(end, start, dataSize);
  18434. code = stream.readNumber();
  18435. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18436. String.fromCharCode(code));
  18437. for (i = 1; i < subitemsCount; i++) {
  18438. incHex(end, dataSize);
  18439. if (!sequence) {
  18440. stream.readHexNumber(start, dataSize);
  18441. addHex(start, end, dataSize);
  18442. } else {
  18443. start.set(end);
  18444. }
  18445. stream.readHexNumber(end, dataSize);
  18446. addHex(end, start, dataSize);
  18447. code = stream.readNumber();
  18448. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18449. String.fromCharCode(code));
  18450. }
  18451. break;
  18452. case 4: // bfchar
  18453. stream.readHex(char, ucs2DataSize);
  18454. stream.readHex(charCode, dataSize);
  18455. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18456. hexToStr(charCode, dataSize));
  18457. for (i = 1; i < subitemsCount; i++) {
  18458. incHex(char, ucs2DataSize);
  18459. if (!sequence) {
  18460. stream.readHexNumber(tmp, ucs2DataSize);
  18461. addHex(char, tmp, ucs2DataSize);
  18462. }
  18463. incHex(charCode, dataSize);
  18464. stream.readHexSigned(tmp, dataSize);
  18465. addHex(charCode, tmp, dataSize);
  18466. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18467. hexToStr(charCode, dataSize));
  18468. }
  18469. break;
  18470. case 5: // bfrange
  18471. stream.readHex(start, ucs2DataSize);
  18472. stream.readHexNumber(end, ucs2DataSize);
  18473. addHex(end, start, ucs2DataSize);
  18474. stream.readHex(charCode, dataSize);
  18475. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18476. hexToInt(end, ucs2DataSize),
  18477. hexToStr(charCode, dataSize));
  18478. for (i = 1; i < subitemsCount; i++) {
  18479. incHex(end, ucs2DataSize);
  18480. if (!sequence) {
  18481. stream.readHexNumber(start, ucs2DataSize);
  18482. addHex(start, end, ucs2DataSize);
  18483. } else {
  18484. start.set(end);
  18485. }
  18486. stream.readHexNumber(end, ucs2DataSize);
  18487. addHex(end, start, ucs2DataSize);
  18488. stream.readHex(charCode, dataSize);
  18489. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18490. hexToInt(end, ucs2DataSize),
  18491. hexToStr(charCode, dataSize));
  18492. }
  18493. break;
  18494. default:
  18495. error('Unknown type: ' + type);
  18496. break;
  18497. }
  18498. }
  18499. if (useCMap) {
  18500. extend(useCMap);
  18501. }
  18502. return cMap;
  18503. }
  18504. function BinaryCMapReader() {}
  18505. BinaryCMapReader.prototype = {
  18506. read: processBinaryCMap
  18507. };
  18508. return BinaryCMapReader;
  18509. })();
  18510. var CMapFactory = (function CMapFactoryClosure() {
  18511. function strToInt(str) {
  18512. var a = 0;
  18513. for (var i = 0; i < str.length; i++) {
  18514. a = (a << 8) | str.charCodeAt(i);
  18515. }
  18516. return a >>> 0;
  18517. }
  18518. function expectString(obj) {
  18519. if (!isString(obj)) {
  18520. error('Malformed CMap: expected string.');
  18521. }
  18522. }
  18523. function expectInt(obj) {
  18524. if (!isInt(obj)) {
  18525. error('Malformed CMap: expected int.');
  18526. }
  18527. }
  18528. function parseBfChar(cMap, lexer) {
  18529. while (true) {
  18530. var obj = lexer.getObj();
  18531. if (isEOF(obj)) {
  18532. break;
  18533. }
  18534. if (isCmd(obj, 'endbfchar')) {
  18535. return;
  18536. }
  18537. expectString(obj);
  18538. var src = strToInt(obj);
  18539. obj = lexer.getObj();
  18540. // TODO are /dstName used?
  18541. expectString(obj);
  18542. var dst = obj;
  18543. cMap.mapOne(src, dst);
  18544. }
  18545. }
  18546. function parseBfRange(cMap, lexer) {
  18547. while (true) {
  18548. var obj = lexer.getObj();
  18549. if (isEOF(obj)) {
  18550. break;
  18551. }
  18552. if (isCmd(obj, 'endbfrange')) {
  18553. return;
  18554. }
  18555. expectString(obj);
  18556. var low = strToInt(obj);
  18557. obj = lexer.getObj();
  18558. expectString(obj);
  18559. var high = strToInt(obj);
  18560. obj = lexer.getObj();
  18561. if (isInt(obj) || isString(obj)) {
  18562. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  18563. cMap.mapRange(low, high, dstLow);
  18564. } else if (isCmd(obj, '[')) {
  18565. obj = lexer.getObj();
  18566. var array = [];
  18567. while (!isCmd(obj, ']') && !isEOF(obj)) {
  18568. array.push(obj);
  18569. obj = lexer.getObj();
  18570. }
  18571. cMap.mapRangeToArray(low, high, array);
  18572. } else {
  18573. break;
  18574. }
  18575. }
  18576. error('Invalid bf range.');
  18577. }
  18578. function parseCidChar(cMap, lexer) {
  18579. while (true) {
  18580. var obj = lexer.getObj();
  18581. if (isEOF(obj)) {
  18582. break;
  18583. }
  18584. if (isCmd(obj, 'endcidchar')) {
  18585. return;
  18586. }
  18587. expectString(obj);
  18588. var src = strToInt(obj);
  18589. obj = lexer.getObj();
  18590. expectInt(obj);
  18591. var dst = String.fromCharCode(obj);
  18592. cMap.mapOne(src, dst);
  18593. }
  18594. }
  18595. function parseCidRange(cMap, lexer) {
  18596. while (true) {
  18597. var obj = lexer.getObj();
  18598. if (isEOF(obj)) {
  18599. break;
  18600. }
  18601. if (isCmd(obj, 'endcidrange')) {
  18602. return;
  18603. }
  18604. expectString(obj);
  18605. var low = strToInt(obj);
  18606. obj = lexer.getObj();
  18607. expectString(obj);
  18608. var high = strToInt(obj);
  18609. obj = lexer.getObj();
  18610. expectInt(obj);
  18611. var dstLow = String.fromCharCode(obj);
  18612. cMap.mapRange(low, high, dstLow);
  18613. }
  18614. }
  18615. function parseCodespaceRange(cMap, lexer) {
  18616. while (true) {
  18617. var obj = lexer.getObj();
  18618. if (isEOF(obj)) {
  18619. break;
  18620. }
  18621. if (isCmd(obj, 'endcodespacerange')) {
  18622. return;
  18623. }
  18624. if (!isString(obj)) {
  18625. break;
  18626. }
  18627. var low = strToInt(obj);
  18628. obj = lexer.getObj();
  18629. if (!isString(obj)) {
  18630. break;
  18631. }
  18632. var high = strToInt(obj);
  18633. cMap.addCodespaceRange(obj.length, low, high);
  18634. }
  18635. error('Invalid codespace range.');
  18636. }
  18637. function parseWMode(cMap, lexer) {
  18638. var obj = lexer.getObj();
  18639. if (isInt(obj)) {
  18640. cMap.vertical = !!obj;
  18641. }
  18642. }
  18643. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  18644. var previous;
  18645. var embededUseCMap;
  18646. objLoop: while (true) {
  18647. var obj = lexer.getObj();
  18648. if (isEOF(obj)) {
  18649. break;
  18650. } else if (isName(obj)) {
  18651. if (obj.name === 'WMode') {
  18652. parseWMode(cMap, lexer);
  18653. }
  18654. previous = obj;
  18655. } else if (isCmd(obj)) {
  18656. switch (obj.cmd) {
  18657. case 'endcmap':
  18658. break objLoop;
  18659. case 'usecmap':
  18660. if (isName(previous)) {
  18661. embededUseCMap = previous.name;
  18662. }
  18663. break;
  18664. case 'begincodespacerange':
  18665. parseCodespaceRange(cMap, lexer);
  18666. break;
  18667. case 'beginbfchar':
  18668. parseBfChar(cMap, lexer);
  18669. break;
  18670. case 'begincidchar':
  18671. parseCidChar(cMap, lexer);
  18672. break;
  18673. case 'beginbfrange':
  18674. parseBfRange(cMap, lexer);
  18675. break;
  18676. case 'begincidrange':
  18677. parseCidRange(cMap, lexer);
  18678. break;
  18679. }
  18680. }
  18681. }
  18682. if (!useCMap && embededUseCMap) {
  18683. // Load the usecmap definition from the file only if there wasn't one
  18684. // specified.
  18685. useCMap = embededUseCMap;
  18686. }
  18687. if (useCMap) {
  18688. extendCMap(cMap, builtInCMapParams, useCMap);
  18689. }
  18690. }
  18691. function extendCMap(cMap, builtInCMapParams, useCMap) {
  18692. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  18693. // If there aren't any code space ranges defined clone all the parent ones
  18694. // into this cMap.
  18695. if (cMap.numCodespaceRanges === 0) {
  18696. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  18697. for (var i = 0; i < useCodespaceRanges.length; i++) {
  18698. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  18699. }
  18700. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  18701. }
  18702. // Merge the map into the current one, making sure not to override
  18703. // any previously defined entries.
  18704. for (var key in cMap.useCMap.map) {
  18705. if (key in cMap.map) {
  18706. continue;
  18707. }
  18708. cMap.map[key] = cMap.useCMap.map[key];
  18709. }
  18710. }
  18711. function parseBinaryCMap(name, builtInCMapParams) {
  18712. var url = builtInCMapParams.url + name + '.bcmap';
  18713. var cMap = new CMap(true);
  18714. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  18715. extendCMap(cMap, builtInCMapParams, useCMap);
  18716. });
  18717. return cMap;
  18718. }
  18719. function createBuiltInCMap(name, builtInCMapParams) {
  18720. if (name === 'Identity-H') {
  18721. return new IdentityCMap(false, 2);
  18722. } else if (name === 'Identity-V') {
  18723. return new IdentityCMap(true, 2);
  18724. }
  18725. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  18726. error('Unknown cMap name: ' + name);
  18727. }
  18728. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  18729. if (builtInCMapParams.packed) {
  18730. return parseBinaryCMap(name, builtInCMapParams);
  18731. }
  18732. var request = new XMLHttpRequest();
  18733. var url = builtInCMapParams.url + name;
  18734. request.open('GET', url, false);
  18735. request.send(null);
  18736. if (request.status === 0 && /^https?:/i.test(url)) {
  18737. error('Unable to get cMap at: ' + url);
  18738. }
  18739. var cMap = new CMap(true);
  18740. var lexer = new Lexer(new StringStream(request.responseText));
  18741. parseCMap(cMap, lexer, builtInCMapParams, null);
  18742. return cMap;
  18743. }
  18744. return {
  18745. create: function (encoding, builtInCMapParams, useCMap) {
  18746. if (isName(encoding)) {
  18747. return createBuiltInCMap(encoding.name, builtInCMapParams);
  18748. } else if (isStream(encoding)) {
  18749. var cMap = new CMap();
  18750. var lexer = new Lexer(encoding);
  18751. try {
  18752. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  18753. } catch (e) {
  18754. warn('Invalid CMap data. ' + e);
  18755. }
  18756. return cMap;
  18757. }
  18758. error('Encoding required.');
  18759. }
  18760. };
  18761. })();
  18762. // Unicode Private Use Area
  18763. var PRIVATE_USE_OFFSET_START = 0xE000;
  18764. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  18765. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  18766. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  18767. // except for Type 3 fonts
  18768. var PDF_GLYPH_SPACE_UNITS = 1000;
  18769. // Hinting is currently disabled due to unknown problems on windows
  18770. // in tracemonkey and various other pdfs with type1 fonts.
  18771. var HINTING_ENABLED = false;
  18772. // Accented charactars are not displayed properly on windows, using this flag
  18773. // to control analysis of seac charstrings.
  18774. var SEAC_ANALYSIS_ENABLED = false;
  18775. var FontFlags = {
  18776. FixedPitch: 1,
  18777. Serif: 2,
  18778. Symbolic: 4,
  18779. Script: 8,
  18780. Nonsymbolic: 32,
  18781. Italic: 64,
  18782. AllCap: 65536,
  18783. SmallCap: 131072,
  18784. ForceBold: 262144
  18785. };
  18786. var Encodings = {
  18787. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18788. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18789. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  18790. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  18791. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  18792. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  18793. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  18794. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  18795. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  18796. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  18797. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  18798. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  18799. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  18800. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  18801. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  18802. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  18803. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  18804. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  18805. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  18806. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18807. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  18808. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  18809. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  18810. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  18811. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  18812. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  18813. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  18814. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  18815. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  18816. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  18817. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  18818. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  18819. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  18820. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  18821. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  18822. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  18823. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  18824. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  18825. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  18826. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  18827. 'Ydieresissmall'],
  18828. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18829. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18830. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  18831. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  18832. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  18833. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  18834. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  18835. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  18836. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  18837. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  18838. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  18839. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  18840. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  18841. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  18842. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  18843. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  18844. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  18845. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  18846. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  18847. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  18848. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  18849. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  18850. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  18851. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  18852. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  18853. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  18854. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  18855. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  18856. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  18857. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  18858. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  18859. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  18860. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  18861. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  18862. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  18863. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  18864. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  18865. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  18866. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  18867. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  18868. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18869. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18870. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18871. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  18872. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18873. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18874. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  18875. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  18876. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  18877. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  18878. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  18879. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  18880. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  18881. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  18882. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  18883. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  18884. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  18885. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  18886. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  18887. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  18888. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  18889. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  18890. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  18891. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  18892. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  18893. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  18894. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  18895. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  18896. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  18897. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  18898. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  18899. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  18900. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  18901. 'ogonek', 'caron'],
  18902. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18903. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18904. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18905. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  18906. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18907. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18908. 'less', 'equal', 'greater', 'question', 'at', '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', 'bracketleft', 'backslash', 'bracketright',
  18911. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  18912. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  18913. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  18914. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18915. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  18916. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  18917. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  18918. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  18919. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  18920. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  18921. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  18922. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  18923. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  18924. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  18925. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  18926. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  18927. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18928. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18929. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18930. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  18931. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18932. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18933. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  18934. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  18935. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  18936. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  18937. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  18938. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  18939. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  18940. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  18941. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  18942. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  18943. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  18944. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  18945. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  18946. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  18947. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  18948. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  18949. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  18950. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  18951. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  18952. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  18953. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  18954. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  18955. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  18956. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  18957. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  18958. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  18959. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  18960. 'ydieresis'],
  18961. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18962. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18963. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  18964. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  18965. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  18966. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  18967. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  18968. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  18969. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  18970. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  18971. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  18972. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  18973. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  18974. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  18975. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  18976. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18977. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  18978. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  18979. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  18980. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  18981. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  18982. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  18983. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  18984. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  18985. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  18986. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  18987. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  18988. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  18989. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  18990. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  18991. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  18992. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  18993. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  18994. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  18995. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  18996. 'bracerightbt'],
  18997. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18998. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18999. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  19000. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  19001. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  19002. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  19003. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  19004. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  19005. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  19006. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  19007. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  19008. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19009. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19010. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  19011. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  19012. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  19013. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  19014. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  19015. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  19016. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  19017. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  19018. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  19019. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  19020. 'a188', 'a189', 'a190', 'a191']
  19021. };
  19022. /**
  19023. * Hold a map of decoded fonts and of the standard fourteen Type1
  19024. * fonts and their acronyms.
  19025. */
  19026. var stdFontMap = {
  19027. 'ArialNarrow': 'Helvetica',
  19028. 'ArialNarrow-Bold': 'Helvetica-Bold',
  19029. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  19030. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  19031. 'ArialBlack': 'Helvetica',
  19032. 'ArialBlack-Bold': 'Helvetica-Bold',
  19033. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  19034. 'ArialBlack-Italic': 'Helvetica-Oblique',
  19035. 'Arial': 'Helvetica',
  19036. 'Arial-Bold': 'Helvetica-Bold',
  19037. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  19038. 'Arial-Italic': 'Helvetica-Oblique',
  19039. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  19040. 'Arial-BoldMT': 'Helvetica-Bold',
  19041. 'Arial-ItalicMT': 'Helvetica-Oblique',
  19042. 'ArialMT': 'Helvetica',
  19043. 'Courier-Bold': 'Courier-Bold',
  19044. 'Courier-BoldItalic': 'Courier-BoldOblique',
  19045. 'Courier-Italic': 'Courier-Oblique',
  19046. 'CourierNew': 'Courier',
  19047. 'CourierNew-Bold': 'Courier-Bold',
  19048. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  19049. 'CourierNew-Italic': 'Courier-Oblique',
  19050. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  19051. 'CourierNewPS-BoldMT': 'Courier-Bold',
  19052. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  19053. 'CourierNewPSMT': 'Courier',
  19054. 'Helvetica-Bold': 'Helvetica-Bold',
  19055. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  19056. 'Helvetica-Italic': 'Helvetica-Oblique',
  19057. 'Symbol-Bold': 'Symbol',
  19058. 'Symbol-BoldItalic': 'Symbol',
  19059. 'Symbol-Italic': 'Symbol',
  19060. 'TimesNewRoman': 'Times-Roman',
  19061. 'TimesNewRoman-Bold': 'Times-Bold',
  19062. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  19063. 'TimesNewRoman-Italic': 'Times-Italic',
  19064. 'TimesNewRomanPS': 'Times-Roman',
  19065. 'TimesNewRomanPS-Bold': 'Times-Bold',
  19066. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  19067. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  19068. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  19069. 'TimesNewRomanPS-Italic': 'Times-Italic',
  19070. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  19071. 'TimesNewRomanPSMT': 'Times-Roman',
  19072. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  19073. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  19074. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  19075. };
  19076. /**
  19077. * Holds the map of the non-standard fonts that might be included as a standard
  19078. * fonts without glyph data.
  19079. */
  19080. var nonStdFontMap = {
  19081. 'ComicSansMS': 'Comic Sans MS',
  19082. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  19083. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  19084. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  19085. 'LucidaConsole': 'Courier',
  19086. 'LucidaConsole-Bold': 'Courier-Bold',
  19087. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  19088. 'LucidaConsole-Italic': 'Courier-Oblique',
  19089. 'MS-Gothic': 'MS Gothic',
  19090. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  19091. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  19092. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  19093. 'MS-Mincho': 'MS Mincho',
  19094. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  19095. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  19096. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  19097. 'MS-PGothic': 'MS PGothic',
  19098. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  19099. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  19100. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  19101. 'MS-PMincho': 'MS PMincho',
  19102. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  19103. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  19104. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  19105. };
  19106. var serifFonts = {
  19107. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  19108. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  19109. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  19110. 'Arno': true, 'Aster': true, 'Aurora': true,
  19111. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  19112. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  19113. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  19114. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  19115. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  19116. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  19117. 'Cartier': true, 'Caslon': true, 'Catull': true,
  19118. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  19119. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  19120. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  19121. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  19122. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  19123. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  19124. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  19125. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  19126. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  19127. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  19128. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  19129. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  19130. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  19131. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  19132. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  19133. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  19134. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  19135. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  19136. 'Miller': true, 'Minion': true, 'Modern': true,
  19137. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  19138. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  19139. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  19140. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  19141. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  19142. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  19143. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  19144. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  19145. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  19146. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  19147. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  19148. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  19149. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  19150. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  19151. };
  19152. var symbolsFonts = {
  19153. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  19154. };
  19155. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  19156. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  19157. // glyphs, but common for some set of the standard fonts.
  19158. var GlyphMapForStandardFonts = {
  19159. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  19160. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  19161. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  19162. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  19163. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  19164. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  19165. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  19166. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  19167. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  19168. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  19169. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  19170. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  19171. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  19172. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  19173. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  19174. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  19175. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  19176. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  19177. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  19178. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  19179. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  19180. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  19181. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  19182. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  19183. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  19184. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  19185. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  19186. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  19187. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  19188. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  19189. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  19190. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  19191. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  19192. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  19193. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  19194. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  19195. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  19196. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  19197. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  19198. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  19199. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  19200. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  19201. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  19202. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  19203. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  19204. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  19205. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  19206. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  19207. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  19208. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  19209. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  19210. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  19211. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  19212. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  19213. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  19214. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  19215. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  19216. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  19217. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  19218. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  19219. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  19220. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  19221. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  19222. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  19223. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  19224. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  19225. };
  19226. // Some characters, e.g. copyrightserif, mapped to the private use area and
  19227. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  19228. // to the similar equivalents in the normal characters range.
  19229. function mapSpecialUnicodeValues(code) {
  19230. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  19231. return 0;
  19232. }
  19233. switch (code) {
  19234. case 0xF8E9: // copyrightsans
  19235. case 0xF6D9: // copyrightserif
  19236. return 0x00A9; // copyright
  19237. case 0xF8E8: // registersans
  19238. case 0xF6DA: // registerserif
  19239. return 0x00AE; // registered
  19240. case 0xF8EA: // trademarksans
  19241. case 0xF6DB: // trademarkserif
  19242. return 0x2122; // trademark
  19243. default:
  19244. return code;
  19245. }
  19246. }
  19247. var UnicodeRanges = [
  19248. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  19249. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  19250. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  19251. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  19252. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  19253. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  19254. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  19255. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  19256. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  19257. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  19258. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  19259. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  19260. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  19261. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  19262. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  19263. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  19264. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  19265. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  19266. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  19267. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  19268. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  19269. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  19270. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  19271. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  19272. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  19273. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  19274. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  19275. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  19276. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  19277. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  19278. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  19279. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  19280. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  19281. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  19282. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  19283. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  19284. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  19285. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  19286. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  19287. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  19288. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  19289. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  19290. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  19291. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  19292. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  19293. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  19294. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  19295. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  19296. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  19297. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  19298. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  19299. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  19300. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  19301. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  19302. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  19303. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  19304. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  19305. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  19306. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  19307. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  19308. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  19309. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  19310. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  19311. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  19312. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  19313. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  19314. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  19315. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  19316. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  19317. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  19318. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  19319. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  19320. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  19321. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  19322. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  19323. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  19324. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  19325. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  19326. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  19327. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  19328. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  19329. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  19330. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  19331. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  19332. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  19333. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  19334. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  19335. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  19336. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  19337. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  19338. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  19339. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  19340. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  19341. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  19342. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  19343. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  19344. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  19345. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  19346. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  19347. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  19348. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  19349. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  19350. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  19351. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  19352. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  19353. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  19354. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  19355. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  19356. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  19357. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  19358. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  19359. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  19360. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  19361. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  19362. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  19363. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  19364. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  19365. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  19366. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  19367. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  19368. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  19369. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  19370. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  19371. ];
  19372. var MacStandardGlyphOrdering = [
  19373. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  19374. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  19375. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  19376. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  19377. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  19378. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  19379. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  19380. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  19381. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  19382. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  19383. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  19384. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  19385. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  19386. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  19387. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  19388. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  19389. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  19390. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  19391. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  19392. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  19393. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  19394. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  19395. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  19396. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  19397. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  19398. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  19399. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  19400. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  19401. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  19402. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  19403. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  19404. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  19405. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  19406. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  19407. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  19408. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  19409. function getUnicodeRangeFor(value) {
  19410. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  19411. var range = UnicodeRanges[i];
  19412. if (value >= range.begin && value < range.end) {
  19413. return i;
  19414. }
  19415. }
  19416. return -1;
  19417. }
  19418. function isRTLRangeFor(value) {
  19419. var range = UnicodeRanges[13];
  19420. if (value >= range.begin && value < range.end) {
  19421. return true;
  19422. }
  19423. range = UnicodeRanges[11];
  19424. if (value >= range.begin && value < range.end) {
  19425. return true;
  19426. }
  19427. return false;
  19428. }
  19429. // The normalization table is obtained by filtering the Unicode characters
  19430. // database with <compat> entries.
  19431. var NormalizedUnicodes = {
  19432. '\u00A8': '\u0020\u0308',
  19433. '\u00AF': '\u0020\u0304',
  19434. '\u00B4': '\u0020\u0301',
  19435. '\u00B5': '\u03BC',
  19436. '\u00B8': '\u0020\u0327',
  19437. '\u0132': '\u0049\u004A',
  19438. '\u0133': '\u0069\u006A',
  19439. '\u013F': '\u004C\u00B7',
  19440. '\u0140': '\u006C\u00B7',
  19441. '\u0149': '\u02BC\u006E',
  19442. '\u017F': '\u0073',
  19443. '\u01C4': '\u0044\u017D',
  19444. '\u01C5': '\u0044\u017E',
  19445. '\u01C6': '\u0064\u017E',
  19446. '\u01C7': '\u004C\u004A',
  19447. '\u01C8': '\u004C\u006A',
  19448. '\u01C9': '\u006C\u006A',
  19449. '\u01CA': '\u004E\u004A',
  19450. '\u01CB': '\u004E\u006A',
  19451. '\u01CC': '\u006E\u006A',
  19452. '\u01F1': '\u0044\u005A',
  19453. '\u01F2': '\u0044\u007A',
  19454. '\u01F3': '\u0064\u007A',
  19455. '\u02D8': '\u0020\u0306',
  19456. '\u02D9': '\u0020\u0307',
  19457. '\u02DA': '\u0020\u030A',
  19458. '\u02DB': '\u0020\u0328',
  19459. '\u02DC': '\u0020\u0303',
  19460. '\u02DD': '\u0020\u030B',
  19461. '\u037A': '\u0020\u0345',
  19462. '\u0384': '\u0020\u0301',
  19463. '\u03D0': '\u03B2',
  19464. '\u03D1': '\u03B8',
  19465. '\u03D2': '\u03A5',
  19466. '\u03D5': '\u03C6',
  19467. '\u03D6': '\u03C0',
  19468. '\u03F0': '\u03BA',
  19469. '\u03F1': '\u03C1',
  19470. '\u03F2': '\u03C2',
  19471. '\u03F4': '\u0398',
  19472. '\u03F5': '\u03B5',
  19473. '\u03F9': '\u03A3',
  19474. '\u0587': '\u0565\u0582',
  19475. '\u0675': '\u0627\u0674',
  19476. '\u0676': '\u0648\u0674',
  19477. '\u0677': '\u06C7\u0674',
  19478. '\u0678': '\u064A\u0674',
  19479. '\u0E33': '\u0E4D\u0E32',
  19480. '\u0EB3': '\u0ECD\u0EB2',
  19481. '\u0EDC': '\u0EAB\u0E99',
  19482. '\u0EDD': '\u0EAB\u0EA1',
  19483. '\u0F77': '\u0FB2\u0F81',
  19484. '\u0F79': '\u0FB3\u0F81',
  19485. '\u1E9A': '\u0061\u02BE',
  19486. '\u1FBD': '\u0020\u0313',
  19487. '\u1FBF': '\u0020\u0313',
  19488. '\u1FC0': '\u0020\u0342',
  19489. '\u1FFE': '\u0020\u0314',
  19490. '\u2002': '\u0020',
  19491. '\u2003': '\u0020',
  19492. '\u2004': '\u0020',
  19493. '\u2005': '\u0020',
  19494. '\u2006': '\u0020',
  19495. '\u2008': '\u0020',
  19496. '\u2009': '\u0020',
  19497. '\u200A': '\u0020',
  19498. '\u2017': '\u0020\u0333',
  19499. '\u2024': '\u002E',
  19500. '\u2025': '\u002E\u002E',
  19501. '\u2026': '\u002E\u002E\u002E',
  19502. '\u2033': '\u2032\u2032',
  19503. '\u2034': '\u2032\u2032\u2032',
  19504. '\u2036': '\u2035\u2035',
  19505. '\u2037': '\u2035\u2035\u2035',
  19506. '\u203C': '\u0021\u0021',
  19507. '\u203E': '\u0020\u0305',
  19508. '\u2047': '\u003F\u003F',
  19509. '\u2048': '\u003F\u0021',
  19510. '\u2049': '\u0021\u003F',
  19511. '\u2057': '\u2032\u2032\u2032\u2032',
  19512. '\u205F': '\u0020',
  19513. '\u20A8': '\u0052\u0073',
  19514. '\u2100': '\u0061\u002F\u0063',
  19515. '\u2101': '\u0061\u002F\u0073',
  19516. '\u2103': '\u00B0\u0043',
  19517. '\u2105': '\u0063\u002F\u006F',
  19518. '\u2106': '\u0063\u002F\u0075',
  19519. '\u2107': '\u0190',
  19520. '\u2109': '\u00B0\u0046',
  19521. '\u2116': '\u004E\u006F',
  19522. '\u2121': '\u0054\u0045\u004C',
  19523. '\u2135': '\u05D0',
  19524. '\u2136': '\u05D1',
  19525. '\u2137': '\u05D2',
  19526. '\u2138': '\u05D3',
  19527. '\u213B': '\u0046\u0041\u0058',
  19528. '\u2160': '\u0049',
  19529. '\u2161': '\u0049\u0049',
  19530. '\u2162': '\u0049\u0049\u0049',
  19531. '\u2163': '\u0049\u0056',
  19532. '\u2164': '\u0056',
  19533. '\u2165': '\u0056\u0049',
  19534. '\u2166': '\u0056\u0049\u0049',
  19535. '\u2167': '\u0056\u0049\u0049\u0049',
  19536. '\u2168': '\u0049\u0058',
  19537. '\u2169': '\u0058',
  19538. '\u216A': '\u0058\u0049',
  19539. '\u216B': '\u0058\u0049\u0049',
  19540. '\u216C': '\u004C',
  19541. '\u216D': '\u0043',
  19542. '\u216E': '\u0044',
  19543. '\u216F': '\u004D',
  19544. '\u2170': '\u0069',
  19545. '\u2171': '\u0069\u0069',
  19546. '\u2172': '\u0069\u0069\u0069',
  19547. '\u2173': '\u0069\u0076',
  19548. '\u2174': '\u0076',
  19549. '\u2175': '\u0076\u0069',
  19550. '\u2176': '\u0076\u0069\u0069',
  19551. '\u2177': '\u0076\u0069\u0069\u0069',
  19552. '\u2178': '\u0069\u0078',
  19553. '\u2179': '\u0078',
  19554. '\u217A': '\u0078\u0069',
  19555. '\u217B': '\u0078\u0069\u0069',
  19556. '\u217C': '\u006C',
  19557. '\u217D': '\u0063',
  19558. '\u217E': '\u0064',
  19559. '\u217F': '\u006D',
  19560. '\u222C': '\u222B\u222B',
  19561. '\u222D': '\u222B\u222B\u222B',
  19562. '\u222F': '\u222E\u222E',
  19563. '\u2230': '\u222E\u222E\u222E',
  19564. '\u2474': '\u0028\u0031\u0029',
  19565. '\u2475': '\u0028\u0032\u0029',
  19566. '\u2476': '\u0028\u0033\u0029',
  19567. '\u2477': '\u0028\u0034\u0029',
  19568. '\u2478': '\u0028\u0035\u0029',
  19569. '\u2479': '\u0028\u0036\u0029',
  19570. '\u247A': '\u0028\u0037\u0029',
  19571. '\u247B': '\u0028\u0038\u0029',
  19572. '\u247C': '\u0028\u0039\u0029',
  19573. '\u247D': '\u0028\u0031\u0030\u0029',
  19574. '\u247E': '\u0028\u0031\u0031\u0029',
  19575. '\u247F': '\u0028\u0031\u0032\u0029',
  19576. '\u2480': '\u0028\u0031\u0033\u0029',
  19577. '\u2481': '\u0028\u0031\u0034\u0029',
  19578. '\u2482': '\u0028\u0031\u0035\u0029',
  19579. '\u2483': '\u0028\u0031\u0036\u0029',
  19580. '\u2484': '\u0028\u0031\u0037\u0029',
  19581. '\u2485': '\u0028\u0031\u0038\u0029',
  19582. '\u2486': '\u0028\u0031\u0039\u0029',
  19583. '\u2487': '\u0028\u0032\u0030\u0029',
  19584. '\u2488': '\u0031\u002E',
  19585. '\u2489': '\u0032\u002E',
  19586. '\u248A': '\u0033\u002E',
  19587. '\u248B': '\u0034\u002E',
  19588. '\u248C': '\u0035\u002E',
  19589. '\u248D': '\u0036\u002E',
  19590. '\u248E': '\u0037\u002E',
  19591. '\u248F': '\u0038\u002E',
  19592. '\u2490': '\u0039\u002E',
  19593. '\u2491': '\u0031\u0030\u002E',
  19594. '\u2492': '\u0031\u0031\u002E',
  19595. '\u2493': '\u0031\u0032\u002E',
  19596. '\u2494': '\u0031\u0033\u002E',
  19597. '\u2495': '\u0031\u0034\u002E',
  19598. '\u2496': '\u0031\u0035\u002E',
  19599. '\u2497': '\u0031\u0036\u002E',
  19600. '\u2498': '\u0031\u0037\u002E',
  19601. '\u2499': '\u0031\u0038\u002E',
  19602. '\u249A': '\u0031\u0039\u002E',
  19603. '\u249B': '\u0032\u0030\u002E',
  19604. '\u249C': '\u0028\u0061\u0029',
  19605. '\u249D': '\u0028\u0062\u0029',
  19606. '\u249E': '\u0028\u0063\u0029',
  19607. '\u249F': '\u0028\u0064\u0029',
  19608. '\u24A0': '\u0028\u0065\u0029',
  19609. '\u24A1': '\u0028\u0066\u0029',
  19610. '\u24A2': '\u0028\u0067\u0029',
  19611. '\u24A3': '\u0028\u0068\u0029',
  19612. '\u24A4': '\u0028\u0069\u0029',
  19613. '\u24A5': '\u0028\u006A\u0029',
  19614. '\u24A6': '\u0028\u006B\u0029',
  19615. '\u24A7': '\u0028\u006C\u0029',
  19616. '\u24A8': '\u0028\u006D\u0029',
  19617. '\u24A9': '\u0028\u006E\u0029',
  19618. '\u24AA': '\u0028\u006F\u0029',
  19619. '\u24AB': '\u0028\u0070\u0029',
  19620. '\u24AC': '\u0028\u0071\u0029',
  19621. '\u24AD': '\u0028\u0072\u0029',
  19622. '\u24AE': '\u0028\u0073\u0029',
  19623. '\u24AF': '\u0028\u0074\u0029',
  19624. '\u24B0': '\u0028\u0075\u0029',
  19625. '\u24B1': '\u0028\u0076\u0029',
  19626. '\u24B2': '\u0028\u0077\u0029',
  19627. '\u24B3': '\u0028\u0078\u0029',
  19628. '\u24B4': '\u0028\u0079\u0029',
  19629. '\u24B5': '\u0028\u007A\u0029',
  19630. '\u2A0C': '\u222B\u222B\u222B\u222B',
  19631. '\u2A74': '\u003A\u003A\u003D',
  19632. '\u2A75': '\u003D\u003D',
  19633. '\u2A76': '\u003D\u003D\u003D',
  19634. '\u2E9F': '\u6BCD',
  19635. '\u2EF3': '\u9F9F',
  19636. '\u2F00': '\u4E00',
  19637. '\u2F01': '\u4E28',
  19638. '\u2F02': '\u4E36',
  19639. '\u2F03': '\u4E3F',
  19640. '\u2F04': '\u4E59',
  19641. '\u2F05': '\u4E85',
  19642. '\u2F06': '\u4E8C',
  19643. '\u2F07': '\u4EA0',
  19644. '\u2F08': '\u4EBA',
  19645. '\u2F09': '\u513F',
  19646. '\u2F0A': '\u5165',
  19647. '\u2F0B': '\u516B',
  19648. '\u2F0C': '\u5182',
  19649. '\u2F0D': '\u5196',
  19650. '\u2F0E': '\u51AB',
  19651. '\u2F0F': '\u51E0',
  19652. '\u2F10': '\u51F5',
  19653. '\u2F11': '\u5200',
  19654. '\u2F12': '\u529B',
  19655. '\u2F13': '\u52F9',
  19656. '\u2F14': '\u5315',
  19657. '\u2F15': '\u531A',
  19658. '\u2F16': '\u5338',
  19659. '\u2F17': '\u5341',
  19660. '\u2F18': '\u535C',
  19661. '\u2F19': '\u5369',
  19662. '\u2F1A': '\u5382',
  19663. '\u2F1B': '\u53B6',
  19664. '\u2F1C': '\u53C8',
  19665. '\u2F1D': '\u53E3',
  19666. '\u2F1E': '\u56D7',
  19667. '\u2F1F': '\u571F',
  19668. '\u2F20': '\u58EB',
  19669. '\u2F21': '\u5902',
  19670. '\u2F22': '\u590A',
  19671. '\u2F23': '\u5915',
  19672. '\u2F24': '\u5927',
  19673. '\u2F25': '\u5973',
  19674. '\u2F26': '\u5B50',
  19675. '\u2F27': '\u5B80',
  19676. '\u2F28': '\u5BF8',
  19677. '\u2F29': '\u5C0F',
  19678. '\u2F2A': '\u5C22',
  19679. '\u2F2B': '\u5C38',
  19680. '\u2F2C': '\u5C6E',
  19681. '\u2F2D': '\u5C71',
  19682. '\u2F2E': '\u5DDB',
  19683. '\u2F2F': '\u5DE5',
  19684. '\u2F30': '\u5DF1',
  19685. '\u2F31': '\u5DFE',
  19686. '\u2F32': '\u5E72',
  19687. '\u2F33': '\u5E7A',
  19688. '\u2F34': '\u5E7F',
  19689. '\u2F35': '\u5EF4',
  19690. '\u2F36': '\u5EFE',
  19691. '\u2F37': '\u5F0B',
  19692. '\u2F38': '\u5F13',
  19693. '\u2F39': '\u5F50',
  19694. '\u2F3A': '\u5F61',
  19695. '\u2F3B': '\u5F73',
  19696. '\u2F3C': '\u5FC3',
  19697. '\u2F3D': '\u6208',
  19698. '\u2F3E': '\u6236',
  19699. '\u2F3F': '\u624B',
  19700. '\u2F40': '\u652F',
  19701. '\u2F41': '\u6534',
  19702. '\u2F42': '\u6587',
  19703. '\u2F43': '\u6597',
  19704. '\u2F44': '\u65A4',
  19705. '\u2F45': '\u65B9',
  19706. '\u2F46': '\u65E0',
  19707. '\u2F47': '\u65E5',
  19708. '\u2F48': '\u66F0',
  19709. '\u2F49': '\u6708',
  19710. '\u2F4A': '\u6728',
  19711. '\u2F4B': '\u6B20',
  19712. '\u2F4C': '\u6B62',
  19713. '\u2F4D': '\u6B79',
  19714. '\u2F4E': '\u6BB3',
  19715. '\u2F4F': '\u6BCB',
  19716. '\u2F50': '\u6BD4',
  19717. '\u2F51': '\u6BDB',
  19718. '\u2F52': '\u6C0F',
  19719. '\u2F53': '\u6C14',
  19720. '\u2F54': '\u6C34',
  19721. '\u2F55': '\u706B',
  19722. '\u2F56': '\u722A',
  19723. '\u2F57': '\u7236',
  19724. '\u2F58': '\u723B',
  19725. '\u2F59': '\u723F',
  19726. '\u2F5A': '\u7247',
  19727. '\u2F5B': '\u7259',
  19728. '\u2F5C': '\u725B',
  19729. '\u2F5D': '\u72AC',
  19730. '\u2F5E': '\u7384',
  19731. '\u2F5F': '\u7389',
  19732. '\u2F60': '\u74DC',
  19733. '\u2F61': '\u74E6',
  19734. '\u2F62': '\u7518',
  19735. '\u2F63': '\u751F',
  19736. '\u2F64': '\u7528',
  19737. '\u2F65': '\u7530',
  19738. '\u2F66': '\u758B',
  19739. '\u2F67': '\u7592',
  19740. '\u2F68': '\u7676',
  19741. '\u2F69': '\u767D',
  19742. '\u2F6A': '\u76AE',
  19743. '\u2F6B': '\u76BF',
  19744. '\u2F6C': '\u76EE',
  19745. '\u2F6D': '\u77DB',
  19746. '\u2F6E': '\u77E2',
  19747. '\u2F6F': '\u77F3',
  19748. '\u2F70': '\u793A',
  19749. '\u2F71': '\u79B8',
  19750. '\u2F72': '\u79BE',
  19751. '\u2F73': '\u7A74',
  19752. '\u2F74': '\u7ACB',
  19753. '\u2F75': '\u7AF9',
  19754. '\u2F76': '\u7C73',
  19755. '\u2F77': '\u7CF8',
  19756. '\u2F78': '\u7F36',
  19757. '\u2F79': '\u7F51',
  19758. '\u2F7A': '\u7F8A',
  19759. '\u2F7B': '\u7FBD',
  19760. '\u2F7C': '\u8001',
  19761. '\u2F7D': '\u800C',
  19762. '\u2F7E': '\u8012',
  19763. '\u2F7F': '\u8033',
  19764. '\u2F80': '\u807F',
  19765. '\u2F81': '\u8089',
  19766. '\u2F82': '\u81E3',
  19767. '\u2F83': '\u81EA',
  19768. '\u2F84': '\u81F3',
  19769. '\u2F85': '\u81FC',
  19770. '\u2F86': '\u820C',
  19771. '\u2F87': '\u821B',
  19772. '\u2F88': '\u821F',
  19773. '\u2F89': '\u826E',
  19774. '\u2F8A': '\u8272',
  19775. '\u2F8B': '\u8278',
  19776. '\u2F8C': '\u864D',
  19777. '\u2F8D': '\u866B',
  19778. '\u2F8E': '\u8840',
  19779. '\u2F8F': '\u884C',
  19780. '\u2F90': '\u8863',
  19781. '\u2F91': '\u897E',
  19782. '\u2F92': '\u898B',
  19783. '\u2F93': '\u89D2',
  19784. '\u2F94': '\u8A00',
  19785. '\u2F95': '\u8C37',
  19786. '\u2F96': '\u8C46',
  19787. '\u2F97': '\u8C55',
  19788. '\u2F98': '\u8C78',
  19789. '\u2F99': '\u8C9D',
  19790. '\u2F9A': '\u8D64',
  19791. '\u2F9B': '\u8D70',
  19792. '\u2F9C': '\u8DB3',
  19793. '\u2F9D': '\u8EAB',
  19794. '\u2F9E': '\u8ECA',
  19795. '\u2F9F': '\u8F9B',
  19796. '\u2FA0': '\u8FB0',
  19797. '\u2FA1': '\u8FB5',
  19798. '\u2FA2': '\u9091',
  19799. '\u2FA3': '\u9149',
  19800. '\u2FA4': '\u91C6',
  19801. '\u2FA5': '\u91CC',
  19802. '\u2FA6': '\u91D1',
  19803. '\u2FA7': '\u9577',
  19804. '\u2FA8': '\u9580',
  19805. '\u2FA9': '\u961C',
  19806. '\u2FAA': '\u96B6',
  19807. '\u2FAB': '\u96B9',
  19808. '\u2FAC': '\u96E8',
  19809. '\u2FAD': '\u9751',
  19810. '\u2FAE': '\u975E',
  19811. '\u2FAF': '\u9762',
  19812. '\u2FB0': '\u9769',
  19813. '\u2FB1': '\u97CB',
  19814. '\u2FB2': '\u97ED',
  19815. '\u2FB3': '\u97F3',
  19816. '\u2FB4': '\u9801',
  19817. '\u2FB5': '\u98A8',
  19818. '\u2FB6': '\u98DB',
  19819. '\u2FB7': '\u98DF',
  19820. '\u2FB8': '\u9996',
  19821. '\u2FB9': '\u9999',
  19822. '\u2FBA': '\u99AC',
  19823. '\u2FBB': '\u9AA8',
  19824. '\u2FBC': '\u9AD8',
  19825. '\u2FBD': '\u9ADF',
  19826. '\u2FBE': '\u9B25',
  19827. '\u2FBF': '\u9B2F',
  19828. '\u2FC0': '\u9B32',
  19829. '\u2FC1': '\u9B3C',
  19830. '\u2FC2': '\u9B5A',
  19831. '\u2FC3': '\u9CE5',
  19832. '\u2FC4': '\u9E75',
  19833. '\u2FC5': '\u9E7F',
  19834. '\u2FC6': '\u9EA5',
  19835. '\u2FC7': '\u9EBB',
  19836. '\u2FC8': '\u9EC3',
  19837. '\u2FC9': '\u9ECD',
  19838. '\u2FCA': '\u9ED1',
  19839. '\u2FCB': '\u9EF9',
  19840. '\u2FCC': '\u9EFD',
  19841. '\u2FCD': '\u9F0E',
  19842. '\u2FCE': '\u9F13',
  19843. '\u2FCF': '\u9F20',
  19844. '\u2FD0': '\u9F3B',
  19845. '\u2FD1': '\u9F4A',
  19846. '\u2FD2': '\u9F52',
  19847. '\u2FD3': '\u9F8D',
  19848. '\u2FD4': '\u9F9C',
  19849. '\u2FD5': '\u9FA0',
  19850. '\u3036': '\u3012',
  19851. '\u3038': '\u5341',
  19852. '\u3039': '\u5344',
  19853. '\u303A': '\u5345',
  19854. '\u309B': '\u0020\u3099',
  19855. '\u309C': '\u0020\u309A',
  19856. '\u3131': '\u1100',
  19857. '\u3132': '\u1101',
  19858. '\u3133': '\u11AA',
  19859. '\u3134': '\u1102',
  19860. '\u3135': '\u11AC',
  19861. '\u3136': '\u11AD',
  19862. '\u3137': '\u1103',
  19863. '\u3138': '\u1104',
  19864. '\u3139': '\u1105',
  19865. '\u313A': '\u11B0',
  19866. '\u313B': '\u11B1',
  19867. '\u313C': '\u11B2',
  19868. '\u313D': '\u11B3',
  19869. '\u313E': '\u11B4',
  19870. '\u313F': '\u11B5',
  19871. '\u3140': '\u111A',
  19872. '\u3141': '\u1106',
  19873. '\u3142': '\u1107',
  19874. '\u3143': '\u1108',
  19875. '\u3144': '\u1121',
  19876. '\u3145': '\u1109',
  19877. '\u3146': '\u110A',
  19878. '\u3147': '\u110B',
  19879. '\u3148': '\u110C',
  19880. '\u3149': '\u110D',
  19881. '\u314A': '\u110E',
  19882. '\u314B': '\u110F',
  19883. '\u314C': '\u1110',
  19884. '\u314D': '\u1111',
  19885. '\u314E': '\u1112',
  19886. '\u314F': '\u1161',
  19887. '\u3150': '\u1162',
  19888. '\u3151': '\u1163',
  19889. '\u3152': '\u1164',
  19890. '\u3153': '\u1165',
  19891. '\u3154': '\u1166',
  19892. '\u3155': '\u1167',
  19893. '\u3156': '\u1168',
  19894. '\u3157': '\u1169',
  19895. '\u3158': '\u116A',
  19896. '\u3159': '\u116B',
  19897. '\u315A': '\u116C',
  19898. '\u315B': '\u116D',
  19899. '\u315C': '\u116E',
  19900. '\u315D': '\u116F',
  19901. '\u315E': '\u1170',
  19902. '\u315F': '\u1171',
  19903. '\u3160': '\u1172',
  19904. '\u3161': '\u1173',
  19905. '\u3162': '\u1174',
  19906. '\u3163': '\u1175',
  19907. '\u3164': '\u1160',
  19908. '\u3165': '\u1114',
  19909. '\u3166': '\u1115',
  19910. '\u3167': '\u11C7',
  19911. '\u3168': '\u11C8',
  19912. '\u3169': '\u11CC',
  19913. '\u316A': '\u11CE',
  19914. '\u316B': '\u11D3',
  19915. '\u316C': '\u11D7',
  19916. '\u316D': '\u11D9',
  19917. '\u316E': '\u111C',
  19918. '\u316F': '\u11DD',
  19919. '\u3170': '\u11DF',
  19920. '\u3171': '\u111D',
  19921. '\u3172': '\u111E',
  19922. '\u3173': '\u1120',
  19923. '\u3174': '\u1122',
  19924. '\u3175': '\u1123',
  19925. '\u3176': '\u1127',
  19926. '\u3177': '\u1129',
  19927. '\u3178': '\u112B',
  19928. '\u3179': '\u112C',
  19929. '\u317A': '\u112D',
  19930. '\u317B': '\u112E',
  19931. '\u317C': '\u112F',
  19932. '\u317D': '\u1132',
  19933. '\u317E': '\u1136',
  19934. '\u317F': '\u1140',
  19935. '\u3180': '\u1147',
  19936. '\u3181': '\u114C',
  19937. '\u3182': '\u11F1',
  19938. '\u3183': '\u11F2',
  19939. '\u3184': '\u1157',
  19940. '\u3185': '\u1158',
  19941. '\u3186': '\u1159',
  19942. '\u3187': '\u1184',
  19943. '\u3188': '\u1185',
  19944. '\u3189': '\u1188',
  19945. '\u318A': '\u1191',
  19946. '\u318B': '\u1192',
  19947. '\u318C': '\u1194',
  19948. '\u318D': '\u119E',
  19949. '\u318E': '\u11A1',
  19950. '\u3200': '\u0028\u1100\u0029',
  19951. '\u3201': '\u0028\u1102\u0029',
  19952. '\u3202': '\u0028\u1103\u0029',
  19953. '\u3203': '\u0028\u1105\u0029',
  19954. '\u3204': '\u0028\u1106\u0029',
  19955. '\u3205': '\u0028\u1107\u0029',
  19956. '\u3206': '\u0028\u1109\u0029',
  19957. '\u3207': '\u0028\u110B\u0029',
  19958. '\u3208': '\u0028\u110C\u0029',
  19959. '\u3209': '\u0028\u110E\u0029',
  19960. '\u320A': '\u0028\u110F\u0029',
  19961. '\u320B': '\u0028\u1110\u0029',
  19962. '\u320C': '\u0028\u1111\u0029',
  19963. '\u320D': '\u0028\u1112\u0029',
  19964. '\u320E': '\u0028\u1100\u1161\u0029',
  19965. '\u320F': '\u0028\u1102\u1161\u0029',
  19966. '\u3210': '\u0028\u1103\u1161\u0029',
  19967. '\u3211': '\u0028\u1105\u1161\u0029',
  19968. '\u3212': '\u0028\u1106\u1161\u0029',
  19969. '\u3213': '\u0028\u1107\u1161\u0029',
  19970. '\u3214': '\u0028\u1109\u1161\u0029',
  19971. '\u3215': '\u0028\u110B\u1161\u0029',
  19972. '\u3216': '\u0028\u110C\u1161\u0029',
  19973. '\u3217': '\u0028\u110E\u1161\u0029',
  19974. '\u3218': '\u0028\u110F\u1161\u0029',
  19975. '\u3219': '\u0028\u1110\u1161\u0029',
  19976. '\u321A': '\u0028\u1111\u1161\u0029',
  19977. '\u321B': '\u0028\u1112\u1161\u0029',
  19978. '\u321C': '\u0028\u110C\u116E\u0029',
  19979. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  19980. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  19981. '\u3220': '\u0028\u4E00\u0029',
  19982. '\u3221': '\u0028\u4E8C\u0029',
  19983. '\u3222': '\u0028\u4E09\u0029',
  19984. '\u3223': '\u0028\u56DB\u0029',
  19985. '\u3224': '\u0028\u4E94\u0029',
  19986. '\u3225': '\u0028\u516D\u0029',
  19987. '\u3226': '\u0028\u4E03\u0029',
  19988. '\u3227': '\u0028\u516B\u0029',
  19989. '\u3228': '\u0028\u4E5D\u0029',
  19990. '\u3229': '\u0028\u5341\u0029',
  19991. '\u322A': '\u0028\u6708\u0029',
  19992. '\u322B': '\u0028\u706B\u0029',
  19993. '\u322C': '\u0028\u6C34\u0029',
  19994. '\u322D': '\u0028\u6728\u0029',
  19995. '\u322E': '\u0028\u91D1\u0029',
  19996. '\u322F': '\u0028\u571F\u0029',
  19997. '\u3230': '\u0028\u65E5\u0029',
  19998. '\u3231': '\u0028\u682A\u0029',
  19999. '\u3232': '\u0028\u6709\u0029',
  20000. '\u3233': '\u0028\u793E\u0029',
  20001. '\u3234': '\u0028\u540D\u0029',
  20002. '\u3235': '\u0028\u7279\u0029',
  20003. '\u3236': '\u0028\u8CA1\u0029',
  20004. '\u3237': '\u0028\u795D\u0029',
  20005. '\u3238': '\u0028\u52B4\u0029',
  20006. '\u3239': '\u0028\u4EE3\u0029',
  20007. '\u323A': '\u0028\u547C\u0029',
  20008. '\u323B': '\u0028\u5B66\u0029',
  20009. '\u323C': '\u0028\u76E3\u0029',
  20010. '\u323D': '\u0028\u4F01\u0029',
  20011. '\u323E': '\u0028\u8CC7\u0029',
  20012. '\u323F': '\u0028\u5354\u0029',
  20013. '\u3240': '\u0028\u796D\u0029',
  20014. '\u3241': '\u0028\u4F11\u0029',
  20015. '\u3242': '\u0028\u81EA\u0029',
  20016. '\u3243': '\u0028\u81F3\u0029',
  20017. '\u32C0': '\u0031\u6708',
  20018. '\u32C1': '\u0032\u6708',
  20019. '\u32C2': '\u0033\u6708',
  20020. '\u32C3': '\u0034\u6708',
  20021. '\u32C4': '\u0035\u6708',
  20022. '\u32C5': '\u0036\u6708',
  20023. '\u32C6': '\u0037\u6708',
  20024. '\u32C7': '\u0038\u6708',
  20025. '\u32C8': '\u0039\u6708',
  20026. '\u32C9': '\u0031\u0030\u6708',
  20027. '\u32CA': '\u0031\u0031\u6708',
  20028. '\u32CB': '\u0031\u0032\u6708',
  20029. '\u3358': '\u0030\u70B9',
  20030. '\u3359': '\u0031\u70B9',
  20031. '\u335A': '\u0032\u70B9',
  20032. '\u335B': '\u0033\u70B9',
  20033. '\u335C': '\u0034\u70B9',
  20034. '\u335D': '\u0035\u70B9',
  20035. '\u335E': '\u0036\u70B9',
  20036. '\u335F': '\u0037\u70B9',
  20037. '\u3360': '\u0038\u70B9',
  20038. '\u3361': '\u0039\u70B9',
  20039. '\u3362': '\u0031\u0030\u70B9',
  20040. '\u3363': '\u0031\u0031\u70B9',
  20041. '\u3364': '\u0031\u0032\u70B9',
  20042. '\u3365': '\u0031\u0033\u70B9',
  20043. '\u3366': '\u0031\u0034\u70B9',
  20044. '\u3367': '\u0031\u0035\u70B9',
  20045. '\u3368': '\u0031\u0036\u70B9',
  20046. '\u3369': '\u0031\u0037\u70B9',
  20047. '\u336A': '\u0031\u0038\u70B9',
  20048. '\u336B': '\u0031\u0039\u70B9',
  20049. '\u336C': '\u0032\u0030\u70B9',
  20050. '\u336D': '\u0032\u0031\u70B9',
  20051. '\u336E': '\u0032\u0032\u70B9',
  20052. '\u336F': '\u0032\u0033\u70B9',
  20053. '\u3370': '\u0032\u0034\u70B9',
  20054. '\u33E0': '\u0031\u65E5',
  20055. '\u33E1': '\u0032\u65E5',
  20056. '\u33E2': '\u0033\u65E5',
  20057. '\u33E3': '\u0034\u65E5',
  20058. '\u33E4': '\u0035\u65E5',
  20059. '\u33E5': '\u0036\u65E5',
  20060. '\u33E6': '\u0037\u65E5',
  20061. '\u33E7': '\u0038\u65E5',
  20062. '\u33E8': '\u0039\u65E5',
  20063. '\u33E9': '\u0031\u0030\u65E5',
  20064. '\u33EA': '\u0031\u0031\u65E5',
  20065. '\u33EB': '\u0031\u0032\u65E5',
  20066. '\u33EC': '\u0031\u0033\u65E5',
  20067. '\u33ED': '\u0031\u0034\u65E5',
  20068. '\u33EE': '\u0031\u0035\u65E5',
  20069. '\u33EF': '\u0031\u0036\u65E5',
  20070. '\u33F0': '\u0031\u0037\u65E5',
  20071. '\u33F1': '\u0031\u0038\u65E5',
  20072. '\u33F2': '\u0031\u0039\u65E5',
  20073. '\u33F3': '\u0032\u0030\u65E5',
  20074. '\u33F4': '\u0032\u0031\u65E5',
  20075. '\u33F5': '\u0032\u0032\u65E5',
  20076. '\u33F6': '\u0032\u0033\u65E5',
  20077. '\u33F7': '\u0032\u0034\u65E5',
  20078. '\u33F8': '\u0032\u0035\u65E5',
  20079. '\u33F9': '\u0032\u0036\u65E5',
  20080. '\u33FA': '\u0032\u0037\u65E5',
  20081. '\u33FB': '\u0032\u0038\u65E5',
  20082. '\u33FC': '\u0032\u0039\u65E5',
  20083. '\u33FD': '\u0033\u0030\u65E5',
  20084. '\u33FE': '\u0033\u0031\u65E5',
  20085. '\uFB00': '\u0066\u0066',
  20086. '\uFB01': '\u0066\u0069',
  20087. '\uFB02': '\u0066\u006C',
  20088. '\uFB03': '\u0066\u0066\u0069',
  20089. '\uFB04': '\u0066\u0066\u006C',
  20090. '\uFB05': '\u017F\u0074',
  20091. '\uFB06': '\u0073\u0074',
  20092. '\uFB13': '\u0574\u0576',
  20093. '\uFB14': '\u0574\u0565',
  20094. '\uFB15': '\u0574\u056B',
  20095. '\uFB16': '\u057E\u0576',
  20096. '\uFB17': '\u0574\u056D',
  20097. '\uFB4F': '\u05D0\u05DC',
  20098. '\uFB50': '\u0671',
  20099. '\uFB51': '\u0671',
  20100. '\uFB52': '\u067B',
  20101. '\uFB53': '\u067B',
  20102. '\uFB54': '\u067B',
  20103. '\uFB55': '\u067B',
  20104. '\uFB56': '\u067E',
  20105. '\uFB57': '\u067E',
  20106. '\uFB58': '\u067E',
  20107. '\uFB59': '\u067E',
  20108. '\uFB5A': '\u0680',
  20109. '\uFB5B': '\u0680',
  20110. '\uFB5C': '\u0680',
  20111. '\uFB5D': '\u0680',
  20112. '\uFB5E': '\u067A',
  20113. '\uFB5F': '\u067A',
  20114. '\uFB60': '\u067A',
  20115. '\uFB61': '\u067A',
  20116. '\uFB62': '\u067F',
  20117. '\uFB63': '\u067F',
  20118. '\uFB64': '\u067F',
  20119. '\uFB65': '\u067F',
  20120. '\uFB66': '\u0679',
  20121. '\uFB67': '\u0679',
  20122. '\uFB68': '\u0679',
  20123. '\uFB69': '\u0679',
  20124. '\uFB6A': '\u06A4',
  20125. '\uFB6B': '\u06A4',
  20126. '\uFB6C': '\u06A4',
  20127. '\uFB6D': '\u06A4',
  20128. '\uFB6E': '\u06A6',
  20129. '\uFB6F': '\u06A6',
  20130. '\uFB70': '\u06A6',
  20131. '\uFB71': '\u06A6',
  20132. '\uFB72': '\u0684',
  20133. '\uFB73': '\u0684',
  20134. '\uFB74': '\u0684',
  20135. '\uFB75': '\u0684',
  20136. '\uFB76': '\u0683',
  20137. '\uFB77': '\u0683',
  20138. '\uFB78': '\u0683',
  20139. '\uFB79': '\u0683',
  20140. '\uFB7A': '\u0686',
  20141. '\uFB7B': '\u0686',
  20142. '\uFB7C': '\u0686',
  20143. '\uFB7D': '\u0686',
  20144. '\uFB7E': '\u0687',
  20145. '\uFB7F': '\u0687',
  20146. '\uFB80': '\u0687',
  20147. '\uFB81': '\u0687',
  20148. '\uFB82': '\u068D',
  20149. '\uFB83': '\u068D',
  20150. '\uFB84': '\u068C',
  20151. '\uFB85': '\u068C',
  20152. '\uFB86': '\u068E',
  20153. '\uFB87': '\u068E',
  20154. '\uFB88': '\u0688',
  20155. '\uFB89': '\u0688',
  20156. '\uFB8A': '\u0698',
  20157. '\uFB8B': '\u0698',
  20158. '\uFB8C': '\u0691',
  20159. '\uFB8D': '\u0691',
  20160. '\uFB8E': '\u06A9',
  20161. '\uFB8F': '\u06A9',
  20162. '\uFB90': '\u06A9',
  20163. '\uFB91': '\u06A9',
  20164. '\uFB92': '\u06AF',
  20165. '\uFB93': '\u06AF',
  20166. '\uFB94': '\u06AF',
  20167. '\uFB95': '\u06AF',
  20168. '\uFB96': '\u06B3',
  20169. '\uFB97': '\u06B3',
  20170. '\uFB98': '\u06B3',
  20171. '\uFB99': '\u06B3',
  20172. '\uFB9A': '\u06B1',
  20173. '\uFB9B': '\u06B1',
  20174. '\uFB9C': '\u06B1',
  20175. '\uFB9D': '\u06B1',
  20176. '\uFB9E': '\u06BA',
  20177. '\uFB9F': '\u06BA',
  20178. '\uFBA0': '\u06BB',
  20179. '\uFBA1': '\u06BB',
  20180. '\uFBA2': '\u06BB',
  20181. '\uFBA3': '\u06BB',
  20182. '\uFBA4': '\u06C0',
  20183. '\uFBA5': '\u06C0',
  20184. '\uFBA6': '\u06C1',
  20185. '\uFBA7': '\u06C1',
  20186. '\uFBA8': '\u06C1',
  20187. '\uFBA9': '\u06C1',
  20188. '\uFBAA': '\u06BE',
  20189. '\uFBAB': '\u06BE',
  20190. '\uFBAC': '\u06BE',
  20191. '\uFBAD': '\u06BE',
  20192. '\uFBAE': '\u06D2',
  20193. '\uFBAF': '\u06D2',
  20194. '\uFBB0': '\u06D3',
  20195. '\uFBB1': '\u06D3',
  20196. '\uFBD3': '\u06AD',
  20197. '\uFBD4': '\u06AD',
  20198. '\uFBD5': '\u06AD',
  20199. '\uFBD6': '\u06AD',
  20200. '\uFBD7': '\u06C7',
  20201. '\uFBD8': '\u06C7',
  20202. '\uFBD9': '\u06C6',
  20203. '\uFBDA': '\u06C6',
  20204. '\uFBDB': '\u06C8',
  20205. '\uFBDC': '\u06C8',
  20206. '\uFBDD': '\u0677',
  20207. '\uFBDE': '\u06CB',
  20208. '\uFBDF': '\u06CB',
  20209. '\uFBE0': '\u06C5',
  20210. '\uFBE1': '\u06C5',
  20211. '\uFBE2': '\u06C9',
  20212. '\uFBE3': '\u06C9',
  20213. '\uFBE4': '\u06D0',
  20214. '\uFBE5': '\u06D0',
  20215. '\uFBE6': '\u06D0',
  20216. '\uFBE7': '\u06D0',
  20217. '\uFBE8': '\u0649',
  20218. '\uFBE9': '\u0649',
  20219. '\uFBEA': '\u0626\u0627',
  20220. '\uFBEB': '\u0626\u0627',
  20221. '\uFBEC': '\u0626\u06D5',
  20222. '\uFBED': '\u0626\u06D5',
  20223. '\uFBEE': '\u0626\u0648',
  20224. '\uFBEF': '\u0626\u0648',
  20225. '\uFBF0': '\u0626\u06C7',
  20226. '\uFBF1': '\u0626\u06C7',
  20227. '\uFBF2': '\u0626\u06C6',
  20228. '\uFBF3': '\u0626\u06C6',
  20229. '\uFBF4': '\u0626\u06C8',
  20230. '\uFBF5': '\u0626\u06C8',
  20231. '\uFBF6': '\u0626\u06D0',
  20232. '\uFBF7': '\u0626\u06D0',
  20233. '\uFBF8': '\u0626\u06D0',
  20234. '\uFBF9': '\u0626\u0649',
  20235. '\uFBFA': '\u0626\u0649',
  20236. '\uFBFB': '\u0626\u0649',
  20237. '\uFBFC': '\u06CC',
  20238. '\uFBFD': '\u06CC',
  20239. '\uFBFE': '\u06CC',
  20240. '\uFBFF': '\u06CC',
  20241. '\uFC00': '\u0626\u062C',
  20242. '\uFC01': '\u0626\u062D',
  20243. '\uFC02': '\u0626\u0645',
  20244. '\uFC03': '\u0626\u0649',
  20245. '\uFC04': '\u0626\u064A',
  20246. '\uFC05': '\u0628\u062C',
  20247. '\uFC06': '\u0628\u062D',
  20248. '\uFC07': '\u0628\u062E',
  20249. '\uFC08': '\u0628\u0645',
  20250. '\uFC09': '\u0628\u0649',
  20251. '\uFC0A': '\u0628\u064A',
  20252. '\uFC0B': '\u062A\u062C',
  20253. '\uFC0C': '\u062A\u062D',
  20254. '\uFC0D': '\u062A\u062E',
  20255. '\uFC0E': '\u062A\u0645',
  20256. '\uFC0F': '\u062A\u0649',
  20257. '\uFC10': '\u062A\u064A',
  20258. '\uFC11': '\u062B\u062C',
  20259. '\uFC12': '\u062B\u0645',
  20260. '\uFC13': '\u062B\u0649',
  20261. '\uFC14': '\u062B\u064A',
  20262. '\uFC15': '\u062C\u062D',
  20263. '\uFC16': '\u062C\u0645',
  20264. '\uFC17': '\u062D\u062C',
  20265. '\uFC18': '\u062D\u0645',
  20266. '\uFC19': '\u062E\u062C',
  20267. '\uFC1A': '\u062E\u062D',
  20268. '\uFC1B': '\u062E\u0645',
  20269. '\uFC1C': '\u0633\u062C',
  20270. '\uFC1D': '\u0633\u062D',
  20271. '\uFC1E': '\u0633\u062E',
  20272. '\uFC1F': '\u0633\u0645',
  20273. '\uFC20': '\u0635\u062D',
  20274. '\uFC21': '\u0635\u0645',
  20275. '\uFC22': '\u0636\u062C',
  20276. '\uFC23': '\u0636\u062D',
  20277. '\uFC24': '\u0636\u062E',
  20278. '\uFC25': '\u0636\u0645',
  20279. '\uFC26': '\u0637\u062D',
  20280. '\uFC27': '\u0637\u0645',
  20281. '\uFC28': '\u0638\u0645',
  20282. '\uFC29': '\u0639\u062C',
  20283. '\uFC2A': '\u0639\u0645',
  20284. '\uFC2B': '\u063A\u062C',
  20285. '\uFC2C': '\u063A\u0645',
  20286. '\uFC2D': '\u0641\u062C',
  20287. '\uFC2E': '\u0641\u062D',
  20288. '\uFC2F': '\u0641\u062E',
  20289. '\uFC30': '\u0641\u0645',
  20290. '\uFC31': '\u0641\u0649',
  20291. '\uFC32': '\u0641\u064A',
  20292. '\uFC33': '\u0642\u062D',
  20293. '\uFC34': '\u0642\u0645',
  20294. '\uFC35': '\u0642\u0649',
  20295. '\uFC36': '\u0642\u064A',
  20296. '\uFC37': '\u0643\u0627',
  20297. '\uFC38': '\u0643\u062C',
  20298. '\uFC39': '\u0643\u062D',
  20299. '\uFC3A': '\u0643\u062E',
  20300. '\uFC3B': '\u0643\u0644',
  20301. '\uFC3C': '\u0643\u0645',
  20302. '\uFC3D': '\u0643\u0649',
  20303. '\uFC3E': '\u0643\u064A',
  20304. '\uFC3F': '\u0644\u062C',
  20305. '\uFC40': '\u0644\u062D',
  20306. '\uFC41': '\u0644\u062E',
  20307. '\uFC42': '\u0644\u0645',
  20308. '\uFC43': '\u0644\u0649',
  20309. '\uFC44': '\u0644\u064A',
  20310. '\uFC45': '\u0645\u062C',
  20311. '\uFC46': '\u0645\u062D',
  20312. '\uFC47': '\u0645\u062E',
  20313. '\uFC48': '\u0645\u0645',
  20314. '\uFC49': '\u0645\u0649',
  20315. '\uFC4A': '\u0645\u064A',
  20316. '\uFC4B': '\u0646\u062C',
  20317. '\uFC4C': '\u0646\u062D',
  20318. '\uFC4D': '\u0646\u062E',
  20319. '\uFC4E': '\u0646\u0645',
  20320. '\uFC4F': '\u0646\u0649',
  20321. '\uFC50': '\u0646\u064A',
  20322. '\uFC51': '\u0647\u062C',
  20323. '\uFC52': '\u0647\u0645',
  20324. '\uFC53': '\u0647\u0649',
  20325. '\uFC54': '\u0647\u064A',
  20326. '\uFC55': '\u064A\u062C',
  20327. '\uFC56': '\u064A\u062D',
  20328. '\uFC57': '\u064A\u062E',
  20329. '\uFC58': '\u064A\u0645',
  20330. '\uFC59': '\u064A\u0649',
  20331. '\uFC5A': '\u064A\u064A',
  20332. '\uFC5B': '\u0630\u0670',
  20333. '\uFC5C': '\u0631\u0670',
  20334. '\uFC5D': '\u0649\u0670',
  20335. '\uFC5E': '\u0020\u064C\u0651',
  20336. '\uFC5F': '\u0020\u064D\u0651',
  20337. '\uFC60': '\u0020\u064E\u0651',
  20338. '\uFC61': '\u0020\u064F\u0651',
  20339. '\uFC62': '\u0020\u0650\u0651',
  20340. '\uFC63': '\u0020\u0651\u0670',
  20341. '\uFC64': '\u0626\u0631',
  20342. '\uFC65': '\u0626\u0632',
  20343. '\uFC66': '\u0626\u0645',
  20344. '\uFC67': '\u0626\u0646',
  20345. '\uFC68': '\u0626\u0649',
  20346. '\uFC69': '\u0626\u064A',
  20347. '\uFC6A': '\u0628\u0631',
  20348. '\uFC6B': '\u0628\u0632',
  20349. '\uFC6C': '\u0628\u0645',
  20350. '\uFC6D': '\u0628\u0646',
  20351. '\uFC6E': '\u0628\u0649',
  20352. '\uFC6F': '\u0628\u064A',
  20353. '\uFC70': '\u062A\u0631',
  20354. '\uFC71': '\u062A\u0632',
  20355. '\uFC72': '\u062A\u0645',
  20356. '\uFC73': '\u062A\u0646',
  20357. '\uFC74': '\u062A\u0649',
  20358. '\uFC75': '\u062A\u064A',
  20359. '\uFC76': '\u062B\u0631',
  20360. '\uFC77': '\u062B\u0632',
  20361. '\uFC78': '\u062B\u0645',
  20362. '\uFC79': '\u062B\u0646',
  20363. '\uFC7A': '\u062B\u0649',
  20364. '\uFC7B': '\u062B\u064A',
  20365. '\uFC7C': '\u0641\u0649',
  20366. '\uFC7D': '\u0641\u064A',
  20367. '\uFC7E': '\u0642\u0649',
  20368. '\uFC7F': '\u0642\u064A',
  20369. '\uFC80': '\u0643\u0627',
  20370. '\uFC81': '\u0643\u0644',
  20371. '\uFC82': '\u0643\u0645',
  20372. '\uFC83': '\u0643\u0649',
  20373. '\uFC84': '\u0643\u064A',
  20374. '\uFC85': '\u0644\u0645',
  20375. '\uFC86': '\u0644\u0649',
  20376. '\uFC87': '\u0644\u064A',
  20377. '\uFC88': '\u0645\u0627',
  20378. '\uFC89': '\u0645\u0645',
  20379. '\uFC8A': '\u0646\u0631',
  20380. '\uFC8B': '\u0646\u0632',
  20381. '\uFC8C': '\u0646\u0645',
  20382. '\uFC8D': '\u0646\u0646',
  20383. '\uFC8E': '\u0646\u0649',
  20384. '\uFC8F': '\u0646\u064A',
  20385. '\uFC90': '\u0649\u0670',
  20386. '\uFC91': '\u064A\u0631',
  20387. '\uFC92': '\u064A\u0632',
  20388. '\uFC93': '\u064A\u0645',
  20389. '\uFC94': '\u064A\u0646',
  20390. '\uFC95': '\u064A\u0649',
  20391. '\uFC96': '\u064A\u064A',
  20392. '\uFC97': '\u0626\u062C',
  20393. '\uFC98': '\u0626\u062D',
  20394. '\uFC99': '\u0626\u062E',
  20395. '\uFC9A': '\u0626\u0645',
  20396. '\uFC9B': '\u0626\u0647',
  20397. '\uFC9C': '\u0628\u062C',
  20398. '\uFC9D': '\u0628\u062D',
  20399. '\uFC9E': '\u0628\u062E',
  20400. '\uFC9F': '\u0628\u0645',
  20401. '\uFCA0': '\u0628\u0647',
  20402. '\uFCA1': '\u062A\u062C',
  20403. '\uFCA2': '\u062A\u062D',
  20404. '\uFCA3': '\u062A\u062E',
  20405. '\uFCA4': '\u062A\u0645',
  20406. '\uFCA5': '\u062A\u0647',
  20407. '\uFCA6': '\u062B\u0645',
  20408. '\uFCA7': '\u062C\u062D',
  20409. '\uFCA8': '\u062C\u0645',
  20410. '\uFCA9': '\u062D\u062C',
  20411. '\uFCAA': '\u062D\u0645',
  20412. '\uFCAB': '\u062E\u062C',
  20413. '\uFCAC': '\u062E\u0645',
  20414. '\uFCAD': '\u0633\u062C',
  20415. '\uFCAE': '\u0633\u062D',
  20416. '\uFCAF': '\u0633\u062E',
  20417. '\uFCB0': '\u0633\u0645',
  20418. '\uFCB1': '\u0635\u062D',
  20419. '\uFCB2': '\u0635\u062E',
  20420. '\uFCB3': '\u0635\u0645',
  20421. '\uFCB4': '\u0636\u062C',
  20422. '\uFCB5': '\u0636\u062D',
  20423. '\uFCB6': '\u0636\u062E',
  20424. '\uFCB7': '\u0636\u0645',
  20425. '\uFCB8': '\u0637\u062D',
  20426. '\uFCB9': '\u0638\u0645',
  20427. '\uFCBA': '\u0639\u062C',
  20428. '\uFCBB': '\u0639\u0645',
  20429. '\uFCBC': '\u063A\u062C',
  20430. '\uFCBD': '\u063A\u0645',
  20431. '\uFCBE': '\u0641\u062C',
  20432. '\uFCBF': '\u0641\u062D',
  20433. '\uFCC0': '\u0641\u062E',
  20434. '\uFCC1': '\u0641\u0645',
  20435. '\uFCC2': '\u0642\u062D',
  20436. '\uFCC3': '\u0642\u0645',
  20437. '\uFCC4': '\u0643\u062C',
  20438. '\uFCC5': '\u0643\u062D',
  20439. '\uFCC6': '\u0643\u062E',
  20440. '\uFCC7': '\u0643\u0644',
  20441. '\uFCC8': '\u0643\u0645',
  20442. '\uFCC9': '\u0644\u062C',
  20443. '\uFCCA': '\u0644\u062D',
  20444. '\uFCCB': '\u0644\u062E',
  20445. '\uFCCC': '\u0644\u0645',
  20446. '\uFCCD': '\u0644\u0647',
  20447. '\uFCCE': '\u0645\u062C',
  20448. '\uFCCF': '\u0645\u062D',
  20449. '\uFCD0': '\u0645\u062E',
  20450. '\uFCD1': '\u0645\u0645',
  20451. '\uFCD2': '\u0646\u062C',
  20452. '\uFCD3': '\u0646\u062D',
  20453. '\uFCD4': '\u0646\u062E',
  20454. '\uFCD5': '\u0646\u0645',
  20455. '\uFCD6': '\u0646\u0647',
  20456. '\uFCD7': '\u0647\u062C',
  20457. '\uFCD8': '\u0647\u0645',
  20458. '\uFCD9': '\u0647\u0670',
  20459. '\uFCDA': '\u064A\u062C',
  20460. '\uFCDB': '\u064A\u062D',
  20461. '\uFCDC': '\u064A\u062E',
  20462. '\uFCDD': '\u064A\u0645',
  20463. '\uFCDE': '\u064A\u0647',
  20464. '\uFCDF': '\u0626\u0645',
  20465. '\uFCE0': '\u0626\u0647',
  20466. '\uFCE1': '\u0628\u0645',
  20467. '\uFCE2': '\u0628\u0647',
  20468. '\uFCE3': '\u062A\u0645',
  20469. '\uFCE4': '\u062A\u0647',
  20470. '\uFCE5': '\u062B\u0645',
  20471. '\uFCE6': '\u062B\u0647',
  20472. '\uFCE7': '\u0633\u0645',
  20473. '\uFCE8': '\u0633\u0647',
  20474. '\uFCE9': '\u0634\u0645',
  20475. '\uFCEA': '\u0634\u0647',
  20476. '\uFCEB': '\u0643\u0644',
  20477. '\uFCEC': '\u0643\u0645',
  20478. '\uFCED': '\u0644\u0645',
  20479. '\uFCEE': '\u0646\u0645',
  20480. '\uFCEF': '\u0646\u0647',
  20481. '\uFCF0': '\u064A\u0645',
  20482. '\uFCF1': '\u064A\u0647',
  20483. '\uFCF2': '\u0640\u064E\u0651',
  20484. '\uFCF3': '\u0640\u064F\u0651',
  20485. '\uFCF4': '\u0640\u0650\u0651',
  20486. '\uFCF5': '\u0637\u0649',
  20487. '\uFCF6': '\u0637\u064A',
  20488. '\uFCF7': '\u0639\u0649',
  20489. '\uFCF8': '\u0639\u064A',
  20490. '\uFCF9': '\u063A\u0649',
  20491. '\uFCFA': '\u063A\u064A',
  20492. '\uFCFB': '\u0633\u0649',
  20493. '\uFCFC': '\u0633\u064A',
  20494. '\uFCFD': '\u0634\u0649',
  20495. '\uFCFE': '\u0634\u064A',
  20496. '\uFCFF': '\u062D\u0649',
  20497. '\uFD00': '\u062D\u064A',
  20498. '\uFD01': '\u062C\u0649',
  20499. '\uFD02': '\u062C\u064A',
  20500. '\uFD03': '\u062E\u0649',
  20501. '\uFD04': '\u062E\u064A',
  20502. '\uFD05': '\u0635\u0649',
  20503. '\uFD06': '\u0635\u064A',
  20504. '\uFD07': '\u0636\u0649',
  20505. '\uFD08': '\u0636\u064A',
  20506. '\uFD09': '\u0634\u062C',
  20507. '\uFD0A': '\u0634\u062D',
  20508. '\uFD0B': '\u0634\u062E',
  20509. '\uFD0C': '\u0634\u0645',
  20510. '\uFD0D': '\u0634\u0631',
  20511. '\uFD0E': '\u0633\u0631',
  20512. '\uFD0F': '\u0635\u0631',
  20513. '\uFD10': '\u0636\u0631',
  20514. '\uFD11': '\u0637\u0649',
  20515. '\uFD12': '\u0637\u064A',
  20516. '\uFD13': '\u0639\u0649',
  20517. '\uFD14': '\u0639\u064A',
  20518. '\uFD15': '\u063A\u0649',
  20519. '\uFD16': '\u063A\u064A',
  20520. '\uFD17': '\u0633\u0649',
  20521. '\uFD18': '\u0633\u064A',
  20522. '\uFD19': '\u0634\u0649',
  20523. '\uFD1A': '\u0634\u064A',
  20524. '\uFD1B': '\u062D\u0649',
  20525. '\uFD1C': '\u062D\u064A',
  20526. '\uFD1D': '\u062C\u0649',
  20527. '\uFD1E': '\u062C\u064A',
  20528. '\uFD1F': '\u062E\u0649',
  20529. '\uFD20': '\u062E\u064A',
  20530. '\uFD21': '\u0635\u0649',
  20531. '\uFD22': '\u0635\u064A',
  20532. '\uFD23': '\u0636\u0649',
  20533. '\uFD24': '\u0636\u064A',
  20534. '\uFD25': '\u0634\u062C',
  20535. '\uFD26': '\u0634\u062D',
  20536. '\uFD27': '\u0634\u062E',
  20537. '\uFD28': '\u0634\u0645',
  20538. '\uFD29': '\u0634\u0631',
  20539. '\uFD2A': '\u0633\u0631',
  20540. '\uFD2B': '\u0635\u0631',
  20541. '\uFD2C': '\u0636\u0631',
  20542. '\uFD2D': '\u0634\u062C',
  20543. '\uFD2E': '\u0634\u062D',
  20544. '\uFD2F': '\u0634\u062E',
  20545. '\uFD30': '\u0634\u0645',
  20546. '\uFD31': '\u0633\u0647',
  20547. '\uFD32': '\u0634\u0647',
  20548. '\uFD33': '\u0637\u0645',
  20549. '\uFD34': '\u0633\u062C',
  20550. '\uFD35': '\u0633\u062D',
  20551. '\uFD36': '\u0633\u062E',
  20552. '\uFD37': '\u0634\u062C',
  20553. '\uFD38': '\u0634\u062D',
  20554. '\uFD39': '\u0634\u062E',
  20555. '\uFD3A': '\u0637\u0645',
  20556. '\uFD3B': '\u0638\u0645',
  20557. '\uFD3C': '\u0627\u064B',
  20558. '\uFD3D': '\u0627\u064B',
  20559. '\uFD50': '\u062A\u062C\u0645',
  20560. '\uFD51': '\u062A\u062D\u062C',
  20561. '\uFD52': '\u062A\u062D\u062C',
  20562. '\uFD53': '\u062A\u062D\u0645',
  20563. '\uFD54': '\u062A\u062E\u0645',
  20564. '\uFD55': '\u062A\u0645\u062C',
  20565. '\uFD56': '\u062A\u0645\u062D',
  20566. '\uFD57': '\u062A\u0645\u062E',
  20567. '\uFD58': '\u062C\u0645\u062D',
  20568. '\uFD59': '\u062C\u0645\u062D',
  20569. '\uFD5A': '\u062D\u0645\u064A',
  20570. '\uFD5B': '\u062D\u0645\u0649',
  20571. '\uFD5C': '\u0633\u062D\u062C',
  20572. '\uFD5D': '\u0633\u062C\u062D',
  20573. '\uFD5E': '\u0633\u062C\u0649',
  20574. '\uFD5F': '\u0633\u0645\u062D',
  20575. '\uFD60': '\u0633\u0645\u062D',
  20576. '\uFD61': '\u0633\u0645\u062C',
  20577. '\uFD62': '\u0633\u0645\u0645',
  20578. '\uFD63': '\u0633\u0645\u0645',
  20579. '\uFD64': '\u0635\u062D\u062D',
  20580. '\uFD65': '\u0635\u062D\u062D',
  20581. '\uFD66': '\u0635\u0645\u0645',
  20582. '\uFD67': '\u0634\u062D\u0645',
  20583. '\uFD68': '\u0634\u062D\u0645',
  20584. '\uFD69': '\u0634\u062C\u064A',
  20585. '\uFD6A': '\u0634\u0645\u062E',
  20586. '\uFD6B': '\u0634\u0645\u062E',
  20587. '\uFD6C': '\u0634\u0645\u0645',
  20588. '\uFD6D': '\u0634\u0645\u0645',
  20589. '\uFD6E': '\u0636\u062D\u0649',
  20590. '\uFD6F': '\u0636\u062E\u0645',
  20591. '\uFD70': '\u0636\u062E\u0645',
  20592. '\uFD71': '\u0637\u0645\u062D',
  20593. '\uFD72': '\u0637\u0645\u062D',
  20594. '\uFD73': '\u0637\u0645\u0645',
  20595. '\uFD74': '\u0637\u0645\u064A',
  20596. '\uFD75': '\u0639\u062C\u0645',
  20597. '\uFD76': '\u0639\u0645\u0645',
  20598. '\uFD77': '\u0639\u0645\u0645',
  20599. '\uFD78': '\u0639\u0645\u0649',
  20600. '\uFD79': '\u063A\u0645\u0645',
  20601. '\uFD7A': '\u063A\u0645\u064A',
  20602. '\uFD7B': '\u063A\u0645\u0649',
  20603. '\uFD7C': '\u0641\u062E\u0645',
  20604. '\uFD7D': '\u0641\u062E\u0645',
  20605. '\uFD7E': '\u0642\u0645\u062D',
  20606. '\uFD7F': '\u0642\u0645\u0645',
  20607. '\uFD80': '\u0644\u062D\u0645',
  20608. '\uFD81': '\u0644\u062D\u064A',
  20609. '\uFD82': '\u0644\u062D\u0649',
  20610. '\uFD83': '\u0644\u062C\u062C',
  20611. '\uFD84': '\u0644\u062C\u062C',
  20612. '\uFD85': '\u0644\u062E\u0645',
  20613. '\uFD86': '\u0644\u062E\u0645',
  20614. '\uFD87': '\u0644\u0645\u062D',
  20615. '\uFD88': '\u0644\u0645\u062D',
  20616. '\uFD89': '\u0645\u062D\u062C',
  20617. '\uFD8A': '\u0645\u062D\u0645',
  20618. '\uFD8B': '\u0645\u062D\u064A',
  20619. '\uFD8C': '\u0645\u062C\u062D',
  20620. '\uFD8D': '\u0645\u062C\u0645',
  20621. '\uFD8E': '\u0645\u062E\u062C',
  20622. '\uFD8F': '\u0645\u062E\u0645',
  20623. '\uFD92': '\u0645\u062C\u062E',
  20624. '\uFD93': '\u0647\u0645\u062C',
  20625. '\uFD94': '\u0647\u0645\u0645',
  20626. '\uFD95': '\u0646\u062D\u0645',
  20627. '\uFD96': '\u0646\u062D\u0649',
  20628. '\uFD97': '\u0646\u062C\u0645',
  20629. '\uFD98': '\u0646\u062C\u0645',
  20630. '\uFD99': '\u0646\u062C\u0649',
  20631. '\uFD9A': '\u0646\u0645\u064A',
  20632. '\uFD9B': '\u0646\u0645\u0649',
  20633. '\uFD9C': '\u064A\u0645\u0645',
  20634. '\uFD9D': '\u064A\u0645\u0645',
  20635. '\uFD9E': '\u0628\u062E\u064A',
  20636. '\uFD9F': '\u062A\u062C\u064A',
  20637. '\uFDA0': '\u062A\u062C\u0649',
  20638. '\uFDA1': '\u062A\u062E\u064A',
  20639. '\uFDA2': '\u062A\u062E\u0649',
  20640. '\uFDA3': '\u062A\u0645\u064A',
  20641. '\uFDA4': '\u062A\u0645\u0649',
  20642. '\uFDA5': '\u062C\u0645\u064A',
  20643. '\uFDA6': '\u062C\u062D\u0649',
  20644. '\uFDA7': '\u062C\u0645\u0649',
  20645. '\uFDA8': '\u0633\u062E\u0649',
  20646. '\uFDA9': '\u0635\u062D\u064A',
  20647. '\uFDAA': '\u0634\u062D\u064A',
  20648. '\uFDAB': '\u0636\u062D\u064A',
  20649. '\uFDAC': '\u0644\u062C\u064A',
  20650. '\uFDAD': '\u0644\u0645\u064A',
  20651. '\uFDAE': '\u064A\u062D\u064A',
  20652. '\uFDAF': '\u064A\u062C\u064A',
  20653. '\uFDB0': '\u064A\u0645\u064A',
  20654. '\uFDB1': '\u0645\u0645\u064A',
  20655. '\uFDB2': '\u0642\u0645\u064A',
  20656. '\uFDB3': '\u0646\u062D\u064A',
  20657. '\uFDB4': '\u0642\u0645\u062D',
  20658. '\uFDB5': '\u0644\u062D\u0645',
  20659. '\uFDB6': '\u0639\u0645\u064A',
  20660. '\uFDB7': '\u0643\u0645\u064A',
  20661. '\uFDB8': '\u0646\u062C\u062D',
  20662. '\uFDB9': '\u0645\u062E\u064A',
  20663. '\uFDBA': '\u0644\u062C\u0645',
  20664. '\uFDBB': '\u0643\u0645\u0645',
  20665. '\uFDBC': '\u0644\u062C\u0645',
  20666. '\uFDBD': '\u0646\u062C\u062D',
  20667. '\uFDBE': '\u062C\u062D\u064A',
  20668. '\uFDBF': '\u062D\u062C\u064A',
  20669. '\uFDC0': '\u0645\u062C\u064A',
  20670. '\uFDC1': '\u0641\u0645\u064A',
  20671. '\uFDC2': '\u0628\u062D\u064A',
  20672. '\uFDC3': '\u0643\u0645\u0645',
  20673. '\uFDC4': '\u0639\u062C\u0645',
  20674. '\uFDC5': '\u0635\u0645\u0645',
  20675. '\uFDC6': '\u0633\u062E\u064A',
  20676. '\uFDC7': '\u0646\u062C\u064A',
  20677. '\uFE49': '\u203E',
  20678. '\uFE4A': '\u203E',
  20679. '\uFE4B': '\u203E',
  20680. '\uFE4C': '\u203E',
  20681. '\uFE4D': '\u005F',
  20682. '\uFE4E': '\u005F',
  20683. '\uFE4F': '\u005F',
  20684. '\uFE80': '\u0621',
  20685. '\uFE81': '\u0622',
  20686. '\uFE82': '\u0622',
  20687. '\uFE83': '\u0623',
  20688. '\uFE84': '\u0623',
  20689. '\uFE85': '\u0624',
  20690. '\uFE86': '\u0624',
  20691. '\uFE87': '\u0625',
  20692. '\uFE88': '\u0625',
  20693. '\uFE89': '\u0626',
  20694. '\uFE8A': '\u0626',
  20695. '\uFE8B': '\u0626',
  20696. '\uFE8C': '\u0626',
  20697. '\uFE8D': '\u0627',
  20698. '\uFE8E': '\u0627',
  20699. '\uFE8F': '\u0628',
  20700. '\uFE90': '\u0628',
  20701. '\uFE91': '\u0628',
  20702. '\uFE92': '\u0628',
  20703. '\uFE93': '\u0629',
  20704. '\uFE94': '\u0629',
  20705. '\uFE95': '\u062A',
  20706. '\uFE96': '\u062A',
  20707. '\uFE97': '\u062A',
  20708. '\uFE98': '\u062A',
  20709. '\uFE99': '\u062B',
  20710. '\uFE9A': '\u062B',
  20711. '\uFE9B': '\u062B',
  20712. '\uFE9C': '\u062B',
  20713. '\uFE9D': '\u062C',
  20714. '\uFE9E': '\u062C',
  20715. '\uFE9F': '\u062C',
  20716. '\uFEA0': '\u062C',
  20717. '\uFEA1': '\u062D',
  20718. '\uFEA2': '\u062D',
  20719. '\uFEA3': '\u062D',
  20720. '\uFEA4': '\u062D',
  20721. '\uFEA5': '\u062E',
  20722. '\uFEA6': '\u062E',
  20723. '\uFEA7': '\u062E',
  20724. '\uFEA8': '\u062E',
  20725. '\uFEA9': '\u062F',
  20726. '\uFEAA': '\u062F',
  20727. '\uFEAB': '\u0630',
  20728. '\uFEAC': '\u0630',
  20729. '\uFEAD': '\u0631',
  20730. '\uFEAE': '\u0631',
  20731. '\uFEAF': '\u0632',
  20732. '\uFEB0': '\u0632',
  20733. '\uFEB1': '\u0633',
  20734. '\uFEB2': '\u0633',
  20735. '\uFEB3': '\u0633',
  20736. '\uFEB4': '\u0633',
  20737. '\uFEB5': '\u0634',
  20738. '\uFEB6': '\u0634',
  20739. '\uFEB7': '\u0634',
  20740. '\uFEB8': '\u0634',
  20741. '\uFEB9': '\u0635',
  20742. '\uFEBA': '\u0635',
  20743. '\uFEBB': '\u0635',
  20744. '\uFEBC': '\u0635',
  20745. '\uFEBD': '\u0636',
  20746. '\uFEBE': '\u0636',
  20747. '\uFEBF': '\u0636',
  20748. '\uFEC0': '\u0636',
  20749. '\uFEC1': '\u0637',
  20750. '\uFEC2': '\u0637',
  20751. '\uFEC3': '\u0637',
  20752. '\uFEC4': '\u0637',
  20753. '\uFEC5': '\u0638',
  20754. '\uFEC6': '\u0638',
  20755. '\uFEC7': '\u0638',
  20756. '\uFEC8': '\u0638',
  20757. '\uFEC9': '\u0639',
  20758. '\uFECA': '\u0639',
  20759. '\uFECB': '\u0639',
  20760. '\uFECC': '\u0639',
  20761. '\uFECD': '\u063A',
  20762. '\uFECE': '\u063A',
  20763. '\uFECF': '\u063A',
  20764. '\uFED0': '\u063A',
  20765. '\uFED1': '\u0641',
  20766. '\uFED2': '\u0641',
  20767. '\uFED3': '\u0641',
  20768. '\uFED4': '\u0641',
  20769. '\uFED5': '\u0642',
  20770. '\uFED6': '\u0642',
  20771. '\uFED7': '\u0642',
  20772. '\uFED8': '\u0642',
  20773. '\uFED9': '\u0643',
  20774. '\uFEDA': '\u0643',
  20775. '\uFEDB': '\u0643',
  20776. '\uFEDC': '\u0643',
  20777. '\uFEDD': '\u0644',
  20778. '\uFEDE': '\u0644',
  20779. '\uFEDF': '\u0644',
  20780. '\uFEE0': '\u0644',
  20781. '\uFEE1': '\u0645',
  20782. '\uFEE2': '\u0645',
  20783. '\uFEE3': '\u0645',
  20784. '\uFEE4': '\u0645',
  20785. '\uFEE5': '\u0646',
  20786. '\uFEE6': '\u0646',
  20787. '\uFEE7': '\u0646',
  20788. '\uFEE8': '\u0646',
  20789. '\uFEE9': '\u0647',
  20790. '\uFEEA': '\u0647',
  20791. '\uFEEB': '\u0647',
  20792. '\uFEEC': '\u0647',
  20793. '\uFEED': '\u0648',
  20794. '\uFEEE': '\u0648',
  20795. '\uFEEF': '\u0649',
  20796. '\uFEF0': '\u0649',
  20797. '\uFEF1': '\u064A',
  20798. '\uFEF2': '\u064A',
  20799. '\uFEF3': '\u064A',
  20800. '\uFEF4': '\u064A',
  20801. '\uFEF5': '\u0644\u0622',
  20802. '\uFEF6': '\u0644\u0622',
  20803. '\uFEF7': '\u0644\u0623',
  20804. '\uFEF8': '\u0644\u0623',
  20805. '\uFEF9': '\u0644\u0625',
  20806. '\uFEFA': '\u0644\u0625',
  20807. '\uFEFB': '\u0644\u0627',
  20808. '\uFEFC': '\u0644\u0627'
  20809. };
  20810. function reverseIfRtl(chars) {
  20811. var charsLength = chars.length;
  20812. //reverse an arabic ligature
  20813. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  20814. return chars;
  20815. }
  20816. var s = '';
  20817. for (var ii = charsLength - 1; ii >= 0; ii--) {
  20818. s += chars[ii];
  20819. }
  20820. return s;
  20821. }
  20822. function adjustWidths(properties) {
  20823. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  20824. return;
  20825. }
  20826. // adjusting width to fontMatrix scale
  20827. var scale = 0.001 / properties.fontMatrix[0];
  20828. var glyphsWidths = properties.widths;
  20829. for (var glyph in glyphsWidths) {
  20830. glyphsWidths[glyph] *= scale;
  20831. }
  20832. properties.defaultWidth *= scale;
  20833. }
  20834. function getFontType(type, subtype) {
  20835. switch (type) {
  20836. case 'Type1':
  20837. return subtype === 'Type1C' ? FontType.TYPE1C : FontType.TYPE1;
  20838. case 'CIDFontType0':
  20839. return subtype === 'CIDFontType0C' ? FontType.CIDFONTTYPE0C :
  20840. FontType.CIDFONTTYPE0;
  20841. case 'OpenType':
  20842. return FontType.OPENTYPE;
  20843. case 'TrueType':
  20844. return FontType.TRUETYPE;
  20845. case 'CIDFontType2':
  20846. return FontType.CIDFONTTYPE2;
  20847. case 'MMType1':
  20848. return FontType.MMTYPE1;
  20849. case 'Type0':
  20850. return FontType.TYPE0;
  20851. default:
  20852. return FontType.UNKNOWN;
  20853. }
  20854. }
  20855. var Glyph = (function GlyphClosure() {
  20856. function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId) {
  20857. this.fontChar = fontChar;
  20858. this.unicode = unicode;
  20859. this.accent = accent;
  20860. this.width = width;
  20861. this.vmetric = vmetric;
  20862. this.operatorListId = operatorListId;
  20863. }
  20864. Glyph.prototype.matchesForCache =
  20865. function(fontChar, unicode, accent, width, vmetric, operatorListId) {
  20866. return this.fontChar === fontChar &&
  20867. this.unicode === unicode &&
  20868. this.accent === accent &&
  20869. this.width === width &&
  20870. this.vmetric === vmetric &&
  20871. this.operatorListId === operatorListId;
  20872. };
  20873. return Glyph;
  20874. })();
  20875. /**
  20876. * 'Font' is the class the outside world should use, it encapsulate all the font
  20877. * decoding logics whatever type it is (assuming the font type is supported).
  20878. *
  20879. * For example to read a Type1 font and to attach it to the document:
  20880. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  20881. * type1Font.bind();
  20882. */
  20883. var Font = (function FontClosure() {
  20884. function Font(name, file, properties) {
  20885. var charCode, glyphName;
  20886. this.name = name;
  20887. this.loadedName = properties.loadedName;
  20888. this.isType3Font = properties.isType3Font;
  20889. this.sizes = [];
  20890. this.glyphCache = {};
  20891. var names = name.split('+');
  20892. names = names.length > 1 ? names[1] : names[0];
  20893. names = names.split(/[-,_]/g)[0];
  20894. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  20895. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  20896. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  20897. var type = properties.type;
  20898. var subtype = properties.subtype;
  20899. this.type = type;
  20900. this.fallbackName = (this.isMonospace ? 'monospace' :
  20901. (this.isSerifFont ? 'serif' : 'sans-serif'));
  20902. this.differences = properties.differences;
  20903. this.widths = properties.widths;
  20904. this.defaultWidth = properties.defaultWidth;
  20905. this.composite = properties.composite;
  20906. this.wideChars = properties.wideChars;
  20907. this.cMap = properties.cMap;
  20908. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  20909. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  20910. this.fontMatrix = properties.fontMatrix;
  20911. var unicode = this.buildToUnicode(properties);
  20912. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  20913. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  20914. this.toFontChar = [];
  20915. if (properties.type == 'Type3') {
  20916. for (charCode = 0; charCode < 256; charCode++) {
  20917. this.toFontChar[charCode] = (this.differences[charCode] ||
  20918. properties.defaultEncoding[charCode]);
  20919. }
  20920. this.fontType = FontType.TYPE3;
  20921. return;
  20922. }
  20923. this.cidEncoding = properties.cidEncoding;
  20924. this.vertical = properties.vertical;
  20925. if (this.vertical) {
  20926. this.vmetrics = properties.vmetrics;
  20927. this.defaultVMetrics = properties.defaultVMetrics;
  20928. }
  20929. if (!file || file.isEmpty) {
  20930. if (file) {
  20931. // Some bad PDF generators will include empty font files,
  20932. // attempting to recover by assuming that no file exists.
  20933. warn('Font file is empty in "' + name + '" (' + this.loadedName + ')');
  20934. }
  20935. this.missingFile = true;
  20936. // The file data is not specified. Trying to fix the font name
  20937. // to be used with the canvas.font.
  20938. var fontName = name.replace(/[,_]/g, '-');
  20939. var isStandardFont = fontName in stdFontMap;
  20940. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  20941. this.bold = (fontName.search(/bold/gi) != -1);
  20942. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  20943. (fontName.search(/italic/gi) != -1));
  20944. // Use 'name' instead of 'fontName' here because the original
  20945. // name ArialBlack for example will be replaced by Helvetica.
  20946. this.black = (name.search(/Black/g) != -1);
  20947. // if at least one width is present, remeasure all chars when exists
  20948. this.remeasure = Object.keys(this.widths).length > 0;
  20949. if (isStandardFont && type === 'CIDFontType2' &&
  20950. properties.cidEncoding.indexOf('Identity-') === 0) {
  20951. // Standard fonts might be embedded as CID font without glyph mapping.
  20952. // Building one based on GlyphMapForStandardFonts.
  20953. var map = [];
  20954. for (var code in GlyphMapForStandardFonts) {
  20955. map[+code] = GlyphMapForStandardFonts[code];
  20956. }
  20957. this.toFontChar = map;
  20958. this.toUnicode = map;
  20959. } else if (/Symbol/i.test(fontName)) {
  20960. var symbols = Encodings.SymbolSetEncoding;
  20961. for (charCode in symbols) {
  20962. var fontChar = GlyphsUnicode[symbols[charCode]];
  20963. if (!fontChar) {
  20964. continue;
  20965. }
  20966. this.toFontChar[charCode] = fontChar;
  20967. }
  20968. } else if (isStandardFont) {
  20969. this.toFontChar = [];
  20970. for (charCode in properties.defaultEncoding) {
  20971. glyphName = (properties.differences[charCode] ||
  20972. properties.defaultEncoding[charCode]);
  20973. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  20974. }
  20975. } else {
  20976. var unicodeCharCode, notCidFont = (type.indexOf('CIDFontType') === -1);
  20977. for (charCode in this.toUnicode) {
  20978. unicodeCharCode = this.toUnicode[charCode].charCodeAt(0);
  20979. if (notCidFont) {
  20980. glyphName = (properties.differences[charCode] ||
  20981. properties.defaultEncoding[charCode]);
  20982. unicodeCharCode = (GlyphsUnicode[glyphName] || unicodeCharCode);
  20983. }
  20984. this.toFontChar[charCode] = unicodeCharCode;
  20985. }
  20986. }
  20987. this.loadedName = fontName.split('-')[0];
  20988. this.loading = false;
  20989. this.fontType = getFontType(type, subtype);
  20990. return;
  20991. }
  20992. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  20993. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  20994. // Some TrueType fonts by mistake claim Type1C
  20995. if (isTrueTypeFile(file)) {
  20996. subtype = 'TrueType';
  20997. } else {
  20998. type = 'Type1';
  20999. }
  21000. }
  21001. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  21002. type = 'CIDFontType0';
  21003. }
  21004. // XXX: Temporarily change the type for open type so we trigger a warning.
  21005. // This should be removed when we add support for open type.
  21006. if (subtype === 'OpenType') {
  21007. type = 'OpenType';
  21008. }
  21009. var data;
  21010. switch (type) {
  21011. case 'Type1':
  21012. case 'CIDFontType0':
  21013. this.mimetype = 'font/opentype';
  21014. var cff = (subtype === 'Type1C' || subtype === 'CIDFontType0C') ?
  21015. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  21016. adjustWidths(properties);
  21017. // Wrap the CFF data inside an OTF font file
  21018. data = this.convert(name, cff, properties);
  21019. break;
  21020. case 'OpenType':
  21021. case 'TrueType':
  21022. case 'CIDFontType2':
  21023. this.mimetype = 'font/opentype';
  21024. // Repair the TrueType file. It is can be damaged in the point of
  21025. // view of the sanitizer
  21026. data = this.checkAndRepair(name, file, properties);
  21027. if (this.isOpenType) {
  21028. type = 'OpenType';
  21029. }
  21030. break;
  21031. default:
  21032. error('Font ' + type + ' is not supported');
  21033. break;
  21034. }
  21035. this.data = data;
  21036. this.fontType = getFontType(type, subtype);
  21037. // Transfer some properties again that could change during font conversion
  21038. this.fontMatrix = properties.fontMatrix;
  21039. this.widths = properties.widths;
  21040. this.defaultWidth = properties.defaultWidth;
  21041. this.encoding = properties.baseEncoding;
  21042. this.seacMap = properties.seacMap;
  21043. this.loading = true;
  21044. }
  21045. Font.getFontID = (function () {
  21046. var ID = 1;
  21047. return function Font_getFontID() {
  21048. return String(ID++);
  21049. };
  21050. })();
  21051. function int16(b0, b1) {
  21052. return (b0 << 8) + b1;
  21053. }
  21054. function int32(b0, b1, b2, b3) {
  21055. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  21056. }
  21057. function getMaxPower2(number) {
  21058. var maxPower = 0;
  21059. var value = number;
  21060. while (value >= 2) {
  21061. value /= 2;
  21062. maxPower++;
  21063. }
  21064. value = 2;
  21065. for (var i = 1; i < maxPower; i++) {
  21066. value *= 2;
  21067. }
  21068. return value;
  21069. }
  21070. function string16(value) {
  21071. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21072. }
  21073. function safeString16(value) {
  21074. // clamp value to the 16-bit int range
  21075. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  21076. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21077. }
  21078. function createOpenTypeHeader(sfnt, file, numTables) {
  21079. // Windows hates the Mac TrueType sfnt version number
  21080. if (sfnt == 'true') {
  21081. sfnt = string32(0x00010000);
  21082. }
  21083. // sfnt version (4 bytes)
  21084. var header = sfnt;
  21085. // numTables (2 bytes)
  21086. header += string16(numTables);
  21087. // searchRange (2 bytes)
  21088. var tablesMaxPower2 = getMaxPower2(numTables);
  21089. var searchRange = tablesMaxPower2 * 16;
  21090. header += string16(searchRange);
  21091. // entrySelector (2 bytes)
  21092. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  21093. // rangeShift (2 bytes)
  21094. header += string16(numTables * 16 - searchRange);
  21095. file.file += header;
  21096. file.virtualOffset += header.length;
  21097. }
  21098. function createTableEntry(file, tag, data) {
  21099. // offset
  21100. var offset = file.virtualOffset;
  21101. // length
  21102. var length = data.length;
  21103. // Per spec tables must be 4-bytes align so add padding as needed
  21104. while (data.length & 3) {
  21105. data.push(0x00);
  21106. }
  21107. while (file.virtualOffset & 3) {
  21108. file.virtualOffset++;
  21109. }
  21110. // checksum
  21111. var checksum = 0, n = data.length;
  21112. for (var i = 0; i < n; i += 4) {
  21113. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  21114. data[i + 3])) | 0;
  21115. }
  21116. var tableEntry = (tag + string32(checksum) +
  21117. string32(offset) + string32(length));
  21118. file.file += tableEntry;
  21119. file.virtualOffset += data.length;
  21120. }
  21121. function isTrueTypeFile(file) {
  21122. var header = file.peekBytes(4);
  21123. return readUint32(header, 0) === 0x00010000;
  21124. }
  21125. /**
  21126. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  21127. * with their unicode value. It also moves char codes that are in known
  21128. * problematic locations.
  21129. * @return {Object} Two properties:
  21130. * 'toFontChar' - maps original char codes(the value that will be read
  21131. * from commands such as show text) to the char codes that will be used in the
  21132. * font that we build
  21133. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  21134. */
  21135. function adjustMapping(charCodeToGlyphId, properties) {
  21136. var toUnicode = properties.toUnicode;
  21137. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  21138. var isIdentityUnicode = properties.isIdentityUnicode;
  21139. var isCidFontType2 = (properties.type === 'CIDFontType2');
  21140. var newMap = Object.create(null);
  21141. var toFontChar = [];
  21142. var usedFontCharCodes = [];
  21143. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  21144. for (var originalCharCode in charCodeToGlyphId) {
  21145. originalCharCode |= 0;
  21146. var glyphId = charCodeToGlyphId[originalCharCode];
  21147. var fontCharCode = originalCharCode;
  21148. // First try to map the value to a unicode position if a non identity map
  21149. // was created.
  21150. if (!isIdentityUnicode) {
  21151. if (toUnicode[originalCharCode] !== undefined) {
  21152. var unicode = toUnicode[fontCharCode];
  21153. // TODO: Try to map ligatures to the correct spot.
  21154. if (unicode.length === 1) {
  21155. fontCharCode = unicode.charCodeAt(0);
  21156. }
  21157. } else if (isCidFontType2) {
  21158. // For CIDFontType2, move characters not present in toUnicode
  21159. // to the private use area (fixes bug 1028735 and issue 4881).
  21160. fontCharCode = nextAvailableFontCharCode;
  21161. }
  21162. }
  21163. // Try to move control characters, special characters and already mapped
  21164. // characters to the private use area since they will not be drawn by
  21165. // canvas if left in their current position. Also, move characters if the
  21166. // font was symbolic and there is only an identity unicode map since the
  21167. // characters probably aren't in the correct position (fixes an issue
  21168. // with firefox and thuluthfont).
  21169. if ((usedFontCharCodes[fontCharCode] !== undefined ||
  21170. fontCharCode <= 0x1f || // Control chars
  21171. fontCharCode === 0x7F || // Control char
  21172. fontCharCode === 0xAD || // Soft hyphen
  21173. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  21174. // Prevent drawing characters in the specials unicode block.
  21175. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  21176. (isSymbolic && isIdentityUnicode)) &&
  21177. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  21178. // Loop to try and find a free spot in the private use area.
  21179. do {
  21180. fontCharCode = nextAvailableFontCharCode++;
  21181. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  21182. fontCharCode = 0xF020;
  21183. nextAvailableFontCharCode = fontCharCode + 1;
  21184. }
  21185. } while (usedFontCharCodes[fontCharCode] !== undefined &&
  21186. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  21187. }
  21188. newMap[fontCharCode] = glyphId;
  21189. toFontChar[originalCharCode] = fontCharCode;
  21190. usedFontCharCodes[fontCharCode] = true;
  21191. }
  21192. return {
  21193. toFontChar: toFontChar,
  21194. charCodeToGlyphId: newMap,
  21195. nextAvailableFontCharCode: nextAvailableFontCharCode
  21196. };
  21197. }
  21198. function getRanges(glyphs) {
  21199. // Array.sort() sorts by characters, not numerically, so convert to an
  21200. // array of characters.
  21201. var codes = [];
  21202. for (var charCode in glyphs) {
  21203. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  21204. }
  21205. codes.sort(function fontGetRangesSort(a, b) {
  21206. return a.fontCharCode - b.fontCharCode;
  21207. });
  21208. // Split the sorted codes into ranges.
  21209. var ranges = [];
  21210. var length = codes.length;
  21211. for (var n = 0; n < length; ) {
  21212. var start = codes[n].fontCharCode;
  21213. var codeIndices = [codes[n].glyphId];
  21214. ++n;
  21215. var end = start;
  21216. while (n < length && end + 1 == codes[n].fontCharCode) {
  21217. codeIndices.push(codes[n].glyphId);
  21218. ++end;
  21219. ++n;
  21220. if (end === 0xFFFF) {
  21221. break;
  21222. }
  21223. }
  21224. ranges.push([start, end, codeIndices]);
  21225. }
  21226. return ranges;
  21227. }
  21228. function createCmapTable(glyphs) {
  21229. var ranges = getRanges(glyphs);
  21230. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  21231. var cmap = '\x00\x00' + // version
  21232. string16(numTables) + // numTables
  21233. '\x00\x03' + // platformID
  21234. '\x00\x01' + // encodingID
  21235. string32(4 + numTables * 8); // start of the table record
  21236. var i, ii, j, jj;
  21237. for (i = ranges.length - 1; i >= 0; --i) {
  21238. if (ranges[i][0] <= 0xFFFF) { break; }
  21239. }
  21240. var bmpLength = i + 1;
  21241. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  21242. ranges[i][1] = 0xFFFE;
  21243. }
  21244. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  21245. var segCount = bmpLength + trailingRangesCount;
  21246. var segCount2 = segCount * 2;
  21247. var searchRange = getMaxPower2(segCount) * 2;
  21248. var searchEntry = Math.log(segCount) / Math.log(2);
  21249. var rangeShift = 2 * segCount - searchRange;
  21250. // Fill up the 4 parallel arrays describing the segments.
  21251. var startCount = '';
  21252. var endCount = '';
  21253. var idDeltas = '';
  21254. var idRangeOffsets = '';
  21255. var glyphsIds = '';
  21256. var bias = 0;
  21257. var range, start, end, codes;
  21258. for (i = 0, ii = bmpLength; i < ii; i++) {
  21259. range = ranges[i];
  21260. start = range[0];
  21261. end = range[1];
  21262. startCount += string16(start);
  21263. endCount += string16(end);
  21264. codes = range[2];
  21265. var contiguous = true;
  21266. for (j = 1, jj = codes.length; j < jj; ++j) {
  21267. if (codes[j] !== codes[j - 1] + 1) {
  21268. contiguous = false;
  21269. break;
  21270. }
  21271. }
  21272. if (!contiguous) {
  21273. var offset = (segCount - i) * 2 + bias * 2;
  21274. bias += (end - start + 1);
  21275. idDeltas += string16(0);
  21276. idRangeOffsets += string16(offset);
  21277. for (j = 0, jj = codes.length; j < jj; ++j) {
  21278. glyphsIds += string16(codes[j]);
  21279. }
  21280. } else {
  21281. var startCode = codes[0];
  21282. idDeltas += string16((startCode - start) & 0xFFFF);
  21283. idRangeOffsets += string16(0);
  21284. }
  21285. }
  21286. if (trailingRangesCount > 0) {
  21287. endCount += '\xFF\xFF';
  21288. startCount += '\xFF\xFF';
  21289. idDeltas += '\x00\x01';
  21290. idRangeOffsets += '\x00\x00';
  21291. }
  21292. var format314 = '\x00\x00' + // language
  21293. string16(segCount2) +
  21294. string16(searchRange) +
  21295. string16(searchEntry) +
  21296. string16(rangeShift) +
  21297. endCount + '\x00\x00' + startCount +
  21298. idDeltas + idRangeOffsets + glyphsIds;
  21299. var format31012 = '';
  21300. var header31012 = '';
  21301. if (numTables > 1) {
  21302. cmap += '\x00\x03' + // platformID
  21303. '\x00\x0A' + // encodingID
  21304. string32(4 + numTables * 8 +
  21305. 4 + format314.length); // start of the table record
  21306. format31012 = '';
  21307. for (i = 0, ii = ranges.length; i < ii; i++) {
  21308. range = ranges[i];
  21309. start = range[0];
  21310. codes = range[2];
  21311. var code = codes[0];
  21312. for (j = 1, jj = codes.length; j < jj; ++j) {
  21313. if (codes[j] !== codes[j - 1] + 1) {
  21314. end = range[0] + j - 1;
  21315. format31012 += string32(start) + // startCharCode
  21316. string32(end) + // endCharCode
  21317. string32(code); // startGlyphID
  21318. start = end + 1;
  21319. code = codes[j];
  21320. }
  21321. }
  21322. format31012 += string32(start) + // startCharCode
  21323. string32(range[1]) + // endCharCode
  21324. string32(code); // startGlyphID
  21325. }
  21326. header31012 = '\x00\x0C' + // format
  21327. '\x00\x00' + // reserved
  21328. string32(format31012.length + 16) + // length
  21329. '\x00\x00\x00\x00' + // language
  21330. string32(format31012.length / 12); // nGroups
  21331. }
  21332. return stringToArray(cmap +
  21333. '\x00\x04' + // format
  21334. string16(format314.length + 4) + // length
  21335. format314 + header31012 + format31012);
  21336. }
  21337. function validateOS2Table(os2) {
  21338. var stream = new Stream(os2.data);
  21339. var version = stream.getUint16();
  21340. // TODO verify all OS/2 tables fields, but currently we validate only those
  21341. // that give us issues
  21342. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  21343. var selection = stream.getUint16();
  21344. if (version < 4 && (selection & 0x0300)) {
  21345. return false;
  21346. }
  21347. var firstChar = stream.getUint16();
  21348. var lastChar = stream.getUint16();
  21349. if (firstChar > lastChar) {
  21350. return false;
  21351. }
  21352. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  21353. var usWinAscent = stream.getUint16();
  21354. if (usWinAscent === 0) { // makes font unreadable by windows
  21355. return false;
  21356. }
  21357. // OS/2 appears to be valid, resetting some fields
  21358. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  21359. return true;
  21360. }
  21361. function createOS2Table(properties, charstrings, override) {
  21362. override = override || {
  21363. unitsPerEm: 0,
  21364. yMax: 0,
  21365. yMin: 0,
  21366. ascent: 0,
  21367. descent: 0
  21368. };
  21369. var ulUnicodeRange1 = 0;
  21370. var ulUnicodeRange2 = 0;
  21371. var ulUnicodeRange3 = 0;
  21372. var ulUnicodeRange4 = 0;
  21373. var firstCharIndex = null;
  21374. var lastCharIndex = 0;
  21375. if (charstrings) {
  21376. for (var code in charstrings) {
  21377. code |= 0;
  21378. if (firstCharIndex > code || !firstCharIndex) {
  21379. firstCharIndex = code;
  21380. }
  21381. if (lastCharIndex < code) {
  21382. lastCharIndex = code;
  21383. }
  21384. var position = getUnicodeRangeFor(code);
  21385. if (position < 32) {
  21386. ulUnicodeRange1 |= 1 << position;
  21387. } else if (position < 64) {
  21388. ulUnicodeRange2 |= 1 << position - 32;
  21389. } else if (position < 96) {
  21390. ulUnicodeRange3 |= 1 << position - 64;
  21391. } else if (position < 123) {
  21392. ulUnicodeRange4 |= 1 << position - 96;
  21393. } else {
  21394. error('Unicode ranges Bits > 123 are reserved for internal usage');
  21395. }
  21396. }
  21397. } else {
  21398. // TODO
  21399. firstCharIndex = 0;
  21400. lastCharIndex = 255;
  21401. }
  21402. var bbox = properties.bbox || [0, 0, 0, 0];
  21403. var unitsPerEm = (override.unitsPerEm ||
  21404. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  21405. // if the font units differ to the PDF glyph space units
  21406. // then scale up the values
  21407. var scale = (properties.ascentScaled ? 1.0 :
  21408. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  21409. var typoAscent = (override.ascent ||
  21410. Math.round(scale * (properties.ascent || bbox[3])));
  21411. var typoDescent = (override.descent ||
  21412. Math.round(scale * (properties.descent || bbox[1])));
  21413. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  21414. typoDescent = -typoDescent; // fixing incorrect descent
  21415. }
  21416. var winAscent = override.yMax || typoAscent;
  21417. var winDescent = -override.yMin || -typoDescent;
  21418. return '\x00\x03' + // version
  21419. '\x02\x24' + // xAvgCharWidth
  21420. '\x01\xF4' + // usWeightClass
  21421. '\x00\x05' + // usWidthClass
  21422. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  21423. '\x02\x8A' + // ySubscriptXSize
  21424. '\x02\xBB' + // ySubscriptYSize
  21425. '\x00\x00' + // ySubscriptXOffset
  21426. '\x00\x8C' + // ySubscriptYOffset
  21427. '\x02\x8A' + // ySuperScriptXSize
  21428. '\x02\xBB' + // ySuperScriptYSize
  21429. '\x00\x00' + // ySuperScriptXOffset
  21430. '\x01\xDF' + // ySuperScriptYOffset
  21431. '\x00\x31' + // yStrikeOutSize
  21432. '\x01\x02' + // yStrikeOutPosition
  21433. '\x00\x00' + // sFamilyClass
  21434. '\x00\x00\x06' +
  21435. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  21436. '\x00\x00\x00\x00\x00\x00' + // Panose
  21437. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  21438. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  21439. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  21440. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  21441. '\x2A\x32\x31\x2A' + // achVendID
  21442. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  21443. string16(firstCharIndex ||
  21444. properties.firstChar) + // usFirstCharIndex
  21445. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  21446. string16(typoAscent) + // sTypoAscender
  21447. string16(typoDescent) + // sTypoDescender
  21448. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  21449. string16(winAscent) + // usWinAscent
  21450. string16(winDescent) + // usWinDescent
  21451. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  21452. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  21453. string16(properties.xHeight) + // sxHeight
  21454. string16(properties.capHeight) + // sCapHeight
  21455. string16(0) + // usDefaultChar
  21456. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  21457. '\x00\x03'; // usMaxContext
  21458. }
  21459. function createPostTable(properties) {
  21460. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  21461. return ('\x00\x03\x00\x00' + // Version number
  21462. string32(angle) + // italicAngle
  21463. '\x00\x00' + // underlinePosition
  21464. '\x00\x00' + // underlineThickness
  21465. string32(properties.fixedPitch) + // isFixedPitch
  21466. '\x00\x00\x00\x00' + // minMemType42
  21467. '\x00\x00\x00\x00' + // maxMemType42
  21468. '\x00\x00\x00\x00' + // minMemType1
  21469. '\x00\x00\x00\x00'); // maxMemType1
  21470. }
  21471. function createNameTable(name, proto) {
  21472. if (!proto) {
  21473. proto = [[], []]; // no strings and unicode strings
  21474. }
  21475. var strings = [
  21476. proto[0][0] || 'Original licence', // 0.Copyright
  21477. proto[0][1] || name, // 1.Font family
  21478. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  21479. proto[0][3] || 'uniqueID', // 3.Unique ID
  21480. proto[0][4] || name, // 4.Full font name
  21481. proto[0][5] || 'Version 0.11', // 5.Version
  21482. proto[0][6] || '', // 6.Postscript name
  21483. proto[0][7] || 'Unknown', // 7.Trademark
  21484. proto[0][8] || 'Unknown', // 8.Manufacturer
  21485. proto[0][9] || 'Unknown' // 9.Designer
  21486. ];
  21487. // Mac want 1-byte per character strings while Windows want
  21488. // 2-bytes per character, so duplicate the names table
  21489. var stringsUnicode = [];
  21490. var i, ii, j, jj, str;
  21491. for (i = 0, ii = strings.length; i < ii; i++) {
  21492. str = proto[1][i] || strings[i];
  21493. var strBufUnicode = [];
  21494. for (j = 0, jj = str.length; j < jj; j++) {
  21495. strBufUnicode.push(string16(str.charCodeAt(j)));
  21496. }
  21497. stringsUnicode.push(strBufUnicode.join(''));
  21498. }
  21499. var names = [strings, stringsUnicode];
  21500. var platforms = ['\x00\x01', '\x00\x03'];
  21501. var encodings = ['\x00\x00', '\x00\x01'];
  21502. var languages = ['\x00\x00', '\x04\x09'];
  21503. var namesRecordCount = strings.length * platforms.length;
  21504. var nameTable =
  21505. '\x00\x00' + // format
  21506. string16(namesRecordCount) + // Number of names Record
  21507. string16(namesRecordCount * 12 + 6); // Storage
  21508. // Build the name records field
  21509. var strOffset = 0;
  21510. for (i = 0, ii = platforms.length; i < ii; i++) {
  21511. var strs = names[i];
  21512. for (j = 0, jj = strs.length; j < jj; j++) {
  21513. str = strs[j];
  21514. var nameRecord =
  21515. platforms[i] + // platform ID
  21516. encodings[i] + // encoding ID
  21517. languages[i] + // language ID
  21518. string16(j) + // name ID
  21519. string16(str.length) +
  21520. string16(strOffset);
  21521. nameTable += nameRecord;
  21522. strOffset += str.length;
  21523. }
  21524. }
  21525. nameTable += strings.join('') + stringsUnicode.join('');
  21526. return nameTable;
  21527. }
  21528. Font.prototype = {
  21529. name: null,
  21530. font: null,
  21531. mimetype: null,
  21532. encoding: null,
  21533. get renderer() {
  21534. var renderer = FontRendererFactory.create(this);
  21535. return shadow(this, 'renderer', renderer);
  21536. },
  21537. exportData: function Font_exportData() {
  21538. var data = {};
  21539. for (var i in this) {
  21540. if (this.hasOwnProperty(i)) {
  21541. data[i] = this[i];
  21542. }
  21543. }
  21544. return data;
  21545. },
  21546. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  21547. function readTableEntry(file) {
  21548. var tag = bytesToString(file.getBytes(4));
  21549. var checksum = file.getInt32();
  21550. var offset = file.getInt32() >>> 0;
  21551. var length = file.getInt32() >>> 0;
  21552. // Read the table associated data
  21553. var previousPosition = file.pos;
  21554. file.pos = file.start ? file.start : 0;
  21555. file.skip(offset);
  21556. var data = file.getBytes(length);
  21557. file.pos = previousPosition;
  21558. if (tag == 'head') {
  21559. // clearing checksum adjustment
  21560. data[8] = data[9] = data[10] = data[11] = 0;
  21561. data[17] |= 0x20; //Set font optimized for cleartype flag
  21562. }
  21563. return {
  21564. tag: tag,
  21565. checksum: checksum,
  21566. length: length,
  21567. offset: offset,
  21568. data: data
  21569. };
  21570. }
  21571. function readOpenTypeHeader(ttf) {
  21572. return {
  21573. version: bytesToString(ttf.getBytes(4)),
  21574. numTables: ttf.getUint16(),
  21575. searchRange: ttf.getUint16(),
  21576. entrySelector: ttf.getUint16(),
  21577. rangeShift: ttf.getUint16()
  21578. };
  21579. }
  21580. /**
  21581. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  21582. * PDF spec
  21583. */
  21584. function readCmapTable(cmap, font, isSymbolicFont) {
  21585. var segment;
  21586. var start = (font.start ? font.start : 0) + cmap.offset;
  21587. font.pos = start;
  21588. var version = font.getUint16();
  21589. var numTables = font.getUint16();
  21590. var potentialTable;
  21591. var canBreak = false;
  21592. // There's an order of preference in terms of which cmap subtable to
  21593. // use:
  21594. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  21595. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  21596. // The following takes advantage of the fact that the tables are sorted
  21597. // to work.
  21598. for (var i = 0; i < numTables; i++) {
  21599. var platformId = font.getUint16();
  21600. var encodingId = font.getUint16();
  21601. var offset = font.getInt32() >>> 0;
  21602. var useTable = false;
  21603. if (platformId == 1 && encodingId === 0) {
  21604. useTable = true;
  21605. // Continue the loop since there still may be a higher priority
  21606. // table.
  21607. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  21608. useTable = true;
  21609. canBreak = true;
  21610. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  21611. useTable = true;
  21612. canBreak = true;
  21613. }
  21614. if (useTable) {
  21615. potentialTable = {
  21616. platformId: platformId,
  21617. encodingId: encodingId,
  21618. offset: offset
  21619. };
  21620. }
  21621. if (canBreak) {
  21622. break;
  21623. }
  21624. }
  21625. if (!potentialTable) {
  21626. warn('Could not find a preferred cmap table.');
  21627. return {
  21628. platformId: -1,
  21629. encodingId: -1,
  21630. mappings: [],
  21631. hasShortCmap: false
  21632. };
  21633. }
  21634. font.pos = start + potentialTable.offset;
  21635. var format = font.getUint16();
  21636. var length = font.getUint16();
  21637. var language = font.getUint16();
  21638. var hasShortCmap = false;
  21639. var mappings = [];
  21640. var j, glyphId;
  21641. // TODO(mack): refactor this cmap subtable reading logic out
  21642. if (format === 0) {
  21643. for (j = 0; j < 256; j++) {
  21644. var index = font.getByte();
  21645. if (!index) {
  21646. continue;
  21647. }
  21648. mappings.push({
  21649. charCode: j,
  21650. glyphId: index
  21651. });
  21652. }
  21653. hasShortCmap = true;
  21654. } else if (format === 4) {
  21655. // re-creating the table in format 4 since the encoding
  21656. // might be changed
  21657. var segCount = (font.getUint16() >> 1);
  21658. font.getBytes(6); // skipping range fields
  21659. var segIndex, segments = [];
  21660. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21661. segments.push({ end: font.getUint16() });
  21662. }
  21663. font.getUint16();
  21664. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21665. segments[segIndex].start = font.getUint16();
  21666. }
  21667. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21668. segments[segIndex].delta = font.getUint16();
  21669. }
  21670. var offsetsCount = 0;
  21671. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21672. segment = segments[segIndex];
  21673. var rangeOffset = font.getUint16();
  21674. if (!rangeOffset) {
  21675. segment.offsetIndex = -1;
  21676. continue;
  21677. }
  21678. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  21679. segment.offsetIndex = offsetIndex;
  21680. offsetsCount = Math.max(offsetsCount, offsetIndex +
  21681. segment.end - segment.start + 1);
  21682. }
  21683. var offsets = [];
  21684. for (j = 0; j < offsetsCount; j++) {
  21685. offsets.push(font.getUint16());
  21686. }
  21687. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21688. segment = segments[segIndex];
  21689. start = segment.start;
  21690. var end = segment.end;
  21691. var delta = segment.delta;
  21692. offsetIndex = segment.offsetIndex;
  21693. for (j = start; j <= end; j++) {
  21694. if (j == 0xFFFF) {
  21695. continue;
  21696. }
  21697. glyphId = (offsetIndex < 0 ?
  21698. j : offsets[offsetIndex + j - start]);
  21699. glyphId = (glyphId + delta) & 0xFFFF;
  21700. if (glyphId === 0) {
  21701. continue;
  21702. }
  21703. mappings.push({
  21704. charCode: j,
  21705. glyphId: glyphId
  21706. });
  21707. }
  21708. }
  21709. } else if (format == 6) {
  21710. // Format 6 is a 2-bytes dense mapping, which means the font data
  21711. // lives glue together even if they are pretty far in the unicode
  21712. // table. (This looks weird, so I can have missed something), this
  21713. // works on Linux but seems to fails on Mac so let's rewrite the
  21714. // cmap table to a 3-1-4 style
  21715. var firstCode = font.getUint16();
  21716. var entryCount = font.getUint16();
  21717. for (j = 0; j < entryCount; j++) {
  21718. glyphId = font.getUint16();
  21719. var charCode = firstCode + j;
  21720. mappings.push({
  21721. charCode: charCode,
  21722. glyphId: glyphId
  21723. });
  21724. }
  21725. } else {
  21726. error('cmap table has unsupported format: ' + format);
  21727. }
  21728. // removing duplicate entries
  21729. mappings.sort(function (a, b) {
  21730. return a.charCode - b.charCode;
  21731. });
  21732. for (i = 1; i < mappings.length; i++) {
  21733. if (mappings[i - 1].charCode === mappings[i].charCode) {
  21734. mappings.splice(i, 1);
  21735. i--;
  21736. }
  21737. }
  21738. return {
  21739. platformId: potentialTable.platformId,
  21740. encodingId: potentialTable.encodingId,
  21741. mappings: mappings,
  21742. hasShortCmap: hasShortCmap
  21743. };
  21744. }
  21745. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  21746. if (!header) {
  21747. if (metrics) {
  21748. metrics.data = null;
  21749. }
  21750. return;
  21751. }
  21752. font.pos = (font.start ? font.start : 0) + header.offset;
  21753. font.pos += header.length - 2;
  21754. var numOfMetrics = font.getUint16();
  21755. if (numOfMetrics > numGlyphs) {
  21756. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  21757. 'greater than the numGlyphs (' + numGlyphs + ')');
  21758. // Reduce numOfMetrics if it is greater than numGlyphs
  21759. numOfMetrics = numGlyphs;
  21760. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  21761. header.data[35] = numOfMetrics & 0x00ff;
  21762. }
  21763. var numOfSidebearings = numGlyphs - numOfMetrics;
  21764. var numMissing = numOfSidebearings -
  21765. ((metrics.length - numOfMetrics * 4) >> 1);
  21766. var i, ii;
  21767. if (numMissing > 0) {
  21768. font.pos = (font.start ? font.start : 0) + metrics.offset;
  21769. var entries = '';
  21770. for (i = 0, ii = metrics.length; i < ii; i++) {
  21771. entries += String.fromCharCode(font.getByte());
  21772. }
  21773. for (i = 0; i < numMissing; i++) {
  21774. entries += '\x00\x00';
  21775. }
  21776. metrics.data = stringToArray(entries);
  21777. }
  21778. }
  21779. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  21780. hintsValid) {
  21781. if (sourceEnd - sourceStart <= 12) {
  21782. // glyph with data less than 12 is invalid one
  21783. return 0;
  21784. }
  21785. var glyf = source.subarray(sourceStart, sourceEnd);
  21786. var contoursCount = (glyf[0] << 8) | glyf[1];
  21787. if (contoursCount & 0x8000) {
  21788. // complex glyph, writing as is
  21789. dest.set(glyf, destStart);
  21790. return glyf.length;
  21791. }
  21792. var i, j = 10, flagsCount = 0;
  21793. for (i = 0; i < contoursCount; i++) {
  21794. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  21795. flagsCount = endPoint + 1;
  21796. j += 2;
  21797. }
  21798. // skipping instructions
  21799. var instructionsStart = j;
  21800. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  21801. j += 2 + instructionsLength;
  21802. var instructionsEnd = j;
  21803. // validating flags
  21804. var coordinatesLength = 0;
  21805. for (i = 0; i < flagsCount; i++) {
  21806. var flag = glyf[j++];
  21807. if (flag & 0xC0) {
  21808. // reserved flags must be zero, cleaning up
  21809. glyf[j - 1] = flag & 0x3F;
  21810. }
  21811. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  21812. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  21813. coordinatesLength += xyLength;
  21814. if (flag & 8) {
  21815. var repeat = glyf[j++];
  21816. i += repeat;
  21817. coordinatesLength += repeat * xyLength;
  21818. }
  21819. }
  21820. // glyph without coordinates will be rejected
  21821. if (coordinatesLength === 0) {
  21822. return 0;
  21823. }
  21824. var glyphDataLength = j + coordinatesLength;
  21825. if (glyphDataLength > glyf.length) {
  21826. // not enough data for coordinates
  21827. return 0;
  21828. }
  21829. if (!hintsValid && instructionsLength > 0) {
  21830. dest.set(glyf.subarray(0, instructionsStart), destStart);
  21831. dest.set([0, 0], destStart + instructionsStart);
  21832. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  21833. destStart + instructionsStart + 2);
  21834. glyphDataLength -= instructionsLength;
  21835. if (glyf.length - glyphDataLength > 3) {
  21836. glyphDataLength = (glyphDataLength + 3) & ~3;
  21837. }
  21838. return glyphDataLength;
  21839. }
  21840. if (glyf.length - glyphDataLength > 3) {
  21841. // truncating and aligning to 4 bytes the long glyph data
  21842. glyphDataLength = (glyphDataLength + 3) & ~3;
  21843. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  21844. return glyphDataLength;
  21845. }
  21846. // glyph data is fine
  21847. dest.set(glyf, destStart);
  21848. return glyf.length;
  21849. }
  21850. function sanitizeHead(head, numGlyphs, locaLength) {
  21851. var data = head.data;
  21852. // Validate version:
  21853. // Should always be 0x00010000
  21854. var version = int32(data[0], data[1], data[2], data[3]);
  21855. if (version >> 16 !== 1) {
  21856. info('Attempting to fix invalid version in head table: ' + version);
  21857. data[0] = 0;
  21858. data[1] = 1;
  21859. data[2] = 0;
  21860. data[3] = 0;
  21861. }
  21862. var indexToLocFormat = int16(data[50], data[51]);
  21863. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  21864. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  21865. indexToLocFormat);
  21866. // The value of indexToLocFormat should be 0 if the loca table
  21867. // consists of short offsets, and should be 1 if the loca table
  21868. // consists of long offsets.
  21869. //
  21870. // The number of entries in the loca table should be numGlyphs + 1.
  21871. //
  21872. // Using this information, we can work backwards to deduce if the
  21873. // size of each offset in the loca table, and thus figure out the
  21874. // appropriate value for indexToLocFormat.
  21875. var numGlyphsPlusOne = numGlyphs + 1;
  21876. if (locaLength === numGlyphsPlusOne << 1) {
  21877. // 0x0000 indicates the loca table consists of short offsets
  21878. data[50] = 0;
  21879. data[51] = 0;
  21880. } else if (locaLength === numGlyphsPlusOne << 2) {
  21881. // 0x0001 indicates the loca table consists of long offsets
  21882. data[50] = 0;
  21883. data[51] = 1;
  21884. } else {
  21885. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  21886. }
  21887. }
  21888. }
  21889. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  21890. isGlyphLocationsLong, hintsValid,
  21891. dupFirstEntry) {
  21892. var itemSize, itemDecode, itemEncode;
  21893. if (isGlyphLocationsLong) {
  21894. itemSize = 4;
  21895. itemDecode = function fontItemDecodeLong(data, offset) {
  21896. return (data[offset] << 24) | (data[offset + 1] << 16) |
  21897. (data[offset + 2] << 8) | data[offset + 3];
  21898. };
  21899. itemEncode = function fontItemEncodeLong(data, offset, value) {
  21900. data[offset] = (value >>> 24) & 0xFF;
  21901. data[offset + 1] = (value >> 16) & 0xFF;
  21902. data[offset + 2] = (value >> 8) & 0xFF;
  21903. data[offset + 3] = value & 0xFF;
  21904. };
  21905. } else {
  21906. itemSize = 2;
  21907. itemDecode = function fontItemDecode(data, offset) {
  21908. return (data[offset] << 9) | (data[offset + 1] << 1);
  21909. };
  21910. itemEncode = function fontItemEncode(data, offset, value) {
  21911. data[offset] = (value >> 9) & 0xFF;
  21912. data[offset + 1] = (value >> 1) & 0xFF;
  21913. };
  21914. }
  21915. var locaData = loca.data;
  21916. var locaDataSize = itemSize * (1 + numGlyphs);
  21917. // is loca.data too short or long?
  21918. if (locaData.length !== locaDataSize) {
  21919. locaData = new Uint8Array(locaDataSize);
  21920. locaData.set(loca.data.subarray(0, locaDataSize));
  21921. loca.data = locaData;
  21922. }
  21923. // removing the invalid glyphs
  21924. var oldGlyfData = glyf.data;
  21925. var oldGlyfDataLength = oldGlyfData.length;
  21926. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  21927. var startOffset = itemDecode(locaData, 0);
  21928. var writeOffset = 0;
  21929. itemEncode(locaData, 0, writeOffset);
  21930. var i, j;
  21931. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  21932. var endOffset = itemDecode(locaData, j);
  21933. if (endOffset > oldGlyfDataLength &&
  21934. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  21935. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  21936. // the glyf table size, which makes last glyph out of range.
  21937. endOffset = oldGlyfDataLength;
  21938. }
  21939. if (endOffset > oldGlyfDataLength) {
  21940. // glyph end offset points outside glyf data, rejecting the glyph
  21941. itemEncode(locaData, j, writeOffset);
  21942. startOffset = endOffset;
  21943. continue;
  21944. }
  21945. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  21946. newGlyfData, writeOffset, hintsValid);
  21947. writeOffset += newLength;
  21948. itemEncode(locaData, j, writeOffset);
  21949. startOffset = endOffset;
  21950. }
  21951. if (writeOffset === 0) {
  21952. // glyf table cannot be empty -- redoing the glyf and loca tables
  21953. // to have single glyph with one point
  21954. var simpleGlyph = new Uint8Array(
  21955. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  21956. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  21957. itemEncode(locaData, j, simpleGlyph.length);
  21958. }
  21959. glyf.data = simpleGlyph;
  21960. return;
  21961. }
  21962. if (dupFirstEntry) {
  21963. var firstEntryLength = itemDecode(locaData, itemSize);
  21964. if (newGlyfData.length > firstEntryLength + writeOffset) {
  21965. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  21966. } else {
  21967. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  21968. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  21969. }
  21970. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  21971. itemEncode(loca.data, locaData.length - itemSize,
  21972. writeOffset + firstEntryLength);
  21973. } else {
  21974. glyf.data = newGlyfData.subarray(0, writeOffset);
  21975. }
  21976. }
  21977. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  21978. var start = (font.start ? font.start : 0) + post.offset;
  21979. font.pos = start;
  21980. var length = post.length, end = start + length;
  21981. var version = font.getInt32();
  21982. // skip rest to the tables
  21983. font.getBytes(28);
  21984. var glyphNames;
  21985. var valid = true;
  21986. var i;
  21987. switch (version) {
  21988. case 0x00010000:
  21989. glyphNames = MacStandardGlyphOrdering;
  21990. break;
  21991. case 0x00020000:
  21992. var numGlyphs = font.getUint16();
  21993. if (numGlyphs != maxpNumGlyphs) {
  21994. valid = false;
  21995. break;
  21996. }
  21997. var glyphNameIndexes = [];
  21998. for (i = 0; i < numGlyphs; ++i) {
  21999. var index = font.getUint16();
  22000. if (index >= 32768) {
  22001. valid = false;
  22002. break;
  22003. }
  22004. glyphNameIndexes.push(index);
  22005. }
  22006. if (!valid) {
  22007. break;
  22008. }
  22009. var customNames = [];
  22010. while (font.pos < end) {
  22011. var stringLength = font.getByte();
  22012. var string = '';
  22013. for (i = 0; i < stringLength; ++i) {
  22014. string += String.fromCharCode(font.getByte());
  22015. }
  22016. customNames.push(string);
  22017. }
  22018. glyphNames = [];
  22019. for (i = 0; i < numGlyphs; ++i) {
  22020. var j = glyphNameIndexes[i];
  22021. if (j < 258) {
  22022. glyphNames.push(MacStandardGlyphOrdering[j]);
  22023. continue;
  22024. }
  22025. glyphNames.push(customNames[j - 258]);
  22026. }
  22027. break;
  22028. case 0x00030000:
  22029. break;
  22030. default:
  22031. warn('Unknown/unsupported post table version ' + version);
  22032. valid = false;
  22033. break;
  22034. }
  22035. properties.glyphNames = glyphNames;
  22036. return valid;
  22037. }
  22038. function readNameTable(nameTable) {
  22039. var start = (font.start ? font.start : 0) + nameTable.offset;
  22040. font.pos = start;
  22041. var names = [[], []];
  22042. var length = nameTable.length, end = start + length;
  22043. var format = font.getUint16();
  22044. var FORMAT_0_HEADER_LENGTH = 6;
  22045. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  22046. // unsupported name table format or table "too" small
  22047. return names;
  22048. }
  22049. var numRecords = font.getUint16();
  22050. var stringsStart = font.getUint16();
  22051. var records = [];
  22052. var NAME_RECORD_LENGTH = 12;
  22053. var i, ii;
  22054. for (i = 0; i < numRecords &&
  22055. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  22056. var r = {
  22057. platform: font.getUint16(),
  22058. encoding: font.getUint16(),
  22059. language: font.getUint16(),
  22060. name: font.getUint16(),
  22061. length: font.getUint16(),
  22062. offset: font.getUint16()
  22063. };
  22064. // using only Macintosh and Windows platform/encoding names
  22065. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  22066. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  22067. records.push(r);
  22068. }
  22069. }
  22070. for (i = 0, ii = records.length; i < ii; i++) {
  22071. var record = records[i];
  22072. var pos = start + stringsStart + record.offset;
  22073. if (pos + record.length > end) {
  22074. continue; // outside of name table, ignoring
  22075. }
  22076. font.pos = pos;
  22077. var nameIndex = record.name;
  22078. if (record.encoding) {
  22079. // unicode
  22080. var str = '';
  22081. for (var j = 0, jj = record.length; j < jj; j += 2) {
  22082. str += String.fromCharCode(font.getUint16());
  22083. }
  22084. names[1][nameIndex] = str;
  22085. } else {
  22086. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  22087. }
  22088. }
  22089. return names;
  22090. }
  22091. var TTOpsStackDeltas = [
  22092. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  22093. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  22094. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  22095. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  22096. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  22097. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  22098. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  22099. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  22100. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  22101. // 0xC0-DF == -1 and 0xE0-FF == -2
  22102. function sanitizeTTProgram(table, ttContext) {
  22103. var data = table.data;
  22104. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  22105. var stack = [];
  22106. var callstack = [];
  22107. var functionsCalled = [];
  22108. var tooComplexToFollowFunctions =
  22109. ttContext.tooComplexToFollowFunctions;
  22110. var inFDEF = false, ifLevel = 0, inELSE = 0;
  22111. for (var ii = data.length; i < ii;) {
  22112. var op = data[i++];
  22113. // The TrueType instruction set docs can be found at
  22114. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  22115. if (op === 0x40) { // NPUSHB - pushes n bytes
  22116. n = data[i++];
  22117. if (inFDEF || inELSE) {
  22118. i += n;
  22119. } else {
  22120. for (j = 0; j < n; j++) {
  22121. stack.push(data[i++]);
  22122. }
  22123. }
  22124. } else if (op === 0x41) { // NPUSHW - pushes n words
  22125. n = data[i++];
  22126. if (inFDEF || inELSE) {
  22127. i += n * 2;
  22128. } else {
  22129. for (j = 0; j < n; j++) {
  22130. b = data[i++];
  22131. stack.push((b << 8) | data[i++]);
  22132. }
  22133. }
  22134. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  22135. n = op - 0xB0 + 1;
  22136. if (inFDEF || inELSE) {
  22137. i += n;
  22138. } else {
  22139. for (j = 0; j < n; j++) {
  22140. stack.push(data[i++]);
  22141. }
  22142. }
  22143. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  22144. n = op - 0xB8 + 1;
  22145. if (inFDEF || inELSE) {
  22146. i += n * 2;
  22147. } else {
  22148. for (j = 0; j < n; j++) {
  22149. b = data[i++];
  22150. stack.push((b << 8) | data[i++]);
  22151. }
  22152. }
  22153. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  22154. if (!inFDEF && !inELSE) {
  22155. // collecting inforamtion about which functions are used
  22156. funcId = stack[stack.length - 1];
  22157. ttContext.functionsUsed[funcId] = true;
  22158. if (funcId in ttContext.functionsStackDeltas) {
  22159. stack.length += ttContext.functionsStackDeltas[funcId];
  22160. } else if (funcId in ttContext.functionsDefined &&
  22161. functionsCalled.indexOf(funcId) < 0) {
  22162. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  22163. functionsCalled.push(funcId);
  22164. pc = ttContext.functionsDefined[funcId];
  22165. if (!pc) {
  22166. warn('TT: CALL non-existent function');
  22167. ttContext.hintsValid = false;
  22168. return;
  22169. }
  22170. data = pc.data;
  22171. i = pc.i;
  22172. }
  22173. }
  22174. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  22175. if (inFDEF || inELSE) {
  22176. warn('TT: nested FDEFs not allowed');
  22177. tooComplexToFollowFunctions = true;
  22178. }
  22179. inFDEF = true;
  22180. // collecting inforamtion about which functions are defined
  22181. lastDeff = i;
  22182. funcId = stack.pop();
  22183. ttContext.functionsDefined[funcId] = {data: data, i: i};
  22184. } else if (op === 0x2D) { // ENDF - end of function
  22185. if (inFDEF) {
  22186. inFDEF = false;
  22187. lastEndf = i;
  22188. } else {
  22189. pc = callstack.pop();
  22190. if (!pc) {
  22191. warn('TT: ENDF bad stack');
  22192. ttContext.hintsValid = false;
  22193. return;
  22194. }
  22195. funcId = functionsCalled.pop();
  22196. data = pc.data;
  22197. i = pc.i;
  22198. ttContext.functionsStackDeltas[funcId] =
  22199. stack.length - pc.stackTop;
  22200. }
  22201. } else if (op === 0x89) { // IDEF - instruction definition
  22202. if (inFDEF || inELSE) {
  22203. warn('TT: nested IDEFs not allowed');
  22204. tooComplexToFollowFunctions = true;
  22205. }
  22206. inFDEF = true;
  22207. // recording it as a function to track ENDF
  22208. lastDeff = i;
  22209. } else if (op === 0x58) { // IF
  22210. ++ifLevel;
  22211. } else if (op === 0x1B) { // ELSE
  22212. inELSE = ifLevel;
  22213. } else if (op === 0x59) { // EIF
  22214. if (inELSE === ifLevel) {
  22215. inELSE = 0;
  22216. }
  22217. --ifLevel;
  22218. } else if (op === 0x1C) { // JMPR
  22219. if (!inFDEF && !inELSE) {
  22220. var offset = stack[stack.length - 1];
  22221. // only jumping forward to prevent infinite loop
  22222. if (offset > 0) {
  22223. i += offset - 1;
  22224. }
  22225. }
  22226. }
  22227. // Adjusting stack not extactly, but just enough to get function id
  22228. if (!inFDEF && !inELSE) {
  22229. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  22230. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  22231. if (op >= 0x71 && op <= 0x75) {
  22232. n = stack.pop();
  22233. if (n === n) {
  22234. stackDelta = -n * 2;
  22235. }
  22236. }
  22237. while (stackDelta < 0 && stack.length > 0) {
  22238. stack.pop();
  22239. stackDelta++;
  22240. }
  22241. while (stackDelta > 0) {
  22242. stack.push(NaN); // pushing any number into stack
  22243. stackDelta--;
  22244. }
  22245. }
  22246. }
  22247. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  22248. var content = [data];
  22249. if (i > data.length) {
  22250. content.push(new Uint8Array(i - data.length));
  22251. }
  22252. if (lastDeff > lastEndf) {
  22253. warn('TT: complementing a missing function tail');
  22254. // new function definition started, but not finished
  22255. // complete function by [CLEAR, ENDF]
  22256. content.push(new Uint8Array([0x22, 0x2D]));
  22257. }
  22258. foldTTTable(table, content);
  22259. }
  22260. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  22261. if (ttContext.tooComplexToFollowFunctions) {
  22262. return;
  22263. }
  22264. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  22265. warn('TT: more functions defined than expected');
  22266. ttContext.hintsValid = false;
  22267. return;
  22268. }
  22269. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  22270. if (j > maxFunctionDefs) {
  22271. warn('TT: invalid function id: ' + j);
  22272. ttContext.hintsValid = false;
  22273. return;
  22274. }
  22275. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  22276. warn('TT: undefined function: ' + j);
  22277. ttContext.hintsValid = false;
  22278. return;
  22279. }
  22280. }
  22281. }
  22282. function foldTTTable(table, content) {
  22283. if (content.length > 1) {
  22284. // concatenating the content items
  22285. var newLength = 0;
  22286. var j, jj;
  22287. for (j = 0, jj = content.length; j < jj; j++) {
  22288. newLength += content[j].length;
  22289. }
  22290. newLength = (newLength + 3) & ~3;
  22291. var result = new Uint8Array(newLength);
  22292. var pos = 0;
  22293. for (j = 0, jj = content.length; j < jj; j++) {
  22294. result.set(content[j], pos);
  22295. pos += content[j].length;
  22296. }
  22297. table.data = result;
  22298. table.length = newLength;
  22299. }
  22300. }
  22301. function sanitizeTTPrograms(fpgm, prep, cvt) {
  22302. var ttContext = {
  22303. functionsDefined: [],
  22304. functionsUsed: [],
  22305. functionsStackDeltas: [],
  22306. tooComplexToFollowFunctions: false,
  22307. hintsValid: true
  22308. };
  22309. if (fpgm) {
  22310. sanitizeTTProgram(fpgm, ttContext);
  22311. }
  22312. if (prep) {
  22313. sanitizeTTProgram(prep, ttContext);
  22314. }
  22315. if (fpgm) {
  22316. checkInvalidFunctions(ttContext, maxFunctionDefs);
  22317. }
  22318. if (cvt && (cvt.length & 1)) {
  22319. var cvtData = new Uint8Array(cvt.length + 1);
  22320. cvtData.set(cvt.data);
  22321. cvt.data = cvtData;
  22322. }
  22323. return ttContext.hintsValid;
  22324. }
  22325. // The following steps modify the original font data, making copy
  22326. font = new Stream(new Uint8Array(font.getBytes()));
  22327. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  22328. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  22329. var header = readOpenTypeHeader(font);
  22330. var numTables = header.numTables;
  22331. var cff, cffFile;
  22332. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  22333. hmtx: null, maxp: null, name: null, post: null };
  22334. var table, tableData;
  22335. for (var i = 0; i < numTables; i++) {
  22336. table = readTableEntry(font);
  22337. if (VALID_TABLES.indexOf(table.tag) < 0) {
  22338. continue; // skipping table if it's not a required or optional table
  22339. }
  22340. if (table.length === 0) {
  22341. continue; // skipping empty tables
  22342. }
  22343. tables[table.tag] = table;
  22344. }
  22345. var isTrueType = !tables['CFF '];
  22346. if (!isTrueType) {
  22347. // OpenType font
  22348. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  22349. // no major tables: throwing everything at CFFFont
  22350. cffFile = new Stream(tables['CFF '].data);
  22351. cff = new CFFFont(cffFile, properties);
  22352. return this.convert(name, cff, properties);
  22353. }
  22354. delete tables.glyf;
  22355. delete tables.loca;
  22356. delete tables.fpgm;
  22357. delete tables.prep;
  22358. delete tables['cvt '];
  22359. this.isOpenType = true;
  22360. } else {
  22361. if (!tables.glyf || !tables.loca) {
  22362. error('Required "glyf" or "loca" tables are not found');
  22363. }
  22364. this.isOpenType = false;
  22365. }
  22366. if (!tables.maxp) {
  22367. error('Required "maxp" table is not found');
  22368. }
  22369. font.pos = (font.start || 0) + tables.maxp.offset;
  22370. var version = font.getInt32();
  22371. var numGlyphs = font.getUint16();
  22372. var maxFunctionDefs = 0;
  22373. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  22374. // maxZones can be invalid
  22375. font.pos += 8;
  22376. var maxZones = font.getUint16();
  22377. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  22378. tables.maxp.data[14] = 0;
  22379. tables.maxp.data[15] = 2;
  22380. }
  22381. font.pos += 4;
  22382. maxFunctionDefs = font.getUint16();
  22383. }
  22384. var dupFirstEntry = false;
  22385. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  22386. properties.toUnicode[0] > '\u0000') {
  22387. // oracle's defect (see 3427), duplicating first entry
  22388. dupFirstEntry = true;
  22389. numGlyphs++;
  22390. tables.maxp.data[4] = numGlyphs >> 8;
  22391. tables.maxp.data[5] = numGlyphs & 255;
  22392. }
  22393. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  22394. tables['cvt '], maxFunctionDefs);
  22395. if (!hintsValid) {
  22396. delete tables.fpgm;
  22397. delete tables.prep;
  22398. delete tables['cvt '];
  22399. }
  22400. // Tables needs to be written by ascendant alphabetic order
  22401. var tablesNames = Object.keys(tables);
  22402. tablesNames.sort();
  22403. numTables = tablesNames.length;
  22404. // header and new offsets. Table entry information is appended to the
  22405. // end of file. The virtualOffset represents where to put the actual
  22406. // data of a particular table;
  22407. var ttf = {
  22408. file: '',
  22409. virtualOffset: numTables * (4 * 4)
  22410. };
  22411. // The new numbers of tables will be the last one plus the num
  22412. // of missing tables
  22413. createOpenTypeHeader(header.version, ttf, numTables);
  22414. // Ensure the hmtx table contains the advance width and
  22415. // sidebearings information for numGlyphs in the maxp table
  22416. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  22417. if (!tables.head) {
  22418. error('Required "head" table is not found');
  22419. }
  22420. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  22421. if (isTrueType) {
  22422. var isGlyphLocationsLong = int16(tables.head.data[50],
  22423. tables.head.data[51]);
  22424. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  22425. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  22426. }
  22427. if (!tables.hhea) {
  22428. error('Required "hhea" table is not found');
  22429. }
  22430. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  22431. // Sometimes it's 0. That needs to be fixed
  22432. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  22433. tables.hhea.data[10] = 0xFF;
  22434. tables.hhea.data[11] = 0xFF;
  22435. }
  22436. // The 'post' table has glyphs names.
  22437. if (tables.post) {
  22438. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  22439. if (!valid) {
  22440. tables.post = null;
  22441. }
  22442. }
  22443. var charCodeToGlyphId = [], charCode;
  22444. if (properties.type === 'CIDFontType2') {
  22445. var cidToGidMap = properties.cidToGidMap || [];
  22446. var cidToGidMapLength = cidToGidMap.length;
  22447. var cMap = properties.cMap.map;
  22448. for (charCode in cMap) {
  22449. charCode |= 0;
  22450. var cid = cMap[charCode];
  22451. assert(cid.length === 1, 'Max size of CID is 65,535');
  22452. cid = cid.charCodeAt(0);
  22453. var glyphId = -1;
  22454. if (cidToGidMapLength === 0) {
  22455. glyphId = charCode;
  22456. } else if (cidToGidMap[cid] !== undefined) {
  22457. glyphId = cidToGidMap[cid];
  22458. }
  22459. if (glyphId >= 0 && glyphId < numGlyphs) {
  22460. charCodeToGlyphId[charCode] = glyphId;
  22461. }
  22462. }
  22463. if (dupFirstEntry) {
  22464. charCodeToGlyphId[0] = numGlyphs - 1;
  22465. }
  22466. } else {
  22467. // Most of the following logic in this code branch is based on the
  22468. // 9.6.6.4 of the PDF spec.
  22469. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  22470. var cmapPlatformId = cmapTable.platformId;
  22471. var cmapEncodingId = cmapTable.encodingId;
  22472. var cmapMappings = cmapTable.mappings;
  22473. var cmapMappingsLength = cmapMappings.length;
  22474. var hasEncoding = properties.differences.length ||
  22475. !!properties.baseEncodingName;
  22476. // The spec seems to imply that if the font is symbolic the encoding
  22477. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  22478. // where the the font is symbolic and it has an encoding.
  22479. if (hasEncoding &&
  22480. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  22481. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  22482. var baseEncoding = [];
  22483. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  22484. properties.baseEncodingName === 'WinAnsiEncoding') {
  22485. baseEncoding = Encodings[properties.baseEncodingName];
  22486. }
  22487. for (charCode = 0; charCode < 256; charCode++) {
  22488. var glyphName;
  22489. if (this.differences && charCode in this.differences) {
  22490. glyphName = this.differences[charCode];
  22491. } else if (charCode in baseEncoding &&
  22492. baseEncoding[charCode] !== '') {
  22493. glyphName = baseEncoding[charCode];
  22494. } else {
  22495. glyphName = Encodings.StandardEncoding[charCode];
  22496. }
  22497. if (!glyphName) {
  22498. continue;
  22499. }
  22500. var unicodeOrCharCode;
  22501. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  22502. unicodeOrCharCode = GlyphsUnicode[glyphName];
  22503. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  22504. // TODO: the encoding needs to be updated with mac os table.
  22505. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  22506. }
  22507. var found = false;
  22508. for (i = 0; i < cmapMappingsLength; ++i) {
  22509. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  22510. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22511. found = true;
  22512. break;
  22513. }
  22514. }
  22515. if (!found && properties.glyphNames) {
  22516. // Try to map using the post table. There are currently no known
  22517. // pdfs that this fixes.
  22518. glyphId = properties.glyphNames.indexOf(glyphName);
  22519. if (glyphId > 0) {
  22520. charCodeToGlyphId[charCode] = glyphId;
  22521. }
  22522. }
  22523. }
  22524. } else {
  22525. // For (3, 0) cmap tables:
  22526. // The charcode key being stored in charCodeToGlyphId is the lower
  22527. // byte of the two-byte charcodes of the cmap table since according to
  22528. // the spec: 'each byte from the string shall be prepended with the
  22529. // high byte of the range [of charcodes in the cmap table], to form
  22530. // a two-byte character, which shall be used to select the
  22531. // associated glyph description from the subtable'.
  22532. //
  22533. // For (1, 0) cmap tables:
  22534. // 'single bytes from the string shall be used to look up the
  22535. // associated glyph descriptions from the subtable'. This means
  22536. // charcodes in the cmap will be single bytes, so no-op since
  22537. // glyph.charCode & 0xFF === glyph.charCode
  22538. for (i = 0; i < cmapMappingsLength; ++i) {
  22539. charCode = cmapMappings[i].charCode & 0xFF;
  22540. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22541. }
  22542. }
  22543. }
  22544. if (charCodeToGlyphId.length === 0) {
  22545. // defines at least one glyph
  22546. charCodeToGlyphId[0] = 0;
  22547. }
  22548. // Converting glyphs and ids into font's cmap table
  22549. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  22550. this.toFontChar = newMapping.toFontChar;
  22551. tables.cmap = {
  22552. tag: 'cmap',
  22553. data: createCmapTable(newMapping.charCodeToGlyphId)
  22554. };
  22555. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  22556. // extract some more font properties from the OpenType head and
  22557. // hhea tables; yMin and descent value are always negative
  22558. var override = {
  22559. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  22560. yMax: int16(tables.head.data[42], tables.head.data[43]),
  22561. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  22562. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  22563. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  22564. };
  22565. tables['OS/2'] = {
  22566. tag: 'OS/2',
  22567. data: stringToArray(createOS2Table(properties,
  22568. newMapping.charCodeToGlyphId,
  22569. override))
  22570. };
  22571. }
  22572. // Rewrite the 'post' table if needed
  22573. if (!tables.post) {
  22574. tables.post = {
  22575. tag: 'post',
  22576. data: stringToArray(createPostTable(properties))
  22577. };
  22578. }
  22579. if (!isTrueType) {
  22580. try {
  22581. // Trying to repair CFF file
  22582. cffFile = new Stream(tables['CFF '].data);
  22583. var parser = new CFFParser(cffFile, properties);
  22584. cff = parser.parse();
  22585. var compiler = new CFFCompiler(cff);
  22586. tables['CFF '].data = compiler.compile();
  22587. } catch (e) {
  22588. warn('Failed to compile font ' + properties.loadedName);
  22589. }
  22590. }
  22591. // Re-creating 'name' table
  22592. if (!tables.name) {
  22593. tables.name = {
  22594. tag: 'name',
  22595. data: stringToArray(createNameTable(this.name))
  22596. };
  22597. } else {
  22598. // ... using existing 'name' table as prototype
  22599. var namePrototype = readNameTable(tables.name);
  22600. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  22601. }
  22602. // rewrite the tables but tweak offsets
  22603. for (i = 0; i < numTables; i++) {
  22604. table = tables[tablesNames[i]];
  22605. var data = [];
  22606. tableData = table.data;
  22607. for (var j = 0, jj = tableData.length; j < jj; j++) {
  22608. data.push(tableData[j]);
  22609. }
  22610. createTableEntry(ttf, table.tag, data);
  22611. }
  22612. // Add the table datas
  22613. for (i = 0; i < numTables; i++) {
  22614. table = tables[tablesNames[i]];
  22615. tableData = table.data;
  22616. ttf.file += bytesToString(new Uint8Array(tableData));
  22617. // 4-byte aligned data
  22618. while (ttf.file.length & 3) {
  22619. ttf.file += String.fromCharCode(0);
  22620. }
  22621. }
  22622. return stringToArray(ttf.file);
  22623. },
  22624. convert: function Font_convert(fontName, font, properties) {
  22625. // The offsets object holds at the same time a representation of where
  22626. // to write the table entry information about a table and another offset
  22627. // representing the offset where to draw the actual data of a particular
  22628. // table
  22629. var otf = {
  22630. file: '',
  22631. virtualOffset: 9 * (4 * 4)
  22632. };
  22633. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  22634. // TODO: Check the charstring widths to determine this.
  22635. properties.fixedPitch = false;
  22636. var mapping = font.getGlyphMapping(properties);
  22637. var newMapping = adjustMapping(mapping, properties);
  22638. this.toFontChar = newMapping.toFontChar;
  22639. var numGlyphs = font.numGlyphs;
  22640. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  22641. for (var charCode in charCodeToGlyphId) {
  22642. if (glyphId === charCodeToGlyphId[charCode]) {
  22643. return charCode | 0;
  22644. }
  22645. }
  22646. if (addMap) {
  22647. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  22648. glyphId;
  22649. return newMapping.nextAvailableFontCharCode++;
  22650. }
  22651. return null;
  22652. }
  22653. var seacs = font.seacs;
  22654. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  22655. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  22656. var charset = font.getCharset();
  22657. var seacMap = Object.create(null);
  22658. for (var glyphId in seacs) {
  22659. glyphId |= 0;
  22660. var seac = seacs[glyphId];
  22661. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  22662. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  22663. var baseGlyphId = charset.indexOf(baseGlyphName);
  22664. var accentGlyphId = charset.indexOf(accentGlyphName);
  22665. if (baseGlyphId < 0 || accentGlyphId < 0) {
  22666. continue;
  22667. }
  22668. var accentOffset = {
  22669. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  22670. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  22671. };
  22672. var charCode = getCharCode(mapping, glyphId);
  22673. if (charCode === null) {
  22674. // There's no point in mapping it if the char code was never mapped
  22675. // to begin with.
  22676. continue;
  22677. }
  22678. // Find a fontCharCode that maps to the base and accent glyphs. If one
  22679. // doesn't exists, create it.
  22680. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  22681. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  22682. true);
  22683. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  22684. true);
  22685. seacMap[charCode] = {
  22686. baseFontCharCode: baseFontCharCode,
  22687. accentFontCharCode: accentFontCharCode,
  22688. accentOffset: accentOffset
  22689. };
  22690. }
  22691. properties.seacMap = seacMap;
  22692. }
  22693. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  22694. var fields = {
  22695. // PostScript Font Program
  22696. 'CFF ': font.data,
  22697. // OS/2 and Windows Specific metrics
  22698. 'OS/2': stringToArray(createOS2Table(properties,
  22699. newMapping.charCodeToGlyphId)),
  22700. // Character to glyphs mapping
  22701. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  22702. // Font header
  22703. 'head': (function fontFieldsHead() {
  22704. return stringToArray(
  22705. '\x00\x01\x00\x00' + // Version number
  22706. '\x00\x00\x10\x00' + // fontRevision
  22707. '\x00\x00\x00\x00' + // checksumAdjustement
  22708. '\x5F\x0F\x3C\xF5' + // magicNumber
  22709. '\x00\x00' + // Flags
  22710. safeString16(unitsPerEm) + // unitsPerEM
  22711. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  22712. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  22713. '\x00\x00' + // xMin
  22714. safeString16(properties.descent) + // yMin
  22715. '\x0F\xFF' + // xMax
  22716. safeString16(properties.ascent) + // yMax
  22717. string16(properties.italicAngle ? 2 : 0) + // macStyle
  22718. '\x00\x11' + // lowestRecPPEM
  22719. '\x00\x00' + // fontDirectionHint
  22720. '\x00\x00' + // indexToLocFormat
  22721. '\x00\x00'); // glyphDataFormat
  22722. })(),
  22723. // Horizontal header
  22724. 'hhea': (function fontFieldsHhea() {
  22725. return stringToArray(
  22726. '\x00\x01\x00\x00' + // Version number
  22727. safeString16(properties.ascent) + // Typographic Ascent
  22728. safeString16(properties.descent) + // Typographic Descent
  22729. '\x00\x00' + // Line Gap
  22730. '\xFF\xFF' + // advanceWidthMax
  22731. '\x00\x00' + // minLeftSidebearing
  22732. '\x00\x00' + // minRightSidebearing
  22733. '\x00\x00' + // xMaxExtent
  22734. safeString16(properties.capHeight) + // caretSlopeRise
  22735. safeString16(Math.tan(properties.italicAngle) *
  22736. properties.xHeight) + // caretSlopeRun
  22737. '\x00\x00' + // caretOffset
  22738. '\x00\x00' + // -reserved-
  22739. '\x00\x00' + // -reserved-
  22740. '\x00\x00' + // -reserved-
  22741. '\x00\x00' + // -reserved-
  22742. '\x00\x00' + // metricDataFormat
  22743. string16(numGlyphs)); // Number of HMetrics
  22744. })(),
  22745. // Horizontal metrics
  22746. 'hmtx': (function fontFieldsHmtx() {
  22747. var charstrings = font.charstrings;
  22748. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  22749. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  22750. // TODO: For CFF fonts the width should technically match th x in
  22751. // the glyph, but it doesn't seem to matter.
  22752. var charstring = charstrings ? charstrings[i - 1] : {};
  22753. var width = 'width' in charstring ? charstring.width : 0;
  22754. hmtx += string16(width) + string16(0);
  22755. }
  22756. return stringToArray(hmtx);
  22757. })(),
  22758. // Maximum profile
  22759. 'maxp': (function fontFieldsMaxp() {
  22760. return stringToArray(
  22761. '\x00\x00\x50\x00' + // Version number
  22762. string16(numGlyphs)); // Num of glyphs
  22763. })(),
  22764. // Naming tables
  22765. 'name': stringToArray(createNameTable(fontName)),
  22766. // PostScript informations
  22767. 'post': stringToArray(createPostTable(properties))
  22768. };
  22769. var field;
  22770. for (field in fields) {
  22771. createTableEntry(otf, field, fields[field]);
  22772. }
  22773. for (field in fields) {
  22774. var table = fields[field];
  22775. otf.file += bytesToString(new Uint8Array(table));
  22776. }
  22777. return stringToArray(otf.file);
  22778. },
  22779. /**
  22780. * Builds a char code to unicode map based on section 9.10 of the spec.
  22781. * @param {Object} properties Font properties object.
  22782. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  22783. * unicode (string) values and 'isIdentity' which is true if an identity map
  22784. * is used.
  22785. */
  22786. buildToUnicode: function Font_buildToUnicode(properties) {
  22787. var map = {
  22788. isIdentity: false,
  22789. toUnicode: null
  22790. };
  22791. // Section 9.10.2 Mapping Character Codes to Unicode Values
  22792. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  22793. map.toUnicode = properties.toUnicode;
  22794. return map;
  22795. }
  22796. // According to the spec if the font is a simple font we should only map
  22797. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  22798. // the differences array only contains adobe standard or symbol set names,
  22799. // in pratice it seems better to always try to create a toUnicode
  22800. // map based of the default encoding.
  22801. var toUnicode, charcode;
  22802. if (!properties.composite /* is simple font */) {
  22803. toUnicode = [];
  22804. var encoding = properties.defaultEncoding.slice();
  22805. // Merge in the differences array.
  22806. var differences = properties.differences;
  22807. for (charcode in differences) {
  22808. encoding[charcode] = differences[charcode];
  22809. }
  22810. for (charcode in encoding) {
  22811. // a) Map the character code to a character name.
  22812. var glyphName = encoding[charcode];
  22813. // b) Look up the character name in the Adobe Glyph List (see the
  22814. // Bibliography) to obtain the corresponding Unicode value.
  22815. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  22816. // (undocumented) c) Few heuristics to recognize unknown glyphs
  22817. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  22818. var code;
  22819. // Gxx glyph
  22820. if (glyphName.length === 3 &&
  22821. glyphName[0] === 'G' &&
  22822. (code = parseInt(glyphName.substr(1), 16))) {
  22823. toUnicode[charcode] = String.fromCharCode(code);
  22824. }
  22825. // g00xx glyph
  22826. if (glyphName.length === 5 &&
  22827. glyphName[0] === 'g' &&
  22828. (code = parseInt(glyphName.substr(1), 16))) {
  22829. toUnicode[charcode] = String.fromCharCode(code);
  22830. }
  22831. // Cddd glyph
  22832. if (glyphName.length >= 3 &&
  22833. glyphName[0] === 'C' &&
  22834. (code = +glyphName.substr(1))) {
  22835. toUnicode[charcode] = String.fromCharCode(code);
  22836. }
  22837. continue;
  22838. }
  22839. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  22840. }
  22841. map.toUnicode = toUnicode;
  22842. return map;
  22843. }
  22844. // If the font is a composite font that uses one of the predefined CMaps
  22845. // listed in Table 118 (except Identity–H and Identity–V) or whose
  22846. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  22847. // Adobe-Korea1 character collection:
  22848. if (properties.composite && (
  22849. (properties.cMap.builtInCMap &&
  22850. !(properties.cMap instanceof IdentityCMap)) ||
  22851. (properties.cidSystemInfo.registry === 'Adobe' &&
  22852. (properties.cidSystemInfo.ordering === 'GB1' ||
  22853. properties.cidSystemInfo.ordering === 'CNS1' ||
  22854. properties.cidSystemInfo.ordering === 'Japan1' ||
  22855. properties.cidSystemInfo.ordering === 'Korea1')))) {
  22856. // Then:
  22857. // a) Map the character code to a character identifier (CID) according
  22858. // to the font’s CMap.
  22859. // b) Obtain the registry and ordering of the character collection used
  22860. // by the font’s CMap (for example, Adobe and Japan1) from its
  22861. // CIDSystemInfo dictionary.
  22862. var registry = properties.cidSystemInfo.registry;
  22863. var ordering = properties.cidSystemInfo.ordering;
  22864. // c) Construct a second CMap name by concatenating the registry and
  22865. // ordering obtained in step (b) in the format registry–ordering–UCS2
  22866. // (for example, Adobe–Japan1–UCS2).
  22867. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  22868. // d) Obtain the CMap with the name constructed in step (c) (available
  22869. // from the ASN Web site; see the Bibliography).
  22870. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  22871. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  22872. var cMap = properties.cMap;
  22873. toUnicode = [];
  22874. for (charcode in cMap.map) {
  22875. var cid = cMap.map[charcode];
  22876. assert(cid.length === 1, 'Max size of CID is 65,535');
  22877. // e) Map the CID obtained in step (a) according to the CMap obtained
  22878. // in step (d), producing a Unicode value.
  22879. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  22880. if (!ucs2) {
  22881. continue;
  22882. }
  22883. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  22884. ucs2.charCodeAt(1));
  22885. }
  22886. map.toUnicode = toUnicode;
  22887. return map;
  22888. }
  22889. // The viewer's choice, just use an identity map.
  22890. toUnicode = [];
  22891. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  22892. for (var i = firstChar; i <= lastChar; i++) {
  22893. toUnicode[i] = String.fromCharCode(i);
  22894. }
  22895. map.isIdentity = true;
  22896. map.toUnicode = toUnicode;
  22897. return map;
  22898. },
  22899. get spaceWidth() {
  22900. if ('_shadowWidth' in this) {
  22901. return this._shadowWidth;
  22902. }
  22903. // trying to estimate space character width
  22904. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  22905. var width;
  22906. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  22907. var glyphName = possibleSpaceReplacements[i];
  22908. // if possible, getting width by glyph name
  22909. if (glyphName in this.widths) {
  22910. width = this.widths[glyphName];
  22911. break;
  22912. }
  22913. var glyphUnicode = GlyphsUnicode[glyphName];
  22914. // finding the charcode via unicodeToCID map
  22915. var charcode = 0;
  22916. if (this.composite) {
  22917. if (glyphUnicode in this.cMap.map) {
  22918. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  22919. }
  22920. }
  22921. // ... via toUnicode map
  22922. if (!charcode && 'toUnicode' in this) {
  22923. charcode = this.toUnicode.indexOf(glyphUnicode);
  22924. }
  22925. // setting it to unicode if negative or undefined
  22926. if (charcode <= 0) {
  22927. charcode = glyphUnicode;
  22928. }
  22929. // trying to get width via charcode
  22930. width = this.widths[charcode];
  22931. if (width) {
  22932. break; // the non-zero width found
  22933. }
  22934. }
  22935. width = width || this.defaultWidth;
  22936. // Do not shadow the property here. See discussion:
  22937. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  22938. this._shadowWidth = width;
  22939. return width;
  22940. },
  22941. charToGlyph: function Font_charToGlyph(charcode) {
  22942. var fontCharCode, width, operatorListId;
  22943. var widthCode = charcode;
  22944. if (this.cMap && charcode in this.cMap.map) {
  22945. widthCode = this.cMap.map[charcode].charCodeAt(0);
  22946. }
  22947. width = this.widths[widthCode];
  22948. width = isNum(width) ? width : this.defaultWidth;
  22949. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  22950. var unicode = this.toUnicode[charcode] || charcode;
  22951. if (typeof unicode === 'number') {
  22952. unicode = String.fromCharCode(unicode);
  22953. }
  22954. // First try the toFontChar map, if it's not there then try falling
  22955. // back to the char code.
  22956. fontCharCode = this.toFontChar[charcode] || charcode;
  22957. if (this.missingFile) {
  22958. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  22959. }
  22960. if (this.isType3Font) {
  22961. // Font char code in this case is actually a glyph name.
  22962. operatorListId = fontCharCode;
  22963. }
  22964. var accent = null;
  22965. if (this.seacMap && this.seacMap[charcode]) {
  22966. var seac = this.seacMap[charcode];
  22967. fontCharCode = seac.baseFontCharCode;
  22968. accent = {
  22969. fontChar: String.fromCharCode(seac.accentFontCharCode),
  22970. offset: seac.accentOffset
  22971. };
  22972. }
  22973. var fontChar = String.fromCharCode(fontCharCode);
  22974. var glyph = this.glyphCache[charcode];
  22975. if (!glyph ||
  22976. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  22977. operatorListId)) {
  22978. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  22979. operatorListId);
  22980. this.glyphCache[charcode] = glyph;
  22981. }
  22982. return glyph;
  22983. },
  22984. charsToGlyphs: function Font_charsToGlyphs(chars) {
  22985. var charsCache = this.charsCache;
  22986. var glyphs, glyph, charcode;
  22987. // if we translated this string before, just grab it from the cache
  22988. if (charsCache) {
  22989. glyphs = charsCache[chars];
  22990. if (glyphs) {
  22991. return glyphs;
  22992. }
  22993. }
  22994. // lazily create the translation cache
  22995. if (!charsCache) {
  22996. charsCache = this.charsCache = Object.create(null);
  22997. }
  22998. glyphs = [];
  22999. var charsCacheKey = chars;
  23000. var i = 0, ii;
  23001. if (this.cMap) {
  23002. // composite fonts have multi-byte strings convert the string from
  23003. // single-byte to multi-byte
  23004. while (i < chars.length) {
  23005. var c = this.cMap.readCharCode(chars, i);
  23006. charcode = c[0];
  23007. var length = c[1];
  23008. i += length;
  23009. glyph = this.charToGlyph(charcode);
  23010. glyphs.push(glyph);
  23011. // placing null after each word break charcode (ASCII SPACE)
  23012. // Ignore occurences of 0x20 in multiple-byte codes.
  23013. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  23014. glyphs.push(null);
  23015. }
  23016. }
  23017. } else {
  23018. for (i = 0, ii = chars.length; i < ii; ++i) {
  23019. charcode = chars.charCodeAt(i);
  23020. glyph = this.charToGlyph(charcode);
  23021. glyphs.push(glyph);
  23022. if (charcode == 0x20) {
  23023. glyphs.push(null);
  23024. }
  23025. }
  23026. }
  23027. // Enter the translated string into the cache
  23028. return (charsCache[charsCacheKey] = glyphs);
  23029. }
  23030. };
  23031. return Font;
  23032. })();
  23033. var ErrorFont = (function ErrorFontClosure() {
  23034. function ErrorFont(error) {
  23035. this.error = error;
  23036. this.loadedName = 'g_font_error';
  23037. this.loading = false;
  23038. }
  23039. ErrorFont.prototype = {
  23040. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  23041. return [];
  23042. },
  23043. exportData: function ErrorFont_exportData() {
  23044. return {error: this.error};
  23045. }
  23046. };
  23047. return ErrorFont;
  23048. })();
  23049. /**
  23050. * Shared logic for building a char code to glyph id mapping for Type1 and
  23051. * simple CFF fonts. See section 9.6.6.2 of the spec.
  23052. * @param {Object} properties Font properties object.
  23053. * @param {Object} builtInEncoding The encoding contained within the actual font
  23054. * data.
  23055. * @param {Array} Array of glyph names where the index is the glyph ID.
  23056. * @returns {Object} A char code to glyph ID map.
  23057. */
  23058. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  23059. var charCodeToGlyphId = Object.create(null);
  23060. var glyphId, charCode, baseEncoding;
  23061. if (properties.baseEncodingName) {
  23062. // If a valid base encoding name was used, the mapping is initialized with
  23063. // that.
  23064. baseEncoding = Encodings[properties.baseEncodingName];
  23065. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23066. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23067. if (glyphId >= 0) {
  23068. charCodeToGlyphId[charCode] = glyphId;
  23069. }
  23070. }
  23071. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  23072. // For a symbolic font the encoding should be the fonts built-in
  23073. // encoding.
  23074. for (charCode in builtInEncoding) {
  23075. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  23076. }
  23077. } else {
  23078. // For non-symbolic fonts that don't have a base encoding the standard
  23079. // encoding should be used.
  23080. baseEncoding = Encodings.StandardEncoding;
  23081. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23082. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23083. if (glyphId >= 0) {
  23084. charCodeToGlyphId[charCode] = glyphId;
  23085. }
  23086. }
  23087. }
  23088. // Lastly, merge in the differences.
  23089. var differences = properties.differences;
  23090. if (differences) {
  23091. for (charCode in differences) {
  23092. var glyphName = differences[charCode];
  23093. glyphId = glyphNames.indexOf(glyphName);
  23094. if (glyphId >= 0) {
  23095. charCodeToGlyphId[charCode] = glyphId;
  23096. }
  23097. }
  23098. }
  23099. return charCodeToGlyphId;
  23100. }
  23101. /*
  23102. * CharStrings are encoded following the the CharString Encoding sequence
  23103. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  23104. * The value in a byte indicates a command, a number, or subsequent bytes
  23105. * that are to be interpreted in a special way.
  23106. *
  23107. * CharString Number Encoding:
  23108. * A CharString byte containing the values from 32 through 255 inclusive
  23109. * indicate an integer. These values are decoded in four ranges.
  23110. *
  23111. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  23112. * indicate the integer v - 139. Thus, the integer values from -107 through
  23113. * 107 inclusive may be encoded in single byte.
  23114. *
  23115. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  23116. * indicates an integer involving the next byte, w, according to the formula:
  23117. * [(v - 247) x 256] + w + 108
  23118. *
  23119. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  23120. * indicates an integer involving the next byte, w, according to the formula:
  23121. * -[(v - 251) * 256] - w - 108
  23122. *
  23123. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  23124. * are a two complement signed integer. The first of these bytes contains the
  23125. * highest order bits, the second byte contains the next higher order bits
  23126. * and the fourth byte contain the lowest order bits.
  23127. *
  23128. *
  23129. * CharString Command Encoding:
  23130. * CharStrings commands are encoded in 1 or 2 bytes.
  23131. *
  23132. * Single byte commands are encoded in 1 byte that contains a value between
  23133. * 0 and 31 inclusive.
  23134. * If a command byte contains the value 12, then the value in the next byte
  23135. * indicates a command. This "escape" mechanism allows many extra commands
  23136. * to be encoded and this encoding technique helps to minimize the length of
  23137. * the charStrings.
  23138. */
  23139. var Type1CharString = (function Type1CharStringClosure() {
  23140. var COMMAND_MAP = {
  23141. 'hstem': [1],
  23142. 'vstem': [3],
  23143. 'vmoveto': [4],
  23144. 'rlineto': [5],
  23145. 'hlineto': [6],
  23146. 'vlineto': [7],
  23147. 'rrcurveto': [8],
  23148. 'callsubr': [10],
  23149. 'flex': [12, 35],
  23150. 'drop' : [12, 18],
  23151. 'endchar': [14],
  23152. 'rmoveto': [21],
  23153. 'hmoveto': [22],
  23154. 'vhcurveto': [30],
  23155. 'hvcurveto': [31]
  23156. };
  23157. function Type1CharString() {
  23158. this.width = 0;
  23159. this.lsb = 0;
  23160. this.flexing = false;
  23161. this.output = [];
  23162. this.stack = [];
  23163. }
  23164. Type1CharString.prototype = {
  23165. convert: function Type1CharString_convert(encoded, subrs) {
  23166. var count = encoded.length;
  23167. var error = false;
  23168. var wx, sbx, subrNumber;
  23169. for (var i = 0; i < count; i++) {
  23170. var value = encoded[i];
  23171. if (value < 32) {
  23172. if (value === 12) {
  23173. value = (value << 8) + encoded[++i];
  23174. }
  23175. switch (value) {
  23176. case 1: // hstem
  23177. if (!HINTING_ENABLED) {
  23178. this.stack = [];
  23179. break;
  23180. }
  23181. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23182. break;
  23183. case 3: // vstem
  23184. if (!HINTING_ENABLED) {
  23185. this.stack = [];
  23186. break;
  23187. }
  23188. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23189. break;
  23190. case 4: // vmoveto
  23191. if (this.flexing) {
  23192. if (this.stack.length < 1) {
  23193. error = true;
  23194. break;
  23195. }
  23196. // Add the dx for flex and but also swap the values so they are
  23197. // the right order.
  23198. var dy = this.stack.pop();
  23199. this.stack.push(0, dy);
  23200. break;
  23201. }
  23202. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  23203. break;
  23204. case 5: // rlineto
  23205. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  23206. break;
  23207. case 6: // hlineto
  23208. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  23209. break;
  23210. case 7: // vlineto
  23211. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  23212. break;
  23213. case 8: // rrcurveto
  23214. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  23215. break;
  23216. case 9: // closepath
  23217. // closepath is a Type1 command that does not take argument and is
  23218. // useless in Type2 and it can simply be ignored.
  23219. this.stack = [];
  23220. break;
  23221. case 10: // callsubr
  23222. if (this.stack.length < 1) {
  23223. error = true;
  23224. break;
  23225. }
  23226. subrNumber = this.stack.pop();
  23227. error = this.convert(subrs[subrNumber], subrs);
  23228. break;
  23229. case 11: // return
  23230. return error;
  23231. case 13: // hsbw
  23232. if (this.stack.length < 2) {
  23233. error = true;
  23234. break;
  23235. }
  23236. // To convert to type2 we have to move the width value to the
  23237. // first part of the charstring and then use hmoveto with lsb.
  23238. wx = this.stack.pop();
  23239. sbx = this.stack.pop();
  23240. this.lsb = sbx;
  23241. this.width = wx;
  23242. this.stack.push(sbx);
  23243. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23244. break;
  23245. case 14: // endchar
  23246. this.output.push(COMMAND_MAP.endchar[0]);
  23247. break;
  23248. case 21: // rmoveto
  23249. if (this.flexing) {
  23250. break;
  23251. }
  23252. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23253. break;
  23254. case 22: // hmoveto
  23255. if (this.flexing) {
  23256. // Add the dy for flex.
  23257. this.stack.push(0);
  23258. break;
  23259. }
  23260. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23261. break;
  23262. case 30: // vhcurveto
  23263. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  23264. break;
  23265. case 31: // hvcurveto
  23266. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  23267. break;
  23268. case (12 << 8) + 0: // dotsection
  23269. // dotsection is a Type1 command to specify some hinting feature
  23270. // for dots that do not take a parameter and it can safely be
  23271. // ignored for Type2.
  23272. this.stack = [];
  23273. break;
  23274. case (12 << 8) + 1: // vstem3
  23275. if (!HINTING_ENABLED) {
  23276. this.stack = [];
  23277. break;
  23278. }
  23279. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  23280. // multiple parameters, so instead of returning [vh]stem3 take a
  23281. // shortcut and return [vhstem] instead.
  23282. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23283. break;
  23284. case (12 << 8) + 2: // hstem3
  23285. if (!HINTING_ENABLED) {
  23286. this.stack = [];
  23287. break;
  23288. }
  23289. // See vstem3.
  23290. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23291. break;
  23292. case (12 << 8) + 6: // seac
  23293. // seac is like type 2's special endchar but it doesn't use the
  23294. // first argument asb, so remove it.
  23295. if (SEAC_ANALYSIS_ENABLED) {
  23296. this.seac = this.stack.splice(-4, 4);
  23297. error = this.executeCommand(0, COMMAND_MAP.endchar);
  23298. } else {
  23299. error = this.executeCommand(4, COMMAND_MAP.endchar);
  23300. }
  23301. break;
  23302. case (12 << 8) + 7: // sbw
  23303. if (this.stack.length < 4) {
  23304. error = true;
  23305. break;
  23306. }
  23307. // To convert to type2 we have to move the width value to the
  23308. // first part of the charstring and then use rmoveto with
  23309. // (dx, dy). The height argument will not be used for vmtx and
  23310. // vhea tables reconstruction -- ignoring it.
  23311. var wy = this.stack.pop();
  23312. wx = this.stack.pop();
  23313. var sby = this.stack.pop();
  23314. sbx = this.stack.pop();
  23315. this.lsb = sbx;
  23316. this.width = wx;
  23317. this.stack.push(sbx, sby);
  23318. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23319. break;
  23320. case (12 << 8) + 12: // div
  23321. if (this.stack.length < 2) {
  23322. error = true;
  23323. break;
  23324. }
  23325. var num2 = this.stack.pop();
  23326. var num1 = this.stack.pop();
  23327. this.stack.push(num1 / num2);
  23328. break;
  23329. case (12 << 8) + 16: // callothersubr
  23330. if (this.stack.length < 2) {
  23331. error = true;
  23332. break;
  23333. }
  23334. subrNumber = this.stack.pop();
  23335. var numArgs = this.stack.pop();
  23336. if (subrNumber === 0 && numArgs === 3) {
  23337. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  23338. this.stack.push(
  23339. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  23340. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  23341. flexArgs[4], // bcp2x
  23342. flexArgs[5], // bcp2y
  23343. flexArgs[6], // p2x
  23344. flexArgs[7], // p2y
  23345. flexArgs[8], // bcp3x
  23346. flexArgs[9], // bcp3y
  23347. flexArgs[10], // bcp4x
  23348. flexArgs[11], // bcp4y
  23349. flexArgs[12], // p3x
  23350. flexArgs[13], // p3y
  23351. flexArgs[14] // flexDepth
  23352. // 15 = finalx unused by flex
  23353. // 16 = finaly unused by flex
  23354. );
  23355. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  23356. this.flexing = false;
  23357. this.stack.push(flexArgs[15], flexArgs[16]);
  23358. } else if (subrNumber === 1 && numArgs === 0) {
  23359. this.flexing = true;
  23360. }
  23361. break;
  23362. case (12 << 8) + 17: // pop
  23363. // Ignore this since it is only used with othersubr.
  23364. break;
  23365. case (12 << 8) + 33: // setcurrentpoint
  23366. // Ignore for now.
  23367. this.stack = [];
  23368. break;
  23369. default:
  23370. warn('Unknown type 1 charstring command of "' + value + '"');
  23371. break;
  23372. }
  23373. if (error) {
  23374. break;
  23375. }
  23376. continue;
  23377. } else if (value <= 246) {
  23378. value = value - 139;
  23379. } else if (value <= 250) {
  23380. value = ((value - 247) * 256) + encoded[++i] + 108;
  23381. } else if (value <= 254) {
  23382. value = -((value - 251) * 256) - encoded[++i] - 108;
  23383. } else {
  23384. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  23385. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  23386. }
  23387. this.stack.push(value);
  23388. }
  23389. return error;
  23390. },
  23391. executeCommand: function(howManyArgs, command, keepStack) {
  23392. var stackLength = this.stack.length;
  23393. if (howManyArgs > stackLength) {
  23394. return true;
  23395. }
  23396. var start = stackLength - howManyArgs;
  23397. for (var i = start; i < stackLength; i++) {
  23398. var value = this.stack[i];
  23399. if (value === (value | 0)) { // int
  23400. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  23401. } else { // fixed point
  23402. value = (65536 * value) | 0;
  23403. this.output.push(255,
  23404. (value >> 24) & 0xFF,
  23405. (value >> 16) & 0xFF,
  23406. (value >> 8) & 0xFF,
  23407. value & 0xFF);
  23408. }
  23409. }
  23410. this.output.push.apply(this.output, command);
  23411. if (keepStack) {
  23412. this.stack.splice(start, howManyArgs);
  23413. } else {
  23414. this.stack.length = 0;
  23415. }
  23416. return false;
  23417. }
  23418. };
  23419. return Type1CharString;
  23420. })();
  23421. /*
  23422. * Type1Parser encapsulate the needed code for parsing a Type1 font
  23423. * program. Some of its logic depends on the Type2 charstrings
  23424. * structure.
  23425. * Note: this doesn't really parse the font since that would require evaluation
  23426. * of PostScript, but it is possible in most cases to extract what we need
  23427. * without a full parse.
  23428. */
  23429. var Type1Parser = (function Type1ParserClosure() {
  23430. /*
  23431. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  23432. * of Plaintext Bytes. The function took a key as a parameter which can be
  23433. * for decrypting the eexec block of for decoding charStrings.
  23434. */
  23435. var EEXEC_ENCRYPT_KEY = 55665;
  23436. var CHAR_STRS_ENCRYPT_KEY = 4330;
  23437. function isHexDigit(code) {
  23438. return code >= 48 && code <= 57 || // '0'-'9'
  23439. code >= 65 && code <= 70 || // 'A'-'F'
  23440. code >= 97 && code <= 102; // 'a'-'f'
  23441. }
  23442. function decrypt(data, key, discardNumber) {
  23443. var r = key | 0, c1 = 52845, c2 = 22719;
  23444. var count = data.length;
  23445. var decrypted = new Uint8Array(count);
  23446. for (var i = 0; i < count; i++) {
  23447. var value = data[i];
  23448. decrypted[i] = value ^ (r >> 8);
  23449. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23450. }
  23451. return Array.prototype.slice.call(decrypted, discardNumber);
  23452. }
  23453. function decryptAscii(data, key, discardNumber) {
  23454. var r = key | 0, c1 = 52845, c2 = 22719;
  23455. var count = data.length, maybeLength = count >>> 1;
  23456. var decrypted = new Uint8Array(maybeLength);
  23457. var i, j;
  23458. for (i = 0, j = 0; i < count; i++) {
  23459. var digit1 = data[i];
  23460. if (!isHexDigit(digit1)) {
  23461. continue;
  23462. }
  23463. i++;
  23464. var digit2;
  23465. while (i < count && !isHexDigit(digit2 = data[i])) {
  23466. i++;
  23467. }
  23468. if (i < count) {
  23469. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  23470. decrypted[j++] = value ^ (r >> 8);
  23471. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23472. }
  23473. }
  23474. return Array.prototype.slice.call(decrypted, discardNumber, j);
  23475. }
  23476. function isSpecial(c) {
  23477. return c === 0x2F || // '/'
  23478. c === 0x5B || c === 0x5D || // '[', ']'
  23479. c === 0x7B || c === 0x7D || // '{', '}'
  23480. c === 0x28 || c === 0x29; // '(', ')'
  23481. }
  23482. function Type1Parser(stream, encrypted) {
  23483. if (encrypted) {
  23484. var data = stream.getBytes();
  23485. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  23486. isHexDigit(data[2]) && isHexDigit(data[3]));
  23487. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  23488. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  23489. }
  23490. this.stream = stream;
  23491. this.nextChar();
  23492. }
  23493. Type1Parser.prototype = {
  23494. readNumberArray: function Type1Parser_readNumberArray() {
  23495. this.getToken(); // read '[' or '{' (arrays can start with either)
  23496. var array = [];
  23497. while (true) {
  23498. var token = this.getToken();
  23499. if (token === null || token === ']' || token === '}') {
  23500. break;
  23501. }
  23502. array.push(parseFloat(token || 0));
  23503. }
  23504. return array;
  23505. },
  23506. readNumber: function Type1Parser_readNumber() {
  23507. var token = this.getToken();
  23508. return parseFloat(token || 0);
  23509. },
  23510. readInt: function Type1Parser_readInt() {
  23511. // Use '| 0' to prevent setting a double into length such as the double
  23512. // does not flow into the loop variable.
  23513. var token = this.getToken();
  23514. return parseInt(token || 0, 10) | 0;
  23515. },
  23516. readBoolean: function Type1Parser_readBoolean() {
  23517. var token = this.getToken();
  23518. // Use 1 and 0 since that's what type2 charstrings use.
  23519. return token === 'true' ? 1 : 0;
  23520. },
  23521. nextChar : function Type1_nextChar() {
  23522. return (this.currentChar = this.stream.getByte());
  23523. },
  23524. getToken: function Type1Parser_getToken() {
  23525. // Eat whitespace and comments.
  23526. var comment = false;
  23527. var ch = this.currentChar;
  23528. while (true) {
  23529. if (ch === -1) {
  23530. return null;
  23531. }
  23532. if (comment) {
  23533. if (ch === 0x0A || ch === 0x0D) {
  23534. comment = false;
  23535. }
  23536. } else if (ch === 0x25) { // '%'
  23537. comment = true;
  23538. } else if (!Lexer.isSpace(ch)) {
  23539. break;
  23540. }
  23541. ch = this.nextChar();
  23542. }
  23543. if (isSpecial(ch)) {
  23544. this.nextChar();
  23545. return String.fromCharCode(ch);
  23546. }
  23547. var token = '';
  23548. do {
  23549. token += String.fromCharCode(ch);
  23550. ch = this.nextChar();
  23551. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  23552. return token;
  23553. },
  23554. /*
  23555. * Returns an object containing a Subrs array and a CharStrings
  23556. * array extracted from and eexec encrypted block of data
  23557. */
  23558. extractFontProgram: function Type1Parser_extractFontProgram() {
  23559. var stream = this.stream;
  23560. var subrs = [], charstrings = [];
  23561. var program = {
  23562. subrs: [],
  23563. charstrings: [],
  23564. properties: {
  23565. 'privateData': {
  23566. 'lenIV': 4
  23567. }
  23568. }
  23569. };
  23570. var token, length, data, lenIV, encoded;
  23571. while ((token = this.getToken()) !== null) {
  23572. if (token !== '/') {
  23573. continue;
  23574. }
  23575. token = this.getToken();
  23576. switch (token) {
  23577. case 'CharStrings':
  23578. // The number immediately following CharStrings must be greater or
  23579. // equal to the number of CharStrings.
  23580. this.getToken();
  23581. this.getToken(); // read in 'dict'
  23582. this.getToken(); // read in 'dup'
  23583. this.getToken(); // read in 'begin'
  23584. while(true) {
  23585. token = this.getToken();
  23586. if (token === null || token === 'end') {
  23587. break;
  23588. }
  23589. if (token !== '/') {
  23590. continue;
  23591. }
  23592. var glyph = this.getToken();
  23593. length = this.readInt();
  23594. this.getToken(); // read in 'RD' or '-|'
  23595. data = stream.makeSubStream(stream.pos, length);
  23596. lenIV = program.properties.privateData['lenIV'];
  23597. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23598. // Skip past the required space and binary data.
  23599. stream.skip(length);
  23600. this.nextChar();
  23601. token = this.getToken(); // read in 'ND' or '|-'
  23602. if (token === 'noaccess') {
  23603. this.getToken(); // read in 'def'
  23604. }
  23605. charstrings.push({
  23606. glyph: glyph,
  23607. encoded: encoded
  23608. });
  23609. }
  23610. break;
  23611. case 'Subrs':
  23612. var num = this.readInt();
  23613. this.getToken(); // read in 'array'
  23614. while ((token = this.getToken()) === 'dup') {
  23615. var index = this.readInt();
  23616. length = this.readInt();
  23617. this.getToken(); // read in 'RD' or '-|'
  23618. data = stream.makeSubStream(stream.pos, length);
  23619. lenIV = program.properties.privateData['lenIV'];
  23620. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23621. // Skip past the required space and binary data.
  23622. stream.skip(length);
  23623. this.nextChar();
  23624. token = this.getToken(); // read in 'NP' or '|'
  23625. if (token === 'noaccess') {
  23626. this.getToken(); // read in 'put'
  23627. }
  23628. subrs[index] = encoded;
  23629. }
  23630. break;
  23631. case 'BlueValues':
  23632. case 'OtherBlues':
  23633. case 'FamilyBlues':
  23634. case 'FamilyOtherBlues':
  23635. var blueArray = this.readNumberArray();
  23636. // *Blue* values may contain invalid data: disables reading of
  23637. // those values when hinting is disabled.
  23638. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  23639. HINTING_ENABLED) {
  23640. program.properties.privateData[token] = blueArray;
  23641. }
  23642. break;
  23643. case 'StemSnapH':
  23644. case 'StemSnapV':
  23645. program.properties.privateData[token] = this.readNumberArray();
  23646. break;
  23647. case 'StdHW':
  23648. case 'StdVW':
  23649. program.properties.privateData[token] =
  23650. this.readNumberArray()[0];
  23651. break;
  23652. case 'BlueShift':
  23653. case 'lenIV':
  23654. case 'BlueFuzz':
  23655. case 'BlueScale':
  23656. case 'LanguageGroup':
  23657. case 'ExpansionFactor':
  23658. program.properties.privateData[token] = this.readNumber();
  23659. break;
  23660. case 'ForceBold':
  23661. program.properties.privateData[token] = this.readBoolean();
  23662. break;
  23663. }
  23664. }
  23665. for (var i = 0; i < charstrings.length; i++) {
  23666. glyph = charstrings[i].glyph;
  23667. encoded = charstrings[i].encoded;
  23668. var charString = new Type1CharString();
  23669. var error = charString.convert(encoded, subrs);
  23670. var output = charString.output;
  23671. if (error) {
  23672. // It seems when FreeType encounters an error while evaluating a glyph
  23673. // that it completely ignores the glyph so we'll mimic that behaviour
  23674. // here and put an endchar to make the validator happy.
  23675. output = [14];
  23676. }
  23677. program.charstrings.push({
  23678. glyphName: glyph,
  23679. charstring: output,
  23680. width: charString.width,
  23681. lsb: charString.lsb,
  23682. seac: charString.seac
  23683. });
  23684. }
  23685. return program;
  23686. },
  23687. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  23688. var token;
  23689. while ((token = this.getToken()) !== null) {
  23690. if (token !== '/') {
  23691. continue;
  23692. }
  23693. token = this.getToken();
  23694. switch (token) {
  23695. case 'FontMatrix':
  23696. var matrix = this.readNumberArray();
  23697. properties.fontMatrix = matrix;
  23698. break;
  23699. case 'Encoding':
  23700. var encodingArg = this.getToken();
  23701. var encoding;
  23702. if (!/^\d+$/.test(encodingArg)) {
  23703. // encoding name is specified
  23704. encoding = Encodings[encodingArg];
  23705. } else {
  23706. encoding = [];
  23707. var size = parseInt(encodingArg, 10) | 0;
  23708. this.getToken(); // read in 'array'
  23709. for (var j = 0; j < size; j++) {
  23710. token = this.getToken();
  23711. // skipping till first dup or def (e.g. ignoring for statement)
  23712. while (token !== 'dup' && token !== 'def') {
  23713. token = this.getToken();
  23714. if (token === null) {
  23715. return; // invalid header
  23716. }
  23717. }
  23718. if (token === 'def') {
  23719. break; // read all array data
  23720. }
  23721. var index = this.readInt();
  23722. this.getToken(); // read in '/'
  23723. var glyph = this.getToken();
  23724. encoding[index] = glyph;
  23725. this.getToken(); // read the in 'put'
  23726. }
  23727. }
  23728. properties.builtInEncoding = encoding;
  23729. break;
  23730. case 'FontBBox':
  23731. var fontBBox = this.readNumberArray();
  23732. // adjusting ascent/descent
  23733. properties.ascent = fontBBox[3];
  23734. properties.descent = fontBBox[1];
  23735. properties.ascentScaled = true;
  23736. break;
  23737. }
  23738. }
  23739. }
  23740. };
  23741. return Type1Parser;
  23742. })();
  23743. /**
  23744. * The CFF class takes a Type1 file and wrap it into a
  23745. * 'Compact Font Format' which itself embed Type2 charstrings.
  23746. */
  23747. var CFFStandardStrings = [
  23748. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  23749. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  23750. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  23751. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  23752. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  23753. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  23754. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  23755. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  23756. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  23757. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  23758. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  23759. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  23760. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  23761. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  23762. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  23763. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  23764. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  23765. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  23766. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  23767. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  23768. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  23769. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  23770. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  23771. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  23772. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  23773. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  23774. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  23775. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  23776. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  23777. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  23778. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  23779. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  23780. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  23781. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  23782. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  23783. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  23784. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  23785. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  23786. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  23787. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  23788. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  23789. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  23790. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  23791. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  23792. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  23793. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  23794. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  23795. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  23796. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  23797. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  23798. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  23799. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  23800. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  23801. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  23802. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  23803. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  23804. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  23805. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  23806. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  23807. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  23808. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  23809. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  23810. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  23811. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  23812. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  23813. ];
  23814. // Type1Font is also a CIDFontType0.
  23815. var Type1Font = function Type1Font(name, file, properties) {
  23816. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  23817. // Also, length1 and length2 might be off by 6 bytes as well.
  23818. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  23819. var PFB_HEADER_SIZE = 6;
  23820. var headerBlockLength = properties.length1;
  23821. var eexecBlockLength = properties.length2;
  23822. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  23823. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  23824. if (pfbHeaderPresent) {
  23825. file.skip(PFB_HEADER_SIZE);
  23826. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  23827. (pfbHeader[3] << 8) | pfbHeader[2];
  23828. }
  23829. // Get the data block containing glyphs and subrs informations
  23830. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  23831. var headerBlockParser = new Type1Parser(headerBlock);
  23832. headerBlockParser.extractFontHeader(properties);
  23833. if (pfbHeaderPresent) {
  23834. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  23835. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  23836. (pfbHeader[3] << 8) | pfbHeader[2];
  23837. }
  23838. // Decrypt the data blocks and retrieve it's content
  23839. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  23840. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  23841. var data = eexecBlockParser.extractFontProgram();
  23842. for (var info in data.properties) {
  23843. properties[info] = data.properties[info];
  23844. }
  23845. var charstrings = data.charstrings;
  23846. var type2Charstrings = this.getType2Charstrings(charstrings);
  23847. var subrs = this.getType2Subrs(data.subrs);
  23848. this.charstrings = charstrings;
  23849. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  23850. subrs, properties);
  23851. this.seacs = this.getSeacs(data.charstrings);
  23852. };
  23853. Type1Font.prototype = {
  23854. get numGlyphs() {
  23855. return this.charstrings.length + 1;
  23856. },
  23857. getCharset: function Type1Font_getCharset() {
  23858. var charset = ['.notdef'];
  23859. var charstrings = this.charstrings;
  23860. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  23861. charset.push(charstrings[glyphId].glyphName);
  23862. }
  23863. return charset;
  23864. },
  23865. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  23866. var charstrings = this.charstrings;
  23867. var glyphNames = ['.notdef'], glyphId;
  23868. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  23869. glyphNames.push(charstrings[glyphId].glyphName);
  23870. }
  23871. var encoding = properties.builtInEncoding;
  23872. if (encoding) {
  23873. var builtInEncoding = {};
  23874. for (var charCode in encoding) {
  23875. glyphId = glyphNames.indexOf(encoding[charCode]);
  23876. if (glyphId >= 0) {
  23877. builtInEncoding[charCode] = glyphId;
  23878. }
  23879. }
  23880. }
  23881. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  23882. },
  23883. getSeacs: function Type1Font_getSeacs(charstrings) {
  23884. var i, ii;
  23885. var seacMap = [];
  23886. for (i = 0, ii = charstrings.length; i < ii; i++) {
  23887. var charstring = charstrings[i];
  23888. if (charstring.seac) {
  23889. // Offset by 1 for .notdef
  23890. seacMap[i + 1] = charstring.seac;
  23891. }
  23892. }
  23893. return seacMap;
  23894. },
  23895. getType2Charstrings: function Type1Font_getType2Charstrings(
  23896. type1Charstrings) {
  23897. var type2Charstrings = [];
  23898. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  23899. type2Charstrings.push(type1Charstrings[i].charstring);
  23900. }
  23901. return type2Charstrings;
  23902. },
  23903. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  23904. var bias = 0;
  23905. var count = type1Subrs.length;
  23906. if (count < 1133) {
  23907. bias = 107;
  23908. } else if (count < 33769) {
  23909. bias = 1131;
  23910. } else {
  23911. bias = 32768;
  23912. }
  23913. // Add a bunch of empty subrs to deal with the Type2 bias
  23914. var type2Subrs = [];
  23915. var i;
  23916. for (i = 0; i < bias; i++) {
  23917. type2Subrs.push([0x0B]);
  23918. }
  23919. for (i = 0; i < count; i++) {
  23920. type2Subrs.push(type1Subrs[i]);
  23921. }
  23922. return type2Subrs;
  23923. },
  23924. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  23925. var cff = new CFF();
  23926. cff.header = new CFFHeader(1, 0, 4, 4);
  23927. cff.names = [name];
  23928. var topDict = new CFFTopDict();
  23929. // CFF strings IDs 0...390 are predefined names, so refering
  23930. // to entries in our own String INDEX starts at SID 391.
  23931. topDict.setByName('version', 391);
  23932. topDict.setByName('Notice', 392);
  23933. topDict.setByName('FullName', 393);
  23934. topDict.setByName('FamilyName', 394);
  23935. topDict.setByName('Weight', 395);
  23936. topDict.setByName('Encoding', null); // placeholder
  23937. topDict.setByName('FontMatrix', properties.fontMatrix);
  23938. topDict.setByName('FontBBox', properties.bbox);
  23939. topDict.setByName('charset', null); // placeholder
  23940. topDict.setByName('CharStrings', null); // placeholder
  23941. topDict.setByName('Private', null); // placeholder
  23942. cff.topDict = topDict;
  23943. var strings = new CFFStrings();
  23944. strings.add('Version 0.11'); // Version
  23945. strings.add('See original notice'); // Notice
  23946. strings.add(name); // FullName
  23947. strings.add(name); // FamilyName
  23948. strings.add('Medium'); // Weight
  23949. cff.strings = strings;
  23950. cff.globalSubrIndex = new CFFIndex();
  23951. var count = glyphs.length;
  23952. var charsetArray = [0];
  23953. var i, ii;
  23954. for (i = 0; i < count; i++) {
  23955. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  23956. // TODO: Insert the string and correctly map it. Previously it was
  23957. // thought mapping names that aren't in the standard strings to .notdef
  23958. // was fine, however in issue818 when mapping them all to .notdef the
  23959. // adieresis glyph no longer worked.
  23960. if (index == -1) {
  23961. index = 0;
  23962. }
  23963. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  23964. }
  23965. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  23966. var charStringsIndex = new CFFIndex();
  23967. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  23968. for (i = 0; i < count; i++) {
  23969. charStringsIndex.add(glyphs[i]);
  23970. }
  23971. cff.charStrings = charStringsIndex;
  23972. var privateDict = new CFFPrivateDict();
  23973. privateDict.setByName('Subrs', null); // placeholder
  23974. var fields = [
  23975. 'BlueValues',
  23976. 'OtherBlues',
  23977. 'FamilyBlues',
  23978. 'FamilyOtherBlues',
  23979. 'StemSnapH',
  23980. 'StemSnapV',
  23981. 'BlueShift',
  23982. 'BlueFuzz',
  23983. 'BlueScale',
  23984. 'LanguageGroup',
  23985. 'ExpansionFactor',
  23986. 'ForceBold',
  23987. 'StdHW',
  23988. 'StdVW'
  23989. ];
  23990. for (i = 0, ii = fields.length; i < ii; i++) {
  23991. var field = fields[i];
  23992. if (!properties.privateData.hasOwnProperty(field)) {
  23993. continue;
  23994. }
  23995. var value = properties.privateData[field];
  23996. if (isArray(value)) {
  23997. // All of the private dictionary array data in CFF must be stored as
  23998. // "delta-encoded" numbers.
  23999. for (var j = value.length - 1; j > 0; j--) {
  24000. value[j] -= value[j - 1]; // ... difference from previous value
  24001. }
  24002. }
  24003. privateDict.setByName(field, value);
  24004. }
  24005. cff.topDict.privateDict = privateDict;
  24006. var subrIndex = new CFFIndex();
  24007. for (i = 0, ii = subrs.length; i < ii; i++) {
  24008. subrIndex.add(subrs[i]);
  24009. }
  24010. privateDict.subrsIndex = subrIndex;
  24011. var compiler = new CFFCompiler(cff);
  24012. return compiler.compile();
  24013. }
  24014. };
  24015. var CFFFont = (function CFFFontClosure() {
  24016. function CFFFont(file, properties) {
  24017. this.properties = properties;
  24018. var parser = new CFFParser(file, properties);
  24019. this.cff = parser.parse();
  24020. var compiler = new CFFCompiler(this.cff);
  24021. this.seacs = this.cff.seacs;
  24022. try {
  24023. this.data = compiler.compile();
  24024. } catch (e) {
  24025. warn('Failed to compile font ' + properties.loadedName);
  24026. // There may have just been an issue with the compiler, set the data
  24027. // anyway and hope the font loaded.
  24028. this.data = file;
  24029. }
  24030. }
  24031. CFFFont.prototype = {
  24032. get numGlyphs() {
  24033. return this.cff.charStrings.count;
  24034. },
  24035. getCharset: function CFFFont_getCharset() {
  24036. return this.cff.charset.charset;
  24037. },
  24038. getGlyphMapping: function CFFFont_getGlyphMapping() {
  24039. var cff = this.cff;
  24040. var properties = this.properties;
  24041. var charsets = cff.charset.charset;
  24042. var charCodeToGlyphId;
  24043. var glyphId;
  24044. if (properties.composite) {
  24045. charCodeToGlyphId = Object.create(null);
  24046. if (cff.isCIDFont) {
  24047. // If the font is actually a CID font then we should use the charset
  24048. // to map CIDs to GIDs.
  24049. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  24050. var cidString = String.fromCharCode(charsets[glyphId]);
  24051. var charCode = properties.cMap.map.indexOf(cidString);
  24052. charCodeToGlyphId[charCode] = glyphId;
  24053. }
  24054. } else {
  24055. // If it is NOT actually a CID font then CIDs should be mapped
  24056. // directly to GIDs.
  24057. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  24058. charCodeToGlyphId[glyphId] = glyphId;
  24059. }
  24060. }
  24061. return charCodeToGlyphId;
  24062. }
  24063. var encoding = cff.encoding ? cff.encoding.encoding : null;
  24064. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  24065. return charCodeToGlyphId;
  24066. }
  24067. };
  24068. return CFFFont;
  24069. })();
  24070. var CFFParser = (function CFFParserClosure() {
  24071. var CharstringValidationData = [
  24072. null,
  24073. { id: 'hstem', min: 2, resetStack: true, stem: true },
  24074. null,
  24075. { id: 'vstem', min: 2, resetStack: true, stem: true },
  24076. { id: 'vmoveto', min: 1, resetStack: true },
  24077. { id: 'rlineto', min: 2, resetStack: true },
  24078. { id: 'hlineto', min: 1, resetStack: true },
  24079. { id: 'vlineto', min: 1, resetStack: true },
  24080. { id: 'rrcurveto', min: 6, resetStack: true },
  24081. null,
  24082. { id: 'callsubr', min: 1, undefStack: true },
  24083. { id: 'return', min: 0, undefStack: true },
  24084. null, // 12
  24085. null,
  24086. null, // endchar
  24087. null,
  24088. null,
  24089. null,
  24090. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  24091. null, // hintmask
  24092. null, // cntrmask
  24093. { id: 'rmoveto', min: 2, resetStack: true },
  24094. { id: 'hmoveto', min: 1, resetStack: true },
  24095. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  24096. { id: 'rcurveline', min: 8, resetStack: true },
  24097. { id: 'rlinecurve', min: 8, resetStack: true },
  24098. { id: 'vvcurveto', min: 4, resetStack: true },
  24099. { id: 'hhcurveto', min: 4, resetStack: true },
  24100. null, // shortint
  24101. { id: 'callgsubr', min: 1, undefStack: true },
  24102. { id: 'vhcurveto', min: 4, resetStack: true },
  24103. { id: 'hvcurveto', min: 4, resetStack: true }
  24104. ];
  24105. var CharstringValidationData12 = [
  24106. null,
  24107. null,
  24108. null,
  24109. { id: 'and', min: 2, stackDelta: -1 },
  24110. { id: 'or', min: 2, stackDelta: -1 },
  24111. { id: 'not', min: 1, stackDelta: 0 },
  24112. null,
  24113. null,
  24114. null,
  24115. { id: 'abs', min: 1, stackDelta: 0 },
  24116. { id: 'add', min: 2, stackDelta: -1,
  24117. stackFn: function stack_div(stack, index) {
  24118. stack[index - 2] = stack[index - 2] + stack[index - 1];
  24119. }
  24120. },
  24121. { id: 'sub', min: 2, stackDelta: -1,
  24122. stackFn: function stack_div(stack, index) {
  24123. stack[index - 2] = stack[index - 2] - stack[index - 1];
  24124. }
  24125. },
  24126. { id: 'div', min: 2, stackDelta: -1,
  24127. stackFn: function stack_div(stack, index) {
  24128. stack[index - 2] = stack[index - 2] / stack[index - 1];
  24129. }
  24130. },
  24131. null,
  24132. { id: 'neg', min: 1, stackDelta: 0,
  24133. stackFn: function stack_div(stack, index) {
  24134. stack[index - 1] = -stack[index - 1];
  24135. }
  24136. },
  24137. { id: 'eq', min: 2, stackDelta: -1 },
  24138. null,
  24139. null,
  24140. { id: 'drop', min: 1, stackDelta: -1 },
  24141. null,
  24142. { id: 'put', min: 2, stackDelta: -2 },
  24143. { id: 'get', min: 1, stackDelta: 0 },
  24144. { id: 'ifelse', min: 4, stackDelta: -3 },
  24145. { id: 'random', min: 0, stackDelta: 1 },
  24146. { id: 'mul', min: 2, stackDelta: -1,
  24147. stackFn: function stack_div(stack, index) {
  24148. stack[index - 2] = stack[index - 2] * stack[index - 1];
  24149. }
  24150. },
  24151. null,
  24152. { id: 'sqrt', min: 1, stackDelta: 0 },
  24153. { id: 'dup', min: 1, stackDelta: 1 },
  24154. { id: 'exch', min: 2, stackDelta: 0 },
  24155. { id: 'index', min: 2, stackDelta: 0 },
  24156. { id: 'roll', min: 3, stackDelta: -2 },
  24157. null,
  24158. null,
  24159. null,
  24160. { id: 'hflex', min: 7, resetStack: true },
  24161. { id: 'flex', min: 13, resetStack: true },
  24162. { id: 'hflex1', min: 9, resetStack: true },
  24163. { id: 'flex1', min: 11, resetStack: true }
  24164. ];
  24165. function CFFParser(file, properties) {
  24166. this.bytes = file.getBytes();
  24167. this.properties = properties;
  24168. }
  24169. CFFParser.prototype = {
  24170. parse: function CFFParser_parse() {
  24171. var properties = this.properties;
  24172. var cff = new CFF();
  24173. this.cff = cff;
  24174. // The first five sections must be in order, all the others are reached
  24175. // via offsets contained in one of the below.
  24176. var header = this.parseHeader();
  24177. var nameIndex = this.parseIndex(header.endPos);
  24178. var topDictIndex = this.parseIndex(nameIndex.endPos);
  24179. var stringIndex = this.parseIndex(topDictIndex.endPos);
  24180. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  24181. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  24182. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  24183. cff.header = header.obj;
  24184. cff.names = this.parseNameIndex(nameIndex.obj);
  24185. cff.strings = this.parseStringIndex(stringIndex.obj);
  24186. cff.topDict = topDict;
  24187. cff.globalSubrIndex = globalSubrIndex.obj;
  24188. this.parsePrivateDict(cff.topDict);
  24189. cff.isCIDFont = topDict.hasName('ROS');
  24190. var charStringOffset = topDict.getByName('CharStrings');
  24191. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  24192. cff.charStrings = charStringsAndSeacs.charStrings;
  24193. cff.seacs = charStringsAndSeacs.seacs;
  24194. var fontMatrix = topDict.getByName('FontMatrix');
  24195. if (fontMatrix) {
  24196. properties.fontMatrix = fontMatrix;
  24197. }
  24198. var fontBBox = topDict.getByName('FontBBox');
  24199. if (fontBBox) {
  24200. // adjusting ascent/descent
  24201. properties.ascent = fontBBox[3];
  24202. properties.descent = fontBBox[1];
  24203. properties.ascentScaled = true;
  24204. }
  24205. var charset, encoding;
  24206. if (cff.isCIDFont) {
  24207. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  24208. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  24209. var dictRaw = fdArrayIndex.get(i);
  24210. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  24211. cff.strings);
  24212. this.parsePrivateDict(fontDict);
  24213. cff.fdArray.push(fontDict);
  24214. }
  24215. // cid fonts don't have an encoding
  24216. encoding = null;
  24217. charset = this.parseCharsets(topDict.getByName('charset'),
  24218. cff.charStrings.count, cff.strings, true);
  24219. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  24220. cff.charStrings.count);
  24221. } else {
  24222. charset = this.parseCharsets(topDict.getByName('charset'),
  24223. cff.charStrings.count, cff.strings, false);
  24224. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  24225. properties,
  24226. cff.strings, charset.charset);
  24227. }
  24228. cff.charset = charset;
  24229. cff.encoding = encoding;
  24230. return cff;
  24231. },
  24232. parseHeader: function CFFParser_parseHeader() {
  24233. var bytes = this.bytes;
  24234. var bytesLength = bytes.length;
  24235. var offset = 0;
  24236. // Prevent an infinite loop, by checking that the offset is within the
  24237. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  24238. while (offset < bytesLength && bytes[offset] !== 1) {
  24239. ++offset;
  24240. }
  24241. if (offset >= bytesLength) {
  24242. error('Invalid CFF header');
  24243. } else if (offset !== 0) {
  24244. info('cff data is shifted');
  24245. bytes = bytes.subarray(offset);
  24246. this.bytes = bytes;
  24247. }
  24248. var major = bytes[0];
  24249. var minor = bytes[1];
  24250. var hdrSize = bytes[2];
  24251. var offSize = bytes[3];
  24252. var header = new CFFHeader(major, minor, hdrSize, offSize);
  24253. return { obj: header, endPos: hdrSize };
  24254. },
  24255. parseDict: function CFFParser_parseDict(dict) {
  24256. var pos = 0;
  24257. function parseOperand() {
  24258. var value = dict[pos++];
  24259. if (value === 30) {
  24260. return parseFloatOperand(pos);
  24261. } else if (value === 28) {
  24262. value = dict[pos++];
  24263. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  24264. return value;
  24265. } else if (value === 29) {
  24266. value = dict[pos++];
  24267. value = (value << 8) | dict[pos++];
  24268. value = (value << 8) | dict[pos++];
  24269. value = (value << 8) | dict[pos++];
  24270. return value;
  24271. } else if (value >= 32 && value <= 246) {
  24272. return value - 139;
  24273. } else if (value >= 247 && value <= 250) {
  24274. return ((value - 247) * 256) + dict[pos++] + 108;
  24275. } else if (value >= 251 && value <= 254) {
  24276. return -((value - 251) * 256) - dict[pos++] - 108;
  24277. } else {
  24278. error('255 is not a valid DICT command');
  24279. }
  24280. return -1;
  24281. }
  24282. function parseFloatOperand() {
  24283. var str = '';
  24284. var eof = 15;
  24285. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  24286. '9', '.', 'E', 'E-', null, '-'];
  24287. var length = dict.length;
  24288. while (pos < length) {
  24289. var b = dict[pos++];
  24290. var b1 = b >> 4;
  24291. var b2 = b & 15;
  24292. if (b1 == eof) {
  24293. break;
  24294. }
  24295. str += lookup[b1];
  24296. if (b2 == eof) {
  24297. break;
  24298. }
  24299. str += lookup[b2];
  24300. }
  24301. return parseFloat(str);
  24302. }
  24303. var operands = [];
  24304. var entries = [];
  24305. pos = 0;
  24306. var end = dict.length;
  24307. while (pos < end) {
  24308. var b = dict[pos];
  24309. if (b <= 21) {
  24310. if (b === 12) {
  24311. b = (b << 8) | dict[++pos];
  24312. }
  24313. entries.push([b, operands]);
  24314. operands = [];
  24315. ++pos;
  24316. } else {
  24317. operands.push(parseOperand());
  24318. }
  24319. }
  24320. return entries;
  24321. },
  24322. parseIndex: function CFFParser_parseIndex(pos) {
  24323. var cffIndex = new CFFIndex();
  24324. var bytes = this.bytes;
  24325. var count = (bytes[pos++] << 8) | bytes[pos++];
  24326. var offsets = [];
  24327. var end = pos;
  24328. var i, ii;
  24329. if (count !== 0) {
  24330. var offsetSize = bytes[pos++];
  24331. // add 1 for offset to determine size of last object
  24332. var startPos = pos + ((count + 1) * offsetSize) - 1;
  24333. for (i = 0, ii = count + 1; i < ii; ++i) {
  24334. var offset = 0;
  24335. for (var j = 0; j < offsetSize; ++j) {
  24336. offset <<= 8;
  24337. offset += bytes[pos++];
  24338. }
  24339. offsets.push(startPos + offset);
  24340. }
  24341. end = offsets[count];
  24342. }
  24343. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  24344. var offsetStart = offsets[i];
  24345. var offsetEnd = offsets[i + 1];
  24346. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  24347. }
  24348. return {obj: cffIndex, endPos: end};
  24349. },
  24350. parseNameIndex: function CFFParser_parseNameIndex(index) {
  24351. var names = [];
  24352. for (var i = 0, ii = index.count; i < ii; ++i) {
  24353. var name = index.get(i);
  24354. // OTS doesn't allow names to be over 127 characters.
  24355. var length = Math.min(name.length, 127);
  24356. var data = [];
  24357. // OTS also only permits certain characters in the name.
  24358. for (var j = 0; j < length; ++j) {
  24359. var c = name[j];
  24360. if (j === 0 && c === 0) {
  24361. data[j] = c;
  24362. continue;
  24363. }
  24364. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  24365. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  24366. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  24367. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  24368. data[j] = 95;
  24369. continue;
  24370. }
  24371. data[j] = c;
  24372. }
  24373. names.push(bytesToString(data));
  24374. }
  24375. return names;
  24376. },
  24377. parseStringIndex: function CFFParser_parseStringIndex(index) {
  24378. var strings = new CFFStrings();
  24379. for (var i = 0, ii = index.count; i < ii; ++i) {
  24380. var data = index.get(i);
  24381. strings.add(bytesToString(data));
  24382. }
  24383. return strings;
  24384. },
  24385. createDict: function CFFParser_createDict(Type, dict, strings) {
  24386. var cffDict = new Type(strings);
  24387. for (var i = 0, ii = dict.length; i < ii; ++i) {
  24388. var pair = dict[i];
  24389. var key = pair[0];
  24390. var value = pair[1];
  24391. cffDict.setByKey(key, value);
  24392. }
  24393. return cffDict;
  24394. },
  24395. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  24396. var charStrings = this.parseIndex(charStringOffset).obj;
  24397. var seacs = [];
  24398. var count = charStrings.count;
  24399. for (var i = 0; i < count; i++) {
  24400. var charstring = charStrings.get(i);
  24401. var stackSize = 0;
  24402. var stack = [];
  24403. var undefStack = true;
  24404. var hints = 0;
  24405. var valid = true;
  24406. var data = charstring;
  24407. var length = data.length;
  24408. for (var j = 0; j < length;) {
  24409. var value = data[j++];
  24410. var validationCommand = null;
  24411. if (value == 12) {
  24412. var q = data[j++];
  24413. if (q === 0) {
  24414. // The CFF specification state that the 'dotsection' command
  24415. // (12, 0) is deprecated and treated as a no-op, but all Type2
  24416. // charstrings processors should support them. Unfortunately
  24417. // the font sanitizer don't. As a workaround the sequence (12, 0)
  24418. // is replaced by a useless (0, hmoveto).
  24419. data[j - 2] = 139;
  24420. data[j - 1] = 22;
  24421. stackSize = 0;
  24422. } else {
  24423. validationCommand = CharstringValidationData12[q];
  24424. }
  24425. } else if (value === 28) { // number (16 bit)
  24426. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  24427. j += 2;
  24428. stackSize++;
  24429. } else if (value == 14) {
  24430. if (stackSize >= 4) {
  24431. stackSize -= 4;
  24432. if (SEAC_ANALYSIS_ENABLED) {
  24433. seacs[i] = stack.slice(stackSize, stackSize + 4);
  24434. valid = false;
  24435. }
  24436. }
  24437. } else if (value >= 32 && value <= 246) { // number
  24438. stack[stackSize] = value - 139;
  24439. stackSize++;
  24440. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  24441. stack[stackSize] = (value < 251 ?
  24442. ((value - 247) << 8) + data[j] + 108 :
  24443. -((value - 251) << 8) - data[j] - 108);
  24444. j++;
  24445. stackSize++;
  24446. } else if (value == 255) { // number (32 bit)
  24447. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  24448. (data[j + 2] << 8) | data[j + 3]) / 65536;
  24449. j += 4;
  24450. stackSize++;
  24451. } else if (value == 19 || value == 20) {
  24452. hints += stackSize >> 1;
  24453. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  24454. stackSize = 0;
  24455. } else {
  24456. validationCommand = CharstringValidationData[value];
  24457. }
  24458. if (validationCommand) {
  24459. if (validationCommand.stem) {
  24460. hints += stackSize >> 1;
  24461. }
  24462. if ('min' in validationCommand) {
  24463. if (!undefStack && stackSize < validationCommand.min) {
  24464. warn('Not enough parameters for ' + validationCommand.id +
  24465. '; actual: ' + stackSize +
  24466. ', expected: ' + validationCommand.min);
  24467. valid = false;
  24468. break;
  24469. }
  24470. }
  24471. if ('stackDelta' in validationCommand) {
  24472. if ('stackFn' in validationCommand) {
  24473. validationCommand.stackFn(stack, stackSize);
  24474. }
  24475. stackSize += validationCommand.stackDelta;
  24476. } else if (validationCommand.resetStack) {
  24477. stackSize = 0;
  24478. undefStack = false;
  24479. } else if (validationCommand.undefStack) {
  24480. stackSize = 0;
  24481. undefStack = true;
  24482. }
  24483. }
  24484. }
  24485. if (!valid) {
  24486. // resetting invalid charstring to single 'endchar'
  24487. charStrings.set(i, new Uint8Array([14]));
  24488. }
  24489. }
  24490. return { charStrings: charStrings, seacs: seacs };
  24491. },
  24492. emptyPrivateDictionary:
  24493. function CFFParser_emptyPrivateDictionary(parentDict) {
  24494. var privateDict = this.createDict(CFFPrivateDict, [],
  24495. parentDict.strings);
  24496. parentDict.setByKey(18, [0, 0]);
  24497. parentDict.privateDict = privateDict;
  24498. },
  24499. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  24500. // no private dict, do nothing
  24501. if (!parentDict.hasName('Private')) {
  24502. this.emptyPrivateDictionary(parentDict);
  24503. return;
  24504. }
  24505. var privateOffset = parentDict.getByName('Private');
  24506. // make sure the params are formatted correctly
  24507. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  24508. parentDict.removeByName('Private');
  24509. return;
  24510. }
  24511. var size = privateOffset[0];
  24512. var offset = privateOffset[1];
  24513. // remove empty dicts or ones that refer to invalid location
  24514. if (size === 0 || offset >= this.bytes.length) {
  24515. this.emptyPrivateDictionary(parentDict);
  24516. return;
  24517. }
  24518. var privateDictEnd = offset + size;
  24519. var dictData = this.bytes.subarray(offset, privateDictEnd);
  24520. var dict = this.parseDict(dictData);
  24521. var privateDict = this.createDict(CFFPrivateDict, dict,
  24522. parentDict.strings);
  24523. parentDict.privateDict = privateDict;
  24524. // Parse the Subrs index also since it's relative to the private dict.
  24525. if (!privateDict.getByName('Subrs')) {
  24526. return;
  24527. }
  24528. var subrsOffset = privateDict.getByName('Subrs');
  24529. var relativeOffset = offset + subrsOffset;
  24530. // Validate the offset.
  24531. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  24532. this.emptyPrivateDictionary(parentDict);
  24533. return;
  24534. }
  24535. var subrsIndex = this.parseIndex(relativeOffset);
  24536. privateDict.subrsIndex = subrsIndex.obj;
  24537. },
  24538. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  24539. if (pos === 0) {
  24540. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  24541. ISOAdobeCharset);
  24542. } else if (pos == 1) {
  24543. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  24544. ExpertCharset);
  24545. } else if (pos == 2) {
  24546. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  24547. ExpertSubsetCharset);
  24548. }
  24549. var bytes = this.bytes;
  24550. var start = pos;
  24551. var format = bytes[pos++];
  24552. var charset = ['.notdef'];
  24553. var id, count, i;
  24554. // subtract 1 for the .notdef glyph
  24555. length -= 1;
  24556. switch (format) {
  24557. case 0:
  24558. for (i = 0; i < length; i++) {
  24559. id = (bytes[pos++] << 8) | bytes[pos++];
  24560. charset.push(cid ? id : strings.get(id));
  24561. }
  24562. break;
  24563. case 1:
  24564. while (charset.length <= length) {
  24565. id = (bytes[pos++] << 8) | bytes[pos++];
  24566. count = bytes[pos++];
  24567. for (i = 0; i <= count; i++) {
  24568. charset.push(cid ? id++ : strings.get(id++));
  24569. }
  24570. }
  24571. break;
  24572. case 2:
  24573. while (charset.length <= length) {
  24574. id = (bytes[pos++] << 8) | bytes[pos++];
  24575. count = (bytes[pos++] << 8) | bytes[pos++];
  24576. for (i = 0; i <= count; i++) {
  24577. charset.push(cid ? id++ : strings.get(id++));
  24578. }
  24579. }
  24580. break;
  24581. default:
  24582. error('Unknown charset format');
  24583. }
  24584. // Raw won't be needed if we actually compile the charset.
  24585. var end = pos;
  24586. var raw = bytes.subarray(start, end);
  24587. return new CFFCharset(false, format, charset, raw);
  24588. },
  24589. parseEncoding: function CFFParser_parseEncoding(pos,
  24590. properties,
  24591. strings,
  24592. charset) {
  24593. var encoding = {};
  24594. var bytes = this.bytes;
  24595. var predefined = false;
  24596. var hasSupplement = false;
  24597. var format, i, ii;
  24598. var raw = null;
  24599. function readSupplement() {
  24600. var supplementsCount = bytes[pos++];
  24601. for (i = 0; i < supplementsCount; i++) {
  24602. var code = bytes[pos++];
  24603. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  24604. encoding[code] = charset.indexOf(strings.get(sid));
  24605. }
  24606. }
  24607. if (pos === 0 || pos == 1) {
  24608. predefined = true;
  24609. format = pos;
  24610. var baseEncoding = pos ? Encodings.ExpertEncoding :
  24611. Encodings.StandardEncoding;
  24612. for (i = 0, ii = charset.length; i < ii; i++) {
  24613. var index = baseEncoding.indexOf(charset[i]);
  24614. if (index != -1) {
  24615. encoding[index] = i;
  24616. }
  24617. }
  24618. } else {
  24619. var dataStart = pos;
  24620. format = bytes[pos++];
  24621. switch (format & 0x7f) {
  24622. case 0:
  24623. var glyphsCount = bytes[pos++];
  24624. for (i = 1; i <= glyphsCount; i++) {
  24625. encoding[bytes[pos++]] = i;
  24626. }
  24627. break;
  24628. case 1:
  24629. var rangesCount = bytes[pos++];
  24630. var gid = 1;
  24631. for (i = 0; i < rangesCount; i++) {
  24632. var start = bytes[pos++];
  24633. var left = bytes[pos++];
  24634. for (var j = start; j <= start + left; j++) {
  24635. encoding[j] = gid++;
  24636. }
  24637. }
  24638. break;
  24639. default:
  24640. error('Unknow encoding format: ' + format + ' in CFF');
  24641. break;
  24642. }
  24643. var dataEnd = pos;
  24644. if (format & 0x80) {
  24645. // The font sanitizer does not support CFF encoding with a
  24646. // supplement, since the encoding is not really used to map
  24647. // between gid to glyph, let's overwrite what is declared in
  24648. // the top dictionary to let the sanitizer think the font use
  24649. // StandardEncoding, that's a lie but that's ok.
  24650. bytes[dataStart] &= 0x7f;
  24651. readSupplement();
  24652. hasSupplement = true;
  24653. }
  24654. raw = bytes.subarray(dataStart, dataEnd);
  24655. }
  24656. format = format & 0x7f;
  24657. return new CFFEncoding(predefined, format, encoding, raw);
  24658. },
  24659. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  24660. var start = pos;
  24661. var bytes = this.bytes;
  24662. var format = bytes[pos++];
  24663. var fdSelect = [];
  24664. var i;
  24665. switch (format) {
  24666. case 0:
  24667. for (i = 0; i < length; ++i) {
  24668. var id = bytes[pos++];
  24669. fdSelect.push(id);
  24670. }
  24671. break;
  24672. case 3:
  24673. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  24674. for (i = 0; i < rangesCount; ++i) {
  24675. var first = (bytes[pos++] << 8) | bytes[pos++];
  24676. var fdIndex = bytes[pos++];
  24677. var next = (bytes[pos] << 8) | bytes[pos + 1];
  24678. for (var j = first; j < next; ++j) {
  24679. fdSelect.push(fdIndex);
  24680. }
  24681. }
  24682. // Advance past the sentinel(next).
  24683. pos += 2;
  24684. break;
  24685. default:
  24686. error('Unknown fdselect format ' + format);
  24687. break;
  24688. }
  24689. var end = pos;
  24690. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  24691. }
  24692. };
  24693. return CFFParser;
  24694. })();
  24695. // Compact Font Format
  24696. var CFF = (function CFFClosure() {
  24697. function CFF() {
  24698. this.header = null;
  24699. this.names = [];
  24700. this.topDict = null;
  24701. this.strings = new CFFStrings();
  24702. this.globalSubrIndex = null;
  24703. // The following could really be per font, but since we only have one font
  24704. // store them here.
  24705. this.encoding = null;
  24706. this.charset = null;
  24707. this.charStrings = null;
  24708. this.fdArray = [];
  24709. this.fdSelect = null;
  24710. this.isCIDFont = false;
  24711. }
  24712. return CFF;
  24713. })();
  24714. var CFFHeader = (function CFFHeaderClosure() {
  24715. function CFFHeader(major, minor, hdrSize, offSize) {
  24716. this.major = major;
  24717. this.minor = minor;
  24718. this.hdrSize = hdrSize;
  24719. this.offSize = offSize;
  24720. }
  24721. return CFFHeader;
  24722. })();
  24723. var CFFStrings = (function CFFStringsClosure() {
  24724. function CFFStrings() {
  24725. this.strings = [];
  24726. }
  24727. CFFStrings.prototype = {
  24728. get: function CFFStrings_get(index) {
  24729. if (index >= 0 && index <= 390) {
  24730. return CFFStandardStrings[index];
  24731. }
  24732. if (index - 391 <= this.strings.length) {
  24733. return this.strings[index - 391];
  24734. }
  24735. return CFFStandardStrings[0];
  24736. },
  24737. add: function CFFStrings_add(value) {
  24738. this.strings.push(value);
  24739. },
  24740. get count() {
  24741. return this.strings.length;
  24742. }
  24743. };
  24744. return CFFStrings;
  24745. })();
  24746. var CFFIndex = (function CFFIndexClosure() {
  24747. function CFFIndex() {
  24748. this.objects = [];
  24749. this.length = 0;
  24750. }
  24751. CFFIndex.prototype = {
  24752. add: function CFFIndex_add(data) {
  24753. this.length += data.length;
  24754. this.objects.push(data);
  24755. },
  24756. set: function CFFIndex_set(index, data) {
  24757. this.length += data.length - this.objects[index].length;
  24758. this.objects[index] = data;
  24759. },
  24760. get: function CFFIndex_get(index) {
  24761. return this.objects[index];
  24762. },
  24763. get count() {
  24764. return this.objects.length;
  24765. }
  24766. };
  24767. return CFFIndex;
  24768. })();
  24769. var CFFDict = (function CFFDictClosure() {
  24770. function CFFDict(tables, strings) {
  24771. this.keyToNameMap = tables.keyToNameMap;
  24772. this.nameToKeyMap = tables.nameToKeyMap;
  24773. this.defaults = tables.defaults;
  24774. this.types = tables.types;
  24775. this.opcodes = tables.opcodes;
  24776. this.order = tables.order;
  24777. this.strings = strings;
  24778. this.values = {};
  24779. }
  24780. CFFDict.prototype = {
  24781. // value should always be an array
  24782. setByKey: function CFFDict_setByKey(key, value) {
  24783. if (!(key in this.keyToNameMap)) {
  24784. return false;
  24785. }
  24786. // ignore empty values
  24787. if (value.length === 0) {
  24788. return true;
  24789. }
  24790. var type = this.types[key];
  24791. // remove the array wrapping these types of values
  24792. if (type === 'num' || type === 'sid' || type === 'offset') {
  24793. value = value[0];
  24794. }
  24795. this.values[key] = value;
  24796. return true;
  24797. },
  24798. setByName: function CFFDict_setByName(name, value) {
  24799. if (!(name in this.nameToKeyMap)) {
  24800. error('Invalid dictionary name "' + name + '"');
  24801. }
  24802. this.values[this.nameToKeyMap[name]] = value;
  24803. },
  24804. hasName: function CFFDict_hasName(name) {
  24805. return this.nameToKeyMap[name] in this.values;
  24806. },
  24807. getByName: function CFFDict_getByName(name) {
  24808. if (!(name in this.nameToKeyMap)) {
  24809. error('Invalid dictionary name "' + name + '"');
  24810. }
  24811. var key = this.nameToKeyMap[name];
  24812. if (!(key in this.values)) {
  24813. return this.defaults[key];
  24814. }
  24815. return this.values[key];
  24816. },
  24817. removeByName: function CFFDict_removeByName(name) {
  24818. delete this.values[this.nameToKeyMap[name]];
  24819. }
  24820. };
  24821. CFFDict.createTables = function CFFDict_createTables(layout) {
  24822. var tables = {
  24823. keyToNameMap: {},
  24824. nameToKeyMap: {},
  24825. defaults: {},
  24826. types: {},
  24827. opcodes: {},
  24828. order: []
  24829. };
  24830. for (var i = 0, ii = layout.length; i < ii; ++i) {
  24831. var entry = layout[i];
  24832. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  24833. tables.keyToNameMap[key] = entry[1];
  24834. tables.nameToKeyMap[entry[1]] = key;
  24835. tables.types[key] = entry[2];
  24836. tables.defaults[key] = entry[3];
  24837. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  24838. tables.order.push(key);
  24839. }
  24840. return tables;
  24841. };
  24842. return CFFDict;
  24843. })();
  24844. var CFFTopDict = (function CFFTopDictClosure() {
  24845. var layout = [
  24846. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  24847. [[12, 20], 'SyntheticBase', 'num', null],
  24848. [0, 'version', 'sid', null],
  24849. [1, 'Notice', 'sid', null],
  24850. [[12, 0], 'Copyright', 'sid', null],
  24851. [2, 'FullName', 'sid', null],
  24852. [3, 'FamilyName', 'sid', null],
  24853. [4, 'Weight', 'sid', null],
  24854. [[12, 1], 'isFixedPitch', 'num', 0],
  24855. [[12, 2], 'ItalicAngle', 'num', 0],
  24856. [[12, 3], 'UnderlinePosition', 'num', -100],
  24857. [[12, 4], 'UnderlineThickness', 'num', 50],
  24858. [[12, 5], 'PaintType', 'num', 0],
  24859. [[12, 6], 'CharstringType', 'num', 2],
  24860. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  24861. [0.001, 0, 0, 0.001, 0, 0]],
  24862. [13, 'UniqueID', 'num', null],
  24863. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  24864. [[12, 8], 'StrokeWidth', 'num', 0],
  24865. [14, 'XUID', 'array', null],
  24866. [15, 'charset', 'offset', 0],
  24867. [16, 'Encoding', 'offset', 0],
  24868. [17, 'CharStrings', 'offset', 0],
  24869. [18, 'Private', ['offset', 'offset'], null],
  24870. [[12, 21], 'PostScript', 'sid', null],
  24871. [[12, 22], 'BaseFontName', 'sid', null],
  24872. [[12, 23], 'BaseFontBlend', 'delta', null],
  24873. [[12, 31], 'CIDFontVersion', 'num', 0],
  24874. [[12, 32], 'CIDFontRevision', 'num', 0],
  24875. [[12, 33], 'CIDFontType', 'num', 0],
  24876. [[12, 34], 'CIDCount', 'num', 8720],
  24877. [[12, 35], 'UIDBase', 'num', null],
  24878. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  24879. // before FDArray.
  24880. [[12, 37], 'FDSelect', 'offset', null],
  24881. [[12, 36], 'FDArray', 'offset', null],
  24882. [[12, 38], 'FontName', 'sid', null]
  24883. ];
  24884. var tables = null;
  24885. function CFFTopDict(strings) {
  24886. if (tables === null) {
  24887. tables = CFFDict.createTables(layout);
  24888. }
  24889. CFFDict.call(this, tables, strings);
  24890. this.privateDict = null;
  24891. }
  24892. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  24893. return CFFTopDict;
  24894. })();
  24895. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  24896. var layout = [
  24897. [6, 'BlueValues', 'delta', null],
  24898. [7, 'OtherBlues', 'delta', null],
  24899. [8, 'FamilyBlues', 'delta', null],
  24900. [9, 'FamilyOtherBlues', 'delta', null],
  24901. [[12, 9], 'BlueScale', 'num', 0.039625],
  24902. [[12, 10], 'BlueShift', 'num', 7],
  24903. [[12, 11], 'BlueFuzz', 'num', 1],
  24904. [10, 'StdHW', 'num', null],
  24905. [11, 'StdVW', 'num', null],
  24906. [[12, 12], 'StemSnapH', 'delta', null],
  24907. [[12, 13], 'StemSnapV', 'delta', null],
  24908. [[12, 14], 'ForceBold', 'num', 0],
  24909. [[12, 17], 'LanguageGroup', 'num', 0],
  24910. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  24911. [[12, 19], 'initialRandomSeed', 'num', 0],
  24912. [20, 'defaultWidthX', 'num', 0],
  24913. [21, 'nominalWidthX', 'num', 0],
  24914. [19, 'Subrs', 'offset', null]
  24915. ];
  24916. var tables = null;
  24917. function CFFPrivateDict(strings) {
  24918. if (tables === null) {
  24919. tables = CFFDict.createTables(layout);
  24920. }
  24921. CFFDict.call(this, tables, strings);
  24922. this.subrsIndex = null;
  24923. }
  24924. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  24925. return CFFPrivateDict;
  24926. })();
  24927. var CFFCharsetPredefinedTypes = {
  24928. ISO_ADOBE: 0,
  24929. EXPERT: 1,
  24930. EXPERT_SUBSET: 2
  24931. };
  24932. var CFFCharset = (function CFFCharsetClosure() {
  24933. function CFFCharset(predefined, format, charset, raw) {
  24934. this.predefined = predefined;
  24935. this.format = format;
  24936. this.charset = charset;
  24937. this.raw = raw;
  24938. }
  24939. return CFFCharset;
  24940. })();
  24941. var CFFEncoding = (function CFFEncodingClosure() {
  24942. function CFFEncoding(predefined, format, encoding, raw) {
  24943. this.predefined = predefined;
  24944. this.format = format;
  24945. this.encoding = encoding;
  24946. this.raw = raw;
  24947. }
  24948. return CFFEncoding;
  24949. })();
  24950. var CFFFDSelect = (function CFFFDSelectClosure() {
  24951. function CFFFDSelect(fdSelect, raw) {
  24952. this.fdSelect = fdSelect;
  24953. this.raw = raw;
  24954. }
  24955. return CFFFDSelect;
  24956. })();
  24957. // Helper class to keep track of where an offset is within the data and helps
  24958. // filling in that offset once it's known.
  24959. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  24960. function CFFOffsetTracker() {
  24961. this.offsets = {};
  24962. }
  24963. CFFOffsetTracker.prototype = {
  24964. isTracking: function CFFOffsetTracker_isTracking(key) {
  24965. return key in this.offsets;
  24966. },
  24967. track: function CFFOffsetTracker_track(key, location) {
  24968. if (key in this.offsets) {
  24969. error('Already tracking location of ' + key);
  24970. }
  24971. this.offsets[key] = location;
  24972. },
  24973. offset: function CFFOffsetTracker_offset(value) {
  24974. for (var key in this.offsets) {
  24975. this.offsets[key] += value;
  24976. }
  24977. },
  24978. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  24979. values,
  24980. output) {
  24981. if (!(key in this.offsets)) {
  24982. error('Not tracking location of ' + key);
  24983. }
  24984. var data = output.data;
  24985. var dataOffset = this.offsets[key];
  24986. var size = 5;
  24987. for (var i = 0, ii = values.length; i < ii; ++i) {
  24988. var offset0 = i * size + dataOffset;
  24989. var offset1 = offset0 + 1;
  24990. var offset2 = offset0 + 2;
  24991. var offset3 = offset0 + 3;
  24992. var offset4 = offset0 + 4;
  24993. // It's easy to screw up offsets so perform this sanity check.
  24994. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  24995. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  24996. error('writing to an offset that is not empty');
  24997. }
  24998. var value = values[i];
  24999. data[offset0] = 0x1d;
  25000. data[offset1] = (value >> 24) & 0xFF;
  25001. data[offset2] = (value >> 16) & 0xFF;
  25002. data[offset3] = (value >> 8) & 0xFF;
  25003. data[offset4] = value & 0xFF;
  25004. }
  25005. }
  25006. };
  25007. return CFFOffsetTracker;
  25008. })();
  25009. // Takes a CFF and converts it to the binary representation.
  25010. var CFFCompiler = (function CFFCompilerClosure() {
  25011. function CFFCompiler(cff) {
  25012. this.cff = cff;
  25013. }
  25014. CFFCompiler.prototype = {
  25015. compile: function CFFCompiler_compile() {
  25016. var cff = this.cff;
  25017. var output = {
  25018. data: [],
  25019. length: 0,
  25020. add: function CFFCompiler_add(data) {
  25021. this.data = this.data.concat(data);
  25022. this.length = this.data.length;
  25023. }
  25024. };
  25025. // Compile the five entries that must be in order.
  25026. var header = this.compileHeader(cff.header);
  25027. output.add(header);
  25028. var nameIndex = this.compileNameIndex(cff.names);
  25029. output.add(nameIndex);
  25030. if (cff.isCIDFont) {
  25031. // The spec is unclear on how font matrices should relate to each other
  25032. // when there is one in the main top dict and the sub top dicts.
  25033. // Windows handles this differently than linux and osx so we have to
  25034. // normalize to work on all.
  25035. // Rules based off of some mailing list discussions:
  25036. // - If main font has a matrix and subfont doesn't, use the main matrix.
  25037. // - If no main font matrix and there is a subfont matrix, use the
  25038. // subfont matrix.
  25039. // - If both have matrices, concat together.
  25040. // - If neither have matrices, use default.
  25041. // To make this work on all platforms we move the top matrix into each
  25042. // sub top dict and concat if necessary.
  25043. if (cff.topDict.hasName('FontMatrix')) {
  25044. var base = cff.topDict.getByName('FontMatrix');
  25045. cff.topDict.removeByName('FontMatrix');
  25046. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  25047. var subDict = cff.fdArray[i];
  25048. var matrix = base.slice(0);
  25049. if (subDict.hasName('FontMatrix')) {
  25050. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  25051. }
  25052. subDict.setByName('FontMatrix', matrix);
  25053. }
  25054. }
  25055. }
  25056. var compiled = this.compileTopDicts([cff.topDict],
  25057. output.length,
  25058. cff.isCIDFont);
  25059. output.add(compiled.output);
  25060. var topDictTracker = compiled.trackers[0];
  25061. var stringIndex = this.compileStringIndex(cff.strings.strings);
  25062. output.add(stringIndex);
  25063. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  25064. output.add(globalSubrIndex);
  25065. // Now start on the other entries that have no specfic order.
  25066. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  25067. if (cff.encoding.predefined) {
  25068. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  25069. output);
  25070. } else {
  25071. var encoding = this.compileEncoding(cff.encoding);
  25072. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  25073. output.add(encoding);
  25074. }
  25075. }
  25076. if (cff.charset && cff.topDict.hasName('charset')) {
  25077. if (cff.charset.predefined) {
  25078. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  25079. output);
  25080. } else {
  25081. var charset = this.compileCharset(cff.charset);
  25082. topDictTracker.setEntryLocation('charset', [output.length], output);
  25083. output.add(charset);
  25084. }
  25085. }
  25086. var charStrings = this.compileCharStrings(cff.charStrings);
  25087. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  25088. output.add(charStrings);
  25089. if (cff.isCIDFont) {
  25090. // For some reason FDSelect must be in front of FDArray on windows. OSX
  25091. // and linux don't seem to care.
  25092. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  25093. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  25094. output.add(fdSelect);
  25095. // It is unclear if the sub font dictionary can have CID related
  25096. // dictionary keys, but the sanitizer doesn't like them so remove them.
  25097. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  25098. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  25099. output.add(compiled.output);
  25100. var fontDictTrackers = compiled.trackers;
  25101. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  25102. }
  25103. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  25104. // If the font data ends with INDEX whose object data is zero-length,
  25105. // the sanitizer will bail out. Add a dummy byte to avoid that.
  25106. output.add([0]);
  25107. return output.data;
  25108. },
  25109. encodeNumber: function CFFCompiler_encodeNumber(value) {
  25110. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  25111. return this.encodeInteger(value);
  25112. } else {
  25113. return this.encodeFloat(value);
  25114. }
  25115. },
  25116. encodeFloat: function CFFCompiler_encodeFloat(num) {
  25117. var value = num.toString();
  25118. // rounding inaccurate doubles
  25119. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  25120. if (m) {
  25121. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  25122. value = (Math.round(num * epsilon) / epsilon).toString();
  25123. }
  25124. var nibbles = '';
  25125. var i, ii;
  25126. for (i = 0, ii = value.length; i < ii; ++i) {
  25127. var a = value[i];
  25128. if (a === 'e') {
  25129. nibbles += value[++i] === '-' ? 'c' : 'b';
  25130. } else if (a === '.') {
  25131. nibbles += 'a';
  25132. } else if (a === '-') {
  25133. nibbles += 'e';
  25134. } else {
  25135. nibbles += a;
  25136. }
  25137. }
  25138. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  25139. var out = [30];
  25140. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  25141. out.push(parseInt(nibbles.substr(i, 2), 16));
  25142. }
  25143. return out;
  25144. },
  25145. encodeInteger: function CFFCompiler_encodeInteger(value) {
  25146. var code;
  25147. if (value >= -107 && value <= 107) {
  25148. code = [value + 139];
  25149. } else if (value >= 108 && value <= 1131) {
  25150. value = [value - 108];
  25151. code = [(value >> 8) + 247, value & 0xFF];
  25152. } else if (value >= -1131 && value <= -108) {
  25153. value = -value - 108;
  25154. code = [(value >> 8) + 251, value & 0xFF];
  25155. } else if (value >= -32768 && value <= 32767) {
  25156. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  25157. } else {
  25158. code = [0x1d,
  25159. (value >> 24) & 0xFF,
  25160. (value >> 16) & 0xFF,
  25161. (value >> 8) & 0xFF,
  25162. value & 0xFF];
  25163. }
  25164. return code;
  25165. },
  25166. compileHeader: function CFFCompiler_compileHeader(header) {
  25167. return [
  25168. header.major,
  25169. header.minor,
  25170. header.hdrSize,
  25171. header.offSize
  25172. ];
  25173. },
  25174. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  25175. var nameIndex = new CFFIndex();
  25176. for (var i = 0, ii = names.length; i < ii; ++i) {
  25177. nameIndex.add(stringToArray(names[i]));
  25178. }
  25179. return this.compileIndex(nameIndex);
  25180. },
  25181. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  25182. length,
  25183. removeCidKeys) {
  25184. var fontDictTrackers = [];
  25185. var fdArrayIndex = new CFFIndex();
  25186. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25187. var fontDict = dicts[i];
  25188. if (removeCidKeys) {
  25189. fontDict.removeByName('CIDFontVersion');
  25190. fontDict.removeByName('CIDFontRevision');
  25191. fontDict.removeByName('CIDFontType');
  25192. fontDict.removeByName('CIDCount');
  25193. fontDict.removeByName('UIDBase');
  25194. }
  25195. var fontDictTracker = new CFFOffsetTracker();
  25196. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  25197. fontDictTrackers.push(fontDictTracker);
  25198. fdArrayIndex.add(fontDictData);
  25199. fontDictTracker.offset(length);
  25200. }
  25201. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  25202. return {
  25203. trackers: fontDictTrackers,
  25204. output: fdArrayIndex
  25205. };
  25206. },
  25207. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  25208. trackers,
  25209. output) {
  25210. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25211. var fontDict = dicts[i];
  25212. assert(fontDict.privateDict && fontDict.hasName('Private'),
  25213. 'There must be an private dictionary.');
  25214. var privateDict = fontDict.privateDict;
  25215. var privateDictTracker = new CFFOffsetTracker();
  25216. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  25217. var outputLength = output.length;
  25218. privateDictTracker.offset(outputLength);
  25219. if (!privateDictData.length) {
  25220. // The private dictionary was empty, set the output length to zero to
  25221. // ensure the offset length isn't out of bounds in the eyes of the
  25222. // sanitizer.
  25223. outputLength = 0;
  25224. }
  25225. trackers[i].setEntryLocation('Private',
  25226. [privateDictData.length, outputLength],
  25227. output);
  25228. output.add(privateDictData);
  25229. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  25230. var subrs = this.compileIndex(privateDict.subrsIndex);
  25231. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  25232. output);
  25233. output.add(subrs);
  25234. }
  25235. }
  25236. },
  25237. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  25238. var out = [];
  25239. // The dictionary keys must be in a certain order.
  25240. var order = dict.order;
  25241. for (var i = 0; i < order.length; ++i) {
  25242. var key = order[i];
  25243. if (!(key in dict.values)) {
  25244. continue;
  25245. }
  25246. var values = dict.values[key];
  25247. var types = dict.types[key];
  25248. if (!isArray(types)) {
  25249. types = [types];
  25250. }
  25251. if (!isArray(values)) {
  25252. values = [values];
  25253. }
  25254. // Remove any empty dict values.
  25255. if (values.length === 0) {
  25256. continue;
  25257. }
  25258. for (var j = 0, jj = types.length; j < jj; ++j) {
  25259. var type = types[j];
  25260. var value = values[j];
  25261. switch (type) {
  25262. case 'num':
  25263. case 'sid':
  25264. out = out.concat(this.encodeNumber(value));
  25265. break;
  25266. case 'offset':
  25267. // For offsets we just insert a 32bit integer so we don't have to
  25268. // deal with figuring out the length of the offset when it gets
  25269. // replaced later on by the compiler.
  25270. var name = dict.keyToNameMap[key];
  25271. // Some offsets have the offset and the length, so just record the
  25272. // position of the first one.
  25273. if (!offsetTracker.isTracking(name)) {
  25274. offsetTracker.track(name, out.length);
  25275. }
  25276. out = out.concat([0x1d, 0, 0, 0, 0]);
  25277. break;
  25278. case 'array':
  25279. case 'delta':
  25280. out = out.concat(this.encodeNumber(value));
  25281. for (var k = 1, kk = values.length; k < kk; ++k) {
  25282. out = out.concat(this.encodeNumber(values[k]));
  25283. }
  25284. break;
  25285. default:
  25286. error('Unknown data type of ' + type);
  25287. break;
  25288. }
  25289. }
  25290. out = out.concat(dict.opcodes[key]);
  25291. }
  25292. return out;
  25293. },
  25294. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  25295. var stringIndex = new CFFIndex();
  25296. for (var i = 0, ii = strings.length; i < ii; ++i) {
  25297. stringIndex.add(stringToArray(strings[i]));
  25298. }
  25299. return this.compileIndex(stringIndex);
  25300. },
  25301. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  25302. var globalSubrIndex = this.cff.globalSubrIndex;
  25303. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  25304. },
  25305. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  25306. return this.compileIndex(charStrings);
  25307. },
  25308. compileCharset: function CFFCompiler_compileCharset(charset) {
  25309. return this.compileTypedArray(charset.raw);
  25310. },
  25311. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  25312. return this.compileTypedArray(encoding.raw);
  25313. },
  25314. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  25315. return this.compileTypedArray(fdSelect);
  25316. },
  25317. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  25318. var out = [];
  25319. for (var i = 0, ii = data.length; i < ii; ++i) {
  25320. out[i] = data[i];
  25321. }
  25322. return out;
  25323. },
  25324. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  25325. trackers = trackers || [];
  25326. var objects = index.objects;
  25327. // First 2 bytes contains the number of objects contained into this index
  25328. var count = objects.length;
  25329. // If there is no object, just create an index. This technically
  25330. // should just be [0, 0] but OTS has an issue with that.
  25331. if (count === 0) {
  25332. return [0, 0, 0];
  25333. }
  25334. var data = [(count >> 8) & 0xFF, count & 0xff];
  25335. var lastOffset = 1, i;
  25336. for (i = 0; i < count; ++i) {
  25337. lastOffset += objects[i].length;
  25338. }
  25339. var offsetSize;
  25340. if (lastOffset < 0x100) {
  25341. offsetSize = 1;
  25342. } else if (lastOffset < 0x10000) {
  25343. offsetSize = 2;
  25344. } else if (lastOffset < 0x1000000) {
  25345. offsetSize = 3;
  25346. } else {
  25347. offsetSize = 4;
  25348. }
  25349. // Next byte contains the offset size use to reference object in the file
  25350. data.push(offsetSize);
  25351. // Add another offset after this one because we need a new offset
  25352. var relativeOffset = 1;
  25353. for (i = 0; i < count + 1; i++) {
  25354. if (offsetSize === 1) {
  25355. data.push(relativeOffset & 0xFF);
  25356. } else if (offsetSize === 2) {
  25357. data.push((relativeOffset >> 8) & 0xFF,
  25358. relativeOffset & 0xFF);
  25359. } else if (offsetSize === 3) {
  25360. data.push((relativeOffset >> 16) & 0xFF,
  25361. (relativeOffset >> 8) & 0xFF,
  25362. relativeOffset & 0xFF);
  25363. } else {
  25364. data.push((relativeOffset >>> 24) & 0xFF,
  25365. (relativeOffset >> 16) & 0xFF,
  25366. (relativeOffset >> 8) & 0xFF,
  25367. relativeOffset & 0xFF);
  25368. }
  25369. if (objects[i]) {
  25370. relativeOffset += objects[i].length;
  25371. }
  25372. }
  25373. for (i = 0; i < count; i++) {
  25374. // Notify the tracker where the object will be offset in the data.
  25375. if (trackers[i]) {
  25376. trackers[i].offset(data.length);
  25377. }
  25378. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  25379. data.push(objects[i][j]);
  25380. }
  25381. }
  25382. return data;
  25383. }
  25384. };
  25385. return CFFCompiler;
  25386. })();
  25387. // Workaround for seac on Windows.
  25388. (function checkSeacSupport() {
  25389. if (/Windows/.test(navigator.userAgent)) {
  25390. SEAC_ANALYSIS_ENABLED = true;
  25391. }
  25392. })();
  25393. // Workaround for Private Use Area characters in Chrome on Windows
  25394. // http://code.google.com/p/chromium/issues/detail?id=122465
  25395. // https://github.com/mozilla/pdf.js/issues/1689
  25396. (function checkChromeWindows() {
  25397. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  25398. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  25399. }
  25400. })();
  25401. var FontRendererFactory = (function FontRendererFactoryClosure() {
  25402. function getLong(data, offset) {
  25403. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25404. (data[offset + 2] << 8) | data[offset + 3];
  25405. }
  25406. function getUshort(data, offset) {
  25407. return (data[offset] << 8) | data[offset + 1];
  25408. }
  25409. function parseCmap(data, start, end) {
  25410. var offset = (getUshort(data, start + 2) === 1 ?
  25411. getLong(data, start + 8) : getLong(data, start + 16));
  25412. var format = getUshort(data, start + offset);
  25413. var length, ranges, p, i;
  25414. if (format === 4) {
  25415. length = getUshort(data, start + offset + 2);
  25416. var segCount = getUshort(data, start + offset + 6) >> 1;
  25417. p = start + offset + 14;
  25418. ranges = [];
  25419. for (i = 0; i < segCount; i++, p += 2) {
  25420. ranges[i] = {end: getUshort(data, p)};
  25421. }
  25422. p += 2;
  25423. for (i = 0; i < segCount; i++, p += 2) {
  25424. ranges[i].start = getUshort(data, p);
  25425. }
  25426. for (i = 0; i < segCount; i++, p += 2) {
  25427. ranges[i].idDelta = getUshort(data, p);
  25428. }
  25429. for (i = 0; i < segCount; i++, p += 2) {
  25430. var idOffset = getUshort(data, p);
  25431. if (idOffset === 0) {
  25432. continue;
  25433. }
  25434. ranges[i].ids = [];
  25435. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  25436. ranges[i].ids[j] = getUshort(data, p + idOffset);
  25437. idOffset += 2;
  25438. }
  25439. }
  25440. return ranges;
  25441. } else if (format === 12) {
  25442. length = getLong(data, start + offset + 4);
  25443. var groups = getLong(data, start + offset + 12);
  25444. p = start + offset + 16;
  25445. ranges = [];
  25446. for (i = 0; i < groups; i++) {
  25447. ranges.push({
  25448. start: getLong(data, p),
  25449. end: getLong(data, p + 4),
  25450. idDelta: getLong(data, p + 8) - getLong(data, p)
  25451. });
  25452. p += 12;
  25453. }
  25454. return ranges;
  25455. }
  25456. error('not supported cmap: ' + format);
  25457. }
  25458. function parseCff(data, start, end) {
  25459. var properties = {};
  25460. var parser = new CFFParser(new Stream(data, start, end - start),
  25461. properties);
  25462. var cff = parser.parse();
  25463. return {
  25464. glyphs: cff.charStrings.objects,
  25465. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  25466. cff.topDict.privateDict.subrsIndex.objects),
  25467. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  25468. };
  25469. }
  25470. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  25471. var itemSize, itemDecode;
  25472. if (isGlyphLocationsLong) {
  25473. itemSize = 4;
  25474. itemDecode = function fontItemDecodeLong(data, offset) {
  25475. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25476. (data[offset + 2] << 8) | data[offset + 3];
  25477. };
  25478. } else {
  25479. itemSize = 2;
  25480. itemDecode = function fontItemDecode(data, offset) {
  25481. return (data[offset] << 9) | (data[offset + 1] << 1);
  25482. };
  25483. }
  25484. var glyphs = [];
  25485. var startOffset = itemDecode(loca, 0);
  25486. for (var j = itemSize; j < loca.length; j += itemSize) {
  25487. var endOffset = itemDecode(loca, j);
  25488. glyphs.push(glyf.subarray(startOffset, endOffset));
  25489. startOffset = endOffset;
  25490. }
  25491. return glyphs;
  25492. }
  25493. function lookupCmap(ranges, unicode) {
  25494. var code = unicode.charCodeAt(0);
  25495. var l = 0, r = ranges.length - 1;
  25496. while (l < r) {
  25497. var c = (l + r + 1) >> 1;
  25498. if (code < ranges[c].start) {
  25499. r = c - 1;
  25500. } else {
  25501. l = c;
  25502. }
  25503. }
  25504. if (ranges[l].start <= code && code <= ranges[l].end) {
  25505. return (ranges[l].idDelta + (ranges[l].ids ?
  25506. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  25507. }
  25508. return 0;
  25509. }
  25510. function compileGlyf(code, js, font) {
  25511. function moveTo(x, y) {
  25512. js.push('c.moveTo(' + x + ',' + y + ');');
  25513. }
  25514. function lineTo(x, y) {
  25515. js.push('c.lineTo(' + x + ',' + y + ');');
  25516. }
  25517. function quadraticCurveTo(xa, ya, x, y) {
  25518. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  25519. x + ',' + y + ');');
  25520. }
  25521. var i = 0;
  25522. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25523. var flags;
  25524. var x = 0, y = 0;
  25525. i += 10;
  25526. if (numberOfContours < 0) {
  25527. // composite glyph
  25528. do {
  25529. flags = (code[i] << 8) | code[i + 1];
  25530. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  25531. i += 4;
  25532. var arg1, arg2;
  25533. if ((flags & 0x01)) {
  25534. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25535. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  25536. i += 4;
  25537. } else {
  25538. arg1 = code[i++]; arg2 = code[i++];
  25539. }
  25540. if ((flags & 0x02)) {
  25541. x = arg1;
  25542. y = arg2;
  25543. } else {
  25544. x = 0; y = 0; // TODO "they are points" ?
  25545. }
  25546. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  25547. if ((flags & 0x08)) {
  25548. scaleX =
  25549. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25550. i += 2;
  25551. } else if ((flags & 0x40)) {
  25552. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25553. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25554. i += 4;
  25555. } else if ((flags & 0x80)) {
  25556. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25557. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25558. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  25559. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  25560. i += 8;
  25561. }
  25562. var subglyph = font.glyphs[glyphIndex];
  25563. if (subglyph) {
  25564. js.push('c.save();');
  25565. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  25566. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  25567. compileGlyf(subglyph, js, font);
  25568. js.push('c.restore();');
  25569. }
  25570. } while ((flags & 0x20));
  25571. } else {
  25572. // simple glyph
  25573. var endPtsOfContours = [];
  25574. var j, jj;
  25575. for (j = 0; j < numberOfContours; j++) {
  25576. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  25577. i += 2;
  25578. }
  25579. var instructionLength = (code[i] << 8) | code[i + 1];
  25580. i += 2 + instructionLength; // skipping the instructions
  25581. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  25582. var points = [];
  25583. while (points.length < numberOfPoints) {
  25584. flags = code[i++];
  25585. var repeat = 1;
  25586. if ((flags & 0x08)) {
  25587. repeat += code[i++];
  25588. }
  25589. while (repeat-- > 0) {
  25590. points.push({flags: flags});
  25591. }
  25592. }
  25593. for (j = 0; j < numberOfPoints; j++) {
  25594. switch (points[j].flags & 0x12) {
  25595. case 0x00:
  25596. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25597. i += 2;
  25598. break;
  25599. case 0x02:
  25600. x -= code[i++];
  25601. break;
  25602. case 0x12:
  25603. x += code[i++];
  25604. break;
  25605. }
  25606. points[j].x = x;
  25607. }
  25608. for (j = 0; j < numberOfPoints; j++) {
  25609. switch (points[j].flags & 0x24) {
  25610. case 0x00:
  25611. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25612. i += 2;
  25613. break;
  25614. case 0x04:
  25615. y -= code[i++];
  25616. break;
  25617. case 0x24:
  25618. y += code[i++];
  25619. break;
  25620. }
  25621. points[j].y = y;
  25622. }
  25623. var startPoint = 0;
  25624. for (i = 0; i < numberOfContours; i++) {
  25625. var endPoint = endPtsOfContours[i];
  25626. // contours might have implicit points, which is located in the middle
  25627. // between two neighboring off-curve points
  25628. var contour = points.slice(startPoint, endPoint + 1);
  25629. if ((contour[0].flags & 1)) {
  25630. contour.push(contour[0]); // using start point at the contour end
  25631. } else if ((contour[contour.length - 1].flags & 1)) {
  25632. // first is off-curve point, trying to use one from the end
  25633. contour.unshift(contour[contour.length - 1]);
  25634. } else {
  25635. // start and end are off-curve points, creating implicit one
  25636. var p = {
  25637. flags: 1,
  25638. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  25639. y: (contour[0].y + contour[contour.length - 1].y) / 2
  25640. };
  25641. contour.unshift(p);
  25642. contour.push(p);
  25643. }
  25644. moveTo(contour[0].x, contour[0].y);
  25645. for (j = 1, jj = contour.length; j < jj; j++) {
  25646. if ((contour[j].flags & 1)) {
  25647. lineTo(contour[j].x, contour[j].y);
  25648. } else if ((contour[j + 1].flags & 1)){
  25649. quadraticCurveTo(contour[j].x, contour[j].y,
  25650. contour[j + 1].x, contour[j + 1].y);
  25651. j++;
  25652. } else {
  25653. quadraticCurveTo(contour[j].x, contour[j].y,
  25654. (contour[j].x + contour[j + 1].x) / 2,
  25655. (contour[j].y + contour[j + 1].y) / 2);
  25656. }
  25657. }
  25658. startPoint = endPoint + 1;
  25659. }
  25660. }
  25661. }
  25662. function compileCharString(code, js, font) {
  25663. var stack = [];
  25664. var x = 0, y = 0;
  25665. var stems = 0;
  25666. function moveTo(x, y) {
  25667. js.push('c.moveTo(' + x + ',' + y + ');');
  25668. }
  25669. function lineTo(x, y) {
  25670. js.push('c.lineTo(' + x + ',' + y + ');');
  25671. }
  25672. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  25673. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  25674. x + ',' + y + ');');
  25675. }
  25676. function parse(code) {
  25677. var i = 0;
  25678. while (i < code.length) {
  25679. var stackClean = false;
  25680. var v = code[i++];
  25681. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  25682. switch (v) {
  25683. case 1: // hstem
  25684. stems += stack.length >> 1;
  25685. stackClean = true;
  25686. break;
  25687. case 3: // vstem
  25688. stems += stack.length >> 1;
  25689. stackClean = true;
  25690. break;
  25691. case 4: // vmoveto
  25692. y += stack.pop();
  25693. moveTo(x, y);
  25694. stackClean = true;
  25695. break;
  25696. case 5: // rlineto
  25697. while (stack.length > 0) {
  25698. x += stack.shift();
  25699. y += stack.shift();
  25700. lineTo(x, y);
  25701. }
  25702. break;
  25703. case 6: // hlineto
  25704. while (stack.length > 0) {
  25705. x += stack.shift();
  25706. lineTo(x, y);
  25707. if (stack.length === 0) {
  25708. break;
  25709. }
  25710. y += stack.shift();
  25711. lineTo(x, y);
  25712. }
  25713. break;
  25714. case 7: // vlineto
  25715. while (stack.length > 0) {
  25716. y += stack.shift();
  25717. lineTo(x, y);
  25718. if (stack.length === 0) {
  25719. break;
  25720. }
  25721. x += stack.shift();
  25722. lineTo(x, y);
  25723. }
  25724. break;
  25725. case 8: // rrcurveto
  25726. while (stack.length > 0) {
  25727. xa = x + stack.shift(); ya = y + stack.shift();
  25728. xb = xa + stack.shift(); yb = ya + stack.shift();
  25729. x = xb + stack.shift(); y = yb + stack.shift();
  25730. bezierCurveTo(xa, ya, xb, yb, x, y);
  25731. }
  25732. break;
  25733. case 10: // callsubr
  25734. n = stack.pop() + font.subrsBias;
  25735. subrCode = font.subrs[n];
  25736. if (subrCode) {
  25737. parse(subrCode);
  25738. }
  25739. break;
  25740. case 11: // return
  25741. return;
  25742. case 12:
  25743. v = code[i++];
  25744. switch (v) {
  25745. case 34: // flex
  25746. xa = x + stack.shift();
  25747. xb = xa + stack.shift(); y1 = y + stack.shift();
  25748. x = xb + stack.shift();
  25749. bezierCurveTo(xa, y, xb, y1, x, y1);
  25750. xa = x + stack.shift();
  25751. xb = xa + stack.shift();
  25752. x = xb + stack.shift();
  25753. bezierCurveTo(xa, y1, xb, y, x, y);
  25754. break;
  25755. case 35: // flex
  25756. xa = x + stack.shift(); ya = y + stack.shift();
  25757. xb = xa + stack.shift(); yb = ya + stack.shift();
  25758. x = xb + stack.shift(); y = yb + stack.shift();
  25759. bezierCurveTo(xa, ya, xb, yb, x, y);
  25760. xa = x + stack.shift(); ya = y + stack.shift();
  25761. xb = xa + stack.shift(); yb = ya + stack.shift();
  25762. x = xb + stack.shift(); y = yb + stack.shift();
  25763. bezierCurveTo(xa, ya, xb, yb, x, y);
  25764. stack.pop(); // fd
  25765. break;
  25766. case 36: // hflex1
  25767. xa = x + stack.shift(); y1 = y + stack.shift();
  25768. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  25769. x = xb + stack.shift();
  25770. bezierCurveTo(xa, y1, xb, y2, x, y2);
  25771. xa = x + stack.shift();
  25772. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  25773. x = xb + stack.shift();
  25774. bezierCurveTo(xa, y2, xb, y3, x, y);
  25775. break;
  25776. case 37: // flex1
  25777. var x0 = x, y0 = y;
  25778. xa = x + stack.shift(); ya = y + stack.shift();
  25779. xb = xa + stack.shift(); yb = ya + stack.shift();
  25780. x = xb + stack.shift(); y = yb + stack.shift();
  25781. bezierCurveTo(xa, ya, xb, yb, x, y);
  25782. xa = x + stack.shift(); ya = y + stack.shift();
  25783. xb = xa + stack.shift(); yb = ya + stack.shift();
  25784. x = xb; y = yb;
  25785. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  25786. x += stack.shift();
  25787. } else {
  25788. y += stack.shift();
  25789. }
  25790. bezierCurveTo(xa, ya, xb, yb, x, y);
  25791. break;
  25792. default:
  25793. error('unknown operator: 12 ' + v);
  25794. }
  25795. break;
  25796. case 14: // endchar
  25797. if (stack.length >= 4) {
  25798. var achar = stack.pop();
  25799. var bchar = stack.pop();
  25800. y = stack.pop();
  25801. x = stack.pop();
  25802. js.push('c.save();');
  25803. js.push('c.translate('+ x + ',' + y + ');');
  25804. var gid = lookupCmap(font.cmap, String.fromCharCode(
  25805. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  25806. compileCharString(font.glyphs[gid], js, font);
  25807. js.push('c.restore();');
  25808. gid = lookupCmap(font.cmap, String.fromCharCode(
  25809. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  25810. compileCharString(font.glyphs[gid], js, font);
  25811. }
  25812. return;
  25813. case 18: // hstemhm
  25814. stems += stack.length >> 1;
  25815. stackClean = true;
  25816. break;
  25817. case 19: // hintmask
  25818. stems += stack.length >> 1;
  25819. i += (stems + 7) >> 3;
  25820. stackClean = true;
  25821. break;
  25822. case 20: // cntrmask
  25823. stems += stack.length >> 1;
  25824. i += (stems + 7) >> 3;
  25825. stackClean = true;
  25826. break;
  25827. case 21: // rmoveto
  25828. y += stack.pop();
  25829. x += stack.pop();
  25830. moveTo(x, y);
  25831. stackClean = true;
  25832. break;
  25833. case 22: // hmoveto
  25834. x += stack.pop();
  25835. moveTo(x, y);
  25836. stackClean = true;
  25837. break;
  25838. case 23: // vstemhm
  25839. stems += stack.length >> 1;
  25840. stackClean = true;
  25841. break;
  25842. case 24: // rcurveline
  25843. while (stack.length > 2) {
  25844. xa = x + stack.shift(); ya = y + stack.shift();
  25845. xb = xa + stack.shift(); yb = ya + stack.shift();
  25846. x = xb + stack.shift(); y = yb + stack.shift();
  25847. bezierCurveTo(xa, ya, xb, yb, x, y);
  25848. }
  25849. x += stack.shift();
  25850. y += stack.shift();
  25851. lineTo(x, y);
  25852. break;
  25853. case 25: // rlinecurve
  25854. while (stack.length > 6) {
  25855. x += stack.shift();
  25856. y += stack.shift();
  25857. lineTo(x, y);
  25858. }
  25859. xa = x + stack.shift(); ya = y + stack.shift();
  25860. xb = xa + stack.shift(); yb = ya + stack.shift();
  25861. x = xb + stack.shift(); y = yb + stack.shift();
  25862. bezierCurveTo(xa, ya, xb, yb, x, y);
  25863. break;
  25864. case 26: // vvcurveto
  25865. if (stack.length % 2) {
  25866. x += stack.shift();
  25867. }
  25868. while (stack.length > 0) {
  25869. xa = x; ya = y + stack.shift();
  25870. xb = xa + stack.shift(); yb = ya + stack.shift();
  25871. x = xb; y = yb + stack.shift();
  25872. bezierCurveTo(xa, ya, xb, yb, x, y);
  25873. }
  25874. break;
  25875. case 27: // hhcurveto
  25876. if (stack.length % 2) {
  25877. y += stack.shift();
  25878. }
  25879. while (stack.length > 0) {
  25880. xa = x + stack.shift(); ya = y;
  25881. xb = xa + stack.shift(); yb = ya + stack.shift();
  25882. x = xb + stack.shift(); y = yb;
  25883. bezierCurveTo(xa, ya, xb, yb, x, y);
  25884. }
  25885. break;
  25886. case 28:
  25887. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  25888. i += 2;
  25889. break;
  25890. case 29: // callgsubr
  25891. n = stack.pop() + font.gsubrsBias;
  25892. subrCode = font.gsubrs[n];
  25893. if (subrCode) {
  25894. parse(subrCode);
  25895. }
  25896. break;
  25897. case 30: // vhcurveto
  25898. while (stack.length > 0) {
  25899. xa = x; ya = y + stack.shift();
  25900. xb = xa + stack.shift(); yb = ya + stack.shift();
  25901. x = xb + stack.shift();
  25902. y = yb + (stack.length === 1 ? stack.shift() : 0);
  25903. bezierCurveTo(xa, ya, xb, yb, x, y);
  25904. if (stack.length === 0) {
  25905. break;
  25906. }
  25907. xa = x + stack.shift(); ya = y;
  25908. xb = xa + stack.shift(); yb = ya + stack.shift();
  25909. y = yb + stack.shift();
  25910. x = xb + (stack.length === 1 ? stack.shift() : 0);
  25911. bezierCurveTo(xa, ya, xb, yb, x, y);
  25912. }
  25913. break;
  25914. case 31: // hvcurveto
  25915. while (stack.length > 0) {
  25916. xa = x + stack.shift(); ya = y;
  25917. xb = xa + stack.shift(); yb = ya + stack.shift();
  25918. y = yb + stack.shift();
  25919. x = xb + (stack.length === 1 ? stack.shift() : 0);
  25920. bezierCurveTo(xa, ya, xb, yb, x, y);
  25921. if (stack.length === 0) {
  25922. break;
  25923. }
  25924. xa = x; ya = y + stack.shift();
  25925. xb = xa + stack.shift(); yb = ya + stack.shift();
  25926. x = xb + stack.shift();
  25927. y = yb + (stack.length === 1 ? stack.shift() : 0);
  25928. bezierCurveTo(xa, ya, xb, yb, x, y);
  25929. }
  25930. break;
  25931. default:
  25932. if (v < 32) {
  25933. error('unknown operator: ' + v);
  25934. }
  25935. if (v < 247) {
  25936. stack.push(v - 139);
  25937. } else if (v < 251) {
  25938. stack.push((v - 247) * 256 + code[i++] + 108);
  25939. } else if (v < 255) {
  25940. stack.push(-(v - 251) * 256 - code[i++] - 108);
  25941. } else {
  25942. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  25943. (code[i + 2] << 8) | code[i + 3]) / 65536);
  25944. i += 4;
  25945. }
  25946. break;
  25947. }
  25948. if (stackClean) {
  25949. stack.length = 0;
  25950. }
  25951. }
  25952. }
  25953. parse(code);
  25954. }
  25955. var noop = '';
  25956. function CompiledFont(fontMatrix) {
  25957. this.compiledGlyphs = {};
  25958. this.fontMatrix = fontMatrix;
  25959. }
  25960. CompiledFont.prototype = {
  25961. getPathJs: function (unicode) {
  25962. var gid = lookupCmap(this.cmap, unicode);
  25963. var fn = this.compiledGlyphs[gid];
  25964. if (!fn) {
  25965. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  25966. }
  25967. return fn;
  25968. },
  25969. compileGlyph: function (code) {
  25970. if (!code || code.length === 0 || code[0] === 14) {
  25971. return noop;
  25972. }
  25973. var js = [];
  25974. js.push('c.save();');
  25975. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  25976. js.push('c.scale(size, -size);');
  25977. this.compileGlyphImpl(code, js);
  25978. js.push('c.restore();');
  25979. return js.join('\n');
  25980. },
  25981. compileGlyphImpl: function () {
  25982. error('Children classes should implement this.');
  25983. },
  25984. hasBuiltPath: function (unicode) {
  25985. var gid = lookupCmap(this.cmap, unicode);
  25986. return gid in this.compiledGlyphs;
  25987. }
  25988. };
  25989. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  25990. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  25991. CompiledFont.call(this, fontMatrix);
  25992. this.glyphs = glyphs;
  25993. this.cmap = cmap;
  25994. this.compiledGlyphs = [];
  25995. }
  25996. Util.inherit(TrueTypeCompiled, CompiledFont, {
  25997. compileGlyphImpl: function (code, js) {
  25998. compileGlyf(code, js, this);
  25999. }
  26000. });
  26001. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  26002. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  26003. CompiledFont.call(this, fontMatrix);
  26004. this.glyphs = cffInfo.glyphs;
  26005. this.gsubrs = cffInfo.gsubrs || [];
  26006. this.subrs = cffInfo.subrs || [];
  26007. this.cmap = cmap;
  26008. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  26009. this.compiledGlyphs = [];
  26010. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  26011. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  26012. this.subrsBias = (this.subrs.length < 1240 ?
  26013. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  26014. }
  26015. Util.inherit(Type2Compiled, CompiledFont, {
  26016. compileGlyphImpl: function (code, js) {
  26017. compileCharString(code, js, this);
  26018. }
  26019. });
  26020. return {
  26021. create: function FontRendererFactory_create(font) {
  26022. var data = new Uint8Array(font.data);
  26023. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  26024. var numTables = getUshort(data, 4);
  26025. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  26026. var tag = bytesToString(data.subarray(p, p + 4));
  26027. var offset = getLong(data, p + 8);
  26028. var length = getLong(data, p + 12);
  26029. switch (tag) {
  26030. case 'cmap':
  26031. cmap = parseCmap(data, offset, offset + length);
  26032. break;
  26033. case 'glyf':
  26034. glyf = data.subarray(offset, offset + length);
  26035. break;
  26036. case 'loca':
  26037. loca = data.subarray(offset, offset + length);
  26038. break;
  26039. case 'head':
  26040. unitsPerEm = getUshort(data, offset + 18);
  26041. indexToLocFormat = getUshort(data, offset + 50);
  26042. break;
  26043. case 'CFF ':
  26044. cff = parseCff(data, offset, offset + length);
  26045. break;
  26046. }
  26047. }
  26048. if (glyf) {
  26049. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  26050. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  26051. return new TrueTypeCompiled(
  26052. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  26053. } else {
  26054. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  26055. }
  26056. }
  26057. };
  26058. })();
  26059. var GlyphsUnicode = {
  26060. A: 0x0041,
  26061. AE: 0x00C6,
  26062. AEacute: 0x01FC,
  26063. AEmacron: 0x01E2,
  26064. AEsmall: 0xF7E6,
  26065. Aacute: 0x00C1,
  26066. Aacutesmall: 0xF7E1,
  26067. Abreve: 0x0102,
  26068. Abreveacute: 0x1EAE,
  26069. Abrevecyrillic: 0x04D0,
  26070. Abrevedotbelow: 0x1EB6,
  26071. Abrevegrave: 0x1EB0,
  26072. Abrevehookabove: 0x1EB2,
  26073. Abrevetilde: 0x1EB4,
  26074. Acaron: 0x01CD,
  26075. Acircle: 0x24B6,
  26076. Acircumflex: 0x00C2,
  26077. Acircumflexacute: 0x1EA4,
  26078. Acircumflexdotbelow: 0x1EAC,
  26079. Acircumflexgrave: 0x1EA6,
  26080. Acircumflexhookabove: 0x1EA8,
  26081. Acircumflexsmall: 0xF7E2,
  26082. Acircumflextilde: 0x1EAA,
  26083. Acute: 0xF6C9,
  26084. Acutesmall: 0xF7B4,
  26085. Acyrillic: 0x0410,
  26086. Adblgrave: 0x0200,
  26087. Adieresis: 0x00C4,
  26088. Adieresiscyrillic: 0x04D2,
  26089. Adieresismacron: 0x01DE,
  26090. Adieresissmall: 0xF7E4,
  26091. Adotbelow: 0x1EA0,
  26092. Adotmacron: 0x01E0,
  26093. Agrave: 0x00C0,
  26094. Agravesmall: 0xF7E0,
  26095. Ahookabove: 0x1EA2,
  26096. Aiecyrillic: 0x04D4,
  26097. Ainvertedbreve: 0x0202,
  26098. Alpha: 0x0391,
  26099. Alphatonos: 0x0386,
  26100. Amacron: 0x0100,
  26101. Amonospace: 0xFF21,
  26102. Aogonek: 0x0104,
  26103. Aring: 0x00C5,
  26104. Aringacute: 0x01FA,
  26105. Aringbelow: 0x1E00,
  26106. Aringsmall: 0xF7E5,
  26107. Asmall: 0xF761,
  26108. Atilde: 0x00C3,
  26109. Atildesmall: 0xF7E3,
  26110. Aybarmenian: 0x0531,
  26111. B: 0x0042,
  26112. Bcircle: 0x24B7,
  26113. Bdotaccent: 0x1E02,
  26114. Bdotbelow: 0x1E04,
  26115. Becyrillic: 0x0411,
  26116. Benarmenian: 0x0532,
  26117. Beta: 0x0392,
  26118. Bhook: 0x0181,
  26119. Blinebelow: 0x1E06,
  26120. Bmonospace: 0xFF22,
  26121. Brevesmall: 0xF6F4,
  26122. Bsmall: 0xF762,
  26123. Btopbar: 0x0182,
  26124. C: 0x0043,
  26125. Caarmenian: 0x053E,
  26126. Cacute: 0x0106,
  26127. Caron: 0xF6CA,
  26128. Caronsmall: 0xF6F5,
  26129. Ccaron: 0x010C,
  26130. Ccedilla: 0x00C7,
  26131. Ccedillaacute: 0x1E08,
  26132. Ccedillasmall: 0xF7E7,
  26133. Ccircle: 0x24B8,
  26134. Ccircumflex: 0x0108,
  26135. Cdot: 0x010A,
  26136. Cdotaccent: 0x010A,
  26137. Cedillasmall: 0xF7B8,
  26138. Chaarmenian: 0x0549,
  26139. Cheabkhasiancyrillic: 0x04BC,
  26140. Checyrillic: 0x0427,
  26141. Chedescenderabkhasiancyrillic: 0x04BE,
  26142. Chedescendercyrillic: 0x04B6,
  26143. Chedieresiscyrillic: 0x04F4,
  26144. Cheharmenian: 0x0543,
  26145. Chekhakassiancyrillic: 0x04CB,
  26146. Cheverticalstrokecyrillic: 0x04B8,
  26147. Chi: 0x03A7,
  26148. Chook: 0x0187,
  26149. Circumflexsmall: 0xF6F6,
  26150. Cmonospace: 0xFF23,
  26151. Coarmenian: 0x0551,
  26152. Csmall: 0xF763,
  26153. D: 0x0044,
  26154. DZ: 0x01F1,
  26155. DZcaron: 0x01C4,
  26156. Daarmenian: 0x0534,
  26157. Dafrican: 0x0189,
  26158. Dcaron: 0x010E,
  26159. Dcedilla: 0x1E10,
  26160. Dcircle: 0x24B9,
  26161. Dcircumflexbelow: 0x1E12,
  26162. Dcroat: 0x0110,
  26163. Ddotaccent: 0x1E0A,
  26164. Ddotbelow: 0x1E0C,
  26165. Decyrillic: 0x0414,
  26166. Deicoptic: 0x03EE,
  26167. Delta: 0x2206,
  26168. Deltagreek: 0x0394,
  26169. Dhook: 0x018A,
  26170. Dieresis: 0xF6CB,
  26171. DieresisAcute: 0xF6CC,
  26172. DieresisGrave: 0xF6CD,
  26173. Dieresissmall: 0xF7A8,
  26174. Digammagreek: 0x03DC,
  26175. Djecyrillic: 0x0402,
  26176. Dlinebelow: 0x1E0E,
  26177. Dmonospace: 0xFF24,
  26178. Dotaccentsmall: 0xF6F7,
  26179. Dslash: 0x0110,
  26180. Dsmall: 0xF764,
  26181. Dtopbar: 0x018B,
  26182. Dz: 0x01F2,
  26183. Dzcaron: 0x01C5,
  26184. Dzeabkhasiancyrillic: 0x04E0,
  26185. Dzecyrillic: 0x0405,
  26186. Dzhecyrillic: 0x040F,
  26187. E: 0x0045,
  26188. Eacute: 0x00C9,
  26189. Eacutesmall: 0xF7E9,
  26190. Ebreve: 0x0114,
  26191. Ecaron: 0x011A,
  26192. Ecedillabreve: 0x1E1C,
  26193. Echarmenian: 0x0535,
  26194. Ecircle: 0x24BA,
  26195. Ecircumflex: 0x00CA,
  26196. Ecircumflexacute: 0x1EBE,
  26197. Ecircumflexbelow: 0x1E18,
  26198. Ecircumflexdotbelow: 0x1EC6,
  26199. Ecircumflexgrave: 0x1EC0,
  26200. Ecircumflexhookabove: 0x1EC2,
  26201. Ecircumflexsmall: 0xF7EA,
  26202. Ecircumflextilde: 0x1EC4,
  26203. Ecyrillic: 0x0404,
  26204. Edblgrave: 0x0204,
  26205. Edieresis: 0x00CB,
  26206. Edieresissmall: 0xF7EB,
  26207. Edot: 0x0116,
  26208. Edotaccent: 0x0116,
  26209. Edotbelow: 0x1EB8,
  26210. Efcyrillic: 0x0424,
  26211. Egrave: 0x00C8,
  26212. Egravesmall: 0xF7E8,
  26213. Eharmenian: 0x0537,
  26214. Ehookabove: 0x1EBA,
  26215. Eightroman: 0x2167,
  26216. Einvertedbreve: 0x0206,
  26217. Eiotifiedcyrillic: 0x0464,
  26218. Elcyrillic: 0x041B,
  26219. Elevenroman: 0x216A,
  26220. Emacron: 0x0112,
  26221. Emacronacute: 0x1E16,
  26222. Emacrongrave: 0x1E14,
  26223. Emcyrillic: 0x041C,
  26224. Emonospace: 0xFF25,
  26225. Encyrillic: 0x041D,
  26226. Endescendercyrillic: 0x04A2,
  26227. Eng: 0x014A,
  26228. Enghecyrillic: 0x04A4,
  26229. Enhookcyrillic: 0x04C7,
  26230. Eogonek: 0x0118,
  26231. Eopen: 0x0190,
  26232. Epsilon: 0x0395,
  26233. Epsilontonos: 0x0388,
  26234. Ercyrillic: 0x0420,
  26235. Ereversed: 0x018E,
  26236. Ereversedcyrillic: 0x042D,
  26237. Escyrillic: 0x0421,
  26238. Esdescendercyrillic: 0x04AA,
  26239. Esh: 0x01A9,
  26240. Esmall: 0xF765,
  26241. Eta: 0x0397,
  26242. Etarmenian: 0x0538,
  26243. Etatonos: 0x0389,
  26244. Eth: 0x00D0,
  26245. Ethsmall: 0xF7F0,
  26246. Etilde: 0x1EBC,
  26247. Etildebelow: 0x1E1A,
  26248. Euro: 0x20AC,
  26249. Ezh: 0x01B7,
  26250. Ezhcaron: 0x01EE,
  26251. Ezhreversed: 0x01B8,
  26252. F: 0x0046,
  26253. Fcircle: 0x24BB,
  26254. Fdotaccent: 0x1E1E,
  26255. Feharmenian: 0x0556,
  26256. Feicoptic: 0x03E4,
  26257. Fhook: 0x0191,
  26258. Fitacyrillic: 0x0472,
  26259. Fiveroman: 0x2164,
  26260. Fmonospace: 0xFF26,
  26261. Fourroman: 0x2163,
  26262. Fsmall: 0xF766,
  26263. G: 0x0047,
  26264. GBsquare: 0x3387,
  26265. Gacute: 0x01F4,
  26266. Gamma: 0x0393,
  26267. Gammaafrican: 0x0194,
  26268. Gangiacoptic: 0x03EA,
  26269. Gbreve: 0x011E,
  26270. Gcaron: 0x01E6,
  26271. Gcedilla: 0x0122,
  26272. Gcircle: 0x24BC,
  26273. Gcircumflex: 0x011C,
  26274. Gcommaaccent: 0x0122,
  26275. Gdot: 0x0120,
  26276. Gdotaccent: 0x0120,
  26277. Gecyrillic: 0x0413,
  26278. Ghadarmenian: 0x0542,
  26279. Ghemiddlehookcyrillic: 0x0494,
  26280. Ghestrokecyrillic: 0x0492,
  26281. Gheupturncyrillic: 0x0490,
  26282. Ghook: 0x0193,
  26283. Gimarmenian: 0x0533,
  26284. Gjecyrillic: 0x0403,
  26285. Gmacron: 0x1E20,
  26286. Gmonospace: 0xFF27,
  26287. Grave: 0xF6CE,
  26288. Gravesmall: 0xF760,
  26289. Gsmall: 0xF767,
  26290. Gsmallhook: 0x029B,
  26291. Gstroke: 0x01E4,
  26292. H: 0x0048,
  26293. H18533: 0x25CF,
  26294. H18543: 0x25AA,
  26295. H18551: 0x25AB,
  26296. H22073: 0x25A1,
  26297. HPsquare: 0x33CB,
  26298. Haabkhasiancyrillic: 0x04A8,
  26299. Hadescendercyrillic: 0x04B2,
  26300. Hardsigncyrillic: 0x042A,
  26301. Hbar: 0x0126,
  26302. Hbrevebelow: 0x1E2A,
  26303. Hcedilla: 0x1E28,
  26304. Hcircle: 0x24BD,
  26305. Hcircumflex: 0x0124,
  26306. Hdieresis: 0x1E26,
  26307. Hdotaccent: 0x1E22,
  26308. Hdotbelow: 0x1E24,
  26309. Hmonospace: 0xFF28,
  26310. Hoarmenian: 0x0540,
  26311. Horicoptic: 0x03E8,
  26312. Hsmall: 0xF768,
  26313. Hungarumlaut: 0xF6CF,
  26314. Hungarumlautsmall: 0xF6F8,
  26315. Hzsquare: 0x3390,
  26316. I: 0x0049,
  26317. IAcyrillic: 0x042F,
  26318. IJ: 0x0132,
  26319. IUcyrillic: 0x042E,
  26320. Iacute: 0x00CD,
  26321. Iacutesmall: 0xF7ED,
  26322. Ibreve: 0x012C,
  26323. Icaron: 0x01CF,
  26324. Icircle: 0x24BE,
  26325. Icircumflex: 0x00CE,
  26326. Icircumflexsmall: 0xF7EE,
  26327. Icyrillic: 0x0406,
  26328. Idblgrave: 0x0208,
  26329. Idieresis: 0x00CF,
  26330. Idieresisacute: 0x1E2E,
  26331. Idieresiscyrillic: 0x04E4,
  26332. Idieresissmall: 0xF7EF,
  26333. Idot: 0x0130,
  26334. Idotaccent: 0x0130,
  26335. Idotbelow: 0x1ECA,
  26336. Iebrevecyrillic: 0x04D6,
  26337. Iecyrillic: 0x0415,
  26338. Ifraktur: 0x2111,
  26339. Igrave: 0x00CC,
  26340. Igravesmall: 0xF7EC,
  26341. Ihookabove: 0x1EC8,
  26342. Iicyrillic: 0x0418,
  26343. Iinvertedbreve: 0x020A,
  26344. Iishortcyrillic: 0x0419,
  26345. Imacron: 0x012A,
  26346. Imacroncyrillic: 0x04E2,
  26347. Imonospace: 0xFF29,
  26348. Iniarmenian: 0x053B,
  26349. Iocyrillic: 0x0401,
  26350. Iogonek: 0x012E,
  26351. Iota: 0x0399,
  26352. Iotaafrican: 0x0196,
  26353. Iotadieresis: 0x03AA,
  26354. Iotatonos: 0x038A,
  26355. Ismall: 0xF769,
  26356. Istroke: 0x0197,
  26357. Itilde: 0x0128,
  26358. Itildebelow: 0x1E2C,
  26359. Izhitsacyrillic: 0x0474,
  26360. Izhitsadblgravecyrillic: 0x0476,
  26361. J: 0x004A,
  26362. Jaarmenian: 0x0541,
  26363. Jcircle: 0x24BF,
  26364. Jcircumflex: 0x0134,
  26365. Jecyrillic: 0x0408,
  26366. Jheharmenian: 0x054B,
  26367. Jmonospace: 0xFF2A,
  26368. Jsmall: 0xF76A,
  26369. K: 0x004B,
  26370. KBsquare: 0x3385,
  26371. KKsquare: 0x33CD,
  26372. Kabashkircyrillic: 0x04A0,
  26373. Kacute: 0x1E30,
  26374. Kacyrillic: 0x041A,
  26375. Kadescendercyrillic: 0x049A,
  26376. Kahookcyrillic: 0x04C3,
  26377. Kappa: 0x039A,
  26378. Kastrokecyrillic: 0x049E,
  26379. Kaverticalstrokecyrillic: 0x049C,
  26380. Kcaron: 0x01E8,
  26381. Kcedilla: 0x0136,
  26382. Kcircle: 0x24C0,
  26383. Kcommaaccent: 0x0136,
  26384. Kdotbelow: 0x1E32,
  26385. Keharmenian: 0x0554,
  26386. Kenarmenian: 0x053F,
  26387. Khacyrillic: 0x0425,
  26388. Kheicoptic: 0x03E6,
  26389. Khook: 0x0198,
  26390. Kjecyrillic: 0x040C,
  26391. Klinebelow: 0x1E34,
  26392. Kmonospace: 0xFF2B,
  26393. Koppacyrillic: 0x0480,
  26394. Koppagreek: 0x03DE,
  26395. Ksicyrillic: 0x046E,
  26396. Ksmall: 0xF76B,
  26397. L: 0x004C,
  26398. LJ: 0x01C7,
  26399. LL: 0xF6BF,
  26400. Lacute: 0x0139,
  26401. Lambda: 0x039B,
  26402. Lcaron: 0x013D,
  26403. Lcedilla: 0x013B,
  26404. Lcircle: 0x24C1,
  26405. Lcircumflexbelow: 0x1E3C,
  26406. Lcommaaccent: 0x013B,
  26407. Ldot: 0x013F,
  26408. Ldotaccent: 0x013F,
  26409. Ldotbelow: 0x1E36,
  26410. Ldotbelowmacron: 0x1E38,
  26411. Liwnarmenian: 0x053C,
  26412. Lj: 0x01C8,
  26413. Ljecyrillic: 0x0409,
  26414. Llinebelow: 0x1E3A,
  26415. Lmonospace: 0xFF2C,
  26416. Lslash: 0x0141,
  26417. Lslashsmall: 0xF6F9,
  26418. Lsmall: 0xF76C,
  26419. M: 0x004D,
  26420. MBsquare: 0x3386,
  26421. Macron: 0xF6D0,
  26422. Macronsmall: 0xF7AF,
  26423. Macute: 0x1E3E,
  26424. Mcircle: 0x24C2,
  26425. Mdotaccent: 0x1E40,
  26426. Mdotbelow: 0x1E42,
  26427. Menarmenian: 0x0544,
  26428. Mmonospace: 0xFF2D,
  26429. Msmall: 0xF76D,
  26430. Mturned: 0x019C,
  26431. Mu: 0x039C,
  26432. N: 0x004E,
  26433. NJ: 0x01CA,
  26434. Nacute: 0x0143,
  26435. Ncaron: 0x0147,
  26436. Ncedilla: 0x0145,
  26437. Ncircle: 0x24C3,
  26438. Ncircumflexbelow: 0x1E4A,
  26439. Ncommaaccent: 0x0145,
  26440. Ndotaccent: 0x1E44,
  26441. Ndotbelow: 0x1E46,
  26442. Nhookleft: 0x019D,
  26443. Nineroman: 0x2168,
  26444. Nj: 0x01CB,
  26445. Njecyrillic: 0x040A,
  26446. Nlinebelow: 0x1E48,
  26447. Nmonospace: 0xFF2E,
  26448. Nowarmenian: 0x0546,
  26449. Nsmall: 0xF76E,
  26450. Ntilde: 0x00D1,
  26451. Ntildesmall: 0xF7F1,
  26452. Nu: 0x039D,
  26453. O: 0x004F,
  26454. OE: 0x0152,
  26455. OEsmall: 0xF6FA,
  26456. Oacute: 0x00D3,
  26457. Oacutesmall: 0xF7F3,
  26458. Obarredcyrillic: 0x04E8,
  26459. Obarreddieresiscyrillic: 0x04EA,
  26460. Obreve: 0x014E,
  26461. Ocaron: 0x01D1,
  26462. Ocenteredtilde: 0x019F,
  26463. Ocircle: 0x24C4,
  26464. Ocircumflex: 0x00D4,
  26465. Ocircumflexacute: 0x1ED0,
  26466. Ocircumflexdotbelow: 0x1ED8,
  26467. Ocircumflexgrave: 0x1ED2,
  26468. Ocircumflexhookabove: 0x1ED4,
  26469. Ocircumflexsmall: 0xF7F4,
  26470. Ocircumflextilde: 0x1ED6,
  26471. Ocyrillic: 0x041E,
  26472. Odblacute: 0x0150,
  26473. Odblgrave: 0x020C,
  26474. Odieresis: 0x00D6,
  26475. Odieresiscyrillic: 0x04E6,
  26476. Odieresissmall: 0xF7F6,
  26477. Odotbelow: 0x1ECC,
  26478. Ogoneksmall: 0xF6FB,
  26479. Ograve: 0x00D2,
  26480. Ogravesmall: 0xF7F2,
  26481. Oharmenian: 0x0555,
  26482. Ohm: 0x2126,
  26483. Ohookabove: 0x1ECE,
  26484. Ohorn: 0x01A0,
  26485. Ohornacute: 0x1EDA,
  26486. Ohorndotbelow: 0x1EE2,
  26487. Ohorngrave: 0x1EDC,
  26488. Ohornhookabove: 0x1EDE,
  26489. Ohorntilde: 0x1EE0,
  26490. Ohungarumlaut: 0x0150,
  26491. Oi: 0x01A2,
  26492. Oinvertedbreve: 0x020E,
  26493. Omacron: 0x014C,
  26494. Omacronacute: 0x1E52,
  26495. Omacrongrave: 0x1E50,
  26496. Omega: 0x2126,
  26497. Omegacyrillic: 0x0460,
  26498. Omegagreek: 0x03A9,
  26499. Omegaroundcyrillic: 0x047A,
  26500. Omegatitlocyrillic: 0x047C,
  26501. Omegatonos: 0x038F,
  26502. Omicron: 0x039F,
  26503. Omicrontonos: 0x038C,
  26504. Omonospace: 0xFF2F,
  26505. Oneroman: 0x2160,
  26506. Oogonek: 0x01EA,
  26507. Oogonekmacron: 0x01EC,
  26508. Oopen: 0x0186,
  26509. Oslash: 0x00D8,
  26510. Oslashacute: 0x01FE,
  26511. Oslashsmall: 0xF7F8,
  26512. Osmall: 0xF76F,
  26513. Ostrokeacute: 0x01FE,
  26514. Otcyrillic: 0x047E,
  26515. Otilde: 0x00D5,
  26516. Otildeacute: 0x1E4C,
  26517. Otildedieresis: 0x1E4E,
  26518. Otildesmall: 0xF7F5,
  26519. P: 0x0050,
  26520. Pacute: 0x1E54,
  26521. Pcircle: 0x24C5,
  26522. Pdotaccent: 0x1E56,
  26523. Pecyrillic: 0x041F,
  26524. Peharmenian: 0x054A,
  26525. Pemiddlehookcyrillic: 0x04A6,
  26526. Phi: 0x03A6,
  26527. Phook: 0x01A4,
  26528. Pi: 0x03A0,
  26529. Piwrarmenian: 0x0553,
  26530. Pmonospace: 0xFF30,
  26531. Psi: 0x03A8,
  26532. Psicyrillic: 0x0470,
  26533. Psmall: 0xF770,
  26534. Q: 0x0051,
  26535. Qcircle: 0x24C6,
  26536. Qmonospace: 0xFF31,
  26537. Qsmall: 0xF771,
  26538. R: 0x0052,
  26539. Raarmenian: 0x054C,
  26540. Racute: 0x0154,
  26541. Rcaron: 0x0158,
  26542. Rcedilla: 0x0156,
  26543. Rcircle: 0x24C7,
  26544. Rcommaaccent: 0x0156,
  26545. Rdblgrave: 0x0210,
  26546. Rdotaccent: 0x1E58,
  26547. Rdotbelow: 0x1E5A,
  26548. Rdotbelowmacron: 0x1E5C,
  26549. Reharmenian: 0x0550,
  26550. Rfraktur: 0x211C,
  26551. Rho: 0x03A1,
  26552. Ringsmall: 0xF6FC,
  26553. Rinvertedbreve: 0x0212,
  26554. Rlinebelow: 0x1E5E,
  26555. Rmonospace: 0xFF32,
  26556. Rsmall: 0xF772,
  26557. Rsmallinverted: 0x0281,
  26558. Rsmallinvertedsuperior: 0x02B6,
  26559. S: 0x0053,
  26560. SF010000: 0x250C,
  26561. SF020000: 0x2514,
  26562. SF030000: 0x2510,
  26563. SF040000: 0x2518,
  26564. SF050000: 0x253C,
  26565. SF060000: 0x252C,
  26566. SF070000: 0x2534,
  26567. SF080000: 0x251C,
  26568. SF090000: 0x2524,
  26569. SF100000: 0x2500,
  26570. SF110000: 0x2502,
  26571. SF190000: 0x2561,
  26572. SF200000: 0x2562,
  26573. SF210000: 0x2556,
  26574. SF220000: 0x2555,
  26575. SF230000: 0x2563,
  26576. SF240000: 0x2551,
  26577. SF250000: 0x2557,
  26578. SF260000: 0x255D,
  26579. SF270000: 0x255C,
  26580. SF280000: 0x255B,
  26581. SF360000: 0x255E,
  26582. SF370000: 0x255F,
  26583. SF380000: 0x255A,
  26584. SF390000: 0x2554,
  26585. SF400000: 0x2569,
  26586. SF410000: 0x2566,
  26587. SF420000: 0x2560,
  26588. SF430000: 0x2550,
  26589. SF440000: 0x256C,
  26590. SF450000: 0x2567,
  26591. SF460000: 0x2568,
  26592. SF470000: 0x2564,
  26593. SF480000: 0x2565,
  26594. SF490000: 0x2559,
  26595. SF500000: 0x2558,
  26596. SF510000: 0x2552,
  26597. SF520000: 0x2553,
  26598. SF530000: 0x256B,
  26599. SF540000: 0x256A,
  26600. Sacute: 0x015A,
  26601. Sacutedotaccent: 0x1E64,
  26602. Sampigreek: 0x03E0,
  26603. Scaron: 0x0160,
  26604. Scarondotaccent: 0x1E66,
  26605. Scaronsmall: 0xF6FD,
  26606. Scedilla: 0x015E,
  26607. Schwa: 0x018F,
  26608. Schwacyrillic: 0x04D8,
  26609. Schwadieresiscyrillic: 0x04DA,
  26610. Scircle: 0x24C8,
  26611. Scircumflex: 0x015C,
  26612. Scommaaccent: 0x0218,
  26613. Sdotaccent: 0x1E60,
  26614. Sdotbelow: 0x1E62,
  26615. Sdotbelowdotaccent: 0x1E68,
  26616. Seharmenian: 0x054D,
  26617. Sevenroman: 0x2166,
  26618. Shaarmenian: 0x0547,
  26619. Shacyrillic: 0x0428,
  26620. Shchacyrillic: 0x0429,
  26621. Sheicoptic: 0x03E2,
  26622. Shhacyrillic: 0x04BA,
  26623. Shimacoptic: 0x03EC,
  26624. Sigma: 0x03A3,
  26625. Sixroman: 0x2165,
  26626. Smonospace: 0xFF33,
  26627. Softsigncyrillic: 0x042C,
  26628. Ssmall: 0xF773,
  26629. Stigmagreek: 0x03DA,
  26630. T: 0x0054,
  26631. Tau: 0x03A4,
  26632. Tbar: 0x0166,
  26633. Tcaron: 0x0164,
  26634. Tcedilla: 0x0162,
  26635. Tcircle: 0x24C9,
  26636. Tcircumflexbelow: 0x1E70,
  26637. Tcommaaccent: 0x0162,
  26638. Tdotaccent: 0x1E6A,
  26639. Tdotbelow: 0x1E6C,
  26640. Tecyrillic: 0x0422,
  26641. Tedescendercyrillic: 0x04AC,
  26642. Tenroman: 0x2169,
  26643. Tetsecyrillic: 0x04B4,
  26644. Theta: 0x0398,
  26645. Thook: 0x01AC,
  26646. Thorn: 0x00DE,
  26647. Thornsmall: 0xF7FE,
  26648. Threeroman: 0x2162,
  26649. Tildesmall: 0xF6FE,
  26650. Tiwnarmenian: 0x054F,
  26651. Tlinebelow: 0x1E6E,
  26652. Tmonospace: 0xFF34,
  26653. Toarmenian: 0x0539,
  26654. Tonefive: 0x01BC,
  26655. Tonesix: 0x0184,
  26656. Tonetwo: 0x01A7,
  26657. Tretroflexhook: 0x01AE,
  26658. Tsecyrillic: 0x0426,
  26659. Tshecyrillic: 0x040B,
  26660. Tsmall: 0xF774,
  26661. Twelveroman: 0x216B,
  26662. Tworoman: 0x2161,
  26663. U: 0x0055,
  26664. Uacute: 0x00DA,
  26665. Uacutesmall: 0xF7FA,
  26666. Ubreve: 0x016C,
  26667. Ucaron: 0x01D3,
  26668. Ucircle: 0x24CA,
  26669. Ucircumflex: 0x00DB,
  26670. Ucircumflexbelow: 0x1E76,
  26671. Ucircumflexsmall: 0xF7FB,
  26672. Ucyrillic: 0x0423,
  26673. Udblacute: 0x0170,
  26674. Udblgrave: 0x0214,
  26675. Udieresis: 0x00DC,
  26676. Udieresisacute: 0x01D7,
  26677. Udieresisbelow: 0x1E72,
  26678. Udieresiscaron: 0x01D9,
  26679. Udieresiscyrillic: 0x04F0,
  26680. Udieresisgrave: 0x01DB,
  26681. Udieresismacron: 0x01D5,
  26682. Udieresissmall: 0xF7FC,
  26683. Udotbelow: 0x1EE4,
  26684. Ugrave: 0x00D9,
  26685. Ugravesmall: 0xF7F9,
  26686. Uhookabove: 0x1EE6,
  26687. Uhorn: 0x01AF,
  26688. Uhornacute: 0x1EE8,
  26689. Uhorndotbelow: 0x1EF0,
  26690. Uhorngrave: 0x1EEA,
  26691. Uhornhookabove: 0x1EEC,
  26692. Uhorntilde: 0x1EEE,
  26693. Uhungarumlaut: 0x0170,
  26694. Uhungarumlautcyrillic: 0x04F2,
  26695. Uinvertedbreve: 0x0216,
  26696. Ukcyrillic: 0x0478,
  26697. Umacron: 0x016A,
  26698. Umacroncyrillic: 0x04EE,
  26699. Umacrondieresis: 0x1E7A,
  26700. Umonospace: 0xFF35,
  26701. Uogonek: 0x0172,
  26702. Upsilon: 0x03A5,
  26703. Upsilon1: 0x03D2,
  26704. Upsilonacutehooksymbolgreek: 0x03D3,
  26705. Upsilonafrican: 0x01B1,
  26706. Upsilondieresis: 0x03AB,
  26707. Upsilondieresishooksymbolgreek: 0x03D4,
  26708. Upsilonhooksymbol: 0x03D2,
  26709. Upsilontonos: 0x038E,
  26710. Uring: 0x016E,
  26711. Ushortcyrillic: 0x040E,
  26712. Usmall: 0xF775,
  26713. Ustraightcyrillic: 0x04AE,
  26714. Ustraightstrokecyrillic: 0x04B0,
  26715. Utilde: 0x0168,
  26716. Utildeacute: 0x1E78,
  26717. Utildebelow: 0x1E74,
  26718. V: 0x0056,
  26719. Vcircle: 0x24CB,
  26720. Vdotbelow: 0x1E7E,
  26721. Vecyrillic: 0x0412,
  26722. Vewarmenian: 0x054E,
  26723. Vhook: 0x01B2,
  26724. Vmonospace: 0xFF36,
  26725. Voarmenian: 0x0548,
  26726. Vsmall: 0xF776,
  26727. Vtilde: 0x1E7C,
  26728. W: 0x0057,
  26729. Wacute: 0x1E82,
  26730. Wcircle: 0x24CC,
  26731. Wcircumflex: 0x0174,
  26732. Wdieresis: 0x1E84,
  26733. Wdotaccent: 0x1E86,
  26734. Wdotbelow: 0x1E88,
  26735. Wgrave: 0x1E80,
  26736. Wmonospace: 0xFF37,
  26737. Wsmall: 0xF777,
  26738. X: 0x0058,
  26739. Xcircle: 0x24CD,
  26740. Xdieresis: 0x1E8C,
  26741. Xdotaccent: 0x1E8A,
  26742. Xeharmenian: 0x053D,
  26743. Xi: 0x039E,
  26744. Xmonospace: 0xFF38,
  26745. Xsmall: 0xF778,
  26746. Y: 0x0059,
  26747. Yacute: 0x00DD,
  26748. Yacutesmall: 0xF7FD,
  26749. Yatcyrillic: 0x0462,
  26750. Ycircle: 0x24CE,
  26751. Ycircumflex: 0x0176,
  26752. Ydieresis: 0x0178,
  26753. Ydieresissmall: 0xF7FF,
  26754. Ydotaccent: 0x1E8E,
  26755. Ydotbelow: 0x1EF4,
  26756. Yericyrillic: 0x042B,
  26757. Yerudieresiscyrillic: 0x04F8,
  26758. Ygrave: 0x1EF2,
  26759. Yhook: 0x01B3,
  26760. Yhookabove: 0x1EF6,
  26761. Yiarmenian: 0x0545,
  26762. Yicyrillic: 0x0407,
  26763. Yiwnarmenian: 0x0552,
  26764. Ymonospace: 0xFF39,
  26765. Ysmall: 0xF779,
  26766. Ytilde: 0x1EF8,
  26767. Yusbigcyrillic: 0x046A,
  26768. Yusbigiotifiedcyrillic: 0x046C,
  26769. Yuslittlecyrillic: 0x0466,
  26770. Yuslittleiotifiedcyrillic: 0x0468,
  26771. Z: 0x005A,
  26772. Zaarmenian: 0x0536,
  26773. Zacute: 0x0179,
  26774. Zcaron: 0x017D,
  26775. Zcaronsmall: 0xF6FF,
  26776. Zcircle: 0x24CF,
  26777. Zcircumflex: 0x1E90,
  26778. Zdot: 0x017B,
  26779. Zdotaccent: 0x017B,
  26780. Zdotbelow: 0x1E92,
  26781. Zecyrillic: 0x0417,
  26782. Zedescendercyrillic: 0x0498,
  26783. Zedieresiscyrillic: 0x04DE,
  26784. Zeta: 0x0396,
  26785. Zhearmenian: 0x053A,
  26786. Zhebrevecyrillic: 0x04C1,
  26787. Zhecyrillic: 0x0416,
  26788. Zhedescendercyrillic: 0x0496,
  26789. Zhedieresiscyrillic: 0x04DC,
  26790. Zlinebelow: 0x1E94,
  26791. Zmonospace: 0xFF3A,
  26792. Zsmall: 0xF77A,
  26793. Zstroke: 0x01B5,
  26794. a: 0x0061,
  26795. aabengali: 0x0986,
  26796. aacute: 0x00E1,
  26797. aadeva: 0x0906,
  26798. aagujarati: 0x0A86,
  26799. aagurmukhi: 0x0A06,
  26800. aamatragurmukhi: 0x0A3E,
  26801. aarusquare: 0x3303,
  26802. aavowelsignbengali: 0x09BE,
  26803. aavowelsigndeva: 0x093E,
  26804. aavowelsigngujarati: 0x0ABE,
  26805. abbreviationmarkarmenian: 0x055F,
  26806. abbreviationsigndeva: 0x0970,
  26807. abengali: 0x0985,
  26808. abopomofo: 0x311A,
  26809. abreve: 0x0103,
  26810. abreveacute: 0x1EAF,
  26811. abrevecyrillic: 0x04D1,
  26812. abrevedotbelow: 0x1EB7,
  26813. abrevegrave: 0x1EB1,
  26814. abrevehookabove: 0x1EB3,
  26815. abrevetilde: 0x1EB5,
  26816. acaron: 0x01CE,
  26817. acircle: 0x24D0,
  26818. acircumflex: 0x00E2,
  26819. acircumflexacute: 0x1EA5,
  26820. acircumflexdotbelow: 0x1EAD,
  26821. acircumflexgrave: 0x1EA7,
  26822. acircumflexhookabove: 0x1EA9,
  26823. acircumflextilde: 0x1EAB,
  26824. acute: 0x00B4,
  26825. acutebelowcmb: 0x0317,
  26826. acutecmb: 0x0301,
  26827. acutecomb: 0x0301,
  26828. acutedeva: 0x0954,
  26829. acutelowmod: 0x02CF,
  26830. acutetonecmb: 0x0341,
  26831. acyrillic: 0x0430,
  26832. adblgrave: 0x0201,
  26833. addakgurmukhi: 0x0A71,
  26834. adeva: 0x0905,
  26835. adieresis: 0x00E4,
  26836. adieresiscyrillic: 0x04D3,
  26837. adieresismacron: 0x01DF,
  26838. adotbelow: 0x1EA1,
  26839. adotmacron: 0x01E1,
  26840. ae: 0x00E6,
  26841. aeacute: 0x01FD,
  26842. aekorean: 0x3150,
  26843. aemacron: 0x01E3,
  26844. afii00208: 0x2015,
  26845. afii08941: 0x20A4,
  26846. afii10017: 0x0410,
  26847. afii10018: 0x0411,
  26848. afii10019: 0x0412,
  26849. afii10020: 0x0413,
  26850. afii10021: 0x0414,
  26851. afii10022: 0x0415,
  26852. afii10023: 0x0401,
  26853. afii10024: 0x0416,
  26854. afii10025: 0x0417,
  26855. afii10026: 0x0418,
  26856. afii10027: 0x0419,
  26857. afii10028: 0x041A,
  26858. afii10029: 0x041B,
  26859. afii10030: 0x041C,
  26860. afii10031: 0x041D,
  26861. afii10032: 0x041E,
  26862. afii10033: 0x041F,
  26863. afii10034: 0x0420,
  26864. afii10035: 0x0421,
  26865. afii10036: 0x0422,
  26866. afii10037: 0x0423,
  26867. afii10038: 0x0424,
  26868. afii10039: 0x0425,
  26869. afii10040: 0x0426,
  26870. afii10041: 0x0427,
  26871. afii10042: 0x0428,
  26872. afii10043: 0x0429,
  26873. afii10044: 0x042A,
  26874. afii10045: 0x042B,
  26875. afii10046: 0x042C,
  26876. afii10047: 0x042D,
  26877. afii10048: 0x042E,
  26878. afii10049: 0x042F,
  26879. afii10050: 0x0490,
  26880. afii10051: 0x0402,
  26881. afii10052: 0x0403,
  26882. afii10053: 0x0404,
  26883. afii10054: 0x0405,
  26884. afii10055: 0x0406,
  26885. afii10056: 0x0407,
  26886. afii10057: 0x0408,
  26887. afii10058: 0x0409,
  26888. afii10059: 0x040A,
  26889. afii10060: 0x040B,
  26890. afii10061: 0x040C,
  26891. afii10062: 0x040E,
  26892. afii10063: 0xF6C4,
  26893. afii10064: 0xF6C5,
  26894. afii10065: 0x0430,
  26895. afii10066: 0x0431,
  26896. afii10067: 0x0432,
  26897. afii10068: 0x0433,
  26898. afii10069: 0x0434,
  26899. afii10070: 0x0435,
  26900. afii10071: 0x0451,
  26901. afii10072: 0x0436,
  26902. afii10073: 0x0437,
  26903. afii10074: 0x0438,
  26904. afii10075: 0x0439,
  26905. afii10076: 0x043A,
  26906. afii10077: 0x043B,
  26907. afii10078: 0x043C,
  26908. afii10079: 0x043D,
  26909. afii10080: 0x043E,
  26910. afii10081: 0x043F,
  26911. afii10082: 0x0440,
  26912. afii10083: 0x0441,
  26913. afii10084: 0x0442,
  26914. afii10085: 0x0443,
  26915. afii10086: 0x0444,
  26916. afii10087: 0x0445,
  26917. afii10088: 0x0446,
  26918. afii10089: 0x0447,
  26919. afii10090: 0x0448,
  26920. afii10091: 0x0449,
  26921. afii10092: 0x044A,
  26922. afii10093: 0x044B,
  26923. afii10094: 0x044C,
  26924. afii10095: 0x044D,
  26925. afii10096: 0x044E,
  26926. afii10097: 0x044F,
  26927. afii10098: 0x0491,
  26928. afii10099: 0x0452,
  26929. afii10100: 0x0453,
  26930. afii10101: 0x0454,
  26931. afii10102: 0x0455,
  26932. afii10103: 0x0456,
  26933. afii10104: 0x0457,
  26934. afii10105: 0x0458,
  26935. afii10106: 0x0459,
  26936. afii10107: 0x045A,
  26937. afii10108: 0x045B,
  26938. afii10109: 0x045C,
  26939. afii10110: 0x045E,
  26940. afii10145: 0x040F,
  26941. afii10146: 0x0462,
  26942. afii10147: 0x0472,
  26943. afii10148: 0x0474,
  26944. afii10192: 0xF6C6,
  26945. afii10193: 0x045F,
  26946. afii10194: 0x0463,
  26947. afii10195: 0x0473,
  26948. afii10196: 0x0475,
  26949. afii10831: 0xF6C7,
  26950. afii10832: 0xF6C8,
  26951. afii10846: 0x04D9,
  26952. afii299: 0x200E,
  26953. afii300: 0x200F,
  26954. afii301: 0x200D,
  26955. afii57381: 0x066A,
  26956. afii57388: 0x060C,
  26957. afii57392: 0x0660,
  26958. afii57393: 0x0661,
  26959. afii57394: 0x0662,
  26960. afii57395: 0x0663,
  26961. afii57396: 0x0664,
  26962. afii57397: 0x0665,
  26963. afii57398: 0x0666,
  26964. afii57399: 0x0667,
  26965. afii57400: 0x0668,
  26966. afii57401: 0x0669,
  26967. afii57403: 0x061B,
  26968. afii57407: 0x061F,
  26969. afii57409: 0x0621,
  26970. afii57410: 0x0622,
  26971. afii57411: 0x0623,
  26972. afii57412: 0x0624,
  26973. afii57413: 0x0625,
  26974. afii57414: 0x0626,
  26975. afii57415: 0x0627,
  26976. afii57416: 0x0628,
  26977. afii57417: 0x0629,
  26978. afii57418: 0x062A,
  26979. afii57419: 0x062B,
  26980. afii57420: 0x062C,
  26981. afii57421: 0x062D,
  26982. afii57422: 0x062E,
  26983. afii57423: 0x062F,
  26984. afii57424: 0x0630,
  26985. afii57425: 0x0631,
  26986. afii57426: 0x0632,
  26987. afii57427: 0x0633,
  26988. afii57428: 0x0634,
  26989. afii57429: 0x0635,
  26990. afii57430: 0x0636,
  26991. afii57431: 0x0637,
  26992. afii57432: 0x0638,
  26993. afii57433: 0x0639,
  26994. afii57434: 0x063A,
  26995. afii57440: 0x0640,
  26996. afii57441: 0x0641,
  26997. afii57442: 0x0642,
  26998. afii57443: 0x0643,
  26999. afii57444: 0x0644,
  27000. afii57445: 0x0645,
  27001. afii57446: 0x0646,
  27002. afii57448: 0x0648,
  27003. afii57449: 0x0649,
  27004. afii57450: 0x064A,
  27005. afii57451: 0x064B,
  27006. afii57452: 0x064C,
  27007. afii57453: 0x064D,
  27008. afii57454: 0x064E,
  27009. afii57455: 0x064F,
  27010. afii57456: 0x0650,
  27011. afii57457: 0x0651,
  27012. afii57458: 0x0652,
  27013. afii57470: 0x0647,
  27014. afii57505: 0x06A4,
  27015. afii57506: 0x067E,
  27016. afii57507: 0x0686,
  27017. afii57508: 0x0698,
  27018. afii57509: 0x06AF,
  27019. afii57511: 0x0679,
  27020. afii57512: 0x0688,
  27021. afii57513: 0x0691,
  27022. afii57514: 0x06BA,
  27023. afii57519: 0x06D2,
  27024. afii57534: 0x06D5,
  27025. afii57636: 0x20AA,
  27026. afii57645: 0x05BE,
  27027. afii57658: 0x05C3,
  27028. afii57664: 0x05D0,
  27029. afii57665: 0x05D1,
  27030. afii57666: 0x05D2,
  27031. afii57667: 0x05D3,
  27032. afii57668: 0x05D4,
  27033. afii57669: 0x05D5,
  27034. afii57670: 0x05D6,
  27035. afii57671: 0x05D7,
  27036. afii57672: 0x05D8,
  27037. afii57673: 0x05D9,
  27038. afii57674: 0x05DA,
  27039. afii57675: 0x05DB,
  27040. afii57676: 0x05DC,
  27041. afii57677: 0x05DD,
  27042. afii57678: 0x05DE,
  27043. afii57679: 0x05DF,
  27044. afii57680: 0x05E0,
  27045. afii57681: 0x05E1,
  27046. afii57682: 0x05E2,
  27047. afii57683: 0x05E3,
  27048. afii57684: 0x05E4,
  27049. afii57685: 0x05E5,
  27050. afii57686: 0x05E6,
  27051. afii57687: 0x05E7,
  27052. afii57688: 0x05E8,
  27053. afii57689: 0x05E9,
  27054. afii57690: 0x05EA,
  27055. afii57694: 0xFB2A,
  27056. afii57695: 0xFB2B,
  27057. afii57700: 0xFB4B,
  27058. afii57705: 0xFB1F,
  27059. afii57716: 0x05F0,
  27060. afii57717: 0x05F1,
  27061. afii57718: 0x05F2,
  27062. afii57723: 0xFB35,
  27063. afii57793: 0x05B4,
  27064. afii57794: 0x05B5,
  27065. afii57795: 0x05B6,
  27066. afii57796: 0x05BB,
  27067. afii57797: 0x05B8,
  27068. afii57798: 0x05B7,
  27069. afii57799: 0x05B0,
  27070. afii57800: 0x05B2,
  27071. afii57801: 0x05B1,
  27072. afii57802: 0x05B3,
  27073. afii57803: 0x05C2,
  27074. afii57804: 0x05C1,
  27075. afii57806: 0x05B9,
  27076. afii57807: 0x05BC,
  27077. afii57839: 0x05BD,
  27078. afii57841: 0x05BF,
  27079. afii57842: 0x05C0,
  27080. afii57929: 0x02BC,
  27081. afii61248: 0x2105,
  27082. afii61289: 0x2113,
  27083. afii61352: 0x2116,
  27084. afii61573: 0x202C,
  27085. afii61574: 0x202D,
  27086. afii61575: 0x202E,
  27087. afii61664: 0x200C,
  27088. afii63167: 0x066D,
  27089. afii64937: 0x02BD,
  27090. agrave: 0x00E0,
  27091. agujarati: 0x0A85,
  27092. agurmukhi: 0x0A05,
  27093. ahiragana: 0x3042,
  27094. ahookabove: 0x1EA3,
  27095. aibengali: 0x0990,
  27096. aibopomofo: 0x311E,
  27097. aideva: 0x0910,
  27098. aiecyrillic: 0x04D5,
  27099. aigujarati: 0x0A90,
  27100. aigurmukhi: 0x0A10,
  27101. aimatragurmukhi: 0x0A48,
  27102. ainarabic: 0x0639,
  27103. ainfinalarabic: 0xFECA,
  27104. aininitialarabic: 0xFECB,
  27105. ainmedialarabic: 0xFECC,
  27106. ainvertedbreve: 0x0203,
  27107. aivowelsignbengali: 0x09C8,
  27108. aivowelsigndeva: 0x0948,
  27109. aivowelsigngujarati: 0x0AC8,
  27110. akatakana: 0x30A2,
  27111. akatakanahalfwidth: 0xFF71,
  27112. akorean: 0x314F,
  27113. alef: 0x05D0,
  27114. alefarabic: 0x0627,
  27115. alefdageshhebrew: 0xFB30,
  27116. aleffinalarabic: 0xFE8E,
  27117. alefhamzaabovearabic: 0x0623,
  27118. alefhamzaabovefinalarabic: 0xFE84,
  27119. alefhamzabelowarabic: 0x0625,
  27120. alefhamzabelowfinalarabic: 0xFE88,
  27121. alefhebrew: 0x05D0,
  27122. aleflamedhebrew: 0xFB4F,
  27123. alefmaddaabovearabic: 0x0622,
  27124. alefmaddaabovefinalarabic: 0xFE82,
  27125. alefmaksuraarabic: 0x0649,
  27126. alefmaksurafinalarabic: 0xFEF0,
  27127. alefmaksurainitialarabic: 0xFEF3,
  27128. alefmaksuramedialarabic: 0xFEF4,
  27129. alefpatahhebrew: 0xFB2E,
  27130. alefqamatshebrew: 0xFB2F,
  27131. aleph: 0x2135,
  27132. allequal: 0x224C,
  27133. alpha: 0x03B1,
  27134. alphatonos: 0x03AC,
  27135. amacron: 0x0101,
  27136. amonospace: 0xFF41,
  27137. ampersand: 0x0026,
  27138. ampersandmonospace: 0xFF06,
  27139. ampersandsmall: 0xF726,
  27140. amsquare: 0x33C2,
  27141. anbopomofo: 0x3122,
  27142. angbopomofo: 0x3124,
  27143. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  27144. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  27145. angkhankhuthai: 0x0E5A,
  27146. angle: 0x2220,
  27147. anglebracketleft: 0x3008,
  27148. anglebracketleftvertical: 0xFE3F,
  27149. anglebracketright: 0x3009,
  27150. anglebracketrightvertical: 0xFE40,
  27151. angleleft: 0x2329,
  27152. angleright: 0x232A,
  27153. angstrom: 0x212B,
  27154. anoteleia: 0x0387,
  27155. anudattadeva: 0x0952,
  27156. anusvarabengali: 0x0982,
  27157. anusvaradeva: 0x0902,
  27158. anusvaragujarati: 0x0A82,
  27159. aogonek: 0x0105,
  27160. apaatosquare: 0x3300,
  27161. aparen: 0x249C,
  27162. apostrophearmenian: 0x055A,
  27163. apostrophemod: 0x02BC,
  27164. apple: 0xF8FF,
  27165. approaches: 0x2250,
  27166. approxequal: 0x2248,
  27167. approxequalorimage: 0x2252,
  27168. approximatelyequal: 0x2245,
  27169. araeaekorean: 0x318E,
  27170. araeakorean: 0x318D,
  27171. arc: 0x2312,
  27172. arighthalfring: 0x1E9A,
  27173. aring: 0x00E5,
  27174. aringacute: 0x01FB,
  27175. aringbelow: 0x1E01,
  27176. arrowboth: 0x2194,
  27177. arrowdashdown: 0x21E3,
  27178. arrowdashleft: 0x21E0,
  27179. arrowdashright: 0x21E2,
  27180. arrowdashup: 0x21E1,
  27181. arrowdblboth: 0x21D4,
  27182. arrowdbldown: 0x21D3,
  27183. arrowdblleft: 0x21D0,
  27184. arrowdblright: 0x21D2,
  27185. arrowdblup: 0x21D1,
  27186. arrowdown: 0x2193,
  27187. arrowdownleft: 0x2199,
  27188. arrowdownright: 0x2198,
  27189. arrowdownwhite: 0x21E9,
  27190. arrowheaddownmod: 0x02C5,
  27191. arrowheadleftmod: 0x02C2,
  27192. arrowheadrightmod: 0x02C3,
  27193. arrowheadupmod: 0x02C4,
  27194. arrowhorizex: 0xF8E7,
  27195. arrowleft: 0x2190,
  27196. arrowleftdbl: 0x21D0,
  27197. arrowleftdblstroke: 0x21CD,
  27198. arrowleftoverright: 0x21C6,
  27199. arrowleftwhite: 0x21E6,
  27200. arrowright: 0x2192,
  27201. arrowrightdblstroke: 0x21CF,
  27202. arrowrightheavy: 0x279E,
  27203. arrowrightoverleft: 0x21C4,
  27204. arrowrightwhite: 0x21E8,
  27205. arrowtableft: 0x21E4,
  27206. arrowtabright: 0x21E5,
  27207. arrowup: 0x2191,
  27208. arrowupdn: 0x2195,
  27209. arrowupdnbse: 0x21A8,
  27210. arrowupdownbase: 0x21A8,
  27211. arrowupleft: 0x2196,
  27212. arrowupleftofdown: 0x21C5,
  27213. arrowupright: 0x2197,
  27214. arrowupwhite: 0x21E7,
  27215. arrowvertex: 0xF8E6,
  27216. asciicircum: 0x005E,
  27217. asciicircummonospace: 0xFF3E,
  27218. asciitilde: 0x007E,
  27219. asciitildemonospace: 0xFF5E,
  27220. ascript: 0x0251,
  27221. ascriptturned: 0x0252,
  27222. asmallhiragana: 0x3041,
  27223. asmallkatakana: 0x30A1,
  27224. asmallkatakanahalfwidth: 0xFF67,
  27225. asterisk: 0x002A,
  27226. asteriskaltonearabic: 0x066D,
  27227. asteriskarabic: 0x066D,
  27228. asteriskmath: 0x2217,
  27229. asteriskmonospace: 0xFF0A,
  27230. asterisksmall: 0xFE61,
  27231. asterism: 0x2042,
  27232. asuperior: 0xF6E9,
  27233. asymptoticallyequal: 0x2243,
  27234. at: 0x0040,
  27235. atilde: 0x00E3,
  27236. atmonospace: 0xFF20,
  27237. atsmall: 0xFE6B,
  27238. aturned: 0x0250,
  27239. aubengali: 0x0994,
  27240. aubopomofo: 0x3120,
  27241. audeva: 0x0914,
  27242. augujarati: 0x0A94,
  27243. augurmukhi: 0x0A14,
  27244. aulengthmarkbengali: 0x09D7,
  27245. aumatragurmukhi: 0x0A4C,
  27246. auvowelsignbengali: 0x09CC,
  27247. auvowelsigndeva: 0x094C,
  27248. auvowelsigngujarati: 0x0ACC,
  27249. avagrahadeva: 0x093D,
  27250. aybarmenian: 0x0561,
  27251. ayin: 0x05E2,
  27252. ayinaltonehebrew: 0xFB20,
  27253. ayinhebrew: 0x05E2,
  27254. b: 0x0062,
  27255. babengali: 0x09AC,
  27256. backslash: 0x005C,
  27257. backslashmonospace: 0xFF3C,
  27258. badeva: 0x092C,
  27259. bagujarati: 0x0AAC,
  27260. bagurmukhi: 0x0A2C,
  27261. bahiragana: 0x3070,
  27262. bahtthai: 0x0E3F,
  27263. bakatakana: 0x30D0,
  27264. bar: 0x007C,
  27265. barmonospace: 0xFF5C,
  27266. bbopomofo: 0x3105,
  27267. bcircle: 0x24D1,
  27268. bdotaccent: 0x1E03,
  27269. bdotbelow: 0x1E05,
  27270. beamedsixteenthnotes: 0x266C,
  27271. because: 0x2235,
  27272. becyrillic: 0x0431,
  27273. beharabic: 0x0628,
  27274. behfinalarabic: 0xFE90,
  27275. behinitialarabic: 0xFE91,
  27276. behiragana: 0x3079,
  27277. behmedialarabic: 0xFE92,
  27278. behmeeminitialarabic: 0xFC9F,
  27279. behmeemisolatedarabic: 0xFC08,
  27280. behnoonfinalarabic: 0xFC6D,
  27281. bekatakana: 0x30D9,
  27282. benarmenian: 0x0562,
  27283. bet: 0x05D1,
  27284. beta: 0x03B2,
  27285. betasymbolgreek: 0x03D0,
  27286. betdagesh: 0xFB31,
  27287. betdageshhebrew: 0xFB31,
  27288. bethebrew: 0x05D1,
  27289. betrafehebrew: 0xFB4C,
  27290. bhabengali: 0x09AD,
  27291. bhadeva: 0x092D,
  27292. bhagujarati: 0x0AAD,
  27293. bhagurmukhi: 0x0A2D,
  27294. bhook: 0x0253,
  27295. bihiragana: 0x3073,
  27296. bikatakana: 0x30D3,
  27297. bilabialclick: 0x0298,
  27298. bindigurmukhi: 0x0A02,
  27299. birusquare: 0x3331,
  27300. blackcircle: 0x25CF,
  27301. blackdiamond: 0x25C6,
  27302. blackdownpointingtriangle: 0x25BC,
  27303. blackleftpointingpointer: 0x25C4,
  27304. blackleftpointingtriangle: 0x25C0,
  27305. blacklenticularbracketleft: 0x3010,
  27306. blacklenticularbracketleftvertical: 0xFE3B,
  27307. blacklenticularbracketright: 0x3011,
  27308. blacklenticularbracketrightvertical: 0xFE3C,
  27309. blacklowerlefttriangle: 0x25E3,
  27310. blacklowerrighttriangle: 0x25E2,
  27311. blackrectangle: 0x25AC,
  27312. blackrightpointingpointer: 0x25BA,
  27313. blackrightpointingtriangle: 0x25B6,
  27314. blacksmallsquare: 0x25AA,
  27315. blacksmilingface: 0x263B,
  27316. blacksquare: 0x25A0,
  27317. blackstar: 0x2605,
  27318. blackupperlefttriangle: 0x25E4,
  27319. blackupperrighttriangle: 0x25E5,
  27320. blackuppointingsmalltriangle: 0x25B4,
  27321. blackuppointingtriangle: 0x25B2,
  27322. blank: 0x2423,
  27323. blinebelow: 0x1E07,
  27324. block: 0x2588,
  27325. bmonospace: 0xFF42,
  27326. bobaimaithai: 0x0E1A,
  27327. bohiragana: 0x307C,
  27328. bokatakana: 0x30DC,
  27329. bparen: 0x249D,
  27330. bqsquare: 0x33C3,
  27331. braceex: 0xF8F4,
  27332. braceleft: 0x007B,
  27333. braceleftbt: 0xF8F3,
  27334. braceleftmid: 0xF8F2,
  27335. braceleftmonospace: 0xFF5B,
  27336. braceleftsmall: 0xFE5B,
  27337. bracelefttp: 0xF8F1,
  27338. braceleftvertical: 0xFE37,
  27339. braceright: 0x007D,
  27340. bracerightbt: 0xF8FE,
  27341. bracerightmid: 0xF8FD,
  27342. bracerightmonospace: 0xFF5D,
  27343. bracerightsmall: 0xFE5C,
  27344. bracerighttp: 0xF8FC,
  27345. bracerightvertical: 0xFE38,
  27346. bracketleft: 0x005B,
  27347. bracketleftbt: 0xF8F0,
  27348. bracketleftex: 0xF8EF,
  27349. bracketleftmonospace: 0xFF3B,
  27350. bracketlefttp: 0xF8EE,
  27351. bracketright: 0x005D,
  27352. bracketrightbt: 0xF8FB,
  27353. bracketrightex: 0xF8FA,
  27354. bracketrightmonospace: 0xFF3D,
  27355. bracketrighttp: 0xF8F9,
  27356. breve: 0x02D8,
  27357. brevebelowcmb: 0x032E,
  27358. brevecmb: 0x0306,
  27359. breveinvertedbelowcmb: 0x032F,
  27360. breveinvertedcmb: 0x0311,
  27361. breveinverteddoublecmb: 0x0361,
  27362. bridgebelowcmb: 0x032A,
  27363. bridgeinvertedbelowcmb: 0x033A,
  27364. brokenbar: 0x00A6,
  27365. bstroke: 0x0180,
  27366. bsuperior: 0xF6EA,
  27367. btopbar: 0x0183,
  27368. buhiragana: 0x3076,
  27369. bukatakana: 0x30D6,
  27370. bullet: 0x2022,
  27371. bulletinverse: 0x25D8,
  27372. bulletoperator: 0x2219,
  27373. bullseye: 0x25CE,
  27374. c: 0x0063,
  27375. caarmenian: 0x056E,
  27376. cabengali: 0x099A,
  27377. cacute: 0x0107,
  27378. cadeva: 0x091A,
  27379. cagujarati: 0x0A9A,
  27380. cagurmukhi: 0x0A1A,
  27381. calsquare: 0x3388,
  27382. candrabindubengali: 0x0981,
  27383. candrabinducmb: 0x0310,
  27384. candrabindudeva: 0x0901,
  27385. candrabindugujarati: 0x0A81,
  27386. capslock: 0x21EA,
  27387. careof: 0x2105,
  27388. caron: 0x02C7,
  27389. caronbelowcmb: 0x032C,
  27390. caroncmb: 0x030C,
  27391. carriagereturn: 0x21B5,
  27392. cbopomofo: 0x3118,
  27393. ccaron: 0x010D,
  27394. ccedilla: 0x00E7,
  27395. ccedillaacute: 0x1E09,
  27396. ccircle: 0x24D2,
  27397. ccircumflex: 0x0109,
  27398. ccurl: 0x0255,
  27399. cdot: 0x010B,
  27400. cdotaccent: 0x010B,
  27401. cdsquare: 0x33C5,
  27402. cedilla: 0x00B8,
  27403. cedillacmb: 0x0327,
  27404. cent: 0x00A2,
  27405. centigrade: 0x2103,
  27406. centinferior: 0xF6DF,
  27407. centmonospace: 0xFFE0,
  27408. centoldstyle: 0xF7A2,
  27409. centsuperior: 0xF6E0,
  27410. chaarmenian: 0x0579,
  27411. chabengali: 0x099B,
  27412. chadeva: 0x091B,
  27413. chagujarati: 0x0A9B,
  27414. chagurmukhi: 0x0A1B,
  27415. chbopomofo: 0x3114,
  27416. cheabkhasiancyrillic: 0x04BD,
  27417. checkmark: 0x2713,
  27418. checyrillic: 0x0447,
  27419. chedescenderabkhasiancyrillic: 0x04BF,
  27420. chedescendercyrillic: 0x04B7,
  27421. chedieresiscyrillic: 0x04F5,
  27422. cheharmenian: 0x0573,
  27423. chekhakassiancyrillic: 0x04CC,
  27424. cheverticalstrokecyrillic: 0x04B9,
  27425. chi: 0x03C7,
  27426. chieuchacirclekorean: 0x3277,
  27427. chieuchaparenkorean: 0x3217,
  27428. chieuchcirclekorean: 0x3269,
  27429. chieuchkorean: 0x314A,
  27430. chieuchparenkorean: 0x3209,
  27431. chochangthai: 0x0E0A,
  27432. chochanthai: 0x0E08,
  27433. chochingthai: 0x0E09,
  27434. chochoethai: 0x0E0C,
  27435. chook: 0x0188,
  27436. cieucacirclekorean: 0x3276,
  27437. cieucaparenkorean: 0x3216,
  27438. cieuccirclekorean: 0x3268,
  27439. cieuckorean: 0x3148,
  27440. cieucparenkorean: 0x3208,
  27441. cieucuparenkorean: 0x321C,
  27442. circle: 0x25CB,
  27443. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  27444. circlemultiply: 0x2297,
  27445. circleot: 0x2299,
  27446. circleplus: 0x2295,
  27447. circlepostalmark: 0x3036,
  27448. circlewithlefthalfblack: 0x25D0,
  27449. circlewithrighthalfblack: 0x25D1,
  27450. circumflex: 0x02C6,
  27451. circumflexbelowcmb: 0x032D,
  27452. circumflexcmb: 0x0302,
  27453. clear: 0x2327,
  27454. clickalveolar: 0x01C2,
  27455. clickdental: 0x01C0,
  27456. clicklateral: 0x01C1,
  27457. clickretroflex: 0x01C3,
  27458. club: 0x2663,
  27459. clubsuitblack: 0x2663,
  27460. clubsuitwhite: 0x2667,
  27461. cmcubedsquare: 0x33A4,
  27462. cmonospace: 0xFF43,
  27463. cmsquaredsquare: 0x33A0,
  27464. coarmenian: 0x0581,
  27465. colon: 0x003A,
  27466. colonmonetary: 0x20A1,
  27467. colonmonospace: 0xFF1A,
  27468. colonsign: 0x20A1,
  27469. colonsmall: 0xFE55,
  27470. colontriangularhalfmod: 0x02D1,
  27471. colontriangularmod: 0x02D0,
  27472. comma: 0x002C,
  27473. commaabovecmb: 0x0313,
  27474. commaaboverightcmb: 0x0315,
  27475. commaaccent: 0xF6C3,
  27476. commaarabic: 0x060C,
  27477. commaarmenian: 0x055D,
  27478. commainferior: 0xF6E1,
  27479. commamonospace: 0xFF0C,
  27480. commareversedabovecmb: 0x0314,
  27481. commareversedmod: 0x02BD,
  27482. commasmall: 0xFE50,
  27483. commasuperior: 0xF6E2,
  27484. commaturnedabovecmb: 0x0312,
  27485. commaturnedmod: 0x02BB,
  27486. compass: 0x263C,
  27487. congruent: 0x2245,
  27488. contourintegral: 0x222E,
  27489. control: 0x2303,
  27490. controlACK: 0x0006,
  27491. controlBEL: 0x0007,
  27492. controlBS: 0x0008,
  27493. controlCAN: 0x0018,
  27494. controlCR: 0x000D,
  27495. controlDC1: 0x0011,
  27496. controlDC2: 0x0012,
  27497. controlDC3: 0x0013,
  27498. controlDC4: 0x0014,
  27499. controlDEL: 0x007F,
  27500. controlDLE: 0x0010,
  27501. controlEM: 0x0019,
  27502. controlENQ: 0x0005,
  27503. controlEOT: 0x0004,
  27504. controlESC: 0x001B,
  27505. controlETB: 0x0017,
  27506. controlETX: 0x0003,
  27507. controlFF: 0x000C,
  27508. controlFS: 0x001C,
  27509. controlGS: 0x001D,
  27510. controlHT: 0x0009,
  27511. controlLF: 0x000A,
  27512. controlNAK: 0x0015,
  27513. controlRS: 0x001E,
  27514. controlSI: 0x000F,
  27515. controlSO: 0x000E,
  27516. controlSOT: 0x0002,
  27517. controlSTX: 0x0001,
  27518. controlSUB: 0x001A,
  27519. controlSYN: 0x0016,
  27520. controlUS: 0x001F,
  27521. controlVT: 0x000B,
  27522. copyright: 0x00A9,
  27523. copyrightsans: 0xF8E9,
  27524. copyrightserif: 0xF6D9,
  27525. cornerbracketleft: 0x300C,
  27526. cornerbracketlefthalfwidth: 0xFF62,
  27527. cornerbracketleftvertical: 0xFE41,
  27528. cornerbracketright: 0x300D,
  27529. cornerbracketrighthalfwidth: 0xFF63,
  27530. cornerbracketrightvertical: 0xFE42,
  27531. corporationsquare: 0x337F,
  27532. cosquare: 0x33C7,
  27533. coverkgsquare: 0x33C6,
  27534. cparen: 0x249E,
  27535. cruzeiro: 0x20A2,
  27536. cstretched: 0x0297,
  27537. curlyand: 0x22CF,
  27538. curlyor: 0x22CE,
  27539. currency: 0x00A4,
  27540. cyrBreve: 0xF6D1,
  27541. cyrFlex: 0xF6D2,
  27542. cyrbreve: 0xF6D4,
  27543. cyrflex: 0xF6D5,
  27544. d: 0x0064,
  27545. daarmenian: 0x0564,
  27546. dabengali: 0x09A6,
  27547. dadarabic: 0x0636,
  27548. dadeva: 0x0926,
  27549. dadfinalarabic: 0xFEBE,
  27550. dadinitialarabic: 0xFEBF,
  27551. dadmedialarabic: 0xFEC0,
  27552. dagesh: 0x05BC,
  27553. dageshhebrew: 0x05BC,
  27554. dagger: 0x2020,
  27555. daggerdbl: 0x2021,
  27556. dagujarati: 0x0AA6,
  27557. dagurmukhi: 0x0A26,
  27558. dahiragana: 0x3060,
  27559. dakatakana: 0x30C0,
  27560. dalarabic: 0x062F,
  27561. dalet: 0x05D3,
  27562. daletdagesh: 0xFB33,
  27563. daletdageshhebrew: 0xFB33,
  27564. dalethebrew: 0x05D3,
  27565. dalfinalarabic: 0xFEAA,
  27566. dammaarabic: 0x064F,
  27567. dammalowarabic: 0x064F,
  27568. dammatanaltonearabic: 0x064C,
  27569. dammatanarabic: 0x064C,
  27570. danda: 0x0964,
  27571. dargahebrew: 0x05A7,
  27572. dargalefthebrew: 0x05A7,
  27573. dasiapneumatacyrilliccmb: 0x0485,
  27574. dblGrave: 0xF6D3,
  27575. dblanglebracketleft: 0x300A,
  27576. dblanglebracketleftvertical: 0xFE3D,
  27577. dblanglebracketright: 0x300B,
  27578. dblanglebracketrightvertical: 0xFE3E,
  27579. dblarchinvertedbelowcmb: 0x032B,
  27580. dblarrowleft: 0x21D4,
  27581. dblarrowright: 0x21D2,
  27582. dbldanda: 0x0965,
  27583. dblgrave: 0xF6D6,
  27584. dblgravecmb: 0x030F,
  27585. dblintegral: 0x222C,
  27586. dbllowline: 0x2017,
  27587. dbllowlinecmb: 0x0333,
  27588. dbloverlinecmb: 0x033F,
  27589. dblprimemod: 0x02BA,
  27590. dblverticalbar: 0x2016,
  27591. dblverticallineabovecmb: 0x030E,
  27592. dbopomofo: 0x3109,
  27593. dbsquare: 0x33C8,
  27594. dcaron: 0x010F,
  27595. dcedilla: 0x1E11,
  27596. dcircle: 0x24D3,
  27597. dcircumflexbelow: 0x1E13,
  27598. dcroat: 0x0111,
  27599. ddabengali: 0x09A1,
  27600. ddadeva: 0x0921,
  27601. ddagujarati: 0x0AA1,
  27602. ddagurmukhi: 0x0A21,
  27603. ddalarabic: 0x0688,
  27604. ddalfinalarabic: 0xFB89,
  27605. dddhadeva: 0x095C,
  27606. ddhabengali: 0x09A2,
  27607. ddhadeva: 0x0922,
  27608. ddhagujarati: 0x0AA2,
  27609. ddhagurmukhi: 0x0A22,
  27610. ddotaccent: 0x1E0B,
  27611. ddotbelow: 0x1E0D,
  27612. decimalseparatorarabic: 0x066B,
  27613. decimalseparatorpersian: 0x066B,
  27614. decyrillic: 0x0434,
  27615. degree: 0x00B0,
  27616. dehihebrew: 0x05AD,
  27617. dehiragana: 0x3067,
  27618. deicoptic: 0x03EF,
  27619. dekatakana: 0x30C7,
  27620. deleteleft: 0x232B,
  27621. deleteright: 0x2326,
  27622. delta: 0x03B4,
  27623. deltaturned: 0x018D,
  27624. denominatorminusonenumeratorbengali: 0x09F8,
  27625. dezh: 0x02A4,
  27626. dhabengali: 0x09A7,
  27627. dhadeva: 0x0927,
  27628. dhagujarati: 0x0AA7,
  27629. dhagurmukhi: 0x0A27,
  27630. dhook: 0x0257,
  27631. dialytikatonos: 0x0385,
  27632. dialytikatonoscmb: 0x0344,
  27633. diamond: 0x2666,
  27634. diamondsuitwhite: 0x2662,
  27635. dieresis: 0x00A8,
  27636. dieresisacute: 0xF6D7,
  27637. dieresisbelowcmb: 0x0324,
  27638. dieresiscmb: 0x0308,
  27639. dieresisgrave: 0xF6D8,
  27640. dieresistonos: 0x0385,
  27641. dihiragana: 0x3062,
  27642. dikatakana: 0x30C2,
  27643. dittomark: 0x3003,
  27644. divide: 0x00F7,
  27645. divides: 0x2223,
  27646. divisionslash: 0x2215,
  27647. djecyrillic: 0x0452,
  27648. dkshade: 0x2593,
  27649. dlinebelow: 0x1E0F,
  27650. dlsquare: 0x3397,
  27651. dmacron: 0x0111,
  27652. dmonospace: 0xFF44,
  27653. dnblock: 0x2584,
  27654. dochadathai: 0x0E0E,
  27655. dodekthai: 0x0E14,
  27656. dohiragana: 0x3069,
  27657. dokatakana: 0x30C9,
  27658. dollar: 0x0024,
  27659. dollarinferior: 0xF6E3,
  27660. dollarmonospace: 0xFF04,
  27661. dollaroldstyle: 0xF724,
  27662. dollarsmall: 0xFE69,
  27663. dollarsuperior: 0xF6E4,
  27664. dong: 0x20AB,
  27665. dorusquare: 0x3326,
  27666. dotaccent: 0x02D9,
  27667. dotaccentcmb: 0x0307,
  27668. dotbelowcmb: 0x0323,
  27669. dotbelowcomb: 0x0323,
  27670. dotkatakana: 0x30FB,
  27671. dotlessi: 0x0131,
  27672. dotlessj: 0xF6BE,
  27673. dotlessjstrokehook: 0x0284,
  27674. dotmath: 0x22C5,
  27675. dottedcircle: 0x25CC,
  27676. doubleyodpatah: 0xFB1F,
  27677. doubleyodpatahhebrew: 0xFB1F,
  27678. downtackbelowcmb: 0x031E,
  27679. downtackmod: 0x02D5,
  27680. dparen: 0x249F,
  27681. dsuperior: 0xF6EB,
  27682. dtail: 0x0256,
  27683. dtopbar: 0x018C,
  27684. duhiragana: 0x3065,
  27685. dukatakana: 0x30C5,
  27686. dz: 0x01F3,
  27687. dzaltone: 0x02A3,
  27688. dzcaron: 0x01C6,
  27689. dzcurl: 0x02A5,
  27690. dzeabkhasiancyrillic: 0x04E1,
  27691. dzecyrillic: 0x0455,
  27692. dzhecyrillic: 0x045F,
  27693. e: 0x0065,
  27694. eacute: 0x00E9,
  27695. earth: 0x2641,
  27696. ebengali: 0x098F,
  27697. ebopomofo: 0x311C,
  27698. ebreve: 0x0115,
  27699. ecandradeva: 0x090D,
  27700. ecandragujarati: 0x0A8D,
  27701. ecandravowelsigndeva: 0x0945,
  27702. ecandravowelsigngujarati: 0x0AC5,
  27703. ecaron: 0x011B,
  27704. ecedillabreve: 0x1E1D,
  27705. echarmenian: 0x0565,
  27706. echyiwnarmenian: 0x0587,
  27707. ecircle: 0x24D4,
  27708. ecircumflex: 0x00EA,
  27709. ecircumflexacute: 0x1EBF,
  27710. ecircumflexbelow: 0x1E19,
  27711. ecircumflexdotbelow: 0x1EC7,
  27712. ecircumflexgrave: 0x1EC1,
  27713. ecircumflexhookabove: 0x1EC3,
  27714. ecircumflextilde: 0x1EC5,
  27715. ecyrillic: 0x0454,
  27716. edblgrave: 0x0205,
  27717. edeva: 0x090F,
  27718. edieresis: 0x00EB,
  27719. edot: 0x0117,
  27720. edotaccent: 0x0117,
  27721. edotbelow: 0x1EB9,
  27722. eegurmukhi: 0x0A0F,
  27723. eematragurmukhi: 0x0A47,
  27724. efcyrillic: 0x0444,
  27725. egrave: 0x00E8,
  27726. egujarati: 0x0A8F,
  27727. eharmenian: 0x0567,
  27728. ehbopomofo: 0x311D,
  27729. ehiragana: 0x3048,
  27730. ehookabove: 0x1EBB,
  27731. eibopomofo: 0x311F,
  27732. eight: 0x0038,
  27733. eightarabic: 0x0668,
  27734. eightbengali: 0x09EE,
  27735. eightcircle: 0x2467,
  27736. eightcircleinversesansserif: 0x2791,
  27737. eightdeva: 0x096E,
  27738. eighteencircle: 0x2471,
  27739. eighteenparen: 0x2485,
  27740. eighteenperiod: 0x2499,
  27741. eightgujarati: 0x0AEE,
  27742. eightgurmukhi: 0x0A6E,
  27743. eighthackarabic: 0x0668,
  27744. eighthangzhou: 0x3028,
  27745. eighthnotebeamed: 0x266B,
  27746. eightideographicparen: 0x3227,
  27747. eightinferior: 0x2088,
  27748. eightmonospace: 0xFF18,
  27749. eightoldstyle: 0xF738,
  27750. eightparen: 0x247B,
  27751. eightperiod: 0x248F,
  27752. eightpersian: 0x06F8,
  27753. eightroman: 0x2177,
  27754. eightsuperior: 0x2078,
  27755. eightthai: 0x0E58,
  27756. einvertedbreve: 0x0207,
  27757. eiotifiedcyrillic: 0x0465,
  27758. ekatakana: 0x30A8,
  27759. ekatakanahalfwidth: 0xFF74,
  27760. ekonkargurmukhi: 0x0A74,
  27761. ekorean: 0x3154,
  27762. elcyrillic: 0x043B,
  27763. element: 0x2208,
  27764. elevencircle: 0x246A,
  27765. elevenparen: 0x247E,
  27766. elevenperiod: 0x2492,
  27767. elevenroman: 0x217A,
  27768. ellipsis: 0x2026,
  27769. ellipsisvertical: 0x22EE,
  27770. emacron: 0x0113,
  27771. emacronacute: 0x1E17,
  27772. emacrongrave: 0x1E15,
  27773. emcyrillic: 0x043C,
  27774. emdash: 0x2014,
  27775. emdashvertical: 0xFE31,
  27776. emonospace: 0xFF45,
  27777. emphasismarkarmenian: 0x055B,
  27778. emptyset: 0x2205,
  27779. enbopomofo: 0x3123,
  27780. encyrillic: 0x043D,
  27781. endash: 0x2013,
  27782. endashvertical: 0xFE32,
  27783. endescendercyrillic: 0x04A3,
  27784. eng: 0x014B,
  27785. engbopomofo: 0x3125,
  27786. enghecyrillic: 0x04A5,
  27787. enhookcyrillic: 0x04C8,
  27788. enspace: 0x2002,
  27789. eogonek: 0x0119,
  27790. eokorean: 0x3153,
  27791. eopen: 0x025B,
  27792. eopenclosed: 0x029A,
  27793. eopenreversed: 0x025C,
  27794. eopenreversedclosed: 0x025E,
  27795. eopenreversedhook: 0x025D,
  27796. eparen: 0x24A0,
  27797. epsilon: 0x03B5,
  27798. epsilontonos: 0x03AD,
  27799. equal: 0x003D,
  27800. equalmonospace: 0xFF1D,
  27801. equalsmall: 0xFE66,
  27802. equalsuperior: 0x207C,
  27803. equivalence: 0x2261,
  27804. erbopomofo: 0x3126,
  27805. ercyrillic: 0x0440,
  27806. ereversed: 0x0258,
  27807. ereversedcyrillic: 0x044D,
  27808. escyrillic: 0x0441,
  27809. esdescendercyrillic: 0x04AB,
  27810. esh: 0x0283,
  27811. eshcurl: 0x0286,
  27812. eshortdeva: 0x090E,
  27813. eshortvowelsigndeva: 0x0946,
  27814. eshreversedloop: 0x01AA,
  27815. eshsquatreversed: 0x0285,
  27816. esmallhiragana: 0x3047,
  27817. esmallkatakana: 0x30A7,
  27818. esmallkatakanahalfwidth: 0xFF6A,
  27819. estimated: 0x212E,
  27820. esuperior: 0xF6EC,
  27821. eta: 0x03B7,
  27822. etarmenian: 0x0568,
  27823. etatonos: 0x03AE,
  27824. eth: 0x00F0,
  27825. etilde: 0x1EBD,
  27826. etildebelow: 0x1E1B,
  27827. etnahtafoukhhebrew: 0x0591,
  27828. etnahtafoukhlefthebrew: 0x0591,
  27829. etnahtahebrew: 0x0591,
  27830. etnahtalefthebrew: 0x0591,
  27831. eturned: 0x01DD,
  27832. eukorean: 0x3161,
  27833. euro: 0x20AC,
  27834. evowelsignbengali: 0x09C7,
  27835. evowelsigndeva: 0x0947,
  27836. evowelsigngujarati: 0x0AC7,
  27837. exclam: 0x0021,
  27838. exclamarmenian: 0x055C,
  27839. exclamdbl: 0x203C,
  27840. exclamdown: 0x00A1,
  27841. exclamdownsmall: 0xF7A1,
  27842. exclammonospace: 0xFF01,
  27843. exclamsmall: 0xF721,
  27844. existential: 0x2203,
  27845. ezh: 0x0292,
  27846. ezhcaron: 0x01EF,
  27847. ezhcurl: 0x0293,
  27848. ezhreversed: 0x01B9,
  27849. ezhtail: 0x01BA,
  27850. f: 0x0066,
  27851. fadeva: 0x095E,
  27852. fagurmukhi: 0x0A5E,
  27853. fahrenheit: 0x2109,
  27854. fathaarabic: 0x064E,
  27855. fathalowarabic: 0x064E,
  27856. fathatanarabic: 0x064B,
  27857. fbopomofo: 0x3108,
  27858. fcircle: 0x24D5,
  27859. fdotaccent: 0x1E1F,
  27860. feharabic: 0x0641,
  27861. feharmenian: 0x0586,
  27862. fehfinalarabic: 0xFED2,
  27863. fehinitialarabic: 0xFED3,
  27864. fehmedialarabic: 0xFED4,
  27865. feicoptic: 0x03E5,
  27866. female: 0x2640,
  27867. ff: 0xFB00,
  27868. ffi: 0xFB03,
  27869. ffl: 0xFB04,
  27870. fi: 0xFB01,
  27871. fifteencircle: 0x246E,
  27872. fifteenparen: 0x2482,
  27873. fifteenperiod: 0x2496,
  27874. figuredash: 0x2012,
  27875. filledbox: 0x25A0,
  27876. filledrect: 0x25AC,
  27877. finalkaf: 0x05DA,
  27878. finalkafdagesh: 0xFB3A,
  27879. finalkafdageshhebrew: 0xFB3A,
  27880. finalkafhebrew: 0x05DA,
  27881. finalmem: 0x05DD,
  27882. finalmemhebrew: 0x05DD,
  27883. finalnun: 0x05DF,
  27884. finalnunhebrew: 0x05DF,
  27885. finalpe: 0x05E3,
  27886. finalpehebrew: 0x05E3,
  27887. finaltsadi: 0x05E5,
  27888. finaltsadihebrew: 0x05E5,
  27889. firsttonechinese: 0x02C9,
  27890. fisheye: 0x25C9,
  27891. fitacyrillic: 0x0473,
  27892. five: 0x0035,
  27893. fivearabic: 0x0665,
  27894. fivebengali: 0x09EB,
  27895. fivecircle: 0x2464,
  27896. fivecircleinversesansserif: 0x278E,
  27897. fivedeva: 0x096B,
  27898. fiveeighths: 0x215D,
  27899. fivegujarati: 0x0AEB,
  27900. fivegurmukhi: 0x0A6B,
  27901. fivehackarabic: 0x0665,
  27902. fivehangzhou: 0x3025,
  27903. fiveideographicparen: 0x3224,
  27904. fiveinferior: 0x2085,
  27905. fivemonospace: 0xFF15,
  27906. fiveoldstyle: 0xF735,
  27907. fiveparen: 0x2478,
  27908. fiveperiod: 0x248C,
  27909. fivepersian: 0x06F5,
  27910. fiveroman: 0x2174,
  27911. fivesuperior: 0x2075,
  27912. fivethai: 0x0E55,
  27913. fl: 0xFB02,
  27914. florin: 0x0192,
  27915. fmonospace: 0xFF46,
  27916. fmsquare: 0x3399,
  27917. fofanthai: 0x0E1F,
  27918. fofathai: 0x0E1D,
  27919. fongmanthai: 0x0E4F,
  27920. forall: 0x2200,
  27921. four: 0x0034,
  27922. fourarabic: 0x0664,
  27923. fourbengali: 0x09EA,
  27924. fourcircle: 0x2463,
  27925. fourcircleinversesansserif: 0x278D,
  27926. fourdeva: 0x096A,
  27927. fourgujarati: 0x0AEA,
  27928. fourgurmukhi: 0x0A6A,
  27929. fourhackarabic: 0x0664,
  27930. fourhangzhou: 0x3024,
  27931. fourideographicparen: 0x3223,
  27932. fourinferior: 0x2084,
  27933. fourmonospace: 0xFF14,
  27934. fournumeratorbengali: 0x09F7,
  27935. fouroldstyle: 0xF734,
  27936. fourparen: 0x2477,
  27937. fourperiod: 0x248B,
  27938. fourpersian: 0x06F4,
  27939. fourroman: 0x2173,
  27940. foursuperior: 0x2074,
  27941. fourteencircle: 0x246D,
  27942. fourteenparen: 0x2481,
  27943. fourteenperiod: 0x2495,
  27944. fourthai: 0x0E54,
  27945. fourthtonechinese: 0x02CB,
  27946. fparen: 0x24A1,
  27947. fraction: 0x2044,
  27948. franc: 0x20A3,
  27949. g: 0x0067,
  27950. gabengali: 0x0997,
  27951. gacute: 0x01F5,
  27952. gadeva: 0x0917,
  27953. gafarabic: 0x06AF,
  27954. gaffinalarabic: 0xFB93,
  27955. gafinitialarabic: 0xFB94,
  27956. gafmedialarabic: 0xFB95,
  27957. gagujarati: 0x0A97,
  27958. gagurmukhi: 0x0A17,
  27959. gahiragana: 0x304C,
  27960. gakatakana: 0x30AC,
  27961. gamma: 0x03B3,
  27962. gammalatinsmall: 0x0263,
  27963. gammasuperior: 0x02E0,
  27964. gangiacoptic: 0x03EB,
  27965. gbopomofo: 0x310D,
  27966. gbreve: 0x011F,
  27967. gcaron: 0x01E7,
  27968. gcedilla: 0x0123,
  27969. gcircle: 0x24D6,
  27970. gcircumflex: 0x011D,
  27971. gcommaaccent: 0x0123,
  27972. gdot: 0x0121,
  27973. gdotaccent: 0x0121,
  27974. gecyrillic: 0x0433,
  27975. gehiragana: 0x3052,
  27976. gekatakana: 0x30B2,
  27977. geometricallyequal: 0x2251,
  27978. gereshaccenthebrew: 0x059C,
  27979. gereshhebrew: 0x05F3,
  27980. gereshmuqdamhebrew: 0x059D,
  27981. germandbls: 0x00DF,
  27982. gershayimaccenthebrew: 0x059E,
  27983. gershayimhebrew: 0x05F4,
  27984. getamark: 0x3013,
  27985. ghabengali: 0x0998,
  27986. ghadarmenian: 0x0572,
  27987. ghadeva: 0x0918,
  27988. ghagujarati: 0x0A98,
  27989. ghagurmukhi: 0x0A18,
  27990. ghainarabic: 0x063A,
  27991. ghainfinalarabic: 0xFECE,
  27992. ghaininitialarabic: 0xFECF,
  27993. ghainmedialarabic: 0xFED0,
  27994. ghemiddlehookcyrillic: 0x0495,
  27995. ghestrokecyrillic: 0x0493,
  27996. gheupturncyrillic: 0x0491,
  27997. ghhadeva: 0x095A,
  27998. ghhagurmukhi: 0x0A5A,
  27999. ghook: 0x0260,
  28000. ghzsquare: 0x3393,
  28001. gihiragana: 0x304E,
  28002. gikatakana: 0x30AE,
  28003. gimarmenian: 0x0563,
  28004. gimel: 0x05D2,
  28005. gimeldagesh: 0xFB32,
  28006. gimeldageshhebrew: 0xFB32,
  28007. gimelhebrew: 0x05D2,
  28008. gjecyrillic: 0x0453,
  28009. glottalinvertedstroke: 0x01BE,
  28010. glottalstop: 0x0294,
  28011. glottalstopinverted: 0x0296,
  28012. glottalstopmod: 0x02C0,
  28013. glottalstopreversed: 0x0295,
  28014. glottalstopreversedmod: 0x02C1,
  28015. glottalstopreversedsuperior: 0x02E4,
  28016. glottalstopstroke: 0x02A1,
  28017. glottalstopstrokereversed: 0x02A2,
  28018. gmacron: 0x1E21,
  28019. gmonospace: 0xFF47,
  28020. gohiragana: 0x3054,
  28021. gokatakana: 0x30B4,
  28022. gparen: 0x24A2,
  28023. gpasquare: 0x33AC,
  28024. gradient: 0x2207,
  28025. grave: 0x0060,
  28026. gravebelowcmb: 0x0316,
  28027. gravecmb: 0x0300,
  28028. gravecomb: 0x0300,
  28029. gravedeva: 0x0953,
  28030. gravelowmod: 0x02CE,
  28031. gravemonospace: 0xFF40,
  28032. gravetonecmb: 0x0340,
  28033. greater: 0x003E,
  28034. greaterequal: 0x2265,
  28035. greaterequalorless: 0x22DB,
  28036. greatermonospace: 0xFF1E,
  28037. greaterorequivalent: 0x2273,
  28038. greaterorless: 0x2277,
  28039. greateroverequal: 0x2267,
  28040. greatersmall: 0xFE65,
  28041. gscript: 0x0261,
  28042. gstroke: 0x01E5,
  28043. guhiragana: 0x3050,
  28044. guillemotleft: 0x00AB,
  28045. guillemotright: 0x00BB,
  28046. guilsinglleft: 0x2039,
  28047. guilsinglright: 0x203A,
  28048. gukatakana: 0x30B0,
  28049. guramusquare: 0x3318,
  28050. gysquare: 0x33C9,
  28051. h: 0x0068,
  28052. haabkhasiancyrillic: 0x04A9,
  28053. haaltonearabic: 0x06C1,
  28054. habengali: 0x09B9,
  28055. hadescendercyrillic: 0x04B3,
  28056. hadeva: 0x0939,
  28057. hagujarati: 0x0AB9,
  28058. hagurmukhi: 0x0A39,
  28059. haharabic: 0x062D,
  28060. hahfinalarabic: 0xFEA2,
  28061. hahinitialarabic: 0xFEA3,
  28062. hahiragana: 0x306F,
  28063. hahmedialarabic: 0xFEA4,
  28064. haitusquare: 0x332A,
  28065. hakatakana: 0x30CF,
  28066. hakatakanahalfwidth: 0xFF8A,
  28067. halantgurmukhi: 0x0A4D,
  28068. hamzaarabic: 0x0621,
  28069. hamzalowarabic: 0x0621,
  28070. hangulfiller: 0x3164,
  28071. hardsigncyrillic: 0x044A,
  28072. harpoonleftbarbup: 0x21BC,
  28073. harpoonrightbarbup: 0x21C0,
  28074. hasquare: 0x33CA,
  28075. hatafpatah: 0x05B2,
  28076. hatafpatah16: 0x05B2,
  28077. hatafpatah23: 0x05B2,
  28078. hatafpatah2f: 0x05B2,
  28079. hatafpatahhebrew: 0x05B2,
  28080. hatafpatahnarrowhebrew: 0x05B2,
  28081. hatafpatahquarterhebrew: 0x05B2,
  28082. hatafpatahwidehebrew: 0x05B2,
  28083. hatafqamats: 0x05B3,
  28084. hatafqamats1b: 0x05B3,
  28085. hatafqamats28: 0x05B3,
  28086. hatafqamats34: 0x05B3,
  28087. hatafqamatshebrew: 0x05B3,
  28088. hatafqamatsnarrowhebrew: 0x05B3,
  28089. hatafqamatsquarterhebrew: 0x05B3,
  28090. hatafqamatswidehebrew: 0x05B3,
  28091. hatafsegol: 0x05B1,
  28092. hatafsegol17: 0x05B1,
  28093. hatafsegol24: 0x05B1,
  28094. hatafsegol30: 0x05B1,
  28095. hatafsegolhebrew: 0x05B1,
  28096. hatafsegolnarrowhebrew: 0x05B1,
  28097. hatafsegolquarterhebrew: 0x05B1,
  28098. hatafsegolwidehebrew: 0x05B1,
  28099. hbar: 0x0127,
  28100. hbopomofo: 0x310F,
  28101. hbrevebelow: 0x1E2B,
  28102. hcedilla: 0x1E29,
  28103. hcircle: 0x24D7,
  28104. hcircumflex: 0x0125,
  28105. hdieresis: 0x1E27,
  28106. hdotaccent: 0x1E23,
  28107. hdotbelow: 0x1E25,
  28108. he: 0x05D4,
  28109. heart: 0x2665,
  28110. heartsuitblack: 0x2665,
  28111. heartsuitwhite: 0x2661,
  28112. hedagesh: 0xFB34,
  28113. hedageshhebrew: 0xFB34,
  28114. hehaltonearabic: 0x06C1,
  28115. heharabic: 0x0647,
  28116. hehebrew: 0x05D4,
  28117. hehfinalaltonearabic: 0xFBA7,
  28118. hehfinalalttwoarabic: 0xFEEA,
  28119. hehfinalarabic: 0xFEEA,
  28120. hehhamzaabovefinalarabic: 0xFBA5,
  28121. hehhamzaaboveisolatedarabic: 0xFBA4,
  28122. hehinitialaltonearabic: 0xFBA8,
  28123. hehinitialarabic: 0xFEEB,
  28124. hehiragana: 0x3078,
  28125. hehmedialaltonearabic: 0xFBA9,
  28126. hehmedialarabic: 0xFEEC,
  28127. heiseierasquare: 0x337B,
  28128. hekatakana: 0x30D8,
  28129. hekatakanahalfwidth: 0xFF8D,
  28130. hekutaarusquare: 0x3336,
  28131. henghook: 0x0267,
  28132. herutusquare: 0x3339,
  28133. het: 0x05D7,
  28134. hethebrew: 0x05D7,
  28135. hhook: 0x0266,
  28136. hhooksuperior: 0x02B1,
  28137. hieuhacirclekorean: 0x327B,
  28138. hieuhaparenkorean: 0x321B,
  28139. hieuhcirclekorean: 0x326D,
  28140. hieuhkorean: 0x314E,
  28141. hieuhparenkorean: 0x320D,
  28142. hihiragana: 0x3072,
  28143. hikatakana: 0x30D2,
  28144. hikatakanahalfwidth: 0xFF8B,
  28145. hiriq: 0x05B4,
  28146. hiriq14: 0x05B4,
  28147. hiriq21: 0x05B4,
  28148. hiriq2d: 0x05B4,
  28149. hiriqhebrew: 0x05B4,
  28150. hiriqnarrowhebrew: 0x05B4,
  28151. hiriqquarterhebrew: 0x05B4,
  28152. hiriqwidehebrew: 0x05B4,
  28153. hlinebelow: 0x1E96,
  28154. hmonospace: 0xFF48,
  28155. hoarmenian: 0x0570,
  28156. hohipthai: 0x0E2B,
  28157. hohiragana: 0x307B,
  28158. hokatakana: 0x30DB,
  28159. hokatakanahalfwidth: 0xFF8E,
  28160. holam: 0x05B9,
  28161. holam19: 0x05B9,
  28162. holam26: 0x05B9,
  28163. holam32: 0x05B9,
  28164. holamhebrew: 0x05B9,
  28165. holamnarrowhebrew: 0x05B9,
  28166. holamquarterhebrew: 0x05B9,
  28167. holamwidehebrew: 0x05B9,
  28168. honokhukthai: 0x0E2E,
  28169. hookabovecomb: 0x0309,
  28170. hookcmb: 0x0309,
  28171. hookpalatalizedbelowcmb: 0x0321,
  28172. hookretroflexbelowcmb: 0x0322,
  28173. hoonsquare: 0x3342,
  28174. horicoptic: 0x03E9,
  28175. horizontalbar: 0x2015,
  28176. horncmb: 0x031B,
  28177. hotsprings: 0x2668,
  28178. house: 0x2302,
  28179. hparen: 0x24A3,
  28180. hsuperior: 0x02B0,
  28181. hturned: 0x0265,
  28182. huhiragana: 0x3075,
  28183. huiitosquare: 0x3333,
  28184. hukatakana: 0x30D5,
  28185. hukatakanahalfwidth: 0xFF8C,
  28186. hungarumlaut: 0x02DD,
  28187. hungarumlautcmb: 0x030B,
  28188. hv: 0x0195,
  28189. hyphen: 0x002D,
  28190. hypheninferior: 0xF6E5,
  28191. hyphenmonospace: 0xFF0D,
  28192. hyphensmall: 0xFE63,
  28193. hyphensuperior: 0xF6E6,
  28194. hyphentwo: 0x2010,
  28195. i: 0x0069,
  28196. iacute: 0x00ED,
  28197. iacyrillic: 0x044F,
  28198. ibengali: 0x0987,
  28199. ibopomofo: 0x3127,
  28200. ibreve: 0x012D,
  28201. icaron: 0x01D0,
  28202. icircle: 0x24D8,
  28203. icircumflex: 0x00EE,
  28204. icyrillic: 0x0456,
  28205. idblgrave: 0x0209,
  28206. ideographearthcircle: 0x328F,
  28207. ideographfirecircle: 0x328B,
  28208. ideographicallianceparen: 0x323F,
  28209. ideographiccallparen: 0x323A,
  28210. ideographiccentrecircle: 0x32A5,
  28211. ideographicclose: 0x3006,
  28212. ideographiccomma: 0x3001,
  28213. ideographiccommaleft: 0xFF64,
  28214. ideographiccongratulationparen: 0x3237,
  28215. ideographiccorrectcircle: 0x32A3,
  28216. ideographicearthparen: 0x322F,
  28217. ideographicenterpriseparen: 0x323D,
  28218. ideographicexcellentcircle: 0x329D,
  28219. ideographicfestivalparen: 0x3240,
  28220. ideographicfinancialcircle: 0x3296,
  28221. ideographicfinancialparen: 0x3236,
  28222. ideographicfireparen: 0x322B,
  28223. ideographichaveparen: 0x3232,
  28224. ideographichighcircle: 0x32A4,
  28225. ideographiciterationmark: 0x3005,
  28226. ideographiclaborcircle: 0x3298,
  28227. ideographiclaborparen: 0x3238,
  28228. ideographicleftcircle: 0x32A7,
  28229. ideographiclowcircle: 0x32A6,
  28230. ideographicmedicinecircle: 0x32A9,
  28231. ideographicmetalparen: 0x322E,
  28232. ideographicmoonparen: 0x322A,
  28233. ideographicnameparen: 0x3234,
  28234. ideographicperiod: 0x3002,
  28235. ideographicprintcircle: 0x329E,
  28236. ideographicreachparen: 0x3243,
  28237. ideographicrepresentparen: 0x3239,
  28238. ideographicresourceparen: 0x323E,
  28239. ideographicrightcircle: 0x32A8,
  28240. ideographicsecretcircle: 0x3299,
  28241. ideographicselfparen: 0x3242,
  28242. ideographicsocietyparen: 0x3233,
  28243. ideographicspace: 0x3000,
  28244. ideographicspecialparen: 0x3235,
  28245. ideographicstockparen: 0x3231,
  28246. ideographicstudyparen: 0x323B,
  28247. ideographicsunparen: 0x3230,
  28248. ideographicsuperviseparen: 0x323C,
  28249. ideographicwaterparen: 0x322C,
  28250. ideographicwoodparen: 0x322D,
  28251. ideographiczero: 0x3007,
  28252. ideographmetalcircle: 0x328E,
  28253. ideographmooncircle: 0x328A,
  28254. ideographnamecircle: 0x3294,
  28255. ideographsuncircle: 0x3290,
  28256. ideographwatercircle: 0x328C,
  28257. ideographwoodcircle: 0x328D,
  28258. ideva: 0x0907,
  28259. idieresis: 0x00EF,
  28260. idieresisacute: 0x1E2F,
  28261. idieresiscyrillic: 0x04E5,
  28262. idotbelow: 0x1ECB,
  28263. iebrevecyrillic: 0x04D7,
  28264. iecyrillic: 0x0435,
  28265. ieungacirclekorean: 0x3275,
  28266. ieungaparenkorean: 0x3215,
  28267. ieungcirclekorean: 0x3267,
  28268. ieungkorean: 0x3147,
  28269. ieungparenkorean: 0x3207,
  28270. igrave: 0x00EC,
  28271. igujarati: 0x0A87,
  28272. igurmukhi: 0x0A07,
  28273. ihiragana: 0x3044,
  28274. ihookabove: 0x1EC9,
  28275. iibengali: 0x0988,
  28276. iicyrillic: 0x0438,
  28277. iideva: 0x0908,
  28278. iigujarati: 0x0A88,
  28279. iigurmukhi: 0x0A08,
  28280. iimatragurmukhi: 0x0A40,
  28281. iinvertedbreve: 0x020B,
  28282. iishortcyrillic: 0x0439,
  28283. iivowelsignbengali: 0x09C0,
  28284. iivowelsigndeva: 0x0940,
  28285. iivowelsigngujarati: 0x0AC0,
  28286. ij: 0x0133,
  28287. ikatakana: 0x30A4,
  28288. ikatakanahalfwidth: 0xFF72,
  28289. ikorean: 0x3163,
  28290. ilde: 0x02DC,
  28291. iluyhebrew: 0x05AC,
  28292. imacron: 0x012B,
  28293. imacroncyrillic: 0x04E3,
  28294. imageorapproximatelyequal: 0x2253,
  28295. imatragurmukhi: 0x0A3F,
  28296. imonospace: 0xFF49,
  28297. increment: 0x2206,
  28298. infinity: 0x221E,
  28299. iniarmenian: 0x056B,
  28300. integral: 0x222B,
  28301. integralbottom: 0x2321,
  28302. integralbt: 0x2321,
  28303. integralex: 0xF8F5,
  28304. integraltop: 0x2320,
  28305. integraltp: 0x2320,
  28306. intersection: 0x2229,
  28307. intisquare: 0x3305,
  28308. invbullet: 0x25D8,
  28309. invcircle: 0x25D9,
  28310. invsmileface: 0x263B,
  28311. iocyrillic: 0x0451,
  28312. iogonek: 0x012F,
  28313. iota: 0x03B9,
  28314. iotadieresis: 0x03CA,
  28315. iotadieresistonos: 0x0390,
  28316. iotalatin: 0x0269,
  28317. iotatonos: 0x03AF,
  28318. iparen: 0x24A4,
  28319. irigurmukhi: 0x0A72,
  28320. ismallhiragana: 0x3043,
  28321. ismallkatakana: 0x30A3,
  28322. ismallkatakanahalfwidth: 0xFF68,
  28323. issharbengali: 0x09FA,
  28324. istroke: 0x0268,
  28325. isuperior: 0xF6ED,
  28326. iterationhiragana: 0x309D,
  28327. iterationkatakana: 0x30FD,
  28328. itilde: 0x0129,
  28329. itildebelow: 0x1E2D,
  28330. iubopomofo: 0x3129,
  28331. iucyrillic: 0x044E,
  28332. ivowelsignbengali: 0x09BF,
  28333. ivowelsigndeva: 0x093F,
  28334. ivowelsigngujarati: 0x0ABF,
  28335. izhitsacyrillic: 0x0475,
  28336. izhitsadblgravecyrillic: 0x0477,
  28337. j: 0x006A,
  28338. jaarmenian: 0x0571,
  28339. jabengali: 0x099C,
  28340. jadeva: 0x091C,
  28341. jagujarati: 0x0A9C,
  28342. jagurmukhi: 0x0A1C,
  28343. jbopomofo: 0x3110,
  28344. jcaron: 0x01F0,
  28345. jcircle: 0x24D9,
  28346. jcircumflex: 0x0135,
  28347. jcrossedtail: 0x029D,
  28348. jdotlessstroke: 0x025F,
  28349. jecyrillic: 0x0458,
  28350. jeemarabic: 0x062C,
  28351. jeemfinalarabic: 0xFE9E,
  28352. jeeminitialarabic: 0xFE9F,
  28353. jeemmedialarabic: 0xFEA0,
  28354. jeharabic: 0x0698,
  28355. jehfinalarabic: 0xFB8B,
  28356. jhabengali: 0x099D,
  28357. jhadeva: 0x091D,
  28358. jhagujarati: 0x0A9D,
  28359. jhagurmukhi: 0x0A1D,
  28360. jheharmenian: 0x057B,
  28361. jis: 0x3004,
  28362. jmonospace: 0xFF4A,
  28363. jparen: 0x24A5,
  28364. jsuperior: 0x02B2,
  28365. k: 0x006B,
  28366. kabashkircyrillic: 0x04A1,
  28367. kabengali: 0x0995,
  28368. kacute: 0x1E31,
  28369. kacyrillic: 0x043A,
  28370. kadescendercyrillic: 0x049B,
  28371. kadeva: 0x0915,
  28372. kaf: 0x05DB,
  28373. kafarabic: 0x0643,
  28374. kafdagesh: 0xFB3B,
  28375. kafdageshhebrew: 0xFB3B,
  28376. kaffinalarabic: 0xFEDA,
  28377. kafhebrew: 0x05DB,
  28378. kafinitialarabic: 0xFEDB,
  28379. kafmedialarabic: 0xFEDC,
  28380. kafrafehebrew: 0xFB4D,
  28381. kagujarati: 0x0A95,
  28382. kagurmukhi: 0x0A15,
  28383. kahiragana: 0x304B,
  28384. kahookcyrillic: 0x04C4,
  28385. kakatakana: 0x30AB,
  28386. kakatakanahalfwidth: 0xFF76,
  28387. kappa: 0x03BA,
  28388. kappasymbolgreek: 0x03F0,
  28389. kapyeounmieumkorean: 0x3171,
  28390. kapyeounphieuphkorean: 0x3184,
  28391. kapyeounpieupkorean: 0x3178,
  28392. kapyeounssangpieupkorean: 0x3179,
  28393. karoriisquare: 0x330D,
  28394. kashidaautoarabic: 0x0640,
  28395. kashidaautonosidebearingarabic: 0x0640,
  28396. kasmallkatakana: 0x30F5,
  28397. kasquare: 0x3384,
  28398. kasraarabic: 0x0650,
  28399. kasratanarabic: 0x064D,
  28400. kastrokecyrillic: 0x049F,
  28401. katahiraprolongmarkhalfwidth: 0xFF70,
  28402. kaverticalstrokecyrillic: 0x049D,
  28403. kbopomofo: 0x310E,
  28404. kcalsquare: 0x3389,
  28405. kcaron: 0x01E9,
  28406. kcedilla: 0x0137,
  28407. kcircle: 0x24DA,
  28408. kcommaaccent: 0x0137,
  28409. kdotbelow: 0x1E33,
  28410. keharmenian: 0x0584,
  28411. kehiragana: 0x3051,
  28412. kekatakana: 0x30B1,
  28413. kekatakanahalfwidth: 0xFF79,
  28414. kenarmenian: 0x056F,
  28415. kesmallkatakana: 0x30F6,
  28416. kgreenlandic: 0x0138,
  28417. khabengali: 0x0996,
  28418. khacyrillic: 0x0445,
  28419. khadeva: 0x0916,
  28420. khagujarati: 0x0A96,
  28421. khagurmukhi: 0x0A16,
  28422. khaharabic: 0x062E,
  28423. khahfinalarabic: 0xFEA6,
  28424. khahinitialarabic: 0xFEA7,
  28425. khahmedialarabic: 0xFEA8,
  28426. kheicoptic: 0x03E7,
  28427. khhadeva: 0x0959,
  28428. khhagurmukhi: 0x0A59,
  28429. khieukhacirclekorean: 0x3278,
  28430. khieukhaparenkorean: 0x3218,
  28431. khieukhcirclekorean: 0x326A,
  28432. khieukhkorean: 0x314B,
  28433. khieukhparenkorean: 0x320A,
  28434. khokhaithai: 0x0E02,
  28435. khokhonthai: 0x0E05,
  28436. khokhuatthai: 0x0E03,
  28437. khokhwaithai: 0x0E04,
  28438. khomutthai: 0x0E5B,
  28439. khook: 0x0199,
  28440. khorakhangthai: 0x0E06,
  28441. khzsquare: 0x3391,
  28442. kihiragana: 0x304D,
  28443. kikatakana: 0x30AD,
  28444. kikatakanahalfwidth: 0xFF77,
  28445. kiroguramusquare: 0x3315,
  28446. kiromeetorusquare: 0x3316,
  28447. kirosquare: 0x3314,
  28448. kiyeokacirclekorean: 0x326E,
  28449. kiyeokaparenkorean: 0x320E,
  28450. kiyeokcirclekorean: 0x3260,
  28451. kiyeokkorean: 0x3131,
  28452. kiyeokparenkorean: 0x3200,
  28453. kiyeoksioskorean: 0x3133,
  28454. kjecyrillic: 0x045C,
  28455. klinebelow: 0x1E35,
  28456. klsquare: 0x3398,
  28457. kmcubedsquare: 0x33A6,
  28458. kmonospace: 0xFF4B,
  28459. kmsquaredsquare: 0x33A2,
  28460. kohiragana: 0x3053,
  28461. kohmsquare: 0x33C0,
  28462. kokaithai: 0x0E01,
  28463. kokatakana: 0x30B3,
  28464. kokatakanahalfwidth: 0xFF7A,
  28465. kooposquare: 0x331E,
  28466. koppacyrillic: 0x0481,
  28467. koreanstandardsymbol: 0x327F,
  28468. koroniscmb: 0x0343,
  28469. kparen: 0x24A6,
  28470. kpasquare: 0x33AA,
  28471. ksicyrillic: 0x046F,
  28472. ktsquare: 0x33CF,
  28473. kturned: 0x029E,
  28474. kuhiragana: 0x304F,
  28475. kukatakana: 0x30AF,
  28476. kukatakanahalfwidth: 0xFF78,
  28477. kvsquare: 0x33B8,
  28478. kwsquare: 0x33BE,
  28479. l: 0x006C,
  28480. labengali: 0x09B2,
  28481. lacute: 0x013A,
  28482. ladeva: 0x0932,
  28483. lagujarati: 0x0AB2,
  28484. lagurmukhi: 0x0A32,
  28485. lakkhangyaothai: 0x0E45,
  28486. lamaleffinalarabic: 0xFEFC,
  28487. lamalefhamzaabovefinalarabic: 0xFEF8,
  28488. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  28489. lamalefhamzabelowfinalarabic: 0xFEFA,
  28490. lamalefhamzabelowisolatedarabic: 0xFEF9,
  28491. lamalefisolatedarabic: 0xFEFB,
  28492. lamalefmaddaabovefinalarabic: 0xFEF6,
  28493. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  28494. lamarabic: 0x0644,
  28495. lambda: 0x03BB,
  28496. lambdastroke: 0x019B,
  28497. lamed: 0x05DC,
  28498. lameddagesh: 0xFB3C,
  28499. lameddageshhebrew: 0xFB3C,
  28500. lamedhebrew: 0x05DC,
  28501. lamfinalarabic: 0xFEDE,
  28502. lamhahinitialarabic: 0xFCCA,
  28503. laminitialarabic: 0xFEDF,
  28504. lamjeeminitialarabic: 0xFCC9,
  28505. lamkhahinitialarabic: 0xFCCB,
  28506. lamlamhehisolatedarabic: 0xFDF2,
  28507. lammedialarabic: 0xFEE0,
  28508. lammeemhahinitialarabic: 0xFD88,
  28509. lammeeminitialarabic: 0xFCCC,
  28510. largecircle: 0x25EF,
  28511. lbar: 0x019A,
  28512. lbelt: 0x026C,
  28513. lbopomofo: 0x310C,
  28514. lcaron: 0x013E,
  28515. lcedilla: 0x013C,
  28516. lcircle: 0x24DB,
  28517. lcircumflexbelow: 0x1E3D,
  28518. lcommaaccent: 0x013C,
  28519. ldot: 0x0140,
  28520. ldotaccent: 0x0140,
  28521. ldotbelow: 0x1E37,
  28522. ldotbelowmacron: 0x1E39,
  28523. leftangleabovecmb: 0x031A,
  28524. lefttackbelowcmb: 0x0318,
  28525. less: 0x003C,
  28526. lessequal: 0x2264,
  28527. lessequalorgreater: 0x22DA,
  28528. lessmonospace: 0xFF1C,
  28529. lessorequivalent: 0x2272,
  28530. lessorgreater: 0x2276,
  28531. lessoverequal: 0x2266,
  28532. lesssmall: 0xFE64,
  28533. lezh: 0x026E,
  28534. lfblock: 0x258C,
  28535. lhookretroflex: 0x026D,
  28536. lira: 0x20A4,
  28537. liwnarmenian: 0x056C,
  28538. lj: 0x01C9,
  28539. ljecyrillic: 0x0459,
  28540. ll: 0xF6C0,
  28541. lladeva: 0x0933,
  28542. llagujarati: 0x0AB3,
  28543. llinebelow: 0x1E3B,
  28544. llladeva: 0x0934,
  28545. llvocalicbengali: 0x09E1,
  28546. llvocalicdeva: 0x0961,
  28547. llvocalicvowelsignbengali: 0x09E3,
  28548. llvocalicvowelsigndeva: 0x0963,
  28549. lmiddletilde: 0x026B,
  28550. lmonospace: 0xFF4C,
  28551. lmsquare: 0x33D0,
  28552. lochulathai: 0x0E2C,
  28553. logicaland: 0x2227,
  28554. logicalnot: 0x00AC,
  28555. logicalnotreversed: 0x2310,
  28556. logicalor: 0x2228,
  28557. lolingthai: 0x0E25,
  28558. longs: 0x017F,
  28559. lowlinecenterline: 0xFE4E,
  28560. lowlinecmb: 0x0332,
  28561. lowlinedashed: 0xFE4D,
  28562. lozenge: 0x25CA,
  28563. lparen: 0x24A7,
  28564. lslash: 0x0142,
  28565. lsquare: 0x2113,
  28566. lsuperior: 0xF6EE,
  28567. ltshade: 0x2591,
  28568. luthai: 0x0E26,
  28569. lvocalicbengali: 0x098C,
  28570. lvocalicdeva: 0x090C,
  28571. lvocalicvowelsignbengali: 0x09E2,
  28572. lvocalicvowelsigndeva: 0x0962,
  28573. lxsquare: 0x33D3,
  28574. m: 0x006D,
  28575. mabengali: 0x09AE,
  28576. macron: 0x00AF,
  28577. macronbelowcmb: 0x0331,
  28578. macroncmb: 0x0304,
  28579. macronlowmod: 0x02CD,
  28580. macronmonospace: 0xFFE3,
  28581. macute: 0x1E3F,
  28582. madeva: 0x092E,
  28583. magujarati: 0x0AAE,
  28584. magurmukhi: 0x0A2E,
  28585. mahapakhhebrew: 0x05A4,
  28586. mahapakhlefthebrew: 0x05A4,
  28587. mahiragana: 0x307E,
  28588. maichattawalowleftthai: 0xF895,
  28589. maichattawalowrightthai: 0xF894,
  28590. maichattawathai: 0x0E4B,
  28591. maichattawaupperleftthai: 0xF893,
  28592. maieklowleftthai: 0xF88C,
  28593. maieklowrightthai: 0xF88B,
  28594. maiekthai: 0x0E48,
  28595. maiekupperleftthai: 0xF88A,
  28596. maihanakatleftthai: 0xF884,
  28597. maihanakatthai: 0x0E31,
  28598. maitaikhuleftthai: 0xF889,
  28599. maitaikhuthai: 0x0E47,
  28600. maitholowleftthai: 0xF88F,
  28601. maitholowrightthai: 0xF88E,
  28602. maithothai: 0x0E49,
  28603. maithoupperleftthai: 0xF88D,
  28604. maitrilowleftthai: 0xF892,
  28605. maitrilowrightthai: 0xF891,
  28606. maitrithai: 0x0E4A,
  28607. maitriupperleftthai: 0xF890,
  28608. maiyamokthai: 0x0E46,
  28609. makatakana: 0x30DE,
  28610. makatakanahalfwidth: 0xFF8F,
  28611. male: 0x2642,
  28612. mansyonsquare: 0x3347,
  28613. maqafhebrew: 0x05BE,
  28614. mars: 0x2642,
  28615. masoracirclehebrew: 0x05AF,
  28616. masquare: 0x3383,
  28617. mbopomofo: 0x3107,
  28618. mbsquare: 0x33D4,
  28619. mcircle: 0x24DC,
  28620. mcubedsquare: 0x33A5,
  28621. mdotaccent: 0x1E41,
  28622. mdotbelow: 0x1E43,
  28623. meemarabic: 0x0645,
  28624. meemfinalarabic: 0xFEE2,
  28625. meeminitialarabic: 0xFEE3,
  28626. meemmedialarabic: 0xFEE4,
  28627. meemmeeminitialarabic: 0xFCD1,
  28628. meemmeemisolatedarabic: 0xFC48,
  28629. meetorusquare: 0x334D,
  28630. mehiragana: 0x3081,
  28631. meizierasquare: 0x337E,
  28632. mekatakana: 0x30E1,
  28633. mekatakanahalfwidth: 0xFF92,
  28634. mem: 0x05DE,
  28635. memdagesh: 0xFB3E,
  28636. memdageshhebrew: 0xFB3E,
  28637. memhebrew: 0x05DE,
  28638. menarmenian: 0x0574,
  28639. merkhahebrew: 0x05A5,
  28640. merkhakefulahebrew: 0x05A6,
  28641. merkhakefulalefthebrew: 0x05A6,
  28642. merkhalefthebrew: 0x05A5,
  28643. mhook: 0x0271,
  28644. mhzsquare: 0x3392,
  28645. middledotkatakanahalfwidth: 0xFF65,
  28646. middot: 0x00B7,
  28647. mieumacirclekorean: 0x3272,
  28648. mieumaparenkorean: 0x3212,
  28649. mieumcirclekorean: 0x3264,
  28650. mieumkorean: 0x3141,
  28651. mieumpansioskorean: 0x3170,
  28652. mieumparenkorean: 0x3204,
  28653. mieumpieupkorean: 0x316E,
  28654. mieumsioskorean: 0x316F,
  28655. mihiragana: 0x307F,
  28656. mikatakana: 0x30DF,
  28657. mikatakanahalfwidth: 0xFF90,
  28658. minus: 0x2212,
  28659. minusbelowcmb: 0x0320,
  28660. minuscircle: 0x2296,
  28661. minusmod: 0x02D7,
  28662. minusplus: 0x2213,
  28663. minute: 0x2032,
  28664. miribaarusquare: 0x334A,
  28665. mirisquare: 0x3349,
  28666. mlonglegturned: 0x0270,
  28667. mlsquare: 0x3396,
  28668. mmcubedsquare: 0x33A3,
  28669. mmonospace: 0xFF4D,
  28670. mmsquaredsquare: 0x339F,
  28671. mohiragana: 0x3082,
  28672. mohmsquare: 0x33C1,
  28673. mokatakana: 0x30E2,
  28674. mokatakanahalfwidth: 0xFF93,
  28675. molsquare: 0x33D6,
  28676. momathai: 0x0E21,
  28677. moverssquare: 0x33A7,
  28678. moverssquaredsquare: 0x33A8,
  28679. mparen: 0x24A8,
  28680. mpasquare: 0x33AB,
  28681. mssquare: 0x33B3,
  28682. msuperior: 0xF6EF,
  28683. mturned: 0x026F,
  28684. mu: 0x00B5,
  28685. mu1: 0x00B5,
  28686. muasquare: 0x3382,
  28687. muchgreater: 0x226B,
  28688. muchless: 0x226A,
  28689. mufsquare: 0x338C,
  28690. mugreek: 0x03BC,
  28691. mugsquare: 0x338D,
  28692. muhiragana: 0x3080,
  28693. mukatakana: 0x30E0,
  28694. mukatakanahalfwidth: 0xFF91,
  28695. mulsquare: 0x3395,
  28696. multiply: 0x00D7,
  28697. mumsquare: 0x339B,
  28698. munahhebrew: 0x05A3,
  28699. munahlefthebrew: 0x05A3,
  28700. musicalnote: 0x266A,
  28701. musicalnotedbl: 0x266B,
  28702. musicflatsign: 0x266D,
  28703. musicsharpsign: 0x266F,
  28704. mussquare: 0x33B2,
  28705. muvsquare: 0x33B6,
  28706. muwsquare: 0x33BC,
  28707. mvmegasquare: 0x33B9,
  28708. mvsquare: 0x33B7,
  28709. mwmegasquare: 0x33BF,
  28710. mwsquare: 0x33BD,
  28711. n: 0x006E,
  28712. nabengali: 0x09A8,
  28713. nabla: 0x2207,
  28714. nacute: 0x0144,
  28715. nadeva: 0x0928,
  28716. nagujarati: 0x0AA8,
  28717. nagurmukhi: 0x0A28,
  28718. nahiragana: 0x306A,
  28719. nakatakana: 0x30CA,
  28720. nakatakanahalfwidth: 0xFF85,
  28721. napostrophe: 0x0149,
  28722. nasquare: 0x3381,
  28723. nbopomofo: 0x310B,
  28724. nbspace: 0x00A0,
  28725. ncaron: 0x0148,
  28726. ncedilla: 0x0146,
  28727. ncircle: 0x24DD,
  28728. ncircumflexbelow: 0x1E4B,
  28729. ncommaaccent: 0x0146,
  28730. ndotaccent: 0x1E45,
  28731. ndotbelow: 0x1E47,
  28732. nehiragana: 0x306D,
  28733. nekatakana: 0x30CD,
  28734. nekatakanahalfwidth: 0xFF88,
  28735. newsheqelsign: 0x20AA,
  28736. nfsquare: 0x338B,
  28737. ngabengali: 0x0999,
  28738. ngadeva: 0x0919,
  28739. ngagujarati: 0x0A99,
  28740. ngagurmukhi: 0x0A19,
  28741. ngonguthai: 0x0E07,
  28742. nhiragana: 0x3093,
  28743. nhookleft: 0x0272,
  28744. nhookretroflex: 0x0273,
  28745. nieunacirclekorean: 0x326F,
  28746. nieunaparenkorean: 0x320F,
  28747. nieuncieuckorean: 0x3135,
  28748. nieuncirclekorean: 0x3261,
  28749. nieunhieuhkorean: 0x3136,
  28750. nieunkorean: 0x3134,
  28751. nieunpansioskorean: 0x3168,
  28752. nieunparenkorean: 0x3201,
  28753. nieunsioskorean: 0x3167,
  28754. nieuntikeutkorean: 0x3166,
  28755. nihiragana: 0x306B,
  28756. nikatakana: 0x30CB,
  28757. nikatakanahalfwidth: 0xFF86,
  28758. nikhahitleftthai: 0xF899,
  28759. nikhahitthai: 0x0E4D,
  28760. nine: 0x0039,
  28761. ninearabic: 0x0669,
  28762. ninebengali: 0x09EF,
  28763. ninecircle: 0x2468,
  28764. ninecircleinversesansserif: 0x2792,
  28765. ninedeva: 0x096F,
  28766. ninegujarati: 0x0AEF,
  28767. ninegurmukhi: 0x0A6F,
  28768. ninehackarabic: 0x0669,
  28769. ninehangzhou: 0x3029,
  28770. nineideographicparen: 0x3228,
  28771. nineinferior: 0x2089,
  28772. ninemonospace: 0xFF19,
  28773. nineoldstyle: 0xF739,
  28774. nineparen: 0x247C,
  28775. nineperiod: 0x2490,
  28776. ninepersian: 0x06F9,
  28777. nineroman: 0x2178,
  28778. ninesuperior: 0x2079,
  28779. nineteencircle: 0x2472,
  28780. nineteenparen: 0x2486,
  28781. nineteenperiod: 0x249A,
  28782. ninethai: 0x0E59,
  28783. nj: 0x01CC,
  28784. njecyrillic: 0x045A,
  28785. nkatakana: 0x30F3,
  28786. nkatakanahalfwidth: 0xFF9D,
  28787. nlegrightlong: 0x019E,
  28788. nlinebelow: 0x1E49,
  28789. nmonospace: 0xFF4E,
  28790. nmsquare: 0x339A,
  28791. nnabengali: 0x09A3,
  28792. nnadeva: 0x0923,
  28793. nnagujarati: 0x0AA3,
  28794. nnagurmukhi: 0x0A23,
  28795. nnnadeva: 0x0929,
  28796. nohiragana: 0x306E,
  28797. nokatakana: 0x30CE,
  28798. nokatakanahalfwidth: 0xFF89,
  28799. nonbreakingspace: 0x00A0,
  28800. nonenthai: 0x0E13,
  28801. nonuthai: 0x0E19,
  28802. noonarabic: 0x0646,
  28803. noonfinalarabic: 0xFEE6,
  28804. noonghunnaarabic: 0x06BA,
  28805. noonghunnafinalarabic: 0xFB9F,
  28806. nooninitialarabic: 0xFEE7,
  28807. noonjeeminitialarabic: 0xFCD2,
  28808. noonjeemisolatedarabic: 0xFC4B,
  28809. noonmedialarabic: 0xFEE8,
  28810. noonmeeminitialarabic: 0xFCD5,
  28811. noonmeemisolatedarabic: 0xFC4E,
  28812. noonnoonfinalarabic: 0xFC8D,
  28813. notcontains: 0x220C,
  28814. notelement: 0x2209,
  28815. notelementof: 0x2209,
  28816. notequal: 0x2260,
  28817. notgreater: 0x226F,
  28818. notgreaternorequal: 0x2271,
  28819. notgreaternorless: 0x2279,
  28820. notidentical: 0x2262,
  28821. notless: 0x226E,
  28822. notlessnorequal: 0x2270,
  28823. notparallel: 0x2226,
  28824. notprecedes: 0x2280,
  28825. notsubset: 0x2284,
  28826. notsucceeds: 0x2281,
  28827. notsuperset: 0x2285,
  28828. nowarmenian: 0x0576,
  28829. nparen: 0x24A9,
  28830. nssquare: 0x33B1,
  28831. nsuperior: 0x207F,
  28832. ntilde: 0x00F1,
  28833. nu: 0x03BD,
  28834. nuhiragana: 0x306C,
  28835. nukatakana: 0x30CC,
  28836. nukatakanahalfwidth: 0xFF87,
  28837. nuktabengali: 0x09BC,
  28838. nuktadeva: 0x093C,
  28839. nuktagujarati: 0x0ABC,
  28840. nuktagurmukhi: 0x0A3C,
  28841. numbersign: 0x0023,
  28842. numbersignmonospace: 0xFF03,
  28843. numbersignsmall: 0xFE5F,
  28844. numeralsigngreek: 0x0374,
  28845. numeralsignlowergreek: 0x0375,
  28846. numero: 0x2116,
  28847. nun: 0x05E0,
  28848. nundagesh: 0xFB40,
  28849. nundageshhebrew: 0xFB40,
  28850. nunhebrew: 0x05E0,
  28851. nvsquare: 0x33B5,
  28852. nwsquare: 0x33BB,
  28853. nyabengali: 0x099E,
  28854. nyadeva: 0x091E,
  28855. nyagujarati: 0x0A9E,
  28856. nyagurmukhi: 0x0A1E,
  28857. o: 0x006F,
  28858. oacute: 0x00F3,
  28859. oangthai: 0x0E2D,
  28860. obarred: 0x0275,
  28861. obarredcyrillic: 0x04E9,
  28862. obarreddieresiscyrillic: 0x04EB,
  28863. obengali: 0x0993,
  28864. obopomofo: 0x311B,
  28865. obreve: 0x014F,
  28866. ocandradeva: 0x0911,
  28867. ocandragujarati: 0x0A91,
  28868. ocandravowelsigndeva: 0x0949,
  28869. ocandravowelsigngujarati: 0x0AC9,
  28870. ocaron: 0x01D2,
  28871. ocircle: 0x24DE,
  28872. ocircumflex: 0x00F4,
  28873. ocircumflexacute: 0x1ED1,
  28874. ocircumflexdotbelow: 0x1ED9,
  28875. ocircumflexgrave: 0x1ED3,
  28876. ocircumflexhookabove: 0x1ED5,
  28877. ocircumflextilde: 0x1ED7,
  28878. ocyrillic: 0x043E,
  28879. odblacute: 0x0151,
  28880. odblgrave: 0x020D,
  28881. odeva: 0x0913,
  28882. odieresis: 0x00F6,
  28883. odieresiscyrillic: 0x04E7,
  28884. odotbelow: 0x1ECD,
  28885. oe: 0x0153,
  28886. oekorean: 0x315A,
  28887. ogonek: 0x02DB,
  28888. ogonekcmb: 0x0328,
  28889. ograve: 0x00F2,
  28890. ogujarati: 0x0A93,
  28891. oharmenian: 0x0585,
  28892. ohiragana: 0x304A,
  28893. ohookabove: 0x1ECF,
  28894. ohorn: 0x01A1,
  28895. ohornacute: 0x1EDB,
  28896. ohorndotbelow: 0x1EE3,
  28897. ohorngrave: 0x1EDD,
  28898. ohornhookabove: 0x1EDF,
  28899. ohorntilde: 0x1EE1,
  28900. ohungarumlaut: 0x0151,
  28901. oi: 0x01A3,
  28902. oinvertedbreve: 0x020F,
  28903. okatakana: 0x30AA,
  28904. okatakanahalfwidth: 0xFF75,
  28905. okorean: 0x3157,
  28906. olehebrew: 0x05AB,
  28907. omacron: 0x014D,
  28908. omacronacute: 0x1E53,
  28909. omacrongrave: 0x1E51,
  28910. omdeva: 0x0950,
  28911. omega: 0x03C9,
  28912. omega1: 0x03D6,
  28913. omegacyrillic: 0x0461,
  28914. omegalatinclosed: 0x0277,
  28915. omegaroundcyrillic: 0x047B,
  28916. omegatitlocyrillic: 0x047D,
  28917. omegatonos: 0x03CE,
  28918. omgujarati: 0x0AD0,
  28919. omicron: 0x03BF,
  28920. omicrontonos: 0x03CC,
  28921. omonospace: 0xFF4F,
  28922. one: 0x0031,
  28923. onearabic: 0x0661,
  28924. onebengali: 0x09E7,
  28925. onecircle: 0x2460,
  28926. onecircleinversesansserif: 0x278A,
  28927. onedeva: 0x0967,
  28928. onedotenleader: 0x2024,
  28929. oneeighth: 0x215B,
  28930. onefitted: 0xF6DC,
  28931. onegujarati: 0x0AE7,
  28932. onegurmukhi: 0x0A67,
  28933. onehackarabic: 0x0661,
  28934. onehalf: 0x00BD,
  28935. onehangzhou: 0x3021,
  28936. oneideographicparen: 0x3220,
  28937. oneinferior: 0x2081,
  28938. onemonospace: 0xFF11,
  28939. onenumeratorbengali: 0x09F4,
  28940. oneoldstyle: 0xF731,
  28941. oneparen: 0x2474,
  28942. oneperiod: 0x2488,
  28943. onepersian: 0x06F1,
  28944. onequarter: 0x00BC,
  28945. oneroman: 0x2170,
  28946. onesuperior: 0x00B9,
  28947. onethai: 0x0E51,
  28948. onethird: 0x2153,
  28949. oogonek: 0x01EB,
  28950. oogonekmacron: 0x01ED,
  28951. oogurmukhi: 0x0A13,
  28952. oomatragurmukhi: 0x0A4B,
  28953. oopen: 0x0254,
  28954. oparen: 0x24AA,
  28955. openbullet: 0x25E6,
  28956. option: 0x2325,
  28957. ordfeminine: 0x00AA,
  28958. ordmasculine: 0x00BA,
  28959. orthogonal: 0x221F,
  28960. oshortdeva: 0x0912,
  28961. oshortvowelsigndeva: 0x094A,
  28962. oslash: 0x00F8,
  28963. oslashacute: 0x01FF,
  28964. osmallhiragana: 0x3049,
  28965. osmallkatakana: 0x30A9,
  28966. osmallkatakanahalfwidth: 0xFF6B,
  28967. ostrokeacute: 0x01FF,
  28968. osuperior: 0xF6F0,
  28969. otcyrillic: 0x047F,
  28970. otilde: 0x00F5,
  28971. otildeacute: 0x1E4D,
  28972. otildedieresis: 0x1E4F,
  28973. oubopomofo: 0x3121,
  28974. overline: 0x203E,
  28975. overlinecenterline: 0xFE4A,
  28976. overlinecmb: 0x0305,
  28977. overlinedashed: 0xFE49,
  28978. overlinedblwavy: 0xFE4C,
  28979. overlinewavy: 0xFE4B,
  28980. overscore: 0x00AF,
  28981. ovowelsignbengali: 0x09CB,
  28982. ovowelsigndeva: 0x094B,
  28983. ovowelsigngujarati: 0x0ACB,
  28984. p: 0x0070,
  28985. paampssquare: 0x3380,
  28986. paasentosquare: 0x332B,
  28987. pabengali: 0x09AA,
  28988. pacute: 0x1E55,
  28989. padeva: 0x092A,
  28990. pagedown: 0x21DF,
  28991. pageup: 0x21DE,
  28992. pagujarati: 0x0AAA,
  28993. pagurmukhi: 0x0A2A,
  28994. pahiragana: 0x3071,
  28995. paiyannoithai: 0x0E2F,
  28996. pakatakana: 0x30D1,
  28997. palatalizationcyrilliccmb: 0x0484,
  28998. palochkacyrillic: 0x04C0,
  28999. pansioskorean: 0x317F,
  29000. paragraph: 0x00B6,
  29001. parallel: 0x2225,
  29002. parenleft: 0x0028,
  29003. parenleftaltonearabic: 0xFD3E,
  29004. parenleftbt: 0xF8ED,
  29005. parenleftex: 0xF8EC,
  29006. parenleftinferior: 0x208D,
  29007. parenleftmonospace: 0xFF08,
  29008. parenleftsmall: 0xFE59,
  29009. parenleftsuperior: 0x207D,
  29010. parenlefttp: 0xF8EB,
  29011. parenleftvertical: 0xFE35,
  29012. parenright: 0x0029,
  29013. parenrightaltonearabic: 0xFD3F,
  29014. parenrightbt: 0xF8F8,
  29015. parenrightex: 0xF8F7,
  29016. parenrightinferior: 0x208E,
  29017. parenrightmonospace: 0xFF09,
  29018. parenrightsmall: 0xFE5A,
  29019. parenrightsuperior: 0x207E,
  29020. parenrighttp: 0xF8F6,
  29021. parenrightvertical: 0xFE36,
  29022. partialdiff: 0x2202,
  29023. paseqhebrew: 0x05C0,
  29024. pashtahebrew: 0x0599,
  29025. pasquare: 0x33A9,
  29026. patah: 0x05B7,
  29027. patah11: 0x05B7,
  29028. patah1d: 0x05B7,
  29029. patah2a: 0x05B7,
  29030. patahhebrew: 0x05B7,
  29031. patahnarrowhebrew: 0x05B7,
  29032. patahquarterhebrew: 0x05B7,
  29033. patahwidehebrew: 0x05B7,
  29034. pazerhebrew: 0x05A1,
  29035. pbopomofo: 0x3106,
  29036. pcircle: 0x24DF,
  29037. pdotaccent: 0x1E57,
  29038. pe: 0x05E4,
  29039. pecyrillic: 0x043F,
  29040. pedagesh: 0xFB44,
  29041. pedageshhebrew: 0xFB44,
  29042. peezisquare: 0x333B,
  29043. pefinaldageshhebrew: 0xFB43,
  29044. peharabic: 0x067E,
  29045. peharmenian: 0x057A,
  29046. pehebrew: 0x05E4,
  29047. pehfinalarabic: 0xFB57,
  29048. pehinitialarabic: 0xFB58,
  29049. pehiragana: 0x307A,
  29050. pehmedialarabic: 0xFB59,
  29051. pekatakana: 0x30DA,
  29052. pemiddlehookcyrillic: 0x04A7,
  29053. perafehebrew: 0xFB4E,
  29054. percent: 0x0025,
  29055. percentarabic: 0x066A,
  29056. percentmonospace: 0xFF05,
  29057. percentsmall: 0xFE6A,
  29058. period: 0x002E,
  29059. periodarmenian: 0x0589,
  29060. periodcentered: 0x00B7,
  29061. periodhalfwidth: 0xFF61,
  29062. periodinferior: 0xF6E7,
  29063. periodmonospace: 0xFF0E,
  29064. periodsmall: 0xFE52,
  29065. periodsuperior: 0xF6E8,
  29066. perispomenigreekcmb: 0x0342,
  29067. perpendicular: 0x22A5,
  29068. perthousand: 0x2030,
  29069. peseta: 0x20A7,
  29070. pfsquare: 0x338A,
  29071. phabengali: 0x09AB,
  29072. phadeva: 0x092B,
  29073. phagujarati: 0x0AAB,
  29074. phagurmukhi: 0x0A2B,
  29075. phi: 0x03C6,
  29076. phi1: 0x03D5,
  29077. phieuphacirclekorean: 0x327A,
  29078. phieuphaparenkorean: 0x321A,
  29079. phieuphcirclekorean: 0x326C,
  29080. phieuphkorean: 0x314D,
  29081. phieuphparenkorean: 0x320C,
  29082. philatin: 0x0278,
  29083. phinthuthai: 0x0E3A,
  29084. phisymbolgreek: 0x03D5,
  29085. phook: 0x01A5,
  29086. phophanthai: 0x0E1E,
  29087. phophungthai: 0x0E1C,
  29088. phosamphaothai: 0x0E20,
  29089. pi: 0x03C0,
  29090. pieupacirclekorean: 0x3273,
  29091. pieupaparenkorean: 0x3213,
  29092. pieupcieuckorean: 0x3176,
  29093. pieupcirclekorean: 0x3265,
  29094. pieupkiyeokkorean: 0x3172,
  29095. pieupkorean: 0x3142,
  29096. pieupparenkorean: 0x3205,
  29097. pieupsioskiyeokkorean: 0x3174,
  29098. pieupsioskorean: 0x3144,
  29099. pieupsiostikeutkorean: 0x3175,
  29100. pieupthieuthkorean: 0x3177,
  29101. pieuptikeutkorean: 0x3173,
  29102. pihiragana: 0x3074,
  29103. pikatakana: 0x30D4,
  29104. pisymbolgreek: 0x03D6,
  29105. piwrarmenian: 0x0583,
  29106. plus: 0x002B,
  29107. plusbelowcmb: 0x031F,
  29108. pluscircle: 0x2295,
  29109. plusminus: 0x00B1,
  29110. plusmod: 0x02D6,
  29111. plusmonospace: 0xFF0B,
  29112. plussmall: 0xFE62,
  29113. plussuperior: 0x207A,
  29114. pmonospace: 0xFF50,
  29115. pmsquare: 0x33D8,
  29116. pohiragana: 0x307D,
  29117. pointingindexdownwhite: 0x261F,
  29118. pointingindexleftwhite: 0x261C,
  29119. pointingindexrightwhite: 0x261E,
  29120. pointingindexupwhite: 0x261D,
  29121. pokatakana: 0x30DD,
  29122. poplathai: 0x0E1B,
  29123. postalmark: 0x3012,
  29124. postalmarkface: 0x3020,
  29125. pparen: 0x24AB,
  29126. precedes: 0x227A,
  29127. prescription: 0x211E,
  29128. primemod: 0x02B9,
  29129. primereversed: 0x2035,
  29130. product: 0x220F,
  29131. projective: 0x2305,
  29132. prolongedkana: 0x30FC,
  29133. propellor: 0x2318,
  29134. propersubset: 0x2282,
  29135. propersuperset: 0x2283,
  29136. proportion: 0x2237,
  29137. proportional: 0x221D,
  29138. psi: 0x03C8,
  29139. psicyrillic: 0x0471,
  29140. psilipneumatacyrilliccmb: 0x0486,
  29141. pssquare: 0x33B0,
  29142. puhiragana: 0x3077,
  29143. pukatakana: 0x30D7,
  29144. pvsquare: 0x33B4,
  29145. pwsquare: 0x33BA,
  29146. q: 0x0071,
  29147. qadeva: 0x0958,
  29148. qadmahebrew: 0x05A8,
  29149. qafarabic: 0x0642,
  29150. qaffinalarabic: 0xFED6,
  29151. qafinitialarabic: 0xFED7,
  29152. qafmedialarabic: 0xFED8,
  29153. qamats: 0x05B8,
  29154. qamats10: 0x05B8,
  29155. qamats1a: 0x05B8,
  29156. qamats1c: 0x05B8,
  29157. qamats27: 0x05B8,
  29158. qamats29: 0x05B8,
  29159. qamats33: 0x05B8,
  29160. qamatsde: 0x05B8,
  29161. qamatshebrew: 0x05B8,
  29162. qamatsnarrowhebrew: 0x05B8,
  29163. qamatsqatanhebrew: 0x05B8,
  29164. qamatsqatannarrowhebrew: 0x05B8,
  29165. qamatsqatanquarterhebrew: 0x05B8,
  29166. qamatsqatanwidehebrew: 0x05B8,
  29167. qamatsquarterhebrew: 0x05B8,
  29168. qamatswidehebrew: 0x05B8,
  29169. qarneyparahebrew: 0x059F,
  29170. qbopomofo: 0x3111,
  29171. qcircle: 0x24E0,
  29172. qhook: 0x02A0,
  29173. qmonospace: 0xFF51,
  29174. qof: 0x05E7,
  29175. qofdagesh: 0xFB47,
  29176. qofdageshhebrew: 0xFB47,
  29177. qofhebrew: 0x05E7,
  29178. qparen: 0x24AC,
  29179. quarternote: 0x2669,
  29180. qubuts: 0x05BB,
  29181. qubuts18: 0x05BB,
  29182. qubuts25: 0x05BB,
  29183. qubuts31: 0x05BB,
  29184. qubutshebrew: 0x05BB,
  29185. qubutsnarrowhebrew: 0x05BB,
  29186. qubutsquarterhebrew: 0x05BB,
  29187. qubutswidehebrew: 0x05BB,
  29188. question: 0x003F,
  29189. questionarabic: 0x061F,
  29190. questionarmenian: 0x055E,
  29191. questiondown: 0x00BF,
  29192. questiondownsmall: 0xF7BF,
  29193. questiongreek: 0x037E,
  29194. questionmonospace: 0xFF1F,
  29195. questionsmall: 0xF73F,
  29196. quotedbl: 0x0022,
  29197. quotedblbase: 0x201E,
  29198. quotedblleft: 0x201C,
  29199. quotedblmonospace: 0xFF02,
  29200. quotedblprime: 0x301E,
  29201. quotedblprimereversed: 0x301D,
  29202. quotedblright: 0x201D,
  29203. quoteleft: 0x2018,
  29204. quoteleftreversed: 0x201B,
  29205. quotereversed: 0x201B,
  29206. quoteright: 0x2019,
  29207. quoterightn: 0x0149,
  29208. quotesinglbase: 0x201A,
  29209. quotesingle: 0x0027,
  29210. quotesinglemonospace: 0xFF07,
  29211. r: 0x0072,
  29212. raarmenian: 0x057C,
  29213. rabengali: 0x09B0,
  29214. racute: 0x0155,
  29215. radeva: 0x0930,
  29216. radical: 0x221A,
  29217. radicalex: 0xF8E5,
  29218. radoverssquare: 0x33AE,
  29219. radoverssquaredsquare: 0x33AF,
  29220. radsquare: 0x33AD,
  29221. rafe: 0x05BF,
  29222. rafehebrew: 0x05BF,
  29223. ragujarati: 0x0AB0,
  29224. ragurmukhi: 0x0A30,
  29225. rahiragana: 0x3089,
  29226. rakatakana: 0x30E9,
  29227. rakatakanahalfwidth: 0xFF97,
  29228. ralowerdiagonalbengali: 0x09F1,
  29229. ramiddlediagonalbengali: 0x09F0,
  29230. ramshorn: 0x0264,
  29231. ratio: 0x2236,
  29232. rbopomofo: 0x3116,
  29233. rcaron: 0x0159,
  29234. rcedilla: 0x0157,
  29235. rcircle: 0x24E1,
  29236. rcommaaccent: 0x0157,
  29237. rdblgrave: 0x0211,
  29238. rdotaccent: 0x1E59,
  29239. rdotbelow: 0x1E5B,
  29240. rdotbelowmacron: 0x1E5D,
  29241. referencemark: 0x203B,
  29242. reflexsubset: 0x2286,
  29243. reflexsuperset: 0x2287,
  29244. registered: 0x00AE,
  29245. registersans: 0xF8E8,
  29246. registerserif: 0xF6DA,
  29247. reharabic: 0x0631,
  29248. reharmenian: 0x0580,
  29249. rehfinalarabic: 0xFEAE,
  29250. rehiragana: 0x308C,
  29251. rekatakana: 0x30EC,
  29252. rekatakanahalfwidth: 0xFF9A,
  29253. resh: 0x05E8,
  29254. reshdageshhebrew: 0xFB48,
  29255. reshhebrew: 0x05E8,
  29256. reversedtilde: 0x223D,
  29257. reviahebrew: 0x0597,
  29258. reviamugrashhebrew: 0x0597,
  29259. revlogicalnot: 0x2310,
  29260. rfishhook: 0x027E,
  29261. rfishhookreversed: 0x027F,
  29262. rhabengali: 0x09DD,
  29263. rhadeva: 0x095D,
  29264. rho: 0x03C1,
  29265. rhook: 0x027D,
  29266. rhookturned: 0x027B,
  29267. rhookturnedsuperior: 0x02B5,
  29268. rhosymbolgreek: 0x03F1,
  29269. rhotichookmod: 0x02DE,
  29270. rieulacirclekorean: 0x3271,
  29271. rieulaparenkorean: 0x3211,
  29272. rieulcirclekorean: 0x3263,
  29273. rieulhieuhkorean: 0x3140,
  29274. rieulkiyeokkorean: 0x313A,
  29275. rieulkiyeoksioskorean: 0x3169,
  29276. rieulkorean: 0x3139,
  29277. rieulmieumkorean: 0x313B,
  29278. rieulpansioskorean: 0x316C,
  29279. rieulparenkorean: 0x3203,
  29280. rieulphieuphkorean: 0x313F,
  29281. rieulpieupkorean: 0x313C,
  29282. rieulpieupsioskorean: 0x316B,
  29283. rieulsioskorean: 0x313D,
  29284. rieulthieuthkorean: 0x313E,
  29285. rieultikeutkorean: 0x316A,
  29286. rieulyeorinhieuhkorean: 0x316D,
  29287. rightangle: 0x221F,
  29288. righttackbelowcmb: 0x0319,
  29289. righttriangle: 0x22BF,
  29290. rihiragana: 0x308A,
  29291. rikatakana: 0x30EA,
  29292. rikatakanahalfwidth: 0xFF98,
  29293. ring: 0x02DA,
  29294. ringbelowcmb: 0x0325,
  29295. ringcmb: 0x030A,
  29296. ringhalfleft: 0x02BF,
  29297. ringhalfleftarmenian: 0x0559,
  29298. ringhalfleftbelowcmb: 0x031C,
  29299. ringhalfleftcentered: 0x02D3,
  29300. ringhalfright: 0x02BE,
  29301. ringhalfrightbelowcmb: 0x0339,
  29302. ringhalfrightcentered: 0x02D2,
  29303. rinvertedbreve: 0x0213,
  29304. rittorusquare: 0x3351,
  29305. rlinebelow: 0x1E5F,
  29306. rlongleg: 0x027C,
  29307. rlonglegturned: 0x027A,
  29308. rmonospace: 0xFF52,
  29309. rohiragana: 0x308D,
  29310. rokatakana: 0x30ED,
  29311. rokatakanahalfwidth: 0xFF9B,
  29312. roruathai: 0x0E23,
  29313. rparen: 0x24AD,
  29314. rrabengali: 0x09DC,
  29315. rradeva: 0x0931,
  29316. rragurmukhi: 0x0A5C,
  29317. rreharabic: 0x0691,
  29318. rrehfinalarabic: 0xFB8D,
  29319. rrvocalicbengali: 0x09E0,
  29320. rrvocalicdeva: 0x0960,
  29321. rrvocalicgujarati: 0x0AE0,
  29322. rrvocalicvowelsignbengali: 0x09C4,
  29323. rrvocalicvowelsigndeva: 0x0944,
  29324. rrvocalicvowelsigngujarati: 0x0AC4,
  29325. rsuperior: 0xF6F1,
  29326. rtblock: 0x2590,
  29327. rturned: 0x0279,
  29328. rturnedsuperior: 0x02B4,
  29329. ruhiragana: 0x308B,
  29330. rukatakana: 0x30EB,
  29331. rukatakanahalfwidth: 0xFF99,
  29332. rupeemarkbengali: 0x09F2,
  29333. rupeesignbengali: 0x09F3,
  29334. rupiah: 0xF6DD,
  29335. ruthai: 0x0E24,
  29336. rvocalicbengali: 0x098B,
  29337. rvocalicdeva: 0x090B,
  29338. rvocalicgujarati: 0x0A8B,
  29339. rvocalicvowelsignbengali: 0x09C3,
  29340. rvocalicvowelsigndeva: 0x0943,
  29341. rvocalicvowelsigngujarati: 0x0AC3,
  29342. s: 0x0073,
  29343. sabengali: 0x09B8,
  29344. sacute: 0x015B,
  29345. sacutedotaccent: 0x1E65,
  29346. sadarabic: 0x0635,
  29347. sadeva: 0x0938,
  29348. sadfinalarabic: 0xFEBA,
  29349. sadinitialarabic: 0xFEBB,
  29350. sadmedialarabic: 0xFEBC,
  29351. sagujarati: 0x0AB8,
  29352. sagurmukhi: 0x0A38,
  29353. sahiragana: 0x3055,
  29354. sakatakana: 0x30B5,
  29355. sakatakanahalfwidth: 0xFF7B,
  29356. sallallahoualayhewasallamarabic: 0xFDFA,
  29357. samekh: 0x05E1,
  29358. samekhdagesh: 0xFB41,
  29359. samekhdageshhebrew: 0xFB41,
  29360. samekhhebrew: 0x05E1,
  29361. saraaathai: 0x0E32,
  29362. saraaethai: 0x0E41,
  29363. saraaimaimalaithai: 0x0E44,
  29364. saraaimaimuanthai: 0x0E43,
  29365. saraamthai: 0x0E33,
  29366. saraathai: 0x0E30,
  29367. saraethai: 0x0E40,
  29368. saraiileftthai: 0xF886,
  29369. saraiithai: 0x0E35,
  29370. saraileftthai: 0xF885,
  29371. saraithai: 0x0E34,
  29372. saraothai: 0x0E42,
  29373. saraueeleftthai: 0xF888,
  29374. saraueethai: 0x0E37,
  29375. saraueleftthai: 0xF887,
  29376. sarauethai: 0x0E36,
  29377. sarauthai: 0x0E38,
  29378. sarauuthai: 0x0E39,
  29379. sbopomofo: 0x3119,
  29380. scaron: 0x0161,
  29381. scarondotaccent: 0x1E67,
  29382. scedilla: 0x015F,
  29383. schwa: 0x0259,
  29384. schwacyrillic: 0x04D9,
  29385. schwadieresiscyrillic: 0x04DB,
  29386. schwahook: 0x025A,
  29387. scircle: 0x24E2,
  29388. scircumflex: 0x015D,
  29389. scommaaccent: 0x0219,
  29390. sdotaccent: 0x1E61,
  29391. sdotbelow: 0x1E63,
  29392. sdotbelowdotaccent: 0x1E69,
  29393. seagullbelowcmb: 0x033C,
  29394. second: 0x2033,
  29395. secondtonechinese: 0x02CA,
  29396. section: 0x00A7,
  29397. seenarabic: 0x0633,
  29398. seenfinalarabic: 0xFEB2,
  29399. seeninitialarabic: 0xFEB3,
  29400. seenmedialarabic: 0xFEB4,
  29401. segol: 0x05B6,
  29402. segol13: 0x05B6,
  29403. segol1f: 0x05B6,
  29404. segol2c: 0x05B6,
  29405. segolhebrew: 0x05B6,
  29406. segolnarrowhebrew: 0x05B6,
  29407. segolquarterhebrew: 0x05B6,
  29408. segoltahebrew: 0x0592,
  29409. segolwidehebrew: 0x05B6,
  29410. seharmenian: 0x057D,
  29411. sehiragana: 0x305B,
  29412. sekatakana: 0x30BB,
  29413. sekatakanahalfwidth: 0xFF7E,
  29414. semicolon: 0x003B,
  29415. semicolonarabic: 0x061B,
  29416. semicolonmonospace: 0xFF1B,
  29417. semicolonsmall: 0xFE54,
  29418. semivoicedmarkkana: 0x309C,
  29419. semivoicedmarkkanahalfwidth: 0xFF9F,
  29420. sentisquare: 0x3322,
  29421. sentosquare: 0x3323,
  29422. seven: 0x0037,
  29423. sevenarabic: 0x0667,
  29424. sevenbengali: 0x09ED,
  29425. sevencircle: 0x2466,
  29426. sevencircleinversesansserif: 0x2790,
  29427. sevendeva: 0x096D,
  29428. seveneighths: 0x215E,
  29429. sevengujarati: 0x0AED,
  29430. sevengurmukhi: 0x0A6D,
  29431. sevenhackarabic: 0x0667,
  29432. sevenhangzhou: 0x3027,
  29433. sevenideographicparen: 0x3226,
  29434. seveninferior: 0x2087,
  29435. sevenmonospace: 0xFF17,
  29436. sevenoldstyle: 0xF737,
  29437. sevenparen: 0x247A,
  29438. sevenperiod: 0x248E,
  29439. sevenpersian: 0x06F7,
  29440. sevenroman: 0x2176,
  29441. sevensuperior: 0x2077,
  29442. seventeencircle: 0x2470,
  29443. seventeenparen: 0x2484,
  29444. seventeenperiod: 0x2498,
  29445. seventhai: 0x0E57,
  29446. sfthyphen: 0x00AD,
  29447. shaarmenian: 0x0577,
  29448. shabengali: 0x09B6,
  29449. shacyrillic: 0x0448,
  29450. shaddaarabic: 0x0651,
  29451. shaddadammaarabic: 0xFC61,
  29452. shaddadammatanarabic: 0xFC5E,
  29453. shaddafathaarabic: 0xFC60,
  29454. shaddakasraarabic: 0xFC62,
  29455. shaddakasratanarabic: 0xFC5F,
  29456. shade: 0x2592,
  29457. shadedark: 0x2593,
  29458. shadelight: 0x2591,
  29459. shademedium: 0x2592,
  29460. shadeva: 0x0936,
  29461. shagujarati: 0x0AB6,
  29462. shagurmukhi: 0x0A36,
  29463. shalshelethebrew: 0x0593,
  29464. shbopomofo: 0x3115,
  29465. shchacyrillic: 0x0449,
  29466. sheenarabic: 0x0634,
  29467. sheenfinalarabic: 0xFEB6,
  29468. sheeninitialarabic: 0xFEB7,
  29469. sheenmedialarabic: 0xFEB8,
  29470. sheicoptic: 0x03E3,
  29471. sheqel: 0x20AA,
  29472. sheqelhebrew: 0x20AA,
  29473. sheva: 0x05B0,
  29474. sheva115: 0x05B0,
  29475. sheva15: 0x05B0,
  29476. sheva22: 0x05B0,
  29477. sheva2e: 0x05B0,
  29478. shevahebrew: 0x05B0,
  29479. shevanarrowhebrew: 0x05B0,
  29480. shevaquarterhebrew: 0x05B0,
  29481. shevawidehebrew: 0x05B0,
  29482. shhacyrillic: 0x04BB,
  29483. shimacoptic: 0x03ED,
  29484. shin: 0x05E9,
  29485. shindagesh: 0xFB49,
  29486. shindageshhebrew: 0xFB49,
  29487. shindageshshindot: 0xFB2C,
  29488. shindageshshindothebrew: 0xFB2C,
  29489. shindageshsindot: 0xFB2D,
  29490. shindageshsindothebrew: 0xFB2D,
  29491. shindothebrew: 0x05C1,
  29492. shinhebrew: 0x05E9,
  29493. shinshindot: 0xFB2A,
  29494. shinshindothebrew: 0xFB2A,
  29495. shinsindot: 0xFB2B,
  29496. shinsindothebrew: 0xFB2B,
  29497. shook: 0x0282,
  29498. sigma: 0x03C3,
  29499. sigma1: 0x03C2,
  29500. sigmafinal: 0x03C2,
  29501. sigmalunatesymbolgreek: 0x03F2,
  29502. sihiragana: 0x3057,
  29503. sikatakana: 0x30B7,
  29504. sikatakanahalfwidth: 0xFF7C,
  29505. siluqhebrew: 0x05BD,
  29506. siluqlefthebrew: 0x05BD,
  29507. similar: 0x223C,
  29508. sindothebrew: 0x05C2,
  29509. siosacirclekorean: 0x3274,
  29510. siosaparenkorean: 0x3214,
  29511. sioscieuckorean: 0x317E,
  29512. sioscirclekorean: 0x3266,
  29513. sioskiyeokkorean: 0x317A,
  29514. sioskorean: 0x3145,
  29515. siosnieunkorean: 0x317B,
  29516. siosparenkorean: 0x3206,
  29517. siospieupkorean: 0x317D,
  29518. siostikeutkorean: 0x317C,
  29519. six: 0x0036,
  29520. sixarabic: 0x0666,
  29521. sixbengali: 0x09EC,
  29522. sixcircle: 0x2465,
  29523. sixcircleinversesansserif: 0x278F,
  29524. sixdeva: 0x096C,
  29525. sixgujarati: 0x0AEC,
  29526. sixgurmukhi: 0x0A6C,
  29527. sixhackarabic: 0x0666,
  29528. sixhangzhou: 0x3026,
  29529. sixideographicparen: 0x3225,
  29530. sixinferior: 0x2086,
  29531. sixmonospace: 0xFF16,
  29532. sixoldstyle: 0xF736,
  29533. sixparen: 0x2479,
  29534. sixperiod: 0x248D,
  29535. sixpersian: 0x06F6,
  29536. sixroman: 0x2175,
  29537. sixsuperior: 0x2076,
  29538. sixteencircle: 0x246F,
  29539. sixteencurrencydenominatorbengali: 0x09F9,
  29540. sixteenparen: 0x2483,
  29541. sixteenperiod: 0x2497,
  29542. sixthai: 0x0E56,
  29543. slash: 0x002F,
  29544. slashmonospace: 0xFF0F,
  29545. slong: 0x017F,
  29546. slongdotaccent: 0x1E9B,
  29547. smileface: 0x263A,
  29548. smonospace: 0xFF53,
  29549. sofpasuqhebrew: 0x05C3,
  29550. softhyphen: 0x00AD,
  29551. softsigncyrillic: 0x044C,
  29552. sohiragana: 0x305D,
  29553. sokatakana: 0x30BD,
  29554. sokatakanahalfwidth: 0xFF7F,
  29555. soliduslongoverlaycmb: 0x0338,
  29556. solidusshortoverlaycmb: 0x0337,
  29557. sorusithai: 0x0E29,
  29558. sosalathai: 0x0E28,
  29559. sosothai: 0x0E0B,
  29560. sosuathai: 0x0E2A,
  29561. space: 0x0020,
  29562. spacehackarabic: 0x0020,
  29563. spade: 0x2660,
  29564. spadesuitblack: 0x2660,
  29565. spadesuitwhite: 0x2664,
  29566. sparen: 0x24AE,
  29567. squarebelowcmb: 0x033B,
  29568. squarecc: 0x33C4,
  29569. squarecm: 0x339D,
  29570. squarediagonalcrosshatchfill: 0x25A9,
  29571. squarehorizontalfill: 0x25A4,
  29572. squarekg: 0x338F,
  29573. squarekm: 0x339E,
  29574. squarekmcapital: 0x33CE,
  29575. squareln: 0x33D1,
  29576. squarelog: 0x33D2,
  29577. squaremg: 0x338E,
  29578. squaremil: 0x33D5,
  29579. squaremm: 0x339C,
  29580. squaremsquared: 0x33A1,
  29581. squareorthogonalcrosshatchfill: 0x25A6,
  29582. squareupperlefttolowerrightfill: 0x25A7,
  29583. squareupperrighttolowerleftfill: 0x25A8,
  29584. squareverticalfill: 0x25A5,
  29585. squarewhitewithsmallblack: 0x25A3,
  29586. srsquare: 0x33DB,
  29587. ssabengali: 0x09B7,
  29588. ssadeva: 0x0937,
  29589. ssagujarati: 0x0AB7,
  29590. ssangcieuckorean: 0x3149,
  29591. ssanghieuhkorean: 0x3185,
  29592. ssangieungkorean: 0x3180,
  29593. ssangkiyeokkorean: 0x3132,
  29594. ssangnieunkorean: 0x3165,
  29595. ssangpieupkorean: 0x3143,
  29596. ssangsioskorean: 0x3146,
  29597. ssangtikeutkorean: 0x3138,
  29598. ssuperior: 0xF6F2,
  29599. sterling: 0x00A3,
  29600. sterlingmonospace: 0xFFE1,
  29601. strokelongoverlaycmb: 0x0336,
  29602. strokeshortoverlaycmb: 0x0335,
  29603. subset: 0x2282,
  29604. subsetnotequal: 0x228A,
  29605. subsetorequal: 0x2286,
  29606. succeeds: 0x227B,
  29607. suchthat: 0x220B,
  29608. suhiragana: 0x3059,
  29609. sukatakana: 0x30B9,
  29610. sukatakanahalfwidth: 0xFF7D,
  29611. sukunarabic: 0x0652,
  29612. summation: 0x2211,
  29613. sun: 0x263C,
  29614. superset: 0x2283,
  29615. supersetnotequal: 0x228B,
  29616. supersetorequal: 0x2287,
  29617. svsquare: 0x33DC,
  29618. syouwaerasquare: 0x337C,
  29619. t: 0x0074,
  29620. tabengali: 0x09A4,
  29621. tackdown: 0x22A4,
  29622. tackleft: 0x22A3,
  29623. tadeva: 0x0924,
  29624. tagujarati: 0x0AA4,
  29625. tagurmukhi: 0x0A24,
  29626. taharabic: 0x0637,
  29627. tahfinalarabic: 0xFEC2,
  29628. tahinitialarabic: 0xFEC3,
  29629. tahiragana: 0x305F,
  29630. tahmedialarabic: 0xFEC4,
  29631. taisyouerasquare: 0x337D,
  29632. takatakana: 0x30BF,
  29633. takatakanahalfwidth: 0xFF80,
  29634. tatweelarabic: 0x0640,
  29635. tau: 0x03C4,
  29636. tav: 0x05EA,
  29637. tavdages: 0xFB4A,
  29638. tavdagesh: 0xFB4A,
  29639. tavdageshhebrew: 0xFB4A,
  29640. tavhebrew: 0x05EA,
  29641. tbar: 0x0167,
  29642. tbopomofo: 0x310A,
  29643. tcaron: 0x0165,
  29644. tccurl: 0x02A8,
  29645. tcedilla: 0x0163,
  29646. tcheharabic: 0x0686,
  29647. tchehfinalarabic: 0xFB7B,
  29648. tchehinitialarabic: 0xFB7C,
  29649. tchehmedialarabic: 0xFB7D,
  29650. tcircle: 0x24E3,
  29651. tcircumflexbelow: 0x1E71,
  29652. tcommaaccent: 0x0163,
  29653. tdieresis: 0x1E97,
  29654. tdotaccent: 0x1E6B,
  29655. tdotbelow: 0x1E6D,
  29656. tecyrillic: 0x0442,
  29657. tedescendercyrillic: 0x04AD,
  29658. teharabic: 0x062A,
  29659. tehfinalarabic: 0xFE96,
  29660. tehhahinitialarabic: 0xFCA2,
  29661. tehhahisolatedarabic: 0xFC0C,
  29662. tehinitialarabic: 0xFE97,
  29663. tehiragana: 0x3066,
  29664. tehjeeminitialarabic: 0xFCA1,
  29665. tehjeemisolatedarabic: 0xFC0B,
  29666. tehmarbutaarabic: 0x0629,
  29667. tehmarbutafinalarabic: 0xFE94,
  29668. tehmedialarabic: 0xFE98,
  29669. tehmeeminitialarabic: 0xFCA4,
  29670. tehmeemisolatedarabic: 0xFC0E,
  29671. tehnoonfinalarabic: 0xFC73,
  29672. tekatakana: 0x30C6,
  29673. tekatakanahalfwidth: 0xFF83,
  29674. telephone: 0x2121,
  29675. telephoneblack: 0x260E,
  29676. telishagedolahebrew: 0x05A0,
  29677. telishaqetanahebrew: 0x05A9,
  29678. tencircle: 0x2469,
  29679. tenideographicparen: 0x3229,
  29680. tenparen: 0x247D,
  29681. tenperiod: 0x2491,
  29682. tenroman: 0x2179,
  29683. tesh: 0x02A7,
  29684. tet: 0x05D8,
  29685. tetdagesh: 0xFB38,
  29686. tetdageshhebrew: 0xFB38,
  29687. tethebrew: 0x05D8,
  29688. tetsecyrillic: 0x04B5,
  29689. tevirhebrew: 0x059B,
  29690. tevirlefthebrew: 0x059B,
  29691. thabengali: 0x09A5,
  29692. thadeva: 0x0925,
  29693. thagujarati: 0x0AA5,
  29694. thagurmukhi: 0x0A25,
  29695. thalarabic: 0x0630,
  29696. thalfinalarabic: 0xFEAC,
  29697. thanthakhatlowleftthai: 0xF898,
  29698. thanthakhatlowrightthai: 0xF897,
  29699. thanthakhatthai: 0x0E4C,
  29700. thanthakhatupperleftthai: 0xF896,
  29701. theharabic: 0x062B,
  29702. thehfinalarabic: 0xFE9A,
  29703. thehinitialarabic: 0xFE9B,
  29704. thehmedialarabic: 0xFE9C,
  29705. thereexists: 0x2203,
  29706. therefore: 0x2234,
  29707. theta: 0x03B8,
  29708. theta1: 0x03D1,
  29709. thetasymbolgreek: 0x03D1,
  29710. thieuthacirclekorean: 0x3279,
  29711. thieuthaparenkorean: 0x3219,
  29712. thieuthcirclekorean: 0x326B,
  29713. thieuthkorean: 0x314C,
  29714. thieuthparenkorean: 0x320B,
  29715. thirteencircle: 0x246C,
  29716. thirteenparen: 0x2480,
  29717. thirteenperiod: 0x2494,
  29718. thonangmonthothai: 0x0E11,
  29719. thook: 0x01AD,
  29720. thophuthaothai: 0x0E12,
  29721. thorn: 0x00FE,
  29722. thothahanthai: 0x0E17,
  29723. thothanthai: 0x0E10,
  29724. thothongthai: 0x0E18,
  29725. thothungthai: 0x0E16,
  29726. thousandcyrillic: 0x0482,
  29727. thousandsseparatorarabic: 0x066C,
  29728. thousandsseparatorpersian: 0x066C,
  29729. three: 0x0033,
  29730. threearabic: 0x0663,
  29731. threebengali: 0x09E9,
  29732. threecircle: 0x2462,
  29733. threecircleinversesansserif: 0x278C,
  29734. threedeva: 0x0969,
  29735. threeeighths: 0x215C,
  29736. threegujarati: 0x0AE9,
  29737. threegurmukhi: 0x0A69,
  29738. threehackarabic: 0x0663,
  29739. threehangzhou: 0x3023,
  29740. threeideographicparen: 0x3222,
  29741. threeinferior: 0x2083,
  29742. threemonospace: 0xFF13,
  29743. threenumeratorbengali: 0x09F6,
  29744. threeoldstyle: 0xF733,
  29745. threeparen: 0x2476,
  29746. threeperiod: 0x248A,
  29747. threepersian: 0x06F3,
  29748. threequarters: 0x00BE,
  29749. threequartersemdash: 0xF6DE,
  29750. threeroman: 0x2172,
  29751. threesuperior: 0x00B3,
  29752. threethai: 0x0E53,
  29753. thzsquare: 0x3394,
  29754. tihiragana: 0x3061,
  29755. tikatakana: 0x30C1,
  29756. tikatakanahalfwidth: 0xFF81,
  29757. tikeutacirclekorean: 0x3270,
  29758. tikeutaparenkorean: 0x3210,
  29759. tikeutcirclekorean: 0x3262,
  29760. tikeutkorean: 0x3137,
  29761. tikeutparenkorean: 0x3202,
  29762. tilde: 0x02DC,
  29763. tildebelowcmb: 0x0330,
  29764. tildecmb: 0x0303,
  29765. tildecomb: 0x0303,
  29766. tildedoublecmb: 0x0360,
  29767. tildeoperator: 0x223C,
  29768. tildeoverlaycmb: 0x0334,
  29769. tildeverticalcmb: 0x033E,
  29770. timescircle: 0x2297,
  29771. tipehahebrew: 0x0596,
  29772. tipehalefthebrew: 0x0596,
  29773. tippigurmukhi: 0x0A70,
  29774. titlocyrilliccmb: 0x0483,
  29775. tiwnarmenian: 0x057F,
  29776. tlinebelow: 0x1E6F,
  29777. tmonospace: 0xFF54,
  29778. toarmenian: 0x0569,
  29779. tohiragana: 0x3068,
  29780. tokatakana: 0x30C8,
  29781. tokatakanahalfwidth: 0xFF84,
  29782. tonebarextrahighmod: 0x02E5,
  29783. tonebarextralowmod: 0x02E9,
  29784. tonebarhighmod: 0x02E6,
  29785. tonebarlowmod: 0x02E8,
  29786. tonebarmidmod: 0x02E7,
  29787. tonefive: 0x01BD,
  29788. tonesix: 0x0185,
  29789. tonetwo: 0x01A8,
  29790. tonos: 0x0384,
  29791. tonsquare: 0x3327,
  29792. topatakthai: 0x0E0F,
  29793. tortoiseshellbracketleft: 0x3014,
  29794. tortoiseshellbracketleftsmall: 0xFE5D,
  29795. tortoiseshellbracketleftvertical: 0xFE39,
  29796. tortoiseshellbracketright: 0x3015,
  29797. tortoiseshellbracketrightsmall: 0xFE5E,
  29798. tortoiseshellbracketrightvertical: 0xFE3A,
  29799. totaothai: 0x0E15,
  29800. tpalatalhook: 0x01AB,
  29801. tparen: 0x24AF,
  29802. trademark: 0x2122,
  29803. trademarksans: 0xF8EA,
  29804. trademarkserif: 0xF6DB,
  29805. tretroflexhook: 0x0288,
  29806. triagdn: 0x25BC,
  29807. triaglf: 0x25C4,
  29808. triagrt: 0x25BA,
  29809. triagup: 0x25B2,
  29810. ts: 0x02A6,
  29811. tsadi: 0x05E6,
  29812. tsadidagesh: 0xFB46,
  29813. tsadidageshhebrew: 0xFB46,
  29814. tsadihebrew: 0x05E6,
  29815. tsecyrillic: 0x0446,
  29816. tsere: 0x05B5,
  29817. tsere12: 0x05B5,
  29818. tsere1e: 0x05B5,
  29819. tsere2b: 0x05B5,
  29820. tserehebrew: 0x05B5,
  29821. tserenarrowhebrew: 0x05B5,
  29822. tserequarterhebrew: 0x05B5,
  29823. tserewidehebrew: 0x05B5,
  29824. tshecyrillic: 0x045B,
  29825. tsuperior: 0xF6F3,
  29826. ttabengali: 0x099F,
  29827. ttadeva: 0x091F,
  29828. ttagujarati: 0x0A9F,
  29829. ttagurmukhi: 0x0A1F,
  29830. tteharabic: 0x0679,
  29831. ttehfinalarabic: 0xFB67,
  29832. ttehinitialarabic: 0xFB68,
  29833. ttehmedialarabic: 0xFB69,
  29834. tthabengali: 0x09A0,
  29835. tthadeva: 0x0920,
  29836. tthagujarati: 0x0AA0,
  29837. tthagurmukhi: 0x0A20,
  29838. tturned: 0x0287,
  29839. tuhiragana: 0x3064,
  29840. tukatakana: 0x30C4,
  29841. tukatakanahalfwidth: 0xFF82,
  29842. tusmallhiragana: 0x3063,
  29843. tusmallkatakana: 0x30C3,
  29844. tusmallkatakanahalfwidth: 0xFF6F,
  29845. twelvecircle: 0x246B,
  29846. twelveparen: 0x247F,
  29847. twelveperiod: 0x2493,
  29848. twelveroman: 0x217B,
  29849. twentycircle: 0x2473,
  29850. twentyhangzhou: 0x5344,
  29851. twentyparen: 0x2487,
  29852. twentyperiod: 0x249B,
  29853. two: 0x0032,
  29854. twoarabic: 0x0662,
  29855. twobengali: 0x09E8,
  29856. twocircle: 0x2461,
  29857. twocircleinversesansserif: 0x278B,
  29858. twodeva: 0x0968,
  29859. twodotenleader: 0x2025,
  29860. twodotleader: 0x2025,
  29861. twodotleadervertical: 0xFE30,
  29862. twogujarati: 0x0AE8,
  29863. twogurmukhi: 0x0A68,
  29864. twohackarabic: 0x0662,
  29865. twohangzhou: 0x3022,
  29866. twoideographicparen: 0x3221,
  29867. twoinferior: 0x2082,
  29868. twomonospace: 0xFF12,
  29869. twonumeratorbengali: 0x09F5,
  29870. twooldstyle: 0xF732,
  29871. twoparen: 0x2475,
  29872. twoperiod: 0x2489,
  29873. twopersian: 0x06F2,
  29874. tworoman: 0x2171,
  29875. twostroke: 0x01BB,
  29876. twosuperior: 0x00B2,
  29877. twothai: 0x0E52,
  29878. twothirds: 0x2154,
  29879. u: 0x0075,
  29880. uacute: 0x00FA,
  29881. ubar: 0x0289,
  29882. ubengali: 0x0989,
  29883. ubopomofo: 0x3128,
  29884. ubreve: 0x016D,
  29885. ucaron: 0x01D4,
  29886. ucircle: 0x24E4,
  29887. ucircumflex: 0x00FB,
  29888. ucircumflexbelow: 0x1E77,
  29889. ucyrillic: 0x0443,
  29890. udattadeva: 0x0951,
  29891. udblacute: 0x0171,
  29892. udblgrave: 0x0215,
  29893. udeva: 0x0909,
  29894. udieresis: 0x00FC,
  29895. udieresisacute: 0x01D8,
  29896. udieresisbelow: 0x1E73,
  29897. udieresiscaron: 0x01DA,
  29898. udieresiscyrillic: 0x04F1,
  29899. udieresisgrave: 0x01DC,
  29900. udieresismacron: 0x01D6,
  29901. udotbelow: 0x1EE5,
  29902. ugrave: 0x00F9,
  29903. ugujarati: 0x0A89,
  29904. ugurmukhi: 0x0A09,
  29905. uhiragana: 0x3046,
  29906. uhookabove: 0x1EE7,
  29907. uhorn: 0x01B0,
  29908. uhornacute: 0x1EE9,
  29909. uhorndotbelow: 0x1EF1,
  29910. uhorngrave: 0x1EEB,
  29911. uhornhookabove: 0x1EED,
  29912. uhorntilde: 0x1EEF,
  29913. uhungarumlaut: 0x0171,
  29914. uhungarumlautcyrillic: 0x04F3,
  29915. uinvertedbreve: 0x0217,
  29916. ukatakana: 0x30A6,
  29917. ukatakanahalfwidth: 0xFF73,
  29918. ukcyrillic: 0x0479,
  29919. ukorean: 0x315C,
  29920. umacron: 0x016B,
  29921. umacroncyrillic: 0x04EF,
  29922. umacrondieresis: 0x1E7B,
  29923. umatragurmukhi: 0x0A41,
  29924. umonospace: 0xFF55,
  29925. underscore: 0x005F,
  29926. underscoredbl: 0x2017,
  29927. underscoremonospace: 0xFF3F,
  29928. underscorevertical: 0xFE33,
  29929. underscorewavy: 0xFE4F,
  29930. union: 0x222A,
  29931. universal: 0x2200,
  29932. uogonek: 0x0173,
  29933. uparen: 0x24B0,
  29934. upblock: 0x2580,
  29935. upperdothebrew: 0x05C4,
  29936. upsilon: 0x03C5,
  29937. upsilondieresis: 0x03CB,
  29938. upsilondieresistonos: 0x03B0,
  29939. upsilonlatin: 0x028A,
  29940. upsilontonos: 0x03CD,
  29941. uptackbelowcmb: 0x031D,
  29942. uptackmod: 0x02D4,
  29943. uragurmukhi: 0x0A73,
  29944. uring: 0x016F,
  29945. ushortcyrillic: 0x045E,
  29946. usmallhiragana: 0x3045,
  29947. usmallkatakana: 0x30A5,
  29948. usmallkatakanahalfwidth: 0xFF69,
  29949. ustraightcyrillic: 0x04AF,
  29950. ustraightstrokecyrillic: 0x04B1,
  29951. utilde: 0x0169,
  29952. utildeacute: 0x1E79,
  29953. utildebelow: 0x1E75,
  29954. uubengali: 0x098A,
  29955. uudeva: 0x090A,
  29956. uugujarati: 0x0A8A,
  29957. uugurmukhi: 0x0A0A,
  29958. uumatragurmukhi: 0x0A42,
  29959. uuvowelsignbengali: 0x09C2,
  29960. uuvowelsigndeva: 0x0942,
  29961. uuvowelsigngujarati: 0x0AC2,
  29962. uvowelsignbengali: 0x09C1,
  29963. uvowelsigndeva: 0x0941,
  29964. uvowelsigngujarati: 0x0AC1,
  29965. v: 0x0076,
  29966. vadeva: 0x0935,
  29967. vagujarati: 0x0AB5,
  29968. vagurmukhi: 0x0A35,
  29969. vakatakana: 0x30F7,
  29970. vav: 0x05D5,
  29971. vavdagesh: 0xFB35,
  29972. vavdagesh65: 0xFB35,
  29973. vavdageshhebrew: 0xFB35,
  29974. vavhebrew: 0x05D5,
  29975. vavholam: 0xFB4B,
  29976. vavholamhebrew: 0xFB4B,
  29977. vavvavhebrew: 0x05F0,
  29978. vavyodhebrew: 0x05F1,
  29979. vcircle: 0x24E5,
  29980. vdotbelow: 0x1E7F,
  29981. vecyrillic: 0x0432,
  29982. veharabic: 0x06A4,
  29983. vehfinalarabic: 0xFB6B,
  29984. vehinitialarabic: 0xFB6C,
  29985. vehmedialarabic: 0xFB6D,
  29986. vekatakana: 0x30F9,
  29987. venus: 0x2640,
  29988. verticalbar: 0x007C,
  29989. verticallineabovecmb: 0x030D,
  29990. verticallinebelowcmb: 0x0329,
  29991. verticallinelowmod: 0x02CC,
  29992. verticallinemod: 0x02C8,
  29993. vewarmenian: 0x057E,
  29994. vhook: 0x028B,
  29995. vikatakana: 0x30F8,
  29996. viramabengali: 0x09CD,
  29997. viramadeva: 0x094D,
  29998. viramagujarati: 0x0ACD,
  29999. visargabengali: 0x0983,
  30000. visargadeva: 0x0903,
  30001. visargagujarati: 0x0A83,
  30002. vmonospace: 0xFF56,
  30003. voarmenian: 0x0578,
  30004. voicediterationhiragana: 0x309E,
  30005. voicediterationkatakana: 0x30FE,
  30006. voicedmarkkana: 0x309B,
  30007. voicedmarkkanahalfwidth: 0xFF9E,
  30008. vokatakana: 0x30FA,
  30009. vparen: 0x24B1,
  30010. vtilde: 0x1E7D,
  30011. vturned: 0x028C,
  30012. vuhiragana: 0x3094,
  30013. vukatakana: 0x30F4,
  30014. w: 0x0077,
  30015. wacute: 0x1E83,
  30016. waekorean: 0x3159,
  30017. wahiragana: 0x308F,
  30018. wakatakana: 0x30EF,
  30019. wakatakanahalfwidth: 0xFF9C,
  30020. wakorean: 0x3158,
  30021. wasmallhiragana: 0x308E,
  30022. wasmallkatakana: 0x30EE,
  30023. wattosquare: 0x3357,
  30024. wavedash: 0x301C,
  30025. wavyunderscorevertical: 0xFE34,
  30026. wawarabic: 0x0648,
  30027. wawfinalarabic: 0xFEEE,
  30028. wawhamzaabovearabic: 0x0624,
  30029. wawhamzaabovefinalarabic: 0xFE86,
  30030. wbsquare: 0x33DD,
  30031. wcircle: 0x24E6,
  30032. wcircumflex: 0x0175,
  30033. wdieresis: 0x1E85,
  30034. wdotaccent: 0x1E87,
  30035. wdotbelow: 0x1E89,
  30036. wehiragana: 0x3091,
  30037. weierstrass: 0x2118,
  30038. wekatakana: 0x30F1,
  30039. wekorean: 0x315E,
  30040. weokorean: 0x315D,
  30041. wgrave: 0x1E81,
  30042. whitebullet: 0x25E6,
  30043. whitecircle: 0x25CB,
  30044. whitecircleinverse: 0x25D9,
  30045. whitecornerbracketleft: 0x300E,
  30046. whitecornerbracketleftvertical: 0xFE43,
  30047. whitecornerbracketright: 0x300F,
  30048. whitecornerbracketrightvertical: 0xFE44,
  30049. whitediamond: 0x25C7,
  30050. whitediamondcontainingblacksmalldiamond: 0x25C8,
  30051. whitedownpointingsmalltriangle: 0x25BF,
  30052. whitedownpointingtriangle: 0x25BD,
  30053. whiteleftpointingsmalltriangle: 0x25C3,
  30054. whiteleftpointingtriangle: 0x25C1,
  30055. whitelenticularbracketleft: 0x3016,
  30056. whitelenticularbracketright: 0x3017,
  30057. whiterightpointingsmalltriangle: 0x25B9,
  30058. whiterightpointingtriangle: 0x25B7,
  30059. whitesmallsquare: 0x25AB,
  30060. whitesmilingface: 0x263A,
  30061. whitesquare: 0x25A1,
  30062. whitestar: 0x2606,
  30063. whitetelephone: 0x260F,
  30064. whitetortoiseshellbracketleft: 0x3018,
  30065. whitetortoiseshellbracketright: 0x3019,
  30066. whiteuppointingsmalltriangle: 0x25B5,
  30067. whiteuppointingtriangle: 0x25B3,
  30068. wihiragana: 0x3090,
  30069. wikatakana: 0x30F0,
  30070. wikorean: 0x315F,
  30071. wmonospace: 0xFF57,
  30072. wohiragana: 0x3092,
  30073. wokatakana: 0x30F2,
  30074. wokatakanahalfwidth: 0xFF66,
  30075. won: 0x20A9,
  30076. wonmonospace: 0xFFE6,
  30077. wowaenthai: 0x0E27,
  30078. wparen: 0x24B2,
  30079. wring: 0x1E98,
  30080. wsuperior: 0x02B7,
  30081. wturned: 0x028D,
  30082. wynn: 0x01BF,
  30083. x: 0x0078,
  30084. xabovecmb: 0x033D,
  30085. xbopomofo: 0x3112,
  30086. xcircle: 0x24E7,
  30087. xdieresis: 0x1E8D,
  30088. xdotaccent: 0x1E8B,
  30089. xeharmenian: 0x056D,
  30090. xi: 0x03BE,
  30091. xmonospace: 0xFF58,
  30092. xparen: 0x24B3,
  30093. xsuperior: 0x02E3,
  30094. y: 0x0079,
  30095. yaadosquare: 0x334E,
  30096. yabengali: 0x09AF,
  30097. yacute: 0x00FD,
  30098. yadeva: 0x092F,
  30099. yaekorean: 0x3152,
  30100. yagujarati: 0x0AAF,
  30101. yagurmukhi: 0x0A2F,
  30102. yahiragana: 0x3084,
  30103. yakatakana: 0x30E4,
  30104. yakatakanahalfwidth: 0xFF94,
  30105. yakorean: 0x3151,
  30106. yamakkanthai: 0x0E4E,
  30107. yasmallhiragana: 0x3083,
  30108. yasmallkatakana: 0x30E3,
  30109. yasmallkatakanahalfwidth: 0xFF6C,
  30110. yatcyrillic: 0x0463,
  30111. ycircle: 0x24E8,
  30112. ycircumflex: 0x0177,
  30113. ydieresis: 0x00FF,
  30114. ydotaccent: 0x1E8F,
  30115. ydotbelow: 0x1EF5,
  30116. yeharabic: 0x064A,
  30117. yehbarreearabic: 0x06D2,
  30118. yehbarreefinalarabic: 0xFBAF,
  30119. yehfinalarabic: 0xFEF2,
  30120. yehhamzaabovearabic: 0x0626,
  30121. yehhamzaabovefinalarabic: 0xFE8A,
  30122. yehhamzaaboveinitialarabic: 0xFE8B,
  30123. yehhamzaabovemedialarabic: 0xFE8C,
  30124. yehinitialarabic: 0xFEF3,
  30125. yehmedialarabic: 0xFEF4,
  30126. yehmeeminitialarabic: 0xFCDD,
  30127. yehmeemisolatedarabic: 0xFC58,
  30128. yehnoonfinalarabic: 0xFC94,
  30129. yehthreedotsbelowarabic: 0x06D1,
  30130. yekorean: 0x3156,
  30131. yen: 0x00A5,
  30132. yenmonospace: 0xFFE5,
  30133. yeokorean: 0x3155,
  30134. yeorinhieuhkorean: 0x3186,
  30135. yerahbenyomohebrew: 0x05AA,
  30136. yerahbenyomolefthebrew: 0x05AA,
  30137. yericyrillic: 0x044B,
  30138. yerudieresiscyrillic: 0x04F9,
  30139. yesieungkorean: 0x3181,
  30140. yesieungpansioskorean: 0x3183,
  30141. yesieungsioskorean: 0x3182,
  30142. yetivhebrew: 0x059A,
  30143. ygrave: 0x1EF3,
  30144. yhook: 0x01B4,
  30145. yhookabove: 0x1EF7,
  30146. yiarmenian: 0x0575,
  30147. yicyrillic: 0x0457,
  30148. yikorean: 0x3162,
  30149. yinyang: 0x262F,
  30150. yiwnarmenian: 0x0582,
  30151. ymonospace: 0xFF59,
  30152. yod: 0x05D9,
  30153. yoddagesh: 0xFB39,
  30154. yoddageshhebrew: 0xFB39,
  30155. yodhebrew: 0x05D9,
  30156. yodyodhebrew: 0x05F2,
  30157. yodyodpatahhebrew: 0xFB1F,
  30158. yohiragana: 0x3088,
  30159. yoikorean: 0x3189,
  30160. yokatakana: 0x30E8,
  30161. yokatakanahalfwidth: 0xFF96,
  30162. yokorean: 0x315B,
  30163. yosmallhiragana: 0x3087,
  30164. yosmallkatakana: 0x30E7,
  30165. yosmallkatakanahalfwidth: 0xFF6E,
  30166. yotgreek: 0x03F3,
  30167. yoyaekorean: 0x3188,
  30168. yoyakorean: 0x3187,
  30169. yoyakthai: 0x0E22,
  30170. yoyingthai: 0x0E0D,
  30171. yparen: 0x24B4,
  30172. ypogegrammeni: 0x037A,
  30173. ypogegrammenigreekcmb: 0x0345,
  30174. yr: 0x01A6,
  30175. yring: 0x1E99,
  30176. ysuperior: 0x02B8,
  30177. ytilde: 0x1EF9,
  30178. yturned: 0x028E,
  30179. yuhiragana: 0x3086,
  30180. yuikorean: 0x318C,
  30181. yukatakana: 0x30E6,
  30182. yukatakanahalfwidth: 0xFF95,
  30183. yukorean: 0x3160,
  30184. yusbigcyrillic: 0x046B,
  30185. yusbigiotifiedcyrillic: 0x046D,
  30186. yuslittlecyrillic: 0x0467,
  30187. yuslittleiotifiedcyrillic: 0x0469,
  30188. yusmallhiragana: 0x3085,
  30189. yusmallkatakana: 0x30E5,
  30190. yusmallkatakanahalfwidth: 0xFF6D,
  30191. yuyekorean: 0x318B,
  30192. yuyeokorean: 0x318A,
  30193. yyabengali: 0x09DF,
  30194. yyadeva: 0x095F,
  30195. z: 0x007A,
  30196. zaarmenian: 0x0566,
  30197. zacute: 0x017A,
  30198. zadeva: 0x095B,
  30199. zagurmukhi: 0x0A5B,
  30200. zaharabic: 0x0638,
  30201. zahfinalarabic: 0xFEC6,
  30202. zahinitialarabic: 0xFEC7,
  30203. zahiragana: 0x3056,
  30204. zahmedialarabic: 0xFEC8,
  30205. zainarabic: 0x0632,
  30206. zainfinalarabic: 0xFEB0,
  30207. zakatakana: 0x30B6,
  30208. zaqefgadolhebrew: 0x0595,
  30209. zaqefqatanhebrew: 0x0594,
  30210. zarqahebrew: 0x0598,
  30211. zayin: 0x05D6,
  30212. zayindagesh: 0xFB36,
  30213. zayindageshhebrew: 0xFB36,
  30214. zayinhebrew: 0x05D6,
  30215. zbopomofo: 0x3117,
  30216. zcaron: 0x017E,
  30217. zcircle: 0x24E9,
  30218. zcircumflex: 0x1E91,
  30219. zcurl: 0x0291,
  30220. zdot: 0x017C,
  30221. zdotaccent: 0x017C,
  30222. zdotbelow: 0x1E93,
  30223. zecyrillic: 0x0437,
  30224. zedescendercyrillic: 0x0499,
  30225. zedieresiscyrillic: 0x04DF,
  30226. zehiragana: 0x305C,
  30227. zekatakana: 0x30BC,
  30228. zero: 0x0030,
  30229. zeroarabic: 0x0660,
  30230. zerobengali: 0x09E6,
  30231. zerodeva: 0x0966,
  30232. zerogujarati: 0x0AE6,
  30233. zerogurmukhi: 0x0A66,
  30234. zerohackarabic: 0x0660,
  30235. zeroinferior: 0x2080,
  30236. zeromonospace: 0xFF10,
  30237. zerooldstyle: 0xF730,
  30238. zeropersian: 0x06F0,
  30239. zerosuperior: 0x2070,
  30240. zerothai: 0x0E50,
  30241. zerowidthjoiner: 0xFEFF,
  30242. zerowidthnonjoiner: 0x200C,
  30243. zerowidthspace: 0x200B,
  30244. zeta: 0x03B6,
  30245. zhbopomofo: 0x3113,
  30246. zhearmenian: 0x056A,
  30247. zhebrevecyrillic: 0x04C2,
  30248. zhecyrillic: 0x0436,
  30249. zhedescendercyrillic: 0x0497,
  30250. zhedieresiscyrillic: 0x04DD,
  30251. zihiragana: 0x3058,
  30252. zikatakana: 0x30B8,
  30253. zinorhebrew: 0x05AE,
  30254. zlinebelow: 0x1E95,
  30255. zmonospace: 0xFF5A,
  30256. zohiragana: 0x305E,
  30257. zokatakana: 0x30BE,
  30258. zparen: 0x24B5,
  30259. zretroflexhook: 0x0290,
  30260. zstroke: 0x01B6,
  30261. zuhiragana: 0x305A,
  30262. zukatakana: 0x30BA,
  30263. '.notdef': 0x0000
  30264. };
  30265. var PDFImage = (function PDFImageClosure() {
  30266. /**
  30267. * Decode the image in the main thread if it supported. Resovles the promise
  30268. * when the image data is ready.
  30269. */
  30270. function handleImageData(handler, xref, res, image) {
  30271. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  30272. // For natively supported jpegs send them to the main thread for decoding.
  30273. var dict = image.dict;
  30274. var colorSpace = dict.get('ColorSpace', 'CS');
  30275. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30276. var numComps = colorSpace.numComps;
  30277. var decodePromise = handler.sendWithPromise('JpegDecode',
  30278. [image.getIR(), numComps]);
  30279. return decodePromise.then(function (message) {
  30280. var data = message.data;
  30281. return new Stream(data, 0, data.length, image.dict);
  30282. });
  30283. } else {
  30284. return Promise.resolve(image);
  30285. }
  30286. }
  30287. /**
  30288. * Decode and clamp a value. The formula is different from the spec because we
  30289. * don't decode to float range [0,1], we decode it in the [0,max] range.
  30290. */
  30291. function decodeAndClamp(value, addend, coefficient, max) {
  30292. value = addend + value * coefficient;
  30293. // Clamp the value to the range
  30294. return (value < 0 ? 0 : (value > max ? max : value));
  30295. }
  30296. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  30297. this.image = image;
  30298. var dict = image.dict;
  30299. if (dict.has('Filter')) {
  30300. var filter = dict.get('Filter').name;
  30301. if (filter === 'JPXDecode') {
  30302. var jpxImage = new JpxImage();
  30303. jpxImage.parseImageProperties(image.stream);
  30304. image.stream.reset();
  30305. image.bitsPerComponent = jpxImage.bitsPerComponent;
  30306. image.numComps = jpxImage.componentsCount;
  30307. } else if (filter === 'JBIG2Decode') {
  30308. image.bitsPerComponent = 1;
  30309. image.numComps = 1;
  30310. }
  30311. }
  30312. // TODO cache rendered images?
  30313. this.width = dict.get('Width', 'W');
  30314. this.height = dict.get('Height', 'H');
  30315. if (this.width < 1 || this.height < 1) {
  30316. error('Invalid image width: ' + this.width + ' or height: ' +
  30317. this.height);
  30318. }
  30319. this.interpolate = dict.get('Interpolate', 'I') || false;
  30320. this.imageMask = dict.get('ImageMask', 'IM') || false;
  30321. this.matte = dict.get('Matte') || false;
  30322. var bitsPerComponent = image.bitsPerComponent;
  30323. if (!bitsPerComponent) {
  30324. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  30325. if (!bitsPerComponent) {
  30326. if (this.imageMask) {
  30327. bitsPerComponent = 1;
  30328. } else {
  30329. error('Bits per component missing in image: ' + this.imageMask);
  30330. }
  30331. }
  30332. }
  30333. this.bpc = bitsPerComponent;
  30334. if (!this.imageMask) {
  30335. var colorSpace = dict.get('ColorSpace', 'CS');
  30336. if (!colorSpace) {
  30337. info('JPX images (which do not require color spaces)');
  30338. switch (image.numComps) {
  30339. case 1:
  30340. colorSpace = Name.get('DeviceGray');
  30341. break;
  30342. case 3:
  30343. colorSpace = Name.get('DeviceRGB');
  30344. break;
  30345. case 4:
  30346. colorSpace = Name.get('DeviceCMYK');
  30347. break;
  30348. default:
  30349. error('JPX images with ' + this.numComps +
  30350. ' color components not supported.');
  30351. }
  30352. }
  30353. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30354. this.numComps = this.colorSpace.numComps;
  30355. }
  30356. this.decode = dict.get('Decode', 'D');
  30357. this.needsDecode = false;
  30358. if (this.decode &&
  30359. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  30360. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  30361. this.needsDecode = true;
  30362. // Do some preprocessing to avoid more math.
  30363. var max = (1 << bitsPerComponent) - 1;
  30364. this.decodeCoefficients = [];
  30365. this.decodeAddends = [];
  30366. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  30367. var dmin = this.decode[i];
  30368. var dmax = this.decode[i + 1];
  30369. this.decodeCoefficients[j] = dmax - dmin;
  30370. this.decodeAddends[j] = max * dmin;
  30371. }
  30372. }
  30373. if (smask) {
  30374. this.smask = new PDFImage(xref, res, smask, false);
  30375. } else if (mask) {
  30376. if (isStream(mask)) {
  30377. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  30378. } else {
  30379. // Color key mask (just an array).
  30380. this.mask = mask;
  30381. }
  30382. }
  30383. }
  30384. /**
  30385. * Handles processing of image data and returns the Promise that is resolved
  30386. * with a PDFImage when the image is ready to be used.
  30387. */
  30388. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  30389. res, image, inline) {
  30390. var imagePromise = handleImageData(handler, xref, res, image);
  30391. var smaskPromise;
  30392. var maskPromise;
  30393. var smask = image.dict.get('SMask');
  30394. var mask = image.dict.get('Mask');
  30395. if (smask) {
  30396. smaskPromise = handleImageData(handler, xref, res, smask);
  30397. maskPromise = Promise.resolve(null);
  30398. } else {
  30399. smaskPromise = Promise.resolve(null);
  30400. if (mask) {
  30401. if (isStream(mask)) {
  30402. maskPromise = handleImageData(handler, xref, res, mask);
  30403. } else if (isArray(mask)) {
  30404. maskPromise = Promise.resolve(mask);
  30405. } else {
  30406. warn('Unsupported mask format.');
  30407. maskPromise = Promise.resolve(null);
  30408. }
  30409. } else {
  30410. maskPromise = Promise.resolve(null);
  30411. }
  30412. }
  30413. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  30414. function(results) {
  30415. var imageData = results[0];
  30416. var smaskData = results[1];
  30417. var maskData = results[2];
  30418. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  30419. });
  30420. };
  30421. /**
  30422. * Resize an image using the nearest neighbor algorithm. Currently only
  30423. * supports one and three component images.
  30424. * @param {TypedArray} pixels The original image with one component.
  30425. * @param {Number} bpc Number of bits per component.
  30426. * @param {Number} components Number of color components, 1 or 3 is supported.
  30427. * @param {Number} w1 Original width.
  30428. * @param {Number} h1 Original height.
  30429. * @param {Number} w2 New width.
  30430. * @param {Number} h2 New height.
  30431. * @param {TypedArray} dest (Optional) The destination buffer.
  30432. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  30433. * @return {TypedArray} Resized image data.
  30434. */
  30435. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  30436. w1, h1, w2, h2, dest, alpha01) {
  30437. if (components !== 1 && components !== 3) {
  30438. error('Unsupported component count for resizing.');
  30439. }
  30440. var length = w2 * h2 * components;
  30441. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  30442. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30443. var xRatio = w1 / w2;
  30444. var yRatio = h1 / h2;
  30445. var i, j, py, newIndex = 0, oldIndex;
  30446. var xScaled = new Uint16Array(w2);
  30447. var w1Scanline = w1 * components;
  30448. if (alpha01 !== 1) {
  30449. alpha01 = 0;
  30450. }
  30451. for (j = 0; j < w2; j++) {
  30452. xScaled[j] = Math.floor(j * xRatio) * components;
  30453. }
  30454. if (components === 1) {
  30455. for (i = 0; i < h2; i++) {
  30456. py = Math.floor(i * yRatio) * w1Scanline;
  30457. for (j = 0; j < w2; j++) {
  30458. oldIndex = py + xScaled[j];
  30459. temp[newIndex++] = pixels[oldIndex];
  30460. }
  30461. }
  30462. } else if (components === 3) {
  30463. for (i = 0; i < h2; i++) {
  30464. py = Math.floor(i * yRatio) * w1Scanline;
  30465. for (j = 0; j < w2; j++) {
  30466. oldIndex = py + xScaled[j];
  30467. temp[newIndex++] = pixels[oldIndex++];
  30468. temp[newIndex++] = pixels[oldIndex++];
  30469. temp[newIndex++] = pixels[oldIndex++];
  30470. newIndex += alpha01;
  30471. }
  30472. }
  30473. }
  30474. return temp;
  30475. };
  30476. PDFImage.createMask =
  30477. function PDFImage_createMask(imgArray, width, height,
  30478. imageIsFromDecodeStream, inverseDecode) {
  30479. // |imgArray| might not contain full data for every pixel of the mask, so
  30480. // we need to distinguish between |computedLength| and |actualLength|.
  30481. // In particular, if inverseDecode is true, then the array we return must
  30482. // have a length of |computedLength|.
  30483. var computedLength = ((width + 7) >> 3) * height;
  30484. var actualLength = imgArray.byteLength;
  30485. var haveFullData = computedLength == actualLength;
  30486. var data, i;
  30487. if (imageIsFromDecodeStream && (!inverseDecode || haveFullData)) {
  30488. // imgArray came from a DecodeStream and its data is in an appropriate
  30489. // form, so we can just transfer it.
  30490. data = imgArray;
  30491. } else if (!inverseDecode) {
  30492. data = new Uint8Array(actualLength);
  30493. data.set(imgArray);
  30494. } else {
  30495. data = new Uint8Array(computedLength);
  30496. data.set(imgArray);
  30497. for (i = actualLength; i < computedLength; i++) {
  30498. data[i] = 0xff;
  30499. }
  30500. }
  30501. // If necessary, invert the original mask data (but not any extra we might
  30502. // have added above). It's safe to modify the array -- whether it's the
  30503. // original or a copy, we're about to transfer it anyway, so nothing else
  30504. // in this thread can be relying on its contents.
  30505. if (inverseDecode) {
  30506. for (i = 0; i < actualLength; i++) {
  30507. data[i] = ~data[i];
  30508. }
  30509. }
  30510. return {data: data, width: width, height: height};
  30511. };
  30512. PDFImage.prototype = {
  30513. get drawWidth() {
  30514. return Math.max(this.width,
  30515. this.smask && this.smask.width || 0,
  30516. this.mask && this.mask.width || 0);
  30517. },
  30518. get drawHeight() {
  30519. return Math.max(this.height,
  30520. this.smask && this.smask.height || 0,
  30521. this.mask && this.mask.height || 0);
  30522. },
  30523. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  30524. var bpc = this.bpc;
  30525. var numComps = this.numComps;
  30526. var decodeAddends = this.decodeAddends;
  30527. var decodeCoefficients = this.decodeCoefficients;
  30528. var max = (1 << bpc) - 1;
  30529. var i, ii;
  30530. if (bpc === 1) {
  30531. // If the buffer needed decode that means it just needs to be inverted.
  30532. for (i = 0, ii = buffer.length; i < ii; i++) {
  30533. buffer[i] = +!(buffer[i]);
  30534. }
  30535. return;
  30536. }
  30537. var index = 0;
  30538. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  30539. for (var j = 0; j < numComps; j++) {
  30540. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  30541. decodeCoefficients[j], max);
  30542. index++;
  30543. }
  30544. }
  30545. },
  30546. getComponents: function PDFImage_getComponents(buffer) {
  30547. var bpc = this.bpc;
  30548. // This image doesn't require any extra work.
  30549. if (bpc === 8) {
  30550. return buffer;
  30551. }
  30552. var width = this.width;
  30553. var height = this.height;
  30554. var numComps = this.numComps;
  30555. var length = width * height * numComps;
  30556. var bufferPos = 0;
  30557. var output = (bpc <= 8 ? new Uint8Array(length) :
  30558. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30559. var rowComps = width * numComps;
  30560. var max = (1 << bpc) - 1;
  30561. var i = 0, ii, buf;
  30562. if (bpc === 1) {
  30563. // Optimization for reading 1 bpc images.
  30564. var mask, loop1End, loop2End;
  30565. for (var j = 0; j < height; j++) {
  30566. loop1End = i + (rowComps & ~7);
  30567. loop2End = i + rowComps;
  30568. // unroll loop for all full bytes
  30569. while (i < loop1End) {
  30570. buf = buffer[bufferPos++];
  30571. output[i] = (buf >> 7) & 1;
  30572. output[i + 1] = (buf >> 6) & 1;
  30573. output[i + 2] = (buf >> 5) & 1;
  30574. output[i + 3] = (buf >> 4) & 1;
  30575. output[i + 4] = (buf >> 3) & 1;
  30576. output[i + 5] = (buf >> 2) & 1;
  30577. output[i + 6] = (buf >> 1) & 1;
  30578. output[i + 7] = buf & 1;
  30579. i += 8;
  30580. }
  30581. // handle remaing bits
  30582. if (i < loop2End) {
  30583. buf = buffer[bufferPos++];
  30584. mask = 128;
  30585. while (i < loop2End) {
  30586. output[i++] = +!!(buf & mask);
  30587. mask >>= 1;
  30588. }
  30589. }
  30590. }
  30591. } else {
  30592. // The general case that handles all other bpc values.
  30593. var bits = 0;
  30594. buf = 0;
  30595. for (i = 0, ii = length; i < ii; ++i) {
  30596. if (i % rowComps === 0) {
  30597. buf = 0;
  30598. bits = 0;
  30599. }
  30600. while (bits < bpc) {
  30601. buf = (buf << 8) | buffer[bufferPos++];
  30602. bits += 8;
  30603. }
  30604. var remainingBits = bits - bpc;
  30605. var value = buf >> remainingBits;
  30606. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  30607. buf = buf & ((1 << remainingBits) - 1);
  30608. bits = remainingBits;
  30609. }
  30610. }
  30611. return output;
  30612. },
  30613. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  30614. actualHeight, image) {
  30615. var smask = this.smask;
  30616. var mask = this.mask;
  30617. var alphaBuf, sw, sh, i, ii, j;
  30618. if (smask) {
  30619. sw = smask.width;
  30620. sh = smask.height;
  30621. alphaBuf = new Uint8Array(sw * sh);
  30622. smask.fillGrayBuffer(alphaBuf);
  30623. if (sw != width || sh != height) {
  30624. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  30625. height);
  30626. }
  30627. } else if (mask) {
  30628. if (mask instanceof PDFImage) {
  30629. sw = mask.width;
  30630. sh = mask.height;
  30631. alphaBuf = new Uint8Array(sw * sh);
  30632. mask.numComps = 1;
  30633. mask.fillGrayBuffer(alphaBuf);
  30634. // Need to invert values in rgbaBuf
  30635. for (i = 0, ii = sw * sh; i < ii; ++i) {
  30636. alphaBuf[i] = 255 - alphaBuf[i];
  30637. }
  30638. if (sw != width || sh != height) {
  30639. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  30640. height);
  30641. }
  30642. } else if (isArray(mask)) {
  30643. // Color key mask: if any of the compontents are outside the range
  30644. // then they should be painted.
  30645. alphaBuf = new Uint8Array(width * height);
  30646. var numComps = this.numComps;
  30647. for (i = 0, ii = width * height; i < ii; ++i) {
  30648. var opacity = 0;
  30649. var imageOffset = i * numComps;
  30650. for (j = 0; j < numComps; ++j) {
  30651. var color = image[imageOffset + j];
  30652. var maskOffset = j * 2;
  30653. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  30654. opacity = 255;
  30655. break;
  30656. }
  30657. }
  30658. alphaBuf[i] = opacity;
  30659. }
  30660. } else {
  30661. error('Unknown mask format.');
  30662. }
  30663. }
  30664. if (alphaBuf) {
  30665. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30666. rgbaBuf[j] = alphaBuf[i];
  30667. }
  30668. } else {
  30669. // No mask.
  30670. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30671. rgbaBuf[j] = 255;
  30672. }
  30673. }
  30674. },
  30675. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  30676. var matte = this.smask && this.smask.matte;
  30677. if (!matte) {
  30678. return;
  30679. }
  30680. var matteRgb = this.colorSpace.getRgb(matte, 0);
  30681. var matteR = matteRgb[0];
  30682. var matteG = matteRgb[1];
  30683. var matteB = matteRgb[2];
  30684. var length = width * height * 4;
  30685. var r, g, b;
  30686. for (var i = 0; i < length; i += 4) {
  30687. var alpha = buffer[i + 3];
  30688. if (alpha === 0) {
  30689. // according formula we have to get Infinity in all components
  30690. // making it white (typical paper color) should be okay
  30691. buffer[i] = 255;
  30692. buffer[i + 1] = 255;
  30693. buffer[i + 2] = 255;
  30694. continue;
  30695. }
  30696. var k = 255 / alpha;
  30697. r = (buffer[i] - matteR) * k + matteR;
  30698. g = (buffer[i + 1] - matteG) * k + matteG;
  30699. b = (buffer[i + 2] - matteB) * k + matteB;
  30700. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  30701. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  30702. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  30703. }
  30704. },
  30705. createImageData: function PDFImage_createImageData(forceRGBA) {
  30706. var drawWidth = this.drawWidth;
  30707. var drawHeight = this.drawHeight;
  30708. var imgData = { // other fields are filled in below
  30709. width: drawWidth,
  30710. height: drawHeight
  30711. };
  30712. var numComps = this.numComps;
  30713. var originalWidth = this.width;
  30714. var originalHeight = this.height;
  30715. var bpc = this.bpc;
  30716. // Rows start at byte boundary.
  30717. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  30718. var imgArray;
  30719. if (!forceRGBA) {
  30720. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  30721. // without any complications, we pass a same-sized copy to the main
  30722. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  30723. // of memory for many scanned documents. It's also much faster.
  30724. //
  30725. // Similarly, if it is a 24-bit-per pixel RGB image without any
  30726. // complications, we avoid expanding by 1.333x to RGBA form.
  30727. var kind;
  30728. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  30729. kind = ImageKind.GRAYSCALE_1BPP;
  30730. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  30731. kind = ImageKind.RGB_24BPP;
  30732. }
  30733. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  30734. drawWidth === originalWidth && drawHeight === originalHeight) {
  30735. imgData.kind = kind;
  30736. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30737. // If imgArray came from a DecodeStream, we're safe to transfer it
  30738. // (and thus neuter it) because it will constitute the entire
  30739. // DecodeStream's data. But if it came from a Stream, we need to
  30740. // copy it because it'll only be a portion of the Stream's data, and
  30741. // the rest will be read later on.
  30742. if (this.image instanceof DecodeStream) {
  30743. imgData.data = imgArray;
  30744. } else {
  30745. var newArray = new Uint8Array(imgArray.length);
  30746. newArray.set(imgArray);
  30747. imgData.data = newArray;
  30748. }
  30749. return imgData;
  30750. }
  30751. if (this.image instanceof JpegStream && !this.smask && !this.mask) {
  30752. imgData.kind = ImageKind.RGB_24BPP;
  30753. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  30754. drawWidth, drawHeight, true);
  30755. return imgData;
  30756. }
  30757. }
  30758. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30759. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  30760. var actualHeight = 0 | (imgArray.length / rowBytes *
  30761. drawHeight / originalHeight);
  30762. var comps = this.getComponents(imgArray);
  30763. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  30764. // more compact RGB_24BPP form if allowable.
  30765. var alpha01, maybeUndoPreblend;
  30766. if (!forceRGBA && !this.smask && !this.mask) {
  30767. imgData.kind = ImageKind.RGB_24BPP;
  30768. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  30769. alpha01 = 0;
  30770. maybeUndoPreblend = false;
  30771. } else {
  30772. imgData.kind = ImageKind.RGBA_32BPP;
  30773. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  30774. alpha01 = 1;
  30775. maybeUndoPreblend = true;
  30776. // Color key masking (opacity) must be performed before decoding.
  30777. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  30778. comps);
  30779. }
  30780. if (this.needsDecode) {
  30781. this.decodeBuffer(comps);
  30782. }
  30783. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  30784. drawWidth, drawHeight, actualHeight, bpc, comps,
  30785. alpha01);
  30786. if (maybeUndoPreblend) {
  30787. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  30788. }
  30789. return imgData;
  30790. },
  30791. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  30792. var numComps = this.numComps;
  30793. if (numComps != 1) {
  30794. error('Reading gray scale from a color image: ' + numComps);
  30795. }
  30796. var width = this.width;
  30797. var height = this.height;
  30798. var bpc = this.bpc;
  30799. // rows start at byte boundary
  30800. var rowBytes = (width * numComps * bpc + 7) >> 3;
  30801. var imgArray = this.getImageBytes(height * rowBytes);
  30802. var comps = this.getComponents(imgArray);
  30803. var i, length;
  30804. if (bpc === 1) {
  30805. // inline decoding (= inversion) for 1 bpc images
  30806. length = width * height;
  30807. if (this.needsDecode) {
  30808. // invert and scale to {0, 255}
  30809. for (i = 0; i < length; ++i) {
  30810. buffer[i] = (comps[i] - 1) & 255;
  30811. }
  30812. } else {
  30813. // scale to {0, 255}
  30814. for (i = 0; i < length; ++i) {
  30815. buffer[i] = (-comps[i]) & 255;
  30816. }
  30817. }
  30818. return;
  30819. }
  30820. if (this.needsDecode) {
  30821. this.decodeBuffer(comps);
  30822. }
  30823. length = width * height;
  30824. // we aren't using a colorspace so we need to scale the value
  30825. var scale = 255 / ((1 << bpc) - 1);
  30826. for (i = 0; i < length; ++i) {
  30827. buffer[i] = (scale * comps[i]) | 0;
  30828. }
  30829. },
  30830. getImageBytes: function PDFImage_getImageBytes(length,
  30831. drawWidth, drawHeight,
  30832. forceRGB) {
  30833. this.image.reset();
  30834. this.image.drawWidth = drawWidth || this.width;
  30835. this.image.drawHeight = drawHeight || this.height;
  30836. this.image.forceRGB = !!forceRGB;
  30837. return this.image.getBytes(length);
  30838. }
  30839. };
  30840. return PDFImage;
  30841. })();
  30842. // The Metrics object contains glyph widths (in glyph space units).
  30843. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  30844. // space unit corresponds to 1/1000th of text space unit.
  30845. var Metrics = {
  30846. 'Courier': 600,
  30847. 'Courier-Bold': 600,
  30848. 'Courier-BoldOblique': 600,
  30849. 'Courier-Oblique': 600,
  30850. 'Helvetica' : {
  30851. 'space': 278,
  30852. 'exclam': 278,
  30853. 'quotedbl': 355,
  30854. 'numbersign': 556,
  30855. 'dollar': 556,
  30856. 'percent': 889,
  30857. 'ampersand': 667,
  30858. 'quoteright': 222,
  30859. 'parenleft': 333,
  30860. 'parenright': 333,
  30861. 'asterisk': 389,
  30862. 'plus': 584,
  30863. 'comma': 278,
  30864. 'hyphen': 333,
  30865. 'period': 278,
  30866. 'slash': 278,
  30867. 'zero': 556,
  30868. 'one': 556,
  30869. 'two': 556,
  30870. 'three': 556,
  30871. 'four': 556,
  30872. 'five': 556,
  30873. 'six': 556,
  30874. 'seven': 556,
  30875. 'eight': 556,
  30876. 'nine': 556,
  30877. 'colon': 278,
  30878. 'semicolon': 278,
  30879. 'less': 584,
  30880. 'equal': 584,
  30881. 'greater': 584,
  30882. 'question': 556,
  30883. 'at': 1015,
  30884. 'A': 667,
  30885. 'B': 667,
  30886. 'C': 722,
  30887. 'D': 722,
  30888. 'E': 667,
  30889. 'F': 611,
  30890. 'G': 778,
  30891. 'H': 722,
  30892. 'I': 278,
  30893. 'J': 500,
  30894. 'K': 667,
  30895. 'L': 556,
  30896. 'M': 833,
  30897. 'N': 722,
  30898. 'O': 778,
  30899. 'P': 667,
  30900. 'Q': 778,
  30901. 'R': 722,
  30902. 'S': 667,
  30903. 'T': 611,
  30904. 'U': 722,
  30905. 'V': 667,
  30906. 'W': 944,
  30907. 'X': 667,
  30908. 'Y': 667,
  30909. 'Z': 611,
  30910. 'bracketleft': 278,
  30911. 'backslash': 278,
  30912. 'bracketright': 278,
  30913. 'asciicircum': 469,
  30914. 'underscore': 556,
  30915. 'quoteleft': 222,
  30916. 'a': 556,
  30917. 'b': 556,
  30918. 'c': 500,
  30919. 'd': 556,
  30920. 'e': 556,
  30921. 'f': 278,
  30922. 'g': 556,
  30923. 'h': 556,
  30924. 'i': 222,
  30925. 'j': 222,
  30926. 'k': 500,
  30927. 'l': 222,
  30928. 'm': 833,
  30929. 'n': 556,
  30930. 'o': 556,
  30931. 'p': 556,
  30932. 'q': 556,
  30933. 'r': 333,
  30934. 's': 500,
  30935. 't': 278,
  30936. 'u': 556,
  30937. 'v': 500,
  30938. 'w': 722,
  30939. 'x': 500,
  30940. 'y': 500,
  30941. 'z': 500,
  30942. 'braceleft': 334,
  30943. 'bar': 260,
  30944. 'braceright': 334,
  30945. 'asciitilde': 584,
  30946. 'exclamdown': 333,
  30947. 'cent': 556,
  30948. 'sterling': 556,
  30949. 'fraction': 167,
  30950. 'yen': 556,
  30951. 'florin': 556,
  30952. 'section': 556,
  30953. 'currency': 556,
  30954. 'quotesingle': 191,
  30955. 'quotedblleft': 333,
  30956. 'guillemotleft': 556,
  30957. 'guilsinglleft': 333,
  30958. 'guilsinglright': 333,
  30959. 'fi': 500,
  30960. 'fl': 500,
  30961. 'endash': 556,
  30962. 'dagger': 556,
  30963. 'daggerdbl': 556,
  30964. 'periodcentered': 278,
  30965. 'paragraph': 537,
  30966. 'bullet': 350,
  30967. 'quotesinglbase': 222,
  30968. 'quotedblbase': 333,
  30969. 'quotedblright': 333,
  30970. 'guillemotright': 556,
  30971. 'ellipsis': 1000,
  30972. 'perthousand': 1000,
  30973. 'questiondown': 611,
  30974. 'grave': 333,
  30975. 'acute': 333,
  30976. 'circumflex': 333,
  30977. 'tilde': 333,
  30978. 'macron': 333,
  30979. 'breve': 333,
  30980. 'dotaccent': 333,
  30981. 'dieresis': 333,
  30982. 'ring': 333,
  30983. 'cedilla': 333,
  30984. 'hungarumlaut': 333,
  30985. 'ogonek': 333,
  30986. 'caron': 333,
  30987. 'emdash': 1000,
  30988. 'AE': 1000,
  30989. 'ordfeminine': 370,
  30990. 'Lslash': 556,
  30991. 'Oslash': 778,
  30992. 'OE': 1000,
  30993. 'ordmasculine': 365,
  30994. 'ae': 889,
  30995. 'dotlessi': 278,
  30996. 'lslash': 222,
  30997. 'oslash': 611,
  30998. 'oe': 944,
  30999. 'germandbls': 611,
  31000. 'Idieresis': 278,
  31001. 'eacute': 556,
  31002. 'abreve': 556,
  31003. 'uhungarumlaut': 556,
  31004. 'ecaron': 556,
  31005. 'Ydieresis': 667,
  31006. 'divide': 584,
  31007. 'Yacute': 667,
  31008. 'Acircumflex': 667,
  31009. 'aacute': 556,
  31010. 'Ucircumflex': 722,
  31011. 'yacute': 500,
  31012. 'scommaaccent': 500,
  31013. 'ecircumflex': 556,
  31014. 'Uring': 722,
  31015. 'Udieresis': 722,
  31016. 'aogonek': 556,
  31017. 'Uacute': 722,
  31018. 'uogonek': 556,
  31019. 'Edieresis': 667,
  31020. 'Dcroat': 722,
  31021. 'commaaccent': 250,
  31022. 'copyright': 737,
  31023. 'Emacron': 667,
  31024. 'ccaron': 500,
  31025. 'aring': 556,
  31026. 'Ncommaaccent': 722,
  31027. 'lacute': 222,
  31028. 'agrave': 556,
  31029. 'Tcommaaccent': 611,
  31030. 'Cacute': 722,
  31031. 'atilde': 556,
  31032. 'Edotaccent': 667,
  31033. 'scaron': 500,
  31034. 'scedilla': 500,
  31035. 'iacute': 278,
  31036. 'lozenge': 471,
  31037. 'Rcaron': 722,
  31038. 'Gcommaaccent': 778,
  31039. 'ucircumflex': 556,
  31040. 'acircumflex': 556,
  31041. 'Amacron': 667,
  31042. 'rcaron': 333,
  31043. 'ccedilla': 500,
  31044. 'Zdotaccent': 611,
  31045. 'Thorn': 667,
  31046. 'Omacron': 778,
  31047. 'Racute': 722,
  31048. 'Sacute': 667,
  31049. 'dcaron': 643,
  31050. 'Umacron': 722,
  31051. 'uring': 556,
  31052. 'threesuperior': 333,
  31053. 'Ograve': 778,
  31054. 'Agrave': 667,
  31055. 'Abreve': 667,
  31056. 'multiply': 584,
  31057. 'uacute': 556,
  31058. 'Tcaron': 611,
  31059. 'partialdiff': 476,
  31060. 'ydieresis': 500,
  31061. 'Nacute': 722,
  31062. 'icircumflex': 278,
  31063. 'Ecircumflex': 667,
  31064. 'adieresis': 556,
  31065. 'edieresis': 556,
  31066. 'cacute': 500,
  31067. 'nacute': 556,
  31068. 'umacron': 556,
  31069. 'Ncaron': 722,
  31070. 'Iacute': 278,
  31071. 'plusminus': 584,
  31072. 'brokenbar': 260,
  31073. 'registered': 737,
  31074. 'Gbreve': 778,
  31075. 'Idotaccent': 278,
  31076. 'summation': 600,
  31077. 'Egrave': 667,
  31078. 'racute': 333,
  31079. 'omacron': 556,
  31080. 'Zacute': 611,
  31081. 'Zcaron': 611,
  31082. 'greaterequal': 549,
  31083. 'Eth': 722,
  31084. 'Ccedilla': 722,
  31085. 'lcommaaccent': 222,
  31086. 'tcaron': 317,
  31087. 'eogonek': 556,
  31088. 'Uogonek': 722,
  31089. 'Aacute': 667,
  31090. 'Adieresis': 667,
  31091. 'egrave': 556,
  31092. 'zacute': 500,
  31093. 'iogonek': 222,
  31094. 'Oacute': 778,
  31095. 'oacute': 556,
  31096. 'amacron': 556,
  31097. 'sacute': 500,
  31098. 'idieresis': 278,
  31099. 'Ocircumflex': 778,
  31100. 'Ugrave': 722,
  31101. 'Delta': 612,
  31102. 'thorn': 556,
  31103. 'twosuperior': 333,
  31104. 'Odieresis': 778,
  31105. 'mu': 556,
  31106. 'igrave': 278,
  31107. 'ohungarumlaut': 556,
  31108. 'Eogonek': 667,
  31109. 'dcroat': 556,
  31110. 'threequarters': 834,
  31111. 'Scedilla': 667,
  31112. 'lcaron': 299,
  31113. 'Kcommaaccent': 667,
  31114. 'Lacute': 556,
  31115. 'trademark': 1000,
  31116. 'edotaccent': 556,
  31117. 'Igrave': 278,
  31118. 'Imacron': 278,
  31119. 'Lcaron': 556,
  31120. 'onehalf': 834,
  31121. 'lessequal': 549,
  31122. 'ocircumflex': 556,
  31123. 'ntilde': 556,
  31124. 'Uhungarumlaut': 722,
  31125. 'Eacute': 667,
  31126. 'emacron': 556,
  31127. 'gbreve': 556,
  31128. 'onequarter': 834,
  31129. 'Scaron': 667,
  31130. 'Scommaaccent': 667,
  31131. 'Ohungarumlaut': 778,
  31132. 'degree': 400,
  31133. 'ograve': 556,
  31134. 'Ccaron': 722,
  31135. 'ugrave': 556,
  31136. 'radical': 453,
  31137. 'Dcaron': 722,
  31138. 'rcommaaccent': 333,
  31139. 'Ntilde': 722,
  31140. 'otilde': 556,
  31141. 'Rcommaaccent': 722,
  31142. 'Lcommaaccent': 556,
  31143. 'Atilde': 667,
  31144. 'Aogonek': 667,
  31145. 'Aring': 667,
  31146. 'Otilde': 778,
  31147. 'zdotaccent': 500,
  31148. 'Ecaron': 667,
  31149. 'Iogonek': 278,
  31150. 'kcommaaccent': 500,
  31151. 'minus': 584,
  31152. 'Icircumflex': 278,
  31153. 'ncaron': 556,
  31154. 'tcommaaccent': 278,
  31155. 'logicalnot': 584,
  31156. 'odieresis': 556,
  31157. 'udieresis': 556,
  31158. 'notequal': 549,
  31159. 'gcommaaccent': 556,
  31160. 'eth': 556,
  31161. 'zcaron': 500,
  31162. 'ncommaaccent': 556,
  31163. 'onesuperior': 333,
  31164. 'imacron': 278,
  31165. 'Euro': 556
  31166. },
  31167. 'Helvetica-Bold': {
  31168. 'space': 278,
  31169. 'exclam': 333,
  31170. 'quotedbl': 474,
  31171. 'numbersign': 556,
  31172. 'dollar': 556,
  31173. 'percent': 889,
  31174. 'ampersand': 722,
  31175. 'quoteright': 278,
  31176. 'parenleft': 333,
  31177. 'parenright': 333,
  31178. 'asterisk': 389,
  31179. 'plus': 584,
  31180. 'comma': 278,
  31181. 'hyphen': 333,
  31182. 'period': 278,
  31183. 'slash': 278,
  31184. 'zero': 556,
  31185. 'one': 556,
  31186. 'two': 556,
  31187. 'three': 556,
  31188. 'four': 556,
  31189. 'five': 556,
  31190. 'six': 556,
  31191. 'seven': 556,
  31192. 'eight': 556,
  31193. 'nine': 556,
  31194. 'colon': 333,
  31195. 'semicolon': 333,
  31196. 'less': 584,
  31197. 'equal': 584,
  31198. 'greater': 584,
  31199. 'question': 611,
  31200. 'at': 975,
  31201. 'A': 722,
  31202. 'B': 722,
  31203. 'C': 722,
  31204. 'D': 722,
  31205. 'E': 667,
  31206. 'F': 611,
  31207. 'G': 778,
  31208. 'H': 722,
  31209. 'I': 278,
  31210. 'J': 556,
  31211. 'K': 722,
  31212. 'L': 611,
  31213. 'M': 833,
  31214. 'N': 722,
  31215. 'O': 778,
  31216. 'P': 667,
  31217. 'Q': 778,
  31218. 'R': 722,
  31219. 'S': 667,
  31220. 'T': 611,
  31221. 'U': 722,
  31222. 'V': 667,
  31223. 'W': 944,
  31224. 'X': 667,
  31225. 'Y': 667,
  31226. 'Z': 611,
  31227. 'bracketleft': 333,
  31228. 'backslash': 278,
  31229. 'bracketright': 333,
  31230. 'asciicircum': 584,
  31231. 'underscore': 556,
  31232. 'quoteleft': 278,
  31233. 'a': 556,
  31234. 'b': 611,
  31235. 'c': 556,
  31236. 'd': 611,
  31237. 'e': 556,
  31238. 'f': 333,
  31239. 'g': 611,
  31240. 'h': 611,
  31241. 'i': 278,
  31242. 'j': 278,
  31243. 'k': 556,
  31244. 'l': 278,
  31245. 'm': 889,
  31246. 'n': 611,
  31247. 'o': 611,
  31248. 'p': 611,
  31249. 'q': 611,
  31250. 'r': 389,
  31251. 's': 556,
  31252. 't': 333,
  31253. 'u': 611,
  31254. 'v': 556,
  31255. 'w': 778,
  31256. 'x': 556,
  31257. 'y': 556,
  31258. 'z': 500,
  31259. 'braceleft': 389,
  31260. 'bar': 280,
  31261. 'braceright': 389,
  31262. 'asciitilde': 584,
  31263. 'exclamdown': 333,
  31264. 'cent': 556,
  31265. 'sterling': 556,
  31266. 'fraction': 167,
  31267. 'yen': 556,
  31268. 'florin': 556,
  31269. 'section': 556,
  31270. 'currency': 556,
  31271. 'quotesingle': 238,
  31272. 'quotedblleft': 500,
  31273. 'guillemotleft': 556,
  31274. 'guilsinglleft': 333,
  31275. 'guilsinglright': 333,
  31276. 'fi': 611,
  31277. 'fl': 611,
  31278. 'endash': 556,
  31279. 'dagger': 556,
  31280. 'daggerdbl': 556,
  31281. 'periodcentered': 278,
  31282. 'paragraph': 556,
  31283. 'bullet': 350,
  31284. 'quotesinglbase': 278,
  31285. 'quotedblbase': 500,
  31286. 'quotedblright': 500,
  31287. 'guillemotright': 556,
  31288. 'ellipsis': 1000,
  31289. 'perthousand': 1000,
  31290. 'questiondown': 611,
  31291. 'grave': 333,
  31292. 'acute': 333,
  31293. 'circumflex': 333,
  31294. 'tilde': 333,
  31295. 'macron': 333,
  31296. 'breve': 333,
  31297. 'dotaccent': 333,
  31298. 'dieresis': 333,
  31299. 'ring': 333,
  31300. 'cedilla': 333,
  31301. 'hungarumlaut': 333,
  31302. 'ogonek': 333,
  31303. 'caron': 333,
  31304. 'emdash': 1000,
  31305. 'AE': 1000,
  31306. 'ordfeminine': 370,
  31307. 'Lslash': 611,
  31308. 'Oslash': 778,
  31309. 'OE': 1000,
  31310. 'ordmasculine': 365,
  31311. 'ae': 889,
  31312. 'dotlessi': 278,
  31313. 'lslash': 278,
  31314. 'oslash': 611,
  31315. 'oe': 944,
  31316. 'germandbls': 611,
  31317. 'Idieresis': 278,
  31318. 'eacute': 556,
  31319. 'abreve': 556,
  31320. 'uhungarumlaut': 611,
  31321. 'ecaron': 556,
  31322. 'Ydieresis': 667,
  31323. 'divide': 584,
  31324. 'Yacute': 667,
  31325. 'Acircumflex': 722,
  31326. 'aacute': 556,
  31327. 'Ucircumflex': 722,
  31328. 'yacute': 556,
  31329. 'scommaaccent': 556,
  31330. 'ecircumflex': 556,
  31331. 'Uring': 722,
  31332. 'Udieresis': 722,
  31333. 'aogonek': 556,
  31334. 'Uacute': 722,
  31335. 'uogonek': 611,
  31336. 'Edieresis': 667,
  31337. 'Dcroat': 722,
  31338. 'commaaccent': 250,
  31339. 'copyright': 737,
  31340. 'Emacron': 667,
  31341. 'ccaron': 556,
  31342. 'aring': 556,
  31343. 'Ncommaaccent': 722,
  31344. 'lacute': 278,
  31345. 'agrave': 556,
  31346. 'Tcommaaccent': 611,
  31347. 'Cacute': 722,
  31348. 'atilde': 556,
  31349. 'Edotaccent': 667,
  31350. 'scaron': 556,
  31351. 'scedilla': 556,
  31352. 'iacute': 278,
  31353. 'lozenge': 494,
  31354. 'Rcaron': 722,
  31355. 'Gcommaaccent': 778,
  31356. 'ucircumflex': 611,
  31357. 'acircumflex': 556,
  31358. 'Amacron': 722,
  31359. 'rcaron': 389,
  31360. 'ccedilla': 556,
  31361. 'Zdotaccent': 611,
  31362. 'Thorn': 667,
  31363. 'Omacron': 778,
  31364. 'Racute': 722,
  31365. 'Sacute': 667,
  31366. 'dcaron': 743,
  31367. 'Umacron': 722,
  31368. 'uring': 611,
  31369. 'threesuperior': 333,
  31370. 'Ograve': 778,
  31371. 'Agrave': 722,
  31372. 'Abreve': 722,
  31373. 'multiply': 584,
  31374. 'uacute': 611,
  31375. 'Tcaron': 611,
  31376. 'partialdiff': 494,
  31377. 'ydieresis': 556,
  31378. 'Nacute': 722,
  31379. 'icircumflex': 278,
  31380. 'Ecircumflex': 667,
  31381. 'adieresis': 556,
  31382. 'edieresis': 556,
  31383. 'cacute': 556,
  31384. 'nacute': 611,
  31385. 'umacron': 611,
  31386. 'Ncaron': 722,
  31387. 'Iacute': 278,
  31388. 'plusminus': 584,
  31389. 'brokenbar': 280,
  31390. 'registered': 737,
  31391. 'Gbreve': 778,
  31392. 'Idotaccent': 278,
  31393. 'summation': 600,
  31394. 'Egrave': 667,
  31395. 'racute': 389,
  31396. 'omacron': 611,
  31397. 'Zacute': 611,
  31398. 'Zcaron': 611,
  31399. 'greaterequal': 549,
  31400. 'Eth': 722,
  31401. 'Ccedilla': 722,
  31402. 'lcommaaccent': 278,
  31403. 'tcaron': 389,
  31404. 'eogonek': 556,
  31405. 'Uogonek': 722,
  31406. 'Aacute': 722,
  31407. 'Adieresis': 722,
  31408. 'egrave': 556,
  31409. 'zacute': 500,
  31410. 'iogonek': 278,
  31411. 'Oacute': 778,
  31412. 'oacute': 611,
  31413. 'amacron': 556,
  31414. 'sacute': 556,
  31415. 'idieresis': 278,
  31416. 'Ocircumflex': 778,
  31417. 'Ugrave': 722,
  31418. 'Delta': 612,
  31419. 'thorn': 611,
  31420. 'twosuperior': 333,
  31421. 'Odieresis': 778,
  31422. 'mu': 611,
  31423. 'igrave': 278,
  31424. 'ohungarumlaut': 611,
  31425. 'Eogonek': 667,
  31426. 'dcroat': 611,
  31427. 'threequarters': 834,
  31428. 'Scedilla': 667,
  31429. 'lcaron': 400,
  31430. 'Kcommaaccent': 722,
  31431. 'Lacute': 611,
  31432. 'trademark': 1000,
  31433. 'edotaccent': 556,
  31434. 'Igrave': 278,
  31435. 'Imacron': 278,
  31436. 'Lcaron': 611,
  31437. 'onehalf': 834,
  31438. 'lessequal': 549,
  31439. 'ocircumflex': 611,
  31440. 'ntilde': 611,
  31441. 'Uhungarumlaut': 722,
  31442. 'Eacute': 667,
  31443. 'emacron': 556,
  31444. 'gbreve': 611,
  31445. 'onequarter': 834,
  31446. 'Scaron': 667,
  31447. 'Scommaaccent': 667,
  31448. 'Ohungarumlaut': 778,
  31449. 'degree': 400,
  31450. 'ograve': 611,
  31451. 'Ccaron': 722,
  31452. 'ugrave': 611,
  31453. 'radical': 549,
  31454. 'Dcaron': 722,
  31455. 'rcommaaccent': 389,
  31456. 'Ntilde': 722,
  31457. 'otilde': 611,
  31458. 'Rcommaaccent': 722,
  31459. 'Lcommaaccent': 611,
  31460. 'Atilde': 722,
  31461. 'Aogonek': 722,
  31462. 'Aring': 722,
  31463. 'Otilde': 778,
  31464. 'zdotaccent': 500,
  31465. 'Ecaron': 667,
  31466. 'Iogonek': 278,
  31467. 'kcommaaccent': 556,
  31468. 'minus': 584,
  31469. 'Icircumflex': 278,
  31470. 'ncaron': 611,
  31471. 'tcommaaccent': 333,
  31472. 'logicalnot': 584,
  31473. 'odieresis': 611,
  31474. 'udieresis': 611,
  31475. 'notequal': 549,
  31476. 'gcommaaccent': 611,
  31477. 'eth': 611,
  31478. 'zcaron': 500,
  31479. 'ncommaaccent': 611,
  31480. 'onesuperior': 333,
  31481. 'imacron': 278,
  31482. 'Euro': 556
  31483. },
  31484. 'Helvetica-BoldOblique': {
  31485. 'space': 278,
  31486. 'exclam': 333,
  31487. 'quotedbl': 474,
  31488. 'numbersign': 556,
  31489. 'dollar': 556,
  31490. 'percent': 889,
  31491. 'ampersand': 722,
  31492. 'quoteright': 278,
  31493. 'parenleft': 333,
  31494. 'parenright': 333,
  31495. 'asterisk': 389,
  31496. 'plus': 584,
  31497. 'comma': 278,
  31498. 'hyphen': 333,
  31499. 'period': 278,
  31500. 'slash': 278,
  31501. 'zero': 556,
  31502. 'one': 556,
  31503. 'two': 556,
  31504. 'three': 556,
  31505. 'four': 556,
  31506. 'five': 556,
  31507. 'six': 556,
  31508. 'seven': 556,
  31509. 'eight': 556,
  31510. 'nine': 556,
  31511. 'colon': 333,
  31512. 'semicolon': 333,
  31513. 'less': 584,
  31514. 'equal': 584,
  31515. 'greater': 584,
  31516. 'question': 611,
  31517. 'at': 975,
  31518. 'A': 722,
  31519. 'B': 722,
  31520. 'C': 722,
  31521. 'D': 722,
  31522. 'E': 667,
  31523. 'F': 611,
  31524. 'G': 778,
  31525. 'H': 722,
  31526. 'I': 278,
  31527. 'J': 556,
  31528. 'K': 722,
  31529. 'L': 611,
  31530. 'M': 833,
  31531. 'N': 722,
  31532. 'O': 778,
  31533. 'P': 667,
  31534. 'Q': 778,
  31535. 'R': 722,
  31536. 'S': 667,
  31537. 'T': 611,
  31538. 'U': 722,
  31539. 'V': 667,
  31540. 'W': 944,
  31541. 'X': 667,
  31542. 'Y': 667,
  31543. 'Z': 611,
  31544. 'bracketleft': 333,
  31545. 'backslash': 278,
  31546. 'bracketright': 333,
  31547. 'asciicircum': 584,
  31548. 'underscore': 556,
  31549. 'quoteleft': 278,
  31550. 'a': 556,
  31551. 'b': 611,
  31552. 'c': 556,
  31553. 'd': 611,
  31554. 'e': 556,
  31555. 'f': 333,
  31556. 'g': 611,
  31557. 'h': 611,
  31558. 'i': 278,
  31559. 'j': 278,
  31560. 'k': 556,
  31561. 'l': 278,
  31562. 'm': 889,
  31563. 'n': 611,
  31564. 'o': 611,
  31565. 'p': 611,
  31566. 'q': 611,
  31567. 'r': 389,
  31568. 's': 556,
  31569. 't': 333,
  31570. 'u': 611,
  31571. 'v': 556,
  31572. 'w': 778,
  31573. 'x': 556,
  31574. 'y': 556,
  31575. 'z': 500,
  31576. 'braceleft': 389,
  31577. 'bar': 280,
  31578. 'braceright': 389,
  31579. 'asciitilde': 584,
  31580. 'exclamdown': 333,
  31581. 'cent': 556,
  31582. 'sterling': 556,
  31583. 'fraction': 167,
  31584. 'yen': 556,
  31585. 'florin': 556,
  31586. 'section': 556,
  31587. 'currency': 556,
  31588. 'quotesingle': 238,
  31589. 'quotedblleft': 500,
  31590. 'guillemotleft': 556,
  31591. 'guilsinglleft': 333,
  31592. 'guilsinglright': 333,
  31593. 'fi': 611,
  31594. 'fl': 611,
  31595. 'endash': 556,
  31596. 'dagger': 556,
  31597. 'daggerdbl': 556,
  31598. 'periodcentered': 278,
  31599. 'paragraph': 556,
  31600. 'bullet': 350,
  31601. 'quotesinglbase': 278,
  31602. 'quotedblbase': 500,
  31603. 'quotedblright': 500,
  31604. 'guillemotright': 556,
  31605. 'ellipsis': 1000,
  31606. 'perthousand': 1000,
  31607. 'questiondown': 611,
  31608. 'grave': 333,
  31609. 'acute': 333,
  31610. 'circumflex': 333,
  31611. 'tilde': 333,
  31612. 'macron': 333,
  31613. 'breve': 333,
  31614. 'dotaccent': 333,
  31615. 'dieresis': 333,
  31616. 'ring': 333,
  31617. 'cedilla': 333,
  31618. 'hungarumlaut': 333,
  31619. 'ogonek': 333,
  31620. 'caron': 333,
  31621. 'emdash': 1000,
  31622. 'AE': 1000,
  31623. 'ordfeminine': 370,
  31624. 'Lslash': 611,
  31625. 'Oslash': 778,
  31626. 'OE': 1000,
  31627. 'ordmasculine': 365,
  31628. 'ae': 889,
  31629. 'dotlessi': 278,
  31630. 'lslash': 278,
  31631. 'oslash': 611,
  31632. 'oe': 944,
  31633. 'germandbls': 611,
  31634. 'Idieresis': 278,
  31635. 'eacute': 556,
  31636. 'abreve': 556,
  31637. 'uhungarumlaut': 611,
  31638. 'ecaron': 556,
  31639. 'Ydieresis': 667,
  31640. 'divide': 584,
  31641. 'Yacute': 667,
  31642. 'Acircumflex': 722,
  31643. 'aacute': 556,
  31644. 'Ucircumflex': 722,
  31645. 'yacute': 556,
  31646. 'scommaaccent': 556,
  31647. 'ecircumflex': 556,
  31648. 'Uring': 722,
  31649. 'Udieresis': 722,
  31650. 'aogonek': 556,
  31651. 'Uacute': 722,
  31652. 'uogonek': 611,
  31653. 'Edieresis': 667,
  31654. 'Dcroat': 722,
  31655. 'commaaccent': 250,
  31656. 'copyright': 737,
  31657. 'Emacron': 667,
  31658. 'ccaron': 556,
  31659. 'aring': 556,
  31660. 'Ncommaaccent': 722,
  31661. 'lacute': 278,
  31662. 'agrave': 556,
  31663. 'Tcommaaccent': 611,
  31664. 'Cacute': 722,
  31665. 'atilde': 556,
  31666. 'Edotaccent': 667,
  31667. 'scaron': 556,
  31668. 'scedilla': 556,
  31669. 'iacute': 278,
  31670. 'lozenge': 494,
  31671. 'Rcaron': 722,
  31672. 'Gcommaaccent': 778,
  31673. 'ucircumflex': 611,
  31674. 'acircumflex': 556,
  31675. 'Amacron': 722,
  31676. 'rcaron': 389,
  31677. 'ccedilla': 556,
  31678. 'Zdotaccent': 611,
  31679. 'Thorn': 667,
  31680. 'Omacron': 778,
  31681. 'Racute': 722,
  31682. 'Sacute': 667,
  31683. 'dcaron': 743,
  31684. 'Umacron': 722,
  31685. 'uring': 611,
  31686. 'threesuperior': 333,
  31687. 'Ograve': 778,
  31688. 'Agrave': 722,
  31689. 'Abreve': 722,
  31690. 'multiply': 584,
  31691. 'uacute': 611,
  31692. 'Tcaron': 611,
  31693. 'partialdiff': 494,
  31694. 'ydieresis': 556,
  31695. 'Nacute': 722,
  31696. 'icircumflex': 278,
  31697. 'Ecircumflex': 667,
  31698. 'adieresis': 556,
  31699. 'edieresis': 556,
  31700. 'cacute': 556,
  31701. 'nacute': 611,
  31702. 'umacron': 611,
  31703. 'Ncaron': 722,
  31704. 'Iacute': 278,
  31705. 'plusminus': 584,
  31706. 'brokenbar': 280,
  31707. 'registered': 737,
  31708. 'Gbreve': 778,
  31709. 'Idotaccent': 278,
  31710. 'summation': 600,
  31711. 'Egrave': 667,
  31712. 'racute': 389,
  31713. 'omacron': 611,
  31714. 'Zacute': 611,
  31715. 'Zcaron': 611,
  31716. 'greaterequal': 549,
  31717. 'Eth': 722,
  31718. 'Ccedilla': 722,
  31719. 'lcommaaccent': 278,
  31720. 'tcaron': 389,
  31721. 'eogonek': 556,
  31722. 'Uogonek': 722,
  31723. 'Aacute': 722,
  31724. 'Adieresis': 722,
  31725. 'egrave': 556,
  31726. 'zacute': 500,
  31727. 'iogonek': 278,
  31728. 'Oacute': 778,
  31729. 'oacute': 611,
  31730. 'amacron': 556,
  31731. 'sacute': 556,
  31732. 'idieresis': 278,
  31733. 'Ocircumflex': 778,
  31734. 'Ugrave': 722,
  31735. 'Delta': 612,
  31736. 'thorn': 611,
  31737. 'twosuperior': 333,
  31738. 'Odieresis': 778,
  31739. 'mu': 611,
  31740. 'igrave': 278,
  31741. 'ohungarumlaut': 611,
  31742. 'Eogonek': 667,
  31743. 'dcroat': 611,
  31744. 'threequarters': 834,
  31745. 'Scedilla': 667,
  31746. 'lcaron': 400,
  31747. 'Kcommaaccent': 722,
  31748. 'Lacute': 611,
  31749. 'trademark': 1000,
  31750. 'edotaccent': 556,
  31751. 'Igrave': 278,
  31752. 'Imacron': 278,
  31753. 'Lcaron': 611,
  31754. 'onehalf': 834,
  31755. 'lessequal': 549,
  31756. 'ocircumflex': 611,
  31757. 'ntilde': 611,
  31758. 'Uhungarumlaut': 722,
  31759. 'Eacute': 667,
  31760. 'emacron': 556,
  31761. 'gbreve': 611,
  31762. 'onequarter': 834,
  31763. 'Scaron': 667,
  31764. 'Scommaaccent': 667,
  31765. 'Ohungarumlaut': 778,
  31766. 'degree': 400,
  31767. 'ograve': 611,
  31768. 'Ccaron': 722,
  31769. 'ugrave': 611,
  31770. 'radical': 549,
  31771. 'Dcaron': 722,
  31772. 'rcommaaccent': 389,
  31773. 'Ntilde': 722,
  31774. 'otilde': 611,
  31775. 'Rcommaaccent': 722,
  31776. 'Lcommaaccent': 611,
  31777. 'Atilde': 722,
  31778. 'Aogonek': 722,
  31779. 'Aring': 722,
  31780. 'Otilde': 778,
  31781. 'zdotaccent': 500,
  31782. 'Ecaron': 667,
  31783. 'Iogonek': 278,
  31784. 'kcommaaccent': 556,
  31785. 'minus': 584,
  31786. 'Icircumflex': 278,
  31787. 'ncaron': 611,
  31788. 'tcommaaccent': 333,
  31789. 'logicalnot': 584,
  31790. 'odieresis': 611,
  31791. 'udieresis': 611,
  31792. 'notequal': 549,
  31793. 'gcommaaccent': 611,
  31794. 'eth': 611,
  31795. 'zcaron': 500,
  31796. 'ncommaaccent': 611,
  31797. 'onesuperior': 333,
  31798. 'imacron': 278,
  31799. 'Euro': 556
  31800. },
  31801. 'Helvetica-Oblique' : {
  31802. 'space': 278,
  31803. 'exclam': 278,
  31804. 'quotedbl': 355,
  31805. 'numbersign': 556,
  31806. 'dollar': 556,
  31807. 'percent': 889,
  31808. 'ampersand': 667,
  31809. 'quoteright': 222,
  31810. 'parenleft': 333,
  31811. 'parenright': 333,
  31812. 'asterisk': 389,
  31813. 'plus': 584,
  31814. 'comma': 278,
  31815. 'hyphen': 333,
  31816. 'period': 278,
  31817. 'slash': 278,
  31818. 'zero': 556,
  31819. 'one': 556,
  31820. 'two': 556,
  31821. 'three': 556,
  31822. 'four': 556,
  31823. 'five': 556,
  31824. 'six': 556,
  31825. 'seven': 556,
  31826. 'eight': 556,
  31827. 'nine': 556,
  31828. 'colon': 278,
  31829. 'semicolon': 278,
  31830. 'less': 584,
  31831. 'equal': 584,
  31832. 'greater': 584,
  31833. 'question': 556,
  31834. 'at': 1015,
  31835. 'A': 667,
  31836. 'B': 667,
  31837. 'C': 722,
  31838. 'D': 722,
  31839. 'E': 667,
  31840. 'F': 611,
  31841. 'G': 778,
  31842. 'H': 722,
  31843. 'I': 278,
  31844. 'J': 500,
  31845. 'K': 667,
  31846. 'L': 556,
  31847. 'M': 833,
  31848. 'N': 722,
  31849. 'O': 778,
  31850. 'P': 667,
  31851. 'Q': 778,
  31852. 'R': 722,
  31853. 'S': 667,
  31854. 'T': 611,
  31855. 'U': 722,
  31856. 'V': 667,
  31857. 'W': 944,
  31858. 'X': 667,
  31859. 'Y': 667,
  31860. 'Z': 611,
  31861. 'bracketleft': 278,
  31862. 'backslash': 278,
  31863. 'bracketright': 278,
  31864. 'asciicircum': 469,
  31865. 'underscore': 556,
  31866. 'quoteleft': 222,
  31867. 'a': 556,
  31868. 'b': 556,
  31869. 'c': 500,
  31870. 'd': 556,
  31871. 'e': 556,
  31872. 'f': 278,
  31873. 'g': 556,
  31874. 'h': 556,
  31875. 'i': 222,
  31876. 'j': 222,
  31877. 'k': 500,
  31878. 'l': 222,
  31879. 'm': 833,
  31880. 'n': 556,
  31881. 'o': 556,
  31882. 'p': 556,
  31883. 'q': 556,
  31884. 'r': 333,
  31885. 's': 500,
  31886. 't': 278,
  31887. 'u': 556,
  31888. 'v': 500,
  31889. 'w': 722,
  31890. 'x': 500,
  31891. 'y': 500,
  31892. 'z': 500,
  31893. 'braceleft': 334,
  31894. 'bar': 260,
  31895. 'braceright': 334,
  31896. 'asciitilde': 584,
  31897. 'exclamdown': 333,
  31898. 'cent': 556,
  31899. 'sterling': 556,
  31900. 'fraction': 167,
  31901. 'yen': 556,
  31902. 'florin': 556,
  31903. 'section': 556,
  31904. 'currency': 556,
  31905. 'quotesingle': 191,
  31906. 'quotedblleft': 333,
  31907. 'guillemotleft': 556,
  31908. 'guilsinglleft': 333,
  31909. 'guilsinglright': 333,
  31910. 'fi': 500,
  31911. 'fl': 500,
  31912. 'endash': 556,
  31913. 'dagger': 556,
  31914. 'daggerdbl': 556,
  31915. 'periodcentered': 278,
  31916. 'paragraph': 537,
  31917. 'bullet': 350,
  31918. 'quotesinglbase': 222,
  31919. 'quotedblbase': 333,
  31920. 'quotedblright': 333,
  31921. 'guillemotright': 556,
  31922. 'ellipsis': 1000,
  31923. 'perthousand': 1000,
  31924. 'questiondown': 611,
  31925. 'grave': 333,
  31926. 'acute': 333,
  31927. 'circumflex': 333,
  31928. 'tilde': 333,
  31929. 'macron': 333,
  31930. 'breve': 333,
  31931. 'dotaccent': 333,
  31932. 'dieresis': 333,
  31933. 'ring': 333,
  31934. 'cedilla': 333,
  31935. 'hungarumlaut': 333,
  31936. 'ogonek': 333,
  31937. 'caron': 333,
  31938. 'emdash': 1000,
  31939. 'AE': 1000,
  31940. 'ordfeminine': 370,
  31941. 'Lslash': 556,
  31942. 'Oslash': 778,
  31943. 'OE': 1000,
  31944. 'ordmasculine': 365,
  31945. 'ae': 889,
  31946. 'dotlessi': 278,
  31947. 'lslash': 222,
  31948. 'oslash': 611,
  31949. 'oe': 944,
  31950. 'germandbls': 611,
  31951. 'Idieresis': 278,
  31952. 'eacute': 556,
  31953. 'abreve': 556,
  31954. 'uhungarumlaut': 556,
  31955. 'ecaron': 556,
  31956. 'Ydieresis': 667,
  31957. 'divide': 584,
  31958. 'Yacute': 667,
  31959. 'Acircumflex': 667,
  31960. 'aacute': 556,
  31961. 'Ucircumflex': 722,
  31962. 'yacute': 500,
  31963. 'scommaaccent': 500,
  31964. 'ecircumflex': 556,
  31965. 'Uring': 722,
  31966. 'Udieresis': 722,
  31967. 'aogonek': 556,
  31968. 'Uacute': 722,
  31969. 'uogonek': 556,
  31970. 'Edieresis': 667,
  31971. 'Dcroat': 722,
  31972. 'commaaccent': 250,
  31973. 'copyright': 737,
  31974. 'Emacron': 667,
  31975. 'ccaron': 500,
  31976. 'aring': 556,
  31977. 'Ncommaaccent': 722,
  31978. 'lacute': 222,
  31979. 'agrave': 556,
  31980. 'Tcommaaccent': 611,
  31981. 'Cacute': 722,
  31982. 'atilde': 556,
  31983. 'Edotaccent': 667,
  31984. 'scaron': 500,
  31985. 'scedilla': 500,
  31986. 'iacute': 278,
  31987. 'lozenge': 471,
  31988. 'Rcaron': 722,
  31989. 'Gcommaaccent': 778,
  31990. 'ucircumflex': 556,
  31991. 'acircumflex': 556,
  31992. 'Amacron': 667,
  31993. 'rcaron': 333,
  31994. 'ccedilla': 500,
  31995. 'Zdotaccent': 611,
  31996. 'Thorn': 667,
  31997. 'Omacron': 778,
  31998. 'Racute': 722,
  31999. 'Sacute': 667,
  32000. 'dcaron': 643,
  32001. 'Umacron': 722,
  32002. 'uring': 556,
  32003. 'threesuperior': 333,
  32004. 'Ograve': 778,
  32005. 'Agrave': 667,
  32006. 'Abreve': 667,
  32007. 'multiply': 584,
  32008. 'uacute': 556,
  32009. 'Tcaron': 611,
  32010. 'partialdiff': 476,
  32011. 'ydieresis': 500,
  32012. 'Nacute': 722,
  32013. 'icircumflex': 278,
  32014. 'Ecircumflex': 667,
  32015. 'adieresis': 556,
  32016. 'edieresis': 556,
  32017. 'cacute': 500,
  32018. 'nacute': 556,
  32019. 'umacron': 556,
  32020. 'Ncaron': 722,
  32021. 'Iacute': 278,
  32022. 'plusminus': 584,
  32023. 'brokenbar': 260,
  32024. 'registered': 737,
  32025. 'Gbreve': 778,
  32026. 'Idotaccent': 278,
  32027. 'summation': 600,
  32028. 'Egrave': 667,
  32029. 'racute': 333,
  32030. 'omacron': 556,
  32031. 'Zacute': 611,
  32032. 'Zcaron': 611,
  32033. 'greaterequal': 549,
  32034. 'Eth': 722,
  32035. 'Ccedilla': 722,
  32036. 'lcommaaccent': 222,
  32037. 'tcaron': 317,
  32038. 'eogonek': 556,
  32039. 'Uogonek': 722,
  32040. 'Aacute': 667,
  32041. 'Adieresis': 667,
  32042. 'egrave': 556,
  32043. 'zacute': 500,
  32044. 'iogonek': 222,
  32045. 'Oacute': 778,
  32046. 'oacute': 556,
  32047. 'amacron': 556,
  32048. 'sacute': 500,
  32049. 'idieresis': 278,
  32050. 'Ocircumflex': 778,
  32051. 'Ugrave': 722,
  32052. 'Delta': 612,
  32053. 'thorn': 556,
  32054. 'twosuperior': 333,
  32055. 'Odieresis': 778,
  32056. 'mu': 556,
  32057. 'igrave': 278,
  32058. 'ohungarumlaut': 556,
  32059. 'Eogonek': 667,
  32060. 'dcroat': 556,
  32061. 'threequarters': 834,
  32062. 'Scedilla': 667,
  32063. 'lcaron': 299,
  32064. 'Kcommaaccent': 667,
  32065. 'Lacute': 556,
  32066. 'trademark': 1000,
  32067. 'edotaccent': 556,
  32068. 'Igrave': 278,
  32069. 'Imacron': 278,
  32070. 'Lcaron': 556,
  32071. 'onehalf': 834,
  32072. 'lessequal': 549,
  32073. 'ocircumflex': 556,
  32074. 'ntilde': 556,
  32075. 'Uhungarumlaut': 722,
  32076. 'Eacute': 667,
  32077. 'emacron': 556,
  32078. 'gbreve': 556,
  32079. 'onequarter': 834,
  32080. 'Scaron': 667,
  32081. 'Scommaaccent': 667,
  32082. 'Ohungarumlaut': 778,
  32083. 'degree': 400,
  32084. 'ograve': 556,
  32085. 'Ccaron': 722,
  32086. 'ugrave': 556,
  32087. 'radical': 453,
  32088. 'Dcaron': 722,
  32089. 'rcommaaccent': 333,
  32090. 'Ntilde': 722,
  32091. 'otilde': 556,
  32092. 'Rcommaaccent': 722,
  32093. 'Lcommaaccent': 556,
  32094. 'Atilde': 667,
  32095. 'Aogonek': 667,
  32096. 'Aring': 667,
  32097. 'Otilde': 778,
  32098. 'zdotaccent': 500,
  32099. 'Ecaron': 667,
  32100. 'Iogonek': 278,
  32101. 'kcommaaccent': 500,
  32102. 'minus': 584,
  32103. 'Icircumflex': 278,
  32104. 'ncaron': 556,
  32105. 'tcommaaccent': 278,
  32106. 'logicalnot': 584,
  32107. 'odieresis': 556,
  32108. 'udieresis': 556,
  32109. 'notequal': 549,
  32110. 'gcommaaccent': 556,
  32111. 'eth': 556,
  32112. 'zcaron': 500,
  32113. 'ncommaaccent': 556,
  32114. 'onesuperior': 333,
  32115. 'imacron': 278,
  32116. 'Euro': 556
  32117. },
  32118. 'Symbol': {
  32119. 'space': 250,
  32120. 'exclam': 333,
  32121. 'universal': 713,
  32122. 'numbersign': 500,
  32123. 'existential': 549,
  32124. 'percent': 833,
  32125. 'ampersand': 778,
  32126. 'suchthat': 439,
  32127. 'parenleft': 333,
  32128. 'parenright': 333,
  32129. 'asteriskmath': 500,
  32130. 'plus': 549,
  32131. 'comma': 250,
  32132. 'minus': 549,
  32133. 'period': 250,
  32134. 'slash': 278,
  32135. 'zero': 500,
  32136. 'one': 500,
  32137. 'two': 500,
  32138. 'three': 500,
  32139. 'four': 500,
  32140. 'five': 500,
  32141. 'six': 500,
  32142. 'seven': 500,
  32143. 'eight': 500,
  32144. 'nine': 500,
  32145. 'colon': 278,
  32146. 'semicolon': 278,
  32147. 'less': 549,
  32148. 'equal': 549,
  32149. 'greater': 549,
  32150. 'question': 444,
  32151. 'congruent': 549,
  32152. 'Alpha': 722,
  32153. 'Beta': 667,
  32154. 'Chi': 722,
  32155. 'Delta': 612,
  32156. 'Epsilon': 611,
  32157. 'Phi': 763,
  32158. 'Gamma': 603,
  32159. 'Eta': 722,
  32160. 'Iota': 333,
  32161. 'theta1': 631,
  32162. 'Kappa': 722,
  32163. 'Lambda': 686,
  32164. 'Mu': 889,
  32165. 'Nu': 722,
  32166. 'Omicron': 722,
  32167. 'Pi': 768,
  32168. 'Theta': 741,
  32169. 'Rho': 556,
  32170. 'Sigma': 592,
  32171. 'Tau': 611,
  32172. 'Upsilon': 690,
  32173. 'sigma1': 439,
  32174. 'Omega': 768,
  32175. 'Xi': 645,
  32176. 'Psi': 795,
  32177. 'Zeta': 611,
  32178. 'bracketleft': 333,
  32179. 'therefore': 863,
  32180. 'bracketright': 333,
  32181. 'perpendicular': 658,
  32182. 'underscore': 500,
  32183. 'radicalex': 500,
  32184. 'alpha': 631,
  32185. 'beta': 549,
  32186. 'chi': 549,
  32187. 'delta': 494,
  32188. 'epsilon': 439,
  32189. 'phi': 521,
  32190. 'gamma': 411,
  32191. 'eta': 603,
  32192. 'iota': 329,
  32193. 'phi1': 603,
  32194. 'kappa': 549,
  32195. 'lambda': 549,
  32196. 'mu': 576,
  32197. 'nu': 521,
  32198. 'omicron': 549,
  32199. 'pi': 549,
  32200. 'theta': 521,
  32201. 'rho': 549,
  32202. 'sigma': 603,
  32203. 'tau': 439,
  32204. 'upsilon': 576,
  32205. 'omega1': 713,
  32206. 'omega': 686,
  32207. 'xi': 493,
  32208. 'psi': 686,
  32209. 'zeta': 494,
  32210. 'braceleft': 480,
  32211. 'bar': 200,
  32212. 'braceright': 480,
  32213. 'similar': 549,
  32214. 'Euro': 750,
  32215. 'Upsilon1': 620,
  32216. 'minute': 247,
  32217. 'lessequal': 549,
  32218. 'fraction': 167,
  32219. 'infinity': 713,
  32220. 'florin': 500,
  32221. 'club': 753,
  32222. 'diamond': 753,
  32223. 'heart': 753,
  32224. 'spade': 753,
  32225. 'arrowboth': 1042,
  32226. 'arrowleft': 987,
  32227. 'arrowup': 603,
  32228. 'arrowright': 987,
  32229. 'arrowdown': 603,
  32230. 'degree': 400,
  32231. 'plusminus': 549,
  32232. 'second': 411,
  32233. 'greaterequal': 549,
  32234. 'multiply': 549,
  32235. 'proportional': 713,
  32236. 'partialdiff': 494,
  32237. 'bullet': 460,
  32238. 'divide': 549,
  32239. 'notequal': 549,
  32240. 'equivalence': 549,
  32241. 'approxequal': 549,
  32242. 'ellipsis': 1000,
  32243. 'arrowvertex': 603,
  32244. 'arrowhorizex': 1000,
  32245. 'carriagereturn': 658,
  32246. 'aleph': 823,
  32247. 'Ifraktur': 686,
  32248. 'Rfraktur': 795,
  32249. 'weierstrass': 987,
  32250. 'circlemultiply': 768,
  32251. 'circleplus': 768,
  32252. 'emptyset': 823,
  32253. 'intersection': 768,
  32254. 'union': 768,
  32255. 'propersuperset': 713,
  32256. 'reflexsuperset': 713,
  32257. 'notsubset': 713,
  32258. 'propersubset': 713,
  32259. 'reflexsubset': 713,
  32260. 'element': 713,
  32261. 'notelement': 713,
  32262. 'angle': 768,
  32263. 'gradient': 713,
  32264. 'registerserif': 790,
  32265. 'copyrightserif': 790,
  32266. 'trademarkserif': 890,
  32267. 'product': 823,
  32268. 'radical': 549,
  32269. 'dotmath': 250,
  32270. 'logicalnot': 713,
  32271. 'logicaland': 603,
  32272. 'logicalor': 603,
  32273. 'arrowdblboth': 1042,
  32274. 'arrowdblleft': 987,
  32275. 'arrowdblup': 603,
  32276. 'arrowdblright': 987,
  32277. 'arrowdbldown': 603,
  32278. 'lozenge': 494,
  32279. 'angleleft': 329,
  32280. 'registersans': 790,
  32281. 'copyrightsans': 790,
  32282. 'trademarksans': 786,
  32283. 'summation': 713,
  32284. 'parenlefttp': 384,
  32285. 'parenleftex': 384,
  32286. 'parenleftbt': 384,
  32287. 'bracketlefttp': 384,
  32288. 'bracketleftex': 384,
  32289. 'bracketleftbt': 384,
  32290. 'bracelefttp': 494,
  32291. 'braceleftmid': 494,
  32292. 'braceleftbt': 494,
  32293. 'braceex': 494,
  32294. 'angleright': 329,
  32295. 'integral': 274,
  32296. 'integraltp': 686,
  32297. 'integralex': 686,
  32298. 'integralbt': 686,
  32299. 'parenrighttp': 384,
  32300. 'parenrightex': 384,
  32301. 'parenrightbt': 384,
  32302. 'bracketrighttp': 384,
  32303. 'bracketrightex': 384,
  32304. 'bracketrightbt': 384,
  32305. 'bracerighttp': 494,
  32306. 'bracerightmid': 494,
  32307. 'bracerightbt': 494,
  32308. 'apple': 790
  32309. },
  32310. 'Times-Roman': {
  32311. 'space': 250,
  32312. 'exclam': 333,
  32313. 'quotedbl': 408,
  32314. 'numbersign': 500,
  32315. 'dollar': 500,
  32316. 'percent': 833,
  32317. 'ampersand': 778,
  32318. 'quoteright': 333,
  32319. 'parenleft': 333,
  32320. 'parenright': 333,
  32321. 'asterisk': 500,
  32322. 'plus': 564,
  32323. 'comma': 250,
  32324. 'hyphen': 333,
  32325. 'period': 250,
  32326. 'slash': 278,
  32327. 'zero': 500,
  32328. 'one': 500,
  32329. 'two': 500,
  32330. 'three': 500,
  32331. 'four': 500,
  32332. 'five': 500,
  32333. 'six': 500,
  32334. 'seven': 500,
  32335. 'eight': 500,
  32336. 'nine': 500,
  32337. 'colon': 278,
  32338. 'semicolon': 278,
  32339. 'less': 564,
  32340. 'equal': 564,
  32341. 'greater': 564,
  32342. 'question': 444,
  32343. 'at': 921,
  32344. 'A': 722,
  32345. 'B': 667,
  32346. 'C': 667,
  32347. 'D': 722,
  32348. 'E': 611,
  32349. 'F': 556,
  32350. 'G': 722,
  32351. 'H': 722,
  32352. 'I': 333,
  32353. 'J': 389,
  32354. 'K': 722,
  32355. 'L': 611,
  32356. 'M': 889,
  32357. 'N': 722,
  32358. 'O': 722,
  32359. 'P': 556,
  32360. 'Q': 722,
  32361. 'R': 667,
  32362. 'S': 556,
  32363. 'T': 611,
  32364. 'U': 722,
  32365. 'V': 722,
  32366. 'W': 944,
  32367. 'X': 722,
  32368. 'Y': 722,
  32369. 'Z': 611,
  32370. 'bracketleft': 333,
  32371. 'backslash': 278,
  32372. 'bracketright': 333,
  32373. 'asciicircum': 469,
  32374. 'underscore': 500,
  32375. 'quoteleft': 333,
  32376. 'a': 444,
  32377. 'b': 500,
  32378. 'c': 444,
  32379. 'd': 500,
  32380. 'e': 444,
  32381. 'f': 333,
  32382. 'g': 500,
  32383. 'h': 500,
  32384. 'i': 278,
  32385. 'j': 278,
  32386. 'k': 500,
  32387. 'l': 278,
  32388. 'm': 778,
  32389. 'n': 500,
  32390. 'o': 500,
  32391. 'p': 500,
  32392. 'q': 500,
  32393. 'r': 333,
  32394. 's': 389,
  32395. 't': 278,
  32396. 'u': 500,
  32397. 'v': 500,
  32398. 'w': 722,
  32399. 'x': 500,
  32400. 'y': 500,
  32401. 'z': 444,
  32402. 'braceleft': 480,
  32403. 'bar': 200,
  32404. 'braceright': 480,
  32405. 'asciitilde': 541,
  32406. 'exclamdown': 333,
  32407. 'cent': 500,
  32408. 'sterling': 500,
  32409. 'fraction': 167,
  32410. 'yen': 500,
  32411. 'florin': 500,
  32412. 'section': 500,
  32413. 'currency': 500,
  32414. 'quotesingle': 180,
  32415. 'quotedblleft': 444,
  32416. 'guillemotleft': 500,
  32417. 'guilsinglleft': 333,
  32418. 'guilsinglright': 333,
  32419. 'fi': 556,
  32420. 'fl': 556,
  32421. 'endash': 500,
  32422. 'dagger': 500,
  32423. 'daggerdbl': 500,
  32424. 'periodcentered': 250,
  32425. 'paragraph': 453,
  32426. 'bullet': 350,
  32427. 'quotesinglbase': 333,
  32428. 'quotedblbase': 444,
  32429. 'quotedblright': 444,
  32430. 'guillemotright': 500,
  32431. 'ellipsis': 1000,
  32432. 'perthousand': 1000,
  32433. 'questiondown': 444,
  32434. 'grave': 333,
  32435. 'acute': 333,
  32436. 'circumflex': 333,
  32437. 'tilde': 333,
  32438. 'macron': 333,
  32439. 'breve': 333,
  32440. 'dotaccent': 333,
  32441. 'dieresis': 333,
  32442. 'ring': 333,
  32443. 'cedilla': 333,
  32444. 'hungarumlaut': 333,
  32445. 'ogonek': 333,
  32446. 'caron': 333,
  32447. 'emdash': 1000,
  32448. 'AE': 889,
  32449. 'ordfeminine': 276,
  32450. 'Lslash': 611,
  32451. 'Oslash': 722,
  32452. 'OE': 889,
  32453. 'ordmasculine': 310,
  32454. 'ae': 667,
  32455. 'dotlessi': 278,
  32456. 'lslash': 278,
  32457. 'oslash': 500,
  32458. 'oe': 722,
  32459. 'germandbls': 500,
  32460. 'Idieresis': 333,
  32461. 'eacute': 444,
  32462. 'abreve': 444,
  32463. 'uhungarumlaut': 500,
  32464. 'ecaron': 444,
  32465. 'Ydieresis': 722,
  32466. 'divide': 564,
  32467. 'Yacute': 722,
  32468. 'Acircumflex': 722,
  32469. 'aacute': 444,
  32470. 'Ucircumflex': 722,
  32471. 'yacute': 500,
  32472. 'scommaaccent': 389,
  32473. 'ecircumflex': 444,
  32474. 'Uring': 722,
  32475. 'Udieresis': 722,
  32476. 'aogonek': 444,
  32477. 'Uacute': 722,
  32478. 'uogonek': 500,
  32479. 'Edieresis': 611,
  32480. 'Dcroat': 722,
  32481. 'commaaccent': 250,
  32482. 'copyright': 760,
  32483. 'Emacron': 611,
  32484. 'ccaron': 444,
  32485. 'aring': 444,
  32486. 'Ncommaaccent': 722,
  32487. 'lacute': 278,
  32488. 'agrave': 444,
  32489. 'Tcommaaccent': 611,
  32490. 'Cacute': 667,
  32491. 'atilde': 444,
  32492. 'Edotaccent': 611,
  32493. 'scaron': 389,
  32494. 'scedilla': 389,
  32495. 'iacute': 278,
  32496. 'lozenge': 471,
  32497. 'Rcaron': 667,
  32498. 'Gcommaaccent': 722,
  32499. 'ucircumflex': 500,
  32500. 'acircumflex': 444,
  32501. 'Amacron': 722,
  32502. 'rcaron': 333,
  32503. 'ccedilla': 444,
  32504. 'Zdotaccent': 611,
  32505. 'Thorn': 556,
  32506. 'Omacron': 722,
  32507. 'Racute': 667,
  32508. 'Sacute': 556,
  32509. 'dcaron': 588,
  32510. 'Umacron': 722,
  32511. 'uring': 500,
  32512. 'threesuperior': 300,
  32513. 'Ograve': 722,
  32514. 'Agrave': 722,
  32515. 'Abreve': 722,
  32516. 'multiply': 564,
  32517. 'uacute': 500,
  32518. 'Tcaron': 611,
  32519. 'partialdiff': 476,
  32520. 'ydieresis': 500,
  32521. 'Nacute': 722,
  32522. 'icircumflex': 278,
  32523. 'Ecircumflex': 611,
  32524. 'adieresis': 444,
  32525. 'edieresis': 444,
  32526. 'cacute': 444,
  32527. 'nacute': 500,
  32528. 'umacron': 500,
  32529. 'Ncaron': 722,
  32530. 'Iacute': 333,
  32531. 'plusminus': 564,
  32532. 'brokenbar': 200,
  32533. 'registered': 760,
  32534. 'Gbreve': 722,
  32535. 'Idotaccent': 333,
  32536. 'summation': 600,
  32537. 'Egrave': 611,
  32538. 'racute': 333,
  32539. 'omacron': 500,
  32540. 'Zacute': 611,
  32541. 'Zcaron': 611,
  32542. 'greaterequal': 549,
  32543. 'Eth': 722,
  32544. 'Ccedilla': 667,
  32545. 'lcommaaccent': 278,
  32546. 'tcaron': 326,
  32547. 'eogonek': 444,
  32548. 'Uogonek': 722,
  32549. 'Aacute': 722,
  32550. 'Adieresis': 722,
  32551. 'egrave': 444,
  32552. 'zacute': 444,
  32553. 'iogonek': 278,
  32554. 'Oacute': 722,
  32555. 'oacute': 500,
  32556. 'amacron': 444,
  32557. 'sacute': 389,
  32558. 'idieresis': 278,
  32559. 'Ocircumflex': 722,
  32560. 'Ugrave': 722,
  32561. 'Delta': 612,
  32562. 'thorn': 500,
  32563. 'twosuperior': 300,
  32564. 'Odieresis': 722,
  32565. 'mu': 500,
  32566. 'igrave': 278,
  32567. 'ohungarumlaut': 500,
  32568. 'Eogonek': 611,
  32569. 'dcroat': 500,
  32570. 'threequarters': 750,
  32571. 'Scedilla': 556,
  32572. 'lcaron': 344,
  32573. 'Kcommaaccent': 722,
  32574. 'Lacute': 611,
  32575. 'trademark': 980,
  32576. 'edotaccent': 444,
  32577. 'Igrave': 333,
  32578. 'Imacron': 333,
  32579. 'Lcaron': 611,
  32580. 'onehalf': 750,
  32581. 'lessequal': 549,
  32582. 'ocircumflex': 500,
  32583. 'ntilde': 500,
  32584. 'Uhungarumlaut': 722,
  32585. 'Eacute': 611,
  32586. 'emacron': 444,
  32587. 'gbreve': 500,
  32588. 'onequarter': 750,
  32589. 'Scaron': 556,
  32590. 'Scommaaccent': 556,
  32591. 'Ohungarumlaut': 722,
  32592. 'degree': 400,
  32593. 'ograve': 500,
  32594. 'Ccaron': 667,
  32595. 'ugrave': 500,
  32596. 'radical': 453,
  32597. 'Dcaron': 722,
  32598. 'rcommaaccent': 333,
  32599. 'Ntilde': 722,
  32600. 'otilde': 500,
  32601. 'Rcommaaccent': 667,
  32602. 'Lcommaaccent': 611,
  32603. 'Atilde': 722,
  32604. 'Aogonek': 722,
  32605. 'Aring': 722,
  32606. 'Otilde': 722,
  32607. 'zdotaccent': 444,
  32608. 'Ecaron': 611,
  32609. 'Iogonek': 333,
  32610. 'kcommaaccent': 500,
  32611. 'minus': 564,
  32612. 'Icircumflex': 333,
  32613. 'ncaron': 500,
  32614. 'tcommaaccent': 278,
  32615. 'logicalnot': 564,
  32616. 'odieresis': 500,
  32617. 'udieresis': 500,
  32618. 'notequal': 549,
  32619. 'gcommaaccent': 500,
  32620. 'eth': 500,
  32621. 'zcaron': 444,
  32622. 'ncommaaccent': 500,
  32623. 'onesuperior': 300,
  32624. 'imacron': 278,
  32625. 'Euro': 500
  32626. },
  32627. 'Times-Bold': {
  32628. 'space': 250,
  32629. 'exclam': 333,
  32630. 'quotedbl': 555,
  32631. 'numbersign': 500,
  32632. 'dollar': 500,
  32633. 'percent': 1000,
  32634. 'ampersand': 833,
  32635. 'quoteright': 333,
  32636. 'parenleft': 333,
  32637. 'parenright': 333,
  32638. 'asterisk': 500,
  32639. 'plus': 570,
  32640. 'comma': 250,
  32641. 'hyphen': 333,
  32642. 'period': 250,
  32643. 'slash': 278,
  32644. 'zero': 500,
  32645. 'one': 500,
  32646. 'two': 500,
  32647. 'three': 500,
  32648. 'four': 500,
  32649. 'five': 500,
  32650. 'six': 500,
  32651. 'seven': 500,
  32652. 'eight': 500,
  32653. 'nine': 500,
  32654. 'colon': 333,
  32655. 'semicolon': 333,
  32656. 'less': 570,
  32657. 'equal': 570,
  32658. 'greater': 570,
  32659. 'question': 500,
  32660. 'at': 930,
  32661. 'A': 722,
  32662. 'B': 667,
  32663. 'C': 722,
  32664. 'D': 722,
  32665. 'E': 667,
  32666. 'F': 611,
  32667. 'G': 778,
  32668. 'H': 778,
  32669. 'I': 389,
  32670. 'J': 500,
  32671. 'K': 778,
  32672. 'L': 667,
  32673. 'M': 944,
  32674. 'N': 722,
  32675. 'O': 778,
  32676. 'P': 611,
  32677. 'Q': 778,
  32678. 'R': 722,
  32679. 'S': 556,
  32680. 'T': 667,
  32681. 'U': 722,
  32682. 'V': 722,
  32683. 'W': 1000,
  32684. 'X': 722,
  32685. 'Y': 722,
  32686. 'Z': 667,
  32687. 'bracketleft': 333,
  32688. 'backslash': 278,
  32689. 'bracketright': 333,
  32690. 'asciicircum': 581,
  32691. 'underscore': 500,
  32692. 'quoteleft': 333,
  32693. 'a': 500,
  32694. 'b': 556,
  32695. 'c': 444,
  32696. 'd': 556,
  32697. 'e': 444,
  32698. 'f': 333,
  32699. 'g': 500,
  32700. 'h': 556,
  32701. 'i': 278,
  32702. 'j': 333,
  32703. 'k': 556,
  32704. 'l': 278,
  32705. 'm': 833,
  32706. 'n': 556,
  32707. 'o': 500,
  32708. 'p': 556,
  32709. 'q': 556,
  32710. 'r': 444,
  32711. 's': 389,
  32712. 't': 333,
  32713. 'u': 556,
  32714. 'v': 500,
  32715. 'w': 722,
  32716. 'x': 500,
  32717. 'y': 500,
  32718. 'z': 444,
  32719. 'braceleft': 394,
  32720. 'bar': 220,
  32721. 'braceright': 394,
  32722. 'asciitilde': 520,
  32723. 'exclamdown': 333,
  32724. 'cent': 500,
  32725. 'sterling': 500,
  32726. 'fraction': 167,
  32727. 'yen': 500,
  32728. 'florin': 500,
  32729. 'section': 500,
  32730. 'currency': 500,
  32731. 'quotesingle': 278,
  32732. 'quotedblleft': 500,
  32733. 'guillemotleft': 500,
  32734. 'guilsinglleft': 333,
  32735. 'guilsinglright': 333,
  32736. 'fi': 556,
  32737. 'fl': 556,
  32738. 'endash': 500,
  32739. 'dagger': 500,
  32740. 'daggerdbl': 500,
  32741. 'periodcentered': 250,
  32742. 'paragraph': 540,
  32743. 'bullet': 350,
  32744. 'quotesinglbase': 333,
  32745. 'quotedblbase': 500,
  32746. 'quotedblright': 500,
  32747. 'guillemotright': 500,
  32748. 'ellipsis': 1000,
  32749. 'perthousand': 1000,
  32750. 'questiondown': 500,
  32751. 'grave': 333,
  32752. 'acute': 333,
  32753. 'circumflex': 333,
  32754. 'tilde': 333,
  32755. 'macron': 333,
  32756. 'breve': 333,
  32757. 'dotaccent': 333,
  32758. 'dieresis': 333,
  32759. 'ring': 333,
  32760. 'cedilla': 333,
  32761. 'hungarumlaut': 333,
  32762. 'ogonek': 333,
  32763. 'caron': 333,
  32764. 'emdash': 1000,
  32765. 'AE': 1000,
  32766. 'ordfeminine': 300,
  32767. 'Lslash': 667,
  32768. 'Oslash': 778,
  32769. 'OE': 1000,
  32770. 'ordmasculine': 330,
  32771. 'ae': 722,
  32772. 'dotlessi': 278,
  32773. 'lslash': 278,
  32774. 'oslash': 500,
  32775. 'oe': 722,
  32776. 'germandbls': 556,
  32777. 'Idieresis': 389,
  32778. 'eacute': 444,
  32779. 'abreve': 500,
  32780. 'uhungarumlaut': 556,
  32781. 'ecaron': 444,
  32782. 'Ydieresis': 722,
  32783. 'divide': 570,
  32784. 'Yacute': 722,
  32785. 'Acircumflex': 722,
  32786. 'aacute': 500,
  32787. 'Ucircumflex': 722,
  32788. 'yacute': 500,
  32789. 'scommaaccent': 389,
  32790. 'ecircumflex': 444,
  32791. 'Uring': 722,
  32792. 'Udieresis': 722,
  32793. 'aogonek': 500,
  32794. 'Uacute': 722,
  32795. 'uogonek': 556,
  32796. 'Edieresis': 667,
  32797. 'Dcroat': 722,
  32798. 'commaaccent': 250,
  32799. 'copyright': 747,
  32800. 'Emacron': 667,
  32801. 'ccaron': 444,
  32802. 'aring': 500,
  32803. 'Ncommaaccent': 722,
  32804. 'lacute': 278,
  32805. 'agrave': 500,
  32806. 'Tcommaaccent': 667,
  32807. 'Cacute': 722,
  32808. 'atilde': 500,
  32809. 'Edotaccent': 667,
  32810. 'scaron': 389,
  32811. 'scedilla': 389,
  32812. 'iacute': 278,
  32813. 'lozenge': 494,
  32814. 'Rcaron': 722,
  32815. 'Gcommaaccent': 778,
  32816. 'ucircumflex': 556,
  32817. 'acircumflex': 500,
  32818. 'Amacron': 722,
  32819. 'rcaron': 444,
  32820. 'ccedilla': 444,
  32821. 'Zdotaccent': 667,
  32822. 'Thorn': 611,
  32823. 'Omacron': 778,
  32824. 'Racute': 722,
  32825. 'Sacute': 556,
  32826. 'dcaron': 672,
  32827. 'Umacron': 722,
  32828. 'uring': 556,
  32829. 'threesuperior': 300,
  32830. 'Ograve': 778,
  32831. 'Agrave': 722,
  32832. 'Abreve': 722,
  32833. 'multiply': 570,
  32834. 'uacute': 556,
  32835. 'Tcaron': 667,
  32836. 'partialdiff': 494,
  32837. 'ydieresis': 500,
  32838. 'Nacute': 722,
  32839. 'icircumflex': 278,
  32840. 'Ecircumflex': 667,
  32841. 'adieresis': 500,
  32842. 'edieresis': 444,
  32843. 'cacute': 444,
  32844. 'nacute': 556,
  32845. 'umacron': 556,
  32846. 'Ncaron': 722,
  32847. 'Iacute': 389,
  32848. 'plusminus': 570,
  32849. 'brokenbar': 220,
  32850. 'registered': 747,
  32851. 'Gbreve': 778,
  32852. 'Idotaccent': 389,
  32853. 'summation': 600,
  32854. 'Egrave': 667,
  32855. 'racute': 444,
  32856. 'omacron': 500,
  32857. 'Zacute': 667,
  32858. 'Zcaron': 667,
  32859. 'greaterequal': 549,
  32860. 'Eth': 722,
  32861. 'Ccedilla': 722,
  32862. 'lcommaaccent': 278,
  32863. 'tcaron': 416,
  32864. 'eogonek': 444,
  32865. 'Uogonek': 722,
  32866. 'Aacute': 722,
  32867. 'Adieresis': 722,
  32868. 'egrave': 444,
  32869. 'zacute': 444,
  32870. 'iogonek': 278,
  32871. 'Oacute': 778,
  32872. 'oacute': 500,
  32873. 'amacron': 500,
  32874. 'sacute': 389,
  32875. 'idieresis': 278,
  32876. 'Ocircumflex': 778,
  32877. 'Ugrave': 722,
  32878. 'Delta': 612,
  32879. 'thorn': 556,
  32880. 'twosuperior': 300,
  32881. 'Odieresis': 778,
  32882. 'mu': 556,
  32883. 'igrave': 278,
  32884. 'ohungarumlaut': 500,
  32885. 'Eogonek': 667,
  32886. 'dcroat': 556,
  32887. 'threequarters': 750,
  32888. 'Scedilla': 556,
  32889. 'lcaron': 394,
  32890. 'Kcommaaccent': 778,
  32891. 'Lacute': 667,
  32892. 'trademark': 1000,
  32893. 'edotaccent': 444,
  32894. 'Igrave': 389,
  32895. 'Imacron': 389,
  32896. 'Lcaron': 667,
  32897. 'onehalf': 750,
  32898. 'lessequal': 549,
  32899. 'ocircumflex': 500,
  32900. 'ntilde': 556,
  32901. 'Uhungarumlaut': 722,
  32902. 'Eacute': 667,
  32903. 'emacron': 444,
  32904. 'gbreve': 500,
  32905. 'onequarter': 750,
  32906. 'Scaron': 556,
  32907. 'Scommaaccent': 556,
  32908. 'Ohungarumlaut': 778,
  32909. 'degree': 400,
  32910. 'ograve': 500,
  32911. 'Ccaron': 722,
  32912. 'ugrave': 556,
  32913. 'radical': 549,
  32914. 'Dcaron': 722,
  32915. 'rcommaaccent': 444,
  32916. 'Ntilde': 722,
  32917. 'otilde': 500,
  32918. 'Rcommaaccent': 722,
  32919. 'Lcommaaccent': 667,
  32920. 'Atilde': 722,
  32921. 'Aogonek': 722,
  32922. 'Aring': 722,
  32923. 'Otilde': 778,
  32924. 'zdotaccent': 444,
  32925. 'Ecaron': 667,
  32926. 'Iogonek': 389,
  32927. 'kcommaaccent': 556,
  32928. 'minus': 570,
  32929. 'Icircumflex': 389,
  32930. 'ncaron': 556,
  32931. 'tcommaaccent': 333,
  32932. 'logicalnot': 570,
  32933. 'odieresis': 500,
  32934. 'udieresis': 556,
  32935. 'notequal': 549,
  32936. 'gcommaaccent': 500,
  32937. 'eth': 500,
  32938. 'zcaron': 444,
  32939. 'ncommaaccent': 556,
  32940. 'onesuperior': 300,
  32941. 'imacron': 278,
  32942. 'Euro': 500
  32943. },
  32944. 'Times-BoldItalic': {
  32945. 'space': 250,
  32946. 'exclam': 389,
  32947. 'quotedbl': 555,
  32948. 'numbersign': 500,
  32949. 'dollar': 500,
  32950. 'percent': 833,
  32951. 'ampersand': 778,
  32952. 'quoteright': 333,
  32953. 'parenleft': 333,
  32954. 'parenright': 333,
  32955. 'asterisk': 500,
  32956. 'plus': 570,
  32957. 'comma': 250,
  32958. 'hyphen': 333,
  32959. 'period': 250,
  32960. 'slash': 278,
  32961. 'zero': 500,
  32962. 'one': 500,
  32963. 'two': 500,
  32964. 'three': 500,
  32965. 'four': 500,
  32966. 'five': 500,
  32967. 'six': 500,
  32968. 'seven': 500,
  32969. 'eight': 500,
  32970. 'nine': 500,
  32971. 'colon': 333,
  32972. 'semicolon': 333,
  32973. 'less': 570,
  32974. 'equal': 570,
  32975. 'greater': 570,
  32976. 'question': 500,
  32977. 'at': 832,
  32978. 'A': 667,
  32979. 'B': 667,
  32980. 'C': 667,
  32981. 'D': 722,
  32982. 'E': 667,
  32983. 'F': 667,
  32984. 'G': 722,
  32985. 'H': 778,
  32986. 'I': 389,
  32987. 'J': 500,
  32988. 'K': 667,
  32989. 'L': 611,
  32990. 'M': 889,
  32991. 'N': 722,
  32992. 'O': 722,
  32993. 'P': 611,
  32994. 'Q': 722,
  32995. 'R': 667,
  32996. 'S': 556,
  32997. 'T': 611,
  32998. 'U': 722,
  32999. 'V': 667,
  33000. 'W': 889,
  33001. 'X': 667,
  33002. 'Y': 611,
  33003. 'Z': 611,
  33004. 'bracketleft': 333,
  33005. 'backslash': 278,
  33006. 'bracketright': 333,
  33007. 'asciicircum': 570,
  33008. 'underscore': 500,
  33009. 'quoteleft': 333,
  33010. 'a': 500,
  33011. 'b': 500,
  33012. 'c': 444,
  33013. 'd': 500,
  33014. 'e': 444,
  33015. 'f': 333,
  33016. 'g': 500,
  33017. 'h': 556,
  33018. 'i': 278,
  33019. 'j': 278,
  33020. 'k': 500,
  33021. 'l': 278,
  33022. 'm': 778,
  33023. 'n': 556,
  33024. 'o': 500,
  33025. 'p': 500,
  33026. 'q': 500,
  33027. 'r': 389,
  33028. 's': 389,
  33029. 't': 278,
  33030. 'u': 556,
  33031. 'v': 444,
  33032. 'w': 667,
  33033. 'x': 500,
  33034. 'y': 444,
  33035. 'z': 389,
  33036. 'braceleft': 348,
  33037. 'bar': 220,
  33038. 'braceright': 348,
  33039. 'asciitilde': 570,
  33040. 'exclamdown': 389,
  33041. 'cent': 500,
  33042. 'sterling': 500,
  33043. 'fraction': 167,
  33044. 'yen': 500,
  33045. 'florin': 500,
  33046. 'section': 500,
  33047. 'currency': 500,
  33048. 'quotesingle': 278,
  33049. 'quotedblleft': 500,
  33050. 'guillemotleft': 500,
  33051. 'guilsinglleft': 333,
  33052. 'guilsinglright': 333,
  33053. 'fi': 556,
  33054. 'fl': 556,
  33055. 'endash': 500,
  33056. 'dagger': 500,
  33057. 'daggerdbl': 500,
  33058. 'periodcentered': 250,
  33059. 'paragraph': 500,
  33060. 'bullet': 350,
  33061. 'quotesinglbase': 333,
  33062. 'quotedblbase': 500,
  33063. 'quotedblright': 500,
  33064. 'guillemotright': 500,
  33065. 'ellipsis': 1000,
  33066. 'perthousand': 1000,
  33067. 'questiondown': 500,
  33068. 'grave': 333,
  33069. 'acute': 333,
  33070. 'circumflex': 333,
  33071. 'tilde': 333,
  33072. 'macron': 333,
  33073. 'breve': 333,
  33074. 'dotaccent': 333,
  33075. 'dieresis': 333,
  33076. 'ring': 333,
  33077. 'cedilla': 333,
  33078. 'hungarumlaut': 333,
  33079. 'ogonek': 333,
  33080. 'caron': 333,
  33081. 'emdash': 1000,
  33082. 'AE': 944,
  33083. 'ordfeminine': 266,
  33084. 'Lslash': 611,
  33085. 'Oslash': 722,
  33086. 'OE': 944,
  33087. 'ordmasculine': 300,
  33088. 'ae': 722,
  33089. 'dotlessi': 278,
  33090. 'lslash': 278,
  33091. 'oslash': 500,
  33092. 'oe': 722,
  33093. 'germandbls': 500,
  33094. 'Idieresis': 389,
  33095. 'eacute': 444,
  33096. 'abreve': 500,
  33097. 'uhungarumlaut': 556,
  33098. 'ecaron': 444,
  33099. 'Ydieresis': 611,
  33100. 'divide': 570,
  33101. 'Yacute': 611,
  33102. 'Acircumflex': 667,
  33103. 'aacute': 500,
  33104. 'Ucircumflex': 722,
  33105. 'yacute': 444,
  33106. 'scommaaccent': 389,
  33107. 'ecircumflex': 444,
  33108. 'Uring': 722,
  33109. 'Udieresis': 722,
  33110. 'aogonek': 500,
  33111. 'Uacute': 722,
  33112. 'uogonek': 556,
  33113. 'Edieresis': 667,
  33114. 'Dcroat': 722,
  33115. 'commaaccent': 250,
  33116. 'copyright': 747,
  33117. 'Emacron': 667,
  33118. 'ccaron': 444,
  33119. 'aring': 500,
  33120. 'Ncommaaccent': 722,
  33121. 'lacute': 278,
  33122. 'agrave': 500,
  33123. 'Tcommaaccent': 611,
  33124. 'Cacute': 667,
  33125. 'atilde': 500,
  33126. 'Edotaccent': 667,
  33127. 'scaron': 389,
  33128. 'scedilla': 389,
  33129. 'iacute': 278,
  33130. 'lozenge': 494,
  33131. 'Rcaron': 667,
  33132. 'Gcommaaccent': 722,
  33133. 'ucircumflex': 556,
  33134. 'acircumflex': 500,
  33135. 'Amacron': 667,
  33136. 'rcaron': 389,
  33137. 'ccedilla': 444,
  33138. 'Zdotaccent': 611,
  33139. 'Thorn': 611,
  33140. 'Omacron': 722,
  33141. 'Racute': 667,
  33142. 'Sacute': 556,
  33143. 'dcaron': 608,
  33144. 'Umacron': 722,
  33145. 'uring': 556,
  33146. 'threesuperior': 300,
  33147. 'Ograve': 722,
  33148. 'Agrave': 667,
  33149. 'Abreve': 667,
  33150. 'multiply': 570,
  33151. 'uacute': 556,
  33152. 'Tcaron': 611,
  33153. 'partialdiff': 494,
  33154. 'ydieresis': 444,
  33155. 'Nacute': 722,
  33156. 'icircumflex': 278,
  33157. 'Ecircumflex': 667,
  33158. 'adieresis': 500,
  33159. 'edieresis': 444,
  33160. 'cacute': 444,
  33161. 'nacute': 556,
  33162. 'umacron': 556,
  33163. 'Ncaron': 722,
  33164. 'Iacute': 389,
  33165. 'plusminus': 570,
  33166. 'brokenbar': 220,
  33167. 'registered': 747,
  33168. 'Gbreve': 722,
  33169. 'Idotaccent': 389,
  33170. 'summation': 600,
  33171. 'Egrave': 667,
  33172. 'racute': 389,
  33173. 'omacron': 500,
  33174. 'Zacute': 611,
  33175. 'Zcaron': 611,
  33176. 'greaterequal': 549,
  33177. 'Eth': 722,
  33178. 'Ccedilla': 667,
  33179. 'lcommaaccent': 278,
  33180. 'tcaron': 366,
  33181. 'eogonek': 444,
  33182. 'Uogonek': 722,
  33183. 'Aacute': 667,
  33184. 'Adieresis': 667,
  33185. 'egrave': 444,
  33186. 'zacute': 389,
  33187. 'iogonek': 278,
  33188. 'Oacute': 722,
  33189. 'oacute': 500,
  33190. 'amacron': 500,
  33191. 'sacute': 389,
  33192. 'idieresis': 278,
  33193. 'Ocircumflex': 722,
  33194. 'Ugrave': 722,
  33195. 'Delta': 612,
  33196. 'thorn': 500,
  33197. 'twosuperior': 300,
  33198. 'Odieresis': 722,
  33199. 'mu': 576,
  33200. 'igrave': 278,
  33201. 'ohungarumlaut': 500,
  33202. 'Eogonek': 667,
  33203. 'dcroat': 500,
  33204. 'threequarters': 750,
  33205. 'Scedilla': 556,
  33206. 'lcaron': 382,
  33207. 'Kcommaaccent': 667,
  33208. 'Lacute': 611,
  33209. 'trademark': 1000,
  33210. 'edotaccent': 444,
  33211. 'Igrave': 389,
  33212. 'Imacron': 389,
  33213. 'Lcaron': 611,
  33214. 'onehalf': 750,
  33215. 'lessequal': 549,
  33216. 'ocircumflex': 500,
  33217. 'ntilde': 556,
  33218. 'Uhungarumlaut': 722,
  33219. 'Eacute': 667,
  33220. 'emacron': 444,
  33221. 'gbreve': 500,
  33222. 'onequarter': 750,
  33223. 'Scaron': 556,
  33224. 'Scommaaccent': 556,
  33225. 'Ohungarumlaut': 722,
  33226. 'degree': 400,
  33227. 'ograve': 500,
  33228. 'Ccaron': 667,
  33229. 'ugrave': 556,
  33230. 'radical': 549,
  33231. 'Dcaron': 722,
  33232. 'rcommaaccent': 389,
  33233. 'Ntilde': 722,
  33234. 'otilde': 500,
  33235. 'Rcommaaccent': 667,
  33236. 'Lcommaaccent': 611,
  33237. 'Atilde': 667,
  33238. 'Aogonek': 667,
  33239. 'Aring': 667,
  33240. 'Otilde': 722,
  33241. 'zdotaccent': 389,
  33242. 'Ecaron': 667,
  33243. 'Iogonek': 389,
  33244. 'kcommaaccent': 500,
  33245. 'minus': 606,
  33246. 'Icircumflex': 389,
  33247. 'ncaron': 556,
  33248. 'tcommaaccent': 278,
  33249. 'logicalnot': 606,
  33250. 'odieresis': 500,
  33251. 'udieresis': 556,
  33252. 'notequal': 549,
  33253. 'gcommaaccent': 500,
  33254. 'eth': 500,
  33255. 'zcaron': 389,
  33256. 'ncommaaccent': 556,
  33257. 'onesuperior': 300,
  33258. 'imacron': 278,
  33259. 'Euro': 500
  33260. },
  33261. 'Times-Italic': {
  33262. 'space': 250,
  33263. 'exclam': 333,
  33264. 'quotedbl': 420,
  33265. 'numbersign': 500,
  33266. 'dollar': 500,
  33267. 'percent': 833,
  33268. 'ampersand': 778,
  33269. 'quoteright': 333,
  33270. 'parenleft': 333,
  33271. 'parenright': 333,
  33272. 'asterisk': 500,
  33273. 'plus': 675,
  33274. 'comma': 250,
  33275. 'hyphen': 333,
  33276. 'period': 250,
  33277. 'slash': 278,
  33278. 'zero': 500,
  33279. 'one': 500,
  33280. 'two': 500,
  33281. 'three': 500,
  33282. 'four': 500,
  33283. 'five': 500,
  33284. 'six': 500,
  33285. 'seven': 500,
  33286. 'eight': 500,
  33287. 'nine': 500,
  33288. 'colon': 333,
  33289. 'semicolon': 333,
  33290. 'less': 675,
  33291. 'equal': 675,
  33292. 'greater': 675,
  33293. 'question': 500,
  33294. 'at': 920,
  33295. 'A': 611,
  33296. 'B': 611,
  33297. 'C': 667,
  33298. 'D': 722,
  33299. 'E': 611,
  33300. 'F': 611,
  33301. 'G': 722,
  33302. 'H': 722,
  33303. 'I': 333,
  33304. 'J': 444,
  33305. 'K': 667,
  33306. 'L': 556,
  33307. 'M': 833,
  33308. 'N': 667,
  33309. 'O': 722,
  33310. 'P': 611,
  33311. 'Q': 722,
  33312. 'R': 611,
  33313. 'S': 500,
  33314. 'T': 556,
  33315. 'U': 722,
  33316. 'V': 611,
  33317. 'W': 833,
  33318. 'X': 611,
  33319. 'Y': 556,
  33320. 'Z': 556,
  33321. 'bracketleft': 389,
  33322. 'backslash': 278,
  33323. 'bracketright': 389,
  33324. 'asciicircum': 422,
  33325. 'underscore': 500,
  33326. 'quoteleft': 333,
  33327. 'a': 500,
  33328. 'b': 500,
  33329. 'c': 444,
  33330. 'd': 500,
  33331. 'e': 444,
  33332. 'f': 278,
  33333. 'g': 500,
  33334. 'h': 500,
  33335. 'i': 278,
  33336. 'j': 278,
  33337. 'k': 444,
  33338. 'l': 278,
  33339. 'm': 722,
  33340. 'n': 500,
  33341. 'o': 500,
  33342. 'p': 500,
  33343. 'q': 500,
  33344. 'r': 389,
  33345. 's': 389,
  33346. 't': 278,
  33347. 'u': 500,
  33348. 'v': 444,
  33349. 'w': 667,
  33350. 'x': 444,
  33351. 'y': 444,
  33352. 'z': 389,
  33353. 'braceleft': 400,
  33354. 'bar': 275,
  33355. 'braceright': 400,
  33356. 'asciitilde': 541,
  33357. 'exclamdown': 389,
  33358. 'cent': 500,
  33359. 'sterling': 500,
  33360. 'fraction': 167,
  33361. 'yen': 500,
  33362. 'florin': 500,
  33363. 'section': 500,
  33364. 'currency': 500,
  33365. 'quotesingle': 214,
  33366. 'quotedblleft': 556,
  33367. 'guillemotleft': 500,
  33368. 'guilsinglleft': 333,
  33369. 'guilsinglright': 333,
  33370. 'fi': 500,
  33371. 'fl': 500,
  33372. 'endash': 500,
  33373. 'dagger': 500,
  33374. 'daggerdbl': 500,
  33375. 'periodcentered': 250,
  33376. 'paragraph': 523,
  33377. 'bullet': 350,
  33378. 'quotesinglbase': 333,
  33379. 'quotedblbase': 556,
  33380. 'quotedblright': 556,
  33381. 'guillemotright': 500,
  33382. 'ellipsis': 889,
  33383. 'perthousand': 1000,
  33384. 'questiondown': 500,
  33385. 'grave': 333,
  33386. 'acute': 333,
  33387. 'circumflex': 333,
  33388. 'tilde': 333,
  33389. 'macron': 333,
  33390. 'breve': 333,
  33391. 'dotaccent': 333,
  33392. 'dieresis': 333,
  33393. 'ring': 333,
  33394. 'cedilla': 333,
  33395. 'hungarumlaut': 333,
  33396. 'ogonek': 333,
  33397. 'caron': 333,
  33398. 'emdash': 889,
  33399. 'AE': 889,
  33400. 'ordfeminine': 276,
  33401. 'Lslash': 556,
  33402. 'Oslash': 722,
  33403. 'OE': 944,
  33404. 'ordmasculine': 310,
  33405. 'ae': 667,
  33406. 'dotlessi': 278,
  33407. 'lslash': 278,
  33408. 'oslash': 500,
  33409. 'oe': 667,
  33410. 'germandbls': 500,
  33411. 'Idieresis': 333,
  33412. 'eacute': 444,
  33413. 'abreve': 500,
  33414. 'uhungarumlaut': 500,
  33415. 'ecaron': 444,
  33416. 'Ydieresis': 556,
  33417. 'divide': 675,
  33418. 'Yacute': 556,
  33419. 'Acircumflex': 611,
  33420. 'aacute': 500,
  33421. 'Ucircumflex': 722,
  33422. 'yacute': 444,
  33423. 'scommaaccent': 389,
  33424. 'ecircumflex': 444,
  33425. 'Uring': 722,
  33426. 'Udieresis': 722,
  33427. 'aogonek': 500,
  33428. 'Uacute': 722,
  33429. 'uogonek': 500,
  33430. 'Edieresis': 611,
  33431. 'Dcroat': 722,
  33432. 'commaaccent': 250,
  33433. 'copyright': 760,
  33434. 'Emacron': 611,
  33435. 'ccaron': 444,
  33436. 'aring': 500,
  33437. 'Ncommaaccent': 667,
  33438. 'lacute': 278,
  33439. 'agrave': 500,
  33440. 'Tcommaaccent': 556,
  33441. 'Cacute': 667,
  33442. 'atilde': 500,
  33443. 'Edotaccent': 611,
  33444. 'scaron': 389,
  33445. 'scedilla': 389,
  33446. 'iacute': 278,
  33447. 'lozenge': 471,
  33448. 'Rcaron': 611,
  33449. 'Gcommaaccent': 722,
  33450. 'ucircumflex': 500,
  33451. 'acircumflex': 500,
  33452. 'Amacron': 611,
  33453. 'rcaron': 389,
  33454. 'ccedilla': 444,
  33455. 'Zdotaccent': 556,
  33456. 'Thorn': 611,
  33457. 'Omacron': 722,
  33458. 'Racute': 611,
  33459. 'Sacute': 500,
  33460. 'dcaron': 544,
  33461. 'Umacron': 722,
  33462. 'uring': 500,
  33463. 'threesuperior': 300,
  33464. 'Ograve': 722,
  33465. 'Agrave': 611,
  33466. 'Abreve': 611,
  33467. 'multiply': 675,
  33468. 'uacute': 500,
  33469. 'Tcaron': 556,
  33470. 'partialdiff': 476,
  33471. 'ydieresis': 444,
  33472. 'Nacute': 667,
  33473. 'icircumflex': 278,
  33474. 'Ecircumflex': 611,
  33475. 'adieresis': 500,
  33476. 'edieresis': 444,
  33477. 'cacute': 444,
  33478. 'nacute': 500,
  33479. 'umacron': 500,
  33480. 'Ncaron': 667,
  33481. 'Iacute': 333,
  33482. 'plusminus': 675,
  33483. 'brokenbar': 275,
  33484. 'registered': 760,
  33485. 'Gbreve': 722,
  33486. 'Idotaccent': 333,
  33487. 'summation': 600,
  33488. 'Egrave': 611,
  33489. 'racute': 389,
  33490. 'omacron': 500,
  33491. 'Zacute': 556,
  33492. 'Zcaron': 556,
  33493. 'greaterequal': 549,
  33494. 'Eth': 722,
  33495. 'Ccedilla': 667,
  33496. 'lcommaaccent': 278,
  33497. 'tcaron': 300,
  33498. 'eogonek': 444,
  33499. 'Uogonek': 722,
  33500. 'Aacute': 611,
  33501. 'Adieresis': 611,
  33502. 'egrave': 444,
  33503. 'zacute': 389,
  33504. 'iogonek': 278,
  33505. 'Oacute': 722,
  33506. 'oacute': 500,
  33507. 'amacron': 500,
  33508. 'sacute': 389,
  33509. 'idieresis': 278,
  33510. 'Ocircumflex': 722,
  33511. 'Ugrave': 722,
  33512. 'Delta': 612,
  33513. 'thorn': 500,
  33514. 'twosuperior': 300,
  33515. 'Odieresis': 722,
  33516. 'mu': 500,
  33517. 'igrave': 278,
  33518. 'ohungarumlaut': 500,
  33519. 'Eogonek': 611,
  33520. 'dcroat': 500,
  33521. 'threequarters': 750,
  33522. 'Scedilla': 500,
  33523. 'lcaron': 300,
  33524. 'Kcommaaccent': 667,
  33525. 'Lacute': 556,
  33526. 'trademark': 980,
  33527. 'edotaccent': 444,
  33528. 'Igrave': 333,
  33529. 'Imacron': 333,
  33530. 'Lcaron': 611,
  33531. 'onehalf': 750,
  33532. 'lessequal': 549,
  33533. 'ocircumflex': 500,
  33534. 'ntilde': 500,
  33535. 'Uhungarumlaut': 722,
  33536. 'Eacute': 611,
  33537. 'emacron': 444,
  33538. 'gbreve': 500,
  33539. 'onequarter': 750,
  33540. 'Scaron': 500,
  33541. 'Scommaaccent': 500,
  33542. 'Ohungarumlaut': 722,
  33543. 'degree': 400,
  33544. 'ograve': 500,
  33545. 'Ccaron': 667,
  33546. 'ugrave': 500,
  33547. 'radical': 453,
  33548. 'Dcaron': 722,
  33549. 'rcommaaccent': 389,
  33550. 'Ntilde': 667,
  33551. 'otilde': 500,
  33552. 'Rcommaaccent': 611,
  33553. 'Lcommaaccent': 556,
  33554. 'Atilde': 611,
  33555. 'Aogonek': 611,
  33556. 'Aring': 611,
  33557. 'Otilde': 722,
  33558. 'zdotaccent': 389,
  33559. 'Ecaron': 611,
  33560. 'Iogonek': 333,
  33561. 'kcommaaccent': 444,
  33562. 'minus': 675,
  33563. 'Icircumflex': 333,
  33564. 'ncaron': 500,
  33565. 'tcommaaccent': 278,
  33566. 'logicalnot': 675,
  33567. 'odieresis': 500,
  33568. 'udieresis': 500,
  33569. 'notequal': 549,
  33570. 'gcommaaccent': 500,
  33571. 'eth': 500,
  33572. 'zcaron': 389,
  33573. 'ncommaaccent': 500,
  33574. 'onesuperior': 300,
  33575. 'imacron': 278,
  33576. 'Euro': 500
  33577. },
  33578. 'ZapfDingbats': {
  33579. 'space': 278,
  33580. 'a1': 974,
  33581. 'a2': 961,
  33582. 'a202': 974,
  33583. 'a3': 980,
  33584. 'a4': 719,
  33585. 'a5': 789,
  33586. 'a119': 790,
  33587. 'a118': 791,
  33588. 'a117': 690,
  33589. 'a11': 960,
  33590. 'a12': 939,
  33591. 'a13': 549,
  33592. 'a14': 855,
  33593. 'a15': 911,
  33594. 'a16': 933,
  33595. 'a105': 911,
  33596. 'a17': 945,
  33597. 'a18': 974,
  33598. 'a19': 755,
  33599. 'a20': 846,
  33600. 'a21': 762,
  33601. 'a22': 761,
  33602. 'a23': 571,
  33603. 'a24': 677,
  33604. 'a25': 763,
  33605. 'a26': 760,
  33606. 'a27': 759,
  33607. 'a28': 754,
  33608. 'a6': 494,
  33609. 'a7': 552,
  33610. 'a8': 537,
  33611. 'a9': 577,
  33612. 'a10': 692,
  33613. 'a29': 786,
  33614. 'a30': 788,
  33615. 'a31': 788,
  33616. 'a32': 790,
  33617. 'a33': 793,
  33618. 'a34': 794,
  33619. 'a35': 816,
  33620. 'a36': 823,
  33621. 'a37': 789,
  33622. 'a38': 841,
  33623. 'a39': 823,
  33624. 'a40': 833,
  33625. 'a41': 816,
  33626. 'a42': 831,
  33627. 'a43': 923,
  33628. 'a44': 744,
  33629. 'a45': 723,
  33630. 'a46': 749,
  33631. 'a47': 790,
  33632. 'a48': 792,
  33633. 'a49': 695,
  33634. 'a50': 776,
  33635. 'a51': 768,
  33636. 'a52': 792,
  33637. 'a53': 759,
  33638. 'a54': 707,
  33639. 'a55': 708,
  33640. 'a56': 682,
  33641. 'a57': 701,
  33642. 'a58': 826,
  33643. 'a59': 815,
  33644. 'a60': 789,
  33645. 'a61': 789,
  33646. 'a62': 707,
  33647. 'a63': 687,
  33648. 'a64': 696,
  33649. 'a65': 689,
  33650. 'a66': 786,
  33651. 'a67': 787,
  33652. 'a68': 713,
  33653. 'a69': 791,
  33654. 'a70': 785,
  33655. 'a71': 791,
  33656. 'a72': 873,
  33657. 'a73': 761,
  33658. 'a74': 762,
  33659. 'a203': 762,
  33660. 'a75': 759,
  33661. 'a204': 759,
  33662. 'a76': 892,
  33663. 'a77': 892,
  33664. 'a78': 788,
  33665. 'a79': 784,
  33666. 'a81': 438,
  33667. 'a82': 138,
  33668. 'a83': 277,
  33669. 'a84': 415,
  33670. 'a97': 392,
  33671. 'a98': 392,
  33672. 'a99': 668,
  33673. 'a100': 668,
  33674. 'a89': 390,
  33675. 'a90': 390,
  33676. 'a93': 317,
  33677. 'a94': 317,
  33678. 'a91': 276,
  33679. 'a92': 276,
  33680. 'a205': 509,
  33681. 'a85': 509,
  33682. 'a206': 410,
  33683. 'a86': 410,
  33684. 'a87': 234,
  33685. 'a88': 234,
  33686. 'a95': 334,
  33687. 'a96': 334,
  33688. 'a101': 732,
  33689. 'a102': 544,
  33690. 'a103': 544,
  33691. 'a104': 910,
  33692. 'a106': 667,
  33693. 'a107': 760,
  33694. 'a108': 760,
  33695. 'a112': 776,
  33696. 'a111': 595,
  33697. 'a110': 694,
  33698. 'a109': 626,
  33699. 'a120': 788,
  33700. 'a121': 788,
  33701. 'a122': 788,
  33702. 'a123': 788,
  33703. 'a124': 788,
  33704. 'a125': 788,
  33705. 'a126': 788,
  33706. 'a127': 788,
  33707. 'a128': 788,
  33708. 'a129': 788,
  33709. 'a130': 788,
  33710. 'a131': 788,
  33711. 'a132': 788,
  33712. 'a133': 788,
  33713. 'a134': 788,
  33714. 'a135': 788,
  33715. 'a136': 788,
  33716. 'a137': 788,
  33717. 'a138': 788,
  33718. 'a139': 788,
  33719. 'a140': 788,
  33720. 'a141': 788,
  33721. 'a142': 788,
  33722. 'a143': 788,
  33723. 'a144': 788,
  33724. 'a145': 788,
  33725. 'a146': 788,
  33726. 'a147': 788,
  33727. 'a148': 788,
  33728. 'a149': 788,
  33729. 'a150': 788,
  33730. 'a151': 788,
  33731. 'a152': 788,
  33732. 'a153': 788,
  33733. 'a154': 788,
  33734. 'a155': 788,
  33735. 'a156': 788,
  33736. 'a157': 788,
  33737. 'a158': 788,
  33738. 'a159': 788,
  33739. 'a160': 894,
  33740. 'a161': 838,
  33741. 'a163': 1016,
  33742. 'a164': 458,
  33743. 'a196': 748,
  33744. 'a165': 924,
  33745. 'a192': 748,
  33746. 'a166': 918,
  33747. 'a167': 927,
  33748. 'a168': 928,
  33749. 'a169': 928,
  33750. 'a170': 834,
  33751. 'a171': 873,
  33752. 'a172': 828,
  33753. 'a173': 924,
  33754. 'a162': 924,
  33755. 'a174': 917,
  33756. 'a175': 930,
  33757. 'a176': 931,
  33758. 'a177': 463,
  33759. 'a178': 883,
  33760. 'a179': 836,
  33761. 'a193': 836,
  33762. 'a180': 867,
  33763. 'a199': 867,
  33764. 'a181': 696,
  33765. 'a200': 696,
  33766. 'a182': 874,
  33767. 'a201': 874,
  33768. 'a183': 760,
  33769. 'a184': 946,
  33770. 'a197': 771,
  33771. 'a185': 865,
  33772. 'a194': 771,
  33773. 'a198': 888,
  33774. 'a186': 967,
  33775. 'a195': 888,
  33776. 'a187': 831,
  33777. 'a188': 873,
  33778. 'a189': 927,
  33779. 'a190': 970,
  33780. 'a191': 918
  33781. }
  33782. };
  33783. var EOF = {};
  33784. function isEOF(v) {
  33785. return (v === EOF);
  33786. }
  33787. var Parser = (function ParserClosure() {
  33788. function Parser(lexer, allowStreams, xref) {
  33789. this.lexer = lexer;
  33790. this.allowStreams = allowStreams;
  33791. this.xref = xref;
  33792. this.imageCache = {
  33793. length: 0,
  33794. adler32: 0,
  33795. stream: null
  33796. };
  33797. this.refill();
  33798. }
  33799. Parser.prototype = {
  33800. refill: function Parser_refill() {
  33801. this.buf1 = this.lexer.getObj();
  33802. this.buf2 = this.lexer.getObj();
  33803. },
  33804. shift: function Parser_shift() {
  33805. if (isCmd(this.buf2, 'ID')) {
  33806. this.buf1 = this.buf2;
  33807. this.buf2 = null;
  33808. } else {
  33809. this.buf1 = this.buf2;
  33810. this.buf2 = this.lexer.getObj();
  33811. }
  33812. },
  33813. getObj: function Parser_getObj(cipherTransform) {
  33814. var buf1 = this.buf1;
  33815. this.shift();
  33816. if (buf1 instanceof Cmd) {
  33817. switch (buf1.cmd) {
  33818. case 'BI': // inline image
  33819. return this.makeInlineImage(cipherTransform);
  33820. case '[': // array
  33821. var array = [];
  33822. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  33823. array.push(this.getObj(cipherTransform));
  33824. }
  33825. if (isEOF(this.buf1)) {
  33826. error('End of file inside array');
  33827. }
  33828. this.shift();
  33829. return array;
  33830. case '<<': // dictionary or stream
  33831. var dict = new Dict(this.xref);
  33832. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  33833. if (!isName(this.buf1)) {
  33834. info('Malformed dictionary: key must be a name object');
  33835. this.shift();
  33836. continue;
  33837. }
  33838. var key = this.buf1.name;
  33839. this.shift();
  33840. if (isEOF(this.buf1)) {
  33841. break;
  33842. }
  33843. dict.set(key, this.getObj(cipherTransform));
  33844. }
  33845. if (isEOF(this.buf1)) {
  33846. error('End of file inside dictionary');
  33847. }
  33848. // Stream objects are not allowed inside content streams or
  33849. // object streams.
  33850. if (isCmd(this.buf2, 'stream')) {
  33851. return (this.allowStreams ?
  33852. this.makeStream(dict, cipherTransform) : dict);
  33853. }
  33854. this.shift();
  33855. return dict;
  33856. default: // simple object
  33857. return buf1;
  33858. }
  33859. }
  33860. if (isInt(buf1)) { // indirect reference or integer
  33861. var num = buf1;
  33862. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  33863. var ref = new Ref(num, this.buf1);
  33864. this.shift();
  33865. this.shift();
  33866. return ref;
  33867. }
  33868. return num;
  33869. }
  33870. if (isString(buf1)) { // string
  33871. var str = buf1;
  33872. if (cipherTransform) {
  33873. str = cipherTransform.decryptString(str);
  33874. }
  33875. return str;
  33876. }
  33877. // simple object
  33878. return buf1;
  33879. },
  33880. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  33881. var lexer = this.lexer;
  33882. var stream = lexer.stream;
  33883. // parse dictionary
  33884. var dict = new Dict(null);
  33885. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  33886. if (!isName(this.buf1)) {
  33887. error('Dictionary key must be a name object');
  33888. }
  33889. var key = this.buf1.name;
  33890. this.shift();
  33891. if (isEOF(this.buf1)) {
  33892. break;
  33893. }
  33894. dict.set(key, this.getObj(cipherTransform));
  33895. }
  33896. // parse image stream
  33897. var startPos = stream.pos;
  33898. // searching for the /EI\s/
  33899. var state = 0, ch, i, ii;
  33900. while (state != 4 && (ch = stream.getByte()) !== -1) {
  33901. switch (ch | 0) {
  33902. case 0x20:
  33903. case 0x0D:
  33904. case 0x0A:
  33905. // let's check next five bytes to be ASCII... just be sure
  33906. var followingBytes = stream.peekBytes(5);
  33907. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  33908. ch = followingBytes[i];
  33909. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  33910. // not a LF, CR, SPACE or any visible ASCII character
  33911. state = 0;
  33912. break; // some binary stuff found, resetting the state
  33913. }
  33914. }
  33915. state = (state === 3 ? 4 : 0);
  33916. break;
  33917. case 0x45:
  33918. state = 2;
  33919. break;
  33920. case 0x49:
  33921. state = (state === 2 ? 3 : 0);
  33922. break;
  33923. default:
  33924. state = 0;
  33925. break;
  33926. }
  33927. }
  33928. var length = (stream.pos - 4) - startPos;
  33929. var imageStream = stream.makeSubStream(startPos, length, dict);
  33930. // trying to cache repeat images, first we are trying to "warm up" caching
  33931. // using length, then comparing adler32
  33932. var MAX_LENGTH_TO_CACHE = 1000;
  33933. var cacheImage = false, adler32;
  33934. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  33935. var imageBytes = imageStream.getBytes();
  33936. imageStream.reset();
  33937. var a = 1;
  33938. var b = 0;
  33939. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  33940. a = (a + (imageBytes[i] & 0xff)) % 65521;
  33941. b = (b + a) % 65521;
  33942. }
  33943. adler32 = (b << 16) | a;
  33944. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  33945. this.buf2 = Cmd.get('EI');
  33946. this.shift();
  33947. this.imageCache.stream.reset();
  33948. return this.imageCache.stream;
  33949. }
  33950. cacheImage = true;
  33951. }
  33952. if (!cacheImage && !this.imageCache.stream) {
  33953. this.imageCache.length = length;
  33954. this.imageCache.stream = null;
  33955. }
  33956. if (cipherTransform) {
  33957. imageStream = cipherTransform.createStream(imageStream, length);
  33958. }
  33959. imageStream = this.filter(imageStream, dict, length);
  33960. imageStream.dict = dict;
  33961. if (cacheImage) {
  33962. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  33963. this.imageCache.adler32 = adler32;
  33964. this.imageCache.stream = imageStream;
  33965. }
  33966. this.buf2 = Cmd.get('EI');
  33967. this.shift();
  33968. return imageStream;
  33969. },
  33970. fetchIfRef: function Parser_fetchIfRef(obj) {
  33971. // not relying on the xref.fetchIfRef -- xref might not be set
  33972. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  33973. },
  33974. makeStream: function Parser_makeStream(dict, cipherTransform) {
  33975. var lexer = this.lexer;
  33976. var stream = lexer.stream;
  33977. // get stream start position
  33978. lexer.skipToNextLine();
  33979. var pos = stream.pos - 1;
  33980. // get length
  33981. var length = this.fetchIfRef(dict.get('Length'));
  33982. if (!isInt(length)) {
  33983. info('Bad ' + length + ' attribute in stream');
  33984. length = 0;
  33985. }
  33986. // skip over the stream data
  33987. stream.pos = pos + length;
  33988. lexer.nextChar();
  33989. this.shift(); // '>>'
  33990. this.shift(); // 'stream'
  33991. if (!isCmd(this.buf1, 'endstream')) {
  33992. // bad stream length, scanning for endstream
  33993. stream.pos = pos;
  33994. var SCAN_BLOCK_SIZE = 2048;
  33995. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  33996. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  33997. 0x61, 0x6D];
  33998. var skipped = 0, found = false, i, j;
  33999. while (stream.pos < stream.end) {
  34000. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  34001. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  34002. if (scanLength <= 0) {
  34003. break;
  34004. }
  34005. found = false;
  34006. for (i = 0, j = 0; i < scanLength; i++) {
  34007. var b = scanBytes[i];
  34008. if (b !== ENDSTREAM_SIGNATURE[j]) {
  34009. i -= j;
  34010. j = 0;
  34011. } else {
  34012. j++;
  34013. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  34014. i++;
  34015. found = true;
  34016. break;
  34017. }
  34018. }
  34019. }
  34020. if (found) {
  34021. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  34022. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  34023. break;
  34024. }
  34025. skipped += scanLength;
  34026. stream.pos += scanLength;
  34027. }
  34028. if (!found) {
  34029. error('Missing endstream');
  34030. }
  34031. length = skipped;
  34032. lexer.nextChar();
  34033. this.shift();
  34034. this.shift();
  34035. }
  34036. this.shift(); // 'endstream'
  34037. stream = stream.makeSubStream(pos, length, dict);
  34038. if (cipherTransform) {
  34039. stream = cipherTransform.createStream(stream, length);
  34040. }
  34041. stream = this.filter(stream, dict, length);
  34042. stream.dict = dict;
  34043. return stream;
  34044. },
  34045. filter: function Parser_filter(stream, dict, length) {
  34046. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  34047. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  34048. if (isName(filter)) {
  34049. return this.makeFilter(stream, filter.name, length, params);
  34050. }
  34051. var maybeLength = length;
  34052. if (isArray(filter)) {
  34053. var filterArray = filter;
  34054. var paramsArray = params;
  34055. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  34056. filter = filterArray[i];
  34057. if (!isName(filter)) {
  34058. error('Bad filter name: ' + filter);
  34059. }
  34060. params = null;
  34061. if (isArray(paramsArray) && (i in paramsArray)) {
  34062. params = paramsArray[i];
  34063. }
  34064. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  34065. // after the first stream the length variable is invalid
  34066. maybeLength = null;
  34067. }
  34068. }
  34069. return stream;
  34070. },
  34071. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  34072. if (stream.dict.get('Length') === 0) {
  34073. return new NullStream(stream);
  34074. }
  34075. try {
  34076. var xrefStreamStats = this.xref.stats.streamTypes;
  34077. if (name == 'FlateDecode' || name == 'Fl') {
  34078. xrefStreamStats[StreamType.FLATE] = true;
  34079. if (params) {
  34080. return new PredictorStream(new FlateStream(stream, maybeLength),
  34081. maybeLength, params);
  34082. }
  34083. return new FlateStream(stream, maybeLength);
  34084. }
  34085. if (name == 'LZWDecode' || name == 'LZW') {
  34086. xrefStreamStats[StreamType.LZW] = true;
  34087. var earlyChange = 1;
  34088. if (params) {
  34089. if (params.has('EarlyChange')) {
  34090. earlyChange = params.get('EarlyChange');
  34091. }
  34092. return new PredictorStream(
  34093. new LZWStream(stream, maybeLength, earlyChange),
  34094. maybeLength, params);
  34095. }
  34096. return new LZWStream(stream, maybeLength, earlyChange);
  34097. }
  34098. if (name == 'DCTDecode' || name == 'DCT') {
  34099. xrefStreamStats[StreamType.DCT] = true;
  34100. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  34101. }
  34102. if (name == 'JPXDecode' || name == 'JPX') {
  34103. xrefStreamStats[StreamType.JPX] = true;
  34104. return new JpxStream(stream, maybeLength, stream.dict);
  34105. }
  34106. if (name == 'ASCII85Decode' || name == 'A85') {
  34107. xrefStreamStats[StreamType.A85] = true;
  34108. return new Ascii85Stream(stream, maybeLength);
  34109. }
  34110. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  34111. xrefStreamStats[StreamType.AHX] = true;
  34112. return new AsciiHexStream(stream, maybeLength);
  34113. }
  34114. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  34115. xrefStreamStats[StreamType.CCF] = true;
  34116. return new CCITTFaxStream(stream, maybeLength, params);
  34117. }
  34118. if (name == 'RunLengthDecode' || name == 'RL') {
  34119. xrefStreamStats[StreamType.RL] = true;
  34120. return new RunLengthStream(stream, maybeLength);
  34121. }
  34122. if (name == 'JBIG2Decode') {
  34123. xrefStreamStats[StreamType.JBIG] = true;
  34124. return new Jbig2Stream(stream, maybeLength, stream.dict);
  34125. }
  34126. warn('filter "' + name + '" not supported yet');
  34127. return stream;
  34128. } catch (ex) {
  34129. if (ex instanceof MissingDataException) {
  34130. throw ex;
  34131. }
  34132. warn('Invalid stream: \"' + ex + '\"');
  34133. return new NullStream(stream);
  34134. }
  34135. }
  34136. };
  34137. return Parser;
  34138. })();
  34139. var Lexer = (function LexerClosure() {
  34140. function Lexer(stream, knownCommands) {
  34141. this.stream = stream;
  34142. this.nextChar();
  34143. // While lexing, we build up many strings one char at a time. Using += for
  34144. // this can result in lots of garbage strings. It's better to build an
  34145. // array of single-char strings and then join() them together at the end.
  34146. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  34147. // purpose uses less memory than using a new array for each string.
  34148. this.strBuf = [];
  34149. // The PDFs might have "glued" commands with other commands, operands or
  34150. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  34151. // commands and their prefixes. The prefixes are built the following way:
  34152. // if there a command that is a prefix of the other valid command or
  34153. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  34154. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  34155. // other commands or literals as a prefix. The knowCommands is optional.
  34156. this.knownCommands = knownCommands;
  34157. }
  34158. Lexer.isSpace = function Lexer_isSpace(ch) {
  34159. // Space is one of the following characters: SPACE, TAB, CR or LF.
  34160. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  34161. };
  34162. // A '1' in this array means the character is white space. A '1' or
  34163. // '2' means the character ends a name or command.
  34164. var specialChars = [
  34165. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  34166. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  34167. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  34168. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  34169. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  34170. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  34171. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  34172. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  34173. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  34174. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  34175. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  34176. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  34177. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  34178. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  34179. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  34180. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  34181. ];
  34182. function toHexDigit(ch) {
  34183. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34184. return ch & 0x0F;
  34185. }
  34186. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34187. // 'A'-'F', 'a'-'f'
  34188. return (ch & 0x0F) + 9;
  34189. }
  34190. return -1;
  34191. }
  34192. Lexer.prototype = {
  34193. nextChar: function Lexer_nextChar() {
  34194. return (this.currentChar = this.stream.getByte());
  34195. },
  34196. peekChar: function Lexer_peekChar() {
  34197. return this.stream.peekBytes(1)[0];
  34198. },
  34199. getNumber: function Lexer_getNumber() {
  34200. var ch = this.currentChar;
  34201. var eNotation = false;
  34202. var divideBy = 0; // different from 0 if it's a floating point value
  34203. var sign = 1;
  34204. if (ch === 0x2D) { // '-'
  34205. sign = -1;
  34206. ch = this.nextChar();
  34207. } else if (ch === 0x2B) { // '+'
  34208. ch = this.nextChar();
  34209. }
  34210. if (ch === 0x2E) { // '.'
  34211. divideBy = 10;
  34212. ch = this.nextChar();
  34213. }
  34214. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34215. error('Invalid number: ' + String.fromCharCode(ch));
  34216. return 0;
  34217. }
  34218. var baseValue = ch - 0x30; // '0'
  34219. var powerValue = 0;
  34220. var powerValueSign = 1;
  34221. while ((ch = this.nextChar()) >= 0) {
  34222. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  34223. var currentDigit = ch - 0x30; // '0'
  34224. if (eNotation) { // We are after an 'e' or 'E'
  34225. powerValue = powerValue * 10 + currentDigit;
  34226. } else {
  34227. if (divideBy !== 0) { // We are after a point
  34228. divideBy *= 10;
  34229. }
  34230. baseValue = baseValue * 10 + currentDigit;
  34231. }
  34232. } else if (ch === 0x2E) { // '.'
  34233. if (divideBy === 0) {
  34234. divideBy = 1;
  34235. } else {
  34236. // A number can have only one '.'
  34237. break;
  34238. }
  34239. } else if (ch === 0x2D) { // '-'
  34240. // ignore minus signs in the middle of numbers to match
  34241. // Adobe's behavior
  34242. warn('Badly formated number');
  34243. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  34244. // 'E' can be either a scientific notation or the beginning of a new
  34245. // operator
  34246. ch = this.peekChar();
  34247. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  34248. powerValueSign = (ch === 0x2D) ? -1 : 1;
  34249. this.nextChar(); // Consume the sign character
  34250. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34251. // The 'E' must be the beginning of a new operator
  34252. break;
  34253. }
  34254. eNotation = true;
  34255. } else {
  34256. // the last character doesn't belong to us
  34257. break;
  34258. }
  34259. }
  34260. if (divideBy !== 0) {
  34261. baseValue /= divideBy;
  34262. }
  34263. if (eNotation) {
  34264. baseValue *= Math.pow(10, powerValueSign * powerValue);
  34265. }
  34266. return sign * baseValue;
  34267. },
  34268. getString: function Lexer_getString() {
  34269. var numParen = 1;
  34270. var done = false;
  34271. var strBuf = this.strBuf;
  34272. strBuf.length = 0;
  34273. var ch = this.nextChar();
  34274. while (true) {
  34275. var charBuffered = false;
  34276. switch (ch | 0) {
  34277. case -1:
  34278. warn('Unterminated string');
  34279. done = true;
  34280. break;
  34281. case 0x28: // '('
  34282. ++numParen;
  34283. strBuf.push('(');
  34284. break;
  34285. case 0x29: // ')'
  34286. if (--numParen === 0) {
  34287. this.nextChar(); // consume strings ')'
  34288. done = true;
  34289. } else {
  34290. strBuf.push(')');
  34291. }
  34292. break;
  34293. case 0x5C: // '\\'
  34294. ch = this.nextChar();
  34295. switch (ch) {
  34296. case -1:
  34297. warn('Unterminated string');
  34298. done = true;
  34299. break;
  34300. case 0x6E: // 'n'
  34301. strBuf.push('\n');
  34302. break;
  34303. case 0x72: // 'r'
  34304. strBuf.push('\r');
  34305. break;
  34306. case 0x74: // 't'
  34307. strBuf.push('\t');
  34308. break;
  34309. case 0x62: // 'b'
  34310. strBuf.push('\b');
  34311. break;
  34312. case 0x66: // 'f'
  34313. strBuf.push('\f');
  34314. break;
  34315. case 0x5C: // '\'
  34316. case 0x28: // '('
  34317. case 0x29: // ')'
  34318. strBuf.push(String.fromCharCode(ch));
  34319. break;
  34320. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  34321. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  34322. var x = ch & 0x0F;
  34323. ch = this.nextChar();
  34324. charBuffered = true;
  34325. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34326. x = (x << 3) + (ch & 0x0F);
  34327. ch = this.nextChar();
  34328. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34329. charBuffered = false;
  34330. x = (x << 3) + (ch & 0x0F);
  34331. }
  34332. }
  34333. strBuf.push(String.fromCharCode(x));
  34334. break;
  34335. case 0x0D: // CR
  34336. if (this.peekChar() === 0x0A) { // LF
  34337. this.nextChar();
  34338. }
  34339. break;
  34340. case 0x0A: // LF
  34341. break;
  34342. default:
  34343. strBuf.push(String.fromCharCode(ch));
  34344. break;
  34345. }
  34346. break;
  34347. default:
  34348. strBuf.push(String.fromCharCode(ch));
  34349. break;
  34350. }
  34351. if (done) {
  34352. break;
  34353. }
  34354. if (!charBuffered) {
  34355. ch = this.nextChar();
  34356. }
  34357. }
  34358. return strBuf.join('');
  34359. },
  34360. getName: function Lexer_getName() {
  34361. var ch;
  34362. var strBuf = this.strBuf;
  34363. strBuf.length = 0;
  34364. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34365. if (ch === 0x23) { // '#'
  34366. ch = this.nextChar();
  34367. var x = toHexDigit(ch);
  34368. if (x != -1) {
  34369. var x2 = toHexDigit(this.nextChar());
  34370. if (x2 === -1) {
  34371. error('Illegal digit in hex char in name: ' + x2);
  34372. }
  34373. strBuf.push(String.fromCharCode((x << 4) | x2));
  34374. } else {
  34375. strBuf.push('#', String.fromCharCode(ch));
  34376. }
  34377. } else {
  34378. strBuf.push(String.fromCharCode(ch));
  34379. }
  34380. }
  34381. if (strBuf.length > 128) {
  34382. error('Warning: name token is longer than allowed by the spec: ' +
  34383. strBuf.length);
  34384. }
  34385. return Name.get(strBuf.join(''));
  34386. },
  34387. getHexString: function Lexer_getHexString() {
  34388. var strBuf = this.strBuf;
  34389. strBuf.length = 0;
  34390. var ch = this.currentChar;
  34391. var isFirstHex = true;
  34392. var firstDigit;
  34393. var secondDigit;
  34394. while (true) {
  34395. if (ch < 0) {
  34396. warn('Unterminated hex string');
  34397. break;
  34398. } else if (ch === 0x3E) { // '>'
  34399. this.nextChar();
  34400. break;
  34401. } else if (specialChars[ch] === 1) {
  34402. ch = this.nextChar();
  34403. continue;
  34404. } else {
  34405. if (isFirstHex) {
  34406. firstDigit = toHexDigit(ch);
  34407. if (firstDigit === -1) {
  34408. warn('Ignoring invalid character "' + ch + '" in hex string');
  34409. ch = this.nextChar();
  34410. continue;
  34411. }
  34412. } else {
  34413. secondDigit = toHexDigit(ch);
  34414. if (secondDigit === -1) {
  34415. warn('Ignoring invalid character "' + ch + '" in hex string');
  34416. ch = this.nextChar();
  34417. continue;
  34418. }
  34419. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  34420. }
  34421. isFirstHex = !isFirstHex;
  34422. ch = this.nextChar();
  34423. }
  34424. }
  34425. return strBuf.join('');
  34426. },
  34427. getObj: function Lexer_getObj() {
  34428. // skip whitespace and comments
  34429. var comment = false;
  34430. var ch = this.currentChar;
  34431. while (true) {
  34432. if (ch < 0) {
  34433. return EOF;
  34434. }
  34435. if (comment) {
  34436. if (ch === 0x0A || ch === 0x0D) { // LF, CR
  34437. comment = false;
  34438. }
  34439. } else if (ch === 0x25) { // '%'
  34440. comment = true;
  34441. } else if (specialChars[ch] !== 1) {
  34442. break;
  34443. }
  34444. ch = this.nextChar();
  34445. }
  34446. // start reading token
  34447. switch (ch | 0) {
  34448. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34449. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34450. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34451. return this.getNumber();
  34452. case 0x28: // '('
  34453. return this.getString();
  34454. case 0x2F: // '/'
  34455. return this.getName();
  34456. // array punctuation
  34457. case 0x5B: // '['
  34458. this.nextChar();
  34459. return Cmd.get('[');
  34460. case 0x5D: // ']'
  34461. this.nextChar();
  34462. return Cmd.get(']');
  34463. // hex string or dict punctuation
  34464. case 0x3C: // '<'
  34465. ch = this.nextChar();
  34466. if (ch === 0x3C) {
  34467. // dict punctuation
  34468. this.nextChar();
  34469. return Cmd.get('<<');
  34470. }
  34471. return this.getHexString();
  34472. // dict punctuation
  34473. case 0x3E: // '>'
  34474. ch = this.nextChar();
  34475. if (ch === 0x3E) {
  34476. this.nextChar();
  34477. return Cmd.get('>>');
  34478. }
  34479. return Cmd.get('>');
  34480. case 0x7B: // '{'
  34481. this.nextChar();
  34482. return Cmd.get('{');
  34483. case 0x7D: // '}'
  34484. this.nextChar();
  34485. return Cmd.get('}');
  34486. case 0x29: // ')'
  34487. error('Illegal character: ' + ch);
  34488. break;
  34489. }
  34490. // command
  34491. var str = String.fromCharCode(ch);
  34492. var knownCommands = this.knownCommands;
  34493. var knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34494. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34495. // stop if known command is found and next character does not make
  34496. // the str a command
  34497. var possibleCommand = str + String.fromCharCode(ch);
  34498. if (knownCommandFound && knownCommands[possibleCommand] === undefined) {
  34499. break;
  34500. }
  34501. if (str.length === 128) {
  34502. error('Command token too long: ' + str.length);
  34503. }
  34504. str = possibleCommand;
  34505. knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34506. }
  34507. if (str === 'true') {
  34508. return true;
  34509. }
  34510. if (str === 'false') {
  34511. return false;
  34512. }
  34513. if (str === 'null') {
  34514. return null;
  34515. }
  34516. return Cmd.get(str);
  34517. },
  34518. skipToNextLine: function Lexer_skipToNextLine() {
  34519. var ch = this.currentChar;
  34520. while (ch >= 0) {
  34521. if (ch === 0x0D) { // CR
  34522. ch = this.nextChar();
  34523. if (ch === 0x0A) { // LF
  34524. this.nextChar();
  34525. }
  34526. break;
  34527. } else if (ch === 0x0A) { // LF
  34528. this.nextChar();
  34529. break;
  34530. }
  34531. ch = this.nextChar();
  34532. }
  34533. }
  34534. };
  34535. return Lexer;
  34536. })();
  34537. var Linearization = (function LinearizationClosure() {
  34538. function Linearization(stream) {
  34539. this.parser = new Parser(new Lexer(stream), false, null);
  34540. var obj1 = this.parser.getObj();
  34541. var obj2 = this.parser.getObj();
  34542. var obj3 = this.parser.getObj();
  34543. this.linDict = this.parser.getObj();
  34544. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  34545. isDict(this.linDict)) {
  34546. var obj = this.linDict.get('Linearized');
  34547. if (!(isNum(obj) && obj > 0)) {
  34548. this.linDict = null;
  34549. }
  34550. }
  34551. }
  34552. Linearization.prototype = {
  34553. getInt: function Linearization_getInt(name) {
  34554. var linDict = this.linDict;
  34555. var obj;
  34556. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  34557. return obj;
  34558. }
  34559. error('"' + name + '" field in linearization table is invalid');
  34560. },
  34561. getHint: function Linearization_getHint(index) {
  34562. var linDict = this.linDict;
  34563. var obj1, obj2;
  34564. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  34565. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  34566. return obj2;
  34567. }
  34568. error('Hints table in linearization table is invalid: ' + index);
  34569. },
  34570. get length() {
  34571. if (!isDict(this.linDict)) {
  34572. return 0;
  34573. }
  34574. return this.getInt('L');
  34575. },
  34576. get hintsOffset() {
  34577. return this.getHint(0);
  34578. },
  34579. get hintsLength() {
  34580. return this.getHint(1);
  34581. },
  34582. get hintsOffset2() {
  34583. return this.getHint(2);
  34584. },
  34585. get hintsLenth2() {
  34586. return this.getHint(3);
  34587. },
  34588. get objectNumberFirst() {
  34589. return this.getInt('O');
  34590. },
  34591. get endFirst() {
  34592. return this.getInt('E');
  34593. },
  34594. get numPages() {
  34595. return this.getInt('N');
  34596. },
  34597. get mainXRefEntriesOffset() {
  34598. return this.getInt('T');
  34599. },
  34600. get pageFirst() {
  34601. return this.getInt('P');
  34602. }
  34603. };
  34604. return Linearization;
  34605. })();
  34606. var PostScriptParser = (function PostScriptParserClosure() {
  34607. function PostScriptParser(lexer) {
  34608. this.lexer = lexer;
  34609. this.operators = [];
  34610. this.token = null;
  34611. this.prev = null;
  34612. }
  34613. PostScriptParser.prototype = {
  34614. nextToken: function PostScriptParser_nextToken() {
  34615. this.prev = this.token;
  34616. this.token = this.lexer.getToken();
  34617. },
  34618. accept: function PostScriptParser_accept(type) {
  34619. if (this.token.type == type) {
  34620. this.nextToken();
  34621. return true;
  34622. }
  34623. return false;
  34624. },
  34625. expect: function PostScriptParser_expect(type) {
  34626. if (this.accept(type)) {
  34627. return true;
  34628. }
  34629. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  34630. type + '.');
  34631. },
  34632. parse: function PostScriptParser_parse() {
  34633. this.nextToken();
  34634. this.expect(PostScriptTokenTypes.LBRACE);
  34635. this.parseBlock();
  34636. this.expect(PostScriptTokenTypes.RBRACE);
  34637. return this.operators;
  34638. },
  34639. parseBlock: function PostScriptParser_parseBlock() {
  34640. while (true) {
  34641. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  34642. this.operators.push(this.prev.value);
  34643. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  34644. this.operators.push(this.prev.value);
  34645. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34646. this.parseCondition();
  34647. } else {
  34648. return;
  34649. }
  34650. }
  34651. },
  34652. parseCondition: function PostScriptParser_parseCondition() {
  34653. // Add two place holders that will be updated later
  34654. var conditionLocation = this.operators.length;
  34655. this.operators.push(null, null);
  34656. this.parseBlock();
  34657. this.expect(PostScriptTokenTypes.RBRACE);
  34658. if (this.accept(PostScriptTokenTypes.IF)) {
  34659. // The true block is right after the 'if' so it just falls through on
  34660. // true else it jumps and skips the true block.
  34661. this.operators[conditionLocation] = this.operators.length;
  34662. this.operators[conditionLocation + 1] = 'jz';
  34663. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34664. var jumpLocation = this.operators.length;
  34665. this.operators.push(null, null);
  34666. var endOfTrue = this.operators.length;
  34667. this.parseBlock();
  34668. this.expect(PostScriptTokenTypes.RBRACE);
  34669. this.expect(PostScriptTokenTypes.IFELSE);
  34670. // The jump is added at the end of the true block to skip the false
  34671. // block.
  34672. this.operators[jumpLocation] = this.operators.length;
  34673. this.operators[jumpLocation + 1] = 'j';
  34674. this.operators[conditionLocation] = endOfTrue;
  34675. this.operators[conditionLocation + 1] = 'jz';
  34676. } else {
  34677. error('PS Function: error parsing conditional.');
  34678. }
  34679. }
  34680. };
  34681. return PostScriptParser;
  34682. })();
  34683. var PostScriptTokenTypes = {
  34684. LBRACE: 0,
  34685. RBRACE: 1,
  34686. NUMBER: 2,
  34687. OPERATOR: 3,
  34688. IF: 4,
  34689. IFELSE: 5
  34690. };
  34691. var PostScriptToken = (function PostScriptTokenClosure() {
  34692. function PostScriptToken(type, value) {
  34693. this.type = type;
  34694. this.value = value;
  34695. }
  34696. var opCache = {};
  34697. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  34698. var opValue = opCache[op];
  34699. if (opValue) {
  34700. return opValue;
  34701. }
  34702. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  34703. };
  34704. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  34705. '{');
  34706. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  34707. '}');
  34708. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  34709. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  34710. 'IFELSE');
  34711. return PostScriptToken;
  34712. })();
  34713. var PostScriptLexer = (function PostScriptLexerClosure() {
  34714. function PostScriptLexer(stream) {
  34715. this.stream = stream;
  34716. this.nextChar();
  34717. }
  34718. PostScriptLexer.prototype = {
  34719. nextChar: function PostScriptLexer_nextChar() {
  34720. return (this.currentChar = this.stream.getByte());
  34721. },
  34722. getToken: function PostScriptLexer_getToken() {
  34723. var comment = false;
  34724. var ch = this.currentChar;
  34725. // skip comments
  34726. while (true) {
  34727. if (ch < 0) {
  34728. return EOF;
  34729. }
  34730. if (comment) {
  34731. if (ch === 0x0A || ch === 0x0D) {
  34732. comment = false;
  34733. }
  34734. } else if (ch == 0x25) { // '%'
  34735. comment = true;
  34736. } else if (!Lexer.isSpace(ch)) {
  34737. break;
  34738. }
  34739. ch = this.nextChar();
  34740. }
  34741. switch (ch | 0) {
  34742. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34743. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34744. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34745. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  34746. this.getNumber());
  34747. case 0x7B: // '{'
  34748. this.nextChar();
  34749. return PostScriptToken.LBRACE;
  34750. case 0x7D: // '}'
  34751. this.nextChar();
  34752. return PostScriptToken.RBRACE;
  34753. }
  34754. // operator
  34755. var str = String.fromCharCode(ch);
  34756. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  34757. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  34758. str += String.fromCharCode(ch);
  34759. }
  34760. switch (str.toLowerCase()) {
  34761. case 'if':
  34762. return PostScriptToken.IF;
  34763. case 'ifelse':
  34764. return PostScriptToken.IFELSE;
  34765. default:
  34766. return PostScriptToken.getOperator(str);
  34767. }
  34768. },
  34769. getNumber: function PostScriptLexer_getNumber() {
  34770. var ch = this.currentChar;
  34771. var str = String.fromCharCode(ch);
  34772. while ((ch = this.nextChar()) >= 0) {
  34773. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  34774. ch === 0x2D || ch === 0x2E) { // '-', '.'
  34775. str += String.fromCharCode(ch);
  34776. } else {
  34777. break;
  34778. }
  34779. }
  34780. var value = parseFloat(str);
  34781. if (isNaN(value)) {
  34782. error('Invalid floating point number: ' + value);
  34783. }
  34784. return value;
  34785. }
  34786. };
  34787. return PostScriptLexer;
  34788. })();
  34789. var Stream = (function StreamClosure() {
  34790. function Stream(arrayBuffer, start, length, dict) {
  34791. this.bytes = (arrayBuffer instanceof Uint8Array ?
  34792. arrayBuffer : new Uint8Array(arrayBuffer));
  34793. this.start = start || 0;
  34794. this.pos = this.start;
  34795. this.end = (start + length) || this.bytes.length;
  34796. this.dict = dict;
  34797. }
  34798. // required methods for a stream. if a particular stream does not
  34799. // implement these, an error should be thrown
  34800. Stream.prototype = {
  34801. get length() {
  34802. return this.end - this.start;
  34803. },
  34804. get isEmpty() {
  34805. return this.length === 0;
  34806. },
  34807. getByte: function Stream_getByte() {
  34808. if (this.pos >= this.end) {
  34809. return -1;
  34810. }
  34811. return this.bytes[this.pos++];
  34812. },
  34813. getUint16: function Stream_getUint16() {
  34814. var b0 = this.getByte();
  34815. var b1 = this.getByte();
  34816. return (b0 << 8) + b1;
  34817. },
  34818. getInt32: function Stream_getInt32() {
  34819. var b0 = this.getByte();
  34820. var b1 = this.getByte();
  34821. var b2 = this.getByte();
  34822. var b3 = this.getByte();
  34823. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  34824. },
  34825. // returns subarray of original buffer
  34826. // should only be read
  34827. getBytes: function Stream_getBytes(length) {
  34828. var bytes = this.bytes;
  34829. var pos = this.pos;
  34830. var strEnd = this.end;
  34831. if (!length) {
  34832. return bytes.subarray(pos, strEnd);
  34833. }
  34834. var end = pos + length;
  34835. if (end > strEnd) {
  34836. end = strEnd;
  34837. }
  34838. this.pos = end;
  34839. return bytes.subarray(pos, end);
  34840. },
  34841. peekBytes: function Stream_peekBytes(length) {
  34842. var bytes = this.getBytes(length);
  34843. this.pos -= bytes.length;
  34844. return bytes;
  34845. },
  34846. skip: function Stream_skip(n) {
  34847. if (!n) {
  34848. n = 1;
  34849. }
  34850. this.pos += n;
  34851. },
  34852. reset: function Stream_reset() {
  34853. this.pos = this.start;
  34854. },
  34855. moveStart: function Stream_moveStart() {
  34856. this.start = this.pos;
  34857. },
  34858. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  34859. return new Stream(this.bytes.buffer, start, length, dict);
  34860. },
  34861. isStream: true
  34862. };
  34863. return Stream;
  34864. })();
  34865. var StringStream = (function StringStreamClosure() {
  34866. function StringStream(str) {
  34867. var length = str.length;
  34868. var bytes = new Uint8Array(length);
  34869. for (var n = 0; n < length; ++n) {
  34870. bytes[n] = str.charCodeAt(n);
  34871. }
  34872. Stream.call(this, bytes);
  34873. }
  34874. StringStream.prototype = Stream.prototype;
  34875. return StringStream;
  34876. })();
  34877. // super class for the decoding streams
  34878. var DecodeStream = (function DecodeStreamClosure() {
  34879. // Lots of DecodeStreams are created whose buffers are never used. For these
  34880. // we share a single empty buffer. This is (a) space-efficient and (b) avoids
  34881. // having special cases that would be required if we used |null| for an empty
  34882. // buffer.
  34883. var emptyBuffer = new Uint8Array(0);
  34884. function DecodeStream(maybeMinBufferLength) {
  34885. this.pos = 0;
  34886. this.bufferLength = 0;
  34887. this.eof = false;
  34888. this.buffer = emptyBuffer;
  34889. this.minBufferLength = 512;
  34890. if (maybeMinBufferLength) {
  34891. // Compute the first power of two that is as big as maybeMinBufferLength.
  34892. while (this.minBufferLength < maybeMinBufferLength) {
  34893. this.minBufferLength *= 2;
  34894. }
  34895. }
  34896. }
  34897. DecodeStream.prototype = {
  34898. get isEmpty() {
  34899. while (!this.eof && this.bufferLength === 0) {
  34900. this.readBlock();
  34901. }
  34902. return this.bufferLength === 0;
  34903. },
  34904. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  34905. var buffer = this.buffer;
  34906. if (requested <= buffer.byteLength) {
  34907. return buffer;
  34908. }
  34909. var size = this.minBufferLength;
  34910. while (size < requested) {
  34911. size *= 2;
  34912. }
  34913. var buffer2 = new Uint8Array(size);
  34914. buffer2.set(buffer);
  34915. return (this.buffer = buffer2);
  34916. },
  34917. getByte: function DecodeStream_getByte() {
  34918. var pos = this.pos;
  34919. while (this.bufferLength <= pos) {
  34920. if (this.eof) {
  34921. return -1;
  34922. }
  34923. this.readBlock();
  34924. }
  34925. return this.buffer[this.pos++];
  34926. },
  34927. getUint16: function DecodeStream_getUint16() {
  34928. var b0 = this.getByte();
  34929. var b1 = this.getByte();
  34930. return (b0 << 8) + b1;
  34931. },
  34932. getInt32: function DecodeStream_getInt32() {
  34933. var b0 = this.getByte();
  34934. var b1 = this.getByte();
  34935. var b2 = this.getByte();
  34936. var b3 = this.getByte();
  34937. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  34938. },
  34939. getBytes: function DecodeStream_getBytes(length) {
  34940. var end, pos = this.pos;
  34941. if (length) {
  34942. this.ensureBuffer(pos + length);
  34943. end = pos + length;
  34944. while (!this.eof && this.bufferLength < end) {
  34945. this.readBlock();
  34946. }
  34947. var bufEnd = this.bufferLength;
  34948. if (end > bufEnd) {
  34949. end = bufEnd;
  34950. }
  34951. } else {
  34952. while (!this.eof) {
  34953. this.readBlock();
  34954. }
  34955. end = this.bufferLength;
  34956. }
  34957. this.pos = end;
  34958. return this.buffer.subarray(pos, end);
  34959. },
  34960. peekBytes: function DecodeStream_peekBytes(length) {
  34961. var bytes = this.getBytes(length);
  34962. this.pos -= bytes.length;
  34963. return bytes;
  34964. },
  34965. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  34966. var end = start + length;
  34967. while (this.bufferLength <= end && !this.eof) {
  34968. this.readBlock();
  34969. }
  34970. return new Stream(this.buffer, start, length, dict);
  34971. },
  34972. skip: function DecodeStream_skip(n) {
  34973. if (!n) {
  34974. n = 1;
  34975. }
  34976. this.pos += n;
  34977. },
  34978. reset: function DecodeStream_reset() {
  34979. this.pos = 0;
  34980. },
  34981. getBaseStreams: function DecodeStream_getBaseStreams() {
  34982. if (this.str && this.str.getBaseStreams) {
  34983. return this.str.getBaseStreams();
  34984. }
  34985. return [];
  34986. }
  34987. };
  34988. return DecodeStream;
  34989. })();
  34990. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  34991. function StreamsSequenceStream(streams) {
  34992. this.streams = streams;
  34993. DecodeStream.call(this, /* maybeLength = */ null);
  34994. }
  34995. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  34996. StreamsSequenceStream.prototype.readBlock =
  34997. function streamSequenceStreamReadBlock() {
  34998. var streams = this.streams;
  34999. if (streams.length === 0) {
  35000. this.eof = true;
  35001. return;
  35002. }
  35003. var stream = streams.shift();
  35004. var chunk = stream.getBytes();
  35005. var bufferLength = this.bufferLength;
  35006. var newLength = bufferLength + chunk.length;
  35007. var buffer = this.ensureBuffer(newLength);
  35008. buffer.set(chunk, bufferLength);
  35009. this.bufferLength = newLength;
  35010. };
  35011. StreamsSequenceStream.prototype.getBaseStreams =
  35012. function StreamsSequenceStream_getBaseStreams() {
  35013. var baseStreams = [];
  35014. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  35015. var stream = this.streams[i];
  35016. if (stream.getBaseStreams) {
  35017. Util.appendToArray(baseStreams, stream.getBaseStreams());
  35018. }
  35019. }
  35020. return baseStreams;
  35021. };
  35022. return StreamsSequenceStream;
  35023. })();
  35024. var FlateStream = (function FlateStreamClosure() {
  35025. var codeLenCodeMap = new Uint32Array([
  35026. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  35027. ]);
  35028. var lengthDecode = new Uint32Array([
  35029. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  35030. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  35031. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  35032. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  35033. ]);
  35034. var distDecode = new Uint32Array([
  35035. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  35036. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  35037. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  35038. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  35039. ]);
  35040. var fixedLitCodeTab = [new Uint32Array([
  35041. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  35042. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  35043. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  35044. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  35045. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  35046. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  35047. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  35048. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  35049. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  35050. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  35051. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  35052. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  35053. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  35054. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  35055. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  35056. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  35057. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  35058. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  35059. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  35060. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  35061. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  35062. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  35063. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  35064. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  35065. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  35066. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  35067. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  35068. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  35069. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  35070. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  35071. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  35072. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  35073. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  35074. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  35075. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  35076. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  35077. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  35078. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  35079. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  35080. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  35081. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  35082. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  35083. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  35084. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  35085. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  35086. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  35087. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  35088. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  35089. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  35090. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  35091. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  35092. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  35093. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  35094. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  35095. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  35096. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  35097. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  35098. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  35099. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  35100. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  35101. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  35102. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  35103. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  35104. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  35105. ]), 9];
  35106. var fixedDistCodeTab = [new Uint32Array([
  35107. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  35108. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  35109. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  35110. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  35111. ]), 5];
  35112. function FlateStream(str, maybeLength) {
  35113. this.str = str;
  35114. this.dict = str.dict;
  35115. var cmf = str.getByte();
  35116. var flg = str.getByte();
  35117. if (cmf == -1 || flg == -1) {
  35118. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  35119. }
  35120. if ((cmf & 0x0f) != 0x08) {
  35121. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  35122. }
  35123. if ((((cmf << 8) + flg) % 31) !== 0) {
  35124. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  35125. }
  35126. if (flg & 0x20) {
  35127. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  35128. }
  35129. this.codeSize = 0;
  35130. this.codeBuf = 0;
  35131. DecodeStream.call(this, maybeLength);
  35132. }
  35133. FlateStream.prototype = Object.create(DecodeStream.prototype);
  35134. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  35135. var str = this.str;
  35136. var codeSize = this.codeSize;
  35137. var codeBuf = this.codeBuf;
  35138. var b;
  35139. while (codeSize < bits) {
  35140. if ((b = str.getByte()) === -1) {
  35141. error('Bad encoding in flate stream');
  35142. }
  35143. codeBuf |= b << codeSize;
  35144. codeSize += 8;
  35145. }
  35146. b = codeBuf & ((1 << bits) - 1);
  35147. this.codeBuf = codeBuf >> bits;
  35148. this.codeSize = codeSize -= bits;
  35149. return b;
  35150. };
  35151. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  35152. var str = this.str;
  35153. var codes = table[0];
  35154. var maxLen = table[1];
  35155. var codeSize = this.codeSize;
  35156. var codeBuf = this.codeBuf;
  35157. var b;
  35158. while (codeSize < maxLen) {
  35159. if ((b = str.getByte()) === -1) {
  35160. // premature end of stream. code might however still be valid.
  35161. // codeSize < codeLen check below guards against incomplete codeVal.
  35162. break;
  35163. }
  35164. codeBuf |= (b << codeSize);
  35165. codeSize += 8;
  35166. }
  35167. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  35168. var codeLen = code >> 16;
  35169. var codeVal = code & 0xffff;
  35170. if (codeLen < 1 || codeSize < codeLen) {
  35171. error('Bad encoding in flate stream');
  35172. }
  35173. this.codeBuf = (codeBuf >> codeLen);
  35174. this.codeSize = (codeSize - codeLen);
  35175. return codeVal;
  35176. };
  35177. FlateStream.prototype.generateHuffmanTable =
  35178. function flateStreamGenerateHuffmanTable(lengths) {
  35179. var n = lengths.length;
  35180. // find max code length
  35181. var maxLen = 0;
  35182. var i;
  35183. for (i = 0; i < n; ++i) {
  35184. if (lengths[i] > maxLen) {
  35185. maxLen = lengths[i];
  35186. }
  35187. }
  35188. // build the table
  35189. var size = 1 << maxLen;
  35190. var codes = new Uint32Array(size);
  35191. for (var len = 1, code = 0, skip = 2;
  35192. len <= maxLen;
  35193. ++len, code <<= 1, skip <<= 1) {
  35194. for (var val = 0; val < n; ++val) {
  35195. if (lengths[val] == len) {
  35196. // bit-reverse the code
  35197. var code2 = 0;
  35198. var t = code;
  35199. for (i = 0; i < len; ++i) {
  35200. code2 = (code2 << 1) | (t & 1);
  35201. t >>= 1;
  35202. }
  35203. // fill the table entries
  35204. for (i = code2; i < size; i += skip) {
  35205. codes[i] = (len << 16) | val;
  35206. }
  35207. ++code;
  35208. }
  35209. }
  35210. }
  35211. return [codes, maxLen];
  35212. };
  35213. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  35214. var buffer, len;
  35215. var str = this.str;
  35216. // read block header
  35217. var hdr = this.getBits(3);
  35218. if (hdr & 1) {
  35219. this.eof = true;
  35220. }
  35221. hdr >>= 1;
  35222. if (hdr === 0) { // uncompressed block
  35223. var b;
  35224. if ((b = str.getByte()) === -1) {
  35225. error('Bad block header in flate stream');
  35226. }
  35227. var blockLen = b;
  35228. if ((b = str.getByte()) === -1) {
  35229. error('Bad block header in flate stream');
  35230. }
  35231. blockLen |= (b << 8);
  35232. if ((b = str.getByte()) === -1) {
  35233. error('Bad block header in flate stream');
  35234. }
  35235. var check = b;
  35236. if ((b = str.getByte()) === -1) {
  35237. error('Bad block header in flate stream');
  35238. }
  35239. check |= (b << 8);
  35240. if (check != (~blockLen & 0xffff) &&
  35241. (blockLen !== 0 || check !== 0)) {
  35242. // Ignoring error for bad "empty" block (see issue 1277)
  35243. error('Bad uncompressed block length in flate stream');
  35244. }
  35245. this.codeBuf = 0;
  35246. this.codeSize = 0;
  35247. var bufferLength = this.bufferLength;
  35248. buffer = this.ensureBuffer(bufferLength + blockLen);
  35249. var end = bufferLength + blockLen;
  35250. this.bufferLength = end;
  35251. if (blockLen === 0) {
  35252. if (str.peekBytes(1).length === 0) {
  35253. this.eof = true;
  35254. }
  35255. } else {
  35256. var block = str.getBytes(blockLen);
  35257. buffer.set(block, bufferLength);
  35258. if (block.length < blockLen) {
  35259. this.eof = true;
  35260. }
  35261. }
  35262. return;
  35263. }
  35264. var litCodeTable;
  35265. var distCodeTable;
  35266. if (hdr == 1) { // compressed block, fixed codes
  35267. litCodeTable = fixedLitCodeTab;
  35268. distCodeTable = fixedDistCodeTab;
  35269. } else if (hdr == 2) { // compressed block, dynamic codes
  35270. var numLitCodes = this.getBits(5) + 257;
  35271. var numDistCodes = this.getBits(5) + 1;
  35272. var numCodeLenCodes = this.getBits(4) + 4;
  35273. // build the code lengths code table
  35274. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  35275. var i;
  35276. for (i = 0; i < numCodeLenCodes; ++i) {
  35277. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  35278. }
  35279. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  35280. // build the literal and distance code tables
  35281. len = 0;
  35282. i = 0;
  35283. var codes = numLitCodes + numDistCodes;
  35284. var codeLengths = new Uint8Array(codes);
  35285. var bitsLength, bitsOffset, what;
  35286. while (i < codes) {
  35287. var code = this.getCode(codeLenCodeTab);
  35288. if (code == 16) {
  35289. bitsLength = 2; bitsOffset = 3; what = len;
  35290. } else if (code == 17) {
  35291. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  35292. } else if (code == 18) {
  35293. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  35294. } else {
  35295. codeLengths[i++] = len = code;
  35296. continue;
  35297. }
  35298. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  35299. while (repeatLength-- > 0) {
  35300. codeLengths[i++] = what;
  35301. }
  35302. }
  35303. litCodeTable =
  35304. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  35305. distCodeTable =
  35306. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  35307. } else {
  35308. error('Unknown block type in flate stream');
  35309. }
  35310. buffer = this.buffer;
  35311. var limit = buffer ? buffer.length : 0;
  35312. var pos = this.bufferLength;
  35313. while (true) {
  35314. var code1 = this.getCode(litCodeTable);
  35315. if (code1 < 256) {
  35316. if (pos + 1 >= limit) {
  35317. buffer = this.ensureBuffer(pos + 1);
  35318. limit = buffer.length;
  35319. }
  35320. buffer[pos++] = code1;
  35321. continue;
  35322. }
  35323. if (code1 == 256) {
  35324. this.bufferLength = pos;
  35325. return;
  35326. }
  35327. code1 -= 257;
  35328. code1 = lengthDecode[code1];
  35329. var code2 = code1 >> 16;
  35330. if (code2 > 0) {
  35331. code2 = this.getBits(code2);
  35332. }
  35333. len = (code1 & 0xffff) + code2;
  35334. code1 = this.getCode(distCodeTable);
  35335. code1 = distDecode[code1];
  35336. code2 = code1 >> 16;
  35337. if (code2 > 0) {
  35338. code2 = this.getBits(code2);
  35339. }
  35340. var dist = (code1 & 0xffff) + code2;
  35341. if (pos + len >= limit) {
  35342. buffer = this.ensureBuffer(pos + len);
  35343. limit = buffer.length;
  35344. }
  35345. for (var k = 0; k < len; ++k, ++pos) {
  35346. buffer[pos] = buffer[pos - dist];
  35347. }
  35348. }
  35349. };
  35350. return FlateStream;
  35351. })();
  35352. var PredictorStream = (function PredictorStreamClosure() {
  35353. function PredictorStream(str, maybeLength, params) {
  35354. var predictor = this.predictor = params.get('Predictor') || 1;
  35355. if (predictor <= 1) {
  35356. return str; // no prediction
  35357. }
  35358. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  35359. error('Unsupported predictor: ' + predictor);
  35360. }
  35361. if (predictor === 2) {
  35362. this.readBlock = this.readBlockTiff;
  35363. } else {
  35364. this.readBlock = this.readBlockPng;
  35365. }
  35366. this.str = str;
  35367. this.dict = str.dict;
  35368. var colors = this.colors = params.get('Colors') || 1;
  35369. var bits = this.bits = params.get('BitsPerComponent') || 8;
  35370. var columns = this.columns = params.get('Columns') || 1;
  35371. this.pixBytes = (colors * bits + 7) >> 3;
  35372. this.rowBytes = (columns * colors * bits + 7) >> 3;
  35373. DecodeStream.call(this, maybeLength);
  35374. return this;
  35375. }
  35376. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  35377. PredictorStream.prototype.readBlockTiff =
  35378. function predictorStreamReadBlockTiff() {
  35379. var rowBytes = this.rowBytes;
  35380. var bufferLength = this.bufferLength;
  35381. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35382. var bits = this.bits;
  35383. var colors = this.colors;
  35384. var rawBytes = this.str.getBytes(rowBytes);
  35385. this.eof = !rawBytes.length;
  35386. if (this.eof) {
  35387. return;
  35388. }
  35389. var inbuf = 0, outbuf = 0;
  35390. var inbits = 0, outbits = 0;
  35391. var pos = bufferLength;
  35392. var i;
  35393. if (bits === 1) {
  35394. for (i = 0; i < rowBytes; ++i) {
  35395. var c = rawBytes[i];
  35396. inbuf = (inbuf << 8) | c;
  35397. // bitwise addition is exclusive or
  35398. // first shift inbuf and then add
  35399. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  35400. // truncate inbuf (assumes colors < 16)
  35401. inbuf &= 0xFFFF;
  35402. }
  35403. } else if (bits === 8) {
  35404. for (i = 0; i < colors; ++i) {
  35405. buffer[pos++] = rawBytes[i];
  35406. }
  35407. for (; i < rowBytes; ++i) {
  35408. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  35409. pos++;
  35410. }
  35411. } else {
  35412. var compArray = new Uint8Array(colors + 1);
  35413. var bitMask = (1 << bits) - 1;
  35414. var j = 0, k = bufferLength;
  35415. var columns = this.columns;
  35416. for (i = 0; i < columns; ++i) {
  35417. for (var kk = 0; kk < colors; ++kk) {
  35418. if (inbits < bits) {
  35419. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  35420. inbits += 8;
  35421. }
  35422. compArray[kk] = (compArray[kk] +
  35423. (inbuf >> (inbits - bits))) & bitMask;
  35424. inbits -= bits;
  35425. outbuf = (outbuf << bits) | compArray[kk];
  35426. outbits += bits;
  35427. if (outbits >= 8) {
  35428. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  35429. outbits -= 8;
  35430. }
  35431. }
  35432. }
  35433. if (outbits > 0) {
  35434. buffer[k++] = (outbuf << (8 - outbits)) +
  35435. (inbuf & ((1 << (8 - outbits)) - 1));
  35436. }
  35437. }
  35438. this.bufferLength += rowBytes;
  35439. };
  35440. PredictorStream.prototype.readBlockPng =
  35441. function predictorStreamReadBlockPng() {
  35442. var rowBytes = this.rowBytes;
  35443. var pixBytes = this.pixBytes;
  35444. var predictor = this.str.getByte();
  35445. var rawBytes = this.str.getBytes(rowBytes);
  35446. this.eof = !rawBytes.length;
  35447. if (this.eof) {
  35448. return;
  35449. }
  35450. var bufferLength = this.bufferLength;
  35451. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35452. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  35453. if (prevRow.length === 0) {
  35454. prevRow = new Uint8Array(rowBytes);
  35455. }
  35456. var i, j = bufferLength, up, c;
  35457. switch (predictor) {
  35458. case 0:
  35459. for (i = 0; i < rowBytes; ++i) {
  35460. buffer[j++] = rawBytes[i];
  35461. }
  35462. break;
  35463. case 1:
  35464. for (i = 0; i < pixBytes; ++i) {
  35465. buffer[j++] = rawBytes[i];
  35466. }
  35467. for (; i < rowBytes; ++i) {
  35468. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  35469. j++;
  35470. }
  35471. break;
  35472. case 2:
  35473. for (i = 0; i < rowBytes; ++i) {
  35474. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  35475. }
  35476. break;
  35477. case 3:
  35478. for (i = 0; i < pixBytes; ++i) {
  35479. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  35480. }
  35481. for (; i < rowBytes; ++i) {
  35482. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  35483. rawBytes[i]) & 0xFF;
  35484. j++;
  35485. }
  35486. break;
  35487. case 4:
  35488. // we need to save the up left pixels values. the simplest way
  35489. // is to create a new buffer
  35490. for (i = 0; i < pixBytes; ++i) {
  35491. up = prevRow[i];
  35492. c = rawBytes[i];
  35493. buffer[j++] = up + c;
  35494. }
  35495. for (; i < rowBytes; ++i) {
  35496. up = prevRow[i];
  35497. var upLeft = prevRow[i - pixBytes];
  35498. var left = buffer[j - pixBytes];
  35499. var p = left + up - upLeft;
  35500. var pa = p - left;
  35501. if (pa < 0) {
  35502. pa = -pa;
  35503. }
  35504. var pb = p - up;
  35505. if (pb < 0) {
  35506. pb = -pb;
  35507. }
  35508. var pc = p - upLeft;
  35509. if (pc < 0) {
  35510. pc = -pc;
  35511. }
  35512. c = rawBytes[i];
  35513. if (pa <= pb && pa <= pc) {
  35514. buffer[j++] = left + c;
  35515. } else if (pb <= pc) {
  35516. buffer[j++] = up + c;
  35517. } else {
  35518. buffer[j++] = upLeft + c;
  35519. }
  35520. }
  35521. break;
  35522. default:
  35523. error('Unsupported predictor: ' + predictor);
  35524. }
  35525. this.bufferLength += rowBytes;
  35526. };
  35527. return PredictorStream;
  35528. })();
  35529. /**
  35530. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  35531. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  35532. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  35533. * a library to decode these images and the stream behaves like all the other
  35534. * DecodeStreams.
  35535. */
  35536. var JpegStream = (function JpegStreamClosure() {
  35537. function JpegStream(stream, maybeLength, dict, xref) {
  35538. // TODO: per poppler, some images may have 'junk' before that
  35539. // need to be removed
  35540. this.stream = stream;
  35541. this.maybeLength = maybeLength;
  35542. this.dict = dict;
  35543. DecodeStream.call(this, maybeLength);
  35544. }
  35545. JpegStream.prototype = Object.create(DecodeStream.prototype);
  35546. Object.defineProperty(JpegStream.prototype, 'bytes', {
  35547. get: function JpegStream_bytes() {
  35548. // If this.maybeLength is null, we'll get the entire stream.
  35549. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35550. },
  35551. configurable: true
  35552. });
  35553. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  35554. if (this.bufferLength) {
  35555. return;
  35556. }
  35557. try {
  35558. var jpegImage = new JpegImage();
  35559. // checking if values needs to be transformed before conversion
  35560. if (this.dict && isArray(this.dict.get('Decode'))) {
  35561. var decodeArr = this.dict.get('Decode');
  35562. var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
  35563. var decodeArrLength = decodeArr.length;
  35564. var transform = new Int32Array(decodeArrLength);
  35565. var transformNeeded = false;
  35566. var maxValue = (1 << bitsPerComponent) - 1;
  35567. for (var i = 0; i < decodeArrLength; i += 2) {
  35568. transform[i] = ((decodeArr[i + 1] - decodeArr[i]) * 256) | 0;
  35569. transform[i + 1] = (decodeArr[i] * maxValue) | 0;
  35570. if (transform[i] !== 256 || transform[i + 1] !== 0) {
  35571. transformNeeded = true;
  35572. }
  35573. }
  35574. if (transformNeeded) {
  35575. jpegImage.decodeTransform = transform;
  35576. }
  35577. }
  35578. jpegImage.parse(this.bytes);
  35579. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  35580. this.forceRGB);
  35581. this.buffer = data;
  35582. this.bufferLength = data.length;
  35583. this.eof = true;
  35584. } catch (e) {
  35585. error('JPEG error: ' + e);
  35586. }
  35587. };
  35588. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  35589. this.ensureBuffer();
  35590. return this.buffer;
  35591. };
  35592. JpegStream.prototype.getIR = function JpegStream_getIR() {
  35593. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  35594. };
  35595. /**
  35596. * Checks if the image can be decoded and displayed by the browser without any
  35597. * further processing such as color space conversions.
  35598. */
  35599. JpegStream.prototype.isNativelySupported =
  35600. function JpegStream_isNativelySupported(xref, res) {
  35601. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35602. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  35603. };
  35604. /**
  35605. * Checks if the image can be decoded by the browser.
  35606. */
  35607. JpegStream.prototype.isNativelyDecodable =
  35608. function JpegStream_isNativelyDecodable(xref, res) {
  35609. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35610. var numComps = cs.numComps;
  35611. return numComps == 1 || numComps == 3;
  35612. };
  35613. return JpegStream;
  35614. })();
  35615. /**
  35616. * For JPEG 2000's we use a library to decode these images and
  35617. * the stream behaves like all the other DecodeStreams.
  35618. */
  35619. var JpxStream = (function JpxStreamClosure() {
  35620. function JpxStream(stream, maybeLength, dict) {
  35621. this.stream = stream;
  35622. this.maybeLength = maybeLength;
  35623. this.dict = dict;
  35624. DecodeStream.call(this, maybeLength);
  35625. }
  35626. JpxStream.prototype = Object.create(DecodeStream.prototype);
  35627. Object.defineProperty(JpxStream.prototype, 'bytes', {
  35628. get: function JpxStream_bytes() {
  35629. // If this.maybeLength is null, we'll get the entire stream.
  35630. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35631. },
  35632. configurable: true
  35633. });
  35634. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  35635. if (this.bufferLength) {
  35636. return;
  35637. }
  35638. var jpxImage = new JpxImage();
  35639. jpxImage.parse(this.bytes);
  35640. var width = jpxImage.width;
  35641. var height = jpxImage.height;
  35642. var componentsCount = jpxImage.componentsCount;
  35643. var tileCount = jpxImage.tiles.length;
  35644. if (tileCount === 1) {
  35645. this.buffer = jpxImage.tiles[0].items;
  35646. } else {
  35647. var data = new Uint8Array(width * height * componentsCount);
  35648. for (var k = 0; k < tileCount; k++) {
  35649. var tileComponents = jpxImage.tiles[k];
  35650. var tileWidth = tileComponents.width;
  35651. var tileHeight = tileComponents.height;
  35652. var tileLeft = tileComponents.left;
  35653. var tileTop = tileComponents.top;
  35654. var src = tileComponents.items;
  35655. var srcPosition = 0;
  35656. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  35657. var imgRowSize = width * componentsCount;
  35658. var tileRowSize = tileWidth * componentsCount;
  35659. for (var j = 0; j < tileHeight; j++) {
  35660. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  35661. data.set(rowBytes, dataPosition);
  35662. srcPosition += tileRowSize;
  35663. dataPosition += imgRowSize;
  35664. }
  35665. }
  35666. this.buffer = data;
  35667. }
  35668. this.bufferLength = this.buffer.length;
  35669. this.eof = true;
  35670. };
  35671. return JpxStream;
  35672. })();
  35673. /**
  35674. * For JBIG2's we use a library to decode these images and
  35675. * the stream behaves like all the other DecodeStreams.
  35676. */
  35677. var Jbig2Stream = (function Jbig2StreamClosure() {
  35678. function Jbig2Stream(stream, maybeLength, dict) {
  35679. this.stream = stream;
  35680. this.maybeLength = maybeLength;
  35681. this.dict = dict;
  35682. DecodeStream.call(this, maybeLength);
  35683. }
  35684. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  35685. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  35686. get: function Jbig2Stream_bytes() {
  35687. // If this.maybeLength is null, we'll get the entire stream.
  35688. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35689. },
  35690. configurable: true
  35691. });
  35692. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  35693. if (this.bufferLength) {
  35694. return;
  35695. }
  35696. var jbig2Image = new Jbig2Image();
  35697. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  35698. // According to the PDF specification, DecodeParms can be either
  35699. // a dictionary, or an array whose elements are dictionaries.
  35700. if (isArray(decodeParams)) {
  35701. if (decodeParams.length > 1) {
  35702. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  35703. 'not supported.');
  35704. }
  35705. decodeParams = decodeParams[0];
  35706. }
  35707. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  35708. var globalsStream = decodeParams.get('JBIG2Globals');
  35709. var globals = globalsStream.getBytes();
  35710. chunks.push({data: globals, start: 0, end: globals.length});
  35711. }
  35712. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  35713. var data = jbig2Image.parseChunks(chunks);
  35714. var dataLength = data.length;
  35715. // JBIG2 had black as 1 and white as 0, inverting the colors
  35716. for (var i = 0; i < dataLength; i++) {
  35717. data[i] ^= 0xFF;
  35718. }
  35719. this.buffer = data;
  35720. this.bufferLength = dataLength;
  35721. this.eof = true;
  35722. };
  35723. return Jbig2Stream;
  35724. })();
  35725. var DecryptStream = (function DecryptStreamClosure() {
  35726. function DecryptStream(str, maybeLength, decrypt) {
  35727. this.str = str;
  35728. this.dict = str.dict;
  35729. this.decrypt = decrypt;
  35730. this.nextChunk = null;
  35731. this.initialized = false;
  35732. DecodeStream.call(this, maybeLength);
  35733. }
  35734. var chunkSize = 512;
  35735. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  35736. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  35737. var chunk;
  35738. if (this.initialized) {
  35739. chunk = this.nextChunk;
  35740. } else {
  35741. chunk = this.str.getBytes(chunkSize);
  35742. this.initialized = true;
  35743. }
  35744. if (!chunk || chunk.length === 0) {
  35745. this.eof = true;
  35746. return;
  35747. }
  35748. this.nextChunk = this.str.getBytes(chunkSize);
  35749. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  35750. var decrypt = this.decrypt;
  35751. chunk = decrypt(chunk, !hasMoreData);
  35752. var bufferLength = this.bufferLength;
  35753. var i, n = chunk.length;
  35754. var buffer = this.ensureBuffer(bufferLength + n);
  35755. for (i = 0; i < n; i++) {
  35756. buffer[bufferLength++] = chunk[i];
  35757. }
  35758. this.bufferLength = bufferLength;
  35759. };
  35760. return DecryptStream;
  35761. })();
  35762. var Ascii85Stream = (function Ascii85StreamClosure() {
  35763. function Ascii85Stream(str, maybeLength) {
  35764. this.str = str;
  35765. this.dict = str.dict;
  35766. this.input = new Uint8Array(5);
  35767. // Most streams increase in size when decoded, but Ascii85 streams
  35768. // typically shrink by ~20%.
  35769. if (maybeLength) {
  35770. maybeLength = 0.8 * maybeLength;
  35771. }
  35772. DecodeStream.call(this, maybeLength);
  35773. }
  35774. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  35775. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  35776. var TILDA_CHAR = 0x7E; // '~'
  35777. var Z_LOWER_CHAR = 0x7A; // 'z'
  35778. var EOF = -1;
  35779. var str = this.str;
  35780. var c = str.getByte();
  35781. while (Lexer.isSpace(c)) {
  35782. c = str.getByte();
  35783. }
  35784. if (c === EOF || c === TILDA_CHAR) {
  35785. this.eof = true;
  35786. return;
  35787. }
  35788. var bufferLength = this.bufferLength, buffer;
  35789. var i;
  35790. // special code for z
  35791. if (c == Z_LOWER_CHAR) {
  35792. buffer = this.ensureBuffer(bufferLength + 4);
  35793. for (i = 0; i < 4; ++i) {
  35794. buffer[bufferLength + i] = 0;
  35795. }
  35796. this.bufferLength += 4;
  35797. } else {
  35798. var input = this.input;
  35799. input[0] = c;
  35800. for (i = 1; i < 5; ++i) {
  35801. c = str.getByte();
  35802. while (Lexer.isSpace(c)) {
  35803. c = str.getByte();
  35804. }
  35805. input[i] = c;
  35806. if (c === EOF || c == TILDA_CHAR) {
  35807. break;
  35808. }
  35809. }
  35810. buffer = this.ensureBuffer(bufferLength + i - 1);
  35811. this.bufferLength += i - 1;
  35812. // partial ending;
  35813. if (i < 5) {
  35814. for (; i < 5; ++i) {
  35815. input[i] = 0x21 + 84;
  35816. }
  35817. this.eof = true;
  35818. }
  35819. var t = 0;
  35820. for (i = 0; i < 5; ++i) {
  35821. t = t * 85 + (input[i] - 0x21);
  35822. }
  35823. for (i = 3; i >= 0; --i) {
  35824. buffer[bufferLength + i] = t & 0xFF;
  35825. t >>= 8;
  35826. }
  35827. }
  35828. };
  35829. return Ascii85Stream;
  35830. })();
  35831. var AsciiHexStream = (function AsciiHexStreamClosure() {
  35832. function AsciiHexStream(str, maybeLength) {
  35833. this.str = str;
  35834. this.dict = str.dict;
  35835. this.firstDigit = -1;
  35836. // Most streams increase in size when decoded, but AsciiHex streams shrink
  35837. // by 50%.
  35838. if (maybeLength) {
  35839. maybeLength = 0.5 * maybeLength;
  35840. }
  35841. DecodeStream.call(this, maybeLength);
  35842. }
  35843. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  35844. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  35845. var UPSTREAM_BLOCK_SIZE = 8000;
  35846. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  35847. if (!bytes.length) {
  35848. this.eof = true;
  35849. return;
  35850. }
  35851. var maxDecodeLength = (bytes.length + 1) >> 1;
  35852. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  35853. var bufferLength = this.bufferLength;
  35854. var firstDigit = this.firstDigit;
  35855. for (var i = 0, ii = bytes.length; i < ii; i++) {
  35856. var ch = bytes[i], digit;
  35857. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  35858. digit = ch & 0x0F;
  35859. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  35860. // 'A'-'Z', 'a'-'z'
  35861. digit = (ch & 0x0F) + 9;
  35862. } else if (ch === 0x3E) { // '>'
  35863. this.eof = true;
  35864. break;
  35865. } else { // probably whitespace
  35866. continue; // ignoring
  35867. }
  35868. if (firstDigit < 0) {
  35869. firstDigit = digit;
  35870. } else {
  35871. buffer[bufferLength++] = (firstDigit << 4) | digit;
  35872. firstDigit = -1;
  35873. }
  35874. }
  35875. if (firstDigit >= 0 && this.eof) {
  35876. // incomplete byte
  35877. buffer[bufferLength++] = (firstDigit << 4);
  35878. firstDigit = -1;
  35879. }
  35880. this.firstDigit = firstDigit;
  35881. this.bufferLength = bufferLength;
  35882. };
  35883. return AsciiHexStream;
  35884. })();
  35885. var RunLengthStream = (function RunLengthStreamClosure() {
  35886. function RunLengthStream(str, maybeLength) {
  35887. this.str = str;
  35888. this.dict = str.dict;
  35889. DecodeStream.call(this, maybeLength);
  35890. }
  35891. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  35892. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  35893. // The repeatHeader has following format. The first byte defines type of run
  35894. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  35895. // (in addition to the second byte from the header), n = 129 through 255 -
  35896. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  35897. var repeatHeader = this.str.getBytes(2);
  35898. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  35899. this.eof = true;
  35900. return;
  35901. }
  35902. var buffer;
  35903. var bufferLength = this.bufferLength;
  35904. var n = repeatHeader[0];
  35905. if (n < 128) {
  35906. // copy n bytes
  35907. buffer = this.ensureBuffer(bufferLength + n + 1);
  35908. buffer[bufferLength++] = repeatHeader[1];
  35909. if (n > 0) {
  35910. var source = this.str.getBytes(n);
  35911. buffer.set(source, bufferLength);
  35912. bufferLength += n;
  35913. }
  35914. } else {
  35915. n = 257 - n;
  35916. var b = repeatHeader[1];
  35917. buffer = this.ensureBuffer(bufferLength + n + 1);
  35918. for (var i = 0; i < n; i++) {
  35919. buffer[bufferLength++] = b;
  35920. }
  35921. }
  35922. this.bufferLength = bufferLength;
  35923. };
  35924. return RunLengthStream;
  35925. })();
  35926. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  35927. var ccittEOL = -2;
  35928. var twoDimPass = 0;
  35929. var twoDimHoriz = 1;
  35930. var twoDimVert0 = 2;
  35931. var twoDimVertR1 = 3;
  35932. var twoDimVertL1 = 4;
  35933. var twoDimVertR2 = 5;
  35934. var twoDimVertL2 = 6;
  35935. var twoDimVertR3 = 7;
  35936. var twoDimVertL3 = 8;
  35937. var twoDimTable = [
  35938. [-1, -1], [-1, -1], // 000000x
  35939. [7, twoDimVertL3], // 0000010
  35940. [7, twoDimVertR3], // 0000011
  35941. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  35942. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  35943. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  35944. [4, twoDimPass], [4, twoDimPass],
  35945. [4, twoDimPass], [4, twoDimPass],
  35946. [4, twoDimPass], [4, twoDimPass],
  35947. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  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, twoDimHoriz], [3, twoDimHoriz],
  35955. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  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, twoDimVertL1], [3, twoDimVertL1],
  35963. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  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. [3, twoDimVertR1], [3, twoDimVertR1],
  35971. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  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. [1, twoDimVert0], [1, twoDimVert0]
  36003. ];
  36004. var whiteTable1 = [
  36005. [-1, -1], // 00000
  36006. [12, ccittEOL], // 00001
  36007. [-1, -1], [-1, -1], // 0001x
  36008. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  36009. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  36010. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  36011. [11, 1792], [11, 1792], // 1000x
  36012. [12, 1984], // 10010
  36013. [12, 2048], // 10011
  36014. [12, 2112], // 10100
  36015. [12, 2176], // 10101
  36016. [12, 2240], // 10110
  36017. [12, 2304], // 10111
  36018. [11, 1856], [11, 1856], // 1100x
  36019. [11, 1920], [11, 1920], // 1101x
  36020. [12, 2368], // 11100
  36021. [12, 2432], // 11101
  36022. [12, 2496], // 11110
  36023. [12, 2560] // 11111
  36024. ];
  36025. var whiteTable2 = [
  36026. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  36027. [8, 29], [8, 29], // 00000010x
  36028. [8, 30], [8, 30], // 00000011x
  36029. [8, 45], [8, 45], // 00000100x
  36030. [8, 46], [8, 46], // 00000101x
  36031. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  36032. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  36033. [8, 47], [8, 47], // 00001010x
  36034. [8, 48], [8, 48], // 00001011x
  36035. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  36036. [6, 13], [6, 13], [6, 13], [6, 13],
  36037. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  36038. [8, 33], [8, 33], // 00010010x
  36039. [8, 34], [8, 34], // 00010011x
  36040. [8, 35], [8, 35], // 00010100x
  36041. [8, 36], [8, 36], // 00010101x
  36042. [8, 37], [8, 37], // 00010110x
  36043. [8, 38], [8, 38], // 00010111x
  36044. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  36045. [8, 31], [8, 31], // 00011010x
  36046. [8, 32], [8, 32], // 00011011x
  36047. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  36048. [6, 1], [6, 1], [6, 1], [6, 1],
  36049. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  36050. [6, 12], [6, 12], [6, 12], [6, 12],
  36051. [8, 53], [8, 53], // 00100100x
  36052. [8, 54], [8, 54], // 00100101x
  36053. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  36054. [8, 39], [8, 39], // 00101000x
  36055. [8, 40], [8, 40], // 00101001x
  36056. [8, 41], [8, 41], // 00101010x
  36057. [8, 42], [8, 42], // 00101011x
  36058. [8, 43], [8, 43], // 00101100x
  36059. [8, 44], [8, 44], // 00101101x
  36060. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  36061. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  36062. [8, 61], [8, 61], // 00110010x
  36063. [8, 62], [8, 62], // 00110011x
  36064. [8, 63], [8, 63], // 00110100x
  36065. [8, 0], [8, 0], // 00110101x
  36066. [8, 320], [8, 320], // 00110110x
  36067. [8, 384], [8, 384], // 00110111x
  36068. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  36069. [5, 10], [5, 10], [5, 10], [5, 10],
  36070. [5, 10], [5, 10], [5, 10], [5, 10],
  36071. [5, 10], [5, 10], [5, 10], [5, 10],
  36072. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  36073. [5, 11], [5, 11], [5, 11], [5, 11],
  36074. [5, 11], [5, 11], [5, 11], [5, 11],
  36075. [5, 11], [5, 11], [5, 11], [5, 11],
  36076. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  36077. [8, 59], [8, 59], // 01001010x
  36078. [8, 60], [8, 60], // 01001011x
  36079. [9, 1472], // 010011000
  36080. [9, 1536], // 010011001
  36081. [9, 1600], // 010011010
  36082. [9, 1728], // 010011011
  36083. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  36084. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  36085. [8, 49], [8, 49], // 01010010x
  36086. [8, 50], [8, 50], // 01010011x
  36087. [8, 51], [8, 51], // 01010100x
  36088. [8, 52], [8, 52], // 01010101x
  36089. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  36090. [8, 55], [8, 55], // 01011000x
  36091. [8, 56], [8, 56], // 01011001x
  36092. [8, 57], [8, 57], // 01011010x
  36093. [8, 58], [8, 58], // 01011011x
  36094. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  36095. [6, 192], [6, 192], [6, 192], [6, 192],
  36096. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  36097. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  36098. [8, 448], [8, 448], // 01100100x
  36099. [8, 512], [8, 512], // 01100101x
  36100. [9, 704], // 011001100
  36101. [9, 768], // 011001101
  36102. [8, 640], [8, 640], // 01100111x
  36103. [8, 576], [8, 576], // 01101000x
  36104. [9, 832], // 011010010
  36105. [9, 896], // 011010011
  36106. [9, 960], // 011010100
  36107. [9, 1024], // 011010101
  36108. [9, 1088], // 011010110
  36109. [9, 1152], // 011010111
  36110. [9, 1216], // 011011000
  36111. [9, 1280], // 011011001
  36112. [9, 1344], // 011011010
  36113. [9, 1408], // 011011011
  36114. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  36115. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  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, 2], [4, 2], [4, 2], [4, 2],
  36123. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  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. [4, 3], [4, 3], [4, 3], [4, 3],
  36131. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  36132. [5, 128], [5, 128], [5, 128], [5, 128],
  36133. [5, 128], [5, 128], [5, 128], [5, 128],
  36134. [5, 128], [5, 128], [5, 128], [5, 128],
  36135. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  36136. [5, 8], [5, 8], [5, 8], [5, 8],
  36137. [5, 8], [5, 8], [5, 8], [5, 8],
  36138. [5, 8], [5, 8], [5, 8], [5, 8],
  36139. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  36140. [5, 9], [5, 9], [5, 9], [5, 9],
  36141. [5, 9], [5, 9], [5, 9], [5, 9],
  36142. [5, 9], [5, 9], [5, 9], [5, 9],
  36143. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  36144. [6, 16], [6, 16], [6, 16], [6, 16],
  36145. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  36146. [6, 17], [6, 17], [6, 17], [6, 17],
  36147. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  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, 4], [4, 4], [4, 4], [4, 4],
  36155. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  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. [4, 5], [4, 5], [4, 5], [4, 5],
  36163. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  36164. [6, 14], [6, 14], [6, 14], [6, 14],
  36165. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  36166. [6, 15], [6, 15], [6, 15], [6, 15],
  36167. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  36168. [5, 64], [5, 64], [5, 64], [5, 64],
  36169. [5, 64], [5, 64], [5, 64], [5, 64],
  36170. [5, 64], [5, 64], [5, 64], [5, 64],
  36171. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  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, 6], [4, 6], [4, 6], [4, 6],
  36179. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  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. [4, 7], [4, 7], [4, 7], [4, 7]
  36187. ];
  36188. var blackTable1 = [
  36189. [-1, -1], [-1, -1], // 000000000000x
  36190. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  36191. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  36192. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  36193. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  36194. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  36195. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  36196. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  36197. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  36198. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  36199. [12, 1984], [12, 1984], // 000000010010x
  36200. [12, 2048], [12, 2048], // 000000010011x
  36201. [12, 2112], [12, 2112], // 000000010100x
  36202. [12, 2176], [12, 2176], // 000000010101x
  36203. [12, 2240], [12, 2240], // 000000010110x
  36204. [12, 2304], [12, 2304], // 000000010111x
  36205. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  36206. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  36207. [12, 2368], [12, 2368], // 000000011100x
  36208. [12, 2432], [12, 2432], // 000000011101x
  36209. [12, 2496], [12, 2496], // 000000011110x
  36210. [12, 2560], [12, 2560], // 000000011111x
  36211. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  36212. [10, 18], [10, 18], [10, 18], [10, 18],
  36213. [12, 52], [12, 52], // 000000100100x
  36214. [13, 640], // 0000001001010
  36215. [13, 704], // 0000001001011
  36216. [13, 768], // 0000001001100
  36217. [13, 832], // 0000001001101
  36218. [12, 55], [12, 55], // 000000100111x
  36219. [12, 56], [12, 56], // 000000101000x
  36220. [13, 1280], // 0000001010010
  36221. [13, 1344], // 0000001010011
  36222. [13, 1408], // 0000001010100
  36223. [13, 1472], // 0000001010101
  36224. [12, 59], [12, 59], // 000000101011x
  36225. [12, 60], [12, 60], // 000000101100x
  36226. [13, 1536], // 0000001011010
  36227. [13, 1600], // 0000001011011
  36228. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  36229. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  36230. [13, 1664], // 0000001100100
  36231. [13, 1728], // 0000001100101
  36232. [12, 320], [12, 320], // 000000110011x
  36233. [12, 384], [12, 384], // 000000110100x
  36234. [12, 448], [12, 448], // 000000110101x
  36235. [13, 512], // 0000001101100
  36236. [13, 576], // 0000001101101
  36237. [12, 53], [12, 53], // 000000110111x
  36238. [12, 54], [12, 54], // 000000111000x
  36239. [13, 896], // 0000001110010
  36240. [13, 960], // 0000001110011
  36241. [13, 1024], // 0000001110100
  36242. [13, 1088], // 0000001110101
  36243. [13, 1152], // 0000001110110
  36244. [13, 1216], // 0000001110111
  36245. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  36246. [10, 64], [10, 64], [10, 64], [10, 64]
  36247. ];
  36248. var blackTable2 = [
  36249. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  36250. [8, 13], [8, 13], [8, 13], [8, 13],
  36251. [8, 13], [8, 13], [8, 13], [8, 13],
  36252. [8, 13], [8, 13], [8, 13], [8, 13],
  36253. [11, 23], [11, 23], // 00000101000x
  36254. [12, 50], // 000001010010
  36255. [12, 51], // 000001010011
  36256. [12, 44], // 000001010100
  36257. [12, 45], // 000001010101
  36258. [12, 46], // 000001010110
  36259. [12, 47], // 000001010111
  36260. [12, 57], // 000001011000
  36261. [12, 58], // 000001011001
  36262. [12, 61], // 000001011010
  36263. [12, 256], // 000001011011
  36264. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  36265. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  36266. [12, 48], // 000001100100
  36267. [12, 49], // 000001100101
  36268. [12, 62], // 000001100110
  36269. [12, 63], // 000001100111
  36270. [12, 30], // 000001101000
  36271. [12, 31], // 000001101001
  36272. [12, 32], // 000001101010
  36273. [12, 33], // 000001101011
  36274. [12, 40], // 000001101100
  36275. [12, 41], // 000001101101
  36276. [11, 22], [11, 22], // 00000110111x
  36277. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  36278. [8, 14], [8, 14], [8, 14], [8, 14],
  36279. [8, 14], [8, 14], [8, 14], [8, 14],
  36280. [8, 14], [8, 14], [8, 14], [8, 14],
  36281. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  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, 10], [7, 10], [7, 10], [7, 10],
  36289. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  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. [7, 11], [7, 11], [7, 11], [7, 11],
  36297. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  36298. [9, 15], [9, 15], [9, 15], [9, 15],
  36299. [12, 128], // 000011001000
  36300. [12, 192], // 000011001001
  36301. [12, 26], // 000011001010
  36302. [12, 27], // 000011001011
  36303. [12, 28], // 000011001100
  36304. [12, 29], // 000011001101
  36305. [11, 19], [11, 19], // 00001100111x
  36306. [11, 20], [11, 20], // 00001101000x
  36307. [12, 34], // 000011010010
  36308. [12, 35], // 000011010011
  36309. [12, 36], // 000011010100
  36310. [12, 37], // 000011010101
  36311. [12, 38], // 000011010110
  36312. [12, 39], // 000011010111
  36313. [11, 21], [11, 21], // 00001101100x
  36314. [12, 42], // 000011011010
  36315. [12, 43], // 000011011011
  36316. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  36317. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  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. [7, 12], [7, 12], [7, 12], [7, 12]
  36325. ];
  36326. var blackTable3 = [
  36327. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  36328. [6, 9], // 000100
  36329. [6, 8], // 000101
  36330. [5, 7], [5, 7], // 00011x
  36331. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  36332. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  36333. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  36334. [3, 1], [3, 1], [3, 1], [3, 1],
  36335. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  36336. [3, 4], [3, 4], [3, 4], [3, 4],
  36337. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  36338. [2, 3], [2, 3], [2, 3], [2, 3],
  36339. [2, 3], [2, 3], [2, 3], [2, 3],
  36340. [2, 3], [2, 3], [2, 3], [2, 3],
  36341. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  36342. [2, 2], [2, 2], [2, 2], [2, 2],
  36343. [2, 2], [2, 2], [2, 2], [2, 2],
  36344. [2, 2], [2, 2], [2, 2], [2, 2]
  36345. ];
  36346. function CCITTFaxStream(str, maybeLength, params) {
  36347. this.str = str;
  36348. this.dict = str.dict;
  36349. params = params || Dict.empty;
  36350. this.encoding = params.get('K') || 0;
  36351. this.eoline = params.get('EndOfLine') || false;
  36352. this.byteAlign = params.get('EncodedByteAlign') || false;
  36353. this.columns = params.get('Columns') || 1728;
  36354. this.rows = params.get('Rows') || 0;
  36355. var eoblock = params.get('EndOfBlock');
  36356. if (eoblock === null || eoblock === undefined) {
  36357. eoblock = true;
  36358. }
  36359. this.eoblock = eoblock;
  36360. this.black = params.get('BlackIs1') || false;
  36361. this.codingLine = new Uint32Array(this.columns + 1);
  36362. this.refLine = new Uint32Array(this.columns + 2);
  36363. this.codingLine[0] = this.columns;
  36364. this.codingPos = 0;
  36365. this.row = 0;
  36366. this.nextLine2D = this.encoding < 0;
  36367. this.inputBits = 0;
  36368. this.inputBuf = 0;
  36369. this.outputBits = 0;
  36370. var code1;
  36371. while ((code1 = this.lookBits(12)) === 0) {
  36372. this.eatBits(1);
  36373. }
  36374. if (code1 == 1) {
  36375. this.eatBits(12);
  36376. }
  36377. if (this.encoding > 0) {
  36378. this.nextLine2D = !this.lookBits(1);
  36379. this.eatBits(1);
  36380. }
  36381. DecodeStream.call(this, maybeLength);
  36382. }
  36383. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  36384. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  36385. while (!this.eof) {
  36386. var c = this.lookChar();
  36387. this.ensureBuffer(this.bufferLength + 1);
  36388. this.buffer[this.bufferLength++] = c;
  36389. }
  36390. };
  36391. CCITTFaxStream.prototype.addPixels =
  36392. function ccittFaxStreamAddPixels(a1, blackPixels) {
  36393. var codingLine = this.codingLine;
  36394. var codingPos = this.codingPos;
  36395. if (a1 > codingLine[codingPos]) {
  36396. if (a1 > this.columns) {
  36397. info('row is wrong length');
  36398. this.err = true;
  36399. a1 = this.columns;
  36400. }
  36401. if ((codingPos & 1) ^ blackPixels) {
  36402. ++codingPos;
  36403. }
  36404. codingLine[codingPos] = a1;
  36405. }
  36406. this.codingPos = codingPos;
  36407. };
  36408. CCITTFaxStream.prototype.addPixelsNeg =
  36409. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  36410. var codingLine = this.codingLine;
  36411. var codingPos = this.codingPos;
  36412. if (a1 > codingLine[codingPos]) {
  36413. if (a1 > this.columns) {
  36414. info('row is wrong length');
  36415. this.err = true;
  36416. a1 = this.columns;
  36417. }
  36418. if ((codingPos & 1) ^ blackPixels) {
  36419. ++codingPos;
  36420. }
  36421. codingLine[codingPos] = a1;
  36422. } else if (a1 < codingLine[codingPos]) {
  36423. if (a1 < 0) {
  36424. info('invalid code');
  36425. this.err = true;
  36426. a1 = 0;
  36427. }
  36428. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  36429. --codingPos;
  36430. }
  36431. codingLine[codingPos] = a1;
  36432. }
  36433. this.codingPos = codingPos;
  36434. };
  36435. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  36436. var refLine = this.refLine;
  36437. var codingLine = this.codingLine;
  36438. var columns = this.columns;
  36439. var refPos, blackPixels, bits, i;
  36440. if (this.outputBits === 0) {
  36441. if (this.eof) {
  36442. return null;
  36443. }
  36444. this.err = false;
  36445. var code1, code2, code3;
  36446. if (this.nextLine2D) {
  36447. for (i = 0; codingLine[i] < columns; ++i) {
  36448. refLine[i] = codingLine[i];
  36449. }
  36450. refLine[i++] = columns;
  36451. refLine[i] = columns;
  36452. codingLine[0] = 0;
  36453. this.codingPos = 0;
  36454. refPos = 0;
  36455. blackPixels = 0;
  36456. while (codingLine[this.codingPos] < columns) {
  36457. code1 = this.getTwoDimCode();
  36458. switch (code1) {
  36459. case twoDimPass:
  36460. this.addPixels(refLine[refPos + 1], blackPixels);
  36461. if (refLine[refPos + 1] < columns) {
  36462. refPos += 2;
  36463. }
  36464. break;
  36465. case twoDimHoriz:
  36466. code1 = code2 = 0;
  36467. if (blackPixels) {
  36468. do {
  36469. code1 += (code3 = this.getBlackCode());
  36470. } while (code3 >= 64);
  36471. do {
  36472. code2 += (code3 = this.getWhiteCode());
  36473. } while (code3 >= 64);
  36474. } else {
  36475. do {
  36476. code1 += (code3 = this.getWhiteCode());
  36477. } while (code3 >= 64);
  36478. do {
  36479. code2 += (code3 = this.getBlackCode());
  36480. } while (code3 >= 64);
  36481. }
  36482. this.addPixels(codingLine[this.codingPos] +
  36483. code1, blackPixels);
  36484. if (codingLine[this.codingPos] < columns) {
  36485. this.addPixels(codingLine[this.codingPos] + code2,
  36486. blackPixels ^ 1);
  36487. }
  36488. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36489. refLine[refPos] < columns) {
  36490. refPos += 2;
  36491. }
  36492. break;
  36493. case twoDimVertR3:
  36494. this.addPixels(refLine[refPos] + 3, blackPixels);
  36495. blackPixels ^= 1;
  36496. if (codingLine[this.codingPos] < columns) {
  36497. ++refPos;
  36498. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36499. refLine[refPos] < columns) {
  36500. refPos += 2;
  36501. }
  36502. }
  36503. break;
  36504. case twoDimVertR2:
  36505. this.addPixels(refLine[refPos] + 2, blackPixels);
  36506. blackPixels ^= 1;
  36507. if (codingLine[this.codingPos] < columns) {
  36508. ++refPos;
  36509. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36510. refLine[refPos] < columns) {
  36511. refPos += 2;
  36512. }
  36513. }
  36514. break;
  36515. case twoDimVertR1:
  36516. this.addPixels(refLine[refPos] + 1, blackPixels);
  36517. blackPixels ^= 1;
  36518. if (codingLine[this.codingPos] < columns) {
  36519. ++refPos;
  36520. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36521. refLine[refPos] < columns) {
  36522. refPos += 2;
  36523. }
  36524. }
  36525. break;
  36526. case twoDimVert0:
  36527. this.addPixels(refLine[refPos], blackPixels);
  36528. blackPixels ^= 1;
  36529. if (codingLine[this.codingPos] < columns) {
  36530. ++refPos;
  36531. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36532. refLine[refPos] < columns) {
  36533. refPos += 2;
  36534. }
  36535. }
  36536. break;
  36537. case twoDimVertL3:
  36538. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  36539. blackPixels ^= 1;
  36540. if (codingLine[this.codingPos] < columns) {
  36541. if (refPos > 0) {
  36542. --refPos;
  36543. } else {
  36544. ++refPos;
  36545. }
  36546. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36547. refLine[refPos] < columns) {
  36548. refPos += 2;
  36549. }
  36550. }
  36551. break;
  36552. case twoDimVertL2:
  36553. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  36554. blackPixels ^= 1;
  36555. if (codingLine[this.codingPos] < columns) {
  36556. if (refPos > 0) {
  36557. --refPos;
  36558. } else {
  36559. ++refPos;
  36560. }
  36561. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36562. refLine[refPos] < columns) {
  36563. refPos += 2;
  36564. }
  36565. }
  36566. break;
  36567. case twoDimVertL1:
  36568. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  36569. blackPixels ^= 1;
  36570. if (codingLine[this.codingPos] < columns) {
  36571. if (refPos > 0) {
  36572. --refPos;
  36573. } else {
  36574. ++refPos;
  36575. }
  36576. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36577. refLine[refPos] < columns) {
  36578. refPos += 2;
  36579. }
  36580. }
  36581. break;
  36582. case EOF:
  36583. this.addPixels(columns, 0);
  36584. this.eof = true;
  36585. break;
  36586. default:
  36587. info('bad 2d code');
  36588. this.addPixels(columns, 0);
  36589. this.err = true;
  36590. }
  36591. }
  36592. } else {
  36593. codingLine[0] = 0;
  36594. this.codingPos = 0;
  36595. blackPixels = 0;
  36596. while (codingLine[this.codingPos] < columns) {
  36597. code1 = 0;
  36598. if (blackPixels) {
  36599. do {
  36600. code1 += (code3 = this.getBlackCode());
  36601. } while (code3 >= 64);
  36602. } else {
  36603. do {
  36604. code1 += (code3 = this.getWhiteCode());
  36605. } while (code3 >= 64);
  36606. }
  36607. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  36608. blackPixels ^= 1;
  36609. }
  36610. }
  36611. if (this.byteAlign) {
  36612. this.inputBits &= ~7;
  36613. }
  36614. var gotEOL = false;
  36615. if (!this.eoblock && this.row == this.rows - 1) {
  36616. this.eof = true;
  36617. } else {
  36618. code1 = this.lookBits(12);
  36619. while (code1 === 0) {
  36620. this.eatBits(1);
  36621. code1 = this.lookBits(12);
  36622. }
  36623. if (code1 == 1) {
  36624. this.eatBits(12);
  36625. gotEOL = true;
  36626. } else if (code1 == EOF) {
  36627. this.eof = true;
  36628. }
  36629. }
  36630. if (!this.eof && this.encoding > 0) {
  36631. this.nextLine2D = !this.lookBits(1);
  36632. this.eatBits(1);
  36633. }
  36634. if (this.eoblock && gotEOL) {
  36635. code1 = this.lookBits(12);
  36636. if (code1 == 1) {
  36637. this.eatBits(12);
  36638. if (this.encoding > 0) {
  36639. this.lookBits(1);
  36640. this.eatBits(1);
  36641. }
  36642. if (this.encoding >= 0) {
  36643. for (i = 0; i < 4; ++i) {
  36644. code1 = this.lookBits(12);
  36645. if (code1 != 1) {
  36646. info('bad rtc code: ' + code1);
  36647. }
  36648. this.eatBits(12);
  36649. if (this.encoding > 0) {
  36650. this.lookBits(1);
  36651. this.eatBits(1);
  36652. }
  36653. }
  36654. }
  36655. this.eof = true;
  36656. }
  36657. } else if (this.err && this.eoline) {
  36658. while (true) {
  36659. code1 = this.lookBits(13);
  36660. if (code1 == EOF) {
  36661. this.eof = true;
  36662. return null;
  36663. }
  36664. if ((code1 >> 1) == 1) {
  36665. break;
  36666. }
  36667. this.eatBits(1);
  36668. }
  36669. this.eatBits(12);
  36670. if (this.encoding > 0) {
  36671. this.eatBits(1);
  36672. this.nextLine2D = !(code1 & 1);
  36673. }
  36674. }
  36675. if (codingLine[0] > 0) {
  36676. this.outputBits = codingLine[this.codingPos = 0];
  36677. } else {
  36678. this.outputBits = codingLine[this.codingPos = 1];
  36679. }
  36680. this.row++;
  36681. }
  36682. var c;
  36683. if (this.outputBits >= 8) {
  36684. c = (this.codingPos & 1) ? 0 : 0xFF;
  36685. this.outputBits -= 8;
  36686. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  36687. this.codingPos++;
  36688. this.outputBits = (codingLine[this.codingPos] -
  36689. codingLine[this.codingPos - 1]);
  36690. }
  36691. } else {
  36692. bits = 8;
  36693. c = 0;
  36694. do {
  36695. if (this.outputBits > bits) {
  36696. c <<= bits;
  36697. if (!(this.codingPos & 1)) {
  36698. c |= 0xFF >> (8 - bits);
  36699. }
  36700. this.outputBits -= bits;
  36701. bits = 0;
  36702. } else {
  36703. c <<= this.outputBits;
  36704. if (!(this.codingPos & 1)) {
  36705. c |= 0xFF >> (8 - this.outputBits);
  36706. }
  36707. bits -= this.outputBits;
  36708. this.outputBits = 0;
  36709. if (codingLine[this.codingPos] < columns) {
  36710. this.codingPos++;
  36711. this.outputBits = (codingLine[this.codingPos] -
  36712. codingLine[this.codingPos - 1]);
  36713. } else if (bits > 0) {
  36714. c <<= bits;
  36715. bits = 0;
  36716. }
  36717. }
  36718. } while (bits);
  36719. }
  36720. if (this.black) {
  36721. c ^= 0xFF;
  36722. }
  36723. return c;
  36724. };
  36725. // This functions returns the code found from the table.
  36726. // The start and end parameters set the boundaries for searching the table.
  36727. // The limit parameter is optional. Function returns an array with three
  36728. // values. The first array element indicates whether a valid code is being
  36729. // returned. The second array element is the actual code. The third array
  36730. // element indicates whether EOF was reached.
  36731. CCITTFaxStream.prototype.findTableCode =
  36732. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  36733. var limitValue = limit || 0;
  36734. for (var i = start; i <= end; ++i) {
  36735. var code = this.lookBits(i);
  36736. if (code == EOF) {
  36737. return [true, 1, false];
  36738. }
  36739. if (i < end) {
  36740. code <<= end - i;
  36741. }
  36742. if (!limitValue || code >= limitValue) {
  36743. var p = table[code - limitValue];
  36744. if (p[0] == i) {
  36745. this.eatBits(i);
  36746. return [true, p[1], true];
  36747. }
  36748. }
  36749. }
  36750. return [false, 0, false];
  36751. };
  36752. CCITTFaxStream.prototype.getTwoDimCode =
  36753. function ccittFaxStreamGetTwoDimCode() {
  36754. var code = 0;
  36755. var p;
  36756. if (this.eoblock) {
  36757. code = this.lookBits(7);
  36758. p = twoDimTable[code];
  36759. if (p && p[0] > 0) {
  36760. this.eatBits(p[0]);
  36761. return p[1];
  36762. }
  36763. } else {
  36764. var result = this.findTableCode(1, 7, twoDimTable);
  36765. if (result[0] && result[2]) {
  36766. return result[1];
  36767. }
  36768. }
  36769. info('Bad two dim code');
  36770. return EOF;
  36771. };
  36772. CCITTFaxStream.prototype.getWhiteCode =
  36773. function ccittFaxStreamGetWhiteCode() {
  36774. var code = 0;
  36775. var p;
  36776. if (this.eoblock) {
  36777. code = this.lookBits(12);
  36778. if (code == EOF) {
  36779. return 1;
  36780. }
  36781. if ((code >> 5) === 0) {
  36782. p = whiteTable1[code];
  36783. } else {
  36784. p = whiteTable2[code >> 3];
  36785. }
  36786. if (p[0] > 0) {
  36787. this.eatBits(p[0]);
  36788. return p[1];
  36789. }
  36790. } else {
  36791. var result = this.findTableCode(1, 9, whiteTable2);
  36792. if (result[0]) {
  36793. return result[1];
  36794. }
  36795. result = this.findTableCode(11, 12, whiteTable1);
  36796. if (result[0]) {
  36797. return result[1];
  36798. }
  36799. }
  36800. info('bad white code');
  36801. this.eatBits(1);
  36802. return 1;
  36803. };
  36804. CCITTFaxStream.prototype.getBlackCode =
  36805. function ccittFaxStreamGetBlackCode() {
  36806. var code, p;
  36807. if (this.eoblock) {
  36808. code = this.lookBits(13);
  36809. if (code == EOF) {
  36810. return 1;
  36811. }
  36812. if ((code >> 7) === 0) {
  36813. p = blackTable1[code];
  36814. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  36815. p = blackTable2[(code >> 1) - 64];
  36816. } else {
  36817. p = blackTable3[code >> 7];
  36818. }
  36819. if (p[0] > 0) {
  36820. this.eatBits(p[0]);
  36821. return p[1];
  36822. }
  36823. } else {
  36824. var result = this.findTableCode(2, 6, blackTable3);
  36825. if (result[0]) {
  36826. return result[1];
  36827. }
  36828. result = this.findTableCode(7, 12, blackTable2, 64);
  36829. if (result[0]) {
  36830. return result[1];
  36831. }
  36832. result = this.findTableCode(10, 13, blackTable1);
  36833. if (result[0]) {
  36834. return result[1];
  36835. }
  36836. }
  36837. info('bad black code');
  36838. this.eatBits(1);
  36839. return 1;
  36840. };
  36841. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  36842. var c;
  36843. while (this.inputBits < n) {
  36844. if ((c = this.str.getByte()) === -1) {
  36845. if (this.inputBits === 0) {
  36846. return EOF;
  36847. }
  36848. return ((this.inputBuf << (n - this.inputBits)) &
  36849. (0xFFFF >> (16 - n)));
  36850. }
  36851. this.inputBuf = (this.inputBuf << 8) + c;
  36852. this.inputBits += 8;
  36853. }
  36854. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  36855. };
  36856. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  36857. if ((this.inputBits -= n) < 0) {
  36858. this.inputBits = 0;
  36859. }
  36860. };
  36861. return CCITTFaxStream;
  36862. })();
  36863. var LZWStream = (function LZWStreamClosure() {
  36864. function LZWStream(str, maybeLength, earlyChange) {
  36865. this.str = str;
  36866. this.dict = str.dict;
  36867. this.cachedData = 0;
  36868. this.bitsCached = 0;
  36869. var maxLzwDictionarySize = 4096;
  36870. var lzwState = {
  36871. earlyChange: earlyChange,
  36872. codeLength: 9,
  36873. nextCode: 258,
  36874. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  36875. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  36876. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  36877. currentSequence: new Uint8Array(maxLzwDictionarySize),
  36878. currentSequenceLength: 0
  36879. };
  36880. for (var i = 0; i < 256; ++i) {
  36881. lzwState.dictionaryValues[i] = i;
  36882. lzwState.dictionaryLengths[i] = 1;
  36883. }
  36884. this.lzwState = lzwState;
  36885. DecodeStream.call(this, maybeLength);
  36886. }
  36887. LZWStream.prototype = Object.create(DecodeStream.prototype);
  36888. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  36889. var bitsCached = this.bitsCached;
  36890. var cachedData = this.cachedData;
  36891. while (bitsCached < n) {
  36892. var c = this.str.getByte();
  36893. if (c === -1) {
  36894. this.eof = true;
  36895. return null;
  36896. }
  36897. cachedData = (cachedData << 8) | c;
  36898. bitsCached += 8;
  36899. }
  36900. this.bitsCached = (bitsCached -= n);
  36901. this.cachedData = cachedData;
  36902. this.lastCode = null;
  36903. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  36904. };
  36905. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  36906. var blockSize = 512;
  36907. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  36908. var i, j, q;
  36909. var lzwState = this.lzwState;
  36910. if (!lzwState) {
  36911. return; // eof was found
  36912. }
  36913. var earlyChange = lzwState.earlyChange;
  36914. var nextCode = lzwState.nextCode;
  36915. var dictionaryValues = lzwState.dictionaryValues;
  36916. var dictionaryLengths = lzwState.dictionaryLengths;
  36917. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  36918. var codeLength = lzwState.codeLength;
  36919. var prevCode = lzwState.prevCode;
  36920. var currentSequence = lzwState.currentSequence;
  36921. var currentSequenceLength = lzwState.currentSequenceLength;
  36922. var decodedLength = 0;
  36923. var currentBufferLength = this.bufferLength;
  36924. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  36925. for (i = 0; i < blockSize; i++) {
  36926. var code = this.readBits(codeLength);
  36927. var hasPrev = currentSequenceLength > 0;
  36928. if (code < 256) {
  36929. currentSequence[0] = code;
  36930. currentSequenceLength = 1;
  36931. } else if (code >= 258) {
  36932. if (code < nextCode) {
  36933. currentSequenceLength = dictionaryLengths[code];
  36934. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  36935. currentSequence[j] = dictionaryValues[q];
  36936. q = dictionaryPrevCodes[q];
  36937. }
  36938. } else {
  36939. currentSequence[currentSequenceLength++] = currentSequence[0];
  36940. }
  36941. } else if (code == 256) {
  36942. codeLength = 9;
  36943. nextCode = 258;
  36944. currentSequenceLength = 0;
  36945. continue;
  36946. } else {
  36947. this.eof = true;
  36948. delete this.lzwState;
  36949. break;
  36950. }
  36951. if (hasPrev) {
  36952. dictionaryPrevCodes[nextCode] = prevCode;
  36953. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  36954. dictionaryValues[nextCode] = currentSequence[0];
  36955. nextCode++;
  36956. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  36957. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  36958. 0.6931471805599453 + 1, 12) | 0;
  36959. }
  36960. prevCode = code;
  36961. decodedLength += currentSequenceLength;
  36962. if (estimatedDecodedSize < decodedLength) {
  36963. do {
  36964. estimatedDecodedSize += decodedSizeDelta;
  36965. } while (estimatedDecodedSize < decodedLength);
  36966. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  36967. }
  36968. for (j = 0; j < currentSequenceLength; j++) {
  36969. buffer[currentBufferLength++] = currentSequence[j];
  36970. }
  36971. }
  36972. lzwState.nextCode = nextCode;
  36973. lzwState.codeLength = codeLength;
  36974. lzwState.prevCode = prevCode;
  36975. lzwState.currentSequenceLength = currentSequenceLength;
  36976. this.bufferLength = currentBufferLength;
  36977. };
  36978. return LZWStream;
  36979. })();
  36980. var NullStream = (function NullStreamClosure() {
  36981. function NullStream() {
  36982. Stream.call(this, new Uint8Array(0));
  36983. }
  36984. NullStream.prototype = Stream.prototype;
  36985. return NullStream;
  36986. })();
  36987. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  36988. setup: function wphSetup(handler) {
  36989. var pdfManager;
  36990. function loadDocument(recoveryMode) {
  36991. var loadDocumentCapability = createPromiseCapability();
  36992. var parseSuccess = function parseSuccess() {
  36993. var numPagesPromise = pdfManager.ensureDoc('numPages');
  36994. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  36995. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  36996. Promise.all([numPagesPromise, fingerprintPromise,
  36997. encryptedPromise]).then(function onDocReady(results) {
  36998. var doc = {
  36999. numPages: results[0],
  37000. fingerprint: results[1],
  37001. encrypted: !!results[2],
  37002. };
  37003. loadDocumentCapability.resolve(doc);
  37004. },
  37005. parseFailure);
  37006. };
  37007. var parseFailure = function parseFailure(e) {
  37008. loadDocumentCapability.reject(e);
  37009. };
  37010. pdfManager.ensureDoc('checkHeader', []).then(function() {
  37011. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  37012. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  37013. parseSuccess, parseFailure);
  37014. }, parseFailure);
  37015. }, parseFailure);
  37016. return loadDocumentCapability.promise;
  37017. }
  37018. function getPdfManager(data) {
  37019. var pdfManagerCapability = createPromiseCapability();
  37020. var source = data.source;
  37021. var disableRange = data.disableRange;
  37022. if (source.data) {
  37023. try {
  37024. pdfManager = new LocalPdfManager(source.data, source.password);
  37025. pdfManagerCapability.resolve();
  37026. } catch (ex) {
  37027. pdfManagerCapability.reject(ex);
  37028. }
  37029. return pdfManagerCapability.promise;
  37030. } else if (source.chunkedViewerLoading) {
  37031. try {
  37032. pdfManager = new NetworkPdfManager(source, handler);
  37033. pdfManagerCapability.resolve();
  37034. } catch (ex) {
  37035. pdfManagerCapability.reject(ex);
  37036. }
  37037. return pdfManagerCapability.promise;
  37038. }
  37039. var networkManager = new NetworkManager(source.url, {
  37040. httpHeaders: source.httpHeaders,
  37041. withCredentials: source.withCredentials
  37042. });
  37043. var fullRequestXhrId = networkManager.requestFull({
  37044. onHeadersReceived: function onHeadersReceived() {
  37045. if (disableRange) {
  37046. return;
  37047. }
  37048. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  37049. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  37050. return;
  37051. }
  37052. var contentEncoding =
  37053. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  37054. if (contentEncoding !== 'identity') {
  37055. return;
  37056. }
  37057. var length = fullRequestXhr.getResponseHeader('Content-Length');
  37058. length = parseInt(length, 10);
  37059. if (!isInt(length)) {
  37060. return;
  37061. }
  37062. source.length = length;
  37063. if (length <= 2 * RANGE_CHUNK_SIZE) {
  37064. // The file size is smaller than the size of two chunks, so it does
  37065. // not make any sense to abort the request and retry with a range
  37066. // request.
  37067. return;
  37068. }
  37069. // NOTE: by cancelling the full request, and then issuing range
  37070. // requests, there will be an issue for sites where you can only
  37071. // request the pdf once. However, if this is the case, then the
  37072. // server should not be returning that it can support range requests.
  37073. networkManager.abortRequest(fullRequestXhrId);
  37074. try {
  37075. pdfManager = new NetworkPdfManager(source, handler);
  37076. pdfManagerCapability.resolve(pdfManager);
  37077. } catch (ex) {
  37078. pdfManagerCapability.reject(ex);
  37079. }
  37080. },
  37081. onDone: function onDone(args) {
  37082. // the data is array, instantiating directly from it
  37083. try {
  37084. pdfManager = new LocalPdfManager(args.chunk, source.password);
  37085. pdfManagerCapability.resolve();
  37086. } catch (ex) {
  37087. pdfManagerCapability.reject(ex);
  37088. }
  37089. },
  37090. onError: function onError(status) {
  37091. if (status == 404) {
  37092. var exception = new MissingPDFException('Missing PDF "' +
  37093. source.url + '".');
  37094. handler.send('MissingPDF', { exception: exception });
  37095. } else {
  37096. handler.send('DocError', 'Unexpected server response (' +
  37097. status + ') while retrieving PDF "' +
  37098. source.url + '".');
  37099. }
  37100. },
  37101. onProgress: function onProgress(evt) {
  37102. handler.send('DocProgress', {
  37103. loaded: evt.loaded,
  37104. total: evt.lengthComputable ? evt.total : source.length
  37105. });
  37106. }
  37107. });
  37108. return pdfManagerCapability.promise;
  37109. }
  37110. handler.on('test', function wphSetupTest(data) {
  37111. // check if Uint8Array can be sent to worker
  37112. if (!(data instanceof Uint8Array)) {
  37113. handler.send('test', false);
  37114. return;
  37115. }
  37116. // making sure postMessage transfers are working
  37117. var supportTransfers = data[0] === 255;
  37118. handler.postMessageTransfers = supportTransfers;
  37119. // check if the response property is supported by xhr
  37120. var xhr = new XMLHttpRequest();
  37121. var responseExists = 'response' in xhr;
  37122. // check if the property is actually implemented
  37123. try {
  37124. var dummy = xhr.responseType;
  37125. } catch (e) {
  37126. responseExists = false;
  37127. }
  37128. if (!responseExists) {
  37129. handler.send('test', false);
  37130. return;
  37131. }
  37132. handler.send('test', {
  37133. supportTypedArray: true,
  37134. supportTransfers: supportTransfers
  37135. });
  37136. });
  37137. handler.on('GetDocRequest', function wphSetupDoc(data) {
  37138. var onSuccess = function(doc) {
  37139. handler.send('GetDoc', { pdfInfo: doc });
  37140. };
  37141. var onFailure = function(e) {
  37142. if (e instanceof PasswordException) {
  37143. if (e.code === PasswordResponses.NEED_PASSWORD) {
  37144. handler.send('NeedPassword', {
  37145. exception: e
  37146. });
  37147. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  37148. handler.send('IncorrectPassword', {
  37149. exception: e
  37150. });
  37151. }
  37152. } else if (e instanceof InvalidPDFException) {
  37153. handler.send('InvalidPDF', {
  37154. exception: e
  37155. });
  37156. } else if (e instanceof MissingPDFException) {
  37157. handler.send('MissingPDF', {
  37158. exception: e
  37159. });
  37160. } else {
  37161. handler.send('UnknownError', {
  37162. exception: new UnknownErrorException(e.message, e.toString())
  37163. });
  37164. }
  37165. };
  37166. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  37167. -1 : data.maxImageSize;
  37168. PDFJS.disableFontFace = data.disableFontFace;
  37169. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  37170. PDFJS.verbosity = data.verbosity;
  37171. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  37172. null : data.cMapUrl;
  37173. PDFJS.cMapPacked = data.cMapPacked === true;
  37174. getPdfManager(data).then(function () {
  37175. pdfManager.onLoadedStream().then(function(stream) {
  37176. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  37177. });
  37178. }).then(function pdfManagerReady() {
  37179. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  37180. // Try again with recoveryMode == true
  37181. if (!(ex instanceof XRefParseException)) {
  37182. if (ex instanceof PasswordException) {
  37183. // after password exception prepare to receive a new password
  37184. // to repeat loading
  37185. pdfManager.passwordChanged().then(pdfManagerReady);
  37186. }
  37187. onFailure(ex);
  37188. return;
  37189. }
  37190. pdfManager.requestLoadedStream();
  37191. pdfManager.onLoadedStream().then(function() {
  37192. loadDocument(true).then(onSuccess, onFailure);
  37193. });
  37194. }, onFailure);
  37195. }, onFailure);
  37196. });
  37197. handler.on('GetPage', function wphSetupGetPage(data) {
  37198. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37199. var rotatePromise = pdfManager.ensure(page, 'rotate');
  37200. var refPromise = pdfManager.ensure(page, 'ref');
  37201. var viewPromise = pdfManager.ensure(page, 'view');
  37202. return Promise.all([rotatePromise, refPromise, viewPromise]).then(
  37203. function(results) {
  37204. return {
  37205. rotate: results[0],
  37206. ref: results[1],
  37207. view: results[2]
  37208. };
  37209. });
  37210. });
  37211. });
  37212. handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
  37213. var ref = new Ref(data.ref.num, data.ref.gen);
  37214. var catalog = pdfManager.pdfDocument.catalog;
  37215. return catalog.getPageIndex(ref);
  37216. });
  37217. handler.on('GetDestinations',
  37218. function wphSetupGetDestinations(data) {
  37219. return pdfManager.ensureCatalog('destinations');
  37220. }
  37221. );
  37222. handler.on('GetAttachments',
  37223. function wphSetupGetAttachments(data) {
  37224. return pdfManager.ensureCatalog('attachments');
  37225. }
  37226. );
  37227. handler.on('GetJavaScript',
  37228. function wphSetupGetJavaScript(data) {
  37229. return pdfManager.ensureCatalog('javaScript');
  37230. }
  37231. );
  37232. handler.on('GetOutline',
  37233. function wphSetupGetOutline(data) {
  37234. return pdfManager.ensureCatalog('documentOutline');
  37235. }
  37236. );
  37237. handler.on('GetMetadata',
  37238. function wphSetupGetMetadata(data) {
  37239. return Promise.all([pdfManager.ensureDoc('documentInfo'),
  37240. pdfManager.ensureCatalog('metadata')]);
  37241. }
  37242. );
  37243. handler.on('GetData', function wphSetupGetData(data) {
  37244. pdfManager.requestLoadedStream();
  37245. return pdfManager.onLoadedStream().then(function(stream) {
  37246. return stream.bytes;
  37247. });
  37248. });
  37249. handler.on('GetStats',
  37250. function wphSetupGetStats(data) {
  37251. return pdfManager.pdfDocument.xref.stats;
  37252. }
  37253. );
  37254. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  37255. pdfManager.updatePassword(data);
  37256. });
  37257. handler.on('GetAnnotations', function wphSetupGetAnnotations(data) {
  37258. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37259. return pdfManager.ensure(page, 'getAnnotationsData', []);
  37260. });
  37261. });
  37262. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  37263. pdfManager.getPage(data.pageIndex).then(function(page) {
  37264. var pageNum = data.pageIndex + 1;
  37265. var start = Date.now();
  37266. // Pre compile the pdf page and fetch the fonts/images.
  37267. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  37268. info('page=' + pageNum + ' - getOperatorList: time=' +
  37269. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  37270. }, function(e) {
  37271. var minimumStackMessage =
  37272. 'worker.js: while trying to getPage() and getOperatorList()';
  37273. var wrappedException;
  37274. // Turn the error into an obj that can be serialized
  37275. if (typeof e === 'string') {
  37276. wrappedException = {
  37277. message: e,
  37278. stack: minimumStackMessage
  37279. };
  37280. } else if (typeof e === 'object') {
  37281. wrappedException = {
  37282. message: e.message || e.toString(),
  37283. stack: e.stack || minimumStackMessage
  37284. };
  37285. } else {
  37286. wrappedException = {
  37287. message: 'Unknown exception type: ' + (typeof e),
  37288. stack: minimumStackMessage
  37289. };
  37290. }
  37291. handler.send('PageError', {
  37292. pageNum: pageNum,
  37293. error: wrappedException,
  37294. intent: data.intent
  37295. });
  37296. });
  37297. });
  37298. }, this);
  37299. handler.on('GetTextContent', function wphExtractText(data) {
  37300. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37301. var pageNum = data.pageIndex + 1;
  37302. var start = Date.now();
  37303. return page.extractTextContent().then(function(textContent) {
  37304. info('text indexing: page=' + pageNum + ' - time=' +
  37305. (Date.now() - start) + 'ms');
  37306. return textContent;
  37307. });
  37308. });
  37309. });
  37310. handler.on('Cleanup', function wphCleanup(data) {
  37311. return pdfManager.cleanup();
  37312. });
  37313. handler.on('Terminate', function wphTerminate(data) {
  37314. pdfManager.terminate();
  37315. });
  37316. }
  37317. };
  37318. var consoleTimer = {};
  37319. var workerConsole = {
  37320. log: function log() {
  37321. var args = Array.prototype.slice.call(arguments);
  37322. globalScope.postMessage({
  37323. action: 'console_log',
  37324. data: args
  37325. });
  37326. },
  37327. error: function error() {
  37328. var args = Array.prototype.slice.call(arguments);
  37329. globalScope.postMessage({
  37330. action: 'console_error',
  37331. data: args
  37332. });
  37333. throw 'pdf.js execution error';
  37334. },
  37335. time: function time(name) {
  37336. consoleTimer[name] = Date.now();
  37337. },
  37338. timeEnd: function timeEnd(name) {
  37339. var time = consoleTimer[name];
  37340. if (!time) {
  37341. error('Unknown timer name ' + name);
  37342. }
  37343. this.log('Timer:', name, Date.now() - time);
  37344. }
  37345. };
  37346. // Worker thread?
  37347. if (typeof window === 'undefined') {
  37348. if (!('console' in globalScope)) {
  37349. globalScope.console = workerConsole;
  37350. }
  37351. // Listen for unsupported features so we can pass them on to the main thread.
  37352. PDFJS.UnsupportedManager.listen(function (msg) {
  37353. globalScope.postMessage({
  37354. action: '_unsupported_feature',
  37355. data: msg
  37356. });
  37357. });
  37358. var handler = new MessageHandler('worker_processor', this);
  37359. WorkerMessageHandler.setup(handler);
  37360. }
  37361. /* This class implements the QM Coder decoding as defined in
  37362. * JPEG 2000 Part I Final Committee Draft Version 1.0
  37363. * Annex C.3 Arithmetic decoding procedure
  37364. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  37365. *
  37366. * The arithmetic decoder is used in conjunction with context models to decode
  37367. * JPEG2000 and JBIG2 streams.
  37368. */
  37369. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  37370. // Table C-2
  37371. var QeTable = [
  37372. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  37373. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  37374. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  37375. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  37376. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  37377. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  37378. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  37379. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  37380. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  37381. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  37382. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  37383. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  37384. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  37385. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  37386. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  37387. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  37388. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  37389. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  37390. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  37391. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  37392. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  37393. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  37394. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  37395. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  37396. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  37397. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  37398. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  37399. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  37400. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  37401. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  37402. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  37403. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  37404. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  37405. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  37406. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  37407. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  37408. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  37409. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  37410. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  37411. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  37412. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  37413. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  37414. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  37415. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  37416. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  37417. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  37418. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  37419. ];
  37420. // C.3.5 Initialisation of the decoder (INITDEC)
  37421. function ArithmeticDecoder(data, start, end) {
  37422. this.data = data;
  37423. this.bp = start;
  37424. this.dataEnd = end;
  37425. this.chigh = data[start];
  37426. this.clow = 0;
  37427. this.byteIn();
  37428. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  37429. this.clow = (this.clow << 7) & 0xFFFF;
  37430. this.ct -= 7;
  37431. this.a = 0x8000;
  37432. }
  37433. ArithmeticDecoder.prototype = {
  37434. // C.3.4 Compressed data input (BYTEIN)
  37435. byteIn: function ArithmeticDecoder_byteIn() {
  37436. var data = this.data;
  37437. var bp = this.bp;
  37438. if (data[bp] == 0xFF) {
  37439. var b1 = data[bp + 1];
  37440. if (b1 > 0x8F) {
  37441. this.clow += 0xFF00;
  37442. this.ct = 8;
  37443. } else {
  37444. bp++;
  37445. this.clow += (data[bp] << 9);
  37446. this.ct = 7;
  37447. this.bp = bp;
  37448. }
  37449. } else {
  37450. bp++;
  37451. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  37452. this.ct = 8;
  37453. this.bp = bp;
  37454. }
  37455. if (this.clow > 0xFFFF) {
  37456. this.chigh += (this.clow >> 16);
  37457. this.clow &= 0xFFFF;
  37458. }
  37459. },
  37460. // C.3.2 Decoding a decision (DECODE)
  37461. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  37462. // contexts are packed into 1 byte:
  37463. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  37464. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  37465. var qeTableIcx = QeTable[cx_index];
  37466. var qeIcx = qeTableIcx.qe;
  37467. var d;
  37468. var a = this.a - qeIcx;
  37469. if (this.chigh < qeIcx) {
  37470. // exchangeLps
  37471. if (a < qeIcx) {
  37472. a = qeIcx;
  37473. d = cx_mps;
  37474. cx_index = qeTableIcx.nmps;
  37475. } else {
  37476. a = qeIcx;
  37477. d = 1 ^ cx_mps;
  37478. if (qeTableIcx.switchFlag === 1) {
  37479. cx_mps = d;
  37480. }
  37481. cx_index = qeTableIcx.nlps;
  37482. }
  37483. } else {
  37484. this.chigh -= qeIcx;
  37485. if ((a & 0x8000) !== 0) {
  37486. this.a = a;
  37487. return cx_mps;
  37488. }
  37489. // exchangeMps
  37490. if (a < qeIcx) {
  37491. d = 1 ^ cx_mps;
  37492. if (qeTableIcx.switchFlag === 1) {
  37493. cx_mps = d;
  37494. }
  37495. cx_index = qeTableIcx.nlps;
  37496. } else {
  37497. d = cx_mps;
  37498. cx_index = qeTableIcx.nmps;
  37499. }
  37500. }
  37501. // C.3.3 renormD;
  37502. do {
  37503. if (this.ct === 0) {
  37504. this.byteIn();
  37505. }
  37506. a <<= 1;
  37507. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  37508. this.clow = (this.clow << 1) & 0xFFFF;
  37509. this.ct--;
  37510. } while ((a & 0x8000) === 0);
  37511. this.a = a;
  37512. contexts[pos] = cx_index << 1 | cx_mps;
  37513. return d;
  37514. }
  37515. };
  37516. return ArithmeticDecoder;
  37517. })();
  37518. var JpegImage = (function jpegImage() {
  37519. var dctZigZag = new Uint8Array([
  37520. 0,
  37521. 1, 8,
  37522. 16, 9, 2,
  37523. 3, 10, 17, 24,
  37524. 32, 25, 18, 11, 4,
  37525. 5, 12, 19, 26, 33, 40,
  37526. 48, 41, 34, 27, 20, 13, 6,
  37527. 7, 14, 21, 28, 35, 42, 49, 56,
  37528. 57, 50, 43, 36, 29, 22, 15,
  37529. 23, 30, 37, 44, 51, 58,
  37530. 59, 52, 45, 38, 31,
  37531. 39, 46, 53, 60,
  37532. 61, 54, 47,
  37533. 55, 62,
  37534. 63
  37535. ]);
  37536. var dctCos1 = 4017; // cos(pi/16)
  37537. var dctSin1 = 799; // sin(pi/16)
  37538. var dctCos3 = 3406; // cos(3*pi/16)
  37539. var dctSin3 = 2276; // sin(3*pi/16)
  37540. var dctCos6 = 1567; // cos(6*pi/16)
  37541. var dctSin6 = 3784; // sin(6*pi/16)
  37542. var dctSqrt2 = 5793; // sqrt(2)
  37543. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  37544. function constructor() {
  37545. }
  37546. function buildHuffmanTable(codeLengths, values) {
  37547. var k = 0, code = [], i, j, length = 16;
  37548. while (length > 0 && !codeLengths[length - 1]) {
  37549. length--;
  37550. }
  37551. code.push({children: [], index: 0});
  37552. var p = code[0], q;
  37553. for (i = 0; i < length; i++) {
  37554. for (j = 0; j < codeLengths[i]; j++) {
  37555. p = code.pop();
  37556. p.children[p.index] = values[k];
  37557. while (p.index > 0) {
  37558. p = code.pop();
  37559. }
  37560. p.index++;
  37561. code.push(p);
  37562. while (code.length <= i) {
  37563. code.push(q = {children: [], index: 0});
  37564. p.children[p.index] = q.children;
  37565. p = q;
  37566. }
  37567. k++;
  37568. }
  37569. if (i + 1 < length) {
  37570. // p here points to last code
  37571. code.push(q = {children: [], index: 0});
  37572. p.children[p.index] = q.children;
  37573. p = q;
  37574. }
  37575. }
  37576. return code[0].children;
  37577. }
  37578. function getBlockBufferOffset(component, row, col) {
  37579. return 64 * ((component.blocksPerLine + 1) * row + col);
  37580. }
  37581. function decodeScan(data, offset, frame, components, resetInterval,
  37582. spectralStart, spectralEnd, successivePrev, successive) {
  37583. var precision = frame.precision;
  37584. var samplesPerLine = frame.samplesPerLine;
  37585. var scanLines = frame.scanLines;
  37586. var mcusPerLine = frame.mcusPerLine;
  37587. var progressive = frame.progressive;
  37588. var maxH = frame.maxH, maxV = frame.maxV;
  37589. var startOffset = offset, bitsData = 0, bitsCount = 0;
  37590. function readBit() {
  37591. if (bitsCount > 0) {
  37592. bitsCount--;
  37593. return (bitsData >> bitsCount) & 1;
  37594. }
  37595. bitsData = data[offset++];
  37596. if (bitsData == 0xFF) {
  37597. var nextByte = data[offset++];
  37598. if (nextByte) {
  37599. throw 'unexpected marker: ' +
  37600. ((bitsData << 8) | nextByte).toString(16);
  37601. }
  37602. // unstuff 0
  37603. }
  37604. bitsCount = 7;
  37605. return bitsData >>> 7;
  37606. }
  37607. function decodeHuffman(tree) {
  37608. var node = tree;
  37609. var bit;
  37610. while ((bit = readBit()) !== null) {
  37611. node = node[bit];
  37612. if (typeof node === 'number') {
  37613. return node;
  37614. }
  37615. if (typeof node !== 'object') {
  37616. throw 'invalid huffman sequence';
  37617. }
  37618. }
  37619. return null;
  37620. }
  37621. function receive(length) {
  37622. var n = 0;
  37623. while (length > 0) {
  37624. var bit = readBit();
  37625. if (bit === null) {
  37626. return;
  37627. }
  37628. n = (n << 1) | bit;
  37629. length--;
  37630. }
  37631. return n;
  37632. }
  37633. function receiveAndExtend(length) {
  37634. if (length === 1) {
  37635. return readBit() === 1 ? 1 : -1;
  37636. }
  37637. var n = receive(length);
  37638. if (n >= 1 << (length - 1)) {
  37639. return n;
  37640. }
  37641. return n + (-1 << length) + 1;
  37642. }
  37643. function decodeBaseline(component, offset) {
  37644. var t = decodeHuffman(component.huffmanTableDC);
  37645. var diff = t === 0 ? 0 : receiveAndExtend(t);
  37646. component.blockData[offset] = (component.pred += diff);
  37647. var k = 1;
  37648. while (k < 64) {
  37649. var rs = decodeHuffman(component.huffmanTableAC);
  37650. var s = rs & 15, r = rs >> 4;
  37651. if (s === 0) {
  37652. if (r < 15) {
  37653. break;
  37654. }
  37655. k += 16;
  37656. continue;
  37657. }
  37658. k += r;
  37659. var z = dctZigZag[k];
  37660. component.blockData[offset + z] = receiveAndExtend(s);
  37661. k++;
  37662. }
  37663. }
  37664. function decodeDCFirst(component, offset) {
  37665. var t = decodeHuffman(component.huffmanTableDC);
  37666. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  37667. component.blockData[offset] = (component.pred += diff);
  37668. }
  37669. function decodeDCSuccessive(component, offset) {
  37670. component.blockData[offset] |= readBit() << successive;
  37671. }
  37672. var eobrun = 0;
  37673. function decodeACFirst(component, offset) {
  37674. if (eobrun > 0) {
  37675. eobrun--;
  37676. return;
  37677. }
  37678. var k = spectralStart, e = spectralEnd;
  37679. while (k <= e) {
  37680. var rs = decodeHuffman(component.huffmanTableAC);
  37681. var s = rs & 15, r = rs >> 4;
  37682. if (s === 0) {
  37683. if (r < 15) {
  37684. eobrun = receive(r) + (1 << r) - 1;
  37685. break;
  37686. }
  37687. k += 16;
  37688. continue;
  37689. }
  37690. k += r;
  37691. var z = dctZigZag[k];
  37692. component.blockData[offset + z] =
  37693. receiveAndExtend(s) * (1 << successive);
  37694. k++;
  37695. }
  37696. }
  37697. var successiveACState = 0, successiveACNextValue;
  37698. function decodeACSuccessive(component, offset) {
  37699. var k = spectralStart;
  37700. var e = spectralEnd;
  37701. var r = 0;
  37702. var s;
  37703. var rs;
  37704. while (k <= e) {
  37705. var z = dctZigZag[k];
  37706. switch (successiveACState) {
  37707. case 0: // initial state
  37708. rs = decodeHuffman(component.huffmanTableAC);
  37709. s = rs & 15;
  37710. r = rs >> 4;
  37711. if (s === 0) {
  37712. if (r < 15) {
  37713. eobrun = receive(r) + (1 << r);
  37714. successiveACState = 4;
  37715. } else {
  37716. r = 16;
  37717. successiveACState = 1;
  37718. }
  37719. } else {
  37720. if (s !== 1) {
  37721. throw 'invalid ACn encoding';
  37722. }
  37723. successiveACNextValue = receiveAndExtend(s);
  37724. successiveACState = r ? 2 : 3;
  37725. }
  37726. continue;
  37727. case 1: // skipping r zero items
  37728. case 2:
  37729. if (component.blockData[offset + z]) {
  37730. component.blockData[offset + z] += (readBit() << successive);
  37731. } else {
  37732. r--;
  37733. if (r === 0) {
  37734. successiveACState = successiveACState == 2 ? 3 : 0;
  37735. }
  37736. }
  37737. break;
  37738. case 3: // set value for a zero item
  37739. if (component.blockData[offset + z]) {
  37740. component.blockData[offset + z] += (readBit() << successive);
  37741. } else {
  37742. component.blockData[offset + z] =
  37743. successiveACNextValue << successive;
  37744. successiveACState = 0;
  37745. }
  37746. break;
  37747. case 4: // eob
  37748. if (component.blockData[offset + z]) {
  37749. component.blockData[offset + z] += (readBit() << successive);
  37750. }
  37751. break;
  37752. }
  37753. k++;
  37754. }
  37755. if (successiveACState === 4) {
  37756. eobrun--;
  37757. if (eobrun === 0) {
  37758. successiveACState = 0;
  37759. }
  37760. }
  37761. }
  37762. function decodeMcu(component, decode, mcu, row, col) {
  37763. var mcuRow = (mcu / mcusPerLine) | 0;
  37764. var mcuCol = mcu % mcusPerLine;
  37765. var blockRow = mcuRow * component.v + row;
  37766. var blockCol = mcuCol * component.h + col;
  37767. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37768. decode(component, offset);
  37769. }
  37770. function decodeBlock(component, decode, mcu) {
  37771. var blockRow = (mcu / component.blocksPerLine) | 0;
  37772. var blockCol = mcu % component.blocksPerLine;
  37773. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37774. decode(component, offset);
  37775. }
  37776. var componentsLength = components.length;
  37777. var component, i, j, k, n;
  37778. var decodeFn;
  37779. if (progressive) {
  37780. if (spectralStart === 0) {
  37781. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  37782. } else {
  37783. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  37784. }
  37785. } else {
  37786. decodeFn = decodeBaseline;
  37787. }
  37788. var mcu = 0, marker;
  37789. var mcuExpected;
  37790. if (componentsLength == 1) {
  37791. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  37792. } else {
  37793. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  37794. }
  37795. if (!resetInterval) {
  37796. resetInterval = mcuExpected;
  37797. }
  37798. var h, v;
  37799. while (mcu < mcuExpected) {
  37800. // reset interval stuff
  37801. for (i = 0; i < componentsLength; i++) {
  37802. components[i].pred = 0;
  37803. }
  37804. eobrun = 0;
  37805. if (componentsLength == 1) {
  37806. component = components[0];
  37807. for (n = 0; n < resetInterval; n++) {
  37808. decodeBlock(component, decodeFn, mcu);
  37809. mcu++;
  37810. }
  37811. } else {
  37812. for (n = 0; n < resetInterval; n++) {
  37813. for (i = 0; i < componentsLength; i++) {
  37814. component = components[i];
  37815. h = component.h;
  37816. v = component.v;
  37817. for (j = 0; j < v; j++) {
  37818. for (k = 0; k < h; k++) {
  37819. decodeMcu(component, decodeFn, mcu, j, k);
  37820. }
  37821. }
  37822. }
  37823. mcu++;
  37824. }
  37825. }
  37826. // find marker
  37827. bitsCount = 0;
  37828. marker = (data[offset] << 8) | data[offset + 1];
  37829. if (marker <= 0xFF00) {
  37830. throw 'marker was not found';
  37831. }
  37832. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  37833. offset += 2;
  37834. } else {
  37835. break;
  37836. }
  37837. }
  37838. return offset - startOffset;
  37839. }
  37840. // A port of poppler's IDCT method which in turn is taken from:
  37841. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  37842. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  37843. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  37844. // 988-991.
  37845. function quantizeAndInverse(component, blockBufferOffset, p) {
  37846. var qt = component.quantizationTable, blockData = component.blockData;
  37847. var v0, v1, v2, v3, v4, v5, v6, v7;
  37848. var p0, p1, p2, p3, p4, p5, p6, p7;
  37849. var t;
  37850. // inverse DCT on rows
  37851. for (var row = 0; row < 64; row += 8) {
  37852. // gather block data
  37853. p0 = blockData[blockBufferOffset + row];
  37854. p1 = blockData[blockBufferOffset + row + 1];
  37855. p2 = blockData[blockBufferOffset + row + 2];
  37856. p3 = blockData[blockBufferOffset + row + 3];
  37857. p4 = blockData[blockBufferOffset + row + 4];
  37858. p5 = blockData[blockBufferOffset + row + 5];
  37859. p6 = blockData[blockBufferOffset + row + 6];
  37860. p7 = blockData[blockBufferOffset + row + 7];
  37861. // dequant p0
  37862. p0 *= qt[row];
  37863. // check for all-zero AC coefficients
  37864. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  37865. t = (dctSqrt2 * p0 + 512) >> 10;
  37866. p[row] = t;
  37867. p[row + 1] = t;
  37868. p[row + 2] = t;
  37869. p[row + 3] = t;
  37870. p[row + 4] = t;
  37871. p[row + 5] = t;
  37872. p[row + 6] = t;
  37873. p[row + 7] = t;
  37874. continue;
  37875. }
  37876. // dequant p1 ... p7
  37877. p1 *= qt[row + 1];
  37878. p2 *= qt[row + 2];
  37879. p3 *= qt[row + 3];
  37880. p4 *= qt[row + 4];
  37881. p5 *= qt[row + 5];
  37882. p6 *= qt[row + 6];
  37883. p7 *= qt[row + 7];
  37884. // stage 4
  37885. v0 = (dctSqrt2 * p0 + 128) >> 8;
  37886. v1 = (dctSqrt2 * p4 + 128) >> 8;
  37887. v2 = p2;
  37888. v3 = p6;
  37889. v4 = (dctSqrt1d2 * (p1 - p7) + 128) >> 8;
  37890. v7 = (dctSqrt1d2 * (p1 + p7) + 128) >> 8;
  37891. v5 = p3 << 4;
  37892. v6 = p5 << 4;
  37893. // stage 3
  37894. v0 = (v0 + v1 + 1) >> 1;
  37895. v1 = v0 - v1;
  37896. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  37897. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  37898. v3 = t;
  37899. v4 = (v4 + v6 + 1) >> 1;
  37900. v6 = v4 - v6;
  37901. v7 = (v7 + v5 + 1) >> 1;
  37902. v5 = v7 - v5;
  37903. // stage 2
  37904. v0 = (v0 + v3 + 1) >> 1;
  37905. v3 = v0 - v3;
  37906. v1 = (v1 + v2 + 1) >> 1;
  37907. v2 = v1 - v2;
  37908. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37909. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37910. v7 = t;
  37911. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37912. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37913. v6 = t;
  37914. // stage 1
  37915. p[row] = v0 + v7;
  37916. p[row + 7] = v0 - v7;
  37917. p[row + 1] = v1 + v6;
  37918. p[row + 6] = v1 - v6;
  37919. p[row + 2] = v2 + v5;
  37920. p[row + 5] = v2 - v5;
  37921. p[row + 3] = v3 + v4;
  37922. p[row + 4] = v3 - v4;
  37923. }
  37924. // inverse DCT on columns
  37925. for (var col = 0; col < 8; ++col) {
  37926. p0 = p[col];
  37927. p1 = p[col + 8];
  37928. p2 = p[col + 16];
  37929. p3 = p[col + 24];
  37930. p4 = p[col + 32];
  37931. p5 = p[col + 40];
  37932. p6 = p[col + 48];
  37933. p7 = p[col + 56];
  37934. // check for all-zero AC coefficients
  37935. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  37936. t = (dctSqrt2 * p0 + 8192) >> 14;
  37937. // convert to 8 bit
  37938. t = (t < -2040) ? 0 : (t >= 2024) ? 255 : (t + 2056) >> 4;
  37939. blockData[blockBufferOffset + col] = t;
  37940. blockData[blockBufferOffset + col + 8] = t;
  37941. blockData[blockBufferOffset + col + 16] = t;
  37942. blockData[blockBufferOffset + col + 24] = t;
  37943. blockData[blockBufferOffset + col + 32] = t;
  37944. blockData[blockBufferOffset + col + 40] = t;
  37945. blockData[blockBufferOffset + col + 48] = t;
  37946. blockData[blockBufferOffset + col + 56] = t;
  37947. continue;
  37948. }
  37949. // stage 4
  37950. v0 = (dctSqrt2 * p0 + 2048) >> 12;
  37951. v1 = (dctSqrt2 * p4 + 2048) >> 12;
  37952. v2 = p2;
  37953. v3 = p6;
  37954. v4 = (dctSqrt1d2 * (p1 - p7) + 2048) >> 12;
  37955. v7 = (dctSqrt1d2 * (p1 + p7) + 2048) >> 12;
  37956. v5 = p3;
  37957. v6 = p5;
  37958. // stage 3
  37959. // Shift v0 by 128.5 << 5 here, so we don't need to shift p0...p7 when
  37960. // converting to UInt8 range later.
  37961. v0 = ((v0 + v1 + 1) >> 1) + 4112;
  37962. v1 = v0 - v1;
  37963. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  37964. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  37965. v3 = t;
  37966. v4 = (v4 + v6 + 1) >> 1;
  37967. v6 = v4 - v6;
  37968. v7 = (v7 + v5 + 1) >> 1;
  37969. v5 = v7 - v5;
  37970. // stage 2
  37971. v0 = (v0 + v3 + 1) >> 1;
  37972. v3 = v0 - v3;
  37973. v1 = (v1 + v2 + 1) >> 1;
  37974. v2 = v1 - v2;
  37975. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37976. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37977. v7 = t;
  37978. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37979. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37980. v6 = t;
  37981. // stage 1
  37982. p0 = v0 + v7;
  37983. p7 = v0 - v7;
  37984. p1 = v1 + v6;
  37985. p6 = v1 - v6;
  37986. p2 = v2 + v5;
  37987. p5 = v2 - v5;
  37988. p3 = v3 + v4;
  37989. p4 = v3 - v4;
  37990. // convert to 8-bit integers
  37991. p0 = (p0 < 16) ? 0 : (p0 >= 4080) ? 255 : p0 >> 4;
  37992. p1 = (p1 < 16) ? 0 : (p1 >= 4080) ? 255 : p1 >> 4;
  37993. p2 = (p2 < 16) ? 0 : (p2 >= 4080) ? 255 : p2 >> 4;
  37994. p3 = (p3 < 16) ? 0 : (p3 >= 4080) ? 255 : p3 >> 4;
  37995. p4 = (p4 < 16) ? 0 : (p4 >= 4080) ? 255 : p4 >> 4;
  37996. p5 = (p5 < 16) ? 0 : (p5 >= 4080) ? 255 : p5 >> 4;
  37997. p6 = (p6 < 16) ? 0 : (p6 >= 4080) ? 255 : p6 >> 4;
  37998. p7 = (p7 < 16) ? 0 : (p7 >= 4080) ? 255 : p7 >> 4;
  37999. // store block data
  38000. blockData[blockBufferOffset + col] = p0;
  38001. blockData[blockBufferOffset + col + 8] = p1;
  38002. blockData[blockBufferOffset + col + 16] = p2;
  38003. blockData[blockBufferOffset + col + 24] = p3;
  38004. blockData[blockBufferOffset + col + 32] = p4;
  38005. blockData[blockBufferOffset + col + 40] = p5;
  38006. blockData[blockBufferOffset + col + 48] = p6;
  38007. blockData[blockBufferOffset + col + 56] = p7;
  38008. }
  38009. }
  38010. function buildComponentData(frame, component) {
  38011. var blocksPerLine = component.blocksPerLine;
  38012. var blocksPerColumn = component.blocksPerColumn;
  38013. var computationBuffer = new Int16Array(64);
  38014. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  38015. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  38016. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  38017. quantizeAndInverse(component, offset, computationBuffer);
  38018. }
  38019. }
  38020. return component.blockData;
  38021. }
  38022. function clamp0to255(a) {
  38023. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  38024. }
  38025. constructor.prototype = {
  38026. parse: function parse(data) {
  38027. function readUint16() {
  38028. var value = (data[offset] << 8) | data[offset + 1];
  38029. offset += 2;
  38030. return value;
  38031. }
  38032. function readDataBlock() {
  38033. var length = readUint16();
  38034. var array = data.subarray(offset, offset + length - 2);
  38035. offset += array.length;
  38036. return array;
  38037. }
  38038. function prepareComponents(frame) {
  38039. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  38040. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  38041. for (var i = 0; i < frame.components.length; i++) {
  38042. component = frame.components[i];
  38043. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  38044. component.h / frame.maxH);
  38045. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  38046. component.v / frame.maxV);
  38047. var blocksPerLineForMcu = mcusPerLine * component.h;
  38048. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  38049. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  38050. (blocksPerLineForMcu + 1);
  38051. component.blockData = new Int16Array(blocksBufferSize);
  38052. component.blocksPerLine = blocksPerLine;
  38053. component.blocksPerColumn = blocksPerColumn;
  38054. }
  38055. frame.mcusPerLine = mcusPerLine;
  38056. frame.mcusPerColumn = mcusPerColumn;
  38057. }
  38058. var offset = 0, length = data.length;
  38059. var jfif = null;
  38060. var adobe = null;
  38061. var pixels = null;
  38062. var frame, resetInterval;
  38063. var quantizationTables = [];
  38064. var huffmanTablesAC = [], huffmanTablesDC = [];
  38065. var fileMarker = readUint16();
  38066. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  38067. throw 'SOI not found';
  38068. }
  38069. fileMarker = readUint16();
  38070. while (fileMarker != 0xFFD9) { // EOI (End of image)
  38071. var i, j, l;
  38072. switch(fileMarker) {
  38073. case 0xFFE0: // APP0 (Application Specific)
  38074. case 0xFFE1: // APP1
  38075. case 0xFFE2: // APP2
  38076. case 0xFFE3: // APP3
  38077. case 0xFFE4: // APP4
  38078. case 0xFFE5: // APP5
  38079. case 0xFFE6: // APP6
  38080. case 0xFFE7: // APP7
  38081. case 0xFFE8: // APP8
  38082. case 0xFFE9: // APP9
  38083. case 0xFFEA: // APP10
  38084. case 0xFFEB: // APP11
  38085. case 0xFFEC: // APP12
  38086. case 0xFFED: // APP13
  38087. case 0xFFEE: // APP14
  38088. case 0xFFEF: // APP15
  38089. case 0xFFFE: // COM (Comment)
  38090. var appData = readDataBlock();
  38091. if (fileMarker === 0xFFE0) {
  38092. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  38093. appData[2] === 0x49 && appData[3] === 0x46 &&
  38094. appData[4] === 0) { // 'JFIF\x00'
  38095. jfif = {
  38096. version: { major: appData[5], minor: appData[6] },
  38097. densityUnits: appData[7],
  38098. xDensity: (appData[8] << 8) | appData[9],
  38099. yDensity: (appData[10] << 8) | appData[11],
  38100. thumbWidth: appData[12],
  38101. thumbHeight: appData[13],
  38102. thumbData: appData.subarray(14, 14 +
  38103. 3 * appData[12] * appData[13])
  38104. };
  38105. }
  38106. }
  38107. // TODO APP1 - Exif
  38108. if (fileMarker === 0xFFEE) {
  38109. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  38110. appData[2] === 0x6F && appData[3] === 0x62 &&
  38111. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  38112. adobe = {
  38113. version: appData[6],
  38114. flags0: (appData[7] << 8) | appData[8],
  38115. flags1: (appData[9] << 8) | appData[10],
  38116. transformCode: appData[11]
  38117. };
  38118. }
  38119. }
  38120. break;
  38121. case 0xFFDB: // DQT (Define Quantization Tables)
  38122. var quantizationTablesLength = readUint16();
  38123. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  38124. var z;
  38125. while (offset < quantizationTablesEnd) {
  38126. var quantizationTableSpec = data[offset++];
  38127. var tableData = new Uint16Array(64);
  38128. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  38129. for (j = 0; j < 64; j++) {
  38130. z = dctZigZag[j];
  38131. tableData[z] = data[offset++];
  38132. }
  38133. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  38134. for (j = 0; j < 64; j++) {
  38135. z = dctZigZag[j];
  38136. tableData[z] = readUint16();
  38137. }
  38138. } else {
  38139. throw 'DQT: invalid table spec';
  38140. }
  38141. quantizationTables[quantizationTableSpec & 15] = tableData;
  38142. }
  38143. break;
  38144. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  38145. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  38146. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  38147. if (frame) {
  38148. throw 'Only single frame JPEGs supported';
  38149. }
  38150. readUint16(); // skip data length
  38151. frame = {};
  38152. frame.extended = (fileMarker === 0xFFC1);
  38153. frame.progressive = (fileMarker === 0xFFC2);
  38154. frame.precision = data[offset++];
  38155. frame.scanLines = readUint16();
  38156. frame.samplesPerLine = readUint16();
  38157. frame.components = [];
  38158. frame.componentIds = {};
  38159. var componentsCount = data[offset++], componentId;
  38160. var maxH = 0, maxV = 0;
  38161. for (i = 0; i < componentsCount; i++) {
  38162. componentId = data[offset];
  38163. var h = data[offset + 1] >> 4;
  38164. var v = data[offset + 1] & 15;
  38165. if (maxH < h) {
  38166. maxH = h;
  38167. }
  38168. if (maxV < v) {
  38169. maxV = v;
  38170. }
  38171. var qId = data[offset + 2];
  38172. l = frame.components.push({
  38173. h: h,
  38174. v: v,
  38175. quantizationTable: quantizationTables[qId]
  38176. });
  38177. frame.componentIds[componentId] = l - 1;
  38178. offset += 3;
  38179. }
  38180. frame.maxH = maxH;
  38181. frame.maxV = maxV;
  38182. prepareComponents(frame);
  38183. break;
  38184. case 0xFFC4: // DHT (Define Huffman Tables)
  38185. var huffmanLength = readUint16();
  38186. for (i = 2; i < huffmanLength;) {
  38187. var huffmanTableSpec = data[offset++];
  38188. var codeLengths = new Uint8Array(16);
  38189. var codeLengthSum = 0;
  38190. for (j = 0; j < 16; j++, offset++) {
  38191. codeLengthSum += (codeLengths[j] = data[offset]);
  38192. }
  38193. var huffmanValues = new Uint8Array(codeLengthSum);
  38194. for (j = 0; j < codeLengthSum; j++, offset++) {
  38195. huffmanValues[j] = data[offset];
  38196. }
  38197. i += 17 + codeLengthSum;
  38198. ((huffmanTableSpec >> 4) === 0 ?
  38199. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  38200. buildHuffmanTable(codeLengths, huffmanValues);
  38201. }
  38202. break;
  38203. case 0xFFDD: // DRI (Define Restart Interval)
  38204. readUint16(); // skip data length
  38205. resetInterval = readUint16();
  38206. break;
  38207. case 0xFFDA: // SOS (Start of Scan)
  38208. var scanLength = readUint16();
  38209. var selectorsCount = data[offset++];
  38210. var components = [], component;
  38211. for (i = 0; i < selectorsCount; i++) {
  38212. var componentIndex = frame.componentIds[data[offset++]];
  38213. component = frame.components[componentIndex];
  38214. var tableSpec = data[offset++];
  38215. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  38216. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  38217. components.push(component);
  38218. }
  38219. var spectralStart = data[offset++];
  38220. var spectralEnd = data[offset++];
  38221. var successiveApproximation = data[offset++];
  38222. var processed = decodeScan(data, offset,
  38223. frame, components, resetInterval,
  38224. spectralStart, spectralEnd,
  38225. successiveApproximation >> 4, successiveApproximation & 15);
  38226. offset += processed;
  38227. break;
  38228. default:
  38229. if (data[offset - 3] == 0xFF &&
  38230. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  38231. // could be incorrect encoding -- last 0xFF byte of the previous
  38232. // block was eaten by the encoder
  38233. offset -= 3;
  38234. break;
  38235. }
  38236. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  38237. }
  38238. fileMarker = readUint16();
  38239. }
  38240. this.width = frame.samplesPerLine;
  38241. this.height = frame.scanLines;
  38242. this.jfif = jfif;
  38243. this.adobe = adobe;
  38244. this.components = [];
  38245. for (i = 0; i < frame.components.length; i++) {
  38246. component = frame.components[i];
  38247. this.components.push({
  38248. output: buildComponentData(frame, component),
  38249. scaleX: component.h / frame.maxH,
  38250. scaleY: component.v / frame.maxV,
  38251. blocksPerLine: component.blocksPerLine,
  38252. blocksPerColumn: component.blocksPerColumn
  38253. });
  38254. }
  38255. this.numComponents = this.components.length;
  38256. },
  38257. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  38258. var scaleX = this.width / width, scaleY = this.height / height;
  38259. var component, componentScaleX, componentScaleY, blocksPerScanline;
  38260. var x, y, i, j, k;
  38261. var index;
  38262. var offset = 0;
  38263. var output;
  38264. var numComponents = this.components.length;
  38265. var dataLength = width * height * numComponents;
  38266. var data = new Uint8Array(dataLength);
  38267. var xScaleBlockOffset = new Uint32Array(width);
  38268. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  38269. for (i = 0; i < numComponents; i++) {
  38270. component = this.components[i];
  38271. componentScaleX = component.scaleX * scaleX;
  38272. componentScaleY = component.scaleY * scaleY;
  38273. offset = i;
  38274. output = component.output;
  38275. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  38276. // precalculate the xScaleBlockOffset
  38277. for (x = 0; x < width; x++) {
  38278. j = 0 | (x * componentScaleX);
  38279. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  38280. }
  38281. // linearize the blocks of the component
  38282. for (y = 0; y < height; y++) {
  38283. j = 0 | (y * componentScaleY);
  38284. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  38285. for (x = 0; x < width; x++) {
  38286. data[offset] = output[index + xScaleBlockOffset[x]];
  38287. offset += numComponents;
  38288. }
  38289. }
  38290. }
  38291. // decodeTransform will contains pairs of multiplier (-256..256) and
  38292. // additive
  38293. var transform = this.decodeTransform;
  38294. if (transform) {
  38295. for (i = 0; i < dataLength;) {
  38296. for (j = 0, k = 0; j < numComponents; j++, i++, k += 2) {
  38297. data[i] = ((data[i] * transform[k]) >> 8) + transform[k + 1];
  38298. }
  38299. }
  38300. }
  38301. return data;
  38302. },
  38303. _isColorConversionNeeded: function isColorConversionNeeded() {
  38304. if (this.adobe && this.adobe.transformCode) {
  38305. // The adobe transform marker overrides any previous setting
  38306. return true;
  38307. } else if (this.numComponents == 3) {
  38308. return true;
  38309. } else {
  38310. return false;
  38311. }
  38312. },
  38313. _convertYccToRgb: function convertYccToRgb(data) {
  38314. var Y, Cb, Cr;
  38315. for (var i = 0, length = data.length; i < length; i += 3) {
  38316. Y = data[i ];
  38317. Cb = data[i + 1];
  38318. Cr = data[i + 2];
  38319. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  38320. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  38321. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  38322. }
  38323. return data;
  38324. },
  38325. _convertYcckToRgb: function convertYcckToRgb(data) {
  38326. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  38327. var offset = 0;
  38328. for (var i = 0, length = data.length; i < length; i += 4) {
  38329. Y = data[i];
  38330. Cb = data[i + 1];
  38331. Cr = data[i + 2];
  38332. k = data[i + 3];
  38333. CbCb = Cb * Cb;
  38334. CbCr = Cb * Cr;
  38335. CbY = Cb * Y;
  38336. Cbk = Cb * k;
  38337. CrCr = Cr * Cr;
  38338. Crk = Cr * k;
  38339. CrY = Cr * Y;
  38340. YY = Y * Y;
  38341. Yk = Y * k;
  38342. kk = k * k;
  38343. var r = - 122.67195406894 -
  38344. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  38345. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  38346. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  38347. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  38348. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  38349. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  38350. 0.000336197177618394 * kk + 0.484791561490776 * k;
  38351. var g = 107.268039397724 +
  38352. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  38353. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  38354. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  38355. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  38356. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  38357. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  38358. 0.000318913117588328 * kk - 0.213742400323665 * k;
  38359. var b = - 20.810012546947 -
  38360. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  38361. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  38362. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  38363. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  38364. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  38365. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  38366. 0.000343531996510555 * kk + 0.24165260232407 * k;
  38367. data[offset++] = clamp0to255(r);
  38368. data[offset++] = clamp0to255(g);
  38369. data[offset++] = clamp0to255(b);
  38370. }
  38371. return data;
  38372. },
  38373. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  38374. var Y, Cb, Cr;
  38375. for (var i = 0, length = data.length; i < length; i += 4) {
  38376. Y = data[i];
  38377. Cb = data[i + 1];
  38378. Cr = data[i + 2];
  38379. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  38380. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  38381. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  38382. // K in data[i + 3] is unchanged
  38383. }
  38384. return data;
  38385. },
  38386. _convertCmykToRgb: function convertCmykToRgb(data) {
  38387. var c, m, y, k;
  38388. var offset = 0;
  38389. var min = -255 * 255 * 255;
  38390. var scale = 1 / 255 / 255;
  38391. for (var i = 0, length = data.length; i < length; i += 4) {
  38392. c = data[i];
  38393. m = data[i + 1];
  38394. y = data[i + 2];
  38395. k = data[i + 3];
  38396. var r =
  38397. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  38398. 18.82290502165302 * y + 212.25662451639585 * k -
  38399. 72734.4411664936) +
  38400. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  38401. 17.873870861415444 * k - 1401.7366389350734) +
  38402. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  38403. 4465.541406466231) -
  38404. k * (21.86122147463605 * k + 48317.86113160301);
  38405. var g =
  38406. c * (8.841041422036149 * c + 60.118027045597366 * m +
  38407. 6.871425592049007 * y + 31.159100130055922 * k -
  38408. 20220.756542821975) +
  38409. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  38410. 131.35250912493976 * k - 48691.05921601825) +
  38411. y * (4.444339102852739 * y + 9.8632861493405 * k -
  38412. 6341.191035517494) -
  38413. k * (20.737325471181034 * k + 47890.15695978492);
  38414. var b =
  38415. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  38416. 30.89978309703729 * y - 0.23883238689178934 * k -
  38417. 3616.812083916688) +
  38418. m * (10.49593273432072 * m + 63.02378494754052 * y +
  38419. 50.606957656360734 * k - 28620.90484698408) +
  38420. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  38421. 49363.43385999684) -
  38422. k * (22.33816807309886 * k + 45932.16563550634);
  38423. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  38424. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  38425. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  38426. }
  38427. return data;
  38428. },
  38429. getData: function getData(width, height, forceRGBoutput) {
  38430. if (this.numComponents > 4) {
  38431. throw 'Unsupported color mode';
  38432. }
  38433. // type of data: Uint8Array(width * height * numComponents)
  38434. var data = this._getLinearizedBlockData(width, height);
  38435. if (this.numComponents === 3) {
  38436. return this._convertYccToRgb(data);
  38437. } else if (this.numComponents === 4) {
  38438. if (this._isColorConversionNeeded()) {
  38439. if (forceRGBoutput) {
  38440. return this._convertYcckToRgb(data);
  38441. } else {
  38442. return this._convertYcckToCmyk(data);
  38443. }
  38444. } else if (forceRGBoutput) {
  38445. return this._convertCmykToRgb(data);
  38446. }
  38447. }
  38448. return data;
  38449. }
  38450. };
  38451. return constructor;
  38452. })();
  38453. var JpxImage = (function JpxImageClosure() {
  38454. // Table E.1
  38455. var SubbandsGainLog2 = {
  38456. 'LL': 0,
  38457. 'LH': 1,
  38458. 'HL': 1,
  38459. 'HH': 2
  38460. };
  38461. function JpxImage() {
  38462. this.failOnCorruptedImage = false;
  38463. }
  38464. JpxImage.prototype = {
  38465. parse: function JpxImage_parse(data) {
  38466. var head = readUint16(data, 0);
  38467. // No box header, immediate start of codestream (SOC)
  38468. if (head === 0xFF4F) {
  38469. this.parseCodestream(data, 0, data.length);
  38470. return;
  38471. }
  38472. var position = 0, length = data.length;
  38473. while (position < length) {
  38474. var headerSize = 8;
  38475. var lbox = readUint32(data, position);
  38476. var tbox = readUint32(data, position + 4);
  38477. position += headerSize;
  38478. if (lbox === 1) {
  38479. // XLBox: read UInt64 according to spec.
  38480. // JavaScript's int precision of 53 bit should be sufficient here.
  38481. lbox = readUint32(data, position) * 4294967296 +
  38482. readUint32(data, position + 4);
  38483. position += 8;
  38484. headerSize += 8;
  38485. }
  38486. if (lbox === 0) {
  38487. lbox = length - position + headerSize;
  38488. }
  38489. if (lbox < headerSize) {
  38490. throw new Error('JPX Error: Invalid box field size');
  38491. }
  38492. var dataLength = lbox - headerSize;
  38493. var jumpDataLength = true;
  38494. switch (tbox) {
  38495. case 0x6A501A1A: // 'jP\032\032'
  38496. // TODO
  38497. break;
  38498. case 0x6A703268: // 'jp2h'
  38499. jumpDataLength = false; // parsing child boxes
  38500. break;
  38501. case 0x636F6C72: // 'colr'
  38502. // TODO
  38503. break;
  38504. case 0x6A703263: // 'jp2c'
  38505. this.parseCodestream(data, position, position + dataLength);
  38506. break;
  38507. }
  38508. if (jumpDataLength) {
  38509. position += dataLength;
  38510. }
  38511. }
  38512. },
  38513. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  38514. var newByte = stream.getByte();
  38515. while (newByte >= 0) {
  38516. var oldByte = newByte;
  38517. newByte = stream.getByte();
  38518. var code = (oldByte << 8) | newByte;
  38519. // Image and tile size (SIZ)
  38520. if (code == 0xFF51) {
  38521. stream.skip(4);
  38522. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  38523. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  38524. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  38525. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  38526. stream.skip(16);
  38527. var Csiz = stream.getUint16(); // Byte 36
  38528. this.width = Xsiz - XOsiz;
  38529. this.height = Ysiz - YOsiz;
  38530. this.componentsCount = Csiz;
  38531. // Results are always returned as Uint8Arrays
  38532. this.bitsPerComponent = 8;
  38533. return;
  38534. }
  38535. }
  38536. throw new Error('JPX Error: No size marker found in JPX stream');
  38537. },
  38538. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  38539. var context = {};
  38540. try {
  38541. var doNotRecover = false;
  38542. var position = start;
  38543. while (position + 1 < end) {
  38544. var code = readUint16(data, position);
  38545. position += 2;
  38546. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  38547. switch (code) {
  38548. case 0xFF4F: // Start of codestream (SOC)
  38549. context.mainHeader = true;
  38550. break;
  38551. case 0xFFD9: // End of codestream (EOC)
  38552. break;
  38553. case 0xFF51: // Image and tile size (SIZ)
  38554. length = readUint16(data, position);
  38555. var siz = {};
  38556. siz.Xsiz = readUint32(data, position + 4);
  38557. siz.Ysiz = readUint32(data, position + 8);
  38558. siz.XOsiz = readUint32(data, position + 12);
  38559. siz.YOsiz = readUint32(data, position + 16);
  38560. siz.XTsiz = readUint32(data, position + 20);
  38561. siz.YTsiz = readUint32(data, position + 24);
  38562. siz.XTOsiz = readUint32(data, position + 28);
  38563. siz.YTOsiz = readUint32(data, position + 32);
  38564. var componentsCount = readUint16(data, position + 36);
  38565. siz.Csiz = componentsCount;
  38566. var components = [];
  38567. j = position + 38;
  38568. for (var i = 0; i < componentsCount; i++) {
  38569. var component = {
  38570. precision: (data[j] & 0x7F) + 1,
  38571. isSigned: !!(data[j] & 0x80),
  38572. XRsiz: data[j + 1],
  38573. YRsiz: data[j + 1]
  38574. };
  38575. calculateComponentDimensions(component, siz);
  38576. components.push(component);
  38577. }
  38578. context.SIZ = siz;
  38579. context.components = components;
  38580. calculateTileGrids(context, components);
  38581. context.QCC = [];
  38582. context.COC = [];
  38583. break;
  38584. case 0xFF55: // Tile-part lengths, main header (TLM)
  38585. var Ltlm = readUint16(data, position); // Marker segment length
  38586. // Skip tile length markers
  38587. position += Ltlm;
  38588. break;
  38589. case 0xFF5C: // Quantization default (QCD)
  38590. length = readUint16(data, position);
  38591. var qcd = {};
  38592. j = position + 2;
  38593. sqcd = data[j++];
  38594. switch (sqcd & 0x1F) {
  38595. case 0:
  38596. spqcdSize = 8;
  38597. scalarExpounded = true;
  38598. break;
  38599. case 1:
  38600. spqcdSize = 16;
  38601. scalarExpounded = false;
  38602. break;
  38603. case 2:
  38604. spqcdSize = 16;
  38605. scalarExpounded = true;
  38606. break;
  38607. default:
  38608. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38609. }
  38610. qcd.noQuantization = (spqcdSize == 8);
  38611. qcd.scalarExpounded = scalarExpounded;
  38612. qcd.guardBits = sqcd >> 5;
  38613. spqcds = [];
  38614. while (j < length + position) {
  38615. var spqcd = {};
  38616. if (spqcdSize == 8) {
  38617. spqcd.epsilon = data[j++] >> 3;
  38618. spqcd.mu = 0;
  38619. } else {
  38620. spqcd.epsilon = data[j] >> 3;
  38621. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38622. j += 2;
  38623. }
  38624. spqcds.push(spqcd);
  38625. }
  38626. qcd.SPqcds = spqcds;
  38627. if (context.mainHeader) {
  38628. context.QCD = qcd;
  38629. } else {
  38630. context.currentTile.QCD = qcd;
  38631. context.currentTile.QCC = [];
  38632. }
  38633. break;
  38634. case 0xFF5D: // Quantization component (QCC)
  38635. length = readUint16(data, position);
  38636. var qcc = {};
  38637. j = position + 2;
  38638. var cqcc;
  38639. if (context.SIZ.Csiz < 257) {
  38640. cqcc = data[j++];
  38641. } else {
  38642. cqcc = readUint16(data, j);
  38643. j += 2;
  38644. }
  38645. sqcd = data[j++];
  38646. switch (sqcd & 0x1F) {
  38647. case 0:
  38648. spqcdSize = 8;
  38649. scalarExpounded = true;
  38650. break;
  38651. case 1:
  38652. spqcdSize = 16;
  38653. scalarExpounded = false;
  38654. break;
  38655. case 2:
  38656. spqcdSize = 16;
  38657. scalarExpounded = true;
  38658. break;
  38659. default:
  38660. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38661. }
  38662. qcc.noQuantization = (spqcdSize == 8);
  38663. qcc.scalarExpounded = scalarExpounded;
  38664. qcc.guardBits = sqcd >> 5;
  38665. spqcds = [];
  38666. while (j < (length + position)) {
  38667. spqcd = {};
  38668. if (spqcdSize == 8) {
  38669. spqcd.epsilon = data[j++] >> 3;
  38670. spqcd.mu = 0;
  38671. } else {
  38672. spqcd.epsilon = data[j] >> 3;
  38673. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38674. j += 2;
  38675. }
  38676. spqcds.push(spqcd);
  38677. }
  38678. qcc.SPqcds = spqcds;
  38679. if (context.mainHeader) {
  38680. context.QCC[cqcc] = qcc;
  38681. } else {
  38682. context.currentTile.QCC[cqcc] = qcc;
  38683. }
  38684. break;
  38685. case 0xFF52: // Coding style default (COD)
  38686. length = readUint16(data, position);
  38687. var cod = {};
  38688. j = position + 2;
  38689. var scod = data[j++];
  38690. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  38691. cod.sopMarkerUsed = !!(scod & 2);
  38692. cod.ephMarkerUsed = !!(scod & 4);
  38693. cod.progressionOrder = data[j++];
  38694. cod.layersCount = readUint16(data, j);
  38695. j += 2;
  38696. cod.multipleComponentTransform = data[j++];
  38697. cod.decompositionLevelsCount = data[j++];
  38698. cod.xcb = (data[j++] & 0xF) + 2;
  38699. cod.ycb = (data[j++] & 0xF) + 2;
  38700. var blockStyle = data[j++];
  38701. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  38702. cod.resetContextProbabilities = !!(blockStyle & 2);
  38703. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  38704. cod.verticalyStripe = !!(blockStyle & 8);
  38705. cod.predictableTermination = !!(blockStyle & 16);
  38706. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  38707. cod.reversibleTransformation = data[j++];
  38708. if (cod.entropyCoderWithCustomPrecincts) {
  38709. var precinctsSizes = [];
  38710. while (j < length + position) {
  38711. var precinctsSize = data[j++];
  38712. precinctsSizes.push({
  38713. PPx: precinctsSize & 0xF,
  38714. PPy: precinctsSize >> 4
  38715. });
  38716. }
  38717. cod.precinctsSizes = precinctsSizes;
  38718. }
  38719. var unsupported = [];
  38720. if (cod.sopMarkerUsed) {
  38721. unsupported.push('sopMarkerUsed');
  38722. }
  38723. if (cod.ephMarkerUsed) {
  38724. unsupported.push('ephMarkerUsed');
  38725. }
  38726. if (cod.selectiveArithmeticCodingBypass) {
  38727. unsupported.push('selectiveArithmeticCodingBypass');
  38728. }
  38729. if (cod.resetContextProbabilities) {
  38730. unsupported.push('resetContextProbabilities');
  38731. }
  38732. if (cod.terminationOnEachCodingPass) {
  38733. unsupported.push('terminationOnEachCodingPass');
  38734. }
  38735. if (cod.verticalyStripe) {
  38736. unsupported.push('verticalyStripe');
  38737. }
  38738. if (cod.predictableTermination) {
  38739. unsupported.push('predictableTermination');
  38740. }
  38741. if (unsupported.length > 0) {
  38742. doNotRecover = true;
  38743. throw new Error('JPX Error: Unsupported COD options (' +
  38744. unsupported.join(', ') + ')');
  38745. }
  38746. if (context.mainHeader) {
  38747. context.COD = cod;
  38748. } else {
  38749. context.currentTile.COD = cod;
  38750. context.currentTile.COC = [];
  38751. }
  38752. break;
  38753. case 0xFF90: // Start of tile-part (SOT)
  38754. length = readUint16(data, position);
  38755. tile = {};
  38756. tile.index = readUint16(data, position + 2);
  38757. tile.length = readUint32(data, position + 4);
  38758. tile.dataEnd = tile.length + position - 2;
  38759. tile.partIndex = data[position + 8];
  38760. tile.partsCount = data[position + 9];
  38761. context.mainHeader = false;
  38762. if (tile.partIndex === 0) {
  38763. // reset component specific settings
  38764. tile.COD = context.COD;
  38765. tile.COC = context.COC.slice(0); // clone of the global COC
  38766. tile.QCD = context.QCD;
  38767. tile.QCC = context.QCC.slice(0); // clone of the global COC
  38768. }
  38769. context.currentTile = tile;
  38770. break;
  38771. case 0xFF93: // Start of data (SOD)
  38772. tile = context.currentTile;
  38773. if (tile.partIndex === 0) {
  38774. initializeTile(context, tile.index);
  38775. buildPackets(context);
  38776. }
  38777. // moving to the end of the data
  38778. length = tile.dataEnd - position;
  38779. parseTilePackets(context, data, position, length);
  38780. break;
  38781. case 0xFF64: // Comment (COM)
  38782. length = readUint16(data, position);
  38783. // skipping content
  38784. break;
  38785. case 0xFF53: // Coding style component (COC)
  38786. throw new Error('JPX Error: Codestream code 0xFF53 (COC) is ' +
  38787. 'not implemented');
  38788. default:
  38789. throw new Error('JPX Error: Unknown codestream code: ' +
  38790. code.toString(16));
  38791. }
  38792. position += length;
  38793. }
  38794. } catch (e) {
  38795. if (doNotRecover || this.failOnCorruptedImage) {
  38796. throw e;
  38797. } else {
  38798. warn('Trying to recover from ' + e.message);
  38799. }
  38800. }
  38801. this.tiles = transformComponents(context);
  38802. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  38803. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  38804. this.componentsCount = context.SIZ.Csiz;
  38805. }
  38806. };
  38807. function calculateComponentDimensions(component, siz) {
  38808. // Section B.2 Component mapping
  38809. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  38810. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  38811. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  38812. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  38813. component.width = component.x1 - component.x0;
  38814. component.height = component.y1 - component.y0;
  38815. }
  38816. function calculateTileGrids(context, components) {
  38817. var siz = context.SIZ;
  38818. // Section B.3 Division into tile and tile-components
  38819. var tile, tiles = [];
  38820. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  38821. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  38822. for (var q = 0; q < numYtiles; q++) {
  38823. for (var p = 0; p < numXtiles; p++) {
  38824. tile = {};
  38825. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  38826. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  38827. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  38828. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  38829. tile.width = tile.tx1 - tile.tx0;
  38830. tile.height = tile.ty1 - tile.ty0;
  38831. tile.components = [];
  38832. tiles.push(tile);
  38833. }
  38834. }
  38835. context.tiles = tiles;
  38836. var componentsCount = siz.Csiz;
  38837. for (var i = 0, ii = componentsCount; i < ii; i++) {
  38838. var component = components[i];
  38839. for (var j = 0, jj = tiles.length; j < jj; j++) {
  38840. var tileComponent = {};
  38841. tile = tiles[j];
  38842. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  38843. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  38844. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  38845. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  38846. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  38847. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  38848. tile.components[i] = tileComponent;
  38849. }
  38850. }
  38851. }
  38852. function getBlocksDimensions(context, component, r) {
  38853. var codOrCoc = component.codingStyleParameters;
  38854. var result = {};
  38855. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  38856. result.PPx = 15;
  38857. result.PPy = 15;
  38858. } else {
  38859. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  38860. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  38861. }
  38862. // calculate codeblock size as described in section B.7
  38863. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  38864. Math.min(codOrCoc.xcb, result.PPx));
  38865. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  38866. Math.min(codOrCoc.ycb, result.PPy));
  38867. return result;
  38868. }
  38869. function buildPrecincts(context, resolution, dimensions) {
  38870. // Section B.6 Division resolution to precincts
  38871. var precinctWidth = 1 << dimensions.PPx;
  38872. var precinctHeight = 1 << dimensions.PPy;
  38873. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  38874. Math.ceil(resolution.trx1 / precinctWidth) -
  38875. Math.floor(resolution.trx0 / precinctWidth) : 0);
  38876. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  38877. Math.ceil(resolution.try1 / precinctHeight) -
  38878. Math.floor(resolution.try0 / precinctHeight) : 0);
  38879. var numprecincts = numprecinctswide * numprecinctshigh;
  38880. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  38881. precinctWidth;
  38882. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  38883. precinctHeight;
  38884. resolution.precinctParameters = {
  38885. precinctXOffset: precinctXOffset,
  38886. precinctYOffset: precinctYOffset,
  38887. precinctWidth: precinctWidth,
  38888. precinctHeight: precinctHeight,
  38889. numprecinctswide: numprecinctswide,
  38890. numprecinctshigh: numprecinctshigh,
  38891. numprecincts: numprecincts
  38892. };
  38893. }
  38894. function buildCodeblocks(context, subband, dimensions) {
  38895. // Section B.7 Division sub-band into code-blocks
  38896. var xcb_ = dimensions.xcb_;
  38897. var ycb_ = dimensions.ycb_;
  38898. var codeblockWidth = 1 << xcb_;
  38899. var codeblockHeight = 1 << ycb_;
  38900. var cbx0 = subband.tbx0 >> xcb_;
  38901. var cby0 = subband.tby0 >> ycb_;
  38902. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  38903. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  38904. var precinctParameters = subband.resolution.precinctParameters;
  38905. var codeblocks = [];
  38906. var precincts = [];
  38907. var i, j, codeblock, precinctNumber;
  38908. for (j = cby0; j < cby1; j++) {
  38909. for (i = cbx0; i < cbx1; i++) {
  38910. codeblock = {
  38911. cbx: i,
  38912. cby: j,
  38913. tbx0: codeblockWidth * i,
  38914. tby0: codeblockHeight * j,
  38915. tbx1: codeblockWidth * (i + 1),
  38916. tby1: codeblockHeight * (j + 1)
  38917. };
  38918. // calculate precinct number
  38919. var pi = Math.floor((codeblock.tbx0 -
  38920. precinctParameters.precinctXOffset) /
  38921. precinctParameters.precinctWidth);
  38922. var pj = Math.floor((codeblock.tby0 -
  38923. precinctParameters.precinctYOffset) /
  38924. precinctParameters.precinctHeight);
  38925. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  38926. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  38927. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  38928. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  38929. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  38930. codeblock.precinctNumber = precinctNumber;
  38931. codeblock.subbandType = subband.type;
  38932. codeblock.Lblock = 3;
  38933. codeblocks.push(codeblock);
  38934. // building precinct for the sub-band
  38935. var precinct = precincts[precinctNumber];
  38936. if (precinct !== undefined) {
  38937. if (i < precinct.cbxMin) {
  38938. precinct.cbxMin = i;
  38939. } else if (i > precinct.cbxMax) {
  38940. precinct.cbxMax = i;
  38941. }
  38942. if (j < precinct.cbyMin) {
  38943. precinct.cbxMin = j;
  38944. } else if (j > precinct.cbyMax) {
  38945. precinct.cbyMax = j;
  38946. }
  38947. } else {
  38948. precincts[precinctNumber] = precinct = {
  38949. cbxMin: i,
  38950. cbyMin: j,
  38951. cbxMax: i,
  38952. cbyMax: j
  38953. };
  38954. }
  38955. codeblock.precinct = precinct;
  38956. }
  38957. }
  38958. subband.codeblockParameters = {
  38959. codeblockWidth: xcb_,
  38960. codeblockHeight: ycb_,
  38961. numcodeblockwide: cbx1 - cbx0 + 1,
  38962. numcodeblockhigh: cby1 - cby1 + 1
  38963. };
  38964. subband.codeblocks = codeblocks;
  38965. subband.precincts = precincts;
  38966. }
  38967. function createPacket(resolution, precinctNumber, layerNumber) {
  38968. var precinctCodeblocks = [];
  38969. // Section B.10.8 Order of info in packet
  38970. var subbands = resolution.subbands;
  38971. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  38972. for (var i = 0, ii = subbands.length; i < ii; i++) {
  38973. var subband = subbands[i];
  38974. var codeblocks = subband.codeblocks;
  38975. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  38976. var codeblock = codeblocks[j];
  38977. if (codeblock.precinctNumber != precinctNumber) {
  38978. continue;
  38979. }
  38980. precinctCodeblocks.push(codeblock);
  38981. }
  38982. }
  38983. return {
  38984. layerNumber: layerNumber,
  38985. codeblocks: precinctCodeblocks
  38986. };
  38987. }
  38988. function LayerResolutionComponentPositionIterator(context) {
  38989. var siz = context.SIZ;
  38990. var tileIndex = context.currentTile.index;
  38991. var tile = context.tiles[tileIndex];
  38992. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  38993. var componentsCount = siz.Csiz;
  38994. var maxDecompositionLevelsCount = 0;
  38995. for (var q = 0; q < componentsCount; q++) {
  38996. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  38997. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  38998. }
  38999. var l = 0, r = 0, i = 0, k = 0;
  39000. this.nextPacket = function JpxImage_nextPacket() {
  39001. // Section B.12.1.1 Layer-resolution-component-position
  39002. for (; l < layersCount; l++) {
  39003. for (; r <= maxDecompositionLevelsCount; r++) {
  39004. for (; i < componentsCount; i++) {
  39005. var component = tile.components[i];
  39006. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39007. continue;
  39008. }
  39009. var resolution = component.resolutions[r];
  39010. var numprecincts = resolution.precinctParameters.numprecincts;
  39011. for (; k < numprecincts;) {
  39012. var packet = createPacket(resolution, k, l);
  39013. k++;
  39014. return packet;
  39015. }
  39016. k = 0;
  39017. }
  39018. i = 0;
  39019. }
  39020. r = 0;
  39021. }
  39022. throw new Error('JPX Error: Out of packets');
  39023. };
  39024. }
  39025. function ResolutionLayerComponentPositionIterator(context) {
  39026. var siz = context.SIZ;
  39027. var tileIndex = context.currentTile.index;
  39028. var tile = context.tiles[tileIndex];
  39029. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  39030. var componentsCount = siz.Csiz;
  39031. var maxDecompositionLevelsCount = 0;
  39032. for (var q = 0; q < componentsCount; q++) {
  39033. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  39034. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  39035. }
  39036. var r = 0, l = 0, i = 0, k = 0;
  39037. this.nextPacket = function JpxImage_nextPacket() {
  39038. // Section B.12.1.2 Resolution-layer-component-position
  39039. for (; r <= maxDecompositionLevelsCount; r++) {
  39040. for (; l < layersCount; l++) {
  39041. for (; i < componentsCount; i++) {
  39042. var component = tile.components[i];
  39043. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39044. continue;
  39045. }
  39046. var resolution = component.resolutions[r];
  39047. var numprecincts = resolution.precinctParameters.numprecincts;
  39048. for (; k < numprecincts;) {
  39049. var packet = createPacket(resolution, k, l);
  39050. k++;
  39051. return packet;
  39052. }
  39053. k = 0;
  39054. }
  39055. i = 0;
  39056. }
  39057. l = 0;
  39058. }
  39059. throw new Error('JPX Error: Out of packets');
  39060. };
  39061. }
  39062. function buildPackets(context) {
  39063. var siz = context.SIZ;
  39064. var tileIndex = context.currentTile.index;
  39065. var tile = context.tiles[tileIndex];
  39066. var componentsCount = siz.Csiz;
  39067. // Creating resolutions and sub-bands for each component
  39068. for (var c = 0; c < componentsCount; c++) {
  39069. var component = tile.components[c];
  39070. var decompositionLevelsCount =
  39071. component.codingStyleParameters.decompositionLevelsCount;
  39072. // Section B.5 Resolution levels and sub-bands
  39073. var resolutions = [];
  39074. var subbands = [];
  39075. for (var r = 0; r <= decompositionLevelsCount; r++) {
  39076. var blocksDimensions = getBlocksDimensions(context, component, r);
  39077. var resolution = {};
  39078. var scale = 1 << (decompositionLevelsCount - r);
  39079. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  39080. resolution.try0 = Math.ceil(component.tcy0 / scale);
  39081. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  39082. resolution.try1 = Math.ceil(component.tcy1 / scale);
  39083. buildPrecincts(context, resolution, blocksDimensions);
  39084. resolutions.push(resolution);
  39085. var subband;
  39086. if (r === 0) {
  39087. // one sub-band (LL) with last decomposition
  39088. subband = {};
  39089. subband.type = 'LL';
  39090. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  39091. subband.tby0 = Math.ceil(component.tcy0 / scale);
  39092. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  39093. subband.tby1 = Math.ceil(component.tcy1 / scale);
  39094. subband.resolution = resolution;
  39095. buildCodeblocks(context, subband, blocksDimensions);
  39096. subbands.push(subband);
  39097. resolution.subbands = [subband];
  39098. } else {
  39099. var bscale = 1 << (decompositionLevelsCount - r + 1);
  39100. var resolutionSubbands = [];
  39101. // three sub-bands (HL, LH and HH) with rest of decompositions
  39102. subband = {};
  39103. subband.type = 'HL';
  39104. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39105. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  39106. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39107. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  39108. subband.resolution = resolution;
  39109. buildCodeblocks(context, subband, blocksDimensions);
  39110. subbands.push(subband);
  39111. resolutionSubbands.push(subband);
  39112. subband = {};
  39113. subband.type = 'LH';
  39114. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  39115. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39116. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  39117. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39118. subband.resolution = resolution;
  39119. buildCodeblocks(context, subband, blocksDimensions);
  39120. subbands.push(subband);
  39121. resolutionSubbands.push(subband);
  39122. subband = {};
  39123. subband.type = 'HH';
  39124. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39125. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39126. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39127. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39128. subband.resolution = resolution;
  39129. buildCodeblocks(context, subband, blocksDimensions);
  39130. subbands.push(subband);
  39131. resolutionSubbands.push(subband);
  39132. resolution.subbands = resolutionSubbands;
  39133. }
  39134. }
  39135. component.resolutions = resolutions;
  39136. component.subbands = subbands;
  39137. }
  39138. // Generate the packets sequence
  39139. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  39140. switch (progressionOrder) {
  39141. case 0:
  39142. tile.packetsIterator =
  39143. new LayerResolutionComponentPositionIterator(context);
  39144. break;
  39145. case 1:
  39146. tile.packetsIterator =
  39147. new ResolutionLayerComponentPositionIterator(context);
  39148. break;
  39149. default:
  39150. throw new Error('JPX Error: Unsupported progression order ' +
  39151. progressionOrder);
  39152. }
  39153. }
  39154. function parseTilePackets(context, data, offset, dataLength) {
  39155. var position = 0;
  39156. var buffer, bufferSize = 0, skipNextBit = false;
  39157. function readBits(count) {
  39158. while (bufferSize < count) {
  39159. var b = data[offset + position];
  39160. position++;
  39161. if (skipNextBit) {
  39162. buffer = (buffer << 7) | b;
  39163. bufferSize += 7;
  39164. skipNextBit = false;
  39165. } else {
  39166. buffer = (buffer << 8) | b;
  39167. bufferSize += 8;
  39168. }
  39169. if (b == 0xFF) {
  39170. skipNextBit = true;
  39171. }
  39172. }
  39173. bufferSize -= count;
  39174. return (buffer >>> bufferSize) & ((1 << count) - 1);
  39175. }
  39176. function alignToByte() {
  39177. bufferSize = 0;
  39178. if (skipNextBit) {
  39179. position++;
  39180. skipNextBit = false;
  39181. }
  39182. }
  39183. function readCodingpasses() {
  39184. if (readBits(1) === 0) {
  39185. return 1;
  39186. }
  39187. if (readBits(1) === 0) {
  39188. return 2;
  39189. }
  39190. var value = readBits(2);
  39191. if (value < 3) {
  39192. return value + 3;
  39193. }
  39194. value = readBits(5);
  39195. if (value < 31) {
  39196. return value + 6;
  39197. }
  39198. value = readBits(7);
  39199. return value + 37;
  39200. }
  39201. var tileIndex = context.currentTile.index;
  39202. var tile = context.tiles[tileIndex];
  39203. var packetsIterator = tile.packetsIterator;
  39204. while (position < dataLength) {
  39205. var packet = packetsIterator.nextPacket();
  39206. if (!readBits(1)) {
  39207. alignToByte();
  39208. continue;
  39209. }
  39210. var layerNumber = packet.layerNumber;
  39211. var queue = [], codeblock;
  39212. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  39213. codeblock = packet.codeblocks[i];
  39214. var precinct = codeblock.precinct;
  39215. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  39216. var codeblockRow = codeblock.cby - precinct.cbyMin;
  39217. var codeblockIncluded = false;
  39218. var firstTimeInclusion = false;
  39219. var valueReady;
  39220. if ('included' in codeblock) {
  39221. codeblockIncluded = !!readBits(1);
  39222. } else {
  39223. // reading inclusion tree
  39224. precinct = codeblock.precinct;
  39225. var inclusionTree, zeroBitPlanesTree;
  39226. if ('inclusionTree' in precinct) {
  39227. inclusionTree = precinct.inclusionTree;
  39228. } else {
  39229. // building inclusion and zero bit-planes trees
  39230. var width = precinct.cbxMax - precinct.cbxMin + 1;
  39231. var height = precinct.cbyMax - precinct.cbyMin + 1;
  39232. inclusionTree = new InclusionTree(width, height, layerNumber);
  39233. zeroBitPlanesTree = new TagTree(width, height);
  39234. precinct.inclusionTree = inclusionTree;
  39235. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  39236. }
  39237. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  39238. while (true) {
  39239. if (readBits(1)) {
  39240. valueReady = !inclusionTree.nextLevel();
  39241. if (valueReady) {
  39242. codeblock.included = true;
  39243. codeblockIncluded = firstTimeInclusion = true;
  39244. break;
  39245. }
  39246. } else {
  39247. inclusionTree.incrementValue(layerNumber);
  39248. break;
  39249. }
  39250. }
  39251. }
  39252. }
  39253. if (!codeblockIncluded) {
  39254. continue;
  39255. }
  39256. if (firstTimeInclusion) {
  39257. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  39258. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  39259. while (true) {
  39260. if (readBits(1)) {
  39261. valueReady = !zeroBitPlanesTree.nextLevel();
  39262. if (valueReady) {
  39263. break;
  39264. }
  39265. } else {
  39266. zeroBitPlanesTree.incrementValue();
  39267. }
  39268. }
  39269. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  39270. }
  39271. var codingpasses = readCodingpasses();
  39272. while (readBits(1)) {
  39273. codeblock.Lblock++;
  39274. }
  39275. var codingpassesLog2 = log2(codingpasses);
  39276. // rounding down log2
  39277. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  39278. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  39279. var codedDataLength = readBits(bits);
  39280. queue.push({
  39281. codeblock: codeblock,
  39282. codingpasses: codingpasses,
  39283. dataLength: codedDataLength
  39284. });
  39285. }
  39286. alignToByte();
  39287. while (queue.length > 0) {
  39288. var packetItem = queue.shift();
  39289. codeblock = packetItem.codeblock;
  39290. if (!('data' in codeblock)) {
  39291. codeblock.data = [];
  39292. }
  39293. codeblock.data.push({
  39294. data: data,
  39295. start: offset + position,
  39296. end: offset + position + packetItem.dataLength,
  39297. codingpasses: packetItem.codingpasses
  39298. });
  39299. position += packetItem.dataLength;
  39300. }
  39301. }
  39302. return position;
  39303. }
  39304. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  39305. delta, mb, reversible, segmentationSymbolUsed) {
  39306. var x0 = subband.tbx0;
  39307. var y0 = subband.tby0;
  39308. var width = subband.tbx1 - subband.tbx0;
  39309. var codeblocks = subband.codeblocks;
  39310. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  39311. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  39312. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  39313. var codeblock = codeblocks[i];
  39314. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  39315. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  39316. if (blockWidth === 0 || blockHeight === 0) {
  39317. continue;
  39318. }
  39319. if (!('data' in codeblock)) {
  39320. continue;
  39321. }
  39322. var bitModel, currentCodingpassType;
  39323. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  39324. codeblock.zeroBitPlanes, mb);
  39325. currentCodingpassType = 2; // first bit plane starts from cleanup
  39326. // collect data
  39327. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  39328. var j, jj, dataItem;
  39329. for (j = 0, jj = data.length; j < jj; j++) {
  39330. dataItem = data[j];
  39331. totalLength += dataItem.end - dataItem.start;
  39332. codingpasses += dataItem.codingpasses;
  39333. }
  39334. var encodedData = new Uint8Array(totalLength);
  39335. var position = 0;
  39336. for (j = 0, jj = data.length; j < jj; j++) {
  39337. dataItem = data[j];
  39338. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  39339. encodedData.set(chunk, position);
  39340. position += chunk.length;
  39341. }
  39342. // decoding the item
  39343. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  39344. bitModel.setDecoder(decoder);
  39345. for (j = 0; j < codingpasses; j++) {
  39346. switch (currentCodingpassType) {
  39347. case 0:
  39348. bitModel.runSignificancePropogationPass();
  39349. break;
  39350. case 1:
  39351. bitModel.runMagnitudeRefinementPass();
  39352. break;
  39353. case 2:
  39354. bitModel.runCleanupPass();
  39355. if (segmentationSymbolUsed) {
  39356. bitModel.checkSegmentationSymbol();
  39357. }
  39358. break;
  39359. }
  39360. currentCodingpassType = (currentCodingpassType + 1) % 3;
  39361. }
  39362. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  39363. var sign = bitModel.coefficentsSign;
  39364. var magnitude = bitModel.coefficentsMagnitude;
  39365. var bitsDecoded = bitModel.bitsDecoded;
  39366. var magnitudeCorrection = reversible ? 0 : 0.5;
  39367. var k, n, nb;
  39368. position = 0;
  39369. // Do the interleaving of Section F.3.3 here, so we do not need
  39370. // to copy later. LL level is not interleaved, just copied.
  39371. var interleave = (subband.type !== 'LL');
  39372. for (j = 0; j < blockHeight; j++) {
  39373. var row = (offset / width) | 0; // row in the non-interleaved subband
  39374. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  39375. for (k = 0; k < blockWidth; k++) {
  39376. n = magnitude[position];
  39377. if (n !== 0) {
  39378. n = (n + magnitudeCorrection) * delta;
  39379. if (sign[position] !== 0) {
  39380. n = -n;
  39381. }
  39382. nb = bitsDecoded[position];
  39383. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  39384. if (reversible && (nb >= mb)) {
  39385. coefficients[pos] = n;
  39386. } else {
  39387. coefficients[pos] = n * (1 << (mb - nb));
  39388. }
  39389. }
  39390. offset++;
  39391. position++;
  39392. }
  39393. offset += width - blockWidth;
  39394. }
  39395. }
  39396. }
  39397. function transformTile(context, tile, c) {
  39398. var component = tile.components[c];
  39399. var codingStyleParameters = component.codingStyleParameters;
  39400. var quantizationParameters = component.quantizationParameters;
  39401. var decompositionLevelsCount =
  39402. codingStyleParameters.decompositionLevelsCount;
  39403. var spqcds = quantizationParameters.SPqcds;
  39404. var scalarExpounded = quantizationParameters.scalarExpounded;
  39405. var guardBits = quantizationParameters.guardBits;
  39406. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  39407. var precision = context.components[c].precision;
  39408. var reversible = codingStyleParameters.reversibleTransformation;
  39409. var transform = (reversible ? new ReversibleTransform() :
  39410. new IrreversibleTransform());
  39411. var subbandCoefficients = [];
  39412. var b = 0;
  39413. for (var i = 0; i <= decompositionLevelsCount; i++) {
  39414. var resolution = component.resolutions[i];
  39415. var width = resolution.trx1 - resolution.trx0;
  39416. var height = resolution.try1 - resolution.try0;
  39417. // Allocate space for the whole sublevel.
  39418. var coefficients = new Float32Array(width * height);
  39419. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  39420. var mu, epsilon;
  39421. if (!scalarExpounded) {
  39422. // formula E-5
  39423. mu = spqcds[0].mu;
  39424. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  39425. } else {
  39426. mu = spqcds[b].mu;
  39427. epsilon = spqcds[b].epsilon;
  39428. b++;
  39429. }
  39430. var subband = resolution.subbands[j];
  39431. var gainLog2 = SubbandsGainLog2[subband.type];
  39432. // calulate quantization coefficient (Section E.1.1.1)
  39433. var delta = (reversible ? 1 :
  39434. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  39435. var mb = (guardBits + epsilon - 1);
  39436. // In the first resolution level, copyCoefficients will fill the
  39437. // whole array with coefficients. In the succeding passes,
  39438. // copyCoefficients will consecutively fill in the values that belong
  39439. // to the interleaved positions of the HL, LH, and HH coefficients.
  39440. // The LL coefficients will then be interleaved in Transform.iterate().
  39441. copyCoefficients(coefficients, width, height, subband, delta, mb,
  39442. reversible, segmentationSymbolUsed);
  39443. }
  39444. subbandCoefficients.push({
  39445. width: width,
  39446. height: height,
  39447. items: coefficients
  39448. });
  39449. }
  39450. var result = transform.calculate(subbandCoefficients,
  39451. component.tcx0, component.tcy0);
  39452. return {
  39453. left: component.tcx0,
  39454. top: component.tcy0,
  39455. width: result.width,
  39456. height: result.height,
  39457. items: result.items
  39458. };
  39459. }
  39460. function transformComponents(context) {
  39461. var siz = context.SIZ;
  39462. var components = context.components;
  39463. var componentsCount = siz.Csiz;
  39464. var resultImages = [];
  39465. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  39466. var tile = context.tiles[i];
  39467. var transformedTiles = [];
  39468. var c;
  39469. for (c = 0; c < componentsCount; c++) {
  39470. transformedTiles[c] = transformTile(context, tile, c);
  39471. }
  39472. var tile0 = transformedTiles[0];
  39473. var out = new Uint8Array(tile0.items.length * componentsCount);
  39474. var result = {
  39475. left: tile0.left,
  39476. top: tile0.top,
  39477. width: tile0.width,
  39478. height: tile0.height,
  39479. items: out
  39480. };
  39481. // Section G.2.2 Inverse multi component transform
  39482. var shift, offset, max, min, maxK;
  39483. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  39484. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  39485. var fourComponents = componentsCount === 4;
  39486. var y0items = transformedTiles[0].items;
  39487. var y1items = transformedTiles[1].items;
  39488. var y2items = transformedTiles[2].items;
  39489. var y3items = fourComponents ? transformedTiles[3].items : null;
  39490. // HACK: The multiple component transform formulas below assume that
  39491. // all components have the same precision. With this in mind, we
  39492. // compute shift and offset only once.
  39493. shift = components[0].precision - 8;
  39494. offset = (128 << shift) + 0.5;
  39495. max = 255 * (1 << shift);
  39496. maxK = max * 0.5;
  39497. min = -maxK;
  39498. var component0 = tile.components[0];
  39499. var alpha01 = componentsCount - 3;
  39500. jj = y0items.length;
  39501. if (!component0.codingStyleParameters.reversibleTransformation) {
  39502. // inverse irreversible multiple component transform
  39503. for (j = 0; j < jj; j++, pos += alpha01) {
  39504. y0 = y0items[j] + offset;
  39505. y1 = y1items[j];
  39506. y2 = y2items[j];
  39507. r = y0 + 1.402 * y2;
  39508. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  39509. b = y0 + 1.772 * y1;
  39510. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39511. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39512. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39513. }
  39514. } else {
  39515. // inverse reversible multiple component transform
  39516. for (j = 0; j < jj; j++, pos += alpha01) {
  39517. y0 = y0items[j] + offset;
  39518. y1 = y1items[j];
  39519. y2 = y2items[j];
  39520. g = y0 - ((y2 + y1) >> 2);
  39521. r = g + y2;
  39522. b = g + y1;
  39523. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39524. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39525. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39526. }
  39527. }
  39528. if (fourComponents) {
  39529. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  39530. k = y3items[j];
  39531. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  39532. }
  39533. }
  39534. } else { // no multi-component transform
  39535. for (c = 0; c < componentsCount; c++) {
  39536. var items = transformedTiles[c].items;
  39537. shift = components[c].precision - 8;
  39538. offset = (128 << shift) + 0.5;
  39539. max = (127.5 * (1 << shift));
  39540. min = -max;
  39541. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  39542. val = items[j];
  39543. out[pos] = val <= min ? 0 :
  39544. val >= max ? 255 : (val + offset) >> shift;
  39545. pos += componentsCount;
  39546. }
  39547. }
  39548. }
  39549. resultImages.push(result);
  39550. }
  39551. return resultImages;
  39552. }
  39553. function initializeTile(context, tileIndex) {
  39554. var siz = context.SIZ;
  39555. var componentsCount = siz.Csiz;
  39556. var tile = context.tiles[tileIndex];
  39557. for (var c = 0; c < componentsCount; c++) {
  39558. var component = tile.components[c];
  39559. var qcdOrQcc = (c in context.currentTile.QCC ?
  39560. context.currentTile.QCC[c] : context.currentTile.QCD);
  39561. component.quantizationParameters = qcdOrQcc;
  39562. var codOrCoc = (c in context.currentTile.COC ?
  39563. context.currentTile.COC[c] : context.currentTile.COD);
  39564. component.codingStyleParameters = codOrCoc;
  39565. }
  39566. tile.codingStyleDefaultParameters = context.currentTile.COD;
  39567. }
  39568. // Section B.10.2 Tag trees
  39569. var TagTree = (function TagTreeClosure() {
  39570. function TagTree(width, height) {
  39571. var levelsLength = log2(Math.max(width, height)) + 1;
  39572. this.levels = [];
  39573. for (var i = 0; i < levelsLength; i++) {
  39574. var level = {
  39575. width: width,
  39576. height: height,
  39577. items: []
  39578. };
  39579. this.levels.push(level);
  39580. width = Math.ceil(width / 2);
  39581. height = Math.ceil(height / 2);
  39582. }
  39583. }
  39584. TagTree.prototype = {
  39585. reset: function TagTree_reset(i, j) {
  39586. var currentLevel = 0, value = 0, level;
  39587. while (currentLevel < this.levels.length) {
  39588. level = this.levels[currentLevel];
  39589. var index = i + j * level.width;
  39590. if (index in level.items) {
  39591. value = level.items[index];
  39592. break;
  39593. }
  39594. level.index = index;
  39595. i >>= 1;
  39596. j >>= 1;
  39597. currentLevel++;
  39598. }
  39599. currentLevel--;
  39600. level = this.levels[currentLevel];
  39601. level.items[level.index] = value;
  39602. this.currentLevel = currentLevel;
  39603. delete this.value;
  39604. },
  39605. incrementValue: function TagTree_incrementValue() {
  39606. var level = this.levels[this.currentLevel];
  39607. level.items[level.index]++;
  39608. },
  39609. nextLevel: function TagTree_nextLevel() {
  39610. var currentLevel = this.currentLevel;
  39611. var level = this.levels[currentLevel];
  39612. var value = level.items[level.index];
  39613. currentLevel--;
  39614. if (currentLevel < 0) {
  39615. this.value = value;
  39616. return false;
  39617. }
  39618. this.currentLevel = currentLevel;
  39619. level = this.levels[currentLevel];
  39620. level.items[level.index] = value;
  39621. return true;
  39622. }
  39623. };
  39624. return TagTree;
  39625. })();
  39626. var InclusionTree = (function InclusionTreeClosure() {
  39627. function InclusionTree(width, height, defaultValue) {
  39628. var levelsLength = log2(Math.max(width, height)) + 1;
  39629. this.levels = [];
  39630. for (var i = 0; i < levelsLength; i++) {
  39631. var items = new Uint8Array(width * height);
  39632. for (var j = 0, jj = items.length; j < jj; j++) {
  39633. items[j] = defaultValue;
  39634. }
  39635. var level = {
  39636. width: width,
  39637. height: height,
  39638. items: items
  39639. };
  39640. this.levels.push(level);
  39641. width = Math.ceil(width / 2);
  39642. height = Math.ceil(height / 2);
  39643. }
  39644. }
  39645. InclusionTree.prototype = {
  39646. reset: function InclusionTree_reset(i, j, stopValue) {
  39647. var currentLevel = 0;
  39648. while (currentLevel < this.levels.length) {
  39649. var level = this.levels[currentLevel];
  39650. var index = i + j * level.width;
  39651. level.index = index;
  39652. var value = level.items[index];
  39653. if (value == 0xFF) {
  39654. break;
  39655. }
  39656. if (value > stopValue) {
  39657. this.currentLevel = currentLevel;
  39658. // already know about this one, propagating the value to top levels
  39659. this.propagateValues();
  39660. return false;
  39661. }
  39662. i >>= 1;
  39663. j >>= 1;
  39664. currentLevel++;
  39665. }
  39666. this.currentLevel = currentLevel - 1;
  39667. return true;
  39668. },
  39669. incrementValue: function InclusionTree_incrementValue(stopValue) {
  39670. var level = this.levels[this.currentLevel];
  39671. level.items[level.index] = stopValue + 1;
  39672. this.propagateValues();
  39673. },
  39674. propagateValues: function InclusionTree_propagateValues() {
  39675. var levelIndex = this.currentLevel;
  39676. var level = this.levels[levelIndex];
  39677. var currentValue = level.items[level.index];
  39678. while (--levelIndex >= 0) {
  39679. level = this.levels[levelIndex];
  39680. level.items[level.index] = currentValue;
  39681. }
  39682. },
  39683. nextLevel: function InclusionTree_nextLevel() {
  39684. var currentLevel = this.currentLevel;
  39685. var level = this.levels[currentLevel];
  39686. var value = level.items[level.index];
  39687. level.items[level.index] = 0xFF;
  39688. currentLevel--;
  39689. if (currentLevel < 0) {
  39690. return false;
  39691. }
  39692. this.currentLevel = currentLevel;
  39693. level = this.levels[currentLevel];
  39694. level.items[level.index] = value;
  39695. return true;
  39696. }
  39697. };
  39698. return InclusionTree;
  39699. })();
  39700. // Section D. Coefficient bit modeling
  39701. var BitModel = (function BitModelClosure() {
  39702. var UNIFORM_CONTEXT = 17;
  39703. var RUNLENGTH_CONTEXT = 18;
  39704. // Table D-1
  39705. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  39706. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  39707. var LLAndLHContextsLabel = new Uint8Array([
  39708. 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,
  39709. 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,
  39710. 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
  39711. ]);
  39712. var HLContextLabel = new Uint8Array([
  39713. 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,
  39714. 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,
  39715. 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
  39716. ]);
  39717. var HHContextLabel = new Uint8Array([
  39718. 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,
  39719. 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,
  39720. 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
  39721. ]);
  39722. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  39723. this.width = width;
  39724. this.height = height;
  39725. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  39726. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  39727. var coefficientCount = width * height;
  39728. // coefficients outside the encoding region treated as insignificant
  39729. // add border state cells for significanceState
  39730. this.neighborsSignificance = new Uint8Array(coefficientCount);
  39731. this.coefficentsSign = new Uint8Array(coefficientCount);
  39732. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  39733. mb > 6 ? new Uint16Array(coefficientCount) :
  39734. new Uint8Array(coefficientCount);
  39735. this.processingFlags = new Uint8Array(coefficientCount);
  39736. var bitsDecoded = new Uint8Array(coefficientCount);
  39737. if (zeroBitPlanes !== 0) {
  39738. for (var i = 0; i < coefficientCount; i++) {
  39739. bitsDecoded[i] = zeroBitPlanes;
  39740. }
  39741. }
  39742. this.bitsDecoded = bitsDecoded;
  39743. this.reset();
  39744. }
  39745. BitModel.prototype = {
  39746. setDecoder: function BitModel_setDecoder(decoder) {
  39747. this.decoder = decoder;
  39748. },
  39749. reset: function BitModel_reset() {
  39750. // We have 17 contexts that are accessed via context labels,
  39751. // plus the uniform and runlength context.
  39752. this.contexts = new Int8Array(19);
  39753. // Contexts are packed into 1 byte:
  39754. // highest 7 bits carry the index, lowest bit carries mps
  39755. this.contexts[0] = (4 << 1) | 0;
  39756. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  39757. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  39758. },
  39759. setNeighborsSignificance:
  39760. function BitModel_setNeighborsSignificance(row, column, index) {
  39761. var neighborsSignificance = this.neighborsSignificance;
  39762. var width = this.width, height = this.height;
  39763. var left = (column > 0);
  39764. var right = (column + 1 < width);
  39765. var i;
  39766. if (row > 0) {
  39767. i = index - width;
  39768. if (left) {
  39769. neighborsSignificance[i - 1] += 0x10;
  39770. }
  39771. if (right) {
  39772. neighborsSignificance[i + 1] += 0x10;
  39773. }
  39774. neighborsSignificance[i] += 0x04;
  39775. }
  39776. if (row + 1 < height) {
  39777. i = index + width;
  39778. if (left) {
  39779. neighborsSignificance[i - 1] += 0x10;
  39780. }
  39781. if (right) {
  39782. neighborsSignificance[i + 1] += 0x10;
  39783. }
  39784. neighborsSignificance[i] += 0x04;
  39785. }
  39786. if (left) {
  39787. neighborsSignificance[index - 1] += 0x01;
  39788. }
  39789. if (right) {
  39790. neighborsSignificance[index + 1] += 0x01;
  39791. }
  39792. neighborsSignificance[index] |= 0x80;
  39793. },
  39794. runSignificancePropogationPass:
  39795. function BitModel_runSignificancePropogationPass() {
  39796. var decoder = this.decoder;
  39797. var width = this.width, height = this.height;
  39798. var coefficentsMagnitude = this.coefficentsMagnitude;
  39799. var coefficentsSign = this.coefficentsSign;
  39800. var neighborsSignificance = this.neighborsSignificance;
  39801. var processingFlags = this.processingFlags;
  39802. var contexts = this.contexts;
  39803. var labels = this.contextLabelTable;
  39804. var bitsDecoded = this.bitsDecoded;
  39805. var processedInverseMask = ~1;
  39806. var processedMask = 1;
  39807. var firstMagnitudeBitMask = 2;
  39808. for (var i0 = 0; i0 < height; i0 += 4) {
  39809. for (var j = 0; j < width; j++) {
  39810. var index = i0 * width + j;
  39811. for (var i1 = 0; i1 < 4; i1++, index += width) {
  39812. var i = i0 + i1;
  39813. if (i >= height) {
  39814. break;
  39815. }
  39816. // clear processed flag first
  39817. processingFlags[index] &= processedInverseMask;
  39818. if (coefficentsMagnitude[index] ||
  39819. !neighborsSignificance[index]) {
  39820. continue;
  39821. }
  39822. var contextLabel = labels[neighborsSignificance[index]];
  39823. var decision = decoder.readBit(contexts, contextLabel);
  39824. if (decision) {
  39825. var sign = this.decodeSignBit(i, j, index);
  39826. coefficentsSign[index] = sign;
  39827. coefficentsMagnitude[index] = 1;
  39828. this.setNeighborsSignificance(i, j, index);
  39829. processingFlags[index] |= firstMagnitudeBitMask;
  39830. }
  39831. bitsDecoded[index]++;
  39832. processingFlags[index] |= processedMask;
  39833. }
  39834. }
  39835. }
  39836. },
  39837. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  39838. var width = this.width, height = this.height;
  39839. var coefficentsMagnitude = this.coefficentsMagnitude;
  39840. var coefficentsSign = this.coefficentsSign;
  39841. var contribution, sign0, sign1, significance1;
  39842. var contextLabel, decoded;
  39843. // calculate horizontal contribution
  39844. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  39845. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  39846. sign1 = coefficentsSign[index + 1];
  39847. if (significance1) {
  39848. sign0 = coefficentsSign[index - 1];
  39849. contribution = 1 - sign1 - sign0;
  39850. } else {
  39851. contribution = 1 - sign1 - sign1;
  39852. }
  39853. } else if (significance1) {
  39854. sign0 = coefficentsSign[index - 1];
  39855. contribution = 1 - sign0 - sign0;
  39856. } else {
  39857. contribution = 0;
  39858. }
  39859. var horizontalContribution = 3 * contribution;
  39860. // calculate vertical contribution and combine with the horizontal
  39861. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  39862. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  39863. sign1 = coefficentsSign[index + width];
  39864. if (significance1) {
  39865. sign0 = coefficentsSign[index - width];
  39866. contribution = 1 - sign1 - sign0 + horizontalContribution;
  39867. } else {
  39868. contribution = 1 - sign1 - sign1 + horizontalContribution;
  39869. }
  39870. } else if (significance1) {
  39871. sign0 = coefficentsSign[index - width];
  39872. contribution = 1 - sign0 - sign0 + horizontalContribution;
  39873. } else {
  39874. contribution = horizontalContribution;
  39875. }
  39876. if (contribution >= 0) {
  39877. contextLabel = 9 + contribution;
  39878. decoded = this.decoder.readBit(this.contexts, contextLabel);
  39879. } else {
  39880. contextLabel = 9 - contribution;
  39881. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  39882. }
  39883. return decoded;
  39884. },
  39885. runMagnitudeRefinementPass:
  39886. function BitModel_runMagnitudeRefinementPass() {
  39887. var decoder = this.decoder;
  39888. var width = this.width, height = this.height;
  39889. var coefficentsMagnitude = this.coefficentsMagnitude;
  39890. var neighborsSignificance = this.neighborsSignificance;
  39891. var contexts = this.contexts;
  39892. var bitsDecoded = this.bitsDecoded;
  39893. var processingFlags = this.processingFlags;
  39894. var processedMask = 1;
  39895. var firstMagnitudeBitMask = 2;
  39896. var length = width * height;
  39897. var width4 = width * 4;
  39898. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  39899. indexNext = Math.min(length, index0 + width4);
  39900. for (var j = 0; j < width; j++) {
  39901. for (var index = index0 + j; index < indexNext; index += width) {
  39902. // significant but not those that have just become
  39903. if (!coefficentsMagnitude[index] ||
  39904. (processingFlags[index] & processedMask) !== 0) {
  39905. continue;
  39906. }
  39907. var contextLabel = 16;
  39908. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  39909. processingFlags[index] ^= firstMagnitudeBitMask;
  39910. // first refinement
  39911. var significance = neighborsSignificance[index] & 127;
  39912. contextLabel = significance === 0 ? 15 : 14;
  39913. }
  39914. var bit = decoder.readBit(contexts, contextLabel);
  39915. coefficentsMagnitude[index] =
  39916. (coefficentsMagnitude[index] << 1) | bit;
  39917. bitsDecoded[index]++;
  39918. processingFlags[index] |= processedMask;
  39919. }
  39920. }
  39921. }
  39922. },
  39923. runCleanupPass: function BitModel_runCleanupPass() {
  39924. var decoder = this.decoder;
  39925. var width = this.width, height = this.height;
  39926. var neighborsSignificance = this.neighborsSignificance;
  39927. var coefficentsMagnitude = this.coefficentsMagnitude;
  39928. var coefficentsSign = this.coefficentsSign;
  39929. var contexts = this.contexts;
  39930. var labels = this.contextLabelTable;
  39931. var bitsDecoded = this.bitsDecoded;
  39932. var processingFlags = this.processingFlags;
  39933. var processedMask = 1;
  39934. var firstMagnitudeBitMask = 2;
  39935. var oneRowDown = width;
  39936. var twoRowsDown = width * 2;
  39937. var threeRowsDown = width * 3;
  39938. var iNext;
  39939. for (var i0 = 0; i0 < height; i0 = iNext) {
  39940. iNext = Math.min(i0 + 4, height);
  39941. var indexBase = i0 * width;
  39942. var checkAllEmpty = i0 + 3 < height;
  39943. for (var j = 0; j < width; j++) {
  39944. var index0 = indexBase + j;
  39945. // using the property: labels[neighborsSignificance[index]] == 0
  39946. // when neighborsSignificance[index] == 0
  39947. var allEmpty = (checkAllEmpty &&
  39948. processingFlags[index0] === 0 &&
  39949. processingFlags[index0 + oneRowDown] === 0 &&
  39950. processingFlags[index0 + twoRowsDown] === 0 &&
  39951. processingFlags[index0 + threeRowsDown] === 0 &&
  39952. neighborsSignificance[index0] === 0 &&
  39953. neighborsSignificance[index0 + oneRowDown] === 0 &&
  39954. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  39955. neighborsSignificance[index0 + threeRowsDown] === 0);
  39956. var i1 = 0, index = index0;
  39957. var i = i0, sign;
  39958. if (allEmpty) {
  39959. var hasSignificantCoefficent =
  39960. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  39961. if (!hasSignificantCoefficent) {
  39962. bitsDecoded[index0]++;
  39963. bitsDecoded[index0 + oneRowDown]++;
  39964. bitsDecoded[index0 + twoRowsDown]++;
  39965. bitsDecoded[index0 + threeRowsDown]++;
  39966. continue; // next column
  39967. }
  39968. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  39969. decoder.readBit(contexts, UNIFORM_CONTEXT);
  39970. if (i1 !== 0) {
  39971. i = i0 + i1;
  39972. index += i1 * width;
  39973. }
  39974. sign = this.decodeSignBit(i, j, index);
  39975. coefficentsSign[index] = sign;
  39976. coefficentsMagnitude[index] = 1;
  39977. this.setNeighborsSignificance(i, j, index);
  39978. processingFlags[index] |= firstMagnitudeBitMask;
  39979. index = index0;
  39980. for (var i2 = i0; i2 <= i; i2++, index += width) {
  39981. bitsDecoded[index]++;
  39982. }
  39983. i1++;
  39984. }
  39985. for (i = i0 + i1; i < iNext; i++, index += width) {
  39986. if (coefficentsMagnitude[index] ||
  39987. (processingFlags[index] & processedMask) !== 0) {
  39988. continue;
  39989. }
  39990. var contextLabel = labels[neighborsSignificance[index]];
  39991. var decision = decoder.readBit(contexts, contextLabel);
  39992. if (decision === 1) {
  39993. sign = this.decodeSignBit(i, j, index);
  39994. coefficentsSign[index] = sign;
  39995. coefficentsMagnitude[index] = 1;
  39996. this.setNeighborsSignificance(i, j, index);
  39997. processingFlags[index] |= firstMagnitudeBitMask;
  39998. }
  39999. bitsDecoded[index]++;
  40000. }
  40001. }
  40002. }
  40003. },
  40004. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  40005. var decoder = this.decoder;
  40006. var contexts = this.contexts;
  40007. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  40008. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  40009. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  40010. decoder.readBit(contexts, UNIFORM_CONTEXT);
  40011. if (symbol != 0xA) {
  40012. throw new Error('JPX Error: Invalid segmentation symbol');
  40013. }
  40014. }
  40015. };
  40016. return BitModel;
  40017. })();
  40018. // Section F, Discrete wavelet transformation
  40019. var Transform = (function TransformClosure() {
  40020. function Transform() {}
  40021. Transform.prototype.calculate =
  40022. function transformCalculate(subbands, u0, v0) {
  40023. var ll = subbands[0];
  40024. for (var i = 1, ii = subbands.length; i < ii; i++) {
  40025. ll = this.iterate(ll, subbands[i], u0, v0);
  40026. }
  40027. return ll;
  40028. };
  40029. Transform.prototype.extend = function extend(buffer, offset, size) {
  40030. // Section F.3.7 extending... using max extension of 4
  40031. var i1 = offset - 1, j1 = offset + 1;
  40032. var i2 = offset + size - 2, j2 = offset + size;
  40033. buffer[i1--] = buffer[j1++];
  40034. buffer[j2++] = buffer[i2--];
  40035. buffer[i1--] = buffer[j1++];
  40036. buffer[j2++] = buffer[i2--];
  40037. buffer[i1--] = buffer[j1++];
  40038. buffer[j2++] = buffer[i2--];
  40039. buffer[i1] = buffer[j1];
  40040. buffer[j2] = buffer[i2];
  40041. };
  40042. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  40043. u0, v0) {
  40044. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  40045. var width = hl_lh_hh.width;
  40046. var height = hl_lh_hh.height;
  40047. var items = hl_lh_hh.items;
  40048. var i, j, k, l, u, v;
  40049. // Interleave LL according to Section F.3.3
  40050. for (k = 0, i = 0; i < llHeight; i++) {
  40051. l = i * 2 * width;
  40052. for (j = 0; j < llWidth; j++, k++, l += 2) {
  40053. items[l] = llItems[k];
  40054. }
  40055. }
  40056. // The LL band is not needed anymore.
  40057. llItems = ll.items = null;
  40058. var bufferPadding = 4;
  40059. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  40060. // Section F.3.4 HOR_SR
  40061. if (width === 1) {
  40062. // if width = 1, when u0 even keep items as is, when odd divide by 2
  40063. if ((u0 & 1) !== 0) {
  40064. for (v = 0, k = 0; v < height; v++, k += width) {
  40065. items[k] *= 0.5;
  40066. }
  40067. }
  40068. } else {
  40069. for (v = 0, k = 0; v < height; v++, k += width) {
  40070. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  40071. this.extend(rowBuffer, bufferPadding, width);
  40072. this.filter(rowBuffer, bufferPadding, width);
  40073. items.set(
  40074. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  40075. k);
  40076. }
  40077. }
  40078. // Accesses to the items array can take long, because it may not fit into
  40079. // CPU cache and has to be fetched from main memory. Since subsequent
  40080. // accesses to the items array are not local when reading columns, we
  40081. // have a cache miss every time. To reduce cache misses, get up to
  40082. // 'numBuffers' items at a time and store them into the individual
  40083. // buffers. The colBuffers should be small enough to fit into CPU cache.
  40084. var numBuffers = 16;
  40085. var colBuffers = [];
  40086. for (i = 0; i < numBuffers; i++) {
  40087. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  40088. }
  40089. var b, currentBuffer = 0;
  40090. ll = bufferPadding + height;
  40091. // Section F.3.5 VER_SR
  40092. if (height === 1) {
  40093. // if height = 1, when v0 even keep items as is, when odd divide by 2
  40094. if ((v0 & 1) !== 0) {
  40095. for (u = 0; u < width; u++) {
  40096. items[u] *= 0.5;
  40097. }
  40098. }
  40099. } else {
  40100. for (u = 0; u < width; u++) {
  40101. // if we ran out of buffers, copy several image columns at once
  40102. if (currentBuffer === 0) {
  40103. numBuffers = Math.min(width - u, numBuffers);
  40104. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  40105. for (b = 0; b < numBuffers; b++) {
  40106. colBuffers[b][l] = items[k + b];
  40107. }
  40108. }
  40109. currentBuffer = numBuffers;
  40110. }
  40111. currentBuffer--;
  40112. var buffer = colBuffers[currentBuffer];
  40113. this.extend(buffer, bufferPadding, height);
  40114. this.filter(buffer, bufferPadding, height);
  40115. // If this is last buffer in this group of buffers, flush all buffers.
  40116. if (currentBuffer === 0) {
  40117. k = u - numBuffers + 1;
  40118. for (l = bufferPadding; l < ll; k += width, l++) {
  40119. for (b = 0; b < numBuffers; b++) {
  40120. items[k + b] = colBuffers[b][l];
  40121. }
  40122. }
  40123. }
  40124. }
  40125. }
  40126. return {
  40127. width: width,
  40128. height: height,
  40129. items: items
  40130. };
  40131. };
  40132. return Transform;
  40133. })();
  40134. // Section 3.8.2 Irreversible 9-7 filter
  40135. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  40136. function IrreversibleTransform() {
  40137. Transform.call(this);
  40138. }
  40139. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  40140. IrreversibleTransform.prototype.filter =
  40141. function irreversibleTransformFilter(x, offset, length) {
  40142. var len = length >> 1;
  40143. offset = offset | 0;
  40144. var j, n, current, next;
  40145. var alpha = -1.586134342059924;
  40146. var beta = -0.052980118572961;
  40147. var gamma = 0.882911075530934;
  40148. var delta = 0.443506852043971;
  40149. var K = 1.230174104914001;
  40150. var K_ = 1 / K;
  40151. // step 1 is combined with step 3
  40152. // step 2
  40153. j = offset - 3;
  40154. for (n = len + 4; n--; j += 2) {
  40155. x[j] *= K_;
  40156. }
  40157. // step 1 & 3
  40158. j = offset - 2;
  40159. current = delta * x[j -1];
  40160. for (n = len + 3; n--; j += 2) {
  40161. next = delta * x[j + 1];
  40162. x[j] = K * x[j] - current - next;
  40163. if (n--) {
  40164. j += 2;
  40165. current = delta * x[j + 1];
  40166. x[j] = K * x[j] - current - next;
  40167. } else {
  40168. break;
  40169. }
  40170. }
  40171. // step 4
  40172. j = offset - 1;
  40173. current = gamma * x[j - 1];
  40174. for (n = len + 2; n--; j += 2) {
  40175. next = gamma * x[j + 1];
  40176. x[j] -= current + next;
  40177. if (n--) {
  40178. j += 2;
  40179. current = gamma * x[j + 1];
  40180. x[j] -= current + next;
  40181. } else {
  40182. break;
  40183. }
  40184. }
  40185. // step 5
  40186. j = offset;
  40187. current = beta * x[j - 1];
  40188. for (n = len + 1; n--; j += 2) {
  40189. next = beta * x[j + 1];
  40190. x[j] -= current + next;
  40191. if (n--) {
  40192. j += 2;
  40193. current = beta * x[j + 1];
  40194. x[j] -= current + next;
  40195. } else {
  40196. break;
  40197. }
  40198. }
  40199. // step 6
  40200. if (len !== 0) {
  40201. j = offset + 1;
  40202. current = alpha * x[j - 1];
  40203. for (n = len; n--; j += 2) {
  40204. next = alpha * x[j + 1];
  40205. x[j] -= current + next;
  40206. if (n--) {
  40207. j += 2;
  40208. current = alpha * x[j + 1];
  40209. x[j] -= current + next;
  40210. } else {
  40211. break;
  40212. }
  40213. }
  40214. }
  40215. };
  40216. return IrreversibleTransform;
  40217. })();
  40218. // Section 3.8.1 Reversible 5-3 filter
  40219. var ReversibleTransform = (function ReversibleTransformClosure() {
  40220. function ReversibleTransform() {
  40221. Transform.call(this);
  40222. }
  40223. ReversibleTransform.prototype = Object.create(Transform.prototype);
  40224. ReversibleTransform.prototype.filter =
  40225. function reversibleTransformFilter(x, offset, length) {
  40226. var len = length >> 1;
  40227. offset = offset | 0;
  40228. var j, n;
  40229. for (j = offset, n = len + 1; n--; j += 2) {
  40230. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  40231. }
  40232. for (j = offset + 1, n = len; n--; j += 2) {
  40233. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  40234. }
  40235. };
  40236. return ReversibleTransform;
  40237. })();
  40238. return JpxImage;
  40239. })();
  40240. var Jbig2Image = (function Jbig2ImageClosure() {
  40241. // Utility data structures
  40242. function ContextCache() {}
  40243. ContextCache.prototype = {
  40244. getContexts: function(id) {
  40245. if (id in this) {
  40246. return this[id];
  40247. }
  40248. return (this[id] = new Int8Array(1 << 16));
  40249. }
  40250. };
  40251. function DecodingContext(data, start, end) {
  40252. this.data = data;
  40253. this.start = start;
  40254. this.end = end;
  40255. }
  40256. DecodingContext.prototype = {
  40257. get decoder() {
  40258. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  40259. return shadow(this, 'decoder', decoder);
  40260. },
  40261. get contextCache() {
  40262. var cache = new ContextCache();
  40263. return shadow(this, 'contextCache', cache);
  40264. }
  40265. };
  40266. // Annex A. Arithmetic Integer Decoding Procedure
  40267. // A.2 Procedure for decoding values
  40268. function decodeInteger(contextCache, procedure, decoder) {
  40269. var contexts = contextCache.getContexts(procedure);
  40270. var prev = 1;
  40271. function readBits(length) {
  40272. var v = 0;
  40273. for (var i = 0; i < length; i++) {
  40274. var bit = decoder.readBit(contexts, prev);
  40275. prev = (prev < 256 ? (prev << 1) | bit :
  40276. (((prev << 1) | bit) & 511) | 256);
  40277. v = (v << 1) | bit;
  40278. }
  40279. return v >>> 0;
  40280. }
  40281. var sign = readBits(1);
  40282. var value = readBits(1) ?
  40283. (readBits(1) ?
  40284. (readBits(1) ?
  40285. (readBits(1) ?
  40286. (readBits(1) ?
  40287. (readBits(32) + 4436) :
  40288. readBits(12) + 340) :
  40289. readBits(8) + 84) :
  40290. readBits(6) + 20) :
  40291. readBits(4) + 4) :
  40292. readBits(2);
  40293. return (sign === 0 ? value : (value > 0 ? -value : null));
  40294. }
  40295. // A.3 The IAID decoding procedure
  40296. function decodeIAID(contextCache, decoder, codeLength) {
  40297. var contexts = contextCache.getContexts('IAID');
  40298. var prev = 1;
  40299. for (var i = 0; i < codeLength; i++) {
  40300. var bit = decoder.readBit(contexts, prev);
  40301. prev = (prev << 1) | bit;
  40302. }
  40303. if (codeLength < 31) {
  40304. return prev & ((1 << codeLength) - 1);
  40305. }
  40306. return prev & 0x7FFFFFFF;
  40307. }
  40308. // 7.3 Segment types
  40309. var SegmentTypes = [
  40310. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  40311. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  40312. null, null, null, null, null, 'patternDictionary', null, null, null,
  40313. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  40314. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  40315. null, null, null, null, null, 'IntermediateGenericRegion', null,
  40316. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  40317. 'IntermediateGenericRefinementRegion', null,
  40318. 'ImmediateGenericRefinementRegion',
  40319. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  40320. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  40321. 'Tables', null, null, null, null, null, null, null, null,
  40322. 'Extension'
  40323. ];
  40324. var CodingTemplates = [
  40325. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40326. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  40327. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40328. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  40329. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  40330. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40331. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40332. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  40333. {x: -1, y: 0}],
  40334. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  40335. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  40336. ];
  40337. var RefinementTemplates = [
  40338. {
  40339. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40340. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  40341. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  40342. },
  40343. {
  40344. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40345. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  40346. {x: 0, y: 1}, {x: 1, y: 1}]
  40347. }
  40348. ];
  40349. var ReusedContexts = [
  40350. 0x1CD3, // '00111001101' (template) + '0011' (at),
  40351. 0x079A, // '001111001101' + '0',
  40352. 0x00E3, // '001110001' + '1',
  40353. 0x018B // '011000101' + '1'
  40354. ];
  40355. var RefinementReusedContexts = [
  40356. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  40357. 0x0008 // '0000' + '001000'
  40358. ];
  40359. // 6.2 Generic Region Decoding Procedure
  40360. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  40361. decodingContext) {
  40362. if (mmr) {
  40363. error('JBIG2 error: MMR encoding is not supported');
  40364. }
  40365. var useskip = !!skip;
  40366. var template = CodingTemplates[templateIndex].concat(at);
  40367. // Sorting is non-standard, and it is not required. But sorting increases
  40368. // the number of template bits that can be reused from the previous
  40369. // contextLabel in the main loop.
  40370. template.sort(function (a, b) {
  40371. return (a.y - b.y) || (a.x - b.x);
  40372. });
  40373. var templateLength = template.length;
  40374. var templateX = new Int8Array(templateLength);
  40375. var templateY = new Int8Array(templateLength);
  40376. var changingTemplateEntries = [];
  40377. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  40378. var c, k;
  40379. for (k = 0; k < templateLength; k++) {
  40380. templateX[k] = template[k].x;
  40381. templateY[k] = template[k].y;
  40382. minX = Math.min(minX, template[k].x);
  40383. maxX = Math.max(maxX, template[k].x);
  40384. minY = Math.min(minY, template[k].y);
  40385. // Check if the template pixel appears in two consecutive context labels,
  40386. // so it can be reused. Otherwise, we add it to the list of changing
  40387. // template entries.
  40388. if (k < templateLength - 1 &&
  40389. template[k].y === template[k + 1].y &&
  40390. template[k].x === template[k + 1].x - 1) {
  40391. reuseMask |= 1 << (templateLength - 1 - k);
  40392. } else {
  40393. changingTemplateEntries.push(k);
  40394. }
  40395. }
  40396. var changingEntriesLength = changingTemplateEntries.length;
  40397. var changingTemplateX = new Int8Array(changingEntriesLength);
  40398. var changingTemplateY = new Int8Array(changingEntriesLength);
  40399. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  40400. for (c = 0; c < changingEntriesLength; c++) {
  40401. k = changingTemplateEntries[c];
  40402. changingTemplateX[c] = template[k].x;
  40403. changingTemplateY[c] = template[k].y;
  40404. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  40405. }
  40406. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  40407. var sbb_left = -minX;
  40408. var sbb_top = -minY;
  40409. var sbb_right = width - maxX;
  40410. var pseudoPixelContext = ReusedContexts[templateIndex];
  40411. var row = new Uint8Array(width);
  40412. var bitmap = [];
  40413. var decoder = decodingContext.decoder;
  40414. var contexts = decodingContext.contextCache.getContexts('GB');
  40415. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  40416. for (var i = 0; i < height; i++) {
  40417. if (prediction) {
  40418. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40419. ltp ^= sltp;
  40420. if (ltp) {
  40421. bitmap.push(row); // duplicate previous row
  40422. continue;
  40423. }
  40424. }
  40425. row = new Uint8Array(row);
  40426. bitmap.push(row);
  40427. for (j = 0; j < width; j++) {
  40428. if (useskip && skip[i][j]) {
  40429. row[j] = 0;
  40430. continue;
  40431. }
  40432. // Are we in the middle of a scanline, so we can reuse contextLabel
  40433. // bits?
  40434. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  40435. // If yes, we can just shift the bits that are reusable and only
  40436. // fetch the remaining ones.
  40437. contextLabel = (contextLabel << 1) & reuseMask;
  40438. for (k = 0; k < changingEntriesLength; k++) {
  40439. i0 = i + changingTemplateY[k];
  40440. j0 = j + changingTemplateX[k];
  40441. bit = bitmap[i0][j0];
  40442. if (bit) {
  40443. bit = changingTemplateBit[k];
  40444. contextLabel |= bit;
  40445. }
  40446. }
  40447. } else {
  40448. // compute the contextLabel from scratch
  40449. contextLabel = 0;
  40450. shift = templateLength - 1;
  40451. for (k = 0; k < templateLength; k++, shift--) {
  40452. j0 = j + templateX[k];
  40453. if (j0 >= 0 && j0 < width) {
  40454. i0 = i + templateY[k];
  40455. if (i0 >= 0) {
  40456. bit = bitmap[i0][j0];
  40457. if (bit) {
  40458. contextLabel |= bit << shift;
  40459. }
  40460. }
  40461. }
  40462. }
  40463. }
  40464. var pixel = decoder.readBit(contexts, contextLabel);
  40465. row[j] = pixel;
  40466. }
  40467. }
  40468. return bitmap;
  40469. }
  40470. // 6.3.2 Generic Refinement Region Decoding Procedure
  40471. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  40472. offsetX, offsetY, prediction, at,
  40473. decodingContext) {
  40474. var codingTemplate = RefinementTemplates[templateIndex].coding;
  40475. if (templateIndex === 0) {
  40476. codingTemplate = codingTemplate.concat([at[0]]);
  40477. }
  40478. var codingTemplateLength = codingTemplate.length;
  40479. var codingTemplateX = new Int32Array(codingTemplateLength);
  40480. var codingTemplateY = new Int32Array(codingTemplateLength);
  40481. var k;
  40482. for (k = 0; k < codingTemplateLength; k++) {
  40483. codingTemplateX[k] = codingTemplate[k].x;
  40484. codingTemplateY[k] = codingTemplate[k].y;
  40485. }
  40486. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  40487. if (templateIndex === 0) {
  40488. referenceTemplate = referenceTemplate.concat([at[1]]);
  40489. }
  40490. var referenceTemplateLength = referenceTemplate.length;
  40491. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  40492. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  40493. for (k = 0; k < referenceTemplateLength; k++) {
  40494. referenceTemplateX[k] = referenceTemplate[k].x;
  40495. referenceTemplateY[k] = referenceTemplate[k].y;
  40496. }
  40497. var referenceWidth = referenceBitmap[0].length;
  40498. var referenceHeight = referenceBitmap.length;
  40499. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  40500. var bitmap = [];
  40501. var decoder = decodingContext.decoder;
  40502. var contexts = decodingContext.contextCache.getContexts('GR');
  40503. var ltp = 0;
  40504. for (var i = 0; i < height; i++) {
  40505. if (prediction) {
  40506. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40507. ltp ^= sltp;
  40508. if (ltp) {
  40509. error('JBIG2 error: prediction is not supported');
  40510. }
  40511. }
  40512. var row = new Uint8Array(width);
  40513. bitmap.push(row);
  40514. for (var j = 0; j < width; j++) {
  40515. var i0, j0;
  40516. var contextLabel = 0;
  40517. for (k = 0; k < codingTemplateLength; k++) {
  40518. i0 = i + codingTemplateY[k];
  40519. j0 = j + codingTemplateX[k];
  40520. if (i0 < 0 || j0 < 0 || j0 >= width) {
  40521. contextLabel <<= 1; // out of bound pixel
  40522. } else {
  40523. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  40524. }
  40525. }
  40526. for (k = 0; k < referenceTemplateLength; k++) {
  40527. i0 = i + referenceTemplateY[k] + offsetY;
  40528. j0 = j + referenceTemplateX[k] + offsetX;
  40529. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  40530. j0 >= referenceWidth) {
  40531. contextLabel <<= 1; // out of bound pixel
  40532. } else {
  40533. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  40534. }
  40535. }
  40536. var pixel = decoder.readBit(contexts, contextLabel);
  40537. row[j] = pixel;
  40538. }
  40539. }
  40540. return bitmap;
  40541. }
  40542. // 6.5.5 Decoding the symbol dictionary
  40543. function decodeSymbolDictionary(huffman, refinement, symbols,
  40544. numberOfNewSymbols, numberOfExportedSymbols,
  40545. huffmanTables, templateIndex, at,
  40546. refinementTemplateIndex, refinementAt,
  40547. decodingContext) {
  40548. if (huffman) {
  40549. error('JBIG2 error: huffman is not supported');
  40550. }
  40551. var newSymbols = [];
  40552. var currentHeight = 0;
  40553. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  40554. var decoder = decodingContext.decoder;
  40555. var contextCache = decodingContext.contextCache;
  40556. while (newSymbols.length < numberOfNewSymbols) {
  40557. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  40558. currentHeight += deltaHeight;
  40559. var currentWidth = 0;
  40560. var totalWidth = 0;
  40561. while (true) {
  40562. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  40563. if (deltaWidth === null) {
  40564. break; // OOB
  40565. }
  40566. currentWidth += deltaWidth;
  40567. totalWidth += currentWidth;
  40568. var bitmap;
  40569. if (refinement) {
  40570. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  40571. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  40572. if (numberOfInstances > 1) {
  40573. bitmap = decodeTextRegion(huffman, refinement,
  40574. currentWidth, currentHeight, 0,
  40575. numberOfInstances, 1, //strip size
  40576. symbols.concat(newSymbols),
  40577. symbolCodeLength,
  40578. 0, //transposed
  40579. 0, //ds offset
  40580. 1, //top left 7.4.3.1.1
  40581. 0, //OR operator
  40582. huffmanTables,
  40583. refinementTemplateIndex, refinementAt,
  40584. decodingContext);
  40585. } else {
  40586. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40587. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40588. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40589. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  40590. newSymbols[symbolId - symbols.length]);
  40591. bitmap = decodeRefinement(currentWidth, currentHeight,
  40592. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  40593. decodingContext);
  40594. }
  40595. } else {
  40596. // 6.5.8.1 Direct-coded symbol bitmap
  40597. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  40598. templateIndex, false, null, at, decodingContext);
  40599. }
  40600. newSymbols.push(bitmap);
  40601. }
  40602. }
  40603. // 6.5.10 Exported symbols
  40604. var exportedSymbols = [];
  40605. var flags = [], currentFlag = false;
  40606. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  40607. while (flags.length < totalSymbolsLength) {
  40608. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  40609. while (runLength--) {
  40610. flags.push(currentFlag);
  40611. }
  40612. currentFlag = !currentFlag;
  40613. }
  40614. for (var i = 0, ii = symbols.length; i < ii; i++) {
  40615. if (flags[i]) {
  40616. exportedSymbols.push(symbols[i]);
  40617. }
  40618. }
  40619. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  40620. if (flags[i]) {
  40621. exportedSymbols.push(newSymbols[j]);
  40622. }
  40623. }
  40624. return exportedSymbols;
  40625. }
  40626. function decodeTextRegion(huffman, refinement, width, height,
  40627. defaultPixelValue, numberOfSymbolInstances,
  40628. stripSize, inputSymbols, symbolCodeLength,
  40629. transposed, dsOffset, referenceCorner,
  40630. combinationOperator, huffmanTables,
  40631. refinementTemplateIndex, refinementAt,
  40632. decodingContext) {
  40633. if (huffman) {
  40634. error('JBIG2 error: huffman is not supported');
  40635. }
  40636. // Prepare bitmap
  40637. var bitmap = [];
  40638. var i, row;
  40639. for (i = 0; i < height; i++) {
  40640. row = new Uint8Array(width);
  40641. if (defaultPixelValue) {
  40642. for (var j = 0; j < width; j++) {
  40643. row[j] = defaultPixelValue;
  40644. }
  40645. }
  40646. bitmap.push(row);
  40647. }
  40648. var decoder = decodingContext.decoder;
  40649. var contextCache = decodingContext.contextCache;
  40650. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40651. var firstS = 0;
  40652. i = 0;
  40653. while (i < numberOfSymbolInstances) {
  40654. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40655. stripT += deltaT;
  40656. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  40657. firstS += deltaFirstS;
  40658. var currentS = firstS;
  40659. do {
  40660. var currentT = (stripSize == 1 ? 0 :
  40661. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  40662. var t = stripSize * stripT + currentT;
  40663. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40664. var applyRefinement = (refinement &&
  40665. decodeInteger(contextCache, 'IARI', decoder));
  40666. var symbolBitmap = inputSymbols[symbolId];
  40667. var symbolWidth = symbolBitmap[0].length;
  40668. var symbolHeight = symbolBitmap.length;
  40669. if (applyRefinement) {
  40670. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  40671. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  40672. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40673. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40674. symbolWidth += rdw;
  40675. symbolHeight += rdh;
  40676. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  40677. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  40678. (rdh >> 1) + rdy, false, refinementAt,
  40679. decodingContext);
  40680. }
  40681. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  40682. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  40683. var s2, t2, symbolRow;
  40684. if (transposed) {
  40685. // Place Symbol Bitmap from T1,S1
  40686. for (s2 = 0; s2 < symbolHeight; s2++) {
  40687. row = bitmap[offsetS + s2];
  40688. if (!row) {
  40689. continue;
  40690. }
  40691. symbolRow = symbolBitmap[s2];
  40692. // To ignore Parts of Symbol bitmap which goes
  40693. // outside bitmap region
  40694. var maxWidth = Math.min(width - offsetT, symbolWidth);
  40695. switch (combinationOperator) {
  40696. case 0: // OR
  40697. for (t2 = 0; t2 < maxWidth; t2++) {
  40698. row[offsetT + t2] |= symbolRow[t2];
  40699. }
  40700. break;
  40701. case 2: // XOR
  40702. for (t2 = 0; t2 < maxWidth; t2++) {
  40703. row[offsetT + t2] ^= symbolRow[t2];
  40704. }
  40705. break;
  40706. default:
  40707. error('JBIG2 error: operator ' + combinationOperator +
  40708. ' is not supported');
  40709. }
  40710. }
  40711. currentS += symbolHeight - 1;
  40712. } else {
  40713. for (t2 = 0; t2 < symbolHeight; t2++) {
  40714. row = bitmap[offsetT + t2];
  40715. if (!row) {
  40716. continue;
  40717. }
  40718. symbolRow = symbolBitmap[t2];
  40719. switch (combinationOperator) {
  40720. case 0: // OR
  40721. for (s2 = 0; s2 < symbolWidth; s2++) {
  40722. row[offsetS + s2] |= symbolRow[s2];
  40723. }
  40724. break;
  40725. case 2: // XOR
  40726. for (s2 = 0; s2 < symbolWidth; s2++) {
  40727. row[offsetS + s2] ^= symbolRow[s2];
  40728. }
  40729. break;
  40730. default:
  40731. error('JBIG2 error: operator ' + combinationOperator +
  40732. ' is not supported');
  40733. }
  40734. }
  40735. currentS += symbolWidth - 1;
  40736. }
  40737. i++;
  40738. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  40739. if (deltaS === null) {
  40740. break; // OOB
  40741. }
  40742. currentS += deltaS + dsOffset;
  40743. } while (true);
  40744. }
  40745. return bitmap;
  40746. }
  40747. function readSegmentHeader(data, start) {
  40748. var segmentHeader = {};
  40749. segmentHeader.number = readUint32(data, start);
  40750. var flags = data[start + 4];
  40751. var segmentType = flags & 0x3F;
  40752. if (!SegmentTypes[segmentType]) {
  40753. error('JBIG2 error: invalid segment type: ' + segmentType);
  40754. }
  40755. segmentHeader.type = segmentType;
  40756. segmentHeader.typeName = SegmentTypes[segmentType];
  40757. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  40758. var pageAssociationFieldSize = !!(flags & 0x40);
  40759. var referredFlags = data[start + 5];
  40760. var referredToCount = (referredFlags >> 5) & 7;
  40761. var retainBits = [referredFlags & 31];
  40762. var position = start + 6;
  40763. if (referredFlags == 7) {
  40764. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  40765. position += 3;
  40766. var bytes = (referredToCount + 7) >> 3;
  40767. retainBits[0] = data[position++];
  40768. while (--bytes > 0) {
  40769. retainBits.push(data[position++]);
  40770. }
  40771. } else if (referredFlags == 5 || referredFlags == 6) {
  40772. error('JBIG2 error: invalid referred-to flags');
  40773. }
  40774. segmentHeader.retainBits = retainBits;
  40775. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  40776. (segmentHeader.number <= 65536 ? 2 : 4));
  40777. var referredTo = [];
  40778. var i, ii;
  40779. for (i = 0; i < referredToCount; i++) {
  40780. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  40781. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  40782. readUint32(data, position)));
  40783. referredTo.push(number);
  40784. position += referredToSegmentNumberSize;
  40785. }
  40786. segmentHeader.referredTo = referredTo;
  40787. if (!pageAssociationFieldSize) {
  40788. segmentHeader.pageAssociation = data[position++];
  40789. } else {
  40790. segmentHeader.pageAssociation = readUint32(data, position);
  40791. position += 4;
  40792. }
  40793. segmentHeader.length = readUint32(data, position);
  40794. position += 4;
  40795. if (segmentHeader.length == 0xFFFFFFFF) {
  40796. // 7.2.7 Segment data length, unknown segment length
  40797. if (segmentType === 38) { // ImmediateGenericRegion
  40798. var genericRegionInfo = readRegionSegmentInformation(data, position);
  40799. var genericRegionSegmentFlags = data[position +
  40800. RegionSegmentInformationFieldLength];
  40801. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  40802. // searching for the segment end
  40803. var searchPatternLength = 6;
  40804. var searchPattern = new Uint8Array(searchPatternLength);
  40805. if (!genericRegionMmr) {
  40806. searchPattern[0] = 0xFF;
  40807. searchPattern[1] = 0xAC;
  40808. }
  40809. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  40810. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  40811. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  40812. searchPattern[5] = genericRegionInfo.height & 0xFF;
  40813. for (i = position, ii = data.length; i < ii; i++) {
  40814. var j = 0;
  40815. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  40816. j++;
  40817. }
  40818. if (j == searchPatternLength) {
  40819. segmentHeader.length = i + searchPatternLength;
  40820. break;
  40821. }
  40822. }
  40823. if (segmentHeader.length == 0xFFFFFFFF) {
  40824. error('JBIG2 error: segment end was not found');
  40825. }
  40826. } else {
  40827. error('JBIG2 error: invalid unknown segment length');
  40828. }
  40829. }
  40830. segmentHeader.headerEnd = position;
  40831. return segmentHeader;
  40832. }
  40833. function readSegments(header, data, start, end) {
  40834. var segments = [];
  40835. var position = start;
  40836. while (position < end) {
  40837. var segmentHeader = readSegmentHeader(data, position);
  40838. position = segmentHeader.headerEnd;
  40839. var segment = {
  40840. header: segmentHeader,
  40841. data: data
  40842. };
  40843. if (!header.randomAccess) {
  40844. segment.start = position;
  40845. position += segmentHeader.length;
  40846. segment.end = position;
  40847. }
  40848. segments.push(segment);
  40849. if (segmentHeader.type == 51) {
  40850. break; // end of file is found
  40851. }
  40852. }
  40853. if (header.randomAccess) {
  40854. for (var i = 0, ii = segments.length; i < ii; i++) {
  40855. segments[i].start = position;
  40856. position += segments[i].header.length;
  40857. segments[i].end = position;
  40858. }
  40859. }
  40860. return segments;
  40861. }
  40862. // 7.4.1 Region segment information field
  40863. function readRegionSegmentInformation(data, start) {
  40864. return {
  40865. width: readUint32(data, start),
  40866. height: readUint32(data, start + 4),
  40867. x: readUint32(data, start + 8),
  40868. y: readUint32(data, start + 12),
  40869. combinationOperator: data[start + 16] & 7
  40870. };
  40871. }
  40872. var RegionSegmentInformationFieldLength = 17;
  40873. function processSegment(segment, visitor) {
  40874. var header = segment.header;
  40875. var data = segment.data, position = segment.start, end = segment.end;
  40876. var args, at, i, atLength;
  40877. switch (header.type) {
  40878. case 0: // SymbolDictionary
  40879. // 7.4.2 Symbol dictionary segment syntax
  40880. var dictionary = {};
  40881. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  40882. dictionary.huffman = !!(dictionaryFlags & 1);
  40883. dictionary.refinement = !!(dictionaryFlags & 2);
  40884. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  40885. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  40886. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  40887. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  40888. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  40889. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  40890. dictionary.template = (dictionaryFlags >> 10) & 3;
  40891. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  40892. position += 2;
  40893. if (!dictionary.huffman) {
  40894. atLength = dictionary.template === 0 ? 4 : 1;
  40895. at = [];
  40896. for (i = 0; i < atLength; i++) {
  40897. at.push({
  40898. x: readInt8(data, position),
  40899. y: readInt8(data, position + 1)
  40900. });
  40901. position += 2;
  40902. }
  40903. dictionary.at = at;
  40904. }
  40905. if (dictionary.refinement && !dictionary.refinementTemplate) {
  40906. at = [];
  40907. for (i = 0; i < 2; i++) {
  40908. at.push({
  40909. x: readInt8(data, position),
  40910. y: readInt8(data, position + 1)
  40911. });
  40912. position += 2;
  40913. }
  40914. dictionary.refinementAt = at;
  40915. }
  40916. dictionary.numberOfExportedSymbols = readUint32(data, position);
  40917. position += 4;
  40918. dictionary.numberOfNewSymbols = readUint32(data, position);
  40919. position += 4;
  40920. args = [dictionary, header.number, header.referredTo,
  40921. data, position, end];
  40922. break;
  40923. case 6: // ImmediateTextRegion
  40924. case 7: // ImmediateLosslessTextRegion
  40925. var textRegion = {};
  40926. textRegion.info = readRegionSegmentInformation(data, position);
  40927. position += RegionSegmentInformationFieldLength;
  40928. var textRegionSegmentFlags = readUint16(data, position);
  40929. position += 2;
  40930. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  40931. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  40932. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  40933. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  40934. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  40935. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  40936. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  40937. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  40938. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  40939. if (textRegion.huffman) {
  40940. var textRegionHuffmanFlags = readUint16(data, position);
  40941. position += 2;
  40942. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  40943. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  40944. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  40945. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  40946. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  40947. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  40948. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  40949. textRegion.huffmanRefinementSizeSelector =
  40950. !!(textRegionHuffmanFlags & 14);
  40951. }
  40952. if (textRegion.refinement && !textRegion.refinementTemplate) {
  40953. at = [];
  40954. for (i = 0; i < 2; i++) {
  40955. at.push({
  40956. x: readInt8(data, position),
  40957. y: readInt8(data, position + 1)
  40958. });
  40959. position += 2;
  40960. }
  40961. textRegion.refinementAt = at;
  40962. }
  40963. textRegion.numberOfSymbolInstances = readUint32(data, position);
  40964. position += 4;
  40965. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  40966. if (textRegion.huffman) {
  40967. error('JBIG2 error: huffman is not supported');
  40968. }
  40969. args = [textRegion, header.referredTo, data, position, end];
  40970. break;
  40971. case 38: // ImmediateGenericRegion
  40972. case 39: // ImmediateLosslessGenericRegion
  40973. var genericRegion = {};
  40974. genericRegion.info = readRegionSegmentInformation(data, position);
  40975. position += RegionSegmentInformationFieldLength;
  40976. var genericRegionSegmentFlags = data[position++];
  40977. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  40978. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  40979. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  40980. if (!genericRegion.mmr) {
  40981. atLength = genericRegion.template === 0 ? 4 : 1;
  40982. at = [];
  40983. for (i = 0; i < atLength; i++) {
  40984. at.push({
  40985. x: readInt8(data, position),
  40986. y: readInt8(data, position + 1)
  40987. });
  40988. position += 2;
  40989. }
  40990. genericRegion.at = at;
  40991. }
  40992. args = [genericRegion, data, position, end];
  40993. break;
  40994. case 48: // PageInformation
  40995. var pageInfo = {
  40996. width: readUint32(data, position),
  40997. height: readUint32(data, position + 4),
  40998. resolutionX: readUint32(data, position + 8),
  40999. resolutionY: readUint32(data, position + 12)
  41000. };
  41001. if (pageInfo.height == 0xFFFFFFFF) {
  41002. delete pageInfo.height;
  41003. }
  41004. var pageSegmentFlags = data[position + 16];
  41005. var pageStripingInformatiom = readUint16(data, position + 17);
  41006. pageInfo.lossless = !!(pageSegmentFlags & 1);
  41007. pageInfo.refinement = !!(pageSegmentFlags & 2);
  41008. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  41009. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  41010. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  41011. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  41012. args = [pageInfo];
  41013. break;
  41014. case 49: // EndOfPage
  41015. break;
  41016. case 50: // EndOfStripe
  41017. break;
  41018. case 51: // EndOfFile
  41019. break;
  41020. case 62: // 7.4.15 defines 2 extension types which
  41021. // are comments and can be ignored.
  41022. break;
  41023. default:
  41024. error('JBIG2 error: segment type ' + header.typeName + '(' +
  41025. header.type + ') is not implemented');
  41026. }
  41027. var callbackName = 'on' + header.typeName;
  41028. if (callbackName in visitor) {
  41029. visitor[callbackName].apply(visitor, args);
  41030. }
  41031. }
  41032. function processSegments(segments, visitor) {
  41033. for (var i = 0, ii = segments.length; i < ii; i++) {
  41034. processSegment(segments[i], visitor);
  41035. }
  41036. }
  41037. function parseJbig2(data, start, end) {
  41038. var position = start;
  41039. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  41040. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  41041. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  41042. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  41043. error('JBIG2 error: invalid header');
  41044. }
  41045. var header = {};
  41046. position += 8;
  41047. var flags = data[position++];
  41048. header.randomAccess = !(flags & 1);
  41049. if (!(flags & 2)) {
  41050. header.numberOfPages = readUint32(data, position);
  41051. position += 4;
  41052. }
  41053. var segments = readSegments(header, data, position, end);
  41054. error('Not implemented');
  41055. // processSegments(segments, new SimpleSegmentVisitor());
  41056. }
  41057. function parseJbig2Chunks(chunks) {
  41058. var visitor = new SimpleSegmentVisitor();
  41059. for (var i = 0, ii = chunks.length; i < ii; i++) {
  41060. var chunk = chunks[i];
  41061. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  41062. processSegments(segments, visitor);
  41063. }
  41064. return visitor.buffer;
  41065. }
  41066. function SimpleSegmentVisitor() {}
  41067. SimpleSegmentVisitor.prototype = {
  41068. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  41069. this.currentPageInfo = info;
  41070. var rowSize = (info.width + 7) >> 3;
  41071. var buffer = new Uint8Array(rowSize * info.height);
  41072. // The contents of ArrayBuffers are initialized to 0.
  41073. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  41074. if (info.defaultPixelValue) {
  41075. for (var i = 0, ii = buffer.length; i < ii; i++) {
  41076. buffer[i] = 0xFF;
  41077. }
  41078. }
  41079. this.buffer = buffer;
  41080. },
  41081. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  41082. var pageInfo = this.currentPageInfo;
  41083. var width = regionInfo.width, height = regionInfo.height;
  41084. var rowSize = (pageInfo.width + 7) >> 3;
  41085. var combinationOperator = pageInfo.combinationOperatorOverride ?
  41086. regionInfo.combinationOperator : pageInfo.combinationOperator;
  41087. var buffer = this.buffer;
  41088. var mask0 = 128 >> (regionInfo.x & 7);
  41089. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  41090. var i, j, mask, offset;
  41091. switch (combinationOperator) {
  41092. case 0: // OR
  41093. for (i = 0; i < height; i++) {
  41094. mask = mask0;
  41095. offset = offset0;
  41096. for (j = 0; j < width; j++) {
  41097. if (bitmap[i][j]) {
  41098. buffer[offset] |= mask;
  41099. }
  41100. mask >>= 1;
  41101. if (!mask) {
  41102. mask = 128;
  41103. offset++;
  41104. }
  41105. }
  41106. offset0 += rowSize;
  41107. }
  41108. break;
  41109. case 2: // XOR
  41110. for (i = 0; i < height; i++) {
  41111. mask = mask0;
  41112. offset = offset0;
  41113. for (j = 0; j < width; j++) {
  41114. if (bitmap[i][j]) {
  41115. buffer[offset] ^= mask;
  41116. }
  41117. mask >>= 1;
  41118. if (!mask) {
  41119. mask = 128;
  41120. offset++;
  41121. }
  41122. }
  41123. offset0 += rowSize;
  41124. }
  41125. break;
  41126. default:
  41127. error('JBIG2 error: operator ' + combinationOperator +
  41128. ' is not supported');
  41129. }
  41130. },
  41131. onImmediateGenericRegion:
  41132. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  41133. start, end) {
  41134. var regionInfo = region.info;
  41135. var decodingContext = new DecodingContext(data, start, end);
  41136. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  41137. region.template, region.prediction, null,
  41138. region.at, decodingContext);
  41139. this.drawBitmap(regionInfo, bitmap);
  41140. },
  41141. onImmediateLosslessGenericRegion:
  41142. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  41143. this.onImmediateGenericRegion.apply(this, arguments);
  41144. },
  41145. onSymbolDictionary:
  41146. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  41147. currentSegment,
  41148. referredSegments,
  41149. data, start, end) {
  41150. var huffmanTables;
  41151. if (dictionary.huffman) {
  41152. error('JBIG2 error: huffman is not supported');
  41153. }
  41154. // Combines exported symbols from all referred segments
  41155. var symbols = this.symbols;
  41156. if (!symbols) {
  41157. this.symbols = symbols = {};
  41158. }
  41159. var inputSymbols = [];
  41160. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41161. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41162. }
  41163. var decodingContext = new DecodingContext(data, start, end);
  41164. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  41165. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  41166. dictionary.numberOfExportedSymbols, huffmanTables,
  41167. dictionary.template, dictionary.at,
  41168. dictionary.refinementTemplate, dictionary.refinementAt,
  41169. decodingContext);
  41170. },
  41171. onImmediateTextRegion:
  41172. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  41173. referredSegments,
  41174. data, start, end) {
  41175. var regionInfo = region.info;
  41176. var huffmanTables;
  41177. // Combines exported symbols from all referred segments
  41178. var symbols = this.symbols;
  41179. var inputSymbols = [];
  41180. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41181. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41182. }
  41183. var symbolCodeLength = log2(inputSymbols.length);
  41184. var decodingContext = new DecodingContext(data, start, end);
  41185. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  41186. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  41187. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  41188. symbolCodeLength, region.transposed, region.dsOffset,
  41189. region.referenceCorner, region.combinationOperator, huffmanTables,
  41190. region.refinementTemplate, region.refinementAt, decodingContext);
  41191. this.drawBitmap(regionInfo, bitmap);
  41192. },
  41193. onImmediateLosslessTextRegion:
  41194. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  41195. this.onImmediateTextRegion.apply(this, arguments);
  41196. }
  41197. };
  41198. function Jbig2Image() {}
  41199. Jbig2Image.prototype = {
  41200. parseChunks: function Jbig2Image_parseChunks(chunks) {
  41201. return parseJbig2Chunks(chunks);
  41202. }
  41203. };
  41204. return Jbig2Image;
  41205. })();
  41206. var bidi = PDFJS.bidi = (function bidiClosure() {
  41207. // Character types for symbols from 0000 to 00FF.
  41208. var baseTypes = [
  41209. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  41210. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41211. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  41212. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  41213. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  41214. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41215. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  41216. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41217. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41218. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  41219. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41220. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41221. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  41222. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  41223. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41224. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41225. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41226. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41227. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  41228. ];
  41229. // Character types for symbols from 0600 to 06FF
  41230. var arabicTypes = [
  41231. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41232. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', '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', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41237. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41238. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  41239. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  41240. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', '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', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41249. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41250. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  41251. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41252. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  41253. ];
  41254. function isOdd(i) {
  41255. return (i & 1) !== 0;
  41256. }
  41257. function isEven(i) {
  41258. return (i & 1) === 0;
  41259. }
  41260. function findUnequal(arr, start, value) {
  41261. for (var j = start, jj = arr.length; j < jj; ++j) {
  41262. if (arr[j] != value) {
  41263. return j;
  41264. }
  41265. }
  41266. return j;
  41267. }
  41268. function setValues(arr, start, end, value) {
  41269. for (var j = start; j < end; ++j) {
  41270. arr[j] = value;
  41271. }
  41272. }
  41273. function reverseValues(arr, start, end) {
  41274. for (var i = start, j = end - 1; i < j; ++i, --j) {
  41275. var temp = arr[i];
  41276. arr[i] = arr[j];
  41277. arr[j] = temp;
  41278. }
  41279. }
  41280. function createBidiText(str, isLTR, vertical) {
  41281. return {
  41282. str: str,
  41283. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  41284. };
  41285. }
  41286. // These are used in bidi(), which is called frequently. We re-use them on
  41287. // each call to avoid unnecessary allocations.
  41288. var chars = [];
  41289. var types = [];
  41290. function bidi(str, startLevel, vertical) {
  41291. var isLTR = true;
  41292. var strLength = str.length;
  41293. if (strLength === 0 || vertical) {
  41294. return createBidiText(str, isLTR, vertical);
  41295. }
  41296. // Get types and fill arrays
  41297. chars.length = 0;
  41298. types.length = 0;
  41299. var numBidi = 0;
  41300. var i, ii;
  41301. for (i = 0; i < strLength; ++i) {
  41302. chars[i] = str.charAt(i);
  41303. var charCode = str.charCodeAt(i);
  41304. var charType = 'L';
  41305. if (charCode <= 0x00ff) {
  41306. charType = baseTypes[charCode];
  41307. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  41308. charType = 'R';
  41309. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  41310. charType = arabicTypes[charCode & 0xff];
  41311. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  41312. charType = 'AL';
  41313. }
  41314. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  41315. numBidi++;
  41316. }
  41317. types[i] = charType;
  41318. }
  41319. // Detect the bidi method
  41320. // - If there are no rtl characters then no bidi needed
  41321. // - If less than 30% chars are rtl then string is primarily ltr
  41322. // - If more than 30% chars are rtl then string is primarily rtl
  41323. if (numBidi === 0) {
  41324. isLTR = true;
  41325. return createBidiText(str, isLTR);
  41326. }
  41327. if (startLevel == -1) {
  41328. if ((strLength / numBidi) < 0.3) {
  41329. isLTR = true;
  41330. startLevel = 0;
  41331. } else {
  41332. isLTR = false;
  41333. startLevel = 1;
  41334. }
  41335. }
  41336. var levels = [];
  41337. for (i = 0; i < strLength; ++i) {
  41338. levels[i] = startLevel;
  41339. }
  41340. /*
  41341. X1-X10: skip most of this, since we are NOT doing the embeddings.
  41342. */
  41343. var e = (isOdd(startLevel) ? 'R' : 'L');
  41344. var sor = e;
  41345. var eor = sor;
  41346. /*
  41347. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  41348. type of the NSM to the type of the previous character. If the NSM is at the
  41349. start of the level run, it will get the type of sor.
  41350. */
  41351. var lastType = sor;
  41352. for (i = 0; i < strLength; ++i) {
  41353. if (types[i] == 'NSM') {
  41354. types[i] = lastType;
  41355. } else {
  41356. lastType = types[i];
  41357. }
  41358. }
  41359. /*
  41360. W2. Search backwards from each instance of a European number until the
  41361. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  41362. the type of the European number to Arabic number.
  41363. */
  41364. lastType = sor;
  41365. var t;
  41366. for (i = 0; i < strLength; ++i) {
  41367. t = types[i];
  41368. if (t == 'EN') {
  41369. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  41370. } else if (t == 'R' || t == 'L' || t == 'AL') {
  41371. lastType = t;
  41372. }
  41373. }
  41374. /*
  41375. W3. Change all ALs to R.
  41376. */
  41377. for (i = 0; i < strLength; ++i) {
  41378. t = types[i];
  41379. if (t == 'AL') {
  41380. types[i] = 'R';
  41381. }
  41382. }
  41383. /*
  41384. W4. A single European separator between two European numbers changes to a
  41385. European number. A single common separator between two numbers of the same
  41386. type changes to that type:
  41387. */
  41388. for (i = 1; i < strLength - 1; ++i) {
  41389. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  41390. types[i] = 'EN';
  41391. }
  41392. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  41393. types[i + 1] == types[i - 1]) {
  41394. types[i] = types[i - 1];
  41395. }
  41396. }
  41397. /*
  41398. W5. A sequence of European terminators adjacent to European numbers changes
  41399. to all European numbers:
  41400. */
  41401. for (i = 0; i < strLength; ++i) {
  41402. if (types[i] == 'EN') {
  41403. // do before
  41404. var j;
  41405. for (j = i - 1; j >= 0; --j) {
  41406. if (types[j] != 'ET') {
  41407. break;
  41408. }
  41409. types[j] = 'EN';
  41410. }
  41411. // do after
  41412. for (j = i + 1; j < strLength; --j) {
  41413. if (types[j] != 'ET') {
  41414. break;
  41415. }
  41416. types[j] = 'EN';
  41417. }
  41418. }
  41419. }
  41420. /*
  41421. W6. Otherwise, separators and terminators change to Other Neutral:
  41422. */
  41423. for (i = 0; i < strLength; ++i) {
  41424. t = types[i];
  41425. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  41426. types[i] = 'ON';
  41427. }
  41428. }
  41429. /*
  41430. W7. Search backwards from each instance of a European number until the
  41431. first strong type (R, L, or sor) is found. If an L is found, then change
  41432. the type of the European number to L.
  41433. */
  41434. lastType = sor;
  41435. for (i = 0; i < strLength; ++i) {
  41436. t = types[i];
  41437. if (t == 'EN') {
  41438. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  41439. } else if (t == 'R' || t == 'L') {
  41440. lastType = t;
  41441. }
  41442. }
  41443. /*
  41444. N1. A sequence of neutrals takes the direction of the surrounding strong
  41445. text if the text on both sides has the same direction. European and Arabic
  41446. numbers are treated as though they were R. Start-of-level-run (sor) and
  41447. end-of-level-run (eor) are used at level run boundaries.
  41448. */
  41449. for (i = 0; i < strLength; ++i) {
  41450. if (types[i] == 'ON') {
  41451. var end = findUnequal(types, i + 1, 'ON');
  41452. var before = sor;
  41453. if (i > 0) {
  41454. before = types[i - 1];
  41455. }
  41456. var after = eor;
  41457. if (end + 1 < strLength) {
  41458. after = types[end + 1];
  41459. }
  41460. if (before != 'L') {
  41461. before = 'R';
  41462. }
  41463. if (after != 'L') {
  41464. after = 'R';
  41465. }
  41466. if (before == after) {
  41467. setValues(types, i, end, before);
  41468. }
  41469. i = end - 1; // reset to end (-1 so next iteration is ok)
  41470. }
  41471. }
  41472. /*
  41473. N2. Any remaining neutrals take the embedding direction.
  41474. */
  41475. for (i = 0; i < strLength; ++i) {
  41476. if (types[i] == 'ON') {
  41477. types[i] = e;
  41478. }
  41479. }
  41480. /*
  41481. I1. For all characters with an even (left-to-right) embedding direction,
  41482. those of type R go up one level and those of type AN or EN go up two
  41483. levels.
  41484. I2. For all characters with an odd (right-to-left) embedding direction,
  41485. those of type L, EN or AN go up one level.
  41486. */
  41487. for (i = 0; i < strLength; ++i) {
  41488. t = types[i];
  41489. if (isEven(levels[i])) {
  41490. if (t == 'R') {
  41491. levels[i] += 1;
  41492. } else if (t == 'AN' || t == 'EN') {
  41493. levels[i] += 2;
  41494. }
  41495. } else { // isOdd
  41496. if (t == 'L' || t == 'AN' || t == 'EN') {
  41497. levels[i] += 1;
  41498. }
  41499. }
  41500. }
  41501. /*
  41502. L1. On each line, reset the embedding level of the following characters to
  41503. the paragraph embedding level:
  41504. segment separators,
  41505. paragraph separators,
  41506. any sequence of whitespace characters preceding a segment separator or
  41507. paragraph separator, and any sequence of white space characters at the end
  41508. of the line.
  41509. */
  41510. // don't bother as text is only single line
  41511. /*
  41512. L2. From the highest level found in the text to the lowest odd level on
  41513. each line, reverse any contiguous sequence of characters that are at that
  41514. level or higher.
  41515. */
  41516. // find highest level & lowest odd level
  41517. var highestLevel = -1;
  41518. var lowestOddLevel = 99;
  41519. var level;
  41520. for (i = 0, ii = levels.length; i < ii; ++i) {
  41521. level = levels[i];
  41522. if (highestLevel < level) {
  41523. highestLevel = level;
  41524. }
  41525. if (lowestOddLevel > level && isOdd(level)) {
  41526. lowestOddLevel = level;
  41527. }
  41528. }
  41529. // now reverse between those limits
  41530. for (level = highestLevel; level >= lowestOddLevel; --level) {
  41531. // find segments to reverse
  41532. var start = -1;
  41533. for (i = 0, ii = levels.length; i < ii; ++i) {
  41534. if (levels[i] < level) {
  41535. if (start >= 0) {
  41536. reverseValues(chars, start, i);
  41537. start = -1;
  41538. }
  41539. } else if (start < 0) {
  41540. start = i;
  41541. }
  41542. }
  41543. if (start >= 0) {
  41544. reverseValues(chars, start, levels.length);
  41545. }
  41546. }
  41547. /*
  41548. L3. Combining marks applied to a right-to-left base character will at this
  41549. point precede their base character. If the rendering engine expects them to
  41550. follow the base characters in the final display process, then the ordering
  41551. of the marks and the base character must be reversed.
  41552. */
  41553. // don't bother for now
  41554. /*
  41555. L4. A character that possesses the mirrored property as specified by
  41556. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  41557. directionality of that character is R.
  41558. */
  41559. // don't mirror as characters are already mirrored in the pdf
  41560. // Finally, return string
  41561. var result = '';
  41562. for (i = 0, ii = chars.length; i < ii; ++i) {
  41563. var ch = chars[i];
  41564. if (ch != '<' && ch != '>') {
  41565. result += ch;
  41566. }
  41567. }
  41568. return createBidiText(result, isLTR);
  41569. }
  41570. return bidi;
  41571. })();
  41572. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  41573. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  41574. /* Copyright 2014 Opera Software ASA
  41575. *
  41576. * Licensed under the Apache License, Version 2.0 (the "License");
  41577. * you may not use this file except in compliance with the License.
  41578. * You may obtain a copy of the License at
  41579. *
  41580. * http://www.apache.org/licenses/LICENSE-2.0
  41581. *
  41582. * Unless required by applicable law or agreed to in writing, software
  41583. * distributed under the License is distributed on an "AS IS" BASIS,
  41584. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  41585. * See the License for the specific language governing permissions and
  41586. * limitations under the License.
  41587. *
  41588. *
  41589. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  41590. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  41591. */
  41592. /* globals Uint32ArrayView */
  41593. 'use strict';
  41594. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  41595. // Workaround for missing math precison in JS.
  41596. var MASK_HIGH = 0xffff0000;
  41597. var MASK_LOW = 0xffff;
  41598. function MurmurHash3_64 (seed) {
  41599. var SEED = 0xc3d2e1f0;
  41600. this.h1 = seed ? seed & 0xffffffff : SEED;
  41601. this.h2 = seed ? seed & 0xffffffff : SEED;
  41602. }
  41603. var alwaysUseUint32ArrayView = false;
  41604. // old webkits have issues with non-aligned arrays
  41605. try {
  41606. new Uint32Array(new Uint8Array(5).buffer, 0, 1);
  41607. } catch (e) {
  41608. alwaysUseUint32ArrayView = true;
  41609. }
  41610. MurmurHash3_64.prototype = {
  41611. update: function MurmurHash3_64_update(input) {
  41612. var useUint32ArrayView = alwaysUseUint32ArrayView;
  41613. var i;
  41614. if (typeof input == 'string') {
  41615. var data = new Uint8Array(input.length * 2);
  41616. var length = 0;
  41617. for (i = 0; i < input.length; i++) {
  41618. var code = input.charCodeAt(i);
  41619. if (code <= 0xff) {
  41620. data[length++] = code;
  41621. }
  41622. else {
  41623. data[length++] = code >>> 8;
  41624. data[length++] = code & 0xff;
  41625. }
  41626. }
  41627. } else if (input instanceof Uint8Array) {
  41628. data = input;
  41629. length = data.length;
  41630. } else if (typeof input === 'object' && ('length' in input)) {
  41631. // processing regular arrays as well, e.g. for IE9
  41632. data = input;
  41633. length = data.length;
  41634. useUint32ArrayView = true;
  41635. } else {
  41636. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  41637. 'Input must be a string or array.');
  41638. }
  41639. var blockCounts = length >> 2;
  41640. var tailLength = length - blockCounts * 4;
  41641. // we don't care about endianness here
  41642. var dataUint32 = useUint32ArrayView ?
  41643. new Uint32ArrayView(data, blockCounts) :
  41644. new Uint32Array(data.buffer, 0, blockCounts);
  41645. var k1 = 0;
  41646. var k2 = 0;
  41647. var h1 = this.h1;
  41648. var h2 = this.h2;
  41649. var C1 = 0xcc9e2d51;
  41650. var C2 = 0x1b873593;
  41651. var C1_LOW = C1 & MASK_LOW;
  41652. var C2_LOW = C2 & MASK_LOW;
  41653. for (i = 0; i < blockCounts; i++) {
  41654. if (i & 1) {
  41655. k1 = dataUint32[i];
  41656. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41657. k1 = k1 << 15 | k1 >>> 17;
  41658. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41659. h1 ^= k1;
  41660. h1 = h1 << 13 | h1 >>> 19;
  41661. h1 = h1 * 5 + 0xe6546b64;
  41662. } else {
  41663. k2 = dataUint32[i];
  41664. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  41665. k2 = k2 << 15 | k2 >>> 17;
  41666. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  41667. h2 ^= k2;
  41668. h2 = h2 << 13 | h2 >>> 19;
  41669. h2 = h2 * 5 + 0xe6546b64;
  41670. }
  41671. }
  41672. k1 = 0;
  41673. switch (tailLength) {
  41674. case 3:
  41675. k1 ^= data[blockCounts * 4 + 2] << 16;
  41676. /* falls through */
  41677. case 2:
  41678. k1 ^= data[blockCounts * 4 + 1] << 8;
  41679. /* falls through */
  41680. case 1:
  41681. k1 ^= data[blockCounts * 4];
  41682. /* falls through */
  41683. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41684. k1 = k1 << 15 | k1 >>> 17;
  41685. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41686. if (blockCounts & 1) {
  41687. h1 ^= k1;
  41688. } else {
  41689. h2 ^= k1;
  41690. }
  41691. }
  41692. this.h1 = h1;
  41693. this.h2 = h2;
  41694. return this;
  41695. },
  41696. hexdigest: function MurmurHash3_64_hexdigest () {
  41697. var h1 = this.h1;
  41698. var h2 = this.h2;
  41699. h1 ^= h2 >>> 1;
  41700. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  41701. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  41702. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  41703. h1 ^= h2 >>> 1;
  41704. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  41705. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  41706. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  41707. h1 ^= h2 >>> 1;
  41708. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  41709. var hex = (arr[i] >>> 0).toString(16);
  41710. while (hex.length < 8) {
  41711. hex = '0' + hex;
  41712. }
  41713. str += hex;
  41714. }
  41715. return str;
  41716. }
  41717. };
  41718. return MurmurHash3_64;
  41719. })();
  41720. }).call((typeof window === 'undefined') ? this : window);
  41721. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  41722. // workerSrc is not set -- using last script url to define default location
  41723. PDFJS.workerSrc = (function () {
  41724. 'use strict';
  41725. var scriptTagContainer = document.body ||
  41726. document.getElementsByTagName('head')[0];
  41727. var pdfjsSrc = scriptTagContainer.lastChild.src;
  41728. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  41729. })();
  41730. }