server.js 367 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500
  1. /* ====================================================================
  2. |
  3. | Amber Smalltalk
  4. | http://amber-lang.net
  5. |
  6. ======================================================================
  7. ======================================================================
  8. |
  9. | Copyright (c) 2010-2011
  10. | Nicolas Petton <petton.nicolas@gmail.com>
  11. |
  12. | Amber is released under the MIT license
  13. |
  14. | Permission is hereby granted, free of charge, to any person obtaining
  15. | a copy of this software and associated documentation files (the
  16. | 'Software'), to deal in the Software without restriction, including
  17. | without limitation the rights to use, copy, modify, merge, publish,
  18. | distribute, sublicense, and/or sell copies of the Software, and to
  19. | permit persons to whom the Software is furnished to do so, subject to
  20. | the following conditions:
  21. |
  22. | The above copyright notice and this permission notice shall be
  23. | included in all copies or substantial portions of the Software.
  24. |
  25. | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  26. | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  27. | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  28. | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  29. | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  30. | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  31. | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  32. |
  33. ==================================================================== */
  34. /* Smalltalk constructors definition */
  35. function SmalltalkObject(){};
  36. function SmalltalkBehavior(){};
  37. function SmalltalkClass(){};
  38. function SmalltalkPackage(){};
  39. function SmalltalkMetaclass(){
  40. this.meta = true;
  41. };
  42. function SmalltalkMethod(){};
  43. function SmalltalkNil(){};
  44. function Smalltalk(){
  45. var st = this;
  46. this.thisContext = undefined;
  47. /* We hold all Packages in a separate Object */
  48. st.packages = {};
  49. /* Smalltalk Package object. To add a Package, use smalltalk.addPackage() */
  50. function pkg(spec) {
  51. var that = new SmalltalkPackage();
  52. that.pkgName = spec.pkgName;
  53. that.requires = spec.requires || [];
  54. return that;
  55. };
  56. /* Smalltalk class creation. A class is an instance of an automatically
  57. created metaclass object. Newly created classes (not their metaclass)
  58. should be added to the smalltalk object, see smalltalk.addClass().
  59. Superclass linking is *not* handled here, see smalltalk.init() */
  60. function klass(spec) {
  61. var spec = spec || {};
  62. var that;
  63. if(spec.meta) {
  64. that = new SmalltalkMetaclass();
  65. } else {
  66. that = new (klass({meta: true})).fn;
  67. that.klass.instanceClass = that;
  68. that.className = spec.className;
  69. that.klass.className = that.className + ' class';
  70. }
  71. that.fn = spec.fn || function(){};
  72. that.superclass = spec.superclass;
  73. that.iVarNames = spec.iVarNames || [];
  74. if(that.superclass) {
  75. that.klass.superclass = that.superclass.klass;
  76. }
  77. that.pkg = spec.pkg;
  78. // For a while we keep the category attribute...
  79. if(!(spec.pkg === undefined)) {
  80. that.category = spec.pkg.pkgName;
  81. }
  82. that.fn.prototype.methods = {};
  83. that.fn.prototype.inheritedMethods = {};
  84. that.fn.prototype.klass = that;
  85. return that;
  86. };
  87. /* Smalltalk method object. To add a method to a class,
  88. use smalltalk.addMethod() */
  89. st.method = function(spec) {
  90. var that = new SmalltalkMethod();
  91. that.selector = spec.selector;
  92. that.jsSelector = spec.jsSelector;
  93. that.args = spec.args || {};
  94. that.category = spec.category;
  95. that.source = spec.source;
  96. that.messageSends = spec.messageSends || [];
  97. that.referencedClasses = spec.referencedClasses || [];
  98. that.fn = spec.fn;
  99. return that
  100. };
  101. /* Initialize a class in its class hierarchy. Handle both class and
  102. metaclasses. */
  103. st.init = function(klass) {
  104. var subclasses = st.subclasses(klass);
  105. var methods;
  106. if(klass.superclass && klass.superclass !== nil) {
  107. methods = st.methods(klass.superclass);
  108. //Methods linking
  109. for(var i in methods) {
  110. if(!klass.fn.prototype.methods[i]) {
  111. klass.fn.prototype.inheritedMethods[i] = methods[i];
  112. klass.fn.prototype[methods[i].jsSelector] = methods[i].fn;
  113. }
  114. }
  115. }
  116. for(var i=0;i<subclasses.length;i++) {
  117. st.init(subclasses[i]);
  118. }
  119. if(klass.klass && !klass.meta) {
  120. st.init(klass.klass);
  121. }
  122. };
  123. /* Answer all registered Packages as Array */
  124. st.packages.all = function() {
  125. var packages = [];
  126. for(var i in st.packages) {
  127. if (!st.packages.hasOwnProperty(i) || typeof(st.packages[i]) === "function") continue;
  128. packages.push(st.packages[i]);
  129. }
  130. return packages
  131. };
  132. /* Answer all registered Smalltalk classes */
  133. st.classes = function() {
  134. var classes = [];
  135. for(var i in st) {
  136. if(i.search(/^[A-Z]/g) != -1) {
  137. classes.push(st[i]);
  138. }
  139. }
  140. return classes
  141. };
  142. /* Answer all methods (included inherited ones) of klass. */
  143. st.methods = function(klass) {
  144. var methods = {};
  145. for(var i in klass.fn.prototype.methods) {
  146. methods[i] = klass.fn.prototype.methods[i]
  147. }
  148. for(var i in klass.fn.prototype.inheritedMethods) {
  149. methods[i] = klass.fn.prototype.inheritedMethods[i]
  150. }
  151. return methods;
  152. }
  153. /* Answer the direct subclasses of klass. */
  154. st.subclasses = function(klass) {
  155. var subclasses = [];
  156. var classes = st.classes();
  157. for(var i in classes) {
  158. if(classes[i].fn) {
  159. //Metaclasses
  160. if(classes[i].klass && classes[i].klass.superclass === klass) {
  161. subclasses.push(classes[i].klass);
  162. }
  163. //Classes
  164. if(classes[i].superclass === klass) {
  165. subclasses.push(classes[i]);
  166. }
  167. }
  168. }
  169. return subclasses;
  170. };
  171. /* Create a new class wrapping a JavaScript constructor, and add it to the
  172. global smalltalk object. Package is lazily created if it does not exist with given name. */
  173. st.mapClassName = function(className, pkgName, fn, superclass) {
  174. var pkg = st.addPackage(pkgName);
  175. st[className] = klass({
  176. className: className,
  177. superclass: superclass,
  178. pkg: pkg,
  179. fn: fn
  180. });
  181. };
  182. /* Add a package to the smalltalk.packages object, creating a new one if needed.
  183. If pkgName is nil or empty we return nil, which is an allowed package for a class. */
  184. st.addPackage = function(pkgName) {
  185. if(!pkgName) {return nil;}
  186. if(!(st.packages[pkgName])) {
  187. st.packages[pkgName] = pkg({
  188. pkgName: pkgName
  189. });
  190. }
  191. return st.packages[pkgName];
  192. };
  193. /* Add a class to the smalltalk object, creating a new one if needed.
  194. Package is lazily created if it does not exist with given name.*/
  195. st.addClass = function(className, superclass, iVarNames, pkgName) {
  196. var pkg = st.addPackage(pkgName);
  197. if(st[className]) {
  198. st[className].superclass = superclass;
  199. st[className].iVarNames = iVarNames;
  200. st[className].pkg = pkg || st[className].pkg;
  201. } else {
  202. st[className] = klass({
  203. className: className,
  204. superclass: superclass,
  205. pkg: pkg,
  206. iVarNames: iVarNames
  207. });
  208. }
  209. };
  210. /* Add a method to a class */
  211. st.addMethod = function(jsSelector, method, klass) {
  212. klass.fn.prototype[jsSelector] = method.fn;
  213. klass.fn.prototype.methods[method.selector] = method;
  214. method.methodClass = klass;
  215. method.jsSelector = jsSelector;
  216. };
  217. /* Handles Smalltalk message send. Automatically converts undefined to the nil object.
  218. If the receiver does not understand the selector, call its #doesNotUnderstand: method */
  219. sendWithoutContext = function(receiver, selector, args, klass) {
  220. if(receiver === undefined || receiver === null) {
  221. receiver = nil;
  222. }
  223. if(!klass && receiver.klass && receiver[selector]) {
  224. return receiver[selector].apply(receiver, args);
  225. } else if(klass && klass.fn.prototype[selector]) {
  226. return klass.fn.prototype[selector].apply(receiver, args)
  227. }
  228. return messageNotUnderstood(receiver, selector, args);
  229. };
  230. /* Handles unhandled errors during message sends */
  231. sendWithContext = function(receiver, selector, args, klass) {
  232. if(st.thisContext) {
  233. return withContextSend(receiver, selector, args, klass);
  234. } else {
  235. try {return withContextSend(receiver, selector, args, klass)}
  236. catch(error) {
  237. // Reset the context stack in any case
  238. st.thisContext = undefined;
  239. if(error.smalltalkError) {
  240. handleError(error);
  241. } else {
  242. throw(error);
  243. }
  244. }
  245. }
  246. };
  247. /* Same as sendWithoutContext but creates a methodContext. */
  248. withContextSend = function(receiver, selector, args, klass) {
  249. var call, context;
  250. if(receiver === undefined || receiver === null) {
  251. receiver = nil;
  252. }
  253. if(!klass && receiver.klass && receiver[selector]) {
  254. context = pushContext(receiver, selector, args);
  255. call = receiver[selector].apply(receiver, args);
  256. popContext(context);
  257. return call;
  258. } else if(klass && klass.fn.prototype[selector]) {
  259. context = pushContext(receiver, selector, args);
  260. call = klass.fn.prototype[selector].apply(receiver, args);
  261. popContext(context);
  262. return call;
  263. }
  264. return messageNotUnderstood(receiver, selector, args);
  265. };
  266. /* Handles Smalltalk errors. Triggers the registered ErrorHandler
  267. (See the Smalltalk class ErrorHandler and its subclasses */
  268. function handleError(error) {
  269. st.thisContext = undefined;
  270. smalltalk.ErrorHandler._current()._handleError_(error);
  271. }
  272. /* Handles #dnu: *and* JavaScript method calls.
  273. if the receiver has no klass, we consider it a JS object (outside of the
  274. Amber system). Else assume that the receiver understands #doesNotUnderstand: */
  275. function messageNotUnderstood(receiver, selector, args) {
  276. /* Handles JS method calls. */
  277. if(receiver.klass === undefined || receiver.allowJavaScriptCalls) {
  278. return callJavaScriptMethod(receiver, selector, args);
  279. }
  280. /* Handles not understood messages. Also see the Amber counter-part
  281. Object>>doesNotUnderstand: */
  282. return receiver._doesNotUnderstand_(
  283. st.Message._new()
  284. ._selector_(st.convertSelector(selector))
  285. ._arguments_(args)
  286. );
  287. };
  288. function callJavaScriptMethod(receiver, selector, args) {
  289. /* Call a method of a JS object, or answer a property if it exists.
  290. Else try wrapping a JSObjectProxy around the receiver.
  291. Converts keyword-based selectors by using the first
  292. keyword only, but keeping all message arguments.
  293. Example:
  294. "self do: aBlock with: anObject" -> "self.do(aBlock, anObject)" */
  295. var jsSelector = selector
  296. .replace(/^_/, '')
  297. .replace(/_.*/g, '');
  298. var jsProperty = receiver[jsSelector];
  299. if(typeof jsProperty === "function") {
  300. return jsProperty.apply(receiver, args);
  301. } else if(jsProperty !== undefined) {
  302. if(args[0]) {
  303. receiver[jsSelector] = args[0];
  304. return nil;
  305. } else {
  306. return jsProperty
  307. }
  308. }
  309. return st.send(st.JSObjectProxy._on_(receiver), selector, args);
  310. };
  311. /* Reuse old contexts stored in oldContexts */
  312. st.oldContexts = [];
  313. /* Handle thisContext pseudo variable */
  314. st.getThisContext = function() {
  315. if(st.thisContext) {
  316. return st.thisContext.copy();
  317. } else {
  318. return undefined;
  319. }
  320. }
  321. pushContext = function(receiver, selector, temps) {
  322. if(st.thisContext) {
  323. return st.thisContext = st.thisContext.newContext(receiver, selector, temps);
  324. } else {
  325. return st.thisContext = new SmalltalkMethodContext(receiver, selector, temps);
  326. }
  327. };
  328. popContext = function(context) {
  329. if(context) {
  330. context.removeYourself();
  331. }
  332. };
  333. /* Convert a string to a valid smalltalk selector.
  334. if you modify the following functions, also change String>>asSelector
  335. accordingly */
  336. st.convertSelector = function(selector) {
  337. if(selector.match(/__/)) {
  338. return convertBinarySelector(selector);
  339. } else {
  340. return convertKeywordSelector(selector);
  341. }
  342. };
  343. function convertKeywordSelector(selector) {
  344. return selector.replace(/^_/, '').replace(/_/g, ':');
  345. };
  346. function convertBinarySelector(selector) {
  347. return selector
  348. .replace(/^_/, '')
  349. .replace(/_plus/, '+')
  350. .replace(/_minus/, '-')
  351. .replace(/_star/, '*')
  352. .replace(/_slash/, '/')
  353. .replace(/_gt/, '>')
  354. .replace(/_lt/, '<')
  355. .replace(/_eq/, '=')
  356. .replace(/_comma/, ',')
  357. .replace(/_at/, '@')
  358. };
  359. /* Converts a JavaScript object to valid Smalltalk Object */
  360. st.readJSObject = function(js) {
  361. var object = js;
  362. var readObject = (js.constructor === Object);
  363. var readArray = (js.constructor === Array);
  364. if(readObject) {
  365. object = smalltalk.Dictionary._new();
  366. }
  367. for(var i in js) {
  368. if(readObject) {
  369. object._at_put_(i, st.readJSObject(js[i]));
  370. }
  371. if(readArray) {
  372. object[i] = st.readJSObject(js[i]);
  373. }
  374. }
  375. return object;
  376. };
  377. /* Toggle deployment mode (no context will be handled during message send */
  378. st.setDeploymentMode = function() {
  379. st.send = sendWithoutContext;
  380. };
  381. st.setDevelopmentMode = function() {
  382. st.send = sendWithContext;
  383. }
  384. /* Set development mode by default */
  385. st.setDevelopmentMode();
  386. }
  387. function SmalltalkMethodContext(receiver, selector, temps, home) {
  388. var that = this;
  389. that.receiver = receiver;
  390. that.selector = selector;
  391. that.temps = temps || {};
  392. that.homeContext = home;
  393. that.copy = function() {
  394. var home = that.homeContext;
  395. if(home) {home = home.copy()}
  396. return new SmalltalkMethodContext(
  397. that.receiver,
  398. that.selector,
  399. that.temps,
  400. home
  401. );
  402. }
  403. that.newContext = function(receiver, selector, temps) {
  404. var c = smalltalk.oldContexts.pop();
  405. if(c) {
  406. c.homeContext = that;
  407. c.receiver = receiver;
  408. c.selector = selector;
  409. c.temps = temps || {};
  410. } else {
  411. c = new SmalltalkMethodContext(receiver, selector, temps, that);
  412. }
  413. return c;
  414. }
  415. that.removeYourself = function() {
  416. smalltalk.thisContext = that.homeContext;
  417. that.homeContext = undefined;
  418. smalltalk.oldContexts.push(that);
  419. }
  420. }
  421. /* Global Smalltalk objects. */
  422. var nil = new SmalltalkNil();
  423. var smalltalk = new Smalltalk();
  424. if(this.jQuery) {
  425. this.jQuery.allowJavaScriptCalls = true;
  426. }
  427. /****************************************************************************************/
  428. /* Base classes mapping. If you edit this part, do not forget to set the superclass of the
  429. object metaclass to Class after the definition of Object */
  430. smalltalk.mapClassName("Object", "Kernel", SmalltalkObject);
  431. smalltalk.mapClassName("Smalltalk", "Kernel", Smalltalk, smalltalk.Object);
  432. smalltalk.mapClassName("Package", "Kernel", SmalltalkPackage, smalltalk.Object);
  433. smalltalk.mapClassName("Behavior", "Kernel", SmalltalkBehavior, smalltalk.Object);
  434. smalltalk.mapClassName("Class", "Kernel", SmalltalkClass, smalltalk.Behavior);
  435. smalltalk.mapClassName("Metaclass", "Kernel", SmalltalkMetaclass, smalltalk.Behavior);
  436. smalltalk.mapClassName("CompiledMethod", "Kernel", SmalltalkMethod, smalltalk.Object);
  437. smalltalk.Object.klass.superclass = smalltalk.Class;
  438. smalltalk.mapClassName("Number", "Kernel", Number, smalltalk.Object);
  439. smalltalk.mapClassName("BlockClosure", "Kernel", Function, smalltalk.Object);
  440. smalltalk.mapClassName("Boolean", "Kernel", Boolean, smalltalk.Object);
  441. smalltalk.mapClassName("Date", "Kernel", Date, smalltalk.Object);
  442. smalltalk.mapClassName("UndefinedObject", "Kernel", SmalltalkNil, smalltalk.Object);
  443. smalltalk.mapClassName("Collection", "Kernel", null, smalltalk.Object);
  444. smalltalk.mapClassName("SequenceableCollection", "Kernel", null, smalltalk.Collection);
  445. smalltalk.mapClassName("String", "Kernel", String, smalltalk.SequenceableCollection);
  446. smalltalk.mapClassName("Array", "Kernel", Array, smalltalk.SequenceableCollection);
  447. smalltalk.mapClassName("RegularExpression", "Kernel", RegExp, smalltalk.String);
  448. smalltalk.mapClassName("Error", "Kernel", Error, smalltalk.Object);
  449. smalltalk.mapClassName("MethodContext", "Kernel", SmalltalkMethodContext, smalltalk.Object);
  450. smalltalk.addClass('Object', smalltalk.nil, [], 'Kernel');
  451. smalltalk.addMethod(
  452. unescape('__eq'),
  453. smalltalk.method({
  454. selector: unescape('%3D'),
  455. category: 'comparing',
  456. fn: function (anObject){
  457. var self=this;
  458. return smalltalk.send(self, "__eq_eq", [anObject]);
  459. return self;},
  460. args: ["anObject"],
  461. source: unescape('%3D%20anObject%0A%09%5Eself%20%3D%3D%20anObject'),
  462. messageSends: [unescape("%3D%3D")],
  463. referencedClasses: []
  464. }),
  465. smalltalk.Object);
  466. smalltalk.addMethod(
  467. unescape('_%7E_eq'),
  468. smalltalk.method({
  469. selector: unescape('%7E%3D'),
  470. category: 'comparing',
  471. fn: function (anObject){
  472. var self=this;
  473. return smalltalk.send(smalltalk.send(self, "__eq", [anObject]), "__eq", [false]);
  474. return self;},
  475. args: ["anObject"],
  476. source: unescape('%7E%3D%20anObject%0A%09%5E%28self%20%3D%20anObject%29%20%3D%20false'),
  477. messageSends: [unescape("%3D")],
  478. referencedClasses: []
  479. }),
  480. smalltalk.Object);
  481. smalltalk.addMethod(
  482. unescape('_initialize'),
  483. smalltalk.method({
  484. selector: unescape('initialize'),
  485. category: 'initialization',
  486. fn: function (){
  487. var self=this;
  488. return self;},
  489. args: [],
  490. source: unescape('initialize'),
  491. messageSends: [],
  492. referencedClasses: []
  493. }),
  494. smalltalk.Object);
  495. smalltalk.addMethod(
  496. unescape('_yourself'),
  497. smalltalk.method({
  498. selector: unescape('yourself'),
  499. category: 'accessing',
  500. fn: function (){
  501. var self=this;
  502. return self;
  503. return self;},
  504. args: [],
  505. source: unescape('yourself%0A%09%5Eself'),
  506. messageSends: [],
  507. referencedClasses: []
  508. }),
  509. smalltalk.Object);
  510. smalltalk.addMethod(
  511. unescape('_class'),
  512. smalltalk.method({
  513. selector: unescape('class'),
  514. category: 'accessing',
  515. fn: function (){
  516. var self=this;
  517. return self.klass;
  518. return self;},
  519. args: [],
  520. source: unescape('class%0A%09%3Creturn%20self.klass%3E'),
  521. messageSends: [],
  522. referencedClasses: []
  523. }),
  524. smalltalk.Object);
  525. smalltalk.addMethod(
  526. unescape('_size'),
  527. smalltalk.method({
  528. selector: unescape('size'),
  529. category: 'accessing',
  530. fn: function (){
  531. var self=this;
  532. smalltalk.send(self, "_error_", ["Object not indexable"]);
  533. return self;},
  534. args: [],
  535. source: unescape('size%0A%09self%20error%3A%20%27Object%20not%20indexable%27'),
  536. messageSends: ["error:"],
  537. referencedClasses: []
  538. }),
  539. smalltalk.Object);
  540. smalltalk.addMethod(
  541. unescape('_copy'),
  542. smalltalk.method({
  543. selector: unescape('copy'),
  544. category: 'copying',
  545. fn: function (){
  546. var self=this;
  547. return smalltalk.send(smalltalk.send(self, "_shallowCopy", []), "_postCopy", []);
  548. return self;},
  549. args: [],
  550. source: unescape('copy%0A%09%5Eself%20shallowCopy%20postCopy'),
  551. messageSends: ["postCopy", "shallowCopy"],
  552. referencedClasses: []
  553. }),
  554. smalltalk.Object);
  555. smalltalk.addMethod(
  556. unescape('_shallowCopy'),
  557. smalltalk.method({
  558. selector: unescape('shallowCopy'),
  559. category: 'copying',
  560. fn: function (){
  561. var self=this;
  562. var copy = self.klass._new();
  563. for(var i in self) {
  564. if(/^@.+/.test(i)) {
  565. copy[i] = self[i];
  566. }
  567. }
  568. return copy;
  569. ;
  570. return self;},
  571. args: [],
  572. source: unescape('shallowCopy%0A%09%3C%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  573. messageSends: [],
  574. referencedClasses: []
  575. }),
  576. smalltalk.Object);
  577. smalltalk.addMethod(
  578. unescape('_deepCopy'),
  579. smalltalk.method({
  580. selector: unescape('deepCopy'),
  581. category: 'copying',
  582. fn: function (){
  583. var self=this;
  584. var copy = self.klass._new();
  585. for(var i in self) {
  586. if(/^@.+/.test(i)) {
  587. copy[i] = self[i]._deepCopy();
  588. }
  589. }
  590. return copy;
  591. ;
  592. return self;},
  593. args: [],
  594. source: unescape('deepCopy%0A%09%3C%20%20%20%20%0A%09%20%20%20%20var%20copy%20%3D%20self.klass._new%28%29%3B%0A%09%20%20%20%20for%28var%20i%20in%20self%29%20%7B%0A%09%09if%28/%5E@.+/.test%28i%29%29%20%7B%0A%09%09%20%20%20%20copy%5Bi%5D%20%3D%20self%5Bi%5D._deepCopy%28%29%3B%0A%09%09%7D%0A%09%20%20%20%20%7D%0A%09%20%20%20%20return%20copy%3B%0A%09%3E'),
  595. messageSends: [],
  596. referencedClasses: []
  597. }),
  598. smalltalk.Object);
  599. smalltalk.addMethod(
  600. unescape('_postCopy'),
  601. smalltalk.method({
  602. selector: unescape('postCopy'),
  603. category: 'copying',
  604. fn: function (){
  605. var self=this;
  606. return self;},
  607. args: [],
  608. source: unescape('postCopy'),
  609. messageSends: [],
  610. referencedClasses: []
  611. }),
  612. smalltalk.Object);
  613. smalltalk.addMethod(
  614. unescape('__minus_gt'),
  615. smalltalk.method({
  616. selector: unescape('-%3E'),
  617. category: 'converting',
  618. fn: function (anObject){
  619. var self=this;
  620. return smalltalk.send((smalltalk.Association || Association), "_key_value_", [self, anObject]);
  621. return self;},
  622. args: ["anObject"],
  623. source: unescape('-%3E%20anObject%0A%09%5EAssociation%20key%3A%20self%20value%3A%20anObject'),
  624. messageSends: ["key:value:"],
  625. referencedClasses: [smalltalk.Association]
  626. }),
  627. smalltalk.Object);
  628. smalltalk.addMethod(
  629. unescape('_asString'),
  630. smalltalk.method({
  631. selector: unescape('asString'),
  632. category: 'converting',
  633. fn: function (){
  634. var self=this;
  635. return smalltalk.send(self, "_printString", []);
  636. return self;},
  637. args: [],
  638. source: unescape('asString%0A%09%5Eself%20printString'),
  639. messageSends: ["printString"],
  640. referencedClasses: []
  641. }),
  642. smalltalk.Object);
  643. smalltalk.addMethod(
  644. unescape('_asJavascript'),
  645. smalltalk.method({
  646. selector: unescape('asJavascript'),
  647. category: 'converting',
  648. fn: function (){
  649. var self=this;
  650. return smalltalk.send(self, "_asString", []);
  651. return self;},
  652. args: [],
  653. source: unescape('asJavascript%0A%09%5Eself%20asString'),
  654. messageSends: ["asString"],
  655. referencedClasses: []
  656. }),
  657. smalltalk.Object);
  658. smalltalk.addMethod(
  659. unescape('_perform_'),
  660. smalltalk.method({
  661. selector: unescape('perform%3A'),
  662. category: 'message handling',
  663. fn: function (aSymbol){
  664. var self=this;
  665. return smalltalk.send(self, "_perform_withArguments_", [aSymbol, []]);
  666. return self;},
  667. args: ["aSymbol"],
  668. source: unescape('perform%3A%20aSymbol%0A%09%5Eself%20perform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  669. messageSends: ["perform:withArguments:"],
  670. referencedClasses: []
  671. }),
  672. smalltalk.Object);
  673. smalltalk.addMethod(
  674. unescape('_perform_withArguments_'),
  675. smalltalk.method({
  676. selector: unescape('perform%3AwithArguments%3A'),
  677. category: 'message handling',
  678. fn: function (aSymbol, aCollection){
  679. var self=this;
  680. return smalltalk.send(self, "_basicPerform_withArguments_", [smalltalk.send(aSymbol, "_asSelector", []), aCollection]);
  681. return self;},
  682. args: ["aSymbol", "aCollection"],
  683. source: unescape('perform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%5Eself%20basicPerform%3A%20aSymbol%20asSelector%20withArguments%3A%20aCollection'),
  684. messageSends: ["basicPerform:withArguments:", "asSelector"],
  685. referencedClasses: []
  686. }),
  687. smalltalk.Object);
  688. smalltalk.addMethod(
  689. unescape('_instVarAt_'),
  690. smalltalk.method({
  691. selector: unescape('instVarAt%3A'),
  692. category: 'accessing',
  693. fn: function (aString){
  694. var self=this;
  695. return self['@'+aString];
  696. return self;},
  697. args: ["aString"],
  698. source: unescape('instVarAt%3A%20aString%0A%09%3Creturn%20self%5B%27@%27+aString%5D%3E'),
  699. messageSends: [],
  700. referencedClasses: []
  701. }),
  702. smalltalk.Object);
  703. smalltalk.addMethod(
  704. unescape('_instVarAt_put_'),
  705. smalltalk.method({
  706. selector: unescape('instVarAt%3Aput%3A'),
  707. category: 'accessing',
  708. fn: function (aString, anObject){
  709. var self=this;
  710. self['@' + aString] = anObject;
  711. return self;},
  712. args: ["aString", "anObject"],
  713. source: unescape('instVarAt%3A%20aString%20put%3A%20anObject%0A%09%3Cself%5B%27@%27%20+%20aString%5D%20%3D%20anObject%3E'),
  714. messageSends: [],
  715. referencedClasses: []
  716. }),
  717. smalltalk.Object);
  718. smalltalk.addMethod(
  719. unescape('_basicAt_'),
  720. smalltalk.method({
  721. selector: unescape('basicAt%3A'),
  722. category: 'accessing',
  723. fn: function (aString){
  724. var self=this;
  725. return self[aString];
  726. return self;},
  727. args: ["aString"],
  728. source: unescape('basicAt%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  729. messageSends: [],
  730. referencedClasses: []
  731. }),
  732. smalltalk.Object);
  733. smalltalk.addMethod(
  734. unescape('_basicAt_put_'),
  735. smalltalk.method({
  736. selector: unescape('basicAt%3Aput%3A'),
  737. category: 'accessing',
  738. fn: function (aString, anObject){
  739. var self=this;
  740. return self[aString] = anObject;
  741. return self;},
  742. args: ["aString", "anObject"],
  743. source: unescape('basicAt%3A%20aString%20put%3A%20anObject%0A%09%3Creturn%20self%5BaString%5D%20%3D%20anObject%3E'),
  744. messageSends: [],
  745. referencedClasses: []
  746. }),
  747. smalltalk.Object);
  748. smalltalk.addMethod(
  749. unescape('_error_'),
  750. smalltalk.method({
  751. selector: unescape('error%3A'),
  752. category: 'error handling',
  753. fn: function (aString){
  754. var self=this;
  755. smalltalk.send((smalltalk.Error || Error), "_signal_", [aString]);
  756. return self;},
  757. args: ["aString"],
  758. source: unescape('error%3A%20aString%0A%09Error%20signal%3A%20aString'),
  759. messageSends: ["signal:"],
  760. referencedClasses: [smalltalk.Error]
  761. }),
  762. smalltalk.Object);
  763. smalltalk.addMethod(
  764. unescape('_subclassResponsibility'),
  765. smalltalk.method({
  766. selector: unescape('subclassResponsibility'),
  767. category: 'error handling',
  768. fn: function (){
  769. var self=this;
  770. smalltalk.send(self, "_error_", ["This method is a responsibility of a subclass"]);
  771. return self;},
  772. args: [],
  773. source: unescape('subclassResponsibility%0A%09self%20error%3A%20%27This%20method%20is%20a%20responsibility%20of%20a%20subclass%27'),
  774. messageSends: ["error:"],
  775. referencedClasses: []
  776. }),
  777. smalltalk.Object);
  778. smalltalk.addMethod(
  779. unescape('_shouldNotImplement'),
  780. smalltalk.method({
  781. selector: unescape('shouldNotImplement'),
  782. category: 'error handling',
  783. fn: function (){
  784. var self=this;
  785. smalltalk.send(self, "_error_", [smalltalk.send("This method should not be implemented in ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])])]);
  786. return self;},
  787. args: [],
  788. source: unescape('shouldNotImplement%0A%09self%20error%3A%20%27This%20method%20should%20not%20be%20implemented%20in%20%27%2C%20self%20class%20name'),
  789. messageSends: ["error:", unescape("%2C"), "name", "class"],
  790. referencedClasses: []
  791. }),
  792. smalltalk.Object);
  793. smalltalk.addMethod(
  794. unescape('_try_catch_'),
  795. smalltalk.method({
  796. selector: unescape('try%3Acatch%3A'),
  797. category: 'error handling',
  798. fn: function (aBlock, anotherBlock){
  799. var self=this;
  800. try{aBlock()} catch(e) {anotherBlock(e)};
  801. return self;},
  802. args: ["aBlock", "anotherBlock"],
  803. source: unescape('try%3A%20aBlock%20catch%3A%20anotherBlock%0A%09%3Ctry%7BaBlock%28%29%7D%20catch%28e%29%20%7BanotherBlock%28e%29%7D%3E'),
  804. messageSends: [],
  805. referencedClasses: []
  806. }),
  807. smalltalk.Object);
  808. smalltalk.addMethod(
  809. unescape('_printString'),
  810. smalltalk.method({
  811. selector: unescape('printString'),
  812. category: 'printing',
  813. fn: function (){
  814. var self=this;
  815. return smalltalk.send("a ", "__comma", [smalltalk.send(smalltalk.send(self, "_class", []), "_name", [])]);
  816. return self;},
  817. args: [],
  818. source: unescape('printString%0A%09%5E%27a%20%27%2C%20self%20class%20name'),
  819. messageSends: [unescape("%2C"), "name", "class"],
  820. referencedClasses: []
  821. }),
  822. smalltalk.Object);
  823. smalltalk.addMethod(
  824. unescape('_printNl'),
  825. smalltalk.method({
  826. selector: unescape('printNl'),
  827. category: 'printing',
  828. fn: function (){
  829. var self=this;
  830. console.log(self);
  831. return self;},
  832. args: [],
  833. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  834. messageSends: [],
  835. referencedClasses: []
  836. }),
  837. smalltalk.Object);
  838. smalltalk.addMethod(
  839. unescape('_isKindOf_'),
  840. smalltalk.method({
  841. selector: unescape('isKindOf%3A'),
  842. category: 'testing',
  843. fn: function (aClass){
  844. var self=this;
  845. return ((($receiver = smalltalk.send(self, "_isMemberOf_", [aClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return true;})() : (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return true;}), (function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_inheritsFrom_", [aClass]);})]));
  846. return self;},
  847. args: ["aClass"],
  848. source: unescape('isKindOf%3A%20aClass%0A%09%5E%28self%20isMemberOf%3A%20aClass%29%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20class%20inheritsFrom%3A%20aClass%5D'),
  849. messageSends: ["ifTrue:ifFalse:", "isMemberOf:", "inheritsFrom:", "class"],
  850. referencedClasses: []
  851. }),
  852. smalltalk.Object);
  853. smalltalk.addMethod(
  854. unescape('_isMemberOf_'),
  855. smalltalk.method({
  856. selector: unescape('isMemberOf%3A'),
  857. category: 'testing',
  858. fn: function (aClass){
  859. var self=this;
  860. return smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [aClass]);
  861. return self;},
  862. args: ["aClass"],
  863. source: unescape('isMemberOf%3A%20aClass%0A%09%5Eself%20class%20%3D%20aClass'),
  864. messageSends: [unescape("%3D"), "class"],
  865. referencedClasses: []
  866. }),
  867. smalltalk.Object);
  868. smalltalk.addMethod(
  869. unescape('_ifNil_'),
  870. smalltalk.method({
  871. selector: unescape('ifNil%3A'),
  872. category: 'testing',
  873. fn: function (aBlock){
  874. var self=this;
  875. return self;
  876. return self;},
  877. args: ["aBlock"],
  878. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  879. messageSends: [],
  880. referencedClasses: []
  881. }),
  882. smalltalk.Object);
  883. smalltalk.addMethod(
  884. unescape('_ifNil_ifNotNil_'),
  885. smalltalk.method({
  886. selector: unescape('ifNil%3AifNotNil%3A'),
  887. category: 'testing',
  888. fn: function (aBlock, anotherBlock){
  889. var self=this;
  890. return smalltalk.send(anotherBlock, "_value", []);
  891. return self;},
  892. args: ["aBlock", "anotherBlock"],
  893. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  894. messageSends: ["value"],
  895. referencedClasses: []
  896. }),
  897. smalltalk.Object);
  898. smalltalk.addMethod(
  899. unescape('_ifNotNil_'),
  900. smalltalk.method({
  901. selector: unescape('ifNotNil%3A'),
  902. category: 'testing',
  903. fn: function (aBlock){
  904. var self=this;
  905. return smalltalk.send(aBlock, "_value", []);
  906. return self;},
  907. args: ["aBlock"],
  908. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  909. messageSends: ["value"],
  910. referencedClasses: []
  911. }),
  912. smalltalk.Object);
  913. smalltalk.addMethod(
  914. unescape('_ifNotNil_ifNil_'),
  915. smalltalk.method({
  916. selector: unescape('ifNotNil%3AifNil%3A'),
  917. category: 'testing',
  918. fn: function (aBlock, anotherBlock){
  919. var self=this;
  920. return smalltalk.send(aBlock, "_value", []);
  921. return self;},
  922. args: ["aBlock", "anotherBlock"],
  923. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  924. messageSends: ["value"],
  925. referencedClasses: []
  926. }),
  927. smalltalk.Object);
  928. smalltalk.addMethod(
  929. unescape('_isNil'),
  930. smalltalk.method({
  931. selector: unescape('isNil'),
  932. category: 'testing',
  933. fn: function (){
  934. var self=this;
  935. return false;
  936. return self;},
  937. args: [],
  938. source: unescape('isNil%0A%09%5Efalse'),
  939. messageSends: [],
  940. referencedClasses: []
  941. }),
  942. smalltalk.Object);
  943. smalltalk.addMethod(
  944. unescape('_notNil'),
  945. smalltalk.method({
  946. selector: unescape('notNil'),
  947. category: 'testing',
  948. fn: function (){
  949. var self=this;
  950. return smalltalk.send(smalltalk.send(self, "_isNil", []), "_not", []);
  951. return self;},
  952. args: [],
  953. source: unescape('notNil%0A%09%5Eself%20isNil%20not'),
  954. messageSends: ["not", "isNil"],
  955. referencedClasses: []
  956. }),
  957. smalltalk.Object);
  958. smalltalk.addMethod(
  959. unescape('_isClass'),
  960. smalltalk.method({
  961. selector: unescape('isClass'),
  962. category: 'testing',
  963. fn: function (){
  964. var self=this;
  965. return false;
  966. return self;},
  967. args: [],
  968. source: unescape('isClass%0A%09%5Efalse'),
  969. messageSends: [],
  970. referencedClasses: []
  971. }),
  972. smalltalk.Object);
  973. smalltalk.addMethod(
  974. unescape('_isMetaclass'),
  975. smalltalk.method({
  976. selector: unescape('isMetaclass'),
  977. category: 'testing',
  978. fn: function (){
  979. var self=this;
  980. return false;
  981. return self;},
  982. args: [],
  983. source: unescape('isMetaclass%0A%09%5Efalse'),
  984. messageSends: [],
  985. referencedClasses: []
  986. }),
  987. smalltalk.Object);
  988. smalltalk.addMethod(
  989. unescape('_isNumber'),
  990. smalltalk.method({
  991. selector: unescape('isNumber'),
  992. category: 'testing',
  993. fn: function (){
  994. var self=this;
  995. return false;
  996. return self;},
  997. args: [],
  998. source: unescape('isNumber%0A%09%5Efalse'),
  999. messageSends: [],
  1000. referencedClasses: []
  1001. }),
  1002. smalltalk.Object);
  1003. smalltalk.addMethod(
  1004. unescape('_isString'),
  1005. smalltalk.method({
  1006. selector: unescape('isString'),
  1007. category: 'testing',
  1008. fn: function (){
  1009. var self=this;
  1010. return false;
  1011. return self;},
  1012. args: [],
  1013. source: unescape('isString%0A%09%5Efalse'),
  1014. messageSends: [],
  1015. referencedClasses: []
  1016. }),
  1017. smalltalk.Object);
  1018. smalltalk.addMethod(
  1019. unescape('_isParseFailure'),
  1020. smalltalk.method({
  1021. selector: unescape('isParseFailure'),
  1022. category: 'testing',
  1023. fn: function (){
  1024. var self=this;
  1025. return false;
  1026. return self;},
  1027. args: [],
  1028. source: unescape('isParseFailure%0A%09%5Efalse'),
  1029. messageSends: [],
  1030. referencedClasses: []
  1031. }),
  1032. smalltalk.Object);
  1033. smalltalk.addMethod(
  1034. unescape('_basicPerform_'),
  1035. smalltalk.method({
  1036. selector: unescape('basicPerform%3A'),
  1037. category: 'message handling',
  1038. fn: function (aSymbol){
  1039. var self=this;
  1040. return smalltalk.send(self, "_basicPerform_withArguments_", [aSymbol, []]);
  1041. return self;},
  1042. args: ["aSymbol"],
  1043. source: unescape('basicPerform%3A%20aSymbol%20%0A%09%5Eself%20basicPerform%3A%20aSymbol%20withArguments%3A%20%23%28%29'),
  1044. messageSends: ["basicPerform:withArguments:"],
  1045. referencedClasses: []
  1046. }),
  1047. smalltalk.Object);
  1048. smalltalk.addMethod(
  1049. unescape('_basicPerform_withArguments_'),
  1050. smalltalk.method({
  1051. selector: unescape('basicPerform%3AwithArguments%3A'),
  1052. category: 'message handling',
  1053. fn: function (aSymbol, aCollection){
  1054. var self=this;
  1055. return self[aSymbol].apply(self, aCollection);;
  1056. return self;},
  1057. args: ["aSymbol", "aCollection"],
  1058. source: unescape('basicPerform%3A%20aSymbol%20withArguments%3A%20aCollection%0A%09%3Creturn%20self%5BaSymbol%5D.apply%28self%2C%20aCollection%29%3B%3E'),
  1059. messageSends: [],
  1060. referencedClasses: []
  1061. }),
  1062. smalltalk.Object);
  1063. smalltalk.addMethod(
  1064. unescape('_basicDelete_'),
  1065. smalltalk.method({
  1066. selector: unescape('basicDelete%3A'),
  1067. category: 'accessing',
  1068. fn: function (aString){
  1069. var self=this;
  1070. delete self[aString];
  1071. return self;},
  1072. args: ["aString"],
  1073. source: unescape('basicDelete%3A%20aString%0A%20%20%20%20%3Cdelete%20self%5BaString%5D%3E'),
  1074. messageSends: [],
  1075. referencedClasses: []
  1076. }),
  1077. smalltalk.Object);
  1078. smalltalk.addMethod(
  1079. unescape('_doesNotUnderstand_'),
  1080. smalltalk.method({
  1081. selector: unescape('doesNotUnderstand%3A'),
  1082. category: 'error handling',
  1083. fn: function (aMessage){
  1084. var self=this;
  1085. (function($rec){smalltalk.send($rec, "_receiver_", [self]);smalltalk.send($rec, "_message_", [aMessage]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send((smalltalk.MessageNotUnderstood || MessageNotUnderstood), "_new", []));
  1086. return self;},
  1087. args: ["aMessage"],
  1088. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09MessageNotUnderstood%20new%0A%09%09receiver%3A%20self%3B%0A%09%09message%3A%20aMessage%3B%0A%09%09signal'),
  1089. messageSends: ["receiver:", "message:", "signal", "new"],
  1090. referencedClasses: [smalltalk.MessageNotUnderstood]
  1091. }),
  1092. smalltalk.Object);
  1093. smalltalk.addMethod(
  1094. unescape('_asJSON'),
  1095. smalltalk.method({
  1096. selector: unescape('asJSON'),
  1097. category: 'converting',
  1098. fn: function (){
  1099. var self=this;
  1100. return JSON.stringify(self._asJSONObject());
  1101. return self;},
  1102. args: [],
  1103. source: unescape('asJSON%0A%09%3Creturn%20JSON.stringify%28self._asJSONObject%28%29%29%3E'),
  1104. messageSends: [],
  1105. referencedClasses: []
  1106. }),
  1107. smalltalk.Object);
  1108. smalltalk.addMethod(
  1109. unescape('_asJSONObject'),
  1110. smalltalk.method({
  1111. selector: unescape('asJSONObject'),
  1112. category: 'converting',
  1113. fn: function (){
  1114. var self=this;
  1115. var object=nil;
  1116. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  1117. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(object, "_basicAt_put_", [each, smalltalk.send(smalltalk.send(self, "_instVarAt_", [each]), "_asJSONObject", [])]);})]);
  1118. return object;
  1119. return self;},
  1120. args: [],
  1121. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09object%20basicAt%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%20asJSONObject%5D.%0A%09%5Eobject'),
  1122. messageSends: ["new", "do:", "instanceVariableNames", "class", "basicAt:put:", "asJSONObject", "instVarAt:"],
  1123. referencedClasses: [smalltalk.Object]
  1124. }),
  1125. smalltalk.Object);
  1126. smalltalk.addMethod(
  1127. unescape('_halt'),
  1128. smalltalk.method({
  1129. selector: unescape('halt'),
  1130. category: 'error handling',
  1131. fn: function (){
  1132. var self=this;
  1133. smalltalk.send(self, "_error_", ["Halt encountered"]);
  1134. return self;},
  1135. args: [],
  1136. source: unescape('halt%0A%09self%20error%3A%20%27Halt%20encountered%27'),
  1137. messageSends: ["error:"],
  1138. referencedClasses: []
  1139. }),
  1140. smalltalk.Object);
  1141. smalltalk.addMethod(
  1142. unescape('_log_block_'),
  1143. smalltalk.method({
  1144. selector: unescape('log%3Ablock%3A'),
  1145. category: 'printing',
  1146. fn: function (aString, aBlock){
  1147. var self=this;
  1148. var result=nil;
  1149. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(smalltalk.send(aString, "__comma", [" time: "]), "__comma", [smalltalk.send(smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return result=smalltalk.send(aBlock, "_value", []);})]), "_printString", [])])]);
  1150. return result;
  1151. return self;},
  1152. args: ["aString", "aBlock"],
  1153. source: unescape('log%3A%20aString%20block%3A%20aBlock%0A%0A%09%7C%20result%20%7C%0A%09console%20log%3A%20%20aString%2C%20%20%27%20time%3A%20%27%2C%20%28Date%20millisecondsToRun%3A%20%5Bresult%20%3A%3D%20aBlock%20value%5D%29%20printString.%0A%09%5Eresult'),
  1154. messageSends: ["log:", unescape("%2C"), "printString", "millisecondsToRun:", "value"],
  1155. referencedClasses: [smalltalk.Date]
  1156. }),
  1157. smalltalk.Object);
  1158. smalltalk.addMethod(
  1159. unescape('__eq_eq'),
  1160. smalltalk.method({
  1161. selector: unescape('%3D%3D'),
  1162. category: 'comparing',
  1163. fn: function (anObject){
  1164. var self=this;
  1165. return self === anObject;
  1166. return self;},
  1167. args: ["anObject"],
  1168. source: unescape('%3D%3D%20anObject%0A%09%3Creturn%20self%20%3D%3D%3D%20anObject%3E'),
  1169. messageSends: [],
  1170. referencedClasses: []
  1171. }),
  1172. smalltalk.Object);
  1173. smalltalk.addMethod(
  1174. unescape('_%7E%7E'),
  1175. smalltalk.method({
  1176. selector: unescape('%7E%7E'),
  1177. category: 'comparing',
  1178. fn: function (anObject){
  1179. var self=this;
  1180. return smalltalk.send(smalltalk.send(self, "__eq_eq", [anObject]), "__eq", [false]);
  1181. return self;},
  1182. args: ["anObject"],
  1183. source: unescape('%7E%7E%20anObject%0A%09%5E%28self%20%3D%3D%20anObject%29%20%3D%20false'),
  1184. messageSends: [unescape("%3D"), unescape("%3D%3D")],
  1185. referencedClasses: []
  1186. }),
  1187. smalltalk.Object);
  1188. smalltalk.addMethod(
  1189. unescape('_initialize'),
  1190. smalltalk.method({
  1191. selector: unescape('initialize'),
  1192. category: 'initialization',
  1193. fn: function (){
  1194. var self=this;
  1195. return self;},
  1196. args: [],
  1197. source: unescape('initialize%0A%09%22no%20op%22'),
  1198. messageSends: [],
  1199. referencedClasses: []
  1200. }),
  1201. smalltalk.Object.klass);
  1202. smalltalk.addClass('Smalltalk', smalltalk.Object, [], 'Kernel');
  1203. smalltalk.addMethod(
  1204. unescape('_classes'),
  1205. smalltalk.method({
  1206. selector: unescape('classes'),
  1207. category: 'accessing',
  1208. fn: function (){
  1209. var self=this;
  1210. return self.classes();
  1211. return self;},
  1212. args: [],
  1213. source: unescape('classes%0A%09%3Creturn%20self.classes%28%29%3E'),
  1214. messageSends: [],
  1215. referencedClasses: []
  1216. }),
  1217. smalltalk.Smalltalk);
  1218. smalltalk.addMethod(
  1219. unescape('_readJSON_'),
  1220. smalltalk.method({
  1221. selector: unescape('readJSON%3A'),
  1222. category: 'accessing',
  1223. fn: function (anObject){
  1224. var self=this;
  1225. return self.readJSObject(anObject);
  1226. return self;},
  1227. args: ["anObject"],
  1228. source: unescape('readJSON%3A%20anObject%0A%09%3Creturn%20self.readJSObject%28anObject%29%3E'),
  1229. messageSends: [],
  1230. referencedClasses: []
  1231. }),
  1232. smalltalk.Smalltalk);
  1233. smalltalk.addMethod(
  1234. unescape('_at_'),
  1235. smalltalk.method({
  1236. selector: unescape('at%3A'),
  1237. category: 'accessing',
  1238. fn: function (aString){
  1239. var self=this;
  1240. return self[aString];
  1241. return self;},
  1242. args: ["aString"],
  1243. source: unescape('at%3A%20aString%0A%09%3Creturn%20self%5BaString%5D%3E'),
  1244. messageSends: [],
  1245. referencedClasses: []
  1246. }),
  1247. smalltalk.Smalltalk);
  1248. smalltalk.addMethod(
  1249. unescape('_removeClass_'),
  1250. smalltalk.method({
  1251. selector: unescape('removeClass%3A'),
  1252. category: 'classes',
  1253. fn: function (aClass){
  1254. var self=this;
  1255. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_asString", []), "__comma", [unescape("%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21")])]);})]));
  1256. smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(aClass, "_removeCompiledMethod_", [each]);})]);
  1257. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aClass, "_class", []), "_methodDictionary", []), "_values", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(aClass, "_class", []), "_removeCompiledMethod_", [each]);})]);
  1258. smalltalk.send(self, "_basicDelete_", [smalltalk.send(aClass, "_name", [])]);
  1259. return self;},
  1260. args: ["aClass"],
  1261. source: unescape('removeClass%3A%20aClass%0A%09aClass%20isMetaclass%20ifTrue%3A%20%5Bself%20error%3A%20aClass%20asString%2C%20%27%20is%20a%20Metaclass%20and%20cannot%20be%20removed%21%27%5D.%0A%09aClass%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20removeCompiledMethod%3A%20each%5D.%0A%09aClass%20class%20methodDictionary%20values%20do%3A%20%5B%3Aeach%20%7C%0A%09%09aClass%20class%20removeCompiledMethod%3A%20each%5D.%0A%09self%20basicDelete%3A%20aClass%20name'),
  1262. messageSends: ["ifTrue:", "isMetaclass", "error:", unescape("%2C"), "asString", "do:", "values", "methodDictionary", "removeCompiledMethod:", "class", "basicDelete:", "name"],
  1263. referencedClasses: []
  1264. }),
  1265. smalltalk.Smalltalk);
  1266. smalltalk.addMethod(
  1267. unescape('_basicParse_'),
  1268. smalltalk.method({
  1269. selector: unescape('basicParse%3A'),
  1270. category: 'accessing',
  1271. fn: function (aString){
  1272. var self=this;
  1273. return smalltalk.parser.parse(aString);
  1274. return self;},
  1275. args: ["aString"],
  1276. source: unescape('basicParse%3A%20aString%0A%09%3Creturn%20smalltalk.parser.parse%28aString%29%3E'),
  1277. messageSends: [],
  1278. referencedClasses: []
  1279. }),
  1280. smalltalk.Smalltalk);
  1281. smalltalk.addMethod(
  1282. unescape('_parse_'),
  1283. smalltalk.method({
  1284. selector: unescape('parse%3A'),
  1285. category: 'accessing',
  1286. fn: function (aString){
  1287. var self=this;
  1288. var result=nil;
  1289. smalltalk.send(self, "_try_catch_", [(function(){return result=smalltalk.send(self, "_basicParse_", [aString]);}), (function(ex){return smalltalk.send(smalltalk.send(self, "_parseError_parsing_", [ex, aString]), "_signal", []);})]);
  1290. return result;
  1291. return self;},
  1292. args: ["aString"],
  1293. source: unescape('parse%3A%20aString%0A%09%7C%20result%20%7C%20%0A%09self%20try%3A%20%5Bresult%20%3A%3D%20self%20basicParse%3A%20aString%5D%20catch%3A%20%5B%3Aex%20%7C%20%28self%20parseError%3A%20ex%20parsing%3A%20aString%29%20signal%5D.%0A%09%5Eresult'),
  1294. messageSends: ["try:catch:", "basicParse:", "signal", "parseError:parsing:"],
  1295. referencedClasses: []
  1296. }),
  1297. smalltalk.Smalltalk);
  1298. smalltalk.addMethod(
  1299. unescape('_parseError_parsing_'),
  1300. smalltalk.method({
  1301. selector: unescape('parseError%3Aparsing%3A'),
  1302. category: 'accessing',
  1303. fn: function (anException, aString){
  1304. var self=this;
  1305. var row=nil;
  1306. var col=nil;
  1307. var message=nil;
  1308. var lines=nil;
  1309. var badLine=nil;
  1310. var code=nil;
  1311. row = anException.line;
  1312. col = anException.column;
  1313. message = anException.message;;
  1314. lines=smalltalk.send(aString, "_lines", []);
  1315. badLine=smalltalk.send(lines, "_at_", [row]);
  1316. badLine=smalltalk.send(smalltalk.send(smalltalk.send(badLine, "_copyFrom_to_", [(1), ((($receiver = col).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]), "__comma", [unescape("%20%3D%3D%3D%3E")]), "__comma", [smalltalk.send(badLine, "_copyFrom_to_", [col, smalltalk.send(badLine, "_size", [])])]);
  1317. smalltalk.send(lines, "_at_put_", [row, badLine]);
  1318. code=smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(s){return smalltalk.send(lines, "_withIndexDo_", [(function(l, i){return smalltalk.send(s, "_nextPutAll_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(i, "_asString", []), "__comma", [": "]), "__comma", [l]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])])]);})]);})]);
  1319. return smalltalk.send(smalltalk.send((smalltalk.Error || Error), "_new", []), "_messageText_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send("Parse error on line ", "__comma", [row]), "__comma", [" column "]), "__comma", [col]), "__comma", [" : "]), "__comma", [message]), "__comma", [unescape("%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A")]), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [code])]);
  1320. return self;},
  1321. args: ["anException", "aString"],
  1322. source: unescape('parseError%3A%20anException%20parsing%3A%20aString%0A%09%7C%20row%20col%20message%20lines%20badLine%20code%20%7C%0A%09%3Crow%20%3D%20anException.line%3B%0A%09col%20%3D%20anException.column%3B%0A%09message%20%3D%20anException.message%3B%3E.%0A%09lines%20%3A%3D%20aString%20lines.%0A%09badLine%20%3A%3D%20lines%20at%3A%20row.%0A%09badLine%20%3A%3D%20%28badLine%20copyFrom%3A%201%20to%3A%20col%20-%201%29%2C%20%27%20%3D%3D%3D%3E%27%2C%20%28badLine%20copyFrom%3A%20%20col%20to%3A%20badLine%20size%29.%0A%09lines%20at%3A%20row%20put%3A%20badLine.%0A%09code%20%3A%3D%20String%20streamContents%3A%20%5B%3As%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lines%20withIndexDo%3A%20%5B%3Al%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20s%20nextPutAll%3A%20i%20asString%2C%20%27%3A%20%27%2C%20l%2C%20String%20lf%5D%5D.%0A%09%5E%20Error%20new%20messageText%3A%20%28%27Parse%20error%20on%20line%20%27%20%2C%20row%20%2C%20%27%20column%20%27%20%2C%20col%20%2C%20%27%20%3A%20%27%20%2C%20message%20%2C%20%27%20Below%20is%20code%20with%20line%20numbers%20and%20%3D%3D%3D%3E%20marker%20inserted%3A%27%20%2C%20String%20lf%2C%20code%29'),
  1323. messageSends: ["lines", "at:", unescape("%2C"), "copyFrom:to:", unescape("-"), "size", "at:put:", "streamContents:", "withIndexDo:", "nextPutAll:", "asString", "lf", "messageText:", "new"],
  1324. referencedClasses: [smalltalk.String,smalltalk.Error]
  1325. }),
  1326. smalltalk.Smalltalk);
  1327. smalltalk.addMethod(
  1328. unescape('_packages'),
  1329. smalltalk.method({
  1330. selector: unescape('packages'),
  1331. category: 'packages',
  1332. fn: function (){
  1333. var self=this;
  1334. return self.packages.all();
  1335. return self;},
  1336. args: [],
  1337. source: unescape('packages%0A%09%22Return%20all%20Package%20instances%20in%20the%20system.%22%0A%0A%09%3Creturn%20self.packages.all%28%29%3E'),
  1338. messageSends: [],
  1339. referencedClasses: []
  1340. }),
  1341. smalltalk.Smalltalk);
  1342. smalltalk.addMethod(
  1343. unescape('_packageAt_'),
  1344. smalltalk.method({
  1345. selector: unescape('packageAt%3A'),
  1346. category: 'packages',
  1347. fn: function (packageName){
  1348. var self=this;
  1349. return self.packages[packageName];
  1350. return self;},
  1351. args: ["packageName"],
  1352. source: unescape('packageAt%3A%20packageName%0A%20%20%20%20%20%20%20%3Creturn%20self.packages%5BpackageName%5D%3E'),
  1353. messageSends: [],
  1354. referencedClasses: []
  1355. }),
  1356. smalltalk.Smalltalk);
  1357. smalltalk.addMethod(
  1358. unescape('_packageAt_ifAbsent_'),
  1359. smalltalk.method({
  1360. selector: unescape('packageAt%3AifAbsent%3A'),
  1361. category: 'packages',
  1362. fn: function (packageName, aBlock){
  1363. var self=this;
  1364. return smalltalk.send(smalltalk.send(self, "_packageAt_", [packageName]), "_ifNil_", [aBlock]);
  1365. return self;},
  1366. args: ["packageName", "aBlock"],
  1367. source: unescape('packageAt%3A%20packageName%20ifAbsent%3A%20aBlock%0A%20%20%20%20%20%20%20%5E%28self%20packageAt%3A%20packageName%29%20ifNil%3A%20aBlock'),
  1368. messageSends: ["ifNil:", "packageAt:"],
  1369. referencedClasses: []
  1370. }),
  1371. smalltalk.Smalltalk);
  1372. smalltalk.addMethod(
  1373. unescape('_createPackage_'),
  1374. smalltalk.method({
  1375. selector: unescape('createPackage%3A'),
  1376. category: 'private',
  1377. fn: function (packageName){
  1378. var self=this;
  1379. return smalltalk.addPackage(packageName);
  1380. return self;},
  1381. args: ["packageName"],
  1382. source: unescape('createPackage%3A%20packageName%0A%09%22Create%20and%20bind%20a%20new%20package%20with%20given%20name%20and%20return%20it.%22%0A%0A%20%20%20%20%20%20%20%3Creturn%20smalltalk.addPackage%28packageName%29%3E'),
  1383. messageSends: [],
  1384. referencedClasses: []
  1385. }),
  1386. smalltalk.Smalltalk);
  1387. smalltalk.addMethod(
  1388. unescape('_deletePackage_'),
  1389. smalltalk.method({
  1390. selector: unescape('deletePackage%3A'),
  1391. category: 'private',
  1392. fn: function (packageName){
  1393. var self=this;
  1394. delete smalltalk.packages[packageName];
  1395. return self;},
  1396. args: ["packageName"],
  1397. source: unescape('deletePackage%3A%20packageName%0A%09%22Deletes%20a%20package%20by%20deleting%20its%20binding%2C%20but%20does%20not%20check%20if%20it%20contains%20classes%20etc.%0A%09To%20remove%20a%20package%2C%20use%20%23removePackage%20instead.%22%0A%0A%20%20%20%20%20%20%20%3Cdelete%20smalltalk.packages%5BpackageName%5D%3E'),
  1398. messageSends: [],
  1399. referencedClasses: []
  1400. }),
  1401. smalltalk.Smalltalk);
  1402. smalltalk.addMethod(
  1403. unescape('_removePackage_'),
  1404. smalltalk.method({
  1405. selector: unescape('removePackage%3A'),
  1406. category: 'packages',
  1407. fn: function (packageName){
  1408. var self=this;
  1409. var pkg=nil;
  1410. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  1411. smalltalk.send(smalltalk.send(pkg, "_classes", []), "_do_", [(function(each){return smalltalk.send(self, "_removeClass_", [each]);})]);
  1412. smalltalk.send(self, "_deletePackage_", [packageName]);
  1413. return self;},
  1414. args: ["packageName"],
  1415. source: unescape('removePackage%3A%20packageName%0A%09%22Removes%20a%20package%20and%20all%20its%20classes.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09pkg%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%20%20%20%20%09self%20removeClass%3A%20each%5D.%0A%09self%20deletePackage%3A%20packageName'),
  1416. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "do:", "classes", "removeClass:", "deletePackage:"],
  1417. referencedClasses: []
  1418. }),
  1419. smalltalk.Smalltalk);
  1420. smalltalk.addMethod(
  1421. unescape('_renamePackage_to_'),
  1422. smalltalk.method({
  1423. selector: unescape('renamePackage%3Ato%3A'),
  1424. category: 'packages',
  1425. fn: function (packageName, newName){
  1426. var self=this;
  1427. var pkg=nil;
  1428. pkg=smalltalk.send(self, "_packageAt_ifAbsent_", [packageName, (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Missing package: ", "__comma", [packageName])]);})]);
  1429. (($receiver = smalltalk.send(self, "_packageAt_", [newName])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send("Already exists a package called: ", "__comma", [newName])]);})() : nil;
  1430. smalltalk.packages[newName] = smalltalk.packages[packageName];
  1431. smalltalk.send(pkg, "_name_", [newName]);
  1432. smalltalk.send(self, "_deletePackage_", [packageName]);
  1433. return self;},
  1434. args: ["packageName", "newName"],
  1435. source: unescape('renamePackage%3A%20packageName%20to%3A%20newName%0A%09%22Rename%20a%20package.%22%0A%0A%09%7C%20pkg%20%7C%0A%09pkg%20%3A%3D%20self%20packageAt%3A%20packageName%20ifAbsent%3A%20%5Bself%20error%3A%20%27Missing%20package%3A%20%27%2C%20packageName%5D.%0A%09%28self%20packageAt%3A%20newName%29%20ifNotNil%3A%20%5Bself%20error%3A%20%27Already%20exists%20a%20package%20called%3A%20%27%2C%20newName%5D.%0A%09%3Csmalltalk.packages%5BnewName%5D%20%3D%20smalltalk.packages%5BpackageName%5D%3E.%0A%09pkg%20name%3A%20newName.%0A%09self%20deletePackage%3A%20packageName.'),
  1436. messageSends: ["packageAt:ifAbsent:", "error:", unescape("%2C"), "ifNotNil:", "packageAt:", "name:", "deletePackage:"],
  1437. referencedClasses: []
  1438. }),
  1439. smalltalk.Smalltalk);
  1440. smalltalk.Smalltalk.klass.iVarNames = ['current'];
  1441. smalltalk.addMethod(
  1442. unescape('_current'),
  1443. smalltalk.method({
  1444. selector: unescape('current'),
  1445. category: 'accessing',
  1446. fn: function (){
  1447. var self=this;
  1448. return smalltalk;
  1449. return self;},
  1450. args: [],
  1451. source: unescape('current%0A%09%3Creturn%20smalltalk%3E'),
  1452. messageSends: [],
  1453. referencedClasses: []
  1454. }),
  1455. smalltalk.Smalltalk.klass);
  1456. smalltalk.addClass('Package', smalltalk.Object, [], 'Kernel');
  1457. smalltalk.Package.comment=unescape('A%20Package%20is%20similar%20to%20a%20%22class%20category%22%20typically%20found%20in%20other%20Smalltalks%20like%20Pharo%20or%20Squeak.%20Amber%20does%20not%20have%20class%20categories%20anymore%2C%20it%20had%20in%20the%20beginning%20but%20now%20each%20class%20in%20the%20system%20knows%20which%20package%20it%20belongs%20to.%0A%0AA%20Package%20has%20a%20name%2C%20an%20Array%20of%20%22requires%22%2C%20a%20comment%20and%20a%20Dictionary%20with%20other%20optional%20key%20value%20attributes.%20A%20Package%20can%20also%20be%20queried%20for%20its%20classes%2C%20but%20it%20will%20then%20resort%20to%20a%20reverse%20scan%20of%20all%20classes%20to%20find%20them.%0APackages%20are%20manipulated%20through%20%22Smalltalk%20current%22%2C%20like%20for%20example%20finding%20one%20based%20on%20a%20name%3A%0A%0A%09Smalltalk%20current%20packageAt%3A%20%27Kernel%27%0A%0A...but%20you%20can%20also%20use%3A%0A%0A%09Package%20named%3A%20%27Kernel%27%0A%0AA%20Package%20differs%20slightly%20from%20a%20Monticello%20package%20which%20can%20span%20multiple%20class%20categories%20using%20a%20naming%20convention%20based%20on%20hyphenation.%20But%20just%20as%20in%20Monticello%20a%20Package%20supports%20%22class%20extensions%22%20so%20a%20Package%0Acan%20define%20behaviors%20in%20foreign%20classes%20using%20a%20naming%20convention%20for%20method%20categories%20where%20the%20category%20starts%20with%20an%20asterisk%20and%20then%20the%20name%20of%20the%20owning%20package%20follows.%20This%20can%20easily%20be%20seen%20in%20for%20example%20class%0AString%20where%20the%20method%20category%20%22*IDE%22%20defines%20%23inspectOn%3A%20which%20thus%20is%20a%20method%20belonging%20to%20the%20IDE%20package.')
  1458. smalltalk.addMethod(
  1459. unescape('_name'),
  1460. smalltalk.method({
  1461. selector: unescape('name'),
  1462. category: 'accessing',
  1463. fn: function (){
  1464. var self=this;
  1465. return self.pkgName || nil;
  1466. return self;},
  1467. args: [],
  1468. source: unescape('name%0A%09%3Creturn%20self.pkgName%20%7C%7C%20nil%3E'),
  1469. messageSends: [],
  1470. referencedClasses: []
  1471. }),
  1472. smalltalk.Package);
  1473. smalltalk.addMethod(
  1474. unescape('_requires'),
  1475. smalltalk.method({
  1476. selector: unescape('requires'),
  1477. category: 'accessing',
  1478. fn: function (){
  1479. var self=this;
  1480. return self.requires || nil;
  1481. return self;},
  1482. args: [],
  1483. source: unescape('requires%0A%09%3Creturn%20self.requires%20%7C%7C%20nil%3E'),
  1484. messageSends: [],
  1485. referencedClasses: []
  1486. }),
  1487. smalltalk.Package);
  1488. smalltalk.addMethod(
  1489. unescape('_name_'),
  1490. smalltalk.method({
  1491. selector: unescape('name%3A'),
  1492. category: 'accessing',
  1493. fn: function (aString){
  1494. var self=this;
  1495. return self.pkgName = aString;
  1496. return self;},
  1497. args: ["aString"],
  1498. source: unescape('name%3A%20aString%0A%09%3Creturn%20self.pkgName%20%3D%20aString%3E'),
  1499. messageSends: [],
  1500. referencedClasses: []
  1501. }),
  1502. smalltalk.Package);
  1503. smalltalk.addMethod(
  1504. unescape('_classes'),
  1505. smalltalk.method({
  1506. selector: unescape('classes'),
  1507. category: 'classes',
  1508. fn: function (){
  1509. var self=this;
  1510. return smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(c){return smalltalk.send(smalltalk.send(c, "_package", []), "__eq_eq", [self]);})]);
  1511. return self;},
  1512. args: [],
  1513. source: unescape('classes%0A%09%22We%20need%20to%20do%20a%20reverse%20scan.%22%0A%09%5ESmalltalk%20current%20classes%20select%3A%20%5B%3Ac%20%7C%20c%20package%20%3D%3D%20self%5D'),
  1514. messageSends: ["select:", "classes", "current", unescape("%3D%3D"), "package"],
  1515. referencedClasses: [smalltalk.Smalltalk]
  1516. }),
  1517. smalltalk.Package);
  1518. smalltalk.addMethod(
  1519. unescape('_printString'),
  1520. smalltalk.method({
  1521. selector: unescape('printString'),
  1522. category: 'printing',
  1523. fn: function (){
  1524. var self=this;
  1525. return smalltalk.send(self, "_name", []);
  1526. return self;},
  1527. args: [],
  1528. source: unescape('printString%0A%09%5Eself%20name'),
  1529. messageSends: ["name"],
  1530. referencedClasses: []
  1531. }),
  1532. smalltalk.Package);
  1533. smalltalk.addMethod(
  1534. unescape('_named_'),
  1535. smalltalk.method({
  1536. selector: unescape('named%3A'),
  1537. category: 'not yet classified',
  1538. fn: function (aPackageName){
  1539. var self=this;
  1540. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [aPackageName]);
  1541. return self;},
  1542. args: ["aPackageName"],
  1543. source: unescape('named%3A%20aPackageName%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName'),
  1544. messageSends: ["packageAt:", "current"],
  1545. referencedClasses: [smalltalk.Smalltalk]
  1546. }),
  1547. smalltalk.Package.klass);
  1548. smalltalk.addMethod(
  1549. unescape('_named_ifAbsent_'),
  1550. smalltalk.method({
  1551. selector: unescape('named%3AifAbsent%3A'),
  1552. category: 'not yet classified',
  1553. fn: function (aPackageName, aBlock){
  1554. var self=this;
  1555. return smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_ifAbsent_", [aPackageName, aBlock]);
  1556. return self;},
  1557. args: ["aPackageName", "aBlock"],
  1558. source: unescape('named%3A%20aPackageName%20ifAbsent%3A%20aBlock%0A%0A%09%5ESmalltalk%20current%20packageAt%3A%20aPackageName%20ifAbsent%3A%20aBlock'),
  1559. messageSends: ["packageAt:ifAbsent:", "current"],
  1560. referencedClasses: [smalltalk.Smalltalk]
  1561. }),
  1562. smalltalk.Package.klass);
  1563. smalltalk.addClass('Behavior', smalltalk.Object, [], 'Kernel');
  1564. smalltalk.addMethod(
  1565. unescape('_new'),
  1566. smalltalk.method({
  1567. selector: unescape('new'),
  1568. category: 'instance creation',
  1569. fn: function (){
  1570. var self=this;
  1571. return smalltalk.send(smalltalk.send(self, "_basicNew", []), "_initialize", []);
  1572. return self;},
  1573. args: [],
  1574. source: unescape('new%0A%09%5Eself%20basicNew%20initialize'),
  1575. messageSends: ["initialize", "basicNew"],
  1576. referencedClasses: []
  1577. }),
  1578. smalltalk.Behavior);
  1579. smalltalk.addMethod(
  1580. unescape('_basicNew'),
  1581. smalltalk.method({
  1582. selector: unescape('basicNew'),
  1583. category: 'instance creation',
  1584. fn: function (){
  1585. var self=this;
  1586. return new self.fn();
  1587. return self;},
  1588. args: [],
  1589. source: unescape('basicNew%0A%09%3Creturn%20new%20self.fn%28%29%3E'),
  1590. messageSends: [],
  1591. referencedClasses: []
  1592. }),
  1593. smalltalk.Behavior);
  1594. smalltalk.addMethod(
  1595. unescape('_name'),
  1596. smalltalk.method({
  1597. selector: unescape('name'),
  1598. category: 'accessing',
  1599. fn: function (){
  1600. var self=this;
  1601. return self.className || nil;
  1602. return self;},
  1603. args: [],
  1604. source: unescape('name%0A%09%3Creturn%20self.className%20%7C%7C%20nil%3E'),
  1605. messageSends: [],
  1606. referencedClasses: []
  1607. }),
  1608. smalltalk.Behavior);
  1609. smalltalk.addMethod(
  1610. unescape('_superclass'),
  1611. smalltalk.method({
  1612. selector: unescape('superclass'),
  1613. category: 'accessing',
  1614. fn: function (){
  1615. var self=this;
  1616. return self.superclass || nil;
  1617. return self;},
  1618. args: [],
  1619. source: unescape('superclass%0A%09%3Creturn%20self.superclass%20%7C%7C%20nil%3E'),
  1620. messageSends: [],
  1621. referencedClasses: []
  1622. }),
  1623. smalltalk.Behavior);
  1624. smalltalk.addMethod(
  1625. unescape('_subclasses'),
  1626. smalltalk.method({
  1627. selector: unescape('subclasses'),
  1628. category: 'accessing',
  1629. fn: function (){
  1630. var self=this;
  1631. return smalltalk.subclasses(self);
  1632. return self;},
  1633. args: [],
  1634. source: unescape('subclasses%0A%09%3Creturn%20smalltalk.subclasses%28self%29%3E'),
  1635. messageSends: [],
  1636. referencedClasses: []
  1637. }),
  1638. smalltalk.Behavior);
  1639. smalltalk.addMethod(
  1640. unescape('_allSubclasses'),
  1641. smalltalk.method({
  1642. selector: unescape('allSubclasses'),
  1643. category: 'accessing',
  1644. fn: function (){
  1645. var self=this;
  1646. var result=nil;
  1647. result=smalltalk.send(self, "_subclasses", []);
  1648. smalltalk.send(smalltalk.send(self, "_subclasses", []), "_do_", [(function(each){return smalltalk.send(result, "_addAll_", [smalltalk.send(each, "_allSubclasses", [])]);})]);
  1649. return result;
  1650. return self;},
  1651. args: [],
  1652. source: unescape('allSubclasses%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20subclasses.%0A%09self%20subclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20result%20addAll%3A%20each%20allSubclasses%5D.%0A%09%5Eresult'),
  1653. messageSends: ["subclasses", "do:", "addAll:", "allSubclasses"],
  1654. referencedClasses: []
  1655. }),
  1656. smalltalk.Behavior);
  1657. smalltalk.addMethod(
  1658. unescape('_withAllSubclasses'),
  1659. smalltalk.method({
  1660. selector: unescape('withAllSubclasses'),
  1661. category: 'accessing',
  1662. fn: function (){
  1663. var self=this;
  1664. return (function($rec){smalltalk.send($rec, "_addAll_", [smalltalk.send(self, "_allSubclasses", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.Array || Array), "_with_", [self]));
  1665. return self;},
  1666. args: [],
  1667. source: unescape('withAllSubclasses%0A%09%5E%28Array%20with%3A%20self%29%20addAll%3A%20self%20allSubclasses%3B%20yourself'),
  1668. messageSends: ["addAll:", "allSubclasses", "yourself", "with:"],
  1669. referencedClasses: [smalltalk.Array]
  1670. }),
  1671. smalltalk.Behavior);
  1672. smalltalk.addMethod(
  1673. unescape('_prototype'),
  1674. smalltalk.method({
  1675. selector: unescape('prototype'),
  1676. category: 'accessing',
  1677. fn: function (){
  1678. var self=this;
  1679. return self.fn.prototype;
  1680. return self;},
  1681. args: [],
  1682. source: unescape('prototype%0A%09%3Creturn%20self.fn.prototype%3E'),
  1683. messageSends: [],
  1684. referencedClasses: []
  1685. }),
  1686. smalltalk.Behavior);
  1687. smalltalk.addMethod(
  1688. unescape('_methodDictionary'),
  1689. smalltalk.method({
  1690. selector: unescape('methodDictionary'),
  1691. category: 'accessing',
  1692. fn: function (){
  1693. var self=this;
  1694. var dict = smalltalk.Dictionary._new();
  1695. var methods = self.fn.prototype.methods;
  1696. for(var i in methods) {
  1697. if(methods[i].selector) {
  1698. dict._at_put_(methods[i].selector, methods[i]);
  1699. }
  1700. };
  1701. return dict;
  1702. return self;},
  1703. args: [],
  1704. source: unescape('methodDictionary%0A%09%3Cvar%20dict%20%3D%20smalltalk.Dictionary._new%28%29%3B%0A%09var%20methods%20%3D%20self.fn.prototype.methods%3B%0A%09for%28var%20i%20in%20methods%29%20%7B%0A%09%09if%28methods%5Bi%5D.selector%29%20%7B%0A%09%09%09dict._at_put_%28methods%5Bi%5D.selector%2C%20methods%5Bi%5D%29%3B%0A%09%09%7D%0A%09%7D%3B%0A%09return%20dict%3E'),
  1705. messageSends: [],
  1706. referencedClasses: []
  1707. }),
  1708. smalltalk.Behavior);
  1709. smalltalk.addMethod(
  1710. unescape('_methodsFor_'),
  1711. smalltalk.method({
  1712. selector: unescape('methodsFor%3A'),
  1713. category: 'accessing',
  1714. fn: function (aString){
  1715. var self=this;
  1716. return (function($rec){smalltalk.send($rec, "_class_category_", [self, aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCategoryReader || ClassCategoryReader), "_new", []));
  1717. return self;},
  1718. args: ["aString"],
  1719. source: unescape('methodsFor%3A%20aString%0A%09%5EClassCategoryReader%20new%0A%09%20%20%20%20class%3A%20self%20category%3A%20aString%3B%0A%09%20%20%20%20yourself'),
  1720. messageSends: ["class:category:", "yourself", "new"],
  1721. referencedClasses: [smalltalk.ClassCategoryReader]
  1722. }),
  1723. smalltalk.Behavior);
  1724. smalltalk.addMethod(
  1725. unescape('_addCompiledMethod_'),
  1726. smalltalk.method({
  1727. selector: unescape('addCompiledMethod%3A'),
  1728. category: 'accessing',
  1729. fn: function (aMethod){
  1730. var self=this;
  1731. smalltalk.addMethod(aMethod.selector._asSelector(), aMethod, self);
  1732. return self;},
  1733. args: ["aMethod"],
  1734. source: unescape('addCompiledMethod%3A%20aMethod%0A%09%3Csmalltalk.addMethod%28aMethod.selector._asSelector%28%29%2C%20aMethod%2C%20self%29%3E'),
  1735. messageSends: [],
  1736. referencedClasses: []
  1737. }),
  1738. smalltalk.Behavior);
  1739. smalltalk.addMethod(
  1740. unescape('_instanceVariableNames'),
  1741. smalltalk.method({
  1742. selector: unescape('instanceVariableNames'),
  1743. category: 'accessing',
  1744. fn: function (){
  1745. var self=this;
  1746. return self.iVarNames;
  1747. return self;},
  1748. args: [],
  1749. source: unescape('instanceVariableNames%0A%09%3Creturn%20self.iVarNames%3E'),
  1750. messageSends: [],
  1751. referencedClasses: []
  1752. }),
  1753. smalltalk.Behavior);
  1754. smalltalk.addMethod(
  1755. unescape('_comment'),
  1756. smalltalk.method({
  1757. selector: unescape('comment'),
  1758. category: 'accessing',
  1759. fn: function (){
  1760. var self=this;
  1761. return (($receiver = smalltalk.send(self, "_basicAt_", ["comment"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  1762. return self;},
  1763. args: [],
  1764. source: unescape('comment%0A%20%20%20%20%5E%28self%20basicAt%3A%20%27comment%27%29%20ifNil%3A%20%5B%27%27%5D'),
  1765. messageSends: ["ifNil:", "basicAt:"],
  1766. referencedClasses: []
  1767. }),
  1768. smalltalk.Behavior);
  1769. smalltalk.addMethod(
  1770. unescape('_comment_'),
  1771. smalltalk.method({
  1772. selector: unescape('comment%3A'),
  1773. category: 'accessing',
  1774. fn: function (aString){
  1775. var self=this;
  1776. smalltalk.send(self, "_basicAt_put_", ["comment", aString]);
  1777. return self;},
  1778. args: ["aString"],
  1779. source: unescape('comment%3A%20aString%0A%20%20%20%20self%20basicAt%3A%20%27comment%27%20put%3A%20aString'),
  1780. messageSends: ["basicAt:put:"],
  1781. referencedClasses: []
  1782. }),
  1783. smalltalk.Behavior);
  1784. smalltalk.addMethod(
  1785. unescape('_commentStamp'),
  1786. smalltalk.method({
  1787. selector: unescape('commentStamp'),
  1788. category: 'accessing',
  1789. fn: function (){
  1790. var self=this;
  1791. return (function($rec){smalltalk.send($rec, "_class_", [self]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send((smalltalk.ClassCommentReader || ClassCommentReader), "_new", []));
  1792. return self;},
  1793. args: [],
  1794. source: unescape('commentStamp%0A%20%20%20%20%5EClassCommentReader%20new%0A%09class%3A%20self%3B%0A%09yourself'),
  1795. messageSends: ["class:", "yourself", "new"],
  1796. referencedClasses: [smalltalk.ClassCommentReader]
  1797. }),
  1798. smalltalk.Behavior);
  1799. smalltalk.addMethod(
  1800. unescape('_removeCompiledMethod_'),
  1801. smalltalk.method({
  1802. selector: unescape('removeCompiledMethod%3A'),
  1803. category: 'accessing',
  1804. fn: function (aMethod){
  1805. var self=this;
  1806. delete self.fn.prototype[aMethod.selector._asSelector()];
  1807. delete self.fn.prototype.methods[aMethod.selector];
  1808. smalltalk.init(self);;
  1809. return self;},
  1810. args: ["aMethod"],
  1811. source: unescape('removeCompiledMethod%3A%20aMethod%0A%09%3Cdelete%20self.fn.prototype%5BaMethod.selector._asSelector%28%29%5D%3B%0A%09delete%20self.fn.prototype.methods%5BaMethod.selector%5D%3B%0A%09smalltalk.init%28self%29%3B%3E'),
  1812. messageSends: [],
  1813. referencedClasses: []
  1814. }),
  1815. smalltalk.Behavior);
  1816. smalltalk.addMethod(
  1817. unescape('_inheritsFrom_'),
  1818. smalltalk.method({
  1819. selector: unescape('inheritsFrom%3A'),
  1820. category: 'instance creation',
  1821. fn: function (aClass){
  1822. var self=this;
  1823. return smalltalk.send(smalltalk.send(aClass, "_allSubclasses", []), "_includes_", [self]);
  1824. return self;},
  1825. args: ["aClass"],
  1826. source: unescape('inheritsFrom%3A%20aClass%0A%09%5EaClass%20allSubclasses%20includes%3A%20self'),
  1827. messageSends: ["includes:", "allSubclasses"],
  1828. referencedClasses: []
  1829. }),
  1830. smalltalk.Behavior);
  1831. smalltalk.addMethod(
  1832. unescape('_protocols'),
  1833. smalltalk.method({
  1834. selector: unescape('protocols'),
  1835. category: 'accessing',
  1836. fn: function (){
  1837. var self=this;
  1838. var protocols=nil;
  1839. protocols=smalltalk.send((smalltalk.Array || Array), "_new", []);
  1840. smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_do_", [(function(each){return ((($receiver = smalltalk.send(protocols, "_includes_", [smalltalk.send(each, "_category", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(protocols, "_add_", [smalltalk.send(each, "_category", [])]);})]));})]);
  1841. return smalltalk.send(protocols, "_sort", []);
  1842. return self;},
  1843. args: [],
  1844. source: unescape('protocols%0A%20%20%20%20%7C%20protocols%20%7C%0A%20%20%20%20protocols%20%3A%3D%20Array%20new.%0A%20%20%20%20self%20methodDictionary%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28protocols%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%09protocols%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Eprotocols%20sort'),
  1845. messageSends: ["new", "do:", "methodDictionary", "ifFalse:", "includes:", "category", "add:", "sort"],
  1846. referencedClasses: [smalltalk.Array]
  1847. }),
  1848. smalltalk.Behavior);
  1849. smalltalk.addMethod(
  1850. unescape('_protocolsDo_'),
  1851. smalltalk.method({
  1852. selector: unescape('protocolsDo%3A'),
  1853. category: 'accessing',
  1854. fn: function (aBlock){
  1855. var self=this;
  1856. var methodsByCategory=nil;
  1857. methodsByCategory=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1858. smalltalk.send(smalltalk.send(smalltalk.send(self, "_methodDictionary", []), "_values", []), "_do_", [(function(m){return smalltalk.send(smalltalk.send(methodsByCategory, "_at_ifAbsentPut_", [smalltalk.send(m, "_category", []), (function(){return smalltalk.send((smalltalk.Array || Array), "_new", []);})]), "_add_", [m]);})]);
  1859. smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(category){return smalltalk.send(aBlock, "_value_value_", [category, smalltalk.send(methodsByCategory, "_at_", [category])]);})]);
  1860. return self;},
  1861. args: ["aBlock"],
  1862. source: unescape('protocolsDo%3A%20aBlock%0A%09%22Execute%20aBlock%20for%20each%20method%20category%20with%0A%09its%20collection%20of%20methods%20in%20the%20sort%20order%20of%20category%20name.%22%0A%0A%09%7C%20methodsByCategory%20%7C%0A%09methodsByCategory%20%3A%3D%20Dictionary%20new.%0A%09self%20methodDictionary%20values%20do%3A%20%5B%3Am%20%7C%0A%09%09%28methodsByCategory%20at%3A%20m%20category%20ifAbsentPut%3A%20%5BArray%20new%5D%29%0A%20%09%09%09add%3A%20m%5D.%20%0A%09self%20protocols%20do%3A%20%5B%3Acategory%20%7C%0A%09%09aBlock%20value%3A%20category%20value%3A%20%28methodsByCategory%20at%3A%20category%29%5D'),
  1863. messageSends: ["new", "do:", "values", "methodDictionary", "add:", "at:ifAbsentPut:", "category", "protocols", "value:value:", "at:"],
  1864. referencedClasses: [smalltalk.Dictionary,smalltalk.Array]
  1865. }),
  1866. smalltalk.Behavior);
  1867. smalltalk.addMethod(
  1868. unescape('_allInstanceVariableNames'),
  1869. smalltalk.method({
  1870. selector: unescape('allInstanceVariableNames'),
  1871. category: 'accessing',
  1872. fn: function (){
  1873. var self=this;
  1874. var result=nil;
  1875. result=smalltalk.send(smalltalk.send(self, "_instanceVariableNames", []), "_copy", []);
  1876. (($receiver = smalltalk.send(self, "_superclass", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(result, "_addAll_", [smalltalk.send(smalltalk.send(self, "_superclass", []), "_allInstanceVariableNames", [])]);})() : nil;
  1877. return result;
  1878. return self;},
  1879. args: [],
  1880. source: unescape('allInstanceVariableNames%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20self%20instanceVariableNames%20copy.%0A%09self%20superclass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20result%20addAll%3A%20self%20superclass%20allInstanceVariableNames%5D.%0A%09%5Eresult'),
  1881. messageSends: ["copy", "instanceVariableNames", "ifNotNil:", "superclass", "addAll:", "allInstanceVariableNames"],
  1882. referencedClasses: []
  1883. }),
  1884. smalltalk.Behavior);
  1885. smalltalk.addMethod(
  1886. unescape('_methodAt_'),
  1887. smalltalk.method({
  1888. selector: unescape('methodAt%3A'),
  1889. category: 'accessing',
  1890. fn: function (aString){
  1891. var self=this;
  1892. return smalltalk.methods(self)[aString];
  1893. return self;},
  1894. args: ["aString"],
  1895. source: unescape('methodAt%3A%20aString%0A%09%3Creturn%20smalltalk.methods%28self%29%5BaString%5D%3E'),
  1896. messageSends: [],
  1897. referencedClasses: []
  1898. }),
  1899. smalltalk.Behavior);
  1900. smalltalk.addMethod(
  1901. unescape('_methodsFor_stamp_'),
  1902. smalltalk.method({
  1903. selector: unescape('methodsFor%3Astamp%3A'),
  1904. category: 'accessing',
  1905. fn: function (aString, aStamp){
  1906. var self=this;
  1907. return smalltalk.send(self, "_methodsFor_", [aString]);
  1908. return self;},
  1909. args: ["aString", "aStamp"],
  1910. source: unescape('methodsFor%3A%20aString%20stamp%3A%20aStamp%0A%09%22Added%20for%20compatibility%2C%20right%20now%20ignores%20stamp.%22%0A%09%5Eself%20methodsFor%3A%20aString'),
  1911. messageSends: ["methodsFor:"],
  1912. referencedClasses: []
  1913. }),
  1914. smalltalk.Behavior);
  1915. smalltalk.addMethod(
  1916. unescape('_commentStamp_prior_'),
  1917. smalltalk.method({
  1918. selector: unescape('commentStamp%3Aprior%3A'),
  1919. category: 'accessing',
  1920. fn: function (aStamp, prior){
  1921. var self=this;
  1922. return smalltalk.send(self, "_commentStamp", []);
  1923. return self;},
  1924. args: ["aStamp", "prior"],
  1925. source: unescape('commentStamp%3A%20aStamp%20prior%3A%20prior%0A%20%20%20%20%20%20%20%20%5Eself%20commentStamp'),
  1926. messageSends: ["commentStamp"],
  1927. referencedClasses: []
  1928. }),
  1929. smalltalk.Behavior);
  1930. smalltalk.addMethod(
  1931. unescape('_compile_'),
  1932. smalltalk.method({
  1933. selector: unescape('compile%3A'),
  1934. category: 'compiling',
  1935. fn: function (aString){
  1936. var self=this;
  1937. smalltalk.send(self, "_compile_category_", [aString, ""]);
  1938. return self;},
  1939. args: ["aString"],
  1940. source: unescape('compile%3A%20aString%0A%09self%20compile%3A%20aString%20category%3A%20%27%27'),
  1941. messageSends: ["compile:category:"],
  1942. referencedClasses: []
  1943. }),
  1944. smalltalk.Behavior);
  1945. smalltalk.addMethod(
  1946. unescape('_compile_category_'),
  1947. smalltalk.method({
  1948. selector: unescape('compile%3Acategory%3A'),
  1949. category: 'compiling',
  1950. fn: function (aString, anotherString){
  1951. var self=this;
  1952. var method=nil;
  1953. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self]);
  1954. smalltalk.send(method, "_category_", [anotherString]);
  1955. smalltalk.send(self, "_addCompiledMethod_", [method]);
  1956. return self;},
  1957. args: ["aString", "anotherString"],
  1958. source: unescape('compile%3A%20aString%20category%3A%20anotherString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20self.%0A%09method%20category%3A%20anotherString.%0A%09self%20addCompiledMethod%3A%20method'),
  1959. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  1960. referencedClasses: [smalltalk.Compiler]
  1961. }),
  1962. smalltalk.Behavior);
  1963. smalltalk.addClass('Class', smalltalk.Behavior, [], 'Kernel');
  1964. smalltalk.addMethod(
  1965. unescape('_category'),
  1966. smalltalk.method({
  1967. selector: unescape('category'),
  1968. category: 'accessing',
  1969. fn: function (){
  1970. var self=this;
  1971. return (($receiver = smalltalk.send(self, "_package", [])) == nil || $receiver == undefined) ? (function(){return "Unclassified";})() : (function(){return smalltalk.send(smalltalk.send(self, "_package", []), "_name", []);})();
  1972. return self;},
  1973. args: [],
  1974. source: unescape('category%0A%09%5Eself%20package%20ifNil%3A%20%5B%27Unclassified%27%5D%20ifNotNil%3A%20%5Bself%20package%20name%5D'),
  1975. messageSends: ["ifNil:ifNotNil:", "package", "name"],
  1976. referencedClasses: []
  1977. }),
  1978. smalltalk.Class);
  1979. smalltalk.addMethod(
  1980. unescape('_subclass_instanceVariableNames_'),
  1981. smalltalk.method({
  1982. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  1983. category: 'class creation',
  1984. fn: function (aString, anotherString){
  1985. var self=this;
  1986. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  1987. return self;},
  1988. args: ["aString", "anotherString"],
  1989. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  1990. messageSends: ["subclass:instanceVariableNames:package:"],
  1991. referencedClasses: []
  1992. }),
  1993. smalltalk.Class);
  1994. smalltalk.addMethod(
  1995. unescape('_subclass_instanceVariableNames_category_'),
  1996. smalltalk.method({
  1997. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  1998. category: 'class creation',
  1999. fn: function (aString, aString2, aString3){
  2000. var self=this;
  2001. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  2002. return self;},
  2003. args: ["aString", "aString2", "aString3"],
  2004. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  2005. messageSends: ["subclass:instanceVariableNames:package:"],
  2006. referencedClasses: []
  2007. }),
  2008. smalltalk.Class);
  2009. smalltalk.addMethod(
  2010. unescape('_isClass'),
  2011. smalltalk.method({
  2012. selector: unescape('isClass'),
  2013. category: 'testing',
  2014. fn: function (){
  2015. var self=this;
  2016. return true;
  2017. return self;},
  2018. args: [],
  2019. source: unescape('isClass%0A%09%5Etrue'),
  2020. messageSends: [],
  2021. referencedClasses: []
  2022. }),
  2023. smalltalk.Class);
  2024. smalltalk.addMethod(
  2025. unescape('_printString'),
  2026. smalltalk.method({
  2027. selector: unescape('printString'),
  2028. category: 'printing',
  2029. fn: function (){
  2030. var self=this;
  2031. return smalltalk.send(self, "_name", []);
  2032. return self;},
  2033. args: [],
  2034. source: unescape('printString%0A%09%5Eself%20name'),
  2035. messageSends: ["name"],
  2036. referencedClasses: []
  2037. }),
  2038. smalltalk.Class);
  2039. smalltalk.addMethod(
  2040. unescape('_rename_'),
  2041. smalltalk.method({
  2042. selector: unescape('rename%3A'),
  2043. category: 'accessing',
  2044. fn: function (aString){
  2045. var self=this;
  2046. smalltalk[aString] = self;
  2047. delete smalltalk[self.className];
  2048. self.className = aString;
  2049. ;
  2050. return self;},
  2051. args: ["aString"],
  2052. source: unescape('rename%3A%20aString%0A%09%3C%0A%09%09smalltalk%5BaString%5D%20%3D%20self%3B%0A%09%09delete%20smalltalk%5Bself.className%5D%3B%0A%09%09self.className%20%3D%20aString%3B%0A%09%3E'),
  2053. messageSends: [],
  2054. referencedClasses: []
  2055. }),
  2056. smalltalk.Class);
  2057. smalltalk.addMethod(
  2058. unescape('_subclass_instanceVariableNames_classVariableNames_poolDictionaries_category_'),
  2059. smalltalk.method({
  2060. selector: unescape('subclass%3AinstanceVariableNames%3AclassVariableNames%3ApoolDictionaries%3Acategory%3A'),
  2061. category: 'class creation',
  2062. fn: function (aString, aString2, classVars, pools, aString3){
  2063. var self=this;
  2064. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  2065. return self;},
  2066. args: ["aString", "aString2", "classVars", "pools", "aString3"],
  2067. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20classVariableNames%3A%20classVars%20poolDictionaries%3A%20pools%20category%3A%20aString3%0A%09%22Just%20ignore%20class%20variables%20and%20pools.%20Added%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  2068. messageSends: ["subclass:instanceVariableNames:package:"],
  2069. referencedClasses: []
  2070. }),
  2071. smalltalk.Class);
  2072. smalltalk.addMethod(
  2073. unescape('_package'),
  2074. smalltalk.method({
  2075. selector: unescape('package'),
  2076. category: 'accessing',
  2077. fn: function (){
  2078. var self=this;
  2079. return self.pkg;
  2080. return self;},
  2081. args: [],
  2082. source: unescape('package%0A%09%3Creturn%20self.pkg%3E'),
  2083. messageSends: [],
  2084. referencedClasses: []
  2085. }),
  2086. smalltalk.Class);
  2087. smalltalk.addMethod(
  2088. unescape('_package_'),
  2089. smalltalk.method({
  2090. selector: unescape('package%3A'),
  2091. category: 'accessing',
  2092. fn: function (aPackage){
  2093. var self=this;
  2094. self.pkg = aPackage;
  2095. return self;},
  2096. args: ["aPackage"],
  2097. source: unescape('package%3A%20aPackage%0A%09%3Cself.pkg%20%3D%20aPackage%3E'),
  2098. messageSends: [],
  2099. referencedClasses: []
  2100. }),
  2101. smalltalk.Class);
  2102. smalltalk.addMethod(
  2103. unescape('_subclass_instanceVariableNames_package_'),
  2104. smalltalk.method({
  2105. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  2106. category: 'class creation',
  2107. fn: function (aString, aString2, aString3){
  2108. var self=this;
  2109. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  2110. return self;},
  2111. args: ["aString", "aString2", "aString3"],
  2112. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  2113. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  2114. referencedClasses: [smalltalk.ClassBuilder]
  2115. }),
  2116. smalltalk.Class);
  2117. smalltalk.addClass('Metaclass', smalltalk.Behavior, [], 'Kernel');
  2118. smalltalk.addMethod(
  2119. unescape('_instanceClass'),
  2120. smalltalk.method({
  2121. selector: unescape('instanceClass'),
  2122. category: 'accessing',
  2123. fn: function (){
  2124. var self=this;
  2125. return self.instanceClass;
  2126. return self;},
  2127. args: [],
  2128. source: unescape('instanceClass%0A%09%3Creturn%20self.instanceClass%3E'),
  2129. messageSends: [],
  2130. referencedClasses: []
  2131. }),
  2132. smalltalk.Metaclass);
  2133. smalltalk.addMethod(
  2134. unescape('_instanceVariableNames_'),
  2135. smalltalk.method({
  2136. selector: unescape('instanceVariableNames%3A'),
  2137. category: 'accessing',
  2138. fn: function (aCollection){
  2139. var self=this;
  2140. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_class_instanceVariableNames_", [self, aCollection]);
  2141. return self;},
  2142. args: ["aCollection"],
  2143. source: unescape('instanceVariableNames%3A%20aCollection%0A%09ClassBuilder%20new%0A%09%20%20%20%20class%3A%20self%20instanceVariableNames%3A%20aCollection'),
  2144. messageSends: ["class:instanceVariableNames:", "new"],
  2145. referencedClasses: [smalltalk.ClassBuilder]
  2146. }),
  2147. smalltalk.Metaclass);
  2148. smalltalk.addMethod(
  2149. unescape('_isMetaclass'),
  2150. smalltalk.method({
  2151. selector: unescape('isMetaclass'),
  2152. category: 'testing',
  2153. fn: function (){
  2154. var self=this;
  2155. return true;
  2156. return self;},
  2157. args: [],
  2158. source: unescape('isMetaclass%0A%09%5Etrue'),
  2159. messageSends: [],
  2160. referencedClasses: []
  2161. }),
  2162. smalltalk.Metaclass);
  2163. smalltalk.addMethod(
  2164. unescape('_printString'),
  2165. smalltalk.method({
  2166. selector: unescape('printString'),
  2167. category: 'printing',
  2168. fn: function (){
  2169. var self=this;
  2170. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_instanceClass", []), "_name", []), "__comma", [" class"]);
  2171. return self;},
  2172. args: [],
  2173. source: unescape('printString%0A%09%5Eself%20instanceClass%20name%2C%20%27%20class%27'),
  2174. messageSends: [unescape("%2C"), "name", "instanceClass"],
  2175. referencedClasses: []
  2176. }),
  2177. smalltalk.Metaclass);
  2178. smalltalk.addClass('CompiledMethod', smalltalk.Object, [], 'Kernel');
  2179. smalltalk.addMethod(
  2180. unescape('_source'),
  2181. smalltalk.method({
  2182. selector: unescape('source'),
  2183. category: 'accessing',
  2184. fn: function (){
  2185. var self=this;
  2186. return (($receiver = smalltalk.send(self, "_basicAt_", ["source"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2187. return self;},
  2188. args: [],
  2189. source: unescape('source%0A%09%5E%28self%20basicAt%3A%20%27source%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2190. messageSends: ["ifNil:", "basicAt:"],
  2191. referencedClasses: []
  2192. }),
  2193. smalltalk.CompiledMethod);
  2194. smalltalk.addMethod(
  2195. unescape('_source_'),
  2196. smalltalk.method({
  2197. selector: unescape('source%3A'),
  2198. category: 'accessing',
  2199. fn: function (aString){
  2200. var self=this;
  2201. smalltalk.send(self, "_basicAt_put_", ["source", aString]);
  2202. return self;},
  2203. args: ["aString"],
  2204. source: unescape('source%3A%20aString%0A%09self%20basicAt%3A%20%27source%27%20put%3A%20aString'),
  2205. messageSends: ["basicAt:put:"],
  2206. referencedClasses: []
  2207. }),
  2208. smalltalk.CompiledMethod);
  2209. smalltalk.addMethod(
  2210. unescape('_category'),
  2211. smalltalk.method({
  2212. selector: unescape('category'),
  2213. category: 'accessing',
  2214. fn: function (){
  2215. var self=this;
  2216. return (($receiver = smalltalk.send(self, "_basicAt_", ["category"])) == nil || $receiver == undefined) ? (function(){return "";})() : $receiver;
  2217. return self;},
  2218. args: [],
  2219. source: unescape('category%0A%09%5E%28self%20basicAt%3A%20%27category%27%29%20ifNil%3A%20%5B%27%27%5D'),
  2220. messageSends: ["ifNil:", "basicAt:"],
  2221. referencedClasses: []
  2222. }),
  2223. smalltalk.CompiledMethod);
  2224. smalltalk.addMethod(
  2225. unescape('_category_'),
  2226. smalltalk.method({
  2227. selector: unescape('category%3A'),
  2228. category: 'accessing',
  2229. fn: function (aString){
  2230. var self=this;
  2231. smalltalk.send(self, "_basicAt_put_", ["category", aString]);
  2232. return self;},
  2233. args: ["aString"],
  2234. source: unescape('category%3A%20aString%0A%09self%20basicAt%3A%20%27category%27%20put%3A%20aString'),
  2235. messageSends: ["basicAt:put:"],
  2236. referencedClasses: []
  2237. }),
  2238. smalltalk.CompiledMethod);
  2239. smalltalk.addMethod(
  2240. unescape('_selector'),
  2241. smalltalk.method({
  2242. selector: unescape('selector'),
  2243. category: 'accessing',
  2244. fn: function (){
  2245. var self=this;
  2246. return smalltalk.send(self, "_basicAt_", ["selector"]);
  2247. return self;},
  2248. args: [],
  2249. source: unescape('selector%0A%09%5Eself%20basicAt%3A%20%27selector%27'),
  2250. messageSends: ["basicAt:"],
  2251. referencedClasses: []
  2252. }),
  2253. smalltalk.CompiledMethod);
  2254. smalltalk.addMethod(
  2255. unescape('_selector_'),
  2256. smalltalk.method({
  2257. selector: unescape('selector%3A'),
  2258. category: 'accessing',
  2259. fn: function (aString){
  2260. var self=this;
  2261. smalltalk.send(self, "_basicAt_put_", ["selector", aString]);
  2262. return self;},
  2263. args: ["aString"],
  2264. source: unescape('selector%3A%20aString%0A%09self%20basicAt%3A%20%27selector%27%20put%3A%20aString'),
  2265. messageSends: ["basicAt:put:"],
  2266. referencedClasses: []
  2267. }),
  2268. smalltalk.CompiledMethod);
  2269. smalltalk.addMethod(
  2270. unescape('_fn'),
  2271. smalltalk.method({
  2272. selector: unescape('fn'),
  2273. category: 'accessing',
  2274. fn: function (){
  2275. var self=this;
  2276. return smalltalk.send(self, "_basicAt_", ["fn"]);
  2277. return self;},
  2278. args: [],
  2279. source: unescape('fn%0A%09%5Eself%20basicAt%3A%20%27fn%27'),
  2280. messageSends: ["basicAt:"],
  2281. referencedClasses: []
  2282. }),
  2283. smalltalk.CompiledMethod);
  2284. smalltalk.addMethod(
  2285. unescape('_fn_'),
  2286. smalltalk.method({
  2287. selector: unescape('fn%3A'),
  2288. category: 'accessing',
  2289. fn: function (aBlock){
  2290. var self=this;
  2291. smalltalk.send(self, "_basicAt_put_", ["fn", aBlock]);
  2292. return self;},
  2293. args: ["aBlock"],
  2294. source: unescape('fn%3A%20aBlock%0A%09self%20basicAt%3A%20%27fn%27%20put%3A%20aBlock'),
  2295. messageSends: ["basicAt:put:"],
  2296. referencedClasses: []
  2297. }),
  2298. smalltalk.CompiledMethod);
  2299. smalltalk.addMethod(
  2300. unescape('_messageSends'),
  2301. smalltalk.method({
  2302. selector: unescape('messageSends'),
  2303. category: 'accessing',
  2304. fn: function (){
  2305. var self=this;
  2306. return smalltalk.send(self, "_basicAt_", ["messageSends"]);
  2307. return self;},
  2308. args: [],
  2309. source: unescape('messageSends%0A%09%5Eself%20basicAt%3A%20%27messageSends%27'),
  2310. messageSends: ["basicAt:"],
  2311. referencedClasses: []
  2312. }),
  2313. smalltalk.CompiledMethod);
  2314. smalltalk.addMethod(
  2315. unescape('_methodClass'),
  2316. smalltalk.method({
  2317. selector: unescape('methodClass'),
  2318. category: 'accessing',
  2319. fn: function (){
  2320. var self=this;
  2321. return smalltalk.send(self, "_basicAt_", ["methodClass"]);
  2322. return self;},
  2323. args: [],
  2324. source: unescape('methodClass%0A%09%5Eself%20basicAt%3A%20%27methodClass%27'),
  2325. messageSends: ["basicAt:"],
  2326. referencedClasses: []
  2327. }),
  2328. smalltalk.CompiledMethod);
  2329. smalltalk.addMethod(
  2330. unescape('_referencedClasses'),
  2331. smalltalk.method({
  2332. selector: unescape('referencedClasses'),
  2333. category: 'accessing',
  2334. fn: function (){
  2335. var self=this;
  2336. return smalltalk.send(self, "_basicAt_", ["referencedClasses"]);
  2337. return self;},
  2338. args: [],
  2339. source: unescape('referencedClasses%0A%09%5Eself%20basicAt%3A%20%27referencedClasses%27'),
  2340. messageSends: ["basicAt:"],
  2341. referencedClasses: []
  2342. }),
  2343. smalltalk.CompiledMethod);
  2344. smalltalk.addMethod(
  2345. unescape('_arguments'),
  2346. smalltalk.method({
  2347. selector: unescape('arguments'),
  2348. category: 'accessing',
  2349. fn: function (){
  2350. var self=this;
  2351. return self.args || [];
  2352. return self;},
  2353. args: [],
  2354. source: unescape('arguments%0A%09%3Creturn%20self.args%20%7C%7C%20%5B%5D%3E'),
  2355. messageSends: [],
  2356. referencedClasses: []
  2357. }),
  2358. smalltalk.CompiledMethod);
  2359. smalltalk.addClass('Number', smalltalk.Object, [], 'Kernel');
  2360. smalltalk.addMethod(
  2361. unescape('__eq'),
  2362. smalltalk.method({
  2363. selector: unescape('%3D'),
  2364. category: 'comparing',
  2365. fn: function (aNumber){
  2366. var self=this;
  2367. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  2368. return Number(self) == aNumber;
  2369. return self;
  2370. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  2371. args: ["aNumber"],
  2372. source: unescape('%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%20aNumber%3E'),
  2373. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2374. referencedClasses: []
  2375. }),
  2376. smalltalk.Number);
  2377. smalltalk.addMethod(
  2378. unescape('__gt'),
  2379. smalltalk.method({
  2380. selector: unescape('%3E'),
  2381. category: 'comparing',
  2382. fn: function (aNumber){
  2383. var self=this;
  2384. return self > aNumber;
  2385. return self;},
  2386. args: ["aNumber"],
  2387. source: unescape('%3E%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%20aNumber%3E'),
  2388. messageSends: [],
  2389. referencedClasses: []
  2390. }),
  2391. smalltalk.Number);
  2392. smalltalk.addMethod(
  2393. unescape('__lt'),
  2394. smalltalk.method({
  2395. selector: unescape('%3C'),
  2396. category: 'comparing',
  2397. fn: function (aNumber){
  2398. var self=this;
  2399. return self < aNumber;
  2400. return self;},
  2401. args: ["aNumber"],
  2402. source: unescape('%3C%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%20aNumber%3E'),
  2403. messageSends: [],
  2404. referencedClasses: []
  2405. }),
  2406. smalltalk.Number);
  2407. smalltalk.addMethod(
  2408. unescape('__gt_eq'),
  2409. smalltalk.method({
  2410. selector: unescape('%3E%3D'),
  2411. category: 'comparing',
  2412. fn: function (aNumber){
  2413. var self=this;
  2414. return self >= aNumber;
  2415. return self;},
  2416. args: ["aNumber"],
  2417. source: unescape('%3E%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3E%3E%3D%20aNumber%3E'),
  2418. messageSends: [],
  2419. referencedClasses: []
  2420. }),
  2421. smalltalk.Number);
  2422. smalltalk.addMethod(
  2423. unescape('__lt_eq'),
  2424. smalltalk.method({
  2425. selector: unescape('%3C%3D'),
  2426. category: 'comparing',
  2427. fn: function (aNumber){
  2428. var self=this;
  2429. return self <= aNumber;
  2430. return self;},
  2431. args: ["aNumber"],
  2432. source: unescape('%3C%3D%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20%3C%3D%20aNumber%3E'),
  2433. messageSends: [],
  2434. referencedClasses: []
  2435. }),
  2436. smalltalk.Number);
  2437. smalltalk.addMethod(
  2438. unescape('__plus'),
  2439. smalltalk.method({
  2440. selector: unescape('+'),
  2441. category: 'arithmetic',
  2442. fn: function (aNumber){
  2443. var self=this;
  2444. return self + aNumber;
  2445. return self;},
  2446. args: ["aNumber"],
  2447. source: unescape('+%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20+%20aNumber%3E'),
  2448. messageSends: [],
  2449. referencedClasses: []
  2450. }),
  2451. smalltalk.Number);
  2452. smalltalk.addMethod(
  2453. unescape('__minus'),
  2454. smalltalk.method({
  2455. selector: unescape('-'),
  2456. category: 'arithmetic',
  2457. fn: function (aNumber){
  2458. var self=this;
  2459. return self - aNumber;
  2460. return self;},
  2461. args: ["aNumber"],
  2462. source: unescape('-%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20-%20aNumber%3E'),
  2463. messageSends: [],
  2464. referencedClasses: []
  2465. }),
  2466. smalltalk.Number);
  2467. smalltalk.addMethod(
  2468. unescape('__star'),
  2469. smalltalk.method({
  2470. selector: unescape('*'),
  2471. category: 'arithmetic',
  2472. fn: function (aNumber){
  2473. var self=this;
  2474. return self * aNumber;
  2475. return self;},
  2476. args: ["aNumber"],
  2477. source: unescape('*%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20*%20aNumber%3E'),
  2478. messageSends: [],
  2479. referencedClasses: []
  2480. }),
  2481. smalltalk.Number);
  2482. smalltalk.addMethod(
  2483. unescape('__slash'),
  2484. smalltalk.method({
  2485. selector: unescape('/'),
  2486. category: 'arithmetic',
  2487. fn: function (aNumber){
  2488. var self=this;
  2489. return self / aNumber;
  2490. return self;},
  2491. args: ["aNumber"],
  2492. source: unescape('/%20aNumber%0A%09%22Inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%20/%20aNumber%3E'),
  2493. messageSends: [],
  2494. referencedClasses: []
  2495. }),
  2496. smalltalk.Number);
  2497. smalltalk.addMethod(
  2498. unescape('_max_'),
  2499. smalltalk.method({
  2500. selector: unescape('max%3A'),
  2501. category: 'arithmetic',
  2502. fn: function (aNumber){
  2503. var self=this;
  2504. return Math.max(self, aNumber);;
  2505. return self;},
  2506. args: ["aNumber"],
  2507. source: unescape('max%3A%20aNumber%0A%09%3Creturn%20Math.max%28self%2C%20aNumber%29%3B%3E'),
  2508. messageSends: [],
  2509. referencedClasses: []
  2510. }),
  2511. smalltalk.Number);
  2512. smalltalk.addMethod(
  2513. unescape('_min_'),
  2514. smalltalk.method({
  2515. selector: unescape('min%3A'),
  2516. category: 'arithmetic',
  2517. fn: function (aNumber){
  2518. var self=this;
  2519. return Math.min(self, aNumber);;
  2520. return self;},
  2521. args: ["aNumber"],
  2522. source: unescape('min%3A%20aNumber%0A%09%3Creturn%20Math.min%28self%2C%20aNumber%29%3B%3E'),
  2523. messageSends: [],
  2524. referencedClasses: []
  2525. }),
  2526. smalltalk.Number);
  2527. smalltalk.addMethod(
  2528. unescape('_rounded'),
  2529. smalltalk.method({
  2530. selector: unescape('rounded'),
  2531. category: 'converting',
  2532. fn: function (){
  2533. var self=this;
  2534. return Math.round(self);;
  2535. return self;},
  2536. args: [],
  2537. source: unescape('rounded%0A%09%3Creturn%20Math.round%28self%29%3B%3E'),
  2538. messageSends: [],
  2539. referencedClasses: []
  2540. }),
  2541. smalltalk.Number);
  2542. smalltalk.addMethod(
  2543. unescape('_truncated'),
  2544. smalltalk.method({
  2545. selector: unescape('truncated'),
  2546. category: 'converting',
  2547. fn: function (){
  2548. var self=this;
  2549. var result=nil;
  2550. ((($receiver = self >= (0)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return result = Math.floor(self);;})() : (function(){return result = (Math.floor(self * (-1)) * (-1));;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return result = Math.floor(self);;}), (function(){return result = (Math.floor(self * (-1)) * (-1));;})]));
  2551. return result;
  2552. return self;},
  2553. args: [],
  2554. source: unescape('truncated%0A%7Cresult%7C%0A%0A%20%20%20%20self%20%3E%3D%200%20%0A%20%20%20%20%20%20%20%20ifTrue%3A%20%5B%3Cresult%20%3D%20Math.floor%28self%29%3B%3E%5D%0A%20%20%20%20%20%20%20%20ifFalse%3A%20%5B%3Cresult%20%3D%20%28Math.floor%28self%20*%20%28-1%29%29%20*%20%28-1%29%29%3B%3E%5D.%0A%0A%20%20%20%20%5E%20result'),
  2555. messageSends: ["ifTrue:ifFalse:", unescape("%3E%3D")],
  2556. referencedClasses: []
  2557. }),
  2558. smalltalk.Number);
  2559. smalltalk.addMethod(
  2560. unescape('_to_'),
  2561. smalltalk.method({
  2562. selector: unescape('to%3A'),
  2563. category: 'converting',
  2564. fn: function (aNumber){
  2565. var self=this;
  2566. var array=nil;
  2567. var first=nil;
  2568. var last=nil;
  2569. var count=nil;
  2570. first=smalltalk.send(self, "_truncated", []);
  2571. last=((($receiver = smalltalk.send(aNumber, "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2572. count=(1);
  2573. ((($receiver = ((($receiver = first).klass === smalltalk.Number) ? $receiver <=last : smalltalk.send($receiver, "__lt_eq", [last]))).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_error_", ["Wrong interval"]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", ["Wrong interval"]);})]));
  2574. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2575. smalltalk.send(((($receiver = last).klass === smalltalk.Number) ? $receiver -first : smalltalk.send($receiver, "__minus", [first])), "_timesRepeat_", [(function(){smalltalk.send(array, "_at_put_", [count, first]);count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return first=((($receiver = first).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]);
  2576. return array;
  2577. return self;},
  2578. args: ["aNumber"],
  2579. source: unescape('to%3A%20aNumber%0A%09%7C%20array%20first%20last%20count%20%7C%0A%09first%20%3A%3D%20self%20truncated.%0A%09last%20%3A%3D%20aNumber%20truncated%20+%201.%0A%09count%20%3A%3D%201.%0A%09%28first%20%3C%3D%20last%29%20ifFalse%3A%20%5Bself%20error%3A%20%27Wrong%20interval%27%5D.%0A%09array%20%3A%3D%20Array%20new.%0A%09%28last%20-%20first%29%20timesRepeat%3A%20%5B%0A%09%20%20%20%20array%20at%3A%20count%20put%3A%20first.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201.%0A%09%20%20%20%20first%20%3A%3D%20first%20+%201%5D.%0A%09%5Earray'),
  2580. messageSends: ["truncated", unescape("+"), "ifFalse:", unescape("%3C%3D"), "error:", "new", "timesRepeat:", unescape("-"), "at:put:"],
  2581. referencedClasses: [smalltalk.Array]
  2582. }),
  2583. smalltalk.Number);
  2584. smalltalk.addMethod(
  2585. unescape('_timesRepeat_'),
  2586. smalltalk.method({
  2587. selector: unescape('timesRepeat%3A'),
  2588. category: 'enumerating',
  2589. fn: function (aBlock){
  2590. var self=this;
  2591. var integer=nil;
  2592. var count=nil;
  2593. integer=smalltalk.send(self, "_truncated", []);
  2594. count=(1);
  2595. (function(){while(!(function(){return ((($receiver = count).klass === smalltalk.Number) ? $receiver >self : smalltalk.send($receiver, "__gt", [self]));})()) {(function(){smalltalk.send(aBlock, "_value", []);return count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()}})();
  2596. return self;},
  2597. args: ["aBlock"],
  2598. source: unescape('timesRepeat%3A%20aBlock%0A%09%7C%20integer%20count%20%7C%0A%09integer%20%3A%3D%20self%20truncated.%0A%09count%20%3A%3D%201.%0A%09%5Bcount%20%3E%20self%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20aBlock%20value.%0A%09%20%20%20%20count%20%3A%3D%20count%20+%201%5D'),
  2599. messageSends: ["truncated", "whileFalse:", unescape("%3E"), "value", unescape("+")],
  2600. referencedClasses: []
  2601. }),
  2602. smalltalk.Number);
  2603. smalltalk.addMethod(
  2604. unescape('_to_do_'),
  2605. smalltalk.method({
  2606. selector: unescape('to%3Ado%3A'),
  2607. category: 'enumerating',
  2608. fn: function (aNumber, aBlock){
  2609. var self=this;
  2610. return smalltalk.send(smalltalk.send(self, "_to_", [aNumber]), "_do_", [aBlock]);
  2611. return self;},
  2612. args: ["aNumber", "aBlock"],
  2613. source: unescape('to%3A%20aNumber%20do%3A%20aBlock%0A%09%5E%28self%20to%3A%20aNumber%29%20do%3A%20aBlock'),
  2614. messageSends: ["do:", "to:"],
  2615. referencedClasses: []
  2616. }),
  2617. smalltalk.Number);
  2618. smalltalk.addMethod(
  2619. unescape('_asString'),
  2620. smalltalk.method({
  2621. selector: unescape('asString'),
  2622. category: 'converting',
  2623. fn: function (){
  2624. var self=this;
  2625. return smalltalk.send(self, "_printString", []);
  2626. return self;},
  2627. args: [],
  2628. source: unescape('asString%0A%09%5Eself%20printString'),
  2629. messageSends: ["printString"],
  2630. referencedClasses: []
  2631. }),
  2632. smalltalk.Number);
  2633. smalltalk.addMethod(
  2634. unescape('_asJavascript'),
  2635. smalltalk.method({
  2636. selector: unescape('asJavascript'),
  2637. category: 'converting',
  2638. fn: function (){
  2639. var self=this;
  2640. return smalltalk.send(smalltalk.send(unescape("%28"), "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [unescape("%29")]);
  2641. return self;},
  2642. args: [],
  2643. source: unescape('asJavascript%0A%09%5E%27%28%27%2C%20self%20printString%2C%20%27%29%27'),
  2644. messageSends: [unescape("%2C"), "printString"],
  2645. referencedClasses: []
  2646. }),
  2647. smalltalk.Number);
  2648. smalltalk.addMethod(
  2649. unescape('_printString'),
  2650. smalltalk.method({
  2651. selector: unescape('printString'),
  2652. category: 'printing',
  2653. fn: function (){
  2654. var self=this;
  2655. return String(self);
  2656. return self;},
  2657. args: [],
  2658. source: unescape('printString%0A%09%3Creturn%20String%28self%29%3E'),
  2659. messageSends: [],
  2660. referencedClasses: []
  2661. }),
  2662. smalltalk.Number);
  2663. smalltalk.addMethod(
  2664. unescape('_isNumber'),
  2665. smalltalk.method({
  2666. selector: unescape('isNumber'),
  2667. category: 'testing',
  2668. fn: function (){
  2669. var self=this;
  2670. return true;
  2671. return self;},
  2672. args: [],
  2673. source: unescape('isNumber%0A%09%5Etrue'),
  2674. messageSends: [],
  2675. referencedClasses: []
  2676. }),
  2677. smalltalk.Number);
  2678. smalltalk.addMethod(
  2679. unescape('_atRandom'),
  2680. smalltalk.method({
  2681. selector: unescape('atRandom'),
  2682. category: 'converting',
  2683. fn: function (){
  2684. var self=this;
  2685. return ((($receiver = smalltalk.send(((($receiver = smalltalk.send(smalltalk.send((smalltalk.Random || Random), "_new", []), "_next", [])).klass === smalltalk.Number) ? $receiver *self : smalltalk.send($receiver, "__star", [self])), "_truncated", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));
  2686. return self;},
  2687. args: [],
  2688. source: unescape('atRandom%0A%20%20%20%20%5E%28Random%20new%20next%20*%20self%29%20truncated%20+%201'),
  2689. messageSends: [unescape("+"), "truncated", unescape("*"), "next", "new"],
  2690. referencedClasses: [smalltalk.Random]
  2691. }),
  2692. smalltalk.Number);
  2693. smalltalk.addMethod(
  2694. unescape('__at'),
  2695. smalltalk.method({
  2696. selector: unescape('@'),
  2697. category: 'converting',
  2698. fn: function (aNumber){
  2699. var self=this;
  2700. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, aNumber]);
  2701. return self;},
  2702. args: ["aNumber"],
  2703. source: unescape('@%20aNumber%0A%09%5EPoint%20x%3A%20self%20y%3A%20aNumber'),
  2704. messageSends: ["x:y:"],
  2705. referencedClasses: [smalltalk.Point]
  2706. }),
  2707. smalltalk.Number);
  2708. smalltalk.addMethod(
  2709. unescape('_asPoint'),
  2710. smalltalk.method({
  2711. selector: unescape('asPoint'),
  2712. category: 'converting',
  2713. fn: function (){
  2714. var self=this;
  2715. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [self, self]);
  2716. return self;},
  2717. args: [],
  2718. source: unescape('asPoint%0A%09%5EPoint%20x%3A%20self%20y%3A%20self'),
  2719. messageSends: ["x:y:"],
  2720. referencedClasses: [smalltalk.Point]
  2721. }),
  2722. smalltalk.Number);
  2723. smalltalk.addMethod(
  2724. unescape('_clearInterval'),
  2725. smalltalk.method({
  2726. selector: unescape('clearInterval'),
  2727. category: 'timeouts/intervals',
  2728. fn: function (){
  2729. var self=this;
  2730. clearInterval(Number(self));
  2731. return self;},
  2732. args: [],
  2733. source: unescape('clearInterval%0A%09%3CclearInterval%28Number%28self%29%29%3E'),
  2734. messageSends: [],
  2735. referencedClasses: []
  2736. }),
  2737. smalltalk.Number);
  2738. smalltalk.addMethod(
  2739. unescape('_asJSONObject'),
  2740. smalltalk.method({
  2741. selector: unescape('asJSONObject'),
  2742. category: 'converting',
  2743. fn: function (){
  2744. var self=this;
  2745. return self;
  2746. return self;},
  2747. args: [],
  2748. source: unescape('asJSONObject%0A%09%5Eself'),
  2749. messageSends: [],
  2750. referencedClasses: []
  2751. }),
  2752. smalltalk.Number);
  2753. smalltalk.addMethod(
  2754. unescape('_clearTimeout'),
  2755. smalltalk.method({
  2756. selector: unescape('clearTimeout'),
  2757. category: 'timeouts/intervals',
  2758. fn: function (){
  2759. var self=this;
  2760. clearTimeout(Number(self));
  2761. return self;},
  2762. args: [],
  2763. source: unescape('clearTimeout%0A%09%3CclearTimeout%28Number%28self%29%29%3E'),
  2764. messageSends: [],
  2765. referencedClasses: []
  2766. }),
  2767. smalltalk.Number);
  2768. smalltalk.addMethod(
  2769. unescape('_even'),
  2770. smalltalk.method({
  2771. selector: unescape('even'),
  2772. category: 'testing',
  2773. fn: function (){
  2774. var self=this;
  2775. return smalltalk.send((0), "__eq", [smalltalk.send(self, "_\\\\", [(2)])]);
  2776. return self;},
  2777. args: [],
  2778. source: unescape('even%0A%09%5E%200%20%3D%20%28self%20%5C%5C%202%29'),
  2779. messageSends: [unescape("%3D"), unescape("%5C%5C%5C%5C")],
  2780. referencedClasses: []
  2781. }),
  2782. smalltalk.Number);
  2783. smalltalk.addMethod(
  2784. unescape('_odd'),
  2785. smalltalk.method({
  2786. selector: unescape('odd'),
  2787. category: 'testing',
  2788. fn: function (){
  2789. var self=this;
  2790. return smalltalk.send(smalltalk.send(self, "_even", []), "_not", []);
  2791. return self;},
  2792. args: [],
  2793. source: unescape('odd%0A%09%5E%20self%20even%20not'),
  2794. messageSends: ["not", "even"],
  2795. referencedClasses: []
  2796. }),
  2797. smalltalk.Number);
  2798. smalltalk.addMethod(
  2799. unescape('_negated'),
  2800. smalltalk.method({
  2801. selector: unescape('negated'),
  2802. category: 'arithmetic',
  2803. fn: function (){
  2804. var self=this;
  2805. return (0) - self;
  2806. return self;},
  2807. args: [],
  2808. source: unescape('negated%0A%09%5E0%20-%20self'),
  2809. messageSends: [unescape("-")],
  2810. referencedClasses: []
  2811. }),
  2812. smalltalk.Number);
  2813. smalltalk.addMethod(
  2814. unescape('__eq_eq'),
  2815. smalltalk.method({
  2816. selector: unescape('%3D%3D'),
  2817. category: 'comparing',
  2818. fn: function (aNumber){
  2819. var self=this;
  2820. try{((($receiver = smalltalk.send(smalltalk.send(aNumber, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  2821. return Number(self) === Number(aNumber);
  2822. return self;
  2823. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  2824. args: ["aNumber"],
  2825. source: unescape('%3D%3D%20aNumber%0A%09aNumber%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%20%0A%09%3Creturn%20Number%28self%29%20%3D%3D%3D%20Number%28aNumber%29%3E'),
  2826. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  2827. referencedClasses: []
  2828. }),
  2829. smalltalk.Number);
  2830. smalltalk.addMethod(
  2831. unescape('_printShowingDecimalPlaces_'),
  2832. smalltalk.method({
  2833. selector: unescape('printShowingDecimalPlaces%3A'),
  2834. category: 'printing',
  2835. fn: function (placesDesired){
  2836. var self=this;
  2837. return self.toFixed(placesDesired);
  2838. return self;},
  2839. args: ["placesDesired"],
  2840. source: unescape('printShowingDecimalPlaces%3A%20placesDesired%0A%09%3Creturn%20self.toFixed%28placesDesired%29%3E'),
  2841. messageSends: [],
  2842. referencedClasses: []
  2843. }),
  2844. smalltalk.Number);
  2845. smalltalk.addMethod(
  2846. unescape('_%5C%5C'),
  2847. smalltalk.method({
  2848. selector: unescape('%5C%5C'),
  2849. category: 'arithmetic',
  2850. fn: function (aNumber){
  2851. var self=this;
  2852. return self % aNumber;
  2853. return self;},
  2854. args: ["aNumber"],
  2855. source: unescape('%5C%5C%20aNumber%0A%09%3Creturn%20self%20%25%20aNumber%3E'),
  2856. messageSends: [],
  2857. referencedClasses: []
  2858. }),
  2859. smalltalk.Number);
  2860. smalltalk.addMethod(
  2861. unescape('_pi'),
  2862. smalltalk.method({
  2863. selector: unescape('pi'),
  2864. category: 'instance creation',
  2865. fn: function (){
  2866. var self=this;
  2867. return Math.PI;
  2868. return self;},
  2869. args: [],
  2870. source: unescape('pi%0A%09%3Creturn%20Math.PI%3E'),
  2871. messageSends: [],
  2872. referencedClasses: []
  2873. }),
  2874. smalltalk.Number.klass);
  2875. smalltalk.addClass('BlockClosure', smalltalk.Object, [], 'Kernel');
  2876. smalltalk.addMethod(
  2877. unescape('_compiledSource'),
  2878. smalltalk.method({
  2879. selector: unescape('compiledSource'),
  2880. category: 'accessing',
  2881. fn: function (){
  2882. var self=this;
  2883. return self.toString();
  2884. return self;},
  2885. args: [],
  2886. source: unescape('compiledSource%0A%09%3Creturn%20self.toString%28%29%3E'),
  2887. messageSends: [],
  2888. referencedClasses: []
  2889. }),
  2890. smalltalk.BlockClosure);
  2891. smalltalk.addMethod(
  2892. unescape('_whileTrue_'),
  2893. smalltalk.method({
  2894. selector: unescape('whileTrue%3A'),
  2895. category: 'controlling',
  2896. fn: function (aBlock){
  2897. var self=this;
  2898. while(self()) {aBlock()};
  2899. return self;},
  2900. args: ["aBlock"],
  2901. source: unescape('whileTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2902. messageSends: [],
  2903. referencedClasses: []
  2904. }),
  2905. smalltalk.BlockClosure);
  2906. smalltalk.addMethod(
  2907. unescape('_whileFalse_'),
  2908. smalltalk.method({
  2909. selector: unescape('whileFalse%3A'),
  2910. category: 'controlling',
  2911. fn: function (aBlock){
  2912. var self=this;
  2913. while(!self()) {aBlock()};
  2914. return self;},
  2915. args: ["aBlock"],
  2916. source: unescape('whileFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Cwhile%28%21self%28%29%29%20%7BaBlock%28%29%7D%3E'),
  2917. messageSends: [],
  2918. referencedClasses: []
  2919. }),
  2920. smalltalk.BlockClosure);
  2921. smalltalk.addMethod(
  2922. unescape('_value'),
  2923. smalltalk.method({
  2924. selector: unescape('value'),
  2925. category: 'evaluating',
  2926. fn: function (){
  2927. var self=this;
  2928. return self();;
  2929. return self;},
  2930. args: [],
  2931. source: unescape('value%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28%29%3B%3E'),
  2932. messageSends: [],
  2933. referencedClasses: []
  2934. }),
  2935. smalltalk.BlockClosure);
  2936. smalltalk.addMethod(
  2937. unescape('_value_'),
  2938. smalltalk.method({
  2939. selector: unescape('value%3A'),
  2940. category: 'evaluating',
  2941. fn: function (anArg){
  2942. var self=this;
  2943. return self(anArg);;
  2944. return self;},
  2945. args: ["anArg"],
  2946. source: unescape('value%3A%20anArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28anArg%29%3B%3E'),
  2947. messageSends: [],
  2948. referencedClasses: []
  2949. }),
  2950. smalltalk.BlockClosure);
  2951. smalltalk.addMethod(
  2952. unescape('_value_value_'),
  2953. smalltalk.method({
  2954. selector: unescape('value%3Avalue%3A'),
  2955. category: 'evaluating',
  2956. fn: function (firstArg, secondArg){
  2957. var self=this;
  2958. return self(firstArg, secondArg);;
  2959. return self;},
  2960. args: ["firstArg", "secondArg"],
  2961. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%29%3B%3E'),
  2962. messageSends: [],
  2963. referencedClasses: []
  2964. }),
  2965. smalltalk.BlockClosure);
  2966. smalltalk.addMethod(
  2967. unescape('_value_value_value_'),
  2968. smalltalk.method({
  2969. selector: unescape('value%3Avalue%3Avalue%3A'),
  2970. category: 'evaluating',
  2971. fn: function (firstArg, secondArg, thirdArg){
  2972. var self=this;
  2973. return self(firstArg, secondArg, thirdArg);;
  2974. return self;},
  2975. args: ["firstArg", "secondArg", "thirdArg"],
  2976. source: unescape('value%3A%20firstArg%20value%3A%20secondArg%20value%3A%20thirdArg%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3Creturn%20self%28firstArg%2C%20secondArg%2C%20thirdArg%29%3B%3E'),
  2977. messageSends: [],
  2978. referencedClasses: []
  2979. }),
  2980. smalltalk.BlockClosure);
  2981. smalltalk.addMethod(
  2982. unescape('_valueWithPossibleArguments_'),
  2983. smalltalk.method({
  2984. selector: unescape('valueWithPossibleArguments%3A'),
  2985. category: 'evaluating',
  2986. fn: function (aCollection){
  2987. var self=this;
  2988. return self.apply(null, aCollection);;
  2989. return self;},
  2990. args: ["aCollection"],
  2991. source: unescape('valueWithPossibleArguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28null%2C%20aCollection%29%3B%3E'),
  2992. messageSends: [],
  2993. referencedClasses: []
  2994. }),
  2995. smalltalk.BlockClosure);
  2996. smalltalk.addMethod(
  2997. unescape('_on_do_'),
  2998. smalltalk.method({
  2999. selector: unescape('on%3Ado%3A'),
  3000. category: 'error handling',
  3001. fn: function (anErrorClass, aBlock){
  3002. var self=this;
  3003. smalltalk.send(self, "_try_catch_", [self, (function(error){return ((($receiver = smalltalk.send(error, "_isKindOf_", [anErrorClass])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(aBlock, "_value_", [error]);})() : (function(){return smalltalk.send(error, "_signal", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(aBlock, "_value_", [error]);}), (function(){return smalltalk.send(error, "_signal", []);})]));})]);
  3004. return self;},
  3005. args: ["anErrorClass", "aBlock"],
  3006. source: unescape('on%3A%20anErrorClass%20do%3A%20aBlock%0A%09self%20try%3A%20self%20catch%3A%20%5B%3Aerror%20%7C%0A%09%20%20%20%20%28error%20isKindOf%3A%20anErrorClass%29%20%0A%09%20%20%20%20%20ifTrue%3A%20%5BaBlock%20value%3A%20error%5D%0A%09%20%20%20%20%20ifFalse%3A%20%5Berror%20signal%5D%5D'),
  3007. messageSends: ["try:catch:", "ifTrue:ifFalse:", "isKindOf:", "value:", "signal"],
  3008. referencedClasses: []
  3009. }),
  3010. smalltalk.BlockClosure);
  3011. smalltalk.addMethod(
  3012. unescape('_valueWithTimeout_'),
  3013. smalltalk.method({
  3014. selector: unescape('valueWithTimeout%3A'),
  3015. category: 'timeout/interval',
  3016. fn: function (aNumber){
  3017. var self=this;
  3018. return setTimeout(self, aNumber);
  3019. return self;},
  3020. args: ["aNumber"],
  3021. source: unescape('valueWithTimeout%3A%20aNumber%0A%09%3Creturn%20setTimeout%28self%2C%20aNumber%29%3E'),
  3022. messageSends: [],
  3023. referencedClasses: []
  3024. }),
  3025. smalltalk.BlockClosure);
  3026. smalltalk.addMethod(
  3027. unescape('_valueWithInterval_'),
  3028. smalltalk.method({
  3029. selector: unescape('valueWithInterval%3A'),
  3030. category: 'timeout/interval',
  3031. fn: function (aNumber){
  3032. var self=this;
  3033. return setInterval(self, aNumber);
  3034. return self;},
  3035. args: ["aNumber"],
  3036. source: unescape('valueWithInterval%3A%20aNumber%0A%09%3Creturn%20setInterval%28self%2C%20aNumber%29%3E'),
  3037. messageSends: [],
  3038. referencedClasses: []
  3039. }),
  3040. smalltalk.BlockClosure);
  3041. smalltalk.addMethod(
  3042. unescape('_whileFalse'),
  3043. smalltalk.method({
  3044. selector: unescape('whileFalse'),
  3045. category: 'controlling',
  3046. fn: function (){
  3047. var self=this;
  3048. smalltalk.send(self, "_whileFalse_", [(function(){return nil;})]);
  3049. return self;},
  3050. args: [],
  3051. source: unescape('whileFalse%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileFalse%3A%20%5B%5D'),
  3052. messageSends: ["whileFalse:"],
  3053. referencedClasses: []
  3054. }),
  3055. smalltalk.BlockClosure);
  3056. smalltalk.addMethod(
  3057. unescape('_whileTrue'),
  3058. smalltalk.method({
  3059. selector: unescape('whileTrue'),
  3060. category: 'controlling',
  3061. fn: function (){
  3062. var self=this;
  3063. smalltalk.send(self, "_whileTrue_", [(function(){return nil;})]);
  3064. return self;},
  3065. args: [],
  3066. source: unescape('whileTrue%0A%09%22inlined%20in%20the%20Compiler%22%0A%09self%20whileTrue%3A%20%5B%5D'),
  3067. messageSends: ["whileTrue:"],
  3068. referencedClasses: []
  3069. }),
  3070. smalltalk.BlockClosure);
  3071. smalltalk.addMethod(
  3072. unescape('_new'),
  3073. smalltalk.method({
  3074. selector: unescape('new'),
  3075. category: 'evaluating',
  3076. fn: function (){
  3077. var self=this;
  3078. return new self();
  3079. return self;},
  3080. args: [],
  3081. source: unescape('new%0A%09%22Use%20the%20receiver%20as%20a%20JS%20constructor.%20%0A%09*Do%20not*%20use%20this%20method%20to%20instanciate%20Smalltalk%20objects%21%22%0A%09%3Creturn%20new%20self%28%29%3E'),
  3082. messageSends: [],
  3083. referencedClasses: []
  3084. }),
  3085. smalltalk.BlockClosure);
  3086. smalltalk.addMethod(
  3087. unescape('_applyTo_arguments_'),
  3088. smalltalk.method({
  3089. selector: unescape('applyTo%3Aarguments%3A'),
  3090. category: 'evaluating',
  3091. fn: function (anObject, aCollection){
  3092. var self=this;
  3093. return self.apply(anObject, aCollection);
  3094. return self;},
  3095. args: ["anObject", "aCollection"],
  3096. source: unescape('applyTo%3A%20anObject%20arguments%3A%20aCollection%0A%09%3Creturn%20self.apply%28anObject%2C%20aCollection%29%3E'),
  3097. messageSends: [],
  3098. referencedClasses: []
  3099. }),
  3100. smalltalk.BlockClosure);
  3101. smalltalk.addMethod(
  3102. unescape('_timeToRun'),
  3103. smalltalk.method({
  3104. selector: unescape('timeToRun'),
  3105. category: 'evaluating',
  3106. fn: function (){
  3107. var self=this;
  3108. return smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [self]);
  3109. return self;},
  3110. args: [],
  3111. source: unescape('timeToRun%0A%09%22Answer%20the%20number%20of%20milliseconds%20taken%20to%20execute%20this%20block.%22%0A%0A%09%5E%20Date%20millisecondsToRun%3A%20self'),
  3112. messageSends: ["millisecondsToRun:"],
  3113. referencedClasses: [smalltalk.Date]
  3114. }),
  3115. smalltalk.BlockClosure);
  3116. smalltalk.addClass('Boolean', smalltalk.Object, [], 'Kernel');
  3117. smalltalk.addMethod(
  3118. unescape('__eq'),
  3119. smalltalk.method({
  3120. selector: unescape('%3D'),
  3121. category: 'comparing',
  3122. fn: function (aBoolean){
  3123. var self=this;
  3124. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  3125. return Boolean(self == true) == aBoolean;
  3126. return self;
  3127. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  3128. args: ["aBoolean"],
  3129. source: unescape('%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%20aBoolean%3E'),
  3130. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3131. referencedClasses: []
  3132. }),
  3133. smalltalk.Boolean);
  3134. smalltalk.addMethod(
  3135. unescape('_shallowCopy'),
  3136. smalltalk.method({
  3137. selector: unescape('shallowCopy'),
  3138. category: 'copying',
  3139. fn: function (){
  3140. var self=this;
  3141. return self;
  3142. return self;},
  3143. args: [],
  3144. source: unescape('shallowCopy%0A%09%5Eself'),
  3145. messageSends: [],
  3146. referencedClasses: []
  3147. }),
  3148. smalltalk.Boolean);
  3149. smalltalk.addMethod(
  3150. unescape('_deepCopy'),
  3151. smalltalk.method({
  3152. selector: unescape('deepCopy'),
  3153. category: 'copying',
  3154. fn: function (){
  3155. var self=this;
  3156. return self;
  3157. return self;},
  3158. args: [],
  3159. source: unescape('deepCopy%0A%09%5Eself'),
  3160. messageSends: [],
  3161. referencedClasses: []
  3162. }),
  3163. smalltalk.Boolean);
  3164. smalltalk.addMethod(
  3165. unescape('_ifTrue_'),
  3166. smalltalk.method({
  3167. selector: unescape('ifTrue%3A'),
  3168. category: 'controlling',
  3169. fn: function (aBlock){
  3170. var self=this;
  3171. return smalltalk.send(self, "_ifTrue_ifFalse_", [aBlock, (function(){return nil;})]);
  3172. return self;},
  3173. args: ["aBlock"],
  3174. source: unescape('ifTrue%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20aBlock%20ifFalse%3A%20%5B%5D'),
  3175. messageSends: ["ifTrue:ifFalse:"],
  3176. referencedClasses: []
  3177. }),
  3178. smalltalk.Boolean);
  3179. smalltalk.addMethod(
  3180. unescape('_ifFalse_'),
  3181. smalltalk.method({
  3182. selector: unescape('ifFalse%3A'),
  3183. category: 'controlling',
  3184. fn: function (aBlock){
  3185. var self=this;
  3186. return smalltalk.send(self, "_ifTrue_ifFalse_", [(function(){return nil;}), aBlock]);
  3187. return self;},
  3188. args: ["aBlock"],
  3189. source: unescape('ifFalse%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20%5B%5D%20ifFalse%3A%20aBlock'),
  3190. messageSends: ["ifTrue:ifFalse:"],
  3191. referencedClasses: []
  3192. }),
  3193. smalltalk.Boolean);
  3194. smalltalk.addMethod(
  3195. unescape('_ifFalse_ifTrue_'),
  3196. smalltalk.method({
  3197. selector: unescape('ifFalse%3AifTrue%3A'),
  3198. category: 'controlling',
  3199. fn: function (aBlock, anotherBlock){
  3200. var self=this;
  3201. return smalltalk.send(self, "_ifTrue_ifFalse_", [anotherBlock, aBlock]);
  3202. return self;},
  3203. args: ["aBlock", "anotherBlock"],
  3204. source: unescape('ifFalse%3A%20aBlock%20ifTrue%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifTrue%3A%20anotherBlock%20ifFalse%3A%20aBlock'),
  3205. messageSends: ["ifTrue:ifFalse:"],
  3206. referencedClasses: []
  3207. }),
  3208. smalltalk.Boolean);
  3209. smalltalk.addMethod(
  3210. unescape('_ifTrue_ifFalse_'),
  3211. smalltalk.method({
  3212. selector: unescape('ifTrue%3AifFalse%3A'),
  3213. category: 'controlling',
  3214. fn: function (aBlock, anotherBlock){
  3215. var self=this;
  3216. if(self == true) {
  3217. return aBlock();
  3218. } else {
  3219. return anotherBlock();
  3220. }
  3221. ;
  3222. return self;},
  3223. args: ["aBlock", "anotherBlock"],
  3224. source: unescape('ifTrue%3A%20aBlock%20ifFalse%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3225. messageSends: [],
  3226. referencedClasses: []
  3227. }),
  3228. smalltalk.Boolean);
  3229. smalltalk.addMethod(
  3230. unescape('_and_'),
  3231. smalltalk.method({
  3232. selector: unescape('and%3A'),
  3233. category: 'controlling',
  3234. fn: function (aBlock){
  3235. var self=this;
  3236. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [aBlock, (function(){return false;})]);
  3237. return self;},
  3238. args: ["aBlock"],
  3239. source: unescape('and%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20aBlock%0A%09%20%20%20%20ifFalse%3A%20%5Bfalse%5D'),
  3240. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3241. referencedClasses: []
  3242. }),
  3243. smalltalk.Boolean);
  3244. smalltalk.addMethod(
  3245. unescape('_or_'),
  3246. smalltalk.method({
  3247. selector: unescape('or%3A'),
  3248. category: 'controlling',
  3249. fn: function (aBlock){
  3250. var self=this;
  3251. return smalltalk.send(smalltalk.send(self, "__eq", [true]), "_ifTrue_ifFalse_", [(function(){return true;}), aBlock]);
  3252. return self;},
  3253. args: ["aBlock"],
  3254. source: unescape('or%3A%20aBlock%0A%09%5Eself%20%3D%20true%0A%09%20%20%20%20ifTrue%3A%20%5Btrue%5D%0A%09%20%20%20%20ifFalse%3A%20aBlock'),
  3255. messageSends: ["ifTrue:ifFalse:", unescape("%3D")],
  3256. referencedClasses: []
  3257. }),
  3258. smalltalk.Boolean);
  3259. smalltalk.addMethod(
  3260. unescape('_not'),
  3261. smalltalk.method({
  3262. selector: unescape('not'),
  3263. category: 'controlling',
  3264. fn: function (){
  3265. var self=this;
  3266. return smalltalk.send(self, "__eq", [false]);
  3267. return self;},
  3268. args: [],
  3269. source: unescape('not%0A%09%5Eself%20%3D%20false'),
  3270. messageSends: [unescape("%3D")],
  3271. referencedClasses: []
  3272. }),
  3273. smalltalk.Boolean);
  3274. smalltalk.addMethod(
  3275. unescape('_printString'),
  3276. smalltalk.method({
  3277. selector: unescape('printString'),
  3278. category: 'printing',
  3279. fn: function (){
  3280. var self=this;
  3281. return self.toString();
  3282. return self;},
  3283. args: [],
  3284. source: unescape('printString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3285. messageSends: [],
  3286. referencedClasses: []
  3287. }),
  3288. smalltalk.Boolean);
  3289. smalltalk.addMethod(
  3290. unescape('_asJSONObject'),
  3291. smalltalk.method({
  3292. selector: unescape('asJSONObject'),
  3293. category: 'converting',
  3294. fn: function (){
  3295. var self=this;
  3296. return self;
  3297. return self;},
  3298. args: [],
  3299. source: unescape('asJSONObject%0A%09%5Eself'),
  3300. messageSends: [],
  3301. referencedClasses: []
  3302. }),
  3303. smalltalk.Boolean);
  3304. smalltalk.addMethod(
  3305. unescape('_%26'),
  3306. smalltalk.method({
  3307. selector: unescape('%26'),
  3308. category: 'controlling',
  3309. fn: function (aBoolean){
  3310. var self=this;
  3311. if(self == true) {
  3312. return aBoolean;
  3313. } else {
  3314. return false;
  3315. }
  3316. ;
  3317. return self;},
  3318. args: ["aBoolean"],
  3319. source: unescape('%26%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20false%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3320. messageSends: [],
  3321. referencedClasses: []
  3322. }),
  3323. smalltalk.Boolean);
  3324. smalltalk.addMethod(
  3325. unescape('_%7C'),
  3326. smalltalk.method({
  3327. selector: unescape('%7C'),
  3328. category: 'controlling',
  3329. fn: function (aBoolean){
  3330. var self=this;
  3331. if(self == true) {
  3332. return true;
  3333. } else {
  3334. return aBoolean;
  3335. }
  3336. ;
  3337. return self;},
  3338. args: ["aBoolean"],
  3339. source: unescape('%7C%20aBoolean%0A%09%3C%0A%09%20%20%20%20if%28self%20%3D%3D%20true%29%20%7B%0A%09%09return%20true%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20aBoolean%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  3340. messageSends: [],
  3341. referencedClasses: []
  3342. }),
  3343. smalltalk.Boolean);
  3344. smalltalk.addMethod(
  3345. unescape('__eq_eq'),
  3346. smalltalk.method({
  3347. selector: unescape('%3D%3D'),
  3348. category: 'comparing',
  3349. fn: function (aBoolean){
  3350. var self=this;
  3351. try{((($receiver = smalltalk.send(smalltalk.send(aBoolean, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  3352. return Boolean(self == true) === Boolean(aBoolean == true);
  3353. return self;
  3354. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  3355. args: ["aBoolean"],
  3356. source: unescape('%3D%3D%20aBoolean%0A%09aBoolean%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20Boolean%28self%20%3D%3D%20true%29%20%3D%3D%3D%20Boolean%28aBoolean%20%3D%3D%20true%29%3E'),
  3357. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  3358. referencedClasses: []
  3359. }),
  3360. smalltalk.Boolean);
  3361. smalltalk.addClass('Date', smalltalk.Object, [], 'Kernel');
  3362. smalltalk.Date.comment=unescape('The%20Date%20class%20is%20used%20to%20work%20with%20dates%20and%20times.')
  3363. smalltalk.addMethod(
  3364. unescape('_year'),
  3365. smalltalk.method({
  3366. selector: unescape('year'),
  3367. category: 'accessing',
  3368. fn: function (){
  3369. var self=this;
  3370. return self.getFullYear();
  3371. return self;},
  3372. args: [],
  3373. source: unescape('year%0A%09%3Creturn%20self.getFullYear%28%29%3E'),
  3374. messageSends: [],
  3375. referencedClasses: []
  3376. }),
  3377. smalltalk.Date);
  3378. smalltalk.addMethod(
  3379. unescape('_month'),
  3380. smalltalk.method({
  3381. selector: unescape('month'),
  3382. category: 'accessing',
  3383. fn: function (){
  3384. var self=this;
  3385. return self.getMonth() + 1;
  3386. return self;},
  3387. args: [],
  3388. source: unescape('month%0A%09%3Creturn%20self.getMonth%28%29%20+%201%3E'),
  3389. messageSends: [],
  3390. referencedClasses: []
  3391. }),
  3392. smalltalk.Date);
  3393. smalltalk.addMethod(
  3394. unescape('_month_'),
  3395. smalltalk.method({
  3396. selector: unescape('month%3A'),
  3397. category: 'accessing',
  3398. fn: function (aNumber){
  3399. var self=this;
  3400. self.setMonth(aNumber - 1);
  3401. return self;},
  3402. args: ["aNumber"],
  3403. source: unescape('month%3A%20aNumber%0A%09%3Cself.setMonth%28aNumber%20-%201%29%3E'),
  3404. messageSends: [],
  3405. referencedClasses: []
  3406. }),
  3407. smalltalk.Date);
  3408. smalltalk.addMethod(
  3409. unescape('_day'),
  3410. smalltalk.method({
  3411. selector: unescape('day'),
  3412. category: 'accessing',
  3413. fn: function (){
  3414. var self=this;
  3415. return smalltalk.send(self, "_dayOfWeek", []);
  3416. return self;},
  3417. args: [],
  3418. source: unescape('day%0A%09%5Eself%20dayOfWeek'),
  3419. messageSends: ["dayOfWeek"],
  3420. referencedClasses: []
  3421. }),
  3422. smalltalk.Date);
  3423. smalltalk.addMethod(
  3424. unescape('_dayOfWeek'),
  3425. smalltalk.method({
  3426. selector: unescape('dayOfWeek'),
  3427. category: 'accessing',
  3428. fn: function (){
  3429. var self=this;
  3430. return self.getDay() + 1;
  3431. return self;},
  3432. args: [],
  3433. source: unescape('dayOfWeek%0A%09%3Creturn%20self.getDay%28%29%20+%201%3E'),
  3434. messageSends: [],
  3435. referencedClasses: []
  3436. }),
  3437. smalltalk.Date);
  3438. smalltalk.addMethod(
  3439. unescape('_dayOfWeek_'),
  3440. smalltalk.method({
  3441. selector: unescape('dayOfWeek%3A'),
  3442. category: 'accessing',
  3443. fn: function (aNumber){
  3444. var self=this;
  3445. return self.setDay(aNumber - 1);
  3446. return self;},
  3447. args: ["aNumber"],
  3448. source: unescape('dayOfWeek%3A%20aNumber%0A%09%3Creturn%20self.setDay%28aNumber%20-%201%29%3E'),
  3449. messageSends: [],
  3450. referencedClasses: []
  3451. }),
  3452. smalltalk.Date);
  3453. smalltalk.addMethod(
  3454. unescape('_day_'),
  3455. smalltalk.method({
  3456. selector: unescape('day%3A'),
  3457. category: 'accessing',
  3458. fn: function (aNumber){
  3459. var self=this;
  3460. smalltalk.send(self, "_day_", [aNumber]);
  3461. return self;},
  3462. args: ["aNumber"],
  3463. source: unescape('day%3A%20aNumber%0A%09self%20day%3A%20aNumber'),
  3464. messageSends: ["day:"],
  3465. referencedClasses: []
  3466. }),
  3467. smalltalk.Date);
  3468. smalltalk.addMethod(
  3469. unescape('_year_'),
  3470. smalltalk.method({
  3471. selector: unescape('year%3A'),
  3472. category: 'accessing',
  3473. fn: function (aNumber){
  3474. var self=this;
  3475. self.setFullYear(aNumber);
  3476. return self;},
  3477. args: ["aNumber"],
  3478. source: unescape('year%3A%20aNumber%0A%09%3Cself.setFullYear%28aNumber%29%3E'),
  3479. messageSends: [],
  3480. referencedClasses: []
  3481. }),
  3482. smalltalk.Date);
  3483. smalltalk.addMethod(
  3484. unescape('_dayOfMonth'),
  3485. smalltalk.method({
  3486. selector: unescape('dayOfMonth'),
  3487. category: 'accessing',
  3488. fn: function (){
  3489. var self=this;
  3490. return self.getDate();
  3491. return self;},
  3492. args: [],
  3493. source: unescape('dayOfMonth%0A%09%3Creturn%20self.getDate%28%29%3E'),
  3494. messageSends: [],
  3495. referencedClasses: []
  3496. }),
  3497. smalltalk.Date);
  3498. smalltalk.addMethod(
  3499. unescape('_dayOfMonth_'),
  3500. smalltalk.method({
  3501. selector: unescape('dayOfMonth%3A'),
  3502. category: 'accessing',
  3503. fn: function (aNumber){
  3504. var self=this;
  3505. self.setDate(aNumber);
  3506. return self;},
  3507. args: ["aNumber"],
  3508. source: unescape('dayOfMonth%3A%20aNumber%0A%09%3Cself.setDate%28aNumber%29%3E'),
  3509. messageSends: [],
  3510. referencedClasses: []
  3511. }),
  3512. smalltalk.Date);
  3513. smalltalk.addMethod(
  3514. unescape('_asString'),
  3515. smalltalk.method({
  3516. selector: unescape('asString'),
  3517. category: 'converting',
  3518. fn: function (){
  3519. var self=this;
  3520. return self.toString();
  3521. return self;},
  3522. args: [],
  3523. source: unescape('asString%0A%09%3Creturn%20self.toString%28%29%3E'),
  3524. messageSends: [],
  3525. referencedClasses: []
  3526. }),
  3527. smalltalk.Date);
  3528. smalltalk.addMethod(
  3529. unescape('_printString'),
  3530. smalltalk.method({
  3531. selector: unescape('printString'),
  3532. category: 'printing',
  3533. fn: function (){
  3534. var self=this;
  3535. return smalltalk.send(self, "_asString", []);
  3536. return self;},
  3537. args: [],
  3538. source: unescape('printString%0A%09%5Eself%20asString'),
  3539. messageSends: ["asString"],
  3540. referencedClasses: []
  3541. }),
  3542. smalltalk.Date);
  3543. smalltalk.addMethod(
  3544. unescape('_asMilliseconds'),
  3545. smalltalk.method({
  3546. selector: unescape('asMilliseconds'),
  3547. category: 'converting',
  3548. fn: function (){
  3549. var self=this;
  3550. return smalltalk.send(self, "_time", []);
  3551. return self;},
  3552. args: [],
  3553. source: unescape('asMilliseconds%0A%09%5Eself%20time'),
  3554. messageSends: ["time"],
  3555. referencedClasses: []
  3556. }),
  3557. smalltalk.Date);
  3558. smalltalk.addMethod(
  3559. unescape('_time'),
  3560. smalltalk.method({
  3561. selector: unescape('time'),
  3562. category: 'accessing',
  3563. fn: function (){
  3564. var self=this;
  3565. return self.getTime();
  3566. return self;},
  3567. args: [],
  3568. source: unescape('time%0A%09%3Creturn%20self.getTime%28%29%3E'),
  3569. messageSends: [],
  3570. referencedClasses: []
  3571. }),
  3572. smalltalk.Date);
  3573. smalltalk.addMethod(
  3574. unescape('_time_'),
  3575. smalltalk.method({
  3576. selector: unescape('time%3A'),
  3577. category: 'accessing',
  3578. fn: function (aNumber){
  3579. var self=this;
  3580. self.setTime(aNumber);
  3581. return self;},
  3582. args: ["aNumber"],
  3583. source: unescape('time%3A%20aNumber%0A%09%3Cself.setTime%28aNumber%29%3E'),
  3584. messageSends: [],
  3585. referencedClasses: []
  3586. }),
  3587. smalltalk.Date);
  3588. smalltalk.addMethod(
  3589. unescape('_asDateString'),
  3590. smalltalk.method({
  3591. selector: unescape('asDateString'),
  3592. category: 'converting',
  3593. fn: function (){
  3594. var self=this;
  3595. return self.toDateString();
  3596. return self;},
  3597. args: [],
  3598. source: unescape('asDateString%0A%09%3Creturn%20self.toDateString%28%29%3E'),
  3599. messageSends: [],
  3600. referencedClasses: []
  3601. }),
  3602. smalltalk.Date);
  3603. smalltalk.addMethod(
  3604. unescape('_asTimeString'),
  3605. smalltalk.method({
  3606. selector: unescape('asTimeString'),
  3607. category: 'converting',
  3608. fn: function (){
  3609. var self=this;
  3610. return self.toTimeString();
  3611. return self;},
  3612. args: [],
  3613. source: unescape('asTimeString%0A%09%3Creturn%20self.toTimeString%28%29%3E'),
  3614. messageSends: [],
  3615. referencedClasses: []
  3616. }),
  3617. smalltalk.Date);
  3618. smalltalk.addMethod(
  3619. unescape('_asLocaleString'),
  3620. smalltalk.method({
  3621. selector: unescape('asLocaleString'),
  3622. category: 'converting',
  3623. fn: function (){
  3624. var self=this;
  3625. return self.toLocaleString();
  3626. return self;},
  3627. args: [],
  3628. source: unescape('asLocaleString%0A%09%3Creturn%20self.toLocaleString%28%29%3E'),
  3629. messageSends: [],
  3630. referencedClasses: []
  3631. }),
  3632. smalltalk.Date);
  3633. smalltalk.addMethod(
  3634. unescape('_asNumber'),
  3635. smalltalk.method({
  3636. selector: unescape('asNumber'),
  3637. category: 'converting',
  3638. fn: function (){
  3639. var self=this;
  3640. return smalltalk.send(self, "_asMilliseconds", []);
  3641. return self;},
  3642. args: [],
  3643. source: unescape('asNumber%0A%09%5Eself%20asMilliseconds'),
  3644. messageSends: ["asMilliseconds"],
  3645. referencedClasses: []
  3646. }),
  3647. smalltalk.Date);
  3648. smalltalk.addMethod(
  3649. unescape('_hours_'),
  3650. smalltalk.method({
  3651. selector: unescape('hours%3A'),
  3652. category: 'accessing',
  3653. fn: function (aNumber){
  3654. var self=this;
  3655. self.setHours(aNumber);
  3656. return self;},
  3657. args: ["aNumber"],
  3658. source: unescape('hours%3A%20aNumber%0A%09%3Cself.setHours%28aNumber%29%3E'),
  3659. messageSends: [],
  3660. referencedClasses: []
  3661. }),
  3662. smalltalk.Date);
  3663. smalltalk.addMethod(
  3664. unescape('_minutes_'),
  3665. smalltalk.method({
  3666. selector: unescape('minutes%3A'),
  3667. category: 'accessing',
  3668. fn: function (aNumber){
  3669. var self=this;
  3670. self.setMinutes(aNumber);
  3671. return self;},
  3672. args: ["aNumber"],
  3673. source: unescape('minutes%3A%20aNumber%0A%09%3Cself.setMinutes%28aNumber%29%3E'),
  3674. messageSends: [],
  3675. referencedClasses: []
  3676. }),
  3677. smalltalk.Date);
  3678. smalltalk.addMethod(
  3679. unescape('_seconds_'),
  3680. smalltalk.method({
  3681. selector: unescape('seconds%3A'),
  3682. category: 'accessing',
  3683. fn: function (aNumber){
  3684. var self=this;
  3685. self.setSeconds(aNumber);
  3686. return self;},
  3687. args: ["aNumber"],
  3688. source: unescape('seconds%3A%20aNumber%0A%09%3Cself.setSeconds%28aNumber%29%3E'),
  3689. messageSends: [],
  3690. referencedClasses: []
  3691. }),
  3692. smalltalk.Date);
  3693. smalltalk.addMethod(
  3694. unescape('_milliseconds_'),
  3695. smalltalk.method({
  3696. selector: unescape('milliseconds%3A'),
  3697. category: 'accessing',
  3698. fn: function (aNumber){
  3699. var self=this;
  3700. self.setMilliseconds(aNumber);
  3701. return self;},
  3702. args: ["aNumber"],
  3703. source: unescape('milliseconds%3A%20aNumber%0A%09%3Cself.setMilliseconds%28aNumber%29%3E'),
  3704. messageSends: [],
  3705. referencedClasses: []
  3706. }),
  3707. smalltalk.Date);
  3708. smalltalk.addMethod(
  3709. unescape('_hours'),
  3710. smalltalk.method({
  3711. selector: unescape('hours'),
  3712. category: 'accessing',
  3713. fn: function (){
  3714. var self=this;
  3715. return self.getHours();
  3716. return self;},
  3717. args: [],
  3718. source: unescape('hours%0A%09%3Creturn%20self.getHours%28%29%3E'),
  3719. messageSends: [],
  3720. referencedClasses: []
  3721. }),
  3722. smalltalk.Date);
  3723. smalltalk.addMethod(
  3724. unescape('_minutes'),
  3725. smalltalk.method({
  3726. selector: unescape('minutes'),
  3727. category: 'accessing',
  3728. fn: function (){
  3729. var self=this;
  3730. return self.getMinutes();
  3731. return self;},
  3732. args: [],
  3733. source: unescape('minutes%0A%09%3Creturn%20self.getMinutes%28%29%3E'),
  3734. messageSends: [],
  3735. referencedClasses: []
  3736. }),
  3737. smalltalk.Date);
  3738. smalltalk.addMethod(
  3739. unescape('_seconds'),
  3740. smalltalk.method({
  3741. selector: unescape('seconds'),
  3742. category: 'accessing',
  3743. fn: function (){
  3744. var self=this;
  3745. return self.getSeconds();
  3746. return self;},
  3747. args: [],
  3748. source: unescape('seconds%0A%09%3Creturn%20self.getSeconds%28%29%3E'),
  3749. messageSends: [],
  3750. referencedClasses: []
  3751. }),
  3752. smalltalk.Date);
  3753. smalltalk.addMethod(
  3754. unescape('_milliseconds'),
  3755. smalltalk.method({
  3756. selector: unescape('milliseconds'),
  3757. category: 'accessing',
  3758. fn: function (){
  3759. var self=this;
  3760. return self.getMilliseconds();
  3761. return self;},
  3762. args: [],
  3763. source: unescape('milliseconds%0A%09%3Creturn%20self.getMilliseconds%28%29%3E'),
  3764. messageSends: [],
  3765. referencedClasses: []
  3766. }),
  3767. smalltalk.Date);
  3768. smalltalk.addMethod(
  3769. unescape('__lt'),
  3770. smalltalk.method({
  3771. selector: unescape('%3C'),
  3772. category: 'comparing',
  3773. fn: function (aDate){
  3774. var self=this;
  3775. return self < aDate;
  3776. return self;},
  3777. args: ["aDate"],
  3778. source: unescape('%3C%20aDate%0A%09%3Creturn%20self%20%3C%20aDate%3E'),
  3779. messageSends: [],
  3780. referencedClasses: []
  3781. }),
  3782. smalltalk.Date);
  3783. smalltalk.addMethod(
  3784. unescape('__gt'),
  3785. smalltalk.method({
  3786. selector: unescape('%3E'),
  3787. category: 'comparing',
  3788. fn: function (aDate){
  3789. var self=this;
  3790. return self > aDate;
  3791. return self;},
  3792. args: ["aDate"],
  3793. source: unescape('%3E%20aDate%0A%09%3Creturn%20self%20%3E%3E%20aDate%3E'),
  3794. messageSends: [],
  3795. referencedClasses: []
  3796. }),
  3797. smalltalk.Date);
  3798. smalltalk.addMethod(
  3799. unescape('__lt_eq'),
  3800. smalltalk.method({
  3801. selector: unescape('%3C%3D'),
  3802. category: 'comparing',
  3803. fn: function (aDate){
  3804. var self=this;
  3805. self <= aDate;
  3806. return self;},
  3807. args: ["aDate"],
  3808. source: unescape('%3C%3D%20aDate%0A%09%3Cself%20%3C%3D%20aDate%3E'),
  3809. messageSends: [],
  3810. referencedClasses: []
  3811. }),
  3812. smalltalk.Date);
  3813. smalltalk.addMethod(
  3814. unescape('__gt_eq'),
  3815. smalltalk.method({
  3816. selector: unescape('%3E%3D'),
  3817. category: 'comparing',
  3818. fn: function (aDate){
  3819. var self=this;
  3820. self >= aDate;
  3821. return self;},
  3822. args: ["aDate"],
  3823. source: unescape('%3E%3D%20aDate%0A%09%3Cself%20%3E%3E%3D%20aDate%3E'),
  3824. messageSends: [],
  3825. referencedClasses: []
  3826. }),
  3827. smalltalk.Date);
  3828. smalltalk.addMethod(
  3829. unescape('__minus'),
  3830. smalltalk.method({
  3831. selector: unescape('-'),
  3832. category: 'arithmetic',
  3833. fn: function (aDate){
  3834. var self=this;
  3835. return self - aDate;
  3836. return self;},
  3837. args: ["aDate"],
  3838. source: unescape('-%20aDate%0A%09%3Creturn%20self%20-%20aDate%3E'),
  3839. messageSends: [],
  3840. referencedClasses: []
  3841. }),
  3842. smalltalk.Date);
  3843. smalltalk.addMethod(
  3844. unescape('__plus'),
  3845. smalltalk.method({
  3846. selector: unescape('+'),
  3847. category: 'arithmetic',
  3848. fn: function (aDate){
  3849. var self=this;
  3850. return self + aDate;
  3851. return self;},
  3852. args: ["aDate"],
  3853. source: unescape('+%20aDate%0A%09%3Creturn%20self%20+%20aDate%3E'),
  3854. messageSends: [],
  3855. referencedClasses: []
  3856. }),
  3857. smalltalk.Date);
  3858. smalltalk.addMethod(
  3859. unescape('_asJSONObject'),
  3860. smalltalk.method({
  3861. selector: unescape('asJSONObject'),
  3862. category: 'converting',
  3863. fn: function (){
  3864. var self=this;
  3865. return self;
  3866. return self;},
  3867. args: [],
  3868. source: unescape('asJSONObject%0A%09%5Eself'),
  3869. messageSends: [],
  3870. referencedClasses: []
  3871. }),
  3872. smalltalk.Date);
  3873. smalltalk.addMethod(
  3874. unescape('_new_'),
  3875. smalltalk.method({
  3876. selector: unescape('new%3A'),
  3877. category: 'instance creation',
  3878. fn: function (anObject){
  3879. var self=this;
  3880. return new Date(anObject);
  3881. return self;},
  3882. args: ["anObject"],
  3883. source: unescape('new%3A%20anObject%0A%09%3Creturn%20new%20Date%28anObject%29%3E'),
  3884. messageSends: [],
  3885. referencedClasses: []
  3886. }),
  3887. smalltalk.Date.klass);
  3888. smalltalk.addMethod(
  3889. unescape('_fromString_'),
  3890. smalltalk.method({
  3891. selector: unescape('fromString%3A'),
  3892. category: 'instance creation',
  3893. fn: function (aString){
  3894. var self=this;
  3895. return smalltalk.send(self, "_new_", [aString]);
  3896. return self;},
  3897. args: ["aString"],
  3898. source: unescape('fromString%3A%20aString%0A%09%22Example%3A%20Date%20fromString%28%272011/04/15%2000%3A00%3A00%27%29%22%0A%09%5Eself%20new%3A%20aString'),
  3899. messageSends: ["new:"],
  3900. referencedClasses: []
  3901. }),
  3902. smalltalk.Date.klass);
  3903. smalltalk.addMethod(
  3904. unescape('_fromSeconds_'),
  3905. smalltalk.method({
  3906. selector: unescape('fromSeconds%3A'),
  3907. category: 'instance creation',
  3908. fn: function (aNumber){
  3909. var self=this;
  3910. return smalltalk.send(self, "_fromMilliseconds_", [((($receiver = aNumber).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))]);
  3911. return self;},
  3912. args: ["aNumber"],
  3913. source: unescape('fromSeconds%3A%20aNumber%0A%09%5Eself%20fromMilliseconds%3A%20aNumber%20*%201000'),
  3914. messageSends: ["fromMilliseconds:", unescape("*")],
  3915. referencedClasses: []
  3916. }),
  3917. smalltalk.Date.klass);
  3918. smalltalk.addMethod(
  3919. unescape('_fromMilliseconds_'),
  3920. smalltalk.method({
  3921. selector: unescape('fromMilliseconds%3A'),
  3922. category: 'instance creation',
  3923. fn: function (aNumber){
  3924. var self=this;
  3925. return smalltalk.send(self, "_new_", [aNumber]);
  3926. return self;},
  3927. args: ["aNumber"],
  3928. source: unescape('fromMilliseconds%3A%20aNumber%0A%09%5Eself%20new%3A%20aNumber'),
  3929. messageSends: ["new:"],
  3930. referencedClasses: []
  3931. }),
  3932. smalltalk.Date.klass);
  3933. smalltalk.addMethod(
  3934. unescape('_today'),
  3935. smalltalk.method({
  3936. selector: unescape('today'),
  3937. category: 'instance creation',
  3938. fn: function (){
  3939. var self=this;
  3940. return smalltalk.send(self, "_new", []);
  3941. return self;},
  3942. args: [],
  3943. source: unescape('today%0A%09%5Eself%20new'),
  3944. messageSends: ["new"],
  3945. referencedClasses: []
  3946. }),
  3947. smalltalk.Date.klass);
  3948. smalltalk.addMethod(
  3949. unescape('_now'),
  3950. smalltalk.method({
  3951. selector: unescape('now'),
  3952. category: 'instance creation',
  3953. fn: function (){
  3954. var self=this;
  3955. return smalltalk.send(self, "_today", []);
  3956. return self;},
  3957. args: [],
  3958. source: unescape('now%0A%09%5Eself%20today'),
  3959. messageSends: ["today"],
  3960. referencedClasses: []
  3961. }),
  3962. smalltalk.Date.klass);
  3963. smalltalk.addMethod(
  3964. unescape('_millisecondsToRun_'),
  3965. smalltalk.method({
  3966. selector: unescape('millisecondsToRun%3A'),
  3967. category: 'instance creation',
  3968. fn: function (aBlock){
  3969. var self=this;
  3970. var t=nil;
  3971. t=smalltalk.send((smalltalk.Date || Date), "_now", []);
  3972. smalltalk.send(aBlock, "_value", []);
  3973. return ((($receiver = smalltalk.send((smalltalk.Date || Date), "_now", [])).klass === smalltalk.Number) ? $receiver -t : smalltalk.send($receiver, "__minus", [t]));
  3974. return self;},
  3975. args: ["aBlock"],
  3976. source: unescape('millisecondsToRun%3A%20aBlock%0A%09%7C%20t%20%7C%0A%09t%20%3A%3D%20Date%20now.%0A%09aBlock%20value.%0A%09%5EDate%20now%20-%20t'),
  3977. messageSends: ["now", "value", unescape("-")],
  3978. referencedClasses: [smalltalk.Date]
  3979. }),
  3980. smalltalk.Date.klass);
  3981. smalltalk.addClass('UndefinedObject', smalltalk.Object, [], 'Kernel');
  3982. smalltalk.addMethod(
  3983. unescape('_subclass_instanceVariableNames_'),
  3984. smalltalk.method({
  3985. selector: unescape('subclass%3AinstanceVariableNames%3A'),
  3986. category: 'class creation',
  3987. fn: function (aString, anotherString){
  3988. var self=this;
  3989. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, anotherString, nil]);
  3990. return self;},
  3991. args: ["aString", "anotherString"],
  3992. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20anotherString%20package%3A%20nil'),
  3993. messageSends: ["subclass:instanceVariableNames:package:"],
  3994. referencedClasses: []
  3995. }),
  3996. smalltalk.UndefinedObject);
  3997. smalltalk.addMethod(
  3998. unescape('_subclass_instanceVariableNames_category_'),
  3999. smalltalk.method({
  4000. selector: unescape('subclass%3AinstanceVariableNames%3Acategory%3A'),
  4001. category: 'class creation',
  4002. fn: function (aString, aString2, aString3){
  4003. var self=this;
  4004. return smalltalk.send(self, "_subclass_instanceVariableNames_package_", [aString, aString2, aString3]);
  4005. return self;},
  4006. args: ["aString", "aString2", "aString3"],
  4007. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20category%3A%20aString3%0A%09%22Kept%20for%20compatibility.%22%0A%09%5Eself%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  4008. messageSends: ["subclass:instanceVariableNames:package:"],
  4009. referencedClasses: []
  4010. }),
  4011. smalltalk.UndefinedObject);
  4012. smalltalk.addMethod(
  4013. unescape('_shallowCopy'),
  4014. smalltalk.method({
  4015. selector: unescape('shallowCopy'),
  4016. category: 'copying',
  4017. fn: function (){
  4018. var self=this;
  4019. return self;
  4020. return self;},
  4021. args: [],
  4022. source: unescape('shallowCopy%0A%09%5Eself'),
  4023. messageSends: [],
  4024. referencedClasses: []
  4025. }),
  4026. smalltalk.UndefinedObject);
  4027. smalltalk.addMethod(
  4028. unescape('_deepCopy'),
  4029. smalltalk.method({
  4030. selector: unescape('deepCopy'),
  4031. category: 'copying',
  4032. fn: function (){
  4033. var self=this;
  4034. return self;
  4035. return self;},
  4036. args: [],
  4037. source: unescape('deepCopy%0A%09%5Eself'),
  4038. messageSends: [],
  4039. referencedClasses: []
  4040. }),
  4041. smalltalk.UndefinedObject);
  4042. smalltalk.addMethod(
  4043. unescape('_ifNil_'),
  4044. smalltalk.method({
  4045. selector: unescape('ifNil%3A'),
  4046. category: 'testing',
  4047. fn: function (aBlock){
  4048. var self=this;
  4049. return smalltalk.send(self, "_ifNil_ifNotNil_", [aBlock, (function(){return nil;})]);
  4050. return self;},
  4051. args: ["aBlock"],
  4052. source: unescape('ifNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself%20ifNil%3A%20aBlock%20ifNotNil%3A%20%5B%5D'),
  4053. messageSends: ["ifNil:ifNotNil:"],
  4054. referencedClasses: []
  4055. }),
  4056. smalltalk.UndefinedObject);
  4057. smalltalk.addMethod(
  4058. unescape('_ifNotNil_'),
  4059. smalltalk.method({
  4060. selector: unescape('ifNotNil%3A'),
  4061. category: 'testing',
  4062. fn: function (aBlock){
  4063. var self=this;
  4064. return self;
  4065. return self;},
  4066. args: ["aBlock"],
  4067. source: unescape('ifNotNil%3A%20aBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5Eself'),
  4068. messageSends: [],
  4069. referencedClasses: []
  4070. }),
  4071. smalltalk.UndefinedObject);
  4072. smalltalk.addMethod(
  4073. unescape('_ifNil_ifNotNil_'),
  4074. smalltalk.method({
  4075. selector: unescape('ifNil%3AifNotNil%3A'),
  4076. category: 'testing',
  4077. fn: function (aBlock, anotherBlock){
  4078. var self=this;
  4079. return smalltalk.send(aBlock, "_value", []);
  4080. return self;},
  4081. args: ["aBlock", "anotherBlock"],
  4082. source: unescape('ifNil%3A%20aBlock%20ifNotNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EaBlock%20value'),
  4083. messageSends: ["value"],
  4084. referencedClasses: []
  4085. }),
  4086. smalltalk.UndefinedObject);
  4087. smalltalk.addMethod(
  4088. unescape('_ifNotNil_ifNil_'),
  4089. smalltalk.method({
  4090. selector: unescape('ifNotNil%3AifNil%3A'),
  4091. category: 'testing',
  4092. fn: function (aBlock, anotherBlock){
  4093. var self=this;
  4094. return smalltalk.send(anotherBlock, "_value", []);
  4095. return self;},
  4096. args: ["aBlock", "anotherBlock"],
  4097. source: unescape('ifNotNil%3A%20aBlock%20ifNil%3A%20anotherBlock%0A%09%22inlined%20in%20the%20Compiler%22%0A%09%5EanotherBlock%20value'),
  4098. messageSends: ["value"],
  4099. referencedClasses: []
  4100. }),
  4101. smalltalk.UndefinedObject);
  4102. smalltalk.addMethod(
  4103. unescape('_isNil'),
  4104. smalltalk.method({
  4105. selector: unescape('isNil'),
  4106. category: 'testing',
  4107. fn: function (){
  4108. var self=this;
  4109. return true;
  4110. return self;},
  4111. args: [],
  4112. source: unescape('isNil%0A%09%5Etrue'),
  4113. messageSends: [],
  4114. referencedClasses: []
  4115. }),
  4116. smalltalk.UndefinedObject);
  4117. smalltalk.addMethod(
  4118. unescape('_notNil'),
  4119. smalltalk.method({
  4120. selector: unescape('notNil'),
  4121. category: 'testing',
  4122. fn: function (){
  4123. var self=this;
  4124. return false;
  4125. return self;},
  4126. args: [],
  4127. source: unescape('notNil%0A%09%5Efalse'),
  4128. messageSends: [],
  4129. referencedClasses: []
  4130. }),
  4131. smalltalk.UndefinedObject);
  4132. smalltalk.addMethod(
  4133. unescape('_printString'),
  4134. smalltalk.method({
  4135. selector: unescape('printString'),
  4136. category: 'printing',
  4137. fn: function (){
  4138. var self=this;
  4139. return "nil";
  4140. return self;},
  4141. args: [],
  4142. source: unescape('printString%0A%20%20%20%20%5E%27nil%27'),
  4143. messageSends: [],
  4144. referencedClasses: []
  4145. }),
  4146. smalltalk.UndefinedObject);
  4147. smalltalk.addMethod(
  4148. unescape('_subclass_instanceVariableNames_package_'),
  4149. smalltalk.method({
  4150. selector: unescape('subclass%3AinstanceVariableNames%3Apackage%3A'),
  4151. category: 'class creation',
  4152. fn: function (aString, aString2, aString3){
  4153. var self=this;
  4154. return smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_superclass_subclass_instanceVariableNames_package_", [self, aString, aString2, aString3]);
  4155. return self;},
  4156. args: ["aString", "aString2", "aString3"],
  4157. source: unescape('subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%5EClassBuilder%20new%0A%09%20%20%20%20superclass%3A%20self%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3'),
  4158. messageSends: ["superclass:subclass:instanceVariableNames:package:", "new"],
  4159. referencedClasses: [smalltalk.ClassBuilder]
  4160. }),
  4161. smalltalk.UndefinedObject);
  4162. smalltalk.addMethod(
  4163. unescape('_new'),
  4164. smalltalk.method({
  4165. selector: unescape('new'),
  4166. category: 'instance creation',
  4167. fn: function (){
  4168. var self=this;
  4169. smalltalk.send(self, "_error_", ["You cannot create new instances of UndefinedObject. Use nil"]);
  4170. return self;},
  4171. args: [],
  4172. source: unescape('new%0A%09%20%20%20%20self%20error%3A%20%27You%20cannot%20create%20new%20instances%20of%20UndefinedObject.%20Use%20nil%27'),
  4173. messageSends: ["error:"],
  4174. referencedClasses: []
  4175. }),
  4176. smalltalk.UndefinedObject.klass);
  4177. smalltalk.addClass('Collection', smalltalk.Object, [], 'Kernel');
  4178. smalltalk.addMethod(
  4179. unescape('_size'),
  4180. smalltalk.method({
  4181. selector: unescape('size'),
  4182. category: 'accessing',
  4183. fn: function (){
  4184. var self=this;
  4185. smalltalk.send(self, "_subclassResponsibility", []);
  4186. return self;},
  4187. args: [],
  4188. source: unescape('size%0A%09self%20subclassResponsibility'),
  4189. messageSends: ["subclassResponsibility"],
  4190. referencedClasses: []
  4191. }),
  4192. smalltalk.Collection);
  4193. smalltalk.addMethod(
  4194. unescape('_readStream'),
  4195. smalltalk.method({
  4196. selector: unescape('readStream'),
  4197. category: 'accessing',
  4198. fn: function (){
  4199. var self=this;
  4200. return smalltalk.send(self, "_stream", []);
  4201. return self;},
  4202. args: [],
  4203. source: unescape('readStream%0A%09%5Eself%20stream'),
  4204. messageSends: ["stream"],
  4205. referencedClasses: []
  4206. }),
  4207. smalltalk.Collection);
  4208. smalltalk.addMethod(
  4209. unescape('_writeStream'),
  4210. smalltalk.method({
  4211. selector: unescape('writeStream'),
  4212. category: 'accessing',
  4213. fn: function (){
  4214. var self=this;
  4215. return smalltalk.send(self, "_stream", []);
  4216. return self;},
  4217. args: [],
  4218. source: unescape('writeStream%0A%09%5Eself%20stream'),
  4219. messageSends: ["stream"],
  4220. referencedClasses: []
  4221. }),
  4222. smalltalk.Collection);
  4223. smalltalk.addMethod(
  4224. unescape('_stream'),
  4225. smalltalk.method({
  4226. selector: unescape('stream'),
  4227. category: 'accessing',
  4228. fn: function (){
  4229. var self=this;
  4230. return smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [self]);
  4231. return self;},
  4232. args: [],
  4233. source: unescape('stream%0A%09%5Eself%20streamClass%20on%3A%20self'),
  4234. messageSends: ["on:", "streamClass"],
  4235. referencedClasses: []
  4236. }),
  4237. smalltalk.Collection);
  4238. smalltalk.addMethod(
  4239. unescape('_streamClass'),
  4240. smalltalk.method({
  4241. selector: unescape('streamClass'),
  4242. category: 'accessing',
  4243. fn: function (){
  4244. var self=this;
  4245. return smalltalk.send(smalltalk.send(self, "_class", []), "_streamClass", []);
  4246. return self;},
  4247. args: [],
  4248. source: unescape('streamClass%0A%09%5Eself%20class%20streamClass'),
  4249. messageSends: ["streamClass", "class"],
  4250. referencedClasses: []
  4251. }),
  4252. smalltalk.Collection);
  4253. smalltalk.addMethod(
  4254. unescape('_add_'),
  4255. smalltalk.method({
  4256. selector: unescape('add%3A'),
  4257. category: 'adding/removing',
  4258. fn: function (anObject){
  4259. var self=this;
  4260. smalltalk.send(self, "_subclassResponsibility", []);
  4261. return self;},
  4262. args: ["anObject"],
  4263. source: unescape('add%3A%20anObject%0A%09self%20subclassResponsibility'),
  4264. messageSends: ["subclassResponsibility"],
  4265. referencedClasses: []
  4266. }),
  4267. smalltalk.Collection);
  4268. smalltalk.addMethod(
  4269. unescape('_addAll_'),
  4270. smalltalk.method({
  4271. selector: unescape('addAll%3A'),
  4272. category: 'adding/removing',
  4273. fn: function (aCollection){
  4274. var self=this;
  4275. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_add_", [each]);})]);
  4276. return aCollection;
  4277. return self;},
  4278. args: ["aCollection"],
  4279. source: unescape('addAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20add%3A%20each%5D.%0A%09%5EaCollection'),
  4280. messageSends: ["do:", "add:"],
  4281. referencedClasses: []
  4282. }),
  4283. smalltalk.Collection);
  4284. smalltalk.addMethod(
  4285. unescape('__comma'),
  4286. smalltalk.method({
  4287. selector: unescape('%2C'),
  4288. category: 'copying',
  4289. fn: function (aCollection){
  4290. var self=this;
  4291. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4292. return self;},
  4293. args: ["aCollection"],
  4294. source: unescape('%2C%20aCollection%0A%09%5Eself%20copy%20%0A%09%20%20%20%20addAll%3A%20aCollection%3B%20%0A%09%20%20%20%20yourself'),
  4295. messageSends: ["addAll:", "yourself", "copy"],
  4296. referencedClasses: []
  4297. }),
  4298. smalltalk.Collection);
  4299. smalltalk.addMethod(
  4300. unescape('_copyWith_'),
  4301. smalltalk.method({
  4302. selector: unescape('copyWith%3A'),
  4303. category: 'copying',
  4304. fn: function (anObject){
  4305. var self=this;
  4306. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4307. return self;},
  4308. args: ["anObject"],
  4309. source: unescape('copyWith%3A%20anObject%0A%09%5Eself%20copy%20add%3A%20anObject%3B%20yourself'),
  4310. messageSends: ["add:", "yourself", "copy"],
  4311. referencedClasses: []
  4312. }),
  4313. smalltalk.Collection);
  4314. smalltalk.addMethod(
  4315. unescape('_copyWithAll_'),
  4316. smalltalk.method({
  4317. selector: unescape('copyWithAll%3A'),
  4318. category: 'copying',
  4319. fn: function (aCollection){
  4320. var self=this;
  4321. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_copy", []));
  4322. return self;},
  4323. args: ["aCollection"],
  4324. source: unescape('copyWithAll%3A%20aCollection%0A%09%5Eself%20copy%20addAll%3A%20aCollection%3B%20yourself'),
  4325. messageSends: ["addAll:", "yourself", "copy"],
  4326. referencedClasses: []
  4327. }),
  4328. smalltalk.Collection);
  4329. smalltalk.addMethod(
  4330. unescape('_asArray'),
  4331. smalltalk.method({
  4332. selector: unescape('asArray'),
  4333. category: 'converting',
  4334. fn: function (){
  4335. var self=this;
  4336. var array=nil;
  4337. var index=nil;
  4338. array=smalltalk.send((smalltalk.Array || Array), "_new", []);
  4339. index=(0);
  4340. smalltalk.send(self, "_do_", [(function(each){index=((($receiver = index).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));return smalltalk.send(array, "_at_put_", [index, each]);})]);
  4341. return array;
  4342. return self;},
  4343. args: [],
  4344. source: unescape('asArray%0A%09%7C%20array%20index%20%7C%0A%09array%20%3A%3D%20Array%20new.%0A%09index%20%3A%3D%200.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20index%20%3A%3D%20index%20+%201.%0A%09%20%20%20%20array%20at%3A%20index%20put%3A%20each%5D.%0A%09%5Earray'),
  4345. messageSends: ["new", "do:", unescape("+"), "at:put:"],
  4346. referencedClasses: [smalltalk.Array]
  4347. }),
  4348. smalltalk.Collection);
  4349. smalltalk.addMethod(
  4350. unescape('_do_'),
  4351. smalltalk.method({
  4352. selector: unescape('do%3A'),
  4353. category: 'enumerating',
  4354. fn: function (aBlock){
  4355. var self=this;
  4356. for(var i=0;i<self.length;i++){aBlock(self[i]);};
  4357. return self;},
  4358. args: ["aBlock"],
  4359. source: unescape('do%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%29%3B%7D%3E'),
  4360. messageSends: [],
  4361. referencedClasses: []
  4362. }),
  4363. smalltalk.Collection);
  4364. smalltalk.addMethod(
  4365. unescape('_collect_'),
  4366. smalltalk.method({
  4367. selector: unescape('collect%3A'),
  4368. category: 'enumerating',
  4369. fn: function (aBlock){
  4370. var self=this;
  4371. var newCollection=nil;
  4372. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  4373. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(aBlock, "_value_", [each])]);})]);
  4374. return newCollection;
  4375. return self;},
  4376. args: ["aBlock"],
  4377. source: unescape('collect%3A%20aBlock%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20newCollection%20add%3A%20%28aBlock%20value%3A%20each%29%5D.%0A%09%5EnewCollection'),
  4378. messageSends: ["new", "class", "do:", "add:", "value:"],
  4379. referencedClasses: []
  4380. }),
  4381. smalltalk.Collection);
  4382. smalltalk.addMethod(
  4383. unescape('_detect_'),
  4384. smalltalk.method({
  4385. selector: unescape('detect%3A'),
  4386. category: 'enumerating',
  4387. fn: function (aBlock){
  4388. var self=this;
  4389. return smalltalk.send(self, "_detect_ifNone_", [aBlock, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4390. return self;},
  4391. args: ["aBlock"],
  4392. source: unescape('detect%3A%20aBlock%0A%09%5Eself%20detect%3A%20aBlock%20ifNone%3A%20%5Bself%20errorNotFound%5D'),
  4393. messageSends: ["detect:ifNone:", "errorNotFound"],
  4394. referencedClasses: []
  4395. }),
  4396. smalltalk.Collection);
  4397. smalltalk.addMethod(
  4398. unescape('_detect_ifNone_'),
  4399. smalltalk.method({
  4400. selector: unescape('detect%3AifNone%3A'),
  4401. category: 'enumerating',
  4402. fn: function (aBlock, anotherBlock){
  4403. var self=this;
  4404. for(var i = 0; i < self.length; i++)
  4405. if(aBlock(self[i]))
  4406. return self[i];
  4407. return anotherBlock();
  4408. ;
  4409. return self;},
  4410. args: ["aBlock", "anotherBlock"],
  4411. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%3C%0A%09%09for%28var%20i%20%3D%200%3B%20i%20%3C%20self.length%3B%20i++%29%0A%09%09%09if%28aBlock%28self%5Bi%5D%29%29%0A%09%09%09%09return%20self%5Bi%5D%3B%0A%09%09return%20anotherBlock%28%29%3B%0A%09%3E'),
  4412. messageSends: [],
  4413. referencedClasses: []
  4414. }),
  4415. smalltalk.Collection);
  4416. smalltalk.addMethod(
  4417. unescape('_do_separatedBy_'),
  4418. smalltalk.method({
  4419. selector: unescape('do%3AseparatedBy%3A'),
  4420. category: 'enumerating',
  4421. fn: function (aBlock, anotherBlock){
  4422. var self=this;
  4423. var first=nil;
  4424. first=true;
  4425. smalltalk.send(self, "_do_", [(function(each){((($receiver = first).klass === smalltalk.Boolean) ? ($receiver ? (function(){return first=false;})() : (function(){return smalltalk.send(anotherBlock, "_value", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return first=false;}), (function(){return smalltalk.send(anotherBlock, "_value", []);})]));return smalltalk.send(aBlock, "_value_", [each]);})]);
  4426. return self;},
  4427. args: ["aBlock", "anotherBlock"],
  4428. source: unescape('do%3A%20aBlock%20separatedBy%3A%20anotherBlock%0A%20%20%20%20%09%7C%20first%20%7C%0A%20%20%20%20%09first%20%3A%3D%20true.%0A%20%20%20%20%09self%20do%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%09%20%20%20%20first%0A%20%20%20%20%09%09ifTrue%3A%20%5Bfirst%20%3A%3D%20false%5D%0A%20%20%20%20%09%09ifFalse%3A%20%5BanotherBlock%20value%5D.%0A%20%20%20%20%09%20%20%20%20aBlock%20value%3A%20each%5D'),
  4429. messageSends: ["do:", "ifTrue:ifFalse:", "value", "value:"],
  4430. referencedClasses: []
  4431. }),
  4432. smalltalk.Collection);
  4433. smalltalk.addMethod(
  4434. unescape('_inject_into_'),
  4435. smalltalk.method({
  4436. selector: unescape('inject%3Ainto%3A'),
  4437. category: 'enumerating',
  4438. fn: function (anObject, aBlock){
  4439. var self=this;
  4440. var result=nil;
  4441. result=anObject;
  4442. smalltalk.send(self, "_do_", [(function(each){return result=smalltalk.send(aBlock, "_value_value_", [result, each]);})]);
  4443. return result;
  4444. return self;},
  4445. args: ["anObject", "aBlock"],
  4446. source: unescape('inject%3A%20anObject%20into%3A%20aBlock%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%20anObject.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%20%20%20%20result%20%3A%3D%20aBlock%20value%3A%20result%20value%3A%20each%5D.%0A%09%5Eresult'),
  4447. messageSends: ["do:", "value:value:"],
  4448. referencedClasses: []
  4449. }),
  4450. smalltalk.Collection);
  4451. smalltalk.addMethod(
  4452. unescape('_reject_'),
  4453. smalltalk.method({
  4454. selector: unescape('reject%3A'),
  4455. category: 'enumerating',
  4456. fn: function (aBlock){
  4457. var self=this;
  4458. return smalltalk.send(self, "_select_", [(function(each){return smalltalk.send(smalltalk.send(aBlock, "_value_", [each]), "__eq", [false]);})]);
  4459. return self;},
  4460. args: ["aBlock"],
  4461. source: unescape('reject%3A%20aBlock%0A%09%5Eself%20select%3A%20%5B%3Aeach%20%7C%20%28aBlock%20value%3A%20each%29%20%3D%20false%5D'),
  4462. messageSends: ["select:", unescape("%3D"), "value:"],
  4463. referencedClasses: []
  4464. }),
  4465. smalltalk.Collection);
  4466. smalltalk.addMethod(
  4467. unescape('_select_'),
  4468. smalltalk.method({
  4469. selector: unescape('select%3A'),
  4470. category: 'enumerating',
  4471. fn: function (aBlock){
  4472. var self=this;
  4473. var stream=nil;
  4474. stream=smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_new", []), "_writeStream", []);
  4475. smalltalk.send(self, "_do_", [(function(each){return ((($receiver = smalltalk.send(aBlock, "_value_", [each])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(stream, "_nextPut_", [each]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(stream, "_nextPut_", [each]);})]));})]);
  4476. return smalltalk.send(stream, "_contents", []);
  4477. return self;},
  4478. args: ["aBlock"],
  4479. source: unescape('select%3A%20aBlock%0A%09%7C%20stream%20%7C%0A%09stream%20%3A%3D%20self%20class%20new%20writeStream.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20%28aBlock%20value%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09stream%20nextPut%3A%20each%5D%5D.%0A%09%5Estream%20contents'),
  4480. messageSends: ["writeStream", "new", "class", "do:", "ifTrue:", "value:", "nextPut:", "contents"],
  4481. referencedClasses: []
  4482. }),
  4483. smalltalk.Collection);
  4484. smalltalk.addMethod(
  4485. unescape('_errorNotFound'),
  4486. smalltalk.method({
  4487. selector: unescape('errorNotFound'),
  4488. category: 'error handling',
  4489. fn: function (){
  4490. var self=this;
  4491. smalltalk.send(self, "_error_", ["Object is not in the collection"]);
  4492. return self;},
  4493. args: [],
  4494. source: unescape('errorNotFound%0A%09self%20error%3A%20%27Object%20is%20not%20in%20the%20collection%27'),
  4495. messageSends: ["error:"],
  4496. referencedClasses: []
  4497. }),
  4498. smalltalk.Collection);
  4499. smalltalk.addMethod(
  4500. unescape('_includes_'),
  4501. smalltalk.method({
  4502. selector: unescape('includes%3A'),
  4503. category: 'testing',
  4504. fn: function (anObject){
  4505. var self=this;
  4506. var i = self.length;
  4507. while (i--) {
  4508. if (smalltalk.send(self[i], "__eq", [anObject])) {return true;}
  4509. }
  4510. return false
  4511. ;
  4512. return self;},
  4513. args: ["anObject"],
  4514. source: unescape('includes%3A%20anObject%0A%09%3C%0A%09%09var%20i%20%3D%20self.length%3B%0A%09%09while%20%28i--%29%20%7B%0A%09%09%09if%20%28smalltalk.send%28self%5Bi%5D%2C%20%22__eq%22%2C%20%5BanObject%5D%29%29%20%7Breturn%20true%3B%7D%09%0A%09%09%7D%0A%09%09return%20false%0A%09%3E'),
  4515. messageSends: [],
  4516. referencedClasses: []
  4517. }),
  4518. smalltalk.Collection);
  4519. smalltalk.addMethod(
  4520. unescape('_notEmpty'),
  4521. smalltalk.method({
  4522. selector: unescape('notEmpty'),
  4523. category: 'testing',
  4524. fn: function (){
  4525. var self=this;
  4526. return smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_not", []);
  4527. return self;},
  4528. args: [],
  4529. source: unescape('notEmpty%0A%09%5Eself%20isEmpty%20not'),
  4530. messageSends: ["not", "isEmpty"],
  4531. referencedClasses: []
  4532. }),
  4533. smalltalk.Collection);
  4534. smalltalk.addMethod(
  4535. unescape('_isEmpty'),
  4536. smalltalk.method({
  4537. selector: unescape('isEmpty'),
  4538. category: 'testing',
  4539. fn: function (){
  4540. var self=this;
  4541. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  4542. return self;},
  4543. args: [],
  4544. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  4545. messageSends: [unescape("%3D"), "size"],
  4546. referencedClasses: []
  4547. }),
  4548. smalltalk.Collection);
  4549. smalltalk.addMethod(
  4550. unescape('_remove_'),
  4551. smalltalk.method({
  4552. selector: unescape('remove%3A'),
  4553. category: 'adding/removing',
  4554. fn: function (anObject){
  4555. var self=this;
  4556. smalltalk.send(self, "_subclassResponsibility", []);
  4557. return self;},
  4558. args: ["anObject"],
  4559. source: unescape('remove%3A%20anObject%0A%20%20%20%20self%20subclassResponsibility'),
  4560. messageSends: ["subclassResponsibility"],
  4561. referencedClasses: []
  4562. }),
  4563. smalltalk.Collection);
  4564. smalltalk.addMethod(
  4565. unescape('_asSet'),
  4566. smalltalk.method({
  4567. selector: unescape('asSet'),
  4568. category: 'converting',
  4569. fn: function (){
  4570. var self=this;
  4571. return smalltalk.send((smalltalk.Set || Set), "_withAll_", [self]);
  4572. return self;},
  4573. args: [],
  4574. source: unescape('asSet%0A%09%5ESet%20withAll%3A%20self'),
  4575. messageSends: ["withAll:"],
  4576. referencedClasses: [smalltalk.Set]
  4577. }),
  4578. smalltalk.Collection);
  4579. smalltalk.addMethod(
  4580. unescape('_ifNotEmpty_'),
  4581. smalltalk.method({
  4582. selector: unescape('ifNotEmpty%3A'),
  4583. category: 'testing',
  4584. fn: function (aBlock){
  4585. var self=this;
  4586. smalltalk.send(smalltalk.send(self, "_notEmpty", []), "_ifTrue_", [aBlock]);
  4587. return self;},
  4588. args: ["aBlock"],
  4589. source: unescape('ifNotEmpty%3A%20aBlock%0A%09self%20notEmpty%20ifTrue%3A%20aBlock.'),
  4590. messageSends: ["ifTrue:", "notEmpty"],
  4591. referencedClasses: []
  4592. }),
  4593. smalltalk.Collection);
  4594. smalltalk.addMethod(
  4595. unescape('_ifEmpty_'),
  4596. smalltalk.method({
  4597. selector: unescape('ifEmpty%3A'),
  4598. category: 'testing',
  4599. fn: function (aBlock){
  4600. var self=this;
  4601. smalltalk.send(smalltalk.send(self, "_isEmpty", []), "_ifTrue_", [aBlock]);
  4602. return self;},
  4603. args: ["aBlock"],
  4604. source: unescape('ifEmpty%3A%20aBlock%0A%09self%20isEmpty%20ifTrue%3A%20aBlock.'),
  4605. messageSends: ["ifTrue:", "isEmpty"],
  4606. referencedClasses: []
  4607. }),
  4608. smalltalk.Collection);
  4609. smalltalk.addMethod(
  4610. unescape('_streamClass'),
  4611. smalltalk.method({
  4612. selector: unescape('streamClass'),
  4613. category: 'accessing',
  4614. fn: function (){
  4615. var self=this;
  4616. return (smalltalk.Stream || Stream);
  4617. return self;},
  4618. args: [],
  4619. source: unescape('streamClass%0A%09%20%20%20%20%5EStream'),
  4620. messageSends: [],
  4621. referencedClasses: [smalltalk.Stream]
  4622. }),
  4623. smalltalk.Collection.klass);
  4624. smalltalk.addMethod(
  4625. unescape('_with_'),
  4626. smalltalk.method({
  4627. selector: unescape('with%3A'),
  4628. category: 'instance creation',
  4629. fn: function (anObject){
  4630. var self=this;
  4631. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4632. return self;},
  4633. args: ["anObject"],
  4634. source: unescape('with%3A%20anObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09yourself'),
  4635. messageSends: ["add:", "yourself", "new"],
  4636. referencedClasses: []
  4637. }),
  4638. smalltalk.Collection.klass);
  4639. smalltalk.addMethod(
  4640. unescape('_with_with_'),
  4641. smalltalk.method({
  4642. selector: unescape('with%3Awith%3A'),
  4643. category: 'instance creation',
  4644. fn: function (anObject, anotherObject){
  4645. var self=this;
  4646. return (function($rec){smalltalk.send($rec, "_add_", [anObject]);smalltalk.send($rec, "_add_", [anotherObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4647. return self;},
  4648. args: ["anObject", "anotherObject"],
  4649. source: unescape('with%3A%20anObject%20with%3A%20anotherObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20anObject%3B%0A%09%09add%3A%20anotherObject%3B%0A%09%09yourself'),
  4650. messageSends: ["add:", "yourself", "new"],
  4651. referencedClasses: []
  4652. }),
  4653. smalltalk.Collection.klass);
  4654. smalltalk.addMethod(
  4655. unescape('_with_with_with_'),
  4656. smalltalk.method({
  4657. selector: unescape('with%3Awith%3Awith%3A'),
  4658. category: 'instance creation',
  4659. fn: function (firstObject, secondObject, thirdObject){
  4660. var self=this;
  4661. return (function($rec){smalltalk.send($rec, "_add_", [firstObject]);smalltalk.send($rec, "_add_", [secondObject]);smalltalk.send($rec, "_add_", [thirdObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4662. return self;},
  4663. args: ["firstObject", "secondObject", "thirdObject"],
  4664. source: unescape('with%3A%20firstObject%20with%3A%20secondObject%20with%3A%20thirdObject%0A%09%20%20%20%20%5Eself%20new%0A%09%09add%3A%20firstObject%3B%0A%09%09add%3A%20secondObject%3B%0A%09%09add%3A%20thirdObject%3B%0A%09%09yourself'),
  4665. messageSends: ["add:", "yourself", "new"],
  4666. referencedClasses: []
  4667. }),
  4668. smalltalk.Collection.klass);
  4669. smalltalk.addMethod(
  4670. unescape('_withAll_'),
  4671. smalltalk.method({
  4672. selector: unescape('withAll%3A'),
  4673. category: 'instance creation',
  4674. fn: function (aCollection){
  4675. var self=this;
  4676. return (function($rec){smalltalk.send($rec, "_addAll_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  4677. return self;},
  4678. args: ["aCollection"],
  4679. source: unescape('withAll%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%0A%09%09addAll%3A%20aCollection%3B%0A%09%09yourself'),
  4680. messageSends: ["addAll:", "yourself", "new"],
  4681. referencedClasses: []
  4682. }),
  4683. smalltalk.Collection.klass);
  4684. smalltalk.addClass('SequenceableCollection', smalltalk.Collection, [], 'Kernel');
  4685. smalltalk.addMethod(
  4686. unescape('_at_'),
  4687. smalltalk.method({
  4688. selector: unescape('at%3A'),
  4689. category: 'accessing',
  4690. fn: function (anIndex){
  4691. var self=this;
  4692. return smalltalk.send(self, "_at_ifAbsent_", [anIndex, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4693. return self;},
  4694. args: ["anIndex"],
  4695. source: unescape('at%3A%20anIndex%0A%09%5Eself%20at%3A%20anIndex%20ifAbsent%3A%20%5B%0A%09%20%20%20%20self%20errorNotFound%5D'),
  4696. messageSends: ["at:ifAbsent:", "errorNotFound"],
  4697. referencedClasses: []
  4698. }),
  4699. smalltalk.SequenceableCollection);
  4700. smalltalk.addMethod(
  4701. unescape('_at_ifAbsent_'),
  4702. smalltalk.method({
  4703. selector: unescape('at%3AifAbsent%3A'),
  4704. category: 'accessing',
  4705. fn: function (anIndex, aBlock){
  4706. var self=this;
  4707. smalltalk.send(self, "_subclassResponsibility", []);
  4708. return self;},
  4709. args: ["anIndex", "aBlock"],
  4710. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09self%20subclassResponsibility'),
  4711. messageSends: ["subclassResponsibility"],
  4712. referencedClasses: []
  4713. }),
  4714. smalltalk.SequenceableCollection);
  4715. smalltalk.addMethod(
  4716. unescape('_at_put_'),
  4717. smalltalk.method({
  4718. selector: unescape('at%3Aput%3A'),
  4719. category: 'accessing',
  4720. fn: function (anIndex, anObject){
  4721. var self=this;
  4722. smalltalk.send(self, "_subclassResponsibility", []);
  4723. return self;},
  4724. args: ["anIndex", "anObject"],
  4725. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09self%20subclassResponsibility'),
  4726. messageSends: ["subclassResponsibility"],
  4727. referencedClasses: []
  4728. }),
  4729. smalltalk.SequenceableCollection);
  4730. smalltalk.addMethod(
  4731. unescape('_copyFrom_to_'),
  4732. smalltalk.method({
  4733. selector: unescape('copyFrom%3Ato%3A'),
  4734. category: 'copying',
  4735. fn: function (anIndex, anotherIndex){
  4736. var self=this;
  4737. smalltalk.send(self, "_subclassResponsibility", []);
  4738. return self;},
  4739. args: ["anIndex", "anotherIndex"],
  4740. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20subclassResponsibility'),
  4741. messageSends: ["subclassResponsibility"],
  4742. referencedClasses: []
  4743. }),
  4744. smalltalk.SequenceableCollection);
  4745. smalltalk.addMethod(
  4746. unescape('_first'),
  4747. smalltalk.method({
  4748. selector: unescape('first'),
  4749. category: 'accessing',
  4750. fn: function (){
  4751. var self=this;
  4752. return smalltalk.send(self, "_at_", [(1)]);
  4753. return self;},
  4754. args: [],
  4755. source: unescape('first%0A%09%5Eself%20at%3A%201'),
  4756. messageSends: ["at:"],
  4757. referencedClasses: []
  4758. }),
  4759. smalltalk.SequenceableCollection);
  4760. smalltalk.addMethod(
  4761. unescape('_fourth'),
  4762. smalltalk.method({
  4763. selector: unescape('fourth'),
  4764. category: 'accessing',
  4765. fn: function (){
  4766. var self=this;
  4767. return smalltalk.send(self, "_at_", [(4)]);
  4768. return self;},
  4769. args: [],
  4770. source: unescape('fourth%0A%09%5Eself%20at%3A%204'),
  4771. messageSends: ["at:"],
  4772. referencedClasses: []
  4773. }),
  4774. smalltalk.SequenceableCollection);
  4775. smalltalk.addMethod(
  4776. unescape('_last'),
  4777. smalltalk.method({
  4778. selector: unescape('last'),
  4779. category: 'accessing',
  4780. fn: function (){
  4781. var self=this;
  4782. return smalltalk.send(self, "_at_", [smalltalk.send(self, "_size", [])]);
  4783. return self;},
  4784. args: [],
  4785. source: unescape('last%0A%09%5Eself%20at%3A%20self%20size'),
  4786. messageSends: ["at:", "size"],
  4787. referencedClasses: []
  4788. }),
  4789. smalltalk.SequenceableCollection);
  4790. smalltalk.addMethod(
  4791. unescape('_second'),
  4792. smalltalk.method({
  4793. selector: unescape('second'),
  4794. category: 'accessing',
  4795. fn: function (){
  4796. var self=this;
  4797. return smalltalk.send(self, "_at_", [(2)]);
  4798. return self;},
  4799. args: [],
  4800. source: unescape('second%0A%09%5Eself%20at%3A%202'),
  4801. messageSends: ["at:"],
  4802. referencedClasses: []
  4803. }),
  4804. smalltalk.SequenceableCollection);
  4805. smalltalk.addMethod(
  4806. unescape('_third'),
  4807. smalltalk.method({
  4808. selector: unescape('third'),
  4809. category: 'accessing',
  4810. fn: function (){
  4811. var self=this;
  4812. return smalltalk.send(self, "_at_", [(3)]);
  4813. return self;},
  4814. args: [],
  4815. source: unescape('third%0A%09%5Eself%20at%3A%203'),
  4816. messageSends: ["at:"],
  4817. referencedClasses: []
  4818. }),
  4819. smalltalk.SequenceableCollection);
  4820. smalltalk.addMethod(
  4821. unescape('_removeLast'),
  4822. smalltalk.method({
  4823. selector: unescape('removeLast'),
  4824. category: 'adding',
  4825. fn: function (){
  4826. var self=this;
  4827. smalltalk.send(self, "_remove_", [smalltalk.send(self, "_last", [])]);
  4828. return self;},
  4829. args: [],
  4830. source: unescape('removeLast%0A%09self%20remove%3A%20self%20last'),
  4831. messageSends: ["remove:", "last"],
  4832. referencedClasses: []
  4833. }),
  4834. smalltalk.SequenceableCollection);
  4835. smalltalk.addMethod(
  4836. unescape('_addLast_'),
  4837. smalltalk.method({
  4838. selector: unescape('addLast%3A'),
  4839. category: 'adding',
  4840. fn: function (anObject){
  4841. var self=this;
  4842. smalltalk.send(self, "_add_", [anObject]);
  4843. return self;},
  4844. args: ["anObject"],
  4845. source: unescape('addLast%3A%20anObject%0A%09self%20add%3A%20anObject'),
  4846. messageSends: ["add:"],
  4847. referencedClasses: []
  4848. }),
  4849. smalltalk.SequenceableCollection);
  4850. smalltalk.addMethod(
  4851. unescape('_withIndexDo_'),
  4852. smalltalk.method({
  4853. selector: unescape('withIndexDo%3A'),
  4854. category: 'enumerating',
  4855. fn: function (aBlock){
  4856. var self=this;
  4857. for(var i=0;i<self.length;i++){aBlock(self[i], i+1);};
  4858. return self;},
  4859. args: ["aBlock"],
  4860. source: unescape('withIndexDo%3A%20aBlock%0A%09%3Cfor%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7BaBlock%28self%5Bi%5D%2C%20i+1%29%3B%7D%3E'),
  4861. messageSends: [],
  4862. referencedClasses: []
  4863. }),
  4864. smalltalk.SequenceableCollection);
  4865. smalltalk.addMethod(
  4866. unescape('_allButFirst'),
  4867. smalltalk.method({
  4868. selector: unescape('allButFirst'),
  4869. category: 'accessing',
  4870. fn: function (){
  4871. var self=this;
  4872. return smalltalk.send(self, "_copyFrom_to_", [(2), smalltalk.send(self, "_size", [])]);
  4873. return self;},
  4874. args: [],
  4875. source: unescape('allButFirst%0A%09%5Eself%20copyFrom%3A%202%20to%3A%20self%20size'),
  4876. messageSends: ["copyFrom:to:", "size"],
  4877. referencedClasses: []
  4878. }),
  4879. smalltalk.SequenceableCollection);
  4880. smalltalk.addMethod(
  4881. unescape('_allButLast'),
  4882. smalltalk.method({
  4883. selector: unescape('allButLast'),
  4884. category: 'accessing',
  4885. fn: function (){
  4886. var self=this;
  4887. return smalltalk.send(self, "_copyFrom_to_", [(1), ((($receiver = smalltalk.send(self, "_size", [])).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)]))]);
  4888. return self;},
  4889. args: [],
  4890. source: unescape('allButLast%0A%09%5Eself%20copyFrom%3A%201%20to%3A%20self%20size%20-%201'),
  4891. messageSends: ["copyFrom:to:", unescape("-"), "size"],
  4892. referencedClasses: []
  4893. }),
  4894. smalltalk.SequenceableCollection);
  4895. smalltalk.addMethod(
  4896. unescape('_indexOf_'),
  4897. smalltalk.method({
  4898. selector: unescape('indexOf%3A'),
  4899. category: 'accessing',
  4900. fn: function (anObject){
  4901. var self=this;
  4902. return smalltalk.send(self, "_indexOf_ifAbsent_", [anObject, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  4903. return self;},
  4904. args: ["anObject"],
  4905. source: unescape('indexOf%3A%20anObject%0A%09%5Eself%20indexOf%3A%20anObject%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  4906. messageSends: ["indexOf:ifAbsent:", "errorNotFound"],
  4907. referencedClasses: []
  4908. }),
  4909. smalltalk.SequenceableCollection);
  4910. smalltalk.addMethod(
  4911. unescape('_indexOf_ifAbsent_'),
  4912. smalltalk.method({
  4913. selector: unescape('indexOf%3AifAbsent%3A'),
  4914. category: 'accessing',
  4915. fn: function (anObject, aBlock){
  4916. var self=this;
  4917. for(var i=0;i<self.length;i++){
  4918. if(self[i].__eq(anObject)) {return i+1}
  4919. }
  4920. return aBlock();
  4921. ;
  4922. return self;},
  4923. args: ["anObject", "aBlock"],
  4924. source: unescape('indexOf%3A%20anObject%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%09for%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%7B%0A%09%09%09if%28self%5Bi%5D.__eq%28anObject%29%29%20%7Breturn%20i+1%7D%0A%09%09%7D%0A%09%09return%20aBlock%28%29%3B%0A%09%3E'),
  4925. messageSends: [],
  4926. referencedClasses: []
  4927. }),
  4928. smalltalk.SequenceableCollection);
  4929. smalltalk.addMethod(
  4930. unescape('_indexOf_startingAt_ifAbsent_'),
  4931. smalltalk.method({
  4932. selector: unescape('indexOf%3AstartingAt%3AifAbsent%3A'),
  4933. category: 'accessing',
  4934. fn: function (anObject, start, aBlock){
  4935. var self=this;
  4936. for(var i=start-1;i<self.length;i++){
  4937. if(self[i].__eq(anObject)) {return i+1}
  4938. }
  4939. return aBlock();
  4940. ;
  4941. return self;},
  4942. args: ["anObject", "start", "aBlock"],
  4943. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%09for%28var%20i%3Dstart-1%3Bi%3Cself.length%3Bi++%29%7B%0A%09%09%09if%28self%5Bi%5D.__eq%28anObject%29%29%20%7Breturn%20i+1%7D%0A%09%09%7D%0A%09%09return%20aBlock%28%29%3B%0A%09%3E'),
  4944. messageSends: [],
  4945. referencedClasses: []
  4946. }),
  4947. smalltalk.SequenceableCollection);
  4948. smalltalk.addMethod(
  4949. unescape('_indexOf_startingAt_'),
  4950. smalltalk.method({
  4951. selector: unescape('indexOf%3AstartingAt%3A'),
  4952. category: 'accessing',
  4953. fn: function (anObject, start){
  4954. var self=this;
  4955. return smalltalk.send(self, "_indexOf_startingAt_ifAbsent_", [anObject, start, (function(){return (0);})]);
  4956. return self;},
  4957. args: ["anObject", "start"],
  4958. source: unescape('indexOf%3A%20anObject%20startingAt%3A%20start%0A%09%22Answer%20the%20index%20of%20the%20first%20occurence%20of%20anElement%20after%20start%0A%09within%20the%20receiver.%20If%20the%20receiver%20does%20not%20contain%20anElement%2C%20%0A%09answer%200.%22%0A%09%5Eself%20indexOf%3A%20anObject%20startingAt%3A%20start%20ifAbsent%3A%20%5B0%5D'),
  4959. messageSends: ["indexOf:startingAt:ifAbsent:"],
  4960. referencedClasses: []
  4961. }),
  4962. smalltalk.SequenceableCollection);
  4963. smalltalk.addMethod(
  4964. unescape('_reversed'),
  4965. smalltalk.method({
  4966. selector: unescape('reversed'),
  4967. category: 'converting',
  4968. fn: function (){
  4969. var self=this;
  4970. smalltalk.send(self, "_subclassResponsibility", []);
  4971. return self;},
  4972. args: [],
  4973. source: unescape('reversed%0A%09self%20subclassResponsibility'),
  4974. messageSends: ["subclassResponsibility"],
  4975. referencedClasses: []
  4976. }),
  4977. smalltalk.SequenceableCollection);
  4978. smalltalk.addClass('String', smalltalk.SequenceableCollection, [], 'Kernel');
  4979. smalltalk.addMethod(
  4980. unescape('__eq'),
  4981. smalltalk.method({
  4982. selector: unescape('%3D'),
  4983. category: 'comparing',
  4984. fn: function (aString){
  4985. var self=this;
  4986. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  4987. return String(self) == aString;
  4988. return self;
  4989. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  4990. args: ["aString"],
  4991. source: unescape('%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%20aString%3E'),
  4992. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  4993. referencedClasses: []
  4994. }),
  4995. smalltalk.String);
  4996. smalltalk.addMethod(
  4997. unescape('_size'),
  4998. smalltalk.method({
  4999. selector: unescape('size'),
  5000. category: 'accessing',
  5001. fn: function (){
  5002. var self=this;
  5003. return self.length;
  5004. return self;},
  5005. args: [],
  5006. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5007. messageSends: [],
  5008. referencedClasses: []
  5009. }),
  5010. smalltalk.String);
  5011. smalltalk.addMethod(
  5012. unescape('_at_'),
  5013. smalltalk.method({
  5014. selector: unescape('at%3A'),
  5015. category: 'accessing',
  5016. fn: function (anIndex){
  5017. var self=this;
  5018. return self[anIndex - 1];
  5019. return self;},
  5020. args: ["anIndex"],
  5021. source: unescape('at%3A%20anIndex%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%3E'),
  5022. messageSends: [],
  5023. referencedClasses: []
  5024. }),
  5025. smalltalk.String);
  5026. smalltalk.addMethod(
  5027. unescape('_at_put_'),
  5028. smalltalk.method({
  5029. selector: unescape('at%3Aput%3A'),
  5030. category: 'accessing',
  5031. fn: function (anIndex, anObject){
  5032. var self=this;
  5033. smalltalk.send(self, "_errorReadOnly", []);
  5034. return self;},
  5035. args: ["anIndex", "anObject"],
  5036. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5037. messageSends: ["errorReadOnly"],
  5038. referencedClasses: []
  5039. }),
  5040. smalltalk.String);
  5041. smalltalk.addMethod(
  5042. unescape('_at_ifAbsent_'),
  5043. smalltalk.method({
  5044. selector: unescape('at%3AifAbsent%3A'),
  5045. category: 'accessing',
  5046. fn: function (anIndex, aBlock){
  5047. var self=this;
  5048. (($receiver = smalltalk.send(self, "_at_", [anIndex])) == nil || $receiver == undefined) ? (function(){return aBlock;})() : $receiver;
  5049. return self;},
  5050. args: ["anIndex", "aBlock"],
  5051. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%20%20%20%20%09%28self%20at%3A%20anIndex%29%20ifNil%3A%20%5BaBlock%5D'),
  5052. messageSends: ["ifNil:", "at:"],
  5053. referencedClasses: []
  5054. }),
  5055. smalltalk.String);
  5056. smalltalk.addMethod(
  5057. unescape('_escaped'),
  5058. smalltalk.method({
  5059. selector: unescape('escaped'),
  5060. category: 'accessing',
  5061. fn: function (){
  5062. var self=this;
  5063. return escape(self);
  5064. return self;},
  5065. args: [],
  5066. source: unescape('escaped%0A%09%3Creturn%20escape%28self%29%3E'),
  5067. messageSends: [],
  5068. referencedClasses: []
  5069. }),
  5070. smalltalk.String);
  5071. smalltalk.addMethod(
  5072. unescape('_unescaped'),
  5073. smalltalk.method({
  5074. selector: unescape('unescaped'),
  5075. category: 'accessing',
  5076. fn: function (){
  5077. var self=this;
  5078. return unescape(self);
  5079. return self;},
  5080. args: [],
  5081. source: unescape('unescaped%0A%09%3Creturn%20unescape%28self%29%3E'),
  5082. messageSends: [],
  5083. referencedClasses: []
  5084. }),
  5085. smalltalk.String);
  5086. smalltalk.addMethod(
  5087. unescape('_add_'),
  5088. smalltalk.method({
  5089. selector: unescape('add%3A'),
  5090. category: 'adding',
  5091. fn: function (anObject){
  5092. var self=this;
  5093. smalltalk.send(self, "_errorReadOnly", []);
  5094. return self;},
  5095. args: ["anObject"],
  5096. source: unescape('add%3A%20anObject%0A%20%20%20%20%09self%20errorReadOnly'),
  5097. messageSends: ["errorReadOnly"],
  5098. referencedClasses: []
  5099. }),
  5100. smalltalk.String);
  5101. smalltalk.addMethod(
  5102. unescape('__comma'),
  5103. smalltalk.method({
  5104. selector: unescape('%2C'),
  5105. category: 'copying',
  5106. fn: function (aString){
  5107. var self=this;
  5108. return self + aString;
  5109. return self;},
  5110. args: ["aString"],
  5111. source: unescape('%2C%20aString%0A%09%3Creturn%20self%20+%20aString%3E'),
  5112. messageSends: [],
  5113. referencedClasses: []
  5114. }),
  5115. smalltalk.String);
  5116. smalltalk.addMethod(
  5117. unescape('_copyFrom_to_'),
  5118. smalltalk.method({
  5119. selector: unescape('copyFrom%3Ato%3A'),
  5120. category: 'copying',
  5121. fn: function (anIndex, anotherIndex){
  5122. var self=this;
  5123. return self.substring(anIndex - 1, anotherIndex);
  5124. return self;},
  5125. args: ["anIndex", "anotherIndex"],
  5126. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%3Creturn%20self.substring%28anIndex%20-%201%2C%20anotherIndex%29%3E'),
  5127. messageSends: [],
  5128. referencedClasses: []
  5129. }),
  5130. smalltalk.String);
  5131. smalltalk.addMethod(
  5132. unescape('_shallowCopy'),
  5133. smalltalk.method({
  5134. selector: unescape('shallowCopy'),
  5135. category: 'copying',
  5136. fn: function (){
  5137. var self=this;
  5138. return smalltalk.send(smalltalk.send(self, "_class", []), "_fromString_", [self]);
  5139. return self;},
  5140. args: [],
  5141. source: unescape('shallowCopy%0A%20%20%20%20%09%5Eself%20class%20fromString%3A%20self'),
  5142. messageSends: ["fromString:", "class"],
  5143. referencedClasses: []
  5144. }),
  5145. smalltalk.String);
  5146. smalltalk.addMethod(
  5147. unescape('_deepCopy'),
  5148. smalltalk.method({
  5149. selector: unescape('deepCopy'),
  5150. category: 'copying',
  5151. fn: function (){
  5152. var self=this;
  5153. return smalltalk.send(self, "_shallowCopy", []);
  5154. return self;},
  5155. args: [],
  5156. source: unescape('deepCopy%0A%20%20%20%20%09%5Eself%20shallowCopy'),
  5157. messageSends: ["shallowCopy"],
  5158. referencedClasses: []
  5159. }),
  5160. smalltalk.String);
  5161. smalltalk.addMethod(
  5162. unescape('_asSelector'),
  5163. smalltalk.method({
  5164. selector: unescape('asSelector'),
  5165. category: 'converting',
  5166. fn: function (){
  5167. var self=this;
  5168. var selector=nil;
  5169. selector=smalltalk.send("_", "__comma", [self]);
  5170. selector=smalltalk.send(selector, "_replace_with_", [":", "_"]);
  5171. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B+%5D"), "_plus"]);
  5172. selector=smalltalk.send(selector, "_replace_with_", [unescape("-"), "_minus"]);
  5173. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B*%5D"), "_star"]);
  5174. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B/%5D"), "_slash"]);
  5175. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3E"), "_gt"]);
  5176. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3C"), "_lt"]);
  5177. selector=smalltalk.send(selector, "_replace_with_", [unescape("%3D"), "_eq"]);
  5178. selector=smalltalk.send(selector, "_replace_with_", [unescape("%2C"), "_comma"]);
  5179. selector=smalltalk.send(selector, "_replace_with_", [unescape("%5B@%5D"), "_at"]);
  5180. return selector;
  5181. return self;},
  5182. args: [],
  5183. source: unescape('asSelector%0A%09%22If%20you%20change%20this%20method%2C%20change%20smalltalk.convertSelector%20too%20%28see%20js/boot.js%20file%29%22%0A%0A%09%7C%20selector%20%7C%0A%09selector%20%3A%3D%20%27_%27%2C%20self.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3A%27%20with%3A%20%27_%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B+%5D%27%20with%3A%20%27_plus%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27-%27%20with%3A%20%27_minus%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B*%5D%27%20with%3A%20%27_star%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B/%5D%27%20with%3A%20%27_slash%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3E%27%20with%3A%20%27_gt%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3C%27%20with%3A%20%27_lt%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%3D%27%20with%3A%20%27_eq%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%2C%27%20with%3A%20%27_comma%27.%0A%20%20%20%20%09selector%20%3A%3D%20selector%20replace%3A%20%27%5B@%5D%27%20with%3A%20%27_at%27.%0A%09%5Eselector'),
  5184. messageSends: [unescape("%2C"), "replace:with:"],
  5185. referencedClasses: []
  5186. }),
  5187. smalltalk.String);
  5188. smalltalk.addMethod(
  5189. unescape('_asJavascript'),
  5190. smalltalk.method({
  5191. selector: unescape('asJavascript'),
  5192. category: 'converting',
  5193. fn: function (){
  5194. var self=this;
  5195. if(self.search(/^[a-zA-Z0-9_:.$ ]*$/) == -1)
  5196. return "unescape(\"" + escape(self) + "\")";
  5197. else
  5198. return "\"" + self + "\"";
  5199. ;
  5200. return self;},
  5201. args: [],
  5202. source: unescape('asJavascript%0A%09%3C%0A%09%09if%28self.search%28/%5E%5Ba-zA-Z0-9_%3A.%24%20%5D*%24/%29%20%3D%3D%20-1%29%0A%09%09%09return%20%22unescape%28%5C%22%22%20+%20escape%28self%29%20+%20%22%5C%22%29%22%3B%0A%09%09else%0A%09%09%09return%20%22%5C%22%22%20+%20self%20+%20%22%5C%22%22%3B%0A%09%3E'),
  5203. messageSends: [],
  5204. referencedClasses: []
  5205. }),
  5206. smalltalk.String);
  5207. smalltalk.addMethod(
  5208. unescape('_replace_with_'),
  5209. smalltalk.method({
  5210. selector: unescape('replace%3Awith%3A'),
  5211. category: 'regular expressions',
  5212. fn: function (aString, anotherString){
  5213. var self=this;
  5214. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [aString, "g"]), anotherString]);
  5215. return self;},
  5216. args: ["aString", "anotherString"],
  5217. source: unescape('replace%3A%20aString%20with%3A%20anotherString%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20aString%20flag%3A%20%27g%27%29%20with%3A%20anotherString'),
  5218. messageSends: ["replaceRegexp:with:", "fromString:flag:"],
  5219. referencedClasses: [smalltalk.RegularExpression]
  5220. }),
  5221. smalltalk.String);
  5222. smalltalk.addMethod(
  5223. unescape('_replaceRegexp_with_'),
  5224. smalltalk.method({
  5225. selector: unescape('replaceRegexp%3Awith%3A'),
  5226. category: 'regular expressions',
  5227. fn: function (aRegexp, aString){
  5228. var self=this;
  5229. return self.replace(aRegexp, aString);
  5230. return self;},
  5231. args: ["aRegexp", "aString"],
  5232. source: unescape('replaceRegexp%3A%20aRegexp%20with%3A%20aString%0A%09%3Creturn%20self.replace%28aRegexp%2C%20aString%29%3E'),
  5233. messageSends: [],
  5234. referencedClasses: []
  5235. }),
  5236. smalltalk.String);
  5237. smalltalk.addMethod(
  5238. unescape('_tokenize_'),
  5239. smalltalk.method({
  5240. selector: unescape('tokenize%3A'),
  5241. category: 'converting',
  5242. fn: function (aString){
  5243. var self=this;
  5244. return self.split(aString);
  5245. return self;},
  5246. args: ["aString"],
  5247. source: unescape('tokenize%3A%20aString%0A%09%3Creturn%20self.split%28aString%29%3E'),
  5248. messageSends: [],
  5249. referencedClasses: []
  5250. }),
  5251. smalltalk.String);
  5252. smalltalk.addMethod(
  5253. unescape('_match_'),
  5254. smalltalk.method({
  5255. selector: unescape('match%3A'),
  5256. category: 'regular expressions',
  5257. fn: function (aRegexp){
  5258. var self=this;
  5259. return self.search(aRegexp) != -1;
  5260. return self;},
  5261. args: ["aRegexp"],
  5262. source: unescape('match%3A%20aRegexp%0A%09%3Creturn%20self.search%28aRegexp%29%20%21%3D%20-1%3E'),
  5263. messageSends: [],
  5264. referencedClasses: []
  5265. }),
  5266. smalltalk.String);
  5267. smalltalk.addMethod(
  5268. unescape('_asString'),
  5269. smalltalk.method({
  5270. selector: unescape('asString'),
  5271. category: 'converting',
  5272. fn: function (){
  5273. var self=this;
  5274. return self;
  5275. return self;},
  5276. args: [],
  5277. source: unescape('asString%0A%20%20%20%20%09%5Eself'),
  5278. messageSends: [],
  5279. referencedClasses: []
  5280. }),
  5281. smalltalk.String);
  5282. smalltalk.addMethod(
  5283. unescape('_asNumber'),
  5284. smalltalk.method({
  5285. selector: unescape('asNumber'),
  5286. category: 'converting',
  5287. fn: function (){
  5288. var self=this;
  5289. return Number(self);
  5290. return self;},
  5291. args: [],
  5292. source: unescape('asNumber%0A%09%3Creturn%20Number%28self%29%3E'),
  5293. messageSends: [],
  5294. referencedClasses: []
  5295. }),
  5296. smalltalk.String);
  5297. smalltalk.addMethod(
  5298. unescape('_errorReadOnly'),
  5299. smalltalk.method({
  5300. selector: unescape('errorReadOnly'),
  5301. category: 'error handling',
  5302. fn: function (){
  5303. var self=this;
  5304. smalltalk.send(self, "_error_", [unescape("Object%20is%20read-only")]);
  5305. return self;},
  5306. args: [],
  5307. source: unescape('errorReadOnly%0A%20%20%20%20%09self%20error%3A%20%27Object%20is%20read-only%27'),
  5308. messageSends: ["error:"],
  5309. referencedClasses: []
  5310. }),
  5311. smalltalk.String);
  5312. smalltalk.addMethod(
  5313. unescape('_printString'),
  5314. smalltalk.method({
  5315. selector: unescape('printString'),
  5316. category: 'printing',
  5317. fn: function (){
  5318. var self=this;
  5319. return smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [self]), "__comma", [unescape("%27")]);
  5320. return self;},
  5321. args: [],
  5322. source: unescape('printString%0A%20%20%20%20%09%5E%27%27%27%27%2C%20self%2C%20%27%27%27%27'),
  5323. messageSends: [unescape("%2C")],
  5324. referencedClasses: []
  5325. }),
  5326. smalltalk.String);
  5327. smalltalk.addMethod(
  5328. unescape('_printNl'),
  5329. smalltalk.method({
  5330. selector: unescape('printNl'),
  5331. category: 'printing',
  5332. fn: function (){
  5333. var self=this;
  5334. console.log(self);
  5335. return self;},
  5336. args: [],
  5337. source: unescape('printNl%0A%09%3Cconsole.log%28self%29%3E'),
  5338. messageSends: [],
  5339. referencedClasses: []
  5340. }),
  5341. smalltalk.String);
  5342. smalltalk.addMethod(
  5343. unescape('_isString'),
  5344. smalltalk.method({
  5345. selector: unescape('isString'),
  5346. category: 'testing',
  5347. fn: function (){
  5348. var self=this;
  5349. return true;
  5350. return self;},
  5351. args: [],
  5352. source: unescape('isString%0A%20%20%20%20%09%5Etrue'),
  5353. messageSends: [],
  5354. referencedClasses: []
  5355. }),
  5356. smalltalk.String);
  5357. smalltalk.addMethod(
  5358. unescape('__gt'),
  5359. smalltalk.method({
  5360. selector: unescape('%3E'),
  5361. category: 'comparing',
  5362. fn: function (aString){
  5363. var self=this;
  5364. return String(self) > aString;
  5365. return self;},
  5366. args: ["aString"],
  5367. source: unescape('%3E%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%20aString%3E'),
  5368. messageSends: [],
  5369. referencedClasses: []
  5370. }),
  5371. smalltalk.String);
  5372. smalltalk.addMethod(
  5373. unescape('__lt'),
  5374. smalltalk.method({
  5375. selector: unescape('%3C'),
  5376. category: 'comparing',
  5377. fn: function (aString){
  5378. var self=this;
  5379. return String(self) < aString;
  5380. return self;},
  5381. args: ["aString"],
  5382. source: unescape('%3C%20aString%0A%09%3Creturn%20String%28self%29%20%3C%20aString%3E'),
  5383. messageSends: [],
  5384. referencedClasses: []
  5385. }),
  5386. smalltalk.String);
  5387. smalltalk.addMethod(
  5388. unescape('__gt_eq'),
  5389. smalltalk.method({
  5390. selector: unescape('%3E%3D'),
  5391. category: 'comparing',
  5392. fn: function (aString){
  5393. var self=this;
  5394. return String(self) >= aString;
  5395. return self;},
  5396. args: ["aString"],
  5397. source: unescape('%3E%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3E%3E%3D%20aString%3E'),
  5398. messageSends: [],
  5399. referencedClasses: []
  5400. }),
  5401. smalltalk.String);
  5402. smalltalk.addMethod(
  5403. unescape('__lt_eq'),
  5404. smalltalk.method({
  5405. selector: unescape('%3C%3D'),
  5406. category: 'comparing',
  5407. fn: function (aString){
  5408. var self=this;
  5409. return String(self) <= aString;
  5410. return self;},
  5411. args: ["aString"],
  5412. source: unescape('%3C%3D%20aString%0A%09%3Creturn%20String%28self%29%20%3C%3D%20aString%3E'),
  5413. messageSends: [],
  5414. referencedClasses: []
  5415. }),
  5416. smalltalk.String);
  5417. smalltalk.addMethod(
  5418. unescape('_remove_'),
  5419. smalltalk.method({
  5420. selector: unescape('remove%3A'),
  5421. category: 'adding',
  5422. fn: function (anObject){
  5423. var self=this;
  5424. smalltalk.send(self, "_errorReadOnly", []);
  5425. return self;},
  5426. args: ["anObject"],
  5427. source: unescape('remove%3A%20anObject%0A%09self%20errorReadOnly'),
  5428. messageSends: ["errorReadOnly"],
  5429. referencedClasses: []
  5430. }),
  5431. smalltalk.String);
  5432. smalltalk.addMethod(
  5433. unescape('_asJSONObject'),
  5434. smalltalk.method({
  5435. selector: unescape('asJSONObject'),
  5436. category: 'converting',
  5437. fn: function (){
  5438. var self=this;
  5439. return self;
  5440. return self;},
  5441. args: [],
  5442. source: unescape('asJSONObject%0A%09%5Eself'),
  5443. messageSends: [],
  5444. referencedClasses: []
  5445. }),
  5446. smalltalk.String);
  5447. smalltalk.addMethod(
  5448. unescape('_trimLeft_'),
  5449. smalltalk.method({
  5450. selector: unescape('trimLeft%3A'),
  5451. category: 'regular expressions',
  5452. fn: function (separators){
  5453. var self=this;
  5454. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5E%5B"), "__comma", [separators]), "__comma", [unescape("%5D+")]), "g"]), ""]);
  5455. return self;},
  5456. args: ["separators"],
  5457. source: unescape('trimLeft%3A%20separators%0A%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20%27%5E%5B%27%2C%20separators%2C%20%27%5D+%27%20flag%3A%20%27g%27%29%20with%3A%20%27%27'),
  5458. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5459. referencedClasses: [smalltalk.RegularExpression]
  5460. }),
  5461. smalltalk.String);
  5462. smalltalk.addMethod(
  5463. unescape('_trimRight_'),
  5464. smalltalk.method({
  5465. selector: unescape('trimRight%3A'),
  5466. category: 'regular expressions',
  5467. fn: function (separators){
  5468. var self=this;
  5469. return smalltalk.send(self, "_replaceRegexp_with_", [smalltalk.send((smalltalk.RegularExpression || RegularExpression), "_fromString_flag_", [smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [separators]), "__comma", [unescape("%5D+%24")]), "g"]), ""]);
  5470. return self;},
  5471. args: ["separators"],
  5472. source: unescape('trimRight%3A%20separators%0A%0A%20%20%20%20%09%5Eself%20replaceRegexp%3A%20%28RegularExpression%20fromString%3A%20%27%5B%27%2C%20separators%2C%20%27%5D+%24%27%20flag%3A%20%27g%27%29%20with%3A%20%27%27'),
  5473. messageSends: ["replaceRegexp:with:", "fromString:flag:", unescape("%2C")],
  5474. referencedClasses: [smalltalk.RegularExpression]
  5475. }),
  5476. smalltalk.String);
  5477. smalltalk.addMethod(
  5478. unescape('_trimLeft'),
  5479. smalltalk.method({
  5480. selector: unescape('trimLeft'),
  5481. category: 'regular expressions',
  5482. fn: function (){
  5483. var self=this;
  5484. return smalltalk.send(self, "_trimLeft_", [unescape("%5Cs")]);
  5485. return self;},
  5486. args: [],
  5487. source: unescape('trimLeft%0A%09%5Eself%20trimLeft%3A%20%27%5Cs%27'),
  5488. messageSends: ["trimLeft:"],
  5489. referencedClasses: []
  5490. }),
  5491. smalltalk.String);
  5492. smalltalk.addMethod(
  5493. unescape('_trimRight'),
  5494. smalltalk.method({
  5495. selector: unescape('trimRight'),
  5496. category: 'regular expressions',
  5497. fn: function (){
  5498. var self=this;
  5499. return smalltalk.send(self, "_trimRight_", [unescape("%5Cs")]);
  5500. return self;},
  5501. args: [],
  5502. source: unescape('trimRight%0A%09%5Eself%20trimRight%3A%20%27%5Cs%27'),
  5503. messageSends: ["trimRight:"],
  5504. referencedClasses: []
  5505. }),
  5506. smalltalk.String);
  5507. smalltalk.addMethod(
  5508. unescape('_trimBoth'),
  5509. smalltalk.method({
  5510. selector: unescape('trimBoth'),
  5511. category: 'regular expressions',
  5512. fn: function (){
  5513. var self=this;
  5514. return smalltalk.send(self, "_trimBoth_", [unescape("%5Cs")]);
  5515. return self;},
  5516. args: [],
  5517. source: unescape('trimBoth%0A%09%5Eself%20trimBoth%3A%20%27%5Cs%27'),
  5518. messageSends: ["trimBoth:"],
  5519. referencedClasses: []
  5520. }),
  5521. smalltalk.String);
  5522. smalltalk.addMethod(
  5523. unescape('_trimBoth_'),
  5524. smalltalk.method({
  5525. selector: unescape('trimBoth%3A'),
  5526. category: 'regular expressions',
  5527. fn: function (separators){
  5528. var self=this;
  5529. return smalltalk.send(smalltalk.send(self, "_trimLeft_", [separators]), "_trimRight_", [separators]);
  5530. return self;},
  5531. args: ["separators"],
  5532. source: unescape('trimBoth%3A%20separators%0A%0A%20%20%20%20%09%5E%28self%20trimLeft%3A%20separators%29%20trimRight%3A%20separators'),
  5533. messageSends: ["trimRight:", "trimLeft:"],
  5534. referencedClasses: []
  5535. }),
  5536. smalltalk.String);
  5537. smalltalk.addMethod(
  5538. unescape('_asLowercase'),
  5539. smalltalk.method({
  5540. selector: unescape('asLowercase'),
  5541. category: 'converting',
  5542. fn: function (){
  5543. var self=this;
  5544. return self.toLowerCase();
  5545. return self;},
  5546. args: [],
  5547. source: unescape('asLowercase%0A%09%3Creturn%20self.toLowerCase%28%29%3E'),
  5548. messageSends: [],
  5549. referencedClasses: []
  5550. }),
  5551. smalltalk.String);
  5552. smalltalk.addMethod(
  5553. unescape('_asUppercase'),
  5554. smalltalk.method({
  5555. selector: unescape('asUppercase'),
  5556. category: 'converting',
  5557. fn: function (){
  5558. var self=this;
  5559. return self.toUpperCase();
  5560. return self;},
  5561. args: [],
  5562. source: unescape('asUppercase%0A%09%3Creturn%20self.toUpperCase%28%29%3E'),
  5563. messageSends: [],
  5564. referencedClasses: []
  5565. }),
  5566. smalltalk.String);
  5567. smalltalk.addMethod(
  5568. unescape('_join_'),
  5569. smalltalk.method({
  5570. selector: unescape('join%3A'),
  5571. category: 'split join',
  5572. fn: function (aCollection){
  5573. var self=this;
  5574. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(stream){return smalltalk.send(aCollection, "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [smalltalk.send(each, "_asString", [])]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [self]);})]);})]);
  5575. return self;},
  5576. args: ["aCollection"],
  5577. source: unescape('join%3A%20aCollection%20%0A%09%5E%20String%0A%09%09streamContents%3A%20%5B%3Astream%20%7C%20aCollection%0A%09%09%09%09do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%20asString%5D%20%0A%09%09%09%09separatedBy%3A%20%5Bstream%20nextPutAll%3A%20self%5D%5D'),
  5578. messageSends: ["streamContents:", "do:separatedBy:", "nextPutAll:", "asString"],
  5579. referencedClasses: [smalltalk.String]
  5580. }),
  5581. smalltalk.String);
  5582. smalltalk.addMethod(
  5583. unescape('_includesSubString_'),
  5584. smalltalk.method({
  5585. selector: unescape('includesSubString%3A'),
  5586. category: 'testing',
  5587. fn: function (subString){
  5588. var self=this;
  5589. return self.indexOf(subString) != -1 ;
  5590. return self;},
  5591. args: ["subString"],
  5592. source: unescape('includesSubString%3A%20subString%0A%09%3C%20return%20self.indexOf%28subString%29%20%21%3D%20-1%20%3E'),
  5593. messageSends: [],
  5594. referencedClasses: []
  5595. }),
  5596. smalltalk.String);
  5597. smalltalk.addMethod(
  5598. unescape('_asciiValue'),
  5599. smalltalk.method({
  5600. selector: unescape('asciiValue'),
  5601. category: 'accessing',
  5602. fn: function (){
  5603. var self=this;
  5604. return self.charCodeAt(0);;
  5605. return self;},
  5606. args: [],
  5607. source: unescape('asciiValue%0A%09%3Creturn%20self.charCodeAt%280%29%3B%3E'),
  5608. messageSends: [],
  5609. referencedClasses: []
  5610. }),
  5611. smalltalk.String);
  5612. smalltalk.addMethod(
  5613. unescape('_lineIndicesDo_'),
  5614. smalltalk.method({
  5615. selector: unescape('lineIndicesDo%3A'),
  5616. category: 'split join',
  5617. fn: function (aBlock){
  5618. var self=this;
  5619. try{var cr=nil;
  5620. var lf=nil;
  5621. var start=nil;
  5622. var sz=nil;
  5623. var nextLF=nil;
  5624. var nextCR=nil;
  5625. start=(1);
  5626. sz=smalltalk.send(self, "_size", []);
  5627. cr=smalltalk.send((smalltalk.String || String), "_cr", []);
  5628. nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, (1)]);
  5629. lf=smalltalk.send((smalltalk.String || String), "_lf", []);
  5630. nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, (1)]);
  5631. (function(){while((function(){return ((($receiver = start).klass === smalltalk.Number) ? $receiver <=sz : smalltalk.send($receiver, "__lt_eq", [sz]));})()) {(function(){((($receiver = smalltalk.send(smalltalk.send(nextLF, "__eq", [(0)]), "_and_", [(function(){return smalltalk.send(nextCR, "__eq", [(0)]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, sz, sz]);return (function(){throw({name: 'stReturn', selector: '_lineIndicesDo_', fn: function(){return self}})})();})]));return ((($receiver = smalltalk.send(smalltalk.send(nextCR, "__eq", [(0)]), "_or_", [(function(){return smalltalk.send((0) < nextLF, "_and_", [(function(){return ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver <nextCR : smalltalk.send($receiver, "__lt", [nextCR]));})]);})])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextLF).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){return ((($receiver = smalltalk.send((1) + nextCR, "__eq", [nextLF])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);})() : (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextLF]);start=(1) + nextLF;nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);return nextLF=smalltalk.send(self, "_indexOf_startingAt_", [lf, start]);}), (function(){smalltalk.send(aBlock, "_value_value_value_", [start, ((($receiver = nextCR).klass === smalltalk.Number) ? $receiver -(1) : smalltalk.send($receiver, "__minus", [(1)])), nextCR]);start=(1) + nextCR;return nextCR=smalltalk.send(self, "_indexOf_startingAt_", [cr, start]);})]));})]));})()}})();
  5632. return self;
  5633. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineIndicesDo_'){return e.fn()} throw(e)}},
  5634. args: ["aBlock"],
  5635. source: unescape('lineIndicesDo%3A%20aBlock%0A%09%22execute%20aBlock%20with%203%20arguments%20for%20each%20line%3A%0A%09-%20start%20index%20of%20line%0A%09-%20end%20index%20of%20line%20without%20line%20delimiter%0A%09-%20end%20index%20of%20line%20including%20line%20delimiter%28s%29%20CR%2C%20LF%20or%20CRLF%22%0A%09%0A%09%7C%20cr%20lf%20start%20sz%20nextLF%20nextCR%20%7C%0A%09start%20%3A%3D%201.%0A%09sz%20%3A%3D%20self%20size.%0A%09cr%20%3A%3D%20String%20cr.%0A%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%201.%0A%09lf%20%3A%3D%20String%20lf.%0A%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%201.%0A%09%5B%20start%20%3C%3D%20sz%20%5D%20whileTrue%3A%20%5B%0A%09%09%28nextLF%20%3D%200%20and%3A%20%5B%20nextCR%20%3D%200%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22No%20more%20CR%2C%20nor%20LF%2C%20the%20string%20is%20over%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20sz%20value%3A%20sz.%0A%09%09%09%09%09%5Eself%20%5D.%0A%09%09%28nextCR%20%3D%200%20or%3A%20%5B%200%20%3C%20nextLF%20and%3A%20%5B%20nextLF%20%3C%20nextCR%20%5D%20%5D%29%0A%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20LF%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextLF%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09ifFalse%3A%20%5B%201%20+%20nextCR%20%3D%20nextLF%0A%09%09%09%09ifTrue%3A%20%5B%20%22Found%20a%20CR-LF%20pair%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextLF.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextLF.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start.%0A%09%09%09%09%09nextLF%20%3A%3D%20self%20indexOf%3A%20lf%20startingAt%3A%20start%20%5D%0A%09%09%09%09ifFalse%3A%20%5B%20%22Found%20a%20CR%22%0A%09%09%09%09%09aBlock%20value%3A%20start%20value%3A%20nextCR%20-%201%20value%3A%20nextCR.%0A%09%09%09%09%09start%20%3A%3D%201%20+%20nextCR.%0A%09%09%09%09%09nextCR%20%3A%3D%20self%20indexOf%3A%20cr%20startingAt%3A%20start%20%5D%5D%5D'),
  5636. messageSends: ["size", "cr", "indexOf:startingAt:", "lf", "whileTrue:", unescape("%3C%3D"), "ifTrue:", "and:", unescape("%3D"), "value:value:value:", "ifTrue:ifFalse:", "or:", unescape("%3C"), unescape("-"), unescape("+")],
  5637. referencedClasses: [smalltalk.String]
  5638. }),
  5639. smalltalk.String);
  5640. smalltalk.addMethod(
  5641. unescape('_linesDo_'),
  5642. smalltalk.method({
  5643. selector: unescape('linesDo%3A'),
  5644. category: 'split join',
  5645. fn: function (aBlock){
  5646. var self=this;
  5647. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])]);})]);
  5648. return self;},
  5649. args: ["aBlock"],
  5650. source: unescape('linesDo%3A%20aBlock%0A%09%22Execute%20aBlock%20with%20each%20line%20in%20this%20string.%20The%20terminating%20line%0A%09delimiters%20CR%2C%20LF%20or%20CRLF%20pairs%20are%20not%20included%20in%20what%20is%20passed%20to%20aBlock%22%0A%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09aBlock%20value%3A%20%28self%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%29%5D'),
  5651. messageSends: ["lineIndicesDo:", "value:", "copyFrom:to:"],
  5652. referencedClasses: []
  5653. }),
  5654. smalltalk.String);
  5655. smalltalk.addMethod(
  5656. unescape('_lines'),
  5657. smalltalk.method({
  5658. selector: unescape('lines'),
  5659. category: 'split join',
  5660. fn: function (){
  5661. var self=this;
  5662. var lines=nil;
  5663. lines=smalltalk.send((smalltalk.Array || Array), "_new", []);
  5664. smalltalk.send(self, "_linesDo_", [(function(aLine){return smalltalk.send(lines, "_add_", [aLine]);})]);
  5665. return lines;
  5666. return self;},
  5667. args: [],
  5668. source: unescape('lines%0A%09%22Answer%20an%20array%20of%20lines%20composing%20this%20receiver%20without%20the%20line%20ending%20delimiters.%22%0A%0A%09%7C%20lines%20%7C%0A%09lines%20%3A%3D%20Array%20new.%0A%09self%20linesDo%3A%20%5B%3AaLine%20%7C%20lines%20add%3A%20aLine%5D.%0A%09%5Elines'),
  5669. messageSends: ["new", "linesDo:", "add:"],
  5670. referencedClasses: [smalltalk.Array]
  5671. }),
  5672. smalltalk.String);
  5673. smalltalk.addMethod(
  5674. unescape('_lineNumber_'),
  5675. smalltalk.method({
  5676. selector: unescape('lineNumber%3A'),
  5677. category: 'split join',
  5678. fn: function (anIndex){
  5679. var self=this;
  5680. try{var lineCount=nil;
  5681. lineCount=(0);
  5682. smalltalk.send(self, "_lineIndicesDo_", [(function(start, endWithoutDelimiters, end){return ((($receiver = smalltalk.send(lineCount=((($receiver = lineCount).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])), "__eq", [anIndex])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return smalltalk.send(self, "_copyFrom_to_", [start, endWithoutDelimiters])}})})();})]));})]);
  5683. (function(){throw({name: 'stReturn', selector: '_lineNumber_', fn: function(){return nil}})})();
  5684. return self;
  5685. } catch(e) {if(e.name === 'stReturn' && e.selector === '_lineNumber_'){return e.fn()} throw(e)}},
  5686. args: ["anIndex"],
  5687. source: unescape('lineNumber%3A%20anIndex%0A%09%22Answer%20a%20string%20containing%20the%20characters%20in%20the%20given%20line%20number.%22%0A%0A%09%7C%20lineCount%20%7C%0A%09lineCount%20%3A%3D%200.%0A%09self%20lineIndicesDo%3A%20%5B%3Astart%20%3AendWithoutDelimiters%20%3Aend%20%7C%0A%09%09%28lineCount%20%3A%3D%20lineCount%20+%201%29%20%3D%20anIndex%20ifTrue%3A%20%5B%5Eself%20copyFrom%3A%20start%20to%3A%20endWithoutDelimiters%5D%5D.%0A%09%5Enil'),
  5688. messageSends: ["lineIndicesDo:", "ifTrue:", unescape("%3D"), unescape("+"), "copyFrom:to:"],
  5689. referencedClasses: []
  5690. }),
  5691. smalltalk.String);
  5692. smalltalk.addMethod(
  5693. unescape('_reversed'),
  5694. smalltalk.method({
  5695. selector: unescape('reversed'),
  5696. category: 'converting',
  5697. fn: function (){
  5698. var self=this;
  5699. return self.split("").reverse().join("");
  5700. return self;},
  5701. args: [],
  5702. source: unescape('reversed%0A%09%3Creturn%20self.split%28%22%22%29.reverse%28%29.join%28%22%22%29%3E'),
  5703. messageSends: [],
  5704. referencedClasses: []
  5705. }),
  5706. smalltalk.String);
  5707. smalltalk.addMethod(
  5708. unescape('__eq_eq'),
  5709. smalltalk.method({
  5710. selector: unescape('%3D%3D'),
  5711. category: 'comparing',
  5712. fn: function (aString){
  5713. var self=this;
  5714. try{((($receiver = smalltalk.send(smalltalk.send(aString, "_class", []), "__eq", [smalltalk.send(self, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq_eq', fn: function(){return false}})})();})]));
  5715. return String(self) === String(aString);
  5716. return self;
  5717. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq_eq'){return e.fn()} throw(e)}},
  5718. args: ["aString"],
  5719. source: unescape('%3D%3D%20aString%0A%09aString%20class%20%3D%20self%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%3Creturn%20String%28self%29%20%3D%3D%3D%20String%28aString%29%3E'),
  5720. messageSends: ["ifFalse:", unescape("%3D"), "class"],
  5721. referencedClasses: []
  5722. }),
  5723. smalltalk.String);
  5724. smalltalk.addMethod(
  5725. unescape('_streamClass'),
  5726. smalltalk.method({
  5727. selector: unescape('streamClass'),
  5728. category: 'accessing',
  5729. fn: function (){
  5730. var self=this;
  5731. return (smalltalk.StringStream || StringStream);
  5732. return self;},
  5733. args: [],
  5734. source: unescape('streamClass%0A%09%20%20%20%20%5EStringStream'),
  5735. messageSends: [],
  5736. referencedClasses: [smalltalk.StringStream]
  5737. }),
  5738. smalltalk.String.klass);
  5739. smalltalk.addMethod(
  5740. unescape('_fromString_'),
  5741. smalltalk.method({
  5742. selector: unescape('fromString%3A'),
  5743. category: 'instance creation',
  5744. fn: function (aString){
  5745. var self=this;
  5746. return new self.fn(aString);
  5747. return self;},
  5748. args: ["aString"],
  5749. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%3Creturn%20new%20self.fn%28aString%29%3E'),
  5750. messageSends: [],
  5751. referencedClasses: []
  5752. }),
  5753. smalltalk.String.klass);
  5754. smalltalk.addMethod(
  5755. unescape('_cr'),
  5756. smalltalk.method({
  5757. selector: unescape('cr'),
  5758. category: 'accessing',
  5759. fn: function (){
  5760. var self=this;
  5761. return '\r';
  5762. return self;},
  5763. args: [],
  5764. source: unescape('cr%0A%09%3Creturn%20%27%5Cr%27%3E'),
  5765. messageSends: [],
  5766. referencedClasses: []
  5767. }),
  5768. smalltalk.String.klass);
  5769. smalltalk.addMethod(
  5770. unescape('_lf'),
  5771. smalltalk.method({
  5772. selector: unescape('lf'),
  5773. category: 'accessing',
  5774. fn: function (){
  5775. var self=this;
  5776. return '\n';
  5777. return self;},
  5778. args: [],
  5779. source: unescape('lf%0A%09%3Creturn%20%27%5Cn%27%3E'),
  5780. messageSends: [],
  5781. referencedClasses: []
  5782. }),
  5783. smalltalk.String.klass);
  5784. smalltalk.addMethod(
  5785. unescape('_space'),
  5786. smalltalk.method({
  5787. selector: unescape('space'),
  5788. category: 'accessing',
  5789. fn: function (){
  5790. var self=this;
  5791. return ' ';
  5792. return self;},
  5793. args: [],
  5794. source: unescape('space%0A%09%3Creturn%20%27%20%27%3E'),
  5795. messageSends: [],
  5796. referencedClasses: []
  5797. }),
  5798. smalltalk.String.klass);
  5799. smalltalk.addMethod(
  5800. unescape('_tab'),
  5801. smalltalk.method({
  5802. selector: unescape('tab'),
  5803. category: 'accessing',
  5804. fn: function (){
  5805. var self=this;
  5806. return '\t';
  5807. return self;},
  5808. args: [],
  5809. source: unescape('tab%0A%09%3Creturn%20%27%5Ct%27%3E'),
  5810. messageSends: [],
  5811. referencedClasses: []
  5812. }),
  5813. smalltalk.String.klass);
  5814. smalltalk.addMethod(
  5815. unescape('_crlf'),
  5816. smalltalk.method({
  5817. selector: unescape('crlf'),
  5818. category: 'accessing',
  5819. fn: function (){
  5820. var self=this;
  5821. return '\r\n';
  5822. return self;},
  5823. args: [],
  5824. source: unescape('crlf%0A%09%3Creturn%20%27%5Cr%5Cn%27%3E'),
  5825. messageSends: [],
  5826. referencedClasses: []
  5827. }),
  5828. smalltalk.String.klass);
  5829. smalltalk.addMethod(
  5830. unescape('_streamContents_'),
  5831. smalltalk.method({
  5832. selector: unescape('streamContents%3A'),
  5833. category: 'instance creation',
  5834. fn: function (blockWithArg){
  5835. var self=this;
  5836. var stream=nil;
  5837. stream=smalltalk.send(smalltalk.send(self, "_streamClass", []), "_on_", [smalltalk.send((smalltalk.String || String), "_new", [])]);
  5838. smalltalk.send(blockWithArg, "_value_", [stream]);
  5839. return smalltalk.send(stream, "_contents", []);
  5840. return self;},
  5841. args: ["blockWithArg"],
  5842. source: unescape('streamContents%3A%20blockWithArg%0A%09%7Cstream%7C%0A%09stream%20%3A%3D%20%28self%20streamClass%20on%3A%20String%20new%29.%0A%09blockWithArg%20value%3A%20stream.%0A%09%5E%20stream%20contents'),
  5843. messageSends: ["on:", "streamClass", "new", "value:", "contents"],
  5844. referencedClasses: [smalltalk.String]
  5845. }),
  5846. smalltalk.String.klass);
  5847. smalltalk.addMethod(
  5848. unescape('_value_'),
  5849. smalltalk.method({
  5850. selector: unescape('value%3A'),
  5851. category: 'instance creation',
  5852. fn: function (aUTFCharCode){
  5853. var self=this;
  5854. return String.fromCharCode(aUTFCharCode);;
  5855. return self;},
  5856. args: ["aUTFCharCode"],
  5857. source: unescape('value%3A%20aUTFCharCode%0A%0A%09%3Creturn%20String.fromCharCode%28aUTFCharCode%29%3B%3E'),
  5858. messageSends: [],
  5859. referencedClasses: []
  5860. }),
  5861. smalltalk.String.klass);
  5862. smalltalk.addClass('Array', smalltalk.SequenceableCollection, [], 'Kernel');
  5863. smalltalk.addMethod(
  5864. unescape('_size'),
  5865. smalltalk.method({
  5866. selector: unescape('size'),
  5867. category: 'accessing',
  5868. fn: function (){
  5869. var self=this;
  5870. return self.length;
  5871. return self;},
  5872. args: [],
  5873. source: unescape('size%0A%09%3Creturn%20self.length%3E'),
  5874. messageSends: [],
  5875. referencedClasses: []
  5876. }),
  5877. smalltalk.Array);
  5878. smalltalk.addMethod(
  5879. unescape('_at_put_'),
  5880. smalltalk.method({
  5881. selector: unescape('at%3Aput%3A'),
  5882. category: 'accessing',
  5883. fn: function (anIndex, anObject){
  5884. var self=this;
  5885. return self[anIndex - 1] = anObject;
  5886. return self;},
  5887. args: ["anIndex", "anObject"],
  5888. source: unescape('at%3A%20anIndex%20put%3A%20anObject%0A%09%3Creturn%20self%5BanIndex%20-%201%5D%20%3D%20anObject%3E'),
  5889. messageSends: [],
  5890. referencedClasses: []
  5891. }),
  5892. smalltalk.Array);
  5893. smalltalk.addMethod(
  5894. unescape('_at_ifAbsent_'),
  5895. smalltalk.method({
  5896. selector: unescape('at%3AifAbsent%3A'),
  5897. category: 'accessing',
  5898. fn: function (anIndex, aBlock){
  5899. var self=this;
  5900. var value = self[anIndex - 1];
  5901. if(value === undefined) {
  5902. return aBlock();
  5903. } else {
  5904. return value;
  5905. }
  5906. ;
  5907. return self;},
  5908. args: ["anIndex", "aBlock"],
  5909. source: unescape('at%3A%20anIndex%20ifAbsent%3A%20aBlock%0A%09%3C%0A%09%20%20%20%20var%20value%20%3D%20self%5BanIndex%20-%201%5D%3B%0A%09%20%20%20%20if%28value%20%3D%3D%3D%20undefined%29%20%7B%0A%09%09return%20aBlock%28%29%3B%0A%09%20%20%20%20%7D%20else%20%7B%0A%09%09return%20value%3B%0A%09%20%20%20%20%7D%0A%09%3E'),
  5910. messageSends: [],
  5911. referencedClasses: []
  5912. }),
  5913. smalltalk.Array);
  5914. smalltalk.addMethod(
  5915. unescape('_add_'),
  5916. smalltalk.method({
  5917. selector: unescape('add%3A'),
  5918. category: 'adding/removing',
  5919. fn: function (anObject){
  5920. var self=this;
  5921. self.push(anObject); return anObject;;
  5922. return self;},
  5923. args: ["anObject"],
  5924. source: unescape('add%3A%20anObject%0A%09%3Cself.push%28anObject%29%3B%20return%20anObject%3B%3E'),
  5925. messageSends: [],
  5926. referencedClasses: []
  5927. }),
  5928. smalltalk.Array);
  5929. smalltalk.addMethod(
  5930. unescape('_shallowCopy'),
  5931. smalltalk.method({
  5932. selector: unescape('shallowCopy'),
  5933. category: 'copying',
  5934. fn: function (){
  5935. var self=this;
  5936. var newCollection=nil;
  5937. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5938. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [each]);})]);
  5939. return newCollection;
  5940. return self;},
  5941. args: [],
  5942. source: unescape('shallowCopy%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20newCollection%20add%3A%20each%5D.%0A%09%5EnewCollection'),
  5943. messageSends: ["new", "class", "do:", "add:"],
  5944. referencedClasses: []
  5945. }),
  5946. smalltalk.Array);
  5947. smalltalk.addMethod(
  5948. unescape('_deepCopy'),
  5949. smalltalk.method({
  5950. selector: unescape('deepCopy'),
  5951. category: 'copying',
  5952. fn: function (){
  5953. var self=this;
  5954. var newCollection=nil;
  5955. newCollection=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5956. smalltalk.send(self, "_do_", [(function(each){return smalltalk.send(newCollection, "_add_", [smalltalk.send(each, "_deepCopy", [])]);})]);
  5957. return newCollection;
  5958. return self;},
  5959. args: [],
  5960. source: unescape('deepCopy%0A%09%7C%20newCollection%20%7C%0A%09newCollection%20%3A%3D%20self%20class%20new.%0A%09self%20do%3A%20%5B%3Aeach%20%7C%20newCollection%20add%3A%20each%20deepCopy%5D.%0A%09%5EnewCollection'),
  5961. messageSends: ["new", "class", "do:", "add:", "deepCopy"],
  5962. referencedClasses: []
  5963. }),
  5964. smalltalk.Array);
  5965. smalltalk.addMethod(
  5966. unescape('_copyFrom_to_'),
  5967. smalltalk.method({
  5968. selector: unescape('copyFrom%3Ato%3A'),
  5969. category: 'copying',
  5970. fn: function (anIndex, anotherIndex){
  5971. var self=this;
  5972. var array=nil;
  5973. array=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  5974. smalltalk.send(anIndex, "_to_do_", [anotherIndex, (function(each){return smalltalk.send(array, "_add_", [smalltalk.send(self, "_at_", [each])]);})]);
  5975. return array;
  5976. return self;},
  5977. args: ["anIndex", "anotherIndex"],
  5978. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09%7C%20array%20%7C%0A%09array%20%3A%3D%20self%20class%20new.%0A%09anIndex%20to%3A%20anotherIndex%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20array%20add%3A%20%28self%20at%3A%20each%29%5D.%0A%09%5Earray'),
  5979. messageSends: ["new", "class", "to:do:", "add:", "at:"],
  5980. referencedClasses: []
  5981. }),
  5982. smalltalk.Array);
  5983. smalltalk.addMethod(
  5984. unescape('_join_'),
  5985. smalltalk.method({
  5986. selector: unescape('join%3A'),
  5987. category: 'enumerating',
  5988. fn: function (aString){
  5989. var self=this;
  5990. return self.join(aString);
  5991. return self;},
  5992. args: ["aString"],
  5993. source: unescape('join%3A%20aString%0A%09%3Creturn%20self.join%28aString%29%3E'),
  5994. messageSends: [],
  5995. referencedClasses: []
  5996. }),
  5997. smalltalk.Array);
  5998. smalltalk.addMethod(
  5999. unescape('_asJavascript'),
  6000. smalltalk.method({
  6001. selector: unescape('asJavascript'),
  6002. category: 'converting',
  6003. fn: function (){
  6004. var self=this;
  6005. return smalltalk.send(smalltalk.send(unescape("%5B"), "__comma", [smalltalk.send(smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJavascript", []);})]), "_join_", [unescape("%2C%20")])]), "__comma", [unescape("%5D")]);
  6006. return self;},
  6007. args: [],
  6008. source: unescape('asJavascript%0A%09%5E%27%5B%27%2C%20%28%28self%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJavascript%5D%29%20join%3A%20%27%2C%20%27%29%2C%20%20%27%5D%27'),
  6009. messageSends: [unescape("%2C"), "join:", "collect:", "asJavascript"],
  6010. referencedClasses: []
  6011. }),
  6012. smalltalk.Array);
  6013. smalltalk.addMethod(
  6014. unescape('_sort'),
  6015. smalltalk.method({
  6016. selector: unescape('sort'),
  6017. category: 'enumerating',
  6018. fn: function (){
  6019. var self=this;
  6020. return smalltalk.send(self, "_basicPerform_", ["sort"]);
  6021. return self;},
  6022. args: [],
  6023. source: unescape('sort%0A%20%20%20%20%5Eself%20basicPerform%3A%20%27sort%27'),
  6024. messageSends: ["basicPerform:"],
  6025. referencedClasses: []
  6026. }),
  6027. smalltalk.Array);
  6028. smalltalk.addMethod(
  6029. unescape('_sort_'),
  6030. smalltalk.method({
  6031. selector: unescape('sort%3A'),
  6032. category: 'enumerating',
  6033. fn: function (aBlock){
  6034. var self=this;
  6035. return self.sort(function(a, b) {
  6036. if(aBlock(a,b)) {return -1} else {return 1}
  6037. })
  6038. ;
  6039. return self;},
  6040. args: ["aBlock"],
  6041. source: unescape('sort%3A%20aBlock%0A%09%3C%0A%09%09return%20self.sort%28function%28a%2C%20b%29%20%7B%0A%09%09%09if%28aBlock%28a%2Cb%29%29%20%7Breturn%20-1%7D%20else%20%7Breturn%201%7D%0A%09%09%7D%29%0A%09%3E'),
  6042. messageSends: [],
  6043. referencedClasses: []
  6044. }),
  6045. smalltalk.Array);
  6046. smalltalk.addMethod(
  6047. unescape('_remove_'),
  6048. smalltalk.method({
  6049. selector: unescape('remove%3A'),
  6050. category: 'adding/removing',
  6051. fn: function (anObject){
  6052. var self=this;
  6053. for(var i=0;i<self.length;i++) {
  6054. if(self[i] == anObject) {
  6055. self.splice(i,1);
  6056. break;
  6057. }
  6058. }
  6059. ;
  6060. return self;},
  6061. args: ["anObject"],
  6062. source: unescape('remove%3A%20anObject%0A%09%3C%0A%09%09for%28var%20i%3D0%3Bi%3Cself.length%3Bi++%29%20%7B%0A%09%09%09if%28self%5Bi%5D%20%3D%3D%20anObject%29%20%7B%0A%09%09%09%09self.splice%28i%2C1%29%3B%0A%09%09%09%09break%3B%0A%09%09%09%7D%0A%09%09%7D%0A%09%3E'),
  6063. messageSends: [],
  6064. referencedClasses: []
  6065. }),
  6066. smalltalk.Array);
  6067. smalltalk.addMethod(
  6068. unescape('_sorted'),
  6069. smalltalk.method({
  6070. selector: unescape('sorted'),
  6071. category: 'enumerating',
  6072. fn: function (){
  6073. var self=this;
  6074. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort", []);
  6075. return self;},
  6076. args: [],
  6077. source: unescape('sorted%0A%09%5Eself%20copy%20sort'),
  6078. messageSends: ["sort", "copy"],
  6079. referencedClasses: []
  6080. }),
  6081. smalltalk.Array);
  6082. smalltalk.addMethod(
  6083. unescape('_sorted_'),
  6084. smalltalk.method({
  6085. selector: unescape('sorted%3A'),
  6086. category: 'enumerating',
  6087. fn: function (aBlock){
  6088. var self=this;
  6089. return smalltalk.send(smalltalk.send(self, "_copy", []), "_sort_", [aBlock]);
  6090. return self;},
  6091. args: ["aBlock"],
  6092. source: unescape('sorted%3A%20aBlock%0A%09%5Eself%20copy%20sort%3A%20aBlock'),
  6093. messageSends: ["sort:", "copy"],
  6094. referencedClasses: []
  6095. }),
  6096. smalltalk.Array);
  6097. smalltalk.addMethod(
  6098. unescape('_asJSONObject'),
  6099. smalltalk.method({
  6100. selector: unescape('asJSONObject'),
  6101. category: 'converting',
  6102. fn: function (){
  6103. var self=this;
  6104. return smalltalk.send(self, "_collect_", [(function(each){return smalltalk.send(each, "_asJSONObject", []);})]);
  6105. return self;},
  6106. args: [],
  6107. source: unescape('asJSONObject%0A%09%5Eself%20collect%3A%20%5B%3Aeach%20%7C%20each%20asJSONObject%5D'),
  6108. messageSends: ["collect:", "asJSONObject"],
  6109. referencedClasses: []
  6110. }),
  6111. smalltalk.Array);
  6112. smalltalk.addMethod(
  6113. unescape('_removeFrom_to_'),
  6114. smalltalk.method({
  6115. selector: unescape('removeFrom%3Ato%3A'),
  6116. category: 'adding/removing',
  6117. fn: function (aNumber, anotherNumber){
  6118. var self=this;
  6119. self.splice(aNumber - 1,anotherNumber - 1);
  6120. return self;},
  6121. args: ["aNumber", "anotherNumber"],
  6122. source: unescape('removeFrom%3A%20aNumber%20to%3A%20anotherNumber%0A%09%3Cself.splice%28aNumber%20-%201%2CanotherNumber%20-%201%29%3E'),
  6123. messageSends: [],
  6124. referencedClasses: []
  6125. }),
  6126. smalltalk.Array);
  6127. smalltalk.addMethod(
  6128. unescape('_printString'),
  6129. smalltalk.method({
  6130. selector: unescape('printString'),
  6131. category: 'enumerating',
  6132. fn: function (){
  6133. var self=this;
  6134. var str=nil;
  6135. str=smalltalk.send("", "_writeStream", []);
  6136. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.SequenceableCollection), "__comma", [unescape("%20%28")])]);
  6137. smalltalk.send(self, "_do_separatedBy_", [(function(each){return smalltalk.send(str, "_nextPutAll_", [smalltalk.send(each, "_printString", [])]);}), (function(){return smalltalk.send(str, "_nextPutAll_", [" "]);})]);
  6138. smalltalk.send(str, "_nextPutAll_", [unescape("%29")]);
  6139. return smalltalk.send(str, "_contents", []);
  6140. return self;},
  6141. args: [],
  6142. source: unescape('printString%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20%27%27%20writeStream.%0A%09str%20nextPutAll%3A%20super%20printString%2C%20%27%20%28%27.%0A%09self%20%0A%09%09do%3A%20%5B%3Aeach%20%7C%20str%20nextPutAll%3A%20each%20printString%5D%0A%09%09separatedBy%3A%20%5Bstr%20nextPutAll%3A%20%27%20%27%5D.%0A%09str%20nextPutAll%3A%20%27%29%27.%0A%09%5Estr%20contents'),
  6143. messageSends: ["writeStream", "nextPutAll:", unescape("%2C"), "printString", "do:separatedBy:", "contents"],
  6144. referencedClasses: []
  6145. }),
  6146. smalltalk.Array);
  6147. smalltalk.addMethod(
  6148. unescape('_reversed'),
  6149. smalltalk.method({
  6150. selector: unescape('reversed'),
  6151. category: 'converting',
  6152. fn: function (){
  6153. var self=this;
  6154. return self._copy().reverse();
  6155. return self;},
  6156. args: [],
  6157. source: unescape('reversed%0A%09%3Creturn%20self._copy%28%29.reverse%28%29%3E'),
  6158. messageSends: [],
  6159. referencedClasses: []
  6160. }),
  6161. smalltalk.Array);
  6162. smalltalk.addMethod(
  6163. unescape('__eq'),
  6164. smalltalk.method({
  6165. selector: unescape('%3D'),
  6166. category: 'comparing',
  6167. fn: function (aCollection){
  6168. var self=this;
  6169. try{((($receiver = smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aCollection, "_size", [])]);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6170. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return ((($receiver = smalltalk.send(smalltalk.send(aCollection, "_at_", [i]), "__eq", [each])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));})]);
  6171. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return true}})})();
  6172. return self;
  6173. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6174. args: ["aCollection"],
  6175. source: unescape('%3D%20aCollection%0A%09%28self%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09self%20size%20%3D%20aCollection%20size%5D%29%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%28aCollection%20at%3A%20i%29%20%3D%20each%20ifFalse%3A%20%5B%5Efalse%5D%5D.%0A%09%5Etrue'),
  6176. messageSends: ["ifFalse:", "and:", unescape("%3D"), "class", "size", "withIndexDo:", "at:"],
  6177. referencedClasses: []
  6178. }),
  6179. smalltalk.Array);
  6180. smalltalk.addClass('RegularExpression', smalltalk.Object, [], 'Kernel');
  6181. smalltalk.addMethod(
  6182. unescape('_compile_'),
  6183. smalltalk.method({
  6184. selector: unescape('compile%3A'),
  6185. category: 'evaluating',
  6186. fn: function (aString){
  6187. var self=this;
  6188. return self.compile(aString);
  6189. return self;},
  6190. args: ["aString"],
  6191. source: unescape('compile%3A%20aString%0A%09%3Creturn%20self.compile%28aString%29%3E'),
  6192. messageSends: [],
  6193. referencedClasses: []
  6194. }),
  6195. smalltalk.RegularExpression);
  6196. smalltalk.addMethod(
  6197. unescape('_exec_'),
  6198. smalltalk.method({
  6199. selector: unescape('exec%3A'),
  6200. category: 'evaluating',
  6201. fn: function (aString){
  6202. var self=this;
  6203. return self.exec(aString) || nil;
  6204. return self;},
  6205. args: ["aString"],
  6206. source: unescape('exec%3A%20aString%0A%09%3Creturn%20self.exec%28aString%29%20%7C%7C%20nil%3E'),
  6207. messageSends: [],
  6208. referencedClasses: []
  6209. }),
  6210. smalltalk.RegularExpression);
  6211. smalltalk.addMethod(
  6212. unescape('_test_'),
  6213. smalltalk.method({
  6214. selector: unescape('test%3A'),
  6215. category: 'evaluating',
  6216. fn: function (aString){
  6217. var self=this;
  6218. return self.test(aString);
  6219. return self;},
  6220. args: ["aString"],
  6221. source: unescape('test%3A%20aString%0A%09%3Creturn%20self.test%28aString%29%3E'),
  6222. messageSends: [],
  6223. referencedClasses: []
  6224. }),
  6225. smalltalk.RegularExpression);
  6226. smalltalk.addMethod(
  6227. unescape('_fromString_flag_'),
  6228. smalltalk.method({
  6229. selector: unescape('fromString%3Aflag%3A'),
  6230. category: 'instance creation',
  6231. fn: function (aString, anotherString){
  6232. var self=this;
  6233. return new RegExp(aString, anotherString);
  6234. return self;},
  6235. args: ["aString", "anotherString"],
  6236. source: unescape('fromString%3A%20aString%20flag%3A%20anotherString%0A%09%3Creturn%20new%20RegExp%28aString%2C%20anotherString%29%3E'),
  6237. messageSends: [],
  6238. referencedClasses: []
  6239. }),
  6240. smalltalk.RegularExpression.klass);
  6241. smalltalk.addMethod(
  6242. unescape('_fromString_'),
  6243. smalltalk.method({
  6244. selector: unescape('fromString%3A'),
  6245. category: 'instance creation',
  6246. fn: function (aString){
  6247. var self=this;
  6248. return smalltalk.send(self, "_fromString_flag_", [aString, ""]);
  6249. return self;},
  6250. args: ["aString"],
  6251. source: unescape('fromString%3A%20aString%0A%09%20%20%20%20%5Eself%20fromString%3A%20aString%20flag%3A%20%27%27'),
  6252. messageSends: ["fromString:flag:"],
  6253. referencedClasses: []
  6254. }),
  6255. smalltalk.RegularExpression.klass);
  6256. smalltalk.addClass('Error', smalltalk.Object, ['messageText'], 'Kernel');
  6257. smalltalk.addMethod(
  6258. unescape('_messageText'),
  6259. smalltalk.method({
  6260. selector: unescape('messageText'),
  6261. category: 'accessing',
  6262. fn: function (){
  6263. var self=this;
  6264. return self['@messageText'];
  6265. return self;},
  6266. args: [],
  6267. source: unescape('messageText%0A%09%5EmessageText'),
  6268. messageSends: [],
  6269. referencedClasses: []
  6270. }),
  6271. smalltalk.Error);
  6272. smalltalk.addMethod(
  6273. unescape('_messageText_'),
  6274. smalltalk.method({
  6275. selector: unescape('messageText%3A'),
  6276. category: 'accessing',
  6277. fn: function (aString){
  6278. var self=this;
  6279. self['@messageText']=aString;
  6280. return self;},
  6281. args: ["aString"],
  6282. source: unescape('messageText%3A%20aString%0A%09messageText%20%3A%3D%20aString'),
  6283. messageSends: [],
  6284. referencedClasses: []
  6285. }),
  6286. smalltalk.Error);
  6287. smalltalk.addMethod(
  6288. unescape('_signal'),
  6289. smalltalk.method({
  6290. selector: unescape('signal'),
  6291. category: 'signaling',
  6292. fn: function (){
  6293. var self=this;
  6294. self.context = smalltalk.getThisContext(); self.smalltalkError = true; throw(self);
  6295. return self;},
  6296. args: [],
  6297. source: unescape('signal%0A%09%3Cself.context%20%3D%20smalltalk.getThisContext%28%29%3B%20self.smalltalkError%20%3D%20true%3B%20throw%28self%29%3E'),
  6298. messageSends: [],
  6299. referencedClasses: []
  6300. }),
  6301. smalltalk.Error);
  6302. smalltalk.addMethod(
  6303. unescape('_context'),
  6304. smalltalk.method({
  6305. selector: unescape('context'),
  6306. category: 'accessing',
  6307. fn: function (){
  6308. var self=this;
  6309. return self.context;
  6310. return self;},
  6311. args: [],
  6312. source: unescape('context%0A%09%3Creturn%20self.context%3E'),
  6313. messageSends: [],
  6314. referencedClasses: []
  6315. }),
  6316. smalltalk.Error);
  6317. smalltalk.addMethod(
  6318. unescape('_signal_'),
  6319. smalltalk.method({
  6320. selector: unescape('signal%3A'),
  6321. category: 'instance creation',
  6322. fn: function (aString){
  6323. var self=this;
  6324. return (function($rec){smalltalk.send($rec, "_messageText_", [aString]);return smalltalk.send($rec, "_signal", []);})(smalltalk.send(self, "_new", []));
  6325. return self;},
  6326. args: ["aString"],
  6327. source: unescape('signal%3A%20aString%0A%09%20%20%20%20%5Eself%20new%0A%09%09messageText%3A%20aString%3B%0A%09%09signal'),
  6328. messageSends: ["messageText:", "signal", "new"],
  6329. referencedClasses: []
  6330. }),
  6331. smalltalk.Error.klass);
  6332. smalltalk.addClass('MethodContext', smalltalk.Object, [], 'Kernel');
  6333. smalltalk.addMethod(
  6334. unescape('_receiver'),
  6335. smalltalk.method({
  6336. selector: unescape('receiver'),
  6337. category: 'accessing',
  6338. fn: function (){
  6339. var self=this;
  6340. return self.receiver;
  6341. return self;},
  6342. args: [],
  6343. source: unescape('receiver%0A%09%3Creturn%20self.receiver%3E'),
  6344. messageSends: [],
  6345. referencedClasses: []
  6346. }),
  6347. smalltalk.MethodContext);
  6348. smalltalk.addMethod(
  6349. unescape('_selector'),
  6350. smalltalk.method({
  6351. selector: unescape('selector'),
  6352. category: 'accessing',
  6353. fn: function (){
  6354. var self=this;
  6355. return smalltalk.convertSelector(self.selector);
  6356. return self;},
  6357. args: [],
  6358. source: unescape('selector%0A%09%3Creturn%20smalltalk.convertSelector%28self.selector%29%3E'),
  6359. messageSends: [],
  6360. referencedClasses: []
  6361. }),
  6362. smalltalk.MethodContext);
  6363. smalltalk.addMethod(
  6364. unescape('_home'),
  6365. smalltalk.method({
  6366. selector: unescape('home'),
  6367. category: 'accessing',
  6368. fn: function (){
  6369. var self=this;
  6370. return self.homeContext;
  6371. return self;},
  6372. args: [],
  6373. source: unescape('home%0A%09%3Creturn%20self.homeContext%3E'),
  6374. messageSends: [],
  6375. referencedClasses: []
  6376. }),
  6377. smalltalk.MethodContext);
  6378. smalltalk.addMethod(
  6379. unescape('_temps'),
  6380. smalltalk.method({
  6381. selector: unescape('temps'),
  6382. category: 'accessing',
  6383. fn: function (){
  6384. var self=this;
  6385. return self.temps;
  6386. return self;},
  6387. args: [],
  6388. source: unescape('temps%0A%09%3Creturn%20self.temps%3E'),
  6389. messageSends: [],
  6390. referencedClasses: []
  6391. }),
  6392. smalltalk.MethodContext);
  6393. smalltalk.addMethod(
  6394. unescape('_printString'),
  6395. smalltalk.method({
  6396. selector: unescape('printString'),
  6397. category: 'accessing',
  6398. fn: function (){
  6399. var self=this;
  6400. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_printString", [], smalltalk.Object), "__comma", [unescape("%28")]), "__comma", [smalltalk.send(self, "_asString", [])]), "__comma", [unescape("%29")]);
  6401. return self;},
  6402. args: [],
  6403. source: unescape('printString%0A%09%5Esuper%20printString%2C%20%27%28%27%2C%20self%20asString%2C%20%27%29%27'),
  6404. messageSends: [unescape("%2C"), "printString", "asString"],
  6405. referencedClasses: []
  6406. }),
  6407. smalltalk.MethodContext);
  6408. smalltalk.addMethod(
  6409. unescape('_asString'),
  6410. smalltalk.method({
  6411. selector: unescape('asString'),
  6412. category: 'accessing',
  6413. fn: function (){
  6414. var self=this;
  6415. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_class", []), "_printString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(self, "_selector", [])]);
  6416. return self;},
  6417. args: [],
  6418. source: unescape('asString%0A%09%5Eself%20receiver%20class%20printString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector'),
  6419. messageSends: [unescape("%2C"), "printString", "class", "receiver", "selector"],
  6420. referencedClasses: []
  6421. }),
  6422. smalltalk.MethodContext);
  6423. smalltalk.addClass('Association', smalltalk.Object, ['key', 'value'], 'Kernel');
  6424. smalltalk.addMethod(
  6425. unescape('__eq'),
  6426. smalltalk.method({
  6427. selector: unescape('%3D'),
  6428. category: 'comparing',
  6429. fn: function (anAssociation){
  6430. var self=this;
  6431. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(anAssociation, "_class", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_key", []), "__eq", [smalltalk.send(anAssociation, "_key", [])]), "_and_", [(function(){return smalltalk.send(smalltalk.send(self, "_value", []), "__eq", [smalltalk.send(anAssociation, "_value", [])]);})]);})]);
  6432. return self;},
  6433. args: ["anAssociation"],
  6434. source: unescape('%3D%20anAssociation%0A%09%5Eself%20class%20%3D%20anAssociation%20class%20and%3A%20%5B%0A%09%20%20%20%20self%20key%20%3D%20anAssociation%20key%20and%3A%20%5B%0A%09%09self%20value%20%3D%20anAssociation%20value%5D%5D'),
  6435. messageSends: ["and:", unescape("%3D"), "class", "key", "value"],
  6436. referencedClasses: []
  6437. }),
  6438. smalltalk.Association);
  6439. smalltalk.addMethod(
  6440. unescape('_key_'),
  6441. smalltalk.method({
  6442. selector: unescape('key%3A'),
  6443. category: 'accessing',
  6444. fn: function (aKey){
  6445. var self=this;
  6446. self['@key']=aKey;
  6447. return self;},
  6448. args: ["aKey"],
  6449. source: unescape('key%3A%20aKey%0A%09key%20%3A%3D%20aKey'),
  6450. messageSends: [],
  6451. referencedClasses: []
  6452. }),
  6453. smalltalk.Association);
  6454. smalltalk.addMethod(
  6455. unescape('_key'),
  6456. smalltalk.method({
  6457. selector: unescape('key'),
  6458. category: 'accessing',
  6459. fn: function (){
  6460. var self=this;
  6461. return self['@key'];
  6462. return self;},
  6463. args: [],
  6464. source: unescape('key%0A%09%5Ekey'),
  6465. messageSends: [],
  6466. referencedClasses: []
  6467. }),
  6468. smalltalk.Association);
  6469. smalltalk.addMethod(
  6470. unescape('_value_'),
  6471. smalltalk.method({
  6472. selector: unescape('value%3A'),
  6473. category: 'accessing',
  6474. fn: function (aValue){
  6475. var self=this;
  6476. self['@value']=aValue;
  6477. return self;},
  6478. args: ["aValue"],
  6479. source: unescape('value%3A%20aValue%0A%09value%20%3A%3D%20aValue'),
  6480. messageSends: [],
  6481. referencedClasses: []
  6482. }),
  6483. smalltalk.Association);
  6484. smalltalk.addMethod(
  6485. unescape('_value'),
  6486. smalltalk.method({
  6487. selector: unescape('value'),
  6488. category: 'accessing',
  6489. fn: function (){
  6490. var self=this;
  6491. return self['@value'];
  6492. return self;},
  6493. args: [],
  6494. source: unescape('value%0A%09%5Evalue'),
  6495. messageSends: [],
  6496. referencedClasses: []
  6497. }),
  6498. smalltalk.Association);
  6499. smalltalk.addMethod(
  6500. unescape('_key_value_'),
  6501. smalltalk.method({
  6502. selector: unescape('key%3Avalue%3A'),
  6503. category: 'instance creation',
  6504. fn: function (aKey, aValue){
  6505. var self=this;
  6506. return (function($rec){smalltalk.send($rec, "_key_", [aKey]);smalltalk.send($rec, "_value_", [aValue]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  6507. return self;},
  6508. args: ["aKey", "aValue"],
  6509. source: unescape('key%3A%20aKey%20value%3A%20aValue%0A%09%20%20%20%20%5Eself%20new%0A%09%09key%3A%20aKey%3B%0A%09%09value%3A%20aValue%3B%0A%09%09yourself'),
  6510. messageSends: ["key:", "value:", "yourself", "new"],
  6511. referencedClasses: []
  6512. }),
  6513. smalltalk.Association.klass);
  6514. smalltalk.addClass('Dictionary', smalltalk.Collection, ['keys'], 'Kernel');
  6515. smalltalk.addMethod(
  6516. unescape('__eq'),
  6517. smalltalk.method({
  6518. selector: unescape('%3D'),
  6519. category: 'comparing',
  6520. fn: function (aDictionary){
  6521. var self=this;
  6522. try{((($receiver = smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aDictionary, "_class", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6523. ((($receiver = smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [smalltalk.send(aDictionary, "_size", [])])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return false}})})();})]));
  6524. (function(){throw({name: 'stReturn', selector: '__eq', fn: function(){return smalltalk.send(smalltalk.send(self, "_associations", []), "__eq", [smalltalk.send(aDictionary, "_associations", [])])}})})();
  6525. return self;
  6526. } catch(e) {if(e.name === 'stReturn' && e.selector === '__eq'){return e.fn()} throw(e)}},
  6527. args: ["aDictionary"],
  6528. source: unescape('%3D%20aDictionary%0A%09self%20class%20%3D%20aDictionary%20class%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09self%20size%20%3D%20aDictionary%20size%20ifFalse%3A%20%5B%5Efalse%5D.%0A%09%5Eself%20associations%20%3D%20aDictionary%20associations'),
  6529. messageSends: ["ifFalse:", unescape("%3D"), "class", "size", "associations"],
  6530. referencedClasses: []
  6531. }),
  6532. smalltalk.Dictionary);
  6533. smalltalk.addMethod(
  6534. unescape('_shallowCopy'),
  6535. smalltalk.method({
  6536. selector: unescape('shallowCopy'),
  6537. category: 'copying',
  6538. fn: function (){
  6539. var self=this;
  6540. var copy=nil;
  6541. copy=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6542. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(copy, "_at_put_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6543. return copy;
  6544. return self;},
  6545. args: [],
  6546. source: unescape('shallowCopy%0A%09%7C%20copy%20%7C%0A%09copy%20%3A%3D%20self%20class%20new.%0A%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20copy%20at%3A%20each%20key%20%20put%3A%20each%20value%5D.%0A%09%5Ecopy'),
  6547. messageSends: ["new", "class", "associationsDo:", "at:put:", "key", "value"],
  6548. referencedClasses: []
  6549. }),
  6550. smalltalk.Dictionary);
  6551. smalltalk.addMethod(
  6552. unescape('_initialize'),
  6553. smalltalk.method({
  6554. selector: unescape('initialize'),
  6555. category: 'initialization',
  6556. fn: function (){
  6557. var self=this;
  6558. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  6559. self['@keys']=[];
  6560. return self;},
  6561. args: [],
  6562. source: unescape('initialize%0A%20%20%20%20%09super%20initialize.%0A%20%20%20%20%09keys%20%3A%3D%20%23%28%29'),
  6563. messageSends: ["initialize"],
  6564. referencedClasses: []
  6565. }),
  6566. smalltalk.Dictionary);
  6567. smalltalk.addMethod(
  6568. unescape('_size'),
  6569. smalltalk.method({
  6570. selector: unescape('size'),
  6571. category: 'accessing',
  6572. fn: function (){
  6573. var self=this;
  6574. return smalltalk.send(self['@keys'], "_size", []);
  6575. return self;},
  6576. args: [],
  6577. source: unescape('size%0A%09%5Ekeys%20size'),
  6578. messageSends: ["size"],
  6579. referencedClasses: []
  6580. }),
  6581. smalltalk.Dictionary);
  6582. smalltalk.addMethod(
  6583. unescape('_associations'),
  6584. smalltalk.method({
  6585. selector: unescape('associations'),
  6586. category: 'accessing',
  6587. fn: function (){
  6588. var self=this;
  6589. var associations=nil;
  6590. associations=[];
  6591. smalltalk.send(self['@keys'], "_do_", [(function(each){return smalltalk.send(associations, "_add_", [smalltalk.send((smalltalk.Association || Association), "_key_value_", [each, smalltalk.send(self, "_at_", [each])])]);})]);
  6592. return associations;
  6593. return self;},
  6594. args: [],
  6595. source: unescape('associations%0A%09%7C%20associations%20%7C%0A%09associations%20%3A%3D%20%23%28%29.%0A%09keys%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20associations%20add%3A%20%28Association%20key%3A%20each%20value%3A%20%28self%20at%3A%20each%29%29%5D.%0A%09%5Eassociations'),
  6596. messageSends: ["do:", "add:", "key:value:", "at:"],
  6597. referencedClasses: [smalltalk.Association]
  6598. }),
  6599. smalltalk.Dictionary);
  6600. smalltalk.addMethod(
  6601. unescape('_keys'),
  6602. smalltalk.method({
  6603. selector: unescape('keys'),
  6604. category: 'accessing',
  6605. fn: function (){
  6606. var self=this;
  6607. return smalltalk.send(self['@keys'], "_copy", []);
  6608. return self;},
  6609. args: [],
  6610. source: unescape('keys%0A%09%5Ekeys%20copy'),
  6611. messageSends: ["copy"],
  6612. referencedClasses: []
  6613. }),
  6614. smalltalk.Dictionary);
  6615. smalltalk.addMethod(
  6616. unescape('_values'),
  6617. smalltalk.method({
  6618. selector: unescape('values'),
  6619. category: 'accessing',
  6620. fn: function (){
  6621. var self=this;
  6622. return smalltalk.send(self['@keys'], "_collect_", [(function(each){return smalltalk.send(self, "_at_", [each]);})]);
  6623. return self;},
  6624. args: [],
  6625. source: unescape('values%0A%20%20%20%20%09%5Ekeys%20collect%3A%20%5B%3Aeach%20%7C%20self%20at%3A%20each%5D'),
  6626. messageSends: ["collect:", "at:"],
  6627. referencedClasses: []
  6628. }),
  6629. smalltalk.Dictionary);
  6630. smalltalk.addMethod(
  6631. unescape('_at_put_'),
  6632. smalltalk.method({
  6633. selector: unescape('at%3Aput%3A'),
  6634. category: 'accessing',
  6635. fn: function (aKey, aValue){
  6636. var self=this;
  6637. ((($receiver = smalltalk.send(self['@keys'], "_includes_", [aKey])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self['@keys'], "_add_", [aKey]);})]));
  6638. return smalltalk.send(self, "_basicAt_put_", [aKey, aValue]);
  6639. return self;},
  6640. args: ["aKey", "aValue"],
  6641. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%09%28keys%20includes%3A%20aKey%29%20ifFalse%3A%20%5Bkeys%20add%3A%20aKey%5D.%0A%09%5Eself%20basicAt%3A%20aKey%20put%3A%20aValue'),
  6642. messageSends: ["ifFalse:", "includes:", "add:", "basicAt:put:"],
  6643. referencedClasses: []
  6644. }),
  6645. smalltalk.Dictionary);
  6646. smalltalk.addMethod(
  6647. unescape('_at_ifAbsent_'),
  6648. smalltalk.method({
  6649. selector: unescape('at%3AifAbsent%3A'),
  6650. category: 'accessing',
  6651. fn: function (aKey, aBlock){
  6652. var self=this;
  6653. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_keys", []), "_includes_", [aKey]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_basicAt_", [aKey]);}), aBlock]);
  6654. return self;},
  6655. args: ["aKey", "aBlock"],
  6656. source: unescape('at%3A%20aKey%20ifAbsent%3A%20aBlock%0A%09%5E%28self%20keys%20includes%3A%20aKey%29%0A%09%09ifTrue%3A%20%5Bself%20basicAt%3A%20aKey%5D%0A%09%09ifFalse%3A%20aBlock'),
  6657. messageSends: ["ifTrue:ifFalse:", "includes:", "keys", "basicAt:"],
  6658. referencedClasses: []
  6659. }),
  6660. smalltalk.Dictionary);
  6661. smalltalk.addMethod(
  6662. unescape('_at_ifAbsentPut_'),
  6663. smalltalk.method({
  6664. selector: unescape('at%3AifAbsentPut%3A'),
  6665. category: 'accessing',
  6666. fn: function (aKey, aBlock){
  6667. var self=this;
  6668. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_at_put_", [aKey, smalltalk.send(aBlock, "_value", [])]);})]);
  6669. return self;},
  6670. args: ["aKey", "aBlock"],
  6671. source: unescape('at%3A%20aKey%20ifAbsentPut%3A%20aBlock%0A%20%20%20%20%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5B%0A%20%20%20%20%09%20%20%20%20self%20at%3A%20aKey%20put%3A%20aBlock%20value%5D'),
  6672. messageSends: ["at:ifAbsent:", "at:put:", "value"],
  6673. referencedClasses: []
  6674. }),
  6675. smalltalk.Dictionary);
  6676. smalltalk.addMethod(
  6677. unescape('_at_ifPresent_'),
  6678. smalltalk.method({
  6679. selector: unescape('at%3AifPresent%3A'),
  6680. category: 'accessing',
  6681. fn: function (aKey, aBlock){
  6682. var self=this;
  6683. return (($receiver = smalltalk.send(self, "_basicAt_", [aKey])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})() : nil;
  6684. return self;},
  6685. args: ["aKey", "aBlock"],
  6686. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  6687. messageSends: ["ifNotNil:", "basicAt:", "value:", "at:"],
  6688. referencedClasses: []
  6689. }),
  6690. smalltalk.Dictionary);
  6691. smalltalk.addMethod(
  6692. unescape('_at_ifPresent_ifAbsent_'),
  6693. smalltalk.method({
  6694. selector: unescape('at%3AifPresent%3AifAbsent%3A'),
  6695. category: 'accessing',
  6696. fn: function (aKey, aBlock, anotherBlock){
  6697. var self=this;
  6698. return smalltalk.send(smalltalk.send(self, "_basicAt_", [aKey]), "_ifNil_ifNotNil_", [anotherBlock, (function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_at_", [aKey])]);})]);
  6699. return self;},
  6700. args: ["aKey", "aBlock", "anotherBlock"],
  6701. source: unescape('at%3A%20aKey%20ifPresent%3A%20aBlock%20ifAbsent%3A%20anotherBlock%0A%09%5E%28self%20basicAt%3A%20aKey%29%0A%09%20%20%20%20ifNil%3A%20anotherBlock%0A%09%20%20%20%20ifNotNil%3A%20%5BaBlock%20value%3A%20%28self%20at%3A%20aKey%29%5D'),
  6702. messageSends: ["ifNil:ifNotNil:", "basicAt:", "value:", "at:"],
  6703. referencedClasses: []
  6704. }),
  6705. smalltalk.Dictionary);
  6706. smalltalk.addMethod(
  6707. unescape('_add_'),
  6708. smalltalk.method({
  6709. selector: unescape('add%3A'),
  6710. category: 'adding/removing',
  6711. fn: function (anAssociation){
  6712. var self=this;
  6713. smalltalk.send(self, "_at_put_", [smalltalk.send(anAssociation, "_key", []), smalltalk.send(anAssociation, "_value", [])]);
  6714. return self;},
  6715. args: ["anAssociation"],
  6716. source: unescape('add%3A%20anAssociation%0A%20%20%20%20%09self%20at%3A%20anAssociation%20key%20put%3A%20anAssociation%20value'),
  6717. messageSends: ["at:put:", "key", "value"],
  6718. referencedClasses: []
  6719. }),
  6720. smalltalk.Dictionary);
  6721. smalltalk.addMethod(
  6722. unescape('_addAll_'),
  6723. smalltalk.method({
  6724. selector: unescape('addAll%3A'),
  6725. category: 'adding/removing',
  6726. fn: function (aDictionary){
  6727. var self=this;
  6728. smalltalk.send(self, "_addAll_", [smalltalk.send(aDictionary, "_associations", [])], smalltalk.Collection);
  6729. return aDictionary;
  6730. return self;},
  6731. args: ["aDictionary"],
  6732. source: unescape('addAll%3A%20aDictionary%0A%20%20%20%20%09super%20addAll%3A%20aDictionary%20associations.%0A%20%20%20%20%09%5EaDictionary'),
  6733. messageSends: ["addAll:", "associations"],
  6734. referencedClasses: []
  6735. }),
  6736. smalltalk.Dictionary);
  6737. smalltalk.addMethod(
  6738. unescape('__comma'),
  6739. smalltalk.method({
  6740. selector: unescape('%2C'),
  6741. category: 'copying',
  6742. fn: function (aCollection){
  6743. var self=this;
  6744. smalltalk.send(self, "_shouldNotImplement", []);
  6745. return self;},
  6746. args: ["aCollection"],
  6747. source: unescape('%2C%20aCollection%0A%09self%20shouldNotImplement'),
  6748. messageSends: ["shouldNotImplement"],
  6749. referencedClasses: []
  6750. }),
  6751. smalltalk.Dictionary);
  6752. smalltalk.addMethod(
  6753. unescape('_copyFrom_to_'),
  6754. smalltalk.method({
  6755. selector: unescape('copyFrom%3Ato%3A'),
  6756. category: 'copying',
  6757. fn: function (anIndex, anotherIndex){
  6758. var self=this;
  6759. smalltalk.send(self, "_shouldNotImplement", []);
  6760. return self;},
  6761. args: ["anIndex", "anotherIndex"],
  6762. source: unescape('copyFrom%3A%20anIndex%20to%3A%20anotherIndex%0A%09self%20shouldNotImplement'),
  6763. messageSends: ["shouldNotImplement"],
  6764. referencedClasses: []
  6765. }),
  6766. smalltalk.Dictionary);
  6767. smalltalk.addMethod(
  6768. unescape('_associationsDo_'),
  6769. smalltalk.method({
  6770. selector: unescape('associationsDo%3A'),
  6771. category: 'enumerating',
  6772. fn: function (aBlock){
  6773. var self=this;
  6774. smalltalk.send(smalltalk.send(self, "_associations", []), "_do_", [aBlock]);
  6775. return self;},
  6776. args: ["aBlock"],
  6777. source: unescape('associationsDo%3A%20aBlock%0A%20%20%20%20%09self%20associations%20do%3A%20aBlock'),
  6778. messageSends: ["do:", "associations"],
  6779. referencedClasses: []
  6780. }),
  6781. smalltalk.Dictionary);
  6782. smalltalk.addMethod(
  6783. unescape('_keysAndValuesDo_'),
  6784. smalltalk.method({
  6785. selector: unescape('keysAndValuesDo%3A'),
  6786. category: 'enumerating',
  6787. fn: function (aBlock){
  6788. var self=this;
  6789. smalltalk.send(self, "_associationsDo_", [(function(each){return smalltalk.send(aBlock, "_value_value_", [smalltalk.send(each, "_key", []), smalltalk.send(each, "_value", [])]);})]);
  6790. return self;},
  6791. args: ["aBlock"],
  6792. source: unescape('keysAndValuesDo%3A%20aBlock%0A%20%20%20%20%09self%20associationsDo%3A%20%5B%3Aeach%20%7C%0A%20%20%20%20%09%20%20%20%20aBlock%20value%3A%20each%20key%20value%3A%20each%20value%5D'),
  6793. messageSends: ["associationsDo:", "value:value:", "key", "value"],
  6794. referencedClasses: []
  6795. }),
  6796. smalltalk.Dictionary);
  6797. smalltalk.addMethod(
  6798. unescape('_do_'),
  6799. smalltalk.method({
  6800. selector: unescape('do%3A'),
  6801. category: 'enumerating',
  6802. fn: function (aBlock){
  6803. var self=this;
  6804. smalltalk.send(smalltalk.send(self, "_values", []), "_do_", [aBlock]);
  6805. return self;},
  6806. args: ["aBlock"],
  6807. source: unescape('do%3A%20aBlock%0A%20%20%20%20%09self%20values%20do%3A%20aBlock'),
  6808. messageSends: ["do:", "values"],
  6809. referencedClasses: []
  6810. }),
  6811. smalltalk.Dictionary);
  6812. smalltalk.addMethod(
  6813. unescape('_select_'),
  6814. smalltalk.method({
  6815. selector: unescape('select%3A'),
  6816. category: 'enumerating',
  6817. fn: function (aBlock){
  6818. var self=this;
  6819. var newDict=nil;
  6820. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6821. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(aBlock, "_value_", [value])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(newDict, "_at_put_", [key, value]);})]));})]);
  6822. return newDict;
  6823. return self;},
  6824. args: ["aBlock"],
  6825. source: unescape('select%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20%28aBlock%20value%3A%20value%29%20ifTrue%3A%20%5BnewDict%20at%3A%20key%20put%3A%20value%5D%5D.%0A%20%20%20%20%09%5EnewDict'),
  6826. messageSends: ["new", "class", "keysAndValuesDo:", "ifTrue:", "value:", "at:put:"],
  6827. referencedClasses: []
  6828. }),
  6829. smalltalk.Dictionary);
  6830. smalltalk.addMethod(
  6831. unescape('_collect_'),
  6832. smalltalk.method({
  6833. selector: unescape('collect%3A'),
  6834. category: 'enumerating',
  6835. fn: function (aBlock){
  6836. var self=this;
  6837. var newDict=nil;
  6838. newDict=smalltalk.send(smalltalk.send(self, "_class", []), "_new", []);
  6839. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(newDict, "_at_put_", [key, smalltalk.send(aBlock, "_value_", [value])]);})]);
  6840. return newDict;
  6841. return self;},
  6842. args: ["aBlock"],
  6843. source: unescape('collect%3A%20aBlock%0A%20%20%20%20%09%7C%20newDict%20%7C%0A%20%20%20%20%09newDict%20%3A%3D%20self%20class%20new.%0A%20%20%20%20%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%20%20%20%20%09%20%20%20%20newDict%20at%3A%20key%20put%3A%20%28aBlock%20value%3A%20value%29%5D.%0A%20%20%20%20%09%5EnewDict'),
  6844. messageSends: ["new", "class", "keysAndValuesDo:", "at:put:", "value:"],
  6845. referencedClasses: []
  6846. }),
  6847. smalltalk.Dictionary);
  6848. smalltalk.addMethod(
  6849. unescape('_detect_ifNone_'),
  6850. smalltalk.method({
  6851. selector: unescape('detect%3AifNone%3A'),
  6852. category: 'enumerating',
  6853. fn: function (aBlock, anotherBlock){
  6854. var self=this;
  6855. return smalltalk.send(smalltalk.send(self, "_values", []), "_detect_ifNone_", [aBlock, anotherBlock]);
  6856. return self;},
  6857. args: ["aBlock", "anotherBlock"],
  6858. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eself%20values%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  6859. messageSends: ["detect:ifNone:", "values"],
  6860. referencedClasses: []
  6861. }),
  6862. smalltalk.Dictionary);
  6863. smalltalk.addMethod(
  6864. unescape('_includes_'),
  6865. smalltalk.method({
  6866. selector: unescape('includes%3A'),
  6867. category: 'enumerating',
  6868. fn: function (anObject){
  6869. var self=this;
  6870. return smalltalk.send(smalltalk.send(self, "_values", []), "_includes_", [anObject]);
  6871. return self;},
  6872. args: ["anObject"],
  6873. source: unescape('includes%3A%20anObject%0A%09%5Eself%20values%20includes%3A%20anObject'),
  6874. messageSends: ["includes:", "values"],
  6875. referencedClasses: []
  6876. }),
  6877. smalltalk.Dictionary);
  6878. smalltalk.addMethod(
  6879. unescape('_remove_'),
  6880. smalltalk.method({
  6881. selector: unescape('remove%3A'),
  6882. category: 'adding/removing',
  6883. fn: function (aKey){
  6884. var self=this;
  6885. smalltalk.send(self, "_removeKey_", [aKey]);
  6886. return self;},
  6887. args: ["aKey"],
  6888. source: unescape('remove%3A%20aKey%0A%20%20%20%20self%20removeKey%3A%20aKey'),
  6889. messageSends: ["removeKey:"],
  6890. referencedClasses: []
  6891. }),
  6892. smalltalk.Dictionary);
  6893. smalltalk.addMethod(
  6894. unescape('_removeKey_'),
  6895. smalltalk.method({
  6896. selector: unescape('removeKey%3A'),
  6897. category: 'adding/removing',
  6898. fn: function (aKey){
  6899. var self=this;
  6900. smalltalk.send(self['@keys'], "_remove_", [aKey]);
  6901. return self;},
  6902. args: ["aKey"],
  6903. source: unescape('removeKey%3A%20aKey%0A%20%20%20%20keys%20remove%3A%20aKey'),
  6904. messageSends: ["remove:"],
  6905. referencedClasses: []
  6906. }),
  6907. smalltalk.Dictionary);
  6908. smalltalk.addMethod(
  6909. unescape('_at_'),
  6910. smalltalk.method({
  6911. selector: unescape('at%3A'),
  6912. category: 'accessing',
  6913. fn: function (aKey){
  6914. var self=this;
  6915. return smalltalk.send(self, "_at_ifAbsent_", [aKey, (function(){return smalltalk.send(self, "_errorNotFound", []);})]);
  6916. return self;},
  6917. args: ["aKey"],
  6918. source: unescape('at%3A%20aKey%0A%09%5Eself%20at%3A%20aKey%20ifAbsent%3A%20%5Bself%20errorNotFound%5D'),
  6919. messageSends: ["at:ifAbsent:", "errorNotFound"],
  6920. referencedClasses: []
  6921. }),
  6922. smalltalk.Dictionary);
  6923. smalltalk.addMethod(
  6924. unescape('_asJSONObject'),
  6925. smalltalk.method({
  6926. selector: unescape('asJSONObject'),
  6927. category: 'converting',
  6928. fn: function (){
  6929. var self=this;
  6930. var object=nil;
  6931. object=smalltalk.send((smalltalk.Object || Object), "_new", []);
  6932. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(object, "_basicAt_put_", [key, smalltalk.send(value, "_asJSONObject", [])]);})]);
  6933. return object;
  6934. return self;},
  6935. args: [],
  6936. source: unescape('asJSONObject%0A%09%7C%20object%20%7C%0A%09object%20%3A%3D%20Object%20new.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09object%20basicAt%3A%20key%20put%3A%20value%20asJSONObject%5D.%0A%09%5Eobject'),
  6937. messageSends: ["new", "keysAndValuesDo:", "basicAt:put:", "asJSONObject"],
  6938. referencedClasses: [smalltalk.Object]
  6939. }),
  6940. smalltalk.Dictionary);
  6941. smalltalk.addMethod(
  6942. unescape('_printString'),
  6943. smalltalk.method({
  6944. selector: unescape('printString'),
  6945. category: 'printing',
  6946. fn: function (){
  6947. var self=this;
  6948. return smalltalk.send((smalltalk.String || String), "_streamContents_", [(function(aStream){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self, "_printString", [], smalltalk.Collection)]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%28")]);})(aStream);smalltalk.send(smalltalk.send(self, "_associations", []), "_do_separatedBy_", [(function(anAssociation){return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_key", []), "_printString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20-%3E%20")]);return smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(anAssociation, "_value", []), "_printString", [])]);})(aStream);}), (function(){return smalltalk.send(aStream, "_nextPutAll_", [unescape("%20%2C%20")]);})]);return smalltalk.send(aStream, "_nextPutAll_", [unescape("%29")]);})]);
  6949. return self;},
  6950. args: [],
  6951. source: unescape('printString%0A%09%5E%20String%20streamContents%3A%20%5B%3AaStream%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20super%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09nextPutAll%3A%20%27%28%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09self%20associations%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09do%3A%20%5B%3AanAssociation%7C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09aStream%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20key%20printString%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20%27%20-%3E%20%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09nextPutAll%3A%20anAssociation%20value%20printString%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09%09separatedBy%3A%20%5BaStream%20nextPutAll%3A%20%27%20%2C%20%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09aStream%20nextPutAll%3A%20%27%29%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D'),
  6952. messageSends: ["streamContents:", "nextPutAll:", "printString", "do:separatedBy:", "associations", "key", "value"],
  6953. referencedClasses: [smalltalk.String]
  6954. }),
  6955. smalltalk.Dictionary);
  6956. smalltalk.addMethod(
  6957. unescape('_fromPairs_'),
  6958. smalltalk.method({
  6959. selector: unescape('fromPairs%3A'),
  6960. category: 'instance creation',
  6961. fn: function (aCollection){
  6962. var self=this;
  6963. var dict=nil;
  6964. dict=smalltalk.send(self, "_new", []);
  6965. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(dict, "_add_", [each]);})]);
  6966. return dict;
  6967. return self;},
  6968. args: ["aCollection"],
  6969. source: unescape('fromPairs%3A%20aCollection%0A%09%7C%20dict%20%7C%0A%09dict%20%3A%3D%20self%20new.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20dict%20add%3A%20each%5D.%0A%09%5Edict'),
  6970. messageSends: ["new", "do:", "add:"],
  6971. referencedClasses: []
  6972. }),
  6973. smalltalk.Dictionary.klass);
  6974. smalltalk.addClass('ClassBuilder', smalltalk.Object, [], 'Kernel');
  6975. smalltalk.addMethod(
  6976. unescape('_superclass_subclass_'),
  6977. smalltalk.method({
  6978. selector: unescape('superclass%3Asubclass%3A'),
  6979. category: 'class creation',
  6980. fn: function (aClass, aString){
  6981. var self=this;
  6982. return smalltalk.send(self, "_superclass_subclass_instanceVariableNames_package_", [aClass, aString, "", nil]);
  6983. return self;},
  6984. args: ["aClass", "aString"],
  6985. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%0A%09%5Eself%20superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20%27%27%20package%3A%20nil'),
  6986. messageSends: ["superclass:subclass:instanceVariableNames:package:"],
  6987. referencedClasses: []
  6988. }),
  6989. smalltalk.ClassBuilder);
  6990. smalltalk.addMethod(
  6991. unescape('_class_instanceVariableNames_'),
  6992. smalltalk.method({
  6993. selector: unescape('class%3AinstanceVariableNames%3A'),
  6994. category: 'class creation',
  6995. fn: function (aClass, aString){
  6996. var self=this;
  6997. ((($receiver = smalltalk.send(aClass, "_isMetaclass", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_error_", [smalltalk.send(smalltalk.send(aClass, "_name", []), "__comma", [" is not a metaclass"])]);})]));
  6998. smalltalk.send(aClass, "_basicAt_put_", ["iVarNames", smalltalk.send(self, "_instanceVariableNamesFor_", [aString])]);
  6999. smalltalk.send(self, "_setupClass_", [aClass]);
  7000. return self;},
  7001. args: ["aClass", "aString"],
  7002. source: unescape('class%3A%20aClass%20instanceVariableNames%3A%20aString%0A%09aClass%20isMetaclass%20ifFalse%3A%20%5Bself%20error%3A%20aClass%20name%2C%20%27%20is%20not%20a%20metaclass%27%5D.%0A%09aClass%20basicAt%3A%20%27iVarNames%27%20put%3A%20%28self%20instanceVariableNamesFor%3A%20aString%29.%0A%09self%20setupClass%3A%20aClass'),
  7003. messageSends: ["ifFalse:", "isMetaclass", "error:", unescape("%2C"), "name", "basicAt:put:", "instanceVariableNamesFor:", "setupClass:"],
  7004. referencedClasses: []
  7005. }),
  7006. smalltalk.ClassBuilder);
  7007. smalltalk.addMethod(
  7008. unescape('_instanceVariableNamesFor_'),
  7009. smalltalk.method({
  7010. selector: unescape('instanceVariableNamesFor%3A'),
  7011. category: 'private',
  7012. fn: function (aString){
  7013. var self=this;
  7014. return smalltalk.send(smalltalk.send(aString, "_tokenize_", [" "]), "_reject_", [(function(each){return smalltalk.send(each, "_isEmpty", []);})]);
  7015. return self;},
  7016. args: ["aString"],
  7017. source: unescape('instanceVariableNamesFor%3A%20aString%0A%09%5E%28aString%20tokenize%3A%20%27%20%27%29%20reject%3A%20%5B%3Aeach%20%7C%20each%20isEmpty%5D'),
  7018. messageSends: ["reject:", "tokenize:", "isEmpty"],
  7019. referencedClasses: []
  7020. }),
  7021. smalltalk.ClassBuilder);
  7022. smalltalk.addMethod(
  7023. unescape('_addSubclassOf_named_instanceVariableNames_'),
  7024. smalltalk.method({
  7025. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3A'),
  7026. category: 'private',
  7027. fn: function (aClass, aString, aCollection){
  7028. var self=this;
  7029. smalltalk.addClass(aString, aClass, aCollection);
  7030. return smalltalk[aString];
  7031. return self;},
  7032. args: ["aClass", "aString", "aCollection"],
  7033. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  7034. messageSends: [],
  7035. referencedClasses: []
  7036. }),
  7037. smalltalk.ClassBuilder);
  7038. smalltalk.addMethod(
  7039. unescape('_setupClass_'),
  7040. smalltalk.method({
  7041. selector: unescape('setupClass%3A'),
  7042. category: 'private',
  7043. fn: function (aClass){
  7044. var self=this;
  7045. smalltalk.init(aClass);;
  7046. return self;},
  7047. args: ["aClass"],
  7048. source: unescape('setupClass%3A%20aClass%0A%09%3Csmalltalk.init%28aClass%29%3B%3E'),
  7049. messageSends: [],
  7050. referencedClasses: []
  7051. }),
  7052. smalltalk.ClassBuilder);
  7053. smalltalk.addMethod(
  7054. unescape('_superclass_subclass_instanceVariableNames_module_'),
  7055. smalltalk.method({
  7056. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Amodule%3A'),
  7057. category: 'class creation',
  7058. fn: function (aClass, aString, aString2, aString3){
  7059. var self=this;
  7060. var newClass=nil;
  7061. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_module_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  7062. smalltalk.send(self, "_setupClass_", [newClass]);
  7063. return self;},
  7064. args: ["aClass", "aString", "aString2", "aString3"],
  7065. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20module%3A%20aString3%0A%09%7C%20newClass%20%7C%0A%09newClass%20%3A%3D%20self%20addSubclassOf%3A%20aClass%0A%09%09%09%09named%3A%20aString%20instanceVariableNames%3A%20%28self%20instanceVariableNamesFor%3A%20aString2%29%0A%09%09%09%09module%3A%20%28aString3%20ifNil%3A%20%5B%27unclassified%27%5D%29.%0A%09self%20setupClass%3A%20newClass'),
  7066. messageSends: ["addSubclassOf:named:instanceVariableNames:module:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  7067. referencedClasses: []
  7068. }),
  7069. smalltalk.ClassBuilder);
  7070. smalltalk.addMethod(
  7071. unescape('_addSubclassOf_named_instanceVariableNames_module_'),
  7072. smalltalk.method({
  7073. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Amodule%3A'),
  7074. category: 'private',
  7075. fn: function (aClass, aString, aCollection, moduleName){
  7076. var self=this;
  7077. smalltalk.addClass(aString, aClass, aCollection, moduleName);
  7078. return smalltalk[aString];
  7079. return self;},
  7080. args: ["aClass", "aString", "aCollection", "moduleName"],
  7081. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%20module%3A%20moduleName%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%2C%20moduleName%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  7082. messageSends: [],
  7083. referencedClasses: []
  7084. }),
  7085. smalltalk.ClassBuilder);
  7086. smalltalk.addMethod(
  7087. unescape('_superclass_subclass_instanceVariableNames_package_'),
  7088. smalltalk.method({
  7089. selector: unescape('superclass%3Asubclass%3AinstanceVariableNames%3Apackage%3A'),
  7090. category: 'class creation',
  7091. fn: function (aClass, aString, aString2, aString3){
  7092. var self=this;
  7093. var newClass=nil;
  7094. newClass=smalltalk.send(self, "_addSubclassOf_named_instanceVariableNames_package_", [aClass, aString, smalltalk.send(self, "_instanceVariableNamesFor_", [aString2]), (($receiver = aString3) == nil || $receiver == undefined) ? (function(){return "unclassified";})() : $receiver]);
  7095. smalltalk.send(self, "_setupClass_", [newClass]);
  7096. return self;},
  7097. args: ["aClass", "aString", "aString2", "aString3"],
  7098. source: unescape('superclass%3A%20aClass%20subclass%3A%20aString%20instanceVariableNames%3A%20aString2%20package%3A%20aString3%0A%09%7C%20newClass%20%7C%0A%09newClass%20%3A%3D%20self%20addSubclassOf%3A%20aClass%0A%09%09%09%09named%3A%20aString%20instanceVariableNames%3A%20%28self%20instanceVariableNamesFor%3A%20aString2%29%0A%09%09%09%09package%3A%20%28aString3%20ifNil%3A%20%5B%27unclassified%27%5D%29.%0A%09self%20setupClass%3A%20newClass'),
  7099. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "instanceVariableNamesFor:", "ifNil:", "setupClass:"],
  7100. referencedClasses: []
  7101. }),
  7102. smalltalk.ClassBuilder);
  7103. smalltalk.addMethod(
  7104. unescape('_addSubclassOf_named_instanceVariableNames_package_'),
  7105. smalltalk.method({
  7106. selector: unescape('addSubclassOf%3Anamed%3AinstanceVariableNames%3Apackage%3A'),
  7107. category: 'private',
  7108. fn: function (aClass, aString, aCollection, packageName){
  7109. var self=this;
  7110. smalltalk.addClass(aString, aClass, aCollection, packageName);
  7111. return smalltalk[aString];
  7112. return self;},
  7113. args: ["aClass", "aString", "aCollection", "packageName"],
  7114. source: unescape('addSubclassOf%3A%20aClass%20named%3A%20aString%20instanceVariableNames%3A%20aCollection%20package%3A%20packageName%0A%09%3Csmalltalk.addClass%28aString%2C%20aClass%2C%20aCollection%2C%20packageName%29%3B%0A%09%20%20%20%20return%20smalltalk%5BaString%5D%3E'),
  7115. messageSends: [],
  7116. referencedClasses: []
  7117. }),
  7118. smalltalk.ClassBuilder);
  7119. smalltalk.addClass('ClassCategoryReader', smalltalk.Object, ['class', 'category', 'chunkParser'], 'Kernel');
  7120. smalltalk.addMethod(
  7121. unescape('_initialize'),
  7122. smalltalk.method({
  7123. selector: unescape('initialize'),
  7124. category: 'initialization',
  7125. fn: function (){
  7126. var self=this;
  7127. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7128. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7129. return self;},
  7130. args: [],
  7131. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7132. messageSends: ["initialize", "new"],
  7133. referencedClasses: [smalltalk.ChunkParser]
  7134. }),
  7135. smalltalk.ClassCategoryReader);
  7136. smalltalk.addMethod(
  7137. unescape('_class_category_'),
  7138. smalltalk.method({
  7139. selector: unescape('class%3Acategory%3A'),
  7140. category: 'accessing',
  7141. fn: function (aClass, aString){
  7142. var self=this;
  7143. self['@class']=aClass;
  7144. self['@category']=aString;
  7145. return self;},
  7146. args: ["aClass", "aString"],
  7147. source: unescape('class%3A%20aClass%20category%3A%20aString%0A%09class%20%3A%3D%20aClass.%0A%09category%20%3A%3D%20aString'),
  7148. messageSends: [],
  7149. referencedClasses: []
  7150. }),
  7151. smalltalk.ClassCategoryReader);
  7152. smalltalk.addMethod(
  7153. unescape('_scanFrom_'),
  7154. smalltalk.method({
  7155. selector: unescape('scanFrom%3A'),
  7156. category: 'fileIn',
  7157. fn: function (aChunkParser){
  7158. var self=this;
  7159. var chunk=nil;
  7160. (function(){while(!(function(){chunk=smalltalk.send(aChunkParser, "_nextChunk", []);return smalltalk.send(chunk, "_isEmpty", []);})()) {(function(){return smalltalk.send(self, "_compileMethod_", [chunk]);})()}})();
  7161. return self;},
  7162. args: ["aChunkParser"],
  7163. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09%5Bchunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%5D%20whileFalse%3A%20%5B%0A%09%20%20%20%20self%20compileMethod%3A%20chunk%5D'),
  7164. messageSends: ["whileFalse:", "nextChunk", "isEmpty", "compileMethod:"],
  7165. referencedClasses: []
  7166. }),
  7167. smalltalk.ClassCategoryReader);
  7168. smalltalk.addMethod(
  7169. unescape('_compileMethod_'),
  7170. smalltalk.method({
  7171. selector: unescape('compileMethod%3A'),
  7172. category: 'private',
  7173. fn: function (aString){
  7174. var self=this;
  7175. var method=nil;
  7176. method=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_load_forClass_", [aString, self['@class']]);
  7177. smalltalk.send(method, "_category_", [self['@category']]);
  7178. smalltalk.send(self['@class'], "_addCompiledMethod_", [method]);
  7179. return self;},
  7180. args: ["aString"],
  7181. source: unescape('compileMethod%3A%20aString%0A%09%7C%20method%20%7C%0A%09method%20%3A%3D%20Compiler%20new%20load%3A%20aString%20forClass%3A%20class.%0A%09method%20category%3A%20category.%0A%09class%20addCompiledMethod%3A%20method'),
  7182. messageSends: ["load:forClass:", "new", "category:", "addCompiledMethod:"],
  7183. referencedClasses: [smalltalk.Compiler]
  7184. }),
  7185. smalltalk.ClassCategoryReader);
  7186. smalltalk.addClass('Stream', smalltalk.Object, ['collection', 'position', 'streamSize'], 'Kernel');
  7187. smalltalk.addMethod(
  7188. unescape('_collection'),
  7189. smalltalk.method({
  7190. selector: unescape('collection'),
  7191. category: 'accessing',
  7192. fn: function (){
  7193. var self=this;
  7194. return self['@collection'];
  7195. return self;},
  7196. args: [],
  7197. source: unescape('collection%0A%09%5Ecollection'),
  7198. messageSends: [],
  7199. referencedClasses: []
  7200. }),
  7201. smalltalk.Stream);
  7202. smalltalk.addMethod(
  7203. unescape('_setCollection_'),
  7204. smalltalk.method({
  7205. selector: unescape('setCollection%3A'),
  7206. category: 'accessing',
  7207. fn: function (aCollection){
  7208. var self=this;
  7209. self['@collection']=aCollection;
  7210. return self;},
  7211. args: ["aCollection"],
  7212. source: unescape('setCollection%3A%20aCollection%0A%09collection%20%3A%3D%20aCollection'),
  7213. messageSends: [],
  7214. referencedClasses: []
  7215. }),
  7216. smalltalk.Stream);
  7217. smalltalk.addMethod(
  7218. unescape('_position'),
  7219. smalltalk.method({
  7220. selector: unescape('position'),
  7221. category: 'accessing',
  7222. fn: function (){
  7223. var self=this;
  7224. return (($receiver = self['@position']) == nil || $receiver == undefined) ? (function(){return self['@position']=(0);})() : $receiver;
  7225. return self;},
  7226. args: [],
  7227. source: unescape('position%0A%09%5Eposition%20ifNil%3A%20%5Bposition%20%3A%3D%200%5D'),
  7228. messageSends: ["ifNil:"],
  7229. referencedClasses: []
  7230. }),
  7231. smalltalk.Stream);
  7232. smalltalk.addMethod(
  7233. unescape('_position_'),
  7234. smalltalk.method({
  7235. selector: unescape('position%3A'),
  7236. category: 'accessing',
  7237. fn: function (anInteger){
  7238. var self=this;
  7239. self['@position']=anInteger;
  7240. return self;},
  7241. args: ["anInteger"],
  7242. source: unescape('position%3A%20anInteger%0A%09position%20%3A%3D%20anInteger'),
  7243. messageSends: [],
  7244. referencedClasses: []
  7245. }),
  7246. smalltalk.Stream);
  7247. smalltalk.addMethod(
  7248. unescape('_streamSize'),
  7249. smalltalk.method({
  7250. selector: unescape('streamSize'),
  7251. category: 'accessing',
  7252. fn: function (){
  7253. var self=this;
  7254. return self['@streamSize'];
  7255. return self;},
  7256. args: [],
  7257. source: unescape('streamSize%0A%09%5EstreamSize'),
  7258. messageSends: [],
  7259. referencedClasses: []
  7260. }),
  7261. smalltalk.Stream);
  7262. smalltalk.addMethod(
  7263. unescape('_setStreamSize_'),
  7264. smalltalk.method({
  7265. selector: unescape('setStreamSize%3A'),
  7266. category: 'accessing',
  7267. fn: function (anInteger){
  7268. var self=this;
  7269. self['@streamSize']=anInteger;
  7270. return self;},
  7271. args: ["anInteger"],
  7272. source: unescape('setStreamSize%3A%20anInteger%0A%09streamSize%20%3A%3D%20anInteger'),
  7273. messageSends: [],
  7274. referencedClasses: []
  7275. }),
  7276. smalltalk.Stream);
  7277. smalltalk.addMethod(
  7278. unescape('_contents'),
  7279. smalltalk.method({
  7280. selector: unescape('contents'),
  7281. category: 'accessing',
  7282. fn: function (){
  7283. var self=this;
  7284. return smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_streamSize", [])]);
  7285. return self;},
  7286. args: [],
  7287. source: unescape('contents%0A%09%5Eself%20collection%0A%09%20%20%20%20copyFrom%3A%201%20%0A%09%20%20%20%20to%3A%20self%20streamSize'),
  7288. messageSends: ["copyFrom:to:", "collection", "streamSize"],
  7289. referencedClasses: []
  7290. }),
  7291. smalltalk.Stream);
  7292. smalltalk.addMethod(
  7293. unescape('_size'),
  7294. smalltalk.method({
  7295. selector: unescape('size'),
  7296. category: 'accessing',
  7297. fn: function (){
  7298. var self=this;
  7299. return smalltalk.send(self, "_streamSize", []);
  7300. return self;},
  7301. args: [],
  7302. source: unescape('size%0A%09%5Eself%20streamSize'),
  7303. messageSends: ["streamSize"],
  7304. referencedClasses: []
  7305. }),
  7306. smalltalk.Stream);
  7307. smalltalk.addMethod(
  7308. unescape('_reset'),
  7309. smalltalk.method({
  7310. selector: unescape('reset'),
  7311. category: 'actions',
  7312. fn: function (){
  7313. var self=this;
  7314. smalltalk.send(self, "_position_", [(0)]);
  7315. return self;},
  7316. args: [],
  7317. source: unescape('reset%0A%09self%20position%3A%200'),
  7318. messageSends: ["position:"],
  7319. referencedClasses: []
  7320. }),
  7321. smalltalk.Stream);
  7322. smalltalk.addMethod(
  7323. unescape('_close'),
  7324. smalltalk.method({
  7325. selector: unescape('close'),
  7326. category: 'actions',
  7327. fn: function (){
  7328. var self=this;
  7329. return self;},
  7330. args: [],
  7331. source: unescape('close'),
  7332. messageSends: [],
  7333. referencedClasses: []
  7334. }),
  7335. smalltalk.Stream);
  7336. smalltalk.addMethod(
  7337. unescape('_flush'),
  7338. smalltalk.method({
  7339. selector: unescape('flush'),
  7340. category: 'actions',
  7341. fn: function (){
  7342. var self=this;
  7343. return self;},
  7344. args: [],
  7345. source: unescape('flush'),
  7346. messageSends: [],
  7347. referencedClasses: []
  7348. }),
  7349. smalltalk.Stream);
  7350. smalltalk.addMethod(
  7351. unescape('_resetContents'),
  7352. smalltalk.method({
  7353. selector: unescape('resetContents'),
  7354. category: 'actions',
  7355. fn: function (){
  7356. var self=this;
  7357. smalltalk.send(self, "_reset", []);
  7358. smalltalk.send(self, "_setStreamSize_", [(0)]);
  7359. return self;},
  7360. args: [],
  7361. source: unescape('resetContents%0A%09self%20reset.%0A%09self%20setStreamSize%3A%200'),
  7362. messageSends: ["reset", "setStreamSize:"],
  7363. referencedClasses: []
  7364. }),
  7365. smalltalk.Stream);
  7366. smalltalk.addMethod(
  7367. unescape('_do_'),
  7368. smalltalk.method({
  7369. selector: unescape('do%3A'),
  7370. category: 'enumerating',
  7371. fn: function (aBlock){
  7372. var self=this;
  7373. (function(){while(!(function(){return smalltalk.send(self, "_atEnd", []);})()) {(function(){return smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_next", [])]);})()}})();
  7374. return self;},
  7375. args: ["aBlock"],
  7376. source: unescape('do%3A%20aBlock%0A%09%5Bself%20atEnd%5D%20whileFalse%3A%20%5BaBlock%20value%3A%20self%20next%5D'),
  7377. messageSends: ["whileFalse:", "atEnd", "value:", "next"],
  7378. referencedClasses: []
  7379. }),
  7380. smalltalk.Stream);
  7381. smalltalk.addMethod(
  7382. unescape('_setToEnd'),
  7383. smalltalk.method({
  7384. selector: unescape('setToEnd'),
  7385. category: 'positioning',
  7386. fn: function (){
  7387. var self=this;
  7388. smalltalk.send(self, "_position_", [smalltalk.send(self, "_size", [])]);
  7389. return self;},
  7390. args: [],
  7391. source: unescape('setToEnd%0A%09self%20position%3A%20self%20size'),
  7392. messageSends: ["position:", "size"],
  7393. referencedClasses: []
  7394. }),
  7395. smalltalk.Stream);
  7396. smalltalk.addMethod(
  7397. unescape('_skip_'),
  7398. smalltalk.method({
  7399. selector: unescape('skip%3A'),
  7400. category: 'positioning',
  7401. fn: function (anInteger){
  7402. var self=this;
  7403. smalltalk.send(self, "_position_", [smalltalk.send(((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +anInteger : smalltalk.send($receiver, "__plus", [anInteger])), "_min_max_", [smalltalk.send(self, "_size", []), (0)])]);
  7404. return self;},
  7405. args: ["anInteger"],
  7406. source: unescape('skip%3A%20anInteger%0A%09self%20position%3A%20%28%28self%20position%20+%20anInteger%29%20min%3A%20self%20size%20max%3A%200%29'),
  7407. messageSends: ["position:", "min:max:", unescape("+"), "position", "size"],
  7408. referencedClasses: []
  7409. }),
  7410. smalltalk.Stream);
  7411. smalltalk.addMethod(
  7412. unescape('_next'),
  7413. smalltalk.method({
  7414. selector: unescape('next'),
  7415. category: 'reading',
  7416. fn: function (){
  7417. var self=this;
  7418. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7419. return smalltalk.send(self['@collection'], "_at_", [smalltalk.send(self, "_position", [])]);
  7420. return self;},
  7421. args: [],
  7422. source: unescape('next%0A%09self%20position%3A%20self%20position%20+%201.%20%0A%09%5Ecollection%20at%3A%20self%20position'),
  7423. messageSends: ["position:", unescape("+"), "position", "at:"],
  7424. referencedClasses: []
  7425. }),
  7426. smalltalk.Stream);
  7427. smalltalk.addMethod(
  7428. unescape('_next_'),
  7429. smalltalk.method({
  7430. selector: unescape('next%3A'),
  7431. category: 'reading',
  7432. fn: function (anInteger){
  7433. var self=this;
  7434. var tempCollection=nil;
  7435. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7436. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(tempCollection, "_add_", [smalltalk.send(self, "_next", [])]);})]));})]);
  7437. return tempCollection;
  7438. return self;},
  7439. args: ["anInteger"],
  7440. source: unescape('next%3A%20anInteger%0A%09%7C%20tempCollection%20%7C%0A%09tempCollection%20%3A%3D%20self%20collection%20class%20new.%0A%09anInteger%20timesRepeat%3A%20%5B%0A%09%20%20%20%20self%20atEnd%20ifFalse%3A%20%5B%0A%09%09tempCollection%20add%3A%20self%20next%5D%5D.%0A%09%5EtempCollection'),
  7441. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", "add:", "next"],
  7442. referencedClasses: []
  7443. }),
  7444. smalltalk.Stream);
  7445. smalltalk.addMethod(
  7446. unescape('_nextPut_'),
  7447. smalltalk.method({
  7448. selector: unescape('nextPut%3A'),
  7449. category: 'writing',
  7450. fn: function (anObject){
  7451. var self=this;
  7452. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);
  7453. smalltalk.send(smalltalk.send(self, "_collection", []), "_at_put_", [smalltalk.send(self, "_position", []), anObject]);
  7454. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7455. return self;},
  7456. args: ["anObject"],
  7457. source: unescape('nextPut%3A%20anObject%0A%09self%20position%3A%20self%20position%20+%201.%0A%09self%20collection%20at%3A%20self%20position%20put%3A%20anObject.%0A%09self%20setStreamSize%3A%20%28self%20streamSize%20max%3A%20self%20position%29'),
  7458. messageSends: ["position:", unescape("+"), "position", "at:put:", "collection", "setStreamSize:", "max:", "streamSize"],
  7459. referencedClasses: []
  7460. }),
  7461. smalltalk.Stream);
  7462. smalltalk.addMethod(
  7463. unescape('_nextPutAll_'),
  7464. smalltalk.method({
  7465. selector: unescape('nextPutAll%3A'),
  7466. category: 'writing',
  7467. fn: function (aCollection){
  7468. var self=this;
  7469. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(self, "_nextPut_", [each]);})]);
  7470. return self;},
  7471. args: ["aCollection"],
  7472. source: unescape('nextPutAll%3A%20aCollection%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%20%20%20%20self%20nextPut%3A%20each%5D'),
  7473. messageSends: ["do:", "nextPut:"],
  7474. referencedClasses: []
  7475. }),
  7476. smalltalk.Stream);
  7477. smalltalk.addMethod(
  7478. unescape('_peek'),
  7479. smalltalk.method({
  7480. selector: unescape('peek'),
  7481. category: 'reading',
  7482. fn: function (){
  7483. var self=this;
  7484. return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_collection", []), "_at_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))]);})]));
  7485. return self;},
  7486. args: [],
  7487. source: unescape('peek%0A%09%5Eself%20atEnd%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20collection%20at%3A%20self%20position%20+%201%5D'),
  7488. messageSends: ["ifFalse:", "atEnd", "at:", "collection", unescape("+"), "position"],
  7489. referencedClasses: []
  7490. }),
  7491. smalltalk.Stream);
  7492. smalltalk.addMethod(
  7493. unescape('_atEnd'),
  7494. smalltalk.method({
  7495. selector: unescape('atEnd'),
  7496. category: 'testing',
  7497. fn: function (){
  7498. var self=this;
  7499. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [smalltalk.send(self, "_size", [])]);
  7500. return self;},
  7501. args: [],
  7502. source: unescape('atEnd%0A%09%5Eself%20position%20%3D%20self%20size'),
  7503. messageSends: [unescape("%3D"), "position", "size"],
  7504. referencedClasses: []
  7505. }),
  7506. smalltalk.Stream);
  7507. smalltalk.addMethod(
  7508. unescape('_atStart'),
  7509. smalltalk.method({
  7510. selector: unescape('atStart'),
  7511. category: 'testing',
  7512. fn: function (){
  7513. var self=this;
  7514. return smalltalk.send(smalltalk.send(self, "_position", []), "__eq", [(0)]);
  7515. return self;},
  7516. args: [],
  7517. source: unescape('atStart%0A%09%5Eself%20position%20%3D%200'),
  7518. messageSends: [unescape("%3D"), "position"],
  7519. referencedClasses: []
  7520. }),
  7521. smalltalk.Stream);
  7522. smalltalk.addMethod(
  7523. unescape('_isEmpty'),
  7524. smalltalk.method({
  7525. selector: unescape('isEmpty'),
  7526. category: 'testing',
  7527. fn: function (){
  7528. var self=this;
  7529. return smalltalk.send(smalltalk.send(self, "_size", []), "__eq", [(0)]);
  7530. return self;},
  7531. args: [],
  7532. source: unescape('isEmpty%0A%09%5Eself%20size%20%3D%200'),
  7533. messageSends: [unescape("%3D"), "size"],
  7534. referencedClasses: []
  7535. }),
  7536. smalltalk.Stream);
  7537. smalltalk.addMethod(
  7538. unescape('_on_'),
  7539. smalltalk.method({
  7540. selector: unescape('on%3A'),
  7541. category: 'instance creation',
  7542. fn: function (aCollection){
  7543. var self=this;
  7544. return (function($rec){smalltalk.send($rec, "_setCollection_", [aCollection]);smalltalk.send($rec, "_setStreamSize_", [smalltalk.send(aCollection, "_size", [])]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7545. return self;},
  7546. args: ["aCollection"],
  7547. source: unescape('on%3A%20aCollection%0A%09%20%20%20%20%5Eself%20new%20%0A%09%09setCollection%3A%20aCollection%3B%0A%09%09setStreamSize%3A%20aCollection%20size%3B%0A%09%09yourself'),
  7548. messageSends: ["setCollection:", "setStreamSize:", "size", "yourself", "new"],
  7549. referencedClasses: []
  7550. }),
  7551. smalltalk.Stream.klass);
  7552. smalltalk.addClass('StringStream', smalltalk.Stream, [], 'Kernel');
  7553. smalltalk.addMethod(
  7554. unescape('_next_'),
  7555. smalltalk.method({
  7556. selector: unescape('next%3A'),
  7557. category: 'reading',
  7558. fn: function (anInteger){
  7559. var self=this;
  7560. var tempCollection=nil;
  7561. tempCollection=smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_class", []), "_new", []);
  7562. smalltalk.send(anInteger, "_timesRepeat_", [(function(){return ((($receiver = smalltalk.send(self, "_atEnd", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return tempCollection=smalltalk.send(tempCollection, "__comma", [smalltalk.send(self, "_next", [])]);})]));})]);
  7563. return tempCollection;
  7564. return self;},
  7565. args: ["anInteger"],
  7566. source: unescape('next%3A%20anInteger%0A%09%7C%20tempCollection%20%7C%0A%09tempCollection%20%3A%3D%20self%20collection%20class%20new.%0A%09anInteger%20timesRepeat%3A%20%5B%0A%09%20%20%20%20self%20atEnd%20ifFalse%3A%20%5B%0A%09%09tempCollection%20%3A%3D%20tempCollection%2C%20self%20next%5D%5D.%0A%09%5EtempCollection'),
  7567. messageSends: ["new", "class", "collection", "timesRepeat:", "ifFalse:", "atEnd", unescape("%2C"), "next"],
  7568. referencedClasses: []
  7569. }),
  7570. smalltalk.StringStream);
  7571. smalltalk.addMethod(
  7572. unescape('_nextPut_'),
  7573. smalltalk.method({
  7574. selector: unescape('nextPut%3A'),
  7575. category: 'writing',
  7576. fn: function (aString){
  7577. var self=this;
  7578. smalltalk.send(self, "_nextPutAll_", [aString]);
  7579. return self;},
  7580. args: ["aString"],
  7581. source: unescape('nextPut%3A%20aString%0A%09self%20nextPutAll%3A%20aString'),
  7582. messageSends: ["nextPutAll:"],
  7583. referencedClasses: []
  7584. }),
  7585. smalltalk.StringStream);
  7586. smalltalk.addMethod(
  7587. unescape('_nextPutAll_'),
  7588. smalltalk.method({
  7589. selector: unescape('nextPutAll%3A'),
  7590. category: 'writing',
  7591. fn: function (aString){
  7592. var self=this;
  7593. smalltalk.send(self, "_setCollection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [(1), smalltalk.send(self, "_position", [])]), "__comma", [aString]), "__comma", [smalltalk.send(smalltalk.send(self, "_collection", []), "_copyFrom_to_", [((($receiver = ((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]))).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])])), smalltalk.send(smalltalk.send(self, "_collection", []), "_size", [])])])]);
  7594. smalltalk.send(self, "_position_", [((($receiver = smalltalk.send(self, "_position", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(aString, "_size", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(aString, "_size", [])]))]);
  7595. smalltalk.send(self, "_setStreamSize_", [smalltalk.send(smalltalk.send(self, "_streamSize", []), "_max_", [smalltalk.send(self, "_position", [])])]);
  7596. return self;},
  7597. args: ["aString"],
  7598. source: unescape('nextPutAll%3A%20aString%0A%09self%20setCollection%3A%20%0A%09%20%20%20%20%28self%20collection%20copyFrom%3A%201%20to%3A%20self%20position%29%2C%0A%09%20%20%20%20aString%2C%0A%09%20%20%20%20%28self%20collection%20copyFrom%3A%20%28self%20position%20+%201%20+%20aString%20size%29%20to%3A%20self%20collection%20size%29.%0A%09self%20position%3A%20self%20position%20+%20aString%20size.%0A%09self%20setStreamSize%3A%20%28self%20streamSize%20max%3A%20self%20position%29'),
  7599. messageSends: ["setCollection:", unescape("%2C"), "copyFrom:to:", "collection", "position", unescape("+"), "size", "position:", "setStreamSize:", "max:", "streamSize"],
  7600. referencedClasses: []
  7601. }),
  7602. smalltalk.StringStream);
  7603. smalltalk.addMethod(
  7604. unescape('_cr'),
  7605. smalltalk.method({
  7606. selector: unescape('cr'),
  7607. category: 'writing',
  7608. fn: function (){
  7609. var self=this;
  7610. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  7611. return self;},
  7612. args: [],
  7613. source: unescape('cr%0A%09%5Eself%20nextPutAll%3A%20String%20cr'),
  7614. messageSends: ["nextPutAll:", "cr"],
  7615. referencedClasses: [smalltalk.String]
  7616. }),
  7617. smalltalk.StringStream);
  7618. smalltalk.addMethod(
  7619. unescape('_crlf'),
  7620. smalltalk.method({
  7621. selector: unescape('crlf'),
  7622. category: 'writing',
  7623. fn: function (){
  7624. var self=this;
  7625. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_crlf", [])]);
  7626. return self;},
  7627. args: [],
  7628. source: unescape('crlf%0A%09%5Eself%20nextPutAll%3A%20String%20crlf'),
  7629. messageSends: ["nextPutAll:", "crlf"],
  7630. referencedClasses: [smalltalk.String]
  7631. }),
  7632. smalltalk.StringStream);
  7633. smalltalk.addMethod(
  7634. unescape('_lf'),
  7635. smalltalk.method({
  7636. selector: unescape('lf'),
  7637. category: 'writing',
  7638. fn: function (){
  7639. var self=this;
  7640. return smalltalk.send(self, "_nextPutAll_", [smalltalk.send((smalltalk.String || String), "_lf", [])]);
  7641. return self;},
  7642. args: [],
  7643. source: unescape('lf%0A%09%5Eself%20nextPutAll%3A%20String%20lf'),
  7644. messageSends: ["nextPutAll:", "lf"],
  7645. referencedClasses: [smalltalk.String]
  7646. }),
  7647. smalltalk.StringStream);
  7648. smalltalk.addMethod(
  7649. unescape('_space'),
  7650. smalltalk.method({
  7651. selector: unescape('space'),
  7652. category: 'writing',
  7653. fn: function (){
  7654. var self=this;
  7655. smalltalk.send(self, "_nextPut_", [" "]);
  7656. return self;},
  7657. args: [],
  7658. source: unescape('space%0A%09self%20nextPut%3A%20%27%20%27'),
  7659. messageSends: ["nextPut:"],
  7660. referencedClasses: []
  7661. }),
  7662. smalltalk.StringStream);
  7663. smalltalk.addClass('ClassCommentReader', smalltalk.Object, ['class', 'chunkParser'], 'Kernel');
  7664. smalltalk.addMethod(
  7665. unescape('_class_'),
  7666. smalltalk.method({
  7667. selector: unescape('class%3A'),
  7668. category: 'accessing',
  7669. fn: function (aClass){
  7670. var self=this;
  7671. self['@class']=aClass;
  7672. return self;},
  7673. args: ["aClass"],
  7674. source: unescape('class%3A%20aClass%0A%09class%20%3A%3D%20aClass'),
  7675. messageSends: [],
  7676. referencedClasses: []
  7677. }),
  7678. smalltalk.ClassCommentReader);
  7679. smalltalk.addMethod(
  7680. unescape('_scanFrom_'),
  7681. smalltalk.method({
  7682. selector: unescape('scanFrom%3A'),
  7683. category: 'fileIn',
  7684. fn: function (aChunkParser){
  7685. var self=this;
  7686. var chunk=nil;
  7687. chunk=smalltalk.send(aChunkParser, "_nextChunk", []);
  7688. ((($receiver = smalltalk.send(chunk, "_isEmpty", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_setComment_", [chunk]);})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return smalltalk.send(self, "_setComment_", [chunk]);})]));
  7689. return self;},
  7690. args: ["aChunkParser"],
  7691. source: unescape('scanFrom%3A%20aChunkParser%0A%09%7C%20chunk%20%7C%0A%09chunk%20%3A%3D%20aChunkParser%20nextChunk.%0A%09chunk%20isEmpty%20ifFalse%3A%20%5B%0A%09%20%20%20%20self%20setComment%3A%20chunk%5D.'),
  7692. messageSends: ["nextChunk", "ifFalse:", "isEmpty", "setComment:"],
  7693. referencedClasses: []
  7694. }),
  7695. smalltalk.ClassCommentReader);
  7696. smalltalk.addMethod(
  7697. unescape('_initialize'),
  7698. smalltalk.method({
  7699. selector: unescape('initialize'),
  7700. category: 'initialization',
  7701. fn: function (){
  7702. var self=this;
  7703. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  7704. self['@chunkParser']=smalltalk.send((smalltalk.ChunkParser || ChunkParser), "_new", []);
  7705. return self;},
  7706. args: [],
  7707. source: unescape('initialize%0A%09super%20initialize.%0A%09chunkParser%20%3A%3D%20ChunkParser%20new.'),
  7708. messageSends: ["initialize", "new"],
  7709. referencedClasses: [smalltalk.ChunkParser]
  7710. }),
  7711. smalltalk.ClassCommentReader);
  7712. smalltalk.addMethod(
  7713. unescape('_setComment_'),
  7714. smalltalk.method({
  7715. selector: unescape('setComment%3A'),
  7716. category: 'private',
  7717. fn: function (aString){
  7718. var self=this;
  7719. smalltalk.send(self['@class'], "_comment_", [aString]);
  7720. return self;},
  7721. args: ["aString"],
  7722. source: unescape('setComment%3A%20aString%0A%20%20%20%20class%20comment%3A%20aString'),
  7723. messageSends: ["comment:"],
  7724. referencedClasses: []
  7725. }),
  7726. smalltalk.ClassCommentReader);
  7727. smalltalk.addClass('Random', smalltalk.Object, [], 'Kernel');
  7728. smalltalk.addMethod(
  7729. unescape('_next'),
  7730. smalltalk.method({
  7731. selector: unescape('next'),
  7732. category: 'accessing',
  7733. fn: function (){
  7734. var self=this;
  7735. return Math.random();
  7736. return self;},
  7737. args: [],
  7738. source: unescape('next%0A%09%3Creturn%20Math.random%28%29%3E'),
  7739. messageSends: [],
  7740. referencedClasses: []
  7741. }),
  7742. smalltalk.Random);
  7743. smalltalk.addMethod(
  7744. unescape('_next_'),
  7745. smalltalk.method({
  7746. selector: unescape('next%3A'),
  7747. category: 'accessing',
  7748. fn: function (anInteger){
  7749. var self=this;
  7750. return smalltalk.send(smalltalk.send((1), "_to_", [anInteger]), "_collect_", [(function(each){return smalltalk.send(self, "_next", []);})]);
  7751. return self;},
  7752. args: ["anInteger"],
  7753. source: unescape('next%3A%20anInteger%0A%20%20%20%20%5E%281%20to%3A%20anInteger%29%20collect%3A%20%5B%3Aeach%20%7C%20self%20next%5D'),
  7754. messageSends: ["collect:", "to:", "next"],
  7755. referencedClasses: []
  7756. }),
  7757. smalltalk.Random);
  7758. smalltalk.addClass('Point', smalltalk.Object, ['x', 'y'], 'Kernel');
  7759. smalltalk.addMethod(
  7760. unescape('_x'),
  7761. smalltalk.method({
  7762. selector: unescape('x'),
  7763. category: 'accessing',
  7764. fn: function (){
  7765. var self=this;
  7766. return self['@x'];
  7767. return self;},
  7768. args: [],
  7769. source: unescape('x%0A%09%5Ex'),
  7770. messageSends: [],
  7771. referencedClasses: []
  7772. }),
  7773. smalltalk.Point);
  7774. smalltalk.addMethod(
  7775. unescape('_y'),
  7776. smalltalk.method({
  7777. selector: unescape('y'),
  7778. category: 'accessing',
  7779. fn: function (){
  7780. var self=this;
  7781. return self['@y'];
  7782. return self;},
  7783. args: [],
  7784. source: unescape('y%0A%09%5Ey'),
  7785. messageSends: [],
  7786. referencedClasses: []
  7787. }),
  7788. smalltalk.Point);
  7789. smalltalk.addMethod(
  7790. unescape('_y_'),
  7791. smalltalk.method({
  7792. selector: unescape('y%3A'),
  7793. category: 'accessing',
  7794. fn: function (aNumber){
  7795. var self=this;
  7796. self['@y']=aNumber;
  7797. return self;},
  7798. args: ["aNumber"],
  7799. source: unescape('y%3A%20aNumber%0A%09y%20%3A%3D%20aNumber'),
  7800. messageSends: [],
  7801. referencedClasses: []
  7802. }),
  7803. smalltalk.Point);
  7804. smalltalk.addMethod(
  7805. unescape('_x_'),
  7806. smalltalk.method({
  7807. selector: unescape('x%3A'),
  7808. category: 'accessing',
  7809. fn: function (aNumber){
  7810. var self=this;
  7811. self['@x']=aNumber;
  7812. return self;},
  7813. args: ["aNumber"],
  7814. source: unescape('x%3A%20aNumber%0A%09x%20%3A%3D%20aNumber'),
  7815. messageSends: [],
  7816. referencedClasses: []
  7817. }),
  7818. smalltalk.Point);
  7819. smalltalk.addMethod(
  7820. unescape('__star'),
  7821. smalltalk.method({
  7822. selector: unescape('*'),
  7823. category: 'arithmetic',
  7824. fn: function (aPoint){
  7825. var self=this;
  7826. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver *smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__star", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7827. return self;},
  7828. args: ["aPoint"],
  7829. source: unescape('*%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20*%20aPoint%20asPoint%20x%20y%3A%20self%20y%20*%20aPoint%20asPoint%20y'),
  7830. messageSends: ["x:y:", unescape("*"), "x", "asPoint", "y"],
  7831. referencedClasses: [smalltalk.Point]
  7832. }),
  7833. smalltalk.Point);
  7834. smalltalk.addMethod(
  7835. unescape('__plus'),
  7836. smalltalk.method({
  7837. selector: unescape('+'),
  7838. category: 'arithmetic',
  7839. fn: function (aPoint){
  7840. var self=this;
  7841. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7842. return self;},
  7843. args: ["aPoint"],
  7844. source: unescape('+%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20+%20aPoint%20asPoint%20x%20y%3A%20self%20y%20+%20aPoint%20asPoint%20y'),
  7845. messageSends: ["x:y:", unescape("+"), "x", "asPoint", "y"],
  7846. referencedClasses: [smalltalk.Point]
  7847. }),
  7848. smalltalk.Point);
  7849. smalltalk.addMethod(
  7850. unescape('__minus'),
  7851. smalltalk.method({
  7852. selector: unescape('-'),
  7853. category: 'arithmetic',
  7854. fn: function (aPoint){
  7855. var self=this;
  7856. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver -smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__minus", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7857. return self;},
  7858. args: ["aPoint"],
  7859. source: unescape('-%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20-%20aPoint%20asPoint%20x%20y%3A%20self%20y%20-%20aPoint%20asPoint%20y'),
  7860. messageSends: ["x:y:", unescape("-"), "x", "asPoint", "y"],
  7861. referencedClasses: [smalltalk.Point]
  7862. }),
  7863. smalltalk.Point);
  7864. smalltalk.addMethod(
  7865. unescape('__slash'),
  7866. smalltalk.method({
  7867. selector: unescape('/'),
  7868. category: 'arithmetic',
  7869. fn: function (aPoint){
  7870. var self=this;
  7871. return smalltalk.send((smalltalk.Point || Point), "_x_y_", [((($receiver = smalltalk.send(self, "_x", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_x", [])])), ((($receiver = smalltalk.send(self, "_y", [])).klass === smalltalk.Number) ? $receiver /smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", []) : smalltalk.send($receiver, "__slash", [smalltalk.send(smalltalk.send(aPoint, "_asPoint", []), "_y", [])]))]);
  7872. return self;},
  7873. args: ["aPoint"],
  7874. source: unescape('/%20aPoint%0A%09%5EPoint%20x%3A%20self%20x%20/%20aPoint%20asPoint%20x%20y%3A%20self%20y%20/%20aPoint%20asPoint%20y'),
  7875. messageSends: ["x:y:", unescape("/"), "x", "asPoint", "y"],
  7876. referencedClasses: [smalltalk.Point]
  7877. }),
  7878. smalltalk.Point);
  7879. smalltalk.addMethod(
  7880. unescape('_asPoint'),
  7881. smalltalk.method({
  7882. selector: unescape('asPoint'),
  7883. category: 'converting',
  7884. fn: function (){
  7885. var self=this;
  7886. return self;
  7887. return self;},
  7888. args: [],
  7889. source: unescape('asPoint%0A%09%5Eself'),
  7890. messageSends: [],
  7891. referencedClasses: []
  7892. }),
  7893. smalltalk.Point);
  7894. smalltalk.addMethod(
  7895. unescape('_x_y_'),
  7896. smalltalk.method({
  7897. selector: unescape('x%3Ay%3A'),
  7898. category: 'instance creation',
  7899. fn: function (aNumber, anotherNumber){
  7900. var self=this;
  7901. return (function($rec){smalltalk.send($rec, "_x_", [aNumber]);smalltalk.send($rec, "_y_", [anotherNumber]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7902. return self;},
  7903. args: ["aNumber", "anotherNumber"],
  7904. source: unescape('x%3A%20aNumber%20y%3A%20anotherNumber%0A%09%5Eself%20new%0A%09%09x%3A%20aNumber%3B%0A%09%09y%3A%20anotherNumber%3B%0A%09%09yourself'),
  7905. messageSends: ["x:", "y:", "yourself", "new"],
  7906. referencedClasses: []
  7907. }),
  7908. smalltalk.Point.klass);
  7909. smalltalk.addClass('Message', smalltalk.Object, ['selector', 'arguments'], 'Kernel');
  7910. smalltalk.addMethod(
  7911. unescape('_selector'),
  7912. smalltalk.method({
  7913. selector: unescape('selector'),
  7914. category: 'accessing',
  7915. fn: function (){
  7916. var self=this;
  7917. return self['@selector'];
  7918. return self;},
  7919. args: [],
  7920. source: unescape('selector%0A%09%5Eselector'),
  7921. messageSends: [],
  7922. referencedClasses: []
  7923. }),
  7924. smalltalk.Message);
  7925. smalltalk.addMethod(
  7926. unescape('_selector_'),
  7927. smalltalk.method({
  7928. selector: unescape('selector%3A'),
  7929. category: 'accessing',
  7930. fn: function (aString){
  7931. var self=this;
  7932. self['@selector']=aString;
  7933. return self;},
  7934. args: ["aString"],
  7935. source: unescape('selector%3A%20aString%0A%09selector%20%3A%3D%20aString'),
  7936. messageSends: [],
  7937. referencedClasses: []
  7938. }),
  7939. smalltalk.Message);
  7940. smalltalk.addMethod(
  7941. unescape('_arguments_'),
  7942. smalltalk.method({
  7943. selector: unescape('arguments%3A'),
  7944. category: 'accessing',
  7945. fn: function (anArray){
  7946. var self=this;
  7947. self['@arguments']=anArray;
  7948. return self;},
  7949. args: ["anArray"],
  7950. source: unescape('arguments%3A%20anArray%0A%09arguments%20%3A%3D%20anArray'),
  7951. messageSends: [],
  7952. referencedClasses: []
  7953. }),
  7954. smalltalk.Message);
  7955. smalltalk.addMethod(
  7956. unescape('_arguments'),
  7957. smalltalk.method({
  7958. selector: unescape('arguments'),
  7959. category: 'accessing',
  7960. fn: function (){
  7961. var self=this;
  7962. return self['@arguments'];
  7963. return self;},
  7964. args: [],
  7965. source: unescape('arguments%0A%09%5Earguments'),
  7966. messageSends: [],
  7967. referencedClasses: []
  7968. }),
  7969. smalltalk.Message);
  7970. smalltalk.addMethod(
  7971. unescape('_selector_arguments_'),
  7972. smalltalk.method({
  7973. selector: unescape('selector%3Aarguments%3A'),
  7974. category: 'instance creation',
  7975. fn: function (aString, anArray){
  7976. var self=this;
  7977. return (function($rec){smalltalk.send($rec, "_selector_", [aString]);smalltalk.send($rec, "_arguments_", [anArray]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  7978. return self;},
  7979. args: ["aString", "anArray"],
  7980. source: unescape('selector%3A%20aString%20arguments%3A%20anArray%0A%09%5Eself%20new%0A%09%09selector%3A%20aString%3B%0A%09%09arguments%3A%20anArray%3B%0A%09%09yourself'),
  7981. messageSends: ["selector:", "arguments:", "yourself", "new"],
  7982. referencedClasses: []
  7983. }),
  7984. smalltalk.Message.klass);
  7985. smalltalk.addClass('MessageNotUnderstood', smalltalk.Error, ['message', 'receiver'], 'Kernel');
  7986. smalltalk.addMethod(
  7987. unescape('_message'),
  7988. smalltalk.method({
  7989. selector: unescape('message'),
  7990. category: 'accessing',
  7991. fn: function (){
  7992. var self=this;
  7993. return self['@message'];
  7994. return self;},
  7995. args: [],
  7996. source: unescape('message%0A%09%5Emessage'),
  7997. messageSends: [],
  7998. referencedClasses: []
  7999. }),
  8000. smalltalk.MessageNotUnderstood);
  8001. smalltalk.addMethod(
  8002. unescape('_message_'),
  8003. smalltalk.method({
  8004. selector: unescape('message%3A'),
  8005. category: 'accessing',
  8006. fn: function (aMessage){
  8007. var self=this;
  8008. self['@message']=aMessage;
  8009. return self;},
  8010. args: ["aMessage"],
  8011. source: unescape('message%3A%20aMessage%0A%09message%20%3A%3D%20aMessage'),
  8012. messageSends: [],
  8013. referencedClasses: []
  8014. }),
  8015. smalltalk.MessageNotUnderstood);
  8016. smalltalk.addMethod(
  8017. unescape('_receiver'),
  8018. smalltalk.method({
  8019. selector: unescape('receiver'),
  8020. category: 'accessing',
  8021. fn: function (){
  8022. var self=this;
  8023. return self['@receiver'];
  8024. return self;},
  8025. args: [],
  8026. source: unescape('receiver%0A%09%5Ereceiver'),
  8027. messageSends: [],
  8028. referencedClasses: []
  8029. }),
  8030. smalltalk.MessageNotUnderstood);
  8031. smalltalk.addMethod(
  8032. unescape('_receiver_'),
  8033. smalltalk.method({
  8034. selector: unescape('receiver%3A'),
  8035. category: 'accessing',
  8036. fn: function (anObject){
  8037. var self=this;
  8038. self['@receiver']=anObject;
  8039. return self;},
  8040. args: ["anObject"],
  8041. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  8042. messageSends: [],
  8043. referencedClasses: []
  8044. }),
  8045. smalltalk.MessageNotUnderstood);
  8046. smalltalk.addMethod(
  8047. unescape('_messageText'),
  8048. smalltalk.method({
  8049. selector: unescape('messageText'),
  8050. category: 'accessing',
  8051. fn: function (){
  8052. var self=this;
  8053. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_receiver", []), "_asString", []), "__comma", [unescape("%20does%20not%20understand%20%23")]), "__comma", [smalltalk.send(smalltalk.send(self, "_message", []), "_selector", [])]);
  8054. return self;},
  8055. args: [],
  8056. source: unescape('messageText%0A%09%5Eself%20receiver%20asString%2C%20%27%20does%20not%20understand%20%23%27%2C%20self%20message%20selector'),
  8057. messageSends: [unescape("%2C"), "asString", "receiver", "selector", "message"],
  8058. referencedClasses: []
  8059. }),
  8060. smalltalk.MessageNotUnderstood);
  8061. smalltalk.addClass('ErrorHandler', smalltalk.Object, [], 'Kernel');
  8062. smalltalk.addMethod(
  8063. unescape('_handleError_'),
  8064. smalltalk.method({
  8065. selector: unescape('handleError%3A'),
  8066. category: 'error handling',
  8067. fn: function (anError){
  8068. var self=this;
  8069. (($receiver = smalltalk.send(anError, "_context", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logErrorContext_", [smalltalk.send(anError, "_context", [])]);})() : nil;
  8070. smalltalk.send(self, "_logError_", [anError]);
  8071. return self;},
  8072. args: ["anError"],
  8073. source: unescape('handleError%3A%20anError%0A%09anError%20context%20ifNotNil%3A%20%5Bself%20logErrorContext%3A%20anError%20context%5D.%0A%09self%20logError%3A%20anError'),
  8074. messageSends: ["ifNotNil:", "context", "logErrorContext:", "logError:"],
  8075. referencedClasses: []
  8076. }),
  8077. smalltalk.ErrorHandler);
  8078. smalltalk.addMethod(
  8079. unescape('_logContext_'),
  8080. smalltalk.method({
  8081. selector: unescape('logContext%3A'),
  8082. category: 'private',
  8083. fn: function (aContext){
  8084. var self=this;
  8085. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;
  8086. smalltalk.send(self, "_log_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(aContext, "_receiver", []), "_asString", []), "__comma", [unescape("%3E%3E")]), "__comma", [smalltalk.send(aContext, "_selector", [])])]);
  8087. return self;},
  8088. args: ["aContext"],
  8089. source: unescape('logContext%3A%20aContext%0A%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09self%20logContext%3A%20aContext%20home%5D.%0A%09self%20log%3A%20aContext%20receiver%20asString%2C%20%27%3E%3E%27%2C%20aContext%20selector'),
  8090. messageSends: ["ifNotNil:", "home", "logContext:", "log:", unescape("%2C"), "asString", "receiver", "selector"],
  8091. referencedClasses: []
  8092. }),
  8093. smalltalk.ErrorHandler);
  8094. smalltalk.addMethod(
  8095. unescape('_logErrorContext_'),
  8096. smalltalk.method({
  8097. selector: unescape('logErrorContext%3A'),
  8098. category: 'private',
  8099. fn: function (aContext){
  8100. var self=this;
  8101. (($receiver = aContext) != nil && $receiver != undefined) ? (function(){return (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_logContext_", [smalltalk.send(aContext, "_home", [])]);})() : nil;})() : nil;
  8102. return self;},
  8103. args: ["aContext"],
  8104. source: unescape('logErrorContext%3A%20aContext%0A%09aContext%20ifNotNil%3A%20%5B%0A%09%09aContext%20home%20ifNotNil%3A%20%5B%0A%09%09%09self%20logContext%3A%20aContext%20home%5D%5D'),
  8105. messageSends: ["ifNotNil:", "home", "logContext:"],
  8106. referencedClasses: []
  8107. }),
  8108. smalltalk.ErrorHandler);
  8109. smalltalk.addMethod(
  8110. unescape('_logError_'),
  8111. smalltalk.method({
  8112. selector: unescape('logError%3A'),
  8113. category: 'private',
  8114. fn: function (anError){
  8115. var self=this;
  8116. smalltalk.send(self, "_log_", [smalltalk.send(anError, "_messageText", [])]);
  8117. return self;},
  8118. args: ["anError"],
  8119. source: unescape('logError%3A%20anError%0A%09self%20log%3A%20anError%20messageText'),
  8120. messageSends: ["log:", "messageText"],
  8121. referencedClasses: []
  8122. }),
  8123. smalltalk.ErrorHandler);
  8124. smalltalk.addMethod(
  8125. unescape('_log_'),
  8126. smalltalk.method({
  8127. selector: unescape('log%3A'),
  8128. category: 'private',
  8129. fn: function (aString){
  8130. var self=this;
  8131. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aString]);
  8132. return self;},
  8133. args: ["aString"],
  8134. source: unescape('log%3A%20aString%0A%09console%20log%3A%20aString'),
  8135. messageSends: ["log:"],
  8136. referencedClasses: []
  8137. }),
  8138. smalltalk.ErrorHandler);
  8139. smalltalk.ErrorHandler.klass.iVarNames = ['current'];
  8140. smalltalk.addMethod(
  8141. unescape('_current'),
  8142. smalltalk.method({
  8143. selector: unescape('current'),
  8144. category: 'accessing',
  8145. fn: function (){
  8146. var self=this;
  8147. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", []);})() : $receiver;
  8148. return self;},
  8149. args: [],
  8150. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20self%20new%5D'),
  8151. messageSends: ["ifNil:", "new"],
  8152. referencedClasses: []
  8153. }),
  8154. smalltalk.ErrorHandler.klass);
  8155. smalltalk.addMethod(
  8156. unescape('_initialize'),
  8157. smalltalk.method({
  8158. selector: unescape('initialize'),
  8159. category: 'initialization',
  8160. fn: function (){
  8161. var self=this;
  8162. smalltalk.send(self, "_register", []);
  8163. return self;},
  8164. args: [],
  8165. source: unescape('initialize%0A%09self%20register'),
  8166. messageSends: ["register"],
  8167. referencedClasses: []
  8168. }),
  8169. smalltalk.ErrorHandler.klass);
  8170. smalltalk.addMethod(
  8171. unescape('_register'),
  8172. smalltalk.method({
  8173. selector: unescape('register'),
  8174. category: 'initialization',
  8175. fn: function (){
  8176. var self=this;
  8177. smalltalk.send((smalltalk.ErrorHandler || ErrorHandler), "_setCurrent_", [smalltalk.send(self, "_new", [])]);
  8178. return self;},
  8179. args: [],
  8180. source: unescape('register%0A%09ErrorHandler%20setCurrent%3A%20self%20new'),
  8181. messageSends: ["setCurrent:", "new"],
  8182. referencedClasses: [smalltalk.ErrorHandler]
  8183. }),
  8184. smalltalk.ErrorHandler.klass);
  8185. smalltalk.addMethod(
  8186. unescape('_setCurrent_'),
  8187. smalltalk.method({
  8188. selector: unescape('setCurrent%3A'),
  8189. category: 'accessing',
  8190. fn: function (anHandler){
  8191. var self=this;
  8192. self['@current']=anHandler;
  8193. return self;},
  8194. args: ["anHandler"],
  8195. source: unescape('setCurrent%3A%20anHandler%0A%09current%20%3A%3D%20anHandler'),
  8196. messageSends: [],
  8197. referencedClasses: []
  8198. }),
  8199. smalltalk.ErrorHandler.klass);
  8200. smalltalk.addClass('JSObjectProxy', smalltalk.Object, ['jsObject'], 'Kernel');
  8201. smalltalk.addMethod(
  8202. unescape('_jsObject_'),
  8203. smalltalk.method({
  8204. selector: unescape('jsObject%3A'),
  8205. category: 'accessing',
  8206. fn: function (aJSObject){
  8207. var self=this;
  8208. self['@jsObject']=aJSObject;
  8209. return self;},
  8210. args: ["aJSObject"],
  8211. source: unescape('jsObject%3A%20aJSObject%0A%09jsObject%20%3A%3D%20aJSObject'),
  8212. messageSends: [],
  8213. referencedClasses: []
  8214. }),
  8215. smalltalk.JSObjectProxy);
  8216. smalltalk.addMethod(
  8217. unescape('_jsObject'),
  8218. smalltalk.method({
  8219. selector: unescape('jsObject'),
  8220. category: 'accessing',
  8221. fn: function (){
  8222. var self=this;
  8223. return self['@jsObject'];
  8224. return self;},
  8225. args: [],
  8226. source: unescape('jsObject%0A%09%5EjsObject'),
  8227. messageSends: [],
  8228. referencedClasses: []
  8229. }),
  8230. smalltalk.JSObjectProxy);
  8231. smalltalk.addMethod(
  8232. unescape('_printString'),
  8233. smalltalk.method({
  8234. selector: unescape('printString'),
  8235. category: 'proxy',
  8236. fn: function (){
  8237. var self=this;
  8238. return smalltalk.send(smalltalk.send(self, "_jsObject", []), "_toString", []);
  8239. return self;},
  8240. args: [],
  8241. source: unescape('printString%0A%09%5Eself%20jsObject%20toString'),
  8242. messageSends: ["toString", "jsObject"],
  8243. referencedClasses: []
  8244. }),
  8245. smalltalk.JSObjectProxy);
  8246. smalltalk.addMethod(
  8247. unescape('_inspectOn_'),
  8248. smalltalk.method({
  8249. selector: unescape('inspectOn%3A'),
  8250. category: 'proxy',
  8251. fn: function (anInspector){
  8252. var self=this;
  8253. var variables=nil;
  8254. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  8255. smalltalk.send(variables, "_at_put_", [unescape("%23self"), smalltalk.send(self, "_jsObject", [])]);
  8256. smalltalk.send(anInspector, "_setLabel_", [smalltalk.send(self, "_printString", [])]);
  8257. for(var i in self['@jsObject']) {
  8258. variables._at_put_(i, self['@jsObject'][i]);
  8259. };
  8260. smalltalk.send(anInspector, "_setVariables_", [variables]);
  8261. return self;},
  8262. args: ["anInspector"],
  8263. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self%20jsObject.%0A%09anInspector%20setLabel%3A%20self%20printString.%0A%09%3Cfor%28var%20i%20in%20self%5B%27@jsObject%27%5D%29%20%7B%0A%09%09variables._at_put_%28i%2C%20self%5B%27@jsObject%27%5D%5Bi%5D%29%3B%0A%09%7D%3E.%0A%09anInspector%20setVariables%3A%20variables'),
  8264. messageSends: ["new", "at:put:", "jsObject", "setLabel:", "printString", "setVariables:"],
  8265. referencedClasses: [smalltalk.Dictionary]
  8266. }),
  8267. smalltalk.JSObjectProxy);
  8268. smalltalk.addMethod(
  8269. unescape('_doesNotUnderstand_'),
  8270. smalltalk.method({
  8271. selector: unescape('doesNotUnderstand%3A'),
  8272. category: 'proxy',
  8273. fn: function (aMessage){
  8274. var self=this;
  8275. var obj=nil;
  8276. var selector=nil;
  8277. var arguments=nil;
  8278. obj=smalltalk.send(self, "_jsObject", []);
  8279. selector=smalltalk.send(aMessage, "_selector", []);
  8280. arguments=smalltalk.send(aMessage, "_arguments", []);
  8281. if(obj[selector]) {return smalltalk.send(obj, selector, arguments)};
  8282. smalltalk.send(self, "_doesNotUnderstand_", [aMessage], smalltalk.Object);
  8283. return self;},
  8284. args: ["aMessage"],
  8285. source: unescape('doesNotUnderstand%3A%20aMessage%0A%09%7C%20obj%20selector%20arguments%20%7C%0A%09obj%20%3A%3D%20self%20jsObject.%0A%09selector%20%3A%3D%20aMessage%20selector.%0A%09arguments%20%3A%3D%20aMessage%20arguments.%0A%09%3Cif%28obj%5Bselector%5D%29%20%7Breturn%20smalltalk.send%28obj%2C%20selector%2C%20arguments%29%7D%3E.%0A%09super%20doesNotUnderstand%3A%20aMessage'),
  8286. messageSends: ["jsObject", "selector", "arguments", "doesNotUnderstand:"],
  8287. referencedClasses: []
  8288. }),
  8289. smalltalk.JSObjectProxy);
  8290. smalltalk.addMethod(
  8291. unescape('_on_'),
  8292. smalltalk.method({
  8293. selector: unescape('on%3A'),
  8294. category: 'instance creation',
  8295. fn: function (aJSObject){
  8296. var self=this;
  8297. return (function($rec){smalltalk.send($rec, "_jsObject_", [aJSObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  8298. return self;},
  8299. args: ["aJSObject"],
  8300. source: unescape('on%3A%20aJSObject%0A%09%5Eself%20new%0A%09%09jsObject%3A%20aJSObject%3B%0A%09%09yourself'),
  8301. messageSends: ["jsObject:", "yourself", "new"],
  8302. referencedClasses: []
  8303. }),
  8304. smalltalk.JSObjectProxy.klass);
  8305. smalltalk.addClass('Set', smalltalk.Collection, ['elements'], 'Kernel');
  8306. smalltalk.addMethod(
  8307. unescape('_add_'),
  8308. smalltalk.method({
  8309. selector: unescape('add%3A'),
  8310. category: 'adding/removing',
  8311. fn: function (anObject){
  8312. var self=this;
  8313. var found;
  8314. for(var i in self['@elements']) {
  8315. if(anObject == self['@elements'][i]) {
  8316. found = true;
  8317. break;
  8318. }
  8319. }
  8320. if(!found) {self['@elements'].push(anObject)}
  8321. ;
  8322. return self;},
  8323. args: ["anObject"],
  8324. source: unescape('add%3A%20anObject%0A%09%3C%0A%09%09var%20found%3B%0A%09%09for%28var%20i%20in%20self%5B%27@elements%27%5D%29%20%7B%0A%09%09%09if%28anObject%20%3D%3D%20self%5B%27@elements%27%5D%5Bi%5D%29%20%7B%0A%09%09%09%09found%20%3D%20true%3B%0A%09%09%09%09break%3B%0A%09%09%09%7D%0A%09%09%7D%0A%09%09if%28%21found%29%20%7Bself%5B%27@elements%27%5D.push%28anObject%29%7D%0A%09%3E'),
  8325. messageSends: [],
  8326. referencedClasses: []
  8327. }),
  8328. smalltalk.Set);
  8329. smalltalk.addMethod(
  8330. unescape('_remove_'),
  8331. smalltalk.method({
  8332. selector: unescape('remove%3A'),
  8333. category: 'adding/removing',
  8334. fn: function (anObject){
  8335. var self=this;
  8336. smalltalk.send(self['@elements'], "_remove_", [anObject]);
  8337. return self;},
  8338. args: ["anObject"],
  8339. source: unescape('remove%3A%20anObject%0A%09elements%20remove%3A%20anObject'),
  8340. messageSends: ["remove:"],
  8341. referencedClasses: []
  8342. }),
  8343. smalltalk.Set);
  8344. smalltalk.addMethod(
  8345. unescape('_initialize'),
  8346. smalltalk.method({
  8347. selector: unescape('initialize'),
  8348. category: 'initialization',
  8349. fn: function (){
  8350. var self=this;
  8351. smalltalk.send(self, "_initialize", [], smalltalk.Collection);
  8352. self['@elements']=[];
  8353. return self;},
  8354. args: [],
  8355. source: unescape('initialize%0A%09super%20initialize.%0A%09elements%20%3A%3D%20%23%28%29'),
  8356. messageSends: ["initialize"],
  8357. referencedClasses: []
  8358. }),
  8359. smalltalk.Set);
  8360. smalltalk.addMethod(
  8361. unescape('_size'),
  8362. smalltalk.method({
  8363. selector: unescape('size'),
  8364. category: 'accessing',
  8365. fn: function (){
  8366. var self=this;
  8367. return smalltalk.send(self['@elements'], "_size", []);
  8368. return self;},
  8369. args: [],
  8370. source: unescape('size%0A%09%5Eelements%20size'),
  8371. messageSends: ["size"],
  8372. referencedClasses: []
  8373. }),
  8374. smalltalk.Set);
  8375. smalltalk.addMethod(
  8376. unescape('_asArray'),
  8377. smalltalk.method({
  8378. selector: unescape('asArray'),
  8379. category: 'converting',
  8380. fn: function (){
  8381. var self=this;
  8382. return smalltalk.send(self['@elements'], "_copy", []);
  8383. return self;},
  8384. args: [],
  8385. source: unescape('asArray%0A%09%5Eelements%20copy'),
  8386. messageSends: ["copy"],
  8387. referencedClasses: []
  8388. }),
  8389. smalltalk.Set);
  8390. smalltalk.addMethod(
  8391. unescape('_detect_ifNone_'),
  8392. smalltalk.method({
  8393. selector: unescape('detect%3AifNone%3A'),
  8394. category: 'enumerating',
  8395. fn: function (aBlock, anotherBlock){
  8396. var self=this;
  8397. return smalltalk.send(self['@elements'], "_detect_ifNone_", [aBlock, anotherBlock]);
  8398. return self;},
  8399. args: ["aBlock", "anotherBlock"],
  8400. source: unescape('detect%3A%20aBlock%20ifNone%3A%20anotherBlock%0A%09%5Eelements%20detect%3A%20aBlock%20ifNone%3A%20anotherBlock'),
  8401. messageSends: ["detect:ifNone:"],
  8402. referencedClasses: []
  8403. }),
  8404. smalltalk.Set);
  8405. smalltalk.addMethod(
  8406. unescape('_do_'),
  8407. smalltalk.method({
  8408. selector: unescape('do%3A'),
  8409. category: 'enumerating',
  8410. fn: function (aBlock){
  8411. var self=this;
  8412. smalltalk.send(self['@elements'], "_do_", [aBlock]);
  8413. return self;},
  8414. args: ["aBlock"],
  8415. source: unescape('do%3A%20aBlock%0A%09elements%20do%3A%20aBlock'),
  8416. messageSends: ["do:"],
  8417. referencedClasses: []
  8418. }),
  8419. smalltalk.Set);
  8420. smalltalk.addMethod(
  8421. unescape('_includes_'),
  8422. smalltalk.method({
  8423. selector: unescape('includes%3A'),
  8424. category: 'testing',
  8425. fn: function (anObject){
  8426. var self=this;
  8427. return smalltalk.send(self['@elements'], "_includes_", [anObject]);
  8428. return self;},
  8429. args: ["anObject"],
  8430. source: unescape('includes%3A%20anObject%0A%09%5Eelements%20includes%3A%20anObject'),
  8431. messageSends: ["includes:"],
  8432. referencedClasses: []
  8433. }),
  8434. smalltalk.Set);
  8435. smalltalk.addMethod(
  8436. unescape('__eq'),
  8437. smalltalk.method({
  8438. selector: unescape('%3D'),
  8439. category: 'comparing',
  8440. fn: function (aCollection){
  8441. var self=this;
  8442. return smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "__eq", [smalltalk.send(aCollection, "_class", [])]), "_and_", [(function(){return smalltalk.send(self['@elements'], "__eq", [smalltalk.send(aCollection, "_asArray", [])]);})]);
  8443. return self;},
  8444. args: ["aCollection"],
  8445. source: unescape('%3D%20aCollection%0A%09%5Eself%20class%20%3D%20aCollection%20class%20and%3A%20%5B%0A%20%20%20%20%20%20%20%20%09elements%20%3D%20aCollection%20asArray%5D'),
  8446. messageSends: ["and:", unescape("%3D"), "class", "asArray"],
  8447. referencedClasses: []
  8448. }),
  8449. smalltalk.Set);
  8450. smalltalk.addClass('FileServer', smalltalk.Object, ['path', 'http', 'fs', 'url', 'port', 'basePath', 'sys'], 'FileServer');
  8451. smalltalk.addMethod(
  8452. unescape('_basePath'),
  8453. smalltalk.method({
  8454. selector: unescape('basePath'),
  8455. category: 'accessing',
  8456. fn: function (){
  8457. var self=this;
  8458. return (($receiver = self['@basePath']) == nil || $receiver == undefined) ? (function(){return unescape("./");})() : $receiver;
  8459. return self;},
  8460. args: [],
  8461. source: unescape('basePath%0A%09%5EbasePath%20ifNil%3A%20%5B%27./%27%5D'),
  8462. messageSends: ["ifNil:"],
  8463. referencedClasses: []
  8464. }),
  8465. smalltalk.FileServer);
  8466. smalltalk.addMethod(
  8467. unescape('_basePath_'),
  8468. smalltalk.method({
  8469. selector: unescape('basePath%3A'),
  8470. category: 'accessing',
  8471. fn: function (aString){
  8472. var self=this;
  8473. self['@basePath']=aString;
  8474. return self;},
  8475. args: ["aString"],
  8476. source: unescape('basePath%3A%20aString%0A%09basePath%20%3A%3D%20aString'),
  8477. messageSends: [],
  8478. referencedClasses: []
  8479. }),
  8480. smalltalk.FileServer);
  8481. smalltalk.addMethod(
  8482. unescape('_port'),
  8483. smalltalk.method({
  8484. selector: unescape('port'),
  8485. category: 'accessing',
  8486. fn: function (){
  8487. var self=this;
  8488. return smalltalk.send(smalltalk.send(self, "_class", []), "_port", []);
  8489. return self;},
  8490. args: [],
  8491. source: unescape('port%0A%09%5Eself%20class%20port'),
  8492. messageSends: ["port", "class"],
  8493. referencedClasses: []
  8494. }),
  8495. smalltalk.FileServer);
  8496. smalltalk.addMethod(
  8497. unescape('_initialize'),
  8498. smalltalk.method({
  8499. selector: unescape('initialize'),
  8500. category: 'initialization',
  8501. fn: function (){
  8502. var self=this;
  8503. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  8504. self['@path']=smalltalk.send(self, "_require_", ["path"]);
  8505. self['@http']=smalltalk.send(self, "_require_", ["http"]);
  8506. self['@fs']=smalltalk.send(self, "_require_", ["fs"]);
  8507. self['@sys']=smalltalk.send(self, "_require_", ["sys"]);
  8508. self['@url']=smalltalk.send(self, "_require_", ["url"]);
  8509. return self;},
  8510. args: [],
  8511. source: unescape('initialize%0A%09super%20initialize.%0A%09path%20%3A%3D%20self%20require%3A%20%27path%27.%0A%09http%20%3A%3D%20self%20require%3A%20%27http%27.%0A%09fs%20%3A%3D%20self%20require%3A%20%27fs%27.%0A%09sys%20%3A%3D%20self%20require%3A%20%27sys%27.%0A%09url%20%3A%3D%20self%20require%3A%20%27url%27'),
  8512. messageSends: ["initialize", "require:"],
  8513. referencedClasses: []
  8514. }),
  8515. smalltalk.FileServer);
  8516. smalltalk.addMethod(
  8517. unescape('_require_'),
  8518. smalltalk.method({
  8519. selector: unescape('require%3A'),
  8520. category: 'private',
  8521. fn: function (aModuleString){
  8522. var self=this;
  8523. return smalltalk.send((typeof require == 'undefined' ? nil : require), "_value_", [aModuleString]);
  8524. return self;},
  8525. args: ["aModuleString"],
  8526. source: unescape('require%3A%20aModuleString%0A%09%22call%20to%20the%20require%20function%22%0A%09%5Erequire%20value%3A%20aModuleString'),
  8527. messageSends: ["value:"],
  8528. referencedClasses: []
  8529. }),
  8530. smalltalk.FileServer);
  8531. smalltalk.addMethod(
  8532. unescape('_writeData_toFileNamed_'),
  8533. smalltalk.method({
  8534. selector: unescape('writeData%3AtoFileNamed%3A'),
  8535. category: 'private',
  8536. fn: function (data, aFilename){
  8537. var self=this;
  8538. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [aFilename]);
  8539. return self;},
  8540. args: ["data", "aFilename"],
  8541. source: unescape('writeData%3A%20data%20toFileNamed%3A%20aFilename%0A%09console%20log%3A%20aFilename'),
  8542. messageSends: ["log:"],
  8543. referencedClasses: []
  8544. }),
  8545. smalltalk.FileServer);
  8546. smalltalk.addMethod(
  8547. unescape('_respondNotFoundTo_'),
  8548. smalltalk.method({
  8549. selector: unescape('respondNotFoundTo%3A'),
  8550. category: 'request handling',
  8551. fn: function (aResponse){
  8552. var self=this;
  8553. (function($rec){smalltalk.send($rec, "_writeHead_options_", [(404), smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("Content-Type"), "__minus_gt", [unescape("text/plain")])])]);smalltalk.send($rec, "_write_", ["404 Not found"]);return smalltalk.send($rec, "_end", []);})(aResponse);
  8554. return self;},
  8555. args: ["aResponse"],
  8556. source: unescape('respondNotFoundTo%3A%20aResponse%0A%09aResponse%20%0A%09%09writeHead%3A%20404%20options%3A%20%23%7B%27Content-Type%27%20-%3E%20%27text/plain%27%7D%3B%0A%09%09write%3A%20%27404%20Not%20found%27%3B%0A%09%09end'),
  8557. messageSends: ["writeHead:options:", unescape("-%3E"), "write:", "end"],
  8558. referencedClasses: []
  8559. }),
  8560. smalltalk.FileServer);
  8561. smalltalk.addMethod(
  8562. unescape('_handleRequest_respondTo_'),
  8563. smalltalk.method({
  8564. selector: unescape('handleRequest%3ArespondTo%3A'),
  8565. category: 'request handling',
  8566. fn: function (aRequest, aResponse){
  8567. var self=this;
  8568. ((($receiver = smalltalk.send(smalltalk.send(aRequest, "_method", []), "__eq", ["PUT"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_handlePUTRequest_respondTo_", [aRequest, aResponse]);})() : (function(){return smalltalk.send(self, "_handleGETRequest_respondTo_", [aRequest, aResponse]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_handlePUTRequest_respondTo_", [aRequest, aResponse]);}), (function(){return smalltalk.send(self, "_handleGETRequest_respondTo_", [aRequest, aResponse]);})]));
  8569. return self;},
  8570. args: ["aRequest", "aResponse"],
  8571. source: unescape('handleRequest%3A%20aRequest%20respondTo%3A%20aResponse%0A%09aRequest%20method%20%3D%20%27PUT%27%0A%09%09ifTrue%3A%20%5Bself%20handlePUTRequest%3A%20aRequest%20respondTo%3A%20aResponse%5D%0A%09%09ifFalse%3A%20%5Bself%20handleGETRequest%3A%20aRequest%20respondTo%3A%20aResponse%5D'),
  8572. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "method", "handlePUTRequest:respondTo:", "handleGETRequest:respondTo:"],
  8573. referencedClasses: []
  8574. }),
  8575. smalltalk.FileServer);
  8576. smalltalk.addMethod(
  8577. unescape('_handleGETRequest_respondTo_'),
  8578. smalltalk.method({
  8579. selector: unescape('handleGETRequest%3ArespondTo%3A'),
  8580. category: 'request handling',
  8581. fn: function (aRequest, aResponse){
  8582. var self=this;
  8583. var uri=nil;
  8584. var filename=nil;
  8585. uri=smalltalk.send(smalltalk.send(self['@url'], "_parse_", [smalltalk.send(aRequest, "_url", [])]), "_pathname", []);
  8586. filename=smalltalk.send(self['@path'], "_join_with_", [smalltalk.send(self, "_basePath", []), uri]);
  8587. smalltalk.send(self['@path'], "_exists_do_", [filename, (function(boolean){return ((($receiver = boolean).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_respondNotFoundTo_", [aResponse]);})() : (function(){return smalltalk.send(self, "_respondFileNamed_to_", [filename, aResponse]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_respondNotFoundTo_", [aResponse]);}), (function(){return smalltalk.send(self, "_respondFileNamed_to_", [filename, aResponse]);})]));})]);
  8588. return self;},
  8589. args: ["aRequest", "aResponse"],
  8590. source: unescape('handleGETRequest%3A%20aRequest%20respondTo%3A%20aResponse%0A%09%7C%20uri%20filename%20%7C%0A%09uri%20%3A%3D%20%28url%20parse%3A%20aRequest%20url%29%20pathname.%0A%09filename%20%3A%3D%20path%20join%3A%20self%20basePath%20with%3A%20uri.%0A%09path%20exists%3A%20filename%20do%3A%20%5B%3Aboolean%20%7C%20%0A%09%09boolean%20%0A%09%09%09ifFalse%3A%20%5Bself%20respondNotFoundTo%3A%20aResponse%5D%0A%09%09%09ifTrue%3A%20%5Bself%20respondFileNamed%3A%20filename%20to%3A%20aResponse%5D%5D'),
  8591. messageSends: ["pathname", "parse:", "url", "join:with:", "basePath", "exists:do:", "ifFalse:ifTrue:", "respondNotFoundTo:", "respondFileNamed:to:"],
  8592. referencedClasses: []
  8593. }),
  8594. smalltalk.FileServer);
  8595. smalltalk.addMethod(
  8596. unescape('_handlePUTRequest_respondTo_'),
  8597. smalltalk.method({
  8598. selector: unescape('handlePUTRequest%3ArespondTo%3A'),
  8599. category: 'request handling',
  8600. fn: function (aRequest, aResponse){
  8601. var self=this;
  8602. var stream=nil;
  8603. stream=smalltalk.send(self['@fs'], "_createWriteStream_", [smalltalk.send(".", "__comma", [smalltalk.send(aRequest, "_url", [])])]);
  8604. smalltalk.send(aRequest, "_setEncoding_", ["utf8"]);
  8605. smalltalk.send(aRequest, "_on_do_", ["data", (function(data){return smalltalk.send(stream, "_write_", [data]);})]);
  8606. smalltalk.send(aRequest, "_on_do_", ["end", (function(){smalltalk.send(stream, "_end", []);return smalltalk.send(self, "_respondOKTo_", [aResponse]);})]);
  8607. return self;},
  8608. args: ["aRequest", "aResponse"],
  8609. source: unescape('handlePUTRequest%3A%20aRequest%20respondTo%3A%20aResponse%0A%09%7C%20stream%20%7C%0A%09stream%20%3A%3D%20fs%20createWriteStream%3A%20%27.%27%2C%20aRequest%20url.%0A%0A%09aRequest%20setEncoding%3A%20%27utf8%27.%0A%09aRequest%20on%3A%20%23data%20do%3A%20%5B%3Adata%20%7C%20stream%20write%3A%20data%5D.%0A%0A%09aRequest%20on%3A%20%23end%20do%3A%20%5B%0A%09%09stream%20end.%0A%09%09self%20respondOKTo%3A%20aResponse%5D'),
  8610. messageSends: ["createWriteStream:", unescape("%2C"), "url", "setEncoding:", "on:do:", "write:", "end", "respondOKTo:"],
  8611. referencedClasses: []
  8612. }),
  8613. smalltalk.FileServer);
  8614. smalltalk.addMethod(
  8615. unescape('_respondFileNamed_to_'),
  8616. smalltalk.method({
  8617. selector: unescape('respondFileNamed%3Ato%3A'),
  8618. category: 'request handling',
  8619. fn: function (aFilename, aResponse){
  8620. var self=this;
  8621. var type=nil;
  8622. var filename=nil;
  8623. filename=aFilename;
  8624. ((($receiver = smalltalk.send(smalltalk.send(self['@fs'], "_statSync_", [aFilename]), "_isDirectory", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return filename=smalltalk.send(filename, "__comma", ["index.html"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return filename=smalltalk.send(filename, "__comma", ["index.html"]);})]));
  8625. smalltalk.send(self['@fs'], "_readFile_do_", [filename, (function(ex, file){return ((($receiver = smalltalk.send(ex, "_notNil", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_respondInternalErrorTo_", [aResponse]);})() : (function(){type=smalltalk.send(smalltalk.send(self, "_class", []), "_mimeTypeFor_", [filename]);return (function($rec){smalltalk.send($rec, "_writeHead_options_", [(200), smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("Content-Type"), "__minus_gt", [type])])]);smalltalk.send($rec, "_write_binary_", [file, "binary"]);return smalltalk.send($rec, "_end", []);})(aResponse);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_respondInternalErrorTo_", [aResponse]);}), (function(){type=smalltalk.send(smalltalk.send(self, "_class", []), "_mimeTypeFor_", [filename]);return (function($rec){smalltalk.send($rec, "_writeHead_options_", [(200), smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("Content-Type"), "__minus_gt", [type])])]);smalltalk.send($rec, "_write_binary_", [file, "binary"]);return smalltalk.send($rec, "_end", []);})(aResponse);})]));})]);
  8626. return self;},
  8627. args: ["aFilename", "aResponse"],
  8628. source: unescape('respondFileNamed%3A%20aFilename%20to%3A%20aResponse%0A%09%7C%20type%20filename%20%7C%0A%0A%09filename%20%3A%3D%20aFilename.%0A%09%28fs%20statSync%3A%20aFilename%29%20isDirectory%20ifTrue%3A%20%5B%0A%20%20%20%20%20%20%20%20%09filename%20%3A%3D%20filename%2C%20%27index.html%27%5D.%0A%0A%09fs%20readFile%3A%20filename%20do%3A%20%5B%3Aex%20%3Afile%20%7C%0A%09%09ex%20notNil%20%0A%09%09%09ifTrue%3A%20%5Bself%20respondInternalErrorTo%3A%20aResponse%5D%0A%09%09%09ifFalse%3A%20%5B%0A%20%20%20%20%20%20%20%20%09%09%09type%20%3A%3D%20self%20class%20mimeTypeFor%3A%20filename.%0A%09%09%09%09aResponse%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09writeHead%3A%20200%20options%3A%20%20%23%7B%27Content-Type%27%20-%3E%20type%7D%3B%0A%09%09%09%09%09write%3A%20file%20binary%3A%20%27binary%27%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%09%09end%5D%5D'),
  8629. messageSends: ["ifTrue:", "isDirectory", "statSync:", unescape("%2C"), "readFile:do:", "ifTrue:ifFalse:", "notNil", "respondInternalErrorTo:", "mimeTypeFor:", "class", "writeHead:options:", unescape("-%3E"), "write:binary:", "end"],
  8630. referencedClasses: []
  8631. }),
  8632. smalltalk.FileServer);
  8633. smalltalk.addMethod(
  8634. unescape('_respondInternalErrorTo_'),
  8635. smalltalk.method({
  8636. selector: unescape('respondInternalErrorTo%3A'),
  8637. category: 'request handling',
  8638. fn: function (aResponse){
  8639. var self=this;
  8640. (function($rec){smalltalk.send($rec, "_writeHead_options_", [(500), smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("Content-Type"), "__minus_gt", [unescape("text/plain")])])]);smalltalk.send($rec, "_write_", ["500 Internal server error"]);return smalltalk.send($rec, "_end", []);})(aResponse);
  8641. return self;},
  8642. args: ["aResponse"],
  8643. source: unescape('respondInternalErrorTo%3A%20aResponse%0A%09aResponse%20%0A%09%09writeHead%3A%20500%20options%3A%20%23%7B%27Content-Type%27%20-%3E%20%27text/plain%27%7D%3B%0A%09%09write%3A%20%27500%20Internal%20server%20error%27%3B%0A%09%09end'),
  8644. messageSends: ["writeHead:options:", unescape("-%3E"), "write:", "end"],
  8645. referencedClasses: []
  8646. }),
  8647. smalltalk.FileServer);
  8648. smalltalk.addMethod(
  8649. unescape('_respondOKTo_'),
  8650. smalltalk.method({
  8651. selector: unescape('respondOKTo%3A'),
  8652. category: 'request handling',
  8653. fn: function (aResponse){
  8654. var self=this;
  8655. (function($rec){smalltalk.send($rec, "_writeHead_options_", [(200), smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("Content-Type"), "__minus_gt", [unescape("text/plain")])])]);return smalltalk.send($rec, "_end", []);})(aResponse);
  8656. return self;},
  8657. args: ["aResponse"],
  8658. source: unescape('respondOKTo%3A%20aResponse%0A%09aResponse%20%0A%09%09writeHead%3A%20200%20options%3A%20%23%7B%27Content-Type%27%20-%3E%20%27text/plain%27%7D%3B%0A%09%09end'),
  8659. messageSends: ["writeHead:options:", unescape("-%3E"), "end"],
  8660. referencedClasses: []
  8661. }),
  8662. smalltalk.FileServer);
  8663. smalltalk.addMethod(
  8664. unescape('_startOn_'),
  8665. smalltalk.method({
  8666. selector: unescape('startOn%3A'),
  8667. category: 'starting',
  8668. fn: function (aPort){
  8669. var self=this;
  8670. self['@port']=aPort;
  8671. smalltalk.send(self, "_start", []);
  8672. return self;},
  8673. args: ["aPort"],
  8674. source: unescape('startOn%3A%20aPort%0A%09port%20%3A%3D%20aPort.%0A%09self%20start'),
  8675. messageSends: ["start"],
  8676. referencedClasses: []
  8677. }),
  8678. smalltalk.FileServer);
  8679. smalltalk.addMethod(
  8680. unescape('_start'),
  8681. smalltalk.method({
  8682. selector: unescape('start'),
  8683. category: 'starting',
  8684. fn: function (){
  8685. var self=this;
  8686. smalltalk.send(smalltalk.send(self['@http'], "_createServer_", [(function(request, response){return smalltalk.send(self, "_handleRequest_respondTo_", [request, response]);})]), "_listen_", [smalltalk.send(self, "_port", [])]);
  8687. smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send("Starting file server on port ", "__comma", [smalltalk.send(smalltalk.send(self, "_port", []), "_asString", [])])]);
  8688. return self;},
  8689. args: [],
  8690. source: unescape('start%0A%09%28http%20createServer%3A%20%5B%3Arequest%20%3Aresponse%20%7C%0A%09%20%09self%20handleRequest%3A%20request%20respondTo%3A%20response%5D%29%20listen%3A%20self%20port.%0A%09console%20log%3A%20%27Starting%20file%20server%20on%20port%20%27%2C%20self%20port%20asString'),
  8691. messageSends: ["listen:", "createServer:", "handleRequest:respondTo:", "port", "log:", unescape("%2C"), "asString"],
  8692. referencedClasses: []
  8693. }),
  8694. smalltalk.FileServer);
  8695. smalltalk.FileServer.klass.iVarNames = ['port','mimeTypes'];
  8696. smalltalk.addMethod(
  8697. unescape('_port'),
  8698. smalltalk.method({
  8699. selector: unescape('port'),
  8700. category: 'accessing',
  8701. fn: function (){
  8702. var self=this;
  8703. return (($receiver = self['@port']) == nil || $receiver == undefined) ? (function(){return (4000);})() : $receiver;
  8704. return self;},
  8705. args: [],
  8706. source: unescape('port%0A%09%5Eport%20ifNil%3A%20%5B4000%5D'),
  8707. messageSends: ["ifNil:"],
  8708. referencedClasses: []
  8709. }),
  8710. smalltalk.FileServer.klass);
  8711. smalltalk.addMethod(
  8712. unescape('_port_'),
  8713. smalltalk.method({
  8714. selector: unescape('port%3A'),
  8715. category: 'accessing',
  8716. fn: function (aNumber){
  8717. var self=this;
  8718. self['@port']=aNumber;
  8719. return self;},
  8720. args: ["aNumber"],
  8721. source: unescape('port%3A%20aNumber%0A%09port%20%3A%3D%20aNumber'),
  8722. messageSends: [],
  8723. referencedClasses: []
  8724. }),
  8725. smalltalk.FileServer.klass);
  8726. smalltalk.addMethod(
  8727. unescape('_defaultMimeTypes'),
  8728. smalltalk.method({
  8729. selector: unescape('defaultMimeTypes'),
  8730. category: 'accessing',
  8731. fn: function (){
  8732. var self=this;
  8733. return smalltalk.Dictionary._fromPairs_([smalltalk.send(unescape("%25"), "__minus_gt", [unescape("application/x-trash")]),smalltalk.send("323", "__minus_gt", [unescape("text/h323")]),smalltalk.send("abw", "__minus_gt", [unescape("application/x-abiword")]),smalltalk.send("ai", "__minus_gt", [unescape("application/postscript")]),smalltalk.send("aif", "__minus_gt", [unescape("audio/x-aiff")]),smalltalk.send("aifc", "__minus_gt", [unescape("audio/x-aiff")]),smalltalk.send("aiff", "__minus_gt", [unescape("audio/x-aiff")]),smalltalk.send("alc", "__minus_gt", [unescape("chemical/x-alchemy")]),smalltalk.send("art", "__minus_gt", [unescape("image/x-jg")]),smalltalk.send("asc", "__minus_gt", [unescape("text/plain")]),smalltalk.send("asf", "__minus_gt", [unescape("video/x-ms-asf")]),smalltalk.send("asn", "__minus_gt", [unescape("chemical/x-ncbi-asn1-spec")]),smalltalk.send("aso", "__minus_gt", [unescape("chemical/x-ncbi-asn1-binary")]),smalltalk.send("asx", "__minus_gt", [unescape("video/x-ms-asf")]),smalltalk.send("au", "__minus_gt", [unescape("audio/basic")]),smalltalk.send("avi", "__minus_gt", [unescape("video/x-msvideo")]),smalltalk.send("b", "__minus_gt", [unescape("chemical/x-molconn-Z")]),smalltalk.send("bak", "__minus_gt", [unescape("application/x-trash")]),smalltalk.send("bat", "__minus_gt", [unescape("application/x-msdos-program")]),smalltalk.send("bcpio", "__minus_gt", [unescape("application/x-bcpio")]),smalltalk.send("bib", "__minus_gt", [unescape("text/x-bibtex")]),smalltalk.send("bin", "__minus_gt", [unescape("application/octet-stream")]),smalltalk.send("bmp", "__minus_gt", [unescape("image/x-ms-bmp")]),smalltalk.send("book", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("bsd", "__minus_gt", [unescape("chemical/x-crossfire")]),smalltalk.send("c", "__minus_gt", [unescape("text/x-csrc")]),smalltalk.send(unescape("c++"), "__minus_gt", [unescape("text/x-c++src")]),smalltalk.send("c3d", "__minus_gt", [unescape("chemical/x-chem3d")]),smalltalk.send("cac", "__minus_gt", [unescape("chemical/x-cache")]),smalltalk.send("cache", "__minus_gt", [unescape("chemical/x-cache")]),smalltalk.send("cascii", "__minus_gt", [unescape("chemical/x-cactvs-binary")]),smalltalk.send("cat", "__minus_gt", [unescape("application/vnd.ms-pki.seccat")]),smalltalk.send("cbin", "__minus_gt", [unescape("chemical/x-cactvs-binary")]),smalltalk.send("cc", "__minus_gt", [unescape("text/x-c++src")]),smalltalk.send("cdf", "__minus_gt", [unescape("application/x-cdf")]),smalltalk.send("cdr", "__minus_gt", [unescape("image/x-coreldraw")]),smalltalk.send("cdt", "__minus_gt", [unescape("image/x-coreldrawtemplate")]),smalltalk.send("cdx", "__minus_gt", [unescape("chemical/x-cdx")]),smalltalk.send("cdy", "__minus_gt", [unescape("application/vnd.cinderella")]),smalltalk.send("cef", "__minus_gt", [unescape("chemical/x-cxf")]),smalltalk.send("cer", "__minus_gt", [unescape("chemical/x-cerius")]),smalltalk.send("chm", "__minus_gt", [unescape("chemical/x-chemdraw")]),smalltalk.send("chrt", "__minus_gt", [unescape("application/x-kchart")]),smalltalk.send("cif", "__minus_gt", [unescape("chemical/x-cif")]),smalltalk.send("class", "__minus_gt", [unescape("application/java-vm")]),smalltalk.send("cls", "__minus_gt", [unescape("text/x-tex")]),smalltalk.send("cmdf", "__minus_gt", [unescape("chemical/x-cmdf")]),smalltalk.send("cml", "__minus_gt", [unescape("chemical/x-cml")]),smalltalk.send("cod", "__minus_gt", [unescape("application/vnd.rim.cod")]),smalltalk.send("com", "__minus_gt", [unescape("application/x-msdos-program")]),smalltalk.send("cpa", "__minus_gt", [unescape("chemical/x-compass")]),smalltalk.send("cpio", "__minus_gt", [unescape("application/x-cpio")]),smalltalk.send("cpp", "__minus_gt", [unescape("text/x-c++src")]),smalltalk.send("cpt", "__minus_gt", [unescape("image/x-corelphotopaint")]),smalltalk.send("crl", "__minus_gt", [unescape("application/x-pkcs7-crl")]),smalltalk.send("crt", "__minus_gt", [unescape("application/x-x509-ca-cert")]),smalltalk.send("csf", "__minus_gt", [unescape("chemical/x-cache-csf")]),smalltalk.send("csh", "__minus_gt", [unescape("text/x-csh")]),smalltalk.send("csm", "__minus_gt", [unescape("chemical/x-csml")]),smalltalk.send("csml", "__minus_gt", [unescape("chemical/x-csml")]),smalltalk.send("css", "__minus_gt", [unescape("text/css")]),smalltalk.send("csv", "__minus_gt", [unescape("text/comma-separated-values")]),smalltalk.send("ctab", "__minus_gt", [unescape("chemical/x-cactvs-binary")]),smalltalk.send("ctx", "__minus_gt", [unescape("chemical/x-ctx")]),smalltalk.send("cu", "__minus_gt", [unescape("application/cu-seeme")]),smalltalk.send("cub", "__minus_gt", [unescape("chemical/x-gaussian-cube")]),smalltalk.send("cxf", "__minus_gt", [unescape("chemical/x-cxf")]),smalltalk.send("cxx", "__minus_gt", [unescape("text/x-c++src")]),smalltalk.send("dat", "__minus_gt", [unescape("chemical/x-mopac-input")]),smalltalk.send("dcr", "__minus_gt", [unescape("application/x-director")]),smalltalk.send("deb", "__minus_gt", [unescape("application/x-debian-package")]),smalltalk.send("dif", "__minus_gt", [unescape("video/dv")]),smalltalk.send("diff", "__minus_gt", [unescape("text/plain")]),smalltalk.send("dir", "__minus_gt", [unescape("application/x-director")]),smalltalk.send("djv", "__minus_gt", [unescape("image/vnd.djvu")]),smalltalk.send("djvu", "__minus_gt", [unescape("image/vnd.djvu")]),smalltalk.send("dl", "__minus_gt", [unescape("video/dl")]),smalltalk.send("dll", "__minus_gt", [unescape("application/x-msdos-program")]),smalltalk.send("dmg", "__minus_gt", [unescape("application/x-apple-diskimage")]),smalltalk.send("dms", "__minus_gt", [unescape("application/x-dms")]),smalltalk.send("doc", "__minus_gt", [unescape("application/msword")]),smalltalk.send("dot", "__minus_gt", [unescape("application/msword")]),smalltalk.send("dv", "__minus_gt", [unescape("video/dv")]),smalltalk.send("dvi", "__minus_gt", [unescape("application/x-dvi")]),smalltalk.send("dx", "__minus_gt", [unescape("chemical/x-jcamp-dx")]),smalltalk.send("dxr", "__minus_gt", [unescape("application/x-director")]),smalltalk.send("emb", "__minus_gt", [unescape("chemical/x-embl-dl-nucleotide")]),smalltalk.send("embl", "__minus_gt", [unescape("chemical/x-embl-dl-nucleotide")]),smalltalk.send("ent", "__minus_gt", [unescape("chemical/x-pdb")]),smalltalk.send("eps", "__minus_gt", [unescape("application/postscript")]),smalltalk.send("etx", "__minus_gt", [unescape("text/x-setext")]),smalltalk.send("exe", "__minus_gt", [unescape("application/x-msdos-program")]),smalltalk.send("ez", "__minus_gt", [unescape("application/andrew-inset")]),smalltalk.send("fb", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("fbdoc", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("fch", "__minus_gt", [unescape("chemical/x-gaussian-checkpoint")]),smalltalk.send("fchk", "__minus_gt", [unescape("chemical/x-gaussian-checkpoint")]),smalltalk.send("fig", "__minus_gt", [unescape("application/x-xfig")]),smalltalk.send("flac", "__minus_gt", [unescape("application/x-flac")]),smalltalk.send("fli", "__minus_gt", [unescape("video/fli")]),smalltalk.send("fm", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("frame", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("frm", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("gal", "__minus_gt", [unescape("chemical/x-gaussian-log")]),smalltalk.send("gam", "__minus_gt", [unescape("chemical/x-gamess-input")]),smalltalk.send("gamin", "__minus_gt", [unescape("chemical/x-gamess-input")]),smalltalk.send("gau", "__minus_gt", [unescape("chemical/x-gaussian-input")]),smalltalk.send("gcd", "__minus_gt", [unescape("text/x-pcs-gcd")]),smalltalk.send("gcf", "__minus_gt", [unescape("application/x-graphing-calculator")]),smalltalk.send("gcg", "__minus_gt", [unescape("chemical/x-gcg8-sequence")]),smalltalk.send("gen", "__minus_gt", [unescape("chemical/x-genbank")]),smalltalk.send("gf", "__minus_gt", [unescape("application/x-tex-gf")]),smalltalk.send("gif", "__minus_gt", [unescape("image/gif")]),smalltalk.send("gjc", "__minus_gt", [unescape("chemical/x-gaussian-input")]),smalltalk.send("gjf", "__minus_gt", [unescape("chemical/x-gaussian-input")]),smalltalk.send("gl", "__minus_gt", [unescape("video/gl")]),smalltalk.send("gnumeric", "__minus_gt", [unescape("application/x-gnumeric")]),smalltalk.send("gpt", "__minus_gt", [unescape("chemical/x-mopac-graph")]),smalltalk.send("gsf", "__minus_gt", [unescape("application/x-font")]),smalltalk.send("gsm", "__minus_gt", [unescape("audio/x-gsm")]),smalltalk.send("gtar", "__minus_gt", [unescape("application/x-gtar")]),smalltalk.send("h", "__minus_gt", [unescape("text/x-chdr")]),smalltalk.send(unescape("h++"), "__minus_gt", [unescape("text/x-c++hdr")]),smalltalk.send("hdf", "__minus_gt", [unescape("application/x-hdf")]),smalltalk.send("hh", "__minus_gt", [unescape("text/x-c++hdr")]),smalltalk.send("hin", "__minus_gt", [unescape("chemical/x-hin")]),smalltalk.send("hpp", "__minus_gt", [unescape("text/x-c++hdr")]),smalltalk.send("hqx", "__minus_gt", [unescape("application/mac-binhex40")]),smalltalk.send("hs", "__minus_gt", [unescape("text/x-haskell")]),smalltalk.send("hta", "__minus_gt", [unescape("application/hta")]),smalltalk.send("htc", "__minus_gt", [unescape("text/x-component")]),smalltalk.send("htm", "__minus_gt", [unescape("text/html")]),smalltalk.send("html", "__minus_gt", [unescape("text/html")]),smalltalk.send("hxx", "__minus_gt", [unescape("text/x-c++hdr")]),smalltalk.send("ica", "__minus_gt", [unescape("application/x-ica")]),smalltalk.send("ice", "__minus_gt", [unescape("x-conference/x-cooltalk")]),smalltalk.send("ico", "__minus_gt", [unescape("image/x-icon")]),smalltalk.send("ics", "__minus_gt", [unescape("text/calendar")]),smalltalk.send("icz", "__minus_gt", [unescape("text/calendar")]),smalltalk.send("ief", "__minus_gt", [unescape("image/ief")]),smalltalk.send("iges", "__minus_gt", [unescape("model/iges")]),smalltalk.send("igs", "__minus_gt", [unescape("model/iges")]),smalltalk.send("iii", "__minus_gt", [unescape("application/x-iphone")]),smalltalk.send("inp", "__minus_gt", [unescape("chemical/x-gamess-input")]),smalltalk.send("ins", "__minus_gt", [unescape("application/x-internet-signup")]),smalltalk.send("iso", "__minus_gt", [unescape("application/x-iso9660-image")]),smalltalk.send("isp", "__minus_gt", [unescape("application/x-internet-signup")]),smalltalk.send("ist", "__minus_gt", [unescape("chemical/x-isostar")]),smalltalk.send("istr", "__minus_gt", [unescape("chemical/x-isostar")]),smalltalk.send("jad", "__minus_gt", [unescape("text/vnd.sun.j2me.app-descriptor")]),smalltalk.send("jar", "__minus_gt", [unescape("application/java-archive")]),smalltalk.send("java", "__minus_gt", [unescape("text/x-java")]),smalltalk.send("jdx", "__minus_gt", [unescape("chemical/x-jcamp-dx")]),smalltalk.send("jmz", "__minus_gt", [unescape("application/x-jmol")]),smalltalk.send("jng", "__minus_gt", [unescape("image/x-jng")]),smalltalk.send("jnlp", "__minus_gt", [unescape("application/x-java-jnlp-file")]),smalltalk.send("jpe", "__minus_gt", [unescape("image/jpeg")]),smalltalk.send("jpeg", "__minus_gt", [unescape("image/jpeg")]),smalltalk.send("jpg", "__minus_gt", [unescape("image/jpeg")]),smalltalk.send("js", "__minus_gt", [unescape("application/javascript")]),smalltalk.send("kar", "__minus_gt", [unescape("audio/midi")]),smalltalk.send("key", "__minus_gt", [unescape("application/pgp-keys")]),smalltalk.send("kil", "__minus_gt", [unescape("application/x-killustrator")]),smalltalk.send("kin", "__minus_gt", [unescape("chemical/x-kinemage")]),smalltalk.send("kpr", "__minus_gt", [unescape("application/x-kpresenter")]),smalltalk.send("kpt", "__minus_gt", [unescape("application/x-kpresenter")]),smalltalk.send("ksp", "__minus_gt", [unescape("application/x-kspread")]),smalltalk.send("kwd", "__minus_gt", [unescape("application/x-kword")]),smalltalk.send("kwt", "__minus_gt", [unescape("application/x-kword")]),smalltalk.send("latex", "__minus_gt", [unescape("application/x-latex")]),smalltalk.send("lha", "__minus_gt", [unescape("application/x-lha")]),smalltalk.send("lhs", "__minus_gt", [unescape("text/x-literate-haskell")]),smalltalk.send("lsf", "__minus_gt", [unescape("video/x-la-asf")]),smalltalk.send("lsx", "__minus_gt", [unescape("video/x-la-asf")]),smalltalk.send("ltx", "__minus_gt", [unescape("text/x-tex")]),smalltalk.send("lzh", "__minus_gt", [unescape("application/x-lzh")]),smalltalk.send("lzx", "__minus_gt", [unescape("application/x-lzx")]),smalltalk.send("m3u", "__minus_gt", [unescape("audio/x-mpegurl")]),smalltalk.send("m4a", "__minus_gt", [unescape("audio/mpeg")]),smalltalk.send("maker", "__minus_gt", [unescape("application/x-maker")]),smalltalk.send("man", "__minus_gt", [unescape("application/x-troff-man")]),smalltalk.send("mcif", "__minus_gt", [unescape("chemical/x-mmcif")]),smalltalk.send("mcm", "__minus_gt", [unescape("chemical/x-macmolecule")]),smalltalk.send("mdb", "__minus_gt", [unescape("application/msaccess")]),smalltalk.send("me", "__minus_gt", [unescape("application/x-troff-me")]),smalltalk.send("mesh", "__minus_gt", [unescape("model/mesh")]),smalltalk.send("mid", "__minus_gt", [unescape("audio/midi")]),smalltalk.send("midi", "__minus_gt", [unescape("audio/midi")]),smalltalk.send("mif", "__minus_gt", [unescape("application/x-mif")]),smalltalk.send("mm", "__minus_gt", [unescape("application/x-freemind")]),smalltalk.send("mmd", "__minus_gt", [unescape("chemical/x-macromodel-input")]),smalltalk.send("mmf", "__minus_gt", [unescape("application/vnd.smaf")]),smalltalk.send("mml", "__minus_gt", [unescape("text/mathml")]),smalltalk.send("mmod", "__minus_gt", [unescape("chemical/x-macromodel-input")]),smalltalk.send("mng", "__minus_gt", [unescape("video/x-mng")]),smalltalk.send("moc", "__minus_gt", [unescape("text/x-moc")]),smalltalk.send("mol", "__minus_gt", [unescape("chemical/x-mdl-molfile")]),smalltalk.send("mol2", "__minus_gt", [unescape("chemical/x-mol2")]),smalltalk.send("moo", "__minus_gt", [unescape("chemical/x-mopac-out")]),smalltalk.send("mop", "__minus_gt", [unescape("chemical/x-mopac-input")]),smalltalk.send("mopcrt", "__minus_gt", [unescape("chemical/x-mopac-input")]),smalltalk.send("mov", "__minus_gt", [unescape("video/quicktime")]),smalltalk.send("movie", "__minus_gt", [unescape("video/x-sgi-movie")]),smalltalk.send("mp2", "__minus_gt", [unescape("audio/mpeg")]),smalltalk.send("mp3", "__minus_gt", [unescape("audio/mpeg")]),smalltalk.send("mp4", "__minus_gt", [unescape("video/mp4")]),smalltalk.send("mpc", "__minus_gt", [unescape("chemical/x-mopac-input")]),smalltalk.send("mpe", "__minus_gt", [unescape("video/mpeg")]),smalltalk.send("mpeg", "__minus_gt", [unescape("video/mpeg")]),smalltalk.send("mpega", "__minus_gt", [unescape("audio/mpeg")]),smalltalk.send("mpg", "__minus_gt", [unescape("video/mpeg")]),smalltalk.send("mpga", "__minus_gt", [unescape("audio/mpeg")]),smalltalk.send("ms", "__minus_gt", [unescape("application/x-troff-ms")]),smalltalk.send("msh", "__minus_gt", [unescape("model/mesh")]),smalltalk.send("msi", "__minus_gt", [unescape("application/x-msi")]),smalltalk.send("mvb", "__minus_gt", [unescape("chemical/x-mopac-vib")]),smalltalk.send("mxu", "__minus_gt", [unescape("video/vnd.mpegurl")]),smalltalk.send("nb", "__minus_gt", [unescape("application/mathematica")]),smalltalk.send("nc", "__minus_gt", [unescape("application/x-netcdf")]),smalltalk.send("nwc", "__minus_gt", [unescape("application/x-nwc")]),smalltalk.send("o", "__minus_gt", [unescape("application/x-object")]),smalltalk.send("oda", "__minus_gt", [unescape("application/oda")]),smalltalk.send("odb", "__minus_gt", [unescape("application/vnd.oasis.opendocument.database")]),smalltalk.send("odc", "__minus_gt", [unescape("application/vnd.oasis.opendocument.chart")]),smalltalk.send("odf", "__minus_gt", [unescape("application/vnd.oasis.opendocument.formula")]),smalltalk.send("odg", "__minus_gt", [unescape("application/vnd.oasis.opendocument.graphics")]),smalltalk.send("odi", "__minus_gt", [unescape("application/vnd.oasis.opendocument.image")]),smalltalk.send("odm", "__minus_gt", [unescape("application/vnd.oasis.opendocument.text-master")]),smalltalk.send("odp", "__minus_gt", [unescape("application/vnd.oasis.opendocument.presentation")]),smalltalk.send("ods", "__minus_gt", [unescape("application/vnd.oasis.opendocument.spreadsheet")]),smalltalk.send("odt", "__minus_gt", [unescape("application/vnd.oasis.opendocument.text")]),smalltalk.send("ogg", "__minus_gt", [unescape("application/ogg")]),smalltalk.send("old", "__minus_gt", [unescape("application/x-trash")]),smalltalk.send("oth", "__minus_gt", [unescape("application/vnd.oasis.opendocument.text-web")]),smalltalk.send("oza", "__minus_gt", [unescape("application/x-oz-application")]),smalltalk.send("p", "__minus_gt", [unescape("text/x-pascal")]),smalltalk.send("p7r", "__minus_gt", [unescape("application/x-pkcs7-certreqresp")]),smalltalk.send("pac", "__minus_gt", [unescape("application/x-ns-proxy-autoconfig")]),smalltalk.send("pas", "__minus_gt", [unescape("text/x-pascal")]),smalltalk.send("pat", "__minus_gt", [unescape("image/x-coreldrawpattern")]),smalltalk.send("pbm", "__minus_gt", [unescape("image/x-portable-bitmap")]),smalltalk.send("pcf", "__minus_gt", [unescape("application/x-font")]),smalltalk.send("pcf.Z", "__minus_gt", [unescape("application/x-font")]),smalltalk.send("pcx", "__minus_gt", [unescape("image/pcx")]),smalltalk.send("pdb", "__minus_gt", [unescape("chemical/x-pdb")]),smalltalk.send("pdf", "__minus_gt", [unescape("application/pdf")]),smalltalk.send("pfa", "__minus_gt", [unescape("application/x-font")]),smalltalk.send("pfb", "__minus_gt", [unescape("application/x-font")]),smalltalk.send("pgm", "__minus_gt", [unescape("image/x-portable-graymap")]),smalltalk.send("pgn", "__minus_gt", [unescape("application/x-chess-pgn")]),smalltalk.send("pgp", "__minus_gt", [unescape("application/pgp-signature")]),smalltalk.send("pk", "__minus_gt", [unescape("application/x-tex-pk")]),smalltalk.send("pl", "__minus_gt", [unescape("text/x-perl")]),smalltalk.send("pls", "__minus_gt", [unescape("audio/x-scpls")]),smalltalk.send("pm", "__minus_gt", [unescape("text/x-perl")]),smalltalk.send("png", "__minus_gt", [unescape("image/png")]),smalltalk.send("pnm", "__minus_gt", [unescape("image/x-portable-anymap")]),smalltalk.send("pot", "__minus_gt", [unescape("text/plain")]),smalltalk.send("ppm", "__minus_gt", [unescape("image/x-portable-pixmap")]),smalltalk.send("pps", "__minus_gt", [unescape("application/vnd.ms-powerpoint")]),smalltalk.send("ppt", "__minus_gt", [unescape("application/vnd.ms-powerpoint")]),smalltalk.send("prf", "__minus_gt", [unescape("application/pics-rules")]),smalltalk.send("prt", "__minus_gt", [unescape("chemical/x-ncbi-asn1-ascii")]),smalltalk.send("ps", "__minus_gt", [unescape("application/postscript")]),smalltalk.send("psd", "__minus_gt", [unescape("image/x-photoshop")]),smalltalk.send("psp", "__minus_gt", [unescape("text/x-psp")]),smalltalk.send("py", "__minus_gt", [unescape("text/x-python")]),smalltalk.send("pyc", "__minus_gt", [unescape("application/x-python-code")]),smalltalk.send("pyo", "__minus_gt", [unescape("application/x-python-code")]),smalltalk.send("qt", "__minus_gt", [unescape("video/quicktime")]),smalltalk.send("qtl", "__minus_gt", [unescape("application/x-quicktimeplayer")]),smalltalk.send("ra", "__minus_gt", [unescape("audio/x-realaudio")]),smalltalk.send("ram", "__minus_gt", [unescape("audio/x-pn-realaudio")]),smalltalk.send("rar", "__minus_gt", [unescape("application/rar")]),smalltalk.send("ras", "__minus_gt", [unescape("image/x-cmu-raster")]),smalltalk.send("rd", "__minus_gt", [unescape("chemical/x-mdl-rdfile")]),smalltalk.send("rdf", "__minus_gt", [unescape("application/rdf+xml")]),smalltalk.send("rgb", "__minus_gt", [unescape("image/x-rgb")]),smalltalk.send("rm", "__minus_gt", [unescape("audio/x-pn-realaudio")]),smalltalk.send("roff", "__minus_gt", [unescape("application/x-troff")]),smalltalk.send("ros", "__minus_gt", [unescape("chemical/x-rosdal")]),smalltalk.send("rpm", "__minus_gt", [unescape("application/x-redhat-package-manager")]),smalltalk.send("rss", "__minus_gt", [unescape("application/rss+xml")]),smalltalk.send("rtf", "__minus_gt", [unescape("text/rtf")]),smalltalk.send("rtx", "__minus_gt", [unescape("text/richtext")]),smalltalk.send("rxn", "__minus_gt", [unescape("chemical/x-mdl-rxnfile")]),smalltalk.send("sct", "__minus_gt", [unescape("text/scriptlet")]),smalltalk.send("sd", "__minus_gt", [unescape("chemical/x-mdl-sdfile")]),smalltalk.send("sd2", "__minus_gt", [unescape("audio/x-sd2")]),smalltalk.send("sda", "__minus_gt", [unescape("application/vnd.stardivision.draw")]),smalltalk.send("sdc", "__minus_gt", [unescape("application/vnd.stardivision.calc")]),smalltalk.send("sdd", "__minus_gt", [unescape("application/vnd.stardivision.impress")]),smalltalk.send("sdf", "__minus_gt", [unescape("chemical/x-mdl-sdfile")]),smalltalk.send("sdp", "__minus_gt", [unescape("application/vnd.stardivision.impress")]),smalltalk.send("sdw", "__minus_gt", [unescape("application/vnd.stardivision.writer")]),smalltalk.send("ser", "__minus_gt", [unescape("application/java-serialized-object")]),smalltalk.send("sgf", "__minus_gt", [unescape("application/x-go-sgf")]),smalltalk.send("sgl", "__minus_gt", [unescape("application/vnd.stardivision.writer-global")]),smalltalk.send("sh", "__minus_gt", [unescape("text/x-sh")]),smalltalk.send("shar", "__minus_gt", [unescape("application/x-shar")]),smalltalk.send("shtml", "__minus_gt", [unescape("text/html")]),smalltalk.send("sid", "__minus_gt", [unescape("audio/prs.sid")]),smalltalk.send("sik", "__minus_gt", [unescape("application/x-trash")]),smalltalk.send("silo", "__minus_gt", [unescape("model/mesh")]),smalltalk.send("sis", "__minus_gt", [unescape("application/vnd.symbian.install")]),smalltalk.send("sit", "__minus_gt", [unescape("application/x-stuffit")]),smalltalk.send("skd", "__minus_gt", [unescape("application/x-koan")]),smalltalk.send("skm", "__minus_gt", [unescape("application/x-koan")]),smalltalk.send("skp", "__minus_gt", [unescape("application/x-koan")]),smalltalk.send("skt", "__minus_gt", [unescape("application/x-koan")]),smalltalk.send("smf", "__minus_gt", [unescape("application/vnd.stardivision.math")]),smalltalk.send("smi", "__minus_gt", [unescape("application/smil")]),smalltalk.send("smil", "__minus_gt", [unescape("application/smil")]),smalltalk.send("snd", "__minus_gt", [unescape("audio/basic")]),smalltalk.send("spc", "__minus_gt", [unescape("chemical/x-galactic-spc")]),smalltalk.send("spl", "__minus_gt", [unescape("application/x-futuresplash")]),smalltalk.send("src", "__minus_gt", [unescape("application/x-wais-source")]),smalltalk.send("stc", "__minus_gt", [unescape("application/vnd.sun.xml.calc.template")]),smalltalk.send("std", "__minus_gt", [unescape("application/vnd.sun.xml.draw.template")]),smalltalk.send("sti", "__minus_gt", [unescape("application/vnd.sun.xml.impress.template")]),smalltalk.send("stl", "__minus_gt", [unescape("application/vnd.ms-pki.stl")]),smalltalk.send("stw", "__minus_gt", [unescape("application/vnd.sun.xml.writer.template")]),smalltalk.send("sty", "__minus_gt", [unescape("text/x-tex")]),smalltalk.send("sv4cpio", "__minus_gt", [unescape("application/x-sv4cpio")]),smalltalk.send("sv4crc", "__minus_gt", [unescape("application/x-sv4crc")]),smalltalk.send("svg", "__minus_gt", [unescape("image/svg+xml")]),smalltalk.send("svgz", "__minus_gt", [unescape("image/svg+xml")]),smalltalk.send("sw", "__minus_gt", [unescape("chemical/x-swissprot")]),smalltalk.send("swf", "__minus_gt", [unescape("application/x-shockwave-flash")]),smalltalk.send("swfl", "__minus_gt", [unescape("application/x-shockwave-flash")]),smalltalk.send("sxc", "__minus_gt", [unescape("application/vnd.sun.xml.calc")]),smalltalk.send("sxd", "__minus_gt", [unescape("application/vnd.sun.xml.draw")]),smalltalk.send("sxg", "__minus_gt", [unescape("application/vnd.sun.xml.writer.global")]),smalltalk.send("sxi", "__minus_gt", [unescape("application/vnd.sun.xml.impress")]),smalltalk.send("sxm", "__minus_gt", [unescape("application/vnd.sun.xml.math")]),smalltalk.send("sxw", "__minus_gt", [unescape("application/vnd.sun.xml.writer")]),smalltalk.send("t", "__minus_gt", [unescape("application/x-troff")]),smalltalk.send("tar", "__minus_gt", [unescape("application/x-tar")]),smalltalk.send("taz", "__minus_gt", [unescape("application/x-gtar")]),smalltalk.send("tcl", "__minus_gt", [unescape("text/x-tcl")]),smalltalk.send("tex", "__minus_gt", [unescape("text/x-tex")]),smalltalk.send("texi", "__minus_gt", [unescape("application/x-texinfo")]),smalltalk.send("texinfo", "__minus_gt", [unescape("application/x-texinfo")]),smalltalk.send("text", "__minus_gt", [unescape("text/plain")]),smalltalk.send("tgf", "__minus_gt", [unescape("chemical/x-mdl-tgf")]),smalltalk.send("tgz", "__minus_gt", [unescape("application/x-gtar")]),smalltalk.send("tif", "__minus_gt", [unescape("image/tiff")]),smalltalk.send("tiff", "__minus_gt", [unescape("image/tiff")]),smalltalk.send("tk", "__minus_gt", [unescape("text/x-tcl")]),smalltalk.send("tm", "__minus_gt", [unescape("text/texmacs")]),smalltalk.send("torrent", "__minus_gt", [unescape("application/x-bittorrent")]),smalltalk.send("tr", "__minus_gt", [unescape("application/x-troff")]),smalltalk.send("ts", "__minus_gt", [unescape("text/texmacs")]),smalltalk.send("tsp", "__minus_gt", [unescape("application/dsptype")]),smalltalk.send("tsv", "__minus_gt", [unescape("text/tab-separated-values")]),smalltalk.send("txt", "__minus_gt", [unescape("text/plain")]),smalltalk.send("udeb", "__minus_gt", [unescape("application/x-debian-package")]),smalltalk.send("uls", "__minus_gt", [unescape("text/iuls")]),smalltalk.send("ustar", "__minus_gt", [unescape("application/x-ustar")]),smalltalk.send("val", "__minus_gt", [unescape("chemical/x-ncbi-asn1-binary")]),smalltalk.send("vcd", "__minus_gt", [unescape("application/x-cdlink")]),smalltalk.send("vcf", "__minus_gt", [unescape("text/x-vcard")]),smalltalk.send("vcs", "__minus_gt", [unescape("text/x-vcalendar")]),smalltalk.send("vmd", "__minus_gt", [unescape("chemical/x-vmd")]),smalltalk.send("vms", "__minus_gt", [unescape("chemical/x-vamas-iso14976")]),smalltalk.send("vor", "__minus_gt", [unescape("application/vnd.stardivision.writer")]),smalltalk.send("vrm", "__minus_gt", [unescape("x-world/x-vrml")]),smalltalk.send("vrml", "__minus_gt", [unescape("x-world/x-vrml")]),smalltalk.send("vsd", "__minus_gt", [unescape("application/vnd.visio")]),smalltalk.send("wad", "__minus_gt", [unescape("application/x-doom")]),smalltalk.send("wav", "__minus_gt", [unescape("audio/x-wav")]),smalltalk.send("wax", "__minus_gt", [unescape("audio/x-ms-wax")]),smalltalk.send("wbmp", "__minus_gt", [unescape("image/vnd.wap.wbmp")]),smalltalk.send("wbxml", "__minus_gt", [unescape("application/vnd.wap.wbxml")]),smalltalk.send("wk", "__minus_gt", [unescape("application/x-123")]),smalltalk.send("wm", "__minus_gt", [unescape("video/x-ms-wm")]),smalltalk.send("wma", "__minus_gt", [unescape("audio/x-ms-wma")]),smalltalk.send("wmd", "__minus_gt", [unescape("application/x-ms-wmd")]),smalltalk.send("wml", "__minus_gt", [unescape("text/vnd.wap.wml")]),smalltalk.send("wmlc", "__minus_gt", [unescape("application/vnd.wap.wmlc")]),smalltalk.send("wmls", "__minus_gt", [unescape("text/vnd.wap.wmlscript")]),smalltalk.send("wmlsc", "__minus_gt", [unescape("application/vnd.wap.wmlscriptc")]),smalltalk.send("wmv", "__minus_gt", [unescape("video/x-ms-wmv")]),smalltalk.send("wmx", "__minus_gt", [unescape("video/x-ms-wmx")]),smalltalk.send("wmz", "__minus_gt", [unescape("application/x-ms-wmz")]),smalltalk.send("wp5", "__minus_gt", [unescape("application/wordperfect5.1")]),smalltalk.send("wpd", "__minus_gt", [unescape("application/wordperfect")]),smalltalk.send("wrl", "__minus_gt", [unescape("x-world/x-vrml")]),smalltalk.send("wsc", "__minus_gt", [unescape("text/scriptlet")]),smalltalk.send("wvx", "__minus_gt", [unescape("video/x-ms-wvx")]),smalltalk.send("wz", "__minus_gt", [unescape("application/x-wingz")]),smalltalk.send("xbm", "__minus_gt", [unescape("image/x-xbitmap")]),smalltalk.send("xcf", "__minus_gt", [unescape("application/x-xcf")]),smalltalk.send("xht", "__minus_gt", [unescape("application/xhtml+xml")]),smalltalk.send("xhtml", "__minus_gt", [unescape("application/xhtml+xml")]),smalltalk.send("xlb", "__minus_gt", [unescape("application/vnd.ms-excel")]),smalltalk.send("xls", "__minus_gt", [unescape("application/vnd.ms-excel")]),smalltalk.send("xlt", "__minus_gt", [unescape("application/vnd.ms-excel")]),smalltalk.send("xml", "__minus_gt", [unescape("application/xml")]),smalltalk.send("xpi", "__minus_gt", [unescape("application/x-xpinstall")]),smalltalk.send("xpm", "__minus_gt", [unescape("image/x-xpixmap")]),smalltalk.send("xsl", "__minus_gt", [unescape("application/xml")]),smalltalk.send("xtel", "__minus_gt", [unescape("chemical/x-xtel")]),smalltalk.send("xul", "__minus_gt", [unescape("application/vnd.mozilla.xul+xml")]),smalltalk.send("xwd", "__minus_gt", [unescape("image/x-xwindowdump")]),smalltalk.send("xyz", "__minus_gt", [unescape("chemical/x-xyz")]),smalltalk.send("zip", "__minus_gt", [unescape("application/zip")]),smalltalk.send("zmt", "__minus_gt", [unescape("chemical/x-mopac-input")]),smalltalk.send(unescape("%7E"), "__minus_gt", [unescape("application/x-trash")])]);
  8734. return self;},
  8735. args: [],
  8736. source: unescape('defaultMimeTypes%0A%09%5E%20%23%7B%0A%09%09%27%25%27%20-%3E%20%27application/x-trash%27.%0A%09%09%27323%27%20-%3E%20%27text/h323%27.%0A%09%09%27abw%27%20-%3E%20%27application/x-abiword%27.%0A%09%09%27ai%27%20-%3E%20%27application/postscript%27.%0A%09%09%27aif%27%20-%3E%20%27audio/x-aiff%27.%0A%09%09%27aifc%27%20-%3E%20%27audio/x-aiff%27.%0A%09%09%27aiff%27%20-%3E%20%27audio/x-aiff%27.%0A%09%09%27alc%27%20-%3E%20%27chemical/x-alchemy%27.%0A%09%09%27art%27%20-%3E%20%27image/x-jg%27.%0A%09%09%27asc%27%20-%3E%20%27text/plain%27.%0A%09%09%27asf%27%20-%3E%20%27video/x-ms-asf%27.%0A%09%09%27asn%27%20-%3E%20%27chemical/x-ncbi-asn1-spec%27.%0A%09%09%27aso%27%20-%3E%20%27chemical/x-ncbi-asn1-binary%27.%0A%09%09%27asx%27%20-%3E%20%27video/x-ms-asf%27.%0A%09%09%27au%27%20-%3E%20%27audio/basic%27.%0A%09%09%27avi%27%20-%3E%20%27video/x-msvideo%27.%0A%09%09%27b%27%20-%3E%20%27chemical/x-molconn-Z%27.%0A%09%09%27bak%27%20-%3E%20%27application/x-trash%27.%0A%09%09%27bat%27%20-%3E%20%27application/x-msdos-program%27.%0A%09%09%27bcpio%27%20-%3E%20%27application/x-bcpio%27.%0A%09%09%27bib%27%20-%3E%20%27text/x-bibtex%27.%0A%09%09%27bin%27%20-%3E%20%27application/octet-stream%27.%0A%09%09%27bmp%27%20-%3E%20%27image/x-ms-bmp%27.%0A%09%09%27book%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27bsd%27%20-%3E%20%27chemical/x-crossfire%27.%0A%09%09%27c%27%20-%3E%20%27text/x-csrc%27.%0A%09%09%27c++%27%20-%3E%20%27text/x-c++src%27.%0A%09%09%27c3d%27%20-%3E%20%27chemical/x-chem3d%27.%0A%09%09%27cac%27%20-%3E%20%27chemical/x-cache%27.%0A%09%09%27cache%27%20-%3E%20%27chemical/x-cache%27.%0A%09%09%27cascii%27%20-%3E%20%27chemical/x-cactvs-binary%27.%0A%09%09%27cat%27%20-%3E%20%27application/vnd.ms-pki.seccat%27.%0A%09%09%27cbin%27%20-%3E%20%27chemical/x-cactvs-binary%27.%0A%09%09%27cc%27%20-%3E%20%27text/x-c++src%27.%0A%09%09%27cdf%27%20-%3E%20%27application/x-cdf%27.%0A%09%09%27cdr%27%20-%3E%20%27image/x-coreldraw%27.%0A%09%09%27cdt%27%20-%3E%20%27image/x-coreldrawtemplate%27.%0A%09%09%27cdx%27%20-%3E%20%27chemical/x-cdx%27.%0A%09%09%27cdy%27%20-%3E%20%27application/vnd.cinderella%27.%0A%09%09%27cef%27%20-%3E%20%27chemical/x-cxf%27.%0A%09%09%27cer%27%20-%3E%20%27chemical/x-cerius%27.%0A%09%09%27chm%27%20-%3E%20%27chemical/x-chemdraw%27.%0A%09%09%27chrt%27%20-%3E%20%27application/x-kchart%27.%0A%09%09%27cif%27%20-%3E%20%27chemical/x-cif%27.%0A%09%09%27class%27%20-%3E%20%27application/java-vm%27.%0A%09%09%27cls%27%20-%3E%20%27text/x-tex%27.%0A%09%09%27cmdf%27%20-%3E%20%27chemical/x-cmdf%27.%0A%09%09%27cml%27%20-%3E%20%27chemical/x-cml%27.%0A%09%09%27cod%27%20-%3E%20%27application/vnd.rim.cod%27.%0A%09%09%27com%27%20-%3E%20%27application/x-msdos-program%27.%0A%09%09%27cpa%27%20-%3E%20%27chemical/x-compass%27.%0A%09%09%27cpio%27%20-%3E%20%27application/x-cpio%27.%0A%09%09%27cpp%27%20-%3E%20%27text/x-c++src%27.%0A%09%09%27cpt%27%20-%3E%20%27image/x-corelphotopaint%27.%0A%09%09%27crl%27%20-%3E%20%27application/x-pkcs7-crl%27.%0A%09%09%27crt%27%20-%3E%20%27application/x-x509-ca-cert%27.%0A%09%09%27csf%27%20-%3E%20%27chemical/x-cache-csf%27.%0A%09%09%27csh%27%20-%3E%20%27text/x-csh%27.%0A%09%09%27csm%27%20-%3E%20%27chemical/x-csml%27.%0A%09%09%27csml%27%20-%3E%20%27chemical/x-csml%27.%0A%09%09%27css%27%20-%3E%20%27text/css%27.%0A%09%09%27csv%27%20-%3E%20%27text/comma-separated-values%27.%0A%09%09%27ctab%27%20-%3E%20%27chemical/x-cactvs-binary%27.%0A%09%09%27ctx%27%20-%3E%20%27chemical/x-ctx%27.%0A%09%09%27cu%27%20-%3E%20%27application/cu-seeme%27.%0A%09%09%27cub%27%20-%3E%20%27chemical/x-gaussian-cube%27.%0A%09%09%27cxf%27%20-%3E%20%27chemical/x-cxf%27.%0A%09%09%27cxx%27%20-%3E%20%27text/x-c++src%27.%0A%09%09%27dat%27%20-%3E%20%27chemical/x-mopac-input%27.%0A%09%09%27dcr%27%20-%3E%20%27application/x-director%27.%0A%09%09%27deb%27%20-%3E%20%27application/x-debian-package%27.%0A%09%09%27dif%27%20-%3E%20%27video/dv%27.%0A%09%09%27diff%27%20-%3E%20%27text/plain%27.%0A%09%09%27dir%27%20-%3E%20%27application/x-director%27.%0A%09%09%27djv%27%20-%3E%20%27image/vnd.djvu%27.%0A%09%09%27djvu%27%20-%3E%20%27image/vnd.djvu%27.%0A%09%09%27dl%27%20-%3E%20%27video/dl%27.%0A%09%09%27dll%27%20-%3E%20%27application/x-msdos-program%27.%0A%09%09%27dmg%27%20-%3E%20%27application/x-apple-diskimage%27.%0A%09%09%27dms%27%20-%3E%20%27application/x-dms%27.%0A%09%09%27doc%27%20-%3E%20%27application/msword%27.%0A%09%09%27dot%27%20-%3E%20%27application/msword%27.%0A%09%09%27dv%27%20-%3E%20%27video/dv%27.%0A%09%09%27dvi%27%20-%3E%20%27application/x-dvi%27.%0A%09%09%27dx%27%20-%3E%20%27chemical/x-jcamp-dx%27.%0A%09%09%27dxr%27%20-%3E%20%27application/x-director%27.%0A%09%09%27emb%27%20-%3E%20%27chemical/x-embl-dl-nucleotide%27.%0A%09%09%27embl%27%20-%3E%20%27chemical/x-embl-dl-nucleotide%27.%0A%09%09%27ent%27%20-%3E%20%27chemical/x-pdb%27.%0A%09%09%27eps%27%20-%3E%20%27application/postscript%27.%0A%09%09%27etx%27%20-%3E%20%27text/x-setext%27.%0A%09%09%27exe%27%20-%3E%20%27application/x-msdos-program%27.%0A%09%09%27ez%27%20-%3E%20%27application/andrew-inset%27.%0A%09%09%27fb%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27fbdoc%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27fch%27%20-%3E%20%27chemical/x-gaussian-checkpoint%27.%0A%09%09%27fchk%27%20-%3E%20%27chemical/x-gaussian-checkpoint%27.%0A%09%09%27fig%27%20-%3E%20%27application/x-xfig%27.%0A%09%09%27flac%27%20-%3E%20%27application/x-flac%27.%0A%09%09%27fli%27%20-%3E%20%27video/fli%27.%0A%09%09%27fm%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27frame%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27frm%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27gal%27%20-%3E%20%27chemical/x-gaussian-log%27.%0A%09%09%27gam%27%20-%3E%20%27chemical/x-gamess-input%27.%0A%09%09%27gamin%27%20-%3E%20%27chemical/x-gamess-input%27.%0A%09%09%27gau%27%20-%3E%20%27chemical/x-gaussian-input%27.%0A%09%09%27gcd%27%20-%3E%20%27text/x-pcs-gcd%27.%0A%09%09%27gcf%27%20-%3E%20%27application/x-graphing-calculator%27.%0A%09%09%27gcg%27%20-%3E%20%27chemical/x-gcg8-sequence%27.%0A%09%09%27gen%27%20-%3E%20%27chemical/x-genbank%27.%0A%09%09%27gf%27%20-%3E%20%27application/x-tex-gf%27.%0A%09%09%27gif%27%20-%3E%20%27image/gif%27.%0A%09%09%27gjc%27%20-%3E%20%27chemical/x-gaussian-input%27.%0A%09%09%27gjf%27%20-%3E%20%27chemical/x-gaussian-input%27.%0A%09%09%27gl%27%20-%3E%20%27video/gl%27.%0A%09%09%27gnumeric%27%20-%3E%20%27application/x-gnumeric%27.%0A%09%09%27gpt%27%20-%3E%20%27chemical/x-mopac-graph%27.%0A%09%09%27gsf%27%20-%3E%20%27application/x-font%27.%0A%09%09%27gsm%27%20-%3E%20%27audio/x-gsm%27.%0A%09%09%27gtar%27%20-%3E%20%27application/x-gtar%27.%0A%09%09%27h%27%20-%3E%20%27text/x-chdr%27.%0A%09%09%27h++%27%20-%3E%20%27text/x-c++hdr%27.%0A%09%09%27hdf%27%20-%3E%20%27application/x-hdf%27.%0A%09%09%27hh%27%20-%3E%20%27text/x-c++hdr%27.%0A%09%09%27hin%27%20-%3E%20%27chemical/x-hin%27.%0A%09%09%27hpp%27%20-%3E%20%27text/x-c++hdr%27.%0A%09%09%27hqx%27%20-%3E%20%27application/mac-binhex40%27.%0A%09%09%27hs%27%20-%3E%20%27text/x-haskell%27.%0A%09%09%27hta%27%20-%3E%20%27application/hta%27.%0A%09%09%27htc%27%20-%3E%20%27text/x-component%27.%0A%09%09%27htm%27%20-%3E%20%27text/html%27.%0A%09%09%27html%27%20-%3E%20%27text/html%27.%0A%09%09%27hxx%27%20-%3E%20%27text/x-c++hdr%27.%0A%09%09%27ica%27%20-%3E%20%27application/x-ica%27.%0A%09%09%27ice%27%20-%3E%20%27x-conference/x-cooltalk%27.%0A%09%09%27ico%27%20-%3E%20%27image/x-icon%27.%0A%09%09%27ics%27%20-%3E%20%27text/calendar%27.%0A%09%09%27icz%27%20-%3E%20%27text/calendar%27.%0A%09%09%27ief%27%20-%3E%20%27image/ief%27.%0A%09%09%27iges%27%20-%3E%20%27model/iges%27.%0A%09%09%27igs%27%20-%3E%20%27model/iges%27.%0A%09%09%27iii%27%20-%3E%20%27application/x-iphone%27.%0A%09%09%27inp%27%20-%3E%20%27chemical/x-gamess-input%27.%0A%09%09%27ins%27%20-%3E%20%27application/x-internet-signup%27.%0A%09%09%27iso%27%20-%3E%20%27application/x-iso9660-image%27.%0A%09%09%27isp%27%20-%3E%20%27application/x-internet-signup%27.%0A%09%09%27ist%27%20-%3E%20%27chemical/x-isostar%27.%0A%09%09%27istr%27%20-%3E%20%27chemical/x-isostar%27.%0A%09%09%27jad%27%20-%3E%20%27text/vnd.sun.j2me.app-descriptor%27.%0A%09%09%27jar%27%20-%3E%20%27application/java-archive%27.%0A%09%09%27java%27%20-%3E%20%27text/x-java%27.%0A%09%09%27jdx%27%20-%3E%20%27chemical/x-jcamp-dx%27.%0A%09%09%27jmz%27%20-%3E%20%27application/x-jmol%27.%0A%09%09%27jng%27%20-%3E%20%27image/x-jng%27.%0A%09%09%27jnlp%27%20-%3E%20%27application/x-java-jnlp-file%27.%0A%09%09%27jpe%27%20-%3E%20%27image/jpeg%27.%0A%09%09%27jpeg%27%20-%3E%20%27image/jpeg%27.%0A%09%09%27jpg%27%20-%3E%20%27image/jpeg%27.%0A%09%09%27js%27%20-%3E%20%27application/javascript%27.%0A%09%09%27kar%27%20-%3E%20%27audio/midi%27.%0A%09%09%27key%27%20-%3E%20%27application/pgp-keys%27.%0A%09%09%27kil%27%20-%3E%20%27application/x-killustrator%27.%0A%09%09%27kin%27%20-%3E%20%27chemical/x-kinemage%27.%0A%09%09%27kpr%27%20-%3E%20%27application/x-kpresenter%27.%0A%09%09%27kpt%27%20-%3E%20%27application/x-kpresenter%27.%0A%09%09%27ksp%27%20-%3E%20%27application/x-kspread%27.%0A%09%09%27kwd%27%20-%3E%20%27application/x-kword%27.%0A%09%09%27kwt%27%20-%3E%20%27application/x-kword%27.%0A%09%09%27latex%27%20-%3E%20%27application/x-latex%27.%0A%09%09%27lha%27%20-%3E%20%27application/x-lha%27.%0A%09%09%27lhs%27%20-%3E%20%27text/x-literate-haskell%27.%0A%09%09%27lsf%27%20-%3E%20%27video/x-la-asf%27.%0A%09%09%27lsx%27%20-%3E%20%27video/x-la-asf%27.%0A%09%09%27ltx%27%20-%3E%20%27text/x-tex%27.%0A%09%09%27lzh%27%20-%3E%20%27application/x-lzh%27.%0A%09%09%27lzx%27%20-%3E%20%27application/x-lzx%27.%0A%09%09%27m3u%27%20-%3E%20%27audio/x-mpegurl%27.%0A%09%09%27m4a%27%20-%3E%20%27audio/mpeg%27.%0A%09%09%27maker%27%20-%3E%20%27application/x-maker%27.%0A%09%09%27man%27%20-%3E%20%27application/x-troff-man%27.%0A%09%09%27mcif%27%20-%3E%20%27chemical/x-mmcif%27.%0A%09%09%27mcm%27%20-%3E%20%27chemical/x-macmolecule%27.%0A%09%09%27mdb%27%20-%3E%20%27application/msaccess%27.%0A%09%09%27me%27%20-%3E%20%27application/x-troff-me%27.%0A%09%09%27mesh%27%20-%3E%20%27model/mesh%27.%0A%09%09%27mid%27%20-%3E%20%27audio/midi%27.%0A%09%09%27midi%27%20-%3E%20%27audio/midi%27.%0A%09%09%27mif%27%20-%3E%20%27application/x-mif%27.%0A%09%09%27mm%27%20-%3E%20%27application/x-freemind%27.%0A%09%09%27mmd%27%20-%3E%20%27chemical/x-macromodel-input%27.%0A%09%09%27mmf%27%20-%3E%20%27application/vnd.smaf%27.%0A%09%09%27mml%27%20-%3E%20%27text/mathml%27.%0A%09%09%27mmod%27%20-%3E%20%27chemical/x-macromodel-input%27.%0A%09%09%27mng%27%20-%3E%20%27video/x-mng%27.%0A%09%09%27moc%27%20-%3E%20%27text/x-moc%27.%0A%09%09%27mol%27%20-%3E%20%27chemical/x-mdl-molfile%27.%0A%09%09%27mol2%27%20-%3E%20%27chemical/x-mol2%27.%0A%09%09%27moo%27%20-%3E%20%27chemical/x-mopac-out%27.%0A%09%09%27mop%27%20-%3E%20%27chemical/x-mopac-input%27.%0A%09%09%27mopcrt%27%20-%3E%20%27chemical/x-mopac-input%27.%0A%09%09%27mov%27%20-%3E%20%27video/quicktime%27.%0A%09%09%27movie%27%20-%3E%20%27video/x-sgi-movie%27.%0A%09%09%27mp2%27%20-%3E%20%27audio/mpeg%27.%0A%09%09%27mp3%27%20-%3E%20%27audio/mpeg%27.%0A%09%09%27mp4%27%20-%3E%20%27video/mp4%27.%0A%09%09%27mpc%27%20-%3E%20%27chemical/x-mopac-input%27.%0A%09%09%27mpe%27%20-%3E%20%27video/mpeg%27.%0A%09%09%27mpeg%27%20-%3E%20%27video/mpeg%27.%0A%09%09%27mpega%27%20-%3E%20%27audio/mpeg%27.%0A%09%09%27mpg%27%20-%3E%20%27video/mpeg%27.%0A%09%09%27mpga%27%20-%3E%20%27audio/mpeg%27.%0A%09%09%27ms%27%20-%3E%20%27application/x-troff-ms%27.%0A%09%09%27msh%27%20-%3E%20%27model/mesh%27.%0A%09%09%27msi%27%20-%3E%20%27application/x-msi%27.%0A%09%09%27mvb%27%20-%3E%20%27chemical/x-mopac-vib%27.%0A%09%09%27mxu%27%20-%3E%20%27video/vnd.mpegurl%27.%0A%09%09%27nb%27%20-%3E%20%27application/mathematica%27.%0A%09%09%27nc%27%20-%3E%20%27application/x-netcdf%27.%0A%09%09%27nwc%27%20-%3E%20%27application/x-nwc%27.%0A%09%09%27o%27%20-%3E%20%27application/x-object%27.%0A%09%09%27oda%27%20-%3E%20%27application/oda%27.%0A%09%09%27odb%27%20-%3E%20%27application/vnd.oasis.opendocument.database%27.%0A%09%09%27odc%27%20-%3E%20%27application/vnd.oasis.opendocument.chart%27.%0A%09%09%27odf%27%20-%3E%20%27application/vnd.oasis.opendocument.formula%27.%0A%09%09%27odg%27%20-%3E%20%27application/vnd.oasis.opendocument.graphics%27.%0A%09%09%27odi%27%20-%3E%20%27application/vnd.oasis.opendocument.image%27.%0A%09%09%27odm%27%20-%3E%20%27application/vnd.oasis.opendocument.text-master%27.%0A%09%09%27odp%27%20-%3E%20%27application/vnd.oasis.opendocument.presentation%27.%0A%09%09%27ods%27%20-%3E%20%27application/vnd.oasis.opendocument.spreadsheet%27.%0A%09%09%27odt%27%20-%3E%20%27application/vnd.oasis.opendocument.text%27.%0A%09%09%27ogg%27%20-%3E%20%27application/ogg%27.%0A%09%09%27old%27%20-%3E%20%27application/x-trash%27.%0A%09%09%27oth%27%20-%3E%20%27application/vnd.oasis.opendocument.text-web%27.%0A%09%09%27oza%27%20-%3E%20%27application/x-oz-application%27.%0A%09%09%27p%27%20-%3E%20%27text/x-pascal%27.%0A%09%09%27p7r%27%20-%3E%20%27application/x-pkcs7-certreqresp%27.%0A%09%09%27pac%27%20-%3E%20%27application/x-ns-proxy-autoconfig%27.%0A%09%09%27pas%27%20-%3E%20%27text/x-pascal%27.%0A%09%09%27pat%27%20-%3E%20%27image/x-coreldrawpattern%27.%0A%09%09%27pbm%27%20-%3E%20%27image/x-portable-bitmap%27.%0A%09%09%27pcf%27%20-%3E%20%27application/x-font%27.%0A%09%09%27pcf.Z%27%20-%3E%20%27application/x-font%27.%0A%09%09%27pcx%27%20-%3E%20%27image/pcx%27.%0A%09%09%27pdb%27%20-%3E%20%27chemical/x-pdb%27.%0A%09%09%27pdf%27%20-%3E%20%27application/pdf%27.%0A%09%09%27pfa%27%20-%3E%20%27application/x-font%27.%0A%09%09%27pfb%27%20-%3E%20%27application/x-font%27.%0A%09%09%27pgm%27%20-%3E%20%27image/x-portable-graymap%27.%0A%09%09%27pgn%27%20-%3E%20%27application/x-chess-pgn%27.%0A%09%09%27pgp%27%20-%3E%20%27application/pgp-signature%27.%0A%09%09%27pk%27%20-%3E%20%27application/x-tex-pk%27.%0A%09%09%27pl%27%20-%3E%20%27text/x-perl%27.%0A%09%09%27pls%27%20-%3E%20%27audio/x-scpls%27.%0A%09%09%27pm%27%20-%3E%20%27text/x-perl%27.%0A%09%09%27png%27%20-%3E%20%27image/png%27.%0A%09%09%27pnm%27%20-%3E%20%27image/x-portable-anymap%27.%0A%09%09%27pot%27%20-%3E%20%27text/plain%27.%0A%09%09%27ppm%27%20-%3E%20%27image/x-portable-pixmap%27.%0A%09%09%27pps%27%20-%3E%20%27application/vnd.ms-powerpoint%27.%0A%09%09%27ppt%27%20-%3E%20%27application/vnd.ms-powerpoint%27.%0A%09%09%27prf%27%20-%3E%20%27application/pics-rules%27.%0A%09%09%27prt%27%20-%3E%20%27chemical/x-ncbi-asn1-ascii%27.%0A%09%09%27ps%27%20-%3E%20%27application/postscript%27.%0A%09%09%27psd%27%20-%3E%20%27image/x-photoshop%27.%0A%09%09%27psp%27%20-%3E%20%27text/x-psp%27.%0A%09%09%27py%27%20-%3E%20%27text/x-python%27.%0A%09%09%27pyc%27%20-%3E%20%27application/x-python-code%27.%0A%09%09%27pyo%27%20-%3E%20%27application/x-python-code%27.%0A%09%09%27qt%27%20-%3E%20%27video/quicktime%27.%0A%09%09%27qtl%27%20-%3E%20%27application/x-quicktimeplayer%27.%0A%09%09%27ra%27%20-%3E%20%27audio/x-realaudio%27.%0A%09%09%27ram%27%20-%3E%20%27audio/x-pn-realaudio%27.%0A%09%09%27rar%27%20-%3E%20%27application/rar%27.%0A%09%09%27ras%27%20-%3E%20%27image/x-cmu-raster%27.%0A%09%09%27rd%27%20-%3E%20%27chemical/x-mdl-rdfile%27.%0A%09%09%27rdf%27%20-%3E%20%27application/rdf+xml%27.%0A%09%09%27rgb%27%20-%3E%20%27image/x-rgb%27.%0A%09%09%27rm%27%20-%3E%20%27audio/x-pn-realaudio%27.%0A%09%09%27roff%27%20-%3E%20%27application/x-troff%27.%0A%09%09%27ros%27%20-%3E%20%27chemical/x-rosdal%27.%0A%09%09%27rpm%27%20-%3E%20%27application/x-redhat-package-manager%27.%0A%09%09%27rss%27%20-%3E%20%27application/rss+xml%27.%0A%09%09%27rtf%27%20-%3E%20%27text/rtf%27.%0A%09%09%27rtx%27%20-%3E%20%27text/richtext%27.%0A%09%09%27rxn%27%20-%3E%20%27chemical/x-mdl-rxnfile%27.%0A%09%09%27sct%27%20-%3E%20%27text/scriptlet%27.%0A%09%09%27sd%27%20-%3E%20%27chemical/x-mdl-sdfile%27.%0A%09%09%27sd2%27%20-%3E%20%27audio/x-sd2%27.%0A%09%09%27sda%27%20-%3E%20%27application/vnd.stardivision.draw%27.%0A%09%09%27sdc%27%20-%3E%20%27application/vnd.stardivision.calc%27.%0A%09%09%27sdd%27%20-%3E%20%27application/vnd.stardivision.impress%27.%0A%09%09%27sdf%27%20-%3E%20%27chemical/x-mdl-sdfile%27.%0A%09%09%27sdp%27%20-%3E%20%27application/vnd.stardivision.impress%27.%0A%09%09%27sdw%27%20-%3E%20%27application/vnd.stardivision.writer%27.%0A%09%09%27ser%27%20-%3E%20%27application/java-serialized-object%27.%0A%09%09%27sgf%27%20-%3E%20%27application/x-go-sgf%27.%0A%09%09%27sgl%27%20-%3E%20%27application/vnd.stardivision.writer-global%27.%0A%09%09%27sh%27%20-%3E%20%27text/x-sh%27.%0A%09%09%27shar%27%20-%3E%20%27application/x-shar%27.%0A%09%09%27shtml%27%20-%3E%20%27text/html%27.%0A%09%09%27sid%27%20-%3E%20%27audio/prs.sid%27.%0A%09%09%27sik%27%20-%3E%20%27application/x-trash%27.%0A%09%09%27silo%27%20-%3E%20%27model/mesh%27.%0A%09%09%27sis%27%20-%3E%20%27application/vnd.symbian.install%27.%0A%09%09%27sit%27%20-%3E%20%27application/x-stuffit%27.%0A%09%09%27skd%27%20-%3E%20%27application/x-koan%27.%0A%09%09%27skm%27%20-%3E%20%27application/x-koan%27.%0A%09%09%27skp%27%20-%3E%20%27application/x-koan%27.%0A%09%09%27skt%27%20-%3E%20%27application/x-koan%27.%0A%09%09%27smf%27%20-%3E%20%27application/vnd.stardivision.math%27.%0A%09%09%27smi%27%20-%3E%20%27application/smil%27.%0A%09%09%27smil%27%20-%3E%20%27application/smil%27.%0A%09%09%27snd%27%20-%3E%20%27audio/basic%27.%0A%09%09%27spc%27%20-%3E%20%27chemical/x-galactic-spc%27.%0A%09%09%27spl%27%20-%3E%20%27application/x-futuresplash%27.%0A%09%09%27src%27%20-%3E%20%27application/x-wais-source%27.%0A%09%09%27stc%27%20-%3E%20%27application/vnd.sun.xml.calc.template%27.%0A%09%09%27std%27%20-%3E%20%27application/vnd.sun.xml.draw.template%27.%0A%09%09%27sti%27%20-%3E%20%27application/vnd.sun.xml.impress.template%27.%0A%09%09%27stl%27%20-%3E%20%27application/vnd.ms-pki.stl%27.%0A%09%09%27stw%27%20-%3E%20%27application/vnd.sun.xml.writer.template%27.%0A%09%09%27sty%27%20-%3E%20%27text/x-tex%27.%0A%09%09%27sv4cpio%27%20-%3E%20%27application/x-sv4cpio%27.%0A%09%09%27sv4crc%27%20-%3E%20%27application/x-sv4crc%27.%0A%09%09%27svg%27%20-%3E%20%27image/svg+xml%27.%0A%09%09%27svgz%27%20-%3E%20%27image/svg+xml%27.%0A%09%09%27sw%27%20-%3E%20%27chemical/x-swissprot%27.%0A%09%09%27swf%27%20-%3E%20%27application/x-shockwave-flash%27.%0A%09%09%27swfl%27%20-%3E%20%27application/x-shockwave-flash%27.%0A%09%09%27sxc%27%20-%3E%20%27application/vnd.sun.xml.calc%27.%0A%09%09%27sxd%27%20-%3E%20%27application/vnd.sun.xml.draw%27.%0A%09%09%27sxg%27%20-%3E%20%27application/vnd.sun.xml.writer.global%27.%0A%09%09%27sxi%27%20-%3E%20%27application/vnd.sun.xml.impress%27.%0A%09%09%27sxm%27%20-%3E%20%27application/vnd.sun.xml.math%27.%0A%09%09%27sxw%27%20-%3E%20%27application/vnd.sun.xml.writer%27.%0A%09%09%27t%27%20-%3E%20%27application/x-troff%27.%0A%09%09%27tar%27%20-%3E%20%27application/x-tar%27.%0A%09%09%27taz%27%20-%3E%20%27application/x-gtar%27.%0A%09%09%27tcl%27%20-%3E%20%27text/x-tcl%27.%0A%09%09%27tex%27%20-%3E%20%27text/x-tex%27.%0A%09%09%27texi%27%20-%3E%20%27application/x-texinfo%27.%0A%09%09%27texinfo%27%20-%3E%20%27application/x-texinfo%27.%0A%09%09%27text%27%20-%3E%20%27text/plain%27.%0A%09%09%27tgf%27%20-%3E%20%27chemical/x-mdl-tgf%27.%0A%09%09%27tgz%27%20-%3E%20%27application/x-gtar%27.%0A%09%09%27tif%27%20-%3E%20%27image/tiff%27.%0A%09%09%27tiff%27%20-%3E%20%27image/tiff%27.%0A%09%09%27tk%27%20-%3E%20%27text/x-tcl%27.%0A%09%09%27tm%27%20-%3E%20%27text/texmacs%27.%0A%09%09%27torrent%27%20-%3E%20%27application/x-bittorrent%27.%0A%09%09%27tr%27%20-%3E%20%27application/x-troff%27.%0A%09%09%27ts%27%20-%3E%20%27text/texmacs%27.%0A%09%09%27tsp%27%20-%3E%20%27application/dsptype%27.%0A%09%09%27tsv%27%20-%3E%20%27text/tab-separated-values%27.%0A%09%09%27txt%27%20-%3E%20%27text/plain%27.%0A%09%09%27udeb%27%20-%3E%20%27application/x-debian-package%27.%0A%09%09%27uls%27%20-%3E%20%27text/iuls%27.%0A%09%09%27ustar%27%20-%3E%20%27application/x-ustar%27.%0A%09%09%27val%27%20-%3E%20%27chemical/x-ncbi-asn1-binary%27.%0A%09%09%27vcd%27%20-%3E%20%27application/x-cdlink%27.%0A%09%09%27vcf%27%20-%3E%20%27text/x-vcard%27.%0A%09%09%27vcs%27%20-%3E%20%27text/x-vcalendar%27.%0A%09%09%27vmd%27%20-%3E%20%27chemical/x-vmd%27.%0A%09%09%27vms%27%20-%3E%20%27chemical/x-vamas-iso14976%27.%0A%09%09%27vor%27%20-%3E%20%27application/vnd.stardivision.writer%27.%0A%09%09%27vrm%27%20-%3E%20%27x-world/x-vrml%27.%0A%09%09%27vrml%27%20-%3E%20%27x-world/x-vrml%27.%0A%09%09%27vsd%27%20-%3E%20%27application/vnd.visio%27.%0A%09%09%27wad%27%20-%3E%20%27application/x-doom%27.%0A%09%09%27wav%27%20-%3E%20%27audio/x-wav%27.%0A%09%09%27wax%27%20-%3E%20%27audio/x-ms-wax%27.%0A%09%09%27wbmp%27%20-%3E%20%27image/vnd.wap.wbmp%27.%0A%09%09%27wbxml%27%20-%3E%20%27application/vnd.wap.wbxml%27.%0A%09%09%27wk%27%20-%3E%20%27application/x-123%27.%0A%09%09%27wm%27%20-%3E%20%27video/x-ms-wm%27.%0A%09%09%27wma%27%20-%3E%20%27audio/x-ms-wma%27.%0A%09%09%27wmd%27%20-%3E%20%27application/x-ms-wmd%27.%0A%09%09%27wml%27%20-%3E%20%27text/vnd.wap.wml%27.%0A%09%09%27wmlc%27%20-%3E%20%27application/vnd.wap.wmlc%27.%0A%09%09%27wmls%27%20-%3E%20%27text/vnd.wap.wmlscript%27.%0A%09%09%27wmlsc%27%20-%3E%20%27application/vnd.wap.wmlscriptc%27.%0A%09%09%27wmv%27%20-%3E%20%27video/x-ms-wmv%27.%0A%09%09%27wmx%27%20-%3E%20%27video/x-ms-wmx%27.%0A%09%09%27wmz%27%20-%3E%20%27application/x-ms-wmz%27.%0A%09%09%27wp5%27%20-%3E%20%27application/wordperfect5.1%27.%0A%09%09%27wpd%27%20-%3E%20%27application/wordperfect%27.%0A%09%09%27wrl%27%20-%3E%20%27x-world/x-vrml%27.%0A%09%09%27wsc%27%20-%3E%20%27text/scriptlet%27.%0A%09%09%27wvx%27%20-%3E%20%27video/x-ms-wvx%27.%0A%09%09%27wz%27%20-%3E%20%27application/x-wingz%27.%0A%09%09%27xbm%27%20-%3E%20%27image/x-xbitmap%27.%0A%09%09%27xcf%27%20-%3E%20%27application/x-xcf%27.%0A%09%09%27xht%27%20-%3E%20%27application/xhtml+xml%27.%0A%09%09%27xhtml%27%20-%3E%20%27application/xhtml+xml%27.%0A%09%09%27xlb%27%20-%3E%20%27application/vnd.ms-excel%27.%0A%09%09%27xls%27%20-%3E%20%27application/vnd.ms-excel%27.%0A%09%09%27xlt%27%20-%3E%20%27application/vnd.ms-excel%27.%0A%09%09%27xml%27%20-%3E%20%27application/xml%27.%0A%09%09%27xpi%27%20-%3E%20%27application/x-xpinstall%27.%0A%09%09%27xpm%27%20-%3E%20%27image/x-xpixmap%27.%0A%09%09%27xsl%27%20-%3E%20%27application/xml%27.%0A%09%09%27xtel%27%20-%3E%20%27chemical/x-xtel%27.%0A%09%09%27xul%27%20-%3E%20%27application/vnd.mozilla.xul+xml%27.%0A%09%09%27xwd%27%20-%3E%20%27image/x-xwindowdump%27.%0A%09%09%27xyz%27%20-%3E%20%27chemical/x-xyz%27.%0A%09%09%27zip%27%20-%3E%20%27application/zip%27.%0A%09%09%27zmt%27%20-%3E%20%27chemical/x-mopac-input%27.%0A%09%09%27%7E%27%20-%3E%20%27application/x-trash%27%0A%09%7D'),
  8737. messageSends: [unescape("-%3E")],
  8738. referencedClasses: []
  8739. }),
  8740. smalltalk.FileServer.klass);
  8741. smalltalk.addMethod(
  8742. unescape('_mimeTypes'),
  8743. smalltalk.method({
  8744. selector: unescape('mimeTypes'),
  8745. category: 'accessing',
  8746. fn: function (){
  8747. var self=this;
  8748. return (($receiver = self['@mimeTypes']) == nil || $receiver == undefined) ? (function(){return self['@mimeTypes']=smalltalk.send(self, "_defaultMimeTypes", []);})() : $receiver;
  8749. return self;},
  8750. args: [],
  8751. source: unescape('mimeTypes%0A%09%5EmimeTypes%20ifNil%3A%20%5BmimeTypes%20%3A%3D%20self%20defaultMimeTypes%5D'),
  8752. messageSends: ["ifNil:", "defaultMimeTypes"],
  8753. referencedClasses: []
  8754. }),
  8755. smalltalk.FileServer.klass);
  8756. smalltalk.addMethod(
  8757. unescape('_mimeTypeFor_'),
  8758. smalltalk.method({
  8759. selector: unescape('mimeTypeFor%3A'),
  8760. category: 'accessing',
  8761. fn: function (aString){
  8762. var self=this;
  8763. return smalltalk.send(smalltalk.send(self, "_mimeTypes", []), "_at_ifAbsent_", [smalltalk.send(aString, "_replace_with_", [unescape(".*%5B%5C.%5D"), ""]), (function(){return unescape("text/plain");})]);
  8764. return self;},
  8765. args: ["aString"],
  8766. source: unescape('mimeTypeFor%3A%20aString%0A%09%5Eself%20mimeTypes%20at%3A%20%28aString%20replace%3A%20%27.*%5B%5C.%5D%27%20with%3A%20%27%27%29%20ifAbsent%3A%20%5B%27text/plain%27%5D'),
  8767. messageSends: ["at:ifAbsent:", "mimeTypes", "replace:with:"],
  8768. referencedClasses: []
  8769. }),
  8770. smalltalk.FileServer.klass);
  8771. smalltalk.addMethod(
  8772. unescape('_main'),
  8773. smalltalk.method({
  8774. selector: unescape('main'),
  8775. category: 'initialization',
  8776. fn: function (){
  8777. var self=this;
  8778. return smalltalk.send(smalltalk.send(self, "_new", []), "_startOn_", [smalltalk.send(self, "_port", [])]);
  8779. return self;},
  8780. args: [],
  8781. source: unescape('main%0A%09%5Eself%20new%20startOn%3A%20self%20port'),
  8782. messageSends: ["startOn:", "new", "port"],
  8783. referencedClasses: []
  8784. }),
  8785. smalltalk.FileServer.klass);
  8786. smalltalk.init(smalltalk.Object);
  8787. smalltalk.classes()._do_(function(each) {each._initialize()});
  8788. /* Similar to jQuery(document).ready() */
  8789. if(this.smalltalkReady) {
  8790. this.smalltalkReady();
  8791. }
  8792. smalltalk.FileServer._main()