sass.dart.js 3.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023
  1. // make sure to keep this as 'var'
  2. // we don't want block scoping
  3. var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
  4. var self = Object.create(dartNodePreambleSelf);
  5. self.scheduleImmediate = self.setImmediate
  6. ? function (cb) {
  7. dartNodePreambleSelf.setImmediate(cb);
  8. }
  9. : function(cb) {
  10. setTimeout(cb, 0);
  11. };
  12. // CommonJS globals.
  13. self.exports = exports;
  14. // Node.js specific exports, check to see if they exist & or polyfilled
  15. if (typeof process !== "undefined") {
  16. self.process = process;
  17. }
  18. if (typeof __dirname !== "undefined") {
  19. self.__dirname = __dirname;
  20. }
  21. if (typeof __filename !== "undefined") {
  22. self.__filename = __filename;
  23. }
  24. // if we're running in a browser, Dart supports most of this out of box
  25. // make sure we only run these in Node.js environment
  26. var dartNodeIsActuallyNode = !dartNodePreambleSelf.window
  27. try {
  28. // Check if we're in a Web Worker instead.
  29. if ("undefined" !== typeof WorkerGlobalScope && dartNodePreambleSelf instanceof WorkerGlobalScope) {
  30. dartNodeIsActuallyNode = false;
  31. }
  32. // Check if we're in Electron, with Node.js integration, and override if true.
  33. if (dartNodePreambleSelf.process && dartNodePreambleSelf.process.versions && dartNodePreambleSelf.process.versions.hasOwnProperty('electron') && dartNodePreambleSelf.process.versions.hasOwnProperty('node')) {
  34. dartNodeIsActuallyNode = true;
  35. }
  36. } catch(e) {}
  37. if (dartNodeIsActuallyNode) {
  38. // This line is to:
  39. // 1) Prevent Webpack from bundling.
  40. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
  41. // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
  42. var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
  43. self.location = {
  44. get href() {
  45. if (url.pathToFileURL) {
  46. return url.pathToFileURL(process.cwd()).href + "/";
  47. } else {
  48. // This isn't really a correct transformation, but it's the best we have
  49. // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
  50. // For example, it will fail for paths that contain characters that need
  51. // to be escaped in URLs.
  52. return "file://" + (function() {
  53. var cwd = process.cwd();
  54. if (process.platform != "win32") return cwd;
  55. return "/" + cwd.replace(/\\/g, "/");
  56. })() + "/"
  57. }
  58. }
  59. };
  60. (function() {
  61. function computeCurrentScript() {
  62. try {
  63. throw new Error();
  64. } catch(e) {
  65. var stack = e.stack;
  66. var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
  67. var lastMatch = null;
  68. do {
  69. var match = re.exec(stack);
  70. if (match != null) lastMatch = match;
  71. } while (match != null);
  72. return lastMatch[1];
  73. }
  74. }
  75. var cachedCurrentScript = null;
  76. self.document = {
  77. get currentScript() {
  78. if (cachedCurrentScript == null) {
  79. cachedCurrentScript = {src: computeCurrentScript()};
  80. }
  81. return cachedCurrentScript;
  82. }
  83. };
  84. })();
  85. self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
  86. try {
  87. load(uri);
  88. successCallback();
  89. } catch (error) {
  90. errorCallback(error);
  91. }
  92. };
  93. }
  94. self.chokidar = require("chokidar");
  95. self.readline = require("readline");
  96. self.fs = require("fs");
  97. // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.10.4.
  98. // The code supports the following hooks:
  99. // dartPrint(message):
  100. // if this function is defined it is called instead of the Dart [print]
  101. // method.
  102. //
  103. // dartMainRunner(main, args):
  104. // if this function is defined, the Dart [main] method will not be invoked
  105. // directly. Instead, a closure that will invoke [main], and its arguments
  106. // [args] is passed to [dartMainRunner].
  107. //
  108. // dartDeferredLibraryLoader(uri, successCallback, errorCallback):
  109. // if this function is defined, it will be called when a deferred library
  110. // is loaded. It should load and eval the javascript of `uri`, and call
  111. // successCallback. If it fails to do so, it should call errorCallback with
  112. // an error.
  113. //
  114. // dartCallInstrumentation(id, qualifiedName):
  115. // if this function is defined, it will be called at each entry of a
  116. // method or constructor. Used only when compiling programs with
  117. // --experiment-call-instrumentation.
  118. (function dartProgram() {
  119. function copyProperties(from, to) {
  120. var keys = Object.keys(from);
  121. for (var i = 0; i < keys.length; i++) {
  122. var key = keys[i];
  123. to[key] = from[key];
  124. }
  125. }
  126. var supportsDirectProtoAccess = function() {
  127. var cls = function() {
  128. };
  129. cls.prototype = {p: {}};
  130. var object = new cls();
  131. if (!(object.__proto__ && object.__proto__.p === cls.prototype.p))
  132. return false;
  133. try {
  134. if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
  135. return true;
  136. if (typeof version == "function" && version.length == 0) {
  137. var v = version();
  138. if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
  139. return true;
  140. }
  141. } catch (_) {
  142. }
  143. return false;
  144. }();
  145. function setFunctionNamesIfNecessary(holders) {
  146. function t() {
  147. }
  148. ;
  149. if (typeof t.name == "string")
  150. return;
  151. for (var i = 0; i < holders.length; i++) {
  152. var holder = holders[i];
  153. var keys = Object.keys(holder);
  154. for (var j = 0; j < keys.length; j++) {
  155. var key = keys[j];
  156. var f = holder[key];
  157. if (typeof f == 'function')
  158. f.name = key;
  159. }
  160. }
  161. }
  162. function inherit(cls, sup) {
  163. cls.prototype.constructor = cls;
  164. cls.prototype["$is" + cls.name] = cls;
  165. if (sup != null) {
  166. if (supportsDirectProtoAccess) {
  167. cls.prototype.__proto__ = sup.prototype;
  168. return;
  169. }
  170. var clsPrototype = Object.create(sup.prototype);
  171. copyProperties(cls.prototype, clsPrototype);
  172. cls.prototype = clsPrototype;
  173. }
  174. }
  175. function inheritMany(sup, classes) {
  176. for (var i = 0; i < classes.length; i++)
  177. inherit(classes[i], sup);
  178. }
  179. function mixin(cls, mixin) {
  180. copyProperties(mixin.prototype, cls.prototype);
  181. cls.prototype.constructor = cls;
  182. }
  183. function lazyOld(holder, name, getterName, initializer) {
  184. var uninitializedSentinel = holder;
  185. holder[name] = uninitializedSentinel;
  186. holder[getterName] = function() {
  187. holder[getterName] = function() {
  188. H.throwCyclicInit(name);
  189. };
  190. var result;
  191. var sentinelInProgress = initializer;
  192. try {
  193. if (holder[name] === uninitializedSentinel) {
  194. result = holder[name] = sentinelInProgress;
  195. result = holder[name] = initializer();
  196. } else
  197. result = holder[name];
  198. } finally {
  199. if (result === sentinelInProgress)
  200. holder[name] = null;
  201. holder[getterName] = function() {
  202. return this[name];
  203. };
  204. }
  205. return result;
  206. };
  207. }
  208. function lazy(holder, name, getterName, initializer) {
  209. var uninitializedSentinel = holder;
  210. holder[name] = uninitializedSentinel;
  211. holder[getterName] = function() {
  212. if (holder[name] === uninitializedSentinel)
  213. holder[name] = initializer();
  214. holder[getterName] = function() {
  215. return this[name];
  216. };
  217. return holder[name];
  218. };
  219. }
  220. function makeConstList(list) {
  221. list.immutable$list = Array;
  222. list.fixed$length = Array;
  223. return list;
  224. }
  225. function convertToFastObject(properties) {
  226. function t() {
  227. }
  228. t.prototype = properties;
  229. new t();
  230. return properties;
  231. }
  232. function convertAllToFastObject(arrayOfObjects) {
  233. for (var i = 0; i < arrayOfObjects.length; ++i)
  234. convertToFastObject(arrayOfObjects[i]);
  235. }
  236. var functionCounter = 0;
  237. function tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted) {
  238. return isIntercepted ? new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "(receiver) {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, true, name);" + "return new c(this, funcs[0], receiver, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null) : new Function("funcs", "applyTrampolineIndex", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "() {" + "if (c === null) c = " + "H.closureFromTearOff" + "(" + "this, funcs, applyTrampolineIndex, reflectionInfo, false, false, name);" + "return new c(this, funcs[0], null, name);" + "}")(funcs, applyTrampolineIndex, reflectionInfo, name, H, null);
  239. }
  240. function tearOff(funcs, applyTrampolineIndex, reflectionInfo, isStatic, name, isIntercepted) {
  241. var cache = null;
  242. return isStatic ? function() {
  243. if (cache === null)
  244. cache = H.closureFromTearOff(this, funcs, applyTrampolineIndex, reflectionInfo, true, false, name).prototype;
  245. return cache;
  246. } : tearOffGetter(funcs, applyTrampolineIndex, reflectionInfo, name, isIntercepted);
  247. }
  248. var typesOffset = 0;
  249. function installTearOff(container, getterName, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  250. var funs = [];
  251. for (var i = 0; i < funsOrNames.length; i++) {
  252. var fun = funsOrNames[i];
  253. if (typeof fun == 'string')
  254. fun = container[fun];
  255. fun.$callName = callNames[i];
  256. funs.push(fun);
  257. }
  258. var fun = funs[0];
  259. fun.$requiredArgCount = requiredParameterCount;
  260. fun.$defaultValues = optionalParameterDefaultValues;
  261. var reflectionInfo = funType;
  262. if (typeof reflectionInfo == "number")
  263. reflectionInfo += typesOffset;
  264. var name = funsOrNames[0];
  265. fun.$stubName = name;
  266. var getterFunction = tearOff(funs, applyIndex || 0, reflectionInfo, isStatic, name, isIntercepted);
  267. container[getterName] = getterFunction;
  268. if (isStatic)
  269. fun.$tearOff = getterFunction;
  270. }
  271. function installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  272. return installTearOff(container, getterName, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  273. }
  274. function installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  275. return installTearOff(container, getterName, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex);
  276. }
  277. function setOrUpdateInterceptorsByTag(newTags) {
  278. var tags = init.interceptorsByTag;
  279. if (!tags) {
  280. init.interceptorsByTag = newTags;
  281. return;
  282. }
  283. copyProperties(newTags, tags);
  284. }
  285. function setOrUpdateLeafTags(newTags) {
  286. var tags = init.leafTags;
  287. if (!tags) {
  288. init.leafTags = newTags;
  289. return;
  290. }
  291. copyProperties(newTags, tags);
  292. }
  293. function updateTypes(newTypes) {
  294. var types = init.types;
  295. var length = types.length;
  296. types.push.apply(types, newTypes);
  297. return length;
  298. }
  299. function updateHolder(holder, newHolder) {
  300. copyProperties(newHolder, holder);
  301. return holder;
  302. }
  303. var hunkHelpers = function() {
  304. var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  305. return function(container, getterName, name, funType) {
  306. return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  307. };
  308. },
  309. mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  310. return function(container, getterName, name, funType) {
  311. return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  312. };
  313. };
  314. return {inherit: inherit, inheritMany: inheritMany, mixin: mixin, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, lazyOld: lazyOld, updateHolder: updateHolder, convertToFastObject: convertToFastObject, setFunctionNamesIfNecessary: setFunctionNamesIfNecessary, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
  315. }();
  316. function initializeDeferredHunk(hunk) {
  317. typesOffset = init.types.length;
  318. hunk(hunkHelpers, init, holders, $);
  319. }
  320. function getGlobalFromName(name) {
  321. for (var i = 0; i < holders.length; i++) {
  322. if (holders[i] == C)
  323. continue;
  324. if (holders[i][name])
  325. return holders[i][name];
  326. }
  327. }
  328. var C = {},
  329. H = {JS_CONST: function JS_CONST() {
  330. },
  331. CastIterable_CastIterable: function(source, $S, $T) {
  332. if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
  333. return new H._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
  334. return new H.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
  335. },
  336. LateInitializationErrorImpl$: function(_message) {
  337. return new H.LateInitializationErrorImpl(_message);
  338. },
  339. hexDigitValue: function(char) {
  340. var letter,
  341. digit = char ^ 48;
  342. if (digit <= 9)
  343. return digit;
  344. letter = char | 32;
  345. if (97 <= letter && letter <= 102)
  346. return letter - 87;
  347. return -1;
  348. },
  349. SubListIterable$: function(_iterable, _start, _endOrLength, $E) {
  350. P.RangeError_checkNotNegative(_start, "start");
  351. if (_endOrLength != null) {
  352. P.RangeError_checkNotNegative(_endOrLength, "end");
  353. if (_start > _endOrLength)
  354. H.throwExpression(P.RangeError$range(_start, 0, _endOrLength, "start", null));
  355. }
  356. return new H.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
  357. },
  358. MappedIterable_MappedIterable: function(iterable, $function, $S, $T) {
  359. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  360. return new H.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  361. return new H.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  362. },
  363. TakeIterable_TakeIterable: function(iterable, takeCount, $E) {
  364. var _s9_ = "takeCount";
  365. P.ArgumentError_checkNotNull(takeCount, _s9_);
  366. P.RangeError_checkNotNegative(takeCount, _s9_);
  367. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  368. return new H.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
  369. return new H.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
  370. },
  371. SkipIterable_SkipIterable: function(iterable, count, $E) {
  372. var _s5_ = "count";
  373. if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
  374. P.ArgumentError_checkNotNull(count, _s5_);
  375. P.RangeError_checkNotNegative(count, _s5_);
  376. return new H.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
  377. }
  378. P.ArgumentError_checkNotNull(count, _s5_);
  379. P.RangeError_checkNotNegative(count, _s5_);
  380. return new H.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
  381. },
  382. FollowedByIterable_FollowedByIterable$firstEfficient: function(first, second, $E) {
  383. if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
  384. return new H.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
  385. return new H.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
  386. },
  387. IterableElementError_noElement: function() {
  388. return new P.StateError("No element");
  389. },
  390. IterableElementError_tooMany: function() {
  391. return new P.StateError("Too many elements");
  392. },
  393. IterableElementError_tooFew: function() {
  394. return new P.StateError("Too few elements");
  395. },
  396. Sort_sort: function(a, compare) {
  397. H.Sort__doSort(a, 0, J.get$length$asx(a) - 1, compare);
  398. },
  399. Sort__doSort: function(a, left, right, compare) {
  400. if (right - left <= 32)
  401. H.Sort__insertionSort(a, left, right, compare);
  402. else
  403. H.Sort__dualPivotQuicksort(a, left, right, compare);
  404. },
  405. Sort__insertionSort: function(a, left, right, compare) {
  406. var i, t1, el, j, j0;
  407. for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
  408. el = t1.$index(a, i);
  409. j = i;
  410. while (true) {
  411. if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
  412. break;
  413. j0 = j - 1;
  414. t1.$indexSet(a, j, t1.$index(a, j0));
  415. j = j0;
  416. }
  417. t1.$indexSet(a, j, el);
  418. }
  419. },
  420. Sort__dualPivotQuicksort: function(a, left, right, compare) {
  421. var t0, less, great, k, ak, comp, great0, less0, pivots_are_equal, t2,
  422. sixth = C.JSInt_methods._tdivFast$1(right - left + 1, 6),
  423. index1 = left + sixth,
  424. index5 = right - sixth,
  425. index3 = C.JSInt_methods._tdivFast$1(left + right, 2),
  426. index2 = index3 - sixth,
  427. index4 = index3 + sixth,
  428. t1 = J.getInterceptor$asx(a),
  429. el1 = t1.$index(a, index1),
  430. el2 = t1.$index(a, index2),
  431. el3 = t1.$index(a, index3),
  432. el4 = t1.$index(a, index4),
  433. el5 = t1.$index(a, index5);
  434. if (compare.call$2(el1, el2) > 0) {
  435. t0 = el2;
  436. el2 = el1;
  437. el1 = t0;
  438. }
  439. if (compare.call$2(el4, el5) > 0) {
  440. t0 = el5;
  441. el5 = el4;
  442. el4 = t0;
  443. }
  444. if (compare.call$2(el1, el3) > 0) {
  445. t0 = el3;
  446. el3 = el1;
  447. el1 = t0;
  448. }
  449. if (compare.call$2(el2, el3) > 0) {
  450. t0 = el3;
  451. el3 = el2;
  452. el2 = t0;
  453. }
  454. if (compare.call$2(el1, el4) > 0) {
  455. t0 = el4;
  456. el4 = el1;
  457. el1 = t0;
  458. }
  459. if (compare.call$2(el3, el4) > 0) {
  460. t0 = el4;
  461. el4 = el3;
  462. el3 = t0;
  463. }
  464. if (compare.call$2(el2, el5) > 0) {
  465. t0 = el5;
  466. el5 = el2;
  467. el2 = t0;
  468. }
  469. if (compare.call$2(el2, el3) > 0) {
  470. t0 = el3;
  471. el3 = el2;
  472. el2 = t0;
  473. }
  474. if (compare.call$2(el4, el5) > 0) {
  475. t0 = el5;
  476. el5 = el4;
  477. el4 = t0;
  478. }
  479. t1.$indexSet(a, index1, el1);
  480. t1.$indexSet(a, index3, el3);
  481. t1.$indexSet(a, index5, el5);
  482. t1.$indexSet(a, index2, t1.$index(a, left));
  483. t1.$indexSet(a, index4, t1.$index(a, right));
  484. less = left + 1;
  485. great = right - 1;
  486. if (J.$eq$(compare.call$2(el2, el4), 0)) {
  487. for (k = less; k <= great; ++k) {
  488. ak = t1.$index(a, k);
  489. comp = compare.call$2(ak, el2);
  490. if (comp === 0)
  491. continue;
  492. if (comp < 0) {
  493. if (k !== less) {
  494. t1.$indexSet(a, k, t1.$index(a, less));
  495. t1.$indexSet(a, less, ak);
  496. }
  497. ++less;
  498. } else
  499. for (; true;) {
  500. comp = compare.call$2(t1.$index(a, great), el2);
  501. if (comp > 0) {
  502. --great;
  503. continue;
  504. } else {
  505. great0 = great - 1;
  506. if (comp < 0) {
  507. t1.$indexSet(a, k, t1.$index(a, less));
  508. less0 = less + 1;
  509. t1.$indexSet(a, less, t1.$index(a, great));
  510. t1.$indexSet(a, great, ak);
  511. great = great0;
  512. less = less0;
  513. break;
  514. } else {
  515. t1.$indexSet(a, k, t1.$index(a, great));
  516. t1.$indexSet(a, great, ak);
  517. great = great0;
  518. break;
  519. }
  520. }
  521. }
  522. }
  523. pivots_are_equal = true;
  524. } else {
  525. for (k = less; k <= great; ++k) {
  526. ak = t1.$index(a, k);
  527. if (compare.call$2(ak, el2) < 0) {
  528. if (k !== less) {
  529. t1.$indexSet(a, k, t1.$index(a, less));
  530. t1.$indexSet(a, less, ak);
  531. }
  532. ++less;
  533. } else if (compare.call$2(ak, el4) > 0)
  534. for (; true;)
  535. if (compare.call$2(t1.$index(a, great), el4) > 0) {
  536. --great;
  537. if (great < k)
  538. break;
  539. continue;
  540. } else {
  541. great0 = great - 1;
  542. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  543. t1.$indexSet(a, k, t1.$index(a, less));
  544. less0 = less + 1;
  545. t1.$indexSet(a, less, t1.$index(a, great));
  546. t1.$indexSet(a, great, ak);
  547. less = less0;
  548. } else {
  549. t1.$indexSet(a, k, t1.$index(a, great));
  550. t1.$indexSet(a, great, ak);
  551. }
  552. great = great0;
  553. break;
  554. }
  555. }
  556. pivots_are_equal = false;
  557. }
  558. t2 = less - 1;
  559. t1.$indexSet(a, left, t1.$index(a, t2));
  560. t1.$indexSet(a, t2, el2);
  561. t2 = great + 1;
  562. t1.$indexSet(a, right, t1.$index(a, t2));
  563. t1.$indexSet(a, t2, el4);
  564. H.Sort__doSort(a, left, less - 2, compare);
  565. H.Sort__doSort(a, great + 2, right, compare);
  566. if (pivots_are_equal)
  567. return;
  568. if (less < index1 && great > index5) {
  569. for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
  570. ++less;
  571. for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
  572. --great;
  573. for (k = less; k <= great; ++k) {
  574. ak = t1.$index(a, k);
  575. if (compare.call$2(ak, el2) === 0) {
  576. if (k !== less) {
  577. t1.$indexSet(a, k, t1.$index(a, less));
  578. t1.$indexSet(a, less, ak);
  579. }
  580. ++less;
  581. } else if (compare.call$2(ak, el4) === 0)
  582. for (; true;)
  583. if (compare.call$2(t1.$index(a, great), el4) === 0) {
  584. --great;
  585. if (great < k)
  586. break;
  587. continue;
  588. } else {
  589. great0 = great - 1;
  590. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  591. t1.$indexSet(a, k, t1.$index(a, less));
  592. less0 = less + 1;
  593. t1.$indexSet(a, less, t1.$index(a, great));
  594. t1.$indexSet(a, great, ak);
  595. less = less0;
  596. } else {
  597. t1.$indexSet(a, k, t1.$index(a, great));
  598. t1.$indexSet(a, great, ak);
  599. }
  600. great = great0;
  601. break;
  602. }
  603. }
  604. H.Sort__doSort(a, less, great, compare);
  605. } else
  606. H.Sort__doSort(a, less, great, compare);
  607. },
  608. _CastIterableBase: function _CastIterableBase() {
  609. },
  610. CastIterator: function CastIterator(t0, t1) {
  611. this._source = t0;
  612. this.$ti = t1;
  613. },
  614. CastIterable: function CastIterable(t0, t1) {
  615. this._source = t0;
  616. this.$ti = t1;
  617. },
  618. _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
  619. this._source = t0;
  620. this.$ti = t1;
  621. },
  622. _CastListBase: function _CastListBase() {
  623. },
  624. _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
  625. this.$this = t0;
  626. this.compare = t1;
  627. },
  628. CastList: function CastList(t0, t1) {
  629. this._source = t0;
  630. this.$ti = t1;
  631. },
  632. CastSet: function CastSet(t0, t1, t2) {
  633. this._source = t0;
  634. this._emptySet = t1;
  635. this.$ti = t2;
  636. },
  637. CastQueue: function CastQueue(t0, t1) {
  638. this._source = t0;
  639. this.$ti = t1;
  640. },
  641. LateInitializationErrorImpl: function LateInitializationErrorImpl(t0) {
  642. this.__internal$_message = t0;
  643. },
  644. CodeUnits: function CodeUnits(t0) {
  645. this._string = t0;
  646. },
  647. EfficientLengthIterable: function EfficientLengthIterable() {
  648. },
  649. ListIterable: function ListIterable() {
  650. },
  651. SubListIterable: function SubListIterable(t0, t1, t2, t3) {
  652. var _ = this;
  653. _.__internal$_iterable = t0;
  654. _._start = t1;
  655. _._endOrLength = t2;
  656. _.$ti = t3;
  657. },
  658. ListIterator: function ListIterator(t0, t1) {
  659. var _ = this;
  660. _.__internal$_iterable = t0;
  661. _.__internal$_length = t1;
  662. _.__internal$_index = 0;
  663. _.__internal$_current = null;
  664. },
  665. MappedIterable: function MappedIterable(t0, t1, t2) {
  666. this.__internal$_iterable = t0;
  667. this._f = t1;
  668. this.$ti = t2;
  669. },
  670. EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
  671. this.__internal$_iterable = t0;
  672. this._f = t1;
  673. this.$ti = t2;
  674. },
  675. MappedIterator: function MappedIterator(t0, t1) {
  676. this.__internal$_current = null;
  677. this._iterator = t0;
  678. this._f = t1;
  679. },
  680. MappedListIterable: function MappedListIterable(t0, t1, t2) {
  681. this._source = t0;
  682. this._f = t1;
  683. this.$ti = t2;
  684. },
  685. WhereIterable: function WhereIterable(t0, t1, t2) {
  686. this.__internal$_iterable = t0;
  687. this._f = t1;
  688. this.$ti = t2;
  689. },
  690. WhereIterator: function WhereIterator(t0, t1) {
  691. this._iterator = t0;
  692. this._f = t1;
  693. },
  694. ExpandIterable: function ExpandIterable(t0, t1, t2) {
  695. this.__internal$_iterable = t0;
  696. this._f = t1;
  697. this.$ti = t2;
  698. },
  699. ExpandIterator: function ExpandIterator(t0, t1, t2) {
  700. var _ = this;
  701. _._iterator = t0;
  702. _._f = t1;
  703. _._currentExpansion = t2;
  704. _.__internal$_current = null;
  705. },
  706. TakeIterable: function TakeIterable(t0, t1, t2) {
  707. this.__internal$_iterable = t0;
  708. this._takeCount = t1;
  709. this.$ti = t2;
  710. },
  711. EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
  712. this.__internal$_iterable = t0;
  713. this._takeCount = t1;
  714. this.$ti = t2;
  715. },
  716. TakeIterator: function TakeIterator(t0, t1) {
  717. this._iterator = t0;
  718. this._remaining = t1;
  719. },
  720. SkipIterable: function SkipIterable(t0, t1, t2) {
  721. this.__internal$_iterable = t0;
  722. this._skipCount = t1;
  723. this.$ti = t2;
  724. },
  725. EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
  726. this.__internal$_iterable = t0;
  727. this._skipCount = t1;
  728. this.$ti = t2;
  729. },
  730. SkipIterator: function SkipIterator(t0, t1) {
  731. this._iterator = t0;
  732. this._skipCount = t1;
  733. },
  734. SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
  735. this.__internal$_iterable = t0;
  736. this._f = t1;
  737. this.$ti = t2;
  738. },
  739. SkipWhileIterator: function SkipWhileIterator(t0, t1) {
  740. this._iterator = t0;
  741. this._f = t1;
  742. this._hasSkipped = false;
  743. },
  744. EmptyIterable: function EmptyIterable(t0) {
  745. this.$ti = t0;
  746. },
  747. EmptyIterator: function EmptyIterator() {
  748. },
  749. FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
  750. this.__internal$_first = t0;
  751. this._second = t1;
  752. this.$ti = t2;
  753. },
  754. EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
  755. this.__internal$_first = t0;
  756. this._second = t1;
  757. this.$ti = t2;
  758. },
  759. FollowedByIterator: function FollowedByIterator(t0, t1) {
  760. this._currentIterator = t0;
  761. this._nextIterable = t1;
  762. },
  763. WhereTypeIterable: function WhereTypeIterable(t0, t1) {
  764. this._source = t0;
  765. this.$ti = t1;
  766. },
  767. WhereTypeIterator: function WhereTypeIterator(t0, t1) {
  768. this._source = t0;
  769. this.$ti = t1;
  770. },
  771. FixedLengthListMixin: function FixedLengthListMixin() {
  772. },
  773. UnmodifiableListMixin: function UnmodifiableListMixin() {
  774. },
  775. UnmodifiableListBase: function UnmodifiableListBase() {
  776. },
  777. ReversedListIterable: function ReversedListIterable(t0, t1) {
  778. this._source = t0;
  779. this.$ti = t1;
  780. },
  781. Symbol: function Symbol(t0) {
  782. this.__internal$_name = t0;
  783. },
  784. __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
  785. },
  786. ConstantMap_ConstantMap$from: function(other, $K, $V) {
  787. var allStrings, object, containsProto, protoValue, $length, k, v,
  788. keys = P.List_List$from(other.get$keys(other), true, $K),
  789. t1 = keys.length,
  790. _i = 0;
  791. while (true) {
  792. if (!(_i < t1)) {
  793. allStrings = true;
  794. break;
  795. }
  796. if (typeof keys[_i] != "string") {
  797. allStrings = false;
  798. break;
  799. }
  800. ++_i;
  801. }
  802. if (allStrings) {
  803. object = {};
  804. for (containsProto = false, protoValue = null, $length = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  805. k = keys[_i];
  806. v = other.$index(0, k);
  807. if (!J.$eq$(k, "__proto__")) {
  808. H._asStringS(k);
  809. if (!object.hasOwnProperty(k))
  810. ++$length;
  811. object[k] = v;
  812. } else {
  813. protoValue = v;
  814. containsProto = true;
  815. }
  816. }
  817. if (containsProto)
  818. return new H.ConstantProtoMap(protoValue, $length + 1, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantProtoMap<1,2>"));
  819. return new H.ConstantStringMap($length, object, keys, $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
  820. }
  821. return new H.ConstantMapView(P.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
  822. },
  823. ConstantMap__throwUnmodifiable: function() {
  824. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable Map"));
  825. },
  826. instantiate1: function(f, T1) {
  827. var t1 = new H.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
  828. t1.Instantiation$1(f);
  829. return t1;
  830. },
  831. unminifyOrTag: function(rawClassName) {
  832. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  833. if (preserved != null)
  834. return preserved;
  835. return rawClassName;
  836. },
  837. isJsIndexable: function(object, record) {
  838. var result;
  839. if (record != null) {
  840. result = record.x;
  841. if (result != null)
  842. return result;
  843. }
  844. return type$.JavaScriptIndexingBehavior_dynamic._is(object);
  845. },
  846. S: function(value) {
  847. var res;
  848. if (typeof value == "string")
  849. return value;
  850. if (typeof value == "number") {
  851. if (value !== 0)
  852. return "" + value;
  853. } else if (true === value)
  854. return "true";
  855. else if (false === value)
  856. return "false";
  857. else if (value == null)
  858. return "null";
  859. res = J.toString$0$(value);
  860. if (typeof res != "string")
  861. throw H.wrapException(H.argumentErrorValue(value));
  862. return res;
  863. },
  864. Primitives_objectHashCode: function(object) {
  865. var hash = object.$identityHash;
  866. if (hash == null) {
  867. hash = Math.random() * 0x3fffffff | 0;
  868. object.$identityHash = hash;
  869. }
  870. return hash;
  871. },
  872. Primitives_parseInt: function(source, radix) {
  873. var match, decimalMatch, maxCharCode, digitsPart, t1, i, _null = null;
  874. if (typeof source != "string")
  875. H.throwExpression(H.argumentErrorValue(source));
  876. match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
  877. if (match == null)
  878. return _null;
  879. decimalMatch = match[3];
  880. if (radix == null) {
  881. if (decimalMatch != null)
  882. return parseInt(source, 10);
  883. if (match[2] != null)
  884. return parseInt(source, 16);
  885. return _null;
  886. }
  887. if (radix < 2 || radix > 36)
  888. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", _null));
  889. if (radix === 10 && decimalMatch != null)
  890. return parseInt(source, 10);
  891. if (radix < 10 || decimalMatch == null) {
  892. maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
  893. digitsPart = match[1];
  894. for (t1 = digitsPart.length, i = 0; i < t1; ++i)
  895. if ((C.JSString_methods._codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
  896. return _null;
  897. }
  898. return parseInt(source, radix);
  899. },
  900. Primitives_parseDouble: function(source) {
  901. var result, trimmed;
  902. if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
  903. return null;
  904. result = parseFloat(source);
  905. if (isNaN(result)) {
  906. trimmed = C.JSString_methods.trim$0(source);
  907. if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
  908. return result;
  909. return null;
  910. }
  911. return result;
  912. },
  913. Primitives_objectTypeName: function(object) {
  914. return H.Primitives__objectTypeNameNewRti(object);
  915. },
  916. Primitives__objectTypeNameNewRti: function(object) {
  917. var dispatchName, $constructor, constructorName;
  918. if (object instanceof P.Object)
  919. return H._rtiToString(H.instanceType(object), null);
  920. if (J.getInterceptor$(object) === C.Interceptor_methods || type$.UnknownJavaScriptObject._is(object)) {
  921. dispatchName = C.C_JS_CONST(object);
  922. if (H.Primitives__saneNativeClassName(dispatchName))
  923. return dispatchName;
  924. $constructor = object.constructor;
  925. if (typeof $constructor == "function") {
  926. constructorName = $constructor.name;
  927. if (typeof constructorName == "string" && H.Primitives__saneNativeClassName(constructorName))
  928. return constructorName;
  929. }
  930. }
  931. return H._rtiToString(H.instanceType(object), null);
  932. },
  933. Primitives__saneNativeClassName: function($name) {
  934. var t1 = $name !== "Object" && $name !== "";
  935. return t1;
  936. },
  937. Primitives_currentUri: function() {
  938. if (!!self.location)
  939. return self.location.href;
  940. return null;
  941. },
  942. Primitives__fromCharCodeApply: function(array) {
  943. var result, i, i0, chunkEnd,
  944. end = array.length;
  945. if (end <= 500)
  946. return String.fromCharCode.apply(null, array);
  947. for (result = "", i = 0; i < end; i = i0) {
  948. i0 = i + 500;
  949. chunkEnd = i0 < end ? i0 : end;
  950. result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
  951. }
  952. return result;
  953. },
  954. Primitives_stringFromCodePoints: function(codePoints) {
  955. var t1, _i, i,
  956. a = H.setRuntimeTypeInfo([], type$.JSArray_int);
  957. for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, H.throwConcurrentModificationError)(codePoints), ++_i) {
  958. i = codePoints[_i];
  959. if (!H._isInt(i))
  960. throw H.wrapException(H.argumentErrorValue(i));
  961. if (i <= 65535)
  962. a.push(i);
  963. else if (i <= 1114111) {
  964. a.push(55296 + (C.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
  965. a.push(56320 + (i & 1023));
  966. } else
  967. throw H.wrapException(H.argumentErrorValue(i));
  968. }
  969. return H.Primitives__fromCharCodeApply(a);
  970. },
  971. Primitives_stringFromCharCodes: function(charCodes) {
  972. var t1, _i, i;
  973. for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
  974. i = charCodes[_i];
  975. if (!H._isInt(i))
  976. throw H.wrapException(H.argumentErrorValue(i));
  977. if (i < 0)
  978. throw H.wrapException(H.argumentErrorValue(i));
  979. if (i > 65535)
  980. return H.Primitives_stringFromCodePoints(charCodes);
  981. }
  982. return H.Primitives__fromCharCodeApply(charCodes);
  983. },
  984. Primitives_stringFromNativeUint8List: function(charCodes, start, end) {
  985. var i, result, i0, chunkEnd;
  986. if (end <= 500 && start === 0 && end === charCodes.length)
  987. return String.fromCharCode.apply(null, charCodes);
  988. for (i = start, result = ""; i < end; i = i0) {
  989. i0 = i + 500;
  990. chunkEnd = i0 < end ? i0 : end;
  991. result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
  992. }
  993. return result;
  994. },
  995. Primitives_stringFromCharCode: function(charCode) {
  996. var bits;
  997. if (0 <= charCode) {
  998. if (charCode <= 65535)
  999. return String.fromCharCode(charCode);
  1000. if (charCode <= 1114111) {
  1001. bits = charCode - 65536;
  1002. return String.fromCharCode((55296 | C.JSInt_methods._shrOtherPositive$1(bits, 10)) >>> 0, 56320 | bits & 1023);
  1003. }
  1004. }
  1005. throw H.wrapException(P.RangeError$range(charCode, 0, 1114111, null, null));
  1006. },
  1007. Primitives_lazyAsJsDate: function(receiver) {
  1008. if (receiver.date === void 0)
  1009. receiver.date = new Date(receiver._value);
  1010. return receiver.date;
  1011. },
  1012. Primitives_getYear: function(receiver) {
  1013. var t1 = H.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
  1014. return t1;
  1015. },
  1016. Primitives_getMonth: function(receiver) {
  1017. var t1 = H.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
  1018. return t1;
  1019. },
  1020. Primitives_getDay: function(receiver) {
  1021. var t1 = H.Primitives_lazyAsJsDate(receiver).getDate() + 0;
  1022. return t1;
  1023. },
  1024. Primitives_getHours: function(receiver) {
  1025. var t1 = H.Primitives_lazyAsJsDate(receiver).getHours() + 0;
  1026. return t1;
  1027. },
  1028. Primitives_getMinutes: function(receiver) {
  1029. var t1 = H.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
  1030. return t1;
  1031. },
  1032. Primitives_getSeconds: function(receiver) {
  1033. var t1 = H.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
  1034. return t1;
  1035. },
  1036. Primitives_getMilliseconds: function(receiver) {
  1037. var t1 = H.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
  1038. return t1;
  1039. },
  1040. Primitives_functionNoSuchMethod: function($function, positionalArguments, namedArguments) {
  1041. var $arguments, namedArgumentList, t1 = {};
  1042. t1.argumentCount = 0;
  1043. $arguments = [];
  1044. namedArgumentList = [];
  1045. t1.argumentCount = positionalArguments.length;
  1046. C.JSArray_methods.addAll$1($arguments, positionalArguments);
  1047. t1.names = "";
  1048. if (namedArguments != null && !namedArguments.get$isEmpty(namedArguments))
  1049. namedArguments.forEach$1(0, new H.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
  1050. "" + t1.argumentCount;
  1051. return J.noSuchMethod$1$($function, new H.JSInvocationMirror(C.Symbol_call, 0, $arguments, namedArgumentList, 0));
  1052. },
  1053. Primitives_applyFunction: function($function, positionalArguments, namedArguments) {
  1054. var t1, $arguments, argumentCount, jsStub;
  1055. if (positionalArguments instanceof Array)
  1056. t1 = namedArguments == null || namedArguments.get$isEmpty(namedArguments);
  1057. else
  1058. t1 = false;
  1059. if (t1) {
  1060. $arguments = positionalArguments;
  1061. argumentCount = $arguments.length;
  1062. if (argumentCount === 0) {
  1063. if (!!$function.call$0)
  1064. return $function.call$0();
  1065. } else if (argumentCount === 1) {
  1066. if (!!$function.call$1)
  1067. return $function.call$1($arguments[0]);
  1068. } else if (argumentCount === 2) {
  1069. if (!!$function.call$2)
  1070. return $function.call$2($arguments[0], $arguments[1]);
  1071. } else if (argumentCount === 3) {
  1072. if (!!$function.call$3)
  1073. return $function.call$3($arguments[0], $arguments[1], $arguments[2]);
  1074. } else if (argumentCount === 4) {
  1075. if (!!$function.call$4)
  1076. return $function.call$4($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  1077. } else if (argumentCount === 5)
  1078. if (!!$function.call$5)
  1079. return $function.call$5($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]);
  1080. jsStub = $function["call" + "$" + argumentCount];
  1081. if (jsStub != null)
  1082. return jsStub.apply($function, $arguments);
  1083. }
  1084. return H.Primitives__genericApplyFunction2($function, positionalArguments, namedArguments);
  1085. },
  1086. Primitives__genericApplyFunction2: function($function, positionalArguments, namedArguments) {
  1087. var $arguments, argumentCount, requiredParameterCount, defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, keys, _i, defaultValue, used, t2;
  1088. if (positionalArguments != null)
  1089. $arguments = positionalArguments instanceof Array ? positionalArguments : P.List_List$from(positionalArguments, true, type$.dynamic);
  1090. else
  1091. $arguments = [];
  1092. argumentCount = $arguments.length;
  1093. requiredParameterCount = $function.$requiredArgCount;
  1094. if (argumentCount < requiredParameterCount)
  1095. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1096. defaultValuesClosure = $function.$defaultValues;
  1097. t1 = defaultValuesClosure == null;
  1098. defaultValues = !t1 ? defaultValuesClosure() : null;
  1099. interceptor = J.getInterceptor$($function);
  1100. jsFunction = interceptor["call*"];
  1101. if (typeof jsFunction == "string")
  1102. jsFunction = interceptor[jsFunction];
  1103. if (t1) {
  1104. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1105. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1106. if (argumentCount === requiredParameterCount)
  1107. return jsFunction.apply($function, $arguments);
  1108. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1109. }
  1110. if (defaultValues instanceof Array) {
  1111. if (namedArguments != null && namedArguments.get$isNotEmpty(namedArguments))
  1112. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1113. if (argumentCount > requiredParameterCount + defaultValues.length)
  1114. return H.Primitives_functionNoSuchMethod($function, $arguments, null);
  1115. C.JSArray_methods.addAll$1($arguments, defaultValues.slice(argumentCount - requiredParameterCount));
  1116. return jsFunction.apply($function, $arguments);
  1117. } else {
  1118. if (argumentCount > requiredParameterCount)
  1119. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1120. keys = Object.keys(defaultValues);
  1121. if (namedArguments == null)
  1122. for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  1123. defaultValue = defaultValues[keys[_i]];
  1124. if (C.C__Required === defaultValue)
  1125. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1126. C.JSArray_methods.add$1($arguments, defaultValue);
  1127. }
  1128. else {
  1129. for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, H.throwConcurrentModificationError)(keys), ++_i) {
  1130. t2 = keys[_i];
  1131. if (namedArguments.containsKey$1(t2)) {
  1132. ++used;
  1133. C.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
  1134. } else {
  1135. defaultValue = defaultValues[t2];
  1136. if (C.C__Required === defaultValue)
  1137. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1138. C.JSArray_methods.add$1($arguments, defaultValue);
  1139. }
  1140. }
  1141. if (used !== namedArguments.get$length(namedArguments))
  1142. return H.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  1143. }
  1144. return jsFunction.apply($function, $arguments);
  1145. }
  1146. },
  1147. diagnoseIndexError: function(indexable, index) {
  1148. var $length, _s5_ = "index";
  1149. if (!H._isInt(index))
  1150. return new P.ArgumentError(true, index, _s5_, null);
  1151. $length = J.get$length$asx(indexable);
  1152. if (index < 0 || index >= $length)
  1153. return P.IndexError$(index, indexable, _s5_, null, $length);
  1154. return P.RangeError$value(index, _s5_, null);
  1155. },
  1156. diagnoseRangeError: function(start, end, $length) {
  1157. if (start < 0 || start > $length)
  1158. return P.RangeError$range(start, 0, $length, "start", null);
  1159. if (end != null)
  1160. if (end < start || end > $length)
  1161. return P.RangeError$range(end, start, $length, "end", null);
  1162. return new P.ArgumentError(true, end, "end", null);
  1163. },
  1164. argumentErrorValue: function(object) {
  1165. return new P.ArgumentError(true, object, null, null);
  1166. },
  1167. checkNum: function(value) {
  1168. if (typeof value != "number")
  1169. throw H.wrapException(H.argumentErrorValue(value));
  1170. return value;
  1171. },
  1172. wrapException: function(ex) {
  1173. var wrapper, t1;
  1174. if (ex == null)
  1175. ex = new P.NullThrownError();
  1176. wrapper = new Error();
  1177. wrapper.dartException = ex;
  1178. t1 = H.toStringWrapper;
  1179. if ("defineProperty" in Object) {
  1180. Object.defineProperty(wrapper, "message", {get: t1});
  1181. wrapper.name = "";
  1182. } else
  1183. wrapper.toString = t1;
  1184. return wrapper;
  1185. },
  1186. toStringWrapper: function() {
  1187. return J.toString$0$(this.dartException);
  1188. },
  1189. throwExpression: function(ex) {
  1190. throw H.wrapException(ex);
  1191. },
  1192. throwConcurrentModificationError: function(collection) {
  1193. throw H.wrapException(P.ConcurrentModificationError$(collection));
  1194. },
  1195. TypeErrorDecoder_extractPattern: function(message) {
  1196. var match, $arguments, argumentsExpr, expr, method, receiver;
  1197. message = H.quoteStringForRegExp(message.replace(String({}), '$receiver$'));
  1198. match = message.match(/\\\$[a-zA-Z]+\\\$/g);
  1199. if (match == null)
  1200. match = H.setRuntimeTypeInfo([], type$.JSArray_String);
  1201. $arguments = match.indexOf("\\$arguments\\$");
  1202. argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
  1203. expr = match.indexOf("\\$expr\\$");
  1204. method = match.indexOf("\\$method\\$");
  1205. receiver = match.indexOf("\\$receiver\\$");
  1206. return new H.TypeErrorDecoder(message.replace(new RegExp('\\\\\\$arguments\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$argumentsExpr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$expr\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$method\\\\\\$', 'g'), '((?:x|[^x])*)').replace(new RegExp('\\\\\\$receiver\\\\\\$', 'g'), '((?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver);
  1207. },
  1208. TypeErrorDecoder_provokeCallErrorOn: function(expression) {
  1209. return function($expr$) {
  1210. var $argumentsExpr$ = '$arguments$';
  1211. try {
  1212. $expr$.$method$($argumentsExpr$);
  1213. } catch (e) {
  1214. return e.message;
  1215. }
  1216. }(expression);
  1217. },
  1218. TypeErrorDecoder_provokePropertyErrorOn: function(expression) {
  1219. return function($expr$) {
  1220. try {
  1221. $expr$.$method$;
  1222. } catch (e) {
  1223. return e.message;
  1224. }
  1225. }(expression);
  1226. },
  1227. NullError$: function(_message, match) {
  1228. return new H.NullError(_message, match == null ? null : match.method);
  1229. },
  1230. JsNoSuchMethodError$: function(_message, match) {
  1231. var t1 = match == null,
  1232. t2 = t1 ? null : match.method;
  1233. return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
  1234. },
  1235. unwrapException: function(ex) {
  1236. if (ex == null)
  1237. return new H.NullThrownFromJavaScriptException(ex);
  1238. if (ex instanceof H.ExceptionAndStackTrace)
  1239. return H.saveStackTrace(ex, ex.dartException);
  1240. if (typeof ex !== "object")
  1241. return ex;
  1242. if ("dartException" in ex)
  1243. return H.saveStackTrace(ex, ex.dartException);
  1244. return H._unwrapNonDartException(ex);
  1245. },
  1246. saveStackTrace: function(ex, error) {
  1247. if (type$.Error._is(error))
  1248. if (error.$thrownJsError == null)
  1249. error.$thrownJsError = ex;
  1250. return error;
  1251. },
  1252. _unwrapNonDartException: function(ex) {
  1253. var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match, t1, _null = null;
  1254. if (!("message" in ex))
  1255. return ex;
  1256. message = ex.message;
  1257. if ("number" in ex && typeof ex.number == "number") {
  1258. number = ex.number;
  1259. ieErrorCode = number & 65535;
  1260. if ((C.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
  1261. switch (ieErrorCode) {
  1262. case 438:
  1263. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1264. case 445:
  1265. case 5007:
  1266. return H.saveStackTrace(ex, H.NullError$(H.S(message) + " (Error " + ieErrorCode + ")", _null));
  1267. }
  1268. }
  1269. if (ex instanceof TypeError) {
  1270. nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
  1271. notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
  1272. nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
  1273. nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
  1274. undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
  1275. undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
  1276. nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
  1277. $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
  1278. undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
  1279. undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
  1280. match = nsme.matchTypeError$1(message);
  1281. if (match != null)
  1282. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
  1283. else {
  1284. match = notClosure.matchTypeError$1(message);
  1285. if (match != null) {
  1286. match.method = "call";
  1287. return H.saveStackTrace(ex, H.JsNoSuchMethodError$(message, match));
  1288. } else {
  1289. match = nullCall.matchTypeError$1(message);
  1290. if (match == null) {
  1291. match = nullLiteralCall.matchTypeError$1(message);
  1292. if (match == null) {
  1293. match = undefCall.matchTypeError$1(message);
  1294. if (match == null) {
  1295. match = undefLiteralCall.matchTypeError$1(message);
  1296. if (match == null) {
  1297. match = nullProperty.matchTypeError$1(message);
  1298. if (match == null) {
  1299. match = nullLiteralCall.matchTypeError$1(message);
  1300. if (match == null) {
  1301. match = undefProperty.matchTypeError$1(message);
  1302. if (match == null) {
  1303. match = undefLiteralProperty.matchTypeError$1(message);
  1304. t1 = match != null;
  1305. } else
  1306. t1 = true;
  1307. } else
  1308. t1 = true;
  1309. } else
  1310. t1 = true;
  1311. } else
  1312. t1 = true;
  1313. } else
  1314. t1 = true;
  1315. } else
  1316. t1 = true;
  1317. } else
  1318. t1 = true;
  1319. if (t1)
  1320. return H.saveStackTrace(ex, H.NullError$(message, match));
  1321. }
  1322. }
  1323. return H.saveStackTrace(ex, new H.UnknownJsTypeError(typeof message == "string" ? message : ""));
  1324. }
  1325. if (ex instanceof RangeError) {
  1326. if (typeof message == "string" && message.indexOf("call stack") !== -1)
  1327. return new P.StackOverflowError();
  1328. message = function(ex) {
  1329. try {
  1330. return String(ex);
  1331. } catch (e) {
  1332. }
  1333. return null;
  1334. }(ex);
  1335. return H.saveStackTrace(ex, new P.ArgumentError(false, _null, _null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
  1336. }
  1337. if (typeof InternalError == "function" && ex instanceof InternalError)
  1338. if (typeof message == "string" && message === "too much recursion")
  1339. return new P.StackOverflowError();
  1340. return ex;
  1341. },
  1342. getTraceFromException: function(exception) {
  1343. var trace;
  1344. if (exception instanceof H.ExceptionAndStackTrace)
  1345. return exception.stackTrace;
  1346. if (exception == null)
  1347. return new H._StackTrace(exception);
  1348. trace = exception.$cachedTrace;
  1349. if (trace != null)
  1350. return trace;
  1351. return exception.$cachedTrace = new H._StackTrace(exception);
  1352. },
  1353. objectHashCode: function(object) {
  1354. if (object == null || typeof object != 'object')
  1355. return J.get$hashCode$(object);
  1356. else
  1357. return H.Primitives_objectHashCode(object);
  1358. },
  1359. fillLiteralMap: function(keyValuePairs, result) {
  1360. var index, index0, index1,
  1361. $length = keyValuePairs.length;
  1362. for (index = 0; index < $length; index = index1) {
  1363. index0 = index + 1;
  1364. index1 = index0 + 1;
  1365. result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
  1366. }
  1367. return result;
  1368. },
  1369. fillLiteralSet: function(values, result) {
  1370. var index,
  1371. $length = values.length;
  1372. for (index = 0; index < $length; ++index)
  1373. result.add$1(0, values[index]);
  1374. return result;
  1375. },
  1376. invokeClosure: function(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
  1377. switch (numberOfArguments) {
  1378. case 0:
  1379. return closure.call$0();
  1380. case 1:
  1381. return closure.call$1(arg1);
  1382. case 2:
  1383. return closure.call$2(arg1, arg2);
  1384. case 3:
  1385. return closure.call$3(arg1, arg2, arg3);
  1386. case 4:
  1387. return closure.call$4(arg1, arg2, arg3, arg4);
  1388. }
  1389. throw H.wrapException(new P._Exception("Unsupported number of arguments for wrapped closure"));
  1390. },
  1391. convertDartClosureToJS: function(closure, arity) {
  1392. var $function;
  1393. if (closure == null)
  1394. return null;
  1395. $function = closure.$identity;
  1396. if (!!$function)
  1397. return $function;
  1398. $function = function(closure, arity, invoke) {
  1399. return function(a1, a2, a3, a4) {
  1400. return invoke(closure, arity, a1, a2, a3, a4);
  1401. };
  1402. }(closure, arity, H.invokeClosure);
  1403. closure.$identity = $function;
  1404. return $function;
  1405. },
  1406. Closure_fromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, propertyName) {
  1407. var $constructor, t1, trampoline, applyTrampoline, i, stub, stubCallName,
  1408. $function = functions[0],
  1409. callName = $function.$callName,
  1410. $prototype = isStatic ? Object.create(new H.StaticClosure().constructor.prototype) : Object.create(new H.BoundClosure(null, null, null, "").constructor.prototype);
  1411. $prototype.$initialize = $prototype.constructor;
  1412. if (isStatic)
  1413. $constructor = function static_tear_off() {
  1414. this.$initialize();
  1415. };
  1416. else {
  1417. t1 = $.Closure_functionCounter;
  1418. $.Closure_functionCounter = t1 + 1;
  1419. t1 = new Function("a,b,c,d" + t1, "this.$initialize(a,b,c,d" + t1 + ")");
  1420. $constructor = t1;
  1421. }
  1422. $prototype.constructor = $constructor;
  1423. $constructor.prototype = $prototype;
  1424. if (!isStatic) {
  1425. trampoline = H.Closure_forwardCallTo(receiver, $function, isIntercepted);
  1426. trampoline.$reflectionInfo = reflectionInfo;
  1427. } else {
  1428. $prototype.$static_name = propertyName;
  1429. trampoline = $function;
  1430. }
  1431. $prototype.$signature = H.Closure__computeSignatureFunctionNewRti(reflectionInfo, isStatic, isIntercepted);
  1432. $prototype[callName] = trampoline;
  1433. for (applyTrampoline = trampoline, i = 1; i < functions.length; ++i) {
  1434. stub = functions[i];
  1435. stubCallName = stub.$callName;
  1436. if (stubCallName != null) {
  1437. stub = isStatic ? stub : H.Closure_forwardCallTo(receiver, stub, isIntercepted);
  1438. $prototype[stubCallName] = stub;
  1439. }
  1440. if (i === applyTrampolineIndex) {
  1441. stub.$reflectionInfo = reflectionInfo;
  1442. applyTrampoline = stub;
  1443. }
  1444. }
  1445. $prototype["call*"] = applyTrampoline;
  1446. $prototype.$requiredArgCount = $function.$requiredArgCount;
  1447. $prototype.$defaultValues = $function.$defaultValues;
  1448. return $constructor;
  1449. },
  1450. Closure__computeSignatureFunctionNewRti: function(functionType, isStatic, isIntercepted) {
  1451. var typeEvalMethod;
  1452. if (typeof functionType == "number")
  1453. return function(getType, t) {
  1454. return function() {
  1455. return getType(t);
  1456. };
  1457. }(H.getTypeFromTypesTable, functionType);
  1458. if (typeof functionType == "string") {
  1459. if (isStatic)
  1460. throw H.wrapException("Cannot compute signature for static tearoff.");
  1461. typeEvalMethod = isIntercepted ? H.BoundClosure_evalRecipeIntercepted : H.BoundClosure_evalRecipe;
  1462. return function(recipe, evalOnReceiver) {
  1463. return function() {
  1464. return evalOnReceiver(this, recipe);
  1465. };
  1466. }(functionType, typeEvalMethod);
  1467. }
  1468. throw H.wrapException("Error in functionType of tearoff");
  1469. },
  1470. Closure_cspForwardCall: function(arity, isSuperCall, stubName, $function) {
  1471. var getSelf = H.BoundClosure_selfOf;
  1472. switch (isSuperCall ? -1 : arity) {
  1473. case 0:
  1474. return function(n, S) {
  1475. return function() {
  1476. return S(this)[n]();
  1477. };
  1478. }(stubName, getSelf);
  1479. case 1:
  1480. return function(n, S) {
  1481. return function(a) {
  1482. return S(this)[n](a);
  1483. };
  1484. }(stubName, getSelf);
  1485. case 2:
  1486. return function(n, S) {
  1487. return function(a, b) {
  1488. return S(this)[n](a, b);
  1489. };
  1490. }(stubName, getSelf);
  1491. case 3:
  1492. return function(n, S) {
  1493. return function(a, b, c) {
  1494. return S(this)[n](a, b, c);
  1495. };
  1496. }(stubName, getSelf);
  1497. case 4:
  1498. return function(n, S) {
  1499. return function(a, b, c, d) {
  1500. return S(this)[n](a, b, c, d);
  1501. };
  1502. }(stubName, getSelf);
  1503. case 5:
  1504. return function(n, S) {
  1505. return function(a, b, c, d, e) {
  1506. return S(this)[n](a, b, c, d, e);
  1507. };
  1508. }(stubName, getSelf);
  1509. default:
  1510. return function(f, s) {
  1511. return function() {
  1512. return f.apply(s(this), arguments);
  1513. };
  1514. }($function, getSelf);
  1515. }
  1516. },
  1517. Closure_forwardCallTo: function(receiver, $function, isIntercepted) {
  1518. var stubName, arity, lookedUpFunction, t1, t2, selfName, $arguments;
  1519. if (isIntercepted)
  1520. return H.Closure_forwardInterceptedCallTo(receiver, $function);
  1521. stubName = $function.$stubName;
  1522. arity = $function.length;
  1523. lookedUpFunction = receiver[stubName];
  1524. t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1525. t2 = !t1 || arity >= 27;
  1526. if (t2)
  1527. return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
  1528. if (arity === 0) {
  1529. t1 = $.Closure_functionCounter;
  1530. $.Closure_functionCounter = t1 + 1;
  1531. selfName = "self" + H.S(t1);
  1532. return new Function("return function(){var " + selfName + " = this." + H.S(H.BoundClosure_selfFieldName()) + ";return " + selfName + "." + H.S(stubName) + "();}")();
  1533. }
  1534. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity).join(",");
  1535. t1 = $.Closure_functionCounter;
  1536. $.Closure_functionCounter = t1 + 1;
  1537. $arguments += H.S(t1);
  1538. return new Function("return function(" + $arguments + "){return this." + H.S(H.BoundClosure_selfFieldName()) + "." + H.S(stubName) + "(" + $arguments + ");}")();
  1539. },
  1540. Closure_cspForwardInterceptedCall: function(arity, isSuperCall, $name, $function) {
  1541. var getSelf = H.BoundClosure_selfOf,
  1542. getReceiver = H.BoundClosure_receiverOf;
  1543. switch (isSuperCall ? -1 : arity) {
  1544. case 0:
  1545. throw H.wrapException(new H.RuntimeError("Intercepted function with no arguments."));
  1546. case 1:
  1547. return function(n, s, r) {
  1548. return function() {
  1549. return s(this)[n](r(this));
  1550. };
  1551. }($name, getSelf, getReceiver);
  1552. case 2:
  1553. return function(n, s, r) {
  1554. return function(a) {
  1555. return s(this)[n](r(this), a);
  1556. };
  1557. }($name, getSelf, getReceiver);
  1558. case 3:
  1559. return function(n, s, r) {
  1560. return function(a, b) {
  1561. return s(this)[n](r(this), a, b);
  1562. };
  1563. }($name, getSelf, getReceiver);
  1564. case 4:
  1565. return function(n, s, r) {
  1566. return function(a, b, c) {
  1567. return s(this)[n](r(this), a, b, c);
  1568. };
  1569. }($name, getSelf, getReceiver);
  1570. case 5:
  1571. return function(n, s, r) {
  1572. return function(a, b, c, d) {
  1573. return s(this)[n](r(this), a, b, c, d);
  1574. };
  1575. }($name, getSelf, getReceiver);
  1576. case 6:
  1577. return function(n, s, r) {
  1578. return function(a, b, c, d, e) {
  1579. return s(this)[n](r(this), a, b, c, d, e);
  1580. };
  1581. }($name, getSelf, getReceiver);
  1582. default:
  1583. return function(f, s, r, a) {
  1584. return function() {
  1585. a = [r(this)];
  1586. Array.prototype.push.apply(a, arguments);
  1587. return f.apply(s(this), a);
  1588. };
  1589. }($function, getSelf, getReceiver);
  1590. }
  1591. },
  1592. Closure_forwardInterceptedCallTo: function(receiver, $function) {
  1593. var stubName, arity, lookedUpFunction, t1, t2, $arguments,
  1594. selfField = H.BoundClosure_selfFieldName(),
  1595. receiverField = $.BoundClosure_receiverFieldNameCache;
  1596. if (receiverField == null)
  1597. receiverField = $.BoundClosure_receiverFieldNameCache = H.BoundClosure_computeFieldNamed("receiver");
  1598. stubName = $function.$stubName;
  1599. arity = $function.length;
  1600. lookedUpFunction = receiver[stubName];
  1601. t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
  1602. t2 = !t1 || arity >= 28;
  1603. if (t2)
  1604. return H.Closure_cspForwardInterceptedCall(arity, !t1, stubName, $function);
  1605. if (arity === 1) {
  1606. t1 = "return function(){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ");";
  1607. t2 = $.Closure_functionCounter;
  1608. $.Closure_functionCounter = t2 + 1;
  1609. return new Function(t1 + H.S(t2) + "}")();
  1610. }
  1611. $arguments = "abcdefghijklmnopqrstuvwxyz".split("").splice(0, arity - 1).join(",");
  1612. t1 = "return function(" + $arguments + "){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + receiverField + ", " + $arguments + ");";
  1613. t2 = $.Closure_functionCounter;
  1614. $.Closure_functionCounter = t2 + 1;
  1615. return new Function(t1 + H.S(t2) + "}")();
  1616. },
  1617. closureFromTearOff: function(receiver, functions, applyTrampolineIndex, reflectionInfo, isStatic, isIntercepted, $name) {
  1618. return H.Closure_fromTearOff(receiver, functions, applyTrampolineIndex, reflectionInfo, !!isStatic, !!isIntercepted, $name);
  1619. },
  1620. BoundClosure_evalRecipe: function(closure, recipe) {
  1621. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._self), recipe);
  1622. },
  1623. BoundClosure_evalRecipeIntercepted: function(closure, recipe) {
  1624. return H._Universe_evalInEnvironment(init.typeUniverse, H.instanceType(closure._receiver), recipe);
  1625. },
  1626. BoundClosure_selfOf: function(closure) {
  1627. return closure._self;
  1628. },
  1629. BoundClosure_receiverOf: function(closure) {
  1630. return closure._receiver;
  1631. },
  1632. BoundClosure_selfFieldName: function() {
  1633. var t1 = $.BoundClosure_selfFieldNameCache;
  1634. return t1 == null ? $.BoundClosure_selfFieldNameCache = H.BoundClosure_computeFieldNamed("self") : t1;
  1635. },
  1636. BoundClosure_computeFieldNamed: function(fieldName) {
  1637. var t1, i, $name,
  1638. template = new H.BoundClosure("self", "target", "receiver", "name"),
  1639. names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
  1640. for (t1 = names.length, i = 0; i < t1; ++i) {
  1641. $name = names[i];
  1642. if (template[$name] === fieldName)
  1643. return $name;
  1644. }
  1645. throw H.wrapException(P.ArgumentError$("Field name " + fieldName + " not found."));
  1646. },
  1647. throwCyclicInit: function(staticName) {
  1648. throw H.wrapException(new P.CyclicInitializationError(staticName));
  1649. },
  1650. getIsolateAffinityTag: function($name) {
  1651. return init.getIsolateTag($name);
  1652. },
  1653. defineProperty: function(obj, property, value) {
  1654. Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
  1655. },
  1656. lookupAndCacheInterceptor: function(obj) {
  1657. var interceptor, interceptorClass, altTag, mark, t1,
  1658. tag = $.getTagFunction.call$1(obj),
  1659. record = $.dispatchRecordsForInstanceTags[tag];
  1660. if (record != null) {
  1661. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1662. return record.i;
  1663. }
  1664. interceptor = $.interceptorsForUncacheableTags[tag];
  1665. if (interceptor != null)
  1666. return interceptor;
  1667. interceptorClass = init.interceptorsByTag[tag];
  1668. if (interceptorClass == null) {
  1669. altTag = $.alternateTagFunction.call$2(obj, tag);
  1670. if (altTag != null) {
  1671. record = $.dispatchRecordsForInstanceTags[altTag];
  1672. if (record != null) {
  1673. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1674. return record.i;
  1675. }
  1676. interceptor = $.interceptorsForUncacheableTags[altTag];
  1677. if (interceptor != null)
  1678. return interceptor;
  1679. interceptorClass = init.interceptorsByTag[altTag];
  1680. tag = altTag;
  1681. }
  1682. }
  1683. if (interceptorClass == null)
  1684. return null;
  1685. interceptor = interceptorClass.prototype;
  1686. mark = tag[0];
  1687. if (mark === "!") {
  1688. record = H.makeLeafDispatchRecord(interceptor);
  1689. $.dispatchRecordsForInstanceTags[tag] = record;
  1690. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1691. return record.i;
  1692. }
  1693. if (mark === "~") {
  1694. $.interceptorsForUncacheableTags[tag] = interceptor;
  1695. return interceptor;
  1696. }
  1697. if (mark === "-") {
  1698. t1 = H.makeLeafDispatchRecord(interceptor);
  1699. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1700. return t1.i;
  1701. }
  1702. if (mark === "+")
  1703. return H.patchInteriorProto(obj, interceptor);
  1704. if (mark === "*")
  1705. throw H.wrapException(P.UnimplementedError$(tag));
  1706. if (init.leafTags[tag] === true) {
  1707. t1 = H.makeLeafDispatchRecord(interceptor);
  1708. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  1709. return t1.i;
  1710. } else
  1711. return H.patchInteriorProto(obj, interceptor);
  1712. },
  1713. patchInteriorProto: function(obj, interceptor) {
  1714. var proto = Object.getPrototypeOf(obj);
  1715. Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
  1716. return interceptor;
  1717. },
  1718. makeLeafDispatchRecord: function(interceptor) {
  1719. return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
  1720. },
  1721. makeDefaultDispatchRecord: function(tag, interceptorClass, proto) {
  1722. var interceptor = interceptorClass.prototype;
  1723. if (init.leafTags[tag] === true)
  1724. return H.makeLeafDispatchRecord(interceptor);
  1725. else
  1726. return J.makeDispatchRecord(interceptor, proto, null, null);
  1727. },
  1728. initNativeDispatch: function() {
  1729. if (true === $.initNativeDispatchFlag)
  1730. return;
  1731. $.initNativeDispatchFlag = true;
  1732. H.initNativeDispatchContinue();
  1733. },
  1734. initNativeDispatchContinue: function() {
  1735. var map, tags, fun, i, tag, proto, record, interceptorClass;
  1736. $.dispatchRecordsForInstanceTags = Object.create(null);
  1737. $.interceptorsForUncacheableTags = Object.create(null);
  1738. H.initHooks();
  1739. map = init.interceptorsByTag;
  1740. tags = Object.getOwnPropertyNames(map);
  1741. if (typeof window != "undefined") {
  1742. window;
  1743. fun = function() {
  1744. };
  1745. for (i = 0; i < tags.length; ++i) {
  1746. tag = tags[i];
  1747. proto = $.prototypeForTagFunction.call$1(tag);
  1748. if (proto != null) {
  1749. record = H.makeDefaultDispatchRecord(tag, map[tag], proto);
  1750. if (record != null) {
  1751. Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  1752. fun.prototype = proto;
  1753. }
  1754. }
  1755. }
  1756. }
  1757. for (i = 0; i < tags.length; ++i) {
  1758. tag = tags[i];
  1759. if (/^[A-Za-z_]/.test(tag)) {
  1760. interceptorClass = map[tag];
  1761. map["!" + tag] = interceptorClass;
  1762. map["~" + tag] = interceptorClass;
  1763. map["-" + tag] = interceptorClass;
  1764. map["+" + tag] = interceptorClass;
  1765. map["*" + tag] = interceptorClass;
  1766. }
  1767. }
  1768. },
  1769. initHooks: function() {
  1770. var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
  1771. hooks = C.C_JS_CONST0();
  1772. hooks = H.applyHooksTransformer(C.C_JS_CONST1, H.applyHooksTransformer(C.C_JS_CONST2, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST3, H.applyHooksTransformer(C.C_JS_CONST4, H.applyHooksTransformer(C.C_JS_CONST5, H.applyHooksTransformer(C.C_JS_CONST6(C.C_JS_CONST), hooks)))))));
  1773. if (typeof dartNativeDispatchHooksTransformer != "undefined") {
  1774. transformers = dartNativeDispatchHooksTransformer;
  1775. if (typeof transformers == "function")
  1776. transformers = [transformers];
  1777. if (transformers.constructor == Array)
  1778. for (i = 0; i < transformers.length; ++i) {
  1779. transformer = transformers[i];
  1780. if (typeof transformer == "function")
  1781. hooks = transformer(hooks) || hooks;
  1782. }
  1783. }
  1784. getTag = hooks.getTag;
  1785. getUnknownTag = hooks.getUnknownTag;
  1786. prototypeForTag = hooks.prototypeForTag;
  1787. $.getTagFunction = new H.initHooks_closure(getTag);
  1788. $.alternateTagFunction = new H.initHooks_closure0(getUnknownTag);
  1789. $.prototypeForTagFunction = new H.initHooks_closure1(prototypeForTag);
  1790. },
  1791. applyHooksTransformer: function(transformer, hooks) {
  1792. return transformer(hooks) || hooks;
  1793. },
  1794. JSSyntaxRegExp_makeNative: function(source, multiLine, caseSensitive, unicode, dotAll, global) {
  1795. var m = multiLine ? "m" : "",
  1796. i = caseSensitive ? "" : "i",
  1797. u = unicode ? "u" : "",
  1798. s = dotAll ? "s" : "",
  1799. g = global ? "g" : "",
  1800. regexp = function(source, modifiers) {
  1801. try {
  1802. return new RegExp(source, modifiers);
  1803. } catch (e) {
  1804. return e;
  1805. }
  1806. }(source, m + i + u + s + g);
  1807. if (regexp instanceof RegExp)
  1808. return regexp;
  1809. throw H.wrapException(P.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
  1810. },
  1811. stringContainsUnchecked: function(receiver, other, startIndex) {
  1812. var t1, t2;
  1813. if (typeof other == "string")
  1814. return receiver.indexOf(other, startIndex) >= 0;
  1815. else if (other instanceof H.JSSyntaxRegExp) {
  1816. t1 = C.JSString_methods.substring$1(receiver, startIndex);
  1817. t2 = other._nativeRegExp;
  1818. return t2.test(t1);
  1819. } else {
  1820. t1 = J.allMatches$1$s(other, C.JSString_methods.substring$1(receiver, startIndex));
  1821. return !t1.get$isEmpty(t1);
  1822. }
  1823. },
  1824. escapeReplacement: function(replacement) {
  1825. if (replacement.indexOf("$", 0) >= 0)
  1826. return replacement.replace(/\$/g, "$$$$");
  1827. return replacement;
  1828. },
  1829. stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
  1830. var match = regexp._execGlobal$2(receiver, startIndex);
  1831. if (match == null)
  1832. return receiver;
  1833. return H.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(match), replacement);
  1834. },
  1835. quoteStringForRegExp: function(string) {
  1836. if (/[[\]{}()*+?.\\^$|]/.test(string))
  1837. return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
  1838. return string;
  1839. },
  1840. stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
  1841. var nativeRegexp;
  1842. if (typeof pattern == "string")
  1843. return H.stringReplaceAllUncheckedString(receiver, pattern, replacement);
  1844. if (pattern instanceof H.JSSyntaxRegExp) {
  1845. nativeRegexp = pattern.get$_nativeGlobalVersion();
  1846. nativeRegexp.lastIndex = 0;
  1847. return receiver.replace(nativeRegexp, H.escapeReplacement(replacement));
  1848. }
  1849. if (pattern == null)
  1850. H.throwExpression(H.argumentErrorValue(pattern));
  1851. throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
  1852. },
  1853. stringReplaceAllUncheckedString: function(receiver, pattern, replacement) {
  1854. var $length, t1, i, index;
  1855. if (pattern === "") {
  1856. if (receiver === "")
  1857. return replacement;
  1858. $length = receiver.length;
  1859. for (t1 = replacement, i = 0; i < $length; ++i)
  1860. t1 = t1 + receiver[i] + replacement;
  1861. return t1.charCodeAt(0) == 0 ? t1 : t1;
  1862. }
  1863. index = receiver.indexOf(pattern, 0);
  1864. if (index < 0)
  1865. return receiver;
  1866. if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
  1867. return receiver.split(pattern).join(replacement);
  1868. return receiver.replace(new RegExp(H.quoteStringForRegExp(pattern), 'g'), H.escapeReplacement(replacement));
  1869. },
  1870. stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
  1871. var index, t1, matches, match;
  1872. if (typeof pattern == "string") {
  1873. index = receiver.indexOf(pattern, startIndex);
  1874. if (index < 0)
  1875. return receiver;
  1876. return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
  1877. }
  1878. if (pattern instanceof H.JSSyntaxRegExp)
  1879. return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, H.escapeReplacement(replacement)) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
  1880. if (pattern == null)
  1881. H.throwExpression(H.argumentErrorValue(pattern));
  1882. t1 = J.allMatches$2$s(pattern, receiver, startIndex);
  1883. matches = t1.get$iterator(t1);
  1884. if (!matches.moveNext$0())
  1885. return receiver;
  1886. match = matches.get$current(matches);
  1887. return C.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
  1888. },
  1889. stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
  1890. var prefix = receiver.substring(0, start),
  1891. suffix = receiver.substring(end);
  1892. return prefix + H.S(replacement) + suffix;
  1893. },
  1894. ConstantMapView: function ConstantMapView(t0, t1) {
  1895. this._collection$_map = t0;
  1896. this.$ti = t1;
  1897. },
  1898. ConstantMap: function ConstantMap() {
  1899. },
  1900. ConstantStringMap: function ConstantStringMap(t0, t1, t2, t3) {
  1901. var _ = this;
  1902. _.__js_helper$_length = t0;
  1903. _._jsObject = t1;
  1904. _.__js_helper$_keys = t2;
  1905. _.$ti = t3;
  1906. },
  1907. ConstantStringMap_values_closure: function ConstantStringMap_values_closure(t0) {
  1908. this.$this = t0;
  1909. },
  1910. ConstantProtoMap: function ConstantProtoMap(t0, t1, t2, t3, t4) {
  1911. var _ = this;
  1912. _._protoValue = t0;
  1913. _.__js_helper$_length = t1;
  1914. _._jsObject = t2;
  1915. _.__js_helper$_keys = t3;
  1916. _.$ti = t4;
  1917. },
  1918. _ConstantMapKeyIterable: function _ConstantMapKeyIterable(t0, t1) {
  1919. this._map = t0;
  1920. this.$ti = t1;
  1921. },
  1922. Instantiation: function Instantiation() {
  1923. },
  1924. Instantiation1: function Instantiation1(t0, t1) {
  1925. this._genericClosure = t0;
  1926. this.$ti = t1;
  1927. },
  1928. JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
  1929. var _ = this;
  1930. _.__js_helper$_memberName = t0;
  1931. _.__js_helper$_kind = t1;
  1932. _._arguments = t2;
  1933. _._namedArgumentNames = t3;
  1934. _._typeArgumentCount = t4;
  1935. },
  1936. Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
  1937. this._box_0 = t0;
  1938. this.namedArgumentList = t1;
  1939. this.$arguments = t2;
  1940. },
  1941. TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
  1942. var _ = this;
  1943. _._pattern = t0;
  1944. _._arguments = t1;
  1945. _._argumentsExpr = t2;
  1946. _._expr = t3;
  1947. _._method = t4;
  1948. _._receiver = t5;
  1949. },
  1950. NullError: function NullError(t0, t1) {
  1951. this.__js_helper$_message = t0;
  1952. this._method = t1;
  1953. },
  1954. JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
  1955. this.__js_helper$_message = t0;
  1956. this._method = t1;
  1957. this._receiver = t2;
  1958. },
  1959. UnknownJsTypeError: function UnknownJsTypeError(t0) {
  1960. this.__js_helper$_message = t0;
  1961. },
  1962. NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
  1963. this._irritant = t0;
  1964. },
  1965. ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
  1966. this.dartException = t0;
  1967. this.stackTrace = t1;
  1968. },
  1969. _StackTrace: function _StackTrace(t0) {
  1970. this._exception = t0;
  1971. this._trace = null;
  1972. },
  1973. Closure: function Closure() {
  1974. },
  1975. TearOffClosure: function TearOffClosure() {
  1976. },
  1977. StaticClosure: function StaticClosure() {
  1978. },
  1979. BoundClosure: function BoundClosure(t0, t1, t2, t3) {
  1980. var _ = this;
  1981. _._self = t0;
  1982. _._target = t1;
  1983. _._receiver = t2;
  1984. _.__js_helper$_name = t3;
  1985. },
  1986. RuntimeError: function RuntimeError(t0) {
  1987. this.message = t0;
  1988. },
  1989. _Required: function _Required() {
  1990. },
  1991. JsLinkedHashMap: function JsLinkedHashMap(t0) {
  1992. var _ = this;
  1993. _.__js_helper$_length = 0;
  1994. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  1995. _._modifications = 0;
  1996. _.$ti = t0;
  1997. },
  1998. JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
  1999. this.$this = t0;
  2000. },
  2001. JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
  2002. this.$this = t0;
  2003. },
  2004. LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
  2005. var _ = this;
  2006. _.hashMapCellKey = t0;
  2007. _.hashMapCellValue = t1;
  2008. _._previous = _._next = null;
  2009. },
  2010. LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
  2011. this._map = t0;
  2012. this.$ti = t1;
  2013. },
  2014. LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
  2015. var _ = this;
  2016. _._map = t0;
  2017. _._modifications = t1;
  2018. _.__js_helper$_current = _._cell = null;
  2019. },
  2020. initHooks_closure: function initHooks_closure(t0) {
  2021. this.getTag = t0;
  2022. },
  2023. initHooks_closure0: function initHooks_closure0(t0) {
  2024. this.getUnknownTag = t0;
  2025. },
  2026. initHooks_closure1: function initHooks_closure1(t0) {
  2027. this.prototypeForTag = t0;
  2028. },
  2029. JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
  2030. var _ = this;
  2031. _.pattern = t0;
  2032. _._nativeRegExp = t1;
  2033. _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
  2034. },
  2035. _MatchImplementation: function _MatchImplementation(t0) {
  2036. this._match = t0;
  2037. },
  2038. _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
  2039. this._re = t0;
  2040. this.__js_helper$_string = t1;
  2041. this.__js_helper$_start = t2;
  2042. },
  2043. _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
  2044. var _ = this;
  2045. _._regExp = t0;
  2046. _.__js_helper$_string = t1;
  2047. _._nextIndex = t2;
  2048. _.__js_helper$_current = null;
  2049. },
  2050. StringMatch: function StringMatch(t0, t1) {
  2051. this.start = t0;
  2052. this.pattern = t1;
  2053. },
  2054. _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
  2055. this._input = t0;
  2056. this._pattern = t1;
  2057. this.__js_helper$_index = t2;
  2058. },
  2059. _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
  2060. var _ = this;
  2061. _._input = t0;
  2062. _._pattern = t1;
  2063. _.__js_helper$_index = t2;
  2064. _.__js_helper$_current = null;
  2065. },
  2066. _ensureNativeList: function(list) {
  2067. return list;
  2068. },
  2069. NativeInt8List__create1: function(arg) {
  2070. return new Int8Array(arg);
  2071. },
  2072. NativeUint8List_NativeUint8List$view: function(buffer, offsetInBytes, $length) {
  2073. var t1;
  2074. if (!H._isInt(offsetInBytes))
  2075. H.throwExpression(P.ArgumentError$("Invalid view offsetInBytes " + H.S(offsetInBytes)));
  2076. t1 = new Uint8Array(buffer, offsetInBytes, $length);
  2077. return t1;
  2078. },
  2079. _checkValidIndex: function(index, list, $length) {
  2080. if (index >>> 0 !== index || index >= $length)
  2081. throw H.wrapException(H.diagnoseIndexError(list, index));
  2082. },
  2083. _checkValidRange: function(start, end, $length) {
  2084. var t1;
  2085. if (!(start >>> 0 !== start))
  2086. if (end == null)
  2087. t1 = start > $length;
  2088. else
  2089. t1 = end >>> 0 !== end || start > end || end > $length;
  2090. else
  2091. t1 = true;
  2092. if (t1)
  2093. throw H.wrapException(H.diagnoseRangeError(start, end, $length));
  2094. if (end == null)
  2095. return $length;
  2096. return end;
  2097. },
  2098. NativeTypedData: function NativeTypedData() {
  2099. },
  2100. NativeTypedArray: function NativeTypedArray() {
  2101. },
  2102. NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
  2103. },
  2104. NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
  2105. },
  2106. NativeFloat32List: function NativeFloat32List() {
  2107. },
  2108. NativeFloat64List: function NativeFloat64List() {
  2109. },
  2110. NativeInt16List: function NativeInt16List() {
  2111. },
  2112. NativeInt32List: function NativeInt32List() {
  2113. },
  2114. NativeInt8List: function NativeInt8List() {
  2115. },
  2116. NativeUint16List: function NativeUint16List() {
  2117. },
  2118. NativeUint32List: function NativeUint32List() {
  2119. },
  2120. NativeUint8ClampedList: function NativeUint8ClampedList() {
  2121. },
  2122. NativeUint8List: function NativeUint8List() {
  2123. },
  2124. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
  2125. },
  2126. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2127. },
  2128. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
  2129. },
  2130. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  2131. },
  2132. Rti__getQuestionFromStar: function(universe, rti) {
  2133. var question = rti._precomputed1;
  2134. return question == null ? rti._precomputed1 = H._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
  2135. },
  2136. Rti__getFutureFromFutureOr: function(universe, rti) {
  2137. var future = rti._precomputed1;
  2138. return future == null ? rti._precomputed1 = H._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
  2139. },
  2140. Rti__isUnionOfFunctionType: function(rti) {
  2141. var kind = rti._kind;
  2142. if (kind === 6 || kind === 7 || kind === 8)
  2143. return H.Rti__isUnionOfFunctionType(rti._primary);
  2144. return kind === 11 || kind === 12;
  2145. },
  2146. Rti__getCanonicalRecipe: function(rti) {
  2147. return rti._canonicalRecipe;
  2148. },
  2149. findType: function(recipe) {
  2150. return H._Universe_eval(init.typeUniverse, recipe, false);
  2151. },
  2152. instantiatedGenericFunctionType: function(genericFunctionRti, instantiationRti) {
  2153. var t1, cache, key, probe, rti;
  2154. if (genericFunctionRti == null)
  2155. return null;
  2156. t1 = instantiationRti._rest;
  2157. cache = genericFunctionRti._bindCache;
  2158. if (cache == null)
  2159. cache = genericFunctionRti._bindCache = new Map();
  2160. key = instantiationRti._canonicalRecipe;
  2161. probe = cache.get(key);
  2162. if (probe != null)
  2163. return probe;
  2164. rti = H._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
  2165. cache.set(key, rti);
  2166. return rti;
  2167. },
  2168. _substitute: function(universe, rti, typeArguments, depth) {
  2169. var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
  2170. kind = rti._kind;
  2171. switch (kind) {
  2172. case 5:
  2173. case 1:
  2174. case 2:
  2175. case 3:
  2176. case 4:
  2177. return rti;
  2178. case 6:
  2179. baseType = rti._primary;
  2180. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2181. if (substitutedBaseType === baseType)
  2182. return rti;
  2183. return H._Universe__lookupStarRti(universe, substitutedBaseType, true);
  2184. case 7:
  2185. baseType = rti._primary;
  2186. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2187. if (substitutedBaseType === baseType)
  2188. return rti;
  2189. return H._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
  2190. case 8:
  2191. baseType = rti._primary;
  2192. substitutedBaseType = H._substitute(universe, baseType, typeArguments, depth);
  2193. if (substitutedBaseType === baseType)
  2194. return rti;
  2195. return H._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
  2196. case 9:
  2197. interfaceTypeArguments = rti._rest;
  2198. substitutedInterfaceTypeArguments = H._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
  2199. if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
  2200. return rti;
  2201. return H._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
  2202. case 10:
  2203. base = rti._primary;
  2204. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2205. $arguments = rti._rest;
  2206. substitutedArguments = H._substituteArray(universe, $arguments, typeArguments, depth);
  2207. if (substitutedBase === base && substitutedArguments === $arguments)
  2208. return rti;
  2209. return H._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
  2210. case 11:
  2211. returnType = rti._primary;
  2212. substitutedReturnType = H._substitute(universe, returnType, typeArguments, depth);
  2213. functionParameters = rti._rest;
  2214. substitutedFunctionParameters = H._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
  2215. if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
  2216. return rti;
  2217. return H._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
  2218. case 12:
  2219. bounds = rti._rest;
  2220. depth += bounds.length;
  2221. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, depth);
  2222. base = rti._primary;
  2223. substitutedBase = H._substitute(universe, base, typeArguments, depth);
  2224. if (substitutedBounds === bounds && substitutedBase === base)
  2225. return rti;
  2226. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
  2227. case 13:
  2228. index = rti._primary;
  2229. if (index < depth)
  2230. return rti;
  2231. argument = typeArguments[index - depth];
  2232. if (argument == null)
  2233. return rti;
  2234. return argument;
  2235. default:
  2236. throw H.wrapException(P.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
  2237. }
  2238. },
  2239. _substituteArray: function(universe, rtiArray, typeArguments, depth) {
  2240. var changed, i, rti, substitutedRti,
  2241. $length = rtiArray.length,
  2242. result = [];
  2243. for (changed = false, i = 0; i < $length; ++i) {
  2244. rti = rtiArray[i];
  2245. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2246. if (substitutedRti !== rti)
  2247. changed = true;
  2248. result.push(substitutedRti);
  2249. }
  2250. return changed ? result : rtiArray;
  2251. },
  2252. _substituteNamed: function(universe, namedArray, typeArguments, depth) {
  2253. var changed, i, t1, t2, rti, substitutedRti,
  2254. $length = namedArray.length,
  2255. result = [];
  2256. for (changed = false, i = 0; i < $length; i += 3) {
  2257. t1 = namedArray[i];
  2258. t2 = namedArray[i + 1];
  2259. rti = namedArray[i + 2];
  2260. substitutedRti = H._substitute(universe, rti, typeArguments, depth);
  2261. if (substitutedRti !== rti)
  2262. changed = true;
  2263. result.push(t1);
  2264. result.push(t2);
  2265. result.push(substitutedRti);
  2266. }
  2267. return changed ? result : namedArray;
  2268. },
  2269. _substituteFunctionParameters: function(universe, functionParameters, typeArguments, depth) {
  2270. var result,
  2271. requiredPositional = functionParameters._requiredPositional,
  2272. substitutedRequiredPositional = H._substituteArray(universe, requiredPositional, typeArguments, depth),
  2273. optionalPositional = functionParameters._optionalPositional,
  2274. substitutedOptionalPositional = H._substituteArray(universe, optionalPositional, typeArguments, depth),
  2275. named = functionParameters._named,
  2276. substitutedNamed = H._substituteNamed(universe, named, typeArguments, depth);
  2277. if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
  2278. return functionParameters;
  2279. result = new H._FunctionParameters();
  2280. result._requiredPositional = substitutedRequiredPositional;
  2281. result._optionalPositional = substitutedOptionalPositional;
  2282. result._named = substitutedNamed;
  2283. return result;
  2284. },
  2285. setRuntimeTypeInfo: function(target, rti) {
  2286. target[init.arrayRti] = rti;
  2287. return target;
  2288. },
  2289. closureFunctionType: function(closure) {
  2290. var signature = closure.$signature;
  2291. if (signature != null) {
  2292. if (typeof signature == "number")
  2293. return H.getTypeFromTypesTable(signature);
  2294. return closure.$signature();
  2295. }
  2296. return null;
  2297. },
  2298. instanceOrFunctionType: function(object, testRti) {
  2299. var rti;
  2300. if (H.Rti__isUnionOfFunctionType(testRti))
  2301. if (object instanceof H.Closure) {
  2302. rti = H.closureFunctionType(object);
  2303. if (rti != null)
  2304. return rti;
  2305. }
  2306. return H.instanceType(object);
  2307. },
  2308. instanceType: function(object) {
  2309. var rti;
  2310. if (object instanceof P.Object) {
  2311. rti = object.$ti;
  2312. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2313. }
  2314. if (Array.isArray(object))
  2315. return H._arrayInstanceType(object);
  2316. return H._instanceTypeFromConstructor(J.getInterceptor$(object));
  2317. },
  2318. _arrayInstanceType: function(object) {
  2319. var rti = object[init.arrayRti],
  2320. defaultRti = type$.JSArray_dynamic;
  2321. if (rti == null)
  2322. return defaultRti;
  2323. if (rti.constructor !== defaultRti.constructor)
  2324. return defaultRti;
  2325. return rti;
  2326. },
  2327. _instanceType: function(object) {
  2328. var rti = object.$ti;
  2329. return rti != null ? rti : H._instanceTypeFromConstructor(object);
  2330. },
  2331. _instanceTypeFromConstructor: function(instance) {
  2332. var $constructor = instance.constructor,
  2333. probe = $constructor.$ccache;
  2334. if (probe != null)
  2335. return probe;
  2336. return H._instanceTypeFromConstructorMiss(instance, $constructor);
  2337. },
  2338. _instanceTypeFromConstructorMiss: function(instance, $constructor) {
  2339. var effectiveConstructor = instance instanceof H.Closure ? instance.__proto__.__proto__.constructor : $constructor,
  2340. rti = H._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
  2341. $constructor.$ccache = rti;
  2342. return rti;
  2343. },
  2344. getTypeFromTypesTable: function(index) {
  2345. var rti,
  2346. table = init.types,
  2347. type = table[index];
  2348. if (typeof type == "string") {
  2349. rti = H._Universe_eval(init.typeUniverse, type, false);
  2350. table[index] = rti;
  2351. return rti;
  2352. }
  2353. return type;
  2354. },
  2355. getRuntimeType: function(object) {
  2356. var rti = object instanceof H.Closure ? H.closureFunctionType(object) : null;
  2357. return H.createRuntimeType(rti == null ? H.instanceType(object) : rti);
  2358. },
  2359. createRuntimeType: function(rti) {
  2360. var recipe, starErasedRecipe, starErasedRti,
  2361. type = rti._cachedRuntimeType;
  2362. if (type != null)
  2363. return type;
  2364. recipe = rti._canonicalRecipe;
  2365. starErasedRecipe = recipe.replace(/\*/g, "");
  2366. if (starErasedRecipe === recipe)
  2367. return rti._cachedRuntimeType = new H._Type(rti);
  2368. starErasedRti = H._Universe_eval(init.typeUniverse, starErasedRecipe, true);
  2369. type = starErasedRti._cachedRuntimeType;
  2370. return rti._cachedRuntimeType = type == null ? starErasedRti._cachedRuntimeType = new H._Type(starErasedRti) : type;
  2371. },
  2372. typeLiteral: function(recipe) {
  2373. return H.createRuntimeType(H._Universe_eval(init.typeUniverse, recipe, false));
  2374. },
  2375. _installSpecializedIsTest: function(object) {
  2376. var unstarred, isFn, testRti = this,
  2377. t1 = type$.Object;
  2378. if (testRti === t1)
  2379. return H._finishIsFn(testRti, object, H._isObject);
  2380. if (!H.isStrongTopType(testRti))
  2381. if (!(testRti === type$.legacy_Object))
  2382. t1 = testRti === t1;
  2383. else
  2384. t1 = true;
  2385. else
  2386. t1 = true;
  2387. if (t1)
  2388. return H._finishIsFn(testRti, object, H._isTop);
  2389. t1 = testRti._kind;
  2390. unstarred = t1 === 6 ? testRti._primary : testRti;
  2391. if (unstarred === type$.int)
  2392. isFn = H._isInt;
  2393. else if (unstarred === type$.double || unstarred === type$.num)
  2394. isFn = H._isNum;
  2395. else if (unstarred === type$.String)
  2396. isFn = H._isString;
  2397. else
  2398. isFn = unstarred === type$.bool ? H._isBool : null;
  2399. if (isFn != null)
  2400. return H._finishIsFn(testRti, object, isFn);
  2401. if (unstarred._kind === 9) {
  2402. t1 = unstarred._primary;
  2403. if (unstarred._rest.every(H.isTopType)) {
  2404. testRti._specializedTestResource = "$is" + t1;
  2405. return H._finishIsFn(testRti, object, H._isTestViaProperty);
  2406. }
  2407. } else if (t1 === 7)
  2408. return H._finishIsFn(testRti, object, H._generalNullableIsTestImplementation);
  2409. return H._finishIsFn(testRti, object, H._generalIsTestImplementation);
  2410. },
  2411. _finishIsFn: function(testRti, object, isFn) {
  2412. testRti._is = isFn;
  2413. return testRti._is(object);
  2414. },
  2415. _installSpecializedAsCheck: function(object) {
  2416. var t1, asFn, testRti = this;
  2417. if (!H.isStrongTopType(testRti))
  2418. if (!(testRti === type$.legacy_Object))
  2419. t1 = testRti === type$.Object;
  2420. else
  2421. t1 = true;
  2422. else
  2423. t1 = true;
  2424. if (t1)
  2425. asFn = H._asTop;
  2426. else if (testRti === type$.Object)
  2427. asFn = H._asObject;
  2428. else
  2429. asFn = H._generalNullableAsCheckImplementation;
  2430. testRti._as = asFn;
  2431. return testRti._as(object);
  2432. },
  2433. _nullIs: function(testRti) {
  2434. var t2,
  2435. t1 = testRti._kind;
  2436. if (!H.isStrongTopType(testRti))
  2437. if (!(testRti === type$.legacy_Object))
  2438. t2 = testRti === type$.Object;
  2439. else
  2440. t2 = true;
  2441. else
  2442. t2 = true;
  2443. return t2 || testRti === type$.legacy_Never || t1 === 7 || testRti === type$.Null || testRti === type$.JSNull;
  2444. },
  2445. _generalIsTestImplementation: function(object) {
  2446. var testRti = this;
  2447. if (object == null)
  2448. return H._nullIs(testRti);
  2449. return H._isSubtype(init.typeUniverse, H.instanceOrFunctionType(object, testRti), null, testRti, null);
  2450. },
  2451. _generalNullableIsTestImplementation: function(object) {
  2452. if (object == null)
  2453. return true;
  2454. return this._primary._is(object);
  2455. },
  2456. _isTestViaProperty: function(object) {
  2457. var t1 = this,
  2458. tag = t1._specializedTestResource;
  2459. if (object instanceof P.Object)
  2460. return !!object[tag];
  2461. return !!J.getInterceptor$(object)[tag];
  2462. },
  2463. _generalAsCheckImplementation: function(object) {
  2464. var testRti = this;
  2465. if (object == null)
  2466. return object;
  2467. else if (testRti._is(object))
  2468. return object;
  2469. H._failedAsCheck(object, testRti);
  2470. },
  2471. _generalNullableAsCheckImplementation: function(object) {
  2472. var testRti = this;
  2473. if (object == null)
  2474. return object;
  2475. else if (testRti._is(object))
  2476. return object;
  2477. H._failedAsCheck(object, testRti);
  2478. },
  2479. _failedAsCheck: function(object, testRti) {
  2480. throw H.wrapException(H._TypeError$fromMessage(H._Error_compose(object, H.instanceOrFunctionType(object, testRti), H._rtiToString(testRti, null))));
  2481. },
  2482. _Error_compose: function(object, objectRti, checkedTypeDescription) {
  2483. var objectDescription = P.Error_safeToString(object),
  2484. objectTypeDescription = H._rtiToString(objectRti == null ? H.instanceType(object) : objectRti, null);
  2485. return objectDescription + ": type '" + H.S(objectTypeDescription) + "' is not a subtype of type '" + H.S(checkedTypeDescription) + "'";
  2486. },
  2487. _TypeError$fromMessage: function(message) {
  2488. return new H._TypeError("TypeError: " + message);
  2489. },
  2490. _TypeError__TypeError$forType: function(object, type) {
  2491. return new H._TypeError("TypeError: " + H._Error_compose(object, null, type));
  2492. },
  2493. _isObject: function(object) {
  2494. return object != null;
  2495. },
  2496. _asObject: function(object) {
  2497. return object;
  2498. },
  2499. _isTop: function(object) {
  2500. return true;
  2501. },
  2502. _asTop: function(object) {
  2503. return object;
  2504. },
  2505. _isBool: function(object) {
  2506. return true === object || false === object;
  2507. },
  2508. _asBool: function(object) {
  2509. if (true === object)
  2510. return true;
  2511. if (false === object)
  2512. return false;
  2513. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
  2514. },
  2515. _asBoolS: function(object) {
  2516. if (true === object)
  2517. return true;
  2518. if (false === object)
  2519. return false;
  2520. if (object == null)
  2521. return object;
  2522. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool"));
  2523. },
  2524. _asBoolQ: function(object) {
  2525. if (true === object)
  2526. return true;
  2527. if (false === object)
  2528. return false;
  2529. if (object == null)
  2530. return object;
  2531. throw H.wrapException(H._TypeError__TypeError$forType(object, "bool?"));
  2532. },
  2533. _asDouble: function(object) {
  2534. if (typeof object == "number")
  2535. return object;
  2536. throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
  2537. },
  2538. _asDoubleS: function(object) {
  2539. if (typeof object == "number")
  2540. return object;
  2541. if (object == null)
  2542. return object;
  2543. throw H.wrapException(H._TypeError__TypeError$forType(object, "double"));
  2544. },
  2545. _asDoubleQ: function(object) {
  2546. if (typeof object == "number")
  2547. return object;
  2548. if (object == null)
  2549. return object;
  2550. throw H.wrapException(H._TypeError__TypeError$forType(object, "double?"));
  2551. },
  2552. _isInt: function(object) {
  2553. return typeof object == "number" && Math.floor(object) === object;
  2554. },
  2555. _asInt: function(object) {
  2556. if (typeof object == "number" && Math.floor(object) === object)
  2557. return object;
  2558. throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
  2559. },
  2560. _asIntS: function(object) {
  2561. if (typeof object == "number" && Math.floor(object) === object)
  2562. return object;
  2563. if (object == null)
  2564. return object;
  2565. throw H.wrapException(H._TypeError__TypeError$forType(object, "int"));
  2566. },
  2567. _asIntQ: function(object) {
  2568. if (typeof object == "number" && Math.floor(object) === object)
  2569. return object;
  2570. if (object == null)
  2571. return object;
  2572. throw H.wrapException(H._TypeError__TypeError$forType(object, "int?"));
  2573. },
  2574. _isNum: function(object) {
  2575. return typeof object == "number";
  2576. },
  2577. _asNum: function(object) {
  2578. if (typeof object == "number")
  2579. return object;
  2580. throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
  2581. },
  2582. _asNumS: function(object) {
  2583. if (typeof object == "number")
  2584. return object;
  2585. if (object == null)
  2586. return object;
  2587. throw H.wrapException(H._TypeError__TypeError$forType(object, "num"));
  2588. },
  2589. _asNumQ: function(object) {
  2590. if (typeof object == "number")
  2591. return object;
  2592. if (object == null)
  2593. return object;
  2594. throw H.wrapException(H._TypeError__TypeError$forType(object, "num?"));
  2595. },
  2596. _isString: function(object) {
  2597. return typeof object == "string";
  2598. },
  2599. _asString: function(object) {
  2600. if (typeof object == "string")
  2601. return object;
  2602. throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
  2603. },
  2604. _asStringS: function(object) {
  2605. if (typeof object == "string")
  2606. return object;
  2607. if (object == null)
  2608. return object;
  2609. throw H.wrapException(H._TypeError__TypeError$forType(object, "String"));
  2610. },
  2611. _asStringQ: function(object) {
  2612. if (typeof object == "string")
  2613. return object;
  2614. if (object == null)
  2615. return object;
  2616. throw H.wrapException(H._TypeError__TypeError$forType(object, "String?"));
  2617. },
  2618. _rtiArrayToString: function(array, genericContext) {
  2619. var s, sep, i;
  2620. for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
  2621. s += C.JSString_methods.$add(sep, H._rtiToString(array[i], genericContext));
  2622. return s;
  2623. },
  2624. _functionRtiToString: function(functionType, genericContext, bounds) {
  2625. var boundsLength, outerContextLength, offset, i, t1, t2, t3, typeParametersText, typeSep, boundRti, kind, t4, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
  2626. if (bounds != null) {
  2627. boundsLength = bounds.length;
  2628. if (genericContext == null) {
  2629. genericContext = H.setRuntimeTypeInfo([], type$.JSArray_String);
  2630. outerContextLength = null;
  2631. } else
  2632. outerContextLength = genericContext.length;
  2633. offset = genericContext.length;
  2634. for (i = boundsLength; i > 0; --i)
  2635. genericContext.push("T" + (offset + i));
  2636. for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, t3 = type$.Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
  2637. typeParametersText = C.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
  2638. boundRti = bounds[i];
  2639. kind = boundRti._kind;
  2640. if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
  2641. if (!(boundRti === t2))
  2642. t4 = boundRti === t3;
  2643. else
  2644. t4 = true;
  2645. else
  2646. t4 = true;
  2647. if (!t4)
  2648. typeParametersText += C.JSString_methods.$add(" extends ", H._rtiToString(boundRti, genericContext));
  2649. }
  2650. typeParametersText += ">";
  2651. } else {
  2652. typeParametersText = "";
  2653. outerContextLength = null;
  2654. }
  2655. t1 = functionType._primary;
  2656. parameters = functionType._rest;
  2657. requiredPositional = parameters._requiredPositional;
  2658. requiredPositionalLength = requiredPositional.length;
  2659. optionalPositional = parameters._optionalPositional;
  2660. optionalPositionalLength = optionalPositional.length;
  2661. named = parameters._named;
  2662. namedLength = named.length;
  2663. returnTypeText = H._rtiToString(t1, genericContext);
  2664. for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
  2665. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(requiredPositional[i], genericContext));
  2666. if (optionalPositionalLength > 0) {
  2667. argumentsText += sep + "[";
  2668. for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
  2669. argumentsText += C.JSString_methods.$add(sep, H._rtiToString(optionalPositional[i], genericContext));
  2670. argumentsText += "]";
  2671. }
  2672. if (namedLength > 0) {
  2673. argumentsText += sep + "{";
  2674. for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
  2675. argumentsText += sep;
  2676. if (named[i + 1])
  2677. argumentsText += "required ";
  2678. argumentsText += J.$add$ansx(H._rtiToString(named[i + 2], genericContext), " ") + named[i];
  2679. }
  2680. argumentsText += "}";
  2681. }
  2682. if (outerContextLength != null) {
  2683. genericContext.toString;
  2684. genericContext.length = outerContextLength;
  2685. }
  2686. return typeParametersText + "(" + argumentsText + ") => " + H.S(returnTypeText);
  2687. },
  2688. _rtiToString: function(rti, genericContext) {
  2689. var s, questionArgument, argumentKind, $name, $arguments, t1,
  2690. kind = rti._kind;
  2691. if (kind === 5)
  2692. return "erased";
  2693. if (kind === 2)
  2694. return "dynamic";
  2695. if (kind === 3)
  2696. return "void";
  2697. if (kind === 1)
  2698. return "Never";
  2699. if (kind === 4)
  2700. return "any";
  2701. if (kind === 6) {
  2702. s = H._rtiToString(rti._primary, genericContext);
  2703. return s;
  2704. }
  2705. if (kind === 7) {
  2706. questionArgument = rti._primary;
  2707. s = H._rtiToString(questionArgument, genericContext);
  2708. argumentKind = questionArgument._kind;
  2709. return J.$add$ansx(argumentKind === 11 || argumentKind === 12 ? C.JSString_methods.$add("(", s) + ")" : s, "?");
  2710. }
  2711. if (kind === 8)
  2712. return "FutureOr<" + H.S(H._rtiToString(rti._primary, genericContext)) + ">";
  2713. if (kind === 9) {
  2714. $name = H._unminifyOrTag(rti._primary);
  2715. $arguments = rti._rest;
  2716. return $arguments.length !== 0 ? $name + ("<" + H._rtiArrayToString($arguments, genericContext) + ">") : $name;
  2717. }
  2718. if (kind === 11)
  2719. return H._functionRtiToString(rti, genericContext, null);
  2720. if (kind === 12)
  2721. return H._functionRtiToString(rti._primary, genericContext, rti._rest);
  2722. if (kind === 13) {
  2723. genericContext.toString;
  2724. t1 = rti._primary;
  2725. return genericContext[genericContext.length - 1 - t1];
  2726. }
  2727. return "?";
  2728. },
  2729. _unminifyOrTag: function(rawClassName) {
  2730. var preserved = H.unmangleGlobalNameIfPreservedAnyways(rawClassName);
  2731. if (preserved != null)
  2732. return preserved;
  2733. return rawClassName;
  2734. },
  2735. _Universe_findRule: function(universe, targetType) {
  2736. var rule = universe.tR[targetType];
  2737. for (; typeof rule == "string";)
  2738. rule = universe.tR[rule];
  2739. return rule;
  2740. },
  2741. _Universe_findErasedType: function(universe, cls) {
  2742. var $length, erased, $arguments, i, $interface,
  2743. metadata = universe.eT,
  2744. probe = metadata[cls];
  2745. if (probe == null)
  2746. return H._Universe_eval(universe, cls, false);
  2747. else if (typeof probe == "number") {
  2748. $length = probe;
  2749. erased = H._Universe__lookupTerminalRti(universe, 5, "#");
  2750. $arguments = [];
  2751. for (i = 0; i < $length; ++i)
  2752. $arguments.push(erased);
  2753. $interface = H._Universe__lookupInterfaceRti(universe, cls, $arguments);
  2754. metadata[cls] = $interface;
  2755. return $interface;
  2756. } else
  2757. return probe;
  2758. },
  2759. _Universe_addRules: function(universe, rules) {
  2760. return H._Utils_objectAssign(universe.tR, rules);
  2761. },
  2762. _Universe_addErasedTypes: function(universe, types) {
  2763. return H._Utils_objectAssign(universe.eT, types);
  2764. },
  2765. _Universe_eval: function(universe, recipe, normalize) {
  2766. var rti,
  2767. cache = universe.eC,
  2768. probe = cache.get(recipe);
  2769. if (probe != null)
  2770. return probe;
  2771. rti = H._Parser_parse(H._Parser_create(universe, null, recipe, normalize));
  2772. cache.set(recipe, rti);
  2773. return rti;
  2774. },
  2775. _Universe_evalInEnvironment: function(universe, environment, recipe) {
  2776. var probe, rti,
  2777. cache = environment._evalCache;
  2778. if (cache == null)
  2779. cache = environment._evalCache = new Map();
  2780. probe = cache.get(recipe);
  2781. if (probe != null)
  2782. return probe;
  2783. rti = H._Parser_parse(H._Parser_create(universe, environment, recipe, true));
  2784. cache.set(recipe, rti);
  2785. return rti;
  2786. },
  2787. _Universe_bind: function(universe, environment, argumentsRti) {
  2788. var argumentsRecipe, probe, rti,
  2789. cache = environment._bindCache;
  2790. if (cache == null)
  2791. cache = environment._bindCache = new Map();
  2792. argumentsRecipe = argumentsRti._canonicalRecipe;
  2793. probe = cache.get(argumentsRecipe);
  2794. if (probe != null)
  2795. return probe;
  2796. rti = H._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
  2797. cache.set(argumentsRecipe, rti);
  2798. return rti;
  2799. },
  2800. _Universe__installTypeTests: function(universe, rti) {
  2801. rti._as = H._installSpecializedAsCheck;
  2802. rti._is = H._installSpecializedIsTest;
  2803. return rti;
  2804. },
  2805. _Universe__lookupTerminalRti: function(universe, kind, key) {
  2806. var rti, t1,
  2807. probe = universe.eC.get(key);
  2808. if (probe != null)
  2809. return probe;
  2810. rti = new H.Rti(null, null);
  2811. rti._kind = kind;
  2812. rti._canonicalRecipe = key;
  2813. t1 = H._Universe__installTypeTests(universe, rti);
  2814. universe.eC.set(key, t1);
  2815. return t1;
  2816. },
  2817. _Universe__lookupStarRti: function(universe, baseType, normalize) {
  2818. var t1,
  2819. key = baseType._canonicalRecipe + "*",
  2820. probe = universe.eC.get(key);
  2821. if (probe != null)
  2822. return probe;
  2823. t1 = H._Universe__createStarRti(universe, baseType, key, normalize);
  2824. universe.eC.set(key, t1);
  2825. return t1;
  2826. },
  2827. _Universe__createStarRti: function(universe, baseType, key, normalize) {
  2828. var baseKind, t1, rti;
  2829. if (normalize) {
  2830. baseKind = baseType._kind;
  2831. if (!H.isStrongTopType(baseType))
  2832. t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
  2833. else
  2834. t1 = true;
  2835. if (t1)
  2836. return baseType;
  2837. }
  2838. rti = new H.Rti(null, null);
  2839. rti._kind = 6;
  2840. rti._primary = baseType;
  2841. rti._canonicalRecipe = key;
  2842. return H._Universe__installTypeTests(universe, rti);
  2843. },
  2844. _Universe__lookupQuestionRti: function(universe, baseType, normalize) {
  2845. var t1,
  2846. key = baseType._canonicalRecipe + "?",
  2847. probe = universe.eC.get(key);
  2848. if (probe != null)
  2849. return probe;
  2850. t1 = H._Universe__createQuestionRti(universe, baseType, key, normalize);
  2851. universe.eC.set(key, t1);
  2852. return t1;
  2853. },
  2854. _Universe__createQuestionRti: function(universe, baseType, key, normalize) {
  2855. var baseKind, t1, starArgument, rti;
  2856. if (normalize) {
  2857. baseKind = baseType._kind;
  2858. if (!H.isStrongTopType(baseType))
  2859. if (!(baseType === type$.Null || baseType === type$.JSNull))
  2860. if (baseKind !== 7)
  2861. t1 = baseKind === 8 && H.isNullable(baseType._primary);
  2862. else
  2863. t1 = true;
  2864. else
  2865. t1 = true;
  2866. else
  2867. t1 = true;
  2868. if (t1)
  2869. return baseType;
  2870. else if (baseKind === 1 || baseType === type$.legacy_Never)
  2871. return type$.Null;
  2872. else if (baseKind === 6) {
  2873. starArgument = baseType._primary;
  2874. if (starArgument._kind === 8 && H.isNullable(starArgument._primary))
  2875. return starArgument;
  2876. else
  2877. return H.Rti__getQuestionFromStar(universe, baseType);
  2878. }
  2879. }
  2880. rti = new H.Rti(null, null);
  2881. rti._kind = 7;
  2882. rti._primary = baseType;
  2883. rti._canonicalRecipe = key;
  2884. return H._Universe__installTypeTests(universe, rti);
  2885. },
  2886. _Universe__lookupFutureOrRti: function(universe, baseType, normalize) {
  2887. var t1,
  2888. key = baseType._canonicalRecipe + "/",
  2889. probe = universe.eC.get(key);
  2890. if (probe != null)
  2891. return probe;
  2892. t1 = H._Universe__createFutureOrRti(universe, baseType, key, normalize);
  2893. universe.eC.set(key, t1);
  2894. return t1;
  2895. },
  2896. _Universe__createFutureOrRti: function(universe, baseType, key, normalize) {
  2897. var t1, t2, rti;
  2898. if (normalize) {
  2899. t1 = baseType._kind;
  2900. if (!H.isStrongTopType(baseType))
  2901. if (!(baseType === type$.legacy_Object))
  2902. t2 = baseType === type$.Object;
  2903. else
  2904. t2 = true;
  2905. else
  2906. t2 = true;
  2907. if (t2 || baseType === type$.Object)
  2908. return baseType;
  2909. else if (t1 === 1)
  2910. return H._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
  2911. else if (baseType === type$.Null || baseType === type$.JSNull)
  2912. return type$.nullable_Future_Null;
  2913. }
  2914. rti = new H.Rti(null, null);
  2915. rti._kind = 8;
  2916. rti._primary = baseType;
  2917. rti._canonicalRecipe = key;
  2918. return H._Universe__installTypeTests(universe, rti);
  2919. },
  2920. _Universe__lookupGenericFunctionParameterRti: function(universe, index) {
  2921. var rti, t1,
  2922. key = "" + index + "^",
  2923. probe = universe.eC.get(key);
  2924. if (probe != null)
  2925. return probe;
  2926. rti = new H.Rti(null, null);
  2927. rti._kind = 13;
  2928. rti._primary = index;
  2929. rti._canonicalRecipe = key;
  2930. t1 = H._Universe__installTypeTests(universe, rti);
  2931. universe.eC.set(key, t1);
  2932. return t1;
  2933. },
  2934. _Universe__canonicalRecipeJoin: function($arguments) {
  2935. var s, sep, i,
  2936. $length = $arguments.length;
  2937. for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
  2938. s += sep + $arguments[i]._canonicalRecipe;
  2939. return s;
  2940. },
  2941. _Universe__canonicalRecipeJoinNamed: function($arguments) {
  2942. var s, sep, i, t1, nameSep, s0,
  2943. $length = $arguments.length;
  2944. for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
  2945. t1 = $arguments[i];
  2946. nameSep = $arguments[i + 1] ? "!" : ":";
  2947. s0 = $arguments[i + 2]._canonicalRecipe;
  2948. s += sep + t1 + nameSep + s0;
  2949. }
  2950. return s;
  2951. },
  2952. _Universe__lookupInterfaceRti: function(universe, $name, $arguments) {
  2953. var probe, rti, t1,
  2954. s = $name;
  2955. if ($arguments.length !== 0)
  2956. s += "<" + H._Universe__canonicalRecipeJoin($arguments) + ">";
  2957. probe = universe.eC.get(s);
  2958. if (probe != null)
  2959. return probe;
  2960. rti = new H.Rti(null, null);
  2961. rti._kind = 9;
  2962. rti._primary = $name;
  2963. rti._rest = $arguments;
  2964. if ($arguments.length > 0)
  2965. rti._precomputed1 = $arguments[0];
  2966. rti._canonicalRecipe = s;
  2967. t1 = H._Universe__installTypeTests(universe, rti);
  2968. universe.eC.set(s, t1);
  2969. return t1;
  2970. },
  2971. _Universe__lookupBindingRti: function(universe, base, $arguments) {
  2972. var newBase, newArguments, key, probe, rti, t1;
  2973. if (base._kind === 10) {
  2974. newBase = base._primary;
  2975. newArguments = base._rest.concat($arguments);
  2976. } else {
  2977. newArguments = $arguments;
  2978. newBase = base;
  2979. }
  2980. key = newBase._canonicalRecipe + (";<" + H._Universe__canonicalRecipeJoin(newArguments) + ">");
  2981. probe = universe.eC.get(key);
  2982. if (probe != null)
  2983. return probe;
  2984. rti = new H.Rti(null, null);
  2985. rti._kind = 10;
  2986. rti._primary = newBase;
  2987. rti._rest = newArguments;
  2988. rti._canonicalRecipe = key;
  2989. t1 = H._Universe__installTypeTests(universe, rti);
  2990. universe.eC.set(key, t1);
  2991. return t1;
  2992. },
  2993. _Universe__lookupFunctionRti: function(universe, returnType, parameters) {
  2994. var sep, t1, key, probe, rti,
  2995. s = returnType._canonicalRecipe,
  2996. requiredPositional = parameters._requiredPositional,
  2997. requiredPositionalLength = requiredPositional.length,
  2998. optionalPositional = parameters._optionalPositional,
  2999. optionalPositionalLength = optionalPositional.length,
  3000. named = parameters._named,
  3001. namedLength = named.length,
  3002. recipe = "(" + H._Universe__canonicalRecipeJoin(requiredPositional);
  3003. if (optionalPositionalLength > 0) {
  3004. sep = requiredPositionalLength > 0 ? "," : "";
  3005. t1 = H._Universe__canonicalRecipeJoin(optionalPositional);
  3006. recipe += sep + "[" + t1 + "]";
  3007. }
  3008. if (namedLength > 0) {
  3009. sep = requiredPositionalLength > 0 ? "," : "";
  3010. t1 = H._Universe__canonicalRecipeJoinNamed(named);
  3011. recipe += sep + "{" + t1 + "}";
  3012. }
  3013. key = s + (recipe + ")");
  3014. probe = universe.eC.get(key);
  3015. if (probe != null)
  3016. return probe;
  3017. rti = new H.Rti(null, null);
  3018. rti._kind = 11;
  3019. rti._primary = returnType;
  3020. rti._rest = parameters;
  3021. rti._canonicalRecipe = key;
  3022. t1 = H._Universe__installTypeTests(universe, rti);
  3023. universe.eC.set(key, t1);
  3024. return t1;
  3025. },
  3026. _Universe__lookupGenericFunctionRti: function(universe, baseFunctionType, bounds, normalize) {
  3027. var t1,
  3028. key = baseFunctionType._canonicalRecipe + ("<" + H._Universe__canonicalRecipeJoin(bounds) + ">"),
  3029. probe = universe.eC.get(key);
  3030. if (probe != null)
  3031. return probe;
  3032. t1 = H._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
  3033. universe.eC.set(key, t1);
  3034. return t1;
  3035. },
  3036. _Universe__createGenericFunctionRti: function(universe, baseFunctionType, bounds, key, normalize) {
  3037. var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
  3038. if (normalize) {
  3039. $length = bounds.length;
  3040. typeArguments = new Array($length);
  3041. for (count = 0, i = 0; i < $length; ++i) {
  3042. bound = bounds[i];
  3043. if (bound._kind === 1) {
  3044. typeArguments[i] = bound;
  3045. ++count;
  3046. }
  3047. }
  3048. if (count > 0) {
  3049. substitutedBase = H._substitute(universe, baseFunctionType, typeArguments, 0);
  3050. substitutedBounds = H._substituteArray(universe, bounds, typeArguments, 0);
  3051. return H._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
  3052. }
  3053. }
  3054. rti = new H.Rti(null, null);
  3055. rti._kind = 12;
  3056. rti._primary = baseFunctionType;
  3057. rti._rest = bounds;
  3058. rti._canonicalRecipe = key;
  3059. return H._Universe__installTypeTests(universe, rti);
  3060. },
  3061. _Parser_create: function(universe, environment, recipe, normalize) {
  3062. return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
  3063. },
  3064. _Parser_parse: function(parser) {
  3065. var t1, i, ch, universe, array, head, base, u, parameters, optionalPositional, named, item,
  3066. source = parser.r,
  3067. stack = parser.s;
  3068. for (t1 = source.length, i = 0; i < t1;) {
  3069. ch = source.charCodeAt(i);
  3070. if (ch >= 48 && ch <= 57)
  3071. i = H._Parser_handleDigit(i + 1, ch, source, stack);
  3072. else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36)
  3073. i = H._Parser_handleIdentifier(parser, i, source, stack, false);
  3074. else if (ch === 46)
  3075. i = H._Parser_handleIdentifier(parser, i, source, stack, true);
  3076. else {
  3077. ++i;
  3078. switch (ch) {
  3079. case 44:
  3080. break;
  3081. case 58:
  3082. stack.push(false);
  3083. break;
  3084. case 33:
  3085. stack.push(true);
  3086. break;
  3087. case 59:
  3088. stack.push(H._Parser_toType(parser.u, parser.e, stack.pop()));
  3089. break;
  3090. case 94:
  3091. stack.push(H._Universe__lookupGenericFunctionParameterRti(parser.u, stack.pop()));
  3092. break;
  3093. case 35:
  3094. stack.push(H._Universe__lookupTerminalRti(parser.u, 5, "#"));
  3095. break;
  3096. case 64:
  3097. stack.push(H._Universe__lookupTerminalRti(parser.u, 2, "@"));
  3098. break;
  3099. case 126:
  3100. stack.push(H._Universe__lookupTerminalRti(parser.u, 3, "~"));
  3101. break;
  3102. case 60:
  3103. stack.push(parser.p);
  3104. parser.p = stack.length;
  3105. break;
  3106. case 62:
  3107. universe = parser.u;
  3108. array = stack.splice(parser.p);
  3109. H._Parser_toTypes(parser.u, parser.e, array);
  3110. parser.p = stack.pop();
  3111. head = stack.pop();
  3112. if (typeof head == "string")
  3113. stack.push(H._Universe__lookupInterfaceRti(universe, head, array));
  3114. else {
  3115. base = H._Parser_toType(universe, parser.e, head);
  3116. switch (base._kind) {
  3117. case 11:
  3118. stack.push(H._Universe__lookupGenericFunctionRti(universe, base, array, parser.n));
  3119. break;
  3120. default:
  3121. stack.push(H._Universe__lookupBindingRti(universe, base, array));
  3122. break;
  3123. }
  3124. }
  3125. break;
  3126. case 38:
  3127. H._Parser_handleExtendedOperations(parser, stack);
  3128. break;
  3129. case 42:
  3130. u = parser.u;
  3131. stack.push(H._Universe__lookupStarRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3132. break;
  3133. case 63:
  3134. u = parser.u;
  3135. stack.push(H._Universe__lookupQuestionRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3136. break;
  3137. case 47:
  3138. u = parser.u;
  3139. stack.push(H._Universe__lookupFutureOrRti(u, H._Parser_toType(u, parser.e, stack.pop()), parser.n));
  3140. break;
  3141. case 40:
  3142. stack.push(parser.p);
  3143. parser.p = stack.length;
  3144. break;
  3145. case 41:
  3146. universe = parser.u;
  3147. parameters = new H._FunctionParameters();
  3148. optionalPositional = universe.sEA;
  3149. named = universe.sEA;
  3150. head = stack.pop();
  3151. if (typeof head == "number")
  3152. switch (head) {
  3153. case -1:
  3154. optionalPositional = stack.pop();
  3155. break;
  3156. case -2:
  3157. named = stack.pop();
  3158. break;
  3159. default:
  3160. stack.push(head);
  3161. break;
  3162. }
  3163. else
  3164. stack.push(head);
  3165. array = stack.splice(parser.p);
  3166. H._Parser_toTypes(parser.u, parser.e, array);
  3167. parser.p = stack.pop();
  3168. parameters._requiredPositional = array;
  3169. parameters._optionalPositional = optionalPositional;
  3170. parameters._named = named;
  3171. stack.push(H._Universe__lookupFunctionRti(universe, H._Parser_toType(universe, parser.e, stack.pop()), parameters));
  3172. break;
  3173. case 91:
  3174. stack.push(parser.p);
  3175. parser.p = stack.length;
  3176. break;
  3177. case 93:
  3178. array = stack.splice(parser.p);
  3179. H._Parser_toTypes(parser.u, parser.e, array);
  3180. parser.p = stack.pop();
  3181. stack.push(array);
  3182. stack.push(-1);
  3183. break;
  3184. case 123:
  3185. stack.push(parser.p);
  3186. parser.p = stack.length;
  3187. break;
  3188. case 125:
  3189. array = stack.splice(parser.p);
  3190. H._Parser_toTypesNamed(parser.u, parser.e, array);
  3191. parser.p = stack.pop();
  3192. stack.push(array);
  3193. stack.push(-2);
  3194. break;
  3195. default:
  3196. throw "Bad character " + ch;
  3197. }
  3198. }
  3199. }
  3200. item = stack.pop();
  3201. return H._Parser_toType(parser.u, parser.e, item);
  3202. },
  3203. _Parser_handleDigit: function(i, digit, source, stack) {
  3204. var t1, ch,
  3205. value = digit - 48;
  3206. for (t1 = source.length; i < t1; ++i) {
  3207. ch = source.charCodeAt(i);
  3208. if (!(ch >= 48 && ch <= 57))
  3209. break;
  3210. value = value * 10 + (ch - 48);
  3211. }
  3212. stack.push(value);
  3213. return i;
  3214. },
  3215. _Parser_handleIdentifier: function(parser, start, source, stack, hasPeriod) {
  3216. var t1, ch, t2, string, environment, recipe,
  3217. i = start + 1;
  3218. for (t1 = source.length; i < t1; ++i) {
  3219. ch = source.charCodeAt(i);
  3220. if (ch === 46) {
  3221. if (hasPeriod)
  3222. break;
  3223. hasPeriod = true;
  3224. } else {
  3225. if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36))
  3226. t2 = ch >= 48 && ch <= 57;
  3227. else
  3228. t2 = true;
  3229. if (!t2)
  3230. break;
  3231. }
  3232. }
  3233. string = source.substring(start, i);
  3234. if (hasPeriod) {
  3235. t1 = parser.u;
  3236. environment = parser.e;
  3237. if (environment._kind === 10)
  3238. environment = environment._primary;
  3239. recipe = H._Universe_findRule(t1, environment._primary)[string];
  3240. if (recipe == null)
  3241. H.throwExpression('No "' + string + '" in "' + H.Rti__getCanonicalRecipe(environment) + '"');
  3242. stack.push(H._Universe_evalInEnvironment(t1, environment, recipe));
  3243. } else
  3244. stack.push(string);
  3245. return i;
  3246. },
  3247. _Parser_handleExtendedOperations: function(parser, stack) {
  3248. var $top = stack.pop();
  3249. if (0 === $top) {
  3250. stack.push(H._Universe__lookupTerminalRti(parser.u, 1, "0&"));
  3251. return;
  3252. }
  3253. if (1 === $top) {
  3254. stack.push(H._Universe__lookupTerminalRti(parser.u, 4, "1&"));
  3255. return;
  3256. }
  3257. throw H.wrapException(P.AssertionError$("Unexpected extended operation " + H.S($top)));
  3258. },
  3259. _Parser_toType: function(universe, environment, item) {
  3260. if (typeof item == "string")
  3261. return H._Universe__lookupInterfaceRti(universe, item, universe.sEA);
  3262. else if (typeof item == "number")
  3263. return H._Parser_indexToType(universe, environment, item);
  3264. else
  3265. return item;
  3266. },
  3267. _Parser_toTypes: function(universe, environment, items) {
  3268. var i,
  3269. $length = items.length;
  3270. for (i = 0; i < $length; ++i)
  3271. items[i] = H._Parser_toType(universe, environment, items[i]);
  3272. },
  3273. _Parser_toTypesNamed: function(universe, environment, items) {
  3274. var i,
  3275. $length = items.length;
  3276. for (i = 2; i < $length; i += 3)
  3277. items[i] = H._Parser_toType(universe, environment, items[i]);
  3278. },
  3279. _Parser_indexToType: function(universe, environment, index) {
  3280. var typeArguments, len,
  3281. kind = environment._kind;
  3282. if (kind === 10) {
  3283. if (index === 0)
  3284. return environment._primary;
  3285. typeArguments = environment._rest;
  3286. len = typeArguments.length;
  3287. if (index <= len)
  3288. return typeArguments[index - 1];
  3289. index -= len;
  3290. environment = environment._primary;
  3291. kind = environment._kind;
  3292. } else if (index === 0)
  3293. return environment;
  3294. if (kind !== 9)
  3295. throw H.wrapException(P.AssertionError$("Indexed base must be an interface type"));
  3296. typeArguments = environment._rest;
  3297. if (index <= typeArguments.length)
  3298. return typeArguments[index - 1];
  3299. throw H.wrapException(P.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
  3300. },
  3301. _isSubtype: function(universe, s, sEnv, t, tEnv) {
  3302. var t1, sKind, leftTypeVariable, tKind, sBounds, tBounds, sLength, i, sBound, tBound;
  3303. if (s === t)
  3304. return true;
  3305. if (!H.isStrongTopType(t))
  3306. if (!(t === type$.legacy_Object))
  3307. t1 = t === type$.Object;
  3308. else
  3309. t1 = true;
  3310. else
  3311. t1 = true;
  3312. if (t1)
  3313. return true;
  3314. sKind = s._kind;
  3315. if (sKind === 4)
  3316. return true;
  3317. if (H.isStrongTopType(s))
  3318. return false;
  3319. if (s._kind !== 1)
  3320. t1 = s === type$.Null || s === type$.JSNull;
  3321. else
  3322. t1 = true;
  3323. if (t1)
  3324. return true;
  3325. leftTypeVariable = sKind === 13;
  3326. if (leftTypeVariable)
  3327. if (H._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv))
  3328. return true;
  3329. tKind = t._kind;
  3330. if (sKind === 6)
  3331. return H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3332. if (tKind === 6) {
  3333. t1 = t._primary;
  3334. return H._isSubtype(universe, s, sEnv, t1, tEnv);
  3335. }
  3336. if (sKind === 8) {
  3337. if (!H._isSubtype(universe, s._primary, sEnv, t, tEnv))
  3338. return false;
  3339. return H._isSubtype(universe, H.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv);
  3340. }
  3341. if (sKind === 7) {
  3342. t1 = H._isSubtype(universe, s._primary, sEnv, t, tEnv);
  3343. return t1;
  3344. }
  3345. if (tKind === 8) {
  3346. if (H._isSubtype(universe, s, sEnv, t._primary, tEnv))
  3347. return true;
  3348. return H._isSubtype(universe, s, sEnv, H.Rti__getFutureFromFutureOr(universe, t), tEnv);
  3349. }
  3350. if (tKind === 7) {
  3351. t1 = H._isSubtype(universe, s, sEnv, t._primary, tEnv);
  3352. return t1;
  3353. }
  3354. if (leftTypeVariable)
  3355. return false;
  3356. t1 = sKind !== 11;
  3357. if ((!t1 || sKind === 12) && t === type$.Function)
  3358. return true;
  3359. if (tKind === 12) {
  3360. if (s === type$.JavaScriptFunction)
  3361. return true;
  3362. if (sKind !== 12)
  3363. return false;
  3364. sBounds = s._rest;
  3365. tBounds = t._rest;
  3366. sLength = sBounds.length;
  3367. if (sLength !== tBounds.length)
  3368. return false;
  3369. sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
  3370. tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
  3371. for (i = 0; i < sLength; ++i) {
  3372. sBound = sBounds[i];
  3373. tBound = tBounds[i];
  3374. if (!H._isSubtype(universe, sBound, sEnv, tBound, tEnv) || !H._isSubtype(universe, tBound, tEnv, sBound, sEnv))
  3375. return false;
  3376. }
  3377. return H._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv);
  3378. }
  3379. if (tKind === 11) {
  3380. if (s === type$.JavaScriptFunction)
  3381. return true;
  3382. if (t1)
  3383. return false;
  3384. return H._isFunctionSubtype(universe, s, sEnv, t, tEnv);
  3385. }
  3386. if (sKind === 9) {
  3387. if (tKind !== 9)
  3388. return false;
  3389. return H._isInterfaceSubtype(universe, s, sEnv, t, tEnv);
  3390. }
  3391. return false;
  3392. },
  3393. _isFunctionSubtype: function(universe, s, sEnv, t, tEnv) {
  3394. var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName;
  3395. if (!H._isSubtype(universe, s._primary, sEnv, t._primary, tEnv))
  3396. return false;
  3397. sParameters = s._rest;
  3398. tParameters = t._rest;
  3399. sRequiredPositional = sParameters._requiredPositional;
  3400. tRequiredPositional = tParameters._requiredPositional;
  3401. sRequiredPositionalLength = sRequiredPositional.length;
  3402. tRequiredPositionalLength = tRequiredPositional.length;
  3403. if (sRequiredPositionalLength > tRequiredPositionalLength)
  3404. return false;
  3405. requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
  3406. sOptionalPositional = sParameters._optionalPositional;
  3407. tOptionalPositional = tParameters._optionalPositional;
  3408. sOptionalPositionalLength = sOptionalPositional.length;
  3409. tOptionalPositionalLength = tOptionalPositional.length;
  3410. if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
  3411. return false;
  3412. for (i = 0; i < sRequiredPositionalLength; ++i) {
  3413. t1 = sRequiredPositional[i];
  3414. if (!H._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv))
  3415. return false;
  3416. }
  3417. for (i = 0; i < requiredPositionalDelta; ++i) {
  3418. t1 = sOptionalPositional[i];
  3419. if (!H._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv))
  3420. return false;
  3421. }
  3422. for (i = 0; i < tOptionalPositionalLength; ++i) {
  3423. t1 = sOptionalPositional[requiredPositionalDelta + i];
  3424. if (!H._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv))
  3425. return false;
  3426. }
  3427. sNamed = sParameters._named;
  3428. tNamed = tParameters._named;
  3429. sNamedLength = sNamed.length;
  3430. tNamedLength = tNamed.length;
  3431. for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
  3432. tName = tNamed[tIndex];
  3433. for (; true;) {
  3434. if (sIndex >= sNamedLength)
  3435. return false;
  3436. sName = sNamed[sIndex];
  3437. sIndex += 3;
  3438. if (tName < sName)
  3439. return false;
  3440. if (sName < tName)
  3441. continue;
  3442. t1 = sNamed[sIndex - 1];
  3443. if (!H._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv))
  3444. return false;
  3445. break;
  3446. }
  3447. }
  3448. return true;
  3449. },
  3450. _isInterfaceSubtype: function(universe, s, sEnv, t, tEnv) {
  3451. var sArgs, tArgs, $length, i, t1, t2, rule, supertypeArgs,
  3452. sName = s._primary,
  3453. tName = t._primary;
  3454. if (sName === tName) {
  3455. sArgs = s._rest;
  3456. tArgs = t._rest;
  3457. $length = sArgs.length;
  3458. for (i = 0; i < $length; ++i) {
  3459. t1 = sArgs[i];
  3460. t2 = tArgs[i];
  3461. if (!H._isSubtype(universe, t1, sEnv, t2, tEnv))
  3462. return false;
  3463. }
  3464. return true;
  3465. }
  3466. if (t === type$.Object)
  3467. return true;
  3468. rule = H._Universe_findRule(universe, sName);
  3469. if (rule == null)
  3470. return false;
  3471. supertypeArgs = rule[tName];
  3472. if (supertypeArgs == null)
  3473. return false;
  3474. $length = supertypeArgs.length;
  3475. tArgs = t._rest;
  3476. for (i = 0; i < $length; ++i)
  3477. if (!H._isSubtype(universe, H._Universe_evalInEnvironment(universe, s, supertypeArgs[i]), sEnv, tArgs[i], tEnv))
  3478. return false;
  3479. return true;
  3480. },
  3481. isNullable: function(t) {
  3482. var t1,
  3483. kind = t._kind;
  3484. if (!(t === type$.Null || t === type$.JSNull))
  3485. if (!H.isStrongTopType(t))
  3486. if (kind !== 7)
  3487. if (!(kind === 6 && H.isNullable(t._primary)))
  3488. t1 = kind === 8 && H.isNullable(t._primary);
  3489. else
  3490. t1 = true;
  3491. else
  3492. t1 = true;
  3493. else
  3494. t1 = true;
  3495. else
  3496. t1 = true;
  3497. return t1;
  3498. },
  3499. isTopType: function(t) {
  3500. var t1;
  3501. if (!H.isStrongTopType(t))
  3502. if (!(t === type$.legacy_Object))
  3503. t1 = t === type$.Object;
  3504. else
  3505. t1 = true;
  3506. else
  3507. t1 = true;
  3508. return t1;
  3509. },
  3510. isStrongTopType: function(t) {
  3511. var kind = t._kind;
  3512. return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
  3513. },
  3514. _Utils_objectAssign: function(o, other) {
  3515. var i, key,
  3516. keys = Object.keys(other),
  3517. $length = keys.length;
  3518. for (i = 0; i < $length; ++i) {
  3519. key = keys[i];
  3520. o[key] = other[key];
  3521. }
  3522. },
  3523. Rti: function Rti(t0, t1) {
  3524. var _ = this;
  3525. _._as = t0;
  3526. _._is = t1;
  3527. _._cachedRuntimeType = _._specializedTestResource = _._precomputed1 = null;
  3528. _._kind = 0;
  3529. _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
  3530. },
  3531. _FunctionParameters: function _FunctionParameters() {
  3532. this._named = this._optionalPositional = this._requiredPositional = null;
  3533. },
  3534. _Type: function _Type(t0) {
  3535. this._rti = t0;
  3536. },
  3537. _Error: function _Error() {
  3538. },
  3539. _TypeError: function _TypeError(t0) {
  3540. this._message = t0;
  3541. },
  3542. unmangleGlobalNameIfPreservedAnyways: function($name) {
  3543. return init.mangledGlobalNames[$name];
  3544. },
  3545. printString: function(string) {
  3546. if (typeof dartPrint == "function") {
  3547. dartPrint(string);
  3548. return;
  3549. }
  3550. if (typeof console == "object" && typeof console.log != "undefined") {
  3551. console.log(string);
  3552. return;
  3553. }
  3554. if (typeof window == "object")
  3555. return;
  3556. if (typeof print == "function") {
  3557. print(string);
  3558. return;
  3559. }
  3560. throw "Unable to print message: " + String(string);
  3561. }
  3562. },
  3563. J = {
  3564. makeDispatchRecord: function(interceptor, proto, extension, indexability) {
  3565. return {i: interceptor, p: proto, e: extension, x: indexability};
  3566. },
  3567. getNativeInterceptor: function(object) {
  3568. var proto, objectProto, $constructor, interceptor,
  3569. record = object[init.dispatchPropertyName];
  3570. if (record == null)
  3571. if ($.initNativeDispatchFlag == null) {
  3572. H.initNativeDispatch();
  3573. record = object[init.dispatchPropertyName];
  3574. }
  3575. if (record != null) {
  3576. proto = record.p;
  3577. if (false === proto)
  3578. return record.i;
  3579. if (true === proto)
  3580. return object;
  3581. objectProto = Object.getPrototypeOf(object);
  3582. if (proto === objectProto)
  3583. return record.i;
  3584. if (record.e === objectProto)
  3585. throw H.wrapException(P.UnimplementedError$("Return interceptor for " + H.S(proto(object, record))));
  3586. }
  3587. $constructor = object.constructor;
  3588. interceptor = $constructor == null ? null : $constructor[J.JS_INTEROP_INTERCEPTOR_TAG()];
  3589. if (interceptor != null)
  3590. return interceptor;
  3591. interceptor = H.lookupAndCacheInterceptor(object);
  3592. if (interceptor != null)
  3593. return interceptor;
  3594. if (typeof object == "function")
  3595. return C.JavaScriptFunction_methods;
  3596. proto = Object.getPrototypeOf(object);
  3597. if (proto == null)
  3598. return C.PlainJavaScriptObject_methods;
  3599. if (proto === Object.prototype)
  3600. return C.PlainJavaScriptObject_methods;
  3601. if (typeof $constructor == "function") {
  3602. Object.defineProperty($constructor, J.JS_INTEROP_INTERCEPTOR_TAG(), {value: C.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
  3603. return C.UnknownJavaScriptObject_methods;
  3604. }
  3605. return C.UnknownJavaScriptObject_methods;
  3606. },
  3607. JS_INTEROP_INTERCEPTOR_TAG: function() {
  3608. var t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  3609. return t1 == null ? $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js") : t1;
  3610. },
  3611. JSArray_JSArray$fixed: function($length, $E) {
  3612. if (!H._isInt($length))
  3613. throw H.wrapException(P.ArgumentError$value($length, "length", "is not an integer"));
  3614. if ($length < 0 || $length > 4294967295)
  3615. throw H.wrapException(P.RangeError$range($length, 0, 4294967295, "length", null));
  3616. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  3617. },
  3618. JSArray_JSArray$growable: function($length, $E) {
  3619. if (!H._isInt($length) || $length < 0)
  3620. throw H.wrapException(P.ArgumentError$("Length must be a non-negative integer: " + H.S($length)));
  3621. return H.setRuntimeTypeInfo(new Array($length), $E._eval$1("JSArray<0>"));
  3622. },
  3623. JSArray_JSArray$markFixed: function(allocation, $E) {
  3624. return J.JSArray_markFixedList(H.setRuntimeTypeInfo(allocation, $E._eval$1("JSArray<0>")));
  3625. },
  3626. JSArray_markFixedList: function(list) {
  3627. list.fixed$length = Array;
  3628. return list;
  3629. },
  3630. JSArray_markUnmodifiableList: function(list) {
  3631. list.fixed$length = Array;
  3632. list.immutable$list = Array;
  3633. return list;
  3634. },
  3635. JSArray__compareAny: function(a, b) {
  3636. return J.compareTo$1$ns(a, b);
  3637. },
  3638. JSString__isWhitespace: function(codeUnit) {
  3639. if (codeUnit < 256)
  3640. switch (codeUnit) {
  3641. case 9:
  3642. case 10:
  3643. case 11:
  3644. case 12:
  3645. case 13:
  3646. case 32:
  3647. case 133:
  3648. case 160:
  3649. return true;
  3650. default:
  3651. return false;
  3652. }
  3653. switch (codeUnit) {
  3654. case 5760:
  3655. case 8192:
  3656. case 8193:
  3657. case 8194:
  3658. case 8195:
  3659. case 8196:
  3660. case 8197:
  3661. case 8198:
  3662. case 8199:
  3663. case 8200:
  3664. case 8201:
  3665. case 8202:
  3666. case 8232:
  3667. case 8233:
  3668. case 8239:
  3669. case 8287:
  3670. case 12288:
  3671. case 65279:
  3672. return true;
  3673. default:
  3674. return false;
  3675. }
  3676. },
  3677. JSString__skipLeadingWhitespace: function(string, index) {
  3678. var t1, codeUnit;
  3679. for (t1 = string.length; index < t1;) {
  3680. codeUnit = C.JSString_methods._codeUnitAt$1(string, index);
  3681. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3682. break;
  3683. ++index;
  3684. }
  3685. return index;
  3686. },
  3687. JSString__skipTrailingWhitespace: function(string, index) {
  3688. var index0, codeUnit;
  3689. for (; index > 0; index = index0) {
  3690. index0 = index - 1;
  3691. codeUnit = C.JSString_methods.codeUnitAt$1(string, index0);
  3692. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  3693. break;
  3694. }
  3695. return index;
  3696. },
  3697. getInterceptor$: function(receiver) {
  3698. if (typeof receiver == "number") {
  3699. if (Math.floor(receiver) == receiver)
  3700. return J.JSInt.prototype;
  3701. return J.JSDouble.prototype;
  3702. }
  3703. if (typeof receiver == "string")
  3704. return J.JSString.prototype;
  3705. if (receiver == null)
  3706. return J.JSNull.prototype;
  3707. if (typeof receiver == "boolean")
  3708. return J.JSBool.prototype;
  3709. if (receiver.constructor == Array)
  3710. return J.JSArray.prototype;
  3711. if (typeof receiver != "object") {
  3712. if (typeof receiver == "function")
  3713. return J.JavaScriptFunction.prototype;
  3714. return receiver;
  3715. }
  3716. if (receiver instanceof P.Object)
  3717. return receiver;
  3718. return J.getNativeInterceptor(receiver);
  3719. },
  3720. getInterceptor$ansx: function(receiver) {
  3721. if (typeof receiver == "number")
  3722. return J.JSNumber.prototype;
  3723. if (typeof receiver == "string")
  3724. return J.JSString.prototype;
  3725. if (receiver == null)
  3726. return receiver;
  3727. if (receiver.constructor == Array)
  3728. return J.JSArray.prototype;
  3729. if (typeof receiver != "object") {
  3730. if (typeof receiver == "function")
  3731. return J.JavaScriptFunction.prototype;
  3732. return receiver;
  3733. }
  3734. if (receiver instanceof P.Object)
  3735. return receiver;
  3736. return J.getNativeInterceptor(receiver);
  3737. },
  3738. getInterceptor$asx: function(receiver) {
  3739. if (typeof receiver == "string")
  3740. return J.JSString.prototype;
  3741. if (receiver == null)
  3742. return receiver;
  3743. if (receiver.constructor == Array)
  3744. return J.JSArray.prototype;
  3745. if (typeof receiver != "object") {
  3746. if (typeof receiver == "function")
  3747. return J.JavaScriptFunction.prototype;
  3748. return receiver;
  3749. }
  3750. if (receiver instanceof P.Object)
  3751. return receiver;
  3752. return J.getNativeInterceptor(receiver);
  3753. },
  3754. getInterceptor$ax: function(receiver) {
  3755. if (receiver == null)
  3756. return receiver;
  3757. if (receiver.constructor == Array)
  3758. return J.JSArray.prototype;
  3759. if (typeof receiver != "object") {
  3760. if (typeof receiver == "function")
  3761. return J.JavaScriptFunction.prototype;
  3762. return receiver;
  3763. }
  3764. if (receiver instanceof P.Object)
  3765. return receiver;
  3766. return J.getNativeInterceptor(receiver);
  3767. },
  3768. getInterceptor$n: function(receiver) {
  3769. if (typeof receiver == "number")
  3770. return J.JSNumber.prototype;
  3771. if (receiver == null)
  3772. return receiver;
  3773. if (!(receiver instanceof P.Object))
  3774. return J.UnknownJavaScriptObject.prototype;
  3775. return receiver;
  3776. },
  3777. getInterceptor$ns: function(receiver) {
  3778. if (typeof receiver == "number")
  3779. return J.JSNumber.prototype;
  3780. if (typeof receiver == "string")
  3781. return J.JSString.prototype;
  3782. if (receiver == null)
  3783. return receiver;
  3784. if (!(receiver instanceof P.Object))
  3785. return J.UnknownJavaScriptObject.prototype;
  3786. return receiver;
  3787. },
  3788. getInterceptor$s: function(receiver) {
  3789. if (typeof receiver == "string")
  3790. return J.JSString.prototype;
  3791. if (receiver == null)
  3792. return receiver;
  3793. if (!(receiver instanceof P.Object))
  3794. return J.UnknownJavaScriptObject.prototype;
  3795. return receiver;
  3796. },
  3797. getInterceptor$u: function(receiver) {
  3798. if (receiver == null)
  3799. return J.JSNull.prototype;
  3800. if (!(receiver instanceof P.Object))
  3801. return J.UnknownJavaScriptObject.prototype;
  3802. return receiver;
  3803. },
  3804. getInterceptor$x: function(receiver) {
  3805. if (receiver == null)
  3806. return receiver;
  3807. if (typeof receiver != "object") {
  3808. if (typeof receiver == "function")
  3809. return J.JavaScriptFunction.prototype;
  3810. return receiver;
  3811. }
  3812. if (receiver instanceof P.Object)
  3813. return receiver;
  3814. return J.getNativeInterceptor(receiver);
  3815. },
  3816. getInterceptor$z: function(receiver) {
  3817. if (receiver == null)
  3818. return receiver;
  3819. if (!(receiver instanceof P.Object))
  3820. return J.UnknownJavaScriptObject.prototype;
  3821. return receiver;
  3822. },
  3823. set$FALSE$x: function(receiver, value) {
  3824. return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
  3825. },
  3826. set$NULL$x: function(receiver, value) {
  3827. return J.getInterceptor$x(receiver).set$NULL(receiver, value);
  3828. },
  3829. set$TRUE$x: function(receiver, value) {
  3830. return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
  3831. },
  3832. set$cli_pkg_main_0_$x: function(receiver, value) {
  3833. return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
  3834. },
  3835. set$context$x: function(receiver, value) {
  3836. return J.getInterceptor$x(receiver).set$context(receiver, value);
  3837. },
  3838. set$dartValue$x: function(receiver, value) {
  3839. return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
  3840. },
  3841. set$exitCode$x: function(receiver, value) {
  3842. return J.getInterceptor$x(receiver).set$exitCode(receiver, value);
  3843. },
  3844. set$info$x: function(receiver, value) {
  3845. return J.getInterceptor$x(receiver).set$info(receiver, value);
  3846. },
  3847. set$length$asx: function(receiver, value) {
  3848. return J.getInterceptor$asx(receiver).set$length(receiver, value);
  3849. },
  3850. set$render$x: function(receiver, value) {
  3851. return J.getInterceptor$x(receiver).set$render(receiver, value);
  3852. },
  3853. set$renderSync$x: function(receiver, value) {
  3854. return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
  3855. },
  3856. set$types$x: function(receiver, value) {
  3857. return J.getInterceptor$x(receiver).set$types(receiver, value);
  3858. },
  3859. get$code$x: function(receiver) {
  3860. return J.getInterceptor$x(receiver).get$code(receiver);
  3861. },
  3862. get$current$x: function(receiver) {
  3863. return J.getInterceptor$x(receiver).get$current(receiver);
  3864. },
  3865. get$dartValue$x: function(receiver) {
  3866. return J.getInterceptor$x(receiver).get$dartValue(receiver);
  3867. },
  3868. get$end$x: function(receiver) {
  3869. return J.getInterceptor$x(receiver).get$end(receiver);
  3870. },
  3871. get$env$x: function(receiver) {
  3872. return J.getInterceptor$x(receiver).get$env(receiver);
  3873. },
  3874. get$exitCode$x: function(receiver) {
  3875. return J.getInterceptor$x(receiver).get$exitCode(receiver);
  3876. },
  3877. get$fiber$x: function(receiver) {
  3878. return J.getInterceptor$x(receiver).get$fiber(receiver);
  3879. },
  3880. get$file$x: function(receiver) {
  3881. return J.getInterceptor$x(receiver).get$file(receiver);
  3882. },
  3883. get$first$ax: function(receiver) {
  3884. return J.getInterceptor$ax(receiver).get$first(receiver);
  3885. },
  3886. get$hashCode$: function(receiver) {
  3887. return J.getInterceptor$(receiver).get$hashCode(receiver);
  3888. },
  3889. get$isEmpty$asx: function(receiver) {
  3890. return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
  3891. },
  3892. get$isNotEmpty$asx: function(receiver) {
  3893. return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
  3894. },
  3895. get$isTTY$x: function(receiver) {
  3896. return J.getInterceptor$x(receiver).get$isTTY(receiver);
  3897. },
  3898. get$iterator$ax: function(receiver) {
  3899. return J.getInterceptor$ax(receiver).get$iterator(receiver);
  3900. },
  3901. get$keys$z: function(receiver) {
  3902. return J.getInterceptor$z(receiver).get$keys(receiver);
  3903. },
  3904. get$last$ax: function(receiver) {
  3905. return J.getInterceptor$ax(receiver).get$last(receiver);
  3906. },
  3907. get$length$asx: function(receiver) {
  3908. return J.getInterceptor$asx(receiver).get$length(receiver);
  3909. },
  3910. get$message$x: function(receiver) {
  3911. return J.getInterceptor$x(receiver).get$message(receiver);
  3912. },
  3913. get$mtime$x: function(receiver) {
  3914. return J.getInterceptor$x(receiver).get$mtime(receiver);
  3915. },
  3916. get$options$x: function(receiver) {
  3917. return J.getInterceptor$x(receiver).get$options(receiver);
  3918. },
  3919. get$path$x: function(receiver) {
  3920. return J.getInterceptor$x(receiver).get$path(receiver);
  3921. },
  3922. get$platform$x: function(receiver) {
  3923. return J.getInterceptor$x(receiver).get$platform(receiver);
  3924. },
  3925. get$reversed$ax: function(receiver) {
  3926. return J.getInterceptor$ax(receiver).get$reversed(receiver);
  3927. },
  3928. get$runtimeType$u: function(receiver) {
  3929. return J.getInterceptor$u(receiver).get$runtimeType(receiver);
  3930. },
  3931. get$single$ax: function(receiver) {
  3932. return J.getInterceptor$ax(receiver).get$single(receiver);
  3933. },
  3934. get$sourceUrl$x: function(receiver) {
  3935. return J.getInterceptor$x(receiver).get$sourceUrl(receiver);
  3936. },
  3937. get$stderr$x: function(receiver) {
  3938. return J.getInterceptor$x(receiver).get$stderr(receiver);
  3939. },
  3940. get$stdin$x: function(receiver) {
  3941. return J.getInterceptor$x(receiver).get$stdin(receiver);
  3942. },
  3943. get$stdout$x: function(receiver) {
  3944. return J.getInterceptor$x(receiver).get$stdout(receiver);
  3945. },
  3946. get$values$z: function(receiver) {
  3947. return J.getInterceptor$z(receiver).get$values(receiver);
  3948. },
  3949. $add$ansx: function(receiver, a0) {
  3950. if (typeof receiver == "number" && typeof a0 == "number")
  3951. return receiver + a0;
  3952. return J.getInterceptor$ansx(receiver).$add(receiver, a0);
  3953. },
  3954. $eq$: function(receiver, a0) {
  3955. if (receiver == null)
  3956. return a0 == null;
  3957. if (typeof receiver != "object")
  3958. return a0 != null && receiver === a0;
  3959. return J.getInterceptor$(receiver).$eq(receiver, a0);
  3960. },
  3961. $index$asx: function(receiver, a0) {
  3962. if (typeof a0 === "number")
  3963. if (receiver.constructor == Array || typeof receiver == "string" || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
  3964. if (a0 >>> 0 === a0 && a0 < receiver.length)
  3965. return receiver[a0];
  3966. return J.getInterceptor$asx(receiver).$index(receiver, a0);
  3967. },
  3968. $indexSet$ax: function(receiver, a0, a1) {
  3969. if (typeof a0 === "number")
  3970. if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
  3971. return receiver[a0] = a1;
  3972. return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
  3973. },
  3974. _codeUnitAt$1$s: function(receiver, a0) {
  3975. return J.getInterceptor$s(receiver)._codeUnitAt$1(receiver, a0);
  3976. },
  3977. add$1$ax: function(receiver, a0) {
  3978. return J.getInterceptor$ax(receiver).add$1(receiver, a0);
  3979. },
  3980. addAll$1$ax: function(receiver, a0) {
  3981. return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
  3982. },
  3983. allMatches$1$s: function(receiver, a0) {
  3984. return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
  3985. },
  3986. allMatches$2$s: function(receiver, a0, a1) {
  3987. return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
  3988. },
  3989. any$1$ax: function(receiver, a0) {
  3990. return J.getInterceptor$ax(receiver).any$1(receiver, a0);
  3991. },
  3992. apply$2$x: function(receiver, a0, a1) {
  3993. return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
  3994. },
  3995. cast$1$0$ax: function(receiver, $T1) {
  3996. return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
  3997. },
  3998. ceil$0$n: function(receiver) {
  3999. return J.getInterceptor$n(receiver).ceil$0(receiver);
  4000. },
  4001. clamp$2$n: function(receiver, a0, a1) {
  4002. return J.getInterceptor$n(receiver).clamp$2(receiver, a0, a1);
  4003. },
  4004. close$0$x: function(receiver) {
  4005. return J.getInterceptor$x(receiver).close$0(receiver);
  4006. },
  4007. codeUnitAt$1$s: function(receiver, a0) {
  4008. return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
  4009. },
  4010. compareTo$1$ns: function(receiver, a0) {
  4011. return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
  4012. },
  4013. contains$1$asx: function(receiver, a0) {
  4014. return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
  4015. },
  4016. createInterface$1$x: function(receiver, a0) {
  4017. return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
  4018. },
  4019. elementAt$1$ax: function(receiver, a0) {
  4020. return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
  4021. },
  4022. endsWith$1$s: function(receiver, a0) {
  4023. return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
  4024. },
  4025. every$1$ax: function(receiver, a0) {
  4026. return J.getInterceptor$ax(receiver).every$1(receiver, a0);
  4027. },
  4028. existsSync$1$x: function(receiver, a0) {
  4029. return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
  4030. },
  4031. expand$1$1$ax: function(receiver, a0, $T1) {
  4032. return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
  4033. },
  4034. fillRange$3$ax: function(receiver, a0, a1, a2) {
  4035. return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
  4036. },
  4037. floor$0$n: function(receiver) {
  4038. return J.getInterceptor$n(receiver).floor$0(receiver);
  4039. },
  4040. fold$2$ax: function(receiver, a0, a1) {
  4041. return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
  4042. },
  4043. getRange$2$ax: function(receiver, a0, a1) {
  4044. return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1);
  4045. },
  4046. getTime$0$x: function(receiver) {
  4047. return J.getInterceptor$x(receiver).getTime$0(receiver);
  4048. },
  4049. indexOf$1$asx: function(receiver, a0) {
  4050. return J.getInterceptor$asx(receiver).indexOf$1(receiver, a0);
  4051. },
  4052. isDirectory$0$x: function(receiver) {
  4053. return J.getInterceptor$x(receiver).isDirectory$0(receiver);
  4054. },
  4055. isFile$0$x: function(receiver) {
  4056. return J.getInterceptor$x(receiver).isFile$0(receiver);
  4057. },
  4058. join$0$ax: function(receiver) {
  4059. return J.getInterceptor$ax(receiver).join$0(receiver);
  4060. },
  4061. join$1$ax: function(receiver, a0) {
  4062. return J.getInterceptor$ax(receiver).join$1(receiver, a0);
  4063. },
  4064. map$1$ax: function(receiver, a0) {
  4065. return J.getInterceptor$ax(receiver).map$1(receiver, a0);
  4066. },
  4067. map$1$1$ax: function(receiver, a0, $T1) {
  4068. return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
  4069. },
  4070. matchAsPrefix$2$s: function(receiver, a0, a1) {
  4071. return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
  4072. },
  4073. mkdirSync$1$x: function(receiver, a0) {
  4074. return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
  4075. },
  4076. noSuchMethod$1$: function(receiver, a0) {
  4077. return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
  4078. },
  4079. on$2$x: function(receiver, a0, a1) {
  4080. return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
  4081. },
  4082. padRight$1$s: function(receiver, a0) {
  4083. return J.getInterceptor$s(receiver).padRight$1(receiver, a0);
  4084. },
  4085. readFileSync$2$x: function(receiver, a0, a1) {
  4086. return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
  4087. },
  4088. readdirSync$1$x: function(receiver, a0) {
  4089. return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
  4090. },
  4091. remove$1$ax: function(receiver, a0) {
  4092. return J.getInterceptor$ax(receiver).remove$1(receiver, a0);
  4093. },
  4094. replaceRange$3$asx: function(receiver, a0, a1, a2) {
  4095. return J.getInterceptor$asx(receiver).replaceRange$3(receiver, a0, a1, a2);
  4096. },
  4097. round$0$n: function(receiver) {
  4098. return J.getInterceptor$n(receiver).round$0(receiver);
  4099. },
  4100. run$0$x: function(receiver) {
  4101. return J.getInterceptor$x(receiver).run$0(receiver);
  4102. },
  4103. run$1$x: function(receiver, a0) {
  4104. return J.getInterceptor$x(receiver).run$1(receiver, a0);
  4105. },
  4106. setPrompt$1$x: function(receiver, a0) {
  4107. return J.getInterceptor$x(receiver).setPrompt$1(receiver, a0);
  4108. },
  4109. setRange$4$ax: function(receiver, a0, a1, a2, a3) {
  4110. return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
  4111. },
  4112. skip$1$ax: function(receiver, a0) {
  4113. return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
  4114. },
  4115. sort$1$ax: function(receiver, a0) {
  4116. return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
  4117. },
  4118. startsWith$1$s: function(receiver, a0) {
  4119. return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
  4120. },
  4121. startsWith$2$s: function(receiver, a0, a1) {
  4122. return J.getInterceptor$s(receiver).startsWith$2(receiver, a0, a1);
  4123. },
  4124. statSync$1$x: function(receiver, a0) {
  4125. return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
  4126. },
  4127. substring$1$s: function(receiver, a0) {
  4128. return J.getInterceptor$s(receiver).substring$1(receiver, a0);
  4129. },
  4130. substring$2$s: function(receiver, a0, a1) {
  4131. return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
  4132. },
  4133. take$1$ax: function(receiver, a0) {
  4134. return J.getInterceptor$ax(receiver).take$1(receiver, a0);
  4135. },
  4136. then$1$1$x: function(receiver, a0, $T1) {
  4137. return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
  4138. },
  4139. then$1$2$onError$x: function(receiver, a0, a1, $T1) {
  4140. return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1);
  4141. },
  4142. toList$0$ax: function(receiver) {
  4143. return J.getInterceptor$ax(receiver).toList$0(receiver);
  4144. },
  4145. toList$1$growable$ax: function(receiver, a0) {
  4146. return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
  4147. },
  4148. toRadixString$1$n: function(receiver, a0) {
  4149. return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
  4150. },
  4151. toSet$0$ax: function(receiver) {
  4152. return J.getInterceptor$ax(receiver).toSet$0(receiver);
  4153. },
  4154. toString$0$: function(receiver) {
  4155. return J.getInterceptor$(receiver).toString$0(receiver);
  4156. },
  4157. toString$1$color$: function(receiver, a0) {
  4158. return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
  4159. },
  4160. trim$0$s: function(receiver) {
  4161. return J.getInterceptor$s(receiver).trim$0(receiver);
  4162. },
  4163. unlinkSync$1$x: function(receiver, a0) {
  4164. return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
  4165. },
  4166. watch$2$x: function(receiver, a0, a1) {
  4167. return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
  4168. },
  4169. where$1$ax: function(receiver, a0) {
  4170. return J.getInterceptor$ax(receiver).where$1(receiver, a0);
  4171. },
  4172. write$1$x: function(receiver, a0) {
  4173. return J.getInterceptor$x(receiver).write$1(receiver, a0);
  4174. },
  4175. writeFileSync$2$x: function(receiver, a0, a1) {
  4176. return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
  4177. },
  4178. yield$0$x: function(receiver) {
  4179. return J.getInterceptor$x(receiver).yield$0(receiver);
  4180. },
  4181. Interceptor: function Interceptor() {
  4182. },
  4183. JSBool: function JSBool() {
  4184. },
  4185. JSNull: function JSNull() {
  4186. },
  4187. JavaScriptObject: function JavaScriptObject() {
  4188. },
  4189. PlainJavaScriptObject: function PlainJavaScriptObject() {
  4190. },
  4191. UnknownJavaScriptObject: function UnknownJavaScriptObject() {
  4192. },
  4193. JavaScriptFunction: function JavaScriptFunction() {
  4194. },
  4195. JSArray: function JSArray(t0) {
  4196. this.$ti = t0;
  4197. },
  4198. JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
  4199. this.$ti = t0;
  4200. },
  4201. ArrayIterator: function ArrayIterator(t0, t1) {
  4202. var _ = this;
  4203. _._iterable = t0;
  4204. _._length = t1;
  4205. _._index = 0;
  4206. _._current = null;
  4207. },
  4208. JSNumber: function JSNumber() {
  4209. },
  4210. JSInt: function JSInt() {
  4211. },
  4212. JSDouble: function JSDouble() {
  4213. },
  4214. JSString: function JSString() {
  4215. }
  4216. },
  4217. P = {
  4218. _AsyncRun__initializeScheduleImmediate: function() {
  4219. var div, span, t1 = {};
  4220. if (self.scheduleImmediate != null)
  4221. return P.async__AsyncRun__scheduleImmediateJsOverride$closure();
  4222. if (self.MutationObserver != null && self.document != null) {
  4223. div = self.document.createElement("div");
  4224. span = self.document.createElement("span");
  4225. t1.storedCallback = null;
  4226. new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
  4227. return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
  4228. } else if (self.setImmediate != null)
  4229. return P.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
  4230. return P.async__AsyncRun__scheduleImmediateWithTimer$closure();
  4231. },
  4232. _AsyncRun__scheduleImmediateJsOverride: function(callback) {
  4233. self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
  4234. },
  4235. _AsyncRun__scheduleImmediateWithSetImmediate: function(callback) {
  4236. self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
  4237. },
  4238. _AsyncRun__scheduleImmediateWithTimer: function(callback) {
  4239. P.Timer__createTimer(C.Duration_0, callback);
  4240. },
  4241. Timer__createTimer: function(duration, callback) {
  4242. var milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4243. return P._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
  4244. },
  4245. _TimerImpl$: function(milliseconds, callback) {
  4246. var t1 = new P._TimerImpl(true);
  4247. t1._TimerImpl$2(milliseconds, callback);
  4248. return t1;
  4249. },
  4250. _TimerImpl$periodic: function(milliseconds, callback) {
  4251. var t1 = new P._TimerImpl(false);
  4252. t1._TimerImpl$periodic$2(milliseconds, callback);
  4253. return t1;
  4254. },
  4255. _makeAsyncAwaitCompleter: function($T) {
  4256. return new P._AsyncAwaitCompleter(new P._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
  4257. },
  4258. _asyncStartSync: function(bodyFunction, completer) {
  4259. bodyFunction.call$2(0, null);
  4260. completer.isSync = true;
  4261. return completer._future;
  4262. },
  4263. _asyncAwait: function(object, bodyFunction) {
  4264. P._awaitOnObject(object, bodyFunction);
  4265. },
  4266. _asyncReturn: function(object, completer) {
  4267. completer.complete$1(object);
  4268. },
  4269. _asyncRethrow: function(object, completer) {
  4270. completer.completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4271. },
  4272. _awaitOnObject: function(object, bodyFunction) {
  4273. var t1, future,
  4274. thenCallback = new P._awaitOnObject_closure(bodyFunction),
  4275. errorCallback = new P._awaitOnObject_closure0(bodyFunction);
  4276. if (object instanceof P._Future)
  4277. object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
  4278. else {
  4279. t1 = type$.dynamic;
  4280. if (type$.Future_dynamic._is(object))
  4281. object.then$1$2$onError(0, thenCallback, errorCallback, t1);
  4282. else {
  4283. future = new P._Future($.Zone__current, type$._Future_dynamic);
  4284. future._state = 4;
  4285. future._resultOrListeners = object;
  4286. future._thenAwait$1$2(thenCallback, errorCallback, t1);
  4287. }
  4288. }
  4289. },
  4290. _wrapJsFunctionForAsync: function($function) {
  4291. var $protected = function(fn, ERROR) {
  4292. return function(errorCode, result) {
  4293. while (true)
  4294. try {
  4295. fn(errorCode, result);
  4296. break;
  4297. } catch (error) {
  4298. result = error;
  4299. errorCode = ERROR;
  4300. }
  4301. };
  4302. }($function, 1);
  4303. return $.Zone__current.registerBinaryCallback$3$1(new P._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic);
  4304. },
  4305. _asyncStarHelper: function(object, bodyFunctionOrErrorCode, controller) {
  4306. var t1, t2, stream;
  4307. if (bodyFunctionOrErrorCode === 0) {
  4308. t1 = controller.cancelationFuture;
  4309. if (t1 != null)
  4310. t1._completeWithValue$1(null);
  4311. else
  4312. controller.get$controller().close$0(0);
  4313. return;
  4314. } else if (bodyFunctionOrErrorCode === 1) {
  4315. t1 = controller.cancelationFuture;
  4316. if (t1 != null)
  4317. t1._completeError$2(H.unwrapException(object), H.getTraceFromException(object));
  4318. else {
  4319. t1 = H.unwrapException(object);
  4320. t2 = H.getTraceFromException(object);
  4321. controller.get$controller().addError$2(t1, t2);
  4322. controller.get$controller().close$0(0);
  4323. }
  4324. return;
  4325. }
  4326. if (object instanceof P._IterationMarker) {
  4327. if (controller.cancelationFuture != null) {
  4328. bodyFunctionOrErrorCode.call$2(2, null);
  4329. return;
  4330. }
  4331. t1 = object.state;
  4332. if (t1 === 0) {
  4333. t1 = object.value;
  4334. controller.get$controller().add$1(0, t1);
  4335. P.scheduleMicrotask(new P._asyncStarHelper_closure(controller, bodyFunctionOrErrorCode));
  4336. return;
  4337. } else if (t1 === 1) {
  4338. stream = object.value;
  4339. controller.get$controller().addStream$2$cancelOnError(stream, false).then$1(0, new P._asyncStarHelper_closure0(controller, bodyFunctionOrErrorCode));
  4340. return;
  4341. }
  4342. }
  4343. P._awaitOnObject(object, bodyFunctionOrErrorCode);
  4344. },
  4345. _streamOfController: function(controller) {
  4346. var t1 = controller.get$controller();
  4347. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>"));
  4348. },
  4349. _AsyncStarStreamController$: function(body, $T) {
  4350. var t1 = new P._AsyncStarStreamController($T._eval$1("_AsyncStarStreamController<0>"));
  4351. t1._AsyncStarStreamController$1(body, $T);
  4352. return t1;
  4353. },
  4354. _makeAsyncStarStreamController: function(body, $T) {
  4355. return P._AsyncStarStreamController$(body, $T);
  4356. },
  4357. _IterationMarker_yieldStar: function(values) {
  4358. return new P._IterationMarker(values, 1);
  4359. },
  4360. _IterationMarker_endOfIteration: function() {
  4361. return C._IterationMarker_null_2;
  4362. },
  4363. _IterationMarker_yieldSingle: function(value) {
  4364. return new P._IterationMarker(value, 0);
  4365. },
  4366. _IterationMarker_uncaughtError: function(error) {
  4367. return new P._IterationMarker(error, 3);
  4368. },
  4369. _makeSyncStarIterable: function(body, $T) {
  4370. return new P._SyncStarIterable(body, $T._eval$1("_SyncStarIterable<0>"));
  4371. },
  4372. Future_Future$value: function(value, $T) {
  4373. var t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
  4374. t1._asyncComplete$1(value);
  4375. return t1;
  4376. },
  4377. Future_Future$error: function(error, stackTrace, $T) {
  4378. var t1, replacement;
  4379. P.ArgumentError_checkNotNull(error, "error");
  4380. t1 = $.Zone__current;
  4381. if (t1 !== C.C__RootZone) {
  4382. replacement = t1.errorCallback$2(error, stackTrace);
  4383. if (replacement != null) {
  4384. error = replacement.error;
  4385. stackTrace = replacement.stackTrace;
  4386. }
  4387. }
  4388. if (stackTrace == null)
  4389. stackTrace = P.AsyncError_defaultStackTrace(error);
  4390. t1 = new P._Future($.Zone__current, $T._eval$1("_Future<0>"));
  4391. t1._asyncCompleteError$2(error, stackTrace);
  4392. return t1;
  4393. },
  4394. Future_wait: function(futures, $T) {
  4395. var _error_get, _error_set, _stackTrace_get, _stackTrace_set, handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
  4396. eagerError = false,
  4397. _future = new P._Future($.Zone__current, $T._eval$1("_Future<List<0>>"));
  4398. _box_0.values = null;
  4399. _box_0.remaining = 0;
  4400. _box_0.error = null;
  4401. _error_get = new P.Future_wait__error_get(_box_0);
  4402. _error_set = new P.Future_wait__error_set(_box_0);
  4403. _box_0.stackTrace = null;
  4404. _stackTrace_get = new P.Future_wait__stackTrace_get(_box_0);
  4405. _stackTrace_set = new P.Future_wait__stackTrace_set(_box_0);
  4406. handleError = new P.Future_wait_handleError(_box_0, cleanUp, eagerError, _future, _error_set, _stackTrace_set, _error_get, _stackTrace_get);
  4407. try {
  4408. for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
  4409. future = t1.get$current(t1);
  4410. pos = _box_0.remaining;
  4411. J.then$1$2$onError$x(future, new P.Future_wait_closure(_box_0, pos, _future, cleanUp, eagerError, _error_get, _stackTrace_get, $T), handleError, t2);
  4412. ++_box_0.remaining;
  4413. }
  4414. t1 = _box_0.remaining;
  4415. if (t1 === 0) {
  4416. t1 = P.Future_Future$value(C.List_empty9, $T._eval$1("List<0>"));
  4417. return t1;
  4418. }
  4419. _box_0.values = P.List_List$filled(t1, null, false, $T._eval$1("0?"));
  4420. } catch (exception) {
  4421. e = H.unwrapException(exception);
  4422. st = H.getTraceFromException(exception);
  4423. if (_box_0.remaining === 0 || eagerError)
  4424. return P.Future_Future$error(e, st, $T._eval$1("List<0>"));
  4425. else {
  4426. _error_set.call$1(e);
  4427. _stackTrace_set.call$1(st);
  4428. }
  4429. }
  4430. return _future;
  4431. },
  4432. _Future$zoneValue: function(value, _zone, $T) {
  4433. var t1 = new P._Future(_zone, $T._eval$1("_Future<0>"));
  4434. t1._state = 4;
  4435. t1._resultOrListeners = value;
  4436. return t1;
  4437. },
  4438. _Future__chainForeignFuture: function(source, target) {
  4439. var e, s, exception;
  4440. target._state = 1;
  4441. try {
  4442. source.then$1$2$onError(0, new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target), type$.Null);
  4443. } catch (exception) {
  4444. e = H.unwrapException(exception);
  4445. s = H.getTraceFromException(exception);
  4446. P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
  4447. }
  4448. },
  4449. _Future__chainCoreFuture: function(source, target) {
  4450. var t1, listeners;
  4451. for (; t1 = source._state, t1 === 2;)
  4452. source = source._resultOrListeners;
  4453. if (t1 >= 4) {
  4454. listeners = target._removeListeners$0();
  4455. target._state = source._state;
  4456. target._resultOrListeners = source._resultOrListeners;
  4457. P._Future__propagateToListeners(target, listeners);
  4458. } else {
  4459. listeners = target._resultOrListeners;
  4460. target._state = 2;
  4461. target._resultOrListeners = source;
  4462. source._prependListeners$1(listeners);
  4463. }
  4464. },
  4465. _Future__propagateToListeners: function(source, listeners) {
  4466. var t2, _box_0, hasError, nextListener, nextListener0, t3, sourceResult, t4, t5, zone, oldZone, result, current, _box_1 = {},
  4467. t1 = _box_1.source = source;
  4468. for (t2 = type$.Future_dynamic; true;) {
  4469. _box_0 = {};
  4470. hasError = t1._state === 8;
  4471. if (listeners == null) {
  4472. if (hasError) {
  4473. t2 = t1._resultOrListeners;
  4474. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4475. }
  4476. return;
  4477. }
  4478. _box_0.listener = listeners;
  4479. nextListener = listeners._nextListener;
  4480. for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
  4481. t1._nextListener = null;
  4482. P._Future__propagateToListeners(_box_1.source, t1);
  4483. _box_0.listener = nextListener;
  4484. nextListener0 = nextListener._nextListener;
  4485. }
  4486. t3 = _box_1.source;
  4487. sourceResult = t3._resultOrListeners;
  4488. _box_0.listenerHasError = hasError;
  4489. _box_0.listenerValueOrError = sourceResult;
  4490. t4 = !hasError;
  4491. if (t4) {
  4492. t5 = t1.state;
  4493. t5 = (t5 & 1) !== 0 || (t5 & 15) === 8;
  4494. } else
  4495. t5 = true;
  4496. if (t5) {
  4497. zone = t1.result._zone;
  4498. if (hasError) {
  4499. t1 = t3._zone;
  4500. t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
  4501. } else
  4502. t1 = false;
  4503. if (t1) {
  4504. t1 = _box_1.source;
  4505. t2 = t1._resultOrListeners;
  4506. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  4507. return;
  4508. }
  4509. oldZone = $.Zone__current;
  4510. if (oldZone !== zone)
  4511. $.Zone__current = zone;
  4512. else
  4513. oldZone = null;
  4514. t1 = _box_0.listener.state;
  4515. if ((t1 & 15) === 8)
  4516. new P._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
  4517. else if (t4) {
  4518. if ((t1 & 1) !== 0)
  4519. new P._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
  4520. } else if ((t1 & 2) !== 0)
  4521. new P._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
  4522. if (oldZone != null)
  4523. $.Zone__current = oldZone;
  4524. t1 = _box_0.listenerValueOrError;
  4525. if (t2._is(t1)) {
  4526. result = _box_0.listener.result;
  4527. if (t1._state >= 4) {
  4528. current = result._resultOrListeners;
  4529. result._resultOrListeners = null;
  4530. listeners = result._reverseListeners$1(current);
  4531. result._state = t1._state;
  4532. result._resultOrListeners = t1._resultOrListeners;
  4533. _box_1.source = t1;
  4534. continue;
  4535. } else
  4536. P._Future__chainCoreFuture(t1, result);
  4537. return;
  4538. }
  4539. }
  4540. result = _box_0.listener.result;
  4541. current = result._resultOrListeners;
  4542. result._resultOrListeners = null;
  4543. listeners = result._reverseListeners$1(current);
  4544. t1 = _box_0.listenerHasError;
  4545. t3 = _box_0.listenerValueOrError;
  4546. if (!t1) {
  4547. result._state = 4;
  4548. result._resultOrListeners = t3;
  4549. } else {
  4550. result._state = 8;
  4551. result._resultOrListeners = t3;
  4552. }
  4553. _box_1.source = result;
  4554. t1 = result;
  4555. }
  4556. },
  4557. _registerErrorHandler: function(errorHandler, zone) {
  4558. if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
  4559. return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace);
  4560. if (type$.dynamic_Function_Object._is(errorHandler))
  4561. return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object);
  4562. throw H.wrapException(P.ArgumentError$value(errorHandler, "onError", "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a a valid result"));
  4563. },
  4564. _microtaskLoop: function() {
  4565. var entry, next;
  4566. for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
  4567. $._lastPriorityCallback = null;
  4568. next = entry.next;
  4569. $._nextCallback = next;
  4570. if (next == null)
  4571. $._lastCallback = null;
  4572. entry.callback.call$0();
  4573. }
  4574. },
  4575. _startMicrotaskLoop: function() {
  4576. $._isInCallbackLoop = true;
  4577. try {
  4578. P._microtaskLoop();
  4579. } finally {
  4580. $._lastPriorityCallback = null;
  4581. $._isInCallbackLoop = false;
  4582. if ($._nextCallback != null)
  4583. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4584. }
  4585. },
  4586. _scheduleAsyncCallback: function(callback) {
  4587. var newEntry = new P._AsyncCallbackEntry(callback),
  4588. lastCallback = $._lastCallback;
  4589. if (lastCallback == null) {
  4590. $._nextCallback = $._lastCallback = newEntry;
  4591. if (!$._isInCallbackLoop)
  4592. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(P.async___startMicrotaskLoop$closure());
  4593. } else
  4594. $._lastCallback = lastCallback.next = newEntry;
  4595. },
  4596. _schedulePriorityAsyncCallback: function(callback) {
  4597. var entry, lastPriorityCallback, next,
  4598. t1 = $._nextCallback;
  4599. if (t1 == null) {
  4600. P._scheduleAsyncCallback(callback);
  4601. $._lastPriorityCallback = $._lastCallback;
  4602. return;
  4603. }
  4604. entry = new P._AsyncCallbackEntry(callback);
  4605. lastPriorityCallback = $._lastPriorityCallback;
  4606. if (lastPriorityCallback == null) {
  4607. entry.next = t1;
  4608. $._nextCallback = $._lastPriorityCallback = entry;
  4609. } else {
  4610. next = lastPriorityCallback.next;
  4611. entry.next = next;
  4612. $._lastPriorityCallback = lastPriorityCallback.next = entry;
  4613. if (next == null)
  4614. $._lastCallback = entry;
  4615. }
  4616. },
  4617. scheduleMicrotask: function(callback) {
  4618. var t1, _null = null,
  4619. currentZone = $.Zone__current;
  4620. if (C.C__RootZone === currentZone) {
  4621. P._rootScheduleMicrotask(_null, _null, C.C__RootZone, callback);
  4622. return;
  4623. }
  4624. if (C.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
  4625. t1 = C.C__RootZone.get$errorZone() === currentZone.get$errorZone();
  4626. else
  4627. t1 = false;
  4628. if (t1) {
  4629. P._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void));
  4630. return;
  4631. }
  4632. t1 = $.Zone__current;
  4633. t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
  4634. },
  4635. Stream_Stream$fromFuture: function(future, $T) {
  4636. var _null = null,
  4637. t1 = $T._eval$1("_SyncStreamController<0>"),
  4638. controller = new P._SyncStreamController(_null, _null, _null, _null, t1);
  4639. future.then$1$2$onError(0, new P.Stream_Stream$fromFuture_closure(controller, $T), new P.Stream_Stream$fromFuture_closure0(controller), type$.Null);
  4640. return new P._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
  4641. },
  4642. StreamIterator_StreamIterator: function(stream) {
  4643. P.ArgumentError_checkNotNull(stream, "stream");
  4644. return new P._StreamIterator(stream);
  4645. },
  4646. StreamController_StreamController: function(onCancel, onListen, onPause, onResume, sync, $T) {
  4647. return sync ? new P._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new P._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
  4648. },
  4649. _runGuarded: function(notificationHandler) {
  4650. var e, s, exception;
  4651. if (notificationHandler == null)
  4652. return;
  4653. try {
  4654. notificationHandler.call$0();
  4655. } catch (exception) {
  4656. e = H.unwrapException(exception);
  4657. s = H.getTraceFromException(exception);
  4658. $.Zone__current.handleUncaughtError$2(e, s);
  4659. }
  4660. },
  4661. _ControllerSubscription$: function(_controller, onData, onError, onDone, cancelOnError, $T) {
  4662. var t1 = $.Zone__current,
  4663. t2 = cancelOnError ? 1 : 0,
  4664. t3 = P._BufferingStreamSubscription__registerDataHandler(t1, onData, $T),
  4665. t4 = P._BufferingStreamSubscription__registerErrorHandler(t1, onError),
  4666. t5 = onDone == null ? P.async___nullDoneHandler$closure() : onDone;
  4667. return new P._ControllerSubscription(_controller, t3, t4, t1.registerCallback$1$1(t5, type$.void), t1, t2, $T._eval$1("_ControllerSubscription<0>"));
  4668. },
  4669. _BufferingStreamSubscription__registerDataHandler: function(zone, handleData, $T) {
  4670. var t1 = handleData == null ? P.async___nullDataHandler$closure() : handleData;
  4671. return zone.registerUnaryCallback$2$1(t1, type$.void, $T);
  4672. },
  4673. _BufferingStreamSubscription__registerErrorHandler: function(zone, handleError) {
  4674. if (handleError == null)
  4675. handleError = P.async___nullErrorHandler$closure();
  4676. if (type$.void_Function_Object_StackTrace._is(handleError))
  4677. return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace);
  4678. if (type$.void_Function_Object._is(handleError))
  4679. return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object);
  4680. throw H.wrapException(P.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace."));
  4681. },
  4682. _nullDataHandler: function(value) {
  4683. },
  4684. _nullErrorHandler: function(error, stackTrace) {
  4685. $.Zone__current.handleUncaughtError$2(error, stackTrace);
  4686. },
  4687. _nullDoneHandler: function() {
  4688. },
  4689. _addErrorWithReplacement: function(sink, error, stackTrace) {
  4690. var replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  4691. if (replacement != null) {
  4692. error = replacement.error;
  4693. stackTrace = replacement.stackTrace;
  4694. }
  4695. sink._addError$2(error, stackTrace);
  4696. },
  4697. Timer_Timer: function(duration, callback) {
  4698. var t1 = $.Zone__current;
  4699. if (t1 === C.C__RootZone)
  4700. return t1.createTimer$2(duration, callback);
  4701. return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
  4702. },
  4703. AsyncError$: function(error, stackTrace) {
  4704. var t1 = stackTrace == null ? P.AsyncError_defaultStackTrace(error) : stackTrace;
  4705. P.ArgumentError_checkNotNull(error, "error");
  4706. return new P.AsyncError(error, t1);
  4707. },
  4708. AsyncError_defaultStackTrace: function(error) {
  4709. var stackTrace;
  4710. if (type$.Error._is(error)) {
  4711. stackTrace = error.get$stackTrace();
  4712. if (stackTrace != null)
  4713. return stackTrace;
  4714. }
  4715. return C._StringStackTrace_3uE;
  4716. },
  4717. _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) {
  4718. P._schedulePriorityAsyncCallback(new P._rootHandleUncaughtError_closure(error, stackTrace));
  4719. },
  4720. _rootRun: function($self, $parent, zone, f) {
  4721. var old,
  4722. t1 = $.Zone__current;
  4723. if (t1 === zone)
  4724. return f.call$0();
  4725. if (!(zone instanceof P._Zone))
  4726. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4727. $.Zone__current = zone;
  4728. old = t1;
  4729. try {
  4730. t1 = f.call$0();
  4731. return t1;
  4732. } finally {
  4733. $.Zone__current = old;
  4734. }
  4735. },
  4736. _rootRunUnary: function($self, $parent, zone, f, arg) {
  4737. var old,
  4738. t1 = $.Zone__current;
  4739. if (t1 === zone)
  4740. return f.call$1(arg);
  4741. if (!(zone instanceof P._Zone))
  4742. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4743. $.Zone__current = zone;
  4744. old = t1;
  4745. try {
  4746. t1 = f.call$1(arg);
  4747. return t1;
  4748. } finally {
  4749. $.Zone__current = old;
  4750. }
  4751. },
  4752. _rootRunBinary: function($self, $parent, zone, f, arg1, arg2) {
  4753. var old,
  4754. t1 = $.Zone__current;
  4755. if (t1 === zone)
  4756. return f.call$2(arg1, arg2);
  4757. if (!(zone instanceof P._Zone))
  4758. throw H.wrapException(P.ArgumentError$value(zone, "zone", "Can only run in platform zones"));
  4759. $.Zone__current = zone;
  4760. old = t1;
  4761. try {
  4762. t1 = f.call$2(arg1, arg2);
  4763. return t1;
  4764. } finally {
  4765. $.Zone__current = old;
  4766. }
  4767. },
  4768. _rootRegisterCallback: function($self, $parent, zone, f) {
  4769. return f;
  4770. },
  4771. _rootRegisterUnaryCallback: function($self, $parent, zone, f) {
  4772. return f;
  4773. },
  4774. _rootRegisterBinaryCallback: function($self, $parent, zone, f) {
  4775. return f;
  4776. },
  4777. _rootErrorCallback: function($self, $parent, zone, error, stackTrace) {
  4778. return null;
  4779. },
  4780. _rootScheduleMicrotask: function($self, $parent, zone, f) {
  4781. var t1 = C.C__RootZone !== zone;
  4782. if (t1)
  4783. f = !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()) ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
  4784. P._scheduleAsyncCallback(f);
  4785. },
  4786. _rootCreateTimer: function($self, $parent, zone, duration, callback) {
  4787. callback = zone.bindCallback$1$1(callback, type$.void);
  4788. return P.Timer__createTimer(duration, callback);
  4789. },
  4790. _rootCreatePeriodicTimer: function($self, $parent, zone, duration, callback) {
  4791. var milliseconds;
  4792. callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
  4793. milliseconds = C.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4794. return P._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
  4795. },
  4796. _rootPrint: function($self, $parent, zone, line) {
  4797. H.printString(H.S(line));
  4798. },
  4799. _printToZone: function(line) {
  4800. $.Zone__current.print$1(line);
  4801. },
  4802. _rootFork: function($self, $parent, zone, specification, zoneValues) {
  4803. var valueMap, t1, handleUncaughtError;
  4804. $.printToZone = P.async___printToZone$closure();
  4805. if (specification == null)
  4806. specification = C._ZoneSpecification_ALf;
  4807. if (zoneValues == null)
  4808. valueMap = zone.get$_async$_map();
  4809. else {
  4810. t1 = type$.nullable_Object;
  4811. valueMap = P.HashMap_HashMap$from(zoneValues, t1, t1);
  4812. }
  4813. t1 = new P._CustomZone(zone.get$_run(), zone.get$_runUnary(), zone.get$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_handleUncaughtError(), zone, valueMap);
  4814. handleUncaughtError = specification.handleUncaughtError;
  4815. if (handleUncaughtError != null)
  4816. t1._handleUncaughtError = new P._ZoneFunction(t1, handleUncaughtError);
  4817. return t1;
  4818. },
  4819. runZoned: function(body, zoneValues, $R) {
  4820. P.ArgumentError_checkNotNull(body, "body");
  4821. return P._runZoned(body, zoneValues, null, $R);
  4822. },
  4823. _runZoned: function(body, zoneValues, specification, $R) {
  4824. return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R);
  4825. },
  4826. _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
  4827. this._box_0 = t0;
  4828. },
  4829. _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
  4830. this._box_0 = t0;
  4831. this.div = t1;
  4832. this.span = t2;
  4833. },
  4834. _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
  4835. this.callback = t0;
  4836. },
  4837. _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
  4838. this.callback = t0;
  4839. },
  4840. _TimerImpl: function _TimerImpl(t0) {
  4841. this._once = t0;
  4842. this._handle = null;
  4843. this._tick = 0;
  4844. },
  4845. _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
  4846. this.$this = t0;
  4847. this.callback = t1;
  4848. },
  4849. _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
  4850. var _ = this;
  4851. _.$this = t0;
  4852. _.milliseconds = t1;
  4853. _.start = t2;
  4854. _.callback = t3;
  4855. },
  4856. _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
  4857. this._future = t0;
  4858. this.isSync = false;
  4859. this.$ti = t1;
  4860. },
  4861. _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
  4862. this.bodyFunction = t0;
  4863. },
  4864. _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
  4865. this.bodyFunction = t0;
  4866. },
  4867. _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
  4868. this.$protected = t0;
  4869. },
  4870. _asyncStarHelper_closure: function _asyncStarHelper_closure(t0, t1) {
  4871. this.controller = t0;
  4872. this.bodyFunction = t1;
  4873. },
  4874. _asyncStarHelper_closure0: function _asyncStarHelper_closure0(t0, t1) {
  4875. this.controller = t0;
  4876. this.bodyFunction = t1;
  4877. },
  4878. _AsyncStarStreamController: function _AsyncStarStreamController(t0) {
  4879. var _ = this;
  4880. _.___AsyncStarStreamController_controller = null;
  4881. _.isSuspended = false;
  4882. _.cancelationFuture = null;
  4883. _.$ti = t0;
  4884. },
  4885. _AsyncStarStreamController__resumeBody: function _AsyncStarStreamController__resumeBody(t0) {
  4886. this.body = t0;
  4887. },
  4888. _AsyncStarStreamController__resumeBody_closure: function _AsyncStarStreamController__resumeBody_closure(t0) {
  4889. this.body = t0;
  4890. },
  4891. _AsyncStarStreamController_closure0: function _AsyncStarStreamController_closure0(t0) {
  4892. this._resumeBody = t0;
  4893. },
  4894. _AsyncStarStreamController_closure1: function _AsyncStarStreamController_closure1(t0, t1) {
  4895. this.$this = t0;
  4896. this._resumeBody = t1;
  4897. },
  4898. _AsyncStarStreamController_closure: function _AsyncStarStreamController_closure(t0, t1) {
  4899. this.$this = t0;
  4900. this.body = t1;
  4901. },
  4902. _AsyncStarStreamController__closure: function _AsyncStarStreamController__closure(t0) {
  4903. this.body = t0;
  4904. },
  4905. _IterationMarker: function _IterationMarker(t0, t1) {
  4906. this.value = t0;
  4907. this.state = t1;
  4908. },
  4909. _SyncStarIterator: function _SyncStarIterator(t0) {
  4910. var _ = this;
  4911. _._body = t0;
  4912. _._suspendedBodies = _._nestedIterator = _._async$_current = null;
  4913. },
  4914. _SyncStarIterable: function _SyncStarIterable(t0, t1) {
  4915. this._outerHelper = t0;
  4916. this.$ti = t1;
  4917. },
  4918. _BroadcastStream: function _BroadcastStream(t0, t1) {
  4919. this._async$_controller = t0;
  4920. this.$ti = t1;
  4921. },
  4922. _BroadcastSubscription: function _BroadcastSubscription(t0, t1, t2, t3, t4, t5, t6) {
  4923. var _ = this;
  4924. _._eventState = 0;
  4925. _._async$_previous = _._async$_next = null;
  4926. _._async$_controller = t0;
  4927. _._onData = t1;
  4928. _._onError = t2;
  4929. _._onDone = t3;
  4930. _._zone = t4;
  4931. _._state = t5;
  4932. _._pending = _._cancelFuture = null;
  4933. _.$ti = t6;
  4934. },
  4935. _BroadcastStreamController: function _BroadcastStreamController() {
  4936. },
  4937. _SyncBroadcastStreamController: function _SyncBroadcastStreamController(t0, t1, t2) {
  4938. var _ = this;
  4939. _.onListen = t0;
  4940. _.onCancel = t1;
  4941. _._state = 0;
  4942. _._doneFuture = _._addStreamState = _._lastSubscription = _._firstSubscription = null;
  4943. _.$ti = t2;
  4944. },
  4945. _SyncBroadcastStreamController__sendData_closure: function _SyncBroadcastStreamController__sendData_closure(t0, t1) {
  4946. this.$this = t0;
  4947. this.data = t1;
  4948. },
  4949. _SyncBroadcastStreamController__sendError_closure: function _SyncBroadcastStreamController__sendError_closure(t0, t1, t2) {
  4950. this.$this = t0;
  4951. this.error = t1;
  4952. this.stackTrace = t2;
  4953. },
  4954. _SyncBroadcastStreamController__sendDone_closure: function _SyncBroadcastStreamController__sendDone_closure(t0) {
  4955. this.$this = t0;
  4956. },
  4957. Future_wait__error_set: function Future_wait__error_set(t0) {
  4958. this._box_0 = t0;
  4959. },
  4960. Future_wait__stackTrace_set: function Future_wait__stackTrace_set(t0) {
  4961. this._box_0 = t0;
  4962. },
  4963. Future_wait__error_get: function Future_wait__error_get(t0) {
  4964. this._box_0 = t0;
  4965. },
  4966. Future_wait__stackTrace_get: function Future_wait__stackTrace_get(t0) {
  4967. this._box_0 = t0;
  4968. },
  4969. Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3, t4, t5, t6, t7) {
  4970. var _ = this;
  4971. _._box_0 = t0;
  4972. _.cleanUp = t1;
  4973. _.eagerError = t2;
  4974. _._future = t3;
  4975. _._error_set = t4;
  4976. _._stackTrace_set = t5;
  4977. _._error_get = t6;
  4978. _._stackTrace_get = t7;
  4979. },
  4980. Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5, t6, t7) {
  4981. var _ = this;
  4982. _._box_0 = t0;
  4983. _.pos = t1;
  4984. _._future = t2;
  4985. _.cleanUp = t3;
  4986. _.eagerError = t4;
  4987. _._error_get = t5;
  4988. _._stackTrace_get = t6;
  4989. _.T = t7;
  4990. },
  4991. _Completer: function _Completer() {
  4992. },
  4993. _AsyncCompleter: function _AsyncCompleter(t0, t1) {
  4994. this.future = t0;
  4995. this.$ti = t1;
  4996. },
  4997. _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) {
  4998. var _ = this;
  4999. _._nextListener = null;
  5000. _.result = t0;
  5001. _.state = t1;
  5002. _.callback = t2;
  5003. _.errorCallback = t3;
  5004. _.$ti = t4;
  5005. },
  5006. _Future: function _Future(t0, t1) {
  5007. var _ = this;
  5008. _._state = 0;
  5009. _._zone = t0;
  5010. _._resultOrListeners = null;
  5011. _.$ti = t1;
  5012. },
  5013. _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
  5014. this.$this = t0;
  5015. this.listener = t1;
  5016. },
  5017. _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
  5018. this._box_0 = t0;
  5019. this.$this = t1;
  5020. },
  5021. _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
  5022. this.target = t0;
  5023. },
  5024. _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
  5025. this.target = t0;
  5026. },
  5027. _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
  5028. this.target = t0;
  5029. this.e = t1;
  5030. this.s = t2;
  5031. },
  5032. _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
  5033. this.$this = t0;
  5034. this.value = t1;
  5035. },
  5036. _Future__chainFuture_closure: function _Future__chainFuture_closure(t0, t1) {
  5037. this.$this = t0;
  5038. this.value = t1;
  5039. },
  5040. _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
  5041. this.$this = t0;
  5042. this.error = t1;
  5043. this.stackTrace = t2;
  5044. },
  5045. _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
  5046. this._box_0 = t0;
  5047. this._box_1 = t1;
  5048. this.hasError = t2;
  5049. },
  5050. _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
  5051. this.originalSource = t0;
  5052. },
  5053. _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
  5054. this._box_0 = t0;
  5055. this.sourceResult = t1;
  5056. },
  5057. _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
  5058. this._box_1 = t0;
  5059. this._box_0 = t1;
  5060. },
  5061. _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
  5062. this.callback = t0;
  5063. this.next = null;
  5064. },
  5065. Stream: function Stream() {
  5066. },
  5067. Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
  5068. this.controller = t0;
  5069. this.T = t1;
  5070. },
  5071. Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
  5072. this.controller = t0;
  5073. },
  5074. Stream_length_closure: function Stream_length_closure(t0, t1) {
  5075. this._box_0 = t0;
  5076. this.$this = t1;
  5077. },
  5078. Stream_length_closure0: function Stream_length_closure0(t0, t1) {
  5079. this._box_0 = t0;
  5080. this.future = t1;
  5081. },
  5082. StreamTransformerBase: function StreamTransformerBase() {
  5083. },
  5084. _StreamController: function _StreamController() {
  5085. },
  5086. _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
  5087. this.$this = t0;
  5088. },
  5089. _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
  5090. this.$this = t0;
  5091. },
  5092. _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
  5093. },
  5094. _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
  5095. },
  5096. _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
  5097. var _ = this;
  5098. _._varData = null;
  5099. _._state = 0;
  5100. _._doneFuture = null;
  5101. _.onListen = t0;
  5102. _.onPause = t1;
  5103. _.onResume = t2;
  5104. _.onCancel = t3;
  5105. _.$ti = t4;
  5106. },
  5107. _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
  5108. var _ = this;
  5109. _._varData = null;
  5110. _._state = 0;
  5111. _._doneFuture = null;
  5112. _.onListen = t0;
  5113. _.onPause = t1;
  5114. _.onResume = t2;
  5115. _.onCancel = t3;
  5116. _.$ti = t4;
  5117. },
  5118. _ControllerStream: function _ControllerStream(t0, t1) {
  5119. this._async$_controller = t0;
  5120. this.$ti = t1;
  5121. },
  5122. _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5123. var _ = this;
  5124. _._async$_controller = t0;
  5125. _._onData = t1;
  5126. _._onError = t2;
  5127. _._onDone = t3;
  5128. _._zone = t4;
  5129. _._state = t5;
  5130. _._pending = _._cancelFuture = null;
  5131. _.$ti = t6;
  5132. },
  5133. _AddStreamState: function _AddStreamState() {
  5134. },
  5135. _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
  5136. this.$this = t0;
  5137. },
  5138. _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
  5139. this.varData = t0;
  5140. this.addStreamFuture = t1;
  5141. this.addSubscription = t2;
  5142. },
  5143. _BufferingStreamSubscription: function _BufferingStreamSubscription() {
  5144. },
  5145. _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
  5146. this.$this = t0;
  5147. this.error = t1;
  5148. this.stackTrace = t2;
  5149. },
  5150. _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
  5151. this.$this = t0;
  5152. },
  5153. _StreamImpl: function _StreamImpl() {
  5154. },
  5155. _DelayedEvent: function _DelayedEvent() {
  5156. },
  5157. _DelayedData: function _DelayedData(t0) {
  5158. this.value = t0;
  5159. this.next = null;
  5160. },
  5161. _DelayedError: function _DelayedError(t0, t1) {
  5162. this.error = t0;
  5163. this.stackTrace = t1;
  5164. this.next = null;
  5165. },
  5166. _DelayedDone: function _DelayedDone() {
  5167. },
  5168. _PendingEvents: function _PendingEvents() {
  5169. },
  5170. _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
  5171. this.$this = t0;
  5172. this.dispatch = t1;
  5173. },
  5174. _StreamImplEvents: function _StreamImplEvents() {
  5175. this.lastPendingEvent = this.firstPendingEvent = null;
  5176. this._state = 0;
  5177. },
  5178. _DoneStreamSubscription: function _DoneStreamSubscription(t0, t1, t2) {
  5179. var _ = this;
  5180. _._zone = t0;
  5181. _._state = 0;
  5182. _._onDone = t1;
  5183. _.$ti = t2;
  5184. },
  5185. _StreamIterator: function _StreamIterator(t0) {
  5186. this._subscription = null;
  5187. this._stateData = t0;
  5188. this._isPaused = false;
  5189. },
  5190. _ForwardingStream: function _ForwardingStream() {
  5191. },
  5192. _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5193. var _ = this;
  5194. _._stream = t0;
  5195. _._subscription = null;
  5196. _._onData = t1;
  5197. _._onError = t2;
  5198. _._onDone = t3;
  5199. _._zone = t4;
  5200. _._state = t5;
  5201. _._pending = _._cancelFuture = null;
  5202. _.$ti = t6;
  5203. },
  5204. _ExpandStream: function _ExpandStream(t0, t1, t2) {
  5205. this._expand = t0;
  5206. this._async$_source = t1;
  5207. this.$ti = t2;
  5208. },
  5209. AsyncError: function AsyncError(t0, t1) {
  5210. this.error = t0;
  5211. this.stackTrace = t1;
  5212. },
  5213. _ZoneFunction: function _ZoneFunction(t0, t1) {
  5214. this.zone = t0;
  5215. this.$function = t1;
  5216. },
  5217. _RunNullaryZoneFunction: function _RunNullaryZoneFunction(t0, t1) {
  5218. this.zone = t0;
  5219. this.$function = t1;
  5220. },
  5221. _RunUnaryZoneFunction: function _RunUnaryZoneFunction(t0, t1) {
  5222. this.zone = t0;
  5223. this.$function = t1;
  5224. },
  5225. _RunBinaryZoneFunction: function _RunBinaryZoneFunction(t0, t1) {
  5226. this.zone = t0;
  5227. this.$function = t1;
  5228. },
  5229. _RegisterNullaryZoneFunction: function _RegisterNullaryZoneFunction(t0, t1) {
  5230. this.zone = t0;
  5231. this.$function = t1;
  5232. },
  5233. _RegisterUnaryZoneFunction: function _RegisterUnaryZoneFunction(t0, t1) {
  5234. this.zone = t0;
  5235. this.$function = t1;
  5236. },
  5237. _RegisterBinaryZoneFunction: function _RegisterBinaryZoneFunction(t0, t1) {
  5238. this.zone = t0;
  5239. this.$function = t1;
  5240. },
  5241. _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  5242. var _ = this;
  5243. _.handleUncaughtError = t0;
  5244. _.run = t1;
  5245. _.runUnary = t2;
  5246. _.runBinary = t3;
  5247. _.registerCallback = t4;
  5248. _.registerUnaryCallback = t5;
  5249. _.registerBinaryCallback = t6;
  5250. _.errorCallback = t7;
  5251. _.scheduleMicrotask = t8;
  5252. _.createTimer = t9;
  5253. _.createPeriodicTimer = t10;
  5254. _.print = t11;
  5255. _.fork = t12;
  5256. },
  5257. _ZoneDelegate: function _ZoneDelegate(t0) {
  5258. this._delegationTarget = t0;
  5259. },
  5260. _Zone: function _Zone() {
  5261. },
  5262. _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  5263. var _ = this;
  5264. _._run = t0;
  5265. _._runUnary = t1;
  5266. _._runBinary = t2;
  5267. _._registerCallback = t3;
  5268. _._registerUnaryCallback = t4;
  5269. _._registerBinaryCallback = t5;
  5270. _._errorCallback = t6;
  5271. _._scheduleMicrotask = t7;
  5272. _._createTimer = t8;
  5273. _._createPeriodicTimer = t9;
  5274. _._print = t10;
  5275. _._fork = t11;
  5276. _._handleUncaughtError = t12;
  5277. _._delegateCache = null;
  5278. _.parent = t13;
  5279. _._async$_map = t14;
  5280. },
  5281. _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
  5282. this.$this = t0;
  5283. this.registered = t1;
  5284. this.R = t2;
  5285. },
  5286. _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  5287. var _ = this;
  5288. _.$this = t0;
  5289. _.registered = t1;
  5290. _.T = t2;
  5291. _.R = t3;
  5292. },
  5293. _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
  5294. this.$this = t0;
  5295. this.registered = t1;
  5296. },
  5297. _rootHandleUncaughtError_closure: function _rootHandleUncaughtError_closure(t0, t1) {
  5298. this.error = t0;
  5299. this.stackTrace = t1;
  5300. },
  5301. _RootZone: function _RootZone() {
  5302. },
  5303. _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
  5304. this.$this = t0;
  5305. this.f = t1;
  5306. this.R = t2;
  5307. },
  5308. _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
  5309. this.$this = t0;
  5310. this.f = t1;
  5311. },
  5312. HashMap_HashMap: function($K, $V) {
  5313. return new P._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
  5314. },
  5315. _HashMap__getTableEntry: function(table, key) {
  5316. var entry = table[key];
  5317. return entry === table ? null : entry;
  5318. },
  5319. _HashMap__setTableEntry: function(table, key, value) {
  5320. if (value == null)
  5321. table[key] = table;
  5322. else
  5323. table[key] = value;
  5324. },
  5325. _HashMap__newHashTable: function() {
  5326. var table = Object.create(null);
  5327. P._HashMap__setTableEntry(table, "<non-identifier-key>", table);
  5328. delete table["<non-identifier-key>"];
  5329. return table;
  5330. },
  5331. LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) {
  5332. if (isValidKey == null)
  5333. if (hashCode == null) {
  5334. if (equals == null)
  5335. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5336. hashCode = P.collection___defaultHashCode$closure();
  5337. } else {
  5338. if (P.core__identityHashCode$closure() === hashCode && P.core__identical$closure() === equals)
  5339. return P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6($K, $V);
  5340. if (equals == null)
  5341. equals = P.collection___defaultEquals$closure();
  5342. }
  5343. else {
  5344. if (hashCode == null)
  5345. hashCode = P.collection___defaultHashCode$closure();
  5346. if (equals == null)
  5347. equals = P.collection___defaultEquals$closure();
  5348. }
  5349. return P._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
  5350. },
  5351. LinkedHashMap_LinkedHashMap$_literal: function(keyValuePairs, $K, $V) {
  5352. return H.fillLiteralMap(keyValuePairs, new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
  5353. },
  5354. LinkedHashMap_LinkedHashMap$_empty: function($K, $V) {
  5355. return new H.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5356. },
  5357. _LinkedIdentityHashMap__LinkedIdentityHashMap$es6: function($K, $V) {
  5358. return new P._LinkedIdentityHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedIdentityHashMap<1,2>"));
  5359. },
  5360. _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
  5361. var t1 = validKey != null ? validKey : new P._LinkedCustomHashMap_closure($K);
  5362. return new P._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
  5363. },
  5364. LinkedHashSet_LinkedHashSet: function($E) {
  5365. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5366. },
  5367. LinkedHashSet_LinkedHashSet$_empty: function($E) {
  5368. return new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5369. },
  5370. LinkedHashSet_LinkedHashSet$_literal: function(values, $E) {
  5371. return H.fillLiteralSet(values, new P._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
  5372. },
  5373. _LinkedHashSet__newHashTable: function() {
  5374. var table = Object.create(null);
  5375. table["<non-identifier-key>"] = table;
  5376. delete table["<non-identifier-key>"];
  5377. return table;
  5378. },
  5379. _LinkedHashSetIterator$: function(_set, _modifications) {
  5380. var t1 = new P._LinkedHashSetIterator(_set, _modifications);
  5381. t1._collection$_cell = _set._collection$_first;
  5382. return t1;
  5383. },
  5384. UnmodifiableListView$: function(source, $E) {
  5385. return new P.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
  5386. },
  5387. _defaultEquals: function(a, b) {
  5388. return J.$eq$(a, b);
  5389. },
  5390. _defaultHashCode: function(a) {
  5391. return J.get$hashCode$(a);
  5392. },
  5393. HashMap_HashMap$from: function(other, $K, $V) {
  5394. var result = P.HashMap_HashMap($K, $V);
  5395. other.forEach$1(0, new P.HashMap_HashMap$from_closure(result, $K, $V));
  5396. return result;
  5397. },
  5398. IterableBase_iterableToShortString: function(iterable, leftDelimiter, rightDelimiter) {
  5399. var parts, t1;
  5400. if (P._isToStringVisiting(iterable)) {
  5401. if (leftDelimiter === "(" && rightDelimiter === ")")
  5402. return "(...)";
  5403. return leftDelimiter + "..." + rightDelimiter;
  5404. }
  5405. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  5406. $._toStringVisiting.push(iterable);
  5407. try {
  5408. P._iterablePartsToStrings(iterable, parts);
  5409. } finally {
  5410. $._toStringVisiting.pop();
  5411. }
  5412. t1 = P.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
  5413. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5414. },
  5415. IterableBase_iterableToFullString: function(iterable, leftDelimiter, rightDelimiter) {
  5416. var buffer, t1;
  5417. if (P._isToStringVisiting(iterable))
  5418. return leftDelimiter + "..." + rightDelimiter;
  5419. buffer = new P.StringBuffer(leftDelimiter);
  5420. $._toStringVisiting.push(iterable);
  5421. try {
  5422. t1 = buffer;
  5423. t1._contents = P.StringBuffer__writeAll(t1._contents, iterable, ", ");
  5424. } finally {
  5425. $._toStringVisiting.pop();
  5426. }
  5427. buffer._contents += rightDelimiter;
  5428. t1 = buffer._contents;
  5429. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5430. },
  5431. _isToStringVisiting: function(o) {
  5432. var t1, i;
  5433. for (t1 = $._toStringVisiting.length, i = 0; i < t1; ++i)
  5434. if (o === $._toStringVisiting[i])
  5435. return true;
  5436. return false;
  5437. },
  5438. _iterablePartsToStrings: function(iterable, parts) {
  5439. var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
  5440. it = iterable.get$iterator(iterable),
  5441. $length = 0, count = 0;
  5442. while (true) {
  5443. if (!($length < 80 || count < 3))
  5444. break;
  5445. if (!it.moveNext$0())
  5446. return;
  5447. next = H.S(it.get$current(it));
  5448. parts.push(next);
  5449. $length += next.length + 2;
  5450. ++count;
  5451. }
  5452. if (!it.moveNext$0()) {
  5453. if (count <= 5)
  5454. return;
  5455. ultimateString = parts.pop();
  5456. penultimateString = parts.pop();
  5457. } else {
  5458. penultimate = it.get$current(it);
  5459. ++count;
  5460. if (!it.moveNext$0()) {
  5461. if (count <= 4) {
  5462. parts.push(H.S(penultimate));
  5463. return;
  5464. }
  5465. ultimateString = H.S(penultimate);
  5466. penultimateString = parts.pop();
  5467. $length += ultimateString.length + 2;
  5468. } else {
  5469. ultimate = it.get$current(it);
  5470. ++count;
  5471. for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
  5472. ultimate0 = it.get$current(it);
  5473. ++count;
  5474. if (count > 100) {
  5475. while (true) {
  5476. if (!($length > 75 && count > 3))
  5477. break;
  5478. $length -= parts.pop().length + 2;
  5479. --count;
  5480. }
  5481. parts.push("...");
  5482. return;
  5483. }
  5484. }
  5485. penultimateString = H.S(penultimate);
  5486. ultimateString = H.S(ultimate);
  5487. $length += ultimateString.length + penultimateString.length + 4;
  5488. }
  5489. }
  5490. if (count > parts.length + 2) {
  5491. $length += 5;
  5492. elision = "...";
  5493. } else
  5494. elision = null;
  5495. while (true) {
  5496. if (!($length > 80 && parts.length > 3))
  5497. break;
  5498. $length -= parts.pop().length + 2;
  5499. if (elision == null) {
  5500. $length += 5;
  5501. elision = "...";
  5502. }
  5503. }
  5504. if (elision != null)
  5505. parts.push(elision);
  5506. parts.push(penultimateString);
  5507. parts.push(ultimateString);
  5508. },
  5509. LinkedHashMap_LinkedHashMap$from: function(other, $K, $V) {
  5510. var result = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5511. other.forEach$1(0, new P.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
  5512. return result;
  5513. },
  5514. LinkedHashMap_LinkedHashMap$of: function(other, $K, $V) {
  5515. var t1 = P.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5516. t1.addAll$1(0, other);
  5517. return t1;
  5518. },
  5519. LinkedHashSet_LinkedHashSet$from: function(elements, $E) {
  5520. var t1, _i,
  5521. result = P.LinkedHashSet_LinkedHashSet($E);
  5522. for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, H.throwConcurrentModificationError)(elements), ++_i)
  5523. result.add$1(0, $E._as(elements[_i]));
  5524. return result;
  5525. },
  5526. LinkedHashSet_LinkedHashSet$of: function(elements, $E) {
  5527. var t1 = P.LinkedHashSet_LinkedHashSet($E);
  5528. t1.addAll$1(0, elements);
  5529. return t1;
  5530. },
  5531. ListMixin__compareAny: function(a, b) {
  5532. var t1 = type$.Comparable_dynamic;
  5533. return J.compareTo$1$ns(t1._as(a), t1._as(b));
  5534. },
  5535. MapBase_mapToString: function(m) {
  5536. var result, t1 = {};
  5537. if (P._isToStringVisiting(m))
  5538. return "{...}";
  5539. result = new P.StringBuffer("");
  5540. try {
  5541. $._toStringVisiting.push(m);
  5542. result._contents += "{";
  5543. t1.first = true;
  5544. m.forEach$1(0, new P.MapBase_mapToString_closure(t1, result));
  5545. result._contents += "}";
  5546. } finally {
  5547. $._toStringVisiting.pop();
  5548. }
  5549. t1 = result._contents;
  5550. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5551. },
  5552. MapBase__fillMapWithIterables: function(map, keys, values) {
  5553. var keyIterator = keys.get$iterator(keys),
  5554. valueIterator = values.get$iterator(values),
  5555. hasNextKey = keyIterator.moveNext$0(),
  5556. hasNextValue = valueIterator.moveNext$0();
  5557. while (true) {
  5558. if (!(hasNextKey && hasNextValue))
  5559. break;
  5560. map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
  5561. hasNextKey = keyIterator.moveNext$0();
  5562. hasNextValue = valueIterator.moveNext$0();
  5563. }
  5564. if (hasNextKey || hasNextValue)
  5565. throw H.wrapException(P.ArgumentError$("Iterables do not have same length."));
  5566. },
  5567. ListQueue$: function($E) {
  5568. return new P.ListQueue(P.List_List$filled(P.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
  5569. },
  5570. ListQueue__calculateCapacity: function(initialCapacity) {
  5571. return 8;
  5572. },
  5573. ListQueue_ListQueue$of: function(elements, $E) {
  5574. var t1 = P.ListQueue$($E);
  5575. t1.addAll$1(0, elements);
  5576. return t1;
  5577. },
  5578. ListQueue__nextPowerOf2: function(number) {
  5579. var nextNumber;
  5580. number = (number << 1 >>> 0) - 1;
  5581. for (; true; number = nextNumber) {
  5582. nextNumber = (number & number - 1) >>> 0;
  5583. if (nextNumber === 0)
  5584. return number;
  5585. }
  5586. },
  5587. _ListQueueIterator$: function(queue) {
  5588. return new P._ListQueueIterator(queue, queue._collection$_tail, queue._modificationCount, queue._collection$_head);
  5589. },
  5590. _HashMap: function _HashMap(t0) {
  5591. var _ = this;
  5592. _._collection$_length = 0;
  5593. _._keys = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5594. _.$ti = t0;
  5595. },
  5596. _HashMap_values_closure: function _HashMap_values_closure(t0) {
  5597. this.$this = t0;
  5598. },
  5599. _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
  5600. this.$this = t0;
  5601. },
  5602. _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
  5603. this._collection$_map = t0;
  5604. this.$ti = t1;
  5605. },
  5606. _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1) {
  5607. var _ = this;
  5608. _._collection$_map = t0;
  5609. _._keys = t1;
  5610. _._offset = 0;
  5611. _._collection$_current = null;
  5612. },
  5613. _LinkedIdentityHashMap: function _LinkedIdentityHashMap(t0) {
  5614. var _ = this;
  5615. _.__js_helper$_length = 0;
  5616. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5617. _._modifications = 0;
  5618. _.$ti = t0;
  5619. },
  5620. _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
  5621. var _ = this;
  5622. _._equals = t0;
  5623. _._hashCode = t1;
  5624. _._validKey = t2;
  5625. _.__js_helper$_length = 0;
  5626. _._last = _._first = _.__js_helper$_rest = _._nums = _._strings = null;
  5627. _._modifications = 0;
  5628. _.$ti = t3;
  5629. },
  5630. _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
  5631. this.K = t0;
  5632. },
  5633. _LinkedHashSet: function _LinkedHashSet(t0) {
  5634. var _ = this;
  5635. _._collection$_length = 0;
  5636. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5637. _._collection$_modifications = 0;
  5638. _.$ti = t0;
  5639. },
  5640. _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
  5641. var _ = this;
  5642. _._collection$_length = 0;
  5643. _._collection$_last = _._collection$_first = _._collection$_rest = _._collection$_nums = _._collection$_strings = null;
  5644. _._collection$_modifications = 0;
  5645. _.$ti = t0;
  5646. },
  5647. _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
  5648. this._element = t0;
  5649. this._collection$_previous = this._collection$_next = null;
  5650. },
  5651. _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1) {
  5652. var _ = this;
  5653. _._set = t0;
  5654. _._collection$_modifications = t1;
  5655. _._collection$_current = _._collection$_cell = null;
  5656. },
  5657. UnmodifiableListView: function UnmodifiableListView(t0, t1) {
  5658. this._collection$_source = t0;
  5659. this.$ti = t1;
  5660. },
  5661. HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
  5662. this.result = t0;
  5663. this.K = t1;
  5664. this.V = t2;
  5665. },
  5666. IterableBase: function IterableBase() {
  5667. },
  5668. LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
  5669. this.result = t0;
  5670. this.K = t1;
  5671. this.V = t2;
  5672. },
  5673. ListBase: function ListBase() {
  5674. },
  5675. ListMixin: function ListMixin() {
  5676. },
  5677. MapBase: function MapBase() {
  5678. },
  5679. MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
  5680. this._box_0 = t0;
  5681. this.result = t1;
  5682. },
  5683. MapMixin: function MapMixin() {
  5684. },
  5685. MapMixin_entries_closure: function MapMixin_entries_closure(t0) {
  5686. this.$this = t0;
  5687. },
  5688. UnmodifiableMapBase: function UnmodifiableMapBase() {
  5689. },
  5690. _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
  5691. this._collection$_map = t0;
  5692. this.$ti = t1;
  5693. },
  5694. _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1) {
  5695. this._keys = t0;
  5696. this._collection$_map = t1;
  5697. this._collection$_current = null;
  5698. },
  5699. _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
  5700. },
  5701. MapView: function MapView() {
  5702. },
  5703. UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
  5704. this._collection$_map = t0;
  5705. this.$ti = t1;
  5706. },
  5707. ListQueue: function ListQueue(t0, t1) {
  5708. var _ = this;
  5709. _._collection$_table = t0;
  5710. _._modificationCount = _._collection$_tail = _._collection$_head = 0;
  5711. _.$ti = t1;
  5712. },
  5713. _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3) {
  5714. var _ = this;
  5715. _._queue = t0;
  5716. _._collection$_end = t1;
  5717. _._modificationCount = t2;
  5718. _._collection$_position = t3;
  5719. _._collection$_current = null;
  5720. },
  5721. _SetBase: function _SetBase() {
  5722. },
  5723. _UnmodifiableSet: function _UnmodifiableSet(t0, t1) {
  5724. this._collection$_map = t0;
  5725. this.$ti = t1;
  5726. },
  5727. _ListBase_Object_ListMixin: function _ListBase_Object_ListMixin() {
  5728. },
  5729. _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
  5730. },
  5731. Utf8Decoder__convertIntercepted: function(allowMalformed, codeUnits, start, end) {
  5732. var casted, result;
  5733. if (codeUnits instanceof Uint8Array) {
  5734. casted = codeUnits;
  5735. end = casted.length;
  5736. if (end - start < 15)
  5737. return null;
  5738. result = P.Utf8Decoder__convertInterceptedUint8List(allowMalformed, casted, start, end);
  5739. if (result != null && allowMalformed)
  5740. if (result.indexOf("\ufffd") >= 0)
  5741. return null;
  5742. return result;
  5743. }
  5744. return null;
  5745. },
  5746. Utf8Decoder__convertInterceptedUint8List: function(allowMalformed, codeUnits, start, end) {
  5747. var decoder = allowMalformed ? $.$get$Utf8Decoder__decoderNonfatal() : $.$get$Utf8Decoder__decoder();
  5748. if (decoder == null)
  5749. return null;
  5750. if (0 === start && end === codeUnits.length)
  5751. return P.Utf8Decoder__useTextDecoder(decoder, codeUnits);
  5752. return P.Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, P.RangeError_checkValidRange(start, end, codeUnits.length)));
  5753. },
  5754. Utf8Decoder__useTextDecoder: function(decoder, codeUnits) {
  5755. var t1, exception;
  5756. try {
  5757. t1 = decoder.decode(codeUnits);
  5758. return t1;
  5759. } catch (exception) {
  5760. H.unwrapException(exception);
  5761. }
  5762. return null;
  5763. },
  5764. Base64Codec__checkPadding: function(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
  5765. if (C.JSInt_methods.$mod($length, 4) !== 0)
  5766. throw H.wrapException(P.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
  5767. if (firstPadding + paddingCount !== $length)
  5768. throw H.wrapException(P.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
  5769. if (paddingCount > 2)
  5770. throw H.wrapException(P.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
  5771. },
  5772. _Base64Encoder_encodeChunk: function(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
  5773. var t1, i, byteOr, byte, outputIndex0, outputIndex1,
  5774. bits = state >>> 2,
  5775. expectedChars = 3 - (state & 3);
  5776. for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
  5777. byte = t1.$index(bytes, i);
  5778. byteOr = (byteOr | byte) >>> 0;
  5779. bits = (bits << 8 | byte) & 16777215;
  5780. --expectedChars;
  5781. if (expectedChars === 0) {
  5782. outputIndex0 = outputIndex + 1;
  5783. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 18 & 63);
  5784. outputIndex = outputIndex0 + 1;
  5785. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 12 & 63);
  5786. outputIndex0 = outputIndex + 1;
  5787. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 6 & 63);
  5788. outputIndex = outputIndex0 + 1;
  5789. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits & 63);
  5790. bits = 0;
  5791. expectedChars = 3;
  5792. }
  5793. }
  5794. if (byteOr >= 0 && byteOr <= 255) {
  5795. if (isLast && expectedChars < 3) {
  5796. outputIndex0 = outputIndex + 1;
  5797. outputIndex1 = outputIndex0 + 1;
  5798. if (3 - expectedChars === 1) {
  5799. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 2 & 63);
  5800. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 4 & 63);
  5801. output[outputIndex1] = 61;
  5802. output[outputIndex1 + 1] = 61;
  5803. } else {
  5804. output[outputIndex] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 10 & 63);
  5805. output[outputIndex0] = C.JSString_methods._codeUnitAt$1(alphabet, bits >>> 4 & 63);
  5806. output[outputIndex1] = C.JSString_methods._codeUnitAt$1(alphabet, bits << 2 & 63);
  5807. output[outputIndex1 + 1] = 61;
  5808. }
  5809. return 0;
  5810. }
  5811. return (bits << 2 | 3 - expectedChars) >>> 0;
  5812. }
  5813. for (i = start; i < end;) {
  5814. byte = t1.$index(bytes, i);
  5815. if (byte < 0 || byte > 255)
  5816. break;
  5817. ++i;
  5818. }
  5819. throw H.wrapException(P.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
  5820. },
  5821. JsonUnsupportedObjectError$: function(unsupportedObject, cause, partialResult) {
  5822. return new P.JsonUnsupportedObjectError(unsupportedObject, cause);
  5823. },
  5824. _defaultToEncodable: function(object) {
  5825. return object.toJson$0();
  5826. },
  5827. _JsonStringStringifier$: function(_sink, _toEncodable) {
  5828. return new P._JsonStringStringifier(_sink, [], P.convert___defaultToEncodable$closure());
  5829. },
  5830. _JsonStringStringifier_stringify: function(object, toEncodable, indent) {
  5831. var t1,
  5832. output = new P.StringBuffer("");
  5833. P._JsonStringStringifier_printOn(object, output, toEncodable, indent);
  5834. t1 = output._contents;
  5835. return t1.charCodeAt(0) == 0 ? t1 : t1;
  5836. },
  5837. _JsonStringStringifier_printOn: function(object, output, toEncodable, indent) {
  5838. var stringifier = P._JsonStringStringifier$(output, toEncodable);
  5839. stringifier.writeObject$1(object);
  5840. },
  5841. _Utf8Decoder_errorDescription: function(state) {
  5842. switch (state) {
  5843. case 65:
  5844. return "Missing extension byte";
  5845. case 67:
  5846. return "Unexpected extension byte";
  5847. case 69:
  5848. return "Invalid UTF-8 byte";
  5849. case 71:
  5850. return "Overlong encoding";
  5851. case 73:
  5852. return "Out of unicode range";
  5853. case 75:
  5854. return "Encoded surrogate";
  5855. case 77:
  5856. return "Unfinished UTF-8 octet sequence";
  5857. default:
  5858. return "";
  5859. }
  5860. },
  5861. _Utf8Decoder__makeUint8List: function(codeUnits, start, end) {
  5862. var t1, i, b,
  5863. $length = end - start,
  5864. bytes = new Uint8Array($length);
  5865. for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
  5866. b = t1.$index(codeUnits, start + i);
  5867. bytes[i] = (b & 4294967040) >>> 0 !== 0 ? 255 : b;
  5868. }
  5869. return bytes;
  5870. },
  5871. Utf8Decoder_closure: function Utf8Decoder_closure() {
  5872. },
  5873. Utf8Decoder_closure0: function Utf8Decoder_closure0() {
  5874. },
  5875. AsciiCodec: function AsciiCodec() {
  5876. },
  5877. _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
  5878. },
  5879. AsciiEncoder: function AsciiEncoder(t0) {
  5880. this._subsetMask = t0;
  5881. },
  5882. Base64Codec: function Base64Codec() {
  5883. },
  5884. Base64Encoder: function Base64Encoder() {
  5885. },
  5886. _Base64Encoder: function _Base64Encoder(t0) {
  5887. this._convert$_state = 0;
  5888. this._alphabet = t0;
  5889. },
  5890. _BufferCachingBase64Encoder: function _BufferCachingBase64Encoder(t0) {
  5891. this.bufferCache = null;
  5892. this._convert$_state = 0;
  5893. this._alphabet = t0;
  5894. },
  5895. _Base64EncoderSink: function _Base64EncoderSink() {
  5896. },
  5897. _AsciiBase64EncoderSink: function _AsciiBase64EncoderSink(t0, t1) {
  5898. this._sink = t0;
  5899. this._encoder = t1;
  5900. },
  5901. _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
  5902. this._sink = t0;
  5903. this._encoder = t1;
  5904. },
  5905. ByteConversionSink: function ByteConversionSink() {
  5906. },
  5907. ByteConversionSinkBase: function ByteConversionSinkBase() {
  5908. },
  5909. ChunkedConversionSink: function ChunkedConversionSink() {
  5910. },
  5911. Codec: function Codec() {
  5912. },
  5913. Converter: function Converter() {
  5914. },
  5915. Encoding: function Encoding() {
  5916. },
  5917. JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
  5918. this.unsupportedObject = t0;
  5919. this.cause = t1;
  5920. },
  5921. JsonCyclicError: function JsonCyclicError(t0, t1) {
  5922. this.unsupportedObject = t0;
  5923. this.cause = t1;
  5924. },
  5925. JsonCodec: function JsonCodec() {
  5926. },
  5927. JsonEncoder: function JsonEncoder(t0) {
  5928. this._toEncodable = t0;
  5929. },
  5930. _JsonStringifier: function _JsonStringifier() {
  5931. },
  5932. _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
  5933. this._box_0 = t0;
  5934. this.keyValueList = t1;
  5935. },
  5936. _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
  5937. this._sink = t0;
  5938. this._seen = t1;
  5939. this._toEncodable = t2;
  5940. },
  5941. StringConversionSinkBase: function StringConversionSinkBase() {
  5942. },
  5943. StringConversionSinkMixin: function StringConversionSinkMixin() {
  5944. },
  5945. _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
  5946. this._stringSink = t0;
  5947. },
  5948. _StringCallbackSink: function _StringCallbackSink(t0, t1) {
  5949. this._convert$_callback = t0;
  5950. this._stringSink = t1;
  5951. },
  5952. _StringAdapterSink: function _StringAdapterSink(t0) {
  5953. this._sink = t0;
  5954. },
  5955. _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
  5956. this._decoder = t0;
  5957. this._sink = t1;
  5958. this._stringSink = t2;
  5959. },
  5960. _Utf8ConversionSink: function _Utf8ConversionSink(t0, t1, t2) {
  5961. this._decoder = t0;
  5962. this._chunkedSink = t1;
  5963. this._convert$_buffer = t2;
  5964. },
  5965. Utf8Codec: function Utf8Codec() {
  5966. },
  5967. Utf8Encoder: function Utf8Encoder() {
  5968. },
  5969. _Utf8Encoder: function _Utf8Encoder(t0) {
  5970. this._bufferIndex = this._carry = 0;
  5971. this._convert$_buffer = t0;
  5972. },
  5973. Utf8Decoder: function Utf8Decoder(t0) {
  5974. this._allowMalformed = t0;
  5975. },
  5976. _Utf8Decoder: function _Utf8Decoder(t0) {
  5977. this.allowMalformed = t0;
  5978. this._convert$_state = 16;
  5979. this._charOrIndex = 0;
  5980. },
  5981. identityHashCode: function(object) {
  5982. return H.objectHashCode(object);
  5983. },
  5984. Function_apply: function($function, positionalArguments) {
  5985. return H.Primitives_applyFunction($function, positionalArguments, null);
  5986. },
  5987. int_parse: function(source, radix) {
  5988. var value = H.Primitives_parseInt(source, radix);
  5989. if (value != null)
  5990. return value;
  5991. throw H.wrapException(P.FormatException$(source, null, null));
  5992. },
  5993. double_parse: function(source) {
  5994. var value = H.Primitives_parseDouble(source);
  5995. if (value != null)
  5996. return value;
  5997. throw H.wrapException(P.FormatException$("Invalid double", source, null));
  5998. },
  5999. Error__objectToString: function(object) {
  6000. if (object instanceof H.Closure)
  6001. return object.toString$0(0);
  6002. return "Instance of '" + H.S(H.Primitives_objectTypeName(object)) + "'";
  6003. },
  6004. List_List$filled: function($length, fill, growable, $E) {
  6005. var i,
  6006. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  6007. if ($length !== 0 && fill != null)
  6008. for (i = 0; i < result.length; ++i)
  6009. result[i] = fill;
  6010. return result;
  6011. },
  6012. List_List$from: function(elements, growable, $E) {
  6013. var t1,
  6014. list = H.setRuntimeTypeInfo([], $E._eval$1("JSArray<0>"));
  6015. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  6016. list.push(t1.get$current(t1));
  6017. if (growable)
  6018. return list;
  6019. return J.JSArray_markFixedList(list);
  6020. },
  6021. List_List$generate: function($length, generator, growable, $E) {
  6022. var i,
  6023. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  6024. for (i = 0; i < $length; ++i)
  6025. result[i] = generator.call$1(i);
  6026. return result;
  6027. },
  6028. List_List$unmodifiable: function(elements, $E) {
  6029. return J.JSArray_markUnmodifiableList(P.List_List$from(elements, false, $E));
  6030. },
  6031. String_String$fromCharCodes: function(charCodes, start, end) {
  6032. var array, len;
  6033. if (Array.isArray(charCodes)) {
  6034. array = charCodes;
  6035. len = array.length;
  6036. end = P.RangeError_checkValidRange(start, end, len);
  6037. return H.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
  6038. }
  6039. if (type$.NativeUint8List._is(charCodes))
  6040. return H.Primitives_stringFromNativeUint8List(charCodes, start, P.RangeError_checkValidRange(start, end, charCodes.length));
  6041. return P.String__stringFromIterable(charCodes, start, end);
  6042. },
  6043. String_String$fromCharCode: function(charCode) {
  6044. return H.Primitives_stringFromCharCode(charCode);
  6045. },
  6046. String__stringFromIterable: function(charCodes, start, end) {
  6047. var t1, it, i, list, _null = null;
  6048. if (start < 0)
  6049. throw H.wrapException(P.RangeError$range(start, 0, J.get$length$asx(charCodes), _null, _null));
  6050. t1 = end == null;
  6051. if (!t1 && end < start)
  6052. throw H.wrapException(P.RangeError$range(end, start, J.get$length$asx(charCodes), _null, _null));
  6053. it = J.get$iterator$ax(charCodes);
  6054. for (i = 0; i < start; ++i)
  6055. if (!it.moveNext$0())
  6056. throw H.wrapException(P.RangeError$range(start, 0, i, _null, _null));
  6057. list = [];
  6058. if (t1)
  6059. for (; it.moveNext$0();)
  6060. list.push(it.get$current(it));
  6061. else
  6062. for (i = start; i < end; ++i) {
  6063. if (!it.moveNext$0())
  6064. throw H.wrapException(P.RangeError$range(end, start, i, _null, _null));
  6065. list.push(it.get$current(it));
  6066. }
  6067. return H.Primitives_stringFromCharCodes(list);
  6068. },
  6069. RegExp_RegExp: function(source, multiLine) {
  6070. return new H.JSSyntaxRegExp(source, H.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
  6071. },
  6072. identical: function(a, b) {
  6073. return a == null ? b == null : a === b;
  6074. },
  6075. StringBuffer__writeAll: function(string, objects, separator) {
  6076. var iterator = J.get$iterator$ax(objects);
  6077. if (!iterator.moveNext$0())
  6078. return string;
  6079. if (separator.length === 0) {
  6080. do
  6081. string += H.S(iterator.get$current(iterator));
  6082. while (iterator.moveNext$0());
  6083. } else {
  6084. string += H.S(iterator.get$current(iterator));
  6085. for (; iterator.moveNext$0();)
  6086. string = string + separator + H.S(iterator.get$current(iterator));
  6087. }
  6088. return string;
  6089. },
  6090. NoSuchMethodError$: function(receiver, memberName, positionalArguments, namedArguments) {
  6091. return new P.NoSuchMethodError(receiver, memberName, positionalArguments, namedArguments);
  6092. },
  6093. Uri_base: function() {
  6094. var uri = H.Primitives_currentUri();
  6095. if (uri != null)
  6096. return P.Uri_parse(uri);
  6097. throw H.wrapException(P.UnsupportedError$("'Uri.base' is not supported"));
  6098. },
  6099. _Uri__uriEncode: function(canonicalTable, text, encoding, spaceToPlus) {
  6100. var t1, bytes, i, t2, byte,
  6101. _s16_ = "0123456789ABCDEF";
  6102. if (encoding === C.C_Utf8Codec) {
  6103. t1 = $.$get$_Uri__needsNoEncoding()._nativeRegExp;
  6104. if (typeof text != "string")
  6105. H.throwExpression(H.argumentErrorValue(text));
  6106. t1 = t1.test(text);
  6107. } else
  6108. t1 = false;
  6109. if (t1)
  6110. return text;
  6111. bytes = encoding.get$encoder().convert$1(text);
  6112. for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
  6113. byte = bytes[i];
  6114. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
  6115. t2 += H.Primitives_stringFromCharCode(byte);
  6116. else
  6117. t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
  6118. }
  6119. return t2.charCodeAt(0) == 0 ? t2 : t2;
  6120. },
  6121. StackTrace_current: function() {
  6122. var stackTrace, exception;
  6123. if ($.$get$_hasErrorStackProperty())
  6124. return H.getTraceFromException(new Error());
  6125. try {
  6126. throw H.wrapException("");
  6127. } catch (exception) {
  6128. H.unwrapException(exception);
  6129. stackTrace = H.getTraceFromException(exception);
  6130. return stackTrace;
  6131. }
  6132. },
  6133. DateTime$_withValue: function(_value, isUtc) {
  6134. var t1;
  6135. if (Math.abs(_value) <= 864e13)
  6136. t1 = false;
  6137. else
  6138. t1 = true;
  6139. if (t1)
  6140. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + _value));
  6141. P.ArgumentError_checkNotNull(false, "isUtc");
  6142. return new P.DateTime(_value, false);
  6143. },
  6144. DateTime__fourDigits: function(n) {
  6145. var absN = Math.abs(n),
  6146. sign = n < 0 ? "-" : "";
  6147. if (absN >= 1000)
  6148. return "" + n;
  6149. if (absN >= 100)
  6150. return sign + "0" + absN;
  6151. if (absN >= 10)
  6152. return sign + "00" + absN;
  6153. return sign + "000" + absN;
  6154. },
  6155. DateTime__threeDigits: function(n) {
  6156. if (n >= 100)
  6157. return "" + n;
  6158. if (n >= 10)
  6159. return "0" + n;
  6160. return "00" + n;
  6161. },
  6162. DateTime__twoDigits: function(n) {
  6163. if (n >= 10)
  6164. return "" + n;
  6165. return "0" + n;
  6166. },
  6167. Duration$: function(milliseconds) {
  6168. return new P.Duration(1000 * milliseconds);
  6169. },
  6170. Error_safeToString: function(object) {
  6171. if (typeof object == "number" || H._isBool(object) || null == object)
  6172. return J.toString$0$(object);
  6173. if (typeof object == "string")
  6174. return JSON.stringify(object);
  6175. return P.Error__objectToString(object);
  6176. },
  6177. AssertionError$: function(message) {
  6178. return new P.AssertionError(message);
  6179. },
  6180. ArgumentError$: function(message) {
  6181. return new P.ArgumentError(false, null, null, message);
  6182. },
  6183. ArgumentError$value: function(value, $name, message) {
  6184. return new P.ArgumentError(true, value, $name, message);
  6185. },
  6186. ArgumentError$notNull: function($name) {
  6187. return new P.ArgumentError(false, null, $name, "Must not be null");
  6188. },
  6189. ArgumentError_checkNotNull: function(argument, $name) {
  6190. if (argument == null)
  6191. throw H.wrapException(P.ArgumentError$notNull($name));
  6192. return argument;
  6193. },
  6194. RangeError$: function(message) {
  6195. var _null = null;
  6196. return new P.RangeError(_null, _null, false, _null, _null, message);
  6197. },
  6198. RangeError$value: function(value, $name, message) {
  6199. return new P.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
  6200. },
  6201. RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
  6202. return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
  6203. },
  6204. RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
  6205. if (value < minValue || value > maxValue)
  6206. throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, null));
  6207. return value;
  6208. },
  6209. RangeError_checkValidIndex: function(index, indexable, $name) {
  6210. var $length = indexable.get$length(indexable);
  6211. if (0 > index || index >= $length)
  6212. throw H.wrapException(P.IndexError$(index, indexable, $name == null ? "index" : $name, null, $length));
  6213. return index;
  6214. },
  6215. RangeError_checkValidRange: function(start, end, $length) {
  6216. if (0 > start || start > $length)
  6217. throw H.wrapException(P.RangeError$range(start, 0, $length, "start", null));
  6218. if (end != null) {
  6219. if (start > end || end > $length)
  6220. throw H.wrapException(P.RangeError$range(end, start, $length, "end", null));
  6221. return end;
  6222. }
  6223. return $length;
  6224. },
  6225. RangeError_checkNotNegative: function(value, $name) {
  6226. if (value < 0)
  6227. throw H.wrapException(P.RangeError$range(value, 0, null, $name, null));
  6228. return value;
  6229. },
  6230. IndexError$: function(invalidValue, indexable, $name, message, $length) {
  6231. var t1 = $length == null ? J.get$length$asx(indexable) : $length;
  6232. return new P.IndexError(t1, true, invalidValue, $name, "Index out of range");
  6233. },
  6234. UnsupportedError$: function(message) {
  6235. return new P.UnsupportedError(message);
  6236. },
  6237. UnimplementedError$: function(message) {
  6238. return new P.UnimplementedError(message);
  6239. },
  6240. StateError$: function(message) {
  6241. return new P.StateError(message);
  6242. },
  6243. ConcurrentModificationError$: function(modifiedObject) {
  6244. return new P.ConcurrentModificationError(modifiedObject);
  6245. },
  6246. FormatException$: function(message, source, offset) {
  6247. return new P.FormatException(message, source, offset);
  6248. },
  6249. Iterable_Iterable$generate: function(count, generator, $E) {
  6250. if (count <= 0)
  6251. return new H.EmptyIterable($E._eval$1("EmptyIterable<0>"));
  6252. return new P._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
  6253. },
  6254. print: function(object) {
  6255. var line = J.toString$0$(object),
  6256. toZone = $.printToZone;
  6257. if (toZone == null)
  6258. H.printString(H.S(line));
  6259. else
  6260. toZone.call$1(line);
  6261. },
  6262. Set_castFrom: function(source, newSet, $S, $T) {
  6263. return new H.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
  6264. },
  6265. _combineSurrogatePair: function(start, end) {
  6266. return 65536 + ((start & 1023) << 10) + (end & 1023);
  6267. },
  6268. RuneIterator$: function(string) {
  6269. return new P.RuneIterator(string);
  6270. },
  6271. Uri_Uri$dataFromString: function($content, encoding, mimeType) {
  6272. var encodingName, t1,
  6273. buffer = new P.StringBuffer(""),
  6274. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  6275. if (encoding == null)
  6276. encodingName = null;
  6277. else
  6278. encodingName = "utf-8";
  6279. if (encoding == null)
  6280. encoding = C.C_AsciiCodec;
  6281. P.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
  6282. indices.push(buffer._contents.length);
  6283. buffer._contents += ",";
  6284. P.UriData__uriEncodeBytes(C.List_CVk, encoding.encode$1($content), buffer);
  6285. t1 = buffer._contents;
  6286. return new P.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
  6287. },
  6288. Uri_parse: function(uri) {
  6289. var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null,
  6290. end = uri.length;
  6291. if (end >= 5) {
  6292. delta = ((J._codeUnitAt$1$s(uri, 4) ^ 58) * 3 | C.JSString_methods._codeUnitAt$1(uri, 0) ^ 100 | C.JSString_methods._codeUnitAt$1(uri, 1) ^ 97 | C.JSString_methods._codeUnitAt$1(uri, 2) ^ 116 | C.JSString_methods._codeUnitAt$1(uri, 3) ^ 97) >>> 0;
  6293. if (delta === 0)
  6294. return P.UriData__parse(end < end ? C.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
  6295. else if (delta === 32)
  6296. return P.UriData__parse(C.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
  6297. }
  6298. indices = P.List_List$filled(8, 0, false, type$.int);
  6299. indices[0] = 0;
  6300. indices[1] = -1;
  6301. indices[2] = -1;
  6302. indices[7] = -1;
  6303. indices[3] = 0;
  6304. indices[4] = 0;
  6305. indices[5] = end;
  6306. indices[6] = end;
  6307. if (P._scan(uri, 0, end, 0, indices) >= 14)
  6308. indices[7] = end;
  6309. schemeEnd = indices[1];
  6310. if (schemeEnd >= 0)
  6311. if (P._scan(uri, 0, schemeEnd, 20, indices) === 20)
  6312. indices[7] = schemeEnd;
  6313. hostStart = indices[2] + 1;
  6314. portStart = indices[3];
  6315. pathStart = indices[4];
  6316. queryStart = indices[5];
  6317. fragmentStart = indices[6];
  6318. if (fragmentStart < queryStart)
  6319. queryStart = fragmentStart;
  6320. if (pathStart < hostStart)
  6321. pathStart = queryStart;
  6322. else if (pathStart <= schemeEnd)
  6323. pathStart = schemeEnd + 1;
  6324. if (portStart < hostStart)
  6325. portStart = pathStart;
  6326. isSimple = indices[7] < 0;
  6327. if (isSimple)
  6328. if (hostStart > schemeEnd + 3) {
  6329. scheme = _null;
  6330. isSimple = false;
  6331. } else {
  6332. t1 = portStart > 0;
  6333. if (t1 && portStart + 1 === pathStart) {
  6334. scheme = _null;
  6335. isSimple = false;
  6336. } else {
  6337. if (!(queryStart < end && queryStart === pathStart + 2 && J.startsWith$2$s(uri, "..", pathStart)))
  6338. t2 = queryStart > pathStart + 2 && J.startsWith$2$s(uri, "/..", queryStart - 3);
  6339. else
  6340. t2 = true;
  6341. if (t2) {
  6342. scheme = _null;
  6343. isSimple = false;
  6344. } else {
  6345. if (schemeEnd === 4)
  6346. if (J.startsWith$2$s(uri, "file", 0)) {
  6347. if (hostStart <= 0) {
  6348. if (!C.JSString_methods.startsWith$2(uri, "/", pathStart)) {
  6349. schemeAuth = "file:///";
  6350. delta = 3;
  6351. } else {
  6352. schemeAuth = "file://";
  6353. delta = 2;
  6354. }
  6355. uri = schemeAuth + C.JSString_methods.substring$2(uri, pathStart, end);
  6356. schemeEnd -= 0;
  6357. t1 = delta - 0;
  6358. queryStart += t1;
  6359. fragmentStart += t1;
  6360. end = uri.length;
  6361. hostStart = 7;
  6362. portStart = 7;
  6363. pathStart = 7;
  6364. } else if (pathStart === queryStart) {
  6365. ++fragmentStart;
  6366. queryStart0 = queryStart + 1;
  6367. uri = C.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
  6368. ++end;
  6369. queryStart = queryStart0;
  6370. }
  6371. scheme = "file";
  6372. } else if (C.JSString_methods.startsWith$2(uri, "http", 0)) {
  6373. if (t1 && portStart + 3 === pathStart && C.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
  6374. fragmentStart -= 3;
  6375. pathStart0 = pathStart - 3;
  6376. queryStart -= 3;
  6377. uri = C.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  6378. end -= 3;
  6379. pathStart = pathStart0;
  6380. }
  6381. scheme = "http";
  6382. } else
  6383. scheme = _null;
  6384. else if (schemeEnd === 5 && J.startsWith$2$s(uri, "https", 0)) {
  6385. if (t1 && portStart + 4 === pathStart && J.startsWith$2$s(uri, "443", portStart + 1)) {
  6386. fragmentStart -= 4;
  6387. pathStart0 = pathStart - 4;
  6388. queryStart -= 4;
  6389. uri = J.replaceRange$3$asx(uri, portStart, pathStart, "");
  6390. end -= 3;
  6391. pathStart = pathStart0;
  6392. }
  6393. scheme = "https";
  6394. } else
  6395. scheme = _null;
  6396. isSimple = true;
  6397. }
  6398. }
  6399. }
  6400. else
  6401. scheme = _null;
  6402. if (isSimple) {
  6403. t1 = uri.length;
  6404. if (end < t1) {
  6405. uri = J.substring$2$s(uri, 0, end);
  6406. schemeEnd -= 0;
  6407. hostStart -= 0;
  6408. portStart -= 0;
  6409. pathStart -= 0;
  6410. queryStart -= 0;
  6411. fragmentStart -= 0;
  6412. }
  6413. return new P._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  6414. }
  6415. if (scheme == null)
  6416. if (schemeEnd > 0)
  6417. scheme = P._Uri__makeScheme(uri, 0, schemeEnd);
  6418. else {
  6419. if (schemeEnd === 0)
  6420. P._Uri__fail(uri, 0, "Invalid empty scheme");
  6421. scheme = "";
  6422. }
  6423. if (hostStart > 0) {
  6424. userInfoStart = schemeEnd + 3;
  6425. userInfo = userInfoStart < hostStart ? P._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
  6426. host = P._Uri__makeHost(uri, hostStart, portStart, false);
  6427. t1 = portStart + 1;
  6428. if (t1 < pathStart) {
  6429. portNumber = H.Primitives_parseInt(J.substring$2$s(uri, t1, pathStart), _null);
  6430. port = P._Uri__makePort(portNumber == null ? H.throwExpression(P.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
  6431. } else
  6432. port = _null;
  6433. } else {
  6434. port = _null;
  6435. host = port;
  6436. userInfo = "";
  6437. }
  6438. path = P._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
  6439. query = queryStart < fragmentStart ? P._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
  6440. return new P._Uri(scheme, userInfo, host, port, path, query, fragmentStart < end ? P._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
  6441. },
  6442. Uri_decodeComponent: function(encodedComponent) {
  6443. return P._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, C.C_Utf8Codec, false);
  6444. },
  6445. Uri__parseIPv4Address: function(host, start, end) {
  6446. var i, partStart, partIndex, char, part, partIndex0,
  6447. _s43_ = "IPv4 address should contain exactly 4 parts",
  6448. _s37_ = "each part must be in the range 0..255",
  6449. error = new P.Uri__parseIPv4Address_error(host),
  6450. result = new Uint8Array(4);
  6451. for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
  6452. char = C.JSString_methods.codeUnitAt$1(host, i);
  6453. if (char !== 46) {
  6454. if ((char ^ 48) > 9)
  6455. error.call$2("invalid character", i);
  6456. } else {
  6457. if (partIndex === 3)
  6458. error.call$2(_s43_, i);
  6459. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, i), null);
  6460. if (part > 255)
  6461. error.call$2(_s37_, partStart);
  6462. partIndex0 = partIndex + 1;
  6463. result[partIndex] = part;
  6464. partStart = i + 1;
  6465. partIndex = partIndex0;
  6466. }
  6467. }
  6468. if (partIndex !== 3)
  6469. error.call$2(_s43_, end);
  6470. part = P.int_parse(C.JSString_methods.substring$2(host, partStart, end), null);
  6471. if (part > 255)
  6472. error.call$2(_s37_, partStart);
  6473. result[partIndex] = part;
  6474. return result;
  6475. },
  6476. Uri_parseIPv6Address: function(host, start, end) {
  6477. var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j,
  6478. error = new P.Uri_parseIPv6Address_error(host),
  6479. parseHex = new P.Uri_parseIPv6Address_parseHex(error, host);
  6480. if (host.length < 2)
  6481. error.call$1("address is too short");
  6482. parts = H.setRuntimeTypeInfo([], type$.JSArray_int);
  6483. for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
  6484. char = C.JSString_methods.codeUnitAt$1(host, i);
  6485. if (char === 58) {
  6486. if (i === start) {
  6487. ++i;
  6488. if (C.JSString_methods.codeUnitAt$1(host, i) !== 58)
  6489. error.call$2("invalid start colon.", i);
  6490. partStart = i;
  6491. }
  6492. if (i === partStart) {
  6493. if (wildcardSeen)
  6494. error.call$2("only one wildcard `::` is allowed", i);
  6495. parts.push(-1);
  6496. wildcardSeen = true;
  6497. } else
  6498. parts.push(parseHex.call$2(partStart, i));
  6499. partStart = i + 1;
  6500. } else if (char === 46)
  6501. seenDot = true;
  6502. }
  6503. if (parts.length === 0)
  6504. error.call$1("too few parts");
  6505. atEnd = partStart === end;
  6506. t1 = C.JSArray_methods.get$last(parts);
  6507. if (atEnd && t1 !== -1)
  6508. error.call$2("expected a part after last `:`", end);
  6509. if (!atEnd)
  6510. if (!seenDot)
  6511. parts.push(parseHex.call$2(partStart, end));
  6512. else {
  6513. last = P.Uri__parseIPv4Address(host, partStart, end);
  6514. parts.push((last[0] << 8 | last[1]) >>> 0);
  6515. parts.push((last[2] << 8 | last[3]) >>> 0);
  6516. }
  6517. if (wildcardSeen) {
  6518. if (parts.length > 7)
  6519. error.call$1("an address with a wildcard must have less than 7 parts");
  6520. } else if (parts.length !== 8)
  6521. error.call$1("an address without a wildcard must contain exactly 8 parts");
  6522. bytes = new Uint8Array(16);
  6523. for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
  6524. value = parts[i];
  6525. if (value === -1)
  6526. for (j = 0; j < wildCardLength; ++j) {
  6527. bytes[index] = 0;
  6528. bytes[index + 1] = 0;
  6529. index += 2;
  6530. }
  6531. else {
  6532. bytes[index] = C.JSInt_methods._shrOtherPositive$1(value, 8);
  6533. bytes[index + 1] = value & 255;
  6534. index += 2;
  6535. }
  6536. }
  6537. return bytes;
  6538. },
  6539. _Uri__Uri: function(host, path, pathSegments, scheme) {
  6540. var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
  6541. scheme = scheme == null ? "" : P._Uri__makeScheme(scheme, 0, scheme.length);
  6542. userInfo = P._Uri__makeUserInfo(_null, 0, 0);
  6543. host = P._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
  6544. query = P._Uri__makeQuery(_null, 0, 0, _null);
  6545. fragment = P._Uri__makeFragment(_null, 0, 0);
  6546. port = P._Uri__makePort(_null, scheme);
  6547. isFile = scheme === "file";
  6548. if (host == null)
  6549. t1 = userInfo.length !== 0 || port != null || isFile;
  6550. else
  6551. t1 = false;
  6552. if (t1)
  6553. host = "";
  6554. t1 = host == null;
  6555. hasAuthority = !t1;
  6556. path = P._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
  6557. t2 = scheme.length === 0;
  6558. if (t2 && t1 && !C.JSString_methods.startsWith$1(path, "/"))
  6559. path = P._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
  6560. else
  6561. path = P._Uri__removeDotSegments(path);
  6562. return new P._Uri(scheme, userInfo, t1 && C.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
  6563. },
  6564. _Uri__defaultPort: function(scheme) {
  6565. if (scheme === "http")
  6566. return 80;
  6567. if (scheme === "https")
  6568. return 443;
  6569. return 0;
  6570. },
  6571. _Uri__fail: function(uri, index, message) {
  6572. throw H.wrapException(P.FormatException$(message, uri, index));
  6573. },
  6574. _Uri__Uri$file: function(path, windows) {
  6575. return windows ? P._Uri__makeWindowsFileUrl(path, false) : P._Uri__makeFileUri(path, false);
  6576. },
  6577. _Uri__checkNonWindowsPathReservedCharacters: function(segments, argumentError) {
  6578. var t1, _i, segment, t2, t3;
  6579. for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
  6580. segment = segments[_i];
  6581. segment.toString;
  6582. t2 = J.getInterceptor$asx(segment);
  6583. t3 = t2.get$length(segment);
  6584. if (0 > t3)
  6585. H.throwExpression(P.RangeError$range(0, 0, t2.get$length(segment), null, null));
  6586. if (H.stringContainsUnchecked(segment, "/", 0)) {
  6587. t1 = P.UnsupportedError$("Illegal path character " + H.S(segment));
  6588. throw H.wrapException(t1);
  6589. }
  6590. }
  6591. },
  6592. _Uri__checkWindowsPathReservedCharacters: function(segments, argumentError, firstSegment) {
  6593. var t1, cur, t2;
  6594. for (t1 = H.SubListIterable$(segments, firstSegment, null, H._arrayInstanceType(segments)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  6595. cur = t1.__internal$_current;
  6596. t2 = P.RegExp_RegExp('["*/:<>?\\\\|]', false);
  6597. cur.toString;
  6598. if (H.stringContainsUnchecked(cur, t2, 0))
  6599. if (argumentError)
  6600. throw H.wrapException(P.ArgumentError$("Illegal character in path"));
  6601. else
  6602. throw H.wrapException(P.UnsupportedError$("Illegal character in path: " + cur));
  6603. }
  6604. },
  6605. _Uri__checkWindowsDriveLetter: function(charCode, argumentError) {
  6606. var t1,
  6607. _s21_ = "Illegal drive letter ";
  6608. if (!(65 <= charCode && charCode <= 90))
  6609. t1 = 97 <= charCode && charCode <= 122;
  6610. else
  6611. t1 = true;
  6612. if (t1)
  6613. return;
  6614. if (argumentError)
  6615. throw H.wrapException(P.ArgumentError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6616. else
  6617. throw H.wrapException(P.UnsupportedError$(_s21_ + P.String_String$fromCharCode(charCode)));
  6618. },
  6619. _Uri__makeFileUri: function(path, slashTerminated) {
  6620. var _null = null,
  6621. segments = H.setRuntimeTypeInfo(path.split("/"), type$.JSArray_String);
  6622. if (C.JSString_methods.startsWith$1(path, "/"))
  6623. return P._Uri__Uri(_null, _null, segments, "file");
  6624. else
  6625. return P._Uri__Uri(_null, _null, segments, _null);
  6626. },
  6627. _Uri__makeWindowsFileUrl: function(path, slashTerminated) {
  6628. var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
  6629. if (C.JSString_methods.startsWith$1(path, "\\\\?\\"))
  6630. if (C.JSString_methods.startsWith$2(path, "UNC\\", 4))
  6631. path = C.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
  6632. else {
  6633. path = C.JSString_methods.substring$1(path, 4);
  6634. if (path.length < 3 || C.JSString_methods._codeUnitAt$1(path, 1) !== 58 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6635. throw H.wrapException(P.ArgumentError$("Windows paths with \\\\?\\ prefix must be absolute"));
  6636. }
  6637. else
  6638. path = H.stringReplaceAllUnchecked(path, "/", _s1_);
  6639. t1 = path.length;
  6640. if (t1 > 1 && C.JSString_methods._codeUnitAt$1(path, 1) === 58) {
  6641. P._Uri__checkWindowsDriveLetter(C.JSString_methods._codeUnitAt$1(path, 0), true);
  6642. if (t1 === 2 || C.JSString_methods._codeUnitAt$1(path, 2) !== 92)
  6643. throw H.wrapException(P.ArgumentError$("Windows paths with drive letter must be absolute"));
  6644. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6645. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
  6646. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6647. }
  6648. if (C.JSString_methods.startsWith$1(path, _s1_))
  6649. if (C.JSString_methods.startsWith$2(path, _s1_, 1)) {
  6650. pathStart = C.JSString_methods.indexOf$2(path, _s1_, 2);
  6651. t1 = pathStart < 0;
  6652. hostPart = t1 ? C.JSString_methods.substring$1(path, 2) : C.JSString_methods.substring$2(path, 2, pathStart);
  6653. pathSegments = H.setRuntimeTypeInfo((t1 ? "" : C.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
  6654. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6655. return P._Uri__Uri(hostPart, _null, pathSegments, _s4_);
  6656. } else {
  6657. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6658. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6659. return P._Uri__Uri(_null, _null, pathSegments, _s4_);
  6660. }
  6661. else {
  6662. pathSegments = H.setRuntimeTypeInfo(path.split(_s1_), type$.JSArray_String);
  6663. P._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  6664. return P._Uri__Uri(_null, _null, pathSegments, _null);
  6665. }
  6666. },
  6667. _Uri__makePort: function(port, scheme) {
  6668. if (port != null && port === P._Uri__defaultPort(scheme))
  6669. return null;
  6670. return port;
  6671. },
  6672. _Uri__makeHost: function(host, start, end, strictIPv6) {
  6673. var t1, t2, index, zoneIDstart, zoneID, i;
  6674. if (host == null)
  6675. return null;
  6676. if (start === end)
  6677. return "";
  6678. if (C.JSString_methods.codeUnitAt$1(host, start) === 91) {
  6679. t1 = end - 1;
  6680. if (C.JSString_methods.codeUnitAt$1(host, t1) !== 93)
  6681. P._Uri__fail(host, start, "Missing end `]` to match `[` in host");
  6682. t2 = start + 1;
  6683. index = P._Uri__checkZoneID(host, t2, t1);
  6684. if (index < t1) {
  6685. zoneIDstart = index + 1;
  6686. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
  6687. } else
  6688. zoneID = "";
  6689. P.Uri_parseIPv6Address(host, t2, index);
  6690. return C.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
  6691. }
  6692. for (i = start; i < end; ++i)
  6693. if (C.JSString_methods.codeUnitAt$1(host, i) === 58) {
  6694. index = C.JSString_methods.indexOf$2(host, "%", start);
  6695. index = index >= start && index < end ? index : end;
  6696. if (index < end) {
  6697. zoneIDstart = index + 1;
  6698. zoneID = P._Uri__normalizeZoneID(host, C.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
  6699. } else
  6700. zoneID = "";
  6701. P.Uri_parseIPv6Address(host, start, index);
  6702. return "[" + C.JSString_methods.substring$2(host, start, index) + zoneID + "]";
  6703. }
  6704. return P._Uri__normalizeRegName(host, start, end);
  6705. },
  6706. _Uri__checkZoneID: function(host, start, end) {
  6707. var index = C.JSString_methods.indexOf$2(host, "%", start);
  6708. return index >= start && index < end ? index : end;
  6709. },
  6710. _Uri__normalizeZoneID: function(host, start, end, prefix) {
  6711. var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice,
  6712. buffer = prefix !== "" ? new P.StringBuffer(prefix) : null;
  6713. for (index = start, sectionStart = index, isNormalized = true; index < end;) {
  6714. char = C.JSString_methods.codeUnitAt$1(host, index);
  6715. if (char === 37) {
  6716. replacement = P._Uri__normalizeEscape(host, index, true);
  6717. t1 = replacement == null;
  6718. if (t1 && isNormalized) {
  6719. index += 3;
  6720. continue;
  6721. }
  6722. if (buffer == null)
  6723. buffer = new P.StringBuffer("");
  6724. t2 = buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6725. if (t1)
  6726. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6727. else if (replacement === "%")
  6728. P._Uri__fail(host, index, "ZoneID should not contain % anymore");
  6729. buffer._contents = t2 + replacement;
  6730. index += 3;
  6731. sectionStart = index;
  6732. isNormalized = true;
  6733. } else if (char < 127 && (C.List_nxB[char >>> 4] & 1 << (char & 15)) !== 0) {
  6734. if (isNormalized && 65 <= char && 90 >= char) {
  6735. if (buffer == null)
  6736. buffer = new P.StringBuffer("");
  6737. if (sectionStart < index) {
  6738. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6739. sectionStart = index;
  6740. }
  6741. isNormalized = false;
  6742. }
  6743. ++index;
  6744. } else {
  6745. if ((char & 64512) === 55296 && index + 1 < end) {
  6746. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6747. if ((tail & 64512) === 56320) {
  6748. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6749. sourceLength = 2;
  6750. } else
  6751. sourceLength = 1;
  6752. } else
  6753. sourceLength = 1;
  6754. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6755. if (buffer == null) {
  6756. buffer = new P.StringBuffer("");
  6757. t1 = buffer;
  6758. } else
  6759. t1 = buffer;
  6760. t1._contents += slice;
  6761. t1._contents += P._Uri__escapeChar(char);
  6762. index += sourceLength;
  6763. sectionStart = index;
  6764. }
  6765. }
  6766. if (buffer == null)
  6767. return C.JSString_methods.substring$2(host, start, end);
  6768. if (sectionStart < end)
  6769. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, end);
  6770. t1 = buffer._contents;
  6771. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6772. },
  6773. _Uri__normalizeRegName: function(host, start, end) {
  6774. var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
  6775. for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
  6776. char = C.JSString_methods.codeUnitAt$1(host, index);
  6777. if (char === 37) {
  6778. replacement = P._Uri__normalizeEscape(host, index, true);
  6779. t1 = replacement == null;
  6780. if (t1 && isNormalized) {
  6781. index += 3;
  6782. continue;
  6783. }
  6784. if (buffer == null)
  6785. buffer = new P.StringBuffer("");
  6786. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6787. t2 = buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6788. if (t1) {
  6789. replacement = C.JSString_methods.substring$2(host, index, index + 3);
  6790. sourceLength = 3;
  6791. } else if (replacement === "%") {
  6792. replacement = "%25";
  6793. sourceLength = 1;
  6794. } else
  6795. sourceLength = 3;
  6796. buffer._contents = t2 + replacement;
  6797. index += sourceLength;
  6798. sectionStart = index;
  6799. isNormalized = true;
  6800. } else if (char < 127 && (C.List_qNA[char >>> 4] & 1 << (char & 15)) !== 0) {
  6801. if (isNormalized && 65 <= char && 90 >= char) {
  6802. if (buffer == null)
  6803. buffer = new P.StringBuffer("");
  6804. if (sectionStart < index) {
  6805. buffer._contents += C.JSString_methods.substring$2(host, sectionStart, index);
  6806. sectionStart = index;
  6807. }
  6808. isNormalized = false;
  6809. }
  6810. ++index;
  6811. } else if (char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0)
  6812. P._Uri__fail(host, index, "Invalid character");
  6813. else {
  6814. if ((char & 64512) === 55296 && index + 1 < end) {
  6815. tail = C.JSString_methods.codeUnitAt$1(host, index + 1);
  6816. if ((tail & 64512) === 56320) {
  6817. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6818. sourceLength = 2;
  6819. } else
  6820. sourceLength = 1;
  6821. } else
  6822. sourceLength = 1;
  6823. slice = C.JSString_methods.substring$2(host, sectionStart, index);
  6824. if (!isNormalized)
  6825. slice = slice.toLowerCase();
  6826. if (buffer == null) {
  6827. buffer = new P.StringBuffer("");
  6828. t1 = buffer;
  6829. } else
  6830. t1 = buffer;
  6831. t1._contents += slice;
  6832. t1._contents += P._Uri__escapeChar(char);
  6833. index += sourceLength;
  6834. sectionStart = index;
  6835. }
  6836. }
  6837. if (buffer == null)
  6838. return C.JSString_methods.substring$2(host, start, end);
  6839. if (sectionStart < end) {
  6840. slice = C.JSString_methods.substring$2(host, sectionStart, end);
  6841. buffer._contents += !isNormalized ? slice.toLowerCase() : slice;
  6842. }
  6843. t1 = buffer._contents;
  6844. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6845. },
  6846. _Uri__makeScheme: function(scheme, start, end) {
  6847. var i, containsUpperCase, codeUnit;
  6848. if (start === end)
  6849. return "";
  6850. if (!P._Uri__isAlphabeticCharacter(J.getInterceptor$s(scheme)._codeUnitAt$1(scheme, start)))
  6851. P._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
  6852. for (i = start, containsUpperCase = false; i < end; ++i) {
  6853. codeUnit = C.JSString_methods._codeUnitAt$1(scheme, i);
  6854. if (!(codeUnit < 128 && (C.List_JYB[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
  6855. P._Uri__fail(scheme, i, "Illegal scheme character");
  6856. if (65 <= codeUnit && codeUnit <= 90)
  6857. containsUpperCase = true;
  6858. }
  6859. scheme = C.JSString_methods.substring$2(scheme, start, end);
  6860. return P._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
  6861. },
  6862. _Uri__canonicalizeScheme: function(scheme) {
  6863. if (scheme === "http")
  6864. return "http";
  6865. if (scheme === "file")
  6866. return "file";
  6867. if (scheme === "https")
  6868. return "https";
  6869. if (scheme === "package")
  6870. return "package";
  6871. return scheme;
  6872. },
  6873. _Uri__makeUserInfo: function(userInfo, start, end) {
  6874. if (userInfo == null)
  6875. return "";
  6876. return P._Uri__normalizeOrSubstring(userInfo, start, end, C.List_gRj, false);
  6877. },
  6878. _Uri__makePath: function(path, start, end, pathSegments, scheme, hasAuthority) {
  6879. var result,
  6880. isFile = scheme === "file",
  6881. ensureLeadingSlash = isFile || hasAuthority;
  6882. if (path == null) {
  6883. if (pathSegments == null)
  6884. return isFile ? "/" : "";
  6885. result = new H.MappedListIterable(pathSegments, new P._Uri__makePath_closure(), H._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
  6886. } else if (pathSegments != null)
  6887. throw H.wrapException(P.ArgumentError$("Both path and pathSegments specified"));
  6888. else
  6889. result = P._Uri__normalizeOrSubstring(path, start, end, C.List_qg4, true);
  6890. if (result.length === 0) {
  6891. if (isFile)
  6892. return "/";
  6893. } else if (ensureLeadingSlash && !C.JSString_methods.startsWith$1(result, "/"))
  6894. result = "/" + result;
  6895. return P._Uri__normalizePath(result, scheme, hasAuthority);
  6896. },
  6897. _Uri__normalizePath: function(path, scheme, hasAuthority) {
  6898. var t1 = scheme.length === 0;
  6899. if (t1 && !hasAuthority && !C.JSString_methods.startsWith$1(path, "/"))
  6900. return P._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
  6901. return P._Uri__removeDotSegments(path);
  6902. },
  6903. _Uri__makeQuery: function(query, start, end, queryParameters) {
  6904. if (query != null)
  6905. return P._Uri__normalizeOrSubstring(query, start, end, C.List_CVk, true);
  6906. return null;
  6907. },
  6908. _Uri__makeFragment: function(fragment, start, end) {
  6909. if (fragment == null)
  6910. return null;
  6911. return P._Uri__normalizeOrSubstring(fragment, start, end, C.List_CVk, true);
  6912. },
  6913. _Uri__normalizeEscape: function(source, index, lowerCase) {
  6914. var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
  6915. t1 = index + 2;
  6916. if (t1 >= source.length)
  6917. return "%";
  6918. firstDigit = C.JSString_methods.codeUnitAt$1(source, index + 1);
  6919. secondDigit = C.JSString_methods.codeUnitAt$1(source, t1);
  6920. firstDigitValue = H.hexDigitValue(firstDigit);
  6921. secondDigitValue = H.hexDigitValue(secondDigit);
  6922. if (firstDigitValue < 0 || secondDigitValue < 0)
  6923. return "%";
  6924. value = firstDigitValue * 16 + secondDigitValue;
  6925. if (value < 127 && (C.List_nxB[C.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
  6926. return H.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
  6927. if (firstDigit >= 97 || secondDigit >= 97)
  6928. return C.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
  6929. return null;
  6930. },
  6931. _Uri__escapeChar: function(char) {
  6932. var codeUnits, flag, encodedBytes, index, byte,
  6933. _s16_ = "0123456789ABCDEF";
  6934. if (char < 128) {
  6935. codeUnits = new Uint8Array(3);
  6936. codeUnits[0] = 37;
  6937. codeUnits[1] = C.JSString_methods._codeUnitAt$1(_s16_, char >>> 4);
  6938. codeUnits[2] = C.JSString_methods._codeUnitAt$1(_s16_, char & 15);
  6939. } else {
  6940. if (char > 2047)
  6941. if (char > 65535) {
  6942. flag = 240;
  6943. encodedBytes = 4;
  6944. } else {
  6945. flag = 224;
  6946. encodedBytes = 3;
  6947. }
  6948. else {
  6949. flag = 192;
  6950. encodedBytes = 2;
  6951. }
  6952. codeUnits = new Uint8Array(3 * encodedBytes);
  6953. for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
  6954. byte = C.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
  6955. codeUnits[index] = 37;
  6956. codeUnits[index + 1] = C.JSString_methods._codeUnitAt$1(_s16_, byte >>> 4);
  6957. codeUnits[index + 2] = C.JSString_methods._codeUnitAt$1(_s16_, byte & 15);
  6958. index += 3;
  6959. }
  6960. }
  6961. return P.String_String$fromCharCodes(codeUnits, 0, null);
  6962. },
  6963. _Uri__normalizeOrSubstring: function(component, start, end, charTable, escapeDelimiters) {
  6964. var t1 = P._Uri__normalize(component, start, end, charTable, escapeDelimiters);
  6965. return t1 == null ? C.JSString_methods.substring$2(component, start, end) : t1;
  6966. },
  6967. _Uri__normalize: function(component, start, end, charTable, escapeDelimiters) {
  6968. var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, _null = null;
  6969. for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
  6970. char = C.JSString_methods.codeUnitAt$1(component, index);
  6971. if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
  6972. ++index;
  6973. else {
  6974. if (char === 37) {
  6975. replacement = P._Uri__normalizeEscape(component, index, false);
  6976. if (replacement == null) {
  6977. index += 3;
  6978. continue;
  6979. }
  6980. if ("%" === replacement) {
  6981. replacement = "%25";
  6982. sourceLength = 1;
  6983. } else
  6984. sourceLength = 3;
  6985. } else if (t1 && char <= 93 && (C.List_2Vk[char >>> 4] & 1 << (char & 15)) !== 0) {
  6986. P._Uri__fail(component, index, "Invalid character");
  6987. sourceLength = _null;
  6988. replacement = sourceLength;
  6989. } else {
  6990. if ((char & 64512) === 55296) {
  6991. t2 = index + 1;
  6992. if (t2 < end) {
  6993. tail = C.JSString_methods.codeUnitAt$1(component, t2);
  6994. if ((tail & 64512) === 56320) {
  6995. char = 65536 | (char & 1023) << 10 | tail & 1023;
  6996. sourceLength = 2;
  6997. } else
  6998. sourceLength = 1;
  6999. } else
  7000. sourceLength = 1;
  7001. } else
  7002. sourceLength = 1;
  7003. replacement = P._Uri__escapeChar(char);
  7004. }
  7005. if (buffer == null) {
  7006. buffer = new P.StringBuffer("");
  7007. t2 = buffer;
  7008. } else
  7009. t2 = buffer;
  7010. t2._contents += C.JSString_methods.substring$2(component, sectionStart, index);
  7011. t2._contents += H.S(replacement);
  7012. index += sourceLength;
  7013. sectionStart = index;
  7014. }
  7015. }
  7016. if (buffer == null)
  7017. return _null;
  7018. if (sectionStart < end)
  7019. buffer._contents += C.JSString_methods.substring$2(component, sectionStart, end);
  7020. t1 = buffer._contents;
  7021. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7022. },
  7023. _Uri__mayContainDotSegments: function(path) {
  7024. if (C.JSString_methods.startsWith$1(path, "."))
  7025. return true;
  7026. return C.JSString_methods.indexOf$1(path, "/.") !== -1;
  7027. },
  7028. _Uri__removeDotSegments: function(path) {
  7029. var output, t1, t2, appendSlash, _i, segment;
  7030. if (!P._Uri__mayContainDotSegments(path))
  7031. return path;
  7032. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  7033. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  7034. segment = t1[_i];
  7035. if (J.$eq$(segment, "..")) {
  7036. if (output.length !== 0) {
  7037. output.pop();
  7038. if (output.length === 0)
  7039. output.push("");
  7040. }
  7041. appendSlash = true;
  7042. } else if ("." === segment)
  7043. appendSlash = true;
  7044. else {
  7045. output.push(segment);
  7046. appendSlash = false;
  7047. }
  7048. }
  7049. if (appendSlash)
  7050. output.push("");
  7051. return C.JSArray_methods.join$1(output, "/");
  7052. },
  7053. _Uri__normalizeRelativePath: function(path, allowScheme) {
  7054. var output, t1, t2, appendSlash, _i, segment;
  7055. if (!P._Uri__mayContainDotSegments(path))
  7056. return !allowScheme ? P._Uri__escapeScheme(path) : path;
  7057. output = H.setRuntimeTypeInfo([], type$.JSArray_String);
  7058. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  7059. segment = t1[_i];
  7060. if (".." === segment)
  7061. if (output.length !== 0 && C.JSArray_methods.get$last(output) !== "..") {
  7062. output.pop();
  7063. appendSlash = true;
  7064. } else {
  7065. output.push("..");
  7066. appendSlash = false;
  7067. }
  7068. else if ("." === segment)
  7069. appendSlash = true;
  7070. else {
  7071. output.push(segment);
  7072. appendSlash = false;
  7073. }
  7074. }
  7075. t1 = output.length;
  7076. if (t1 !== 0)
  7077. t1 = t1 === 1 && output[0].length === 0;
  7078. else
  7079. t1 = true;
  7080. if (t1)
  7081. return "./";
  7082. if (appendSlash || C.JSArray_methods.get$last(output) === "..")
  7083. output.push("");
  7084. if (!allowScheme)
  7085. output[0] = P._Uri__escapeScheme(output[0]);
  7086. return C.JSArray_methods.join$1(output, "/");
  7087. },
  7088. _Uri__escapeScheme: function(path) {
  7089. var i, char,
  7090. t1 = path.length;
  7091. if (t1 >= 2 && P._Uri__isAlphabeticCharacter(J._codeUnitAt$1$s(path, 0)))
  7092. for (i = 1; i < t1; ++i) {
  7093. char = C.JSString_methods._codeUnitAt$1(path, i);
  7094. if (char === 58)
  7095. return C.JSString_methods.substring$2(path, 0, i) + "%3A" + C.JSString_methods.substring$1(path, i + 1);
  7096. if (char > 127 || (C.List_JYB[char >>> 4] & 1 << (char & 15)) === 0)
  7097. break;
  7098. }
  7099. return path;
  7100. },
  7101. _Uri__toWindowsFilePath: function(uri) {
  7102. var hasDriveLetter, t2, host,
  7103. segments = uri.get$pathSegments(),
  7104. t1 = segments.length;
  7105. if (t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58) {
  7106. P._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
  7107. P._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
  7108. hasDriveLetter = true;
  7109. } else {
  7110. P._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
  7111. hasDriveLetter = false;
  7112. }
  7113. t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "\\" : "";
  7114. if (uri.get$hasAuthority()) {
  7115. host = uri.get$host();
  7116. if (host.length !== 0)
  7117. t2 = t2 + "\\" + host + "\\";
  7118. }
  7119. t2 = P.StringBuffer__writeAll(t2, segments, "\\");
  7120. t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
  7121. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7122. },
  7123. _Uri__hexCharPairToByte: function(s, pos) {
  7124. var byte, i, charCode;
  7125. for (byte = 0, i = 0; i < 2; ++i) {
  7126. charCode = C.JSString_methods._codeUnitAt$1(s, pos + i);
  7127. if (48 <= charCode && charCode <= 57)
  7128. byte = byte * 16 + charCode - 48;
  7129. else {
  7130. charCode |= 32;
  7131. if (97 <= charCode && charCode <= 102)
  7132. byte = byte * 16 + charCode - 87;
  7133. else
  7134. throw H.wrapException(P.ArgumentError$("Invalid URL encoding"));
  7135. }
  7136. }
  7137. return byte;
  7138. },
  7139. _Uri__uriDecode: function(text, start, end, encoding, plusToSpace) {
  7140. var simple, codeUnit, t2, bytes,
  7141. t1 = J.getInterceptor$s(text),
  7142. i = start;
  7143. while (true) {
  7144. if (!(i < end)) {
  7145. simple = true;
  7146. break;
  7147. }
  7148. codeUnit = t1._codeUnitAt$1(text, i);
  7149. if (codeUnit <= 127)
  7150. if (codeUnit !== 37)
  7151. t2 = false;
  7152. else
  7153. t2 = true;
  7154. else
  7155. t2 = true;
  7156. if (t2) {
  7157. simple = false;
  7158. break;
  7159. }
  7160. ++i;
  7161. }
  7162. if (simple) {
  7163. if (C.C_Utf8Codec !== encoding)
  7164. t2 = false;
  7165. else
  7166. t2 = true;
  7167. if (t2)
  7168. return t1.substring$2(text, start, end);
  7169. else
  7170. bytes = new H.CodeUnits(t1.substring$2(text, start, end));
  7171. } else {
  7172. bytes = H.setRuntimeTypeInfo([], type$.JSArray_int);
  7173. for (i = start; i < end; ++i) {
  7174. codeUnit = t1._codeUnitAt$1(text, i);
  7175. if (codeUnit > 127)
  7176. throw H.wrapException(P.ArgumentError$("Illegal percent encoding in URI"));
  7177. if (codeUnit === 37) {
  7178. if (i + 3 > text.length)
  7179. throw H.wrapException(P.ArgumentError$("Truncated URI"));
  7180. bytes.push(P._Uri__hexCharPairToByte(text, i + 1));
  7181. i += 2;
  7182. } else
  7183. bytes.push(codeUnit);
  7184. }
  7185. }
  7186. return C.Utf8Decoder_false.convert$1(bytes);
  7187. },
  7188. _Uri__isAlphabeticCharacter: function(codeUnit) {
  7189. var lowerCase = codeUnit | 32;
  7190. return 97 <= lowerCase && lowerCase <= 122;
  7191. },
  7192. UriData__writeUri: function(mimeType, charsetName, parameters, buffer, indices) {
  7193. var t1, slashIndex;
  7194. if (mimeType == null || mimeType === "text/plain")
  7195. mimeType = "";
  7196. if (mimeType.length === 0 || mimeType === "application/octet-stream")
  7197. t1 = buffer._contents += mimeType;
  7198. else {
  7199. slashIndex = P.UriData__validateMimeType(mimeType);
  7200. if (slashIndex < 0)
  7201. throw H.wrapException(P.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
  7202. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$2(mimeType, 0, slashIndex), C.C_Utf8Codec, false));
  7203. buffer._contents = t1 + "/";
  7204. t1 = buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, C.JSString_methods.substring$1(mimeType, slashIndex + 1), C.C_Utf8Codec, false));
  7205. }
  7206. if (charsetName != null) {
  7207. indices.push(t1.length);
  7208. indices.push(buffer._contents.length + 8);
  7209. buffer._contents += ";charset=";
  7210. buffer._contents += H.S(P._Uri__uriEncode(C.List_qFt, charsetName, C.C_Utf8Codec, false));
  7211. }
  7212. },
  7213. UriData__validateMimeType: function(mimeType) {
  7214. var t1, slashIndex, i;
  7215. for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
  7216. if (C.JSString_methods._codeUnitAt$1(mimeType, i) !== 47)
  7217. continue;
  7218. if (slashIndex < 0) {
  7219. slashIndex = i;
  7220. continue;
  7221. }
  7222. return -1;
  7223. }
  7224. return slashIndex;
  7225. },
  7226. UriData__parse: function(text, start, sourceUri) {
  7227. var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
  7228. _s17_ = "Invalid MIME type",
  7229. indices = H.setRuntimeTypeInfo([start - 1], type$.JSArray_int);
  7230. for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
  7231. char = C.JSString_methods._codeUnitAt$1(text, i);
  7232. if (char === 44 || char === 59)
  7233. break;
  7234. if (char === 47) {
  7235. if (slashIndex < 0) {
  7236. slashIndex = i;
  7237. continue;
  7238. }
  7239. throw H.wrapException(P.FormatException$(_s17_, text, i));
  7240. }
  7241. }
  7242. if (slashIndex < 0 && i > start)
  7243. throw H.wrapException(P.FormatException$(_s17_, text, i));
  7244. for (; char !== 44;) {
  7245. indices.push(i);
  7246. ++i;
  7247. for (equalsIndex = -1; i < t1; ++i) {
  7248. char = C.JSString_methods._codeUnitAt$1(text, i);
  7249. if (char === 61) {
  7250. if (equalsIndex < 0)
  7251. equalsIndex = i;
  7252. } else if (char === 59 || char === 44)
  7253. break;
  7254. }
  7255. if (equalsIndex >= 0)
  7256. indices.push(equalsIndex);
  7257. else {
  7258. lastSeparator = C.JSArray_methods.get$last(indices);
  7259. if (char !== 44 || i !== lastSeparator + 7 || !C.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
  7260. throw H.wrapException(P.FormatException$("Expecting '='", text, i));
  7261. break;
  7262. }
  7263. }
  7264. indices.push(i);
  7265. t2 = i + 1;
  7266. if ((indices.length & 1) === 1)
  7267. text = C.C_Base64Codec.normalize$3(text, t2, t1);
  7268. else {
  7269. data = P._Uri__normalize(text, t2, t1, C.List_CVk, true);
  7270. if (data != null)
  7271. text = C.JSString_methods.replaceRange$3(text, t2, t1, data);
  7272. }
  7273. return new P.UriData(text, indices, sourceUri);
  7274. },
  7275. UriData__uriEncodeBytes: function(canonicalTable, bytes, buffer) {
  7276. var t1, byteOr, i, byte,
  7277. _s16_ = "0123456789ABCDEF";
  7278. for (t1 = J.getInterceptor$asx(bytes), byteOr = 0, i = 0; i < t1.get$length(bytes); ++i) {
  7279. byte = t1.$index(bytes, i);
  7280. byteOr |= byte;
  7281. if (byte < 128 && (canonicalTable[C.JSInt_methods._shrOtherPositive$1(byte, 4)] & 1 << (byte & 15)) !== 0)
  7282. buffer._contents += H.Primitives_stringFromCharCode(byte);
  7283. else {
  7284. buffer._contents += H.Primitives_stringFromCharCode(37);
  7285. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, C.JSInt_methods._shrOtherPositive$1(byte, 4)));
  7286. buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(_s16_, byte & 15));
  7287. }
  7288. }
  7289. if ((byteOr & 4294967040) >>> 0 !== 0)
  7290. for (i = 0; i < t1.get$length(bytes); ++i) {
  7291. byte = t1.$index(bytes, i);
  7292. if (byte < 0 || byte > 255)
  7293. throw H.wrapException(P.ArgumentError$value(byte, "non-byte value", null));
  7294. }
  7295. },
  7296. _createTables: function() {
  7297. var _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
  7298. _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "?", _s1_3 = "#",
  7299. tables = P.List_List$generate(22, new P._createTables_closure(), true, type$.Uint8List),
  7300. t1 = new P._createTables_build(tables),
  7301. t2 = new P._createTables_setChars(),
  7302. t3 = new P._createTables_setRange(),
  7303. b = t1.call$2(0, 225);
  7304. t2.call$3(b, _s77_, 1);
  7305. t2.call$3(b, _s1_, 14);
  7306. t2.call$3(b, _s1_0, 34);
  7307. t2.call$3(b, _s1_1, 3);
  7308. t2.call$3(b, _s1_2, 172);
  7309. t2.call$3(b, _s1_3, 205);
  7310. b = t1.call$2(14, 225);
  7311. t2.call$3(b, _s77_, 1);
  7312. t2.call$3(b, _s1_, 15);
  7313. t2.call$3(b, _s1_0, 34);
  7314. t2.call$3(b, _s1_1, 234);
  7315. t2.call$3(b, _s1_2, 172);
  7316. t2.call$3(b, _s1_3, 205);
  7317. b = t1.call$2(15, 225);
  7318. t2.call$3(b, _s77_, 1);
  7319. t2.call$3(b, "%", 225);
  7320. t2.call$3(b, _s1_0, 34);
  7321. t2.call$3(b, _s1_1, 9);
  7322. t2.call$3(b, _s1_2, 172);
  7323. t2.call$3(b, _s1_3, 205);
  7324. b = t1.call$2(1, 225);
  7325. t2.call$3(b, _s77_, 1);
  7326. t2.call$3(b, _s1_0, 34);
  7327. t2.call$3(b, _s1_1, 10);
  7328. t2.call$3(b, _s1_2, 172);
  7329. t2.call$3(b, _s1_3, 205);
  7330. b = t1.call$2(2, 235);
  7331. t2.call$3(b, _s77_, 139);
  7332. t2.call$3(b, _s1_1, 131);
  7333. t2.call$3(b, _s1_, 146);
  7334. t2.call$3(b, _s1_2, 172);
  7335. t2.call$3(b, _s1_3, 205);
  7336. b = t1.call$2(3, 235);
  7337. t2.call$3(b, _s77_, 11);
  7338. t2.call$3(b, _s1_1, 68);
  7339. t2.call$3(b, _s1_, 18);
  7340. t2.call$3(b, _s1_2, 172);
  7341. t2.call$3(b, _s1_3, 205);
  7342. b = t1.call$2(4, 229);
  7343. t2.call$3(b, _s77_, 5);
  7344. t3.call$3(b, "AZ", 229);
  7345. t2.call$3(b, _s1_0, 102);
  7346. t2.call$3(b, "@", 68);
  7347. t2.call$3(b, "[", 232);
  7348. t2.call$3(b, _s1_1, 138);
  7349. t2.call$3(b, _s1_2, 172);
  7350. t2.call$3(b, _s1_3, 205);
  7351. b = t1.call$2(5, 229);
  7352. t2.call$3(b, _s77_, 5);
  7353. t3.call$3(b, "AZ", 229);
  7354. t2.call$3(b, _s1_0, 102);
  7355. t2.call$3(b, "@", 68);
  7356. t2.call$3(b, _s1_1, 138);
  7357. t2.call$3(b, _s1_2, 172);
  7358. t2.call$3(b, _s1_3, 205);
  7359. b = t1.call$2(6, 231);
  7360. t3.call$3(b, "19", 7);
  7361. t2.call$3(b, "@", 68);
  7362. t2.call$3(b, _s1_1, 138);
  7363. t2.call$3(b, _s1_2, 172);
  7364. t2.call$3(b, _s1_3, 205);
  7365. b = t1.call$2(7, 231);
  7366. t3.call$3(b, "09", 7);
  7367. t2.call$3(b, "@", 68);
  7368. t2.call$3(b, _s1_1, 138);
  7369. t2.call$3(b, _s1_2, 172);
  7370. t2.call$3(b, _s1_3, 205);
  7371. t2.call$3(t1.call$2(8, 8), "]", 5);
  7372. b = t1.call$2(9, 235);
  7373. t2.call$3(b, _s77_, 11);
  7374. t2.call$3(b, _s1_, 16);
  7375. t2.call$3(b, _s1_1, 234);
  7376. t2.call$3(b, _s1_2, 172);
  7377. t2.call$3(b, _s1_3, 205);
  7378. b = t1.call$2(16, 235);
  7379. t2.call$3(b, _s77_, 11);
  7380. t2.call$3(b, _s1_, 17);
  7381. t2.call$3(b, _s1_1, 234);
  7382. t2.call$3(b, _s1_2, 172);
  7383. t2.call$3(b, _s1_3, 205);
  7384. b = t1.call$2(17, 235);
  7385. t2.call$3(b, _s77_, 11);
  7386. t2.call$3(b, _s1_1, 9);
  7387. t2.call$3(b, _s1_2, 172);
  7388. t2.call$3(b, _s1_3, 205);
  7389. b = t1.call$2(10, 235);
  7390. t2.call$3(b, _s77_, 11);
  7391. t2.call$3(b, _s1_, 18);
  7392. t2.call$3(b, _s1_1, 234);
  7393. t2.call$3(b, _s1_2, 172);
  7394. t2.call$3(b, _s1_3, 205);
  7395. b = t1.call$2(18, 235);
  7396. t2.call$3(b, _s77_, 11);
  7397. t2.call$3(b, _s1_, 19);
  7398. t2.call$3(b, _s1_1, 234);
  7399. t2.call$3(b, _s1_2, 172);
  7400. t2.call$3(b, _s1_3, 205);
  7401. b = t1.call$2(19, 235);
  7402. t2.call$3(b, _s77_, 11);
  7403. t2.call$3(b, _s1_1, 234);
  7404. t2.call$3(b, _s1_2, 172);
  7405. t2.call$3(b, _s1_3, 205);
  7406. b = t1.call$2(11, 235);
  7407. t2.call$3(b, _s77_, 11);
  7408. t2.call$3(b, _s1_1, 10);
  7409. t2.call$3(b, _s1_2, 172);
  7410. t2.call$3(b, _s1_3, 205);
  7411. b = t1.call$2(12, 236);
  7412. t2.call$3(b, _s77_, 12);
  7413. t2.call$3(b, _s1_2, 12);
  7414. t2.call$3(b, _s1_3, 205);
  7415. b = t1.call$2(13, 237);
  7416. t2.call$3(b, _s77_, 13);
  7417. t2.call$3(b, _s1_2, 13);
  7418. t3.call$3(t1.call$2(20, 245), "az", 21);
  7419. b = t1.call$2(21, 245);
  7420. t3.call$3(b, "az", 21);
  7421. t3.call$3(b, "09", 21);
  7422. t2.call$3(b, "+-.", 21);
  7423. return tables;
  7424. },
  7425. _scan: function(uri, start, end, state, indices) {
  7426. var t1, i, table, char, transition,
  7427. tables = $.$get$_scannerTables();
  7428. for (t1 = J.getInterceptor$s(uri), i = start; i < end; ++i) {
  7429. table = tables[state];
  7430. char = t1._codeUnitAt$1(uri, i) ^ 96;
  7431. transition = table[char > 95 ? 31 : char];
  7432. state = transition & 31;
  7433. indices[transition >>> 5] = i;
  7434. }
  7435. return state;
  7436. },
  7437. NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
  7438. this._box_0 = t0;
  7439. this.sb = t1;
  7440. },
  7441. DateTime: function DateTime(t0, t1) {
  7442. this._value = t0;
  7443. this.isUtc = t1;
  7444. },
  7445. Duration: function Duration(t0) {
  7446. this._duration = t0;
  7447. },
  7448. Duration_toString_sixDigits: function Duration_toString_sixDigits() {
  7449. },
  7450. Duration_toString_twoDigits: function Duration_toString_twoDigits() {
  7451. },
  7452. Error: function Error() {
  7453. },
  7454. AssertionError: function AssertionError(t0) {
  7455. this.message = t0;
  7456. },
  7457. TypeError: function TypeError() {
  7458. },
  7459. NullThrownError: function NullThrownError() {
  7460. },
  7461. ArgumentError: function ArgumentError(t0, t1, t2, t3) {
  7462. var _ = this;
  7463. _._hasValue = t0;
  7464. _.invalidValue = t1;
  7465. _.name = t2;
  7466. _.message = t3;
  7467. },
  7468. RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
  7469. var _ = this;
  7470. _.start = t0;
  7471. _.end = t1;
  7472. _._hasValue = t2;
  7473. _.invalidValue = t3;
  7474. _.name = t4;
  7475. _.message = t5;
  7476. },
  7477. IndexError: function IndexError(t0, t1, t2, t3, t4) {
  7478. var _ = this;
  7479. _.length = t0;
  7480. _._hasValue = t1;
  7481. _.invalidValue = t2;
  7482. _.name = t3;
  7483. _.message = t4;
  7484. },
  7485. NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
  7486. var _ = this;
  7487. _._core$_receiver = t0;
  7488. _._memberName = t1;
  7489. _._core$_arguments = t2;
  7490. _._namedArguments = t3;
  7491. },
  7492. UnsupportedError: function UnsupportedError(t0) {
  7493. this.message = t0;
  7494. },
  7495. UnimplementedError: function UnimplementedError(t0) {
  7496. this.message = t0;
  7497. },
  7498. StateError: function StateError(t0) {
  7499. this.message = t0;
  7500. },
  7501. ConcurrentModificationError: function ConcurrentModificationError(t0) {
  7502. this.modifiedObject = t0;
  7503. },
  7504. OutOfMemoryError: function OutOfMemoryError() {
  7505. },
  7506. StackOverflowError: function StackOverflowError() {
  7507. },
  7508. CyclicInitializationError: function CyclicInitializationError(t0) {
  7509. this.variableName = t0;
  7510. },
  7511. _Exception: function _Exception(t0) {
  7512. this.message = t0;
  7513. },
  7514. FormatException: function FormatException(t0, t1, t2) {
  7515. this.message = t0;
  7516. this.source = t1;
  7517. this.offset = t2;
  7518. },
  7519. Iterable: function Iterable() {
  7520. },
  7521. _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
  7522. this.length = t0;
  7523. this._generator = t1;
  7524. this.$ti = t2;
  7525. },
  7526. Iterator: function Iterator() {
  7527. },
  7528. MapEntry: function MapEntry(t0, t1, t2) {
  7529. this.key = t0;
  7530. this.value = t1;
  7531. this.$ti = t2;
  7532. },
  7533. Null: function Null() {
  7534. },
  7535. Object: function Object() {
  7536. },
  7537. _StringStackTrace: function _StringStackTrace(t0) {
  7538. this._stackTrace = t0;
  7539. },
  7540. Runes: function Runes(t0) {
  7541. this.string = t0;
  7542. },
  7543. RuneIterator: function RuneIterator(t0) {
  7544. var _ = this;
  7545. _.string = t0;
  7546. _._nextPosition = _._position = 0;
  7547. _._currentCodePoint = -1;
  7548. },
  7549. StringBuffer: function StringBuffer(t0) {
  7550. this._contents = t0;
  7551. },
  7552. Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
  7553. this.host = t0;
  7554. },
  7555. Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
  7556. this.host = t0;
  7557. },
  7558. Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
  7559. this.error = t0;
  7560. this.host = t1;
  7561. },
  7562. _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
  7563. var _ = this;
  7564. _.scheme = t0;
  7565. _._userInfo = t1;
  7566. _._host = t2;
  7567. _._port = t3;
  7568. _.path = t4;
  7569. _._query = t5;
  7570. _._fragment = t6;
  7571. _.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
  7572. },
  7573. _Uri__makePath_closure: function _Uri__makePath_closure() {
  7574. },
  7575. UriData: function UriData(t0, t1, t2) {
  7576. this._text = t0;
  7577. this._separatorIndices = t1;
  7578. this._uriCache = t2;
  7579. },
  7580. _createTables_closure: function _createTables_closure() {
  7581. },
  7582. _createTables_build: function _createTables_build(t0) {
  7583. this.tables = t0;
  7584. },
  7585. _createTables_setChars: function _createTables_setChars() {
  7586. },
  7587. _createTables_setRange: function _createTables_setRange() {
  7588. },
  7589. _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
  7590. var _ = this;
  7591. _._uri = t0;
  7592. _._schemeEnd = t1;
  7593. _._hostStart = t2;
  7594. _._portStart = t3;
  7595. _._pathStart = t4;
  7596. _._queryStart = t5;
  7597. _._fragmentStart = t6;
  7598. _._schemeCache = t7;
  7599. _._hashCodeCache = null;
  7600. },
  7601. _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
  7602. var _ = this;
  7603. _.scheme = t0;
  7604. _._userInfo = t1;
  7605. _._host = t2;
  7606. _._port = t3;
  7607. _.path = t4;
  7608. _._query = t5;
  7609. _._fragment = t6;
  7610. _.___Uri_hashCode = _.___Uri_pathSegments = _.___Uri__text = null;
  7611. },
  7612. max: function(a, b) {
  7613. return Math.max(H.checkNum(a), H.checkNum(b));
  7614. },
  7615. pow: function(x, exponent) {
  7616. H.checkNum(x);
  7617. H.checkNum(exponent);
  7618. return Math.pow(x, exponent);
  7619. },
  7620. Random_Random: function() {
  7621. return C.C__JSRandom;
  7622. },
  7623. _JSRandom: function _JSRandom() {
  7624. },
  7625. _convertDartFunctionFast: function(f) {
  7626. var ret,
  7627. existing = f.$dart_jsFunction;
  7628. if (existing != null)
  7629. return existing;
  7630. ret = function(_call, f) {
  7631. return function() {
  7632. return _call(f, Array.prototype.slice.apply(arguments));
  7633. };
  7634. }(P._callDartFunctionFast, f);
  7635. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7636. f.$dart_jsFunction = ret;
  7637. return ret;
  7638. },
  7639. _convertDartFunctionFastCaptureThis: function(f) {
  7640. var ret,
  7641. existing = f._$dart_jsFunctionCaptureThis;
  7642. if (existing != null)
  7643. return existing;
  7644. ret = function(_call, f) {
  7645. return function() {
  7646. return _call(f, this, Array.prototype.slice.apply(arguments));
  7647. };
  7648. }(P._callDartFunctionFastCaptureThis, f);
  7649. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  7650. f._$dart_jsFunctionCaptureThis = ret;
  7651. return ret;
  7652. },
  7653. _callDartFunctionFast: function(callback, $arguments) {
  7654. return P.Function_apply(callback, $arguments);
  7655. },
  7656. _callDartFunctionFastCaptureThis: function(callback, $self, $arguments) {
  7657. var t1 = [$self];
  7658. C.JSArray_methods.addAll$1(t1, $arguments);
  7659. return P.Function_apply(callback, t1);
  7660. },
  7661. allowInterop: function(f) {
  7662. if (typeof f == "function")
  7663. return f;
  7664. else
  7665. return P._convertDartFunctionFast(f);
  7666. },
  7667. allowInteropCaptureThis: function(f) {
  7668. if (typeof f == "function")
  7669. throw H.wrapException(P.ArgumentError$("Function is already a JS function so cannot capture this."));
  7670. else
  7671. return P._convertDartFunctionFastCaptureThis(f);
  7672. },
  7673. callConstructor: function(constr, $arguments) {
  7674. var args, factoryFunction;
  7675. if ($arguments instanceof Array)
  7676. switch ($arguments.length) {
  7677. case 0:
  7678. return new constr();
  7679. case 1:
  7680. return new constr($arguments[0]);
  7681. case 2:
  7682. return new constr($arguments[0], $arguments[1]);
  7683. case 3:
  7684. return new constr($arguments[0], $arguments[1], $arguments[2]);
  7685. case 4:
  7686. return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  7687. }
  7688. args = [null];
  7689. C.JSArray_methods.addAll$1(args, $arguments);
  7690. factoryFunction = constr.bind.apply(constr, args);
  7691. String(factoryFunction);
  7692. return new factoryFunction();
  7693. }
  7694. },
  7695. N = {ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5) {
  7696. var _ = this;
  7697. _._arg_parser$_options = t0;
  7698. _.options = t1;
  7699. _.commands = t2;
  7700. _._optionsAndSeparators = t3;
  7701. _.allowTrailingOptions = t4;
  7702. _.usageLineLength = t5;
  7703. }, ArgParser_findByAbbreviation_closure: function ArgParser_findByAbbreviation_closure(t0) {
  7704. this.abbr = t0;
  7705. }, ArgParser_findByAbbreviation_closure0: function ArgParser_findByAbbreviation_closure0() {
  7706. }, TTY: function TTY() {
  7707. }, TTYReadStream: function TTYReadStream() {
  7708. }, TTYWriteStream: function TTYWriteStream() {
  7709. }, AttributeSelector: function AttributeSelector(t0, t1, t2, t3) {
  7710. var _ = this;
  7711. _.name = t0;
  7712. _.op = t1;
  7713. _.value = t2;
  7714. _.modifier = t3;
  7715. }, AttributeOperator: function AttributeOperator(t0) {
  7716. this._attribute$_text = t0;
  7717. }, IDSelector: function IDSelector(t0) {
  7718. this.name = t0;
  7719. }, IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
  7720. this.$this = t0;
  7721. }, PlaceholderSelector: function PlaceholderSelector(t0) {
  7722. this.name = t0;
  7723. }, UniversalSelector: function UniversalSelector(t0) {
  7724. this.namespace = t0;
  7725. }, NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
  7726. this._no_source_map_buffer0$_buffer = t0;
  7727. },
  7728. serialize: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7729. var t1, css, t2, prefix, t3,
  7730. visitor = N._SerializeVisitor$0(2, inspect, lineFeed, true, sourceMap, style, true);
  7731. node.accept$1(visitor);
  7732. t1 = visitor._serialize$_buffer;
  7733. css = t1.toString$0(0);
  7734. if (charset) {
  7735. t2 = new H.CodeUnits(css);
  7736. t2 = t2.any$1(t2, new N.serialize_closure());
  7737. } else
  7738. t2 = false;
  7739. if (t2)
  7740. prefix = style === C.OutputStyle_compressed ? "\ufeff" : '@charset "UTF-8";\n';
  7741. else
  7742. prefix = "";
  7743. t2 = prefix + css;
  7744. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7745. if (sourceMap)
  7746. t1.get$sourceFiles();
  7747. return new N.SerializeResult(t2, t3);
  7748. },
  7749. serializeValue0: function(value, inspect, quote) {
  7750. var visitor = N._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
  7751. value.accept$1(visitor);
  7752. return visitor._serialize$_buffer.toString$0(0);
  7753. },
  7754. _SerializeVisitor$0: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7755. var t1 = sourceMap ? new D.SourceMapBuffer0(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer0(new P.StringBuffer("")),
  7756. t2 = style == null ? C.OutputStyle_expanded0 : style,
  7757. t3 = indentWidth == null ? 2 : indentWidth;
  7758. P.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
  7759. return new N._SerializeVisitor0(t1, t2, inspect, quote, 32, t3, C.C_LineFeed);
  7760. },
  7761. serialize_closure: function serialize_closure() {
  7762. },
  7763. _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
  7764. var _ = this;
  7765. _._serialize$_buffer = t0;
  7766. _._indentation = 0;
  7767. _._style = t1;
  7768. _._serialize$_inspect = t2;
  7769. _._quote = t3;
  7770. _._indentCharacter = t4;
  7771. _._indentWidth = t5;
  7772. _._serialize$_lineFeed = t6;
  7773. },
  7774. _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
  7775. this.$this = t0;
  7776. this.node = t1;
  7777. },
  7778. _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
  7779. this.$this = t0;
  7780. this.node = t1;
  7781. },
  7782. _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
  7783. this.$this = t0;
  7784. this.node = t1;
  7785. },
  7786. _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
  7787. this.$this = t0;
  7788. this.node = t1;
  7789. },
  7790. _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
  7791. this.$this = t0;
  7792. this.node = t1;
  7793. },
  7794. _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  7795. this.$this = t0;
  7796. this.node = t1;
  7797. },
  7798. _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
  7799. this.$this = t0;
  7800. this.node = t1;
  7801. },
  7802. _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
  7803. this.$this = t0;
  7804. this.node = t1;
  7805. },
  7806. _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
  7807. this.$this = t0;
  7808. this.node = t1;
  7809. },
  7810. _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
  7811. this.$this = t0;
  7812. this.node = t1;
  7813. },
  7814. _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
  7815. },
  7816. _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
  7817. this.$this = t0;
  7818. this.value = t1;
  7819. },
  7820. _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
  7821. this.$this = t0;
  7822. },
  7823. _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0, t1) {
  7824. this.$this = t0;
  7825. this.map = t1;
  7826. },
  7827. _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
  7828. },
  7829. _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
  7830. this.$this = t0;
  7831. this.value = t1;
  7832. },
  7833. _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1, t2) {
  7834. this._box_0 = t0;
  7835. this.$this = t1;
  7836. this.children = t2;
  7837. },
  7838. OutputStyle: function OutputStyle(t0) {
  7839. this._serialize$_name = t0;
  7840. },
  7841. LineFeed: function LineFeed() {
  7842. },
  7843. SerializeResult: function SerializeResult(t0, t1) {
  7844. this.css = t0;
  7845. this.sourceMap = t1;
  7846. },
  7847. warn: function(message, deprecation) {
  7848. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  7849. if (warnDefinition == null)
  7850. throw H.wrapException(P.ArgumentError$(string$.warn__));
  7851. warnDefinition.call$2(message, true);
  7852. },
  7853. withWarnCallback: function(warn, callback, $T) {
  7854. var t1 = type$.legacy_Object;
  7855. return P.runZoned(new N.withWarnCallback_closure(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1), $T._eval$1("0*"));
  7856. },
  7857. withWarnCallback_closure: function withWarnCallback_closure(t0, t1) {
  7858. this.callback = t0;
  7859. this.T = t1;
  7860. },
  7861. UnparsedFrame: function UnparsedFrame(t0, t1) {
  7862. this.uri = t0;
  7863. this.member = t1;
  7864. },
  7865. AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3) {
  7866. var _ = this;
  7867. _.name = t0;
  7868. _.op = t1;
  7869. _.value = t2;
  7870. _.modifier = t3;
  7871. },
  7872. AttributeOperator0: function AttributeOperator0(t0) {
  7873. this._attribute0$_text = t0;
  7874. },
  7875. IDSelector0: function IDSelector0(t0) {
  7876. this.name = t0;
  7877. },
  7878. IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
  7879. this.$this = t0;
  7880. },
  7881. NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
  7882. this._no_source_map_buffer$_buffer = t0;
  7883. },
  7884. PlaceholderSelector0: function PlaceholderSelector0(t0) {
  7885. this.name = t0;
  7886. },
  7887. serialize0: function(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
  7888. var t1, css, t2, prefix, t3,
  7889. visitor = N._SerializeVisitor$(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
  7890. node.accept$1(visitor);
  7891. t1 = visitor._buffer;
  7892. css = t1.toString$0(0);
  7893. t2 = new H.CodeUnits(css);
  7894. t2 = t2.any$1(t2, new N.serialize_closure0());
  7895. if (t2)
  7896. prefix = style === C.OutputStyle_compressed0 ? "\ufeff" : '@charset "UTF-8";\n';
  7897. else
  7898. prefix = "";
  7899. t2 = prefix + css;
  7900. t3 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  7901. if (sourceMap)
  7902. t1.get$sourceFiles();
  7903. return new N.SerializeResult0(t2, t3);
  7904. },
  7905. serializeValue: function(value, inspect, quote) {
  7906. var visitor = N._SerializeVisitor$(null, inspect, null, quote, false, null, true);
  7907. value.accept$1(visitor);
  7908. return visitor._buffer.toString$0(0);
  7909. },
  7910. _SerializeVisitor$: function(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
  7911. var t1 = sourceMap ? new D.SourceMapBuffer(new P.StringBuffer(""), H.setRuntimeTypeInfo([], type$.JSArray_legacy_Entry), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_SourceFile)) : new N.NoSourceMapBuffer(new P.StringBuffer("")),
  7912. t2 = style == null ? C.OutputStyle_expanded : style,
  7913. t3 = useSpaces ? 32 : 9,
  7914. t4 = indentWidth == null ? 2 : indentWidth,
  7915. t5 = lineFeed == null ? C.LineFeed_D6m : lineFeed;
  7916. P.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
  7917. return new N._SerializeVisitor(t1, t2, inspect, quote, t3, t4, t5);
  7918. },
  7919. serialize_closure0: function serialize_closure0() {
  7920. },
  7921. _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
  7922. var _ = this;
  7923. _._buffer = t0;
  7924. _._serialize0$_indentation = 0;
  7925. _._serialize0$_style = t1;
  7926. _._inspect = t2;
  7927. _._serialize0$_quote = t3;
  7928. _._serialize0$_indentCharacter = t4;
  7929. _._serialize0$_indentWidth = t5;
  7930. _._lineFeed = t6;
  7931. },
  7932. _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
  7933. this.$this = t0;
  7934. this.node = t1;
  7935. },
  7936. _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
  7937. this.$this = t0;
  7938. this.node = t1;
  7939. },
  7940. _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
  7941. this.$this = t0;
  7942. this.node = t1;
  7943. },
  7944. _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
  7945. this.$this = t0;
  7946. this.node = t1;
  7947. },
  7948. _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
  7949. this.$this = t0;
  7950. this.node = t1;
  7951. },
  7952. _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
  7953. this.$this = t0;
  7954. this.node = t1;
  7955. },
  7956. _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
  7957. this.$this = t0;
  7958. this.node = t1;
  7959. },
  7960. _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
  7961. this.$this = t0;
  7962. this.node = t1;
  7963. },
  7964. _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
  7965. this.$this = t0;
  7966. this.node = t1;
  7967. },
  7968. _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
  7969. this.$this = t0;
  7970. this.node = t1;
  7971. },
  7972. _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
  7973. },
  7974. _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
  7975. this.$this = t0;
  7976. this.value = t1;
  7977. },
  7978. _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
  7979. this.$this = t0;
  7980. },
  7981. _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0, t1) {
  7982. this.$this = t0;
  7983. this.map = t1;
  7984. },
  7985. _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
  7986. },
  7987. _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
  7988. this.$this = t0;
  7989. this.value = t1;
  7990. },
  7991. _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1, t2) {
  7992. this._box_0 = t0;
  7993. this.$this = t1;
  7994. this.children = t2;
  7995. },
  7996. OutputStyle0: function OutputStyle0(t0) {
  7997. this._name = t0;
  7998. },
  7999. LineFeed0: function LineFeed0(t0, t1) {
  8000. this.name = t0;
  8001. this.text = t1;
  8002. },
  8003. SerializeResult0: function SerializeResult0(t0, t1) {
  8004. this.css = t0;
  8005. this.sourceMap = t1;
  8006. },
  8007. UniversalSelector0: function UniversalSelector0(t0) {
  8008. this.namespace = t0;
  8009. },
  8010. warn0: function(message, deprecation) {
  8011. var warnDefinition = $.Zone__current.$index(0, C.Symbol__warn);
  8012. if (warnDefinition == null)
  8013. throw H.wrapException(P.ArgumentError$(string$.warn__));
  8014. warnDefinition.call$2(message, true);
  8015. },
  8016. withWarnCallback0: function(warn, callback, $T) {
  8017. var t1 = type$.legacy_Object;
  8018. return P.runZoned(new N.withWarnCallback_closure0(callback, $T), P.LinkedHashMap_LinkedHashMap$_literal([C.Symbol__warn, warn], t1, t1), $T._eval$1("0*"));
  8019. },
  8020. withWarnCallback_closure0: function withWarnCallback_closure0(t0, t1) {
  8021. this.callback = t0;
  8022. this.T = t1;
  8023. }
  8024. },
  8025. Z = {
  8026. ArgParserException$: function(message, commands) {
  8027. return new Z.ArgParserException(commands == null ? C.List_empty : P.List_List$unmodifiable(commands, type$.legacy_String), message, null, null);
  8028. },
  8029. ArgParserException: function ArgParserException(t0, t1, t2, t3) {
  8030. var _ = this;
  8031. _.commands = t0;
  8032. _.message = t1;
  8033. _.source = t2;
  8034. _.offset = t3;
  8035. },
  8036. Argument: function Argument(t0, t1, t2) {
  8037. this.name = t0;
  8038. this.defaultValue = t1;
  8039. this.span = t2;
  8040. },
  8041. ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
  8042. var _ = this;
  8043. _.name = t0;
  8044. _.expression = t1;
  8045. _.isGuarded = t2;
  8046. _.span = t3;
  8047. },
  8048. BooleanExpression: function BooleanExpression(t0, t1) {
  8049. this.value = t0;
  8050. this.span = t1;
  8051. },
  8052. VariableDeclaration$: function($name, expression, span, comment, global, guarded, namespace) {
  8053. if (namespace != null && global)
  8054. H.throwExpression(P.ArgumentError$(string$.Other_));
  8055. return new Z.VariableDeclaration(namespace, $name, expression, guarded, global, span);
  8056. },
  8057. VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
  8058. var _ = this;
  8059. _.namespace = t0;
  8060. _.name = t1;
  8061. _.expression = t2;
  8062. _.isGuarded = t3;
  8063. _.isGlobal = t4;
  8064. _.span = t5;
  8065. },
  8066. ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
  8067. this.value = t0;
  8068. this.configurationSpan = t1;
  8069. this.assignmentNode = t2;
  8070. },
  8071. InterpolationBuffer: function InterpolationBuffer(t0, t1) {
  8072. this._interpolation_buffer$_text = t0;
  8073. this._interpolation_buffer$_contents = t1;
  8074. },
  8075. MergedMapView$: function(maps, $K, $V) {
  8076. var t1 = $K._eval$1("@<0>")._bind$1($V);
  8077. t1 = new Z.MergedMapView(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView<1,2>"));
  8078. t1.MergedMapView$1(maps, $K, $V);
  8079. return t1;
  8080. },
  8081. MergedMapView: function MergedMapView(t0, t1) {
  8082. this._mapsByKey = t0;
  8083. this.$ti = t1;
  8084. },
  8085. SassBoolean: function SassBoolean(t0) {
  8086. this.value = t0;
  8087. },
  8088. LineScanner$: function(string) {
  8089. return new Z.LineScanner(null, string);
  8090. },
  8091. LineScanner: function LineScanner(t0, t1) {
  8092. var _ = this;
  8093. _._line_scanner$_column = _._line_scanner$_line = 0;
  8094. _.sourceUrl = t0;
  8095. _.string = t1;
  8096. _._string_scanner$_position = 0;
  8097. _._lastMatchPosition = _._lastMatch = null;
  8098. },
  8099. Argument0: function Argument0(t0, t1, t2) {
  8100. this.name = t0;
  8101. this.defaultValue = t1;
  8102. this.span = t2;
  8103. },
  8104. BooleanExpression0: function BooleanExpression0(t0, t1) {
  8105. this.value = t0;
  8106. this.span = t1;
  8107. },
  8108. closure263: function closure263() {
  8109. },
  8110. _closure34: function _closure34() {
  8111. },
  8112. _closure35: function _closure35() {
  8113. },
  8114. SassBoolean0: function SassBoolean0(t0) {
  8115. this.value = t0;
  8116. },
  8117. ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
  8118. this.value = t0;
  8119. this.configurationSpan = t1;
  8120. this.assignmentNode = t2;
  8121. },
  8122. ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
  8123. var _ = this;
  8124. _.name = t0;
  8125. _.expression = t1;
  8126. _.isGuarded = t2;
  8127. _.span = t3;
  8128. },
  8129. InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
  8130. this._interpolation_buffer0$_text = t0;
  8131. this._interpolation_buffer0$_contents = t1;
  8132. },
  8133. MergedMapView$0: function(maps, $K, $V) {
  8134. var t1 = $K._eval$1("@<0>")._bind$1($V);
  8135. t1 = new Z.MergedMapView0(P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), t1._eval$1("Map<1*,2*>*")), t1._eval$1("MergedMapView0<1,2>"));
  8136. t1.MergedMapView$10(maps, $K, $V);
  8137. return t1;
  8138. },
  8139. MergedMapView0: function MergedMapView0(t0, t1) {
  8140. this._merged_map_view$_mapsByKey = t0;
  8141. this.$ti = t1;
  8142. },
  8143. RenderContext: function RenderContext() {
  8144. },
  8145. VariableDeclaration$0: function($name, expression, span, comment, global, guarded, namespace) {
  8146. if (namespace != null && global)
  8147. H.throwExpression(P.ArgumentError$(string$.Other_));
  8148. return new Z.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
  8149. },
  8150. VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
  8151. var _ = this;
  8152. _.namespace = t0;
  8153. _.name = t1;
  8154. _.expression = t2;
  8155. _.isGuarded = t3;
  8156. _.isGlobal = t4;
  8157. _.span = t5;
  8158. }
  8159. },
  8160. V = {ArgResults: function ArgResults(t0, t1, t2, t3) {
  8161. var _ = this;
  8162. _._parser = t0;
  8163. _._parsed = t1;
  8164. _.name = t2;
  8165. _.rest = t3;
  8166. }, ErrorResult: function ErrorResult(t0, t1) {
  8167. this.error = t0;
  8168. this.stackTrace = t1;
  8169. }, BufferModule: function BufferModule() {
  8170. }, BufferConstants: function BufferConstants() {
  8171. }, Buffer: function Buffer() {
  8172. },
  8173. ModifiableCssStylesheet$: function(span) {
  8174. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  8175. return new V.ModifiableCssStylesheet(span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  8176. },
  8177. ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
  8178. var _ = this;
  8179. _.span = t0;
  8180. _.children = t1;
  8181. _._children = t2;
  8182. _._indexInParent = _._parent = null;
  8183. _.isGroupEnd = false;
  8184. },
  8185. CssStylesheet: function CssStylesheet(t0, t1) {
  8186. this.children = t0;
  8187. this.span = t1;
  8188. },
  8189. AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
  8190. var _ = this;
  8191. _.include = t0;
  8192. _.names = t1;
  8193. _._all = t2;
  8194. _._at_root_query$_rule = t3;
  8195. },
  8196. BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
  8197. var _ = this;
  8198. _.operator = t0;
  8199. _.left = t1;
  8200. _.right = t2;
  8201. _.allowsSlash = t3;
  8202. },
  8203. BinaryOperator: function BinaryOperator(t0, t1, t2) {
  8204. this.name = t0;
  8205. this.operator = t1;
  8206. this.precedence = t2;
  8207. },
  8208. AtRootRule$: function(children, span, query) {
  8209. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8210. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  8211. return new V.AtRootRule(query, span, t1, t2);
  8212. },
  8213. AtRootRule: function AtRootRule(t0, t1, t2, t3) {
  8214. var _ = this;
  8215. _.query = t0;
  8216. _.span = t1;
  8217. _.children = t2;
  8218. _.hasDeclarations = t3;
  8219. },
  8220. EachRule$: function(variables, list, children, span) {
  8221. var t1 = P.List_List$unmodifiable(variables, type$.legacy_String),
  8222. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8223. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure());
  8224. return new V.EachRule(t1, list, span, t2, t3);
  8225. },
  8226. EachRule: function EachRule(t0, t1, t2, t3, t4) {
  8227. var _ = this;
  8228. _.variables = t0;
  8229. _.list = t1;
  8230. _.span = t2;
  8231. _.children = t3;
  8232. _.hasDeclarations = t4;
  8233. },
  8234. EachRule_toString_closure: function EachRule_toString_closure() {
  8235. },
  8236. IfClause$: function(expression, children) {
  8237. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  8238. return new V.IfClause(expression, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
  8239. },
  8240. IfClause$last: function(children) {
  8241. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement);
  8242. return new V.IfClause(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure()));
  8243. },
  8244. IfRule: function IfRule(t0, t1, t2) {
  8245. this.clauses = t0;
  8246. this.lastClause = t1;
  8247. this.span = t2;
  8248. },
  8249. IfRule_toString_closure: function IfRule_toString_closure(t0) {
  8250. this._box_0 = t0;
  8251. },
  8252. IfClause: function IfClause(t0, t1, t2) {
  8253. this.expression = t0;
  8254. this.children = t1;
  8255. this.hasDeclarations = t2;
  8256. },
  8257. IfClause$__closure: function IfClause$__closure() {
  8258. },
  8259. IfClause$___closure: function IfClause$___closure() {
  8260. },
  8261. Stylesheet$: function(children, span, plainCss) {
  8262. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule),
  8263. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule),
  8264. t3 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8265. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure());
  8266. t1 = new V.Stylesheet(span, plainCss, t1, t2, t3, t4);
  8267. t1.Stylesheet$3$plainCss(children, span, plainCss);
  8268. return t1;
  8269. },
  8270. Stylesheet_Stylesheet$parse: function(contents, syntax, logger, url) {
  8271. var t1, t2;
  8272. switch (syntax) {
  8273. case C.Syntax_Sass:
  8274. t1 = S.SpanScanner$(contents, url);
  8275. t2 = logger == null ? C.StderrLogger_false : logger;
  8276. return new U.SassParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
  8277. case C.Syntax_SCSS:
  8278. return L.ScssParser$(contents, logger, url).parse$0();
  8279. case C.Syntax_CSS:
  8280. t1 = S.SpanScanner$(contents, url);
  8281. t2 = logger == null ? C.StderrLogger_false : logger;
  8282. return new Q.CssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2).parse$0();
  8283. default:
  8284. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8285. }
  8286. },
  8287. Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
  8288. var _ = this;
  8289. _.span = t0;
  8290. _.plainCss = t1;
  8291. _._uses = t2;
  8292. _._forwards = t3;
  8293. _.children = t4;
  8294. _.hasDeclarations = t5;
  8295. },
  8296. AtRootQueryParser$: function(contents, logger, url) {
  8297. var t1 = S.SpanScanner$(contents, url);
  8298. return new V.AtRootQueryParser(t1, logger);
  8299. },
  8300. AtRootQueryParser: function AtRootQueryParser(t0, t1) {
  8301. this.scanner = t0;
  8302. this.logger = t1;
  8303. },
  8304. AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
  8305. this.$this = t0;
  8306. },
  8307. StylesheetParser: function StylesheetParser() {
  8308. },
  8309. StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
  8310. this.$this = t0;
  8311. },
  8312. StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
  8313. this.$this = t0;
  8314. },
  8315. StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
  8316. },
  8317. StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
  8318. this.$this = t0;
  8319. },
  8320. StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
  8321. this.$this = t0;
  8322. },
  8323. StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
  8324. this.$this = t0;
  8325. },
  8326. StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
  8327. this.$this = t0;
  8328. this.production = t1;
  8329. this.T = t2;
  8330. },
  8331. StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
  8332. this.$this = t0;
  8333. },
  8334. StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
  8335. this._box_0 = t0;
  8336. this.$this = t1;
  8337. },
  8338. StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
  8339. this.declaration = t0;
  8340. },
  8341. StylesheetParser__declarationOrBuffer_closure: function StylesheetParser__declarationOrBuffer_closure(t0) {
  8342. this.name = t0;
  8343. },
  8344. StylesheetParser__declarationOrBuffer_closure0: function StylesheetParser__declarationOrBuffer_closure0(t0, t1) {
  8345. this._box_0 = t0;
  8346. this.name = t1;
  8347. },
  8348. StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2) {
  8349. this._box_0 = t0;
  8350. this.$this = t1;
  8351. this.wasInStyleRule = t2;
  8352. },
  8353. StylesheetParser__propertyOrVariableDeclaration_closure: function StylesheetParser__propertyOrVariableDeclaration_closure(t0) {
  8354. this._box_0 = t0;
  8355. },
  8356. StylesheetParser__propertyOrVariableDeclaration_closure0: function StylesheetParser__propertyOrVariableDeclaration_closure0(t0, t1) {
  8357. this._box_0 = t0;
  8358. this.value = t1;
  8359. },
  8360. StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
  8361. this.query = t0;
  8362. },
  8363. StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
  8364. },
  8365. StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
  8366. var _ = this;
  8367. _.$this = t0;
  8368. _.wasInControlDirective = t1;
  8369. _.variables = t2;
  8370. _.list = t3;
  8371. },
  8372. StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
  8373. this.name = t0;
  8374. this.$arguments = t1;
  8375. this.precedingComment = t2;
  8376. },
  8377. StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
  8378. this._box_0 = t0;
  8379. this.$this = t1;
  8380. },
  8381. StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
  8382. var _ = this;
  8383. _._box_0 = t0;
  8384. _.$this = t1;
  8385. _.wasInControlDirective = t2;
  8386. _.variable = t3;
  8387. _.from = t4;
  8388. _.to = t5;
  8389. },
  8390. StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
  8391. this.$this = t0;
  8392. this.variables = t1;
  8393. this.identifiers = t2;
  8394. },
  8395. StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
  8396. this._box_0 = t0;
  8397. },
  8398. StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
  8399. this.query = t0;
  8400. },
  8401. StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
  8402. var _ = this;
  8403. _.$this = t0;
  8404. _.name = t1;
  8405. _.$arguments = t2;
  8406. _.precedingComment = t3;
  8407. },
  8408. StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
  8409. var _ = this;
  8410. _._box_0 = t0;
  8411. _.$this = t1;
  8412. _.name = t2;
  8413. _.value = t3;
  8414. },
  8415. StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
  8416. this.condition = t0;
  8417. },
  8418. StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
  8419. this.$this = t0;
  8420. this.wasInControlDirective = t1;
  8421. this.condition = t2;
  8422. },
  8423. StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
  8424. this._box_0 = t0;
  8425. this.name = t1;
  8426. },
  8427. StylesheetParser_expression_resetState: function StylesheetParser_expression_resetState(t0, t1, t2) {
  8428. this._box_0 = t0;
  8429. this.$this = t1;
  8430. this.start = t2;
  8431. },
  8432. StylesheetParser_expression_resolveOneOperation: function StylesheetParser_expression_resolveOneOperation(t0, t1) {
  8433. this._box_0 = t0;
  8434. this.$this = t1;
  8435. },
  8436. StylesheetParser_expression_resolveOperations: function StylesheetParser_expression_resolveOperations(t0, t1) {
  8437. this._box_0 = t0;
  8438. this.resolveOneOperation = t1;
  8439. },
  8440. StylesheetParser_expression_addSingleExpression: function StylesheetParser_expression_addSingleExpression(t0, t1, t2, t3) {
  8441. var _ = this;
  8442. _._box_0 = t0;
  8443. _.$this = t1;
  8444. _.resetState = t2;
  8445. _.resolveOperations = t3;
  8446. },
  8447. StylesheetParser_expression_addOperator: function StylesheetParser_expression_addOperator(t0, t1, t2) {
  8448. this._box_0 = t0;
  8449. this.$this = t1;
  8450. this.resolveOneOperation = t2;
  8451. },
  8452. StylesheetParser_expression_resolveSpaceExpressions: function StylesheetParser_expression_resolveSpaceExpressions(t0, t1) {
  8453. this._box_0 = t0;
  8454. this.resolveOperations = t1;
  8455. },
  8456. StylesheetParser__expressionUntilComma_closure: function StylesheetParser__expressionUntilComma_closure(t0) {
  8457. this.$this = t0;
  8458. },
  8459. StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
  8460. },
  8461. StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
  8462. },
  8463. StylesheetParser_identifierLike_closure: function StylesheetParser_identifierLike_closure(t0, t1) {
  8464. this.$this = t0;
  8465. this.start = t1;
  8466. },
  8467. StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
  8468. this.$this = t0;
  8469. },
  8470. StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
  8471. this.$this = t0;
  8472. this.start = t1;
  8473. },
  8474. cloneCssStylesheet: function(stylesheet, extender) {
  8475. var result = extender.clone$0();
  8476. return new S.Tuple2(new V._CloneCssVisitor(result.item2)._visitChildren$2(V.ModifiableCssStylesheet$(stylesheet.get$span()), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender);
  8477. },
  8478. _CloneCssVisitor: function _CloneCssVisitor(t0) {
  8479. this._oldToNewSelectors = t0;
  8480. },
  8481. SourceLocation$: function(offset, column, line, sourceUrl) {
  8482. var t1 = line == null,
  8483. t2 = t1 ? 0 : line;
  8484. if (offset < 0)
  8485. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  8486. else if (!t1 && line < 0)
  8487. H.throwExpression(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  8488. else if (column < 0)
  8489. H.throwExpression(P.RangeError$("Column may not be negative, was " + column + "."));
  8490. return new V.SourceLocation(sourceUrl, offset, t2, column);
  8491. },
  8492. SourceLocation: function SourceLocation(t0, t1, t2, t3) {
  8493. var _ = this;
  8494. _.sourceUrl = t0;
  8495. _.offset = t1;
  8496. _.line = t2;
  8497. _.column = t3;
  8498. },
  8499. SourceSpanBase: function SourceSpanBase() {
  8500. },
  8501. AtRootQueryParser$0: function(contents, logger, url) {
  8502. var t1 = S.SpanScanner$(contents, url);
  8503. return new V.AtRootQueryParser0(t1, logger);
  8504. },
  8505. AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
  8506. this.scanner = t0;
  8507. this.logger = t1;
  8508. },
  8509. AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
  8510. this.$this = t0;
  8511. },
  8512. AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
  8513. var _ = this;
  8514. _.include = t0;
  8515. _.names = t1;
  8516. _._at_root_query0$_all = t2;
  8517. _._at_root_query0$_rule = t3;
  8518. },
  8519. AtRootRule$0: function(children, span, query) {
  8520. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  8521. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  8522. return new V.AtRootRule0(query, span, t1, t2);
  8523. },
  8524. AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
  8525. var _ = this;
  8526. _.query = t0;
  8527. _.span = t1;
  8528. _.children = t2;
  8529. _.hasDeclarations = t3;
  8530. },
  8531. BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
  8532. var _ = this;
  8533. _.operator = t0;
  8534. _.left = t1;
  8535. _.right = t2;
  8536. _.allowsSlash = t3;
  8537. },
  8538. BinaryOperator0: function BinaryOperator0(t0, t1, t2) {
  8539. this.name = t0;
  8540. this.operator = t1;
  8541. this.precedence = t2;
  8542. },
  8543. cloneCssStylesheet0: function(stylesheet, extender) {
  8544. var result = extender.clone$0();
  8545. return new S.Tuple2(new V._CloneCssVisitor0(result.item2)._clone_css$_visitChildren$2(V.ModifiableCssStylesheet$0(stylesheet.get$span()), stylesheet), result.item1, type$.Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender_2);
  8546. },
  8547. _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
  8548. this._clone_css$_oldToNewSelectors = t0;
  8549. },
  8550. EachRule$0: function(variables, list, children, span) {
  8551. var t1 = P.List_List$unmodifiable(variables, type$.legacy_String),
  8552. t2 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  8553. t3 = C.JSArray_methods.any$1(t2, new M.ParentStatement_closure0());
  8554. return new V.EachRule0(t1, list, span, t2, t3);
  8555. },
  8556. EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
  8557. var _ = this;
  8558. _.variables = t0;
  8559. _.list = t1;
  8560. _.span = t2;
  8561. _.children = t3;
  8562. _.hasDeclarations = t4;
  8563. },
  8564. EachRule_toString_closure0: function EachRule_toString_closure0() {
  8565. },
  8566. IfClause$0: function(expression, children) {
  8567. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  8568. return new V.IfClause0(expression, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
  8569. },
  8570. IfClause$last0: function(children) {
  8571. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  8572. return new V.IfClause0(null, t1, C.JSArray_methods.any$1(t1, new V.IfClause$__closure0()));
  8573. },
  8574. IfRule0: function IfRule0(t0, t1, t2) {
  8575. this.clauses = t0;
  8576. this.lastClause = t1;
  8577. this.span = t2;
  8578. },
  8579. IfRule_toString_closure0: function IfRule_toString_closure0(t0) {
  8580. this._box_0 = t0;
  8581. },
  8582. IfClause0: function IfClause0(t0, t1, t2) {
  8583. this.expression = t0;
  8584. this.children = t1;
  8585. this.hasDeclarations = t2;
  8586. },
  8587. IfClause$__closure0: function IfClause$__closure0() {
  8588. },
  8589. IfClause$___closure0: function IfClause$___closure0() {
  8590. },
  8591. CssStylesheet0: function CssStylesheet0(t0, t1) {
  8592. this.children = t0;
  8593. this.span = t1;
  8594. },
  8595. ModifiableCssStylesheet$0: function(span) {
  8596. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  8597. return new V.ModifiableCssStylesheet0(span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  8598. },
  8599. ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
  8600. var _ = this;
  8601. _.span = t0;
  8602. _.children = t1;
  8603. _._node2$_children = t2;
  8604. _._node2$_indexInParent = _._node2$_parent = null;
  8605. _.isGroupEnd = false;
  8606. },
  8607. StylesheetParser0: function StylesheetParser0() {
  8608. },
  8609. StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
  8610. this.$this = t0;
  8611. },
  8612. StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
  8613. this.$this = t0;
  8614. },
  8615. StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
  8616. },
  8617. StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
  8618. this.$this = t0;
  8619. },
  8620. StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
  8621. this.$this = t0;
  8622. this.production = t1;
  8623. this.T = t2;
  8624. },
  8625. StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0) {
  8626. this.$this = t0;
  8627. },
  8628. StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
  8629. this.$this = t0;
  8630. },
  8631. StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
  8632. this._box_0 = t0;
  8633. this.$this = t1;
  8634. },
  8635. StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
  8636. this.declaration = t0;
  8637. },
  8638. StylesheetParser__declarationOrBuffer_closure1: function StylesheetParser__declarationOrBuffer_closure1(t0) {
  8639. this.name = t0;
  8640. },
  8641. StylesheetParser__declarationOrBuffer_closure2: function StylesheetParser__declarationOrBuffer_closure2(t0, t1) {
  8642. this._box_0 = t0;
  8643. this.name = t1;
  8644. },
  8645. StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2) {
  8646. this._box_0 = t0;
  8647. this.$this = t1;
  8648. this.wasInStyleRule = t2;
  8649. },
  8650. StylesheetParser__propertyOrVariableDeclaration_closure1: function StylesheetParser__propertyOrVariableDeclaration_closure1(t0) {
  8651. this._box_0 = t0;
  8652. },
  8653. StylesheetParser__propertyOrVariableDeclaration_closure2: function StylesheetParser__propertyOrVariableDeclaration_closure2(t0, t1) {
  8654. this._box_0 = t0;
  8655. this.value = t1;
  8656. },
  8657. StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
  8658. this.query = t0;
  8659. },
  8660. StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
  8661. },
  8662. StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
  8663. var _ = this;
  8664. _.$this = t0;
  8665. _.wasInControlDirective = t1;
  8666. _.variables = t2;
  8667. _.list = t3;
  8668. },
  8669. StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
  8670. this.name = t0;
  8671. this.$arguments = t1;
  8672. this.precedingComment = t2;
  8673. },
  8674. StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
  8675. this._box_0 = t0;
  8676. this.$this = t1;
  8677. },
  8678. StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
  8679. var _ = this;
  8680. _._box_0 = t0;
  8681. _.$this = t1;
  8682. _.wasInControlDirective = t2;
  8683. _.variable = t3;
  8684. _.from = t4;
  8685. _.to = t5;
  8686. },
  8687. StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
  8688. this.$this = t0;
  8689. this.variables = t1;
  8690. this.identifiers = t2;
  8691. },
  8692. StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
  8693. this._box_0 = t0;
  8694. },
  8695. StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
  8696. this.query = t0;
  8697. },
  8698. StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
  8699. var _ = this;
  8700. _.$this = t0;
  8701. _.name = t1;
  8702. _.$arguments = t2;
  8703. _.precedingComment = t3;
  8704. },
  8705. StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
  8706. var _ = this;
  8707. _._box_0 = t0;
  8708. _.$this = t1;
  8709. _.name = t2;
  8710. _.value = t3;
  8711. },
  8712. StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
  8713. this.condition = t0;
  8714. },
  8715. StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
  8716. this.$this = t0;
  8717. this.wasInControlDirective = t1;
  8718. this.condition = t2;
  8719. },
  8720. StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
  8721. this._box_0 = t0;
  8722. this.name = t1;
  8723. },
  8724. StylesheetParser_expression_resetState0: function StylesheetParser_expression_resetState0(t0, t1, t2) {
  8725. this._box_0 = t0;
  8726. this.$this = t1;
  8727. this.start = t2;
  8728. },
  8729. StylesheetParser_expression_resolveOneOperation0: function StylesheetParser_expression_resolveOneOperation0(t0, t1) {
  8730. this._box_0 = t0;
  8731. this.$this = t1;
  8732. },
  8733. StylesheetParser_expression_resolveOperations0: function StylesheetParser_expression_resolveOperations0(t0, t1) {
  8734. this._box_0 = t0;
  8735. this.resolveOneOperation = t1;
  8736. },
  8737. StylesheetParser_expression_addSingleExpression0: function StylesheetParser_expression_addSingleExpression0(t0, t1, t2, t3) {
  8738. var _ = this;
  8739. _._box_0 = t0;
  8740. _.$this = t1;
  8741. _.resetState = t2;
  8742. _.resolveOperations = t3;
  8743. },
  8744. StylesheetParser_expression_addOperator0: function StylesheetParser_expression_addOperator0(t0, t1, t2) {
  8745. this._box_0 = t0;
  8746. this.$this = t1;
  8747. this.resolveOneOperation = t2;
  8748. },
  8749. StylesheetParser_expression_resolveSpaceExpressions0: function StylesheetParser_expression_resolveSpaceExpressions0(t0, t1) {
  8750. this._box_0 = t0;
  8751. this.resolveOperations = t1;
  8752. },
  8753. StylesheetParser__expressionUntilComma_closure0: function StylesheetParser__expressionUntilComma_closure0(t0) {
  8754. this.$this = t0;
  8755. },
  8756. StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
  8757. },
  8758. StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
  8759. },
  8760. StylesheetParser_identifierLike_closure0: function StylesheetParser_identifierLike_closure0(t0, t1) {
  8761. this.$this = t0;
  8762. this.start = t1;
  8763. },
  8764. StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
  8765. this.$this = t0;
  8766. },
  8767. StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
  8768. this.$this = t0;
  8769. this.start = t1;
  8770. },
  8771. Stylesheet$0: function(children, span, plainCss) {
  8772. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_UseRule_2),
  8773. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ForwardRule_2),
  8774. t3 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  8775. t4 = C.JSArray_methods.any$1(t3, new M.ParentStatement_closure0());
  8776. t1 = new V.Stylesheet0(span, plainCss, t1, t2, t3, t4);
  8777. t1.Stylesheet$3$plainCss0(children, span, plainCss);
  8778. return t1;
  8779. },
  8780. Stylesheet_Stylesheet$parse0: function(contents, syntax, logger, url) {
  8781. var t1, t2;
  8782. switch (syntax) {
  8783. case C.Syntax_Sass0:
  8784. t1 = S.SpanScanner$(contents, url);
  8785. t2 = logger == null ? C.C_StderrLogger : logger;
  8786. return new U.SassParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
  8787. case C.Syntax_SCSS0:
  8788. return L.ScssParser$0(contents, logger, url).parse$0();
  8789. case C.Syntax_CSS0:
  8790. t1 = S.SpanScanner$(contents, url);
  8791. t2 = logger == null ? C.C_StderrLogger : logger;
  8792. return new Q.CssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2).parse$0();
  8793. default:
  8794. throw H.wrapException(P.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + "."));
  8795. }
  8796. },
  8797. Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
  8798. var _ = this;
  8799. _.span = t0;
  8800. _.plainCss = t1;
  8801. _._stylesheet1$_uses = t2;
  8802. _._stylesheet1$_forwards = t3;
  8803. _.children = t4;
  8804. _.hasDeclarations = t5;
  8805. }
  8806. },
  8807. G = {Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  8808. var _ = this;
  8809. _.name = t0;
  8810. _.abbr = t1;
  8811. _.help = t2;
  8812. _.valueHelp = t3;
  8813. _.allowed = t4;
  8814. _.allowedHelp = t5;
  8815. _.defaultsTo = t6;
  8816. _.negatable = t7;
  8817. _.callback = t8;
  8818. _.type = t9;
  8819. _.splitCommas = t10;
  8820. _.hide = t11;
  8821. }, OptionType: function OptionType(t0) {
  8822. this.name = t0;
  8823. },
  8824. Parser$: function(commandName, grammar, args, $parent, rest) {
  8825. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  8826. if (rest != null)
  8827. C.JSArray_methods.addAll$1(t1, rest);
  8828. return new G.Parser0(commandName, $parent, grammar, args, t1, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.dynamic));
  8829. },
  8830. _isLetterOrDigit: function(codeUnit) {
  8831. var t1;
  8832. if (!(codeUnit >= 65 && codeUnit <= 90))
  8833. if (!(codeUnit >= 97 && codeUnit <= 122))
  8834. t1 = codeUnit >= 48 && codeUnit <= 57;
  8835. else
  8836. t1 = true;
  8837. else
  8838. t1 = true;
  8839. return t1;
  8840. },
  8841. Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
  8842. var _ = this;
  8843. _.commandName = t0;
  8844. _.parent = t1;
  8845. _.grammar = t2;
  8846. _.args = t3;
  8847. _.rest = t4;
  8848. _.results = t5;
  8849. },
  8850. Parser_parse_closure: function Parser_parse_closure(t0) {
  8851. this.$this = t0;
  8852. },
  8853. Parser_setOption_closure: function Parser_setOption_closure() {
  8854. },
  8855. Usage: function Usage(t0, t1) {
  8856. var _ = this;
  8857. _.optionsAndSeparators = t0;
  8858. _.buffer = null;
  8859. _.currentColumn = 0;
  8860. _.columnWidths = null;
  8861. _.newlinesNeeded = _.numHelpLines = 0;
  8862. _.lineLength = t1;
  8863. },
  8864. Usage_generate_closure: function Usage_generate_closure() {
  8865. },
  8866. Usage_buildAllowedList_closure: function Usage_buildAllowedList_closure(t0) {
  8867. this.option = t0;
  8868. },
  8869. StreamQueue: function StreamQueue(t0, t1, t2, t3) {
  8870. var _ = this;
  8871. _._stream_queue$_source = t0;
  8872. _._stream_queue$_subscription = null;
  8873. _._isDone = false;
  8874. _._eventsReceived = 0;
  8875. _._eventQueue = t1;
  8876. _._requestQueue = t2;
  8877. _.$ti = t3;
  8878. },
  8879. StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
  8880. this.$this = t0;
  8881. },
  8882. StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
  8883. this.$this = t0;
  8884. },
  8885. StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
  8886. this.$this = t0;
  8887. },
  8888. _NextRequest: function _NextRequest(t0, t1) {
  8889. this._completer = t0;
  8890. this.$ti = t1;
  8891. },
  8892. ModifiableCssMediaRule$: function(queries, span) {
  8893. var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery),
  8894. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  8895. if (J.get$isEmpty$asx(queries))
  8896. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8897. return new G.ModifiableCssMediaRule(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
  8898. },
  8899. ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
  8900. var _ = this;
  8901. _.queries = t0;
  8902. _.span = t1;
  8903. _.children = t2;
  8904. _._children = t3;
  8905. _._indexInParent = _._parent = null;
  8906. _.isGroupEnd = false;
  8907. },
  8908. MediaRule$: function(query, children, span) {
  8909. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8910. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  8911. return new G.MediaRule(query, span, t1, t2);
  8912. },
  8913. MediaRule: function MediaRule(t0, t1, t2, t3) {
  8914. var _ = this;
  8915. _.query = t0;
  8916. _.span = t1;
  8917. _.children = t2;
  8918. _.hasDeclarations = t3;
  8919. },
  8920. WhileRule$: function(condition, children, span) {
  8921. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  8922. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  8923. return new G.WhileRule(condition, span, t1, t2);
  8924. },
  8925. WhileRule: function WhileRule(t0, t1, t2, t3) {
  8926. var _ = this;
  8927. _.condition = t0;
  8928. _.span = t1;
  8929. _.children = t2;
  8930. _.hasDeclarations = t3;
  8931. },
  8932. Parser_isIdentifier: function(text) {
  8933. var t1, t2, exception, logger = null;
  8934. try {
  8935. t1 = logger;
  8936. t2 = S.SpanScanner$(text, null);
  8937. new G.Parser(t2, t1 == null ? C.StderrLogger_false : t1)._parseIdentifier$0();
  8938. return true;
  8939. } catch (exception) {
  8940. if (H.unwrapException(exception) instanceof E.SassFormatException)
  8941. return false;
  8942. else
  8943. throw exception;
  8944. }
  8945. },
  8946. Parser: function Parser(t0, t1) {
  8947. this.scanner = t0;
  8948. this.logger = t1;
  8949. },
  8950. Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
  8951. this.$this = t0;
  8952. },
  8953. Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
  8954. this.caseSensitive = t0;
  8955. this.char = t1;
  8956. },
  8957. FixedLengthListBuilder: function FixedLengthListBuilder(t0, t1) {
  8958. this._list = t0;
  8959. this._fixed_length_list_builder$_index = 0;
  8960. this.$ti = t1;
  8961. },
  8962. SourceSpanFormatException$: function(message, span, source) {
  8963. return new G.SourceSpanFormatException(source, message, span);
  8964. },
  8965. SourceSpanException: function SourceSpanException() {
  8966. },
  8967. SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
  8968. this.source = t0;
  8969. this._span_exception$_message = t1;
  8970. this._span = t2;
  8971. },
  8972. FixedLengthListBuilder0: function FixedLengthListBuilder0(t0, t1) {
  8973. this._fixed_length_list_builder0$_list = t0;
  8974. this._fixed_length_list_builder0$_index = 0;
  8975. this.$ti = t1;
  8976. },
  8977. ModifiableCssMediaRule$0: function(queries, span) {
  8978. var t1 = P.List_List$unmodifiable(queries, type$.legacy_CssMediaQuery_2),
  8979. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  8980. if (J.get$isEmpty$asx(queries))
  8981. H.throwExpression(P.ArgumentError$value(queries, "queries", "may not be empty."));
  8982. return new G.ModifiableCssMediaRule0(t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
  8983. },
  8984. ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
  8985. var _ = this;
  8986. _.queries = t0;
  8987. _.span = t1;
  8988. _.children = t2;
  8989. _._node2$_children = t3;
  8990. _._node2$_indexInParent = _._node2$_parent = null;
  8991. _.isGroupEnd = false;
  8992. },
  8993. MediaRule$0: function(query, children, span) {
  8994. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  8995. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  8996. return new G.MediaRule0(query, span, t1, t2);
  8997. },
  8998. MediaRule0: function MediaRule0(t0, t1, t2, t3) {
  8999. var _ = this;
  9000. _.query = t0;
  9001. _.span = t1;
  9002. _.children = t2;
  9003. _.hasDeclarations = t3;
  9004. },
  9005. Parser_isIdentifier0: function(text) {
  9006. var t1, t2, exception, logger = null;
  9007. try {
  9008. t1 = logger;
  9009. t2 = S.SpanScanner$(text, null);
  9010. new G.Parser1(t2, t1 == null ? C.C_StderrLogger : t1)._parser$_parseIdentifier$0();
  9011. return true;
  9012. } catch (exception) {
  9013. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  9014. return false;
  9015. else
  9016. throw exception;
  9017. }
  9018. },
  9019. Parser1: function Parser1(t0, t1) {
  9020. this.scanner = t0;
  9021. this.logger = t1;
  9022. },
  9023. Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
  9024. this.$this = t0;
  9025. },
  9026. Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
  9027. this.caseSensitive = t0;
  9028. this.char = t1;
  9029. },
  9030. Types: function Types() {
  9031. },
  9032. WhileRule$0: function(condition, children, span) {
  9033. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  9034. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  9035. return new G.WhileRule0(condition, span, t1, t2);
  9036. },
  9037. WhileRule0: function WhileRule0(t0, t1, t2, t3) {
  9038. var _ = this;
  9039. _.condition = t0;
  9040. _.span = t1;
  9041. _.children = t2;
  9042. _.hasDeclarations = t3;
  9043. }
  9044. },
  9045. F = {ValueResult: function ValueResult(t0, t1) {
  9046. this.value = t0;
  9047. this.$ti = t1;
  9048. }, ConsoleModule: function ConsoleModule() {
  9049. }, Console: function Console() {
  9050. }, EventEmitter: function EventEmitter() {
  9051. }, UrlStyle: function UrlStyle(t0, t1, t2, t3) {
  9052. var _ = this;
  9053. _.separatorPattern = t0;
  9054. _.needsSeparatorPattern = t1;
  9055. _.rootPattern = t2;
  9056. _.relativeRootPattern = t3;
  9057. }, CssMediaQuery: function CssMediaQuery(t0, t1, t2) {
  9058. this.modifier = t0;
  9059. this.type = t1;
  9060. this.features = t2;
  9061. }, _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
  9062. this._media_query$_name = t0;
  9063. }, MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
  9064. this.query = t0;
  9065. },
  9066. ModifiableCssImport$: function(url, span, media, supports) {
  9067. return new F.ModifiableCssImport(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery), span);
  9068. },
  9069. ModifiableCssImport: function ModifiableCssImport(t0, t1, t2, t3) {
  9070. var _ = this;
  9071. _.url = t0;
  9072. _.supports = t1;
  9073. _.media = t2;
  9074. _.span = t3;
  9075. _._indexInParent = _._parent = null;
  9076. _.isGroupEnd = false;
  9077. },
  9078. ModifiableCssValue: function ModifiableCssValue(t0, t1, t2) {
  9079. this.value = t0;
  9080. this.span = t1;
  9081. this.$ti = t2;
  9082. },
  9083. CssValue: function CssValue(t0, t1, t2) {
  9084. this.value = t0;
  9085. this.span = t1;
  9086. this.$ti = t2;
  9087. },
  9088. FunctionExpression: function FunctionExpression(t0, t1, t2, t3) {
  9089. var _ = this;
  9090. _.namespace = t0;
  9091. _.name = t1;
  9092. _.$arguments = t2;
  9093. _.span = t3;
  9094. },
  9095. ValueExpression: function ValueExpression(t0, t1) {
  9096. this.value = t0;
  9097. this.span = t1;
  9098. },
  9099. SupportsFunction: function SupportsFunction(t0, t1, t2) {
  9100. this.name = t0;
  9101. this.$arguments = t1;
  9102. this.span = t2;
  9103. },
  9104. TypeSelector: function TypeSelector(t0) {
  9105. this.name = t0;
  9106. },
  9107. Extender__extendOrReplace: function(selector, source, targets, mode) {
  9108. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  9109. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  9110. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  9111. complex = t2[_i];
  9112. if (complex._maxSpecificity == null)
  9113. complex._computeSpecificity$0();
  9114. t4 = complex._maxSpecificity;
  9115. t1.$indexSet(0, complex, new S.Extension(complex, _null, t4, true, false, _null, _null, _null));
  9116. }
  9117. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector);
  9118. for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector, _i = 0; _i < t4; ++_i) {
  9119. complex = t3[_i];
  9120. t6 = complex.components;
  9121. if (t6.length !== 1)
  9122. t2.push(H.throwExpression(E.SassScriptException$("Can't extend complex selector " + H.S(complex) + ".")));
  9123. else
  9124. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  9125. }
  9126. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension);
  9127. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  9128. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  9129. t3.$indexSet(0, t5[_i0], t1);
  9130. extender = F.Extender$_mode(mode);
  9131. if (!selector.get$isInvisible())
  9132. extender._originals.addAll$1(0, selector.components);
  9133. return extender._extendList$3(selector, t3, _null);
  9134. },
  9135. Extender$: function() {
  9136. var t1 = type$.legacy_SimpleSelector;
  9137. return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), C.ExtendMode_normal);
  9138. },
  9139. Extender$_mode: function(_mode) {
  9140. var t1 = type$.legacy_SimpleSelector;
  9141. return new F.Extender(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList, type$.legacy_List_legacy_CssMediaQuery), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector), _mode);
  9142. },
  9143. Extender: function Extender(t0, t1, t2, t3, t4, t5, t6) {
  9144. var _ = this;
  9145. _._selectors = t0;
  9146. _._extensions = t1;
  9147. _._extensionsByExtender = t2;
  9148. _._mediaContexts = t3;
  9149. _._sourceSpecificity = t4;
  9150. _._originals = t5;
  9151. _._mode = t6;
  9152. },
  9153. Extender_extensionsWhereTarget_closure: function Extender_extensionsWhereTarget_closure() {
  9154. },
  9155. Extender__registerSelector_closure: function Extender__registerSelector_closure() {
  9156. },
  9157. Extender_addExtension_closure: function Extender_addExtension_closure() {
  9158. },
  9159. Extender_addExtension_closure0: function Extender_addExtension_closure0() {
  9160. },
  9161. Extender_addExtension_closure1: function Extender_addExtension_closure1(t0) {
  9162. this.complex = t0;
  9163. },
  9164. Extender__extendExistingExtensions_closure: function Extender__extendExistingExtensions_closure() {
  9165. },
  9166. Extender__extendExistingExtensions_closure0: function Extender__extendExistingExtensions_closure0() {
  9167. },
  9168. Extender_addExtensions_closure: function Extender_addExtensions_closure(t0, t1, t2) {
  9169. this._box_0 = t0;
  9170. this.$this = t1;
  9171. this.extender = t2;
  9172. },
  9173. Extender_addExtensions__closure: function Extender_addExtensions__closure(t0, t1, t2, t3, t4) {
  9174. var _ = this;
  9175. _._box_0 = t0;
  9176. _.existingSources = t1;
  9177. _.extensionsForTarget = t2;
  9178. _.selectorsForTarget = t3;
  9179. _.target = t4;
  9180. },
  9181. Extender_addExtensions___closure: function Extender_addExtensions___closure() {
  9182. },
  9183. Extender_addExtensions___closure0: function Extender_addExtensions___closure0(t0) {
  9184. this.extension = t0;
  9185. },
  9186. Extender__extendList_closure: function Extender__extendList_closure() {
  9187. },
  9188. Extender__extendComplex_closure: function Extender__extendComplex_closure(t0) {
  9189. this.complex = t0;
  9190. },
  9191. Extender__extendComplex_closure0: function Extender__extendComplex_closure0(t0, t1, t2) {
  9192. this._box_0 = t0;
  9193. this.$this = t1;
  9194. this.complex = t2;
  9195. },
  9196. Extender__extendComplex__closure: function Extender__extendComplex__closure() {
  9197. },
  9198. Extender__extendComplex__closure0: function Extender__extendComplex__closure0(t0, t1, t2, t3) {
  9199. var _ = this;
  9200. _._box_0 = t0;
  9201. _.$this = t1;
  9202. _.complex = t2;
  9203. _.path = t3;
  9204. },
  9205. Extender__extendComplex___closure: function Extender__extendComplex___closure() {
  9206. },
  9207. Extender__extendCompound_closure: function Extender__extendCompound_closure(t0) {
  9208. this.mediaQueryContext = t0;
  9209. },
  9210. Extender__extendCompound_closure0: function Extender__extendCompound_closure0(t0, t1) {
  9211. this._box_1 = t0;
  9212. this.mediaQueryContext = t1;
  9213. },
  9214. Extender__extendCompound__closure: function Extender__extendCompound__closure() {
  9215. },
  9216. Extender__extendCompound__closure0: function Extender__extendCompound__closure0(t0) {
  9217. this._box_0 = t0;
  9218. },
  9219. Extender__extendCompound_closure1: function Extender__extendCompound_closure1() {
  9220. },
  9221. Extender__extendCompound_closure2: function Extender__extendCompound_closure2(t0) {
  9222. this.original = t0;
  9223. },
  9224. Extender__extendCompound_closure3: function Extender__extendCompound_closure3() {
  9225. },
  9226. Extender__extendCompound_closure4: function Extender__extendCompound_closure4() {
  9227. },
  9228. Extender__extendSimple_withoutPseudo: function Extender__extendSimple_withoutPseudo(t0, t1, t2) {
  9229. this.$this = t0;
  9230. this.extensions = t1;
  9231. this.targetsUsed = t2;
  9232. },
  9233. Extender__extendSimple_closure: function Extender__extendSimple_closure(t0, t1) {
  9234. this.$this = t0;
  9235. this.withoutPseudo = t1;
  9236. },
  9237. Extender__extendPseudo_closure: function Extender__extendPseudo_closure() {
  9238. },
  9239. Extender__extendPseudo_closure0: function Extender__extendPseudo_closure0() {
  9240. },
  9241. Extender__extendPseudo_closure1: function Extender__extendPseudo_closure1() {
  9242. },
  9243. Extender__extendPseudo_closure2: function Extender__extendPseudo_closure2(t0) {
  9244. this.pseudo = t0;
  9245. },
  9246. Extender__extendPseudo_closure3: function Extender__extendPseudo_closure3(t0) {
  9247. this.pseudo = t0;
  9248. },
  9249. Extender__trim_closure: function Extender__trim_closure(t0, t1) {
  9250. this._box_0 = t0;
  9251. this.complex1 = t1;
  9252. },
  9253. Extender__trim_closure0: function Extender__trim_closure0(t0, t1) {
  9254. this._box_0 = t0;
  9255. this.complex1 = t1;
  9256. },
  9257. Extender_clone_closure: function Extender_clone_closure(t0, t1, t2, t3) {
  9258. var _ = this;
  9259. _.$this = t0;
  9260. _.newSelectors = t1;
  9261. _.oldToNewSelectors = t2;
  9262. _.newMediaContexts = t3;
  9263. },
  9264. FilesystemImporter: function FilesystemImporter(t0) {
  9265. this._loadPath = t0;
  9266. },
  9267. _realCasePath: function(path) {
  9268. var t1, realCasePath, t2, _i, component, matches, _null = null;
  9269. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  9270. return path;
  9271. t1 = $.$get$context();
  9272. realCasePath = J.getInterceptor$s(path).substring$2(path, 0, t1.style.rootLength$1(path));
  9273. for (t1 = t1.split$1(0, C.JSString_methods.substring$1(path, realCasePath.length)), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  9274. component = t1[_i];
  9275. matches = J.where$1$ax(B.listDir(realCasePath, false), new F._realCasePath_closure(component)).toList$0(0);
  9276. realCasePath = matches.length !== 1 ? $.$get$context().join$8(0, realCasePath, component, _null, _null, _null, _null, _null, _null) : matches[0];
  9277. }
  9278. return realCasePath;
  9279. },
  9280. _realCasePath_closure: function _realCasePath_closure(t0) {
  9281. this.component = t0;
  9282. },
  9283. _QuietLogger: function _QuietLogger() {
  9284. },
  9285. JSFunction: function JSFunction() {
  9286. },
  9287. NodeImporterResult: function NodeImporterResult() {
  9288. },
  9289. MediaQueryParser$: function(contents, logger, url) {
  9290. var t1 = S.SpanScanner$(contents, url);
  9291. return new F.MediaQueryParser(t1, logger);
  9292. },
  9293. MediaQueryParser: function MediaQueryParser(t0, t1) {
  9294. this.scanner = t0;
  9295. this.logger = t1;
  9296. },
  9297. MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
  9298. this.$this = t0;
  9299. },
  9300. PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
  9301. this._prefixed_map_view$_map = t0;
  9302. this._prefix = t1;
  9303. this.$ti = t2;
  9304. },
  9305. _PrefixedKeys: function _PrefixedKeys(t0) {
  9306. this._view = t0;
  9307. },
  9308. _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
  9309. this.$this = t0;
  9310. },
  9311. Value: function Value() {
  9312. },
  9313. SassFunction: function SassFunction(t0) {
  9314. this.callable = t0;
  9315. },
  9316. _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1) {
  9317. this._usesAndForwards = t0;
  9318. this._imports = t1;
  9319. },
  9320. Extender__extendOrReplace0: function(selector, source, targets, mode) {
  9321. var t2, t3, _i, complex, t4, t5, t6, _i0, extender, _null = null,
  9322. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  9323. for (t2 = source.components, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  9324. complex = t2[_i];
  9325. if (complex._complex0$_maxSpecificity == null)
  9326. complex._complex0$_computeSpecificity$0();
  9327. t4 = complex._complex0$_maxSpecificity;
  9328. t1.$indexSet(0, complex, new S.Extension0(complex, _null, t4, true, false, _null, _null, _null));
  9329. }
  9330. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CompoundSelector_2);
  9331. for (t3 = targets.components, t4 = t3.length, t5 = type$.legacy_CompoundSelector_2, _i = 0; _i < t4; ++_i) {
  9332. complex = t3[_i];
  9333. t6 = complex.components;
  9334. if (t6.length !== 1)
  9335. t2.push(H.throwExpression(E.SassScriptException$0("Can't extend complex selector " + H.S(complex) + ".")));
  9336. else
  9337. t2.push(t5._as(C.JSArray_methods.get$first(t6)));
  9338. }
  9339. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2);
  9340. for (t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  9341. for (t5 = t2[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  9342. t3.$indexSet(0, t5[_i0], t1);
  9343. extender = F.Extender$_mode0(mode);
  9344. if (!selector.get$isInvisible())
  9345. extender._extender$_originals.addAll$1(0, selector.components);
  9346. return extender._extender$_extendList$3(selector, t3, _null);
  9347. },
  9348. Extender$0: function() {
  9349. var t1 = type$.legacy_SimpleSelector_2;
  9350. return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), C.ExtendMode_normal0);
  9351. },
  9352. Extender$_mode0: function(_mode) {
  9353. var t1 = type$.legacy_SimpleSelector_2;
  9354. return new F.Extender0(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_List_legacy_Extension_2), P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2, type$.legacy_List_legacy_CssMediaQuery_2), P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int), new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2), _mode);
  9355. },
  9356. Extender0: function Extender0(t0, t1, t2, t3, t4, t5, t6) {
  9357. var _ = this;
  9358. _._extender$_selectors = t0;
  9359. _._extender$_extensions = t1;
  9360. _._extender$_extensionsByExtender = t2;
  9361. _._extender$_mediaContexts = t3;
  9362. _._extender$_sourceSpecificity = t4;
  9363. _._extender$_originals = t5;
  9364. _._extender$_mode = t6;
  9365. },
  9366. Extender_extensionsWhereTarget_closure0: function Extender_extensionsWhereTarget_closure0() {
  9367. },
  9368. Extender__registerSelector_closure0: function Extender__registerSelector_closure0() {
  9369. },
  9370. Extender_addExtension_closure2: function Extender_addExtension_closure2() {
  9371. },
  9372. Extender_addExtension_closure3: function Extender_addExtension_closure3() {
  9373. },
  9374. Extender_addExtension_closure4: function Extender_addExtension_closure4(t0) {
  9375. this.complex = t0;
  9376. },
  9377. Extender__extendExistingExtensions_closure1: function Extender__extendExistingExtensions_closure1() {
  9378. },
  9379. Extender__extendExistingExtensions_closure2: function Extender__extendExistingExtensions_closure2() {
  9380. },
  9381. Extender_addExtensions_closure0: function Extender_addExtensions_closure0(t0, t1, t2) {
  9382. this._box_0 = t0;
  9383. this.$this = t1;
  9384. this.extender = t2;
  9385. },
  9386. Extender_addExtensions__closure0: function Extender_addExtensions__closure0(t0, t1, t2, t3, t4) {
  9387. var _ = this;
  9388. _._box_0 = t0;
  9389. _.existingSources = t1;
  9390. _.extensionsForTarget = t2;
  9391. _.selectorsForTarget = t3;
  9392. _.target = t4;
  9393. },
  9394. Extender_addExtensions___closure1: function Extender_addExtensions___closure1() {
  9395. },
  9396. Extender_addExtensions___closure2: function Extender_addExtensions___closure2(t0) {
  9397. this.extension = t0;
  9398. },
  9399. Extender__extendList_closure0: function Extender__extendList_closure0() {
  9400. },
  9401. Extender__extendComplex_closure1: function Extender__extendComplex_closure1(t0) {
  9402. this.complex = t0;
  9403. },
  9404. Extender__extendComplex_closure2: function Extender__extendComplex_closure2(t0, t1, t2) {
  9405. this._box_0 = t0;
  9406. this.$this = t1;
  9407. this.complex = t2;
  9408. },
  9409. Extender__extendComplex__closure1: function Extender__extendComplex__closure1() {
  9410. },
  9411. Extender__extendComplex__closure2: function Extender__extendComplex__closure2(t0, t1, t2, t3) {
  9412. var _ = this;
  9413. _._box_0 = t0;
  9414. _.$this = t1;
  9415. _.complex = t2;
  9416. _.path = t3;
  9417. },
  9418. Extender__extendComplex___closure0: function Extender__extendComplex___closure0() {
  9419. },
  9420. Extender__extendCompound_closure5: function Extender__extendCompound_closure5(t0) {
  9421. this.mediaQueryContext = t0;
  9422. },
  9423. Extender__extendCompound_closure6: function Extender__extendCompound_closure6(t0, t1) {
  9424. this._box_1 = t0;
  9425. this.mediaQueryContext = t1;
  9426. },
  9427. Extender__extendCompound__closure1: function Extender__extendCompound__closure1() {
  9428. },
  9429. Extender__extendCompound__closure2: function Extender__extendCompound__closure2(t0) {
  9430. this._box_0 = t0;
  9431. },
  9432. Extender__extendCompound_closure7: function Extender__extendCompound_closure7() {
  9433. },
  9434. Extender__extendCompound_closure8: function Extender__extendCompound_closure8(t0) {
  9435. this.original = t0;
  9436. },
  9437. Extender__extendCompound_closure9: function Extender__extendCompound_closure9() {
  9438. },
  9439. Extender__extendCompound_closure10: function Extender__extendCompound_closure10() {
  9440. },
  9441. Extender__extendSimple_withoutPseudo0: function Extender__extendSimple_withoutPseudo0(t0, t1, t2) {
  9442. this.$this = t0;
  9443. this.extensions = t1;
  9444. this.targetsUsed = t2;
  9445. },
  9446. Extender__extendSimple_closure0: function Extender__extendSimple_closure0(t0, t1) {
  9447. this.$this = t0;
  9448. this.withoutPseudo = t1;
  9449. },
  9450. Extender__extendPseudo_closure4: function Extender__extendPseudo_closure4() {
  9451. },
  9452. Extender__extendPseudo_closure5: function Extender__extendPseudo_closure5() {
  9453. },
  9454. Extender__extendPseudo_closure6: function Extender__extendPseudo_closure6() {
  9455. },
  9456. Extender__extendPseudo_closure7: function Extender__extendPseudo_closure7(t0) {
  9457. this.pseudo = t0;
  9458. },
  9459. Extender__extendPseudo_closure8: function Extender__extendPseudo_closure8(t0) {
  9460. this.pseudo = t0;
  9461. },
  9462. Extender__trim_closure1: function Extender__trim_closure1(t0, t1) {
  9463. this._box_0 = t0;
  9464. this.complex1 = t1;
  9465. },
  9466. Extender__trim_closure2: function Extender__trim_closure2(t0, t1) {
  9467. this._box_0 = t0;
  9468. this.complex1 = t1;
  9469. },
  9470. Extender_clone_closure0: function Extender_clone_closure0(t0, t1, t2, t3) {
  9471. var _ = this;
  9472. _.$this = t0;
  9473. _.newSelectors = t1;
  9474. _.oldToNewSelectors = t2;
  9475. _.newMediaContexts = t3;
  9476. },
  9477. FilesystemImporter0: function FilesystemImporter0(t0) {
  9478. this._filesystem$_loadPath = t0;
  9479. },
  9480. FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3) {
  9481. var _ = this;
  9482. _.namespace = t0;
  9483. _.name = t1;
  9484. _.$arguments = t2;
  9485. _.span = t3;
  9486. },
  9487. JSFunction0: function JSFunction0() {
  9488. },
  9489. SupportsFunction0: function SupportsFunction0(t0, t1, t2) {
  9490. this.name = t0;
  9491. this.$arguments = t1;
  9492. this.span = t2;
  9493. },
  9494. SassFunction0: function SassFunction0(t0) {
  9495. this.callable = t0;
  9496. },
  9497. NodeImporter__addSassPath: function($async$includePaths) {
  9498. return P._makeSyncStarIterable(function() {
  9499. var includePaths = $async$includePaths;
  9500. var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath;
  9501. return function $async$NodeImporter__addSassPath($async$errorCode, $async$result) {
  9502. if ($async$errorCode === 1) {
  9503. $async$currentError = $async$result;
  9504. $async$goto = $async$handler;
  9505. }
  9506. while (true)
  9507. switch ($async$goto) {
  9508. case 0:
  9509. // Function start
  9510. $async$goto = 3;
  9511. return P._IterationMarker_yieldStar(includePaths);
  9512. case 3:
  9513. // after yield
  9514. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH);
  9515. if (sassPath == null) {
  9516. // goto return
  9517. $async$goto = 1;
  9518. break;
  9519. }
  9520. $async$goto = 4;
  9521. return P._IterationMarker_yieldStar(H.setRuntimeTypeInfo(sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":"), type$.JSArray_String));
  9522. case 4:
  9523. // after yield
  9524. case 1:
  9525. // return
  9526. return P._IterationMarker_endOfIteration();
  9527. case 2:
  9528. // rethrow
  9529. return P._IterationMarker_uncaughtError($async$currentError);
  9530. }
  9531. };
  9532. }, type$.legacy_String);
  9533. },
  9534. NodeImporter: function NodeImporter(t0, t1, t2) {
  9535. this._implementation$_context = t0;
  9536. this._includePaths = t1;
  9537. this._implementation$_importers = t2;
  9538. },
  9539. NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
  9540. this.path = t0;
  9541. },
  9542. ModifiableCssImport$0: function(url, span, media, supports) {
  9543. return new F.ModifiableCssImport0(url, supports, media == null ? null : P.List_List$unmodifiable(media, type$.legacy_CssMediaQuery_2), span);
  9544. },
  9545. ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2, t3) {
  9546. var _ = this;
  9547. _.url = t0;
  9548. _.supports = t1;
  9549. _.media = t2;
  9550. _.span = t3;
  9551. _._node2$_indexInParent = _._node2$_parent = null;
  9552. _.isGroupEnd = false;
  9553. },
  9554. NodeImporterResult0: function NodeImporterResult0() {
  9555. },
  9556. _realCasePath0: function(path) {
  9557. var t1, realCasePath, t2, _i, component, matches, _null = null;
  9558. if (!(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")))
  9559. return path;
  9560. t1 = $.$get$context();
  9561. realCasePath = J.getInterceptor$s(path).substring$2(path, 0, t1.style.rootLength$1(path));
  9562. for (t1 = t1.split$1(0, C.JSString_methods.substring$1(path, realCasePath.length)), t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  9563. component = t1[_i];
  9564. matches = J.where$1$ax(B.listDir0(realCasePath), new F._realCasePath_closure0(component)).toList$0(0);
  9565. realCasePath = matches.length !== 1 ? $.$get$context().join$8(0, realCasePath, component, _null, _null, _null, _null, _null, _null) : matches[0];
  9566. }
  9567. return realCasePath;
  9568. },
  9569. _realCasePath_closure0: function _realCasePath_closure0(t0) {
  9570. this.component = t0;
  9571. },
  9572. CssMediaQuery0: function CssMediaQuery0(t0, t1, t2) {
  9573. this.modifier = t0;
  9574. this.type = t1;
  9575. this.features = t2;
  9576. },
  9577. _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
  9578. this._media_query1$_name = t0;
  9579. },
  9580. MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
  9581. this.query = t0;
  9582. },
  9583. MediaQueryParser$0: function(contents, logger, url) {
  9584. var t1 = S.SpanScanner$(contents, url);
  9585. return new F.MediaQueryParser0(t1, logger);
  9586. },
  9587. MediaQueryParser0: function MediaQueryParser0(t0, t1) {
  9588. this.scanner = t0;
  9589. this.logger = t1;
  9590. },
  9591. MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
  9592. this.$this = t0;
  9593. },
  9594. PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
  9595. this._prefixed_map_view0$_map = t0;
  9596. this._prefixed_map_view0$_prefix = t1;
  9597. this.$ti = t2;
  9598. },
  9599. _PrefixedKeys0: function _PrefixedKeys0(t0) {
  9600. this._prefixed_map_view0$_view = t0;
  9601. },
  9602. _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
  9603. this.$this = t0;
  9604. },
  9605. TypeSelector0: function TypeSelector0(t0) {
  9606. this.name = t0;
  9607. },
  9608. CssValue0: function CssValue0(t0, t1, t2) {
  9609. this.value = t0;
  9610. this.span = t1;
  9611. this.$ti = t2;
  9612. },
  9613. ValueExpression0: function ValueExpression0(t0, t1) {
  9614. this.value = t0;
  9615. this.span = t1;
  9616. },
  9617. ModifiableCssValue0: function ModifiableCssValue0(t0, t1, t2) {
  9618. this.value = t0;
  9619. this.span = t1;
  9620. this.$ti = t2;
  9621. },
  9622. Value0: function Value0() {
  9623. },
  9624. unwrapValue: function(object) {
  9625. var value, t1;
  9626. if (object != null) {
  9627. if (object instanceof F.Value0)
  9628. return object;
  9629. value = object.dartValue;
  9630. if (value != null && value instanceof F.Value0)
  9631. return value;
  9632. t1 = self.Error;
  9633. if (H._asBoolS($.$get$_jsInstanceOf().call$2(object, t1)))
  9634. throw H.wrapException(object);
  9635. }
  9636. throw H.wrapException(H.S(object) + " must be a Sass value type.");
  9637. },
  9638. wrapValue: function(value) {
  9639. if (value instanceof K.SassColor0)
  9640. return P.callConstructor($.$get$colorConstructor(), H.setRuntimeTypeInfo([null, null, null, null, value], type$.JSArray_legacy_Object));
  9641. if (value instanceof D.SassList0)
  9642. return P.callConstructor($.$get$listConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
  9643. if (value instanceof A.SassMap0)
  9644. return P.callConstructor($.$get$mapConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
  9645. if (value instanceof T.SassNumber0)
  9646. return P.callConstructor($.$get$numberConstructor(), H.setRuntimeTypeInfo([null, null, value], type$.JSArray_legacy_Object));
  9647. if (value instanceof D.SassString0)
  9648. return P.callConstructor($.$get$stringConstructor(), H.setRuntimeTypeInfo([null, value], type$.JSArray_legacy_Object));
  9649. return value;
  9650. }
  9651. },
  9652. Y = {StreamCompleter: function StreamCompleter(t0, t1) {
  9653. this._stream_completer$_stream = t0;
  9654. this.$ti = t1;
  9655. }, _CompleterStream: function _CompleterStream(t0) {
  9656. this._sourceStream = this._stream_completer$_controller = null;
  9657. this.$ti = t0;
  9658. }, Modules: function Modules() {
  9659. }, Module1: function Module1() {
  9660. }, Net: function Net() {
  9661. }, Socket: function Socket() {
  9662. }, NetAddress: function NetAddress() {
  9663. }, NetServer: function NetServer() {
  9664. },
  9665. ContentBlock$: function($arguments, children, span) {
  9666. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  9667. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  9668. return new Y.ContentBlock(null, $arguments, span, t1, t2);
  9669. },
  9670. ContentBlock: function ContentBlock(t0, t1, t2, t3, t4) {
  9671. var _ = this;
  9672. _.name = t0;
  9673. _.$arguments = t1;
  9674. _.span = t2;
  9675. _.children = t3;
  9676. _.hasDeclarations = t4;
  9677. },
  9678. WarnRule: function WarnRule(t0, t1) {
  9679. this.expression = t0;
  9680. this.span = t1;
  9681. },
  9682. SupportsAnything: function SupportsAnything(t0, t1) {
  9683. this.contents = t0;
  9684. this.span = t1;
  9685. },
  9686. unifyComplex: function(complexes) {
  9687. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  9688. t1 = J.getInterceptor$asx(complexes);
  9689. if (t1.get$length(complexes) === 1)
  9690. return complexes;
  9691. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  9692. base = J.get$last$ax(t2.get$current(t2));
  9693. if (base instanceof X.CompoundSelector)
  9694. if (unifiedBase == null)
  9695. unifiedBase = base.components;
  9696. else
  9697. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  9698. unifiedBase = t3[_i].unify$1(unifiedBase);
  9699. if (unifiedBase == null)
  9700. return null;
  9701. }
  9702. else
  9703. return null;
  9704. }
  9705. t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure(), type$.legacy_List_legacy_ComplexSelectorComponent);
  9706. complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  9707. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$(unifiedBase));
  9708. return Y.weave(complexesWithoutBases);
  9709. },
  9710. unifyCompound: function(compound1, compound2) {
  9711. var t1, result, _i;
  9712. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  9713. result = compound1[_i].unify$1(result);
  9714. if (result == null)
  9715. return null;
  9716. }
  9717. return X.CompoundSelector$(result);
  9718. },
  9719. unifyUniversalAndElement: function(selector1, selector2) {
  9720. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  9721. _s45_ = string$.must_b;
  9722. if (selector1 instanceof N.UniversalSelector) {
  9723. namespace1 = selector1.namespace;
  9724. name1 = _null;
  9725. } else if (selector1 instanceof F.TypeSelector) {
  9726. t1 = selector1.name;
  9727. namespace1 = t1.namespace;
  9728. name1 = t1.name;
  9729. } else
  9730. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  9731. if (selector2 instanceof N.UniversalSelector) {
  9732. namespace2 = selector2.namespace;
  9733. name2 = _null;
  9734. } else if (selector2 instanceof F.TypeSelector) {
  9735. t1 = selector2.name;
  9736. namespace2 = t1.namespace;
  9737. name2 = t1.name;
  9738. } else
  9739. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  9740. if (namespace1 == namespace2 || namespace2 === "*")
  9741. namespace = namespace1;
  9742. else {
  9743. if (namespace1 !== "*")
  9744. return _null;
  9745. namespace = namespace2;
  9746. }
  9747. if (name1 == name2 || name2 == null)
  9748. $name = name1;
  9749. else {
  9750. if (!(name1 == null || name1 === "*"))
  9751. return _null;
  9752. $name = name2;
  9753. }
  9754. return $name == null ? new N.UniversalSelector(namespace) : new F.TypeSelector(new D.QualifiedName($name, namespace));
  9755. },
  9756. weave: function(complexes) {
  9757. var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
  9758. t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent,
  9759. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  9760. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  9761. cur = t2.__internal$_current;
  9762. t3 = J.getInterceptor$asx(cur);
  9763. if (t3.get$isEmpty(cur))
  9764. continue;
  9765. target = t3.get$last(cur);
  9766. if (t3.get$length(cur) === 1) {
  9767. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  9768. J.add$1$ax(prefixes[_i], target);
  9769. continue;
  9770. }
  9771. parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
  9772. newPrefixes = H.setRuntimeTypeInfo([], t1);
  9773. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  9774. parentPrefixes = Y._weaveParents(prefixes[_i], parents);
  9775. if (parentPrefixes == null)
  9776. continue;
  9777. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  9778. t5 = t4.get$current(t4);
  9779. J.add$1$ax(t5, target);
  9780. newPrefixes.push(t5);
  9781. }
  9782. }
  9783. prefixes = newPrefixes;
  9784. }
  9785. return prefixes;
  9786. },
  9787. _weaveParents: function(parents1, parents2) {
  9788. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
  9789. t1 = type$.legacy_ComplexSelectorComponent,
  9790. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  9791. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  9792. initialCombinators = Y._mergeInitialCombinators(queue1, queue2);
  9793. if (initialCombinators == null)
  9794. return _null;
  9795. finalCombinators = Y._mergeFinalCombinators(queue1, queue2, _null);
  9796. if (finalCombinators == null)
  9797. return _null;
  9798. root1 = Y._firstIfRoot(queue1);
  9799. root2 = Y._firstIfRoot(queue2);
  9800. t1 = root1 != null;
  9801. if (t1 && root2 != null) {
  9802. root = Y.unifyCompound(root1.components, root2.components);
  9803. if (root == null)
  9804. return _null;
  9805. queue1.addFirst$1(root);
  9806. queue2.addFirst$1(root);
  9807. } else if (t1)
  9808. queue2.addFirst$1(root1);
  9809. else if (root2 != null)
  9810. queue1.addFirst$1(root2);
  9811. groups1 = Y._groupSelectors(queue1);
  9812. groups2 = Y._groupSelectors(queue2);
  9813. t1 = type$.legacy_List_legacy_ComplexSelectorComponent;
  9814. lcs = B.longestCommonSubsequence(groups2, groups1, new Y._weaveParents_closure(), t1);
  9815. t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent;
  9816. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent);
  9817. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  9818. group = lcs[_i];
  9819. t4 = Y._chunks(groups1, groups2, new Y._weaveParents_closure0(group), t1);
  9820. t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent*>*>");
  9821. choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure1(), t5), true, t5._eval$1("ListIterable.E")));
  9822. choices.push(H.setRuntimeTypeInfo([group], t2));
  9823. groups1.removeFirst$0();
  9824. groups2.removeFirst$0();
  9825. }
  9826. t2 = Y._chunks(groups1, groups2, new Y._weaveParents_closure2(), t1);
  9827. t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent*>*>");
  9828. choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure3(), t3), true, t3._eval$1("ListIterable.E")));
  9829. C.JSArray_methods.addAll$1(choices, finalCombinators);
  9830. return J.map$1$1$ax(Y.paths(new H.WhereIterable(choices, new Y._weaveParents_closure4(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent), type$.legacy_Iterable_legacy_ComplexSelectorComponent), new Y._weaveParents_closure5(), t1);
  9831. },
  9832. _firstIfRoot: function(queue) {
  9833. var first;
  9834. if (queue._collection$_head === queue._collection$_tail)
  9835. return null;
  9836. first = queue.get$first(queue);
  9837. if (first instanceof X.CompoundSelector) {
  9838. if (!Y._hasRoot(first))
  9839. return null;
  9840. queue.removeFirst$0();
  9841. return first;
  9842. } else
  9843. return null;
  9844. },
  9845. _mergeInitialCombinators: function(components1, components2) {
  9846. var t3, combinators2, lcs,
  9847. t1 = type$.JSArray_legacy_Combinator,
  9848. combinators1 = H.setRuntimeTypeInfo([], t1),
  9849. t2 = type$.legacy_Combinator;
  9850. while (true) {
  9851. if (!components1.get$isEmpty(components1)) {
  9852. t3 = components1._collection$_head;
  9853. if (t3 === components1._collection$_tail)
  9854. H.throwExpression(H.IterableElementError_noElement());
  9855. t3 = components1._collection$_table[t3] instanceof S.Combinator;
  9856. } else
  9857. t3 = false;
  9858. if (!t3)
  9859. break;
  9860. combinators1.push(t2._as(components1.removeFirst$0()));
  9861. }
  9862. combinators2 = H.setRuntimeTypeInfo([], t1);
  9863. while (true) {
  9864. if (!components2.get$isEmpty(components2)) {
  9865. t1 = components2._collection$_head;
  9866. if (t1 === components2._collection$_tail)
  9867. H.throwExpression(H.IterableElementError_noElement());
  9868. t1 = components2._collection$_table[t1] instanceof S.Combinator;
  9869. } else
  9870. t1 = false;
  9871. if (!t1)
  9872. break;
  9873. combinators2.push(t2._as(components2.removeFirst$0()));
  9874. }
  9875. lcs = B.longestCommonSubsequence(combinators1, combinators2, null, t2);
  9876. if (C.C_ListEquality.equals$2(0, lcs, combinators1))
  9877. return combinators2;
  9878. if (C.C_ListEquality.equals$2(0, lcs, combinators2))
  9879. return combinators1;
  9880. return null;
  9881. },
  9882. _mergeFinalCombinators: function(components1, components2, result) {
  9883. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  9884. if (result == null)
  9885. result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent);
  9886. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator))
  9887. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator);
  9888. else
  9889. t1 = false;
  9890. if (t1)
  9891. return result;
  9892. t1 = type$.JSArray_legacy_Combinator;
  9893. combinators1 = H.setRuntimeTypeInfo([], t1);
  9894. t2 = type$.legacy_Combinator;
  9895. while (true) {
  9896. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator))
  9897. break;
  9898. combinators1.push(t2._as(components1.removeLast$0(0)));
  9899. }
  9900. combinators2 = H.setRuntimeTypeInfo([], t1);
  9901. while (true) {
  9902. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator))
  9903. break;
  9904. combinators2.push(t2._as(components2.removeLast$0(0)));
  9905. }
  9906. t1 = combinators1.length;
  9907. if (t1 > 1 || combinators2.length > 1) {
  9908. lcs = B.longestCommonSubsequence(combinators1, combinators2, _null, t2);
  9909. if (C.C_ListEquality.equals$2(0, lcs, combinators1))
  9910. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9911. else if (C.C_ListEquality.equals$2(0, lcs, combinators2))
  9912. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator), true, type$.legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9913. else
  9914. return _null;
  9915. return result;
  9916. }
  9917. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  9918. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  9919. t1 = combinator1 != null;
  9920. if (t1 && combinator2 != null) {
  9921. t1 = type$.legacy_CompoundSelector;
  9922. compound1 = t1._as(components1.removeLast$0(0));
  9923. compound2 = t1._as(components2.removeLast$0(0));
  9924. t1 = combinator1 === C.Combinator_CzM;
  9925. if (t1 && combinator2 === C.Combinator_CzM) {
  9926. compound1.toString;
  9927. if (Y.compoundIsSuperselector(compound1, compound2, _null))
  9928. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9929. else {
  9930. compound2.toString;
  9931. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  9932. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  9933. if (Y.compoundIsSuperselector(compound2, compound1, _null))
  9934. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM], t1)], t2));
  9935. else {
  9936. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM, compound2, C.Combinator_CzM], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM, compound1, C.Combinator_CzM], t1)], t2);
  9937. unified = Y.unifyCompound(compound1.components, compound2.components);
  9938. if (unified != null)
  9939. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM], t1));
  9940. result.addFirst$1(choices);
  9941. }
  9942. }
  9943. } else {
  9944. if (!(t1 && combinator2 === C.Combinator_uzg))
  9945. t2 = combinator1 === C.Combinator_uzg && combinator2 === C.Combinator_CzM;
  9946. else
  9947. t2 = true;
  9948. if (t2) {
  9949. followingSiblingSelector = t1 ? compound1 : compound2;
  9950. nextSiblingSelector = t1 ? compound2 : compound1;
  9951. followingSiblingSelector.toString;
  9952. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  9953. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  9954. if (Y.compoundIsSuperselector(followingSiblingSelector, nextSiblingSelector, _null))
  9955. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg], t1)], t2));
  9956. else {
  9957. unified = Y.unifyCompound(compound1.components, compound2.components);
  9958. t2 = H.setRuntimeTypeInfo([], t2);
  9959. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM, nextSiblingSelector, C.Combinator_uzg], t1));
  9960. if (unified != null)
  9961. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg], t1));
  9962. result.addFirst$1(t2);
  9963. }
  9964. } else {
  9965. if (combinator1 === C.Combinator_sgq)
  9966. t2 = combinator2 === C.Combinator_uzg || combinator2 === C.Combinator_CzM;
  9967. else
  9968. t2 = false;
  9969. if (t2) {
  9970. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9971. components1._add$1(compound1);
  9972. components1._add$1(C.Combinator_sgq);
  9973. } else {
  9974. if (combinator2 === C.Combinator_sgq)
  9975. t1 = combinator1 === C.Combinator_uzg || t1;
  9976. else
  9977. t1 = false;
  9978. if (t1) {
  9979. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9980. components2._add$1(compound2);
  9981. components2._add$1(C.Combinator_sgq);
  9982. } else if (combinator1 === combinator2) {
  9983. unified = Y.unifyCompound(compound1.components, compound2.components);
  9984. if (unified == null)
  9985. return _null;
  9986. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  9987. } else
  9988. return _null;
  9989. }
  9990. }
  9991. }
  9992. return Y._mergeFinalCombinators(components1, components2, result);
  9993. } else if (t1) {
  9994. if (combinator1 === C.Combinator_sgq)
  9995. if (!components2.get$isEmpty(components2)) {
  9996. t1 = type$.legacy_CompoundSelector;
  9997. t2 = t1._as(components2.get$last(components2));
  9998. t1 = t1._as(components1.get$last(components1));
  9999. t2.toString;
  10000. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  10001. } else
  10002. t1 = false;
  10003. else
  10004. t1 = false;
  10005. if (t1)
  10006. components2.removeLast$0(0);
  10007. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  10008. return Y._mergeFinalCombinators(components1, components2, result);
  10009. } else {
  10010. if (combinator2 === C.Combinator_sgq)
  10011. if (!components1.get$isEmpty(components1)) {
  10012. t1 = type$.legacy_CompoundSelector;
  10013. t2 = t1._as(components1.get$last(components1));
  10014. t1 = t1._as(components2.get$last(components2));
  10015. t2.toString;
  10016. t1 = Y.compoundIsSuperselector(t2, t1, _null);
  10017. } else
  10018. t1 = false;
  10019. else
  10020. t1 = false;
  10021. if (t1)
  10022. components1.removeLast$0(0);
  10023. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  10024. return Y._mergeFinalCombinators(components1, components2, result);
  10025. }
  10026. },
  10027. _mustUnify: function(complex1, complex2) {
  10028. var t2, t3, t4,
  10029. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector);
  10030. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  10031. t3 = t2.get$current(t2);
  10032. if (t3 instanceof X.CompoundSelector)
  10033. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions___isUnique$closure()); t4.moveNext$0();)
  10034. t1.add$1(0, t3.get$current(t3));
  10035. }
  10036. if (t1._collection$_length === 0)
  10037. return false;
  10038. return J.any$1$ax(complex2, new Y._mustUnify_closure(t1));
  10039. },
  10040. _isUnique: function(simple) {
  10041. var t1;
  10042. if (!(simple instanceof N.IDSelector))
  10043. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  10044. else
  10045. t1 = true;
  10046. return t1;
  10047. },
  10048. _chunks: function(queue1, queue2, done, $T) {
  10049. var chunk2, t2, t3, _i,
  10050. t1 = $T._eval$1("JSArray<0*>"),
  10051. chunk1 = H.setRuntimeTypeInfo([], t1);
  10052. for (; !done.call$1(queue1);)
  10053. chunk1.push(queue1.removeFirst$0());
  10054. chunk2 = H.setRuntimeTypeInfo([], t1);
  10055. for (; !done.call$1(queue2);)
  10056. chunk2.push(queue2.removeFirst$0());
  10057. t2 = chunk1.length === 0;
  10058. if (t2 && chunk2.length === 0)
  10059. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0*>*>"));
  10060. if (t2)
  10061. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0*>*>"));
  10062. if (chunk2.length === 0)
  10063. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0*>*>"));
  10064. t2 = H.setRuntimeTypeInfo([], t1);
  10065. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  10066. t2.push(chunk1[_i]);
  10067. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  10068. t2.push(chunk2[_i]);
  10069. t1 = H.setRuntimeTypeInfo([], t1);
  10070. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  10071. t1.push(chunk2[_i]);
  10072. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  10073. t1.push(chunk1[_i]);
  10074. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0*>*>"));
  10075. },
  10076. paths: function(choices, $T) {
  10077. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray<List<0*>*>")), new Y.paths_closure($T));
  10078. },
  10079. _groupSelectors: function(complex) {
  10080. var t1, group, cur, t2,
  10081. groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent),
  10082. iterator = P._ListQueueIterator$(complex);
  10083. if (!iterator.moveNext$0())
  10084. return groups;
  10085. t1 = type$.JSArray_legacy_ComplexSelectorComponent;
  10086. group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
  10087. groups._queue_list$_add$1(group);
  10088. for (; iterator.moveNext$0();) {
  10089. if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator)) {
  10090. cur = iterator._collection$_current;
  10091. t2 = cur instanceof S.Combinator;
  10092. } else
  10093. t2 = true;
  10094. cur = iterator._collection$_current;
  10095. if (t2)
  10096. group.push(cur);
  10097. else {
  10098. group = H.setRuntimeTypeInfo([cur], t1);
  10099. groups._queue_list$_add$1(group);
  10100. }
  10101. }
  10102. return groups;
  10103. },
  10104. _hasRoot: function(compound) {
  10105. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure());
  10106. },
  10107. listIsSuperselector: function(list1, list2) {
  10108. return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure(list1));
  10109. },
  10110. complexIsParentSuperselector: function(complex1, complex2) {
  10111. var t2, base, t3, t4,
  10112. t1 = J.getInterceptor$ax(complex1);
  10113. if (t1.get$first(complex1) instanceof S.Combinator)
  10114. return false;
  10115. t2 = J.getInterceptor$ax(complex2);
  10116. if (t2.get$first(complex2) instanceof S.Combinator)
  10117. return false;
  10118. if (t1.get$length(complex1) > t2.get$length(complex2))
  10119. return false;
  10120. base = X.CompoundSelector$(H.setRuntimeTypeInfo([new N.PlaceholderSelector("<temp>")], type$.JSArray_legacy_SimpleSelector));
  10121. t3 = type$.JSArray_legacy_ComplexSelectorComponent;
  10122. t4 = H.setRuntimeTypeInfo([], t3);
  10123. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  10124. t4.push(t1.get$current(t1));
  10125. t4.push(base);
  10126. t1 = H.setRuntimeTypeInfo([], t3);
  10127. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  10128. t1.push(t2.get$current(t2));
  10129. t1.push(base);
  10130. return Y.complexIsSuperselector(t4, t1);
  10131. },
  10132. complexIsSuperselector: function(complex1, complex2) {
  10133. var t1, t2, t3, i1, i2, remaining1, remaining2, t4, t5, t6, t7, afterSuperselector, afterSuperselector0, compound2, i10, combinator1, combinator2;
  10134. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator)
  10135. return false;
  10136. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator)
  10137. return false;
  10138. for (t1 = H._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), t3 = type$.legacy_CompoundSelector, i1 = 0, i2 = 0; true;) {
  10139. remaining1 = complex1.length - i1;
  10140. remaining2 = complex2.length - i2;
  10141. if (remaining1 === 0 || remaining2 === 0)
  10142. return false;
  10143. if (remaining1 > remaining2)
  10144. return false;
  10145. t4 = complex1[i1];
  10146. if (t4 instanceof S.Combinator)
  10147. return false;
  10148. if (complex2[i2] instanceof S.Combinator)
  10149. return false;
  10150. t3._as(t4);
  10151. if (remaining1 === 1) {
  10152. t5 = t3._as(C.JSArray_methods.get$last(complex2));
  10153. t6 = complex2.length - 1;
  10154. t7 = new H.SubListIterable(complex2, 0, t6, t1);
  10155. t7.SubListIterable$3(complex2, 0, t6, t2);
  10156. return Y.compoundIsSuperselector(t4, t5, t7.skip$1(0, i2));
  10157. }
  10158. afterSuperselector = i2 + 1;
  10159. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  10160. t5 = afterSuperselector0 - 1;
  10161. compound2 = complex2[t5];
  10162. if (compound2 instanceof X.CompoundSelector) {
  10163. t6 = new H.SubListIterable(complex2, 0, t5, t1);
  10164. t6.SubListIterable$3(complex2, 0, t5, t2);
  10165. if (Y.compoundIsSuperselector(t4, compound2, t6.skip$1(0, afterSuperselector)))
  10166. break;
  10167. }
  10168. }
  10169. if (afterSuperselector0 === complex2.length)
  10170. return false;
  10171. i10 = i1 + 1;
  10172. combinator1 = complex1[i10];
  10173. combinator2 = complex2[afterSuperselector0];
  10174. if (combinator1 instanceof S.Combinator) {
  10175. if (!(combinator2 instanceof S.Combinator))
  10176. return false;
  10177. if (combinator1 === C.Combinator_CzM) {
  10178. if (combinator2 === C.Combinator_sgq)
  10179. return false;
  10180. } else if (combinator2 !== combinator1)
  10181. return false;
  10182. if (remaining1 === 3 && remaining2 > 3)
  10183. return false;
  10184. i1 += 2;
  10185. i2 = afterSuperselector0 + 1;
  10186. } else {
  10187. if (combinator2 instanceof S.Combinator) {
  10188. if (combinator2 !== C.Combinator_sgq)
  10189. return false;
  10190. i2 = afterSuperselector0 + 1;
  10191. } else
  10192. i2 = afterSuperselector0;
  10193. i1 = i10;
  10194. }
  10195. }
  10196. },
  10197. compoundIsSuperselector: function(compound1, compound2, parents) {
  10198. var t1, t2, _i, simple1, simple2;
  10199. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  10200. simple1 = t1[_i];
  10201. if (simple1 instanceof D.PseudoSelector && simple1.selector != null) {
  10202. if (!Y._selectorPseudoIsSuperselector(simple1, compound2, parents))
  10203. return false;
  10204. } else if (!Y._simpleIsSuperselectorOfCompound(simple1, compound2))
  10205. return false;
  10206. }
  10207. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  10208. simple2 = t1[_i];
  10209. if (simple2 instanceof D.PseudoSelector && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound(simple2, compound1))
  10210. return false;
  10211. }
  10212. return true;
  10213. },
  10214. _simpleIsSuperselectorOfCompound: function(simple, compound) {
  10215. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure(simple));
  10216. },
  10217. _selectorPseudoIsSuperselector: function(pseudo1, compound2, parents) {
  10218. switch (pseudo1.normalizedName) {
  10219. case "matches":
  10220. case "any":
  10221. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure0(parents, compound2));
  10222. case "has":
  10223. case "host":
  10224. case "host-context":
  10225. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure1(pseudo1));
  10226. case "slotted":
  10227. return Y._selectorPseudosNamed(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure2(pseudo1));
  10228. case "not":
  10229. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
  10230. case "current":
  10231. return Y._selectorPseudosNamed(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure4(pseudo1));
  10232. case "nth-child":
  10233. case "nth-last-child":
  10234. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure5(pseudo1));
  10235. default:
  10236. throw H.wrapException("unreachable");
  10237. }
  10238. },
  10239. _selectorPseudosNamed: function(compound, $name, isClass) {
  10240. var t1 = type$.WhereTypeIterable_legacy_PseudoSelector;
  10241. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  10242. },
  10243. unifyComplex_closure: function unifyComplex_closure() {
  10244. },
  10245. _weaveParents_closure: function _weaveParents_closure() {
  10246. },
  10247. _weaveParents_closure0: function _weaveParents_closure0(t0) {
  10248. this.group = t0;
  10249. },
  10250. _weaveParents_closure1: function _weaveParents_closure1() {
  10251. },
  10252. _weaveParents__closure1: function _weaveParents__closure1() {
  10253. },
  10254. _weaveParents_closure2: function _weaveParents_closure2() {
  10255. },
  10256. _weaveParents_closure3: function _weaveParents_closure3() {
  10257. },
  10258. _weaveParents__closure0: function _weaveParents__closure0() {
  10259. },
  10260. _weaveParents_closure4: function _weaveParents_closure4() {
  10261. },
  10262. _weaveParents_closure5: function _weaveParents_closure5() {
  10263. },
  10264. _weaveParents__closure: function _weaveParents__closure() {
  10265. },
  10266. _mustUnify_closure: function _mustUnify_closure(t0) {
  10267. this.uniqueSelectors = t0;
  10268. },
  10269. _mustUnify__closure: function _mustUnify__closure(t0) {
  10270. this.uniqueSelectors = t0;
  10271. },
  10272. paths_closure: function paths_closure(t0) {
  10273. this.T = t0;
  10274. },
  10275. paths__closure: function paths__closure(t0, t1) {
  10276. this.paths = t0;
  10277. this.T = t1;
  10278. },
  10279. paths___closure: function paths___closure(t0, t1) {
  10280. this.option = t0;
  10281. this.T = t1;
  10282. },
  10283. _hasRoot_closure: function _hasRoot_closure() {
  10284. },
  10285. listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
  10286. this.list1 = t0;
  10287. },
  10288. listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
  10289. this.complex1 = t0;
  10290. },
  10291. _simpleIsSuperselectorOfCompound_closure: function _simpleIsSuperselectorOfCompound_closure(t0) {
  10292. this.simple = t0;
  10293. },
  10294. _simpleIsSuperselectorOfCompound__closure: function _simpleIsSuperselectorOfCompound__closure(t0) {
  10295. this.simple = t0;
  10296. },
  10297. _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
  10298. this.pseudo1 = t0;
  10299. },
  10300. _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
  10301. this.parents = t0;
  10302. this.compound2 = t1;
  10303. },
  10304. _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
  10305. this.pseudo1 = t0;
  10306. },
  10307. _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
  10308. this.pseudo1 = t0;
  10309. },
  10310. _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
  10311. this.compound2 = t0;
  10312. this.pseudo1 = t1;
  10313. },
  10314. _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
  10315. this.complex = t0;
  10316. this.pseudo1 = t1;
  10317. },
  10318. _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
  10319. this.simple2 = t0;
  10320. },
  10321. _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
  10322. this.simple2 = t0;
  10323. },
  10324. _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
  10325. this.pseudo1 = t0;
  10326. },
  10327. _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0) {
  10328. this.pseudo1 = t0;
  10329. },
  10330. _selectorPseudosNamed_closure: function _selectorPseudosNamed_closure(t0, t1) {
  10331. this.isClass = t0;
  10332. this.name = t1;
  10333. },
  10334. closure: function closure() {
  10335. },
  10336. Chokidar: function Chokidar() {
  10337. },
  10338. ChokidarOptions: function ChokidarOptions() {
  10339. },
  10340. ChokidarWatcher: function ChokidarWatcher() {
  10341. },
  10342. SourceFile$fromString: function(text, url) {
  10343. var t1, t2, t3;
  10344. text.toString;
  10345. t1 = new H.CodeUnits(text);
  10346. t2 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int);
  10347. t3 = typeof url == "string" ? P.Uri_parse(url) : type$.legacy_Uri._as(url);
  10348. t2 = new Y.SourceFile(t3, t2, new Uint32Array(H._ensureNativeList(t1.toList$0(t1))));
  10349. t2.SourceFile$decoded$2$url(t1, url);
  10350. return t2;
  10351. },
  10352. SourceFile$decoded: function(decodedChars, url) {
  10353. var t1 = H.setRuntimeTypeInfo([0], type$.JSArray_legacy_int),
  10354. t2 = typeof url == "string" ? P.Uri_parse(url) : type$.legacy_Uri._as(url);
  10355. t1 = new Y.SourceFile(t2, t1, new Uint32Array(H._ensureNativeList(J.toList$0$ax(decodedChars))));
  10356. t1.SourceFile$decoded$2$url(decodedChars, url);
  10357. return t1;
  10358. },
  10359. FileLocation$_: function(file, offset) {
  10360. if (offset < 0)
  10361. H.throwExpression(P.RangeError$("Offset may not be negative, was " + offset + "."));
  10362. else if (offset > file._decodedChars.length)
  10363. H.throwExpression(P.RangeError$("Offset " + offset + string$.x20must_ + file.get$length(file) + "."));
  10364. return new Y.FileLocation(file, offset);
  10365. },
  10366. _FileSpan$: function(file, _start, _end) {
  10367. if (_end < _start)
  10368. H.throwExpression(P.ArgumentError$("End " + _end + " must come after start " + _start + "."));
  10369. else if (_end > file._decodedChars.length)
  10370. H.throwExpression(P.RangeError$("End " + _end + string$.x20must_ + file.get$length(file) + "."));
  10371. else if (_start < 0)
  10372. H.throwExpression(P.RangeError$("Start may not be negative, was " + _start + "."));
  10373. return new Y._FileSpan(file, _start, _end);
  10374. },
  10375. SourceFile: function SourceFile(t0, t1, t2) {
  10376. var _ = this;
  10377. _.url = t0;
  10378. _._lineStarts = t1;
  10379. _._decodedChars = t2;
  10380. _._cachedLine = null;
  10381. },
  10382. FileLocation: function FileLocation(t0, t1) {
  10383. this.file = t0;
  10384. this.offset = t1;
  10385. },
  10386. _FileSpan: function _FileSpan(t0, t1, t2) {
  10387. this.file = t0;
  10388. this._file$_start = t1;
  10389. this._end = t2;
  10390. },
  10391. SourceSpanMixin: function SourceSpanMixin() {
  10392. },
  10393. Trace_Trace$from: function(trace) {
  10394. if (trace == null)
  10395. throw H.wrapException(P.ArgumentError$("Cannot create a Trace from null."));
  10396. if (type$.legacy_Trace._is(trace))
  10397. return trace;
  10398. if (trace instanceof U.Chain)
  10399. return trace.toTrace$0();
  10400. return new T.LazyTrace(new Y.Trace_Trace$from_closure(trace));
  10401. },
  10402. Trace_Trace$parse: function(trace) {
  10403. var error, t1, exception;
  10404. try {
  10405. if (trace.length === 0) {
  10406. t1 = P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame), type$.legacy_Frame);
  10407. return new Y.Trace(t1, new P._StringStackTrace(null));
  10408. }
  10409. if (C.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
  10410. t1 = Y.Trace$parseV8(trace);
  10411. return t1;
  10412. }
  10413. if (C.JSString_methods.contains$1(trace, "\tat ")) {
  10414. t1 = Y.Trace$parseJSCore(trace);
  10415. return t1;
  10416. }
  10417. if (C.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || C.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
  10418. t1 = Y.Trace$parseFirefox(trace);
  10419. return t1;
  10420. }
  10421. if (C.JSString_methods.contains$1(trace, string$.x3d_____)) {
  10422. t1 = U.Chain_Chain$parse(trace).toTrace$0();
  10423. return t1;
  10424. }
  10425. if (C.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
  10426. t1 = Y.Trace$parseFriendly(trace);
  10427. return t1;
  10428. }
  10429. t1 = P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.legacy_Frame);
  10430. return new Y.Trace(t1, new P._StringStackTrace(trace));
  10431. } catch (exception) {
  10432. t1 = H.unwrapException(exception);
  10433. if (type$.legacy_FormatException._is(t1)) {
  10434. error = t1;
  10435. throw H.wrapException(P.FormatException$(H.S(J.get$message$x(error)) + "\nStack trace:\n" + H.S(trace), null, null));
  10436. } else
  10437. throw exception;
  10438. }
  10439. },
  10440. Trace__parseVM: function(trace) {
  10441. var $frames,
  10442. t1 = J.trim$0$s(trace),
  10443. t2 = $.$get$vmChainGap(),
  10444. t3 = type$.WhereIterable_String,
  10445. lines = new H.WhereIterable(H.setRuntimeTypeInfo(H.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new Y.Trace__parseVM_closure(), t3);
  10446. if (!lines.get$iterator(lines).moveNext$0())
  10447. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  10448. t1 = H.TakeIterable_TakeIterable(lines, lines.get$length(lines) - 1, t3._eval$1("Iterable.E"));
  10449. t1 = H.MappedIterable_MappedIterable(t1, new Y.Trace__parseVM_closure0(), H._instanceType(t1)._eval$1("Iterable.E"), type$.legacy_Frame);
  10450. $frames = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  10451. if (!J.endsWith$1$s(lines.get$last(lines), ".da"))
  10452. C.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(lines)));
  10453. return $frames;
  10454. },
  10455. Trace$parseV8: function(trace) {
  10456. var t1 = H.SubListIterable$(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new Y.Trace$parseV8_closure()),
  10457. t2 = type$.legacy_Frame;
  10458. return new Y.Trace(P.List_List$unmodifiable(H.MappedIterable_MappedIterable(t1, new Y.Trace$parseV8_closure0(), t1.$ti._eval$1("Iterable.E"), t2), t2), new P._StringStackTrace(trace));
  10459. },
  10460. Trace$parseJSCore: function(trace) {
  10461. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(trace.split("\n"), type$.JSArray_String), new Y.Trace$parseJSCore_closure(), type$.WhereIterable_String), new Y.Trace$parseJSCore_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
  10462. },
  10463. Trace$parseFirefox: function(trace) {
  10464. return new Y.Trace(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFirefox_closure(), type$.WhereIterable_String), new Y.Trace$parseFirefox_closure0(), type$.MappedIterable_of_String_and_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(trace));
  10465. },
  10466. Trace$parseFriendly: function(trace) {
  10467. var t1 = trace.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame) : new H.MappedIterable(new H.WhereIterable(H.setRuntimeTypeInfo(C.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new Y.Trace$parseFriendly_closure(), type$.WhereIterable_String), new Y.Trace$parseFriendly_closure0(), type$.MappedIterable_of_String_and_legacy_Frame);
  10468. return new Y.Trace(P.List_List$unmodifiable(t1, type$.legacy_Frame), new P._StringStackTrace(trace));
  10469. },
  10470. Trace: function Trace(t0, t1) {
  10471. this.frames = t0;
  10472. this.original = t1;
  10473. },
  10474. Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
  10475. this.trace = t0;
  10476. },
  10477. Trace__parseVM_closure: function Trace__parseVM_closure() {
  10478. },
  10479. Trace__parseVM_closure0: function Trace__parseVM_closure0() {
  10480. },
  10481. Trace$parseV8_closure: function Trace$parseV8_closure() {
  10482. },
  10483. Trace$parseV8_closure0: function Trace$parseV8_closure0() {
  10484. },
  10485. Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
  10486. },
  10487. Trace$parseJSCore_closure0: function Trace$parseJSCore_closure0() {
  10488. },
  10489. Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
  10490. },
  10491. Trace$parseFirefox_closure0: function Trace$parseFirefox_closure0() {
  10492. },
  10493. Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
  10494. },
  10495. Trace$parseFriendly_closure0: function Trace$parseFriendly_closure0() {
  10496. },
  10497. Trace_terse_closure: function Trace_terse_closure() {
  10498. },
  10499. Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
  10500. this.oldPredicate = t0;
  10501. },
  10502. Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
  10503. this._box_0 = t0;
  10504. },
  10505. Trace_toString_closure0: function Trace_toString_closure0() {
  10506. },
  10507. Trace_toString_closure: function Trace_toString_closure(t0) {
  10508. this.longest = t0;
  10509. },
  10510. SupportsAnything0: function SupportsAnything0(t0, t1) {
  10511. this.contents = t0;
  10512. this.span = t1;
  10513. },
  10514. Chokidar0: function Chokidar0() {
  10515. },
  10516. ChokidarOptions0: function ChokidarOptions0() {
  10517. },
  10518. ChokidarWatcher0: function ChokidarWatcher0() {
  10519. },
  10520. ContentBlock$0: function($arguments, children, span) {
  10521. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  10522. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  10523. return new Y.ContentBlock0(null, $arguments, span, t1, t2);
  10524. },
  10525. ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4) {
  10526. var _ = this;
  10527. _.name = t0;
  10528. _.$arguments = t1;
  10529. _.span = t2;
  10530. _.children = t3;
  10531. _.hasDeclarations = t4;
  10532. },
  10533. unifyComplex0: function(complexes) {
  10534. var t2, unifiedBase, base, t3, t4, _i, complexesWithoutBases,
  10535. t1 = J.getInterceptor$asx(complexes);
  10536. if (t1.get$length(complexes) === 1)
  10537. return complexes;
  10538. for (t2 = t1.get$iterator(complexes), unifiedBase = null; t2.moveNext$0();) {
  10539. base = J.get$last$ax(t2.get$current(t2));
  10540. if (base instanceof X.CompoundSelector0)
  10541. if (unifiedBase == null)
  10542. unifiedBase = base.components;
  10543. else
  10544. for (t3 = base.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  10545. unifiedBase = t3[_i].unify$1(unifiedBase);
  10546. if (unifiedBase == null)
  10547. return null;
  10548. }
  10549. else
  10550. return null;
  10551. }
  10552. t1 = t1.map$1$1(complexes, new Y.unifyComplex_closure0(), type$.legacy_List_legacy_ComplexSelectorComponent_2);
  10553. complexesWithoutBases = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  10554. J.add$1$ax(C.JSArray_methods.get$last(complexesWithoutBases), X.CompoundSelector$0(unifiedBase));
  10555. return Y.weave0(complexesWithoutBases);
  10556. },
  10557. unifyCompound0: function(compound1, compound2) {
  10558. var t1, result, _i;
  10559. for (t1 = compound1.length, result = compound2, _i = 0; _i < t1; ++_i) {
  10560. result = compound1[_i].unify$1(result);
  10561. if (result == null)
  10562. return null;
  10563. }
  10564. return X.CompoundSelector$0(result);
  10565. },
  10566. unifyUniversalAndElement0: function(selector1, selector2) {
  10567. var namespace1, name1, t1, namespace2, name2, namespace, $name, _null = null,
  10568. _s45_ = string$.must_b;
  10569. if (selector1 instanceof N.UniversalSelector0) {
  10570. namespace1 = selector1.namespace;
  10571. name1 = _null;
  10572. } else if (selector1 instanceof F.TypeSelector0) {
  10573. t1 = selector1.name;
  10574. namespace1 = t1.namespace;
  10575. name1 = t1.name;
  10576. } else
  10577. throw H.wrapException(P.ArgumentError$value(selector1, "selector1", _s45_));
  10578. if (selector2 instanceof N.UniversalSelector0) {
  10579. namespace2 = selector2.namespace;
  10580. name2 = _null;
  10581. } else if (selector2 instanceof F.TypeSelector0) {
  10582. t1 = selector2.name;
  10583. namespace2 = t1.namespace;
  10584. name2 = t1.name;
  10585. } else
  10586. throw H.wrapException(P.ArgumentError$value(selector2, "selector2", _s45_));
  10587. if (namespace1 == namespace2 || namespace2 === "*")
  10588. namespace = namespace1;
  10589. else {
  10590. if (namespace1 !== "*")
  10591. return _null;
  10592. namespace = namespace2;
  10593. }
  10594. if (name1 == name2 || name2 == null)
  10595. $name = name1;
  10596. else {
  10597. if (!(name1 == null || name1 === "*"))
  10598. return _null;
  10599. $name = name2;
  10600. }
  10601. return $name == null ? new N.UniversalSelector0(namespace) : new F.TypeSelector0(new D.QualifiedName0($name, namespace));
  10602. },
  10603. weave0: function(complexes) {
  10604. var t2, cur, t3, target, _i, parents, newPrefixes, parentPrefixes, t4, t5,
  10605. t1 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2,
  10606. prefixes = H.setRuntimeTypeInfo([J.toList$0$ax(C.JSArray_methods.get$first(complexes))], t1);
  10607. for (t2 = H.SubListIterable$(complexes, 1, null, H._arrayInstanceType(complexes)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  10608. cur = t2.__internal$_current;
  10609. t3 = J.getInterceptor$asx(cur);
  10610. if (t3.get$isEmpty(cur))
  10611. continue;
  10612. target = t3.get$last(cur);
  10613. if (t3.get$length(cur) === 1) {
  10614. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i)
  10615. J.add$1$ax(prefixes[_i], target);
  10616. continue;
  10617. }
  10618. parents = t3.take$1(cur, t3.get$length(cur) - 1).toList$0(0);
  10619. newPrefixes = H.setRuntimeTypeInfo([], t1);
  10620. for (t3 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t3 || (0, H.throwConcurrentModificationError)(prefixes), ++_i) {
  10621. parentPrefixes = Y._weaveParents0(prefixes[_i], parents);
  10622. if (parentPrefixes == null)
  10623. continue;
  10624. for (t4 = parentPrefixes.get$iterator(parentPrefixes); t4.moveNext$0();) {
  10625. t5 = t4.get$current(t4);
  10626. J.add$1$ax(t5, target);
  10627. newPrefixes.push(t5);
  10628. }
  10629. }
  10630. prefixes = newPrefixes;
  10631. }
  10632. return prefixes;
  10633. },
  10634. _weaveParents0: function(parents1, parents2) {
  10635. var finalCombinators, root1, root2, root, groups1, groups2, lcs, t2, choices, t3, _i, group, t4, t5, _null = null,
  10636. t1 = type$.legacy_ComplexSelectorComponent_2,
  10637. queue1 = P.ListQueue_ListQueue$of(parents1, t1),
  10638. queue2 = P.ListQueue_ListQueue$of(parents2, t1),
  10639. initialCombinators = Y._mergeInitialCombinators0(queue1, queue2);
  10640. if (initialCombinators == null)
  10641. return _null;
  10642. finalCombinators = Y._mergeFinalCombinators0(queue1, queue2, _null);
  10643. if (finalCombinators == null)
  10644. return _null;
  10645. root1 = Y._firstIfRoot0(queue1);
  10646. root2 = Y._firstIfRoot0(queue2);
  10647. t1 = root1 != null;
  10648. if (t1 && root2 != null) {
  10649. root = Y.unifyCompound0(root1.components, root2.components);
  10650. if (root == null)
  10651. return _null;
  10652. queue1.addFirst$1(root);
  10653. queue2.addFirst$1(root);
  10654. } else if (t1)
  10655. queue2.addFirst$1(root1);
  10656. else if (root2 != null)
  10657. queue1.addFirst$1(root2);
  10658. groups1 = Y._groupSelectors0(queue1);
  10659. groups2 = Y._groupSelectors0(queue2);
  10660. t1 = type$.legacy_List_legacy_ComplexSelectorComponent_2;
  10661. lcs = B.longestCommonSubsequence0(groups2, groups1, new Y._weaveParents_closure6(), t1);
  10662. t2 = type$.JSArray_legacy_Iterable_legacy_ComplexSelectorComponent_2;
  10663. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([initialCombinators], t2)], type$.JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2);
  10664. for (t3 = lcs.length, _i = 0; _i < lcs.length; lcs.length === t3 || (0, H.throwConcurrentModificationError)(lcs), ++_i) {
  10665. group = lcs[_i];
  10666. t4 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure7(group), t1);
  10667. t5 = H._arrayInstanceType(t4)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0*>*>");
  10668. choices.push(P.List_List$from(new H.MappedListIterable(t4, new Y._weaveParents_closure8(), t5), true, t5._eval$1("ListIterable.E")));
  10669. choices.push(H.setRuntimeTypeInfo([group], t2));
  10670. groups1.removeFirst$0();
  10671. groups2.removeFirst$0();
  10672. }
  10673. t2 = Y._chunks0(groups1, groups2, new Y._weaveParents_closure9(), t1);
  10674. t3 = H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Iterable<ComplexSelectorComponent0*>*>");
  10675. choices.push(P.List_List$from(new H.MappedListIterable(t2, new Y._weaveParents_closure10(), t3), true, t3._eval$1("ListIterable.E")));
  10676. C.JSArray_methods.addAll$1(choices, finalCombinators);
  10677. return J.map$1$1$ax(Y.paths0(new H.WhereIterable(choices, new Y._weaveParents_closure11(), type$.WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2), type$.legacy_Iterable_legacy_ComplexSelectorComponent_2), new Y._weaveParents_closure12(), t1);
  10678. },
  10679. _firstIfRoot0: function(queue) {
  10680. var first;
  10681. if (queue._collection$_head === queue._collection$_tail)
  10682. return null;
  10683. first = queue.get$first(queue);
  10684. if (first instanceof X.CompoundSelector0) {
  10685. if (!Y._hasRoot0(first))
  10686. return null;
  10687. queue.removeFirst$0();
  10688. return first;
  10689. } else
  10690. return null;
  10691. },
  10692. _mergeInitialCombinators0: function(components1, components2) {
  10693. var t3, combinators2, lcs,
  10694. t1 = type$.JSArray_legacy_Combinator_2,
  10695. combinators1 = H.setRuntimeTypeInfo([], t1),
  10696. t2 = type$.legacy_Combinator_2;
  10697. while (true) {
  10698. if (!components1.get$isEmpty(components1)) {
  10699. t3 = components1._collection$_head;
  10700. if (t3 === components1._collection$_tail)
  10701. H.throwExpression(H.IterableElementError_noElement());
  10702. t3 = components1._collection$_table[t3] instanceof S.Combinator0;
  10703. } else
  10704. t3 = false;
  10705. if (!t3)
  10706. break;
  10707. combinators1.push(t2._as(components1.removeFirst$0()));
  10708. }
  10709. combinators2 = H.setRuntimeTypeInfo([], t1);
  10710. while (true) {
  10711. if (!components2.get$isEmpty(components2)) {
  10712. t1 = components2._collection$_head;
  10713. if (t1 === components2._collection$_tail)
  10714. H.throwExpression(H.IterableElementError_noElement());
  10715. t1 = components2._collection$_table[t1] instanceof S.Combinator0;
  10716. } else
  10717. t1 = false;
  10718. if (!t1)
  10719. break;
  10720. combinators2.push(t2._as(components2.removeFirst$0()));
  10721. }
  10722. lcs = B.longestCommonSubsequence0(combinators1, combinators2, null, t2);
  10723. if (C.C_ListEquality.equals$2(0, lcs, combinators1))
  10724. return combinators2;
  10725. if (C.C_ListEquality.equals$2(0, lcs, combinators2))
  10726. return combinators1;
  10727. return null;
  10728. },
  10729. _mergeFinalCombinators0: function(components1, components2, result) {
  10730. var t1, combinators1, t2, combinators2, lcs, combinator1, combinator2, compound1, compound2, choices, unified, followingSiblingSelector, nextSiblingSelector, _null = null;
  10731. if (result == null)
  10732. result = Q.QueueList$(_null, type$.legacy_List_legacy_List_legacy_ComplexSelectorComponent_2);
  10733. if (components1._collection$_head === components1._collection$_tail || !(components1.get$last(components1) instanceof S.Combinator0))
  10734. t1 = components2._collection$_head === components2._collection$_tail || !(components2.get$last(components2) instanceof S.Combinator0);
  10735. else
  10736. t1 = false;
  10737. if (t1)
  10738. return result;
  10739. t1 = type$.JSArray_legacy_Combinator_2;
  10740. combinators1 = H.setRuntimeTypeInfo([], t1);
  10741. t2 = type$.legacy_Combinator_2;
  10742. while (true) {
  10743. if (!(!components1.get$isEmpty(components1) && components1.get$last(components1) instanceof S.Combinator0))
  10744. break;
  10745. combinators1.push(t2._as(components1.removeLast$0(0)));
  10746. }
  10747. combinators2 = H.setRuntimeTypeInfo([], t1);
  10748. while (true) {
  10749. if (!(!components2.get$isEmpty(components2) && components2.get$last(components2) instanceof S.Combinator0))
  10750. break;
  10751. combinators2.push(t2._as(components2.removeLast$0(0)));
  10752. }
  10753. t1 = combinators1.length;
  10754. if (t1 > 1 || combinators2.length > 1) {
  10755. lcs = B.longestCommonSubsequence0(combinators1, combinators2, _null, t2);
  10756. if (C.C_ListEquality.equals$2(0, lcs, combinators1))
  10757. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators2, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10758. else if (C.C_ListEquality.equals$2(0, lcs, combinators2))
  10759. result.addFirst$1(H.setRuntimeTypeInfo([P.List_List$from(new H.ReversedListIterable(combinators1, type$.ReversedListIterable_legacy_Combinator_2), true, type$.legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10760. else
  10761. return _null;
  10762. return result;
  10763. }
  10764. combinator1 = t1 === 0 ? _null : C.JSArray_methods.get$first(combinators1);
  10765. combinator2 = combinators2.length === 0 ? _null : C.JSArray_methods.get$first(combinators2);
  10766. t1 = combinator1 != null;
  10767. if (t1 && combinator2 != null) {
  10768. t1 = type$.legacy_CompoundSelector_2;
  10769. compound1 = t1._as(components1.removeLast$0(0));
  10770. compound2 = t1._as(components2.removeLast$0(0));
  10771. t1 = combinator1 === C.Combinator_CzM0;
  10772. if (t1 && combinator2 === C.Combinator_CzM0) {
  10773. compound1.toString;
  10774. if (Y.compoundIsSuperselector0(compound1, compound2, _null))
  10775. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10776. else {
  10777. compound2.toString;
  10778. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  10779. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  10780. if (Y.compoundIsSuperselector0(compound2, compound1, _null))
  10781. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0], t1)], t2));
  10782. else {
  10783. choices = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, C.Combinator_CzM0, compound2, C.Combinator_CzM0], t1), H.setRuntimeTypeInfo([compound2, C.Combinator_CzM0, compound1, C.Combinator_CzM0], t1)], t2);
  10784. unified = Y.unifyCompound0(compound1.components, compound2.components);
  10785. if (unified != null)
  10786. choices.push(H.setRuntimeTypeInfo([unified, C.Combinator_CzM0], t1));
  10787. result.addFirst$1(choices);
  10788. }
  10789. }
  10790. } else {
  10791. if (!(t1 && combinator2 === C.Combinator_uzg0))
  10792. t2 = combinator1 === C.Combinator_uzg0 && combinator2 === C.Combinator_CzM0;
  10793. else
  10794. t2 = true;
  10795. if (t2) {
  10796. followingSiblingSelector = t1 ? compound1 : compound2;
  10797. nextSiblingSelector = t1 ? compound2 : compound1;
  10798. followingSiblingSelector.toString;
  10799. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  10800. t2 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  10801. if (Y.compoundIsSuperselector0(followingSiblingSelector, nextSiblingSelector, _null))
  10802. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([nextSiblingSelector, C.Combinator_uzg0], t1)], t2));
  10803. else {
  10804. unified = Y.unifyCompound0(compound1.components, compound2.components);
  10805. t2 = H.setRuntimeTypeInfo([], t2);
  10806. t2.push(H.setRuntimeTypeInfo([followingSiblingSelector, C.Combinator_CzM0, nextSiblingSelector, C.Combinator_uzg0], t1));
  10807. if (unified != null)
  10808. t2.push(H.setRuntimeTypeInfo([unified, C.Combinator_uzg0], t1));
  10809. result.addFirst$1(t2);
  10810. }
  10811. } else {
  10812. if (combinator1 === C.Combinator_sgq0)
  10813. t2 = combinator2 === C.Combinator_uzg0 || combinator2 === C.Combinator_CzM0;
  10814. else
  10815. t2 = false;
  10816. if (t2) {
  10817. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound2, combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10818. components1._add$1(compound1);
  10819. components1._add$1(C.Combinator_sgq0);
  10820. } else {
  10821. if (combinator2 === C.Combinator_sgq0)
  10822. t1 = combinator1 === C.Combinator_uzg0 || t1;
  10823. else
  10824. t1 = false;
  10825. if (t1) {
  10826. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([compound1, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10827. components2._add$1(compound2);
  10828. components2._add$1(C.Combinator_sgq0);
  10829. } else if (combinator1 === combinator2) {
  10830. unified = Y.unifyCompound0(compound1.components, compound2.components);
  10831. if (unified == null)
  10832. return _null;
  10833. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([unified, combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10834. } else
  10835. return _null;
  10836. }
  10837. }
  10838. }
  10839. return Y._mergeFinalCombinators0(components1, components2, result);
  10840. } else if (t1) {
  10841. if (combinator1 === C.Combinator_sgq0)
  10842. if (!components2.get$isEmpty(components2)) {
  10843. t1 = type$.legacy_CompoundSelector_2;
  10844. t2 = t1._as(components2.get$last(components2));
  10845. t1 = t1._as(components1.get$last(components1));
  10846. t2.toString;
  10847. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  10848. } else
  10849. t1 = false;
  10850. else
  10851. t1 = false;
  10852. if (t1)
  10853. components2.removeLast$0(0);
  10854. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components1.removeLast$0(0), combinator1], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10855. return Y._mergeFinalCombinators0(components1, components2, result);
  10856. } else {
  10857. if (combinator2 === C.Combinator_sgq0)
  10858. if (!components1.get$isEmpty(components1)) {
  10859. t1 = type$.legacy_CompoundSelector_2;
  10860. t2 = t1._as(components1.get$last(components1));
  10861. t1 = t1._as(components2.get$last(components2));
  10862. t2.toString;
  10863. t1 = Y.compoundIsSuperselector0(t2, t1, _null);
  10864. } else
  10865. t1 = false;
  10866. else
  10867. t1 = false;
  10868. if (t1)
  10869. components1.removeLast$0(0);
  10870. result.addFirst$1(H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([components2.removeLast$0(0), combinator2], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  10871. return Y._mergeFinalCombinators0(components1, components2, result);
  10872. }
  10873. },
  10874. _mustUnify0: function(complex1, complex2) {
  10875. var t2, t3, t4,
  10876. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_SimpleSelector_2);
  10877. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();) {
  10878. t3 = t2.get$current(t2);
  10879. if (t3 instanceof X.CompoundSelector0)
  10880. for (t3 = C.JSArray_methods.get$iterator(t3.components), t4 = new H.WhereIterator(t3, Y.functions0___isUnique$closure()); t4.moveNext$0();)
  10881. t1.add$1(0, t3.get$current(t3));
  10882. }
  10883. if (t1._collection$_length === 0)
  10884. return false;
  10885. return J.any$1$ax(complex2, new Y._mustUnify_closure0(t1));
  10886. },
  10887. _isUnique0: function(simple) {
  10888. var t1;
  10889. if (!(simple instanceof N.IDSelector0))
  10890. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  10891. else
  10892. t1 = true;
  10893. return t1;
  10894. },
  10895. _chunks0: function(queue1, queue2, done, $T) {
  10896. var chunk2, t2, t3, _i,
  10897. t1 = $T._eval$1("JSArray<0*>"),
  10898. chunk1 = H.setRuntimeTypeInfo([], t1);
  10899. for (; !done.call$1(queue1);)
  10900. chunk1.push(queue1.removeFirst$0());
  10901. chunk2 = H.setRuntimeTypeInfo([], t1);
  10902. for (; !done.call$1(queue2);)
  10903. chunk2.push(queue2.removeFirst$0());
  10904. t2 = chunk1.length === 0;
  10905. if (t2 && chunk2.length === 0)
  10906. return H.setRuntimeTypeInfo([], $T._eval$1("JSArray<List<0*>*>"));
  10907. if (t2)
  10908. return H.setRuntimeTypeInfo([chunk2], $T._eval$1("JSArray<List<0*>*>"));
  10909. if (chunk2.length === 0)
  10910. return H.setRuntimeTypeInfo([chunk1], $T._eval$1("JSArray<List<0*>*>"));
  10911. t2 = H.setRuntimeTypeInfo([], t1);
  10912. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  10913. t2.push(chunk1[_i]);
  10914. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  10915. t2.push(chunk2[_i]);
  10916. t1 = H.setRuntimeTypeInfo([], t1);
  10917. for (t3 = chunk2.length, _i = 0; _i < chunk2.length; chunk2.length === t3 || (0, H.throwConcurrentModificationError)(chunk2), ++_i)
  10918. t1.push(chunk2[_i]);
  10919. for (t3 = chunk1.length, _i = 0; _i < chunk1.length; chunk1.length === t3 || (0, H.throwConcurrentModificationError)(chunk1), ++_i)
  10920. t1.push(chunk1[_i]);
  10921. return H.setRuntimeTypeInfo([t2, t1], $T._eval$1("JSArray<List<0*>*>"));
  10922. },
  10923. paths0: function(choices, $T) {
  10924. return J.fold$2$ax(choices, H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"))], $T._eval$1("JSArray<List<0*>*>")), new Y.paths_closure0($T));
  10925. },
  10926. _groupSelectors0: function(complex) {
  10927. var t1, group, cur, t2,
  10928. groups = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent_2),
  10929. iterator = P._ListQueueIterator$(complex);
  10930. if (!iterator.moveNext$0())
  10931. return groups;
  10932. t1 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  10933. group = H.setRuntimeTypeInfo([iterator.get$current(iterator)], t1);
  10934. groups._queue_list$_add$1(group);
  10935. for (; iterator.moveNext$0();) {
  10936. if (!(C.JSArray_methods.get$last(group) instanceof S.Combinator0)) {
  10937. cur = iterator._collection$_current;
  10938. t2 = cur instanceof S.Combinator0;
  10939. } else
  10940. t2 = true;
  10941. cur = iterator._collection$_current;
  10942. if (t2)
  10943. group.push(cur);
  10944. else {
  10945. group = H.setRuntimeTypeInfo([cur], t1);
  10946. groups._queue_list$_add$1(group);
  10947. }
  10948. }
  10949. return groups;
  10950. },
  10951. _hasRoot0: function(compound) {
  10952. return C.JSArray_methods.any$1(compound.components, new Y._hasRoot_closure0());
  10953. },
  10954. listIsSuperselector0: function(list1, list2) {
  10955. return C.JSArray_methods.every$1(list2, new Y.listIsSuperselector_closure0(list1));
  10956. },
  10957. complexIsParentSuperselector0: function(complex1, complex2) {
  10958. var t2, base, t3, t4,
  10959. t1 = J.getInterceptor$ax(complex1);
  10960. if (t1.get$first(complex1) instanceof S.Combinator0)
  10961. return false;
  10962. t2 = J.getInterceptor$ax(complex2);
  10963. if (t2.get$first(complex2) instanceof S.Combinator0)
  10964. return false;
  10965. if (t1.get$length(complex1) > t2.get$length(complex2))
  10966. return false;
  10967. base = X.CompoundSelector$0(H.setRuntimeTypeInfo([new N.PlaceholderSelector0("<temp>")], type$.JSArray_legacy_SimpleSelector_2));
  10968. t3 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  10969. t4 = H.setRuntimeTypeInfo([], t3);
  10970. for (t1 = t1.get$iterator(complex1); t1.moveNext$0();)
  10971. t4.push(t1.get$current(t1));
  10972. t4.push(base);
  10973. t1 = H.setRuntimeTypeInfo([], t3);
  10974. for (t2 = t2.get$iterator(complex2); t2.moveNext$0();)
  10975. t1.push(t2.get$current(t2));
  10976. t1.push(base);
  10977. return Y.complexIsSuperselector0(t4, t1);
  10978. },
  10979. complexIsSuperselector0: function(complex1, complex2) {
  10980. var t1, t2, t3, i1, i2, remaining1, remaining2, t4, t5, t6, t7, afterSuperselector, afterSuperselector0, compound2, i10, combinator1, combinator2;
  10981. if (C.JSArray_methods.get$last(complex1) instanceof S.Combinator0)
  10982. return false;
  10983. if (C.JSArray_methods.get$last(complex2) instanceof S.Combinator0)
  10984. return false;
  10985. for (t1 = H._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), t3 = type$.legacy_CompoundSelector_2, i1 = 0, i2 = 0; true;) {
  10986. remaining1 = complex1.length - i1;
  10987. remaining2 = complex2.length - i2;
  10988. if (remaining1 === 0 || remaining2 === 0)
  10989. return false;
  10990. if (remaining1 > remaining2)
  10991. return false;
  10992. t4 = complex1[i1];
  10993. if (t4 instanceof S.Combinator0)
  10994. return false;
  10995. if (complex2[i2] instanceof S.Combinator0)
  10996. return false;
  10997. t3._as(t4);
  10998. if (remaining1 === 1) {
  10999. t5 = t3._as(C.JSArray_methods.get$last(complex2));
  11000. t6 = complex2.length - 1;
  11001. t7 = new H.SubListIterable(complex2, 0, t6, t1);
  11002. t7.SubListIterable$3(complex2, 0, t6, t2);
  11003. return Y.compoundIsSuperselector0(t4, t5, t7.skip$1(0, i2));
  11004. }
  11005. afterSuperselector = i2 + 1;
  11006. for (afterSuperselector0 = afterSuperselector; afterSuperselector0 < complex2.length; ++afterSuperselector0) {
  11007. t5 = afterSuperselector0 - 1;
  11008. compound2 = complex2[t5];
  11009. if (compound2 instanceof X.CompoundSelector0) {
  11010. t6 = new H.SubListIterable(complex2, 0, t5, t1);
  11011. t6.SubListIterable$3(complex2, 0, t5, t2);
  11012. if (Y.compoundIsSuperselector0(t4, compound2, t6.skip$1(0, afterSuperselector)))
  11013. break;
  11014. }
  11015. }
  11016. if (afterSuperselector0 === complex2.length)
  11017. return false;
  11018. i10 = i1 + 1;
  11019. combinator1 = complex1[i10];
  11020. combinator2 = complex2[afterSuperselector0];
  11021. if (combinator1 instanceof S.Combinator0) {
  11022. if (!(combinator2 instanceof S.Combinator0))
  11023. return false;
  11024. if (combinator1 === C.Combinator_CzM0) {
  11025. if (combinator2 === C.Combinator_sgq0)
  11026. return false;
  11027. } else if (combinator2 !== combinator1)
  11028. return false;
  11029. if (remaining1 === 3 && remaining2 > 3)
  11030. return false;
  11031. i1 += 2;
  11032. i2 = afterSuperselector0 + 1;
  11033. } else {
  11034. if (combinator2 instanceof S.Combinator0) {
  11035. if (combinator2 !== C.Combinator_sgq0)
  11036. return false;
  11037. i2 = afterSuperselector0 + 1;
  11038. } else
  11039. i2 = afterSuperselector0;
  11040. i1 = i10;
  11041. }
  11042. }
  11043. },
  11044. compoundIsSuperselector0: function(compound1, compound2, parents) {
  11045. var t1, t2, _i, simple1, simple2;
  11046. for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11047. simple1 = t1[_i];
  11048. if (simple1 instanceof D.PseudoSelector0 && simple1.selector != null) {
  11049. if (!Y._selectorPseudoIsSuperselector0(simple1, compound2, parents))
  11050. return false;
  11051. } else if (!Y._simpleIsSuperselectorOfCompound0(simple1, compound2))
  11052. return false;
  11053. }
  11054. for (t1 = compound2.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  11055. simple2 = t1[_i];
  11056. if (simple2 instanceof D.PseudoSelector0 && !simple2.isClass && simple2.selector == null && !Y._simpleIsSuperselectorOfCompound0(simple2, compound1))
  11057. return false;
  11058. }
  11059. return true;
  11060. },
  11061. _simpleIsSuperselectorOfCompound0: function(simple, compound) {
  11062. return C.JSArray_methods.any$1(compound.components, new Y._simpleIsSuperselectorOfCompound_closure0(simple));
  11063. },
  11064. _selectorPseudoIsSuperselector0: function(pseudo1, compound2, parents) {
  11065. switch (pseudo1.normalizedName) {
  11066. case "matches":
  11067. case "any":
  11068. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure6(pseudo1)) || C.JSArray_methods.any$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure7(parents, compound2));
  11069. case "has":
  11070. case "host":
  11071. case "host-context":
  11072. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure8(pseudo1));
  11073. case "slotted":
  11074. return Y._selectorPseudosNamed0(compound2, pseudo1.name, false).any$1(0, new Y._selectorPseudoIsSuperselector_closure9(pseudo1));
  11075. case "not":
  11076. return C.JSArray_methods.every$1(pseudo1.selector.components, new Y._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
  11077. case "current":
  11078. return Y._selectorPseudosNamed0(compound2, pseudo1.name, true).any$1(0, new Y._selectorPseudoIsSuperselector_closure11(pseudo1));
  11079. case "nth-child":
  11080. case "nth-last-child":
  11081. return C.JSArray_methods.any$1(compound2.components, new Y._selectorPseudoIsSuperselector_closure12(pseudo1));
  11082. default:
  11083. throw H.wrapException("unreachable");
  11084. }
  11085. },
  11086. _selectorPseudosNamed0: function(compound, $name, isClass) {
  11087. var t1 = type$.WhereTypeIterable_legacy_PseudoSelector_2;
  11088. return new H.WhereIterable(new H.WhereTypeIterable(compound.components, t1), new Y._selectorPseudosNamed_closure0(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>"));
  11089. },
  11090. unifyComplex_closure0: function unifyComplex_closure0() {
  11091. },
  11092. _weaveParents_closure6: function _weaveParents_closure6() {
  11093. },
  11094. _weaveParents_closure7: function _weaveParents_closure7(t0) {
  11095. this.group = t0;
  11096. },
  11097. _weaveParents_closure8: function _weaveParents_closure8() {
  11098. },
  11099. _weaveParents__closure4: function _weaveParents__closure4() {
  11100. },
  11101. _weaveParents_closure9: function _weaveParents_closure9() {
  11102. },
  11103. _weaveParents_closure10: function _weaveParents_closure10() {
  11104. },
  11105. _weaveParents__closure3: function _weaveParents__closure3() {
  11106. },
  11107. _weaveParents_closure11: function _weaveParents_closure11() {
  11108. },
  11109. _weaveParents_closure12: function _weaveParents_closure12() {
  11110. },
  11111. _weaveParents__closure2: function _weaveParents__closure2() {
  11112. },
  11113. _mustUnify_closure0: function _mustUnify_closure0(t0) {
  11114. this.uniqueSelectors = t0;
  11115. },
  11116. _mustUnify__closure0: function _mustUnify__closure0(t0) {
  11117. this.uniqueSelectors = t0;
  11118. },
  11119. paths_closure0: function paths_closure0(t0) {
  11120. this.T = t0;
  11121. },
  11122. paths__closure0: function paths__closure0(t0, t1) {
  11123. this.paths = t0;
  11124. this.T = t1;
  11125. },
  11126. paths___closure0: function paths___closure0(t0, t1) {
  11127. this.option = t0;
  11128. this.T = t1;
  11129. },
  11130. _hasRoot_closure0: function _hasRoot_closure0() {
  11131. },
  11132. listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
  11133. this.list1 = t0;
  11134. },
  11135. listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
  11136. this.complex1 = t0;
  11137. },
  11138. _simpleIsSuperselectorOfCompound_closure0: function _simpleIsSuperselectorOfCompound_closure0(t0) {
  11139. this.simple = t0;
  11140. },
  11141. _simpleIsSuperselectorOfCompound__closure0: function _simpleIsSuperselectorOfCompound__closure0(t0) {
  11142. this.simple = t0;
  11143. },
  11144. _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
  11145. this.pseudo1 = t0;
  11146. },
  11147. _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
  11148. this.parents = t0;
  11149. this.compound2 = t1;
  11150. },
  11151. _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
  11152. this.pseudo1 = t0;
  11153. },
  11154. _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
  11155. this.pseudo1 = t0;
  11156. },
  11157. _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
  11158. this.compound2 = t0;
  11159. this.pseudo1 = t1;
  11160. },
  11161. _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
  11162. this.complex = t0;
  11163. this.pseudo1 = t1;
  11164. },
  11165. _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
  11166. this.simple2 = t0;
  11167. },
  11168. _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
  11169. this.simple2 = t0;
  11170. },
  11171. _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
  11172. this.pseudo1 = t0;
  11173. },
  11174. _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0) {
  11175. this.pseudo1 = t0;
  11176. },
  11177. _selectorPseudosNamed_closure0: function _selectorPseudosNamed_closure0(t0, t1) {
  11178. this.isClass = t0;
  11179. this.name = t1;
  11180. },
  11181. closure114: function closure114() {
  11182. },
  11183. WarnRule0: function WarnRule0(t0, t1) {
  11184. this.expression = t0;
  11185. this.span = t1;
  11186. },
  11187. mergeMaps: function(map1, map2, $K, $V) {
  11188. var result = P.LinkedHashMap_LinkedHashMap$from(map1, $K._eval$1("0*"), $V._eval$1("0*"));
  11189. result.addAll$1(0, map2);
  11190. return result;
  11191. },
  11192. groupBy: function(values, key, $S, $T) {
  11193. var t1, t2, _i, element, t3, t4,
  11194. map = P.LinkedHashMap_LinkedHashMap$_empty($T._eval$1("0*"), $S._eval$1("List<0*>*"));
  11195. for (t1 = values.length, t2 = $S._eval$1("JSArray<0*>"), _i = 0; _i < values.length; values.length === t1 || (0, H.throwConcurrentModificationError)(values), ++_i) {
  11196. element = values[_i];
  11197. t3 = key.call$1(element);
  11198. t4 = map.$index(0, t3);
  11199. if (t4 == null) {
  11200. t4 = H.setRuntimeTypeInfo([], t2);
  11201. map.$indexSet(0, t3, t4);
  11202. t3 = t4;
  11203. } else
  11204. t3 = t4;
  11205. t3.push(element);
  11206. }
  11207. return map;
  11208. },
  11209. minBy: function(values, orderBy, $S, $T) {
  11210. var t1, minValue, minOrderBy, cur, elementOrderBy,
  11211. compare = B.defaultCompare($T._eval$1("0*"));
  11212. for (t1 = new H.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f), minValue = null, minOrderBy = null; t1.moveNext$0();) {
  11213. cur = t1.__internal$_current;
  11214. elementOrderBy = orderBy.call$1(cur);
  11215. if (minOrderBy == null || compare.call$2(elementOrderBy, minOrderBy) < 0) {
  11216. minOrderBy = elementOrderBy;
  11217. minValue = cur;
  11218. }
  11219. }
  11220. return minValue;
  11221. },
  11222. repl: function(options) {
  11223. return Y.repl$body(options);
  11224. },
  11225. repl$body: function(options) {
  11226. var $async$goto = 0,
  11227. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  11228. $async$handler = 1, $async$currentError, $async$next = [], repl, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, line0, toZone, exception, t1, t2, t3, repl0;
  11229. var $async$repl = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  11230. if ($async$errorCode === 1) {
  11231. $async$currentError = $async$result;
  11232. $async$goto = $async$handler;
  11233. }
  11234. while (true)
  11235. switch ($async$goto) {
  11236. case 0:
  11237. // Function start
  11238. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  11239. t2 = C.JSString_methods.$mul(" ", 3);
  11240. t3 = $.$get$alwaysValid();
  11241. repl0 = new Q.Repl(">> ", t2, t3, t1);
  11242. repl0._adapter = new B.ReplAdapter(repl0);
  11243. repl = repl0;
  11244. t1 = options._options;
  11245. logger = new T.TrackingLogger(H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color()));
  11246. t2 = D.absolute(".");
  11247. evaluator = new R.Evaluator(R._EvaluateVisitor$(null, R.ImportCache$(C.List_empty10, type$.legacy_List_legacy_String._as(t1.$index(0, "load-path")), logger), logger, null, false), new F.FilesystemImporter(t2));
  11248. t2 = repl._adapter.runAsync$0();
  11249. t1 = new P._StreamIterator(t2);
  11250. P.ArgumentError_checkNotNull(t2, "stream");
  11251. $async$handler = 2;
  11252. t2 = type$.legacy_Expression, t3 = type$.legacy_String, t4 = type$.legacy_VariableDeclaration;
  11253. case 5:
  11254. // for condition
  11255. $async$goto = 7;
  11256. return P._asyncAwait(t1.moveNext$0(), $async$repl);
  11257. case 7:
  11258. // returning from await.
  11259. if (!$async$result) {
  11260. // goto after for
  11261. $async$goto = 6;
  11262. break;
  11263. }
  11264. line = t1.get$current(t1);
  11265. if (J.trim$0$s(line).length === 0) {
  11266. // goto for condition
  11267. $async$goto = 5;
  11268. break;
  11269. }
  11270. try {
  11271. if (J.startsWith$1$s(line, "@")) {
  11272. t5 = evaluator;
  11273. t6 = logger;
  11274. t7 = S.SpanScanner$(line, null);
  11275. if (t6 == null)
  11276. t6 = C.StderrLogger_false;
  11277. t6 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6).parseUseRule$0();
  11278. t5._visitor.runStatement$2(t5._importer, t6);
  11279. // goto for condition
  11280. $async$goto = 5;
  11281. break;
  11282. }
  11283. t5 = S.SpanScanner$(line, null);
  11284. if (new G.Parser(t5, C.StderrLogger_false)._isVariableDeclarationLike$0()) {
  11285. t5 = logger;
  11286. t6 = S.SpanScanner$(line, null);
  11287. if (t5 == null)
  11288. t5 = C.StderrLogger_false;
  11289. declaration = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t6, t5).parseVariableDeclaration$0();
  11290. t5 = evaluator;
  11291. t5._visitor.runStatement$2(t5._importer, declaration);
  11292. t5 = evaluator;
  11293. t6 = declaration.name;
  11294. t7 = declaration.span;
  11295. t8 = declaration.namespace;
  11296. line0 = J.toString$0$(t5._visitor.runExpression$2(t5._importer, new S.VariableExpression(t8, t6, t7)));
  11297. toZone = $.printToZone;
  11298. if (toZone == null)
  11299. H.printString(line0);
  11300. else
  11301. toZone.call$1(line0);
  11302. } else {
  11303. t5 = evaluator;
  11304. t6 = logger;
  11305. t7 = S.SpanScanner$(line, null);
  11306. if (t6 == null)
  11307. t6 = C.StderrLogger_false;
  11308. t6 = new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6);
  11309. t6 = t6._parseSingleProduction$1$1(t6.get$expression(), t2);
  11310. line0 = J.toString$0$(t5._visitor.runExpression$2(t5._importer, t6));
  11311. toZone = $.printToZone;
  11312. if (toZone == null)
  11313. H.printString(line0);
  11314. else
  11315. toZone.call$1(line0);
  11316. }
  11317. } catch (exception) {
  11318. t5 = H.unwrapException(exception);
  11319. if (t5 instanceof E.SassException) {
  11320. error = t5;
  11321. stackTrace = H.getTraceFromException(exception);
  11322. Y._logError(error, stackTrace, line, repl, options, logger);
  11323. } else
  11324. throw exception;
  11325. }
  11326. // goto for condition
  11327. $async$goto = 5;
  11328. break;
  11329. case 6:
  11330. // after for
  11331. $async$next.push(4);
  11332. // goto finally
  11333. $async$goto = 3;
  11334. break;
  11335. case 2:
  11336. // uncaught
  11337. $async$next = [1];
  11338. case 3:
  11339. // finally
  11340. $async$handler = 1;
  11341. $async$goto = 8;
  11342. return P._asyncAwait(t1.cancel$0(), $async$repl);
  11343. case 8:
  11344. // returning from await.
  11345. // goto the next finally handler
  11346. $async$goto = $async$next.pop();
  11347. break;
  11348. case 4:
  11349. // after finally
  11350. // implicit return
  11351. return P._asyncReturn(null, $async$completer);
  11352. case 1:
  11353. // rethrow
  11354. return P._asyncRethrow($async$currentError, $async$completer);
  11355. }
  11356. });
  11357. return P._asyncStartSync($async$repl, $async$completer);
  11358. },
  11359. _logError: function(error, stackTrace, line, repl, options, logger) {
  11360. var t1, t2, spacesBeforeError;
  11361. if (G.SourceSpanException.prototype.get$span.call(error).file.url == null)
  11362. if (!H._asBoolS(options._options.$index(0, "quiet")))
  11363. t1 = logger._emittedDebug || logger._emittedWarning;
  11364. else
  11365. t1 = false;
  11366. else
  11367. t1 = true;
  11368. if (t1) {
  11369. P.print(error.toString$1$color(0, options.get$color()));
  11370. return;
  11371. }
  11372. t1 = options.get$color() ? "\x1b[31m" : "";
  11373. t2 = G.SourceSpanException.prototype.get$span.call(error);
  11374. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  11375. spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
  11376. if (options.get$color()) {
  11377. t2 = G.SourceSpanException.prototype.get$span.call(error);
  11378. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  11379. t2 = t2.file.getColumn$1(t2.offset) < line.length;
  11380. } else
  11381. t2 = false;
  11382. if (t2) {
  11383. t1 += "\x1b[1F\x1b[" + spacesBeforeError + "C";
  11384. t2 = G.SourceSpanException.prototype.get$span.call(error);
  11385. t2 = t1 + (P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null) + "\n");
  11386. t1 = t2;
  11387. }
  11388. t1 += C.JSString_methods.$mul(" ", spacesBeforeError);
  11389. t2 = G.SourceSpanException.prototype.get$span.call(error);
  11390. t2 = t1 + (C.JSString_methods.$mul("^", Math.max(1, t2._end - t2._file$_start)) + "\n");
  11391. t1 = options.get$color() ? t2 + "\x1b[0m" : t2;
  11392. t1 += "Error: " + H.S(error._span_exception$_message) + "\n";
  11393. if (H._asBoolS(options._options.$index(0, "trace")))
  11394. t1 += Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
  11395. P.print(C.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
  11396. }
  11397. },
  11398. L = {StreamGroup: function StreamGroup(t0, t1, t2) {
  11399. var _ = this;
  11400. _._controller = null;
  11401. _._closed = false;
  11402. _._stream_group$_state = t0;
  11403. _._subscriptions = t1;
  11404. _.$ti = t2;
  11405. }, StreamGroup_add_closure: function StreamGroup_add_closure() {
  11406. }, StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
  11407. this.$this = t0;
  11408. this.stream = t1;
  11409. }, StreamGroup__onListen_closure: function StreamGroup__onListen_closure(t0) {
  11410. this.$this = t0;
  11411. }, StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) {
  11412. this.$this = t0;
  11413. }, StreamGroup__onCancel_closure0: function StreamGroup__onCancel_closure0() {
  11414. }, StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
  11415. this.$this = t0;
  11416. this.stream = t1;
  11417. }, _StreamGroupState: function _StreamGroupState(t0) {
  11418. this.name = t0;
  11419. },
  11420. UnmodifiableSetMixin__throw: function() {
  11421. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  11422. },
  11423. UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
  11424. this._base = t0;
  11425. this.$ti = t1;
  11426. },
  11427. UnmodifiableSetMixin: function UnmodifiableSetMixin() {
  11428. },
  11429. _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
  11430. },
  11431. Immediate: function Immediate() {
  11432. },
  11433. Timeout: function Timeout() {
  11434. },
  11435. WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
  11436. var _ = this;
  11437. _.separatorPattern = t0;
  11438. _.needsSeparatorPattern = t1;
  11439. _.rootPattern = t2;
  11440. _.relativeRootPattern = t3;
  11441. },
  11442. WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
  11443. },
  11444. ModifiableCssDeclaration$: function($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
  11445. var t2,
  11446. t1 = valueSpanForMap == null ? span : valueSpanForMap;
  11447. if (parsedAsCustomProperty)
  11448. if (!J.startsWith$1$s($name.get$value($name), "--"))
  11449. H.throwExpression(P.ArgumentError$(string$.parsed));
  11450. else {
  11451. t2 = value.value;
  11452. if (!(t2 instanceof D.SassString))
  11453. H.throwExpression(P.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + J.get$runtimeType$u(t2).toString$0(0) + ")."));
  11454. }
  11455. return new L.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, span);
  11456. },
  11457. ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4) {
  11458. var _ = this;
  11459. _.name = t0;
  11460. _.value = t1;
  11461. _.parsedAsCustomProperty = t2;
  11462. _.valueSpanForMap = t3;
  11463. _.span = t4;
  11464. _._indexInParent = _._parent = null;
  11465. _.isGroupEnd = false;
  11466. },
  11467. IfExpression: function IfExpression(t0, t1) {
  11468. this.$arguments = t0;
  11469. this.span = t1;
  11470. },
  11471. Declaration$: function($name, span, children, value) {
  11472. var t1;
  11473. children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement);
  11474. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure());
  11475. if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof D.StringExpression))
  11476. H.throwExpression(P.ArgumentError$(string$.Declarw + H.S(value) + "` of type " + J.get$runtimeType$u(value).toString$0(0) + ")."));
  11477. return new L.Declaration($name, value, span, children, t1 === true);
  11478. },
  11479. Declaration: function Declaration(t0, t1, t2, t3, t4) {
  11480. var _ = this;
  11481. _.name = t0;
  11482. _.value = t1;
  11483. _.span = t2;
  11484. _.children = t3;
  11485. _.hasDeclarations = t4;
  11486. },
  11487. ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
  11488. var _ = this;
  11489. _.url = t0;
  11490. _.shownMixinsAndFunctions = t1;
  11491. _.shownVariables = t2;
  11492. _.hiddenMixinsAndFunctions = t3;
  11493. _.hiddenVariables = t4;
  11494. _.prefix = t5;
  11495. _.configuration = t6;
  11496. _.span = t7;
  11497. },
  11498. LoudComment: function LoudComment(t0) {
  11499. this.text = t0;
  11500. },
  11501. SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
  11502. this.name = t0;
  11503. this.value = t1;
  11504. this.span = t2;
  11505. },
  11506. PlainCssCallable: function PlainCssCallable(t0) {
  11507. this.name = t0;
  11508. },
  11509. ExtendMode: function ExtendMode(t0) {
  11510. this.name = t0;
  11511. },
  11512. ScssParser$: function(contents, logger, url) {
  11513. var t1 = S.SpanScanner$(contents, url),
  11514. t2 = logger == null ? C.StderrLogger_false : logger;
  11515. return new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration), t1, t2);
  11516. },
  11517. ScssParser: function ScssParser(t0, t1, t2) {
  11518. var _ = this;
  11519. _._isUseAllowed = true;
  11520. _._stylesheet$_inMixin = false;
  11521. _._mixinHasContent = null;
  11522. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  11523. _._globalVariables = t0;
  11524. _.lastSilentComment = null;
  11525. _.scanner = t1;
  11526. _.logger = t2;
  11527. },
  11528. Entry: function Entry(t0, t1, t2) {
  11529. this.source = t0;
  11530. this.target = t1;
  11531. this.identifierName = t2;
  11532. },
  11533. _StreamTransformer__defaultHandleError: function(error, stackTrace, sink) {
  11534. sink.addError$2(error, stackTrace);
  11535. },
  11536. _StreamTransformer: function _StreamTransformer(t0, t1, t2, t3) {
  11537. var _ = this;
  11538. _._from_handlers$_handleData = t0;
  11539. _._from_handlers$_handleDone = t1;
  11540. _._from_handlers$_handleError = t2;
  11541. _.$ti = t3;
  11542. },
  11543. _StreamTransformer_bind_closure: function _StreamTransformer_bind_closure(t0, t1, t2, t3) {
  11544. var _ = this;
  11545. _._box_1 = t0;
  11546. _.$this = t1;
  11547. _.values = t2;
  11548. _.controller = t3;
  11549. },
  11550. _StreamTransformer_bind__closure: function _StreamTransformer_bind__closure(t0, t1) {
  11551. this.$this = t0;
  11552. this.controller = t1;
  11553. },
  11554. _StreamTransformer_bind__closure1: function _StreamTransformer_bind__closure1(t0, t1) {
  11555. this.$this = t0;
  11556. this.controller = t1;
  11557. },
  11558. _StreamTransformer_bind__closure0: function _StreamTransformer_bind__closure0(t0, t1, t2) {
  11559. this._box_0 = t0;
  11560. this.$this = t1;
  11561. this.controller = t2;
  11562. },
  11563. _StreamTransformer_bind__closure2: function _StreamTransformer_bind__closure2(t0, t1) {
  11564. this._box_1 = t0;
  11565. this._box_0 = t1;
  11566. },
  11567. ModifiableCssDeclaration$0: function($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
  11568. var t2,
  11569. t1 = valueSpanForMap == null ? span : valueSpanForMap;
  11570. if (parsedAsCustomProperty)
  11571. if (!J.startsWith$1$s($name.get$value($name), "--"))
  11572. H.throwExpression(P.ArgumentError$(string$.parsed));
  11573. else {
  11574. t2 = value.value;
  11575. if (!(t2 instanceof D.SassString0))
  11576. H.throwExpression(P.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + J.get$runtimeType$u(t2).toString$0(0) + ")."));
  11577. }
  11578. return new L.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, span);
  11579. },
  11580. ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4) {
  11581. var _ = this;
  11582. _.name = t0;
  11583. _.value = t1;
  11584. _.parsedAsCustomProperty = t2;
  11585. _.valueSpanForMap = t3;
  11586. _.span = t4;
  11587. _._node2$_indexInParent = _._node2$_parent = null;
  11588. _.isGroupEnd = false;
  11589. },
  11590. Declaration$0: function($name, span, children, value) {
  11591. var t1;
  11592. children = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement_2);
  11593. t1 = children == null ? null : C.JSArray_methods.any$1(children, new M.ParentStatement_closure0());
  11594. if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--") && !(value instanceof D.StringExpression0))
  11595. H.throwExpression(P.ArgumentError$(string$.Declarw + H.S(value) + "` of type " + J.get$runtimeType$u(value).toString$0(0) + ")."));
  11596. return new L.Declaration0($name, value, span, children, t1 === true);
  11597. },
  11598. Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
  11599. var _ = this;
  11600. _.name = t0;
  11601. _.value = t1;
  11602. _.span = t2;
  11603. _.children = t3;
  11604. _.hasDeclarations = t4;
  11605. },
  11606. SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
  11607. this.name = t0;
  11608. this.value = t1;
  11609. this.span = t2;
  11610. },
  11611. ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
  11612. var _ = this;
  11613. _.url = t0;
  11614. _.shownMixinsAndFunctions = t1;
  11615. _.shownVariables = t2;
  11616. _.hiddenMixinsAndFunctions = t3;
  11617. _.hiddenVariables = t4;
  11618. _.prefix = t5;
  11619. _.configuration = t6;
  11620. _.span = t7;
  11621. },
  11622. IfExpression0: function IfExpression0(t0, t1) {
  11623. this.$arguments = t0;
  11624. this.span = t1;
  11625. },
  11626. LoudComment0: function LoudComment0(t0) {
  11627. this.text = t0;
  11628. },
  11629. ExtendMode0: function ExtendMode0(t0) {
  11630. this.name = t0;
  11631. },
  11632. PlainCssCallable0: function PlainCssCallable0(t0) {
  11633. this.name = t0;
  11634. },
  11635. RenderContextOptions: function RenderContextOptions() {
  11636. },
  11637. ScssParser$0: function(contents, logger, url) {
  11638. var t1 = S.SpanScanner$(contents, url),
  11639. t2 = logger == null ? C.C_StderrLogger : logger;
  11640. return new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_VariableDeclaration_2), t1, t2);
  11641. },
  11642. ScssParser0: function ScssParser0(t0, t1, t2) {
  11643. var _ = this;
  11644. _._stylesheet0$_isUseAllowed = true;
  11645. _._stylesheet0$_inMixin = false;
  11646. _._stylesheet0$_mixinHasContent = null;
  11647. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  11648. _._stylesheet0$_globalVariables = t0;
  11649. _.lastSilentComment = null;
  11650. _.scanner = t1;
  11651. _.logger = t2;
  11652. },
  11653. encodeVlq: function(value) {
  11654. var res, signBit, digit, t1;
  11655. if (value < $.$get$MIN_INT32() || value > $.$get$MAX_INT32())
  11656. throw H.wrapException(P.ArgumentError$("expected 32 bit int, got: " + value));
  11657. res = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  11658. if (value < 0) {
  11659. value = -value;
  11660. signBit = 1;
  11661. } else
  11662. signBit = 0;
  11663. value = value << 1 | signBit;
  11664. do {
  11665. digit = value & 31;
  11666. value = value >>> 5;
  11667. t1 = value > 0;
  11668. res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
  11669. } while (t1);
  11670. return res;
  11671. }
  11672. },
  11673. Q = {Repl: function Repl(t0, t1, t2, t3) {
  11674. var _ = this;
  11675. _.prompt = t0;
  11676. _.continuation = t1;
  11677. _.validator = t2;
  11678. _._adapter = null;
  11679. _.history = t3;
  11680. }, closure113: function closure113() {
  11681. },
  11682. QueueList$: function(initialCapacity, $E) {
  11683. var t1 = new Q.QueueList(0, 0, $E._eval$1("QueueList<0>"));
  11684. t1.QueueList$1(initialCapacity, $E);
  11685. return t1;
  11686. },
  11687. QueueList_QueueList$from: function(source, $E) {
  11688. var $length, queue,
  11689. t1 = $E._eval$1("0*");
  11690. if (type$.legacy_List_dynamic._is(source)) {
  11691. $length = J.get$length$asx(source);
  11692. queue = Q.QueueList$($length + 1, t1);
  11693. J.setRange$4$ax(queue._table, 0, $length, source, 0);
  11694. queue._tail = $length;
  11695. return queue;
  11696. } else {
  11697. t1 = Q.QueueList$(null, t1);
  11698. t1.addAll$1(0, source);
  11699. return t1;
  11700. }
  11701. },
  11702. QueueList__nextPowerOf2: function(number) {
  11703. var nextNumber;
  11704. number = (number << 1 >>> 0) - 1;
  11705. for (; true; number = nextNumber) {
  11706. nextNumber = (number & number - 1) >>> 0;
  11707. if (nextNumber === 0)
  11708. return number;
  11709. }
  11710. },
  11711. QueueList: function QueueList(t0, t1, t2) {
  11712. var _ = this;
  11713. _._table = null;
  11714. _._head = t0;
  11715. _._tail = t1;
  11716. _.$ti = t2;
  11717. },
  11718. _CastQueueList: function _CastQueueList(t0, t1, t2, t3) {
  11719. var _ = this;
  11720. _._queue_list$_delegate = t0;
  11721. _._table = null;
  11722. _._head = t1;
  11723. _._tail = t2;
  11724. _.$ti = t3;
  11725. },
  11726. _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
  11727. },
  11728. StaticImport: function StaticImport(t0, t1, t2, t3) {
  11729. var _ = this;
  11730. _.url = t0;
  11731. _.supports = t1;
  11732. _.media = t2;
  11733. _.span = t3;
  11734. },
  11735. ContentRule: function ContentRule(t0, t1) {
  11736. this.span = t0;
  11737. this.$arguments = t1;
  11738. },
  11739. DebugRule: function DebugRule(t0, t1) {
  11740. this.expression = t0;
  11741. this.span = t1;
  11742. },
  11743. AsyncEnvironment$: function(sourceMap) {
  11744. var _null = null,
  11745. t1 = type$.legacy_String,
  11746. t2 = type$.legacy_Module_legacy_AsyncCallable,
  11747. t3 = type$.legacy_AstNode,
  11748. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable),
  11749. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value),
  11750. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode) : _null,
  11751. t7 = type$.legacy_int,
  11752. t8 = type$.legacy_AsyncCallable,
  11753. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable;
  11754. return new Q.AsyncEnvironment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  11755. },
  11756. AsyncEnvironment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  11757. var t1 = type$.legacy_String,
  11758. t2 = type$.legacy_int;
  11759. return new Q.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  11760. },
  11761. _EnvironmentModule__EnvironmentModule0: function(environment, css, extender, forwarded) {
  11762. var t1, t2, t3, t4, t5, t6;
  11763. if (forwarded == null)
  11764. forwarded = C.Set_empty0;
  11765. t1 = Q._EnvironmentModule__makeModulesByVariable0(forwarded);
  11766. t2 = H._instanceType(forwarded);
  11767. t3 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure5(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value*>*>")), type$.legacy_Value);
  11768. t4 = environment._async_environment$_variableNodes;
  11769. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure6(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode*>*>")), type$.legacy_AstNode);
  11770. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AsyncCallable*>*>");
  11771. t5 = type$.legacy_AsyncCallable;
  11772. t6 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure7(), t2), t5);
  11773. t5 = Q._EnvironmentModule__memberMap0(C.JSArray_methods.get$first(environment._async_environment$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure8(), t2), t5);
  11774. t2 = J.get$isNotEmpty$asx(css.get$children(css)) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure9());
  11775. return Q._EnvironmentModule$_0(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure10()));
  11776. },
  11777. _EnvironmentModule__makeModulesByVariable0: function(forwarded) {
  11778. var modulesByVariable, t1, t2, t3, t4, t5;
  11779. if (forwarded.get$isEmpty(forwarded))
  11780. return C.Map_empty4;
  11781. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_AsyncCallable);
  11782. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  11783. t2 = t1.get$current(t1);
  11784. if (t2 instanceof Q._EnvironmentModule0) {
  11785. for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  11786. t4 = t3.get$current(t3);
  11787. t5 = t4.get$variables();
  11788. B.setAll(modulesByVariable, t5.get$keys(t5), t4);
  11789. }
  11790. B.setAll(modulesByVariable, J.get$keys$z(C.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2);
  11791. } else {
  11792. t3 = t2.get$variables();
  11793. B.setAll(modulesByVariable, t3.get$keys(t3), t2);
  11794. }
  11795. }
  11796. return modulesByVariable;
  11797. },
  11798. _EnvironmentModule__memberMap0: function(localMap, otherMaps, $V) {
  11799. var t1, t2, t3, cur;
  11800. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0*>"));
  11801. t1 = otherMaps.__internal$_iterable;
  11802. t2 = J.getInterceptor$asx(t1);
  11803. if (t2.get$isEmpty(t1))
  11804. return localMap;
  11805. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  11806. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  11807. cur = t1.__internal$_current;
  11808. if (cur.get$isNotEmpty(cur))
  11809. t3.push(cur);
  11810. }
  11811. t3.push(localMap);
  11812. if (t3.length === 1)
  11813. return localMap;
  11814. return Z.MergedMapView$(t3, type$.legacy_String, $V._eval$1("0*"));
  11815. },
  11816. _EnvironmentModule$_0: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  11817. return new Q._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  11818. },
  11819. AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  11820. var _ = this;
  11821. _._async_environment$_modules = t0;
  11822. _._async_environment$_namespaceNodes = t1;
  11823. _._async_environment$_globalModules = t2;
  11824. _._async_environment$_globalModuleNodes = t3;
  11825. _._async_environment$_forwardedModules = t4;
  11826. _._async_environment$_forwardedModuleNodes = t5;
  11827. _._async_environment$_nestedForwardedModules = t6;
  11828. _._async_environment$_allModules = t7;
  11829. _._async_environment$_variables = t8;
  11830. _._async_environment$_variableNodes = t9;
  11831. _._async_environment$_variableIndices = t10;
  11832. _._async_environment$_functions = t11;
  11833. _._async_environment$_functionIndices = t12;
  11834. _._async_environment$_mixins = t13;
  11835. _._async_environment$_mixinIndices = t14;
  11836. _._async_environment$_content = t15;
  11837. _._async_environment$_inMixin = false;
  11838. _._async_environment$_inSemiGlobalScope = true;
  11839. _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
  11840. },
  11841. AsyncEnvironment_importForwards_closure: function AsyncEnvironment_importForwards_closure() {
  11842. },
  11843. AsyncEnvironment_importForwards_closure0: function AsyncEnvironment_importForwards_closure0() {
  11844. },
  11845. AsyncEnvironment_importForwards_closure1: function AsyncEnvironment_importForwards_closure1() {
  11846. },
  11847. AsyncEnvironment_importForwards_closure2: function AsyncEnvironment_importForwards_closure2() {
  11848. },
  11849. AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
  11850. this.name = t0;
  11851. },
  11852. AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
  11853. this.$this = t0;
  11854. this.name = t1;
  11855. },
  11856. AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
  11857. this.name = t0;
  11858. },
  11859. AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
  11860. this.$this = t0;
  11861. this.name = t1;
  11862. },
  11863. AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
  11864. this.name = t0;
  11865. },
  11866. AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
  11867. this.name = t0;
  11868. },
  11869. _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  11870. var _ = this;
  11871. _.upstream = t0;
  11872. _.variables = t1;
  11873. _.variableNodes = t2;
  11874. _.functions = t3;
  11875. _.mixins = t4;
  11876. _.extender = t5;
  11877. _.css = t6;
  11878. _.transitivelyContainsCss = t7;
  11879. _.transitivelyContainsExtensions = t8;
  11880. _._async_environment$_environment = t9;
  11881. _._async_environment$_modulesByVariable = t10;
  11882. },
  11883. _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
  11884. },
  11885. _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
  11886. },
  11887. _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
  11888. },
  11889. _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
  11890. },
  11891. _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
  11892. },
  11893. _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
  11894. },
  11895. BuiltInCallable$function: function($name, $arguments, callback, url) {
  11896. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(L.ScssParser$("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  11897. },
  11898. BuiltInCallable$mixin: function($name, $arguments, callback, url) {
  11899. return new Q.BuiltInCallable($name, H.setRuntimeTypeInfo([new S.Tuple2(L.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure(callback), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value));
  11900. },
  11901. BuiltInCallable$overloadedFunction: function($name, overloads) {
  11902. var t2, t3, t4, t5, t6, t7,
  11903. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value);
  11904. for (t2 = overloads.get$entries(overloads), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value, t4 = type$.legacy_String, t5 = type$.legacy_VariableDeclaration; t2.moveNext$0();) {
  11905. t6 = t2.get$current(t2);
  11906. t7 = S.SpanScanner$("@function " + $name + "(" + H.S(t6.key) + ") {", null);
  11907. t1.push(new S.Tuple2(new L.ScssParser(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t7, C.StderrLogger_false).parseArgumentDeclaration$0(), t6.value, t3));
  11908. }
  11909. return new Q.BuiltInCallable($name, t1);
  11910. },
  11911. BuiltInCallable: function BuiltInCallable(t0, t1) {
  11912. this.name = t0;
  11913. this._overloads = t1;
  11914. },
  11915. BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
  11916. this.callback = t0;
  11917. },
  11918. _function5: function($name, $arguments, callback) {
  11919. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:meta");
  11920. },
  11921. closure108: function closure108() {
  11922. },
  11923. closure109: function closure109() {
  11924. },
  11925. closure110: function closure110() {
  11926. },
  11927. closure111: function closure111() {
  11928. },
  11929. BuiltInModule$: function($name, functions, mixins, variables, $T) {
  11930. var t4,
  11931. t1 = P._Uri__Uri(null, $name, null, "sass"),
  11932. t2 = $T._eval$1("0*"),
  11933. t3 = Q.BuiltInModule__callableMap(functions, t2);
  11934. t2 = Q.BuiltInModule__callableMap(mixins, t2);
  11935. t4 = variables == null ? C.Map_empty2 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Value);
  11936. return new Q.BuiltInModule(t1, t3, t2, t4, $T._eval$1("BuiltInModule<0>"));
  11937. },
  11938. BuiltInModule__callableMap: function(callables, $T) {
  11939. var t3, _i, callable,
  11940. t1 = type$.legacy_String,
  11941. t2 = $T._eval$1("0*");
  11942. if (callables == null)
  11943. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  11944. else {
  11945. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  11946. for (t3 = callables.length, _i = 0; _i < callables.length; callables.length === t3 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  11947. callable = callables[_i];
  11948. t1.$indexSet(0, callable.get$name(callable), callable);
  11949. }
  11950. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  11951. }
  11952. return new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  11953. },
  11954. BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
  11955. var _ = this;
  11956. _.url = t0;
  11957. _.functions = t1;
  11958. _.mixins = t2;
  11959. _.variables = t3;
  11960. _.$ti = t4;
  11961. },
  11962. closure112: function closure112() {
  11963. },
  11964. CssParser: function CssParser(t0, t1, t2) {
  11965. var _ = this;
  11966. _._isUseAllowed = true;
  11967. _._stylesheet$_inMixin = false;
  11968. _._mixinHasContent = null;
  11969. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  11970. _._globalVariables = t0;
  11971. _.lastSilentComment = null;
  11972. _.scanner = t1;
  11973. _.logger = t2;
  11974. },
  11975. AsyncEnvironment$0: function(sourceMap) {
  11976. var _null = null,
  11977. t1 = type$.legacy_String,
  11978. t2 = type$.legacy_Module_legacy_AsyncCallable_2,
  11979. t3 = type$.legacy_AstNode_2,
  11980. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2),
  11981. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value_2)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2),
  11982. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2) : _null,
  11983. t7 = type$.legacy_int,
  11984. t8 = type$.legacy_AsyncCallable_2,
  11985. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable_2;
  11986. return new Q.AsyncEnvironment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  11987. },
  11988. AsyncEnvironment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  11989. var t1 = type$.legacy_String,
  11990. t2 = type$.legacy_int;
  11991. return new Q.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  11992. },
  11993. _EnvironmentModule__EnvironmentModule2: function(environment, css, extender, forwarded) {
  11994. var t1, t2, t3, t4, t5, t6;
  11995. if (forwarded == null)
  11996. forwarded = C.Set_empty3;
  11997. t1 = Q._EnvironmentModule__makeModulesByVariable2(forwarded);
  11998. t2 = H._instanceType(forwarded);
  11999. t3 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure17(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value0*>*>")), type$.legacy_Value_2);
  12000. t4 = environment._async_environment0$_variableNodes;
  12001. t4 = t4 == null ? null : Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure18(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode0*>*>")), type$.legacy_AstNode_2);
  12002. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AsyncCallable0*>*>");
  12003. t5 = type$.legacy_AsyncCallable_2;
  12004. t6 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure19(), t2), t5);
  12005. t5 = Q._EnvironmentModule__memberMap2(C.JSArray_methods.get$first(environment._async_environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new Q._EnvironmentModule__EnvironmentModule_closure20(), t2), t5);
  12006. t2 = J.get$isNotEmpty$asx(css.get$children(css)) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure21());
  12007. return Q._EnvironmentModule$_2(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._async_environment0$_allModules, new Q._EnvironmentModule__EnvironmentModule_closure22()));
  12008. },
  12009. _EnvironmentModule__makeModulesByVariable2: function(forwarded) {
  12010. var modulesByVariable, t1, t2, t3, t4, t5;
  12011. if (forwarded.get$isEmpty(forwarded))
  12012. return C.Map_empty11;
  12013. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_AsyncCallable_2);
  12014. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  12015. t2 = t1.get$current(t1);
  12016. if (t2 instanceof Q._EnvironmentModule2) {
  12017. for (t3 = t2._async_environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  12018. t4 = t3.get$current(t3);
  12019. t5 = t4.get$variables();
  12020. B.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  12021. }
  12022. B.setAll0(modulesByVariable, J.get$keys$z(C.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables)), t2);
  12023. } else {
  12024. t3 = t2.get$variables();
  12025. B.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  12026. }
  12027. }
  12028. return modulesByVariable;
  12029. },
  12030. _EnvironmentModule__memberMap2: function(localMap, otherMaps, $V) {
  12031. var t1, t2, t3, cur;
  12032. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0*>"));
  12033. t1 = otherMaps.__internal$_iterable;
  12034. t2 = J.getInterceptor$asx(t1);
  12035. if (t2.get$isEmpty(t1))
  12036. return localMap;
  12037. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  12038. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  12039. cur = t1.__internal$_current;
  12040. if (cur.get$isNotEmpty(cur))
  12041. t3.push(cur);
  12042. }
  12043. t3.push(localMap);
  12044. if (t3.length === 1)
  12045. return localMap;
  12046. return Z.MergedMapView$0(t3, type$.legacy_String, $V._eval$1("0*"));
  12047. },
  12048. _EnvironmentModule$_2: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  12049. return new Q._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  12050. },
  12051. AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  12052. var _ = this;
  12053. _._async_environment0$_modules = t0;
  12054. _._async_environment0$_namespaceNodes = t1;
  12055. _._async_environment0$_globalModules = t2;
  12056. _._async_environment0$_globalModuleNodes = t3;
  12057. _._async_environment0$_forwardedModules = t4;
  12058. _._async_environment0$_forwardedModuleNodes = t5;
  12059. _._async_environment0$_nestedForwardedModules = t6;
  12060. _._async_environment0$_allModules = t7;
  12061. _._async_environment0$_variables = t8;
  12062. _._async_environment0$_variableNodes = t9;
  12063. _._async_environment0$_variableIndices = t10;
  12064. _._async_environment0$_functions = t11;
  12065. _._async_environment0$_functionIndices = t12;
  12066. _._async_environment0$_mixins = t13;
  12067. _._async_environment0$_mixinIndices = t14;
  12068. _._async_environment0$_content = t15;
  12069. _._async_environment0$_inMixin = false;
  12070. _._async_environment0$_inSemiGlobalScope = true;
  12071. _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
  12072. },
  12073. AsyncEnvironment_importForwards_closure3: function AsyncEnvironment_importForwards_closure3() {
  12074. },
  12075. AsyncEnvironment_importForwards_closure4: function AsyncEnvironment_importForwards_closure4() {
  12076. },
  12077. AsyncEnvironment_importForwards_closure5: function AsyncEnvironment_importForwards_closure5() {
  12078. },
  12079. AsyncEnvironment_importForwards_closure6: function AsyncEnvironment_importForwards_closure6() {
  12080. },
  12081. AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
  12082. this.name = t0;
  12083. },
  12084. AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
  12085. this.$this = t0;
  12086. this.name = t1;
  12087. },
  12088. AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
  12089. this.name = t0;
  12090. },
  12091. AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
  12092. this.$this = t0;
  12093. this.name = t1;
  12094. },
  12095. AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
  12096. this.name = t0;
  12097. },
  12098. AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
  12099. this.name = t0;
  12100. },
  12101. _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  12102. var _ = this;
  12103. _.upstream = t0;
  12104. _.variables = t1;
  12105. _.variableNodes = t2;
  12106. _.functions = t3;
  12107. _.mixins = t4;
  12108. _.extender = t5;
  12109. _.css = t6;
  12110. _.transitivelyContainsCss = t7;
  12111. _.transitivelyContainsExtensions = t8;
  12112. _._async_environment0$_environment = t9;
  12113. _._async_environment0$_modulesByVariable = t10;
  12114. },
  12115. _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
  12116. },
  12117. _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
  12118. },
  12119. _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
  12120. },
  12121. _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
  12122. },
  12123. _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
  12124. },
  12125. _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
  12126. },
  12127. BuiltInCallable$function0: function($name, $arguments, callback, url) {
  12128. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(L.ScssParser$0("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  12129. },
  12130. BuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  12131. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2(L.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new Q.BuiltInCallable$mixin_closure0(callback), type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  12132. },
  12133. BuiltInCallable$parsed: function($name, $arguments, callback) {
  12134. return new Q.BuiltInCallable0($name, H.setRuntimeTypeInfo([new S.Tuple2($arguments, callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2)], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  12135. },
  12136. BuiltInCallable$overloadedFunction0: function($name, overloads) {
  12137. var t2, t3, t4, t5, t6, t7,
  12138. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2);
  12139. for (t2 = overloads.get$entries(overloads), t2 = t2.get$iterator(t2), t3 = type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2, t4 = type$.legacy_String, t5 = type$.legacy_VariableDeclaration_2; t2.moveNext$0();) {
  12140. t6 = t2.get$current(t2);
  12141. t7 = S.SpanScanner$("@function " + $name + "(" + H.S(t6.key) + ") {", null);
  12142. t1.push(new S.Tuple2(new L.ScssParser0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t7, C.C_StderrLogger).parseArgumentDeclaration$0(), t6.value, t3));
  12143. }
  12144. return new Q.BuiltInCallable0($name, t1);
  12145. },
  12146. BuiltInCallable0: function BuiltInCallable0(t0, t1) {
  12147. this.name = t0;
  12148. this._built_in$_overloads = t1;
  12149. },
  12150. BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
  12151. this.callback = t0;
  12152. },
  12153. BuiltInModule$0: function($name, functions, mixins, variables, $T) {
  12154. var t4,
  12155. t1 = P._Uri__Uri(null, $name, null, "sass"),
  12156. t2 = $T._eval$1("0*"),
  12157. t3 = Q.BuiltInModule__callableMap0(functions, t2);
  12158. t2 = Q.BuiltInModule__callableMap0(mixins, t2);
  12159. t4 = variables == null ? C.Map_empty8 : new P.UnmodifiableMapView(variables, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Value_2);
  12160. return new Q.BuiltInModule0(t1, t3, t2, t4, $T._eval$1("BuiltInModule0<0>"));
  12161. },
  12162. BuiltInModule__callableMap0: function(callables, $T) {
  12163. var t3, _i, callable,
  12164. t1 = type$.legacy_String,
  12165. t2 = $T._eval$1("0*");
  12166. if (callables == null)
  12167. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  12168. else {
  12169. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  12170. for (t3 = callables.length, _i = 0; _i < callables.length; callables.length === t3 || (0, H.throwConcurrentModificationError)(callables), ++_i) {
  12171. callable = callables[_i];
  12172. t1.$indexSet(0, callable.get$name(callable), callable);
  12173. }
  12174. t1 = new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  12175. }
  12176. return new P.UnmodifiableMapView(t1, type$.$env_1_1_legacy_String._bind$1(t2)._eval$1("UnmodifiableMapView<1,2>"));
  12177. },
  12178. BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
  12179. var _ = this;
  12180. _.url = t0;
  12181. _.functions = t1;
  12182. _.mixins = t2;
  12183. _.variables = t3;
  12184. _.$ti = t4;
  12185. },
  12186. ContentRule0: function ContentRule0(t0, t1) {
  12187. this.span = t0;
  12188. this.$arguments = t1;
  12189. },
  12190. closure227: function closure227() {
  12191. },
  12192. CssParser0: function CssParser0(t0, t1, t2) {
  12193. var _ = this;
  12194. _._stylesheet0$_isUseAllowed = true;
  12195. _._stylesheet0$_inMixin = false;
  12196. _._stylesheet0$_mixinHasContent = null;
  12197. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  12198. _._stylesheet0$_globalVariables = t0;
  12199. _.lastSilentComment = null;
  12200. _.scanner = t1;
  12201. _.logger = t2;
  12202. },
  12203. DebugRule0: function DebugRule0(t0, t1) {
  12204. this.expression = t0;
  12205. this.span = t1;
  12206. },
  12207. _function12: function($name, $arguments, callback) {
  12208. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:meta");
  12209. },
  12210. closure223: function closure223() {
  12211. },
  12212. closure224: function closure224() {
  12213. },
  12214. closure225: function closure225() {
  12215. },
  12216. closure226: function closure226() {
  12217. },
  12218. StaticImport0: function StaticImport0(t0, t1, t2, t3) {
  12219. var _ = this;
  12220. _.url = t0;
  12221. _.supports = t1;
  12222. _.media = t2;
  12223. _.span = t3;
  12224. }
  12225. },
  12226. B = {ReplAdapter: function ReplAdapter(t0) {
  12227. this.repl = t0;
  12228. this.rl = null;
  12229. }, ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0) {
  12230. this.controller = t0;
  12231. }, Stdin: function Stdin() {
  12232. }, Stdout: function Stdout() {
  12233. }, ReadlineModule: function ReadlineModule() {
  12234. }, ReadlineOptions: function ReadlineOptions() {
  12235. }, ReadlineInterface: function ReadlineInterface() {
  12236. },
  12237. defaultCompare: function($T) {
  12238. return new B.defaultCompare_closure($T);
  12239. },
  12240. defaultCompare_closure: function defaultCompare_closure(t0) {
  12241. this.T = t0;
  12242. },
  12243. InternalStyle: function InternalStyle() {
  12244. },
  12245. ModifiableCssNode: function ModifiableCssNode() {
  12246. },
  12247. ModifiableCssParentNode: function ModifiableCssParentNode() {
  12248. },
  12249. ModifiableCssSupportsRule$: function(condition, span) {
  12250. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  12251. return new B.ModifiableCssSupportsRule(condition, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  12252. },
  12253. ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
  12254. var _ = this;
  12255. _.condition = t0;
  12256. _.span = t1;
  12257. _.children = t2;
  12258. _._children = t3;
  12259. _._indexInParent = _._parent = null;
  12260. _.isGroupEnd = false;
  12261. },
  12262. CssNode: function CssNode() {
  12263. },
  12264. CssParentNode: function CssParentNode() {
  12265. },
  12266. AstNode: function AstNode() {
  12267. },
  12268. _FakeAstNode: function _FakeAstNode(t0) {
  12269. this._callback = t0;
  12270. },
  12271. ArgumentDeclaration_ArgumentDeclaration$parse: function(contents, url) {
  12272. return L.ScssParser$(contents, null, url).parseArgumentDeclaration$0();
  12273. },
  12274. ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
  12275. this.$arguments = t0;
  12276. this.restArgument = t1;
  12277. this.span = t2;
  12278. },
  12279. ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
  12280. },
  12281. ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
  12282. },
  12283. DynamicImport: function DynamicImport(t0, t1) {
  12284. this.url = t0;
  12285. this.span = t1;
  12286. },
  12287. ForRule$: function(variable, from, to, children, span, exclusive) {
  12288. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  12289. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  12290. return new B.ForRule(variable, from, to, exclusive, span, t1, t2);
  12291. },
  12292. ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
  12293. var _ = this;
  12294. _.variable = t0;
  12295. _.from = t1;
  12296. _.to = t2;
  12297. _.isExclusive = t3;
  12298. _.span = t4;
  12299. _.children = t5;
  12300. _.hasDeclarations = t6;
  12301. },
  12302. ImportRule: function ImportRule(t0, t1) {
  12303. this.imports = t0;
  12304. this.span = t1;
  12305. },
  12306. ReturnRule: function ReturnRule(t0, t1) {
  12307. this.expression = t0;
  12308. this.span = t1;
  12309. },
  12310. SilentComment: function SilentComment(t0, t1) {
  12311. this.text = t0;
  12312. this.span = t1;
  12313. },
  12314. SupportsRule$: function(condition, children, span) {
  12315. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  12316. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  12317. return new B.SupportsRule(condition, span, t1, t2);
  12318. },
  12319. SupportsRule: function SupportsRule(t0, t1, t2, t3) {
  12320. var _ = this;
  12321. _.condition = t0;
  12322. _.span = t1;
  12323. _.children = t2;
  12324. _.hasDeclarations = t3;
  12325. },
  12326. ExecutableOptions__separator: function(text) {
  12327. var t1 = $.$get$ExecutableOptions__separatorBar(),
  12328. t2 = C.JSString_methods.$mul(t1, 3) + " ";
  12329. t2 = t2 + (B.hasTerminal() ? "\x1b[1m" : "") + text;
  12330. return t2 + (B.hasTerminal() ? "\x1b[0m" : "") + " " + C.JSString_methods.$mul(t1, 35 - text.length);
  12331. },
  12332. ExecutableOptions__fail: function(message) {
  12333. return H.throwExpression(B.UsageException$(message));
  12334. },
  12335. ExecutableOptions_ExecutableOptions$parse: function(args) {
  12336. var options, error, t1, exception;
  12337. try {
  12338. t1 = $.$get$ExecutableOptions__parser();
  12339. t1.toString;
  12340. t1 = G.Parser$(null, t1, P.ListQueue_ListQueue$of(args, type$.legacy_String), null, null).parse$0();
  12341. if (t1.wasParsed$1("poll") && !H._asBoolS(t1.$index(0, "watch")))
  12342. B.ExecutableOptions__fail("--poll may not be passed without --watch.");
  12343. options = new B.ExecutableOptions(t1);
  12344. if (H._asBoolS(options._options.$index(0, "help")))
  12345. B.ExecutableOptions__fail("Compile Sass to CSS.");
  12346. return options;
  12347. } catch (exception) {
  12348. t1 = H.unwrapException(exception);
  12349. if (type$.legacy_FormatException._is(t1)) {
  12350. error = t1;
  12351. B.ExecutableOptions__fail(J.get$message$x(error));
  12352. } else
  12353. throw exception;
  12354. }
  12355. },
  12356. UsageException$: function(message) {
  12357. return new B.UsageException(message);
  12358. },
  12359. ExecutableOptions: function ExecutableOptions(t0) {
  12360. var _ = this;
  12361. _._options = t0;
  12362. _._sourceDirectoriesToDestinations = _._sourcesToDestinations = _._interactive = null;
  12363. },
  12364. ExecutableOptions_closure: function ExecutableOptions_closure() {
  12365. },
  12366. ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
  12367. },
  12368. UsageException: function UsageException(t0) {
  12369. this.message = t0;
  12370. },
  12371. AsyncImporter: function AsyncImporter() {
  12372. },
  12373. inImportRule: function(callback) {
  12374. var t1,
  12375. wasInImportRule = $._inImportRule;
  12376. $._inImportRule = true;
  12377. try {
  12378. t1 = callback.call$0();
  12379. return t1;
  12380. } finally {
  12381. $._inImportRule = wasInImportRule;
  12382. }
  12383. },
  12384. resolveImportPath: function(path) {
  12385. var t1,
  12386. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  12387. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  12388. t1 = $._inImportRule ? new B.resolveImportPath_closure(path, extension).call$0() : null;
  12389. return t1 == null ? B._exactlyOne(B._tryPath(path)) : t1;
  12390. }
  12391. t1 = $._inImportRule ? new B.resolveImportPath_closure0(path).call$0() : null;
  12392. if (t1 == null)
  12393. t1 = B._exactlyOne(B._tryPathWithExtensions(path));
  12394. return t1 == null ? B._tryPathAsDirectory(path) : t1;
  12395. },
  12396. _tryPathWithExtensions: function(path) {
  12397. var result = B._tryPath(path + ".sass");
  12398. C.JSArray_methods.addAll$1(result, B._tryPath(path + ".scss"));
  12399. return result.length !== 0 ? result : B._tryPath(path + ".css");
  12400. },
  12401. _tryPath: function(path) {
  12402. var t1 = $.$get$context(),
  12403. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  12404. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  12405. if (B.fileExists(partial))
  12406. t1.push(partial);
  12407. if (B.fileExists(path))
  12408. t1.push(path);
  12409. return t1;
  12410. },
  12411. _tryPathAsDirectory: function(path) {
  12412. var t1;
  12413. if (!B.dirExists(path))
  12414. return null;
  12415. t1 = $._inImportRule ? new B._tryPathAsDirectory_closure(path).call$0() : null;
  12416. return t1 == null ? B._exactlyOne(B._tryPathWithExtensions(D.join(path, "index", null))) : t1;
  12417. },
  12418. _exactlyOne: function(paths) {
  12419. var t1 = paths.length;
  12420. if (t1 === 0)
  12421. return null;
  12422. if (t1 === 1)
  12423. return C.JSArray_methods.get$first(paths);
  12424. throw H.wrapException(string$.It_s_n + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure(), type$.legacy_String).join$1(0, "\n"));
  12425. },
  12426. resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
  12427. this.path = t0;
  12428. this.extension = t1;
  12429. },
  12430. resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
  12431. this.path = t0;
  12432. },
  12433. _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
  12434. this.path = t0;
  12435. },
  12436. _exactlyOne_closure: function _exactlyOne_closure() {
  12437. },
  12438. readFile: function(path) {
  12439. var sourceFile, t1, i,
  12440. contents = H._asStringS(B._readFile(path, "utf8"));
  12441. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  12442. return contents;
  12443. sourceFile = Y.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  12444. for (t1 = contents.length, i = 0; i < t1; ++i) {
  12445. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  12446. continue;
  12447. throw H.wrapException(E.SassException$("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  12448. }
  12449. return contents;
  12450. },
  12451. _readFile: function(path, encoding) {
  12452. return B._systemErrorToFileSystemException(new B._readFile_closure(path, encoding));
  12453. },
  12454. writeFile: function(path, contents) {
  12455. return B._systemErrorToFileSystemException(new B.writeFile_closure(path, contents));
  12456. },
  12457. deleteFile: function(path) {
  12458. return B._systemErrorToFileSystemException(new B.deleteFile_closure(path));
  12459. },
  12460. readStdin: function() {
  12461. return B.readStdin$body();
  12462. },
  12463. readStdin$body: function() {
  12464. var $async$goto = 0,
  12465. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  12466. $async$returnValue, sink, t1, t2, completer;
  12467. var $async$readStdin = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12468. if ($async$errorCode === 1)
  12469. return P._asyncRethrow($async$result, $async$completer);
  12470. while (true)
  12471. switch ($async$goto) {
  12472. case 0:
  12473. // Function start
  12474. t1 = {};
  12475. t2 = new P._Future($.Zone__current, type$._Future_legacy_String);
  12476. completer = new P._AsyncCompleter(t2, type$._AsyncCompleter_legacy_String);
  12477. t1.contents = null;
  12478. sink = C.Utf8Decoder_false.startChunkedConversion$1(new P._StringCallbackSink(new B.readStdin_closure(t1, completer), new P.StringBuffer("")));
  12479. J.on$2$x(J.get$stdin$x(self.process), "data", P.allowInterop(new B.readStdin_closure0(sink)));
  12480. J.on$2$x(J.get$stdin$x(self.process), "end", P.allowInterop(new B.readStdin_closure1(sink)));
  12481. J.on$2$x(J.get$stdin$x(self.process), "error", P.allowInterop(new B.readStdin_closure2(completer)));
  12482. $async$returnValue = t2;
  12483. // goto return
  12484. $async$goto = 1;
  12485. break;
  12486. case 1:
  12487. // return
  12488. return P._asyncReturn($async$returnValue, $async$completer);
  12489. }
  12490. });
  12491. return P._asyncStartSync($async$readStdin, $async$completer);
  12492. },
  12493. fileExists: function(path) {
  12494. return B._systemErrorToFileSystemException(new B.fileExists_closure(path));
  12495. },
  12496. dirExists: function(path) {
  12497. return B._systemErrorToFileSystemException(new B.dirExists_closure(path));
  12498. },
  12499. ensureDir: function(path) {
  12500. return B._systemErrorToFileSystemException(new B.ensureDir_closure(path));
  12501. },
  12502. listDir: function(path, recursive) {
  12503. return B._systemErrorToFileSystemException(new B.listDir_closure(recursive, path));
  12504. },
  12505. modificationTime: function(path) {
  12506. return B._systemErrorToFileSystemException(new B.modificationTime_closure(path));
  12507. },
  12508. _systemErrorToFileSystemException: function(callback) {
  12509. var error, systemError, t1, exception, t2;
  12510. try {
  12511. t1 = callback.call$0();
  12512. return t1;
  12513. } catch (exception) {
  12514. error = H.unwrapException(exception);
  12515. systemError = type$.legacy_JsSystemError._as(error);
  12516. t1 = systemError;
  12517. t2 = J.getInterceptor$x(t1);
  12518. throw H.wrapException(new B.FileSystemException(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  12519. }
  12520. },
  12521. hasTerminal: function() {
  12522. var t1 = J.get$isTTY$x(J.get$stdout$x(self.process));
  12523. return t1 == null ? false : t1;
  12524. },
  12525. isWindows: function() {
  12526. return J.$eq$(J.get$platform$x(self.process), "win32");
  12527. },
  12528. watchDir: function(path, poll) {
  12529. var t2, t3, t1 = {},
  12530. watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
  12531. t1.controller = null;
  12532. t2 = J.getInterceptor$x(watcher);
  12533. t2.on$2(watcher, "add", P.allowInterop(new B.watchDir_closure(t1)));
  12534. t2.on$2(watcher, "change", P.allowInterop(new B.watchDir_closure0(t1)));
  12535. t2.on$2(watcher, "unlink", P.allowInterop(new B.watchDir_closure1(t1)));
  12536. t2.on$2(watcher, "error", P.allowInterop(new B.watchDir_closure2(t1)));
  12537. t3 = new P._Future($.Zone__current, type$._Future_legacy_Stream_legacy_WatchEvent);
  12538. t2.on$2(watcher, "ready", P.allowInterop(new B.watchDir_closure3(t1, watcher, new P._AsyncCompleter(t3, type$._AsyncCompleter_legacy_Stream_legacy_WatchEvent))));
  12539. return t3;
  12540. },
  12541. FileSystemException: function FileSystemException(t0, t1) {
  12542. this.message = t0;
  12543. this.path = t1;
  12544. },
  12545. Stderr: function Stderr(t0) {
  12546. this._stderr = t0;
  12547. },
  12548. _readFile_closure: function _readFile_closure(t0, t1) {
  12549. this.path = t0;
  12550. this.encoding = t1;
  12551. },
  12552. writeFile_closure: function writeFile_closure(t0, t1) {
  12553. this.path = t0;
  12554. this.contents = t1;
  12555. },
  12556. deleteFile_closure: function deleteFile_closure(t0) {
  12557. this.path = t0;
  12558. },
  12559. readStdin_closure: function readStdin_closure(t0, t1) {
  12560. this._box_0 = t0;
  12561. this.completer = t1;
  12562. },
  12563. readStdin_closure0: function readStdin_closure0(t0) {
  12564. this.sink = t0;
  12565. },
  12566. readStdin_closure1: function readStdin_closure1(t0) {
  12567. this.sink = t0;
  12568. },
  12569. readStdin_closure2: function readStdin_closure2(t0) {
  12570. this.completer = t0;
  12571. },
  12572. fileExists_closure: function fileExists_closure(t0) {
  12573. this.path = t0;
  12574. },
  12575. dirExists_closure: function dirExists_closure(t0) {
  12576. this.path = t0;
  12577. },
  12578. ensureDir_closure: function ensureDir_closure(t0) {
  12579. this.path = t0;
  12580. },
  12581. listDir_closure: function listDir_closure(t0, t1) {
  12582. this.recursive = t0;
  12583. this.path = t1;
  12584. },
  12585. listDir__closure: function listDir__closure(t0) {
  12586. this.path = t0;
  12587. },
  12588. listDir__closure0: function listDir__closure0() {
  12589. },
  12590. listDir_closure_list: function listDir_closure_list() {
  12591. },
  12592. listDir__list_closure: function listDir__list_closure(t0, t1) {
  12593. this.parent = t0;
  12594. this.list = t1;
  12595. },
  12596. modificationTime_closure: function modificationTime_closure(t0) {
  12597. this.path = t0;
  12598. },
  12599. watchDir_closure: function watchDir_closure(t0) {
  12600. this._box_0 = t0;
  12601. },
  12602. watchDir_closure0: function watchDir_closure0(t0) {
  12603. this._box_0 = t0;
  12604. },
  12605. watchDir_closure1: function watchDir_closure1(t0) {
  12606. this._box_0 = t0;
  12607. },
  12608. watchDir_closure2: function watchDir_closure2(t0) {
  12609. this._box_0 = t0;
  12610. },
  12611. watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
  12612. this._box_0 = t0;
  12613. this.watcher = t1;
  12614. this.completer = t2;
  12615. },
  12616. watchDir__closure: function watchDir__closure(t0) {
  12617. this.watcher = t0;
  12618. },
  12619. ShadowedModuleView_ifNecessary: function(inner, functions, mixins, variables, $T) {
  12620. var t1;
  12621. if (B.ShadowedModuleView__needsBlacklist(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist(inner.get$mixins(), mixins)) {
  12622. t1 = $T._eval$1("0*");
  12623. t1 = new B.ShadowedModuleView(inner, B.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.legacy_Value), B.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.legacy_AstNode), B.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, t1), B.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, t1), $T._eval$1("ShadowedModuleView<0*>"));
  12624. } else
  12625. t1 = null;
  12626. return t1;
  12627. },
  12628. ShadowedModuleView__shadowedMap: function(map, blocklist, $V) {
  12629. if (map == null || !B.ShadowedModuleView__needsBlacklist(map, blocklist))
  12630. return map;
  12631. return K.LimitedMapView$blocklist(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  12632. },
  12633. ShadowedModuleView__needsBlacklist: function(map, blocklist) {
  12634. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  12635. return t1;
  12636. },
  12637. ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
  12638. var _ = this;
  12639. _._shadowed_view$_inner = t0;
  12640. _.variables = t1;
  12641. _.variableNodes = t2;
  12642. _.functions = t3;
  12643. _.mixins = t4;
  12644. _.$ti = t5;
  12645. },
  12646. _PropertyDescriptor: function _PropertyDescriptor() {
  12647. },
  12648. toSentence: function(iter, conjunction) {
  12649. var t1 = iter.__internal$_iterable,
  12650. t2 = J.getInterceptor$asx(t1);
  12651. if (t2.get$length(t1) === 1)
  12652. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  12653. return H.TakeIterable_TakeIterable(iter, t2.get$length(t1) - 1, H._instanceType(iter)._eval$1("Iterable.E")).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter._f.call$1(t2.get$last(t1))));
  12654. },
  12655. indent: function(string, indentation) {
  12656. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure(indentation), type$.MappedListIterable_of_String_and_legacy_String).join$1(0, "\n");
  12657. },
  12658. pluralize: function($name, number, plural) {
  12659. if (number === 1)
  12660. return $name;
  12661. if (plural != null)
  12662. return plural;
  12663. return $name + "s";
  12664. },
  12665. trimAscii: function(string, excludeEscape) {
  12666. var start = B._firstNonWhitespace(string);
  12667. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace(string, true) + 1);
  12668. },
  12669. trimAsciiRight: function(string, excludeEscape) {
  12670. var end = B._lastNonWhitespace(string, excludeEscape);
  12671. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  12672. },
  12673. _firstNonWhitespace: function(string) {
  12674. var t1, i, t2;
  12675. for (t1 = string.length, i = 0; i < t1; ++i) {
  12676. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  12677. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  12678. return i;
  12679. }
  12680. return null;
  12681. },
  12682. _lastNonWhitespace: function(string, excludeEscape) {
  12683. var t1, i, t2, codeUnit;
  12684. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  12685. codeUnit = t2.codeUnitAt$1(string, i);
  12686. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  12687. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  12688. return i + 1;
  12689. else
  12690. return i;
  12691. }
  12692. return null;
  12693. },
  12694. isPublic: function(member) {
  12695. var start = J._codeUnitAt$1$s(member, 0);
  12696. return start !== 45 && start !== 95;
  12697. },
  12698. flattenVertically: function(iterable, $T) {
  12699. var result,
  12700. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0*>*"))._eval$1("MappedListIterable<1,2>"),
  12701. queues = P.List_List$from(new H.MappedListIterable(iterable, new B.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E"));
  12702. if (queues.length === 1)
  12703. return C.JSArray_methods.get$first(queues);
  12704. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  12705. for (; queues.length !== 0;) {
  12706. if (!!queues.fixed$length)
  12707. H.throwExpression(P.UnsupportedError$("removeWhere"));
  12708. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure0(result, $T), true);
  12709. }
  12710. return result;
  12711. },
  12712. firstOrNull: function(iterable) {
  12713. var iterator = J.get$iterator$ax(iterable);
  12714. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  12715. },
  12716. codepointIndexToCodeUnitIndex: function(string, codepointIndex) {
  12717. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  12718. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  12719. codeUnitIndex0 = codeUnitIndex + 1;
  12720. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  12721. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  12722. }
  12723. return codeUnitIndex;
  12724. },
  12725. codeUnitIndexToCodepointIndex: function(string, codeUnitIndex) {
  12726. var t1, codepointIndex, i, t2;
  12727. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  12728. ++codepointIndex;
  12729. t2 = t1._codeUnitAt$1(string, i);
  12730. }
  12731. return codepointIndex;
  12732. },
  12733. frameForSpan: function(span, member, url) {
  12734. var t2, t3, t4,
  12735. t1 = url == null ? span.file.url : url;
  12736. if (t1 == null)
  12737. t1 = $.$get$_noSourceUrl();
  12738. t2 = span.file;
  12739. t3 = span._file$_start;
  12740. t4 = Y.FileLocation$_(t2, t3);
  12741. t4 = t4.file.getLine$1(t4.offset);
  12742. t3 = Y.FileLocation$_(t2, t3);
  12743. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  12744. },
  12745. spanForList: function(nodes) {
  12746. var t1, left, right, _null = null;
  12747. if (nodes.length === 0)
  12748. return _null;
  12749. t1 = C.JSArray_methods.get$first(nodes);
  12750. left = t1 == null ? _null : t1.get$span();
  12751. if (left == null)
  12752. return _null;
  12753. t1 = C.JSArray_methods.get$last(nodes);
  12754. right = t1 == null ? _null : t1.get$span();
  12755. if (right == null)
  12756. return _null;
  12757. return left.expand$1(0, right);
  12758. },
  12759. declarationName: function(span) {
  12760. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  12761. return B.trimAsciiRight(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  12762. },
  12763. unvendor: function($name) {
  12764. var i,
  12765. t1 = $name.length;
  12766. if (t1 < 2)
  12767. return $name;
  12768. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  12769. return $name;
  12770. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  12771. return $name;
  12772. for (i = 2; i < t1; ++i)
  12773. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  12774. return C.JSString_methods.substring$1($name, i + 1);
  12775. return $name;
  12776. },
  12777. equalsIgnoreCase: function(string1, string2) {
  12778. var t1, i;
  12779. if (string1 == string2)
  12780. return true;
  12781. if (string1 == null || string2 == null)
  12782. return false;
  12783. t1 = string1.length;
  12784. if (t1 !== string2.length)
  12785. return false;
  12786. for (i = 0; i < t1; ++i)
  12787. if (!T.characterEqualsIgnoreCase(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  12788. return false;
  12789. return true;
  12790. },
  12791. startsWithIgnoreCase: function(string, prefix) {
  12792. var t2, i,
  12793. t1 = prefix.length;
  12794. if (string.length < t1)
  12795. return false;
  12796. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  12797. if (!T.characterEqualsIgnoreCase(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  12798. return false;
  12799. return true;
  12800. },
  12801. mapInPlace: function(list, $function) {
  12802. var i;
  12803. for (i = 0; i < list.length; ++i)
  12804. list[i] = $function.call$1(list[i]);
  12805. },
  12806. longestCommonSubsequence: function(list1, list2, select, $T) {
  12807. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  12808. if (select == null)
  12809. select = new B.longestCommonSubsequence_closure($T);
  12810. t1 = J.getInterceptor$asx(list1);
  12811. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure0(list2), false, type$.legacy_List_legacy_int);
  12812. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure1(list2, $T), false, $T._eval$1("List<0*>*"));
  12813. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  12814. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  12815. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  12816. J.$indexSet$ax(selections[i], j, selection);
  12817. t3 = lengths[i0];
  12818. j0 = j + 1;
  12819. if (selection == null) {
  12820. t4 = J.$index$asx(t3, j);
  12821. t5 = J.$index$asx(lengths[i], j0);
  12822. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  12823. t4 = t5;
  12824. } else
  12825. t4 = J.$index$asx(lengths[i], j) + 1;
  12826. J.$indexSet$ax(t3, j0, t4);
  12827. }
  12828. return new B.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  12829. },
  12830. removeFirstWhere: function(list, test, orElse) {
  12831. var toRemove, element,
  12832. t1 = list.length,
  12833. _i = 0;
  12834. while (true) {
  12835. if (!(_i < list.length)) {
  12836. toRemove = null;
  12837. break;
  12838. }
  12839. c$0: {
  12840. element = list[_i];
  12841. if (!test.call$1(element))
  12842. break c$0;
  12843. toRemove = element;
  12844. break;
  12845. }
  12846. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  12847. ++_i;
  12848. }
  12849. if (toRemove == null)
  12850. return orElse.call$0();
  12851. else {
  12852. C.JSArray_methods.remove$1(list, toRemove);
  12853. return toRemove;
  12854. }
  12855. },
  12856. mapAddAll2: function(destination, source, K1, K2, $V) {
  12857. source.forEach$1(0, new B.mapAddAll2_closure(destination, K1, K2, $V));
  12858. },
  12859. setAll: function(map, keys, value) {
  12860. var t1;
  12861. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  12862. map.$indexSet(0, t1.get$current(t1), value);
  12863. },
  12864. rotateSlice: function(list, start, end) {
  12865. var i, next,
  12866. element = list.$index(0, end - 1);
  12867. for (i = start; i < end; ++i, element = next) {
  12868. next = list.$index(0, i);
  12869. list.$indexSet(0, i, element);
  12870. }
  12871. },
  12872. mapAsync: function(iterable, callback, $E, $F) {
  12873. return B.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0*>*"));
  12874. },
  12875. mapAsync$body: function(iterable, callback, $E, $F, $async$type) {
  12876. var $async$goto = 0,
  12877. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  12878. $async$returnValue, t2, _i, t1, $async$temp1;
  12879. var $async$mapAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12880. if ($async$errorCode === 1)
  12881. return P._asyncRethrow($async$result, $async$completer);
  12882. while (true)
  12883. switch ($async$goto) {
  12884. case 0:
  12885. // Function start
  12886. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0*>"));
  12887. t2 = iterable.length, _i = 0;
  12888. case 3:
  12889. // for condition
  12890. if (!(_i < t2)) {
  12891. // goto after for
  12892. $async$goto = 5;
  12893. break;
  12894. }
  12895. $async$temp1 = t1;
  12896. $async$goto = 6;
  12897. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
  12898. case 6:
  12899. // returning from await.
  12900. $async$temp1.push($async$result);
  12901. case 4:
  12902. // for update
  12903. ++_i;
  12904. // goto for condition
  12905. $async$goto = 3;
  12906. break;
  12907. case 5:
  12908. // after for
  12909. $async$returnValue = t1;
  12910. // goto return
  12911. $async$goto = 1;
  12912. break;
  12913. case 1:
  12914. // return
  12915. return P._asyncReturn($async$returnValue, $async$completer);
  12916. }
  12917. });
  12918. return P._asyncStartSync($async$mapAsync, $async$completer);
  12919. },
  12920. putIfAbsentAsync: function(map, key, ifAbsent, $K, $V) {
  12921. return B.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V._eval$1("0*"));
  12922. },
  12923. putIfAbsentAsync$body: function(map, key, ifAbsent, $K, $V, $async$type) {
  12924. var $async$goto = 0,
  12925. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  12926. $async$returnValue, value;
  12927. var $async$putIfAbsentAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  12928. if ($async$errorCode === 1)
  12929. return P._asyncRethrow($async$result, $async$completer);
  12930. while (true)
  12931. switch ($async$goto) {
  12932. case 0:
  12933. // Function start
  12934. if (map.containsKey$1(key)) {
  12935. $async$returnValue = map.$index(0, key);
  12936. // goto return
  12937. $async$goto = 1;
  12938. break;
  12939. }
  12940. $async$goto = 3;
  12941. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
  12942. case 3:
  12943. // returning from await.
  12944. value = $async$result;
  12945. map.$indexSet(0, key, value);
  12946. $async$returnValue = value;
  12947. // goto return
  12948. $async$goto = 1;
  12949. break;
  12950. case 1:
  12951. // return
  12952. return P._asyncReturn($async$returnValue, $async$completer);
  12953. }
  12954. });
  12955. return P._asyncStartSync($async$putIfAbsentAsync, $async$completer);
  12956. },
  12957. copyMapOfMap: function(map, K1, K2, $V) {
  12958. var t2, t3, t4, t5, t6, t7,
  12959. t1 = P.LinkedHashMap_LinkedHashMap$_empty(K1._eval$1("0*"), K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1*,2*>*"));
  12960. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2), t3 = K2._eval$1("0*"), t4 = $V._eval$1("0*"); t2.moveNext$0();) {
  12961. t5 = t2.get$current(t2);
  12962. t6 = t5.key;
  12963. t5 = t5.value;
  12964. t7 = P.LinkedHashMap_LinkedHashMap(null, null, null, t3, t4);
  12965. t7.addAll$1(0, t5);
  12966. t1.$indexSet(0, t6, t7);
  12967. }
  12968. return t1;
  12969. },
  12970. copyMapOfList: function(map, $K, $E) {
  12971. var t2, t3,
  12972. t1 = P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), $E._eval$1("List<0*>*"));
  12973. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  12974. t3 = t2.get$current(t2);
  12975. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  12976. }
  12977. return t1;
  12978. },
  12979. SpanExtensions_trim: function(_this) {
  12980. var t3, end, end0,
  12981. t1 = _this.file,
  12982. t2 = _this._file$_start,
  12983. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  12984. start = 0;
  12985. while (true) {
  12986. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  12987. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  12988. break;
  12989. ++start;
  12990. }
  12991. end = text.length - 1;
  12992. end0 = end;
  12993. while (true) {
  12994. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  12995. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  12996. break;
  12997. --end0;
  12998. }
  12999. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  13000. },
  13001. indent_closure: function indent_closure(t0) {
  13002. this.indentation = t0;
  13003. },
  13004. flattenVertically_closure: function flattenVertically_closure(t0) {
  13005. this.T = t0;
  13006. },
  13007. flattenVertically_closure0: function flattenVertically_closure0(t0, t1) {
  13008. this.result = t0;
  13009. this.T = t1;
  13010. },
  13011. longestCommonSubsequence_closure: function longestCommonSubsequence_closure(t0) {
  13012. this.T = t0;
  13013. },
  13014. longestCommonSubsequence_closure0: function longestCommonSubsequence_closure0(t0) {
  13015. this.list2 = t0;
  13016. },
  13017. longestCommonSubsequence_closure1: function longestCommonSubsequence_closure1(t0, t1) {
  13018. this.list2 = t0;
  13019. this.T = t1;
  13020. },
  13021. longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
  13022. this.selections = t0;
  13023. this.lengths = t1;
  13024. this.T = t2;
  13025. },
  13026. mapAddAll2_closure: function mapAddAll2_closure(t0, t1, t2, t3) {
  13027. var _ = this;
  13028. _.destination = t0;
  13029. _.K1 = t1;
  13030. _.K2 = t2;
  13031. _.V = t3;
  13032. },
  13033. ArgumentDeclaration_ArgumentDeclaration$parse0: function(contents, url) {
  13034. return L.ScssParser$0(contents, null, url).parseArgumentDeclaration$0();
  13035. },
  13036. ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
  13037. this.$arguments = t0;
  13038. this.restArgument = t1;
  13039. this.span = t2;
  13040. },
  13041. ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
  13042. },
  13043. ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
  13044. },
  13045. AsyncImporter0: function AsyncImporter0() {
  13046. },
  13047. DynamicImport0: function DynamicImport0(t0, t1) {
  13048. this.url = t0;
  13049. this.span = t1;
  13050. },
  13051. ForRule$0: function(variable, from, to, children, span, exclusive) {
  13052. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  13053. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  13054. return new B.ForRule0(variable, from, to, exclusive, span, t1, t2);
  13055. },
  13056. ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
  13057. var _ = this;
  13058. _.variable = t0;
  13059. _.from = t1;
  13060. _.to = t2;
  13061. _.isExclusive = t3;
  13062. _.span = t4;
  13063. _.children = t5;
  13064. _.hasDeclarations = t6;
  13065. },
  13066. ImportRule0: function ImportRule0(t0, t1) {
  13067. this.imports = t0;
  13068. this.span = t1;
  13069. },
  13070. AstNode0: function AstNode0() {
  13071. },
  13072. _FakeAstNode0: function _FakeAstNode0(t0) {
  13073. this._node3$_callback = t0;
  13074. },
  13075. CssNode0: function CssNode0() {
  13076. },
  13077. CssParentNode0: function CssParentNode0() {
  13078. },
  13079. readFile0: function(path) {
  13080. var sourceFile, t1, i,
  13081. contents = H._asStringS(B._readFile0(path, "utf8"));
  13082. if (!J.getInterceptor$asx(contents).contains$1(contents, "\ufffd"))
  13083. return contents;
  13084. sourceFile = Y.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  13085. for (t1 = contents.length, i = 0; i < t1; ++i) {
  13086. if (C.JSString_methods._codeUnitAt$1(contents, i) !== 65533)
  13087. continue;
  13088. throw H.wrapException(E.SassException$0("Invalid UTF-8.", Y.FileLocation$_(sourceFile, i).pointSpan$0()));
  13089. }
  13090. return contents;
  13091. },
  13092. _readFile0: function(path, encoding) {
  13093. return B._systemErrorToFileSystemException0(new B._readFile_closure0(path, encoding));
  13094. },
  13095. fileExists0: function(path) {
  13096. return B._systemErrorToFileSystemException0(new B.fileExists_closure0(path));
  13097. },
  13098. dirExists0: function(path) {
  13099. return B._systemErrorToFileSystemException0(new B.dirExists_closure0(path));
  13100. },
  13101. listDir0: function(path) {
  13102. return B._systemErrorToFileSystemException0(new B.listDir_closure0(false, path));
  13103. },
  13104. _systemErrorToFileSystemException0: function(callback) {
  13105. var error, systemError, t1, exception, t2;
  13106. try {
  13107. t1 = callback.call$0();
  13108. return t1;
  13109. } catch (exception) {
  13110. error = H.unwrapException(exception);
  13111. systemError = type$.legacy_JsSystemError._as(error);
  13112. t1 = systemError;
  13113. t2 = J.getInterceptor$x(t1);
  13114. throw H.wrapException(new B.FileSystemException0(J.substring$2$s(t2.get$message(t1), (H.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + H.S(t2.get$syscall(t1)) + " '" + H.S(t2.get$path(t1)) + "'").length), J.get$path$x(systemError)));
  13115. }
  13116. },
  13117. FileSystemException0: function FileSystemException0(t0, t1) {
  13118. this.message = t0;
  13119. this.path = t1;
  13120. },
  13121. Stderr0: function Stderr0(t0) {
  13122. this._node1$_stderr = t0;
  13123. },
  13124. _readFile_closure0: function _readFile_closure0(t0, t1) {
  13125. this.path = t0;
  13126. this.encoding = t1;
  13127. },
  13128. fileExists_closure0: function fileExists_closure0(t0) {
  13129. this.path = t0;
  13130. },
  13131. dirExists_closure0: function dirExists_closure0(t0) {
  13132. this.path = t0;
  13133. },
  13134. listDir_closure0: function listDir_closure0(t0, t1) {
  13135. this.recursive = t0;
  13136. this.path = t1;
  13137. },
  13138. listDir__closure1: function listDir__closure1(t0) {
  13139. this.path = t0;
  13140. },
  13141. listDir__closure2: function listDir__closure2() {
  13142. },
  13143. listDir_closure_list0: function listDir_closure_list0() {
  13144. },
  13145. listDir__list_closure0: function listDir__list_closure0(t0, t1) {
  13146. this.parent = t0;
  13147. this.list = t1;
  13148. },
  13149. ModifiableCssNode0: function ModifiableCssNode0() {
  13150. },
  13151. ModifiableCssParentNode0: function ModifiableCssParentNode0() {
  13152. },
  13153. _render: function(options, callback) {
  13154. var t1 = J.getInterceptor$x(options);
  13155. if (t1.get$fiber(options) != null)
  13156. J.run$0$x(t1.get$fiber(options).call$1(P.allowInterop(new B._render_closure(callback, options))));
  13157. else
  13158. B._renderAsync(options).then$1$2$onError(0, new B._render_closure0(callback), new B._render_closure1(callback), type$.Null);
  13159. },
  13160. _renderAsync: function(options) {
  13161. var $async$goto = 0,
  13162. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_RenderResult),
  13163. $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, result, start, t1, file;
  13164. var $async$_renderAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13165. if ($async$errorCode === 1)
  13166. return P._asyncRethrow($async$result, $async$completer);
  13167. while (true)
  13168. switch ($async$goto) {
  13169. case 0:
  13170. // Function start
  13171. start = new P.DateTime(Date.now(), false);
  13172. t1 = J.getInterceptor$x(options);
  13173. file = t1.get$file(options) == null ? null : D.absolute(t1.get$file(options));
  13174. $async$goto = t1.get$data(options) != null ? 3 : 5;
  13175. break;
  13176. case 3:
  13177. // then
  13178. t2 = t1.get$data(options);
  13179. t3 = B._parseImporter(options, start);
  13180. t4 = B._parseFunctions(options, true);
  13181. t5 = t1.get$indentedSyntax(options);
  13182. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : null;
  13183. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  13184. t7 = J.$eq$(t1.get$indentType(options), "tab");
  13185. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  13186. t9 = B._parseLineFeed(t1.get$linefeed(options));
  13187. t1 = t1.get$file(options) == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  13188. $async$goto = 6;
  13189. return P._asyncAwait(X.compileStringAsync0(t2, t4, t8, t9, t3, B._enableSourceMaps(options), t6, t5, t1, !t7), $async$_renderAsync);
  13190. case 6:
  13191. // returning from await.
  13192. result = $async$result;
  13193. // goto join
  13194. $async$goto = 4;
  13195. break;
  13196. case 5:
  13197. // else
  13198. $async$goto = t1.get$file(options) != null ? 7 : 9;
  13199. break;
  13200. case 7:
  13201. // then
  13202. t2 = B._parseImporter(options, start);
  13203. t3 = B._parseFunctions(options, true);
  13204. t4 = t1.get$indentedSyntax(options);
  13205. t4 = !J.$eq$(t4, false) && t4 != null ? C.Syntax_Sass0 : null;
  13206. t5 = B._parseOutputStyle(t1.get$outputStyle(options));
  13207. t6 = J.$eq$(t1.get$indentType(options), "tab");
  13208. $async$goto = 10;
  13209. return P._asyncAwait(X.compileAsync0(file, t3, B._parseIndentWidth(t1.get$indentWidth(options)), B._parseLineFeed(t1.get$linefeed(options)), t2, B._enableSourceMaps(options), t5, t4, !t6), $async$_renderAsync);
  13210. case 10:
  13211. // returning from await.
  13212. result = $async$result;
  13213. // goto join
  13214. $async$goto = 8;
  13215. break;
  13216. case 9:
  13217. // else
  13218. throw H.wrapException(P.ArgumentError$(string$.Either));
  13219. case 8:
  13220. // join
  13221. case 4:
  13222. // join
  13223. $async$returnValue = B._newRenderResult(options, result, start);
  13224. // goto return
  13225. $async$goto = 1;
  13226. break;
  13227. case 1:
  13228. // return
  13229. return P._asyncReturn($async$returnValue, $async$completer);
  13230. }
  13231. });
  13232. return P._asyncStartSync($async$_renderAsync, $async$completer);
  13233. },
  13234. _renderSync: function(options) {
  13235. var start, file, result, error, error0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, stylesheet, exception, _null = null;
  13236. try {
  13237. start = new P.DateTime(Date.now(), false);
  13238. t1 = J.getInterceptor$x(options);
  13239. file = t1.get$file(options) == null ? _null : D.absolute(t1.get$file(options));
  13240. result = null;
  13241. if (t1.get$data(options) != null) {
  13242. t2 = t1.get$data(options);
  13243. t3 = B._parseImporter(options, start);
  13244. t4 = B._parseFunctions(options, false);
  13245. t5 = t1.get$indentedSyntax(options);
  13246. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  13247. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  13248. t7 = J.$eq$(t1.get$indentType(options), "tab");
  13249. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  13250. t9 = B._parseLineFeed(t1.get$linefeed(options));
  13251. t1 = t1.get$file(options) == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  13252. t10 = B._enableSourceMaps(options);
  13253. stylesheet = V.Stylesheet_Stylesheet$parse0(t2, t5 == null ? C.Syntax_SCSS0 : t5, _null, t1);
  13254. t1 = D.absolute(".");
  13255. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(t1), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0*>")), t6, !t7, t8, t9, t10, true);
  13256. } else if (t1.get$file(options) != null) {
  13257. t2 = file;
  13258. t3 = B._parseImporter(options, start);
  13259. t4 = B._parseFunctions(options, false);
  13260. t5 = t1.get$indentedSyntax(options);
  13261. t5 = !J.$eq$(t5, false) && t5 != null ? C.Syntax_Sass0 : _null;
  13262. t6 = B._parseOutputStyle(t1.get$outputStyle(options));
  13263. t7 = J.$eq$(t1.get$indentType(options), "tab");
  13264. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  13265. t1 = B._parseLineFeed(t1.get$linefeed(options));
  13266. t9 = B._enableSourceMaps(options);
  13267. t10 = B.readFile0(t2);
  13268. if (t5 == null)
  13269. t5 = M.Syntax_forPath0(t2);
  13270. stylesheet = V.Stylesheet_Stylesheet$parse0(t10, t5, _null, $.$get$context().toUri$1(t2));
  13271. result = U._compileStylesheet1(stylesheet, _null, _null, t3, new F.FilesystemImporter0(D.absolute(".")), new H.CastList(t4, H._arrayInstanceType(t4)._eval$1("CastList<1,Callable0*>")), t6, !t7, t8, t1, t9, true);
  13272. } else {
  13273. t1 = P.ArgumentError$(string$.Either);
  13274. throw H.wrapException(t1);
  13275. }
  13276. t1 = B._newRenderResult(options, result, start);
  13277. return t1;
  13278. } catch (exception) {
  13279. t1 = H.unwrapException(exception);
  13280. if (t1 instanceof E.SassException0) {
  13281. error = t1;
  13282. t1 = B._wrapException(error);
  13283. $.$get$_jsThrow().call$1(t1);
  13284. } else {
  13285. error0 = t1;
  13286. t1 = B._newRenderError(J.toString$0$(error0), _null, _null, _null, 3);
  13287. $.$get$_jsThrow().call$1(t1);
  13288. }
  13289. }
  13290. throw H.wrapException("unreachable");
  13291. },
  13292. _wrapException: function(exception) {
  13293. var t3, t4,
  13294. t1 = C.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", ""),
  13295. t2 = G.SourceSpanException.prototype.get$span.call(exception);
  13296. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  13297. t2 = t2.file.getLine$1(t2.offset);
  13298. t3 = G.SourceSpanException.prototype.get$span.call(exception);
  13299. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  13300. t3 = t3.file.getColumn$1(t3.offset);
  13301. if (G.SourceSpanException.prototype.get$span.call(exception).file.url == null)
  13302. t4 = "stdin";
  13303. else {
  13304. t4 = G.SourceSpanException.prototype.get$span.call(exception).file;
  13305. t4 = $.$get$context().style.pathFromUri$1(M._parseUri(t4.url));
  13306. }
  13307. return B._newRenderError(t1, t3 + 1, t4, t2 + 1, 1);
  13308. },
  13309. _parseFunctions: function(options, asynch) {
  13310. var result,
  13311. t1 = J.getInterceptor$x(options);
  13312. if (t1.get$functions(options) == null)
  13313. return C.List_empty21;
  13314. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable);
  13315. B.jsForEach(t1.get$functions(options), new B._parseFunctions_closure(options, result, asynch));
  13316. return result;
  13317. },
  13318. _parseImporter: function(options, start) {
  13319. var importers, t2, t3, includePaths, t4, t5, t6, t7, _i, t8, t9, t10, context,
  13320. t1 = J.getInterceptor$x(options);
  13321. if (t1.get$importer(options) == null)
  13322. importers = H.setRuntimeTypeInfo([], type$.JSArray_legacy_JSFunction);
  13323. else {
  13324. t2 = type$.legacy_List_legacy_Object;
  13325. t3 = type$.legacy_JSFunction;
  13326. importers = t2._is(t1.get$importer(options)) ? J.cast$1$0$ax(t2._as(t1.get$importer(options)), t3) : H.setRuntimeTypeInfo([t3._as(t1.get$importer(options))], type$.JSArray_legacy_JSFunction);
  13327. }
  13328. t2 = t1.get$includePaths(options);
  13329. if (t2 == null)
  13330. t2 = [];
  13331. t3 = type$.legacy_String;
  13332. includePaths = P.List_List$from(t2, true, t3);
  13333. t2 = J.getInterceptor$asx(importers);
  13334. if (t2.get$isNotEmpty(importers)) {
  13335. t4 = t1.get$file(options);
  13336. t5 = t1.get$data(options);
  13337. t6 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  13338. t6.push(D.current());
  13339. for (t7 = includePaths.length, _i = 0; _i < includePaths.length; includePaths.length === t7 || (0, H.throwConcurrentModificationError)(includePaths), ++_i)
  13340. t6.push(includePaths[_i]);
  13341. t6 = C.JSArray_methods.join$1(t6, J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  13342. t7 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
  13343. t8 = B._parseIndentWidth(t1.get$indentWidth(options));
  13344. if (t8 == null)
  13345. t8 = 2;
  13346. t9 = B._parseLineFeed(t1.get$linefeed(options));
  13347. t10 = t1.get$file(options);
  13348. if (t10 == null)
  13349. t10 = "data";
  13350. context = {options: {file: t4, data: t5, includePaths: t6, precision: 10, style: 1, indentType: t7, indentWidth: t8, linefeed: t9.text, result: {stats: {entry: t10, start: start._value}}}};
  13351. J.set$context$x(J.get$options$x(context), context);
  13352. } else
  13353. context = null;
  13354. if (t1.get$fiber(options) != null) {
  13355. t1 = t2.map$1$1(importers, new B._parseImporter_closure(options), type$.legacy_JSFunction);
  13356. importers = P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  13357. }
  13358. return new F.NodeImporter(context, P.List_List$unmodifiable(F.NodeImporter__addSassPath(includePaths), t3), P.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.legacy_JSFunction));
  13359. },
  13360. _parseOutputStyle: function(style) {
  13361. if (style == null || style === "expanded")
  13362. return C.OutputStyle_expanded;
  13363. if (style === "compressed")
  13364. return C.OutputStyle_compressed0;
  13365. throw H.wrapException(P.ArgumentError$('Unsupported output style "' + H.S(style) + '".'));
  13366. },
  13367. _parseIndentWidth: function(width) {
  13368. if (width == null)
  13369. return null;
  13370. return H._isInt(width) ? width : P.int_parse(J.toString$0$(width), null);
  13371. },
  13372. _parseLineFeed: function(str) {
  13373. switch (str) {
  13374. case "cr":
  13375. return C.LineFeed_kMT;
  13376. case "crlf":
  13377. return C.LineFeed_Mss;
  13378. case "lfcr":
  13379. return C.LineFeed_a1Y;
  13380. default:
  13381. return C.LineFeed_D6m;
  13382. }
  13383. },
  13384. _newRenderResult: function(options, result, start) {
  13385. var t3, sourceMapPath, t4, sourceMapDir, sourceMapDirUrl, i, source, t5, t6, sourceMapBytes, buffer, indices, url, _null = null,
  13386. t1 = Date.now(),
  13387. t2 = result._async_compile$_serialize,
  13388. css = t2.css;
  13389. if (B._enableSourceMaps(options)) {
  13390. t3 = J.getInterceptor$x(options);
  13391. sourceMapPath = typeof t3.get$sourceMap(options) == "string" ? H._asStringS(t3.get$sourceMap(options)) : J.$add$ansx(t3.get$outFile(options), ".map");
  13392. t4 = $.$get$context();
  13393. sourceMapDir = t4.dirname$1(sourceMapPath);
  13394. t2 = t2.sourceMap;
  13395. t2.sourceRoot = t3.get$sourceMapRoot(options);
  13396. if (t3.get$outFile(options) == null)
  13397. if (t3.get$file(options) == null)
  13398. t2.targetUrl = "stdin.css";
  13399. else
  13400. t2.targetUrl = t4.toUri$1(t4.withoutExtension$1(t3.get$file(options)) + ".css").toString$0(0);
  13401. else
  13402. t2.targetUrl = t4.toUri$1(t4.relative$2$from(t3.get$outFile(options), sourceMapDir)).toString$0(0);
  13403. sourceMapDirUrl = t4.toUri$1(sourceMapDir).toString$0(0);
  13404. for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
  13405. source = t4[i];
  13406. if (source === "stdin")
  13407. continue;
  13408. t5 = $.$get$url();
  13409. t6 = t5.style;
  13410. if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source))
  13411. continue;
  13412. t4[i] = t5.relative$2$from(source, sourceMapDirUrl);
  13413. }
  13414. t4 = t3.get$sourceMapContents(options);
  13415. sourceMapBytes = self.Buffer.from(C.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
  13416. t2 = t3.get$omitSourceMapUrl(options);
  13417. if (!(!J.$eq$(t2, false) && t2 != null)) {
  13418. t2 = t3.get$sourceMapEmbed(options);
  13419. if (!J.$eq$(t2, false) && t2 != null) {
  13420. buffer = new P.StringBuffer("");
  13421. indices = H.setRuntimeTypeInfo([-1], type$.JSArray_int);
  13422. P.UriData__writeUri("application/json", _null, _null, buffer, indices);
  13423. indices.push(buffer._contents.length);
  13424. t2 = buffer._contents += ";base64,";
  13425. indices.push(t2.length - 1);
  13426. C.C_Base64Encoder.startChunkedConversion$1(new P._StringSinkConversionSink(buffer)).addSlice$4(sourceMapBytes, 0, sourceMapBytes.length, true);
  13427. t2 = buffer._contents;
  13428. url = new P.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
  13429. } else {
  13430. if (t3.get$outFile(options) == null)
  13431. t2 = sourceMapPath;
  13432. else {
  13433. t2 = t3.get$outFile(options);
  13434. t3 = $.$get$context();
  13435. t2 = t3.relative$2$from(sourceMapPath, t3.dirname$1(t2));
  13436. }
  13437. url = $.$get$context().toUri$1(t2);
  13438. }
  13439. css += "\n\n/*# sourceMappingURL=" + url.toString$0(0) + " */";
  13440. }
  13441. } else
  13442. sourceMapBytes = _null;
  13443. t2 = self.Buffer.from(css, "utf8");
  13444. t3 = J.get$file$x(options);
  13445. if (t3 == null)
  13446. t3 = "data";
  13447. t4 = start._value;
  13448. t1 = new P.DateTime(t1, false)._value;
  13449. t5 = C.JSInt_methods._tdivFast$1(P.Duration$(t1 - t4)._duration, 1000);
  13450. t6 = result._evaluate.includedFiles;
  13451. return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: t5, includedFiles: P.List_List$from(t6, true, H._instanceType(t6)._precomputed1)}};
  13452. },
  13453. _enableSourceMaps: function(options) {
  13454. var t2,
  13455. t1 = J.getInterceptor$x(options);
  13456. if (typeof t1.get$sourceMap(options) != "string") {
  13457. t2 = t1.get$sourceMap(options);
  13458. t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
  13459. } else
  13460. t1 = true;
  13461. return t1;
  13462. },
  13463. _newRenderError: function(message, column, file, line, $status) {
  13464. var error = new self.Error(message);
  13465. error.formatted = "Error: " + H.S(message);
  13466. if (line != null)
  13467. error.line = line;
  13468. if (column != null)
  13469. error.column = column;
  13470. if (file != null)
  13471. error.file = file;
  13472. error.status = $status;
  13473. return error;
  13474. },
  13475. _render_closure: function _render_closure(t0, t1) {
  13476. this.callback = t0;
  13477. this.options = t1;
  13478. },
  13479. _render_closure0: function _render_closure0(t0) {
  13480. this.callback = t0;
  13481. },
  13482. _render_closure1: function _render_closure1(t0) {
  13483. this.callback = t0;
  13484. },
  13485. _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2) {
  13486. this.options = t0;
  13487. this.result = t1;
  13488. this.asynch = t2;
  13489. },
  13490. _parseFunctions__closure: function _parseFunctions__closure(t0, t1) {
  13491. this.options = t0;
  13492. this.callback = t1;
  13493. },
  13494. _parseFunctions___closure0: function _parseFunctions___closure0(t0) {
  13495. this.fiber = t0;
  13496. },
  13497. _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
  13498. this.fiber = t0;
  13499. this.result = t1;
  13500. },
  13501. _parseFunctions__closure0: function _parseFunctions__closure0(t0) {
  13502. this.callback = t0;
  13503. },
  13504. _parseFunctions__closure1: function _parseFunctions__closure1(t0) {
  13505. this.callback = t0;
  13506. },
  13507. _parseFunctions___closure: function _parseFunctions___closure(t0) {
  13508. this.completer = t0;
  13509. },
  13510. _parseImporter_closure: function _parseImporter_closure(t0) {
  13511. this.options = t0;
  13512. },
  13513. _parseImporter__closure: function _parseImporter__closure(t0, t1) {
  13514. this.options = t0;
  13515. this.importer = t1;
  13516. },
  13517. _parseImporter___closure: function _parseImporter___closure(t0) {
  13518. this.fiber = t0;
  13519. },
  13520. _parseImporter____closure: function _parseImporter____closure(t0, t1) {
  13521. this.fiber = t0;
  13522. this.result = t1;
  13523. },
  13524. ReturnRule0: function ReturnRule0(t0, t1) {
  13525. this.expression = t0;
  13526. this.span = t1;
  13527. },
  13528. ShadowedModuleView_ifNecessary0: function(inner, functions, mixins, variables, $T) {
  13529. var t1;
  13530. if (B.ShadowedModuleView__needsBlacklist0(inner.get$variables(), variables) || B.ShadowedModuleView__needsBlacklist0(inner.get$functions(inner), functions) || B.ShadowedModuleView__needsBlacklist0(inner.get$mixins(), mixins)) {
  13531. t1 = $T._eval$1("0*");
  13532. t1 = new B.ShadowedModuleView0(inner, B.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.legacy_Value_2), B.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.legacy_AstNode_2), B.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, t1), B.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, t1), $T._eval$1("ShadowedModuleView0<0*>"));
  13533. } else
  13534. t1 = null;
  13535. return t1;
  13536. },
  13537. ShadowedModuleView__shadowedMap0: function(map, blocklist, $V) {
  13538. if (map == null || !B.ShadowedModuleView__needsBlacklist0(map, blocklist))
  13539. return map;
  13540. return K.LimitedMapView$blocklist0(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  13541. },
  13542. ShadowedModuleView__needsBlacklist0: function(map, blocklist) {
  13543. var t1 = map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  13544. return t1;
  13545. },
  13546. ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
  13547. var _ = this;
  13548. _._shadowed_view0$_inner = t0;
  13549. _.variables = t1;
  13550. _.variableNodes = t2;
  13551. _.functions = t3;
  13552. _.mixins = t4;
  13553. _.$ti = t5;
  13554. },
  13555. SilentComment0: function SilentComment0(t0, t1) {
  13556. this.text = t0;
  13557. this.span = t1;
  13558. },
  13559. ModifiableCssSupportsRule$0: function(condition, span) {
  13560. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  13561. return new B.ModifiableCssSupportsRule0(condition, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  13562. },
  13563. ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
  13564. var _ = this;
  13565. _.condition = t0;
  13566. _.span = t1;
  13567. _.children = t2;
  13568. _._node2$_children = t3;
  13569. _._node2$_indexInParent = _._node2$_parent = null;
  13570. _.isGroupEnd = false;
  13571. },
  13572. SupportsRule$0: function(condition, children, span) {
  13573. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  13574. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  13575. return new B.SupportsRule0(condition, span, t1, t2);
  13576. },
  13577. SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
  13578. var _ = this;
  13579. _.condition = t0;
  13580. _.span = t1;
  13581. _.children = t2;
  13582. _.hasDeclarations = t3;
  13583. },
  13584. inImportRule0: function(callback) {
  13585. var t1,
  13586. wasInImportRule = $._inImportRule0;
  13587. $._inImportRule0 = true;
  13588. try {
  13589. t1 = callback.call$0();
  13590. return t1;
  13591. } finally {
  13592. $._inImportRule0 = wasInImportRule;
  13593. }
  13594. },
  13595. resolveImportPath0: function(path) {
  13596. var t1,
  13597. extension = X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  13598. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  13599. t1 = $._inImportRule0 ? new B.resolveImportPath_closure1(path, extension).call$0() : null;
  13600. return t1 == null ? B._exactlyOne0(B._tryPath0(path)) : t1;
  13601. }
  13602. t1 = $._inImportRule0 ? new B.resolveImportPath_closure2(path).call$0() : null;
  13603. if (t1 == null)
  13604. t1 = B._exactlyOne0(B._tryPathWithExtensions0(path));
  13605. return t1 == null ? B._tryPathAsDirectory0(path) : t1;
  13606. },
  13607. _tryPathWithExtensions0: function(path) {
  13608. var result = B._tryPath0(J.$add$ansx(path, ".sass"));
  13609. C.JSArray_methods.addAll$1(result, B._tryPath0(path + ".scss"));
  13610. return result.length !== 0 ? result : B._tryPath0(path + ".css");
  13611. },
  13612. _tryPath0: function(path) {
  13613. var t1 = $.$get$context(),
  13614. partial = D.join(t1.dirname$1(path), "_" + H.S(X.ParsedPath_ParsedPath$parse(path, t1.style).get$basename()), null);
  13615. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  13616. if (B.fileExists0(partial))
  13617. t1.push(partial);
  13618. if (B.fileExists0(path))
  13619. t1.push(path);
  13620. return t1;
  13621. },
  13622. _tryPathAsDirectory0: function(path) {
  13623. var t1;
  13624. if (!B.dirExists0(path))
  13625. return null;
  13626. t1 = $._inImportRule0 ? new B._tryPathAsDirectory_closure0(path).call$0() : null;
  13627. return t1 == null ? B._exactlyOne0(B._tryPathWithExtensions0(D.join(path, "index", null))) : t1;
  13628. },
  13629. _exactlyOne0: function(paths) {
  13630. var t1 = paths.length;
  13631. if (t1 === 0)
  13632. return null;
  13633. if (t1 === 1)
  13634. return C.JSArray_methods.get$first(paths);
  13635. throw H.wrapException(string$.It_s_n + C.JSArray_methods.map$1$1(paths, new B._exactlyOne_closure0(), type$.legacy_String).join$1(0, "\n"));
  13636. },
  13637. resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
  13638. this.path = t0;
  13639. this.extension = t1;
  13640. },
  13641. resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
  13642. this.path = t0;
  13643. },
  13644. _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
  13645. this.path = t0;
  13646. },
  13647. _exactlyOne_closure0: function _exactlyOne_closure0() {
  13648. },
  13649. forwardToString: function(klass) {
  13650. klass.prototype.toString = P.allowInteropCaptureThis(new B.forwardToString_closure());
  13651. },
  13652. jsForEach: function(object, callback) {
  13653. var t1, t2;
  13654. for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
  13655. t2 = t1.get$current(t1);
  13656. callback.call$2(t2, object[t2]);
  13657. }
  13658. },
  13659. createClass: function($name, $constructor, methods) {
  13660. var klass = P.allowInteropCaptureThis($constructor);
  13661. self.Object.defineProperty(klass, "name", {value: $name});
  13662. methods.forEach$1(0, new B.createClass_closure(klass.prototype));
  13663. return klass;
  13664. },
  13665. injectSuperclass: function(object, $constructor) {
  13666. var $prototype = self.Object.getPrototypeOf(object),
  13667. $parent = self.Object.getPrototypeOf($prototype);
  13668. if ($parent != null)
  13669. self.Object.setPrototypeOf($constructor.prototype, $parent);
  13670. self.Object.setPrototypeOf($prototype, self.Object.create($constructor.prototype));
  13671. },
  13672. forwardToString_closure: function forwardToString_closure() {
  13673. },
  13674. createClass_closure: function createClass_closure(t0) {
  13675. this.$prototype = t0;
  13676. },
  13677. _PropertyDescriptor0: function _PropertyDescriptor0() {
  13678. },
  13679. toSentence0: function(iter, conjunction) {
  13680. var t1 = iter.__internal$_iterable,
  13681. t2 = J.getInterceptor$asx(t1);
  13682. if (t2.get$length(t1) === 1)
  13683. return J.toString$0$(iter._f.call$1(t2.get$first(t1)));
  13684. return H.TakeIterable_TakeIterable(iter, t2.get$length(t1) - 1, H._instanceType(iter)._eval$1("Iterable.E")).join$1(0, ", ") + (" " + conjunction + " " + H.S(iter._f.call$1(t2.get$last(t1))));
  13685. },
  13686. indent0: function(string, indentation) {
  13687. return new H.MappedListIterable(H.setRuntimeTypeInfo(string.split("\n"), type$.JSArray_String), new B.indent_closure0(indentation), type$.MappedListIterable_of_String_and_legacy_String).join$1(0, "\n");
  13688. },
  13689. pluralize0: function($name, number, plural) {
  13690. if (number === 1)
  13691. return $name;
  13692. if (plural != null)
  13693. return plural;
  13694. return $name + "s";
  13695. },
  13696. trimAscii0: function(string, excludeEscape) {
  13697. var start = B._firstNonWhitespace0(string);
  13698. return start == null ? "" : J.substring$2$s(string, start, B._lastNonWhitespace0(string, true) + 1);
  13699. },
  13700. trimAsciiRight0: function(string, excludeEscape) {
  13701. var end = B._lastNonWhitespace0(string, excludeEscape);
  13702. return end == null ? "" : J.substring$2$s(string, 0, end + 1);
  13703. },
  13704. _firstNonWhitespace0: function(string) {
  13705. var t1, i, t2;
  13706. for (t1 = string.length, i = 0; i < t1; ++i) {
  13707. t2 = C.JSString_methods._codeUnitAt$1(string, i);
  13708. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  13709. return i;
  13710. }
  13711. return null;
  13712. },
  13713. _lastNonWhitespace0: function(string, excludeEscape) {
  13714. var t1, i, t2, codeUnit;
  13715. for (t1 = string.length, i = t1 - 1, t2 = J.getInterceptor$s(string); i >= 0; --i) {
  13716. codeUnit = t2.codeUnitAt$1(string, i);
  13717. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  13718. if (excludeEscape && i !== 0 && i !== t1 && codeUnit === 92)
  13719. return i + 1;
  13720. else
  13721. return i;
  13722. }
  13723. return null;
  13724. },
  13725. isPublic0: function(member) {
  13726. var start = J._codeUnitAt$1$s(member, 0);
  13727. return start !== 45 && start !== 95;
  13728. },
  13729. flattenVertically0: function(iterable, $T) {
  13730. var result,
  13731. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0*>*"))._eval$1("MappedListIterable<1,2>"),
  13732. queues = P.List_List$from(new H.MappedListIterable(iterable, new B.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E"));
  13733. if (queues.length === 1)
  13734. return C.JSArray_methods.get$first(queues);
  13735. result = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  13736. for (; queues.length !== 0;) {
  13737. if (!!queues.fixed$length)
  13738. H.throwExpression(P.UnsupportedError$("removeWhere"));
  13739. C.JSArray_methods._removeWhere$2(queues, new B.flattenVertically_closure2(result, $T), true);
  13740. }
  13741. return result;
  13742. },
  13743. firstOrNull0: function(iterable) {
  13744. var iterator = J.get$iterator$ax(iterable);
  13745. return iterator.moveNext$0() ? iterator.get$current(iterator) : null;
  13746. },
  13747. codepointIndexToCodeUnitIndex0: function(string, codepointIndex) {
  13748. var t1, codeUnitIndex, i, codeUnitIndex0, t2;
  13749. for (t1 = J.getInterceptor$s(string), codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  13750. codeUnitIndex0 = codeUnitIndex + 1;
  13751. t2 = t1._codeUnitAt$1(string, codeUnitIndex);
  13752. codeUnitIndex = t2 >= 55296 && t2 <= 56319 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  13753. }
  13754. return codeUnitIndex;
  13755. },
  13756. codeUnitIndexToCodepointIndex0: function(string, codeUnitIndex) {
  13757. var t1, codepointIndex, i, t2;
  13758. for (t1 = J.getInterceptor$s(string), codepointIndex = 0, i = 0; i < codeUnitIndex; i = (t2 >= 55296 && t2 <= 56319 ? i + 1 : i) + 1) {
  13759. ++codepointIndex;
  13760. t2 = t1._codeUnitAt$1(string, i);
  13761. }
  13762. return codepointIndex;
  13763. },
  13764. frameForSpan0: function(span, member, url) {
  13765. var t2, t3, t4,
  13766. t1 = url == null ? span.file.url : url;
  13767. if (t1 == null)
  13768. t1 = $.$get$_noSourceUrl0();
  13769. t2 = span.file;
  13770. t3 = span._file$_start;
  13771. t4 = Y.FileLocation$_(t2, t3);
  13772. t4 = t4.file.getLine$1(t4.offset);
  13773. t3 = Y.FileLocation$_(t2, t3);
  13774. return new A.Frame(t1, t4 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  13775. },
  13776. spanForList0: function(nodes) {
  13777. var t1, left, right, _null = null;
  13778. if (nodes.length === 0)
  13779. return _null;
  13780. t1 = C.JSArray_methods.get$first(nodes);
  13781. left = t1 == null ? _null : t1.get$span();
  13782. if (left == null)
  13783. return _null;
  13784. t1 = C.JSArray_methods.get$last(nodes);
  13785. right = t1 == null ? _null : t1.get$span();
  13786. if (right == null)
  13787. return _null;
  13788. return left.expand$1(0, right);
  13789. },
  13790. declarationName0: function(span) {
  13791. var text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  13792. return B.trimAsciiRight0(C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":")), false);
  13793. },
  13794. unvendor0: function($name) {
  13795. var i,
  13796. t1 = $name.length;
  13797. if (t1 < 2)
  13798. return $name;
  13799. if (J.getInterceptor$s($name)._codeUnitAt$1($name, 0) !== 45)
  13800. return $name;
  13801. if (C.JSString_methods._codeUnitAt$1($name, 1) === 45)
  13802. return $name;
  13803. for (i = 2; i < t1; ++i)
  13804. if (C.JSString_methods._codeUnitAt$1($name, i) === 45)
  13805. return C.JSString_methods.substring$1($name, i + 1);
  13806. return $name;
  13807. },
  13808. equalsIgnoreCase0: function(string1, string2) {
  13809. var t1, i;
  13810. if (string1 == string2)
  13811. return true;
  13812. if (string1 == null || string2 == null)
  13813. return false;
  13814. t1 = string1.length;
  13815. if (t1 !== string2.length)
  13816. return false;
  13817. for (i = 0; i < t1; ++i)
  13818. if (!T.characterEqualsIgnoreCase0(C.JSString_methods._codeUnitAt$1(string1, i), C.JSString_methods._codeUnitAt$1(string2, i)))
  13819. return false;
  13820. return true;
  13821. },
  13822. startsWithIgnoreCase0: function(string, prefix) {
  13823. var t2, i,
  13824. t1 = prefix.length;
  13825. if (string.length < t1)
  13826. return false;
  13827. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  13828. if (!T.characterEqualsIgnoreCase0(t2._codeUnitAt$1(string, i), C.JSString_methods._codeUnitAt$1(prefix, i)))
  13829. return false;
  13830. return true;
  13831. },
  13832. mapInPlace0: function(list, $function) {
  13833. var i;
  13834. for (i = 0; i < list.length; ++i)
  13835. list[i] = $function.call$1(list[i]);
  13836. },
  13837. longestCommonSubsequence0: function(list1, list2, select, $T) {
  13838. var t1, lengths, selections, t2, i, i0, j, selection, t3, j0, t4, t5;
  13839. if (select == null)
  13840. select = new B.longestCommonSubsequence_closure2($T);
  13841. t1 = J.getInterceptor$asx(list1);
  13842. lengths = P.List_List$generate(t1.get$length(list1) + 1, new B.longestCommonSubsequence_closure3(list2), false, type$.legacy_List_legacy_int);
  13843. selections = P.List_List$generate(t1.get$length(list1), new B.longestCommonSubsequence_closure4(list2, $T), false, $T._eval$1("List<0*>*"));
  13844. for (t2 = J.getInterceptor$asx(list2), i = 0; i < t1.get$length(list1); i = i0)
  13845. for (i0 = i + 1, j = 0; j < t2.get$length(list2); j = j0) {
  13846. selection = select.call$2(t1.$index(list1, i), t2.$index(list2, j));
  13847. J.$indexSet$ax(selections[i], j, selection);
  13848. t3 = lengths[i0];
  13849. j0 = j + 1;
  13850. if (selection == null) {
  13851. t4 = J.$index$asx(t3, j);
  13852. t5 = J.$index$asx(lengths[i], j0);
  13853. t5 = Math.max(H.checkNum(t4), H.checkNum(t5));
  13854. t4 = t5;
  13855. } else
  13856. t4 = J.$index$asx(lengths[i], j) + 1;
  13857. J.$indexSet$ax(t3, j0, t4);
  13858. }
  13859. return new B.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(t1.get$length(list1) - 1, t2.get$length(list2) - 1);
  13860. },
  13861. removeFirstWhere0: function(list, test, orElse) {
  13862. var toRemove, element,
  13863. t1 = list.length,
  13864. _i = 0;
  13865. while (true) {
  13866. if (!(_i < list.length)) {
  13867. toRemove = null;
  13868. break;
  13869. }
  13870. c$0: {
  13871. element = list[_i];
  13872. if (!test.call$1(element))
  13873. break c$0;
  13874. toRemove = element;
  13875. break;
  13876. }
  13877. list.length === t1 || (0, H.throwConcurrentModificationError)(list);
  13878. ++_i;
  13879. }
  13880. if (toRemove == null)
  13881. return orElse.call$0();
  13882. else {
  13883. C.JSArray_methods.remove$1(list, toRemove);
  13884. return toRemove;
  13885. }
  13886. },
  13887. mapAddAll20: function(destination, source, K1, K2, $V) {
  13888. source.forEach$1(0, new B.mapAddAll2_closure0(destination, K1, K2, $V));
  13889. },
  13890. setAll0: function(map, keys, value) {
  13891. var t1;
  13892. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  13893. map.$indexSet(0, t1.get$current(t1), value);
  13894. },
  13895. rotateSlice0: function(list, start, end) {
  13896. var i, next,
  13897. element = list.$index(0, end - 1);
  13898. for (i = start; i < end; ++i, element = next) {
  13899. next = list.$index(0, i);
  13900. list.$indexSet(0, i, element);
  13901. }
  13902. },
  13903. mapAsync0: function(iterable, callback, $E, $F) {
  13904. return B.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0*>*"));
  13905. },
  13906. mapAsync$body0: function(iterable, callback, $E, $F, $async$type) {
  13907. var $async$goto = 0,
  13908. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  13909. $async$returnValue, t2, _i, t1, $async$temp1;
  13910. var $async$mapAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13911. if ($async$errorCode === 1)
  13912. return P._asyncRethrow($async$result, $async$completer);
  13913. while (true)
  13914. switch ($async$goto) {
  13915. case 0:
  13916. // Function start
  13917. t1 = H.setRuntimeTypeInfo([], $F._eval$1("JSArray<0*>"));
  13918. t2 = iterable.length, _i = 0;
  13919. case 3:
  13920. // for condition
  13921. if (!(_i < t2)) {
  13922. // goto after for
  13923. $async$goto = 5;
  13924. break;
  13925. }
  13926. $async$temp1 = t1;
  13927. $async$goto = 6;
  13928. return P._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
  13929. case 6:
  13930. // returning from await.
  13931. $async$temp1.push($async$result);
  13932. case 4:
  13933. // for update
  13934. ++_i;
  13935. // goto for condition
  13936. $async$goto = 3;
  13937. break;
  13938. case 5:
  13939. // after for
  13940. $async$returnValue = t1;
  13941. // goto return
  13942. $async$goto = 1;
  13943. break;
  13944. case 1:
  13945. // return
  13946. return P._asyncReturn($async$returnValue, $async$completer);
  13947. }
  13948. });
  13949. return P._asyncStartSync($async$mapAsync0, $async$completer);
  13950. },
  13951. putIfAbsentAsync0: function(map, key, ifAbsent, $K, $V) {
  13952. return B.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V._eval$1("0*"));
  13953. },
  13954. putIfAbsentAsync$body0: function(map, key, ifAbsent, $K, $V, $async$type) {
  13955. var $async$goto = 0,
  13956. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  13957. $async$returnValue, value;
  13958. var $async$putIfAbsentAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  13959. if ($async$errorCode === 1)
  13960. return P._asyncRethrow($async$result, $async$completer);
  13961. while (true)
  13962. switch ($async$goto) {
  13963. case 0:
  13964. // Function start
  13965. if (map.containsKey$1(key)) {
  13966. $async$returnValue = map.$index(0, key);
  13967. // goto return
  13968. $async$goto = 1;
  13969. break;
  13970. }
  13971. $async$goto = 3;
  13972. return P._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
  13973. case 3:
  13974. // returning from await.
  13975. value = $async$result;
  13976. map.$indexSet(0, key, value);
  13977. $async$returnValue = value;
  13978. // goto return
  13979. $async$goto = 1;
  13980. break;
  13981. case 1:
  13982. // return
  13983. return P._asyncReturn($async$returnValue, $async$completer);
  13984. }
  13985. });
  13986. return P._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
  13987. },
  13988. copyMapOfMap0: function(map, K1, K2, $V) {
  13989. var t2, t3, t4, t5, t6, t7,
  13990. t1 = P.LinkedHashMap_LinkedHashMap$_empty(K1._eval$1("0*"), K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1*,2*>*"));
  13991. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2), t3 = K2._eval$1("0*"), t4 = $V._eval$1("0*"); t2.moveNext$0();) {
  13992. t5 = t2.get$current(t2);
  13993. t6 = t5.key;
  13994. t5 = t5.value;
  13995. t7 = P.LinkedHashMap_LinkedHashMap(null, null, null, t3, t4);
  13996. t7.addAll$1(0, t5);
  13997. t1.$indexSet(0, t6, t7);
  13998. }
  13999. return t1;
  14000. },
  14001. copyMapOfList0: function(map, $K, $E) {
  14002. var t2, t3,
  14003. t1 = P.LinkedHashMap_LinkedHashMap$_empty($K._eval$1("0*"), $E._eval$1("List<0*>*"));
  14004. for (t2 = map.get$entries(map), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  14005. t3 = t2.get$current(t2);
  14006. t1.$indexSet(0, t3.key, J.toList$0$ax(t3.value));
  14007. }
  14008. return t1;
  14009. },
  14010. SpanExtensions_trim0: function(_this) {
  14011. var t3, end, end0,
  14012. t1 = _this.file,
  14013. t2 = _this._file$_start,
  14014. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t2, _this._end), 0, null),
  14015. start = 0;
  14016. while (true) {
  14017. t3 = C.JSString_methods._codeUnitAt$1(text, start);
  14018. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  14019. break;
  14020. ++start;
  14021. }
  14022. end = text.length - 1;
  14023. end0 = end;
  14024. while (true) {
  14025. t3 = C.JSString_methods.codeUnitAt$1(text, end0);
  14026. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  14027. break;
  14028. --end0;
  14029. }
  14030. return start === 0 && end0 === end ? _this : t1.span$2(Y.FileLocation$_(t1, t2).offset + start, Y.FileLocation$_(t1, t2).offset + end0 + 1);
  14031. },
  14032. indent_closure0: function indent_closure0(t0) {
  14033. this.indentation = t0;
  14034. },
  14035. flattenVertically_closure1: function flattenVertically_closure1(t0) {
  14036. this.T = t0;
  14037. },
  14038. flattenVertically_closure2: function flattenVertically_closure2(t0, t1) {
  14039. this.result = t0;
  14040. this.T = t1;
  14041. },
  14042. longestCommonSubsequence_closure2: function longestCommonSubsequence_closure2(t0) {
  14043. this.T = t0;
  14044. },
  14045. longestCommonSubsequence_closure3: function longestCommonSubsequence_closure3(t0) {
  14046. this.list2 = t0;
  14047. },
  14048. longestCommonSubsequence_closure4: function longestCommonSubsequence_closure4(t0, t1) {
  14049. this.list2 = t0;
  14050. this.T = t1;
  14051. },
  14052. longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
  14053. this.selections = t0;
  14054. this.lengths = t1;
  14055. this.T = t2;
  14056. },
  14057. mapAddAll2_closure0: function mapAddAll2_closure0(t0, t1, t2, t3) {
  14058. var _ = this;
  14059. _.destination = t0;
  14060. _.K1 = t1;
  14061. _.K2 = t2;
  14062. _.V = t3;
  14063. },
  14064. isAlphabetic: function(char) {
  14065. var t1;
  14066. if (!(char >= 65 && char <= 90))
  14067. t1 = char >= 97 && char <= 122;
  14068. else
  14069. t1 = true;
  14070. return t1;
  14071. },
  14072. isDriveLetter: function(path, index) {
  14073. var t1 = path.length,
  14074. t2 = index + 2;
  14075. if (t1 < t2)
  14076. return false;
  14077. if (!B.isAlphabetic(C.JSString_methods.codeUnitAt$1(path, index)))
  14078. return false;
  14079. if (C.JSString_methods.codeUnitAt$1(path, index + 1) !== 58)
  14080. return false;
  14081. if (t1 === t2)
  14082. return true;
  14083. return C.JSString_methods.codeUnitAt$1(path, t2) === 47;
  14084. },
  14085. isAllTheSame: function(iter) {
  14086. var t1, lastValue, cur;
  14087. for (t1 = new H.ListIterator(iter, iter.get$length(iter)), lastValue = null; t1.moveNext$0();) {
  14088. cur = t1.__internal$_current;
  14089. if (lastValue == null)
  14090. lastValue = cur;
  14091. else if (!J.$eq$(cur, lastValue))
  14092. return false;
  14093. }
  14094. return true;
  14095. },
  14096. replaceFirstNull: function(list, element) {
  14097. var index = C.JSArray_methods.indexOf$1(list, null);
  14098. if (index < 0)
  14099. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no null elements."));
  14100. list[index] = element;
  14101. },
  14102. replaceWithNull: function(list, element) {
  14103. var index = C.JSArray_methods.indexOf$1(list, element);
  14104. if (index < 0)
  14105. throw H.wrapException(P.ArgumentError$(H.S(list) + " contains no elements matching " + element.toString$0(0) + "."));
  14106. list[index] = null;
  14107. },
  14108. countCodeUnits: function(string, codeUnit) {
  14109. var t1, count, cur;
  14110. for (t1 = new H.CodeUnits(string), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();) {
  14111. cur = t1.__internal$_current;
  14112. if (cur === codeUnit)
  14113. ++count;
  14114. }
  14115. return count;
  14116. },
  14117. findLineStart: function(context, text, column) {
  14118. var beginningOfLine, index, lineStart;
  14119. if (text.length === 0)
  14120. for (beginningOfLine = 0; true;) {
  14121. index = C.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
  14122. if (index === -1)
  14123. return context.length - beginningOfLine >= column ? beginningOfLine : null;
  14124. if (index - beginningOfLine >= column)
  14125. return beginningOfLine;
  14126. beginningOfLine = index + 1;
  14127. }
  14128. index = C.JSString_methods.indexOf$1(context, text);
  14129. for (; index !== -1;) {
  14130. lineStart = index === 0 ? 0 : C.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
  14131. if (column === index - lineStart)
  14132. return lineStart;
  14133. index = C.JSString_methods.indexOf$2(context, text, index + 1);
  14134. }
  14135. return null;
  14136. },
  14137. validateErrorArgs: function(string, match, position, $length) {
  14138. var t2,
  14139. t1 = position != null;
  14140. if (t1)
  14141. if (position < 0)
  14142. throw H.wrapException(P.RangeError$("position must be greater than or equal to 0."));
  14143. else if (position > string.length)
  14144. throw H.wrapException(P.RangeError$("position must be less than or equal to the string length."));
  14145. t2 = $length != null;
  14146. if (t2 && $length < 0)
  14147. throw H.wrapException(P.RangeError$("length must be greater than or equal to 0."));
  14148. if (t1 && t2 && position + $length > string.length)
  14149. throw H.wrapException(P.RangeError$("position plus length must not go beyond the end of the string."));
  14150. }
  14151. },
  14152. O = {
  14153. EmptyUnmodifiableSet__throw: function() {
  14154. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable Set"));
  14155. },
  14156. EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
  14157. this.$ti = t0;
  14158. },
  14159. Style__getPlatformStyle: function() {
  14160. if (P.Uri_base().get$scheme() !== "file")
  14161. return $.$get$Style_url();
  14162. var t1 = P.Uri_base();
  14163. if (!C.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
  14164. return $.$get$Style_url();
  14165. if (P._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
  14166. return $.$get$Style_windows();
  14167. return $.$get$Style_posix();
  14168. },
  14169. Style: function Style() {
  14170. },
  14171. NullExpression: function NullExpression(t0) {
  14172. this.span = t0;
  14173. },
  14174. AsyncImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  14175. var _i, t2, t3, path, _null = null,
  14176. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH),
  14177. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncImporter);
  14178. for (_i = 0; false; ++_i)
  14179. t1.push(importers[_i]);
  14180. if (loadPaths != null)
  14181. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  14182. t3 = t2.get$current(t2);
  14183. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  14184. }
  14185. if (sassPath != null) {
  14186. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  14187. t3 = t2.length;
  14188. _i = 0;
  14189. for (; _i < t3; ++_i) {
  14190. path = t2[_i];
  14191. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  14192. }
  14193. }
  14194. return t1;
  14195. },
  14196. AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4) {
  14197. var _ = this;
  14198. _._async_import_cache$_importers = t0;
  14199. _._async_import_cache$_logger = t1;
  14200. _._async_import_cache$_canonicalizeCache = t2;
  14201. _._async_import_cache$_importCache = t3;
  14202. _._async_import_cache$_resultsCache = t4;
  14203. },
  14204. AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2) {
  14205. this.$this = t0;
  14206. this.url = t1;
  14207. this.forImport = t2;
  14208. },
  14209. AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
  14210. this.importer = t0;
  14211. this.url = t1;
  14212. },
  14213. AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3) {
  14214. var _ = this;
  14215. _.$this = t0;
  14216. _.importer = t1;
  14217. _.canonicalUrl = t2;
  14218. _.originalUrl = t3;
  14219. },
  14220. AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
  14221. this.canonicalUrl = t0;
  14222. },
  14223. AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
  14224. },
  14225. AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
  14226. },
  14227. Environment$: function(sourceMap) {
  14228. var _null = null,
  14229. t1 = type$.legacy_String,
  14230. t2 = type$.legacy_Module_legacy_Callable,
  14231. t3 = type$.legacy_AstNode,
  14232. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable),
  14233. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value),
  14234. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode) : _null,
  14235. t7 = type$.legacy_int,
  14236. t8 = type$.legacy_Callable,
  14237. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Callable;
  14238. return new O.Environment(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  14239. },
  14240. Environment$_: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  14241. var t1 = type$.legacy_String,
  14242. t2 = type$.legacy_int;
  14243. return new O.Environment(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  14244. },
  14245. _EnvironmentModule__EnvironmentModule: function(environment, css, extender, forwarded) {
  14246. var t1, t2, t3, t4, t5, t6;
  14247. if (forwarded == null)
  14248. forwarded = C.Set_empty;
  14249. t1 = O._EnvironmentModule__makeModulesByVariable(forwarded);
  14250. t2 = H._instanceType(forwarded);
  14251. t3 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value*>*>")), type$.legacy_Value);
  14252. t4 = environment._variableNodes;
  14253. t4 = t4 == null ? null : O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure0(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode*>*>")), type$.legacy_AstNode);
  14254. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Callable*>*>");
  14255. t5 = type$.legacy_Callable;
  14256. t6 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure1(), t2), t5);
  14257. t5 = O._EnvironmentModule__memberMap(C.JSArray_methods.get$first(environment._mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure2(), t2), t5);
  14258. t2 = J.get$isNotEmpty$asx(css.get$children(css)) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure3());
  14259. return O._EnvironmentModule$_(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._allModules, new O._EnvironmentModule__EnvironmentModule_closure4()));
  14260. },
  14261. _EnvironmentModule__makeModulesByVariable: function(forwarded) {
  14262. var modulesByVariable, t1, t2, t3, t4, t5;
  14263. if (forwarded.get$isEmpty(forwarded))
  14264. return C.Map_empty0;
  14265. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_Callable);
  14266. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  14267. t2 = t1.get$current(t1);
  14268. if (t2 instanceof O._EnvironmentModule) {
  14269. for (t3 = t2._modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  14270. t4 = t3.get$current(t3);
  14271. t5 = t4.get$variables();
  14272. B.setAll(modulesByVariable, t5.get$keys(t5), t4);
  14273. }
  14274. B.setAll(modulesByVariable, J.get$keys$z(C.JSArray_methods.get$first(t2._environment._variables)), t2);
  14275. } else {
  14276. t3 = t2.get$variables();
  14277. B.setAll(modulesByVariable, t3.get$keys(t3), t2);
  14278. }
  14279. }
  14280. return modulesByVariable;
  14281. },
  14282. _EnvironmentModule__memberMap: function(localMap, otherMaps, $V) {
  14283. var t1, t2, t3, cur;
  14284. localMap = new U.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0*>"));
  14285. t1 = otherMaps.__internal$_iterable;
  14286. t2 = J.getInterceptor$asx(t1);
  14287. if (t2.get$isEmpty(t1))
  14288. return localMap;
  14289. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  14290. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  14291. cur = t1.__internal$_current;
  14292. if (cur.get$isNotEmpty(cur))
  14293. t3.push(cur);
  14294. }
  14295. t3.push(localMap);
  14296. if (t3.length === 1)
  14297. return localMap;
  14298. return Z.MergedMapView$(t3, type$.legacy_String, $V._eval$1("0*"));
  14299. },
  14300. _EnvironmentModule$_: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  14301. return new O._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  14302. },
  14303. Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  14304. var _ = this;
  14305. _._environment$_modules = t0;
  14306. _._namespaceNodes = t1;
  14307. _._globalModules = t2;
  14308. _._globalModuleNodes = t3;
  14309. _._forwardedModules = t4;
  14310. _._forwardedModuleNodes = t5;
  14311. _._nestedForwardedModules = t6;
  14312. _._allModules = t7;
  14313. _._variables = t8;
  14314. _._variableNodes = t9;
  14315. _._variableIndices = t10;
  14316. _._functions = t11;
  14317. _._functionIndices = t12;
  14318. _._mixins = t13;
  14319. _._mixinIndices = t14;
  14320. _._content = t15;
  14321. _._inMixin = false;
  14322. _._inSemiGlobalScope = true;
  14323. _._lastVariableIndex = _._lastVariableName = null;
  14324. },
  14325. Environment_importForwards_closure: function Environment_importForwards_closure() {
  14326. },
  14327. Environment_importForwards_closure0: function Environment_importForwards_closure0() {
  14328. },
  14329. Environment_importForwards_closure1: function Environment_importForwards_closure1() {
  14330. },
  14331. Environment_importForwards_closure2: function Environment_importForwards_closure2() {
  14332. },
  14333. Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
  14334. this.name = t0;
  14335. },
  14336. Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
  14337. this.$this = t0;
  14338. this.name = t1;
  14339. },
  14340. Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
  14341. this.name = t0;
  14342. },
  14343. Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
  14344. this.$this = t0;
  14345. this.name = t1;
  14346. },
  14347. Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
  14348. this.name = t0;
  14349. },
  14350. Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
  14351. this.name = t0;
  14352. },
  14353. _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  14354. var _ = this;
  14355. _.upstream = t0;
  14356. _.variables = t1;
  14357. _.variableNodes = t2;
  14358. _.functions = t3;
  14359. _.mixins = t4;
  14360. _.extender = t5;
  14361. _.css = t6;
  14362. _.transitivelyContainsCss = t7;
  14363. _.transitivelyContainsExtensions = t8;
  14364. _._environment = t9;
  14365. _._modulesByVariable = t10;
  14366. },
  14367. _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
  14368. },
  14369. _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
  14370. },
  14371. _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
  14372. },
  14373. _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
  14374. },
  14375. _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
  14376. },
  14377. _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
  14378. },
  14379. SassNull: function SassNull() {
  14380. },
  14381. AsyncImportCache$none: function(logger) {
  14382. var t1 = type$.legacy_Uri;
  14383. return new O.AsyncImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ImporterResult));
  14384. },
  14385. AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3) {
  14386. var _ = this;
  14387. _._async_import_cache0$_logger = t0;
  14388. _._async_import_cache0$_canonicalizeCache = t1;
  14389. _._async_import_cache0$_importCache = t2;
  14390. _._async_import_cache0$_resultsCache = t3;
  14391. },
  14392. AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2) {
  14393. this.$this = t0;
  14394. this.url = t1;
  14395. this.forImport = t2;
  14396. },
  14397. AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
  14398. this.importer = t0;
  14399. this.url = t1;
  14400. },
  14401. AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  14402. var _ = this;
  14403. _.$this = t0;
  14404. _.importer = t1;
  14405. _.canonicalUrl = t2;
  14406. _.originalUrl = t3;
  14407. },
  14408. AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
  14409. this.canonicalUrl = t0;
  14410. },
  14411. AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3() {
  14412. },
  14413. AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
  14414. },
  14415. Environment$0: function(sourceMap) {
  14416. var _null = null,
  14417. t1 = type$.legacy_String,
  14418. t2 = type$.legacy_Module_legacy_Callable_2,
  14419. t3 = type$.legacy_AstNode_2,
  14420. t4 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2),
  14421. t5 = H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Value_2)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2),
  14422. t6 = sourceMap ? H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2) : _null,
  14423. t7 = type$.legacy_int,
  14424. t8 = type$.legacy_Callable_2,
  14425. t9 = type$.JSArray_legacy_Map_of_legacy_String_and_legacy_Callable_2;
  14426. return new O.Environment0(P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), P.LinkedHashMap_LinkedHashMap$_empty(t1, t3), P.LinkedHashSet_LinkedHashSet$_empty(t2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), _null, _null, _null, t4, t5, t6, P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), H.setRuntimeTypeInfo([P.LinkedHashMap_LinkedHashMap$_empty(t1, t8)], t9), P.LinkedHashMap_LinkedHashMap$_empty(t1, t7), _null);
  14427. },
  14428. Environment$_0: function(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  14429. var t1 = type$.legacy_String,
  14430. t2 = type$.legacy_int;
  14431. return new O.Environment0(_modules, _namespaceNodes, _globalModules, _globalModuleNodes, _forwardedModules, _forwardedModuleNodes, _nestedForwardedModules, _allModules, _variables, _variableNodes, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, P.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  14432. },
  14433. _EnvironmentModule__EnvironmentModule1: function(environment, css, extender, forwarded) {
  14434. var t1, t2, t3, t4, t5, t6;
  14435. if (forwarded == null)
  14436. forwarded = C.Set_empty2;
  14437. t1 = O._EnvironmentModule__makeModulesByVariable1(forwarded);
  14438. t2 = H._instanceType(forwarded);
  14439. t3 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_variables), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure11(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Value0*>*>")), type$.legacy_Value_2);
  14440. t4 = environment._environment0$_variableNodes;
  14441. t4 = t4 == null ? null : O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(t4), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure12(), t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,AstNode0*>*>")), type$.legacy_AstNode_2);
  14442. t2 = t2._eval$1("EfficientLengthMappedIterable<1,Map<String*,Callable0*>*>");
  14443. t5 = type$.legacy_Callable_2;
  14444. t6 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_functions), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure13(), t2), t5);
  14445. t5 = O._EnvironmentModule__memberMap1(C.JSArray_methods.get$first(environment._environment0$_mixins), new H.EfficientLengthMappedIterable(forwarded, new O._EnvironmentModule__EnvironmentModule_closure14(), t2), t5);
  14446. t2 = J.get$isNotEmpty$asx(css.get$children(css)) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure15());
  14447. return O._EnvironmentModule$_1(environment, css, extender, t1, t3, t4, t6, t5, t2, !extender.get$isEmpty(extender) || C.JSArray_methods.any$1(environment._environment0$_allModules, new O._EnvironmentModule__EnvironmentModule_closure16()));
  14448. },
  14449. _EnvironmentModule__makeModulesByVariable1: function(forwarded) {
  14450. var modulesByVariable, t1, t2, t3, t4, t5;
  14451. if (forwarded.get$isEmpty(forwarded))
  14452. return C.Map_empty6;
  14453. modulesByVariable = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_Module_legacy_Callable_2);
  14454. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  14455. t2 = t1.get$current(t1);
  14456. if (t2 instanceof O._EnvironmentModule1) {
  14457. for (t3 = t2._environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  14458. t4 = t3.get$current(t3);
  14459. t5 = t4.get$variables();
  14460. B.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  14461. }
  14462. B.setAll0(modulesByVariable, J.get$keys$z(C.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables)), t2);
  14463. } else {
  14464. t3 = t2.get$variables();
  14465. B.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  14466. }
  14467. }
  14468. return modulesByVariable;
  14469. },
  14470. _EnvironmentModule__memberMap1: function(localMap, otherMaps, $V) {
  14471. var t1, t2, t3, cur;
  14472. localMap = new U.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0*>"));
  14473. t1 = otherMaps.__internal$_iterable;
  14474. t2 = J.getInterceptor$asx(t1);
  14475. if (t2.get$isEmpty(t1))
  14476. return localMap;
  14477. t3 = H.setRuntimeTypeInfo([], $V._eval$1("JSArray<Map<String*,0*>*>"));
  14478. for (t1 = new H.MappedIterator(t2.get$iterator(t1), otherMaps._f); t1.moveNext$0();) {
  14479. cur = t1.__internal$_current;
  14480. if (cur.get$isNotEmpty(cur))
  14481. t3.push(cur);
  14482. }
  14483. t3.push(localMap);
  14484. if (t3.length === 1)
  14485. return localMap;
  14486. return Z.MergedMapView$0(t3, type$.legacy_String, $V._eval$1("0*"));
  14487. },
  14488. _EnvironmentModule$_1: function(_environment, css, extender, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  14489. return new O._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extender, css, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  14490. },
  14491. Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  14492. var _ = this;
  14493. _._environment0$_modules = t0;
  14494. _._environment0$_namespaceNodes = t1;
  14495. _._environment0$_globalModules = t2;
  14496. _._environment0$_globalModuleNodes = t3;
  14497. _._environment0$_forwardedModules = t4;
  14498. _._environment0$_forwardedModuleNodes = t5;
  14499. _._environment0$_nestedForwardedModules = t6;
  14500. _._environment0$_allModules = t7;
  14501. _._environment0$_variables = t8;
  14502. _._environment0$_variableNodes = t9;
  14503. _._environment0$_variableIndices = t10;
  14504. _._environment0$_functions = t11;
  14505. _._environment0$_functionIndices = t12;
  14506. _._environment0$_mixins = t13;
  14507. _._environment0$_mixinIndices = t14;
  14508. _._environment0$_content = t15;
  14509. _._environment0$_inMixin = false;
  14510. _._environment0$_inSemiGlobalScope = true;
  14511. _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
  14512. },
  14513. Environment_importForwards_closure3: function Environment_importForwards_closure3() {
  14514. },
  14515. Environment_importForwards_closure4: function Environment_importForwards_closure4() {
  14516. },
  14517. Environment_importForwards_closure5: function Environment_importForwards_closure5() {
  14518. },
  14519. Environment_importForwards_closure6: function Environment_importForwards_closure6() {
  14520. },
  14521. Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
  14522. this.name = t0;
  14523. },
  14524. Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
  14525. this.$this = t0;
  14526. this.name = t1;
  14527. },
  14528. Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
  14529. this.name = t0;
  14530. },
  14531. Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
  14532. this.$this = t0;
  14533. this.name = t1;
  14534. },
  14535. Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
  14536. this.name = t0;
  14537. },
  14538. Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
  14539. this.name = t0;
  14540. },
  14541. _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) {
  14542. var _ = this;
  14543. _.upstream = t0;
  14544. _.variables = t1;
  14545. _.variableNodes = t2;
  14546. _.functions = t3;
  14547. _.mixins = t4;
  14548. _.extender = t5;
  14549. _.css = t6;
  14550. _.transitivelyContainsCss = t7;
  14551. _.transitivelyContainsExtensions = t8;
  14552. _._environment0$_environment = t9;
  14553. _._environment0$_modulesByVariable = t10;
  14554. },
  14555. _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
  14556. },
  14557. _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
  14558. },
  14559. _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
  14560. },
  14561. _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
  14562. },
  14563. _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
  14564. },
  14565. _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
  14566. },
  14567. NullExpression0: function NullExpression0(t0) {
  14568. this.span = t0;
  14569. },
  14570. closure238: function closure238() {
  14571. },
  14572. _closure29: function _closure29() {
  14573. },
  14574. _closure30: function _closure30() {
  14575. },
  14576. SassNull0: function SassNull0() {
  14577. }
  14578. },
  14579. U = {DefaultEquality: function DefaultEquality() {
  14580. }, IterableEquality: function IterableEquality() {
  14581. }, ListEquality: function ListEquality() {
  14582. }, _MapEntry: function _MapEntry(t0, t1, t2) {
  14583. this.equality = t0;
  14584. this.key = t1;
  14585. this.value = t2;
  14586. }, MapEquality: function MapEquality() {
  14587. },
  14588. ModifiableCssAtRule$: function($name, span, childless, value) {
  14589. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  14590. return new U.ModifiableCssAtRule($name, value, childless, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  14591. },
  14592. ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
  14593. var _ = this;
  14594. _.name = t0;
  14595. _.value = t1;
  14596. _.isChildless = t2;
  14597. _.span = t3;
  14598. _.children = t4;
  14599. _._children = t5;
  14600. _._indexInParent = _._parent = null;
  14601. _.isGroupEnd = false;
  14602. },
  14603. ModifiableCssKeyframeBlock$: function(selector, span) {
  14604. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  14605. return new U.ModifiableCssKeyframeBlock(selector, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode), t1);
  14606. },
  14607. ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
  14608. var _ = this;
  14609. _.selector = t0;
  14610. _.span = t1;
  14611. _.children = t2;
  14612. _._children = t3;
  14613. _._indexInParent = _._parent = null;
  14614. _.isGroupEnd = false;
  14615. },
  14616. AtRule$: function($name, span, children, value) {
  14617. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement),
  14618. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  14619. return new U.AtRule($name, value, span, t1, t2 === true);
  14620. },
  14621. AtRule: function AtRule(t0, t1, t2, t3, t4) {
  14622. var _ = this;
  14623. _.name = t0;
  14624. _.value = t1;
  14625. _.span = t2;
  14626. _.children = t3;
  14627. _.hasDeclarations = t4;
  14628. },
  14629. SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
  14630. var _ = this;
  14631. _.left = t0;
  14632. _.right = t1;
  14633. _.operator = t2;
  14634. _.span = t3;
  14635. },
  14636. _compileStylesheet: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  14637. var serializeResult = N.serialize(R._EvaluateVisitor$(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet).stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true),
  14638. t1 = serializeResult.sourceMap;
  14639. if (t1 != null && true)
  14640. B.mapInPlace(t1.urls, new U._compileStylesheet_closure(stylesheet, importCache));
  14641. return new X.CompileResult(serializeResult);
  14642. },
  14643. _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
  14644. this.stylesheet = t0;
  14645. this.importCache = t1;
  14646. },
  14647. SassParser: function SassParser(t0, t1, t2) {
  14648. var _ = this;
  14649. _._currentIndentation = 0;
  14650. _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
  14651. _._isUseAllowed = true;
  14652. _._stylesheet$_inMixin = false;
  14653. _._mixinHasContent = null;
  14654. _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = false;
  14655. _._globalVariables = t0;
  14656. _.lastSilentComment = null;
  14657. _.scanner = t1;
  14658. _.logger = t2;
  14659. },
  14660. SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
  14661. this.$this = t0;
  14662. this.children = t1;
  14663. this.child = t2;
  14664. },
  14665. MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
  14666. this._watchers = t0;
  14667. this._group = t1;
  14668. this._poll = t2;
  14669. },
  14670. PublicMemberMapView: function PublicMemberMapView(t0, t1) {
  14671. this._inner = t0;
  14672. this.$ti = t1;
  14673. },
  14674. Highlighter$: function(span, color) {
  14675. var t1 = U.Highlighter__collateLines(H.setRuntimeTypeInfo([U._Highlight$(span, null, true)], type$.JSArray_legacy__Highlight)),
  14676. t2 = new U.Highlighter_closure(color).call$0(),
  14677. t3 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1),
  14678. t4 = U.Highlighter__contiguous(t1) ? 0 : 3,
  14679. t5 = H._arrayInstanceType(t1);
  14680. return new U.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int*>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.legacy_int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object*>"))), new P.StringBuffer(""));
  14681. },
  14682. Highlighter$multiple: function(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
  14683. var t2, t3, t4, t5, t6,
  14684. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy__Highlight);
  14685. t1.push(U._Highlight$(primarySpan, primaryLabel, true));
  14686. for (t2 = secondarySpans.get$entries(secondarySpans), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  14687. t3 = t2.get$current(t2);
  14688. t1.push(U._Highlight$(t3.key, t3.value, false));
  14689. }
  14690. t1 = U.Highlighter__collateLines(t1);
  14691. if (color)
  14692. t2 = "\x1b[31m";
  14693. else
  14694. t2 = null;
  14695. if (color)
  14696. t3 = "\x1b[34m";
  14697. else
  14698. t3 = null;
  14699. t4 = C.JSInt_methods.toString$0(C.JSArray_methods.get$last(t1).number + 1);
  14700. t5 = U.Highlighter__contiguous(t1) ? 0 : 3;
  14701. t6 = H._arrayInstanceType(t1);
  14702. return new U.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new H.MappedListIterable(t1, new U.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int*>")).reduce$1(0, H.instantiate1(P.math__max$closure(), type$.legacy_int)), !B.isAllTheSame(new H.MappedListIterable(t1, new U.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object*>"))), new P.StringBuffer(""));
  14703. },
  14704. Highlighter__contiguous: function(lines) {
  14705. var i, thisLine, nextLine;
  14706. for (i = 0; i < lines.length - 1;) {
  14707. thisLine = lines[i];
  14708. ++i;
  14709. nextLine = lines[i];
  14710. if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
  14711. return false;
  14712. }
  14713. return true;
  14714. },
  14715. Highlighter__collateLines: function(highlights) {
  14716. var t1, t2,
  14717. highlightsByUrl = Y.groupBy(highlights, new U.Highlighter__collateLines_closure(), type$.legacy__Highlight, type$.dynamic);
  14718. for (t1 = highlightsByUrl.get$values(highlightsByUrl), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  14719. J.sort$1$ax(t1.get$current(t1), new U.Highlighter__collateLines_closure0());
  14720. t1 = highlightsByUrl.get$values(highlightsByUrl);
  14721. t2 = H._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line*>");
  14722. return P.List_List$from(new H.ExpandIterable(t1, new U.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
  14723. },
  14724. _Highlight$: function(span, label, primary) {
  14725. return new U._Highlight(new U._Highlight_closure(span).call$0(), primary, label);
  14726. },
  14727. _Highlight__normalizeNewlines: function(span) {
  14728. var endOffset, t1, i, t2, t3, t4,
  14729. text = span.get$text();
  14730. if (!C.JSString_methods.contains$1(text, "\r\n"))
  14731. return span;
  14732. endOffset = span.get$end(span).get$offset();
  14733. for (t1 = text.length - 1, i = 0; i < t1; ++i)
  14734. if (C.JSString_methods._codeUnitAt$1(text, i) === 13 && C.JSString_methods._codeUnitAt$1(text, i + 1) === 10)
  14735. --endOffset;
  14736. t1 = span.get$start(span);
  14737. t2 = span.get$sourceUrl(span);
  14738. t3 = span.get$end(span).get$line();
  14739. t2 = V.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
  14740. t3 = H.stringReplaceAllUnchecked(text, "\r\n", "\n");
  14741. t4 = span.get$context(span);
  14742. return X.SourceSpanWithContext$(t1, t2, t3, H.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
  14743. },
  14744. _Highlight__normalizeTrailingNewline: function(span) {
  14745. var context, text, start, end, t1, t2, t3;
  14746. if (!C.JSString_methods.endsWith$1(span.get$context(span), "\n"))
  14747. return span;
  14748. if (C.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
  14749. return span;
  14750. context = C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
  14751. text = span.get$text();
  14752. start = span.get$start(span);
  14753. end = span.get$end(span);
  14754. if (C.JSString_methods.endsWith$1(span.get$text(), "\n") && B.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column()) + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length) {
  14755. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  14756. if (text.length === 0)
  14757. end = start;
  14758. else {
  14759. t1 = span.get$end(span).get$offset();
  14760. t2 = span.get$sourceUrl(span);
  14761. t3 = span.get$end(span).get$line();
  14762. end = V.SourceLocation$(t1 - 1, U._Highlight__lastLineLength(context), t3 - 1, t2);
  14763. start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
  14764. }
  14765. }
  14766. return X.SourceSpanWithContext$(start, end, text, context);
  14767. },
  14768. _Highlight__normalizeEndOfLine: function(span) {
  14769. var text, t1, t2, t3, t4;
  14770. if (span.get$end(span).get$column() !== 0)
  14771. return span;
  14772. if (span.get$end(span).get$line() == span.get$start(span).get$line())
  14773. return span;
  14774. text = C.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  14775. t1 = span.get$start(span);
  14776. t2 = span.get$end(span).get$offset();
  14777. t3 = span.get$sourceUrl(span);
  14778. t4 = span.get$end(span).get$line();
  14779. t3 = V.SourceLocation$(t2 - 1, text.length - C.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
  14780. return X.SourceSpanWithContext$(t1, t3, text, C.JSString_methods.endsWith$1(span.get$context(span), "\n") ? C.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
  14781. },
  14782. _Highlight__lastLineLength: function(text) {
  14783. var t1 = text.length;
  14784. if (t1 === 0)
  14785. return 0;
  14786. else if (C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 10)
  14787. return t1 === 1 ? 0 : t1 - C.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
  14788. else
  14789. return t1 - C.JSString_methods.lastIndexOf$1(text, "\n") - 1;
  14790. },
  14791. Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
  14792. var _ = this;
  14793. _._lines = t0;
  14794. _._primaryColor = t1;
  14795. _._secondaryColor = t2;
  14796. _._paddingBeforeSidebar = t3;
  14797. _._maxMultilineSpans = t4;
  14798. _._multipleFiles = t5;
  14799. _._highlighter$_buffer = t6;
  14800. },
  14801. Highlighter_closure: function Highlighter_closure(t0) {
  14802. this.color = t0;
  14803. },
  14804. Highlighter$__closure: function Highlighter$__closure() {
  14805. },
  14806. Highlighter$___closure: function Highlighter$___closure() {
  14807. },
  14808. Highlighter$__closure0: function Highlighter$__closure0() {
  14809. },
  14810. Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
  14811. },
  14812. Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
  14813. },
  14814. Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
  14815. },
  14816. Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
  14817. this.line = t0;
  14818. },
  14819. Highlighter_highlight_closure: function Highlighter_highlight_closure() {
  14820. },
  14821. Highlighter_highlight_closure0: function Highlighter_highlight_closure0() {
  14822. },
  14823. Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
  14824. this.$this = t0;
  14825. },
  14826. Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
  14827. this.$this = t0;
  14828. this.startLine = t1;
  14829. this.line = t2;
  14830. },
  14831. Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
  14832. this.$this = t0;
  14833. this.highlight = t1;
  14834. },
  14835. Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
  14836. this.$this = t0;
  14837. },
  14838. Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
  14839. var _ = this;
  14840. _._box_0 = t0;
  14841. _.$this = t1;
  14842. _.current = t2;
  14843. _.startLine = t3;
  14844. _.line = t4;
  14845. _.highlight = t5;
  14846. _.endLine = t6;
  14847. },
  14848. Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
  14849. this._box_0 = t0;
  14850. this.$this = t1;
  14851. },
  14852. Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
  14853. this.$this = t0;
  14854. this.vertical = t1;
  14855. },
  14856. Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
  14857. var _ = this;
  14858. _.$this = t0;
  14859. _.text = t1;
  14860. _.startColumn = t2;
  14861. _.endColumn = t3;
  14862. },
  14863. Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
  14864. this.$this = t0;
  14865. this.line = t1;
  14866. this.highlight = t2;
  14867. },
  14868. Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
  14869. this.$this = t0;
  14870. this.line = t1;
  14871. this.highlight = t2;
  14872. },
  14873. Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
  14874. var _ = this;
  14875. _.$this = t0;
  14876. _.coversWholeLine = t1;
  14877. _.line = t2;
  14878. _.highlight = t3;
  14879. },
  14880. Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
  14881. this._box_0 = t0;
  14882. this.$this = t1;
  14883. this.end = t2;
  14884. },
  14885. _Highlight: function _Highlight(t0, t1, t2) {
  14886. this.span = t0;
  14887. this.isPrimary = t1;
  14888. this.label = t2;
  14889. },
  14890. _Highlight_closure: function _Highlight_closure(t0) {
  14891. this.span = t0;
  14892. },
  14893. _Line: function _Line(t0, t1, t2, t3) {
  14894. var _ = this;
  14895. _.text = t0;
  14896. _.number = t1;
  14897. _.url = t2;
  14898. _.highlights = t3;
  14899. },
  14900. Chain_Chain$parse: function(chain) {
  14901. var t1, t2,
  14902. _s51_ = string$.x3d_____;
  14903. if (chain.length === 0)
  14904. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Trace), type$.legacy_Trace));
  14905. t1 = $.$get$vmChainGap();
  14906. if (C.JSString_methods.contains$1(chain, t1)) {
  14907. t1 = C.JSString_methods.split$1(chain, t1);
  14908. t2 = H._arrayInstanceType(t1);
  14909. return new U.Chain(P.List_List$unmodifiable(new H.MappedIterable(new H.WhereIterable(t1, new U.Chain_Chain$parse_closure(), t2._eval$1("WhereIterable<1>")), new U.Chain_Chain$parse_closure0(), t2._eval$1("MappedIterable<1,Trace*>")), type$.legacy_Trace));
  14910. }
  14911. if (!C.JSString_methods.contains$1(chain, _s51_))
  14912. return new U.Chain(P.List_List$unmodifiable(H.setRuntimeTypeInfo([Y.Trace_Trace$parse(chain)], type$.JSArray_legacy_Trace), type$.legacy_Trace));
  14913. return new U.Chain(P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(chain.split(_s51_), type$.JSArray_String), new U.Chain_Chain$parse_closure1(), type$.MappedListIterable_of_String_and_legacy_Trace), type$.legacy_Trace));
  14914. },
  14915. Chain: function Chain(t0) {
  14916. this.traces = t0;
  14917. },
  14918. Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
  14919. },
  14920. Chain_Chain$parse_closure0: function Chain_Chain$parse_closure0() {
  14921. },
  14922. Chain_Chain$parse_closure1: function Chain_Chain$parse_closure1() {
  14923. },
  14924. Chain_toTrace_closure: function Chain_toTrace_closure() {
  14925. },
  14926. Chain_toString_closure0: function Chain_toString_closure0() {
  14927. },
  14928. Chain_toString__closure0: function Chain_toString__closure0() {
  14929. },
  14930. Chain_toString_closure: function Chain_toString_closure(t0) {
  14931. this.longest = t0;
  14932. },
  14933. Chain_toString__closure: function Chain_toString__closure(t0) {
  14934. this.longest = t0;
  14935. },
  14936. ModifiableCssAtRule$0: function($name, span, childless, value) {
  14937. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  14938. return new U.ModifiableCssAtRule0($name, value, childless, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  14939. },
  14940. ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
  14941. var _ = this;
  14942. _.name = t0;
  14943. _.value = t1;
  14944. _.isChildless = t2;
  14945. _.span = t3;
  14946. _.children = t4;
  14947. _._node2$_children = t5;
  14948. _._node2$_indexInParent = _._node2$_parent = null;
  14949. _.isGroupEnd = false;
  14950. },
  14951. AtRule$0: function($name, span, children, value) {
  14952. var t1 = children == null ? null : P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  14953. t2 = t1 == null ? null : C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  14954. return new U.AtRule0($name, value, span, t1, t2 === true);
  14955. },
  14956. AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
  14957. var _ = this;
  14958. _.name = t0;
  14959. _.value = t1;
  14960. _.span = t2;
  14961. _.children = t3;
  14962. _.hasDeclarations = t4;
  14963. },
  14964. _compileStylesheet1: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  14965. var evaluateResult = R._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet),
  14966. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
  14967. t1 = serializeResult.sourceMap;
  14968. if (t1 != null && importCache != null)
  14969. B.mapInPlace0(t1.urls, new U._compileStylesheet_closure1(stylesheet, importCache));
  14970. return new X.CompileResult0(evaluateResult, serializeResult);
  14971. },
  14972. _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
  14973. this.stylesheet = t0;
  14974. this.importCache = t1;
  14975. },
  14976. ModifiableCssKeyframeBlock$0: function(selector, span) {
  14977. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  14978. return new U.ModifiableCssKeyframeBlock0(selector, span, new P.UnmodifiableListView(t1, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t1);
  14979. },
  14980. ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
  14981. var _ = this;
  14982. _.selector = t0;
  14983. _.span = t1;
  14984. _.children = t2;
  14985. _._node2$_children = t3;
  14986. _._node2$_indexInParent = _._node2$_parent = null;
  14987. _.isGroupEnd = false;
  14988. },
  14989. SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
  14990. var _ = this;
  14991. _.left = t0;
  14992. _.right = t1;
  14993. _.operator = t2;
  14994. _.span = t3;
  14995. },
  14996. PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
  14997. this._public_member_map_view$_inner = t0;
  14998. this.$ti = t1;
  14999. },
  15000. RenderResult: function RenderResult() {
  15001. },
  15002. RenderResultStats: function RenderResultStats() {
  15003. },
  15004. main: function(args) {
  15005. return U.main$body(args);
  15006. },
  15007. main$body: function(args) {
  15008. var $async$goto = 0,
  15009. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  15010. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], printError, graph, source, destination, error, stackTrace, error0, stackTrace0, error1, error2, stackTrace1, buffer, options, t1, t2, t3, t4, exception, _box_0, $async$exception, $async$exception1, $async$temp1;
  15011. var $async$main = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15012. if ($async$errorCode === 1) {
  15013. $async$currentError = $async$result;
  15014. $async$goto = $async$handler;
  15015. }
  15016. while (true)
  15017. switch ($async$goto) {
  15018. case 0:
  15019. // Function start
  15020. _box_0 = {};
  15021. _box_0.printedError = false;
  15022. printError = new U.main_printError(_box_0);
  15023. _box_0.options = null;
  15024. $async$handler = 4;
  15025. options = B.ExecutableOptions_ExecutableOptions$parse(args);
  15026. _box_0.options = options;
  15027. t1 = options._options;
  15028. $._glyphs = !(t1.wasParsed$1("unicode") ? H._asBoolS(t1.$index(0, "unicode")) : $._glyphs !== C.C_AsciiGlyphSet) ? C.C_AsciiGlyphSet : C.C_UnicodeGlyphSet;
  15029. $async$goto = H._asBoolS(_box_0.options._options.$index(0, "version")) ? 7 : 8;
  15030. break;
  15031. case 7:
  15032. // then
  15033. $async$temp1 = P;
  15034. $async$goto = 9;
  15035. return P._asyncAwait(U._loadVersion(), $async$main);
  15036. case 9:
  15037. // returning from await.
  15038. $async$temp1.print($async$result);
  15039. J.set$exitCode$x(self.process, 0);
  15040. // goto return
  15041. $async$goto = 1;
  15042. break;
  15043. case 8:
  15044. // join
  15045. $async$goto = _box_0.options.get$interactive() ? 10 : 11;
  15046. break;
  15047. case 10:
  15048. // then
  15049. $async$goto = 12;
  15050. return P._asyncAwait(Y.repl(_box_0.options), $async$main);
  15051. case 12:
  15052. // returning from await.
  15053. // goto return
  15054. $async$goto = 1;
  15055. break;
  15056. case 11:
  15057. // join
  15058. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Importer);
  15059. t2 = type$.legacy_List_legacy_String._as(_box_0.options._options.$index(0, "load-path"));
  15060. t3 = _box_0.options;
  15061. t4 = type$.legacy_Uri;
  15062. graph = new M.StylesheetGraph(P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_StylesheetNode), R.ImportCache$(t1, t2, H._asBoolS(t3._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(t3.get$color())), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_DateTime));
  15063. $async$goto = H._asBoolS(_box_0.options._options.$index(0, "watch")) ? 13 : 14;
  15064. break;
  15065. case 13:
  15066. // then
  15067. $async$goto = 15;
  15068. return P._asyncAwait(A.watch(_box_0.options, graph), $async$main);
  15069. case 15:
  15070. // returning from await.
  15071. // goto return
  15072. $async$goto = 1;
  15073. break;
  15074. case 14:
  15075. // join
  15076. t1 = _box_0.options, t1._ensureSources$0(), t1 = t1._sourcesToDestinations, t1 = J.get$iterator$ax(t1.get$keys(t1));
  15077. case 16:
  15078. // for condition
  15079. if (!t1.moveNext$0()) {
  15080. // goto after for
  15081. $async$goto = 17;
  15082. break;
  15083. }
  15084. source = t1.get$current(t1);
  15085. t2 = _box_0.options;
  15086. t2._ensureSources$0();
  15087. destination = t2._sourcesToDestinations.$index(0, source);
  15088. $async$handler = 19;
  15089. t2 = _box_0.options;
  15090. $async$goto = 22;
  15091. return P._asyncAwait(D.compileStylesheet(t2, graph, source, destination, H._asBoolS(t2._options.$index(0, "update"))), $async$main);
  15092. case 22:
  15093. // returning from await.
  15094. $async$handler = 4;
  15095. // goto after finally
  15096. $async$goto = 21;
  15097. break;
  15098. case 19:
  15099. // catch
  15100. $async$handler = 18;
  15101. $async$exception = $async$currentError;
  15102. t2 = H.unwrapException($async$exception);
  15103. if (t2 instanceof E.SassException) {
  15104. error = t2;
  15105. stackTrace = H.getTraceFromException($async$exception);
  15106. new U.main_closure(_box_0, destination).call$0();
  15107. t2 = _box_0.options._options;
  15108. if (t2._parser.options._collection$_map.$index(0, "color") == null)
  15109. H.throwExpression(P.ArgumentError$('Could not find an option named "color".'));
  15110. if (t2._parsed.containsKey$1("color"))
  15111. t2 = H._asBoolS(t2.$index(0, "color"));
  15112. else {
  15113. t2 = J.get$isTTY$x(J.get$stdout$x(self.process));
  15114. if (t2 == null)
  15115. t2 = false;
  15116. }
  15117. t2 = J.toString$1$color$(error, t2);
  15118. t3 = H._asBoolS(_box_0.options._options.$index(0, "trace")) ? stackTrace : null;
  15119. printError.call$2(t2, t3);
  15120. if (J.get$exitCode$x(self.process) !== 66)
  15121. J.set$exitCode$x(self.process, 65);
  15122. if (H._asBoolS(_box_0.options._options.$index(0, "stop-on-error"))) {
  15123. // goto return
  15124. $async$goto = 1;
  15125. break;
  15126. }
  15127. } else if (t2 instanceof B.FileSystemException) {
  15128. error0 = t2;
  15129. stackTrace0 = H.getTraceFromException($async$exception);
  15130. t2 = error0.path;
  15131. t2 = "Error reading " + H.S($.$get$context().relative$2$from(t2, null)) + ": " + error0.message + ".";
  15132. t3 = H._asBoolS(_box_0.options._options.$index(0, "trace")) ? stackTrace0 : null;
  15133. printError.call$2(t2, t3);
  15134. J.set$exitCode$x(self.process, 66);
  15135. if (H._asBoolS(_box_0.options._options.$index(0, "stop-on-error"))) {
  15136. // goto return
  15137. $async$goto = 1;
  15138. break;
  15139. }
  15140. } else
  15141. throw $async$exception;
  15142. // goto after finally
  15143. $async$goto = 21;
  15144. break;
  15145. case 18:
  15146. // uncaught
  15147. // goto catch
  15148. $async$goto = 4;
  15149. break;
  15150. case 21:
  15151. // after finally
  15152. // goto for condition
  15153. $async$goto = 16;
  15154. break;
  15155. case 17:
  15156. // after for
  15157. $async$handler = 2;
  15158. // goto after finally
  15159. $async$goto = 6;
  15160. break;
  15161. case 4:
  15162. // catch
  15163. $async$handler = 3;
  15164. $async$exception1 = $async$currentError;
  15165. t1 = H.unwrapException($async$exception1);
  15166. if (t1 instanceof B.UsageException) {
  15167. error1 = t1;
  15168. P.print(H.S(error1.message) + "\n");
  15169. P.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
  15170. t1 = $.$get$ExecutableOptions__parser();
  15171. P.print(new G.Usage(t1._optionsAndSeparators, t1.usageLineLength).generate$0());
  15172. J.set$exitCode$x(self.process, 64);
  15173. } else {
  15174. error2 = t1;
  15175. stackTrace1 = H.getTraceFromException($async$exception1);
  15176. buffer = new P.StringBuffer("");
  15177. t1 = _box_0.options;
  15178. if (t1 != null && t1.get$color())
  15179. buffer._contents += "\x1b[31m\x1b[1m";
  15180. buffer._contents += "Unexpected exception:";
  15181. t1 = _box_0.options;
  15182. if (t1 != null && t1.get$color())
  15183. buffer._contents += "\x1b[0m";
  15184. buffer._contents += "\n";
  15185. buffer._contents += H.S(error2) + "\n";
  15186. t1 = buffer._contents;
  15187. printError.call$2(t1.charCodeAt(0) == 0 ? t1 : t1, stackTrace1);
  15188. J.set$exitCode$x(self.process, 255);
  15189. }
  15190. // goto after finally
  15191. $async$goto = 6;
  15192. break;
  15193. case 3:
  15194. // uncaught
  15195. // goto rethrow
  15196. $async$goto = 2;
  15197. break;
  15198. case 6:
  15199. // after finally
  15200. case 1:
  15201. // return
  15202. return P._asyncReturn($async$returnValue, $async$completer);
  15203. case 2:
  15204. // rethrow
  15205. return P._asyncRethrow($async$currentError, $async$completer);
  15206. }
  15207. });
  15208. return P._asyncStartSync($async$main, $async$completer);
  15209. },
  15210. _loadVersion: function() {
  15211. var $async$goto = 0,
  15212. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  15213. $async$returnValue;
  15214. var $async$_loadVersion = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15215. if ($async$errorCode === 1)
  15216. return P._asyncRethrow($async$result, $async$completer);
  15217. while (true)
  15218. switch ($async$goto) {
  15219. case 0:
  15220. // Function start
  15221. $async$returnValue = "1.32.0 compiled with dart2js 2.10.4";
  15222. // goto return
  15223. $async$goto = 1;
  15224. break;
  15225. case 1:
  15226. // return
  15227. return P._asyncReturn($async$returnValue, $async$completer);
  15228. }
  15229. });
  15230. return P._asyncStartSync($async$_loadVersion, $async$completer);
  15231. },
  15232. main_printError: function main_printError(t0) {
  15233. this._box_0 = t0;
  15234. },
  15235. main_closure: function main_closure(t0, t1) {
  15236. this._box_0 = t0;
  15237. this.destination = t1;
  15238. },
  15239. SassParser0: function SassParser0(t0, t1, t2) {
  15240. var _ = this;
  15241. _._sass0$_currentIndentation = 0;
  15242. _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
  15243. _._stylesheet0$_isUseAllowed = true;
  15244. _._stylesheet0$_inMixin = false;
  15245. _._stylesheet0$_mixinHasContent = null;
  15246. _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = false;
  15247. _._stylesheet0$_globalVariables = t0;
  15248. _.lastSilentComment = null;
  15249. _.scanner = t1;
  15250. _.logger = t2;
  15251. },
  15252. SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
  15253. this.$this = t0;
  15254. this.children = t1;
  15255. this.child = t2;
  15256. }
  15257. },
  15258. M = {_DelegatingIterableBase: function _DelegatingIterableBase() {
  15259. }, DelegatingIterable: function DelegatingIterable() {
  15260. }, DelegatingSet: function DelegatingSet(t0, t1) {
  15261. this._base = t0;
  15262. this.$ti = t1;
  15263. }, MapKeySet: function MapKeySet(t0, t1) {
  15264. this._baseMap = t0;
  15265. this.$ti = t1;
  15266. }, _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
  15267. },
  15268. futureToPromise: function(future) {
  15269. return new self.Promise(P.allowInterop(new M.futureToPromise_closure(future)));
  15270. },
  15271. Util: function Util() {
  15272. },
  15273. futureToPromise_closure: function futureToPromise_closure(t0) {
  15274. this.future = t0;
  15275. },
  15276. Context_Context: function(style) {
  15277. var current = style == null ? D.current() : ".";
  15278. if (style == null)
  15279. style = $.$get$Style_platform();
  15280. return new M.Context(style, current);
  15281. },
  15282. _parseUri: function(uri) {
  15283. if (typeof uri == "string")
  15284. return P.Uri_parse(uri);
  15285. if (type$.legacy_Uri._is(uri))
  15286. return uri;
  15287. throw H.wrapException(P.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
  15288. },
  15289. _validateArgList: function(method, args) {
  15290. var numArgs, i, numArgs0, message, t1, t2, t3, t4;
  15291. for (numArgs = args.length, i = 1; i < numArgs; ++i) {
  15292. if (args[i] == null || args[i - 1] != null)
  15293. continue;
  15294. for (; numArgs >= 1; numArgs = numArgs0) {
  15295. numArgs0 = numArgs - 1;
  15296. if (args[numArgs0] != null)
  15297. break;
  15298. }
  15299. message = new P.StringBuffer("");
  15300. t1 = method + "(";
  15301. message._contents = t1;
  15302. t2 = H._arrayInstanceType(args);
  15303. t3 = t2._eval$1("SubListIterable<1>");
  15304. t4 = new H.SubListIterable(args, 0, numArgs, t3);
  15305. t4.SubListIterable$3(args, 0, numArgs, t2._precomputed1);
  15306. t3 = t1 + new H.MappedListIterable(t4, new M._validateArgList_closure(), t3._eval$1("MappedListIterable<ListIterable.E,String*>")).join$1(0, ", ");
  15307. message._contents = t3;
  15308. message._contents = t3 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
  15309. throw H.wrapException(P.ArgumentError$(message.toString$0(0)));
  15310. }
  15311. },
  15312. Context: function Context(t0, t1) {
  15313. this.style = t0;
  15314. this._context$_current = t1;
  15315. },
  15316. Context_join_closure: function Context_join_closure() {
  15317. },
  15318. Context_joinAll_closure: function Context_joinAll_closure() {
  15319. },
  15320. Context_split_closure: function Context_split_closure() {
  15321. },
  15322. _validateArgList_closure: function _validateArgList_closure() {
  15323. },
  15324. _PathDirection: function _PathDirection(t0) {
  15325. this.name = t0;
  15326. },
  15327. _PathRelation: function _PathRelation(t0) {
  15328. this.name = t0;
  15329. },
  15330. CallableDeclaration: function CallableDeclaration() {
  15331. },
  15332. FunctionRule$: function($name, $arguments, children, span, comment) {
  15333. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  15334. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  15335. return new M.FunctionRule($name, $arguments, span, t1, t2);
  15336. },
  15337. FunctionRule: function FunctionRule(t0, t1, t2, t3, t4) {
  15338. var _ = this;
  15339. _.name = t0;
  15340. _.$arguments = t1;
  15341. _.span = t2;
  15342. _.children = t3;
  15343. _.hasDeclarations = t4;
  15344. },
  15345. ParentStatement: function ParentStatement() {
  15346. },
  15347. ParentStatement_closure: function ParentStatement_closure() {
  15348. },
  15349. ParentStatement__closure: function ParentStatement__closure() {
  15350. },
  15351. SupportsNegation: function SupportsNegation(t0, t1) {
  15352. this.condition = t0;
  15353. this.span = t1;
  15354. },
  15355. ParentSelector: function ParentSelector(t0) {
  15356. this.suffix = t0;
  15357. },
  15358. SimpleSelector: function SimpleSelector() {
  15359. },
  15360. Importer: function Importer() {
  15361. },
  15362. StylesheetNode$_: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  15363. var t1 = new M.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream.item1, allUpstream.item2, P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_StylesheetNode));
  15364. t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
  15365. return t1;
  15366. },
  15367. StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
  15368. this._nodes = t0;
  15369. this.importCache = t1;
  15370. this._transitiveModificationTimes = t2;
  15371. },
  15372. StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
  15373. this.$this = t0;
  15374. },
  15375. StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
  15376. this.node = t0;
  15377. this.transitiveModificationTime = t1;
  15378. },
  15379. StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
  15380. var _ = this;
  15381. _.$this = t0;
  15382. _.url = t1;
  15383. _.baseImporter = t2;
  15384. _.baseUrl = t3;
  15385. },
  15386. StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
  15387. var _ = this;
  15388. _.$this = t0;
  15389. _.importer = t1;
  15390. _.canonicalUrl = t2;
  15391. _.originalUrl = t3;
  15392. },
  15393. StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
  15394. this.$this = t0;
  15395. this.node = t1;
  15396. this.canonicalUrl = t2;
  15397. },
  15398. StylesheetGraph__recanonicalizeImportsForNode_closure: function StylesheetGraph__recanonicalizeImportsForNode_closure(t0, t1, t2, t3, t4, t5) {
  15399. var _ = this;
  15400. _.$this = t0;
  15401. _.importer = t1;
  15402. _.canonicalUrl = t2;
  15403. _.node = t3;
  15404. _.forImport = t4;
  15405. _.newMap = t5;
  15406. },
  15407. StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
  15408. var _ = this;
  15409. _.$this = t0;
  15410. _.url = t1;
  15411. _.baseImporter = t2;
  15412. _.baseUrl = t3;
  15413. _.forImport = t4;
  15414. },
  15415. StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1, t2, t3) {
  15416. var _ = this;
  15417. _.$this = t0;
  15418. _.importer = t1;
  15419. _.canonicalUrl = t2;
  15420. _.resolvedUrl = t3;
  15421. },
  15422. StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
  15423. var _ = this;
  15424. _._stylesheet_graph$_stylesheet = t0;
  15425. _.importer = t1;
  15426. _.canonicalUrl = t2;
  15427. _._upstream = t3;
  15428. _._upstreamImports = t4;
  15429. _._downstream = t5;
  15430. },
  15431. Syntax_forPath: function(path) {
  15432. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  15433. case ".sass":
  15434. return C.Syntax_Sass;
  15435. case ".css":
  15436. return C.Syntax_CSS;
  15437. default:
  15438. return C.Syntax_SCSS;
  15439. }
  15440. },
  15441. Syntax: function Syntax(t0) {
  15442. this._syntax$_name = t0;
  15443. },
  15444. CallableDeclaration0: function CallableDeclaration0() {
  15445. },
  15446. FunctionRule$0: function($name, $arguments, children, span, comment) {
  15447. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  15448. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  15449. return new M.FunctionRule0($name, $arguments, span, t1, t2);
  15450. },
  15451. FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4) {
  15452. var _ = this;
  15453. _.name = t0;
  15454. _.$arguments = t1;
  15455. _.span = t2;
  15456. _.children = t3;
  15457. _.hasDeclarations = t4;
  15458. },
  15459. Importer0: function Importer0() {
  15460. },
  15461. SupportsNegation0: function SupportsNegation0(t0, t1) {
  15462. this.condition = t0;
  15463. this.span = t1;
  15464. },
  15465. ParentSelector0: function ParentSelector0(t0) {
  15466. this.suffix = t0;
  15467. },
  15468. ParentStatement0: function ParentStatement0() {
  15469. },
  15470. ParentStatement_closure0: function ParentStatement_closure0() {
  15471. },
  15472. ParentStatement__closure0: function ParentStatement__closure0() {
  15473. },
  15474. SimpleSelector0: function SimpleSelector0() {
  15475. },
  15476. Syntax_forPath0: function(path) {
  15477. switch (X.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1]) {
  15478. case ".sass":
  15479. return C.Syntax_Sass0;
  15480. case ".css":
  15481. return C.Syntax_CSS0;
  15482. default:
  15483. return C.Syntax_SCSS0;
  15484. }
  15485. },
  15486. Syntax0: function Syntax0(t0) {
  15487. this._syntax0$_name = t0;
  15488. }
  15489. },
  15490. D = {
  15491. fs: function() {
  15492. var t1 = $._fs;
  15493. return t1 == null ? $._fs = self.fs : t1;
  15494. },
  15495. FS: function FS() {
  15496. },
  15497. FSConstants: function FSConstants() {
  15498. },
  15499. FSWatcher: function FSWatcher() {
  15500. },
  15501. ReadStream: function ReadStream() {
  15502. },
  15503. ReadStreamOptions: function ReadStreamOptions() {
  15504. },
  15505. WriteStream: function WriteStream() {
  15506. },
  15507. WriteStreamOptions: function WriteStreamOptions() {
  15508. },
  15509. Stats: function Stats() {
  15510. },
  15511. StreamModule: function StreamModule() {
  15512. },
  15513. Readable: function Readable() {
  15514. },
  15515. Writable: function Writable() {
  15516. },
  15517. Duplex: function Duplex() {
  15518. },
  15519. Transform: function Transform() {
  15520. },
  15521. WritableOptions: function WritableOptions() {
  15522. },
  15523. ReadableOptions: function ReadableOptions() {
  15524. },
  15525. ListExpression$: function(contents, separator, brackets, span) {
  15526. var t1 = P.List_List$unmodifiable(contents, type$.legacy_Expression);
  15527. return new D.ListExpression(t1, separator, brackets, span == null ? B.spanForList(t1) : span);
  15528. },
  15529. ListExpression: function ListExpression(t0, t1, t2, t3) {
  15530. var _ = this;
  15531. _.contents = t0;
  15532. _.separator = t1;
  15533. _.hasBrackets = t2;
  15534. _.span = t3;
  15535. },
  15536. ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
  15537. this.$this = t0;
  15538. },
  15539. StringExpression: function StringExpression(t0, t1) {
  15540. this.text = t0;
  15541. this.hasQuotes = t1;
  15542. },
  15543. ErrorRule: function ErrorRule(t0, t1) {
  15544. this.expression = t0;
  15545. this.span = t1;
  15546. },
  15547. SelectorList$: function(components) {
  15548. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelector);
  15549. if (t1.length === 0)
  15550. H.throwExpression(P.ArgumentError$("components may not be empty."));
  15551. return new D.SelectorList(t1);
  15552. },
  15553. SelectorList_SelectorList$parse: function(contents, allowParent, allowPlaceholder, logger) {
  15554. return T.SelectorParser$(contents, allowParent, allowPlaceholder, logger, null).parse$0();
  15555. },
  15556. SelectorList: function SelectorList(t0) {
  15557. this.components = t0;
  15558. },
  15559. SelectorList_isInvisible_closure: function SelectorList_isInvisible_closure() {
  15560. },
  15561. SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
  15562. },
  15563. SelectorList_asSassList__closure: function SelectorList_asSassList__closure() {
  15564. },
  15565. SelectorList_unify_closure: function SelectorList_unify_closure(t0) {
  15566. this.other = t0;
  15567. },
  15568. SelectorList_unify__closure: function SelectorList_unify__closure(t0) {
  15569. this.complex1 = t0;
  15570. },
  15571. SelectorList_unify___closure: function SelectorList_unify___closure() {
  15572. },
  15573. SelectorList_resolveParentSelectors_closure: function SelectorList_resolveParentSelectors_closure(t0, t1, t2) {
  15574. this.$this = t0;
  15575. this.implicitParent = t1;
  15576. this.parent = t2;
  15577. },
  15578. SelectorList_resolveParentSelectors__closure: function SelectorList_resolveParentSelectors__closure(t0) {
  15579. this.complex = t0;
  15580. },
  15581. SelectorList_resolveParentSelectors__closure0: function SelectorList_resolveParentSelectors__closure0(t0) {
  15582. this._box_0 = t0;
  15583. },
  15584. SelectorList__complexContainsParentSelector_closure: function SelectorList__complexContainsParentSelector_closure() {
  15585. },
  15586. SelectorList__complexContainsParentSelector__closure: function SelectorList__complexContainsParentSelector__closure() {
  15587. },
  15588. SelectorList__resolveParentSelectorsCompound_closure: function SelectorList__resolveParentSelectorsCompound_closure() {
  15589. },
  15590. SelectorList__resolveParentSelectorsCompound_closure0: function SelectorList__resolveParentSelectorsCompound_closure0(t0) {
  15591. this.parent = t0;
  15592. },
  15593. SelectorList__resolveParentSelectorsCompound_closure1: function SelectorList__resolveParentSelectorsCompound_closure1(t0, t1) {
  15594. this.compound = t0;
  15595. this.resolvedMembers = t1;
  15596. },
  15597. PseudoSelector$: function($name, argument, element, selector) {
  15598. var t1 = !element,
  15599. t2 = t1 && !D.PseudoSelector__isFakePseudoElement($name);
  15600. return new D.PseudoSelector($name, B.unvendor($name), t2, t1, argument, selector);
  15601. },
  15602. PseudoSelector__isFakePseudoElement: function($name) {
  15603. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  15604. case 97:
  15605. case 65:
  15606. return B.equalsIgnoreCase($name, "after");
  15607. case 98:
  15608. case 66:
  15609. return B.equalsIgnoreCase($name, "before");
  15610. case 102:
  15611. case 70:
  15612. return B.equalsIgnoreCase($name, "first-line") || B.equalsIgnoreCase($name, "first-letter");
  15613. default:
  15614. return false;
  15615. }
  15616. },
  15617. PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5) {
  15618. var _ = this;
  15619. _.name = t0;
  15620. _.normalizedName = t1;
  15621. _.isClass = t2;
  15622. _.isSyntacticClass = t3;
  15623. _.argument = t4;
  15624. _.selector = t5;
  15625. _._pseudo$_maxSpecificity = _._pseudo$_minSpecificity = null;
  15626. },
  15627. QualifiedName: function QualifiedName(t0, t1) {
  15628. this.name = t0;
  15629. this.namespace = t1;
  15630. },
  15631. compileStylesheet: function(options, graph, source, destination, ifModified) {
  15632. return D.compileStylesheet$body(options, graph, source, destination, ifModified);
  15633. },
  15634. compileStylesheet$body: function(options, graph, source, destination, ifModified) {
  15635. var $async$goto = 0,
  15636. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  15637. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], syntax, result, importCache, error, exception, t1, t2, t3, t4, t5, t6, t7, result0, stylesheet, t0, css, buffer, sourceName, destinationName, importer, $async$exception;
  15638. var $async$compileStylesheet = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15639. if ($async$errorCode === 1) {
  15640. $async$currentError = $async$result;
  15641. $async$goto = $async$handler;
  15642. }
  15643. while (true)
  15644. switch ($async$goto) {
  15645. case 0:
  15646. // Function start
  15647. importer = new F.FilesystemImporter(D.absolute("."));
  15648. if (ifModified)
  15649. try {
  15650. if (source != null && destination != null && !graph.modifiedSince$3($.$get$context().toUri$1(source), B.modificationTime(destination), importer)) {
  15651. // goto return
  15652. $async$goto = 1;
  15653. break;
  15654. }
  15655. } catch (exception) {
  15656. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  15657. throw exception;
  15658. }
  15659. syntax = null;
  15660. if (H._asBoolS(options._ifParsed$1("indented")) === true)
  15661. syntax = C.Syntax_Sass;
  15662. else if (source != null)
  15663. syntax = M.Syntax_forPath(source);
  15664. else
  15665. syntax = C.Syntax_SCSS;
  15666. result = null;
  15667. $async$handler = 4;
  15668. t1 = options._options;
  15669. $async$goto = H._asBoolS(t1.$index(0, "async")) ? 7 : 9;
  15670. break;
  15671. case 7:
  15672. // then
  15673. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncImporter);
  15674. t3 = type$.legacy_List_legacy_String._as(t1.$index(0, "load-path"));
  15675. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  15676. t3 = O.AsyncImportCache__toImporters(t2, t3, null);
  15677. t2 = t4 == null ? C.StderrLogger_false : t4;
  15678. t4 = type$.legacy_Uri;
  15679. importCache = new O.AsyncImportCache(t3, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_ImporterResult_2));
  15680. $async$goto = source == null ? 10 : 12;
  15681. break;
  15682. case 10:
  15683. // then
  15684. $async$goto = 13;
  15685. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  15686. case 13:
  15687. // returning from await.
  15688. t2 = $async$result;
  15689. t3 = syntax;
  15690. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  15691. t5 = D.absolute(".");
  15692. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  15693. t7 = options.get$emitSourceMap();
  15694. $async$goto = 14;
  15695. return P._asyncAwait(X.compileStringAsync(t2, H._asBoolS(t1.$index(0, "charset")), importCache, new F.FilesystemImporter(t5), t4, t7, t6, t3), $async$compileStylesheet);
  15696. case 14:
  15697. // returning from await.
  15698. result0 = $async$result;
  15699. // goto join
  15700. $async$goto = 11;
  15701. break;
  15702. case 12:
  15703. // else
  15704. t2 = syntax;
  15705. t3 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  15706. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  15707. t5 = options.get$emitSourceMap();
  15708. $async$goto = 15;
  15709. return P._asyncAwait(X.compileAsync(source, H._asBoolS(t1.$index(0, "charset")), importCache, t3, t5, t4, t2), $async$compileStylesheet);
  15710. case 15:
  15711. // returning from await.
  15712. result0 = $async$result;
  15713. case 11:
  15714. // join
  15715. result = result0;
  15716. // goto join
  15717. $async$goto = 8;
  15718. break;
  15719. case 9:
  15720. // else
  15721. $async$goto = source == null ? 16 : 18;
  15722. break;
  15723. case 16:
  15724. // then
  15725. $async$goto = 19;
  15726. return P._asyncAwait(B.readStdin(), $async$compileStylesheet);
  15727. case 19:
  15728. // returning from await.
  15729. t2 = $async$result;
  15730. t3 = syntax;
  15731. t4 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  15732. t5 = D.absolute(".");
  15733. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  15734. t7 = options.get$emitSourceMap();
  15735. t1 = H._asBoolS(t1.$index(0, "charset"));
  15736. stylesheet = V.Stylesheet_Stylesheet$parse(t2, t3 == null ? C.Syntax_SCSS : t3, t4, null);
  15737. result0 = U._compileStylesheet(stylesheet, t4, graph.importCache, null, new F.FilesystemImporter(t5), null, t6, true, null, null, t7, t1);
  15738. // goto join
  15739. $async$goto = 17;
  15740. break;
  15741. case 18:
  15742. // else
  15743. t2 = syntax;
  15744. t3 = H._asBoolS(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new S.StderrLogger(options.get$color());
  15745. importCache = graph.importCache;
  15746. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0;
  15747. t5 = options.get$emitSourceMap();
  15748. t1 = H._asBoolS(t1.$index(0, "charset"));
  15749. t6 = t2 == null || t2 === M.Syntax_forPath(source);
  15750. if (t6) {
  15751. t2 = D.absolute(".");
  15752. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  15753. t6 = $.$get$context();
  15754. t7 = F._realCasePath(D.absolute(t6.normalize$1(source)));
  15755. t0 = t7;
  15756. t7 = t6;
  15757. t6 = t0;
  15758. } else {
  15759. t6 = $.$get$context();
  15760. t7 = t6.canonicalize$1(source);
  15761. t0 = t7;
  15762. t7 = t6;
  15763. t6 = t0;
  15764. }
  15765. stylesheet = importCache.importCanonical$3(new F.FilesystemImporter(t2), t7.toUri$1(t6), t7.toUri$1(source));
  15766. } else {
  15767. t6 = B.readFile(source);
  15768. if (t2 == null)
  15769. t2 = M.Syntax_forPath(source);
  15770. stylesheet = V.Stylesheet_Stylesheet$parse(t6, t2, t3, $.$get$context().toUri$1(source));
  15771. }
  15772. result0 = U._compileStylesheet(stylesheet, t3, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, t4, true, null, null, t5, t1);
  15773. case 17:
  15774. // join
  15775. result = result0;
  15776. case 8:
  15777. // join
  15778. $async$handler = 2;
  15779. // goto after finally
  15780. $async$goto = 6;
  15781. break;
  15782. case 4:
  15783. // catch
  15784. $async$handler = 3;
  15785. $async$exception = $async$currentError;
  15786. t1 = H.unwrapException($async$exception);
  15787. if (t1 instanceof E.SassException) {
  15788. error = t1;
  15789. if (options.get$emitErrorCss())
  15790. if (destination == null)
  15791. P.print(error.toCssString$0());
  15792. else {
  15793. B.ensureDir($.$get$context().dirname$1(destination));
  15794. B.writeFile(destination, error.toCssString$0() + "\n");
  15795. }
  15796. throw $async$exception;
  15797. } else
  15798. throw $async$exception;
  15799. // goto after finally
  15800. $async$goto = 6;
  15801. break;
  15802. case 3:
  15803. // uncaught
  15804. // goto rethrow
  15805. $async$goto = 2;
  15806. break;
  15807. case 6:
  15808. // after finally
  15809. css = result._serialize.css + D._writeSourceMap(options, result._serialize.sourceMap, destination);
  15810. if (destination == null) {
  15811. if (css.length !== 0)
  15812. P.print(css);
  15813. } else {
  15814. B.ensureDir($.$get$context().dirname$1(destination));
  15815. B.writeFile(destination, css + "\n");
  15816. }
  15817. t1 = options._options;
  15818. if (!H._asBoolS(t1.$index(0, "quiet")))
  15819. t1 = !H._asBoolS(t1.$index(0, "update")) && !H._asBoolS(t1.$index(0, "watch"));
  15820. else
  15821. t1 = true;
  15822. if (t1) {
  15823. // goto return
  15824. $async$goto = 1;
  15825. break;
  15826. }
  15827. buffer = new P.StringBuffer("");
  15828. t1 = options.get$color() ? buffer._contents = "\x1b[32m" : "";
  15829. if (source == null)
  15830. sourceName = "stdin";
  15831. else {
  15832. t2 = $.$get$context();
  15833. sourceName = t2.prettyUri$1(t2.toUri$1(source));
  15834. }
  15835. t2 = $.$get$context();
  15836. destinationName = t2.prettyUri$1(t2.toUri$1(destination));
  15837. t1 += "Compiled " + H.S(sourceName) + " to " + H.S(destinationName) + ".";
  15838. buffer._contents = t1;
  15839. if (options.get$color())
  15840. buffer._contents = t1 + "\x1b[0m";
  15841. P.print(buffer);
  15842. case 1:
  15843. // return
  15844. return P._asyncReturn($async$returnValue, $async$completer);
  15845. case 2:
  15846. // rethrow
  15847. return P._asyncRethrow($async$currentError, $async$completer);
  15848. }
  15849. });
  15850. return P._asyncStartSync($async$compileStylesheet, $async$completer);
  15851. },
  15852. _writeSourceMap: function(options, sourceMap, destination) {
  15853. var t1, sourceMapText, url, sourceMapPath, t2;
  15854. if (sourceMap == null)
  15855. return "";
  15856. if (destination != null) {
  15857. t1 = $.$get$context();
  15858. sourceMap.targetUrl = t1.toUri$1(X.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0);
  15859. }
  15860. B.mapInPlace(sourceMap.urls, new D._writeSourceMap_closure(options, destination));
  15861. t1 = options._options;
  15862. sourceMapText = C.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(H._asBoolS(t1.$index(0, "embed-sources"))), null);
  15863. if (H._asBoolS(t1.$index(0, "embed-source-map")))
  15864. url = P.Uri_Uri$dataFromString(sourceMapText, C.C_Utf8Codec, "application/json");
  15865. else {
  15866. sourceMapPath = J.$add$ansx(destination, ".map");
  15867. t2 = $.$get$context();
  15868. B.ensureDir(t2.dirname$1(sourceMapPath));
  15869. B.writeFile(sourceMapPath, sourceMapText);
  15870. url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
  15871. }
  15872. t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? C.OutputStyle_compressed : C.OutputStyle_expanded0) === C.OutputStyle_compressed ? "" : "\n\n";
  15873. return t1 + ("/*# sourceMappingURL=" + url.toString$0(0) + " */");
  15874. },
  15875. _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
  15876. this.options = t0;
  15877. this.destination = t1;
  15878. },
  15879. _function3: function($name, $arguments, callback) {
  15880. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:list");
  15881. },
  15882. closure43: function closure43() {
  15883. },
  15884. closure42: function closure42() {
  15885. },
  15886. closure41: function closure41() {
  15887. },
  15888. closure40: function closure40() {
  15889. },
  15890. closure39: function closure39() {
  15891. },
  15892. closure38: function closure38() {
  15893. },
  15894. _closure5: function _closure5() {
  15895. },
  15896. _closure6: function _closure6(t0) {
  15897. this._box_0 = t0;
  15898. },
  15899. _closure7: function _closure7(t0) {
  15900. this._box_0 = t0;
  15901. },
  15902. closure37: function closure37() {
  15903. },
  15904. closure35: function closure35() {
  15905. },
  15906. closure36: function closure36() {
  15907. },
  15908. _codepointForIndex: function(index, lengthInCodepoints, allowNegative) {
  15909. var result;
  15910. if (index === 0)
  15911. return 0;
  15912. if (index > 0)
  15913. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  15914. result = lengthInCodepoints + index;
  15915. if (result < 0 && !allowNegative)
  15916. return 0;
  15917. return result;
  15918. },
  15919. _function: function($name, $arguments, callback) {
  15920. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:string");
  15921. },
  15922. closure8: function closure8() {
  15923. },
  15924. closure7: function closure7() {
  15925. },
  15926. closure3: function closure3() {
  15927. },
  15928. closure2: function closure2() {
  15929. },
  15930. closure1: function closure1() {
  15931. },
  15932. closure0: function closure0() {
  15933. },
  15934. closure6: function closure6() {
  15935. },
  15936. closure5: function closure5() {
  15937. },
  15938. closure4: function closure4() {
  15939. },
  15940. SourceMapBuffer0: function SourceMapBuffer0(t0, t1, t2) {
  15941. var _ = this;
  15942. _._source_map_buffer0$_buffer = t0;
  15943. _._source_map_buffer0$_entries = t1;
  15944. _._sourceFiles = t2;
  15945. _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
  15946. _._source_map_buffer0$_inSpan = false;
  15947. },
  15948. SourceMapBuffer__addEntry_closure: function SourceMapBuffer__addEntry_closure(t0) {
  15949. this.source = t0;
  15950. },
  15951. SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
  15952. this._box_0 = t0;
  15953. this.prefixLength = t1;
  15954. },
  15955. SassArgumentList$: function(contents, keywords, separator) {
  15956. var t1 = type$.legacy_Value;
  15957. t1 = new D.SassArgumentList(H.ConstantMap_ConstantMap$from(keywords, type$.legacy_String, t1), P.List_List$unmodifiable(contents, t1), separator, false);
  15958. t1.SassList$3$brackets(contents, separator, false);
  15959. return t1;
  15960. },
  15961. SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
  15962. var _ = this;
  15963. _._keywords = t0;
  15964. _._wereKeywordsAccessed = false;
  15965. _._list$_contents = t1;
  15966. _.separator = t2;
  15967. _.hasBrackets = t3;
  15968. },
  15969. SassList$: function(contents, separator, brackets) {
  15970. var t1 = new D.SassList(P.List_List$unmodifiable(contents, type$.legacy_Value), separator, brackets);
  15971. t1.SassList$3$brackets(contents, separator, brackets);
  15972. return t1;
  15973. },
  15974. SassList: function SassList(t0, t1, t2) {
  15975. this._list$_contents = t0;
  15976. this.separator = t1;
  15977. this.hasBrackets = t2;
  15978. },
  15979. SassList_isBlank_closure: function SassList_isBlank_closure() {
  15980. },
  15981. ListSeparator: function ListSeparator(t0) {
  15982. this._list$_name = t0;
  15983. },
  15984. SassString$: function(text, quotes) {
  15985. return new D.SassString(text, quotes);
  15986. },
  15987. SassString: function SassString(t0, t1) {
  15988. this.text = t0;
  15989. this.hasQuotes = t1;
  15990. this._sassLength = null;
  15991. },
  15992. RecursiveStatementVisitor: function RecursiveStatementVisitor() {
  15993. },
  15994. SourceLocationMixin: function SourceLocationMixin() {
  15995. },
  15996. SassArgumentList$0: function(contents, keywords, separator) {
  15997. var t1 = type$.legacy_Value_2;
  15998. t1 = new D.SassArgumentList0(H.ConstantMap_ConstantMap$from(keywords, type$.legacy_String, t1), P.List_List$unmodifiable(contents, t1), separator, false);
  15999. t1.SassList$3$brackets0(contents, separator, false);
  16000. return t1;
  16001. },
  16002. SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
  16003. var _ = this;
  16004. _._argument_list$_keywords = t0;
  16005. _._argument_list$_wereKeywordsAccessed = false;
  16006. _._list1$_contents = t1;
  16007. _.separator = t2;
  16008. _.hasBrackets = t3;
  16009. },
  16010. ErrorRule0: function ErrorRule0(t0, t1) {
  16011. this.expression = t0;
  16012. this.span = t1;
  16013. },
  16014. Exports: function Exports() {
  16015. },
  16016. ListExpression$0: function(contents, separator, brackets, span) {
  16017. var t1 = P.List_List$unmodifiable(contents, type$.legacy_Expression_2);
  16018. return new D.ListExpression0(t1, separator, brackets, span == null ? B.spanForList0(t1) : span);
  16019. },
  16020. ListExpression0: function ListExpression0(t0, t1, t2, t3) {
  16021. var _ = this;
  16022. _.contents = t0;
  16023. _.separator = t1;
  16024. _.hasBrackets = t2;
  16025. _.span = t3;
  16026. },
  16027. ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
  16028. this.$this = t0;
  16029. },
  16030. _function10: function($name, $arguments, callback) {
  16031. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:list");
  16032. },
  16033. closure158: function closure158() {
  16034. },
  16035. closure157: function closure157() {
  16036. },
  16037. closure156: function closure156() {
  16038. },
  16039. closure155: function closure155() {
  16040. },
  16041. closure154: function closure154() {
  16042. },
  16043. closure153: function closure153() {
  16044. },
  16045. _closure20: function _closure20() {
  16046. },
  16047. _closure21: function _closure21(t0) {
  16048. this._box_0 = t0;
  16049. },
  16050. _closure22: function _closure22(t0) {
  16051. this._box_0 = t0;
  16052. },
  16053. closure152: function closure152() {
  16054. },
  16055. closure150: function closure150() {
  16056. },
  16057. closure151: function closure151() {
  16058. },
  16059. SelectorList$0: function(components) {
  16060. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelector_2);
  16061. if (t1.length === 0)
  16062. H.throwExpression(P.ArgumentError$("components may not be empty."));
  16063. return new D.SelectorList0(t1);
  16064. },
  16065. SelectorList_SelectorList$parse0: function(contents, allowParent, allowPlaceholder, logger) {
  16066. return T.SelectorParser$0(contents, allowParent, allowPlaceholder, logger, null).parse$0();
  16067. },
  16068. SelectorList0: function SelectorList0(t0) {
  16069. this.components = t0;
  16070. },
  16071. SelectorList_isInvisible_closure0: function SelectorList_isInvisible_closure0() {
  16072. },
  16073. SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
  16074. },
  16075. SelectorList_asSassList__closure0: function SelectorList_asSassList__closure0() {
  16076. },
  16077. SelectorList_unify_closure0: function SelectorList_unify_closure0(t0) {
  16078. this.other = t0;
  16079. },
  16080. SelectorList_unify__closure0: function SelectorList_unify__closure0(t0) {
  16081. this.complex1 = t0;
  16082. },
  16083. SelectorList_unify___closure0: function SelectorList_unify___closure0() {
  16084. },
  16085. SelectorList_resolveParentSelectors_closure0: function SelectorList_resolveParentSelectors_closure0(t0, t1, t2) {
  16086. this.$this = t0;
  16087. this.implicitParent = t1;
  16088. this.parent = t2;
  16089. },
  16090. SelectorList_resolveParentSelectors__closure1: function SelectorList_resolveParentSelectors__closure1(t0) {
  16091. this.complex = t0;
  16092. },
  16093. SelectorList_resolveParentSelectors__closure2: function SelectorList_resolveParentSelectors__closure2(t0) {
  16094. this._box_0 = t0;
  16095. },
  16096. SelectorList__complexContainsParentSelector_closure0: function SelectorList__complexContainsParentSelector_closure0() {
  16097. },
  16098. SelectorList__complexContainsParentSelector__closure0: function SelectorList__complexContainsParentSelector__closure0() {
  16099. },
  16100. SelectorList__resolveParentSelectorsCompound_closure2: function SelectorList__resolveParentSelectorsCompound_closure2() {
  16101. },
  16102. SelectorList__resolveParentSelectorsCompound_closure3: function SelectorList__resolveParentSelectorsCompound_closure3(t0) {
  16103. this.parent = t0;
  16104. },
  16105. SelectorList__resolveParentSelectorsCompound_closure4: function SelectorList__resolveParentSelectorsCompound_closure4(t0, t1) {
  16106. this.compound = t0;
  16107. this.resolvedMembers = t1;
  16108. },
  16109. _NodeSassList: function _NodeSassList() {
  16110. },
  16111. closure246: function closure246() {
  16112. },
  16113. _closure33: function _closure33() {
  16114. },
  16115. closure247: function closure247() {
  16116. },
  16117. closure248: function closure248() {
  16118. },
  16119. closure249: function closure249() {
  16120. },
  16121. closure250: function closure250() {
  16122. },
  16123. closure251: function closure251() {
  16124. },
  16125. closure252: function closure252() {
  16126. },
  16127. SassList$0: function(contents, separator, brackets) {
  16128. var t1 = new D.SassList0(P.List_List$unmodifiable(contents, type$.legacy_Value_2), separator, brackets);
  16129. t1.SassList$3$brackets0(contents, separator, brackets);
  16130. return t1;
  16131. },
  16132. SassList0: function SassList0(t0, t1, t2) {
  16133. this._list1$_contents = t0;
  16134. this.separator = t1;
  16135. this.hasBrackets = t2;
  16136. },
  16137. SassList_isBlank_closure0: function SassList_isBlank_closure0() {
  16138. },
  16139. ListSeparator0: function ListSeparator0(t0) {
  16140. this._list1$_name = t0;
  16141. },
  16142. PseudoSelector$0: function($name, argument, element, selector) {
  16143. var t1 = !element,
  16144. t2 = t1 && !D.PseudoSelector__isFakePseudoElement0($name);
  16145. return new D.PseudoSelector0($name, B.unvendor0($name), t2, t1, argument, selector);
  16146. },
  16147. PseudoSelector__isFakePseudoElement0: function($name) {
  16148. switch (C.JSString_methods._codeUnitAt$1($name, 0)) {
  16149. case 97:
  16150. case 65:
  16151. return B.equalsIgnoreCase0($name, "after");
  16152. case 98:
  16153. case 66:
  16154. return B.equalsIgnoreCase0($name, "before");
  16155. case 102:
  16156. case 70:
  16157. return B.equalsIgnoreCase0($name, "first-line") || B.equalsIgnoreCase0($name, "first-letter");
  16158. default:
  16159. return false;
  16160. }
  16161. },
  16162. PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5) {
  16163. var _ = this;
  16164. _.name = t0;
  16165. _.normalizedName = t1;
  16166. _.isClass = t2;
  16167. _.isSyntacticClass = t3;
  16168. _.argument = t4;
  16169. _.selector = t5;
  16170. _._pseudo0$_maxSpecificity = _._pseudo0$_minSpecificity = null;
  16171. },
  16172. QualifiedName0: function QualifiedName0(t0, t1) {
  16173. this.name = t0;
  16174. this.namespace = t1;
  16175. },
  16176. SourceMapBuffer: function SourceMapBuffer(t0, t1, t2) {
  16177. var _ = this;
  16178. _._source_map_buffer$_buffer = t0;
  16179. _._entries = t1;
  16180. _._source_map_buffer$_sourceFiles = t2;
  16181. _._column = _._line = 0;
  16182. _._inSpan = false;
  16183. },
  16184. SourceMapBuffer__addEntry_closure0: function SourceMapBuffer__addEntry_closure0(t0) {
  16185. this.source = t0;
  16186. },
  16187. SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
  16188. this._box_0 = t0;
  16189. this.prefixLength = t1;
  16190. },
  16191. StringExpression0: function StringExpression0(t0, t1) {
  16192. this.text = t0;
  16193. this.hasQuotes = t1;
  16194. },
  16195. _codepointForIndex0: function(index, lengthInCodepoints, allowNegative) {
  16196. var result;
  16197. if (index === 0)
  16198. return 0;
  16199. if (index > 0)
  16200. return Math.min(index - 1, H.checkNum(lengthInCodepoints));
  16201. result = lengthInCodepoints + index;
  16202. if (result < 0 && !allowNegative)
  16203. return 0;
  16204. return result;
  16205. },
  16206. _function6: function($name, $arguments, callback) {
  16207. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:string");
  16208. },
  16209. closure123: function closure123() {
  16210. },
  16211. closure122: function closure122() {
  16212. },
  16213. closure118: function closure118() {
  16214. },
  16215. closure117: function closure117() {
  16216. },
  16217. closure116: function closure116() {
  16218. },
  16219. closure115: function closure115() {
  16220. },
  16221. closure121: function closure121() {
  16222. },
  16223. closure120: function closure120() {
  16224. },
  16225. closure119: function closure119() {
  16226. },
  16227. _NodeSassString: function _NodeSassString() {
  16228. },
  16229. closure228: function closure228() {
  16230. },
  16231. closure229: function closure229() {
  16232. },
  16233. closure230: function closure230() {
  16234. },
  16235. closure231: function closure231() {
  16236. },
  16237. SassString$0: function(text, quotes) {
  16238. return new D.SassString0(text, quotes);
  16239. },
  16240. SassString0: function SassString0(t0, t1) {
  16241. this.text = t0;
  16242. this.hasQuotes = t1;
  16243. this._string$_sassLength = null;
  16244. },
  16245. current: function() {
  16246. var exception, t1, path, lastIndex, uri = null;
  16247. try {
  16248. uri = P.Uri_base();
  16249. } catch (exception) {
  16250. if (type$.legacy_Exception._is(H.unwrapException(exception))) {
  16251. t1 = $._current;
  16252. if (t1 != null)
  16253. return t1;
  16254. throw exception;
  16255. } else
  16256. throw exception;
  16257. }
  16258. if (J.$eq$(uri, $._currentUriBase))
  16259. return $._current;
  16260. $._currentUriBase = uri;
  16261. if ($.$get$Style_platform() == $.$get$Style_url())
  16262. t1 = $._current = uri.resolve$1(".").toString$0(0);
  16263. else {
  16264. path = uri.toFilePath$0();
  16265. lastIndex = path.length - 1;
  16266. t1 = $._current = lastIndex === 0 ? path : C.JSString_methods.substring$2(path, 0, lastIndex);
  16267. }
  16268. return t1;
  16269. },
  16270. absolute: function(part1) {
  16271. var _null = null;
  16272. return $.$get$context().absolute$7(part1, _null, _null, _null, _null, _null, _null);
  16273. },
  16274. dirname: function(path) {
  16275. return $.$get$context().dirname$1(path);
  16276. },
  16277. join: function(part1, part2, part3) {
  16278. var _null = null;
  16279. return $.$get$context().join$8(0, part1, part2, part3, _null, _null, _null, _null, _null);
  16280. }
  16281. },
  16282. E = {Promise: function Promise() {
  16283. }, Date: function Date() {
  16284. }, JsError: function JsError() {
  16285. }, Atomics: function Atomics() {
  16286. }, PosixStyle: function PosixStyle(t0, t1, t2) {
  16287. this.separatorPattern = t0;
  16288. this.needsSeparatorPattern = t1;
  16289. this.rootPattern = t2;
  16290. }, UserDefinedCallable: function UserDefinedCallable(t0, t1, t2) {
  16291. this.declaration = t0;
  16292. this.environment = t1;
  16293. this.$ti = t2;
  16294. },
  16295. SassException$: function(message, span) {
  16296. return new E.SassException(message, span);
  16297. },
  16298. MultiSpanSassException$: function(message, span, primaryLabel, secondarySpans) {
  16299. return new E.MultiSpanSassException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  16300. },
  16301. SassRuntimeException$: function(message, span, trace) {
  16302. return new E.SassRuntimeException(trace, message, span);
  16303. },
  16304. MultiSpanSassRuntimeException$: function(message, span, primaryLabel, secondarySpans, trace) {
  16305. return new E.MultiSpanSassRuntimeException(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  16306. },
  16307. SassFormatException$: function(message, span) {
  16308. return new E.SassFormatException(message, span);
  16309. },
  16310. SassScriptException$: function(message) {
  16311. return new E.SassScriptException(message);
  16312. },
  16313. MultiSpanSassScriptException$: function(message, primaryLabel, secondarySpans) {
  16314. return new E.MultiSpanSassScriptException(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message);
  16315. },
  16316. SassException: function SassException(t0, t1) {
  16317. this._span_exception$_message = t0;
  16318. this._span = t1;
  16319. },
  16320. MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3) {
  16321. var _ = this;
  16322. _.primaryLabel = t0;
  16323. _.secondarySpans = t1;
  16324. _._span_exception$_message = t2;
  16325. _._span = t3;
  16326. },
  16327. SassRuntimeException: function SassRuntimeException(t0, t1, t2) {
  16328. this.trace = t0;
  16329. this._span_exception$_message = t1;
  16330. this._span = t2;
  16331. },
  16332. MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4) {
  16333. var _ = this;
  16334. _.trace = t0;
  16335. _.primaryLabel = t1;
  16336. _.secondarySpans = t2;
  16337. _._span_exception$_message = t3;
  16338. _._span = t4;
  16339. },
  16340. SassFormatException: function SassFormatException(t0, t1) {
  16341. this._span_exception$_message = t0;
  16342. this._span = t1;
  16343. },
  16344. SassScriptException: function SassScriptException(t0) {
  16345. this.message = t0;
  16346. },
  16347. MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
  16348. this.primaryLabel = t0;
  16349. this.secondarySpans = t1;
  16350. this.message = t2;
  16351. },
  16352. ImporterResult: function ImporterResult(t0, t1, t2) {
  16353. this.contents = t0;
  16354. this._sourceMapUrl = t1;
  16355. this.syntax = t2;
  16356. },
  16357. KeyframeSelectorParser$: function(contents, logger) {
  16358. var t1 = S.SpanScanner$(contents, null);
  16359. return new E.KeyframeSelectorParser(t1, logger);
  16360. },
  16361. KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
  16362. this.scanner = t0;
  16363. this.logger = t1;
  16364. },
  16365. KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
  16366. this.$this = t0;
  16367. },
  16368. _EvaluateVisitor$0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  16369. var t1 = type$.legacy_String,
  16370. t2 = type$.legacy_Uri,
  16371. t3 = type$.legacy_Module_legacy_AsyncCallable,
  16372. t4 = type$.legacy_AstNode,
  16373. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode),
  16374. t6 = logger == null ? C.StderrLogger_false : logger;
  16375. t5 = new E._EvaluateVisitor0(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AsyncCallable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, Q.AsyncEnvironment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  16376. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0(functions, importCache, logger, nodeImporter, sourceMap);
  16377. return t5;
  16378. },
  16379. _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  16380. var _ = this;
  16381. _._async_evaluate$_importCache = t0;
  16382. _._async_evaluate$_nodeImporter = t1;
  16383. _._async_evaluate$_builtInFunctions = t2;
  16384. _._async_evaluate$_builtInModules = t3;
  16385. _._async_evaluate$_modules = t4;
  16386. _._async_evaluate$_moduleNodes = t5;
  16387. _._async_evaluate$_logger = t6;
  16388. _._async_evaluate$_sourceMap = t7;
  16389. _._async_evaluate$_environment = t8;
  16390. _._async_evaluate$_declarationName = _._async_evaluate$_parent = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRule = null;
  16391. _._async_evaluate$_member = "root stylesheet";
  16392. _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = null;
  16393. _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
  16394. _._async_evaluate$_includedFiles = t9;
  16395. _._async_evaluate$_activeModules = t10;
  16396. _._async_evaluate$_stack = t11;
  16397. _._async_evaluate$_extender = _._async_evaluate$_outOfOrderImports = _._async_evaluate$_endOfImports = _._async_evaluate$_root = _._async_evaluate$_stylesheet = _._async_evaluate$_importer = null;
  16398. _._async_evaluate$_configuration = t12;
  16399. },
  16400. _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
  16401. this.$this = t0;
  16402. },
  16403. _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
  16404. this.$this = t0;
  16405. },
  16406. _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
  16407. this.$this = t0;
  16408. },
  16409. _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
  16410. this.$this = t0;
  16411. },
  16412. _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
  16413. this.$this = t0;
  16414. },
  16415. _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
  16416. this.$this = t0;
  16417. },
  16418. _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
  16419. this.$this = t0;
  16420. },
  16421. _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
  16422. this.$this = t0;
  16423. },
  16424. _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0, t1, t2) {
  16425. this.$this = t0;
  16426. this.name = t1;
  16427. this.module = t2;
  16428. },
  16429. _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
  16430. this.$this = t0;
  16431. },
  16432. _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
  16433. this.$this = t0;
  16434. },
  16435. _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1) {
  16436. this.values = t0;
  16437. this.span = t1;
  16438. },
  16439. _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0) {
  16440. this.$this = t0;
  16441. },
  16442. _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
  16443. this.$this = t0;
  16444. this.node = t1;
  16445. this.importer = t2;
  16446. },
  16447. _EvaluateVisitor__withWarnCallback_closure0: function _EvaluateVisitor__withWarnCallback_closure0(t0) {
  16448. this.$this = t0;
  16449. },
  16450. _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) {
  16451. this.callback = t0;
  16452. this.builtInModule = t1;
  16453. },
  16454. _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
  16455. var _ = this;
  16456. _.$this = t0;
  16457. _.url = t1;
  16458. _.nodeWithSpan = t2;
  16459. _.baseUrl = t3;
  16460. _.namesInErrors = t4;
  16461. _.configuration = t5;
  16462. _.callback = t6;
  16463. },
  16464. _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5) {
  16465. var _ = this;
  16466. _._box_0 = t0;
  16467. _.$this = t1;
  16468. _.importer = t2;
  16469. _.stylesheet = t3;
  16470. _.extender = t4;
  16471. _.configuration = t5;
  16472. },
  16473. _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2() {
  16474. },
  16475. _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3(t0) {
  16476. this.selectors = t0;
  16477. },
  16478. _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4() {
  16479. },
  16480. _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
  16481. this.originalSelectors = t0;
  16482. },
  16483. _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
  16484. },
  16485. _EvaluateVisitor__topologicalModules_visitModule0: function _EvaluateVisitor__topologicalModules_visitModule0(t0, t1) {
  16486. this.seen = t0;
  16487. this.sorted = t1;
  16488. },
  16489. _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
  16490. this.$this = t0;
  16491. this.resolved = t1;
  16492. },
  16493. _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
  16494. this.$this = t0;
  16495. this.node = t1;
  16496. },
  16497. _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
  16498. this.$this = t0;
  16499. this.node = t1;
  16500. },
  16501. _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
  16502. this.$this = t0;
  16503. this.newParent = t1;
  16504. this.node = t2;
  16505. },
  16506. _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
  16507. this.$this = t0;
  16508. this.innerScope = t1;
  16509. },
  16510. _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
  16511. this.$this = t0;
  16512. this.innerScope = t1;
  16513. },
  16514. _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
  16515. this.innerScope = t0;
  16516. this.callback = t1;
  16517. },
  16518. _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
  16519. this.$this = t0;
  16520. this.innerScope = t1;
  16521. },
  16522. _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
  16523. },
  16524. _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
  16525. this.$this = t0;
  16526. this.innerScope = t1;
  16527. },
  16528. _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
  16529. this.$this = t0;
  16530. this.content = t1;
  16531. },
  16532. _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
  16533. this.$this = t0;
  16534. this.node = t1;
  16535. },
  16536. _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
  16537. this.$this = t0;
  16538. this.node = t1;
  16539. this.nodeWithSpan = t2;
  16540. },
  16541. _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
  16542. this.$this = t0;
  16543. this.node = t1;
  16544. this.nodeWithSpan = t2;
  16545. },
  16546. _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
  16547. var _ = this;
  16548. _.$this = t0;
  16549. _.list = t1;
  16550. _.setVariables = t2;
  16551. _.node = t3;
  16552. },
  16553. _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
  16554. this.$this = t0;
  16555. this.setVariables = t1;
  16556. this.node = t2;
  16557. },
  16558. _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
  16559. this.$this = t0;
  16560. },
  16561. _EvaluateVisitor_visitExtendRule_closure0: function _EvaluateVisitor_visitExtendRule_closure0(t0, t1) {
  16562. this.$this = t0;
  16563. this.targetText = t1;
  16564. },
  16565. _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1(t0, t1) {
  16566. this.$this = t0;
  16567. this.node = t1;
  16568. },
  16569. _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
  16570. this.$this = t0;
  16571. this.node = t1;
  16572. },
  16573. _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2() {
  16574. },
  16575. _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
  16576. this.$this = t0;
  16577. this.node = t1;
  16578. },
  16579. _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
  16580. this.$this = t0;
  16581. this.node = t1;
  16582. },
  16583. _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0, t1) {
  16584. this.fromNumber = t0;
  16585. this.toNumber = t1;
  16586. },
  16587. _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0) {
  16588. this.toNumber = t0;
  16589. },
  16590. _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4) {
  16591. var _ = this;
  16592. _._box_0 = t0;
  16593. _.$this = t1;
  16594. _.node = t2;
  16595. _.from = t3;
  16596. _.direction = t4;
  16597. },
  16598. _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
  16599. this.$this = t0;
  16600. },
  16601. _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
  16602. this.$this = t0;
  16603. this.node = t1;
  16604. },
  16605. _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
  16606. this.$this = t0;
  16607. this.node = t1;
  16608. },
  16609. _EvaluateVisitor__assertConfigurationIsEmpty_closure0: function _EvaluateVisitor__assertConfigurationIsEmpty_closure0(t0, t1, t2) {
  16610. this.$this = t0;
  16611. this.only = t1;
  16612. this.nameInError = t2;
  16613. },
  16614. _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0, t1) {
  16615. this._box_0 = t0;
  16616. this.$this = t1;
  16617. },
  16618. _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0) {
  16619. this.$this = t0;
  16620. },
  16621. _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
  16622. this.$this = t0;
  16623. this.$import = t1;
  16624. },
  16625. _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0(t0, t1, t2, t3, t4) {
  16626. var _ = this;
  16627. _._box_0 = t0;
  16628. _.$this = t1;
  16629. _.importer = t2;
  16630. _.stylesheet = t3;
  16631. _.environment = t4;
  16632. },
  16633. _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
  16634. this.$this = t0;
  16635. this.node = t1;
  16636. },
  16637. _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
  16638. this.node = t0;
  16639. },
  16640. _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0, t1, t2, t3) {
  16641. var _ = this;
  16642. _.$this = t0;
  16643. _.contentCallable = t1;
  16644. _.mixin = t2;
  16645. _.nodeWithSpan = t3;
  16646. },
  16647. _EvaluateVisitor_visitIncludeRule__closure0: function _EvaluateVisitor_visitIncludeRule__closure0(t0, t1, t2) {
  16648. this.$this = t0;
  16649. this.mixin = t1;
  16650. this.nodeWithSpan = t2;
  16651. },
  16652. _EvaluateVisitor_visitIncludeRule___closure0: function _EvaluateVisitor_visitIncludeRule___closure0(t0, t1, t2) {
  16653. this.$this = t0;
  16654. this.mixin = t1;
  16655. this.nodeWithSpan = t2;
  16656. },
  16657. _EvaluateVisitor_visitIncludeRule____closure0: function _EvaluateVisitor_visitIncludeRule____closure0(t0, t1) {
  16658. this.$this = t0;
  16659. this.statement = t1;
  16660. },
  16661. _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0, t1, t2, t3) {
  16662. var _ = this;
  16663. _.$this = t0;
  16664. _.mergedQueries = t1;
  16665. _.queries = t2;
  16666. _.node = t3;
  16667. },
  16668. _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
  16669. this.$this = t0;
  16670. this.node = t1;
  16671. },
  16672. _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
  16673. this.$this = t0;
  16674. this.node = t1;
  16675. },
  16676. _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0) {
  16677. this.mergedQueries = t0;
  16678. },
  16679. _EvaluateVisitor__visitMediaQueries_closure0: function _EvaluateVisitor__visitMediaQueries_closure0(t0, t1) {
  16680. this.$this = t0;
  16681. this.resolved = t1;
  16682. },
  16683. _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1) {
  16684. this.$this = t0;
  16685. this.selectorText = t1;
  16686. },
  16687. _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
  16688. this.$this = t0;
  16689. this.node = t1;
  16690. },
  16691. _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
  16692. },
  16693. _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9(t0, t1) {
  16694. this.$this = t0;
  16695. this.selectorText = t1;
  16696. },
  16697. _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1) {
  16698. this._box_0 = t0;
  16699. this.$this = t1;
  16700. },
  16701. _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1, t2) {
  16702. this.$this = t0;
  16703. this.rule = t1;
  16704. this.node = t2;
  16705. },
  16706. _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
  16707. this.$this = t0;
  16708. this.node = t1;
  16709. },
  16710. _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
  16711. },
  16712. _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
  16713. this.$this = t0;
  16714. this.node = t1;
  16715. },
  16716. _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
  16717. this.$this = t0;
  16718. this.node = t1;
  16719. },
  16720. _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
  16721. },
  16722. _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
  16723. this.$this = t0;
  16724. this.node = t1;
  16725. this.override = t2;
  16726. },
  16727. _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
  16728. this.$this = t0;
  16729. this.node = t1;
  16730. },
  16731. _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
  16732. this.$this = t0;
  16733. this.node = t1;
  16734. this.value = t2;
  16735. },
  16736. _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
  16737. this.$this = t0;
  16738. this.node = t1;
  16739. },
  16740. _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
  16741. this.$this = t0;
  16742. this.node = t1;
  16743. },
  16744. _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
  16745. this.$this = t0;
  16746. this.node = t1;
  16747. },
  16748. _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
  16749. this.$this = t0;
  16750. },
  16751. _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
  16752. this.$this = t0;
  16753. this.node = t1;
  16754. },
  16755. _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
  16756. this.$this = t0;
  16757. this.node = t1;
  16758. },
  16759. _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
  16760. this.$this = t0;
  16761. },
  16762. _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
  16763. this.$this = t0;
  16764. this.node = t1;
  16765. this.plainName = t2;
  16766. },
  16767. _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1, t2) {
  16768. this._box_0 = t0;
  16769. this.$this = t1;
  16770. this.node = t2;
  16771. },
  16772. _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4) {
  16773. var _ = this;
  16774. _.$this = t0;
  16775. _.callable = t1;
  16776. _.evaluated = t2;
  16777. _.nodeWithSpan = t3;
  16778. _.run = t4;
  16779. },
  16780. _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4) {
  16781. var _ = this;
  16782. _.$this = t0;
  16783. _.evaluated = t1;
  16784. _.callable = t2;
  16785. _.nodeWithSpan = t3;
  16786. _.run = t4;
  16787. },
  16788. _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4) {
  16789. var _ = this;
  16790. _.$this = t0;
  16791. _.evaluated = t1;
  16792. _.callable = t2;
  16793. _.nodeWithSpan = t3;
  16794. _.run = t4;
  16795. },
  16796. _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
  16797. },
  16798. _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
  16799. this.$this = t0;
  16800. this.callable = t1;
  16801. },
  16802. _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1(t0, t1, t2) {
  16803. this.overload = t0;
  16804. this.evaluated = t1;
  16805. this.namedSet = t2;
  16806. },
  16807. _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2() {
  16808. },
  16809. _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1, t2) {
  16810. this.named = t0;
  16811. this.namedNodes = t1;
  16812. this.restNodeForSpan = t2;
  16813. },
  16814. _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3() {
  16815. },
  16816. _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4() {
  16817. },
  16818. _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0) {
  16819. this.named = t0;
  16820. },
  16821. _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6() {
  16822. },
  16823. _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0) {
  16824. this.T = t0;
  16825. },
  16826. _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4) {
  16827. var _ = this;
  16828. _._box_0 = t0;
  16829. _.$this = t1;
  16830. _.values = t2;
  16831. _.map = t3;
  16832. _.nodeWithSpan = t4;
  16833. },
  16834. _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
  16835. this.$arguments = t0;
  16836. this.positional = t1;
  16837. this.named = t2;
  16838. },
  16839. _EvaluateVisitor_visitStringExpression_closure0: function _EvaluateVisitor_visitStringExpression_closure0(t0) {
  16840. this.$this = t0;
  16841. },
  16842. _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
  16843. this.$this = t0;
  16844. this.node = t1;
  16845. },
  16846. _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
  16847. },
  16848. _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
  16849. this.$this = t0;
  16850. this.node = t1;
  16851. },
  16852. _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
  16853. },
  16854. _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0, t1, t2) {
  16855. this.$this = t0;
  16856. this.mergedQueries = t1;
  16857. this.node = t2;
  16858. },
  16859. _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
  16860. this.$this = t0;
  16861. this.node = t1;
  16862. },
  16863. _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
  16864. this.$this = t0;
  16865. this.node = t1;
  16866. },
  16867. _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0) {
  16868. this.mergedQueries = t0;
  16869. },
  16870. _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1(t0, t1, t2) {
  16871. this.$this = t0;
  16872. this.rule = t1;
  16873. this.node = t2;
  16874. },
  16875. _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
  16876. this.$this = t0;
  16877. this.node = t1;
  16878. },
  16879. _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2() {
  16880. },
  16881. _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
  16882. this.$this = t0;
  16883. this.node = t1;
  16884. },
  16885. _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
  16886. this.$this = t0;
  16887. this.node = t1;
  16888. },
  16889. _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
  16890. },
  16891. _EvaluateVisitor__performInterpolation_closure0: function _EvaluateVisitor__performInterpolation_closure0(t0, t1) {
  16892. this.$this = t0;
  16893. this.warnForColor = t1;
  16894. },
  16895. _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
  16896. this.value = t0;
  16897. this.quote = t1;
  16898. },
  16899. _EvaluateVisitor__stackTrace_closure0: function _EvaluateVisitor__stackTrace_closure0(t0) {
  16900. this.$this = t0;
  16901. },
  16902. _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
  16903. this._async_evaluate$_visitor = t0;
  16904. },
  16905. _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
  16906. },
  16907. _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
  16908. this.hasBeenMerged = t0;
  16909. },
  16910. _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
  16911. },
  16912. _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
  16913. },
  16914. EvaluateResult: function EvaluateResult(t0) {
  16915. this.stylesheet = t0;
  16916. },
  16917. _ArgumentResults0: function _ArgumentResults0(t0, t1, t2, t3, t4) {
  16918. var _ = this;
  16919. _.positional = t0;
  16920. _.positionalNodes = t1;
  16921. _.named = t2;
  16922. _.namedNodes = t3;
  16923. _.separator = t4;
  16924. },
  16925. StringScannerException$: function(message, span, source) {
  16926. return new E.StringScannerException(source, message, span);
  16927. },
  16928. StringScannerException: function StringScannerException(t0, t1, t2) {
  16929. this.source = t0;
  16930. this._span_exception$_message = t1;
  16931. this._span = t2;
  16932. },
  16933. WatchEvent: function WatchEvent(t0, t1) {
  16934. this.type = t0;
  16935. this.path = t1;
  16936. },
  16937. ChangeType: function ChangeType(t0) {
  16938. this._watch_event$_name = t0;
  16939. },
  16940. _EvaluateVisitor$2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  16941. var t6,
  16942. t1 = type$.legacy_String,
  16943. t2 = type$.legacy_Uri,
  16944. t3 = type$.legacy_Module_legacy_AsyncCallable_2,
  16945. t4 = type$.legacy_AstNode_2,
  16946. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2);
  16947. if (nodeImporter == null)
  16948. t6 = importCache == null ? O.AsyncImportCache$none(logger) : importCache;
  16949. else
  16950. t6 = null;
  16951. t1 = new E._EvaluateVisitor2(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AsyncCallable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, Q.AsyncEnvironment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  16952. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2(functions, importCache, logger, nodeImporter, sourceMap);
  16953. return t1;
  16954. },
  16955. _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  16956. var _ = this;
  16957. _._async_evaluate0$_importCache = t0;
  16958. _._async_evaluate0$_nodeImporter = t1;
  16959. _._async_evaluate0$_builtInFunctions = t2;
  16960. _._async_evaluate0$_builtInModules = t3;
  16961. _._async_evaluate0$_modules = t4;
  16962. _._async_evaluate0$_moduleNodes = t5;
  16963. _._async_evaluate0$_logger = t6;
  16964. _._async_evaluate0$_sourceMap = t7;
  16965. _._async_evaluate0$_environment = t8;
  16966. _._async_evaluate0$_declarationName = _._async_evaluate0$_parent = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRule = null;
  16967. _._async_evaluate0$_member = "root stylesheet";
  16968. _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = null;
  16969. _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
  16970. _._async_evaluate0$_includedFiles = t9;
  16971. _._async_evaluate0$_activeModules = t10;
  16972. _._async_evaluate0$_stack = t11;
  16973. _._async_evaluate0$_extender = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$_endOfImports = _._async_evaluate0$_root = _._async_evaluate0$_stylesheet = _._async_evaluate0$_importer = null;
  16974. _._async_evaluate0$_configuration = t12;
  16975. },
  16976. _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
  16977. this.$this = t0;
  16978. },
  16979. _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
  16980. this.$this = t0;
  16981. },
  16982. _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
  16983. this.$this = t0;
  16984. },
  16985. _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
  16986. this.$this = t0;
  16987. },
  16988. _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
  16989. this.$this = t0;
  16990. },
  16991. _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
  16992. this.$this = t0;
  16993. },
  16994. _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
  16995. this.$this = t0;
  16996. },
  16997. _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
  16998. this.$this = t0;
  16999. },
  17000. _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) {
  17001. this.$this = t0;
  17002. this.name = t1;
  17003. this.module = t2;
  17004. },
  17005. _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
  17006. this.$this = t0;
  17007. },
  17008. _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
  17009. this.$this = t0;
  17010. },
  17011. _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0, t1) {
  17012. this.values = t0;
  17013. this.span = t1;
  17014. },
  17015. _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0) {
  17016. this.$this = t0;
  17017. },
  17018. _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
  17019. this.$this = t0;
  17020. this.node = t1;
  17021. this.importer = t2;
  17022. },
  17023. _EvaluateVisitor__withWarnCallback_closure2: function _EvaluateVisitor__withWarnCallback_closure2(t0) {
  17024. this.$this = t0;
  17025. },
  17026. _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) {
  17027. this.callback = t0;
  17028. this.builtInModule = t1;
  17029. },
  17030. _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) {
  17031. var _ = this;
  17032. _.$this = t0;
  17033. _.url = t1;
  17034. _.nodeWithSpan = t2;
  17035. _.baseUrl = t3;
  17036. _.namesInErrors = t4;
  17037. _.configuration = t5;
  17038. _.callback = t6;
  17039. },
  17040. _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5) {
  17041. var _ = this;
  17042. _._box_0 = t0;
  17043. _.$this = t1;
  17044. _.importer = t2;
  17045. _.stylesheet = t3;
  17046. _.extender = t4;
  17047. _.configuration = t5;
  17048. },
  17049. _EvaluateVisitor__combineCss_closure8: function _EvaluateVisitor__combineCss_closure8() {
  17050. },
  17051. _EvaluateVisitor__combineCss_closure9: function _EvaluateVisitor__combineCss_closure9(t0) {
  17052. this.selectors = t0;
  17053. },
  17054. _EvaluateVisitor__combineCss_closure10: function _EvaluateVisitor__combineCss_closure10() {
  17055. },
  17056. _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
  17057. this.originalSelectors = t0;
  17058. },
  17059. _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
  17060. },
  17061. _EvaluateVisitor__topologicalModules_visitModule2: function _EvaluateVisitor__topologicalModules_visitModule2(t0, t1) {
  17062. this.seen = t0;
  17063. this.sorted = t1;
  17064. },
  17065. _EvaluateVisitor_visitAtRootRule_closure8: function _EvaluateVisitor_visitAtRootRule_closure8(t0, t1) {
  17066. this.$this = t0;
  17067. this.resolved = t1;
  17068. },
  17069. _EvaluateVisitor_visitAtRootRule_closure9: function _EvaluateVisitor_visitAtRootRule_closure9(t0, t1) {
  17070. this.$this = t0;
  17071. this.node = t1;
  17072. },
  17073. _EvaluateVisitor_visitAtRootRule_closure10: function _EvaluateVisitor_visitAtRootRule_closure10(t0, t1) {
  17074. this.$this = t0;
  17075. this.node = t1;
  17076. },
  17077. _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
  17078. this.$this = t0;
  17079. this.newParent = t1;
  17080. this.node = t2;
  17081. },
  17082. _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
  17083. this.$this = t0;
  17084. this.innerScope = t1;
  17085. },
  17086. _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
  17087. this.$this = t0;
  17088. this.innerScope = t1;
  17089. },
  17090. _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
  17091. this.innerScope = t0;
  17092. this.callback = t1;
  17093. },
  17094. _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
  17095. this.$this = t0;
  17096. this.innerScope = t1;
  17097. },
  17098. _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
  17099. },
  17100. _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
  17101. this.$this = t0;
  17102. this.innerScope = t1;
  17103. },
  17104. _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
  17105. this.$this = t0;
  17106. this.content = t1;
  17107. },
  17108. _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
  17109. this.$this = t0;
  17110. this.node = t1;
  17111. },
  17112. _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
  17113. this.$this = t0;
  17114. this.node = t1;
  17115. this.nodeWithSpan = t2;
  17116. },
  17117. _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
  17118. this.$this = t0;
  17119. this.node = t1;
  17120. this.nodeWithSpan = t2;
  17121. },
  17122. _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
  17123. var _ = this;
  17124. _.$this = t0;
  17125. _.list = t1;
  17126. _.setVariables = t2;
  17127. _.node = t3;
  17128. },
  17129. _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
  17130. this.$this = t0;
  17131. this.setVariables = t1;
  17132. this.node = t2;
  17133. },
  17134. _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
  17135. this.$this = t0;
  17136. },
  17137. _EvaluateVisitor_visitExtendRule_closure2: function _EvaluateVisitor_visitExtendRule_closure2(t0, t1) {
  17138. this.$this = t0;
  17139. this.targetText = t1;
  17140. },
  17141. _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0, t1) {
  17142. this.$this = t0;
  17143. this.node = t1;
  17144. },
  17145. _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
  17146. this.$this = t0;
  17147. this.node = t1;
  17148. },
  17149. _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6() {
  17150. },
  17151. _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
  17152. this.$this = t0;
  17153. this.node = t1;
  17154. },
  17155. _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
  17156. this.$this = t0;
  17157. this.node = t1;
  17158. },
  17159. _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0, t1) {
  17160. this.fromNumber = t0;
  17161. this.toNumber = t1;
  17162. },
  17163. _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0) {
  17164. this.toNumber = t0;
  17165. },
  17166. _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4) {
  17167. var _ = this;
  17168. _._box_0 = t0;
  17169. _.$this = t1;
  17170. _.node = t2;
  17171. _.from = t3;
  17172. _.direction = t4;
  17173. },
  17174. _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
  17175. this.$this = t0;
  17176. },
  17177. _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
  17178. this.$this = t0;
  17179. this.node = t1;
  17180. },
  17181. _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
  17182. this.$this = t0;
  17183. this.node = t1;
  17184. },
  17185. _EvaluateVisitor__assertConfigurationIsEmpty_closure2: function _EvaluateVisitor__assertConfigurationIsEmpty_closure2(t0, t1, t2) {
  17186. this.$this = t0;
  17187. this.only = t1;
  17188. this.nameInError = t2;
  17189. },
  17190. _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0, t1) {
  17191. this._box_0 = t0;
  17192. this.$this = t1;
  17193. },
  17194. _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0) {
  17195. this.$this = t0;
  17196. },
  17197. _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
  17198. this.$this = t0;
  17199. this.$import = t1;
  17200. },
  17201. _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
  17202. var _ = this;
  17203. _._box_0 = t0;
  17204. _.$this = t1;
  17205. _.importer = t2;
  17206. _.stylesheet = t3;
  17207. _.environment = t4;
  17208. },
  17209. _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
  17210. this.$this = t0;
  17211. this.node = t1;
  17212. },
  17213. _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
  17214. this.node = t0;
  17215. },
  17216. _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0, t1, t2, t3) {
  17217. var _ = this;
  17218. _.$this = t0;
  17219. _.contentCallable = t1;
  17220. _.mixin = t2;
  17221. _.nodeWithSpan = t3;
  17222. },
  17223. _EvaluateVisitor_visitIncludeRule__closure2: function _EvaluateVisitor_visitIncludeRule__closure2(t0, t1, t2) {
  17224. this.$this = t0;
  17225. this.mixin = t1;
  17226. this.nodeWithSpan = t2;
  17227. },
  17228. _EvaluateVisitor_visitIncludeRule___closure2: function _EvaluateVisitor_visitIncludeRule___closure2(t0, t1, t2) {
  17229. this.$this = t0;
  17230. this.mixin = t1;
  17231. this.nodeWithSpan = t2;
  17232. },
  17233. _EvaluateVisitor_visitIncludeRule____closure2: function _EvaluateVisitor_visitIncludeRule____closure2(t0, t1) {
  17234. this.$this = t0;
  17235. this.statement = t1;
  17236. },
  17237. _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1, t2, t3) {
  17238. var _ = this;
  17239. _.$this = t0;
  17240. _.mergedQueries = t1;
  17241. _.queries = t2;
  17242. _.node = t3;
  17243. },
  17244. _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
  17245. this.$this = t0;
  17246. this.node = t1;
  17247. },
  17248. _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
  17249. this.$this = t0;
  17250. this.node = t1;
  17251. },
  17252. _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0) {
  17253. this.mergedQueries = t0;
  17254. },
  17255. _EvaluateVisitor__visitMediaQueries_closure2: function _EvaluateVisitor__visitMediaQueries_closure2(t0, t1) {
  17256. this.$this = t0;
  17257. this.resolved = t1;
  17258. },
  17259. _EvaluateVisitor_visitStyleRule_closure20: function _EvaluateVisitor_visitStyleRule_closure20(t0, t1) {
  17260. this.$this = t0;
  17261. this.selectorText = t1;
  17262. },
  17263. _EvaluateVisitor_visitStyleRule_closure21: function _EvaluateVisitor_visitStyleRule_closure21(t0, t1) {
  17264. this.$this = t0;
  17265. this.node = t1;
  17266. },
  17267. _EvaluateVisitor_visitStyleRule_closure22: function _EvaluateVisitor_visitStyleRule_closure22() {
  17268. },
  17269. _EvaluateVisitor_visitStyleRule_closure23: function _EvaluateVisitor_visitStyleRule_closure23(t0, t1) {
  17270. this.$this = t0;
  17271. this.selectorText = t1;
  17272. },
  17273. _EvaluateVisitor_visitStyleRule_closure24: function _EvaluateVisitor_visitStyleRule_closure24(t0, t1) {
  17274. this._box_0 = t0;
  17275. this.$this = t1;
  17276. },
  17277. _EvaluateVisitor_visitStyleRule_closure25: function _EvaluateVisitor_visitStyleRule_closure25(t0, t1, t2) {
  17278. this.$this = t0;
  17279. this.rule = t1;
  17280. this.node = t2;
  17281. },
  17282. _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
  17283. this.$this = t0;
  17284. this.node = t1;
  17285. },
  17286. _EvaluateVisitor_visitStyleRule_closure26: function _EvaluateVisitor_visitStyleRule_closure26() {
  17287. },
  17288. _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
  17289. this.$this = t0;
  17290. this.node = t1;
  17291. },
  17292. _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
  17293. this.$this = t0;
  17294. this.node = t1;
  17295. },
  17296. _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
  17297. },
  17298. _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
  17299. this.$this = t0;
  17300. this.node = t1;
  17301. this.override = t2;
  17302. },
  17303. _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
  17304. this.$this = t0;
  17305. this.node = t1;
  17306. },
  17307. _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
  17308. this.$this = t0;
  17309. this.node = t1;
  17310. this.value = t2;
  17311. },
  17312. _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
  17313. this.$this = t0;
  17314. this.node = t1;
  17315. },
  17316. _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
  17317. this.$this = t0;
  17318. this.node = t1;
  17319. },
  17320. _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
  17321. this.$this = t0;
  17322. this.node = t1;
  17323. },
  17324. _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
  17325. this.$this = t0;
  17326. },
  17327. _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
  17328. this.$this = t0;
  17329. this.node = t1;
  17330. },
  17331. _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
  17332. this.$this = t0;
  17333. this.node = t1;
  17334. },
  17335. _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
  17336. this.$this = t0;
  17337. },
  17338. _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1, t2) {
  17339. this.$this = t0;
  17340. this.node = t1;
  17341. this.plainName = t2;
  17342. },
  17343. _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6(t0, t1, t2) {
  17344. this._box_0 = t0;
  17345. this.$this = t1;
  17346. this.node = t2;
  17347. },
  17348. _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4) {
  17349. var _ = this;
  17350. _.$this = t0;
  17351. _.callable = t1;
  17352. _.evaluated = t2;
  17353. _.nodeWithSpan = t3;
  17354. _.run = t4;
  17355. },
  17356. _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4) {
  17357. var _ = this;
  17358. _.$this = t0;
  17359. _.evaluated = t1;
  17360. _.callable = t2;
  17361. _.nodeWithSpan = t3;
  17362. _.run = t4;
  17363. },
  17364. _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4) {
  17365. var _ = this;
  17366. _.$this = t0;
  17367. _.evaluated = t1;
  17368. _.callable = t2;
  17369. _.nodeWithSpan = t3;
  17370. _.run = t4;
  17371. },
  17372. _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
  17373. },
  17374. _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
  17375. this.$this = t0;
  17376. this.callable = t1;
  17377. },
  17378. _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
  17379. this.overload = t0;
  17380. this.evaluated = t1;
  17381. this.namedSet = t2;
  17382. },
  17383. _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6() {
  17384. },
  17385. _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2(t0, t1, t2) {
  17386. this.named = t0;
  17387. this.namedNodes = t1;
  17388. this.restNodeForSpan = t2;
  17389. },
  17390. _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11() {
  17391. },
  17392. _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12() {
  17393. },
  17394. _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0) {
  17395. this.named = t0;
  17396. },
  17397. _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14() {
  17398. },
  17399. _EvaluateVisitor__addRestMap_closure5: function _EvaluateVisitor__addRestMap_closure5(t0) {
  17400. this.T = t0;
  17401. },
  17402. _EvaluateVisitor__addRestMap_closure6: function _EvaluateVisitor__addRestMap_closure6(t0, t1, t2, t3, t4) {
  17403. var _ = this;
  17404. _._box_0 = t0;
  17405. _.$this = t1;
  17406. _.values = t2;
  17407. _.map = t3;
  17408. _.nodeWithSpan = t4;
  17409. },
  17410. _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
  17411. this.$arguments = t0;
  17412. this.positional = t1;
  17413. this.named = t2;
  17414. },
  17415. _EvaluateVisitor_visitStringExpression_closure2: function _EvaluateVisitor_visitStringExpression_closure2(t0) {
  17416. this.$this = t0;
  17417. },
  17418. _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
  17419. this.$this = t0;
  17420. this.node = t1;
  17421. },
  17422. _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
  17423. },
  17424. _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
  17425. this.$this = t0;
  17426. this.node = t1;
  17427. },
  17428. _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
  17429. },
  17430. _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1, t2) {
  17431. this.$this = t0;
  17432. this.mergedQueries = t1;
  17433. this.node = t2;
  17434. },
  17435. _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
  17436. this.$this = t0;
  17437. this.node = t1;
  17438. },
  17439. _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
  17440. this.$this = t0;
  17441. this.node = t1;
  17442. },
  17443. _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0) {
  17444. this.mergedQueries = t0;
  17445. },
  17446. _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5(t0, t1, t2) {
  17447. this.$this = t0;
  17448. this.rule = t1;
  17449. this.node = t2;
  17450. },
  17451. _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
  17452. this.$this = t0;
  17453. this.node = t1;
  17454. },
  17455. _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6() {
  17456. },
  17457. _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
  17458. this.$this = t0;
  17459. this.node = t1;
  17460. },
  17461. _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
  17462. this.$this = t0;
  17463. this.node = t1;
  17464. },
  17465. _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
  17466. },
  17467. _EvaluateVisitor__performInterpolation_closure2: function _EvaluateVisitor__performInterpolation_closure2(t0, t1) {
  17468. this.$this = t0;
  17469. this.warnForColor = t1;
  17470. },
  17471. _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
  17472. this.value = t0;
  17473. this.quote = t1;
  17474. },
  17475. _EvaluateVisitor__stackTrace_closure2: function _EvaluateVisitor__stackTrace_closure2(t0) {
  17476. this.$this = t0;
  17477. },
  17478. _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
  17479. this._async_evaluate0$_visitor = t0;
  17480. },
  17481. _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
  17482. },
  17483. _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
  17484. this.hasBeenMerged = t0;
  17485. },
  17486. _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
  17487. },
  17488. _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
  17489. },
  17490. EvaluateResult0: function EvaluateResult0(t0, t1) {
  17491. this.stylesheet = t0;
  17492. this.includedFiles = t1;
  17493. },
  17494. _ArgumentResults2: function _ArgumentResults2(t0, t1, t2, t3, t4) {
  17495. var _ = this;
  17496. _.positional = t0;
  17497. _.positionalNodes = t1;
  17498. _.named = t2;
  17499. _.namedNodes = t3;
  17500. _.separator = t4;
  17501. },
  17502. SassException$0: function(message, span) {
  17503. return new E.SassException0(message, span);
  17504. },
  17505. MultiSpanSassException$0: function(message, span, primaryLabel, secondarySpans) {
  17506. return new E.MultiSpanSassException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  17507. },
  17508. SassRuntimeException$0: function(message, span, trace) {
  17509. return new E.SassRuntimeException0(trace, message, span);
  17510. },
  17511. MultiSpanSassRuntimeException$0: function(message, span, primaryLabel, secondarySpans, trace) {
  17512. return new E.MultiSpanSassRuntimeException0(trace, primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message, span);
  17513. },
  17514. SassFormatException$0: function(message, span) {
  17515. return new E.SassFormatException0(message, span);
  17516. },
  17517. SassScriptException$0: function(message) {
  17518. return new E.SassScriptException0(message);
  17519. },
  17520. MultiSpanSassScriptException$0: function(message, primaryLabel, secondarySpans) {
  17521. return new E.MultiSpanSassScriptException0(primaryLabel, H.ConstantMap_ConstantMap$from(secondarySpans, type$.legacy_FileSpan, type$.legacy_String), message);
  17522. },
  17523. SassException0: function SassException0(t0, t1) {
  17524. this._span_exception$_message = t0;
  17525. this._span = t1;
  17526. },
  17527. MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3) {
  17528. var _ = this;
  17529. _.primaryLabel = t0;
  17530. _.secondarySpans = t1;
  17531. _._span_exception$_message = t2;
  17532. _._span = t3;
  17533. },
  17534. SassRuntimeException0: function SassRuntimeException0(t0, t1, t2) {
  17535. this.trace = t0;
  17536. this._span_exception$_message = t1;
  17537. this._span = t2;
  17538. },
  17539. MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4) {
  17540. var _ = this;
  17541. _.trace = t0;
  17542. _.primaryLabel = t1;
  17543. _.secondarySpans = t2;
  17544. _._span_exception$_message = t3;
  17545. _._span = t4;
  17546. },
  17547. SassFormatException0: function SassFormatException0(t0, t1) {
  17548. this._span_exception$_message = t0;
  17549. this._span = t1;
  17550. },
  17551. SassScriptException0: function SassScriptException0(t0) {
  17552. this.message = t0;
  17553. },
  17554. MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
  17555. this.primaryLabel = t0;
  17556. this.secondarySpans = t1;
  17557. this.message = t2;
  17558. },
  17559. FiberClass: function FiberClass() {
  17560. },
  17561. Fiber: function Fiber() {
  17562. },
  17563. KeyframeSelectorParser$0: function(contents, logger) {
  17564. var t1 = S.SpanScanner$(contents, null);
  17565. return new E.KeyframeSelectorParser0(t1, logger);
  17566. },
  17567. KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
  17568. this.scanner = t0;
  17569. this.logger = t1;
  17570. },
  17571. KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
  17572. this.$this = t0;
  17573. },
  17574. ImporterResult0: function ImporterResult0(t0, t1, t2) {
  17575. this.contents = t0;
  17576. this._result$_sourceMapUrl = t1;
  17577. this.syntax = t2;
  17578. },
  17579. UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2) {
  17580. this.declaration = t0;
  17581. this.environment = t1;
  17582. this.$ti = t2;
  17583. }
  17584. },
  17585. X = {NodeJsError: function NodeJsError() {
  17586. }, JsAssertionError: function JsAssertionError() {
  17587. }, JsRangeError: function JsRangeError() {
  17588. }, JsReferenceError: function JsReferenceError() {
  17589. }, JsSyntaxError: function JsSyntaxError() {
  17590. }, JsTypeError: function JsTypeError() {
  17591. }, JsSystemError: function JsSystemError() {
  17592. }, Process: function Process() {
  17593. }, CPUUsage: function CPUUsage() {
  17594. }, Release: function Release() {
  17595. },
  17596. ParsedPath_ParsedPath$parse: function(path, style) {
  17597. var t1, parts, separators, start, i,
  17598. root = style.getRoot$1(path),
  17599. isRootRelative = style.isRootRelative$1(path);
  17600. if (root != null)
  17601. path = J.substring$1$s(path, root.length);
  17602. t1 = type$.JSArray_legacy_String;
  17603. parts = H.setRuntimeTypeInfo([], t1);
  17604. separators = H.setRuntimeTypeInfo([], t1);
  17605. t1 = path.length;
  17606. if (t1 !== 0 && style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, 0))) {
  17607. separators.push(path[0]);
  17608. start = 1;
  17609. } else {
  17610. separators.push("");
  17611. start = 0;
  17612. }
  17613. for (i = start; i < t1; ++i)
  17614. if (style.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, i))) {
  17615. parts.push(C.JSString_methods.substring$2(path, start, i));
  17616. separators.push(path[i]);
  17617. start = i + 1;
  17618. }
  17619. if (start < t1) {
  17620. parts.push(C.JSString_methods.substring$1(path, start));
  17621. separators.push("");
  17622. }
  17623. return new X.ParsedPath(style, root, isRootRelative, parts, separators);
  17624. },
  17625. ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
  17626. var _ = this;
  17627. _.style = t0;
  17628. _.root = t1;
  17629. _.isRootRelative = t2;
  17630. _.parts = t3;
  17631. _.separators = t4;
  17632. },
  17633. ParsedPath_normalize_closure: function ParsedPath_normalize_closure(t0) {
  17634. this.$this = t0;
  17635. },
  17636. ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
  17637. },
  17638. ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
  17639. },
  17640. PathException$: function(message) {
  17641. return new X.PathException(message);
  17642. },
  17643. PathException: function PathException(t0) {
  17644. this.message = t0;
  17645. },
  17646. ModifiableCssStyleRule$: function(selector, span, originalSelector) {
  17647. var t1 = originalSelector == null ? selector.value : originalSelector,
  17648. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode);
  17649. return new X.ModifiableCssStyleRule(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode), t2);
  17650. },
  17651. ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4) {
  17652. var _ = this;
  17653. _.selector = t0;
  17654. _.originalSelector = t1;
  17655. _.span = t2;
  17656. _.children = t3;
  17657. _._children = t4;
  17658. _._indexInParent = _._parent = null;
  17659. _.isGroupEnd = false;
  17660. },
  17661. ArgumentInvocation$empty: function(span) {
  17662. return new X.ArgumentInvocation(C.List_empty7, C.Map_empty3, null, null, span);
  17663. },
  17664. ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
  17665. var _ = this;
  17666. _.positional = t0;
  17667. _.named = t1;
  17668. _.rest = t2;
  17669. _.keywordRest = t3;
  17670. _.span = t4;
  17671. },
  17672. UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
  17673. this.operator = t0;
  17674. this.operand = t1;
  17675. this.span = t2;
  17676. },
  17677. UnaryOperator: function UnaryOperator(t0, t1) {
  17678. this.name = t0;
  17679. this.operator = t1;
  17680. },
  17681. Interpolation$: function(contents, span) {
  17682. var t1 = new X.Interpolation(P.List_List$unmodifiable(contents, type$.legacy_Object), span);
  17683. t1.Interpolation$2(contents, span);
  17684. return t1;
  17685. },
  17686. Interpolation: function Interpolation(t0, t1) {
  17687. this.contents = t0;
  17688. this.span = t1;
  17689. },
  17690. Interpolation_toString_closure: function Interpolation_toString_closure() {
  17691. },
  17692. ExtendRule: function ExtendRule(t0, t1, t2) {
  17693. this.selector = t0;
  17694. this.isOptional = t1;
  17695. this.span = t2;
  17696. },
  17697. StyleRule$: function(selector, children, span) {
  17698. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  17699. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  17700. return new X.StyleRule(selector, span, t1, t2);
  17701. },
  17702. StyleRule: function StyleRule(t0, t1, t2, t3) {
  17703. var _ = this;
  17704. _.selector = t0;
  17705. _.span = t1;
  17706. _.children = t2;
  17707. _.hasDeclarations = t3;
  17708. },
  17709. SupportsInterpolation: function SupportsInterpolation(t0, t1) {
  17710. this.expression = t0;
  17711. this.span = t1;
  17712. },
  17713. ClassSelector: function ClassSelector(t0) {
  17714. this.name = t0;
  17715. },
  17716. CompoundSelector$: function(components) {
  17717. var t1 = P.List_List$unmodifiable(components, type$.legacy_SimpleSelector);
  17718. if (t1.length === 0)
  17719. H.throwExpression(P.ArgumentError$("components may not be empty."));
  17720. return new X.CompoundSelector(t1);
  17721. },
  17722. CompoundSelector: function CompoundSelector(t0) {
  17723. this.components = t0;
  17724. this._compound$_maxSpecificity = this._compound$_minSpecificity = null;
  17725. },
  17726. CompoundSelector_isInvisible_closure: function CompoundSelector_isInvisible_closure() {
  17727. },
  17728. compileAsync: function(path, charset, importCache, logger, sourceMap, style, syntax) {
  17729. var $async$goto = 0,
  17730. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  17731. $async$returnValue, t2, t3, t0, stylesheet, t1;
  17732. var $async$compileAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17733. if ($async$errorCode === 1)
  17734. return P._asyncRethrow($async$result, $async$completer);
  17735. while (true)
  17736. switch ($async$goto) {
  17737. case 0:
  17738. // Function start
  17739. t1 = syntax === M.Syntax_forPath(path);
  17740. $async$goto = t1 ? 3 : 5;
  17741. break;
  17742. case 3:
  17743. // then
  17744. t1 = D.absolute(".");
  17745. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  17746. t2 = $.$get$context();
  17747. t3 = F._realCasePath(D.absolute(t2.normalize$1(path)));
  17748. t0 = t3;
  17749. t3 = t2;
  17750. t2 = t0;
  17751. } else {
  17752. t2 = $.$get$context();
  17753. t3 = t2.canonicalize$1(path);
  17754. t0 = t3;
  17755. t3 = t2;
  17756. t2 = t0;
  17757. }
  17758. $async$goto = 6;
  17759. return P._asyncAwait(importCache.importCanonical$3(new F.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path)), $async$compileAsync);
  17760. case 6:
  17761. // returning from await.
  17762. stylesheet = $async$result;
  17763. // goto join
  17764. $async$goto = 4;
  17765. break;
  17766. case 5:
  17767. // else
  17768. t1 = B.readFile(path);
  17769. stylesheet = V.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
  17770. case 4:
  17771. // join
  17772. $async$goto = 7;
  17773. return P._asyncAwait(X._compileStylesheet0(stylesheet, logger, importCache, null, new F.FilesystemImporter(D.absolute(".")), null, style, true, null, null, sourceMap, charset), $async$compileAsync);
  17774. case 7:
  17775. // returning from await.
  17776. $async$returnValue = $async$result;
  17777. // goto return
  17778. $async$goto = 1;
  17779. break;
  17780. case 1:
  17781. // return
  17782. return P._asyncReturn($async$returnValue, $async$completer);
  17783. }
  17784. });
  17785. return P._asyncStartSync($async$compileAsync, $async$completer);
  17786. },
  17787. compileStringAsync: function(source, charset, importCache, importer, logger, sourceMap, style, syntax) {
  17788. var $async$goto = 0,
  17789. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  17790. $async$returnValue, stylesheet;
  17791. var $async$compileStringAsync = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17792. if ($async$errorCode === 1)
  17793. return P._asyncRethrow($async$result, $async$completer);
  17794. while (true)
  17795. switch ($async$goto) {
  17796. case 0:
  17797. // Function start
  17798. stylesheet = V.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
  17799. $async$returnValue = X._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, sourceMap, charset);
  17800. // goto return
  17801. $async$goto = 1;
  17802. break;
  17803. case 1:
  17804. // return
  17805. return P._asyncReturn($async$returnValue, $async$completer);
  17806. }
  17807. });
  17808. return P._asyncStartSync($async$compileStringAsync, $async$completer);
  17809. },
  17810. _compileStylesheet0: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  17811. var $async$goto = 0,
  17812. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult),
  17813. $async$returnValue, serializeResult, t1, $async$temp1;
  17814. var $async$_compileStylesheet0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17815. if ($async$errorCode === 1)
  17816. return P._asyncRethrow($async$result, $async$completer);
  17817. while (true)
  17818. switch ($async$goto) {
  17819. case 0:
  17820. // Function start
  17821. $async$temp1 = N;
  17822. $async$goto = 3;
  17823. return P._asyncAwait(E._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
  17824. case 3:
  17825. // returning from await.
  17826. serializeResult = $async$temp1.serialize($async$result.stylesheet, charset, indentWidth, false, lineFeed, sourceMap, style, true);
  17827. t1 = serializeResult.sourceMap;
  17828. if (t1 != null && true)
  17829. B.mapInPlace(t1.urls, new X._compileStylesheet_closure0(stylesheet, importCache));
  17830. $async$returnValue = new X.CompileResult(serializeResult);
  17831. // goto return
  17832. $async$goto = 1;
  17833. break;
  17834. case 1:
  17835. // return
  17836. return P._asyncReturn($async$returnValue, $async$completer);
  17837. }
  17838. });
  17839. return P._asyncStartSync($async$_compileStylesheet0, $async$completer);
  17840. },
  17841. _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
  17842. this.stylesheet = t0;
  17843. this.importCache = t1;
  17844. },
  17845. CompileResult: function CompileResult(t0) {
  17846. this._serialize = t0;
  17847. },
  17848. SourceSpanWithContext$: function(start, end, text, _context) {
  17849. var t1 = new X.SourceSpanWithContext(_context, start, end, text);
  17850. t1.SourceSpanBase$3(start, end, text);
  17851. if (!C.JSString_methods.contains$1(_context, text))
  17852. H.throwExpression(P.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".'));
  17853. if (B.findLineStart(_context, text, start.get$column()) == null)
  17854. H.throwExpression(P.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".'));
  17855. return t1;
  17856. },
  17857. SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
  17858. var _ = this;
  17859. _._context = t0;
  17860. _.start = t1;
  17861. _.end = t2;
  17862. _.text = t3;
  17863. },
  17864. StringScanner$: function(string, position, sourceUrl) {
  17865. var t1 = typeof sourceUrl == "string" ? P.Uri_parse(sourceUrl) : type$.legacy_Uri._as(sourceUrl);
  17866. return new X.StringScanner(t1, string);
  17867. },
  17868. StringScanner: function StringScanner(t0, t1) {
  17869. var _ = this;
  17870. _.sourceUrl = t0;
  17871. _.string = t1;
  17872. _._string_scanner$_position = 0;
  17873. _._lastMatchPosition = _._lastMatch = null;
  17874. },
  17875. ArgumentInvocation$empty0: function(span) {
  17876. return new X.ArgumentInvocation0(C.List_empty19, C.Map_empty9, null, null, span);
  17877. },
  17878. ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
  17879. var _ = this;
  17880. _.positional = t0;
  17881. _.named = t1;
  17882. _.rest = t2;
  17883. _.keywordRest = t3;
  17884. _.span = t4;
  17885. },
  17886. compileAsync0: function(path, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, useSpaces) {
  17887. var $async$goto = 0,
  17888. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  17889. $async$returnValue, t1, t2, stylesheet;
  17890. var $async$compileAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17891. if ($async$errorCode === 1)
  17892. return P._asyncRethrow($async$result, $async$completer);
  17893. while (true)
  17894. switch ($async$goto) {
  17895. case 0:
  17896. // Function start
  17897. t1 = B.readFile0(path);
  17898. t2 = syntax == null ? M.Syntax_forPath0(path) : syntax;
  17899. stylesheet = V.Stylesheet_Stylesheet$parse0(t1, t2, null, $.$get$context().toUri$1(path));
  17900. $async$goto = 3;
  17901. return P._asyncAwait(X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(D.absolute(".")), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true), $async$compileAsync0);
  17902. case 3:
  17903. // returning from await.
  17904. $async$returnValue = $async$result;
  17905. // goto return
  17906. $async$goto = 1;
  17907. break;
  17908. case 1:
  17909. // return
  17910. return P._asyncReturn($async$returnValue, $async$completer);
  17911. }
  17912. });
  17913. return P._asyncStartSync($async$compileAsync0, $async$completer);
  17914. },
  17915. compileStringAsync0: function(source, functions, indentWidth, lineFeed, nodeImporter, sourceMap, style, syntax, url, useSpaces) {
  17916. var $async$goto = 0,
  17917. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  17918. $async$returnValue, stylesheet, t1;
  17919. var $async$compileStringAsync0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17920. if ($async$errorCode === 1)
  17921. return P._asyncRethrow($async$result, $async$completer);
  17922. while (true)
  17923. switch ($async$goto) {
  17924. case 0:
  17925. // Function start
  17926. stylesheet = V.Stylesheet_Stylesheet$parse0(source, syntax == null ? C.Syntax_SCSS0 : syntax, null, url);
  17927. t1 = D.absolute(".");
  17928. $async$returnValue = X._compileStylesheet2(stylesheet, null, null, nodeImporter, new F.FilesystemImporter0(t1), functions, style, useSpaces, indentWidth, lineFeed, sourceMap, true);
  17929. // goto return
  17930. $async$goto = 1;
  17931. break;
  17932. case 1:
  17933. // return
  17934. return P._asyncReturn($async$returnValue, $async$completer);
  17935. }
  17936. });
  17937. return P._asyncStartSync($async$compileStringAsync0, $async$completer);
  17938. },
  17939. _compileStylesheet2: function(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, sourceMap, charset) {
  17940. var $async$goto = 0,
  17941. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CompileResult_2),
  17942. $async$returnValue, evaluateResult, serializeResult, t1;
  17943. var $async$_compileStylesheet2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  17944. if ($async$errorCode === 1)
  17945. return P._asyncRethrow($async$result, $async$completer);
  17946. while (true)
  17947. switch ($async$goto) {
  17948. case 0:
  17949. // Function start
  17950. $async$goto = 3;
  17951. return P._asyncAwait(E._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
  17952. case 3:
  17953. // returning from await.
  17954. evaluateResult = $async$result;
  17955. serializeResult = N.serialize0(evaluateResult.stylesheet, true, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
  17956. t1 = serializeResult.sourceMap;
  17957. if (t1 != null && importCache != null)
  17958. B.mapInPlace0(t1.urls, new X._compileStylesheet_closure2(stylesheet, importCache));
  17959. $async$returnValue = new X.CompileResult0(evaluateResult, serializeResult);
  17960. // goto return
  17961. $async$goto = 1;
  17962. break;
  17963. case 1:
  17964. // return
  17965. return P._asyncReturn($async$returnValue, $async$completer);
  17966. }
  17967. });
  17968. return P._asyncStartSync($async$_compileStylesheet2, $async$completer);
  17969. },
  17970. _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
  17971. this.stylesheet = t0;
  17972. this.importCache = t1;
  17973. },
  17974. CompileResult0: function CompileResult0(t0, t1) {
  17975. this._evaluate = t0;
  17976. this._async_compile$_serialize = t1;
  17977. },
  17978. ClassSelector0: function ClassSelector0(t0) {
  17979. this.name = t0;
  17980. },
  17981. CompoundSelector$0: function(components) {
  17982. var t1 = P.List_List$unmodifiable(components, type$.legacy_SimpleSelector_2);
  17983. if (t1.length === 0)
  17984. H.throwExpression(P.ArgumentError$("components may not be empty."));
  17985. return new X.CompoundSelector0(t1);
  17986. },
  17987. CompoundSelector0: function CompoundSelector0(t0) {
  17988. this.components = t0;
  17989. this._compound0$_maxSpecificity = this._compound0$_minSpecificity = null;
  17990. },
  17991. CompoundSelector_isInvisible_closure0: function CompoundSelector_isInvisible_closure0() {
  17992. },
  17993. ExtendRule0: function ExtendRule0(t0, t1, t2) {
  17994. this.selector = t0;
  17995. this.isOptional = t1;
  17996. this.span = t2;
  17997. },
  17998. Interpolation$0: function(contents, span) {
  17999. var t1 = new X.Interpolation0(P.List_List$unmodifiable(contents, type$.legacy_Object), span);
  18000. t1.Interpolation$20(contents, span);
  18001. return t1;
  18002. },
  18003. Interpolation0: function Interpolation0(t0, t1) {
  18004. this.contents = t0;
  18005. this.span = t1;
  18006. },
  18007. Interpolation_toString_closure0: function Interpolation_toString_closure0() {
  18008. },
  18009. SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
  18010. this.expression = t0;
  18011. this.span = t1;
  18012. },
  18013. ModifiableCssStyleRule$0: function(selector, span, originalSelector) {
  18014. var t1 = originalSelector == null ? selector.value : originalSelector,
  18015. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssNode_2);
  18016. return new X.ModifiableCssStyleRule0(selector, t1, span, new P.UnmodifiableListView(t2, type$.UnmodifiableListView_legacy_ModifiableCssNode_2), t2);
  18017. },
  18018. ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4) {
  18019. var _ = this;
  18020. _.selector = t0;
  18021. _.originalSelector = t1;
  18022. _.span = t2;
  18023. _.children = t3;
  18024. _._node2$_children = t4;
  18025. _._node2$_indexInParent = _._node2$_parent = null;
  18026. _.isGroupEnd = false;
  18027. },
  18028. StyleRule$0: function(selector, children, span) {
  18029. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  18030. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  18031. return new X.StyleRule0(selector, span, t1, t2);
  18032. },
  18033. StyleRule0: function StyleRule0(t0, t1, t2, t3) {
  18034. var _ = this;
  18035. _.selector = t0;
  18036. _.span = t1;
  18037. _.children = t2;
  18038. _.hasDeclarations = t3;
  18039. },
  18040. UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
  18041. this.operator = t0;
  18042. this.operand = t1;
  18043. this.span = t2;
  18044. },
  18045. UnaryOperator0: function UnaryOperator0(t0, t1) {
  18046. this.name = t0;
  18047. this.operator = t1;
  18048. }
  18049. },
  18050. K = {
  18051. PathMap__create: function(context, $V) {
  18052. var t1 = {};
  18053. t1.context = context;
  18054. t1.context = $.$get$context();
  18055. return P.LinkedHashMap_LinkedHashMap(new K.PathMap__create_closure(t1), new K.PathMap__create_closure0(t1), new K.PathMap__create_closure1(), type$.legacy_String, $V._eval$1("0*"));
  18056. },
  18057. PathMap: function PathMap(t0, t1) {
  18058. this._collection$_map = t0;
  18059. this.$ti = t1;
  18060. },
  18061. PathMap__create_closure: function PathMap__create_closure(t0) {
  18062. this._box_0 = t0;
  18063. },
  18064. PathMap__create_closure0: function PathMap__create_closure0(t0) {
  18065. this._box_0 = t0;
  18066. },
  18067. PathMap__create_closure1: function PathMap__create_closure1() {
  18068. },
  18069. ColorExpression: function ColorExpression(t0) {
  18070. this.value = t0;
  18071. },
  18072. _updateComponents: function($arguments, adjust, change, scale) {
  18073. var keywords, alpha, red, green, blue, hueNumber, t2, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t3, t4, t5, _null = null,
  18074. t1 = J.getInterceptor$asx($arguments),
  18075. color = t1.$index($arguments, 0).assertColor$1("color"),
  18076. argumentList = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  18077. if (argumentList._list$_contents.length !== 0)
  18078. throw H.wrapException(E.SassScriptException$(string$.Only_op));
  18079. argumentList._wereKeywordsAccessed = true;
  18080. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.legacy_String, type$.legacy_Value);
  18081. t1 = new K._updateComponents_getParam(keywords, scale, change);
  18082. alpha = t1.call$2("alpha", 1);
  18083. red = t1.call$2("red", 255);
  18084. green = t1.call$2("green", 255);
  18085. blue = t1.call$2("blue", 255);
  18086. if (scale)
  18087. hueNumber = _null;
  18088. else {
  18089. t2 = keywords.remove$1(0, "hue");
  18090. hueNumber = t2 == null ? _null : t2.assertNumber$1("hue");
  18091. }
  18092. t2 = hueNumber == null;
  18093. if (!t2)
  18094. K._checkAngle(hueNumber, "hue");
  18095. hue = t2 ? _null : hueNumber.value;
  18096. saturation = t1.call$3$checkPercent("saturation", 100, true);
  18097. lightness = t1.call$3$checkPercent("lightness", 100, true);
  18098. whiteness = t1.call$3$assertPercent("whiteness", 100, true);
  18099. blackness = t1.call$3$assertPercent("blackness", 100, true);
  18100. if (keywords.get$isNotEmpty(keywords))
  18101. throw H.wrapException(E.SassScriptException$("No " + B.pluralize("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence(keywords.get$keys(keywords).map$1$1(0, new K._updateComponents_closure(), type$.legacy_Object), "or")) + "."));
  18102. hasRgb = red != null || green != null || blue != null;
  18103. hasSL = saturation != null || lightness != null;
  18104. hasWB = whiteness != null || blackness != null;
  18105. if (hasRgb)
  18106. t1 = hasSL || hasWB || hue != null;
  18107. else
  18108. t1 = false;
  18109. if (t1)
  18110. throw H.wrapException(E.SassScriptException$(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters."));
  18111. if (hasSL && hasWB)
  18112. throw H.wrapException(E.SassScriptException$(string$.HSL_pa));
  18113. t1 = new K._updateComponents_updateValue(change, adjust);
  18114. t2 = new K._updateComponents_updateRgb(t1);
  18115. if (hasRgb) {
  18116. t3 = t2.call$2(color.get$red(), red);
  18117. t4 = t2.call$2(color.get$green(), green);
  18118. t2 = t2.call$2(color.get$blue(), blue);
  18119. return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color.alpha, alpha, 1), t2, t4, t3);
  18120. } else if (hasWB) {
  18121. if (change)
  18122. t2 = hue;
  18123. else {
  18124. t2 = color.get$hue();
  18125. t2 += hue == null ? 0 : hue;
  18126. }
  18127. t3 = t1.call$3(color.get$whiteness(), whiteness, 100);
  18128. t4 = t1.call$3(color.get$blackness(), blackness, 100);
  18129. t5 = color.alpha;
  18130. t1 = t1.call$3(t5, alpha, 1);
  18131. if (t2 == null)
  18132. t2 = color.get$hue();
  18133. if (t3 == null)
  18134. t3 = color.get$whiteness();
  18135. if (t4 == null)
  18136. t4 = color.get$blackness();
  18137. return K.SassColor_SassColor$hwb(t2, t3, t4, t1 == null ? t5 : t1);
  18138. } else {
  18139. t2 = hue == null;
  18140. if (!t2 || hasSL) {
  18141. if (change)
  18142. t2 = hue;
  18143. else {
  18144. t3 = color.get$hue();
  18145. t3 += t2 ? 0 : hue;
  18146. t2 = t3;
  18147. }
  18148. t3 = t1.call$3(color.get$saturation(), saturation, 100);
  18149. t4 = t1.call$3(color.get$lightness(), lightness, 100);
  18150. return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color.alpha, alpha, 1), t2, t4, t3);
  18151. } else if (alpha != null)
  18152. return color.changeAlpha$1(t1.call$3(color.alpha, alpha, 1));
  18153. else
  18154. return color;
  18155. }
  18156. },
  18157. _functionString: function($name, $arguments) {
  18158. return new D.SassString($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure(), type$.legacy_String).join$1(0, ", ") + ")", false);
  18159. },
  18160. _removedColorFunction: function($name, argument, negative) {
  18161. return Q.BuiltInCallable$function($name, "$color, $amount", new K._removedColorFunction_closure($name, argument, negative), "sass:color");
  18162. },
  18163. _rgb: function($name, $arguments) {
  18164. var t2, red, green, blue, t3, _null = null,
  18165. t1 = J.getInterceptor$asx($arguments),
  18166. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  18167. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  18168. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  18169. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  18170. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  18171. t2 = t2 === true;
  18172. } else
  18173. t2 = true;
  18174. else
  18175. t2 = true;
  18176. else
  18177. t2 = true;
  18178. if (t2)
  18179. return K._functionString($name, $arguments);
  18180. red = t1.$index($arguments, 0).assertNumber$1("red");
  18181. green = t1.$index($arguments, 1).assertNumber$1("green");
  18182. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  18183. t1 = T.fuzzyRound(K._percentageOrUnitless(red, 255, "red"));
  18184. t2 = T.fuzzyRound(K._percentageOrUnitless(green, 255, "green"));
  18185. t3 = T.fuzzyRound(K._percentageOrUnitless(blue, 255, "blue"));
  18186. return K.SassColor$rgb(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  18187. },
  18188. _rgbTwoArg: function($name, $arguments) {
  18189. var first, t2, color,
  18190. t1 = J.getInterceptor$asx($arguments);
  18191. if (t1.$index($arguments, 0).get$isVar())
  18192. return K._functionString($name, $arguments);
  18193. else if (t1.$index($arguments, 1).get$isVar()) {
  18194. first = t1.$index($arguments, 0);
  18195. if (first instanceof K.SassColor) {
  18196. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  18197. t1 = t1.$index($arguments, 1);
  18198. t1.toString;
  18199. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  18200. } else
  18201. return K._functionString($name, $arguments);
  18202. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  18203. color = t1.$index($arguments, 0).assertColor$1("color");
  18204. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  18205. t1 = t1.$index($arguments, 1);
  18206. t1.toString;
  18207. return new D.SassString(t2 + N.serializeValue0(t1, false, true) + ")", false);
  18208. }
  18209. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  18210. },
  18211. _hsl: function($name, $arguments) {
  18212. var t2, hue, saturation, lightness, t3,
  18213. _s10_ = "saturation",
  18214. _s9_ = "lightness",
  18215. t1 = J.getInterceptor$asx($arguments),
  18216. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  18217. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  18218. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  18219. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  18220. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  18221. t2 = t2 === true;
  18222. } else
  18223. t2 = true;
  18224. else
  18225. t2 = true;
  18226. else
  18227. t2 = true;
  18228. if (t2)
  18229. return K._functionString($name, $arguments);
  18230. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  18231. saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
  18232. lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
  18233. K._checkAngle(hue, "hue");
  18234. K._checkPercent(saturation, _s10_);
  18235. K._checkPercent(lightness, _s9_);
  18236. t1 = J.clamp$2$n(saturation.value, 0, 100);
  18237. t2 = J.clamp$2$n(lightness.value, 0, 100);
  18238. t3 = alpha == null ? null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  18239. return K.SassColor$hsl(hue.value, t1, t2, t3);
  18240. },
  18241. _checkAngle: function(angle, $name) {
  18242. var t2, t3, actualUnit,
  18243. _s31_ = "To preserve current behavior: $",
  18244. t1 = angle.numeratorUnits;
  18245. if (!(t1.length !== 0 || angle.denominatorUnits.length !== 0) || angle.hasUnit$1("deg"))
  18246. return;
  18247. t2 = "$" + H.S($name);
  18248. t2 + string$.x3a_Passu;
  18249. t2 += string$.x3a_Passu_;
  18250. if (angle.compatibleWithUnit$1("deg")) {
  18251. t3 = type$.JSArray_legacy_String;
  18252. t3 = t2 + ("You're passing " + angle.toString$0(0) + string$.x2c_whici + T.SassNumber$(angle.value, "deg").toString$0(0) + ".\n") + (string$.Soon__ + angle.coerce$2(H.setRuntimeTypeInfo(["deg"], t3), H.setRuntimeTypeInfo([], t3)).toString$0(0) + ".\n") + "\n";
  18253. actualUnit = C.JSArray_methods.get$first(t1);
  18254. t3 = t3 + (_s31_ + H.S($name) + " * 1deg/1" + H.S(actualUnit) + "\n") + ("To migrate to new behavior: 0deg + $" + H.S($name) + "\n") + "\n";
  18255. t1 = t3;
  18256. } else
  18257. t1 = t2 + (_s31_ + H.S($name) + K._removeUnits(angle) + "\n") + "\n";
  18258. t1 += "See https://sass-lang.com/d/color-units";
  18259. N.warn(t1.charCodeAt(0) == 0 ? t1 : t1, true);
  18260. },
  18261. _checkPercent: function(number, $name) {
  18262. if (number.hasUnit$1("%"))
  18263. return;
  18264. N.warn("$" + $name + string$.x3a_Passn + $name + K._removeUnits(number) + " * 1%", true);
  18265. },
  18266. _removeUnits: function(number) {
  18267. var t1 = number.denominatorUnits,
  18268. t2 = number.numeratorUnits;
  18269. return new H.MappedListIterable(t1, new K._removeUnits_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0) + new H.MappedListIterable(t2, new K._removeUnits_closure0(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  18270. },
  18271. _hwb: function($arguments) {
  18272. var t2, t3,
  18273. _s9_ = "whiteness",
  18274. t1 = J.getInterceptor$asx($arguments),
  18275. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  18276. hue = t1.$index($arguments, 0).assertNumber$1("hue"),
  18277. whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
  18278. blackness = t1.$index($arguments, 2).assertNumber$1("blackness");
  18279. whiteness.assertUnit$2("%", _s9_);
  18280. blackness.assertUnit$2("%", _s9_);
  18281. t1 = whiteness.valueInRange$3(0, 100, _s9_);
  18282. t2 = blackness.valueInRange$3(0, 100, _s9_);
  18283. t3 = alpha == null ? null : K._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  18284. return K.SassColor_SassColor$hwb(hue.value, t1, t2, t3);
  18285. },
  18286. _parseChannels: function($name, argumentNames, channels) {
  18287. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  18288. _s17_ = "$channels must be",
  18289. _s32_ = "$channels must be an unbracketed";
  18290. if (channels.get$isVar())
  18291. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  18292. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma;
  18293. isBracketed = channels.get$hasBrackets();
  18294. if (isCommaSeparated || isBracketed) {
  18295. buffer = new P.StringBuffer(_s17_);
  18296. if (isBracketed) {
  18297. buffer._contents = _s32_;
  18298. t1 = _s32_;
  18299. } else
  18300. t1 = _s17_;
  18301. if (isCommaSeparated) {
  18302. t1 += isBracketed ? "," : " a";
  18303. buffer._contents = t1;
  18304. t1 = buffer._contents = t1 + " space-separated";
  18305. }
  18306. buffer._contents = t1 + " list.";
  18307. throw H.wrapException(E.SassScriptException$(buffer.toString$0(0)));
  18308. }
  18309. list = channels.get$asList();
  18310. t1 = list.length;
  18311. if (t1 > 3)
  18312. throw H.wrapException(E.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed."));
  18313. else if (t1 < 3) {
  18314. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure()))
  18315. if (list.length !== 0) {
  18316. t1 = C.JSArray_methods.get$last(list);
  18317. if (t1 instanceof D.SassString)
  18318. if (t1.hasQuotes) {
  18319. t1 = t1.text;
  18320. t1 = B.startsWithIgnoreCase(t1, "var(") && J.contains$1$asx(t1, "/");
  18321. } else
  18322. t1 = false;
  18323. else
  18324. t1 = false;
  18325. } else
  18326. t1 = false;
  18327. else
  18328. t1 = true;
  18329. if (t1)
  18330. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  18331. else
  18332. throw H.wrapException(E.SassScriptException$("Missing element " + argumentNames[list.length] + "."));
  18333. }
  18334. maybeSlashSeparated = list[2];
  18335. if (maybeSlashSeparated instanceof T.SassNumber && maybeSlashSeparated.asSlash != null) {
  18336. t1 = list[0];
  18337. t2 = list[1];
  18338. t3 = maybeSlashSeparated.asSlash;
  18339. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_legacy_Value);
  18340. } else if (maybeSlashSeparated instanceof D.SassString && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  18341. return K._functionString($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value));
  18342. else
  18343. return list;
  18344. },
  18345. _percentageOrUnitless: function(number, max, $name) {
  18346. var value;
  18347. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  18348. value = number.value;
  18349. else if (number.hasUnit$1("%"))
  18350. value = max * number.value / 100;
  18351. else
  18352. throw H.wrapException(E.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  18353. return J.clamp$2$n(value, 0, max);
  18354. },
  18355. _mixColors: function(color1, color2, weight) {
  18356. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  18357. normalizedWeight = weightScale * 2 - 1,
  18358. t1 = color1.alpha,
  18359. t2 = color2.alpha,
  18360. alphaDistance = t1 - t2,
  18361. t3 = normalizedWeight * alphaDistance,
  18362. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  18363. weight2 = 1 - weight1;
  18364. return K.SassColor$rgb(T.fuzzyRound(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  18365. },
  18366. _opacify: function($arguments) {
  18367. var t1 = J.getInterceptor$asx($arguments),
  18368. color = t1.$index($arguments, 0).assertColor$1("color");
  18369. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  18370. },
  18371. _transparentize: function($arguments) {
  18372. var t1 = J.getInterceptor$asx($arguments),
  18373. color = t1.$index($arguments, 0).assertColor$1("color");
  18374. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  18375. },
  18376. _function4: function($name, $arguments, callback) {
  18377. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:color");
  18378. },
  18379. closure44: function closure44() {
  18380. },
  18381. closure45: function closure45() {
  18382. },
  18383. closure46: function closure46() {
  18384. },
  18385. closure47: function closure47() {
  18386. },
  18387. closure48: function closure48() {
  18388. },
  18389. closure49: function closure49() {
  18390. },
  18391. closure50: function closure50() {
  18392. },
  18393. closure51: function closure51() {
  18394. },
  18395. closure52: function closure52() {
  18396. },
  18397. closure53: function closure53() {
  18398. },
  18399. closure54: function closure54() {
  18400. },
  18401. closure55: function closure55() {
  18402. },
  18403. closure56: function closure56() {
  18404. },
  18405. closure57: function closure57() {
  18406. },
  18407. closure58: function closure58() {
  18408. },
  18409. closure59: function closure59() {
  18410. },
  18411. closure60: function closure60() {
  18412. },
  18413. closure61: function closure61() {
  18414. },
  18415. closure62: function closure62() {
  18416. },
  18417. closure63: function closure63() {
  18418. },
  18419. closure64: function closure64() {
  18420. },
  18421. closure65: function closure65() {
  18422. },
  18423. closure66: function closure66() {
  18424. },
  18425. closure67: function closure67() {
  18426. },
  18427. closure68: function closure68() {
  18428. },
  18429. closure69: function closure69() {
  18430. },
  18431. _closure8: function _closure8() {
  18432. },
  18433. closure70: function closure70() {
  18434. },
  18435. closure99: function closure99() {
  18436. },
  18437. closure100: function closure100() {
  18438. },
  18439. closure101: function closure101() {
  18440. },
  18441. closure102: function closure102() {
  18442. },
  18443. closure103: function closure103() {
  18444. },
  18445. closure104: function closure104() {
  18446. },
  18447. closure105: function closure105() {
  18448. },
  18449. closure106: function closure106() {
  18450. },
  18451. _closure13: function _closure13() {
  18452. },
  18453. closure107: function closure107() {
  18454. },
  18455. closure82: function closure82() {
  18456. },
  18457. closure81: function closure81() {
  18458. },
  18459. closure80: function closure80() {
  18460. },
  18461. closure79: function closure79() {
  18462. },
  18463. closure78: function closure78() {
  18464. },
  18465. closure77: function closure77() {
  18466. },
  18467. closure76: function closure76() {
  18468. },
  18469. closure75: function closure75() {
  18470. },
  18471. closure73: function closure73() {
  18472. },
  18473. closure72: function closure72() {
  18474. },
  18475. closure71: function closure71() {
  18476. },
  18477. closure74: function closure74() {
  18478. },
  18479. closure_hexString: function closure_hexString() {
  18480. },
  18481. _updateComponents_getParam: function _updateComponents_getParam(t0, t1, t2) {
  18482. this.keywords = t0;
  18483. this.scale = t1;
  18484. this.change = t2;
  18485. },
  18486. _updateComponents_closure: function _updateComponents_closure() {
  18487. },
  18488. _updateComponents_updateValue: function _updateComponents_updateValue(t0, t1) {
  18489. this.change = t0;
  18490. this.adjust = t1;
  18491. },
  18492. _updateComponents_updateRgb: function _updateComponents_updateRgb(t0) {
  18493. this.updateValue = t0;
  18494. },
  18495. _functionString_closure: function _functionString_closure() {
  18496. },
  18497. _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
  18498. this.name = t0;
  18499. this.argument = t1;
  18500. this.negative = t2;
  18501. },
  18502. _removeUnits_closure: function _removeUnits_closure() {
  18503. },
  18504. _removeUnits_closure0: function _removeUnits_closure0() {
  18505. },
  18506. _parseChannels_closure: function _parseChannels_closure() {
  18507. },
  18508. _fuzzyRoundIfZero: function(number) {
  18509. if (!(Math.abs(number - 0) < $.$get$epsilon()))
  18510. return number;
  18511. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  18512. },
  18513. _numberFunction: function($name, transform) {
  18514. return Q.BuiltInCallable$function($name, "$number", new K._numberFunction_closure(transform), "sass:math");
  18515. },
  18516. _function1: function($name, $arguments, callback) {
  18517. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:math");
  18518. },
  18519. closure25: function closure25() {
  18520. },
  18521. closure90: function closure90() {
  18522. },
  18523. closure24: function closure24() {
  18524. },
  18525. closure23: function closure23() {
  18526. },
  18527. closure22: function closure22() {
  18528. },
  18529. closure26: function closure26() {
  18530. },
  18531. closure88: function closure88() {
  18532. },
  18533. _closure9: function _closure9() {
  18534. },
  18535. closure87: function closure87() {
  18536. },
  18537. closure86: function closure86() {
  18538. },
  18539. closure84: function closure84() {
  18540. },
  18541. closure94: function closure94() {
  18542. },
  18543. closure93: function closure93() {
  18544. },
  18545. closure92: function closure92() {
  18546. },
  18547. closure91: function closure91() {
  18548. },
  18549. closure89: function closure89() {
  18550. },
  18551. closure85: function closure85() {
  18552. },
  18553. closure83: function closure83() {
  18554. },
  18555. closure18: function closure18() {
  18556. },
  18557. closure17: function closure17() {
  18558. },
  18559. closure19: function closure19() {
  18560. },
  18561. closure21: function closure21() {
  18562. },
  18563. closure20: function closure20() {
  18564. },
  18565. _numberFunction_closure: function _numberFunction_closure(t0) {
  18566. this.transform = t0;
  18567. },
  18568. LimitedMapView$blocklist: function(_map, blocklist, $K, $V) {
  18569. var t2, key,
  18570. t1 = P.LinkedHashSet_LinkedHashSet($K._eval$1("0*"));
  18571. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  18572. key = t2.get$current(t2);
  18573. if (!blocklist.contains$1(0, key))
  18574. t1.add$1(0, key);
  18575. }
  18576. return new K.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  18577. },
  18578. LimitedMapView: function LimitedMapView(t0, t1, t2) {
  18579. this._limited_map_view$_map = t0;
  18580. this._limited_map_view$_keys = t1;
  18581. this.$ti = t2;
  18582. },
  18583. SassColor$rgb: function(_red, _green, _blue, alpha, originalSpan) {
  18584. var t1 = new K.SassColor(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), originalSpan);
  18585. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  18586. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  18587. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  18588. return t1;
  18589. },
  18590. SassColor$hsl: function(hue, saturation, lightness, alpha) {
  18591. var _null = null,
  18592. t1 = C.JSNumber_methods.$mod(hue, 360),
  18593. t2 = T.fuzzyAssertRange(saturation, 0, 100, "saturation"),
  18594. t3 = T.fuzzyAssertRange(lightness, 0, 100, "lightness");
  18595. return new K.SassColor(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange(alpha, 0, 1, "alpha"), _null);
  18596. },
  18597. SassColor_SassColor$hwb: function(hue, whiteness, blackness, alpha) {
  18598. var t2, t1 = {},
  18599. scaledHue = C.JSNumber_methods.$mod(hue, 360) / 360,
  18600. scaledWhiteness = t1.scaledWhiteness = T.fuzzyAssertRange(whiteness, 0, 100, "whiteness") / 100,
  18601. scaledBlackness = T.fuzzyAssertRange(blackness, 0, 100, "blackness") / 100,
  18602. sum = scaledWhiteness + scaledBlackness;
  18603. if (sum > 1) {
  18604. t2 = t1.scaledWhiteness = scaledWhiteness / sum;
  18605. scaledBlackness /= sum;
  18606. } else
  18607. t2 = scaledWhiteness;
  18608. t2 = new K.SassColor_SassColor$hwb_toRgb(t1, 1 - t2 - scaledBlackness);
  18609. return K.SassColor$rgb(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha, null);
  18610. },
  18611. SassColor__hueToRgb: function(m1, m2, hue) {
  18612. if (hue < 0)
  18613. ++hue;
  18614. if (hue > 1)
  18615. --hue;
  18616. if (hue < 0.16666666666666666)
  18617. return m1 + (m2 - m1) * hue * 6;
  18618. else if (hue < 0.5)
  18619. return m2;
  18620. else if (hue < 0.6666666666666666)
  18621. return m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  18622. else
  18623. return m1;
  18624. },
  18625. SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
  18626. var _ = this;
  18627. _._red = t0;
  18628. _._green = t1;
  18629. _._blue = t2;
  18630. _._hue = t3;
  18631. _._saturation = t4;
  18632. _._lightness = t5;
  18633. _.alpha = t6;
  18634. _.originalSpan = t7;
  18635. },
  18636. SassColor_SassColor$hwb_toRgb: function SassColor_SassColor$hwb_toRgb(t0, t1) {
  18637. this._box_0 = t0;
  18638. this.factor = t1;
  18639. },
  18640. UnicodeGlyphSet: function UnicodeGlyphSet() {
  18641. },
  18642. ColorExpression0: function ColorExpression0(t0) {
  18643. this.value = t0;
  18644. },
  18645. _updateComponents0: function($arguments, adjust, change, scale) {
  18646. var keywords, alpha, red, green, blue, hueNumber, t2, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t3, t4, t5, _null = null,
  18647. t1 = J.getInterceptor$asx($arguments),
  18648. color = t1.$index($arguments, 0).assertColor$1("color"),
  18649. argumentList = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  18650. if (argumentList._list1$_contents.length !== 0)
  18651. throw H.wrapException(E.SassScriptException$0(string$.Only_op));
  18652. argumentList._argument_list$_wereKeywordsAccessed = true;
  18653. keywords = P.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.legacy_String, type$.legacy_Value_2);
  18654. t1 = new K._updateComponents_getParam0(keywords, scale, change);
  18655. alpha = t1.call$2("alpha", 1);
  18656. red = t1.call$2("red", 255);
  18657. green = t1.call$2("green", 255);
  18658. blue = t1.call$2("blue", 255);
  18659. if (scale)
  18660. hueNumber = _null;
  18661. else {
  18662. t2 = keywords.remove$1(0, "hue");
  18663. hueNumber = t2 == null ? _null : t2.assertNumber$1("hue");
  18664. }
  18665. t2 = hueNumber == null;
  18666. if (!t2)
  18667. K._checkAngle0(hueNumber, "hue");
  18668. hue = t2 ? _null : hueNumber.value;
  18669. saturation = t1.call$3$checkPercent("saturation", 100, true);
  18670. lightness = t1.call$3$checkPercent("lightness", 100, true);
  18671. whiteness = t1.call$3$assertPercent("whiteness", 100, true);
  18672. blackness = t1.call$3$assertPercent("blackness", 100, true);
  18673. if (keywords.get$isNotEmpty(keywords))
  18674. throw H.wrapException(E.SassScriptException$0("No " + B.pluralize0("argument", keywords.get$length(keywords), _null) + " named " + H.S(B.toSentence0(keywords.get$keys(keywords).map$1$1(0, new K._updateComponents_closure0(), type$.legacy_Object), "or")) + "."));
  18675. hasRgb = red != null || green != null || blue != null;
  18676. hasSL = saturation != null || lightness != null;
  18677. hasWB = whiteness != null || blackness != null;
  18678. if (hasRgb)
  18679. t1 = hasSL || hasWB || hue != null;
  18680. else
  18681. t1 = false;
  18682. if (t1)
  18683. throw H.wrapException(E.SassScriptException$0(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters."));
  18684. if (hasSL && hasWB)
  18685. throw H.wrapException(E.SassScriptException$0(string$.HSL_pa));
  18686. t1 = new K._updateComponents_updateValue0(change, adjust);
  18687. t2 = new K._updateComponents_updateRgb0(t1);
  18688. if (hasRgb) {
  18689. t3 = t2.call$2(color.get$red(), red);
  18690. t4 = t2.call$2(color.get$green(), green);
  18691. t2 = t2.call$2(color.get$blue(), blue);
  18692. return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color.alpha, alpha, 1), t2, t4, t3);
  18693. } else if (hasWB) {
  18694. if (change)
  18695. t2 = hue;
  18696. else {
  18697. t2 = color.get$hue();
  18698. t2 += hue == null ? 0 : hue;
  18699. }
  18700. t3 = t1.call$3(color.get$whiteness(), whiteness, 100);
  18701. t4 = t1.call$3(color.get$blackness(), blackness, 100);
  18702. t5 = color.alpha;
  18703. t1 = t1.call$3(t5, alpha, 1);
  18704. if (t2 == null)
  18705. t2 = color.get$hue();
  18706. if (t3 == null)
  18707. t3 = color.get$whiteness();
  18708. if (t4 == null)
  18709. t4 = color.get$blackness();
  18710. return K.SassColor_SassColor$hwb0(t2, t3, t4, t1 == null ? t5 : t1);
  18711. } else {
  18712. t2 = hue == null;
  18713. if (!t2 || hasSL) {
  18714. if (change)
  18715. t2 = hue;
  18716. else {
  18717. t3 = color.get$hue();
  18718. t3 += t2 ? 0 : hue;
  18719. t2 = t3;
  18720. }
  18721. t3 = t1.call$3(color.get$saturation(), saturation, 100);
  18722. t4 = t1.call$3(color.get$lightness(), lightness, 100);
  18723. return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color.alpha, alpha, 1), t2, t4, t3);
  18724. } else if (alpha != null)
  18725. return color.changeAlpha$1(t1.call$3(color.alpha, alpha, 1));
  18726. else
  18727. return color;
  18728. }
  18729. },
  18730. _functionString0: function($name, $arguments) {
  18731. return new D.SassString0($name + "(" + J.map$1$1$ax($arguments, new K._functionString_closure0(), type$.legacy_String).join$1(0, ", ") + ")", false);
  18732. },
  18733. _removedColorFunction0: function($name, argument, negative) {
  18734. return Q.BuiltInCallable$function0($name, "$color, $amount", new K._removedColorFunction_closure0($name, argument, negative), "sass:color");
  18735. },
  18736. _rgb0: function($name, $arguments) {
  18737. var t2, red, green, blue, t3, _null = null,
  18738. t1 = J.getInterceptor$asx($arguments),
  18739. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : _null;
  18740. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  18741. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  18742. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  18743. t2 = alpha == null ? _null : alpha.get$isSpecialNumber();
  18744. t2 = t2 === true;
  18745. } else
  18746. t2 = true;
  18747. else
  18748. t2 = true;
  18749. else
  18750. t2 = true;
  18751. if (t2)
  18752. return K._functionString0($name, $arguments);
  18753. red = t1.$index($arguments, 0).assertNumber$1("red");
  18754. green = t1.$index($arguments, 1).assertNumber$1("green");
  18755. blue = t1.$index($arguments, 2).assertNumber$1("blue");
  18756. t1 = T.fuzzyRound0(K._percentageOrUnitless0(red, 255, "red"));
  18757. t2 = T.fuzzyRound0(K._percentageOrUnitless0(green, 255, "green"));
  18758. t3 = T.fuzzyRound0(K._percentageOrUnitless0(blue, 255, "blue"));
  18759. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha"), _null);
  18760. },
  18761. _rgbTwoArg0: function($name, $arguments) {
  18762. var first, t2, color,
  18763. t1 = J.getInterceptor$asx($arguments);
  18764. if (t1.$index($arguments, 0).get$isVar())
  18765. return K._functionString0($name, $arguments);
  18766. else if (t1.$index($arguments, 1).get$isVar()) {
  18767. first = t1.$index($arguments, 0);
  18768. if (first instanceof K.SassColor0) {
  18769. t2 = $name + "(" + H.S(first.get$red()) + ", " + H.S(first.get$green()) + ", " + H.S(first.get$blue()) + ", ";
  18770. t1 = t1.$index($arguments, 1);
  18771. t1.toString;
  18772. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  18773. } else
  18774. return K._functionString0($name, $arguments);
  18775. } else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
  18776. color = t1.$index($arguments, 0).assertColor$1("color");
  18777. t2 = $name + "(" + H.S(color.get$red()) + ", " + H.S(color.get$green()) + ", " + H.S(color.get$blue()) + ", ";
  18778. t1 = t1.$index($arguments, 1);
  18779. t1.toString;
  18780. return new D.SassString0(t2 + N.serializeValue(t1, false, true) + ")", false);
  18781. }
  18782. return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(K._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
  18783. },
  18784. _hsl0: function($name, $arguments) {
  18785. var t2, hue, saturation, lightness, t3,
  18786. _s10_ = "saturation",
  18787. _s9_ = "lightness",
  18788. t1 = J.getInterceptor$asx($arguments),
  18789. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
  18790. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  18791. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  18792. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  18793. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  18794. t2 = t2 === true;
  18795. } else
  18796. t2 = true;
  18797. else
  18798. t2 = true;
  18799. else
  18800. t2 = true;
  18801. if (t2)
  18802. return K._functionString0($name, $arguments);
  18803. hue = t1.$index($arguments, 0).assertNumber$1("hue");
  18804. saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
  18805. lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
  18806. K._checkAngle0(hue, "hue");
  18807. K._checkPercent0(saturation, _s10_);
  18808. K._checkPercent0(lightness, _s9_);
  18809. t1 = J.clamp$2$n(saturation.value, 0, 100);
  18810. t2 = J.clamp$2$n(lightness.value, 0, 100);
  18811. t3 = alpha == null ? null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  18812. return K.SassColor$hsl0(hue.value, t1, t2, t3);
  18813. },
  18814. _checkAngle0: function(angle, $name) {
  18815. var t2, t3, actualUnit,
  18816. _s31_ = "To preserve current behavior: $",
  18817. t1 = angle.numeratorUnits;
  18818. if (!(t1.length !== 0 || angle.denominatorUnits.length !== 0) || angle.hasUnit$1("deg"))
  18819. return;
  18820. t2 = "$" + H.S($name);
  18821. t2 + string$.x3a_Passu;
  18822. t2 += string$.x3a_Passu_;
  18823. if (angle.compatibleWithUnit$1("deg")) {
  18824. t3 = type$.JSArray_legacy_String;
  18825. t3 = t2 + ("You're passing " + angle.toString$0(0) + string$.x2c_whici + T.SassNumber$0(angle.value, "deg").toString$0(0) + ".\n") + (string$.Soon__ + angle.coerce$2(H.setRuntimeTypeInfo(["deg"], t3), H.setRuntimeTypeInfo([], t3)).toString$0(0) + ".\n") + "\n";
  18826. actualUnit = C.JSArray_methods.get$first(t1);
  18827. t3 = t3 + (_s31_ + H.S($name) + " * 1deg/1" + H.S(actualUnit) + "\n") + ("To migrate to new behavior: 0deg + $" + H.S($name) + "\n") + "\n";
  18828. t1 = t3;
  18829. } else
  18830. t1 = t2 + (_s31_ + H.S($name) + K._removeUnits0(angle) + "\n") + "\n";
  18831. t1 += "See https://sass-lang.com/d/color-units";
  18832. N.warn0(t1.charCodeAt(0) == 0 ? t1 : t1, true);
  18833. },
  18834. _checkPercent0: function(number, $name) {
  18835. if (number.hasUnit$1("%"))
  18836. return;
  18837. N.warn0("$" + $name + string$.x3a_Passn + $name + K._removeUnits0(number) + " * 1%", true);
  18838. },
  18839. _removeUnits0: function(number) {
  18840. var t1 = number.denominatorUnits,
  18841. t2 = number.numeratorUnits;
  18842. return new H.MappedListIterable(t1, new K._removeUnits_closure1(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0) + new H.MappedListIterable(t2, new K._removeUnits_closure2(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  18843. },
  18844. _hwb0: function($arguments) {
  18845. var t2, t3,
  18846. _s9_ = "whiteness",
  18847. t1 = J.getInterceptor$asx($arguments),
  18848. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  18849. hue = t1.$index($arguments, 0).assertNumber$1("hue"),
  18850. whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
  18851. blackness = t1.$index($arguments, 2).assertNumber$1("blackness");
  18852. whiteness.assertUnit$2("%", _s9_);
  18853. blackness.assertUnit$2("%", _s9_);
  18854. t1 = whiteness.valueInRange$3(0, 100, _s9_);
  18855. t2 = blackness.valueInRange$3(0, 100, _s9_);
  18856. t3 = alpha == null ? null : K._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  18857. return K.SassColor_SassColor$hwb0(hue.value, t1, t2, t3);
  18858. },
  18859. _parseChannels0: function($name, argumentNames, channels) {
  18860. var isCommaSeparated, isBracketed, buffer, t1, list, maybeSlashSeparated, t2, t3,
  18861. _s17_ = "$channels must be",
  18862. _s32_ = "$channels must be an unbracketed";
  18863. if (channels.get$isVar())
  18864. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  18865. isCommaSeparated = channels.get$separator() === C.ListSeparator_comma0;
  18866. isBracketed = channels.get$hasBrackets();
  18867. if (isCommaSeparated || isBracketed) {
  18868. buffer = new P.StringBuffer(_s17_);
  18869. if (isBracketed) {
  18870. buffer._contents = _s32_;
  18871. t1 = _s32_;
  18872. } else
  18873. t1 = _s17_;
  18874. if (isCommaSeparated) {
  18875. t1 += isBracketed ? "," : " a";
  18876. buffer._contents = t1;
  18877. t1 = buffer._contents = t1 + " space-separated";
  18878. }
  18879. buffer._contents = t1 + " list.";
  18880. throw H.wrapException(E.SassScriptException$0(buffer.toString$0(0)));
  18881. }
  18882. list = channels.get$asList();
  18883. t1 = list.length;
  18884. if (t1 > 3)
  18885. throw H.wrapException(E.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed."));
  18886. else if (t1 < 3) {
  18887. if (!C.JSArray_methods.any$1(list, new K._parseChannels_closure0()))
  18888. if (list.length !== 0) {
  18889. t1 = C.JSArray_methods.get$last(list);
  18890. if (t1 instanceof D.SassString0)
  18891. if (t1.hasQuotes) {
  18892. t1 = t1.text;
  18893. t1 = B.startsWithIgnoreCase0(t1, "var(") && J.contains$1$asx(t1, "/");
  18894. } else
  18895. t1 = false;
  18896. else
  18897. t1 = false;
  18898. } else
  18899. t1 = false;
  18900. else
  18901. t1 = true;
  18902. if (t1)
  18903. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  18904. else
  18905. throw H.wrapException(E.SassScriptException$0("Missing element " + argumentNames[list.length] + "."));
  18906. }
  18907. maybeSlashSeparated = list[2];
  18908. if (maybeSlashSeparated instanceof T.SassNumber0 && maybeSlashSeparated.asSlash != null) {
  18909. t1 = list[0];
  18910. t2 = list[1];
  18911. t3 = maybeSlashSeparated.asSlash;
  18912. return H.setRuntimeTypeInfo([t1, t2, t3.item1, t3.item2], type$.JSArray_legacy_Value_2);
  18913. } else if (maybeSlashSeparated instanceof D.SassString0 && !maybeSlashSeparated.hasQuotes && J.contains$1$asx(maybeSlashSeparated.text, "/"))
  18914. return K._functionString0($name, H.setRuntimeTypeInfo([channels], type$.JSArray_legacy_Value_2));
  18915. else
  18916. return list;
  18917. },
  18918. _percentageOrUnitless0: function(number, max, $name) {
  18919. var value;
  18920. if (!(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0))
  18921. value = number.value;
  18922. else if (number.hasUnit$1("%"))
  18923. value = max * number.value / 100;
  18924. else
  18925. throw H.wrapException(E.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have no units or "%".'));
  18926. return J.clamp$2$n(value, 0, max);
  18927. },
  18928. _mixColors0: function(color1, color2, weight) {
  18929. var weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  18930. normalizedWeight = weightScale * 2 - 1,
  18931. t1 = color1.alpha,
  18932. t2 = color2.alpha,
  18933. alphaDistance = t1 - t2,
  18934. t3 = normalizedWeight * alphaDistance,
  18935. weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2,
  18936. weight2 = 1 - weight1;
  18937. return K.SassColor$rgb0(T.fuzzyRound0(color1.get$red() * weight1 + color2.get$red() * weight2), T.fuzzyRound0(color1.get$green() * weight1 + color2.get$green() * weight2), T.fuzzyRound0(color1.get$blue() * weight1 + color2.get$blue() * weight2), t1 * weightScale + t2 * (1 - weightScale), null);
  18938. },
  18939. _opacify0: function($arguments) {
  18940. var t1 = J.getInterceptor$asx($arguments),
  18941. color = t1.$index($arguments, 0).assertColor$1("color");
  18942. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  18943. },
  18944. _transparentize0: function($arguments) {
  18945. var t1 = J.getInterceptor$asx($arguments),
  18946. color = t1.$index($arguments, 0).assertColor$1("color");
  18947. return color.changeAlpha$1(C.JSNumber_methods.clamp$2(color.alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRange$3(0, 1, "amount"), 0, 1));
  18948. },
  18949. _function11: function($name, $arguments, callback) {
  18950. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:color");
  18951. },
  18952. closure159: function closure159() {
  18953. },
  18954. closure160: function closure160() {
  18955. },
  18956. closure161: function closure161() {
  18957. },
  18958. closure162: function closure162() {
  18959. },
  18960. closure163: function closure163() {
  18961. },
  18962. closure164: function closure164() {
  18963. },
  18964. closure165: function closure165() {
  18965. },
  18966. closure166: function closure166() {
  18967. },
  18968. closure167: function closure167() {
  18969. },
  18970. closure168: function closure168() {
  18971. },
  18972. closure169: function closure169() {
  18973. },
  18974. closure170: function closure170() {
  18975. },
  18976. closure171: function closure171() {
  18977. },
  18978. closure172: function closure172() {
  18979. },
  18980. closure173: function closure173() {
  18981. },
  18982. closure174: function closure174() {
  18983. },
  18984. closure175: function closure175() {
  18985. },
  18986. closure176: function closure176() {
  18987. },
  18988. closure177: function closure177() {
  18989. },
  18990. closure178: function closure178() {
  18991. },
  18992. closure179: function closure179() {
  18993. },
  18994. closure180: function closure180() {
  18995. },
  18996. closure181: function closure181() {
  18997. },
  18998. closure182: function closure182() {
  18999. },
  19000. closure183: function closure183() {
  19001. },
  19002. closure184: function closure184() {
  19003. },
  19004. _closure23: function _closure23() {
  19005. },
  19006. closure185: function closure185() {
  19007. },
  19008. closure214: function closure214() {
  19009. },
  19010. closure215: function closure215() {
  19011. },
  19012. closure216: function closure216() {
  19013. },
  19014. closure217: function closure217() {
  19015. },
  19016. closure218: function closure218() {
  19017. },
  19018. closure219: function closure219() {
  19019. },
  19020. closure220: function closure220() {
  19021. },
  19022. closure221: function closure221() {
  19023. },
  19024. _closure28: function _closure28() {
  19025. },
  19026. closure222: function closure222() {
  19027. },
  19028. closure197: function closure197() {
  19029. },
  19030. closure196: function closure196() {
  19031. },
  19032. closure195: function closure195() {
  19033. },
  19034. closure194: function closure194() {
  19035. },
  19036. closure193: function closure193() {
  19037. },
  19038. closure192: function closure192() {
  19039. },
  19040. closure191: function closure191() {
  19041. },
  19042. closure190: function closure190() {
  19043. },
  19044. closure188: function closure188() {
  19045. },
  19046. closure187: function closure187() {
  19047. },
  19048. closure186: function closure186() {
  19049. },
  19050. closure189: function closure189() {
  19051. },
  19052. closure_hexString0: function closure_hexString0() {
  19053. },
  19054. _updateComponents_getParam0: function _updateComponents_getParam0(t0, t1, t2) {
  19055. this.keywords = t0;
  19056. this.scale = t1;
  19057. this.change = t2;
  19058. },
  19059. _updateComponents_closure0: function _updateComponents_closure0() {
  19060. },
  19061. _updateComponents_updateValue0: function _updateComponents_updateValue0(t0, t1) {
  19062. this.change = t0;
  19063. this.adjust = t1;
  19064. },
  19065. _updateComponents_updateRgb0: function _updateComponents_updateRgb0(t0) {
  19066. this.updateValue = t0;
  19067. },
  19068. _functionString_closure0: function _functionString_closure0() {
  19069. },
  19070. _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
  19071. this.name = t0;
  19072. this.argument = t1;
  19073. this.negative = t2;
  19074. },
  19075. _removeUnits_closure1: function _removeUnits_closure1() {
  19076. },
  19077. _removeUnits_closure2: function _removeUnits_closure2() {
  19078. },
  19079. _parseChannels_closure0: function _parseChannels_closure0() {
  19080. },
  19081. _NodeSassColor: function _NodeSassColor() {
  19082. },
  19083. closure253: function closure253() {
  19084. },
  19085. closure254: function closure254() {
  19086. },
  19087. closure255: function closure255() {
  19088. },
  19089. closure256: function closure256() {
  19090. },
  19091. closure257: function closure257() {
  19092. },
  19093. closure258: function closure258() {
  19094. },
  19095. closure259: function closure259() {
  19096. },
  19097. closure260: function closure260() {
  19098. },
  19099. closure261: function closure261() {
  19100. },
  19101. closure262: function closure262() {
  19102. },
  19103. SassColor$rgb0: function(_red, _green, _blue, alpha, originalSpan) {
  19104. var t1 = new K.SassColor0(_red, _green, _blue, null, null, null, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), originalSpan);
  19105. P.RangeError_checkValueInInterval(t1.get$red(), 0, 255, "red");
  19106. P.RangeError_checkValueInInterval(t1.get$green(), 0, 255, "green");
  19107. P.RangeError_checkValueInInterval(t1.get$blue(), 0, 255, "blue");
  19108. return t1;
  19109. },
  19110. SassColor$hsl0: function(hue, saturation, lightness, alpha) {
  19111. var _null = null,
  19112. t1 = C.JSNumber_methods.$mod(hue, 360),
  19113. t2 = T.fuzzyAssertRange0(saturation, 0, 100, "saturation"),
  19114. t3 = T.fuzzyAssertRange0(lightness, 0, 100, "lightness");
  19115. return new K.SassColor0(_null, _null, _null, t1, t2, t3, alpha == null ? 1 : T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), _null);
  19116. },
  19117. SassColor_SassColor$hwb0: function(hue, whiteness, blackness, alpha) {
  19118. var t2, t1 = {},
  19119. scaledHue = C.JSNumber_methods.$mod(hue, 360) / 360,
  19120. scaledWhiteness = t1.scaledWhiteness = T.fuzzyAssertRange0(whiteness, 0, 100, "whiteness") / 100,
  19121. scaledBlackness = T.fuzzyAssertRange0(blackness, 0, 100, "blackness") / 100,
  19122. sum = scaledWhiteness + scaledBlackness;
  19123. if (sum > 1) {
  19124. t2 = t1.scaledWhiteness = scaledWhiteness / sum;
  19125. scaledBlackness /= sum;
  19126. } else
  19127. t2 = scaledWhiteness;
  19128. t2 = new K.SassColor_SassColor$hwb_toRgb0(t1, 1 - t2 - scaledBlackness);
  19129. return K.SassColor$rgb0(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha, null);
  19130. },
  19131. SassColor__hueToRgb0: function(m1, m2, hue) {
  19132. if (hue < 0)
  19133. ++hue;
  19134. if (hue > 1)
  19135. --hue;
  19136. if (hue < 0.16666666666666666)
  19137. return m1 + (m2 - m1) * hue * 6;
  19138. else if (hue < 0.5)
  19139. return m2;
  19140. else if (hue < 0.6666666666666666)
  19141. return m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  19142. else
  19143. return m1;
  19144. },
  19145. SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
  19146. var _ = this;
  19147. _._color0$_red = t0;
  19148. _._color0$_green = t1;
  19149. _._color0$_blue = t2;
  19150. _._color0$_hue = t3;
  19151. _._color0$_saturation = t4;
  19152. _._color0$_lightness = t5;
  19153. _.alpha = t6;
  19154. _.originalSpan = t7;
  19155. },
  19156. SassColor_SassColor$hwb_toRgb0: function SassColor_SassColor$hwb_toRgb0(t0, t1) {
  19157. this._box_0 = t0;
  19158. this.factor = t1;
  19159. },
  19160. LimitedMapView$blocklist0: function(_map, blocklist, $K, $V) {
  19161. var t2, key,
  19162. t1 = P.LinkedHashSet_LinkedHashSet($K._eval$1("0*"));
  19163. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  19164. key = t2.get$current(t2);
  19165. if (!blocklist.contains$1(0, key))
  19166. t1.add$1(0, key);
  19167. }
  19168. return new K.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  19169. },
  19170. LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
  19171. this._limited_map_view0$_map = t0;
  19172. this._limited_map_view0$_keys = t1;
  19173. this.$ti = t2;
  19174. },
  19175. _fuzzyRoundIfZero0: function(number) {
  19176. if (!(Math.abs(number - 0) < $.$get$epsilon0()))
  19177. return number;
  19178. return C.JSNumber_methods.get$isNegative(number) ? -0.0 : 0;
  19179. },
  19180. _numberFunction0: function($name, transform) {
  19181. return Q.BuiltInCallable$function0($name, "$number", new K._numberFunction_closure0(transform), "sass:math");
  19182. },
  19183. _function8: function($name, $arguments, callback) {
  19184. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:math");
  19185. },
  19186. closure140: function closure140() {
  19187. },
  19188. closure205: function closure205() {
  19189. },
  19190. closure139: function closure139() {
  19191. },
  19192. closure138: function closure138() {
  19193. },
  19194. closure137: function closure137() {
  19195. },
  19196. closure141: function closure141() {
  19197. },
  19198. closure203: function closure203() {
  19199. },
  19200. _closure24: function _closure24() {
  19201. },
  19202. closure202: function closure202() {
  19203. },
  19204. closure201: function closure201() {
  19205. },
  19206. closure199: function closure199() {
  19207. },
  19208. closure209: function closure209() {
  19209. },
  19210. closure208: function closure208() {
  19211. },
  19212. closure207: function closure207() {
  19213. },
  19214. closure206: function closure206() {
  19215. },
  19216. closure204: function closure204() {
  19217. },
  19218. closure200: function closure200() {
  19219. },
  19220. closure198: function closure198() {
  19221. },
  19222. closure133: function closure133() {
  19223. },
  19224. closure132: function closure132() {
  19225. },
  19226. closure134: function closure134() {
  19227. },
  19228. closure136: function closure136() {
  19229. },
  19230. closure135: function closure135() {
  19231. },
  19232. _numberFunction_closure0: function _numberFunction_closure0(t0) {
  19233. this.transform = t0;
  19234. }
  19235. },
  19236. R = {ModifiableCssComment: function ModifiableCssComment(t0, t1) {
  19237. var _ = this;
  19238. _.text = t0;
  19239. _.span = t1;
  19240. _._indexInParent = _._parent = null;
  19241. _.isGroupEnd = false;
  19242. },
  19243. ImportCache$: function(importers, loadPaths, logger) {
  19244. var t1 = R.ImportCache__toImporters(importers, loadPaths, null),
  19245. t2 = logger == null ? C.StderrLogger_false : logger,
  19246. t3 = type$.legacy_Uri;
  19247. return new R.ImportCache(t1, t2, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_Stylesheet_2), P.LinkedHashMap_LinkedHashMap$_empty(t3, type$.legacy_ImporterResult_2));
  19248. },
  19249. ImportCache__toImporters: function(importers, loadPaths, packageResolver) {
  19250. var _i, t2, t3, path, _null = null,
  19251. sassPath = H._asStringS(J.get$env$x(self.process).SASS_PATH),
  19252. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Importer);
  19253. for (_i = 0; false; ++_i)
  19254. t1.push(importers[_i]);
  19255. if (loadPaths != null)
  19256. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  19257. t3 = t2.get$current(t2);
  19258. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(t3, _null, _null, _null, _null, _null, _null)));
  19259. }
  19260. if (sassPath != null) {
  19261. t2 = sassPath.split(J.$eq$(J.get$platform$x(self.process), "win32") ? ";" : ":");
  19262. t3 = t2.length;
  19263. _i = 0;
  19264. for (; _i < t3; ++_i) {
  19265. path = t2[_i];
  19266. t1.push(new F.FilesystemImporter($.$get$context().absolute$7(path, _null, _null, _null, _null, _null, _null)));
  19267. }
  19268. }
  19269. return t1;
  19270. },
  19271. ImportCache: function ImportCache(t0, t1, t2, t3, t4) {
  19272. var _ = this;
  19273. _._importers = t0;
  19274. _._logger = t1;
  19275. _._canonicalizeCache = t2;
  19276. _._importCache = t3;
  19277. _._resultsCache = t4;
  19278. },
  19279. ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2) {
  19280. this.$this = t0;
  19281. this.url = t1;
  19282. this.forImport = t2;
  19283. },
  19284. ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
  19285. this.importer = t0;
  19286. this.url = t1;
  19287. },
  19288. ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3) {
  19289. var _ = this;
  19290. _.$this = t0;
  19291. _.importer = t1;
  19292. _.canonicalUrl = t2;
  19293. _.originalUrl = t3;
  19294. },
  19295. ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
  19296. this.canonicalUrl = t0;
  19297. },
  19298. ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
  19299. },
  19300. ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
  19301. },
  19302. ForwardedModuleView_ifNecessary: function(inner, rule, $T) {
  19303. var t1;
  19304. if (rule.prefix == null)
  19305. if (rule.shownMixinsAndFunctions == null)
  19306. if (rule.shownVariables == null) {
  19307. t1 = rule.hiddenMixinsAndFunctions;
  19308. if (t1 != null) {
  19309. t1 = t1._base;
  19310. t1 = t1.get$isEmpty(t1);
  19311. } else
  19312. t1 = true;
  19313. if (t1) {
  19314. t1 = rule.hiddenVariables;
  19315. if (t1 != null) {
  19316. t1 = t1._base;
  19317. t1 = t1.get$isEmpty(t1);
  19318. } else
  19319. t1 = true;
  19320. } else
  19321. t1 = false;
  19322. } else
  19323. t1 = false;
  19324. else
  19325. t1 = false;
  19326. else
  19327. t1 = false;
  19328. if (t1)
  19329. return inner;
  19330. else
  19331. return R.ForwardedModuleView$(inner, rule, $T._eval$1("0*"));
  19332. },
  19333. ForwardedModuleView$: function(_inner, _rule, $T) {
  19334. var t5, t6,
  19335. t1 = _rule.prefix,
  19336. t2 = _rule.shownVariables,
  19337. t3 = _rule.hiddenVariables,
  19338. t4 = R.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.legacy_Value);
  19339. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.legacy_AstNode);
  19340. t3 = _rule.shownMixinsAndFunctions;
  19341. t5 = _rule.hiddenMixinsAndFunctions;
  19342. t6 = $T._eval$1("0*");
  19343. return new R.ForwardedModuleView(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t3, t5, t6), R.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t3, t5, t6), $T._eval$1("ForwardedModuleView<0>"));
  19344. },
  19345. ForwardedModuleView__forwardedMap: function(map, prefix, safelist, blocklist, $V) {
  19346. var t2,
  19347. t1 = prefix == null;
  19348. if (t1)
  19349. if (safelist == null)
  19350. if (blocklist != null) {
  19351. t2 = blocklist._base;
  19352. t2 = t2.get$isEmpty(t2);
  19353. } else
  19354. t2 = true;
  19355. else
  19356. t2 = false;
  19357. else
  19358. t2 = false;
  19359. if (t2)
  19360. return map;
  19361. if (!t1)
  19362. map = new F.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0*>"));
  19363. if (safelist != null)
  19364. map = new K.LimitedMapView(map, safelist._base.intersection$1(new M.MapKeySet(map, type$.MapKeySet_legacy_Object)), type$.$env_1_1_legacy_String._bind$1($V._eval$1("0*"))._eval$1("LimitedMapView<1,2>"));
  19365. else {
  19366. if (blocklist != null) {
  19367. t1 = blocklist._base;
  19368. t1 = t1.get$isNotEmpty(t1);
  19369. } else
  19370. t1 = false;
  19371. if (t1)
  19372. map = K.LimitedMapView$blocklist(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  19373. }
  19374. return map;
  19375. },
  19376. ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
  19377. var _ = this;
  19378. _._forwarded_view$_inner = t0;
  19379. _._rule = t1;
  19380. _.variables = t2;
  19381. _.variableNodes = t3;
  19382. _.functions = t4;
  19383. _.mixins = t5;
  19384. _.$ti = t6;
  19385. },
  19386. UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
  19387. this._unprefixed_map_view$_map = t0;
  19388. this._unprefixed_map_view$_prefix = t1;
  19389. this.$ti = t2;
  19390. },
  19391. _UnprefixedKeys: function _UnprefixedKeys(t0) {
  19392. this._unprefixed_map_view$_view = t0;
  19393. },
  19394. _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
  19395. this.$this = t0;
  19396. },
  19397. _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
  19398. this.$this = t0;
  19399. },
  19400. _EvaluateVisitor$: function(functions, importCache, logger, nodeImporter, sourceMap) {
  19401. var t1 = type$.legacy_String,
  19402. t2 = type$.legacy_Uri,
  19403. t3 = type$.legacy_Module_legacy_Callable,
  19404. t4 = type$.legacy_AstNode,
  19405. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode),
  19406. t6 = logger == null ? C.StderrLogger_false : logger;
  19407. t5 = new R._EvaluateVisitor(importCache, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Callable), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t6, sourceMap, O.Environment$(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true);
  19408. t5._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap(functions, importCache, logger, nodeImporter, sourceMap);
  19409. return t5;
  19410. },
  19411. Evaluator: function Evaluator(t0, t1) {
  19412. this._visitor = t0;
  19413. this._importer = t1;
  19414. },
  19415. _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  19416. var _ = this;
  19417. _._evaluate$_importCache = t0;
  19418. _._evaluate$_nodeImporter = t1;
  19419. _._builtInFunctions = t2;
  19420. _._builtInModules = t3;
  19421. _._modules = t4;
  19422. _._moduleNodes = t5;
  19423. _._evaluate$_logger = t6;
  19424. _._sourceMap = t7;
  19425. _._evaluate$_environment = t8;
  19426. _._declarationName = _._evaluate$_parent = _._mediaQueries = _._styleRule = null;
  19427. _._member = "root stylesheet";
  19428. _._importSpan = _._callableNode = null;
  19429. _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
  19430. _._evaluate$_includedFiles = t9;
  19431. _._activeModules = t10;
  19432. _._stack = t11;
  19433. _._extender = _._outOfOrderImports = _._endOfImports = _._root = _._stylesheet = _._importer = null;
  19434. _._configuration = t12;
  19435. },
  19436. _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
  19437. this.$this = t0;
  19438. },
  19439. _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
  19440. this.$this = t0;
  19441. },
  19442. _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
  19443. this.$this = t0;
  19444. },
  19445. _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
  19446. this.$this = t0;
  19447. },
  19448. _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
  19449. this.$this = t0;
  19450. },
  19451. _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
  19452. this.$this = t0;
  19453. },
  19454. _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
  19455. this.$this = t0;
  19456. },
  19457. _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
  19458. this.$this = t0;
  19459. },
  19460. _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) {
  19461. this.$this = t0;
  19462. this.name = t1;
  19463. this.module = t2;
  19464. },
  19465. _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
  19466. this.$this = t0;
  19467. },
  19468. _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
  19469. this.$this = t0;
  19470. },
  19471. _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1) {
  19472. this.values = t0;
  19473. this.span = t1;
  19474. },
  19475. _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
  19476. this.$this = t0;
  19477. },
  19478. _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
  19479. this.$this = t0;
  19480. this.node = t1;
  19481. this.importer = t2;
  19482. },
  19483. _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
  19484. this.$this = t0;
  19485. this.importer = t1;
  19486. this.expression = t2;
  19487. },
  19488. _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
  19489. this.$this = t0;
  19490. this.expression = t1;
  19491. },
  19492. _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
  19493. this.$this = t0;
  19494. this.importer = t1;
  19495. this.statement = t2;
  19496. },
  19497. _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
  19498. this.$this = t0;
  19499. this.statement = t1;
  19500. },
  19501. _EvaluateVisitor__withWarnCallback_closure: function _EvaluateVisitor__withWarnCallback_closure(t0) {
  19502. this.$this = t0;
  19503. },
  19504. _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) {
  19505. this.callback = t0;
  19506. this.builtInModule = t1;
  19507. },
  19508. _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
  19509. var _ = this;
  19510. _.$this = t0;
  19511. _.url = t1;
  19512. _.nodeWithSpan = t2;
  19513. _.baseUrl = t3;
  19514. _.namesInErrors = t4;
  19515. _.configuration = t5;
  19516. _.callback = t6;
  19517. },
  19518. _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5) {
  19519. var _ = this;
  19520. _._box_0 = t0;
  19521. _.$this = t1;
  19522. _.importer = t2;
  19523. _.stylesheet = t3;
  19524. _.extender = t4;
  19525. _.configuration = t5;
  19526. },
  19527. _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
  19528. },
  19529. _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
  19530. this.selectors = t0;
  19531. },
  19532. _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
  19533. },
  19534. _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
  19535. this.originalSelectors = t0;
  19536. },
  19537. _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
  19538. },
  19539. _EvaluateVisitor__topologicalModules_visitModule: function _EvaluateVisitor__topologicalModules_visitModule(t0, t1) {
  19540. this.seen = t0;
  19541. this.sorted = t1;
  19542. },
  19543. _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
  19544. this.$this = t0;
  19545. this.resolved = t1;
  19546. },
  19547. _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
  19548. this.$this = t0;
  19549. this.node = t1;
  19550. },
  19551. _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
  19552. this.$this = t0;
  19553. this.node = t1;
  19554. },
  19555. _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
  19556. this.$this = t0;
  19557. this.newParent = t1;
  19558. this.node = t2;
  19559. },
  19560. _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
  19561. this.$this = t0;
  19562. this.innerScope = t1;
  19563. },
  19564. _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
  19565. this.$this = t0;
  19566. this.innerScope = t1;
  19567. },
  19568. _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
  19569. this.innerScope = t0;
  19570. this.callback = t1;
  19571. },
  19572. _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
  19573. this.$this = t0;
  19574. this.innerScope = t1;
  19575. },
  19576. _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
  19577. },
  19578. _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
  19579. this.$this = t0;
  19580. this.innerScope = t1;
  19581. },
  19582. _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
  19583. this.$this = t0;
  19584. this.content = t1;
  19585. },
  19586. _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
  19587. this.$this = t0;
  19588. this.node = t1;
  19589. },
  19590. _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
  19591. this.$this = t0;
  19592. this.node = t1;
  19593. this.nodeWithSpan = t2;
  19594. },
  19595. _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
  19596. this.$this = t0;
  19597. this.node = t1;
  19598. this.nodeWithSpan = t2;
  19599. },
  19600. _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
  19601. var _ = this;
  19602. _.$this = t0;
  19603. _.list = t1;
  19604. _.setVariables = t2;
  19605. _.node = t3;
  19606. },
  19607. _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
  19608. this.$this = t0;
  19609. this.setVariables = t1;
  19610. this.node = t2;
  19611. },
  19612. _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
  19613. this.$this = t0;
  19614. },
  19615. _EvaluateVisitor_visitExtendRule_closure: function _EvaluateVisitor_visitExtendRule_closure(t0, t1) {
  19616. this.$this = t0;
  19617. this.targetText = t1;
  19618. },
  19619. _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0, t1) {
  19620. this.$this = t0;
  19621. this.node = t1;
  19622. },
  19623. _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
  19624. this.$this = t0;
  19625. this.node = t1;
  19626. },
  19627. _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0() {
  19628. },
  19629. _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
  19630. this.$this = t0;
  19631. this.node = t1;
  19632. },
  19633. _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
  19634. this.$this = t0;
  19635. this.node = t1;
  19636. },
  19637. _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0, t1) {
  19638. this.fromNumber = t0;
  19639. this.toNumber = t1;
  19640. },
  19641. _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0) {
  19642. this.toNumber = t0;
  19643. },
  19644. _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4) {
  19645. var _ = this;
  19646. _._box_0 = t0;
  19647. _.$this = t1;
  19648. _.node = t2;
  19649. _.from = t3;
  19650. _.direction = t4;
  19651. },
  19652. _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
  19653. this.$this = t0;
  19654. },
  19655. _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
  19656. this.$this = t0;
  19657. this.node = t1;
  19658. },
  19659. _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
  19660. this.$this = t0;
  19661. this.node = t1;
  19662. },
  19663. _EvaluateVisitor__assertConfigurationIsEmpty_closure: function _EvaluateVisitor__assertConfigurationIsEmpty_closure(t0, t1, t2) {
  19664. this.$this = t0;
  19665. this.only = t1;
  19666. this.nameInError = t2;
  19667. },
  19668. _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0, t1) {
  19669. this._box_0 = t0;
  19670. this.$this = t1;
  19671. },
  19672. _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0) {
  19673. this.$this = t0;
  19674. },
  19675. _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
  19676. this.$this = t0;
  19677. this.$import = t1;
  19678. },
  19679. _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0, t1, t2, t3, t4) {
  19680. var _ = this;
  19681. _._box_0 = t0;
  19682. _.$this = t1;
  19683. _.importer = t2;
  19684. _.stylesheet = t3;
  19685. _.environment = t4;
  19686. },
  19687. _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
  19688. this.$this = t0;
  19689. this.node = t1;
  19690. },
  19691. _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
  19692. this.node = t0;
  19693. },
  19694. _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0, t1, t2, t3) {
  19695. var _ = this;
  19696. _.$this = t0;
  19697. _.contentCallable = t1;
  19698. _.mixin = t2;
  19699. _.nodeWithSpan = t3;
  19700. },
  19701. _EvaluateVisitor_visitIncludeRule__closure: function _EvaluateVisitor_visitIncludeRule__closure(t0, t1, t2) {
  19702. this.$this = t0;
  19703. this.mixin = t1;
  19704. this.nodeWithSpan = t2;
  19705. },
  19706. _EvaluateVisitor_visitIncludeRule___closure: function _EvaluateVisitor_visitIncludeRule___closure(t0, t1, t2) {
  19707. this.$this = t0;
  19708. this.mixin = t1;
  19709. this.nodeWithSpan = t2;
  19710. },
  19711. _EvaluateVisitor_visitIncludeRule____closure: function _EvaluateVisitor_visitIncludeRule____closure(t0, t1) {
  19712. this.$this = t0;
  19713. this.statement = t1;
  19714. },
  19715. _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1, t2, t3) {
  19716. var _ = this;
  19717. _.$this = t0;
  19718. _.mergedQueries = t1;
  19719. _.queries = t2;
  19720. _.node = t3;
  19721. },
  19722. _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
  19723. this.$this = t0;
  19724. this.node = t1;
  19725. },
  19726. _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
  19727. this.$this = t0;
  19728. this.node = t1;
  19729. },
  19730. _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0) {
  19731. this.mergedQueries = t0;
  19732. },
  19733. _EvaluateVisitor__visitMediaQueries_closure: function _EvaluateVisitor__visitMediaQueries_closure(t0, t1) {
  19734. this.$this = t0;
  19735. this.resolved = t1;
  19736. },
  19737. _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
  19738. this.$this = t0;
  19739. this.selectorText = t1;
  19740. },
  19741. _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0(t0, t1) {
  19742. this.$this = t0;
  19743. this.node = t1;
  19744. },
  19745. _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
  19746. },
  19747. _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1) {
  19748. this.$this = t0;
  19749. this.selectorText = t1;
  19750. },
  19751. _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
  19752. this._box_0 = t0;
  19753. this.$this = t1;
  19754. },
  19755. _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4(t0, t1, t2) {
  19756. this.$this = t0;
  19757. this.rule = t1;
  19758. this.node = t2;
  19759. },
  19760. _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
  19761. this.$this = t0;
  19762. this.node = t1;
  19763. },
  19764. _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
  19765. },
  19766. _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
  19767. this.$this = t0;
  19768. this.node = t1;
  19769. },
  19770. _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
  19771. this.$this = t0;
  19772. this.node = t1;
  19773. },
  19774. _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
  19775. },
  19776. _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
  19777. this.$this = t0;
  19778. this.node = t1;
  19779. this.override = t2;
  19780. },
  19781. _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
  19782. this.$this = t0;
  19783. this.node = t1;
  19784. },
  19785. _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
  19786. this.$this = t0;
  19787. this.node = t1;
  19788. this.value = t2;
  19789. },
  19790. _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
  19791. this.$this = t0;
  19792. this.node = t1;
  19793. },
  19794. _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
  19795. this.$this = t0;
  19796. this.node = t1;
  19797. },
  19798. _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
  19799. this.$this = t0;
  19800. this.node = t1;
  19801. },
  19802. _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
  19803. this.$this = t0;
  19804. },
  19805. _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
  19806. this.$this = t0;
  19807. this.node = t1;
  19808. },
  19809. _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
  19810. this.$this = t0;
  19811. this.node = t1;
  19812. },
  19813. _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
  19814. this.$this = t0;
  19815. },
  19816. _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1, t2) {
  19817. this.$this = t0;
  19818. this.node = t1;
  19819. this.plainName = t2;
  19820. },
  19821. _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0(t0, t1, t2) {
  19822. this._box_0 = t0;
  19823. this.$this = t1;
  19824. this.node = t2;
  19825. },
  19826. _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4) {
  19827. var _ = this;
  19828. _.$this = t0;
  19829. _.callable = t1;
  19830. _.evaluated = t2;
  19831. _.nodeWithSpan = t3;
  19832. _.run = t4;
  19833. },
  19834. _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4) {
  19835. var _ = this;
  19836. _.$this = t0;
  19837. _.evaluated = t1;
  19838. _.callable = t2;
  19839. _.nodeWithSpan = t3;
  19840. _.run = t4;
  19841. },
  19842. _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4) {
  19843. var _ = this;
  19844. _.$this = t0;
  19845. _.evaluated = t1;
  19846. _.callable = t2;
  19847. _.nodeWithSpan = t3;
  19848. _.run = t4;
  19849. },
  19850. _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
  19851. },
  19852. _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
  19853. this.$this = t0;
  19854. this.callable = t1;
  19855. },
  19856. _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
  19857. this.overload = t0;
  19858. this.evaluated = t1;
  19859. this.namedSet = t2;
  19860. },
  19861. _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0() {
  19862. },
  19863. _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure(t0, t1, t2) {
  19864. this.named = t0;
  19865. this.namedNodes = t1;
  19866. this.restNodeForSpan = t2;
  19867. },
  19868. _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure() {
  19869. },
  19870. _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0() {
  19871. },
  19872. _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0) {
  19873. this.named = t0;
  19874. },
  19875. _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2() {
  19876. },
  19877. _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0) {
  19878. this.T = t0;
  19879. },
  19880. _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4) {
  19881. var _ = this;
  19882. _._box_0 = t0;
  19883. _.$this = t1;
  19884. _.values = t2;
  19885. _.map = t3;
  19886. _.nodeWithSpan = t4;
  19887. },
  19888. _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
  19889. this.$arguments = t0;
  19890. this.positional = t1;
  19891. this.named = t2;
  19892. },
  19893. _EvaluateVisitor_visitStringExpression_closure: function _EvaluateVisitor_visitStringExpression_closure(t0) {
  19894. this.$this = t0;
  19895. },
  19896. _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
  19897. this.$this = t0;
  19898. this.node = t1;
  19899. },
  19900. _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
  19901. },
  19902. _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  19903. this.$this = t0;
  19904. this.node = t1;
  19905. },
  19906. _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
  19907. },
  19908. _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1, t2) {
  19909. this.$this = t0;
  19910. this.mergedQueries = t1;
  19911. this.node = t2;
  19912. },
  19913. _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
  19914. this.$this = t0;
  19915. this.node = t1;
  19916. },
  19917. _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
  19918. this.$this = t0;
  19919. this.node = t1;
  19920. },
  19921. _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0) {
  19922. this.mergedQueries = t0;
  19923. },
  19924. _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure(t0, t1, t2) {
  19925. this.$this = t0;
  19926. this.rule = t1;
  19927. this.node = t2;
  19928. },
  19929. _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
  19930. this.$this = t0;
  19931. this.node = t1;
  19932. },
  19933. _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0() {
  19934. },
  19935. _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
  19936. this.$this = t0;
  19937. this.node = t1;
  19938. },
  19939. _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
  19940. this.$this = t0;
  19941. this.node = t1;
  19942. },
  19943. _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
  19944. },
  19945. _EvaluateVisitor__performInterpolation_closure: function _EvaluateVisitor__performInterpolation_closure(t0, t1) {
  19946. this.$this = t0;
  19947. this.warnForColor = t1;
  19948. },
  19949. _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
  19950. this.value = t0;
  19951. this.quote = t1;
  19952. },
  19953. _EvaluateVisitor__stackTrace_closure: function _EvaluateVisitor__stackTrace_closure(t0) {
  19954. this.$this = t0;
  19955. },
  19956. _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
  19957. this._visitor = t0;
  19958. },
  19959. _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
  19960. },
  19961. _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
  19962. this.hasBeenMerged = t0;
  19963. },
  19964. _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
  19965. },
  19966. _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
  19967. },
  19968. _ArgumentResults: function _ArgumentResults(t0, t1, t2, t3, t4) {
  19969. var _ = this;
  19970. _.positional = t0;
  19971. _.positionalNodes = t1;
  19972. _.named = t2;
  19973. _.namedNodes = t3;
  19974. _.separator = t4;
  19975. },
  19976. _collectToList: function(element, soFar, $T) {
  19977. if (soFar == null)
  19978. soFar = H.setRuntimeTypeInfo([], $T._eval$1("JSArray<0*>"));
  19979. J.add$1$ax(soFar, element);
  19980. return soFar;
  19981. },
  19982. _debounceAggregate: function(duration, collect, leading, trailing, $T, $R) {
  19983. var t2, t1 = {};
  19984. t1.soFar = t1.timer = null;
  19985. t1.emittedLatestAsLeading = t1.shouldClose = false;
  19986. t2 = $R._eval$1("0*");
  19987. return new L._StreamTransformer(new R._debounceAggregate_closure(t1, collect, false, duration, true, $T, $R), new R._debounceAggregate_closure0(t1, true, $R), H.instantiate1(L.from_handlers__StreamTransformer__defaultHandleError$closure(), t2), $T._eval$1("@<0*>")._bind$1(t2)._eval$1("_StreamTransformer<1,2>"));
  19988. },
  19989. _debounceAggregate_closure: function _debounceAggregate_closure(t0, t1, t2, t3, t4, t5, t6) {
  19990. var _ = this;
  19991. _._box_0 = t0;
  19992. _.collect = t1;
  19993. _.leading = t2;
  19994. _.duration = t3;
  19995. _.trailing = t4;
  19996. _.T = t5;
  19997. _.R = t6;
  19998. },
  19999. _debounceAggregate__closure: function _debounceAggregate__closure(t0, t1, t2) {
  20000. this._box_0 = t0;
  20001. this.trailing = t1;
  20002. this.sink = t2;
  20003. },
  20004. _debounceAggregate_closure0: function _debounceAggregate_closure0(t0, t1, t2) {
  20005. this._box_0 = t0;
  20006. this.trailing = t1;
  20007. this.R = t2;
  20008. },
  20009. ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
  20010. var _ = this;
  20011. _.text = t0;
  20012. _.span = t1;
  20013. _._node2$_indexInParent = _._node2$_parent = null;
  20014. _.isGroupEnd = false;
  20015. },
  20016. _EvaluateVisitor$1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  20017. var t6,
  20018. t1 = type$.legacy_String,
  20019. t2 = type$.legacy_Uri,
  20020. t3 = type$.legacy_Module_legacy_Callable_2,
  20021. t4 = type$.legacy_AstNode_2,
  20022. t5 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2);
  20023. if (nodeImporter == null)
  20024. t6 = importCache == null ? R.ImportCache$none(logger) : importCache;
  20025. else
  20026. t6 = null;
  20027. t1 = new R._EvaluateVisitor1(t6, nodeImporter, P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Callable_2), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), C.C_StderrLogger, sourceMap, O.Environment$0(sourceMap), P.LinkedHashSet_LinkedHashSet$_empty(t1), P.LinkedHashMap_LinkedHashMap$_empty(t2, t4), t5, C.Configuration_Map_empty_null_true0);
  20028. t1._EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1(functions, importCache, logger, nodeImporter, sourceMap);
  20029. return t1;
  20030. },
  20031. _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  20032. var _ = this;
  20033. _._evaluate0$_importCache = t0;
  20034. _._nodeImporter = t1;
  20035. _._evaluate0$_builtInFunctions = t2;
  20036. _._evaluate0$_builtInModules = t3;
  20037. _._evaluate0$_modules = t4;
  20038. _._evaluate0$_moduleNodes = t5;
  20039. _._evaluate0$_logger = t6;
  20040. _._evaluate0$_sourceMap = t7;
  20041. _._evaluate0$_environment = t8;
  20042. _._evaluate0$_declarationName = _._evaluate0$_parent = _._evaluate0$_mediaQueries = _._evaluate0$_styleRule = null;
  20043. _._evaluate0$_member = "root stylesheet";
  20044. _._evaluate0$_importSpan = _._evaluate0$_callableNode = null;
  20045. _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
  20046. _._includedFiles = t9;
  20047. _._evaluate0$_activeModules = t10;
  20048. _._evaluate0$_stack = t11;
  20049. _._evaluate0$_extender = _._evaluate0$_outOfOrderImports = _._evaluate0$_endOfImports = _._evaluate0$_root = _._evaluate0$_stylesheet = _._evaluate0$_importer = null;
  20050. _._evaluate0$_configuration = t12;
  20051. },
  20052. _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
  20053. this.$this = t0;
  20054. },
  20055. _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
  20056. this.$this = t0;
  20057. },
  20058. _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
  20059. this.$this = t0;
  20060. },
  20061. _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
  20062. this.$this = t0;
  20063. },
  20064. _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
  20065. this.$this = t0;
  20066. },
  20067. _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
  20068. this.$this = t0;
  20069. },
  20070. _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
  20071. this.$this = t0;
  20072. },
  20073. _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
  20074. this.$this = t0;
  20075. },
  20076. _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) {
  20077. this.$this = t0;
  20078. this.name = t1;
  20079. this.module = t2;
  20080. },
  20081. _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
  20082. this.$this = t0;
  20083. },
  20084. _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
  20085. this.$this = t0;
  20086. },
  20087. _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1) {
  20088. this.values = t0;
  20089. this.span = t1;
  20090. },
  20091. _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0) {
  20092. this.$this = t0;
  20093. },
  20094. _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
  20095. this.$this = t0;
  20096. this.node = t1;
  20097. this.importer = t2;
  20098. },
  20099. _EvaluateVisitor__withWarnCallback_closure1: function _EvaluateVisitor__withWarnCallback_closure1(t0) {
  20100. this.$this = t0;
  20101. },
  20102. _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) {
  20103. this.callback = t0;
  20104. this.builtInModule = t1;
  20105. },
  20106. _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) {
  20107. var _ = this;
  20108. _.$this = t0;
  20109. _.url = t1;
  20110. _.nodeWithSpan = t2;
  20111. _.baseUrl = t3;
  20112. _.namesInErrors = t4;
  20113. _.configuration = t5;
  20114. _.callback = t6;
  20115. },
  20116. _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5) {
  20117. var _ = this;
  20118. _._box_0 = t0;
  20119. _.$this = t1;
  20120. _.importer = t2;
  20121. _.stylesheet = t3;
  20122. _.extender = t4;
  20123. _.configuration = t5;
  20124. },
  20125. _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
  20126. },
  20127. _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
  20128. this.selectors = t0;
  20129. },
  20130. _EvaluateVisitor__combineCss_closure7: function _EvaluateVisitor__combineCss_closure7() {
  20131. },
  20132. _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
  20133. this.originalSelectors = t0;
  20134. },
  20135. _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
  20136. },
  20137. _EvaluateVisitor__topologicalModules_visitModule1: function _EvaluateVisitor__topologicalModules_visitModule1(t0, t1) {
  20138. this.seen = t0;
  20139. this.sorted = t1;
  20140. },
  20141. _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
  20142. this.$this = t0;
  20143. this.resolved = t1;
  20144. },
  20145. _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
  20146. this.$this = t0;
  20147. this.node = t1;
  20148. },
  20149. _EvaluateVisitor_visitAtRootRule_closure7: function _EvaluateVisitor_visitAtRootRule_closure7(t0, t1) {
  20150. this.$this = t0;
  20151. this.node = t1;
  20152. },
  20153. _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
  20154. this.$this = t0;
  20155. this.newParent = t1;
  20156. this.node = t2;
  20157. },
  20158. _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
  20159. this.$this = t0;
  20160. this.innerScope = t1;
  20161. },
  20162. _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
  20163. this.$this = t0;
  20164. this.innerScope = t1;
  20165. },
  20166. _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
  20167. this.innerScope = t0;
  20168. this.callback = t1;
  20169. },
  20170. _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
  20171. this.$this = t0;
  20172. this.innerScope = t1;
  20173. },
  20174. _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
  20175. },
  20176. _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
  20177. this.$this = t0;
  20178. this.innerScope = t1;
  20179. },
  20180. _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
  20181. this.$this = t0;
  20182. this.content = t1;
  20183. },
  20184. _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
  20185. this.$this = t0;
  20186. this.node = t1;
  20187. },
  20188. _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
  20189. this.$this = t0;
  20190. this.node = t1;
  20191. this.nodeWithSpan = t2;
  20192. },
  20193. _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
  20194. this.$this = t0;
  20195. this.node = t1;
  20196. this.nodeWithSpan = t2;
  20197. },
  20198. _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
  20199. var _ = this;
  20200. _.$this = t0;
  20201. _.list = t1;
  20202. _.setVariables = t2;
  20203. _.node = t3;
  20204. },
  20205. _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
  20206. this.$this = t0;
  20207. this.setVariables = t1;
  20208. this.node = t2;
  20209. },
  20210. _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
  20211. this.$this = t0;
  20212. },
  20213. _EvaluateVisitor_visitExtendRule_closure1: function _EvaluateVisitor_visitExtendRule_closure1(t0, t1) {
  20214. this.$this = t0;
  20215. this.targetText = t1;
  20216. },
  20217. _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1) {
  20218. this.$this = t0;
  20219. this.node = t1;
  20220. },
  20221. _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
  20222. this.$this = t0;
  20223. this.node = t1;
  20224. },
  20225. _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
  20226. },
  20227. _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
  20228. this.$this = t0;
  20229. this.node = t1;
  20230. },
  20231. _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
  20232. this.$this = t0;
  20233. this.node = t1;
  20234. },
  20235. _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0, t1) {
  20236. this.fromNumber = t0;
  20237. this.toNumber = t1;
  20238. },
  20239. _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0) {
  20240. this.toNumber = t0;
  20241. },
  20242. _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4) {
  20243. var _ = this;
  20244. _._box_0 = t0;
  20245. _.$this = t1;
  20246. _.node = t2;
  20247. _.from = t3;
  20248. _.direction = t4;
  20249. },
  20250. _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
  20251. this.$this = t0;
  20252. },
  20253. _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
  20254. this.$this = t0;
  20255. this.node = t1;
  20256. },
  20257. _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
  20258. this.$this = t0;
  20259. this.node = t1;
  20260. },
  20261. _EvaluateVisitor__assertConfigurationIsEmpty_closure1: function _EvaluateVisitor__assertConfigurationIsEmpty_closure1(t0, t1, t2) {
  20262. this.$this = t0;
  20263. this.only = t1;
  20264. this.nameInError = t2;
  20265. },
  20266. _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0, t1) {
  20267. this._box_0 = t0;
  20268. this.$this = t1;
  20269. },
  20270. _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0) {
  20271. this.$this = t0;
  20272. },
  20273. _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
  20274. this.$this = t0;
  20275. this.$import = t1;
  20276. },
  20277. _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1(t0, t1, t2, t3, t4) {
  20278. var _ = this;
  20279. _._box_0 = t0;
  20280. _.$this = t1;
  20281. _.importer = t2;
  20282. _.stylesheet = t3;
  20283. _.environment = t4;
  20284. },
  20285. _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
  20286. this.$this = t0;
  20287. this.node = t1;
  20288. },
  20289. _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
  20290. this.node = t0;
  20291. },
  20292. _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0, t1, t2, t3) {
  20293. var _ = this;
  20294. _.$this = t0;
  20295. _.contentCallable = t1;
  20296. _.mixin = t2;
  20297. _.nodeWithSpan = t3;
  20298. },
  20299. _EvaluateVisitor_visitIncludeRule__closure1: function _EvaluateVisitor_visitIncludeRule__closure1(t0, t1, t2) {
  20300. this.$this = t0;
  20301. this.mixin = t1;
  20302. this.nodeWithSpan = t2;
  20303. },
  20304. _EvaluateVisitor_visitIncludeRule___closure1: function _EvaluateVisitor_visitIncludeRule___closure1(t0, t1, t2) {
  20305. this.$this = t0;
  20306. this.mixin = t1;
  20307. this.nodeWithSpan = t2;
  20308. },
  20309. _EvaluateVisitor_visitIncludeRule____closure1: function _EvaluateVisitor_visitIncludeRule____closure1(t0, t1) {
  20310. this.$this = t0;
  20311. this.statement = t1;
  20312. },
  20313. _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3) {
  20314. var _ = this;
  20315. _.$this = t0;
  20316. _.mergedQueries = t1;
  20317. _.queries = t2;
  20318. _.node = t3;
  20319. },
  20320. _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
  20321. this.$this = t0;
  20322. this.node = t1;
  20323. },
  20324. _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
  20325. this.$this = t0;
  20326. this.node = t1;
  20327. },
  20328. _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
  20329. this.mergedQueries = t0;
  20330. },
  20331. _EvaluateVisitor__visitMediaQueries_closure1: function _EvaluateVisitor__visitMediaQueries_closure1(t0, t1) {
  20332. this.$this = t0;
  20333. this.resolved = t1;
  20334. },
  20335. _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13(t0, t1) {
  20336. this.$this = t0;
  20337. this.selectorText = t1;
  20338. },
  20339. _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1) {
  20340. this.$this = t0;
  20341. this.node = t1;
  20342. },
  20343. _EvaluateVisitor_visitStyleRule_closure15: function _EvaluateVisitor_visitStyleRule_closure15() {
  20344. },
  20345. _EvaluateVisitor_visitStyleRule_closure16: function _EvaluateVisitor_visitStyleRule_closure16(t0, t1) {
  20346. this.$this = t0;
  20347. this.selectorText = t1;
  20348. },
  20349. _EvaluateVisitor_visitStyleRule_closure17: function _EvaluateVisitor_visitStyleRule_closure17(t0, t1) {
  20350. this._box_0 = t0;
  20351. this.$this = t1;
  20352. },
  20353. _EvaluateVisitor_visitStyleRule_closure18: function _EvaluateVisitor_visitStyleRule_closure18(t0, t1, t2) {
  20354. this.$this = t0;
  20355. this.rule = t1;
  20356. this.node = t2;
  20357. },
  20358. _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
  20359. this.$this = t0;
  20360. this.node = t1;
  20361. },
  20362. _EvaluateVisitor_visitStyleRule_closure19: function _EvaluateVisitor_visitStyleRule_closure19() {
  20363. },
  20364. _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
  20365. this.$this = t0;
  20366. this.node = t1;
  20367. },
  20368. _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
  20369. this.$this = t0;
  20370. this.node = t1;
  20371. },
  20372. _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
  20373. },
  20374. _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
  20375. this.$this = t0;
  20376. this.node = t1;
  20377. this.override = t2;
  20378. },
  20379. _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
  20380. this.$this = t0;
  20381. this.node = t1;
  20382. },
  20383. _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
  20384. this.$this = t0;
  20385. this.node = t1;
  20386. this.value = t2;
  20387. },
  20388. _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
  20389. this.$this = t0;
  20390. this.node = t1;
  20391. },
  20392. _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
  20393. this.$this = t0;
  20394. this.node = t1;
  20395. },
  20396. _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
  20397. this.$this = t0;
  20398. this.node = t1;
  20399. },
  20400. _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
  20401. this.$this = t0;
  20402. },
  20403. _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
  20404. this.$this = t0;
  20405. this.node = t1;
  20406. },
  20407. _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
  20408. this.$this = t0;
  20409. this.node = t1;
  20410. },
  20411. _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
  20412. this.$this = t0;
  20413. },
  20414. _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3(t0, t1, t2) {
  20415. this.$this = t0;
  20416. this.node = t1;
  20417. this.plainName = t2;
  20418. },
  20419. _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
  20420. this._box_0 = t0;
  20421. this.$this = t1;
  20422. this.node = t2;
  20423. },
  20424. _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4) {
  20425. var _ = this;
  20426. _.$this = t0;
  20427. _.callable = t1;
  20428. _.evaluated = t2;
  20429. _.nodeWithSpan = t3;
  20430. _.run = t4;
  20431. },
  20432. _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4) {
  20433. var _ = this;
  20434. _.$this = t0;
  20435. _.evaluated = t1;
  20436. _.callable = t2;
  20437. _.nodeWithSpan = t3;
  20438. _.run = t4;
  20439. },
  20440. _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4) {
  20441. var _ = this;
  20442. _.$this = t0;
  20443. _.evaluated = t1;
  20444. _.callable = t2;
  20445. _.nodeWithSpan = t3;
  20446. _.run = t4;
  20447. },
  20448. _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
  20449. },
  20450. _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
  20451. this.$this = t0;
  20452. this.callable = t1;
  20453. },
  20454. _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1, t2) {
  20455. this.overload = t0;
  20456. this.evaluated = t1;
  20457. this.namedSet = t2;
  20458. },
  20459. _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
  20460. },
  20461. _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2) {
  20462. this.named = t0;
  20463. this.namedNodes = t1;
  20464. this.restNodeForSpan = t2;
  20465. },
  20466. _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7() {
  20467. },
  20468. _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8() {
  20469. },
  20470. _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0) {
  20471. this.named = t0;
  20472. },
  20473. _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10() {
  20474. },
  20475. _EvaluateVisitor__addRestMap_closure3: function _EvaluateVisitor__addRestMap_closure3(t0) {
  20476. this.T = t0;
  20477. },
  20478. _EvaluateVisitor__addRestMap_closure4: function _EvaluateVisitor__addRestMap_closure4(t0, t1, t2, t3, t4) {
  20479. var _ = this;
  20480. _._box_0 = t0;
  20481. _.$this = t1;
  20482. _.values = t2;
  20483. _.map = t3;
  20484. _.nodeWithSpan = t4;
  20485. },
  20486. _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
  20487. this.$arguments = t0;
  20488. this.positional = t1;
  20489. this.named = t2;
  20490. },
  20491. _EvaluateVisitor_visitStringExpression_closure1: function _EvaluateVisitor_visitStringExpression_closure1(t0) {
  20492. this.$this = t0;
  20493. },
  20494. _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
  20495. this.$this = t0;
  20496. this.node = t1;
  20497. },
  20498. _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
  20499. },
  20500. _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
  20501. this.$this = t0;
  20502. this.node = t1;
  20503. },
  20504. _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
  20505. },
  20506. _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2) {
  20507. this.$this = t0;
  20508. this.mergedQueries = t1;
  20509. this.node = t2;
  20510. },
  20511. _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
  20512. this.$this = t0;
  20513. this.node = t1;
  20514. },
  20515. _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
  20516. this.$this = t0;
  20517. this.node = t1;
  20518. },
  20519. _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
  20520. this.mergedQueries = t0;
  20521. },
  20522. _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3(t0, t1, t2) {
  20523. this.$this = t0;
  20524. this.rule = t1;
  20525. this.node = t2;
  20526. },
  20527. _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
  20528. this.$this = t0;
  20529. this.node = t1;
  20530. },
  20531. _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4() {
  20532. },
  20533. _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
  20534. this.$this = t0;
  20535. this.node = t1;
  20536. },
  20537. _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
  20538. this.$this = t0;
  20539. this.node = t1;
  20540. },
  20541. _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
  20542. },
  20543. _EvaluateVisitor__performInterpolation_closure1: function _EvaluateVisitor__performInterpolation_closure1(t0, t1) {
  20544. this.$this = t0;
  20545. this.warnForColor = t1;
  20546. },
  20547. _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
  20548. this.value = t0;
  20549. this.quote = t1;
  20550. },
  20551. _EvaluateVisitor__stackTrace_closure1: function _EvaluateVisitor__stackTrace_closure1(t0) {
  20552. this.$this = t0;
  20553. },
  20554. _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
  20555. this._evaluate0$_visitor = t0;
  20556. },
  20557. _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
  20558. },
  20559. _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
  20560. this.hasBeenMerged = t0;
  20561. },
  20562. _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
  20563. },
  20564. _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
  20565. },
  20566. _ArgumentResults1: function _ArgumentResults1(t0, t1, t2, t3, t4) {
  20567. var _ = this;
  20568. _.positional = t0;
  20569. _.positionalNodes = t1;
  20570. _.named = t2;
  20571. _.namedNodes = t3;
  20572. _.separator = t4;
  20573. },
  20574. ForwardedModuleView_ifNecessary0: function(inner, rule, $T) {
  20575. var t1;
  20576. if (rule.prefix == null)
  20577. if (rule.shownMixinsAndFunctions == null)
  20578. if (rule.shownVariables == null) {
  20579. t1 = rule.hiddenMixinsAndFunctions;
  20580. if (t1 != null) {
  20581. t1 = t1._base;
  20582. t1 = t1.get$isEmpty(t1);
  20583. } else
  20584. t1 = true;
  20585. if (t1) {
  20586. t1 = rule.hiddenVariables;
  20587. if (t1 != null) {
  20588. t1 = t1._base;
  20589. t1 = t1.get$isEmpty(t1);
  20590. } else
  20591. t1 = true;
  20592. } else
  20593. t1 = false;
  20594. } else
  20595. t1 = false;
  20596. else
  20597. t1 = false;
  20598. else
  20599. t1 = false;
  20600. if (t1)
  20601. return inner;
  20602. else
  20603. return R.ForwardedModuleView$0(inner, rule, $T._eval$1("0*"));
  20604. },
  20605. ForwardedModuleView$0: function(_inner, _rule, $T) {
  20606. var t5, t6,
  20607. t1 = _rule.prefix,
  20608. t2 = _rule.shownVariables,
  20609. t3 = _rule.hiddenVariables,
  20610. t4 = R.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.legacy_Value_2);
  20611. t2 = _inner.get$variableNodes() == null ? null : R.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.legacy_AstNode_2);
  20612. t3 = _rule.shownMixinsAndFunctions;
  20613. t5 = _rule.hiddenMixinsAndFunctions;
  20614. t6 = $T._eval$1("0*");
  20615. return new R.ForwardedModuleView0(_inner, _rule, t4, t2, R.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t3, t5, t6), R.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t3, t5, t6), $T._eval$1("ForwardedModuleView0<0>"));
  20616. },
  20617. ForwardedModuleView__forwardedMap0: function(map, prefix, safelist, blocklist, $V) {
  20618. var t2,
  20619. t1 = prefix == null;
  20620. if (t1)
  20621. if (safelist == null)
  20622. if (blocklist != null) {
  20623. t2 = blocklist._base;
  20624. t2 = t2.get$isEmpty(t2);
  20625. } else
  20626. t2 = true;
  20627. else
  20628. t2 = false;
  20629. else
  20630. t2 = false;
  20631. if (t2)
  20632. return map;
  20633. if (!t1)
  20634. map = new F.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0*>"));
  20635. if (safelist != null)
  20636. map = new K.LimitedMapView0(map, safelist._base.intersection$1(new M.MapKeySet(map, type$.MapKeySet_legacy_Object)), type$.$env_1_1_legacy_String._bind$1($V._eval$1("0*"))._eval$1("LimitedMapView0<1,2>"));
  20637. else {
  20638. if (blocklist != null) {
  20639. t1 = blocklist._base;
  20640. t1 = t1.get$isNotEmpty(t1);
  20641. } else
  20642. t1 = false;
  20643. if (t1)
  20644. map = K.LimitedMapView$blocklist0(map, blocklist, type$.legacy_String, $V._eval$1("0*"));
  20645. }
  20646. return map;
  20647. },
  20648. ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
  20649. var _ = this;
  20650. _._forwarded_view0$_inner = t0;
  20651. _._forwarded_view0$_rule = t1;
  20652. _.variables = t2;
  20653. _.variableNodes = t3;
  20654. _.functions = t4;
  20655. _.mixins = t5;
  20656. _.$ti = t6;
  20657. },
  20658. ImportCache$none: function(logger) {
  20659. var t1 = type$.legacy_Uri;
  20660. return new R.ImportCache0(C.C_StderrLogger, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Stylesheet), P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ImporterResult));
  20661. },
  20662. ImportCache0: function ImportCache0(t0, t1, t2, t3) {
  20663. var _ = this;
  20664. _._import_cache$_logger = t0;
  20665. _._import_cache$_canonicalizeCache = t1;
  20666. _._import_cache$_importCache = t2;
  20667. _._import_cache$_resultsCache = t3;
  20668. },
  20669. ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2) {
  20670. this.$this = t0;
  20671. this.url = t1;
  20672. this.forImport = t2;
  20673. },
  20674. ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
  20675. this.importer = t0;
  20676. this.url = t1;
  20677. },
  20678. ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  20679. var _ = this;
  20680. _.$this = t0;
  20681. _.importer = t1;
  20682. _.canonicalUrl = t2;
  20683. _.originalUrl = t3;
  20684. },
  20685. ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
  20686. this.canonicalUrl = t0;
  20687. },
  20688. ImportCache_humanize_closure3: function ImportCache_humanize_closure3() {
  20689. },
  20690. ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
  20691. },
  20692. RenderOptions: function RenderOptions() {
  20693. },
  20694. _translateReturnValue: function(val) {
  20695. if (type$.legacy_Future_dynamic._is(val))
  20696. return M.futureToPromise(val);
  20697. else
  20698. return val;
  20699. },
  20700. main0: function() {
  20701. new Uint8Array(0);
  20702. J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
  20703. J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
  20704. J.set$info$x(self.exports, "dart-sass\t1.32.0\t(Sass Compiler)\t[Dart]\ndart2js\t2.10.4\t(Dart Compiler)\t[Dart]");
  20705. J.set$types$x(self.exports, {Boolean: $.$get$booleanConstructor(), Color: $.$get$colorConstructor(), List: $.$get$listConstructor(), Map: $.$get$mapConstructor(), Null: $.$get$nullConstructor(), Number: $.$get$numberConstructor(), String: $.$get$stringConstructor(), Error: self.Error});
  20706. J.set$NULL$x(self.exports, C.C_SassNull);
  20707. J.set$TRUE$x(self.exports, C.SassBoolean_true);
  20708. J.set$FALSE$x(self.exports, C.SassBoolean_false);
  20709. J.set$cli_pkg_main_0_$x(self.exports, R._wrapMain(U.sass__main$closure()));
  20710. },
  20711. _wrapMain: function(main) {
  20712. if (type$.legacy_legacy_Object_Function._is(main))
  20713. return P.allowInterop(new R._wrapMain_closure(main));
  20714. else
  20715. return P.allowInterop(new R._wrapMain_closure0(main));
  20716. },
  20717. _Exports: function _Exports() {
  20718. },
  20719. _wrapMain_closure: function _wrapMain_closure(t0) {
  20720. this.main = t0;
  20721. },
  20722. _wrapMain_closure0: function _wrapMain_closure0(t0) {
  20723. this.main = t0;
  20724. },
  20725. UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
  20726. this._unprefixed_map_view0$_map = t0;
  20727. this._unprefixed_map_view0$_prefix = t1;
  20728. this.$ti = t2;
  20729. },
  20730. _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
  20731. this._unprefixed_map_view0$_view = t0;
  20732. },
  20733. _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
  20734. this.$this = t0;
  20735. },
  20736. _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
  20737. this.$this = t0;
  20738. }
  20739. },
  20740. A = {MapExpression: function MapExpression(t0, t1) {
  20741. this.pairs = t0;
  20742. this.span = t1;
  20743. }, MapExpression_toString_closure: function MapExpression_toString_closure() {
  20744. }, IncludeRule: function IncludeRule(t0, t1, t2, t3, t4) {
  20745. var _ = this;
  20746. _.namespace = t0;
  20747. _.name = t1;
  20748. _.$arguments = t2;
  20749. _.content = t3;
  20750. _.span = t4;
  20751. }, Configuration: function Configuration(t0, t1, t2) {
  20752. this._values = t0;
  20753. this.nodeWithSpan = t1;
  20754. this.isImplicit = t2;
  20755. },
  20756. watch: function(options, graph) {
  20757. var $async$goto = 0,
  20758. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  20759. $async$returnValue, t2, t3, t4, t5, t6, dirWatcher, watcher, destination, t1;
  20760. var $async$watch = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20761. if ($async$errorCode === 1)
  20762. return P._asyncRethrow($async$result, $async$completer);
  20763. while (true)
  20764. switch ($async$goto) {
  20765. case 0:
  20766. // Function start
  20767. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  20768. for (options._ensureSources$0(), t2 = options._sourceDirectoriesToDestinations, t2 = J.get$iterator$ax(t2.get$keys(t2)); t2.moveNext$0();)
  20769. t1.push(t2.get$current(t2));
  20770. for (options._ensureSources$0(), t2 = options._sourcesToDestinations, t3 = type$.legacy_String, t2 = J.map$1$1$ax(t2.get$keys(t2), D.path__dirname$closure(), t3), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  20771. t1.push(t2.get$current(t2));
  20772. for (t2 = options._options, t4 = J.get$iterator$ax(type$.legacy_List_legacy_String._as(t2.$index(0, "load-path"))); t4.moveNext$0();)
  20773. t1.push(t4.get$current(t4));
  20774. t4 = H._asBoolS(t2.$index(0, "poll"));
  20775. t5 = type$.legacy_Stream_legacy_WatchEvent;
  20776. t6 = new L.StreamGroup(C._StreamGroupState_dormant, P.LinkedHashMap_LinkedHashMap$_empty(t5, type$.legacy_StreamSubscription_legacy_WatchEvent), type$.StreamGroup_legacy_WatchEvent);
  20777. t6._controller = P.StreamController_StreamController(t6.get$_onCancel(), t6.get$_onListen(), t6.get$_onPause(), t6.get$_onResume(), true, type$.legacy_WatchEvent);
  20778. dirWatcher = new U.MultiDirWatcher(P.LinkedHashMap_LinkedHashMap$_empty(t3, t5), t6, t4);
  20779. $async$goto = 3;
  20780. return P._asyncAwait(P.Future_wait(new H.MappedListIterable(t1, new A.watch_closure(dirWatcher), type$.MappedListIterable_of_legacy_String_and_legacy_Future_void), type$.void), $async$watch);
  20781. case 3:
  20782. // returning from await.
  20783. watcher = new A._Watcher(options, graph);
  20784. options._ensureSources$0(), t1 = options._sourcesToDestinations, t1 = J.get$iterator$ax(t1.get$keys(t1));
  20785. case 4:
  20786. // for condition
  20787. if (!t1.moveNext$0()) {
  20788. // goto after for
  20789. $async$goto = 5;
  20790. break;
  20791. }
  20792. t3 = t1.get$current(t1);
  20793. options._ensureSources$0();
  20794. destination = options._sourcesToDestinations.$index(0, t3);
  20795. t4 = $.$get$context();
  20796. t5 = t4.absolute$7(".", null, null, null, null, null, null);
  20797. graph.addCanonical$4$recanonicalize(new F.FilesystemImporter(t5), t4.toUri$1(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? F._realCasePath(t4.absolute$7(t4.normalize$1(t3), null, null, null, null, null, null)) : t4.canonicalize$1(t3)), t4.toUri$1(t3), false);
  20798. $async$goto = 6;
  20799. return P._asyncAwait(watcher.compile$3$ifModified(t3, destination, true), $async$watch);
  20800. case 6:
  20801. // returning from await.
  20802. if (!$async$result && H._asBoolS(t2.$index(0, "stop-on-error"))) {
  20803. t1 = dirWatcher._group._controller;
  20804. t1._subscribe$4(null, null, null, false).cancel$0();
  20805. // goto return
  20806. $async$goto = 1;
  20807. break;
  20808. }
  20809. // goto for condition
  20810. $async$goto = 4;
  20811. break;
  20812. case 5:
  20813. // after for
  20814. P.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
  20815. $async$goto = 7;
  20816. return P._asyncAwait(watcher.watch$1(0, dirWatcher), $async$watch);
  20817. case 7:
  20818. // returning from await.
  20819. case 1:
  20820. // return
  20821. return P._asyncReturn($async$returnValue, $async$completer);
  20822. }
  20823. });
  20824. return P._asyncStartSync($async$watch, $async$completer);
  20825. },
  20826. watch_closure: function watch_closure(t0) {
  20827. this.dirWatcher = t0;
  20828. },
  20829. _Watcher: function _Watcher(t0, t1) {
  20830. this._watch$_options = t0;
  20831. this._graph = t1;
  20832. },
  20833. _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
  20834. },
  20835. _Watcher__debounceEvents__closure: function _Watcher__debounceEvents__closure(t0) {
  20836. this.typeForPath = t0;
  20837. },
  20838. MergedExtension_merge: function(left, right) {
  20839. var t2, t3, t4,
  20840. t1 = left.extender;
  20841. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  20842. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  20843. t2 = left.mediaContext;
  20844. t3 = t2 == null;
  20845. if (!t3) {
  20846. t4 = right.mediaContext;
  20847. t4 = t4 != null && !C.C_ListEquality.equals$2(0, t2, t4);
  20848. } else
  20849. t4 = false;
  20850. if (t4)
  20851. throw H.wrapException(E.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  20852. if (right.isOptional && right.mediaContext == null)
  20853. return left;
  20854. if (left.isOptional && t3)
  20855. return right;
  20856. if (t3)
  20857. t2 = right.mediaContext;
  20858. t3 = left.specificity;
  20859. if (t3 == null)
  20860. t3 = t1.get$maxSpecificity();
  20861. return new A.MergedExtension(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  20862. },
  20863. MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  20864. var _ = this;
  20865. _.left = t0;
  20866. _.right = t1;
  20867. _.extender = t2;
  20868. _.target = t3;
  20869. _.specificity = t4;
  20870. _.isOptional = t5;
  20871. _.isOriginal = t6;
  20872. _.mediaContext = t7;
  20873. _.extenderSpan = t8;
  20874. _.span = t9;
  20875. },
  20876. _modify: function(map, keys, modify) {
  20877. var keyIterator = J.get$iterator$ax(keys);
  20878. return keyIterator.moveNext$0() ? new A._modify__modifyNestedMap(keyIterator, modify).call$1(map) : modify.call$1(map);
  20879. },
  20880. _deepMergeImpl: function(map1, map2) {
  20881. var t1 = {},
  20882. t2 = map2.contents;
  20883. if (t2.get$isEmpty(t2))
  20884. return map1;
  20885. t1.mutable = false;
  20886. t1.result = t2;
  20887. map1.contents.forEach$1(0, new A._deepMergeImpl_closure(t1, new A._deepMergeImpl__ensureMutable(t1)));
  20888. if (t1.mutable) {
  20889. t2 = type$.legacy_Value;
  20890. t2 = new A.SassMap(H.ConstantMap_ConstantMap$from(t1.result, t2, t2));
  20891. t1 = t2;
  20892. } else
  20893. t1 = map2;
  20894. return t1;
  20895. },
  20896. _function2: function($name, $arguments, callback) {
  20897. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:map");
  20898. },
  20899. closure34: function closure34() {
  20900. },
  20901. closure97: function closure97() {
  20902. },
  20903. _closure12: function _closure12(t0) {
  20904. this.$arguments = t0;
  20905. },
  20906. closure98: function closure98() {
  20907. },
  20908. _closure11: function _closure11(t0) {
  20909. this.args = t0;
  20910. },
  20911. closure32: function closure32() {
  20912. },
  20913. closure33: function closure33() {
  20914. },
  20915. _closure4: function _closure4(t0) {
  20916. this.map2 = t0;
  20917. },
  20918. closure96: function closure96() {
  20919. },
  20920. closure95: function closure95() {
  20921. },
  20922. _closure10: function _closure10(t0) {
  20923. this.keys = t0;
  20924. },
  20925. closure30: function closure30() {
  20926. },
  20927. closure31: function closure31() {
  20928. },
  20929. closure29: function closure29() {
  20930. },
  20931. closure28: function closure28() {
  20932. },
  20933. closure27: function closure27() {
  20934. },
  20935. _modify__modifyNestedMap: function _modify__modifyNestedMap(t0, t1) {
  20936. this.keyIterator = t0;
  20937. this.modify = t1;
  20938. },
  20939. _deepMergeImpl__ensureMutable: function _deepMergeImpl__ensureMutable(t0) {
  20940. this._box_0 = t0;
  20941. },
  20942. _deepMergeImpl_closure: function _deepMergeImpl_closure(t0, t1) {
  20943. this._box_0 = t0;
  20944. this._ensureMutable = t1;
  20945. },
  20946. SassMap: function SassMap(t0) {
  20947. this.contents = t0;
  20948. },
  20949. SassMap_asList_closure: function SassMap_asList_closure(t0) {
  20950. this.result = t0;
  20951. },
  20952. Frame_Frame$parseVM: function(frame) {
  20953. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
  20954. },
  20955. Frame_Frame$parseV8: function(frame) {
  20956. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
  20957. },
  20958. Frame_Frame$_parseFirefoxEval: function(frame) {
  20959. return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame));
  20960. },
  20961. Frame_Frame$parseFirefox: function(frame) {
  20962. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
  20963. },
  20964. Frame_Frame$parseFriendly: function(frame) {
  20965. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
  20966. },
  20967. Frame__uriOrPathToUri: function(uriOrPath) {
  20968. if (J.getInterceptor$asx(uriOrPath).contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
  20969. return P.Uri_parse(uriOrPath);
  20970. else if (C.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
  20971. return P._Uri__Uri$file(uriOrPath, true);
  20972. else if (C.JSString_methods.startsWith$1(uriOrPath, "/"))
  20973. return P._Uri__Uri$file(uriOrPath, false);
  20974. if (C.JSString_methods.contains$1(uriOrPath, "\\"))
  20975. return $.$get$windows().toUri$1(uriOrPath);
  20976. return P.Uri_parse(uriOrPath);
  20977. },
  20978. Frame__catchFormatException: function(text, body) {
  20979. var t1, exception;
  20980. try {
  20981. t1 = body.call$0();
  20982. return t1;
  20983. } catch (exception) {
  20984. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  20985. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), text);
  20986. else
  20987. throw exception;
  20988. }
  20989. },
  20990. Frame: function Frame(t0, t1, t2, t3) {
  20991. var _ = this;
  20992. _.uri = t0;
  20993. _.line = t1;
  20994. _.column = t2;
  20995. _.member = t3;
  20996. },
  20997. Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
  20998. this.frame = t0;
  20999. },
  21000. Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
  21001. this.frame = t0;
  21002. },
  21003. Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
  21004. this.frame = t0;
  21005. },
  21006. Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) {
  21007. this.frame = t0;
  21008. },
  21009. Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
  21010. this.frame = t0;
  21011. },
  21012. Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
  21013. this.frame = t0;
  21014. },
  21015. AsciiGlyphSet: function AsciiGlyphSet() {
  21016. },
  21017. Configuration0: function Configuration0(t0, t1, t2) {
  21018. this._configuration$_values = t0;
  21019. this.nodeWithSpan = t1;
  21020. this.isImplicit = t2;
  21021. },
  21022. IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4) {
  21023. var _ = this;
  21024. _.namespace = t0;
  21025. _.name = t1;
  21026. _.$arguments = t2;
  21027. _.content = t3;
  21028. _.span = t4;
  21029. },
  21030. MapExpression0: function MapExpression0(t0, t1) {
  21031. this.pairs = t0;
  21032. this.span = t1;
  21033. },
  21034. MapExpression_toString_closure0: function MapExpression_toString_closure0() {
  21035. },
  21036. _modify0: function(map, keys, modify) {
  21037. var keyIterator = J.get$iterator$ax(keys);
  21038. return keyIterator.moveNext$0() ? new A._modify__modifyNestedMap0(keyIterator, modify).call$1(map) : modify.call$1(map);
  21039. },
  21040. _deepMergeImpl0: function(map1, map2) {
  21041. var t1 = {},
  21042. t2 = map2.contents;
  21043. if (t2.get$isEmpty(t2))
  21044. return map1;
  21045. t1.mutable = false;
  21046. t1.result = t2;
  21047. map1.contents.forEach$1(0, new A._deepMergeImpl_closure0(t1, new A._deepMergeImpl__ensureMutable0(t1)));
  21048. if (t1.mutable) {
  21049. t2 = type$.legacy_Value_2;
  21050. t2 = new A.SassMap0(H.ConstantMap_ConstantMap$from(t1.result, t2, t2));
  21051. t1 = t2;
  21052. } else
  21053. t1 = map2;
  21054. return t1;
  21055. },
  21056. _function9: function($name, $arguments, callback) {
  21057. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:map");
  21058. },
  21059. closure149: function closure149() {
  21060. },
  21061. closure212: function closure212() {
  21062. },
  21063. _closure27: function _closure27(t0) {
  21064. this.$arguments = t0;
  21065. },
  21066. closure213: function closure213() {
  21067. },
  21068. _closure26: function _closure26(t0) {
  21069. this.args = t0;
  21070. },
  21071. closure147: function closure147() {
  21072. },
  21073. closure148: function closure148() {
  21074. },
  21075. _closure19: function _closure19(t0) {
  21076. this.map2 = t0;
  21077. },
  21078. closure211: function closure211() {
  21079. },
  21080. closure210: function closure210() {
  21081. },
  21082. _closure25: function _closure25(t0) {
  21083. this.keys = t0;
  21084. },
  21085. closure145: function closure145() {
  21086. },
  21087. closure146: function closure146() {
  21088. },
  21089. closure144: function closure144() {
  21090. },
  21091. closure143: function closure143() {
  21092. },
  21093. closure142: function closure142() {
  21094. },
  21095. _modify__modifyNestedMap0: function _modify__modifyNestedMap0(t0, t1) {
  21096. this.keyIterator = t0;
  21097. this.modify = t1;
  21098. },
  21099. _deepMergeImpl__ensureMutable0: function _deepMergeImpl__ensureMutable0(t0) {
  21100. this._box_0 = t0;
  21101. },
  21102. _deepMergeImpl_closure0: function _deepMergeImpl_closure0(t0, t1) {
  21103. this._box_0 = t0;
  21104. this._ensureMutable = t1;
  21105. },
  21106. _NodeSassMap: function _NodeSassMap() {
  21107. },
  21108. closure239: function closure239() {
  21109. },
  21110. _closure31: function _closure31() {
  21111. },
  21112. _closure32: function _closure32() {
  21113. },
  21114. closure240: function closure240() {
  21115. },
  21116. closure241: function closure241() {
  21117. },
  21118. closure242: function closure242() {
  21119. },
  21120. closure243: function closure243() {
  21121. },
  21122. closure244: function closure244() {
  21123. },
  21124. closure245: function closure245() {
  21125. },
  21126. SassMap0: function SassMap0(t0) {
  21127. this.contents = t0;
  21128. },
  21129. SassMap_asList_closure0: function SassMap_asList_closure0(t0) {
  21130. this.result = t0;
  21131. },
  21132. MergedExtension_merge0: function(left, right) {
  21133. var t2, t3, t4,
  21134. t1 = left.extender;
  21135. if (!J.$eq$(t1, right.extender) || !J.$eq$(left.target, right.target))
  21136. throw H.wrapException(P.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension."));
  21137. t2 = left.mediaContext;
  21138. t3 = t2 == null;
  21139. if (!t3) {
  21140. t4 = right.mediaContext;
  21141. t4 = t4 != null && !C.C_ListEquality.equals$2(0, t2, t4);
  21142. } else
  21143. t4 = false;
  21144. if (t4)
  21145. throw H.wrapException(E.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span));
  21146. if (right.isOptional && right.mediaContext == null)
  21147. return left;
  21148. if (left.isOptional && t3)
  21149. return right;
  21150. if (t3)
  21151. t2 = right.mediaContext;
  21152. t3 = left.specificity;
  21153. if (t3 == null)
  21154. t3 = t1.get$maxSpecificity();
  21155. return new A.MergedExtension0(left, right, t1, left.target, t3, true, false, t2, left.extenderSpan, left.span);
  21156. },
  21157. MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) {
  21158. var _ = this;
  21159. _.left = t0;
  21160. _.right = t1;
  21161. _.extender = t2;
  21162. _.target = t3;
  21163. _.specificity = t4;
  21164. _.isOptional = t5;
  21165. _.isOriginal = t6;
  21166. _.mediaContext = t7;
  21167. _.extenderSpan = t8;
  21168. _.span = t9;
  21169. },
  21170. _combine: function(hash, value) {
  21171. hash = 536870911 & hash + value;
  21172. hash = 536870911 & hash + ((524287 & hash) << 10);
  21173. return hash ^ hash >>> 6;
  21174. },
  21175. _finish: function(hash) {
  21176. hash = 536870911 & hash + ((67108863 & hash) << 3);
  21177. hash ^= hash >>> 11;
  21178. return 536870911 & hash + ((16383 & hash) << 15);
  21179. }
  21180. },
  21181. T = {NumberExpression: function NumberExpression(t0, t1, t2) {
  21182. this.value = t0;
  21183. this.unit = t1;
  21184. this.span = t2;
  21185. }, ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
  21186. this.expression = t0;
  21187. this.span = t1;
  21188. }, SelectorExpression: function SelectorExpression(t0) {
  21189. this.span = t0;
  21190. },
  21191. MixinRule$: function($name, $arguments, children, span, comment, hasContent) {
  21192. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement),
  21193. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure());
  21194. return new T.MixinRule(hasContent, $name, $arguments, span, t1, t2);
  21195. },
  21196. MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
  21197. var _ = this;
  21198. _.hasContent = t0;
  21199. _.name = t1;
  21200. _.$arguments = t2;
  21201. _.span = t3;
  21202. _.children = t4;
  21203. _.hasDeclarations = t5;
  21204. },
  21205. UseRule: function UseRule(t0, t1, t2, t3) {
  21206. var _ = this;
  21207. _.url = t0;
  21208. _.namespace = t1;
  21209. _.configuration = t2;
  21210. _.span = t3;
  21211. },
  21212. Selector: function Selector() {
  21213. },
  21214. EmptyExtender: function EmptyExtender() {
  21215. },
  21216. _prependParent: function(compound) {
  21217. var t2, t3, cur, _i, _null = null,
  21218. t1 = compound.components,
  21219. first = C.JSArray_methods.get$first(t1);
  21220. if (first instanceof N.UniversalSelector)
  21221. return _null;
  21222. if (first instanceof F.TypeSelector) {
  21223. t2 = first.name;
  21224. if (t2.namespace != null)
  21225. return _null;
  21226. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  21227. t3.push(new M.ParentSelector(t2.name));
  21228. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  21229. cur = t1.__internal$_current;
  21230. t3.push(cur);
  21231. }
  21232. return X.CompoundSelector$(t3);
  21233. } else {
  21234. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  21235. t2.push(new M.ParentSelector(_null));
  21236. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  21237. t2.push(t1[_i]);
  21238. return X.CompoundSelector$(t2);
  21239. }
  21240. },
  21241. _function0: function($name, $arguments, callback) {
  21242. return Q.BuiltInCallable$function($name, $arguments, callback, "sass:selector");
  21243. },
  21244. closure13: function closure13() {
  21245. },
  21246. _closure1: function _closure1(t0) {
  21247. this._box_0 = t0;
  21248. },
  21249. _closure2: function _closure2() {
  21250. },
  21251. closure12: function closure12() {
  21252. },
  21253. _closure: function _closure() {
  21254. },
  21255. _closure0: function _closure0() {
  21256. },
  21257. __closure: function __closure(t0) {
  21258. this.parent = t0;
  21259. },
  21260. closure11: function closure11() {
  21261. },
  21262. closure10: function closure10() {
  21263. },
  21264. closure9: function closure9() {
  21265. },
  21266. closure16: function closure16() {
  21267. },
  21268. closure15: function closure15() {
  21269. },
  21270. _closure3: function _closure3() {
  21271. },
  21272. closure14: function closure14() {
  21273. },
  21274. TrackingLogger: function TrackingLogger(t0) {
  21275. this._tracking$_logger = t0;
  21276. this._emittedDebug = this._emittedWarning = false;
  21277. },
  21278. SelectorParser$: function(contents, allowParent, allowPlaceholder, logger, url) {
  21279. var t1 = S.SpanScanner$(contents, url);
  21280. return new T.SelectorParser(allowParent, allowPlaceholder, t1, logger == null ? C.StderrLogger_false : logger);
  21281. },
  21282. SelectorParser: function SelectorParser(t0, t1, t2, t3) {
  21283. var _ = this;
  21284. _._allowParent = t0;
  21285. _._allowPlaceholder = t1;
  21286. _.scanner = t2;
  21287. _.logger = t3;
  21288. },
  21289. SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
  21290. this.$this = t0;
  21291. },
  21292. SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
  21293. this.$this = t0;
  21294. },
  21295. SassNumber$: function(value, unit) {
  21296. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_legacy_String);
  21297. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  21298. return new T.SassNumber(value, t1, C.List_empty, null);
  21299. },
  21300. SassNumber$withUnits: function(value, denominatorUnits, numeratorUnits) {
  21301. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.legacy_String);
  21302. return new T.SassNumber(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.legacy_String), null);
  21303. },
  21304. SassNumber: function SassNumber(t0, t1, t2, t3) {
  21305. var _ = this;
  21306. _.value = t0;
  21307. _.numeratorUnits = t1;
  21308. _.denominatorUnits = t2;
  21309. _.asSlash = t3;
  21310. },
  21311. SassNumber__coerceOrConvertValue__compatibilityException: function SassNumber__coerceOrConvertValue__compatibilityException(t0, t1, t2, t3, t4, t5, t6) {
  21312. var _ = this;
  21313. _.$this = t0;
  21314. _.other = t1;
  21315. _.otherName = t2;
  21316. _.otherHasUnits = t3;
  21317. _.name = t4;
  21318. _.newNumerators = t5;
  21319. _.newDenominators = t6;
  21320. },
  21321. SassNumber__coerceOrConvertValue_closure: function SassNumber__coerceOrConvertValue_closure(t0, t1, t2) {
  21322. this._box_0 = t0;
  21323. this.$this = t1;
  21324. this.newNumerator = t2;
  21325. },
  21326. SassNumber__coerceOrConvertValue_closure0: function SassNumber__coerceOrConvertValue_closure0(t0) {
  21327. this._compatibilityException = t0;
  21328. },
  21329. SassNumber__coerceOrConvertValue_closure1: function SassNumber__coerceOrConvertValue_closure1(t0, t1, t2) {
  21330. this._box_0 = t0;
  21331. this.$this = t1;
  21332. this.newDenominator = t2;
  21333. },
  21334. SassNumber__coerceOrConvertValue_closure2: function SassNumber__coerceOrConvertValue_closure2(t0) {
  21335. this._compatibilityException = t0;
  21336. },
  21337. SassNumber_modulo_closure: function SassNumber_modulo_closure() {
  21338. },
  21339. SassNumber_plus_closure: function SassNumber_plus_closure() {
  21340. },
  21341. SassNumber_minus_closure: function SassNumber_minus_closure() {
  21342. },
  21343. SassNumber__multiplyUnits_closure: function SassNumber__multiplyUnits_closure(t0, t1, t2) {
  21344. this._box_0 = t0;
  21345. this.$this = t1;
  21346. this.numerator = t2;
  21347. },
  21348. SassNumber__multiplyUnits_closure0: function SassNumber__multiplyUnits_closure0(t0, t1) {
  21349. this.newNumerators = t0;
  21350. this.numerator = t1;
  21351. },
  21352. SassNumber__multiplyUnits_closure1: function SassNumber__multiplyUnits_closure1(t0, t1, t2) {
  21353. this._box_0 = t0;
  21354. this.$this = t1;
  21355. this.numerator = t2;
  21356. },
  21357. SassNumber__multiplyUnits_closure2: function SassNumber__multiplyUnits_closure2(t0, t1) {
  21358. this.newNumerators = t0;
  21359. this.numerator = t1;
  21360. },
  21361. SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0, t1) {
  21362. this.$this = t0;
  21363. this.units2 = t1;
  21364. },
  21365. SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure() {
  21366. },
  21367. SingleMapping_SingleMapping$fromEntries: function(entries) {
  21368. var lines, t2, t3, urls, names, t4, files, t5, targetEntries, lineNum, _i, sourceEntry, sourceUrl, t6, urlId, _null = null,
  21369. t1 = type$.dynamic,
  21370. sourceEntries = P.List_List$from(entries, true, t1);
  21371. C.JSArray_methods.sort$0(sourceEntries);
  21372. lines = H.setRuntimeTypeInfo([], type$.JSArray_legacy_TargetLineEntry);
  21373. t2 = type$.legacy_String;
  21374. t3 = type$.legacy_int;
  21375. urls = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  21376. names = P.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  21377. t4 = type$.legacy_SourceFile;
  21378. files = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  21379. for (t3 = sourceEntries.length, t5 = type$.JSArray_legacy_TargetEntry, targetEntries = _null, lineNum = targetEntries, _i = 0; _i < sourceEntries.length; sourceEntries.length === t3 || (0, H.throwConcurrentModificationError)(sourceEntries), ++_i) {
  21380. sourceEntry = sourceEntries[_i];
  21381. if (lineNum == null || sourceEntry.get$target().get$line() > lineNum) {
  21382. lineNum = sourceEntry.get$target().get$line();
  21383. targetEntries = H.setRuntimeTypeInfo([], t5);
  21384. lines.push(new T.TargetLineEntry(lineNum, targetEntries));
  21385. }
  21386. if (sourceEntry.get$source() == null)
  21387. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), _null, _null, _null, _null));
  21388. else {
  21389. sourceUrl = J.get$sourceUrl$x(sourceEntry.get$source());
  21390. t6 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
  21391. urlId = urls.putIfAbsent$2(t6, new T.SingleMapping_SingleMapping$fromEntries_closure(urls));
  21392. if (sourceEntry.get$source() instanceof Y.FileLocation)
  21393. files.putIfAbsent$2(urlId, new T.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
  21394. sourceEntry.get$identifierName();
  21395. targetEntries.push(new T.TargetEntry(sourceEntry.get$target().get$column(), urlId, sourceEntry.get$source().get$line(), sourceEntry.get$source().get$column(), _null));
  21396. }
  21397. }
  21398. t3 = urls.get$values(urls);
  21399. t4 = H.MappedIterable_MappedIterable(t3, new T.SingleMapping_SingleMapping$fromEntries_closure1(files), H._instanceType(t3)._eval$1("Iterable.E"), t4);
  21400. t4 = P.List_List$from(t4, true, H._instanceType(t4)._eval$1("Iterable.E"));
  21401. t3 = urls.get$keys(urls);
  21402. t3 = P.List_List$from(t3, true, H._instanceType(t3)._eval$1("Iterable.E"));
  21403. t5 = names.get$keys(names);
  21404. return new T.SingleMapping(t3, P.List_List$from(t5, true, H._instanceType(t5)._eval$1("Iterable.E")), t4, lines, _null, P.LinkedHashMap_LinkedHashMap$_empty(t2, t1));
  21405. },
  21406. Mapping: function Mapping() {
  21407. },
  21408. SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
  21409. var _ = this;
  21410. _.urls = t0;
  21411. _.names = t1;
  21412. _.files = t2;
  21413. _.lines = t3;
  21414. _.targetUrl = t4;
  21415. _.sourceRoot = null;
  21416. _.extensions = t5;
  21417. },
  21418. SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
  21419. this.urls = t0;
  21420. },
  21421. SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
  21422. this.sourceEntry = t0;
  21423. },
  21424. SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
  21425. this.files = t0;
  21426. },
  21427. SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
  21428. },
  21429. SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
  21430. this.result = t0;
  21431. },
  21432. TargetLineEntry: function TargetLineEntry(t0, t1) {
  21433. this.line = t0;
  21434. this.entries = t1;
  21435. },
  21436. TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
  21437. var _ = this;
  21438. _.column = t0;
  21439. _.sourceUrlId = t1;
  21440. _.sourceLine = t2;
  21441. _.sourceColumn = t3;
  21442. _.sourceNameId = t4;
  21443. },
  21444. LazyTrace: function LazyTrace(t0) {
  21445. this._thunk = t0;
  21446. this._lazy_trace$_inner = null;
  21447. },
  21448. LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
  21449. this.$this = t0;
  21450. },
  21451. EmptyExtender0: function EmptyExtender0() {
  21452. },
  21453. MixinRule$0: function($name, $arguments, children, span, comment, hasContent) {
  21454. var t1 = P.List_List$unmodifiable(children, type$.legacy_Statement_2),
  21455. t2 = C.JSArray_methods.any$1(t1, new M.ParentStatement_closure0());
  21456. return new T.MixinRule0(hasContent, $name, $arguments, span, t1, t2);
  21457. },
  21458. MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
  21459. var _ = this;
  21460. _.hasContent = t0;
  21461. _.name = t1;
  21462. _.$arguments = t2;
  21463. _.span = t3;
  21464. _.children = t4;
  21465. _.hasDeclarations = t5;
  21466. },
  21467. NumberExpression0: function NumberExpression0(t0, t1, t2) {
  21468. this.value = t0;
  21469. this.unit = t1;
  21470. this.span = t2;
  21471. },
  21472. _parseNumber: function(value, unit) {
  21473. var invalidUnit, operands, t1, numerator, denominator, numeratorUnits, denominatorUnits;
  21474. if (unit == null || unit.length === 0)
  21475. return T.SassNumber$0(value, null);
  21476. if (!J.getInterceptor$asx(unit).contains$1(unit, "*") && !C.JSString_methods.contains$1(unit, "/"))
  21477. return T.SassNumber$0(value, unit);
  21478. invalidUnit = new P.ArgumentError(true, unit, "unit", "is invalid.");
  21479. operands = unit.split("/");
  21480. t1 = operands.length;
  21481. if (t1 > 2)
  21482. throw H.wrapException(invalidUnit);
  21483. numerator = operands[0];
  21484. denominator = t1 === 1 ? null : operands[1];
  21485. numeratorUnits = numerator.length === 0 ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : H.setRuntimeTypeInfo(numerator.split("*"), type$.JSArray_String);
  21486. if (C.JSArray_methods.any$1(numeratorUnits, new T._parseNumber_closure()))
  21487. throw H.wrapException(invalidUnit);
  21488. denominatorUnits = denominator == null ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : H.setRuntimeTypeInfo(denominator.split("*"), type$.JSArray_String);
  21489. if (C.JSArray_methods.any$1(denominatorUnits, new T._parseNumber_closure0()))
  21490. throw H.wrapException(invalidUnit);
  21491. return T.SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
  21492. },
  21493. _NodeSassNumber: function _NodeSassNumber() {
  21494. },
  21495. closure232: function closure232() {
  21496. },
  21497. closure233: function closure233() {
  21498. },
  21499. closure234: function closure234() {
  21500. },
  21501. closure235: function closure235() {
  21502. },
  21503. closure236: function closure236() {
  21504. },
  21505. closure237: function closure237() {
  21506. },
  21507. _parseNumber_closure: function _parseNumber_closure() {
  21508. },
  21509. _parseNumber_closure0: function _parseNumber_closure0() {
  21510. },
  21511. SassNumber$0: function(value, unit) {
  21512. var t1 = unit == null ? null : H.setRuntimeTypeInfo([unit], type$.JSArray_legacy_String);
  21513. t1 = t1 == null ? C.List_empty : P.List_List$unmodifiable(t1, type$.legacy_String);
  21514. return new T.SassNumber0(value, t1, C.List_empty, null);
  21515. },
  21516. SassNumber$withUnits0: function(value, denominatorUnits, numeratorUnits) {
  21517. var t1 = numeratorUnits == null ? C.List_empty : P.List_List$unmodifiable(numeratorUnits, type$.legacy_String);
  21518. return new T.SassNumber0(value, t1, denominatorUnits == null ? C.List_empty : P.List_List$unmodifiable(denominatorUnits, type$.legacy_String), null);
  21519. },
  21520. SassNumber0: function SassNumber0(t0, t1, t2, t3) {
  21521. var _ = this;
  21522. _.value = t0;
  21523. _.numeratorUnits = t1;
  21524. _.denominatorUnits = t2;
  21525. _.asSlash = t3;
  21526. },
  21527. SassNumber__coerceOrConvertValue__compatibilityException0: function SassNumber__coerceOrConvertValue__compatibilityException0(t0, t1, t2, t3, t4, t5, t6) {
  21528. var _ = this;
  21529. _.$this = t0;
  21530. _.other = t1;
  21531. _.otherName = t2;
  21532. _.otherHasUnits = t3;
  21533. _.name = t4;
  21534. _.newNumerators = t5;
  21535. _.newDenominators = t6;
  21536. },
  21537. SassNumber__coerceOrConvertValue_closure3: function SassNumber__coerceOrConvertValue_closure3(t0, t1, t2) {
  21538. this._box_0 = t0;
  21539. this.$this = t1;
  21540. this.newNumerator = t2;
  21541. },
  21542. SassNumber__coerceOrConvertValue_closure4: function SassNumber__coerceOrConvertValue_closure4(t0) {
  21543. this._compatibilityException = t0;
  21544. },
  21545. SassNumber__coerceOrConvertValue_closure5: function SassNumber__coerceOrConvertValue_closure5(t0, t1, t2) {
  21546. this._box_0 = t0;
  21547. this.$this = t1;
  21548. this.newDenominator = t2;
  21549. },
  21550. SassNumber__coerceOrConvertValue_closure6: function SassNumber__coerceOrConvertValue_closure6(t0) {
  21551. this._compatibilityException = t0;
  21552. },
  21553. SassNumber_modulo_closure0: function SassNumber_modulo_closure0() {
  21554. },
  21555. SassNumber_plus_closure0: function SassNumber_plus_closure0() {
  21556. },
  21557. SassNumber_minus_closure0: function SassNumber_minus_closure0() {
  21558. },
  21559. SassNumber__multiplyUnits_closure3: function SassNumber__multiplyUnits_closure3(t0, t1, t2) {
  21560. this._box_0 = t0;
  21561. this.$this = t1;
  21562. this.numerator = t2;
  21563. },
  21564. SassNumber__multiplyUnits_closure4: function SassNumber__multiplyUnits_closure4(t0, t1) {
  21565. this.newNumerators = t0;
  21566. this.numerator = t1;
  21567. },
  21568. SassNumber__multiplyUnits_closure5: function SassNumber__multiplyUnits_closure5(t0, t1, t2) {
  21569. this._box_0 = t0;
  21570. this.$this = t1;
  21571. this.numerator = t2;
  21572. },
  21573. SassNumber__multiplyUnits_closure6: function SassNumber__multiplyUnits_closure6(t0, t1) {
  21574. this.newNumerators = t0;
  21575. this.numerator = t1;
  21576. },
  21577. SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0, t1) {
  21578. this.$this = t0;
  21579. this.units2 = t1;
  21580. },
  21581. SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0() {
  21582. },
  21583. ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
  21584. this.expression = t0;
  21585. this.span = t1;
  21586. },
  21587. Selector0: function Selector0() {
  21588. },
  21589. SelectorExpression0: function SelectorExpression0(t0) {
  21590. this.span = t0;
  21591. },
  21592. _prependParent0: function(compound) {
  21593. var t2, t3, cur, _i, _null = null,
  21594. t1 = compound.components,
  21595. first = C.JSArray_methods.get$first(t1);
  21596. if (first instanceof N.UniversalSelector0)
  21597. return _null;
  21598. if (first instanceof F.TypeSelector0) {
  21599. t2 = first.name;
  21600. if (t2.namespace != null)
  21601. return _null;
  21602. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  21603. t3.push(new M.ParentSelector0(t2.name));
  21604. for (t1 = H.SubListIterable$(t1, 1, _null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  21605. cur = t1.__internal$_current;
  21606. t3.push(cur);
  21607. }
  21608. return X.CompoundSelector$0(t3);
  21609. } else {
  21610. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  21611. t2.push(new M.ParentSelector0(_null));
  21612. for (t3 = t1.length, _i = 0; _i < t3; ++_i)
  21613. t2.push(t1[_i]);
  21614. return X.CompoundSelector$0(t2);
  21615. }
  21616. },
  21617. _function7: function($name, $arguments, callback) {
  21618. return Q.BuiltInCallable$function0($name, $arguments, callback, "sass:selector");
  21619. },
  21620. closure128: function closure128() {
  21621. },
  21622. _closure16: function _closure16(t0) {
  21623. this._box_0 = t0;
  21624. },
  21625. _closure17: function _closure17() {
  21626. },
  21627. closure127: function closure127() {
  21628. },
  21629. _closure14: function _closure14() {
  21630. },
  21631. _closure15: function _closure15() {
  21632. },
  21633. __closure0: function __closure0(t0) {
  21634. this.parent = t0;
  21635. },
  21636. closure126: function closure126() {
  21637. },
  21638. closure125: function closure125() {
  21639. },
  21640. closure124: function closure124() {
  21641. },
  21642. closure131: function closure131() {
  21643. },
  21644. closure130: function closure130() {
  21645. },
  21646. _closure18: function _closure18() {
  21647. },
  21648. closure129: function closure129() {
  21649. },
  21650. SelectorParser$0: function(contents, allowParent, allowPlaceholder, logger, url) {
  21651. var t1 = S.SpanScanner$(contents, url);
  21652. return new T.SelectorParser0(allowParent, allowPlaceholder, t1, logger == null ? C.C_StderrLogger : logger);
  21653. },
  21654. SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
  21655. var _ = this;
  21656. _._selector$_allowParent = t0;
  21657. _._selector$_allowPlaceholder = t1;
  21658. _.scanner = t2;
  21659. _.logger = t3;
  21660. },
  21661. SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
  21662. this.$this = t0;
  21663. },
  21664. SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
  21665. this.$this = t0;
  21666. },
  21667. UseRule0: function UseRule0(t0, t1, t2, t3) {
  21668. var _ = this;
  21669. _.url = t0;
  21670. _.namespace = t1;
  21671. _.configuration = t2;
  21672. _.span = t3;
  21673. },
  21674. isWhitespace: function(character) {
  21675. return character === 32 || character === 9 || T.isNewline(character);
  21676. },
  21677. isNewline: function(character) {
  21678. return character === 10 || character === 13 || character === 12;
  21679. },
  21680. isAlphabetic0: function(character) {
  21681. var t1;
  21682. if (!(character >= 97 && character <= 122))
  21683. t1 = character >= 65 && character <= 90;
  21684. else
  21685. t1 = true;
  21686. return t1;
  21687. },
  21688. isDigit: function(character) {
  21689. return character != null && character >= 48 && character <= 57;
  21690. },
  21691. isHex: function(character) {
  21692. if (character == null)
  21693. return false;
  21694. if (T.isDigit(character))
  21695. return true;
  21696. if (character >= 97 && character <= 102)
  21697. return true;
  21698. if (character >= 65 && character <= 70)
  21699. return true;
  21700. return false;
  21701. },
  21702. isPrivate: function(identifier) {
  21703. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  21704. return first === 45 || first === 95;
  21705. },
  21706. asHex: function(character) {
  21707. if (character <= 57)
  21708. return character - 48;
  21709. if (character <= 70)
  21710. return 10 + character - 65;
  21711. return 10 + character - 97;
  21712. },
  21713. hexCharFor: function(number) {
  21714. return number < 10 ? 48 + number : 87 + number;
  21715. },
  21716. opposite: function(character) {
  21717. switch (character) {
  21718. case 40:
  21719. return 41;
  21720. case 123:
  21721. return 125;
  21722. case 91:
  21723. return 93;
  21724. default:
  21725. return null;
  21726. }
  21727. },
  21728. characterEqualsIgnoreCase: function(character1, character2) {
  21729. var upperCase1;
  21730. if (character1 === character2)
  21731. return true;
  21732. if ((character1 ^ character2) >>> 0 !== 32)
  21733. return false;
  21734. upperCase1 = (character1 & 4294967263) >>> 0;
  21735. return upperCase1 >= 65 && upperCase1 <= 90;
  21736. },
  21737. fuzzyEquals: function(number1, number2) {
  21738. return Math.abs(number1 - number2) < $.$get$epsilon();
  21739. },
  21740. fuzzyLessThan: function(number1, number2) {
  21741. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  21742. },
  21743. fuzzyLessThanOrEquals: function(number1, number2) {
  21744. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  21745. },
  21746. fuzzyGreaterThan: function(number1, number2) {
  21747. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon());
  21748. },
  21749. fuzzyGreaterThanOrEquals: function(number1, number2) {
  21750. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon();
  21751. },
  21752. fuzzyIsInt: function(number) {
  21753. number.toString;
  21754. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  21755. return false;
  21756. if (H._isInt(number))
  21757. return true;
  21758. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon();
  21759. },
  21760. fuzzyRound: function(number) {
  21761. var t1;
  21762. if (number > 0) {
  21763. t1 = C.JSNumber_methods.$mod(number, 1);
  21764. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  21765. } else {
  21766. t1 = C.JSNumber_methods.$mod(number, 1);
  21767. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  21768. }
  21769. },
  21770. fuzzyCheckRange: function(number, min, max) {
  21771. var t1 = $.$get$epsilon();
  21772. if (Math.abs(number - min) < t1)
  21773. return min;
  21774. if (Math.abs(number - max) < t1)
  21775. return max;
  21776. if (number > min && number < max)
  21777. return number;
  21778. return null;
  21779. },
  21780. fuzzyAssertRange: function(number, min, max, $name) {
  21781. var result = T.fuzzyCheckRange(number, min, max);
  21782. if (result != null)
  21783. return result;
  21784. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  21785. },
  21786. isWhitespace0: function(character) {
  21787. return character === 32 || character === 9 || T.isNewline0(character);
  21788. },
  21789. isNewline0: function(character) {
  21790. return character === 10 || character === 13 || character === 12;
  21791. },
  21792. isAlphabetic1: function(character) {
  21793. var t1;
  21794. if (!(character >= 97 && character <= 122))
  21795. t1 = character >= 65 && character <= 90;
  21796. else
  21797. t1 = true;
  21798. return t1;
  21799. },
  21800. isDigit0: function(character) {
  21801. return character != null && character >= 48 && character <= 57;
  21802. },
  21803. isHex0: function(character) {
  21804. if (character == null)
  21805. return false;
  21806. if (T.isDigit0(character))
  21807. return true;
  21808. if (character >= 97 && character <= 102)
  21809. return true;
  21810. if (character >= 65 && character <= 70)
  21811. return true;
  21812. return false;
  21813. },
  21814. isPrivate0: function(identifier) {
  21815. var first = C.JSString_methods._codeUnitAt$1(identifier, 0);
  21816. return first === 45 || first === 95;
  21817. },
  21818. asHex0: function(character) {
  21819. if (character <= 57)
  21820. return character - 48;
  21821. if (character <= 70)
  21822. return 10 + character - 65;
  21823. return 10 + character - 97;
  21824. },
  21825. hexCharFor0: function(number) {
  21826. return number < 10 ? 48 + number : 87 + number;
  21827. },
  21828. opposite0: function(character) {
  21829. switch (character) {
  21830. case 40:
  21831. return 41;
  21832. case 123:
  21833. return 125;
  21834. case 91:
  21835. return 93;
  21836. default:
  21837. return null;
  21838. }
  21839. },
  21840. characterEqualsIgnoreCase0: function(character1, character2) {
  21841. var upperCase1;
  21842. if (character1 === character2)
  21843. return true;
  21844. if ((character1 ^ character2) >>> 0 !== 32)
  21845. return false;
  21846. upperCase1 = (character1 & 4294967263) >>> 0;
  21847. return upperCase1 >= 65 && upperCase1 <= 90;
  21848. },
  21849. fuzzyEquals0: function(number1, number2) {
  21850. return Math.abs(number1 - number2) < $.$get$epsilon0();
  21851. },
  21852. fuzzyLessThan0: function(number1, number2) {
  21853. return number1 < number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  21854. },
  21855. fuzzyLessThanOrEquals0: function(number1, number2) {
  21856. return number1 < number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  21857. },
  21858. fuzzyGreaterThan0: function(number1, number2) {
  21859. return number1 > number2 && !(Math.abs(number1 - number2) < $.$get$epsilon0());
  21860. },
  21861. fuzzyGreaterThanOrEquals0: function(number1, number2) {
  21862. return number1 > number2 || Math.abs(number1 - number2) < $.$get$epsilon0();
  21863. },
  21864. fuzzyIsInt0: function(number) {
  21865. number.toString;
  21866. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  21867. return false;
  21868. if (H._isInt(number))
  21869. return true;
  21870. return Math.abs(C.JSNumber_methods.$mod(Math.abs(number - 0.5), 1) - 0.5) < $.$get$epsilon0();
  21871. },
  21872. fuzzyRound0: function(number) {
  21873. var t1;
  21874. if (number > 0) {
  21875. t1 = C.JSNumber_methods.$mod(number, 1);
  21876. return t1 < 0.5 && !(Math.abs(t1 - 0.5) < $.$get$epsilon0()) ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  21877. } else {
  21878. t1 = C.JSNumber_methods.$mod(number, 1);
  21879. return t1 < 0.5 || Math.abs(t1 - 0.5) < $.$get$epsilon0() ? C.JSNumber_methods.floor$0(number) : C.JSNumber_methods.ceil$0(number);
  21880. }
  21881. },
  21882. fuzzyCheckRange0: function(number, min, max) {
  21883. var t1 = $.$get$epsilon0();
  21884. if (Math.abs(number - min) < t1)
  21885. return min;
  21886. if (Math.abs(number - max) < t1)
  21887. return max;
  21888. if (number > min && number < max)
  21889. return number;
  21890. return null;
  21891. },
  21892. fuzzyAssertRange0: function(number, min, max, $name) {
  21893. var result = T.fuzzyCheckRange0(number, min, max);
  21894. if (result != null)
  21895. return result;
  21896. throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
  21897. }
  21898. },
  21899. S = {VariableExpression: function VariableExpression(t0, t1, t2) {
  21900. this.namespace = t0;
  21901. this.name = t1;
  21902. this.span = t2;
  21903. },
  21904. ComplexSelector$: function(components, lineBreak) {
  21905. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelectorComponent);
  21906. if (t1.length === 0)
  21907. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21908. return new S.ComplexSelector(t1, lineBreak);
  21909. },
  21910. ComplexSelector: function ComplexSelector(t0, t1) {
  21911. var _ = this;
  21912. _.components = t0;
  21913. _.lineBreak = t1;
  21914. _._complex$_isInvisible = _._maxSpecificity = _._minSpecificity = null;
  21915. },
  21916. ComplexSelector_isInvisible_closure: function ComplexSelector_isInvisible_closure() {
  21917. },
  21918. Combinator: function Combinator(t0) {
  21919. this._complex$_text = t0;
  21920. },
  21921. AsyncBuiltInCallable$mixin: function($name, $arguments, callback, url) {
  21922. return new S.AsyncBuiltInCallable($name, L.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure(callback));
  21923. },
  21924. AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2) {
  21925. this.name = t0;
  21926. this._async_built_in$_arguments = t1;
  21927. this._async_built_in$_callback = t2;
  21928. },
  21929. AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
  21930. this.callback = t0;
  21931. },
  21932. Extension$oneOff: function(extender, isOriginal, specificity) {
  21933. var _null = null;
  21934. return new S.Extension(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  21935. },
  21936. Extension: function Extension(t0, t1, t2, t3, t4, t5, t6, t7) {
  21937. var _ = this;
  21938. _.extender = t0;
  21939. _.target = t1;
  21940. _.specificity = t2;
  21941. _.isOptional = t3;
  21942. _.isOriginal = t4;
  21943. _.mediaContext = t5;
  21944. _.extenderSpan = t6;
  21945. _.span = t7;
  21946. },
  21947. StderrLogger: function StderrLogger(t0) {
  21948. this.color = t0;
  21949. },
  21950. SpanScanner$: function(string, sourceUrl) {
  21951. var t1 = Y.SourceFile$fromString(string, sourceUrl),
  21952. t2 = typeof sourceUrl == "string" ? P.Uri_parse(sourceUrl) : type$.legacy_Uri._as(sourceUrl);
  21953. return new S.SpanScanner(t1, t2, string);
  21954. },
  21955. SpanScanner: function SpanScanner(t0, t1, t2) {
  21956. var _ = this;
  21957. _._sourceFile = t0;
  21958. _.sourceUrl = t1;
  21959. _.string = t2;
  21960. _._string_scanner$_position = 0;
  21961. _._lastMatchPosition = _._lastMatch = null;
  21962. },
  21963. _SpanScannerState: function _SpanScannerState(t0, t1) {
  21964. this._scanner = t0;
  21965. this.position = t1;
  21966. },
  21967. Tuple2: function Tuple2(t0, t1, t2) {
  21968. this.item1 = t0;
  21969. this.item2 = t1;
  21970. this.$ti = t2;
  21971. },
  21972. Tuple3: function Tuple3(t0, t1, t2, t3) {
  21973. var _ = this;
  21974. _.item1 = t0;
  21975. _.item2 = t1;
  21976. _.item3 = t2;
  21977. _.$ti = t3;
  21978. },
  21979. AsyncBuiltInCallable$mixin0: function($name, $arguments, callback, url) {
  21980. return new S.AsyncBuiltInCallable0($name, L.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new S.AsyncBuiltInCallable$mixin_closure0(callback));
  21981. },
  21982. AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2) {
  21983. this.name = t0;
  21984. this._async_built_in0$_arguments = t1;
  21985. this._async_built_in0$_callback = t2;
  21986. },
  21987. AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
  21988. this.callback = t0;
  21989. },
  21990. ComplexSelector$0: function(components, lineBreak) {
  21991. var t1 = P.List_List$unmodifiable(components, type$.legacy_ComplexSelectorComponent_2);
  21992. if (t1.length === 0)
  21993. H.throwExpression(P.ArgumentError$("components may not be empty."));
  21994. return new S.ComplexSelector0(t1, lineBreak);
  21995. },
  21996. ComplexSelector0: function ComplexSelector0(t0, t1) {
  21997. var _ = this;
  21998. _.components = t0;
  21999. _.lineBreak = t1;
  22000. _._complex0$_isInvisible = _._complex0$_maxSpecificity = _._complex0$_minSpecificity = null;
  22001. },
  22002. ComplexSelector_isInvisible_closure0: function ComplexSelector_isInvisible_closure0() {
  22003. },
  22004. Combinator0: function Combinator0(t0) {
  22005. this._complex0$_text = t0;
  22006. },
  22007. Extension$oneOff0: function(extender, isOriginal, specificity) {
  22008. var _null = null;
  22009. return new S.Extension0(extender, _null, specificity == null ? extender.get$maxSpecificity() : specificity, true, isOriginal, _null, _null, _null);
  22010. },
  22011. Extension0: function Extension0(t0, t1, t2, t3, t4, t5, t6, t7) {
  22012. var _ = this;
  22013. _.extender = t0;
  22014. _.target = t1;
  22015. _.specificity = t2;
  22016. _.isOptional = t3;
  22017. _.isOriginal = t4;
  22018. _.mediaContext = t5;
  22019. _.extenderSpan = t6;
  22020. _.span = t7;
  22021. },
  22022. StderrLogger0: function StderrLogger0() {
  22023. },
  22024. VariableExpression0: function VariableExpression0(t0, t1, t2) {
  22025. this.namespace = t0;
  22026. this.name = t1;
  22027. this.span = t2;
  22028. }
  22029. };
  22030. var holders = [C, H, J, P, N, Z, V, G, F, Y, L, Q, B, O, U, M, D, E, X, K, R, A, T, S];
  22031. hunkHelpers.setFunctionNamesIfNecessary(holders);
  22032. var $ = {};
  22033. H.JS_CONST.prototype = {};
  22034. J.Interceptor.prototype = {
  22035. $eq: function(receiver, other) {
  22036. return receiver === other;
  22037. },
  22038. get$hashCode: function(receiver) {
  22039. return H.Primitives_objectHashCode(receiver);
  22040. },
  22041. toString$0: function(receiver) {
  22042. return "Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'";
  22043. },
  22044. noSuchMethod$1: function(receiver, invocation) {
  22045. throw H.wrapException(P.NoSuchMethodError$(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  22046. }
  22047. };
  22048. J.JSBool.prototype = {
  22049. toString$0: function(receiver) {
  22050. return String(receiver);
  22051. },
  22052. get$hashCode: function(receiver) {
  22053. return receiver ? 519018 : 218159;
  22054. },
  22055. $isbool: 1
  22056. };
  22057. J.JSNull.prototype = {
  22058. $eq: function(receiver, other) {
  22059. return null == other;
  22060. },
  22061. toString$0: function(receiver) {
  22062. return "null";
  22063. },
  22064. get$hashCode: function(receiver) {
  22065. return 0;
  22066. },
  22067. get$runtimeType: function(receiver) {
  22068. return C.Type_Null_Yyn;
  22069. },
  22070. noSuchMethod$1: function(receiver, invocation) {
  22071. return this.super$Interceptor$noSuchMethod(receiver, invocation);
  22072. },
  22073. $isNull: 1
  22074. };
  22075. J.JavaScriptObject.prototype = {
  22076. get$hashCode: function(receiver) {
  22077. return 0;
  22078. },
  22079. toString$0: function(receiver) {
  22080. return String(receiver);
  22081. },
  22082. $isJsError: 1,
  22083. $isJsError: 1,
  22084. $isJsSystemError: 1,
  22085. $is_NodeSassColor: 1,
  22086. $isJSFunction0: 1,
  22087. $isNodeImporterResult0: 1,
  22088. $is_NodeSassList: 1,
  22089. $is_NodeSassMap: 1,
  22090. $is_NodeSassNumber: 1,
  22091. $isRenderOptions: 1,
  22092. $isRenderResult: 1,
  22093. $is_NodeSassString: 1,
  22094. get$isTTY: function(obj) {
  22095. return obj.isTTY;
  22096. },
  22097. get$write: function(obj) {
  22098. return obj.write;
  22099. },
  22100. write$1: function(receiver, p0) {
  22101. return receiver.write(p0);
  22102. },
  22103. createInterface$1: function(receiver, p0) {
  22104. return receiver.createInterface(p0);
  22105. },
  22106. on$2: function(receiver, p0, p1) {
  22107. return receiver.on(p0, p1);
  22108. },
  22109. get$close: function(obj) {
  22110. return obj.close;
  22111. },
  22112. close$0: function(receiver) {
  22113. return receiver.close();
  22114. },
  22115. setPrompt$1: function(receiver, p0) {
  22116. return receiver.setPrompt(p0);
  22117. },
  22118. get$length: function(obj) {
  22119. return obj.length;
  22120. },
  22121. toString$0: function(receiver) {
  22122. return receiver.toString();
  22123. },
  22124. clear$0: function(receiver) {
  22125. return receiver.clear();
  22126. },
  22127. existsSync$1: function(receiver, p0) {
  22128. return receiver.existsSync(p0);
  22129. },
  22130. mkdirSync$1: function(receiver, p0) {
  22131. return receiver.mkdirSync(p0);
  22132. },
  22133. readdirSync$1: function(receiver, p0) {
  22134. return receiver.readdirSync(p0);
  22135. },
  22136. readFileSync$2: function(receiver, p0, p1) {
  22137. return receiver.readFileSync(p0, p1);
  22138. },
  22139. statSync$1: function(receiver, p0) {
  22140. return receiver.statSync(p0);
  22141. },
  22142. unlinkSync$1: function(receiver, p0) {
  22143. return receiver.unlinkSync(p0);
  22144. },
  22145. watch$2: function(receiver, p0, p1) {
  22146. return receiver.watch(p0, p1);
  22147. },
  22148. writeFileSync$2: function(receiver, p0, p1) {
  22149. return receiver.writeFileSync(p0, p1);
  22150. },
  22151. get$path: function(obj) {
  22152. return obj.path;
  22153. },
  22154. get$start: function(obj) {
  22155. return obj.start;
  22156. },
  22157. get$end: function(obj) {
  22158. return obj.end;
  22159. },
  22160. isDirectory$0: function(receiver) {
  22161. return receiver.isDirectory();
  22162. },
  22163. isFile$0: function(receiver) {
  22164. return receiver.isFile();
  22165. },
  22166. get$mtime: function(obj) {
  22167. return obj.mtime;
  22168. },
  22169. then$1$1: function(receiver, p0) {
  22170. return receiver.then(p0);
  22171. },
  22172. then$1: function(receiver, p0) {
  22173. return receiver.then(p0);
  22174. },
  22175. getTime$0: function(receiver) {
  22176. return receiver.getTime();
  22177. },
  22178. get$message: function(obj) {
  22179. return obj.message;
  22180. },
  22181. message$1: function(receiver, p0) {
  22182. return receiver.message(p0);
  22183. },
  22184. get$code: function(obj) {
  22185. return obj.code;
  22186. },
  22187. get$syscall: function(obj) {
  22188. return obj.syscall;
  22189. },
  22190. get$env: function(obj) {
  22191. return obj.env;
  22192. },
  22193. get$exitCode: function(obj) {
  22194. return obj.exitCode;
  22195. },
  22196. set$exitCode: function(obj, v) {
  22197. return obj.exitCode = v;
  22198. },
  22199. get$platform: function(obj) {
  22200. return obj.platform;
  22201. },
  22202. get$stderr: function(obj) {
  22203. return obj.stderr;
  22204. },
  22205. get$stdin: function(obj) {
  22206. return obj.stdin;
  22207. },
  22208. get$stdout: function(obj) {
  22209. return obj.stdout;
  22210. },
  22211. get$name: function(obj) {
  22212. return obj.name;
  22213. },
  22214. get$sourceUrl: function(obj) {
  22215. return obj.sourceUrl;
  22216. },
  22217. call$2: function(receiver, p0, p1) {
  22218. return receiver.call(p0, p1);
  22219. },
  22220. call$1: function(receiver, p0) {
  22221. return receiver.call(p0);
  22222. },
  22223. call$0: function(receiver) {
  22224. return receiver.call();
  22225. },
  22226. call$3$1: function(receiver, p0) {
  22227. return receiver.call(p0);
  22228. },
  22229. call$2$1: function(receiver, p0) {
  22230. return receiver.call(p0);
  22231. },
  22232. call$1$1: function(receiver, p0) {
  22233. return receiver.call(p0);
  22234. },
  22235. call$3: function(receiver, p0, p1, p2) {
  22236. return receiver.call(p0, p1, p2);
  22237. },
  22238. call$3$3: function(receiver, p0, p1, p2) {
  22239. return receiver.call(p0, p1, p2);
  22240. },
  22241. call$2$2: function(receiver, p0, p1) {
  22242. return receiver.call(p0, p1);
  22243. },
  22244. call$1$3: function(receiver, p0, p1, p2) {
  22245. return receiver.call(p0, p1, p2);
  22246. },
  22247. call$2$3: function(receiver, p0, p1, p2) {
  22248. return receiver.call(p0, p1, p2);
  22249. },
  22250. call$1$2: function(receiver, p0, p1) {
  22251. return receiver.call(p0, p1);
  22252. },
  22253. call$1$0: function(receiver) {
  22254. return receiver.call();
  22255. },
  22256. apply$2: function(receiver, p0, p1) {
  22257. return receiver.apply(p0, p1);
  22258. },
  22259. get$file: function(obj) {
  22260. return obj.file;
  22261. },
  22262. get$contents: function(obj) {
  22263. return obj.contents;
  22264. },
  22265. get$dartValue: function(obj) {
  22266. return obj.dartValue;
  22267. },
  22268. set$dartValue: function(obj, v) {
  22269. return obj.dartValue = v;
  22270. },
  22271. set$render: function(obj, v) {
  22272. return obj.render = v;
  22273. },
  22274. set$renderSync: function(obj, v) {
  22275. return obj.renderSync = v;
  22276. },
  22277. set$info: function(obj, v) {
  22278. return obj.info = v;
  22279. },
  22280. set$types: function(obj, v) {
  22281. return obj.types = v;
  22282. },
  22283. set$NULL: function(obj, v) {
  22284. return obj.NULL = v;
  22285. },
  22286. set$TRUE: function(obj, v) {
  22287. return obj.TRUE = v;
  22288. },
  22289. set$FALSE: function(obj, v) {
  22290. return obj.FALSE = v;
  22291. },
  22292. get$current: function(obj) {
  22293. return obj.current;
  22294. },
  22295. yield$0: function(receiver) {
  22296. return receiver.yield();
  22297. },
  22298. run$1$1: function(receiver, p0) {
  22299. return receiver.run(p0);
  22300. },
  22301. run$1: function(receiver, p0) {
  22302. return receiver.run(p0);
  22303. },
  22304. run$0: function(receiver) {
  22305. return receiver.run();
  22306. },
  22307. get$options: function(obj) {
  22308. return obj.options;
  22309. },
  22310. get$data: function(obj) {
  22311. return obj.data;
  22312. },
  22313. get$includePaths: function(obj) {
  22314. return obj.includePaths;
  22315. },
  22316. get$indentType: function(obj) {
  22317. return obj.indentType;
  22318. },
  22319. get$indentWidth: function(obj) {
  22320. return obj.indentWidth;
  22321. },
  22322. get$linefeed: function(obj) {
  22323. return obj.linefeed;
  22324. },
  22325. set$context: function(obj, v) {
  22326. return obj.context = v;
  22327. },
  22328. get$importer: function(obj) {
  22329. return obj.importer;
  22330. },
  22331. get$functions: function(obj) {
  22332. return obj.functions;
  22333. },
  22334. get$indentedSyntax: function(obj) {
  22335. return obj.indentedSyntax;
  22336. },
  22337. get$omitSourceMapUrl: function(obj) {
  22338. return obj.omitSourceMapUrl;
  22339. },
  22340. get$outFile: function(obj) {
  22341. return obj.outFile;
  22342. },
  22343. get$outputStyle: function(obj) {
  22344. return obj.outputStyle;
  22345. },
  22346. get$fiber: function(obj) {
  22347. return obj.fiber;
  22348. },
  22349. get$sourceMap: function(obj) {
  22350. return obj.sourceMap;
  22351. },
  22352. get$sourceMapContents: function(obj) {
  22353. return obj.sourceMapContents;
  22354. },
  22355. get$sourceMapEmbed: function(obj) {
  22356. return obj.sourceMapEmbed;
  22357. },
  22358. get$sourceMapRoot: function(obj) {
  22359. return obj.sourceMapRoot;
  22360. },
  22361. map$1: function(receiver, p0) {
  22362. return receiver.map(p0);
  22363. },
  22364. map$1$1: function(receiver, p0) {
  22365. return receiver.map(p0);
  22366. },
  22367. set$cli_pkg_main_0_: function(obj, v) {
  22368. return obj.cli_pkg_main_0_ = v;
  22369. }
  22370. };
  22371. J.PlainJavaScriptObject.prototype = {};
  22372. J.UnknownJavaScriptObject.prototype = {};
  22373. J.JavaScriptFunction.prototype = {
  22374. toString$0: function(receiver) {
  22375. var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
  22376. if (dartClosure == null)
  22377. return this.super$JavaScriptObject$toString(receiver);
  22378. return "JavaScript function for " + H.S(J.toString$0$(dartClosure));
  22379. },
  22380. $isFunction: 1
  22381. };
  22382. J.JSArray.prototype = {
  22383. cast$1$0: function(receiver, $R) {
  22384. return new H.CastList(receiver, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  22385. },
  22386. add$1: function(receiver, value) {
  22387. if (!!receiver.fixed$length)
  22388. H.throwExpression(P.UnsupportedError$("add"));
  22389. receiver.push(value);
  22390. },
  22391. removeAt$1: function(receiver, index) {
  22392. var t1;
  22393. if (!!receiver.fixed$length)
  22394. H.throwExpression(P.UnsupportedError$("removeAt"));
  22395. t1 = receiver.length;
  22396. if (index >= t1)
  22397. throw H.wrapException(P.RangeError$value(index, null, null));
  22398. return receiver.splice(index, 1)[0];
  22399. },
  22400. insert$2: function(receiver, index, value) {
  22401. var t1;
  22402. if (!!receiver.fixed$length)
  22403. H.throwExpression(P.UnsupportedError$("insert"));
  22404. t1 = receiver.length;
  22405. if (index > t1)
  22406. throw H.wrapException(P.RangeError$value(index, null, null));
  22407. receiver.splice(index, 0, value);
  22408. },
  22409. insertAll$2: function(receiver, index, iterable) {
  22410. var insertionLength, end;
  22411. if (!!receiver.fixed$length)
  22412. H.throwExpression(P.UnsupportedError$("insertAll"));
  22413. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  22414. if (!type$.EfficientLengthIterable_dynamic._is(iterable))
  22415. iterable = J.toList$0$ax(iterable);
  22416. insertionLength = J.get$length$asx(iterable);
  22417. receiver.length = receiver.length + insertionLength;
  22418. end = index + insertionLength;
  22419. this.setRange$4(receiver, end, receiver.length, receiver, index);
  22420. this.setRange$3(receiver, index, end, iterable);
  22421. },
  22422. setAll$2: function(receiver, index, iterable) {
  22423. var t1, index0;
  22424. if (!!receiver.immutable$list)
  22425. H.throwExpression(P.UnsupportedError$("setAll"));
  22426. P.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  22427. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0(); index = index0) {
  22428. index0 = index + 1;
  22429. this.$indexSet(receiver, index, t1.get$current(t1));
  22430. }
  22431. },
  22432. removeLast$0: function(receiver) {
  22433. if (!!receiver.fixed$length)
  22434. H.throwExpression(P.UnsupportedError$("removeLast"));
  22435. if (receiver.length === 0)
  22436. throw H.wrapException(H.diagnoseIndexError(receiver, -1));
  22437. return receiver.pop();
  22438. },
  22439. remove$1: function(receiver, element) {
  22440. var i;
  22441. if (!!receiver.fixed$length)
  22442. H.throwExpression(P.UnsupportedError$("remove"));
  22443. for (i = 0; i < receiver.length; ++i)
  22444. if (J.$eq$(receiver[i], element)) {
  22445. receiver.splice(i, 1);
  22446. return true;
  22447. }
  22448. return false;
  22449. },
  22450. _removeWhere$2: function(receiver, test, removeMatching) {
  22451. var i, element, t1, retained = [],
  22452. end = receiver.length;
  22453. for (i = 0; i < end; ++i) {
  22454. element = receiver[i];
  22455. if (!test.call$1(element))
  22456. retained.push(element);
  22457. if (receiver.length !== end)
  22458. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22459. }
  22460. t1 = retained.length;
  22461. if (t1 === end)
  22462. return;
  22463. this.set$length(receiver, t1);
  22464. for (i = 0; i < retained.length; ++i)
  22465. receiver[i] = retained[i];
  22466. },
  22467. where$1: function(receiver, f) {
  22468. return new H.WhereIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
  22469. },
  22470. expand$1$1: function(receiver, f, $T) {
  22471. return new H.ExpandIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  22472. },
  22473. addAll$1: function(receiver, collection) {
  22474. var t1;
  22475. if (!!receiver.fixed$length)
  22476. H.throwExpression(P.UnsupportedError$("addAll"));
  22477. for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
  22478. receiver.push(t1.get$current(t1));
  22479. },
  22480. map$1$1: function(receiver, f, $T) {
  22481. return new H.MappedListIterable(receiver, f, H._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  22482. },
  22483. map$1: function($receiver, f) {
  22484. return this.map$1$1($receiver, f, type$.dynamic);
  22485. },
  22486. join$1: function(receiver, separator) {
  22487. var i,
  22488. list = P.List_List$filled(receiver.length, "", false, type$.String);
  22489. for (i = 0; i < receiver.length; ++i)
  22490. list[i] = H.S(receiver[i]);
  22491. return list.join(separator);
  22492. },
  22493. join$0: function($receiver) {
  22494. return this.join$1($receiver, "");
  22495. },
  22496. take$1: function(receiver, n) {
  22497. return H.SubListIterable$(receiver, 0, n, H._arrayInstanceType(receiver)._precomputed1);
  22498. },
  22499. skip$1: function(receiver, n) {
  22500. return H.SubListIterable$(receiver, n, null, H._arrayInstanceType(receiver)._precomputed1);
  22501. },
  22502. fold$1$2: function(receiver, initialValue, combine) {
  22503. var value, i,
  22504. $length = receiver.length;
  22505. for (value = initialValue, i = 0; i < $length; ++i) {
  22506. value = combine.call$2(value, receiver[i]);
  22507. if (receiver.length !== $length)
  22508. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22509. }
  22510. return value;
  22511. },
  22512. fold$2: function($receiver, initialValue, combine) {
  22513. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  22514. },
  22515. firstWhere$2$orElse: function(receiver, test, orElse) {
  22516. var i, element,
  22517. end = receiver.length;
  22518. for (i = 0; i < end; ++i) {
  22519. element = receiver[i];
  22520. if (test.call$1(element))
  22521. return element;
  22522. if (receiver.length !== end)
  22523. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22524. }
  22525. if (orElse != null)
  22526. return orElse.call$0();
  22527. throw H.wrapException(H.IterableElementError_noElement());
  22528. },
  22529. lastWhere$2$orElse: function(receiver, test, orElse) {
  22530. var i, element,
  22531. $length = receiver.length;
  22532. for (i = $length - 1; i >= 0; --i) {
  22533. element = receiver[i];
  22534. if (test.call$1(element))
  22535. return element;
  22536. if ($length !== receiver.length)
  22537. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22538. }
  22539. if (orElse != null)
  22540. return orElse.call$0();
  22541. throw H.wrapException(H.IterableElementError_noElement());
  22542. },
  22543. elementAt$1: function(receiver, index) {
  22544. return receiver[index];
  22545. },
  22546. sublist$2: function(receiver, start, end) {
  22547. var end0 = receiver.length;
  22548. if (start > end0)
  22549. throw H.wrapException(P.RangeError$range(start, 0, end0, "start", null));
  22550. if (end == null)
  22551. end = end0;
  22552. else if (end < start || end > end0)
  22553. throw H.wrapException(P.RangeError$range(end, start, end0, "end", null));
  22554. if (start === end)
  22555. return H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  22556. return H.setRuntimeTypeInfo(receiver.slice(start, end), H._arrayInstanceType(receiver));
  22557. },
  22558. sublist$1: function($receiver, start) {
  22559. return this.sublist$2($receiver, start, null);
  22560. },
  22561. getRange$2: function(receiver, start, end) {
  22562. P.RangeError_checkValidRange(start, end, receiver.length);
  22563. return H.SubListIterable$(receiver, start, end, H._arrayInstanceType(receiver)._precomputed1);
  22564. },
  22565. get$first: function(receiver) {
  22566. if (receiver.length > 0)
  22567. return receiver[0];
  22568. throw H.wrapException(H.IterableElementError_noElement());
  22569. },
  22570. get$last: function(receiver) {
  22571. var t1 = receiver.length;
  22572. if (t1 > 0)
  22573. return receiver[t1 - 1];
  22574. throw H.wrapException(H.IterableElementError_noElement());
  22575. },
  22576. get$single: function(receiver) {
  22577. var t1 = receiver.length;
  22578. if (t1 === 1)
  22579. return receiver[0];
  22580. if (t1 === 0)
  22581. throw H.wrapException(H.IterableElementError_noElement());
  22582. throw H.wrapException(H.IterableElementError_tooMany());
  22583. },
  22584. removeRange$2: function(receiver, start, end) {
  22585. if (!!receiver.fixed$length)
  22586. H.throwExpression(P.UnsupportedError$("removeRange"));
  22587. P.RangeError_checkValidRange(start, end, receiver.length);
  22588. receiver.splice(start, end - start);
  22589. },
  22590. setRange$4: function(receiver, start, end, iterable, skipCount) {
  22591. var $length, otherList, otherStart, t1, i;
  22592. if (!!receiver.immutable$list)
  22593. H.throwExpression(P.UnsupportedError$("setRange"));
  22594. P.RangeError_checkValidRange(start, end, receiver.length);
  22595. $length = end - start;
  22596. if ($length === 0)
  22597. return;
  22598. P.RangeError_checkNotNegative(skipCount, "skipCount");
  22599. if (type$.List_dynamic._is(iterable)) {
  22600. otherList = iterable;
  22601. otherStart = skipCount;
  22602. } else {
  22603. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  22604. otherStart = 0;
  22605. }
  22606. t1 = J.getInterceptor$asx(otherList);
  22607. if (otherStart + $length > t1.get$length(otherList))
  22608. throw H.wrapException(H.IterableElementError_tooFew());
  22609. if (otherStart < start)
  22610. for (i = $length - 1; i >= 0; --i)
  22611. receiver[start + i] = t1.$index(otherList, otherStart + i);
  22612. else
  22613. for (i = 0; i < $length; ++i)
  22614. receiver[start + i] = t1.$index(otherList, otherStart + i);
  22615. },
  22616. setRange$3: function($receiver, start, end, iterable) {
  22617. return this.setRange$4($receiver, start, end, iterable, 0);
  22618. },
  22619. fillRange$3: function(receiver, start, end, fillValue) {
  22620. var i;
  22621. if (!!receiver.immutable$list)
  22622. H.throwExpression(P.UnsupportedError$("fill range"));
  22623. P.RangeError_checkValidRange(start, end, receiver.length);
  22624. for (i = start; i < end; ++i)
  22625. receiver[i] = fillValue;
  22626. },
  22627. any$1: function(receiver, test) {
  22628. var i,
  22629. end = receiver.length;
  22630. for (i = 0; i < end; ++i) {
  22631. if (test.call$1(receiver[i]))
  22632. return true;
  22633. if (receiver.length !== end)
  22634. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22635. }
  22636. return false;
  22637. },
  22638. every$1: function(receiver, test) {
  22639. var i,
  22640. end = receiver.length;
  22641. for (i = 0; i < end; ++i) {
  22642. if (!test.call$1(receiver[i]))
  22643. return false;
  22644. if (receiver.length !== end)
  22645. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  22646. }
  22647. return true;
  22648. },
  22649. get$reversed: function(receiver) {
  22650. return new H.ReversedListIterable(receiver, H._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
  22651. },
  22652. sort$1: function(receiver, compare) {
  22653. if (!!receiver.immutable$list)
  22654. H.throwExpression(P.UnsupportedError$("sort"));
  22655. H.Sort_sort(receiver, compare == null ? J._interceptors_JSArray__compareAny$closure() : compare);
  22656. },
  22657. sort$0: function($receiver) {
  22658. return this.sort$1($receiver, null);
  22659. },
  22660. indexOf$1: function(receiver, element) {
  22661. var i,
  22662. $length = receiver.length;
  22663. if (0 >= $length)
  22664. return -1;
  22665. for (i = 0; i < $length; ++i)
  22666. if (J.$eq$(receiver[i], element))
  22667. return i;
  22668. return -1;
  22669. },
  22670. contains$1: function(receiver, other) {
  22671. var i;
  22672. for (i = 0; i < receiver.length; ++i)
  22673. if (J.$eq$(receiver[i], other))
  22674. return true;
  22675. return false;
  22676. },
  22677. get$isEmpty: function(receiver) {
  22678. return receiver.length === 0;
  22679. },
  22680. get$isNotEmpty: function(receiver) {
  22681. return receiver.length !== 0;
  22682. },
  22683. toString$0: function(receiver) {
  22684. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  22685. },
  22686. toList$1$growable: function(receiver, growable) {
  22687. var t1 = H._arrayInstanceType(receiver);
  22688. return growable ? H.setRuntimeTypeInfo(receiver.slice(0), t1) : J.JSArray_JSArray$markFixed(receiver.slice(0), t1._precomputed1);
  22689. },
  22690. toList$0: function($receiver) {
  22691. return this.toList$1$growable($receiver, true);
  22692. },
  22693. toSet$0: function(receiver) {
  22694. return P.LinkedHashSet_LinkedHashSet$from(receiver, H._arrayInstanceType(receiver)._precomputed1);
  22695. },
  22696. get$iterator: function(receiver) {
  22697. return new J.ArrayIterator(receiver, receiver.length);
  22698. },
  22699. get$hashCode: function(receiver) {
  22700. return H.Primitives_objectHashCode(receiver);
  22701. },
  22702. get$length: function(receiver) {
  22703. return receiver.length;
  22704. },
  22705. set$length: function(receiver, newLength) {
  22706. if (!!receiver.fixed$length)
  22707. H.throwExpression(P.UnsupportedError$("set length"));
  22708. if (newLength < 0)
  22709. throw H.wrapException(P.RangeError$range(newLength, 0, null, "newLength", null));
  22710. receiver.length = newLength;
  22711. },
  22712. $index: function(receiver, index) {
  22713. if (!H._isInt(index))
  22714. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22715. if (index >= receiver.length || index < 0)
  22716. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22717. return receiver[index];
  22718. },
  22719. $indexSet: function(receiver, index, value) {
  22720. if (!!receiver.immutable$list)
  22721. H.throwExpression(P.UnsupportedError$("indexed set"));
  22722. if (!H._isInt(index))
  22723. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22724. if (index >= receiver.length || index < 0)
  22725. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22726. receiver[index] = value;
  22727. },
  22728. $add: function(receiver, other) {
  22729. var t2, _i,
  22730. t1 = H.setRuntimeTypeInfo([], H._arrayInstanceType(receiver));
  22731. for (t2 = receiver.length, _i = 0; _i < receiver.length; receiver.length === t2 || (0, H.throwConcurrentModificationError)(receiver), ++_i)
  22732. t1.push(receiver[_i]);
  22733. for (t2 = other.length, _i = 0; _i < other.length; other.length === t2 || (0, H.throwConcurrentModificationError)(other), ++_i)
  22734. t1.push(other[_i]);
  22735. return t1;
  22736. },
  22737. $isEfficientLengthIterable: 1,
  22738. $isIterable: 1,
  22739. $isList: 1
  22740. };
  22741. J.JSUnmodifiableArray.prototype = {};
  22742. J.ArrayIterator.prototype = {
  22743. get$current: function(_) {
  22744. return this._current;
  22745. },
  22746. moveNext$0: function() {
  22747. var t2, _this = this,
  22748. t1 = _this._iterable,
  22749. $length = t1.length;
  22750. if (_this._length !== $length)
  22751. throw H.wrapException(H.throwConcurrentModificationError(t1));
  22752. t2 = _this._index;
  22753. if (t2 >= $length) {
  22754. _this._current = null;
  22755. return false;
  22756. }
  22757. _this._current = t1[t2];
  22758. _this._index = t2 + 1;
  22759. return true;
  22760. }
  22761. };
  22762. J.JSNumber.prototype = {
  22763. compareTo$1: function(receiver, b) {
  22764. var bIsNegative;
  22765. if (typeof b != "number")
  22766. throw H.wrapException(H.argumentErrorValue(b));
  22767. if (receiver < b)
  22768. return -1;
  22769. else if (receiver > b)
  22770. return 1;
  22771. else if (receiver === b) {
  22772. if (receiver === 0) {
  22773. bIsNegative = this.get$isNegative(b);
  22774. if (this.get$isNegative(receiver) === bIsNegative)
  22775. return 0;
  22776. if (this.get$isNegative(receiver))
  22777. return -1;
  22778. return 1;
  22779. }
  22780. return 0;
  22781. } else if (isNaN(receiver)) {
  22782. if (isNaN(b))
  22783. return 0;
  22784. return 1;
  22785. } else
  22786. return -1;
  22787. },
  22788. get$isNegative: function(receiver) {
  22789. return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
  22790. },
  22791. ceil$0: function(receiver) {
  22792. var truncated, d;
  22793. if (receiver >= 0) {
  22794. if (receiver <= 2147483647) {
  22795. truncated = receiver | 0;
  22796. return receiver === truncated ? truncated : truncated + 1;
  22797. }
  22798. } else if (receiver >= -2147483648)
  22799. return receiver | 0;
  22800. d = Math.ceil(receiver);
  22801. if (isFinite(d))
  22802. return d;
  22803. throw H.wrapException(P.UnsupportedError$("" + receiver + ".ceil()"));
  22804. },
  22805. floor$0: function(receiver) {
  22806. var truncated, d;
  22807. if (receiver >= 0) {
  22808. if (receiver <= 2147483647)
  22809. return receiver | 0;
  22810. } else if (receiver >= -2147483648) {
  22811. truncated = receiver | 0;
  22812. return receiver === truncated ? truncated : truncated - 1;
  22813. }
  22814. d = Math.floor(receiver);
  22815. if (isFinite(d))
  22816. return d;
  22817. throw H.wrapException(P.UnsupportedError$("" + receiver + ".floor()"));
  22818. },
  22819. round$0: function(receiver) {
  22820. if (receiver > 0) {
  22821. if (receiver !== 1 / 0)
  22822. return Math.round(receiver);
  22823. } else if (receiver > -1 / 0)
  22824. return 0 - Math.round(0 - receiver);
  22825. throw H.wrapException(P.UnsupportedError$("" + receiver + ".round()"));
  22826. },
  22827. clamp$2: function(receiver, lowerLimit, upperLimit) {
  22828. if (C.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
  22829. throw H.wrapException(H.argumentErrorValue(lowerLimit));
  22830. if (this.compareTo$1(receiver, lowerLimit) < 0)
  22831. return lowerLimit;
  22832. if (this.compareTo$1(receiver, upperLimit) > 0)
  22833. return upperLimit;
  22834. return receiver;
  22835. },
  22836. toRadixString$1: function(receiver, radix) {
  22837. var result, match, exponent, t1;
  22838. if (radix < 2 || radix > 36)
  22839. throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
  22840. result = receiver.toString(radix);
  22841. if (C.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
  22842. return result;
  22843. match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
  22844. if (match == null)
  22845. H.throwExpression(P.UnsupportedError$("Unexpected toString result: " + result));
  22846. result = match[1];
  22847. exponent = +match[3];
  22848. t1 = match[2];
  22849. if (t1 != null) {
  22850. result += t1;
  22851. exponent -= t1.length;
  22852. }
  22853. return result + C.JSString_methods.$mul("0", exponent);
  22854. },
  22855. toString$0: function(receiver) {
  22856. if (receiver === 0 && 1 / receiver < 0)
  22857. return "-0.0";
  22858. else
  22859. return "" + receiver;
  22860. },
  22861. get$hashCode: function(receiver) {
  22862. var absolute, floorLog2, factor, scaled,
  22863. intValue = receiver | 0;
  22864. if (receiver === intValue)
  22865. return 536870911 & intValue;
  22866. absolute = Math.abs(receiver);
  22867. floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
  22868. factor = Math.pow(2, floorLog2);
  22869. scaled = absolute < 1 ? absolute / factor : factor / absolute;
  22870. return 536870911 & ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259;
  22871. },
  22872. $add: function(receiver, other) {
  22873. if (typeof other != "number")
  22874. throw H.wrapException(H.argumentErrorValue(other));
  22875. return receiver + other;
  22876. },
  22877. $mod: function(receiver, other) {
  22878. var result = receiver % other;
  22879. if (result === 0)
  22880. return 0;
  22881. if (result > 0)
  22882. return result;
  22883. if (other < 0)
  22884. return result - other;
  22885. else
  22886. return result + other;
  22887. },
  22888. $tdiv: function(receiver, other) {
  22889. if ((receiver | 0) === receiver)
  22890. if (other >= 1 || other < -1)
  22891. return receiver / other | 0;
  22892. return this._tdivSlow$1(receiver, other);
  22893. },
  22894. _tdivFast$1: function(receiver, other) {
  22895. return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
  22896. },
  22897. _tdivSlow$1: function(receiver, other) {
  22898. var quotient = receiver / other;
  22899. if (quotient >= -2147483648 && quotient <= 2147483647)
  22900. return quotient | 0;
  22901. if (quotient > 0) {
  22902. if (quotient !== 1 / 0)
  22903. return Math.floor(quotient);
  22904. } else if (quotient > -1 / 0)
  22905. return Math.ceil(quotient);
  22906. throw H.wrapException(P.UnsupportedError$("Result of truncating division is " + H.S(quotient) + ": " + H.S(receiver) + " ~/ " + other));
  22907. },
  22908. _shrOtherPositive$1: function(receiver, other) {
  22909. var t1;
  22910. if (receiver > 0)
  22911. t1 = this._shrBothPositive$1(receiver, other);
  22912. else {
  22913. t1 = other > 31 ? 31 : other;
  22914. t1 = receiver >> t1 >>> 0;
  22915. }
  22916. return t1;
  22917. },
  22918. _shrReceiverPositive$1: function(receiver, other) {
  22919. if (other < 0)
  22920. throw H.wrapException(H.argumentErrorValue(other));
  22921. return this._shrBothPositive$1(receiver, other);
  22922. },
  22923. _shrBothPositive$1: function(receiver, other) {
  22924. return other > 31 ? 0 : receiver >>> other;
  22925. },
  22926. $isComparable: 1,
  22927. $isdouble: 1,
  22928. $isnum: 1
  22929. };
  22930. J.JSInt.prototype = {$isint: 1};
  22931. J.JSDouble.prototype = {};
  22932. J.JSString.prototype = {
  22933. codeUnitAt$1: function(receiver, index) {
  22934. if (!H._isInt(index))
  22935. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22936. if (index < 0)
  22937. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22938. if (index >= receiver.length)
  22939. H.throwExpression(H.diagnoseIndexError(receiver, index));
  22940. return receiver.charCodeAt(index);
  22941. },
  22942. _codeUnitAt$1: function(receiver, index) {
  22943. if (index >= receiver.length)
  22944. throw H.wrapException(H.diagnoseIndexError(receiver, index));
  22945. return receiver.charCodeAt(index);
  22946. },
  22947. allMatches$2: function(receiver, string, start) {
  22948. var t1;
  22949. if (typeof string != "string")
  22950. H.throwExpression(H.argumentErrorValue(string));
  22951. t1 = string.length;
  22952. if (start > t1)
  22953. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  22954. return new H._StringAllMatchesIterable(string, receiver, start);
  22955. },
  22956. allMatches$1: function($receiver, string) {
  22957. return this.allMatches$2($receiver, string, 0);
  22958. },
  22959. matchAsPrefix$2: function(receiver, string, start) {
  22960. var t1, t2, i, _null = null;
  22961. if (start < 0 || start > string.length)
  22962. throw H.wrapException(P.RangeError$range(start, 0, string.length, _null, _null));
  22963. t1 = receiver.length;
  22964. if (start + t1 > string.length)
  22965. return _null;
  22966. for (t2 = J.getInterceptor$s(string), i = 0; i < t1; ++i)
  22967. if (t2.codeUnitAt$1(string, start + i) !== this._codeUnitAt$1(receiver, i))
  22968. return _null;
  22969. return new H.StringMatch(start, receiver);
  22970. },
  22971. $add: function(receiver, other) {
  22972. if (typeof other != "string")
  22973. throw H.wrapException(P.ArgumentError$value(other, null, null));
  22974. return receiver + other;
  22975. },
  22976. endsWith$1: function(receiver, other) {
  22977. var otherLength = other.length,
  22978. t1 = receiver.length;
  22979. if (otherLength > t1)
  22980. return false;
  22981. return other === this.substring$1(receiver, t1 - otherLength);
  22982. },
  22983. replaceFirst$2: function(receiver, from, to) {
  22984. P.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
  22985. return H.stringReplaceFirstUnchecked(receiver, from, to, 0);
  22986. },
  22987. split$1: function(receiver, pattern) {
  22988. if (pattern == null)
  22989. H.throwExpression(H.argumentErrorValue(pattern));
  22990. if (typeof pattern == "string")
  22991. return H.setRuntimeTypeInfo(receiver.split(pattern), type$.JSArray_String);
  22992. else if (pattern instanceof H.JSSyntaxRegExp && pattern.get$_nativeAnchoredVersion().exec("").length - 2 === 0)
  22993. return H.setRuntimeTypeInfo(receiver.split(pattern._nativeRegExp), type$.JSArray_String);
  22994. else
  22995. return this._defaultSplit$1(receiver, pattern);
  22996. },
  22997. replaceRange$3: function(receiver, start, end, replacement) {
  22998. var e;
  22999. if (typeof replacement != "string")
  23000. H.throwExpression(H.argumentErrorValue(replacement));
  23001. e = P.RangeError_checkValidRange(start, end, receiver.length);
  23002. return H.stringReplaceRangeUnchecked(receiver, start, e, replacement);
  23003. },
  23004. _defaultSplit$1: function(receiver, pattern) {
  23005. var t1, start, $length, match, matchStart, matchEnd,
  23006. result = H.setRuntimeTypeInfo([], type$.JSArray_String);
  23007. for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), start = 0, $length = 1; t1.moveNext$0();) {
  23008. match = t1.get$current(t1);
  23009. matchStart = match.get$start(match);
  23010. matchEnd = match.get$end(match);
  23011. $length = matchEnd - matchStart;
  23012. if ($length === 0 && start === matchStart)
  23013. continue;
  23014. result.push(this.substring$2(receiver, start, matchStart));
  23015. start = matchEnd;
  23016. }
  23017. if (start < receiver.length || $length > 0)
  23018. result.push(this.substring$1(receiver, start));
  23019. return result;
  23020. },
  23021. startsWith$2: function(receiver, pattern, index) {
  23022. var endIndex;
  23023. if (index < 0 || index > receiver.length)
  23024. throw H.wrapException(P.RangeError$range(index, 0, receiver.length, null, null));
  23025. if (typeof pattern == "string") {
  23026. endIndex = index + pattern.length;
  23027. if (endIndex > receiver.length)
  23028. return false;
  23029. return pattern === receiver.substring(index, endIndex);
  23030. }
  23031. return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
  23032. },
  23033. startsWith$1: function($receiver, pattern) {
  23034. return this.startsWith$2($receiver, pattern, 0);
  23035. },
  23036. substring$2: function(receiver, startIndex, endIndex) {
  23037. var _null = null;
  23038. if (endIndex == null)
  23039. endIndex = receiver.length;
  23040. if (startIndex < 0)
  23041. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  23042. if (startIndex > endIndex)
  23043. throw H.wrapException(P.RangeError$value(startIndex, _null, _null));
  23044. if (endIndex > receiver.length)
  23045. throw H.wrapException(P.RangeError$value(endIndex, _null, _null));
  23046. return receiver.substring(startIndex, endIndex);
  23047. },
  23048. substring$1: function($receiver, startIndex) {
  23049. return this.substring$2($receiver, startIndex, null);
  23050. },
  23051. trim$0: function(receiver) {
  23052. var startIndex, t1, endIndex0,
  23053. result = receiver.trim(),
  23054. endIndex = result.length;
  23055. if (endIndex === 0)
  23056. return result;
  23057. if (this._codeUnitAt$1(result, 0) === 133) {
  23058. startIndex = J.JSString__skipLeadingWhitespace(result, 1);
  23059. if (startIndex === endIndex)
  23060. return "";
  23061. } else
  23062. startIndex = 0;
  23063. t1 = endIndex - 1;
  23064. endIndex0 = this.codeUnitAt$1(result, t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
  23065. if (startIndex === 0 && endIndex0 === endIndex)
  23066. return result;
  23067. return result.substring(startIndex, endIndex0);
  23068. },
  23069. trimRight$0: function(receiver) {
  23070. var result, endIndex, t1;
  23071. if (typeof receiver.trimRight != "undefined") {
  23072. result = receiver.trimRight();
  23073. endIndex = result.length;
  23074. if (endIndex === 0)
  23075. return result;
  23076. t1 = endIndex - 1;
  23077. if (this.codeUnitAt$1(result, t1) === 133)
  23078. endIndex = J.JSString__skipTrailingWhitespace(result, t1);
  23079. } else {
  23080. endIndex = J.JSString__skipTrailingWhitespace(receiver, receiver.length);
  23081. result = receiver;
  23082. }
  23083. if (endIndex === result.length)
  23084. return result;
  23085. if (endIndex === 0)
  23086. return "";
  23087. return result.substring(0, endIndex);
  23088. },
  23089. $mul: function(receiver, times) {
  23090. var s, result;
  23091. if (0 >= times)
  23092. return "";
  23093. if (times === 1 || receiver.length === 0)
  23094. return receiver;
  23095. if (times !== times >>> 0)
  23096. throw H.wrapException(C.C_OutOfMemoryError);
  23097. for (s = receiver, result = ""; true;) {
  23098. if ((times & 1) === 1)
  23099. result = s + result;
  23100. times = times >>> 1;
  23101. if (times === 0)
  23102. break;
  23103. s += s;
  23104. }
  23105. return result;
  23106. },
  23107. padLeft$2: function(receiver, width, padding) {
  23108. var delta = width - receiver.length;
  23109. if (delta <= 0)
  23110. return receiver;
  23111. return this.$mul(padding, delta) + receiver;
  23112. },
  23113. padRight$1: function(receiver, width) {
  23114. var delta = width - receiver.length;
  23115. if (delta <= 0)
  23116. return receiver;
  23117. return receiver + this.$mul(" ", delta);
  23118. },
  23119. indexOf$2: function(receiver, pattern, start) {
  23120. var t1, t2, i;
  23121. if (pattern == null)
  23122. H.throwExpression(H.argumentErrorValue(pattern));
  23123. if (start < 0 || start > receiver.length)
  23124. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  23125. if (typeof pattern == "string")
  23126. return receiver.indexOf(pattern, start);
  23127. for (t1 = receiver.length, t2 = J.getInterceptor$s(pattern), i = start; i <= t1; ++i)
  23128. if (t2.matchAsPrefix$2(pattern, receiver, i) != null)
  23129. return i;
  23130. return -1;
  23131. },
  23132. indexOf$1: function($receiver, pattern) {
  23133. return this.indexOf$2($receiver, pattern, 0);
  23134. },
  23135. lastIndexOf$2: function(receiver, pattern, start) {
  23136. var t1, t2, i;
  23137. if (pattern == null)
  23138. H.throwExpression(H.argumentErrorValue(pattern));
  23139. if (start == null)
  23140. start = receiver.length;
  23141. else if (start < 0 || start > receiver.length)
  23142. throw H.wrapException(P.RangeError$range(start, 0, receiver.length, null, null));
  23143. if (typeof pattern == "string") {
  23144. t1 = pattern.length;
  23145. t2 = receiver.length;
  23146. if (start + t1 > t2)
  23147. start = t2 - t1;
  23148. return receiver.lastIndexOf(pattern, start);
  23149. }
  23150. for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
  23151. if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
  23152. return i;
  23153. return -1;
  23154. },
  23155. lastIndexOf$1: function($receiver, pattern) {
  23156. return this.lastIndexOf$2($receiver, pattern, null);
  23157. },
  23158. contains$2: function(receiver, other, startIndex) {
  23159. var t1;
  23160. if (other == null)
  23161. H.throwExpression(H.argumentErrorValue(other));
  23162. t1 = receiver.length;
  23163. if (startIndex > t1)
  23164. throw H.wrapException(P.RangeError$range(startIndex, 0, t1, null, null));
  23165. return H.stringContainsUnchecked(receiver, other, startIndex);
  23166. },
  23167. contains$1: function($receiver, other) {
  23168. return this.contains$2($receiver, other, 0);
  23169. },
  23170. get$isNotEmpty: function(receiver) {
  23171. return receiver.length !== 0;
  23172. },
  23173. compareTo$1: function(receiver, other) {
  23174. var t1;
  23175. if (typeof other != "string")
  23176. throw H.wrapException(H.argumentErrorValue(other));
  23177. if (receiver === other)
  23178. t1 = 0;
  23179. else
  23180. t1 = receiver < other ? -1 : 1;
  23181. return t1;
  23182. },
  23183. toString$0: function(receiver) {
  23184. return receiver;
  23185. },
  23186. get$hashCode: function(receiver) {
  23187. var t1, hash, i;
  23188. for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
  23189. hash = 536870911 & hash + receiver.charCodeAt(i);
  23190. hash = 536870911 & hash + ((524287 & hash) << 10);
  23191. hash ^= hash >> 6;
  23192. }
  23193. hash = 536870911 & hash + ((67108863 & hash) << 3);
  23194. hash ^= hash >> 11;
  23195. return 536870911 & hash + ((16383 & hash) << 15);
  23196. },
  23197. get$length: function(receiver) {
  23198. return receiver.length;
  23199. },
  23200. $isComparable: 1,
  23201. $isString: 1
  23202. };
  23203. H._CastIterableBase.prototype = {
  23204. get$iterator: function(_) {
  23205. var t1 = H._instanceType(this);
  23206. return new H.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>"));
  23207. },
  23208. get$length: function(_) {
  23209. return J.get$length$asx(this.get$_source());
  23210. },
  23211. get$isEmpty: function(_) {
  23212. return J.get$isEmpty$asx(this.get$_source());
  23213. },
  23214. get$isNotEmpty: function(_) {
  23215. return J.get$isNotEmpty$asx(this.get$_source());
  23216. },
  23217. skip$1: function(_, count) {
  23218. var t1 = H._instanceType(this);
  23219. return H.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  23220. },
  23221. take$1: function(_, count) {
  23222. var t1 = H._instanceType(this);
  23223. return H.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  23224. },
  23225. elementAt$1: function(_, index) {
  23226. return H._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
  23227. },
  23228. get$first: function(_) {
  23229. return H._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
  23230. },
  23231. get$last: function(_) {
  23232. return H._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
  23233. },
  23234. get$single: function(_) {
  23235. return H._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
  23236. },
  23237. contains$1: function(_, other) {
  23238. return J.contains$1$asx(this.get$_source(), other);
  23239. },
  23240. toString$0: function(_) {
  23241. return J.toString$0$(this.get$_source());
  23242. }
  23243. };
  23244. H.CastIterator.prototype = {
  23245. moveNext$0: function() {
  23246. return this._source.moveNext$0();
  23247. },
  23248. get$current: function(_) {
  23249. var t1 = this._source;
  23250. return this.$ti._rest[1]._as(t1.get$current(t1));
  23251. }
  23252. };
  23253. H.CastIterable.prototype = {
  23254. cast$1$0: function(_, $R) {
  23255. return H.CastIterable_CastIterable(this._source, H._instanceType(this)._precomputed1, $R);
  23256. },
  23257. get$_source: function() {
  23258. return this._source;
  23259. }
  23260. };
  23261. H._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
  23262. H._CastListBase.prototype = {
  23263. $index: function(_, index) {
  23264. return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
  23265. },
  23266. $indexSet: function(_, index, value) {
  23267. J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
  23268. },
  23269. set$length: function(_, $length) {
  23270. J.set$length$asx(this._source, $length);
  23271. },
  23272. add$1: function(_, value) {
  23273. J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
  23274. },
  23275. addAll$1: function(_, values) {
  23276. var t1 = this.$ti;
  23277. J.addAll$1$ax(this._source, H.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
  23278. },
  23279. sort$1: function(_, compare) {
  23280. var t1 = compare == null ? null : new H._CastListBase_sort_closure(this, compare);
  23281. J.sort$1$ax(this._source, t1);
  23282. },
  23283. getRange$2: function(_, start, end) {
  23284. var t1 = this.$ti;
  23285. return H.CastIterable_CastIterable(J.getRange$2$ax(this._source, start, end), t1._precomputed1, t1._rest[1]);
  23286. },
  23287. setRange$4: function(_, start, end, iterable, skipCount) {
  23288. var t1 = this.$ti;
  23289. J.setRange$4$ax(this._source, start, end, H.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
  23290. },
  23291. fillRange$3: function(_, start, end, fillValue) {
  23292. J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
  23293. },
  23294. $isEfficientLengthIterable: 1,
  23295. $isList: 1
  23296. };
  23297. H._CastListBase_sort_closure.prototype = {
  23298. call$2: function(v1, v2) {
  23299. var t1 = this.$this.$ti._rest[1];
  23300. return this.compare.call$2(t1._as(v1), t1._as(v2));
  23301. },
  23302. $signature: function() {
  23303. return this.$this.$ti._eval$1("int(1,1)");
  23304. }
  23305. };
  23306. H.CastList.prototype = {
  23307. cast$1$0: function(_, $R) {
  23308. return new H.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  23309. },
  23310. get$_source: function() {
  23311. return this._source;
  23312. }
  23313. };
  23314. H.CastSet.prototype = {
  23315. cast$1$0: function(_, $R) {
  23316. return new H.CastSet(this._source, this._emptySet, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastSet<1,2>"));
  23317. },
  23318. add$1: function(_, value) {
  23319. return this._source.add$1(0, this.$ti._precomputed1._as(value));
  23320. },
  23321. addAll$1: function(_, elements) {
  23322. var t1 = this.$ti;
  23323. this._source.addAll$1(0, H.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
  23324. },
  23325. toSet$0: function(_) {
  23326. var emptySet = this._emptySet,
  23327. t1 = this.$ti._rest[1],
  23328. result = emptySet == null ? P.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1);
  23329. result.addAll$1(0, this);
  23330. return result;
  23331. },
  23332. $isEfficientLengthIterable: 1,
  23333. $isSet: 1,
  23334. get$_source: function() {
  23335. return this._source;
  23336. }
  23337. };
  23338. H.CastQueue.prototype = {
  23339. cast$1$0: function(_, $R) {
  23340. return new H.CastQueue(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  23341. },
  23342. add$1: function(_, value) {
  23343. this._source._add$1(this.$ti._precomputed1._as(value));
  23344. },
  23345. $isEfficientLengthIterable: 1,
  23346. $isQueue: 1,
  23347. get$_source: function() {
  23348. return this._source;
  23349. }
  23350. };
  23351. H.LateInitializationErrorImpl.prototype = {
  23352. toString$0: function(_) {
  23353. var t1 = "LateInitializationError: " + this.__internal$_message;
  23354. return t1;
  23355. }
  23356. };
  23357. H.CodeUnits.prototype = {
  23358. get$length: function(_) {
  23359. return this._string.length;
  23360. },
  23361. $index: function(_, i) {
  23362. return C.JSString_methods.codeUnitAt$1(this._string, i);
  23363. }
  23364. };
  23365. H.EfficientLengthIterable.prototype = {};
  23366. H.ListIterable.prototype = {
  23367. get$iterator: function(_) {
  23368. return new H.ListIterator(this, this.get$length(this));
  23369. },
  23370. get$isEmpty: function(_) {
  23371. return this.get$length(this) === 0;
  23372. },
  23373. get$first: function(_) {
  23374. if (this.get$length(this) === 0)
  23375. throw H.wrapException(H.IterableElementError_noElement());
  23376. return this.elementAt$1(0, 0);
  23377. },
  23378. get$last: function(_) {
  23379. var _this = this;
  23380. if (_this.get$length(_this) === 0)
  23381. throw H.wrapException(H.IterableElementError_noElement());
  23382. return _this.elementAt$1(0, _this.get$length(_this) - 1);
  23383. },
  23384. get$single: function(_) {
  23385. var _this = this;
  23386. if (_this.get$length(_this) === 0)
  23387. throw H.wrapException(H.IterableElementError_noElement());
  23388. if (_this.get$length(_this) > 1)
  23389. throw H.wrapException(H.IterableElementError_tooMany());
  23390. return _this.elementAt$1(0, 0);
  23391. },
  23392. contains$1: function(_, element) {
  23393. var i, _this = this,
  23394. $length = _this.get$length(_this);
  23395. for (i = 0; i < $length; ++i) {
  23396. if (J.$eq$(_this.elementAt$1(0, i), element))
  23397. return true;
  23398. if ($length !== _this.get$length(_this))
  23399. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23400. }
  23401. return false;
  23402. },
  23403. any$1: function(_, test) {
  23404. var i, _this = this,
  23405. $length = _this.get$length(_this);
  23406. for (i = 0; i < $length; ++i) {
  23407. if (test.call$1(_this.elementAt$1(0, i)))
  23408. return true;
  23409. if ($length !== _this.get$length(_this))
  23410. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23411. }
  23412. return false;
  23413. },
  23414. join$1: function(_, separator) {
  23415. var first, t1, i, _this = this,
  23416. $length = _this.get$length(_this);
  23417. if (separator.length !== 0) {
  23418. if ($length === 0)
  23419. return "";
  23420. first = H.S(_this.elementAt$1(0, 0));
  23421. if ($length !== _this.get$length(_this))
  23422. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23423. for (t1 = first, i = 1; i < $length; ++i) {
  23424. t1 = t1 + separator + H.S(_this.elementAt$1(0, i));
  23425. if ($length !== _this.get$length(_this))
  23426. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23427. }
  23428. return t1.charCodeAt(0) == 0 ? t1 : t1;
  23429. } else {
  23430. for (i = 0, t1 = ""; i < $length; ++i) {
  23431. t1 += H.S(_this.elementAt$1(0, i));
  23432. if ($length !== _this.get$length(_this))
  23433. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23434. }
  23435. return t1.charCodeAt(0) == 0 ? t1 : t1;
  23436. }
  23437. },
  23438. join$0: function($receiver) {
  23439. return this.join$1($receiver, "");
  23440. },
  23441. where$1: function(_, test) {
  23442. return this.super$Iterable$where(0, test);
  23443. },
  23444. map$1$1: function(_, f, $T) {
  23445. return new H.MappedListIterable(this, f, H._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  23446. },
  23447. reduce$1: function(_, combine) {
  23448. var value, i, _this = this,
  23449. $length = _this.get$length(_this);
  23450. if ($length === 0)
  23451. throw H.wrapException(H.IterableElementError_noElement());
  23452. value = _this.elementAt$1(0, 0);
  23453. for (i = 1; i < $length; ++i) {
  23454. value = combine.call$2(value, _this.elementAt$1(0, i));
  23455. if ($length !== _this.get$length(_this))
  23456. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23457. }
  23458. return value;
  23459. },
  23460. fold$1$2: function(_, initialValue, combine) {
  23461. var value, i, _this = this,
  23462. $length = _this.get$length(_this);
  23463. for (value = initialValue, i = 0; i < $length; ++i) {
  23464. value = combine.call$2(value, _this.elementAt$1(0, i));
  23465. if ($length !== _this.get$length(_this))
  23466. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23467. }
  23468. return value;
  23469. },
  23470. fold$2: function($receiver, initialValue, combine) {
  23471. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  23472. },
  23473. skip$1: function(_, count) {
  23474. return H.SubListIterable$(this, count, null, H._instanceType(this)._eval$1("ListIterable.E"));
  23475. },
  23476. take$1: function(_, count) {
  23477. return H.SubListIterable$(this, 0, count, H._instanceType(this)._eval$1("ListIterable.E"));
  23478. },
  23479. toList$1$growable: function(_, growable) {
  23480. return P.List_List$from(this, growable, H._instanceType(this)._eval$1("ListIterable.E"));
  23481. },
  23482. toList$0: function($receiver) {
  23483. return this.toList$1$growable($receiver, true);
  23484. },
  23485. toSet$0: function(_) {
  23486. var i, _this = this,
  23487. result = P.LinkedHashSet_LinkedHashSet(H._instanceType(_this)._eval$1("ListIterable.E"));
  23488. for (i = 0; i < _this.get$length(_this); ++i)
  23489. result.add$1(0, _this.elementAt$1(0, i));
  23490. return result;
  23491. }
  23492. };
  23493. H.SubListIterable.prototype = {
  23494. SubListIterable$3: function(_iterable, _start, _endOrLength, $E) {
  23495. var endOrLength,
  23496. t1 = this._start;
  23497. P.RangeError_checkNotNegative(t1, "start");
  23498. endOrLength = this._endOrLength;
  23499. if (endOrLength != null) {
  23500. P.RangeError_checkNotNegative(endOrLength, "end");
  23501. if (t1 > endOrLength)
  23502. throw H.wrapException(P.RangeError$range(t1, 0, endOrLength, "start", null));
  23503. }
  23504. },
  23505. get$_endIndex: function() {
  23506. var $length = J.get$length$asx(this.__internal$_iterable),
  23507. endOrLength = this._endOrLength;
  23508. if (endOrLength == null || endOrLength > $length)
  23509. return $length;
  23510. return endOrLength;
  23511. },
  23512. get$_startIndex: function() {
  23513. var $length = J.get$length$asx(this.__internal$_iterable),
  23514. t1 = this._start;
  23515. if (t1 > $length)
  23516. return $length;
  23517. return t1;
  23518. },
  23519. get$length: function(_) {
  23520. var endOrLength,
  23521. $length = J.get$length$asx(this.__internal$_iterable),
  23522. t1 = this._start;
  23523. if (t1 >= $length)
  23524. return 0;
  23525. endOrLength = this._endOrLength;
  23526. if (endOrLength == null || endOrLength >= $length)
  23527. return $length - t1;
  23528. return endOrLength - t1;
  23529. },
  23530. elementAt$1: function(_, index) {
  23531. var _this = this,
  23532. realIndex = _this.get$_startIndex() + index;
  23533. if (index < 0 || realIndex >= _this.get$_endIndex())
  23534. throw H.wrapException(P.IndexError$(index, _this, "index", null, null));
  23535. return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
  23536. },
  23537. skip$1: function(_, count) {
  23538. var newStart, endOrLength, _this = this;
  23539. P.RangeError_checkNotNegative(count, "count");
  23540. newStart = _this._start + count;
  23541. endOrLength = _this._endOrLength;
  23542. if (endOrLength != null && newStart >= endOrLength)
  23543. return new H.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
  23544. return H.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1);
  23545. },
  23546. take$1: function(_, count) {
  23547. var endOrLength, t1, newEnd, _this = this;
  23548. P.RangeError_checkNotNegative(count, "count");
  23549. endOrLength = _this._endOrLength;
  23550. t1 = _this._start;
  23551. if (endOrLength == null)
  23552. return H.SubListIterable$(_this.__internal$_iterable, t1, t1 + count, _this.$ti._precomputed1);
  23553. else {
  23554. newEnd = t1 + count;
  23555. if (endOrLength < newEnd)
  23556. return _this;
  23557. return H.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  23558. }
  23559. },
  23560. toList$1$growable: function(_, growable) {
  23561. var $length, result, i, _this = this,
  23562. start = _this._start,
  23563. t1 = _this.__internal$_iterable,
  23564. t2 = J.getInterceptor$asx(t1),
  23565. end = t2.get$length(t1),
  23566. endOrLength = _this._endOrLength;
  23567. if (endOrLength != null && endOrLength < end)
  23568. end = endOrLength;
  23569. $length = end - start;
  23570. if ($length <= 0) {
  23571. t1 = _this.$ti._precomputed1;
  23572. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  23573. }
  23574. result = P.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1);
  23575. for (i = 1; i < $length; ++i) {
  23576. result[i] = t2.elementAt$1(t1, start + i);
  23577. if (t2.get$length(t1) < end)
  23578. throw H.wrapException(P.ConcurrentModificationError$(_this));
  23579. }
  23580. return result;
  23581. },
  23582. toList$0: function($receiver) {
  23583. return this.toList$1$growable($receiver, true);
  23584. }
  23585. };
  23586. H.ListIterator.prototype = {
  23587. get$current: function(_) {
  23588. var cur = this.__internal$_current;
  23589. return cur;
  23590. },
  23591. moveNext$0: function() {
  23592. var t3, _this = this,
  23593. t1 = _this.__internal$_iterable,
  23594. t2 = J.getInterceptor$asx(t1),
  23595. $length = t2.get$length(t1);
  23596. if (_this.__internal$_length !== $length)
  23597. throw H.wrapException(P.ConcurrentModificationError$(t1));
  23598. t3 = _this.__internal$_index;
  23599. if (t3 >= $length) {
  23600. _this.__internal$_current = null;
  23601. return false;
  23602. }
  23603. _this.__internal$_current = t2.elementAt$1(t1, t3);
  23604. ++_this.__internal$_index;
  23605. return true;
  23606. }
  23607. };
  23608. H.MappedIterable.prototype = {
  23609. get$iterator: function(_) {
  23610. return new H.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  23611. },
  23612. get$length: function(_) {
  23613. return J.get$length$asx(this.__internal$_iterable);
  23614. },
  23615. get$isEmpty: function(_) {
  23616. return J.get$isEmpty$asx(this.__internal$_iterable);
  23617. },
  23618. get$first: function(_) {
  23619. return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
  23620. },
  23621. get$last: function(_) {
  23622. return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
  23623. },
  23624. get$single: function(_) {
  23625. return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
  23626. },
  23627. elementAt$1: function(_, index) {
  23628. return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
  23629. }
  23630. };
  23631. H.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
  23632. H.MappedIterator.prototype = {
  23633. moveNext$0: function() {
  23634. var _this = this,
  23635. t1 = _this._iterator;
  23636. if (t1.moveNext$0()) {
  23637. _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
  23638. return true;
  23639. }
  23640. _this.__internal$_current = null;
  23641. return false;
  23642. },
  23643. get$current: function(_) {
  23644. var cur = this.__internal$_current;
  23645. return cur;
  23646. }
  23647. };
  23648. H.MappedListIterable.prototype = {
  23649. get$length: function(_) {
  23650. return J.get$length$asx(this._source);
  23651. },
  23652. elementAt$1: function(_, index) {
  23653. return this._f.call$1(J.elementAt$1$ax(this._source, index));
  23654. }
  23655. };
  23656. H.WhereIterable.prototype = {
  23657. get$iterator: function(_) {
  23658. return new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  23659. },
  23660. map$1$1: function(_, f, $T) {
  23661. return new H.MappedIterable(this, f, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  23662. }
  23663. };
  23664. H.WhereIterator.prototype = {
  23665. moveNext$0: function() {
  23666. var t1, t2;
  23667. for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
  23668. if (t2.call$1(t1.get$current(t1)))
  23669. return true;
  23670. return false;
  23671. },
  23672. get$current: function(_) {
  23673. var t1 = this._iterator;
  23674. return t1.get$current(t1);
  23675. }
  23676. };
  23677. H.ExpandIterable.prototype = {
  23678. get$iterator: function(_) {
  23679. return new H.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, C.C_EmptyIterator);
  23680. }
  23681. };
  23682. H.ExpandIterator.prototype = {
  23683. get$current: function(_) {
  23684. var cur = this.__internal$_current;
  23685. return cur;
  23686. },
  23687. moveNext$0: function() {
  23688. var t2, t3, _this = this,
  23689. t1 = _this._currentExpansion;
  23690. if (t1 == null)
  23691. return false;
  23692. for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
  23693. _this.__internal$_current = null;
  23694. if (t2.moveNext$0()) {
  23695. _this._currentExpansion = null;
  23696. t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
  23697. _this._currentExpansion = t1;
  23698. } else
  23699. return false;
  23700. }
  23701. t1 = _this._currentExpansion;
  23702. _this.__internal$_current = t1.get$current(t1);
  23703. return true;
  23704. }
  23705. };
  23706. H.TakeIterable.prototype = {
  23707. get$iterator: function(_) {
  23708. return new H.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount);
  23709. }
  23710. };
  23711. H.EfficientLengthTakeIterable.prototype = {
  23712. get$length: function(_) {
  23713. var iterableLength = J.get$length$asx(this.__internal$_iterable),
  23714. t1 = this._takeCount;
  23715. if (iterableLength > t1)
  23716. return t1;
  23717. return iterableLength;
  23718. },
  23719. $isEfficientLengthIterable: 1
  23720. };
  23721. H.TakeIterator.prototype = {
  23722. moveNext$0: function() {
  23723. if (--this._remaining >= 0)
  23724. return this._iterator.moveNext$0();
  23725. this._remaining = -1;
  23726. return false;
  23727. },
  23728. get$current: function(_) {
  23729. var t1;
  23730. if (this._remaining < 0)
  23731. return null;
  23732. t1 = this._iterator;
  23733. return t1.get$current(t1);
  23734. }
  23735. };
  23736. H.SkipIterable.prototype = {
  23737. skip$1: function(_, count) {
  23738. P.ArgumentError_checkNotNull(count, "count");
  23739. P.RangeError_checkNotNegative(count, "count");
  23740. return new H.SkipIterable(this.__internal$_iterable, this._skipCount + count, H._instanceType(this)._eval$1("SkipIterable<1>"));
  23741. },
  23742. get$iterator: function(_) {
  23743. return new H.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
  23744. }
  23745. };
  23746. H.EfficientLengthSkipIterable.prototype = {
  23747. get$length: function(_) {
  23748. var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
  23749. if ($length >= 0)
  23750. return $length;
  23751. return 0;
  23752. },
  23753. skip$1: function(_, count) {
  23754. P.ArgumentError_checkNotNull(count, "count");
  23755. P.RangeError_checkNotNegative(count, "count");
  23756. return new H.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
  23757. },
  23758. $isEfficientLengthIterable: 1
  23759. };
  23760. H.SkipIterator.prototype = {
  23761. moveNext$0: function() {
  23762. var t1, i;
  23763. for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
  23764. t1.moveNext$0();
  23765. this._skipCount = 0;
  23766. return t1.moveNext$0();
  23767. },
  23768. get$current: function(_) {
  23769. var t1 = this._iterator;
  23770. return t1.get$current(t1);
  23771. }
  23772. };
  23773. H.SkipWhileIterable.prototype = {
  23774. get$iterator: function(_) {
  23775. return new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  23776. }
  23777. };
  23778. H.SkipWhileIterator.prototype = {
  23779. moveNext$0: function() {
  23780. var t1, t2, _this = this;
  23781. if (!_this._hasSkipped) {
  23782. _this._hasSkipped = true;
  23783. for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
  23784. if (!t2.call$1(t1.get$current(t1)))
  23785. return true;
  23786. }
  23787. return _this._iterator.moveNext$0();
  23788. },
  23789. get$current: function(_) {
  23790. var t1 = this._iterator;
  23791. return t1.get$current(t1);
  23792. }
  23793. };
  23794. H.EmptyIterable.prototype = {
  23795. get$iterator: function(_) {
  23796. return C.C_EmptyIterator;
  23797. },
  23798. get$isEmpty: function(_) {
  23799. return true;
  23800. },
  23801. get$length: function(_) {
  23802. return 0;
  23803. },
  23804. get$first: function(_) {
  23805. throw H.wrapException(H.IterableElementError_noElement());
  23806. },
  23807. get$last: function(_) {
  23808. throw H.wrapException(H.IterableElementError_noElement());
  23809. },
  23810. get$single: function(_) {
  23811. throw H.wrapException(H.IterableElementError_noElement());
  23812. },
  23813. elementAt$1: function(_, index) {
  23814. throw H.wrapException(P.RangeError$range(index, 0, 0, "index", null));
  23815. },
  23816. contains$1: function(_, element) {
  23817. return false;
  23818. },
  23819. join$1: function(_, separator) {
  23820. return "";
  23821. },
  23822. join$0: function($receiver) {
  23823. return this.join$1($receiver, "");
  23824. },
  23825. where$1: function(_, test) {
  23826. return this;
  23827. },
  23828. map$1$1: function(_, f, $T) {
  23829. return new H.EmptyIterable($T._eval$1("EmptyIterable<0>"));
  23830. },
  23831. skip$1: function(_, count) {
  23832. P.RangeError_checkNotNegative(count, "count");
  23833. return this;
  23834. },
  23835. take$1: function(_, count) {
  23836. P.RangeError_checkNotNegative(count, "count");
  23837. return this;
  23838. },
  23839. toList$1$growable: function(_, growable) {
  23840. var t1 = this.$ti._precomputed1;
  23841. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  23842. },
  23843. toList$0: function($receiver) {
  23844. return this.toList$1$growable($receiver, true);
  23845. },
  23846. toSet$0: function(_) {
  23847. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  23848. }
  23849. };
  23850. H.EmptyIterator.prototype = {
  23851. moveNext$0: function() {
  23852. return false;
  23853. },
  23854. get$current: function(_) {
  23855. throw H.wrapException(H.IterableElementError_noElement());
  23856. }
  23857. };
  23858. H.FollowedByIterable.prototype = {
  23859. get$iterator: function(_) {
  23860. return new H.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
  23861. },
  23862. get$length: function(_) {
  23863. var t1 = this._second;
  23864. return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
  23865. },
  23866. get$isEmpty: function(_) {
  23867. var t1;
  23868. if (J.get$isEmpty$asx(this.__internal$_first)) {
  23869. t1 = this._second;
  23870. t1 = t1.get$isEmpty(t1);
  23871. } else
  23872. t1 = false;
  23873. return t1;
  23874. },
  23875. get$isNotEmpty: function(_) {
  23876. var t1;
  23877. if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
  23878. t1 = this._second;
  23879. t1 = t1.get$isNotEmpty(t1);
  23880. } else
  23881. t1 = true;
  23882. return t1;
  23883. },
  23884. contains$1: function(_, value) {
  23885. return J.contains$1$asx(this.__internal$_first, value) || this._second.contains$1(0, value);
  23886. },
  23887. get$first: function(_) {
  23888. var t1,
  23889. iterator = J.get$iterator$ax(this.__internal$_first);
  23890. if (iterator.moveNext$0())
  23891. return iterator.get$current(iterator);
  23892. t1 = this._second;
  23893. return t1.get$first(t1);
  23894. },
  23895. get$last: function(_) {
  23896. var last,
  23897. t1 = this._second,
  23898. iterator = t1.get$iterator(t1);
  23899. if (iterator.moveNext$0()) {
  23900. last = iterator.get$current(iterator);
  23901. for (; iterator.moveNext$0();)
  23902. last = iterator.get$current(iterator);
  23903. return last;
  23904. }
  23905. return J.get$last$ax(this.__internal$_first);
  23906. }
  23907. };
  23908. H.EfficientLengthFollowedByIterable.prototype = {
  23909. elementAt$1: function(_, index) {
  23910. var t1 = this.__internal$_first,
  23911. t2 = J.getInterceptor$asx(t1),
  23912. firstLength = t2.get$length(t1);
  23913. if (index < firstLength)
  23914. return t2.elementAt$1(t1, index);
  23915. return this._second.elementAt$1(0, index - firstLength);
  23916. },
  23917. get$first: function(_) {
  23918. var t1 = this.__internal$_first,
  23919. t2 = J.getInterceptor$asx(t1);
  23920. if (t2.get$isNotEmpty(t1))
  23921. return t2.get$first(t1);
  23922. t1 = this._second;
  23923. return t1.get$first(t1);
  23924. },
  23925. get$last: function(_) {
  23926. var t1 = this._second;
  23927. if (t1.get$isNotEmpty(t1))
  23928. return t1.get$last(t1);
  23929. return J.get$last$ax(this.__internal$_first);
  23930. },
  23931. $isEfficientLengthIterable: 1
  23932. };
  23933. H.FollowedByIterator.prototype = {
  23934. moveNext$0: function() {
  23935. var t1, _this = this;
  23936. if (_this._currentIterator.moveNext$0())
  23937. return true;
  23938. t1 = _this._nextIterable;
  23939. if (t1 != null) {
  23940. t1 = t1.get$iterator(t1);
  23941. _this._currentIterator = t1;
  23942. _this._nextIterable = null;
  23943. return t1.moveNext$0();
  23944. }
  23945. return false;
  23946. },
  23947. get$current: function(_) {
  23948. var t1 = this._currentIterator;
  23949. return t1.get$current(t1);
  23950. }
  23951. };
  23952. H.WhereTypeIterable.prototype = {
  23953. get$iterator: function(_) {
  23954. return new H.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
  23955. }
  23956. };
  23957. H.WhereTypeIterator.prototype = {
  23958. moveNext$0: function() {
  23959. var t1, t2;
  23960. for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
  23961. if (t2._is(t1.get$current(t1)))
  23962. return true;
  23963. return false;
  23964. },
  23965. get$current: function(_) {
  23966. var t1 = this._source;
  23967. return this.$ti._precomputed1._as(t1.get$current(t1));
  23968. }
  23969. };
  23970. H.FixedLengthListMixin.prototype = {
  23971. set$length: function(receiver, newLength) {
  23972. throw H.wrapException(P.UnsupportedError$("Cannot change the length of a fixed-length list"));
  23973. },
  23974. add$1: function(receiver, value) {
  23975. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23976. },
  23977. addAll$1: function(receiver, iterable) {
  23978. throw H.wrapException(P.UnsupportedError$("Cannot add to a fixed-length list"));
  23979. }
  23980. };
  23981. H.UnmodifiableListMixin.prototype = {
  23982. $indexSet: function(_, index, value) {
  23983. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23984. },
  23985. set$length: function(_, newLength) {
  23986. throw H.wrapException(P.UnsupportedError$("Cannot change the length of an unmodifiable list"));
  23987. },
  23988. add$1: function(_, value) {
  23989. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23990. },
  23991. addAll$1: function(_, iterable) {
  23992. throw H.wrapException(P.UnsupportedError$("Cannot add to an unmodifiable list"));
  23993. },
  23994. sort$1: function(_, compare) {
  23995. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23996. },
  23997. setRange$4: function(_, start, end, iterable, skipCount) {
  23998. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  23999. },
  24000. fillRange$3: function(_, start, end, fillValue) {
  24001. throw H.wrapException(P.UnsupportedError$("Cannot modify an unmodifiable list"));
  24002. }
  24003. };
  24004. H.UnmodifiableListBase.prototype = {};
  24005. H.ReversedListIterable.prototype = {
  24006. get$length: function(_) {
  24007. return J.get$length$asx(this._source);
  24008. },
  24009. elementAt$1: function(_, index) {
  24010. var t1 = this._source,
  24011. t2 = J.getInterceptor$asx(t1);
  24012. return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
  24013. }
  24014. };
  24015. H.Symbol.prototype = {
  24016. get$hashCode: function(_) {
  24017. var hash = this._hashCode;
  24018. if (hash != null)
  24019. return hash;
  24020. hash = 536870911 & 664597 * J.get$hashCode$(this.__internal$_name);
  24021. this._hashCode = hash;
  24022. return hash;
  24023. },
  24024. toString$0: function(_) {
  24025. return 'Symbol("' + H.S(this.__internal$_name) + '")';
  24026. },
  24027. $eq: function(_, other) {
  24028. if (other == null)
  24029. return false;
  24030. return other instanceof H.Symbol && this.__internal$_name == other.__internal$_name;
  24031. },
  24032. $isSymbol0: 1
  24033. };
  24034. H.__CastListBase__CastIterableBase_ListMixin.prototype = {};
  24035. H.ConstantMapView.prototype = {};
  24036. H.ConstantMap.prototype = {
  24037. get$isEmpty: function(_) {
  24038. return this.get$length(this) === 0;
  24039. },
  24040. get$isNotEmpty: function(_) {
  24041. return this.get$length(this) !== 0;
  24042. },
  24043. toString$0: function(_) {
  24044. return P.MapBase_mapToString(this);
  24045. },
  24046. $indexSet: function(_, key, val) {
  24047. H.ConstantMap__throwUnmodifiable();
  24048. },
  24049. putIfAbsent$2: function(key, ifAbsent) {
  24050. H.ConstantMap__throwUnmodifiable();
  24051. },
  24052. remove$1: function(_, key) {
  24053. H.ConstantMap__throwUnmodifiable();
  24054. },
  24055. addAll$1: function(_, other) {
  24056. return H.ConstantMap__throwUnmodifiable();
  24057. },
  24058. get$entries: function(_) {
  24059. return this.entries$body$ConstantMap(_, H._instanceType(this)._eval$1("MapEntry<1,2>"));
  24060. },
  24061. entries$body$ConstantMap: function($async$_, $async$type) {
  24062. var $async$self = this;
  24063. return P._makeSyncStarIterable(function() {
  24064. var _ = $async$_;
  24065. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key, t3;
  24066. return function $async$get$entries($async$errorCode, $async$result) {
  24067. if ($async$errorCode === 1) {
  24068. $async$currentError = $async$result;
  24069. $async$goto = $async$handler;
  24070. }
  24071. while (true)
  24072. switch ($async$goto) {
  24073. case 0:
  24074. // Function start
  24075. t1 = $async$self.get$keys($async$self), t1 = t1.get$iterator(t1), t2 = H._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>");
  24076. case 2:
  24077. // for condition
  24078. if (!t1.moveNext$0()) {
  24079. // goto after for
  24080. $async$goto = 3;
  24081. break;
  24082. }
  24083. key = t1.get$current(t1);
  24084. t3 = $async$self.$index(0, key);
  24085. t3.toString;
  24086. $async$goto = 4;
  24087. return new P.MapEntry(key, t3, t2);
  24088. case 4:
  24089. // after yield
  24090. // goto for condition
  24091. $async$goto = 2;
  24092. break;
  24093. case 3:
  24094. // after for
  24095. // implicit return
  24096. return P._IterationMarker_endOfIteration();
  24097. case 1:
  24098. // rethrow
  24099. return P._IterationMarker_uncaughtError($async$currentError);
  24100. }
  24101. };
  24102. }, $async$type);
  24103. },
  24104. $isMap: 1
  24105. };
  24106. H.ConstantStringMap.prototype = {
  24107. get$length: function(_) {
  24108. return this.__js_helper$_length;
  24109. },
  24110. containsKey$1: function(key) {
  24111. if (typeof key != "string")
  24112. return false;
  24113. if ("__proto__" === key)
  24114. return false;
  24115. return this._jsObject.hasOwnProperty(key);
  24116. },
  24117. $index: function(_, key) {
  24118. if (!this.containsKey$1(key))
  24119. return null;
  24120. return this._fetch$1(key);
  24121. },
  24122. _fetch$1: function(key) {
  24123. return this._jsObject[key];
  24124. },
  24125. forEach$1: function(_, f) {
  24126. var t1, i, key,
  24127. keys = this.__js_helper$_keys;
  24128. for (t1 = keys.length, i = 0; i < t1; ++i) {
  24129. key = keys[i];
  24130. f.call$2(key, this._fetch$1(key));
  24131. }
  24132. },
  24133. get$keys: function(_) {
  24134. return new H._ConstantMapKeyIterable(this, H._instanceType(this)._eval$1("_ConstantMapKeyIterable<1>"));
  24135. },
  24136. get$values: function(_) {
  24137. var t1 = H._instanceType(this);
  24138. return H.MappedIterable_MappedIterable(this.__js_helper$_keys, new H.ConstantStringMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  24139. }
  24140. };
  24141. H.ConstantStringMap_values_closure.prototype = {
  24142. call$1: function(key) {
  24143. return this.$this._fetch$1(key);
  24144. },
  24145. $signature: function() {
  24146. return H._instanceType(this.$this)._eval$1("2(1)");
  24147. }
  24148. };
  24149. H.ConstantProtoMap.prototype = {
  24150. containsKey$1: function(key) {
  24151. if (typeof key != "string")
  24152. return false;
  24153. if ("__proto__" === key)
  24154. return true;
  24155. return this._jsObject.hasOwnProperty(key);
  24156. },
  24157. _fetch$1: function(key) {
  24158. return "__proto__" === key ? this._protoValue : this._jsObject[key];
  24159. }
  24160. };
  24161. H._ConstantMapKeyIterable.prototype = {
  24162. get$iterator: function(_) {
  24163. var t1 = this._map.__js_helper$_keys;
  24164. return new J.ArrayIterator(t1, t1.length);
  24165. },
  24166. get$length: function(_) {
  24167. return this._map.__js_helper$_keys.length;
  24168. }
  24169. };
  24170. H.Instantiation.prototype = {
  24171. Instantiation$1: function(_genericClosure) {
  24172. if (false)
  24173. H.instantiatedGenericFunctionType(0, 0);
  24174. },
  24175. toString$0: function(_) {
  24176. var types = "<" + C.JSArray_methods.join$1(this.get$_types(), ", ") + ">";
  24177. return H.S(this._genericClosure) + " with " + types;
  24178. }
  24179. };
  24180. H.Instantiation1.prototype = {
  24181. get$_types: function() {
  24182. return [H.createRuntimeType(this.$ti._precomputed1)];
  24183. },
  24184. call$2: function(a0, a1) {
  24185. return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
  24186. },
  24187. call$0: function() {
  24188. return this._genericClosure.call$1$0(this.$ti._rest[0]);
  24189. },
  24190. call$3: function(a0, a1, a2) {
  24191. return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
  24192. },
  24193. call$4: function(a0, a1, a2, a3) {
  24194. return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
  24195. },
  24196. $signature: function() {
  24197. return H.instantiatedGenericFunctionType(H.closureFunctionType(this._genericClosure), this.$ti);
  24198. }
  24199. };
  24200. H.JSInvocationMirror.prototype = {
  24201. get$memberName: function() {
  24202. var t1 = this.__js_helper$_memberName;
  24203. return t1;
  24204. },
  24205. get$positionalArguments: function() {
  24206. var t1, argumentCount, list, index, _this = this;
  24207. if (_this.__js_helper$_kind === 1)
  24208. return C.List_empty22;
  24209. t1 = _this._arguments;
  24210. argumentCount = t1.length - _this._namedArgumentNames.length - _this._typeArgumentCount;
  24211. if (argumentCount === 0)
  24212. return C.List_empty22;
  24213. list = [];
  24214. for (index = 0; index < argumentCount; ++index)
  24215. list.push(t1[index]);
  24216. return J.JSArray_markUnmodifiableList(list);
  24217. },
  24218. get$namedArguments: function() {
  24219. var t1, namedArgumentCount, t2, namedArgumentsStartIndex, map, i, _this = this;
  24220. if (_this.__js_helper$_kind !== 0)
  24221. return C.Map_empty10;
  24222. t1 = _this._namedArgumentNames;
  24223. namedArgumentCount = t1.length;
  24224. t2 = _this._arguments;
  24225. namedArgumentsStartIndex = t2.length - namedArgumentCount - _this._typeArgumentCount;
  24226. if (namedArgumentCount === 0)
  24227. return C.Map_empty10;
  24228. map = new H.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
  24229. for (i = 0; i < namedArgumentCount; ++i)
  24230. map.$indexSet(0, new H.Symbol(t1[i]), t2[namedArgumentsStartIndex + i]);
  24231. return new H.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
  24232. }
  24233. };
  24234. H.Primitives_functionNoSuchMethod_closure.prototype = {
  24235. call$2: function($name, argument) {
  24236. var t1 = this._box_0;
  24237. t1.names = t1.names + "$" + H.S($name);
  24238. this.namedArgumentList.push($name);
  24239. this.$arguments.push(argument);
  24240. ++t1.argumentCount;
  24241. },
  24242. $signature: 313
  24243. };
  24244. H.TypeErrorDecoder.prototype = {
  24245. matchTypeError$1: function(message) {
  24246. var result, t1, _this = this,
  24247. match = new RegExp(_this._pattern).exec(message);
  24248. if (match == null)
  24249. return null;
  24250. result = Object.create(null);
  24251. t1 = _this._arguments;
  24252. if (t1 !== -1)
  24253. result.arguments = match[t1 + 1];
  24254. t1 = _this._argumentsExpr;
  24255. if (t1 !== -1)
  24256. result.argumentsExpr = match[t1 + 1];
  24257. t1 = _this._expr;
  24258. if (t1 !== -1)
  24259. result.expr = match[t1 + 1];
  24260. t1 = _this._method;
  24261. if (t1 !== -1)
  24262. result.method = match[t1 + 1];
  24263. t1 = _this._receiver;
  24264. if (t1 !== -1)
  24265. result.receiver = match[t1 + 1];
  24266. return result;
  24267. }
  24268. };
  24269. H.NullError.prototype = {
  24270. toString$0: function(_) {
  24271. var t1 = this._method;
  24272. if (t1 == null)
  24273. return "NoSuchMethodError: " + H.S(this.__js_helper$_message);
  24274. return "NoSuchMethodError: method not found: '" + t1 + "' on null";
  24275. }
  24276. };
  24277. H.JsNoSuchMethodError.prototype = {
  24278. toString$0: function(_) {
  24279. var t2, _this = this,
  24280. _s38_ = "NoSuchMethodError: method not found: '",
  24281. t1 = _this._method;
  24282. if (t1 == null)
  24283. return "NoSuchMethodError: " + H.S(_this.__js_helper$_message);
  24284. t2 = _this._receiver;
  24285. if (t2 == null)
  24286. return _s38_ + t1 + "' (" + H.S(_this.__js_helper$_message) + ")";
  24287. return _s38_ + t1 + "' on '" + t2 + "' (" + H.S(_this.__js_helper$_message) + ")";
  24288. }
  24289. };
  24290. H.UnknownJsTypeError.prototype = {
  24291. toString$0: function(_) {
  24292. var t1 = this.__js_helper$_message;
  24293. return t1.length === 0 ? "Error" : "Error: " + t1;
  24294. }
  24295. };
  24296. H.NullThrownFromJavaScriptException.prototype = {
  24297. toString$0: function(_) {
  24298. return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)";
  24299. },
  24300. $isException: 1
  24301. };
  24302. H.ExceptionAndStackTrace.prototype = {};
  24303. H._StackTrace.prototype = {
  24304. toString$0: function(_) {
  24305. var trace,
  24306. t1 = this._trace;
  24307. if (t1 != null)
  24308. return t1;
  24309. t1 = this._exception;
  24310. trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
  24311. return this._trace = trace == null ? "" : trace;
  24312. },
  24313. $isStackTrace: 1
  24314. };
  24315. H.Closure.prototype = {
  24316. toString$0: function(_) {
  24317. var $constructor = this.constructor,
  24318. $name = $constructor == null ? null : $constructor.name;
  24319. return "Closure '" + H.unminifyOrTag($name == null ? "unknown" : $name) + "'";
  24320. },
  24321. $isFunction: 1,
  24322. get$$call: function() {
  24323. return this;
  24324. },
  24325. "call*": "call$1",
  24326. $requiredArgCount: 1,
  24327. $defaultValues: null
  24328. };
  24329. H.TearOffClosure.prototype = {};
  24330. H.StaticClosure.prototype = {
  24331. toString$0: function(_) {
  24332. var $name = this.$static_name;
  24333. if ($name == null)
  24334. return "Closure of unknown static method";
  24335. return "Closure '" + H.unminifyOrTag($name) + "'";
  24336. }
  24337. };
  24338. H.BoundClosure.prototype = {
  24339. $eq: function(_, other) {
  24340. var _this = this;
  24341. if (other == null)
  24342. return false;
  24343. if (_this === other)
  24344. return true;
  24345. if (!(other instanceof H.BoundClosure))
  24346. return false;
  24347. return _this._self === other._self && _this._target === other._target && _this._receiver === other._receiver;
  24348. },
  24349. get$hashCode: function(_) {
  24350. var receiverHashCode,
  24351. t1 = this._receiver;
  24352. if (t1 == null)
  24353. receiverHashCode = H.Primitives_objectHashCode(this._self);
  24354. else
  24355. receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primitives_objectHashCode(t1);
  24356. return (receiverHashCode ^ H.Primitives_objectHashCode(this._target)) >>> 0;
  24357. },
  24358. toString$0: function(_) {
  24359. var receiver = this._receiver;
  24360. if (receiver == null)
  24361. receiver = this._self;
  24362. return "Closure '" + H.S(this.__js_helper$_name) + "' of " + ("Instance of '" + H.S(H.Primitives_objectTypeName(receiver)) + "'");
  24363. }
  24364. };
  24365. H.RuntimeError.prototype = {
  24366. toString$0: function(_) {
  24367. return "RuntimeError: " + this.message;
  24368. },
  24369. get$message: function(receiver) {
  24370. return this.message;
  24371. }
  24372. };
  24373. H._Required.prototype = {};
  24374. H.JsLinkedHashMap.prototype = {
  24375. get$length: function(_) {
  24376. return this.__js_helper$_length;
  24377. },
  24378. get$isEmpty: function(_) {
  24379. return this.__js_helper$_length === 0;
  24380. },
  24381. get$isNotEmpty: function(_) {
  24382. return !this.get$isEmpty(this);
  24383. },
  24384. get$keys: function(_) {
  24385. return new H.LinkedHashMapKeyIterable(this, H._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
  24386. },
  24387. get$values: function(_) {
  24388. var _this = this,
  24389. t1 = H._instanceType(_this);
  24390. return H.MappedIterable_MappedIterable(_this.get$keys(_this), new H.JsLinkedHashMap_values_closure(_this), t1._precomputed1, t1._rest[1]);
  24391. },
  24392. containsKey$1: function(key) {
  24393. var strings, nums, _this = this;
  24394. if (typeof key == "string") {
  24395. strings = _this._strings;
  24396. if (strings == null)
  24397. return false;
  24398. return _this._containsTableEntry$2(strings, key);
  24399. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  24400. nums = _this._nums;
  24401. if (nums == null)
  24402. return false;
  24403. return _this._containsTableEntry$2(nums, key);
  24404. } else
  24405. return _this.internalContainsKey$1(key);
  24406. },
  24407. internalContainsKey$1: function(key) {
  24408. var _this = this,
  24409. rest = _this.__js_helper$_rest;
  24410. if (rest == null)
  24411. return false;
  24412. return _this.internalFindBucketIndex$2(_this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key)), key) >= 0;
  24413. },
  24414. addAll$1: function(_, other) {
  24415. other.forEach$1(0, new H.JsLinkedHashMap_addAll_closure(this));
  24416. },
  24417. $index: function(_, key) {
  24418. var strings, cell, t1, nums, _this = this, _null = null;
  24419. if (typeof key == "string") {
  24420. strings = _this._strings;
  24421. if (strings == null)
  24422. return _null;
  24423. cell = _this._getTableCell$2(strings, key);
  24424. t1 = cell == null ? _null : cell.hashMapCellValue;
  24425. return t1;
  24426. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  24427. nums = _this._nums;
  24428. if (nums == null)
  24429. return _null;
  24430. cell = _this._getTableCell$2(nums, key);
  24431. t1 = cell == null ? _null : cell.hashMapCellValue;
  24432. return t1;
  24433. } else
  24434. return _this.internalGet$1(key);
  24435. },
  24436. internalGet$1: function(key) {
  24437. var bucket, index, _this = this,
  24438. rest = _this.__js_helper$_rest;
  24439. if (rest == null)
  24440. return null;
  24441. bucket = _this._getTableBucket$2(rest, _this.internalComputeHashCode$1(key));
  24442. index = _this.internalFindBucketIndex$2(bucket, key);
  24443. if (index < 0)
  24444. return null;
  24445. return bucket[index].hashMapCellValue;
  24446. },
  24447. $indexSet: function(_, key, value) {
  24448. var strings, nums, _this = this;
  24449. if (typeof key == "string") {
  24450. strings = _this._strings;
  24451. _this._addHashTableEntry$3(strings == null ? _this._strings = _this._newHashTable$0() : strings, key, value);
  24452. } else if (typeof key == "number" && (key & 0x3ffffff) === key) {
  24453. nums = _this._nums;
  24454. _this._addHashTableEntry$3(nums == null ? _this._nums = _this._newHashTable$0() : nums, key, value);
  24455. } else
  24456. _this.internalSet$2(key, value);
  24457. },
  24458. internalSet$2: function(key, value) {
  24459. var hash, bucket, index, _this = this,
  24460. rest = _this.__js_helper$_rest;
  24461. if (rest == null)
  24462. rest = _this.__js_helper$_rest = _this._newHashTable$0();
  24463. hash = _this.internalComputeHashCode$1(key);
  24464. bucket = _this._getTableBucket$2(rest, hash);
  24465. if (bucket == null)
  24466. _this._setTableEntry$3(rest, hash, [_this._newLinkedCell$2(key, value)]);
  24467. else {
  24468. index = _this.internalFindBucketIndex$2(bucket, key);
  24469. if (index >= 0)
  24470. bucket[index].hashMapCellValue = value;
  24471. else
  24472. bucket.push(_this._newLinkedCell$2(key, value));
  24473. }
  24474. },
  24475. putIfAbsent$2: function(key, ifAbsent) {
  24476. var value;
  24477. if (this.containsKey$1(key))
  24478. return this.$index(0, key);
  24479. value = ifAbsent.call$0();
  24480. this.$indexSet(0, key, value);
  24481. return value;
  24482. },
  24483. remove$1: function(_, key) {
  24484. var _this = this;
  24485. if (typeof key == "string")
  24486. return _this.__js_helper$_removeHashTableEntry$2(_this._strings, key);
  24487. else if (typeof key == "number" && (key & 0x3ffffff) === key)
  24488. return _this.__js_helper$_removeHashTableEntry$2(_this._nums, key);
  24489. else
  24490. return _this.internalRemove$1(key);
  24491. },
  24492. internalRemove$1: function(key) {
  24493. var hash, bucket, index, cell, _this = this,
  24494. rest = _this.__js_helper$_rest;
  24495. if (rest == null)
  24496. return null;
  24497. hash = _this.internalComputeHashCode$1(key);
  24498. bucket = _this._getTableBucket$2(rest, hash);
  24499. index = _this.internalFindBucketIndex$2(bucket, key);
  24500. if (index < 0)
  24501. return null;
  24502. cell = bucket.splice(index, 1)[0];
  24503. _this.__js_helper$_unlinkCell$1(cell);
  24504. if (bucket.length === 0)
  24505. _this._deleteTableEntry$2(rest, hash);
  24506. return cell.hashMapCellValue;
  24507. },
  24508. clear$0: function(_) {
  24509. var _this = this;
  24510. if (_this.__js_helper$_length > 0) {
  24511. _this._strings = _this._nums = _this.__js_helper$_rest = _this._first = _this._last = null;
  24512. _this.__js_helper$_length = 0;
  24513. _this._modified$0();
  24514. }
  24515. },
  24516. forEach$1: function(_, action) {
  24517. var _this = this,
  24518. cell = _this._first,
  24519. modifications = _this._modifications;
  24520. for (; cell != null;) {
  24521. action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
  24522. if (modifications !== _this._modifications)
  24523. throw H.wrapException(P.ConcurrentModificationError$(_this));
  24524. cell = cell._next;
  24525. }
  24526. },
  24527. _addHashTableEntry$3: function(table, key, value) {
  24528. var cell = this._getTableCell$2(table, key);
  24529. if (cell == null)
  24530. this._setTableEntry$3(table, key, this._newLinkedCell$2(key, value));
  24531. else
  24532. cell.hashMapCellValue = value;
  24533. },
  24534. __js_helper$_removeHashTableEntry$2: function(table, key) {
  24535. var cell;
  24536. if (table == null)
  24537. return null;
  24538. cell = this._getTableCell$2(table, key);
  24539. if (cell == null)
  24540. return null;
  24541. this.__js_helper$_unlinkCell$1(cell);
  24542. this._deleteTableEntry$2(table, key);
  24543. return cell.hashMapCellValue;
  24544. },
  24545. _modified$0: function() {
  24546. this._modifications = this._modifications + 1 & 67108863;
  24547. },
  24548. _newLinkedCell$2: function(key, value) {
  24549. var t1, _this = this,
  24550. cell = new H.LinkedHashMapCell(key, value);
  24551. if (_this._first == null)
  24552. _this._first = _this._last = cell;
  24553. else {
  24554. t1 = _this._last;
  24555. t1.toString;
  24556. cell._previous = t1;
  24557. _this._last = t1._next = cell;
  24558. }
  24559. ++_this.__js_helper$_length;
  24560. _this._modified$0();
  24561. return cell;
  24562. },
  24563. __js_helper$_unlinkCell$1: function(cell) {
  24564. var _this = this,
  24565. previous = cell._previous,
  24566. next = cell._next;
  24567. if (previous == null)
  24568. _this._first = next;
  24569. else
  24570. previous._next = next;
  24571. if (next == null)
  24572. _this._last = previous;
  24573. else
  24574. next._previous = previous;
  24575. --_this.__js_helper$_length;
  24576. _this._modified$0();
  24577. },
  24578. internalComputeHashCode$1: function(key) {
  24579. return J.get$hashCode$(key) & 0x3ffffff;
  24580. },
  24581. internalFindBucketIndex$2: function(bucket, key) {
  24582. var $length, i;
  24583. if (bucket == null)
  24584. return -1;
  24585. $length = bucket.length;
  24586. for (i = 0; i < $length; ++i)
  24587. if (J.$eq$(bucket[i].hashMapCellKey, key))
  24588. return i;
  24589. return -1;
  24590. },
  24591. toString$0: function(_) {
  24592. return P.MapBase_mapToString(this);
  24593. },
  24594. _getTableCell$2: function(table, key) {
  24595. return table[key];
  24596. },
  24597. _getTableBucket$2: function(table, key) {
  24598. return table[key];
  24599. },
  24600. _setTableEntry$3: function(table, key, value) {
  24601. table[key] = value;
  24602. },
  24603. _deleteTableEntry$2: function(table, key) {
  24604. delete table[key];
  24605. },
  24606. _containsTableEntry$2: function(table, key) {
  24607. return this._getTableCell$2(table, key) != null;
  24608. },
  24609. _newHashTable$0: function() {
  24610. var _s20_ = "<non-identifier-key>",
  24611. table = Object.create(null);
  24612. this._setTableEntry$3(table, _s20_, table);
  24613. this._deleteTableEntry$2(table, _s20_);
  24614. return table;
  24615. }
  24616. };
  24617. H.JsLinkedHashMap_values_closure.prototype = {
  24618. call$1: function(each) {
  24619. return this.$this.$index(0, each);
  24620. },
  24621. $signature: function() {
  24622. return H._instanceType(this.$this)._eval$1("2(1)");
  24623. }
  24624. };
  24625. H.JsLinkedHashMap_addAll_closure.prototype = {
  24626. call$2: function(key, value) {
  24627. this.$this.$indexSet(0, key, value);
  24628. },
  24629. $signature: function() {
  24630. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  24631. }
  24632. };
  24633. H.LinkedHashMapCell.prototype = {};
  24634. H.LinkedHashMapKeyIterable.prototype = {
  24635. get$length: function(_) {
  24636. return this._map.__js_helper$_length;
  24637. },
  24638. get$isEmpty: function(_) {
  24639. return this._map.__js_helper$_length === 0;
  24640. },
  24641. get$iterator: function(_) {
  24642. var t1 = this._map,
  24643. t2 = new H.LinkedHashMapKeyIterator(t1, t1._modifications);
  24644. t2._cell = t1._first;
  24645. return t2;
  24646. },
  24647. contains$1: function(_, element) {
  24648. return this._map.containsKey$1(element);
  24649. }
  24650. };
  24651. H.LinkedHashMapKeyIterator.prototype = {
  24652. get$current: function(_) {
  24653. return this.__js_helper$_current;
  24654. },
  24655. moveNext$0: function() {
  24656. var cell, _this = this,
  24657. t1 = _this._map;
  24658. if (_this._modifications !== t1._modifications)
  24659. throw H.wrapException(P.ConcurrentModificationError$(t1));
  24660. cell = _this._cell;
  24661. if (cell == null) {
  24662. _this.__js_helper$_current = null;
  24663. return false;
  24664. } else {
  24665. _this.__js_helper$_current = cell.hashMapCellKey;
  24666. _this._cell = cell._next;
  24667. return true;
  24668. }
  24669. }
  24670. };
  24671. H.initHooks_closure.prototype = {
  24672. call$1: function(o) {
  24673. return this.getTag(o);
  24674. },
  24675. $signature: 43
  24676. };
  24677. H.initHooks_closure0.prototype = {
  24678. call$2: function(o, tag) {
  24679. return this.getUnknownTag(o, tag);
  24680. },
  24681. $signature: 315
  24682. };
  24683. H.initHooks_closure1.prototype = {
  24684. call$1: function(tag) {
  24685. return this.prototypeForTag(tag);
  24686. },
  24687. $signature: 299
  24688. };
  24689. H.JSSyntaxRegExp.prototype = {
  24690. toString$0: function(_) {
  24691. return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
  24692. },
  24693. get$_nativeGlobalVersion: function() {
  24694. var _this = this,
  24695. t1 = _this._nativeGlobalRegExp;
  24696. if (t1 != null)
  24697. return t1;
  24698. t1 = _this._nativeRegExp;
  24699. return _this._nativeGlobalRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  24700. },
  24701. get$_nativeAnchoredVersion: function() {
  24702. var _this = this,
  24703. t1 = _this._nativeAnchoredRegExp;
  24704. if (t1 != null)
  24705. return t1;
  24706. t1 = _this._nativeRegExp;
  24707. return _this._nativeAnchoredRegExp = H.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  24708. },
  24709. firstMatch$1: function(string) {
  24710. var m;
  24711. if (typeof string != "string")
  24712. H.throwExpression(H.argumentErrorValue(string));
  24713. m = this._nativeRegExp.exec(string);
  24714. if (m == null)
  24715. return null;
  24716. return new H._MatchImplementation(m);
  24717. },
  24718. allMatches$2: function(_, string, start) {
  24719. var t1 = string.length;
  24720. if (start > t1)
  24721. throw H.wrapException(P.RangeError$range(start, 0, t1, null, null));
  24722. return new H._AllMatchesIterable(this, string, start);
  24723. },
  24724. allMatches$1: function($receiver, string) {
  24725. return this.allMatches$2($receiver, string, 0);
  24726. },
  24727. _execGlobal$2: function(string, start) {
  24728. var match,
  24729. regexp = this.get$_nativeGlobalVersion();
  24730. regexp.lastIndex = start;
  24731. match = regexp.exec(string);
  24732. if (match == null)
  24733. return null;
  24734. return new H._MatchImplementation(match);
  24735. },
  24736. _execAnchored$2: function(string, start) {
  24737. var match,
  24738. regexp = this.get$_nativeAnchoredVersion();
  24739. regexp.lastIndex = start;
  24740. match = regexp.exec(string);
  24741. if (match == null)
  24742. return null;
  24743. if (match.pop() != null)
  24744. return null;
  24745. return new H._MatchImplementation(match);
  24746. },
  24747. matchAsPrefix$2: function(_, string, start) {
  24748. if (start < 0 || start > string.length)
  24749. throw H.wrapException(P.RangeError$range(start, 0, string.length, null, null));
  24750. return this._execAnchored$2(string, start);
  24751. }
  24752. };
  24753. H._MatchImplementation.prototype = {
  24754. get$start: function(_) {
  24755. return this._match.index;
  24756. },
  24757. get$end: function(_) {
  24758. var t1 = this._match;
  24759. return t1.index + t1[0].length;
  24760. },
  24761. $isMatch: 1,
  24762. $isRegExpMatch: 1
  24763. };
  24764. H._AllMatchesIterable.prototype = {
  24765. get$iterator: function(_) {
  24766. return new H._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
  24767. }
  24768. };
  24769. H._AllMatchesIterator.prototype = {
  24770. get$current: function(_) {
  24771. var t1 = this.__js_helper$_current;
  24772. t1.toString;
  24773. return t1;
  24774. },
  24775. moveNext$0: function() {
  24776. var t1, t2, t3, match, nextIndex, _this = this,
  24777. string = _this.__js_helper$_string;
  24778. if (string == null)
  24779. return false;
  24780. t1 = _this._nextIndex;
  24781. t2 = string.length;
  24782. if (t1 <= t2) {
  24783. t3 = _this._regExp;
  24784. match = t3._execGlobal$2(string, t1);
  24785. if (match != null) {
  24786. _this.__js_helper$_current = match;
  24787. nextIndex = match.get$end(match);
  24788. if (match._match.index === nextIndex) {
  24789. if (t3._nativeRegExp.unicode) {
  24790. t1 = _this._nextIndex;
  24791. t3 = t1 + 1;
  24792. if (t3 < t2) {
  24793. t1 = C.JSString_methods.codeUnitAt$1(string, t1);
  24794. if (t1 >= 55296 && t1 <= 56319) {
  24795. t1 = C.JSString_methods.codeUnitAt$1(string, t3);
  24796. t1 = t1 >= 56320 && t1 <= 57343;
  24797. } else
  24798. t1 = false;
  24799. } else
  24800. t1 = false;
  24801. } else
  24802. t1 = false;
  24803. nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
  24804. }
  24805. _this._nextIndex = nextIndex;
  24806. return true;
  24807. }
  24808. }
  24809. _this.__js_helper$_string = _this.__js_helper$_current = null;
  24810. return false;
  24811. }
  24812. };
  24813. H.StringMatch.prototype = {
  24814. get$end: function(_) {
  24815. return this.start + this.pattern.length;
  24816. },
  24817. group$1: function(_, group_) {
  24818. if (group_ !== 0)
  24819. throw H.wrapException(P.RangeError$value(group_, null, null));
  24820. return this.pattern;
  24821. },
  24822. $isMatch: 1,
  24823. get$start: function(receiver) {
  24824. return this.start;
  24825. }
  24826. };
  24827. H._StringAllMatchesIterable.prototype = {
  24828. get$iterator: function(_) {
  24829. return new H._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
  24830. },
  24831. get$first: function(_) {
  24832. var t1 = this._pattern,
  24833. index = this._input.indexOf(t1, this.__js_helper$_index);
  24834. if (index >= 0)
  24835. return new H.StringMatch(index, t1);
  24836. throw H.wrapException(H.IterableElementError_noElement());
  24837. }
  24838. };
  24839. H._StringAllMatchesIterator.prototype = {
  24840. moveNext$0: function() {
  24841. var index, end, _this = this,
  24842. t1 = _this.__js_helper$_index,
  24843. t2 = _this._pattern,
  24844. t3 = t2.length,
  24845. t4 = _this._input,
  24846. t5 = t4.length;
  24847. if (t1 + t3 > t5) {
  24848. _this.__js_helper$_current = null;
  24849. return false;
  24850. }
  24851. index = t4.indexOf(t2, t1);
  24852. if (index < 0) {
  24853. _this.__js_helper$_index = t5 + 1;
  24854. _this.__js_helper$_current = null;
  24855. return false;
  24856. }
  24857. end = index + t3;
  24858. _this.__js_helper$_current = new H.StringMatch(index, t2);
  24859. _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
  24860. return true;
  24861. },
  24862. get$current: function(_) {
  24863. var t1 = this.__js_helper$_current;
  24864. t1.toString;
  24865. return t1;
  24866. }
  24867. };
  24868. H.NativeTypedData.prototype = {
  24869. _invalidPosition$3: function(receiver, position, $length, $name) {
  24870. if (!H._isInt(position))
  24871. throw H.wrapException(P.ArgumentError$value(position, $name, "Invalid list position"));
  24872. else
  24873. throw H.wrapException(P.RangeError$range(position, 0, $length, $name, null));
  24874. },
  24875. _checkPosition$3: function(receiver, position, $length, $name) {
  24876. if (position >>> 0 !== position || position > $length)
  24877. this._invalidPosition$3(receiver, position, $length, $name);
  24878. }
  24879. };
  24880. H.NativeTypedArray.prototype = {
  24881. get$length: function(receiver) {
  24882. return receiver.length;
  24883. },
  24884. _setRangeFast$4: function(receiver, start, end, source, skipCount) {
  24885. var count, sourceLength,
  24886. targetLength = receiver.length;
  24887. this._checkPosition$3(receiver, start, targetLength, "start");
  24888. this._checkPosition$3(receiver, end, targetLength, "end");
  24889. if (start > end)
  24890. throw H.wrapException(P.RangeError$range(start, 0, end, null, null));
  24891. count = end - start;
  24892. if (skipCount < 0)
  24893. throw H.wrapException(P.ArgumentError$(skipCount));
  24894. sourceLength = source.length;
  24895. if (sourceLength - skipCount < count)
  24896. throw H.wrapException(P.StateError$("Not enough elements"));
  24897. if (skipCount !== 0 || sourceLength !== count)
  24898. source = source.subarray(skipCount, skipCount + count);
  24899. receiver.set(source, start);
  24900. },
  24901. $isJavaScriptIndexingBehavior: 1
  24902. };
  24903. H.NativeTypedArrayOfDouble.prototype = {
  24904. $index: function(receiver, index) {
  24905. H._checkValidIndex(index, receiver, receiver.length);
  24906. return receiver[index];
  24907. },
  24908. $indexSet: function(receiver, index, value) {
  24909. H._checkValidIndex(index, receiver, receiver.length);
  24910. receiver[index] = value;
  24911. },
  24912. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24913. if (type$.NativeTypedArrayOfDouble._is(iterable)) {
  24914. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24915. return;
  24916. }
  24917. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24918. },
  24919. $isEfficientLengthIterable: 1,
  24920. $isIterable: 1,
  24921. $isList: 1
  24922. };
  24923. H.NativeTypedArrayOfInt.prototype = {
  24924. $indexSet: function(receiver, index, value) {
  24925. H._checkValidIndex(index, receiver, receiver.length);
  24926. receiver[index] = value;
  24927. },
  24928. setRange$4: function(receiver, start, end, iterable, skipCount) {
  24929. if (type$.NativeTypedArrayOfInt._is(iterable)) {
  24930. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  24931. return;
  24932. }
  24933. this.super$ListMixin$setRange(receiver, start, end, iterable, skipCount);
  24934. },
  24935. $isEfficientLengthIterable: 1,
  24936. $isIterable: 1,
  24937. $isList: 1
  24938. };
  24939. H.NativeFloat32List.prototype = {
  24940. sublist$2: function(receiver, start, end) {
  24941. return new Float32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24942. }
  24943. };
  24944. H.NativeFloat64List.prototype = {
  24945. sublist$2: function(receiver, start, end) {
  24946. return new Float64Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24947. }
  24948. };
  24949. H.NativeInt16List.prototype = {
  24950. $index: function(receiver, index) {
  24951. H._checkValidIndex(index, receiver, receiver.length);
  24952. return receiver[index];
  24953. },
  24954. sublist$2: function(receiver, start, end) {
  24955. return new Int16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24956. }
  24957. };
  24958. H.NativeInt32List.prototype = {
  24959. $index: function(receiver, index) {
  24960. H._checkValidIndex(index, receiver, receiver.length);
  24961. return receiver[index];
  24962. },
  24963. sublist$2: function(receiver, start, end) {
  24964. return new Int32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24965. }
  24966. };
  24967. H.NativeInt8List.prototype = {
  24968. $index: function(receiver, index) {
  24969. H._checkValidIndex(index, receiver, receiver.length);
  24970. return receiver[index];
  24971. },
  24972. sublist$2: function(receiver, start, end) {
  24973. return new Int8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24974. }
  24975. };
  24976. H.NativeUint16List.prototype = {
  24977. $index: function(receiver, index) {
  24978. H._checkValidIndex(index, receiver, receiver.length);
  24979. return receiver[index];
  24980. },
  24981. sublist$2: function(receiver, start, end) {
  24982. return new Uint16Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24983. }
  24984. };
  24985. H.NativeUint32List.prototype = {
  24986. $index: function(receiver, index) {
  24987. H._checkValidIndex(index, receiver, receiver.length);
  24988. return receiver[index];
  24989. },
  24990. sublist$2: function(receiver, start, end) {
  24991. return new Uint32Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  24992. }
  24993. };
  24994. H.NativeUint8ClampedList.prototype = {
  24995. get$length: function(receiver) {
  24996. return receiver.length;
  24997. },
  24998. $index: function(receiver, index) {
  24999. H._checkValidIndex(index, receiver, receiver.length);
  25000. return receiver[index];
  25001. },
  25002. sublist$2: function(receiver, start, end) {
  25003. return new Uint8ClampedArray(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  25004. }
  25005. };
  25006. H.NativeUint8List.prototype = {
  25007. get$length: function(receiver) {
  25008. return receiver.length;
  25009. },
  25010. $index: function(receiver, index) {
  25011. H._checkValidIndex(index, receiver, receiver.length);
  25012. return receiver[index];
  25013. },
  25014. sublist$2: function(receiver, start, end) {
  25015. return new Uint8Array(receiver.subarray(start, H._checkValidRange(start, end, receiver.length)));
  25016. },
  25017. $isNativeUint8List: 1,
  25018. $isUint8List: 1
  25019. };
  25020. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
  25021. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  25022. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
  25023. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  25024. H.Rti.prototype = {
  25025. _eval$1: function(recipe) {
  25026. return H._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
  25027. },
  25028. _bind$1: function(typeOrTuple) {
  25029. return H._Universe_bind(init.typeUniverse, this, typeOrTuple);
  25030. }
  25031. };
  25032. H._FunctionParameters.prototype = {};
  25033. H._Type.prototype = {
  25034. toString$0: function(_) {
  25035. return H._rtiToString(this._rti, null);
  25036. }
  25037. };
  25038. H._Error.prototype = {
  25039. toString$0: function(_) {
  25040. return this._message;
  25041. }
  25042. };
  25043. H._TypeError.prototype = {
  25044. get$message: function(_) {
  25045. return this._message;
  25046. }
  25047. };
  25048. P._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
  25049. call$1: function(_) {
  25050. var t1 = this._box_0,
  25051. f = t1.storedCallback;
  25052. t1.storedCallback = null;
  25053. f.call$0();
  25054. },
  25055. $signature: 109
  25056. };
  25057. P._AsyncRun__initializeScheduleImmediate_closure.prototype = {
  25058. call$1: function(callback) {
  25059. var t1, t2;
  25060. this._box_0.storedCallback = callback;
  25061. t1 = this.div;
  25062. t2 = this.span;
  25063. t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
  25064. },
  25065. $signature: 293
  25066. };
  25067. P._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
  25068. call$0: function() {
  25069. this.callback.call$0();
  25070. },
  25071. "call*": "call$0",
  25072. $requiredArgCount: 0,
  25073. $signature: 0
  25074. };
  25075. P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
  25076. call$0: function() {
  25077. this.callback.call$0();
  25078. },
  25079. "call*": "call$0",
  25080. $requiredArgCount: 0,
  25081. $signature: 0
  25082. };
  25083. P._TimerImpl.prototype = {
  25084. _TimerImpl$2: function(milliseconds, callback) {
  25085. if (self.setTimeout != null)
  25086. this._handle = self.setTimeout(H.convertDartClosureToJS(new P._TimerImpl_internalCallback(this, callback), 0), milliseconds);
  25087. else
  25088. throw H.wrapException(P.UnsupportedError$("`setTimeout()` not found."));
  25089. },
  25090. _TimerImpl$periodic$2: function(milliseconds, callback) {
  25091. if (self.setTimeout != null)
  25092. this._handle = self.setInterval(H.convertDartClosureToJS(new P._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
  25093. else
  25094. throw H.wrapException(P.UnsupportedError$("Periodic timer."));
  25095. },
  25096. cancel$0: function() {
  25097. if (self.setTimeout != null) {
  25098. var t1 = this._handle;
  25099. if (t1 == null)
  25100. return;
  25101. if (this._once)
  25102. self.clearTimeout(t1);
  25103. else
  25104. self.clearInterval(t1);
  25105. this._handle = null;
  25106. } else
  25107. throw H.wrapException(P.UnsupportedError$("Canceling a timer."));
  25108. }
  25109. };
  25110. P._TimerImpl_internalCallback.prototype = {
  25111. call$0: function() {
  25112. var t1 = this.$this;
  25113. t1._handle = null;
  25114. t1._tick = 1;
  25115. this.callback.call$0();
  25116. },
  25117. "call*": "call$0",
  25118. $requiredArgCount: 0,
  25119. $signature: 1
  25120. };
  25121. P._TimerImpl$periodic_closure.prototype = {
  25122. call$0: function() {
  25123. var duration, _this = this,
  25124. t1 = _this.$this,
  25125. tick = t1._tick + 1,
  25126. t2 = _this.milliseconds;
  25127. if (t2 > 0) {
  25128. duration = Date.now() - _this.start;
  25129. if (duration > (tick + 1) * t2)
  25130. tick = C.JSInt_methods.$tdiv(duration, t2);
  25131. }
  25132. t1._tick = tick;
  25133. _this.callback.call$1(t1);
  25134. },
  25135. "call*": "call$0",
  25136. $requiredArgCount: 0,
  25137. $signature: 0
  25138. };
  25139. P._AsyncAwaitCompleter.prototype = {
  25140. complete$1: function(value) {
  25141. var t1, _this = this;
  25142. if (!_this.isSync)
  25143. _this._future._asyncComplete$1(value);
  25144. else {
  25145. t1 = _this._future;
  25146. if (_this.$ti._eval$1("Future<1>")._is(value))
  25147. t1._chainFuture$1(value);
  25148. else
  25149. t1._completeWithValue$1(value);
  25150. }
  25151. },
  25152. completeError$2: function(e, st) {
  25153. var t1;
  25154. if (st == null)
  25155. st = P.AsyncError_defaultStackTrace(e);
  25156. t1 = this._future;
  25157. if (this.isSync)
  25158. t1._completeError$2(e, st);
  25159. else
  25160. t1._asyncCompleteError$2(e, st);
  25161. }
  25162. };
  25163. P._awaitOnObject_closure.prototype = {
  25164. call$1: function(result) {
  25165. return this.bodyFunction.call$2(0, result);
  25166. },
  25167. $signature: 214
  25168. };
  25169. P._awaitOnObject_closure0.prototype = {
  25170. call$2: function(error, stackTrace) {
  25171. this.bodyFunction.call$2(1, new H.ExceptionAndStackTrace(error, stackTrace));
  25172. },
  25173. "call*": "call$2",
  25174. $requiredArgCount: 2,
  25175. $signature: 433
  25176. };
  25177. P._wrapJsFunctionForAsync_closure.prototype = {
  25178. call$2: function(errorCode, result) {
  25179. this.$protected(errorCode, result);
  25180. },
  25181. "call*": "call$2",
  25182. $requiredArgCount: 2,
  25183. $signature: 455
  25184. };
  25185. P._asyncStarHelper_closure.prototype = {
  25186. call$0: function() {
  25187. var t1 = this.controller,
  25188. t2 = t1.get$controller(),
  25189. t3 = t2._state;
  25190. if ((t3 & 1) !== 0 ? (t2.get$_subscription()._state & 4) !== 0 : (t3 & 2) === 0) {
  25191. t1.isSuspended = true;
  25192. return;
  25193. }
  25194. this.bodyFunction.call$2(0, null);
  25195. },
  25196. "call*": "call$0",
  25197. $requiredArgCount: 0,
  25198. $signature: 0
  25199. };
  25200. P._asyncStarHelper_closure0.prototype = {
  25201. call$1: function(_) {
  25202. var errorCode = this.controller.cancelationFuture != null ? 2 : 0;
  25203. this.bodyFunction.call$2(errorCode, null);
  25204. },
  25205. $signature: 109
  25206. };
  25207. P._AsyncStarStreamController.prototype = {
  25208. get$controller: function() {
  25209. var t1 = this.___AsyncStarStreamController_controller;
  25210. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Field 'controller' has not been initialized.")) : t1;
  25211. },
  25212. add$1: function(_, $event) {
  25213. return this.get$controller().add$1(0, $event);
  25214. },
  25215. _AsyncStarStreamController$1: function(body, $T) {
  25216. var t1 = new P._AsyncStarStreamController__resumeBody(body);
  25217. this.___AsyncStarStreamController_controller = P.StreamController_StreamController(new P._AsyncStarStreamController_closure(this, body), new P._AsyncStarStreamController_closure0(t1), null, new P._AsyncStarStreamController_closure1(this, t1), false, $T);
  25218. }
  25219. };
  25220. P._AsyncStarStreamController__resumeBody.prototype = {
  25221. call$0: function() {
  25222. P.scheduleMicrotask(new P._AsyncStarStreamController__resumeBody_closure(this.body));
  25223. },
  25224. $signature: 0
  25225. };
  25226. P._AsyncStarStreamController__resumeBody_closure.prototype = {
  25227. call$0: function() {
  25228. this.body.call$2(0, null);
  25229. },
  25230. "call*": "call$0",
  25231. $requiredArgCount: 0,
  25232. $signature: 0
  25233. };
  25234. P._AsyncStarStreamController_closure0.prototype = {
  25235. call$0: function() {
  25236. this._resumeBody.call$0();
  25237. },
  25238. $signature: 0
  25239. };
  25240. P._AsyncStarStreamController_closure1.prototype = {
  25241. call$0: function() {
  25242. var t1 = this.$this;
  25243. if (t1.isSuspended) {
  25244. t1.isSuspended = false;
  25245. this._resumeBody.call$0();
  25246. }
  25247. },
  25248. $signature: 0
  25249. };
  25250. P._AsyncStarStreamController_closure.prototype = {
  25251. call$0: function() {
  25252. var t1 = this.$this;
  25253. if ((t1.get$controller()._state & 4) === 0) {
  25254. t1.cancelationFuture = new P._Future($.Zone__current, type$._Future_dynamic);
  25255. if (t1.isSuspended) {
  25256. t1.isSuspended = false;
  25257. P.scheduleMicrotask(new P._AsyncStarStreamController__closure(this.body));
  25258. }
  25259. return t1.cancelationFuture;
  25260. }
  25261. },
  25262. "call*": "call$0",
  25263. $requiredArgCount: 0,
  25264. $signature: 448
  25265. };
  25266. P._AsyncStarStreamController__closure.prototype = {
  25267. call$0: function() {
  25268. this.body.call$2(2, null);
  25269. },
  25270. "call*": "call$0",
  25271. $requiredArgCount: 0,
  25272. $signature: 0
  25273. };
  25274. P._IterationMarker.prototype = {
  25275. toString$0: function(_) {
  25276. return "IterationMarker(" + this.state + ", " + H.S(this.value) + ")";
  25277. }
  25278. };
  25279. P._SyncStarIterator.prototype = {
  25280. get$current: function(_) {
  25281. var nested = this._nestedIterator;
  25282. if (nested == null)
  25283. return this._async$_current;
  25284. return nested.get$current(nested);
  25285. },
  25286. moveNext$0: function() {
  25287. var t1, value, state, suspendedBodies, inner, _this = this;
  25288. for (; true;) {
  25289. t1 = _this._nestedIterator;
  25290. if (t1 != null)
  25291. if (t1.moveNext$0())
  25292. return true;
  25293. else
  25294. _this._nestedIterator = null;
  25295. value = function(body, SUCCESS, ERROR) {
  25296. var errorValue,
  25297. errorCode = SUCCESS;
  25298. while (true)
  25299. try {
  25300. return body(errorCode, errorValue);
  25301. } catch (error) {
  25302. errorValue = error;
  25303. errorCode = ERROR;
  25304. }
  25305. }(_this._body, 0, 1);
  25306. if (value instanceof P._IterationMarker) {
  25307. state = value.state;
  25308. if (state === 2) {
  25309. suspendedBodies = _this._suspendedBodies;
  25310. if (suspendedBodies == null || suspendedBodies.length === 0) {
  25311. _this._async$_current = null;
  25312. return false;
  25313. }
  25314. _this._body = suspendedBodies.pop();
  25315. continue;
  25316. } else {
  25317. t1 = value.value;
  25318. if (state === 3)
  25319. throw t1;
  25320. else {
  25321. inner = J.get$iterator$ax(t1);
  25322. if (inner instanceof P._SyncStarIterator) {
  25323. t1 = _this._suspendedBodies;
  25324. if (t1 == null)
  25325. t1 = _this._suspendedBodies = [];
  25326. t1.push(_this._body);
  25327. _this._body = inner._body;
  25328. continue;
  25329. } else {
  25330. _this._nestedIterator = inner;
  25331. continue;
  25332. }
  25333. }
  25334. }
  25335. } else {
  25336. _this._async$_current = value;
  25337. return true;
  25338. }
  25339. }
  25340. return false;
  25341. }
  25342. };
  25343. P._SyncStarIterable.prototype = {
  25344. get$iterator: function(_) {
  25345. return new P._SyncStarIterator(this._outerHelper());
  25346. }
  25347. };
  25348. P._BroadcastStream.prototype = {
  25349. get$isBroadcast: function() {
  25350. return true;
  25351. }
  25352. };
  25353. P._BroadcastSubscription.prototype = {
  25354. _async$_onPause$0: function() {
  25355. },
  25356. _async$_onResume$0: function() {
  25357. }
  25358. };
  25359. P._BroadcastStreamController.prototype = {
  25360. set$onPause: function(onPauseHandler) {
  25361. throw H.wrapException(P.UnsupportedError$(string$.Broadc));
  25362. },
  25363. set$onResume: function(onResumeHandler) {
  25364. throw H.wrapException(P.UnsupportedError$(string$.Broadc));
  25365. },
  25366. get$stream: function() {
  25367. return new P._BroadcastStream(this, H._instanceType(this)._eval$1("_BroadcastStream<1>"));
  25368. },
  25369. get$_mayAddEvent: function() {
  25370. return this._state < 4;
  25371. },
  25372. _ensureDoneFuture$0: function() {
  25373. var t1 = this._doneFuture;
  25374. return t1 == null ? this._doneFuture = new P._Future($.Zone__current, type$._Future_void) : t1;
  25375. },
  25376. _removeListener$1: function(subscription) {
  25377. var previous = subscription._async$_previous,
  25378. next = subscription._async$_next;
  25379. if (previous == null)
  25380. this._firstSubscription = next;
  25381. else
  25382. previous._async$_next = next;
  25383. if (next == null)
  25384. this._lastSubscription = previous;
  25385. else
  25386. next._async$_previous = previous;
  25387. subscription._async$_previous = subscription;
  25388. subscription._async$_next = subscription;
  25389. },
  25390. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  25391. var t1, t2, t3, t4, t5, t6, subscription, oldLast, _this = this;
  25392. if ((_this._state & 4) !== 0) {
  25393. t1 = new P._DoneStreamSubscription($.Zone__current, onDone, H._instanceType(_this)._eval$1("_DoneStreamSubscription<1>"));
  25394. t1._schedule$0();
  25395. return t1;
  25396. }
  25397. t1 = H._instanceType(_this);
  25398. t2 = $.Zone__current;
  25399. t3 = cancelOnError ? 1 : 0;
  25400. t4 = P._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._precomputed1);
  25401. t5 = P._BufferingStreamSubscription__registerErrorHandler(t2, onError);
  25402. t6 = onDone == null ? P.async___nullDoneHandler$closure() : onDone;
  25403. subscription = new P._BroadcastSubscription(_this, t4, t5, t2.registerCallback$1$1(t6, type$.void), t2, t3, t1._eval$1("_BroadcastSubscription<1>"));
  25404. subscription._async$_previous = subscription;
  25405. subscription._async$_next = subscription;
  25406. subscription._eventState = _this._state & 1;
  25407. oldLast = _this._lastSubscription;
  25408. _this._lastSubscription = subscription;
  25409. subscription._async$_next = null;
  25410. subscription._async$_previous = oldLast;
  25411. if (oldLast == null)
  25412. _this._firstSubscription = subscription;
  25413. else
  25414. oldLast._async$_next = subscription;
  25415. if (_this._firstSubscription === subscription)
  25416. P._runGuarded(_this.onListen);
  25417. return subscription;
  25418. },
  25419. _recordCancel$1: function(sub) {
  25420. var t1, _this = this;
  25421. H._instanceType(_this)._eval$1("_BroadcastSubscription<1>")._as(sub);
  25422. if (sub._async$_next === sub)
  25423. return null;
  25424. t1 = sub._eventState;
  25425. if ((t1 & 2) !== 0)
  25426. sub._eventState = t1 | 4;
  25427. else {
  25428. _this._removeListener$1(sub);
  25429. if ((_this._state & 2) === 0 && _this._firstSubscription == null)
  25430. _this._callOnCancel$0();
  25431. }
  25432. return null;
  25433. },
  25434. _recordPause$1: function(subscription) {
  25435. },
  25436. _recordResume$1: function(subscription) {
  25437. },
  25438. _addEventError$0: function() {
  25439. if ((this._state & 4) !== 0)
  25440. return new P.StateError("Cannot add new events after calling close");
  25441. return new P.StateError("Cannot add new events while doing an addStream");
  25442. },
  25443. add$1: function(_, data) {
  25444. if (!this.get$_mayAddEvent())
  25445. throw H.wrapException(this._addEventError$0());
  25446. this._sendData$1(data);
  25447. },
  25448. addError$2: function(error, stackTrace) {
  25449. var replacement;
  25450. P.ArgumentError_checkNotNull(error, "error");
  25451. if (!this.get$_mayAddEvent())
  25452. throw H.wrapException(this._addEventError$0());
  25453. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  25454. if (replacement != null) {
  25455. error = replacement.error;
  25456. stackTrace = replacement.stackTrace;
  25457. } else if (stackTrace == null)
  25458. stackTrace = P.AsyncError_defaultStackTrace(error);
  25459. this._sendError$2(error, stackTrace);
  25460. },
  25461. close$0: function(_) {
  25462. var t1, doneFuture, _this = this;
  25463. if ((_this._state & 4) !== 0) {
  25464. t1 = _this._doneFuture;
  25465. t1.toString;
  25466. return t1;
  25467. }
  25468. if (!_this.get$_mayAddEvent())
  25469. throw H.wrapException(_this._addEventError$0());
  25470. _this._state |= 4;
  25471. doneFuture = _this._ensureDoneFuture$0();
  25472. _this._sendDone$0();
  25473. return doneFuture;
  25474. },
  25475. _forEachListener$1: function(action) {
  25476. var subscription, id, next, _this = this,
  25477. t1 = _this._state;
  25478. if ((t1 & 2) !== 0)
  25479. throw H.wrapException(P.StateError$(string$.Cannotf));
  25480. subscription = _this._firstSubscription;
  25481. if (subscription == null)
  25482. return;
  25483. id = t1 & 1;
  25484. _this._state = t1 ^ 3;
  25485. for (; subscription != null;) {
  25486. t1 = subscription._eventState;
  25487. if ((t1 & 1) === id) {
  25488. subscription._eventState = t1 | 2;
  25489. action.call$1(subscription);
  25490. t1 = subscription._eventState ^= 1;
  25491. next = subscription._async$_next;
  25492. if ((t1 & 4) !== 0)
  25493. _this._removeListener$1(subscription);
  25494. subscription._eventState &= 4294967293;
  25495. subscription = next;
  25496. } else
  25497. subscription = subscription._async$_next;
  25498. }
  25499. _this._state &= 4294967293;
  25500. if (_this._firstSubscription == null)
  25501. _this._callOnCancel$0();
  25502. },
  25503. _callOnCancel$0: function() {
  25504. if ((this._state & 4) !== 0) {
  25505. var doneFuture = this._doneFuture;
  25506. if (doneFuture._state === 0)
  25507. doneFuture._asyncComplete$1(null);
  25508. }
  25509. P._runGuarded(this.onCancel);
  25510. },
  25511. $isEventSink: 1,
  25512. set$onListen: function(val) {
  25513. return this.onListen = val;
  25514. },
  25515. set$onCancel: function(val) {
  25516. return this.onCancel = val;
  25517. }
  25518. };
  25519. P._SyncBroadcastStreamController.prototype = {
  25520. get$_mayAddEvent: function() {
  25521. return P._BroadcastStreamController.prototype.get$_mayAddEvent.call(this) && (this._state & 2) === 0;
  25522. },
  25523. _addEventError$0: function() {
  25524. if ((this._state & 2) !== 0)
  25525. return new P.StateError(string$.Cannotf);
  25526. return this.super$_BroadcastStreamController$_addEventError();
  25527. },
  25528. _sendData$1: function(data) {
  25529. var _this = this,
  25530. t1 = _this._firstSubscription;
  25531. if (t1 == null)
  25532. return;
  25533. if (t1 === _this._lastSubscription) {
  25534. _this._state |= 2;
  25535. t1._async$_add$1(data);
  25536. _this._state &= 4294967293;
  25537. if (_this._firstSubscription == null)
  25538. _this._callOnCancel$0();
  25539. return;
  25540. }
  25541. _this._forEachListener$1(new P._SyncBroadcastStreamController__sendData_closure(_this, data));
  25542. },
  25543. _sendError$2: function(error, stackTrace) {
  25544. if (this._firstSubscription == null)
  25545. return;
  25546. this._forEachListener$1(new P._SyncBroadcastStreamController__sendError_closure(this, error, stackTrace));
  25547. },
  25548. _sendDone$0: function() {
  25549. var _this = this;
  25550. if (_this._firstSubscription != null)
  25551. _this._forEachListener$1(new P._SyncBroadcastStreamController__sendDone_closure(_this));
  25552. else
  25553. _this._doneFuture._asyncComplete$1(null);
  25554. }
  25555. };
  25556. P._SyncBroadcastStreamController__sendData_closure.prototype = {
  25557. call$1: function(subscription) {
  25558. subscription._async$_add$1(this.data);
  25559. },
  25560. $signature: function() {
  25561. return this.$this.$ti._eval$1("Null(_BufferingStreamSubscription<1>)");
  25562. }
  25563. };
  25564. P._SyncBroadcastStreamController__sendError_closure.prototype = {
  25565. call$1: function(subscription) {
  25566. subscription._addError$2(this.error, this.stackTrace);
  25567. },
  25568. $signature: function() {
  25569. return this.$this.$ti._eval$1("Null(_BufferingStreamSubscription<1>)");
  25570. }
  25571. };
  25572. P._SyncBroadcastStreamController__sendDone_closure.prototype = {
  25573. call$1: function(subscription) {
  25574. subscription._close$0();
  25575. },
  25576. $signature: function() {
  25577. return this.$this.$ti._eval$1("Null(_BufferingStreamSubscription<1>)");
  25578. }
  25579. };
  25580. P.Future_wait__error_set.prototype = {
  25581. call$1: function(t1) {
  25582. return this._box_0.error = t1;
  25583. },
  25584. $signature: 441
  25585. };
  25586. P.Future_wait__stackTrace_set.prototype = {
  25587. call$1: function(t1) {
  25588. return this._box_0.stackTrace = t1;
  25589. },
  25590. $signature: 422
  25591. };
  25592. P.Future_wait__error_get.prototype = {
  25593. call$0: function() {
  25594. var t1 = this._box_0.error;
  25595. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Local 'error' has not been initialized.")) : t1;
  25596. },
  25597. $signature: 301
  25598. };
  25599. P.Future_wait__stackTrace_get.prototype = {
  25600. call$0: function() {
  25601. var t1 = this._box_0.stackTrace;
  25602. return t1 == null ? H.throwExpression(H.LateInitializationErrorImpl$("Local 'stackTrace' has not been initialized.")) : t1;
  25603. },
  25604. $signature: 300
  25605. };
  25606. P.Future_wait_handleError.prototype = {
  25607. call$2: function(theError, theStackTrace) {
  25608. var _this = this,
  25609. t1 = _this._box_0,
  25610. t2 = --t1.remaining;
  25611. if (t1.values != null) {
  25612. t1.values = null;
  25613. if (t1.remaining === 0 || _this.eagerError)
  25614. _this._future._completeError$2(theError, theStackTrace);
  25615. else {
  25616. _this._error_set.call$1(theError);
  25617. _this._stackTrace_set.call$1(theStackTrace);
  25618. }
  25619. } else if (t2 === 0 && !_this.eagerError)
  25620. _this._future._completeError$2(_this._error_get.call$0(), _this._stackTrace_get.call$0());
  25621. },
  25622. "call*": "call$2",
  25623. $requiredArgCount: 2,
  25624. $signature: 56
  25625. };
  25626. P.Future_wait_closure.prototype = {
  25627. call$1: function(value) {
  25628. var valueList, _this = this,
  25629. t1 = _this._box_0;
  25630. --t1.remaining;
  25631. valueList = t1.values;
  25632. if (valueList != null) {
  25633. J.$indexSet$ax(valueList, _this.pos, value);
  25634. if (t1.remaining === 0)
  25635. _this._future._completeWithValue$1(P.List_List$from(valueList, true, _this.T));
  25636. } else if (t1.remaining === 0 && !_this.eagerError)
  25637. _this._future._completeError$2(_this._error_get.call$0(), _this._stackTrace_get.call$0());
  25638. },
  25639. $signature: function() {
  25640. return this.T._eval$1("Null(0)");
  25641. }
  25642. };
  25643. P._Completer.prototype = {
  25644. completeError$2: function(error, stackTrace) {
  25645. var t1, replacement;
  25646. P.ArgumentError_checkNotNull(error, "error");
  25647. t1 = this.future;
  25648. if (t1._state !== 0)
  25649. throw H.wrapException(P.StateError$("Future already completed"));
  25650. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  25651. if (replacement != null) {
  25652. error = replacement.error;
  25653. stackTrace = replacement.stackTrace;
  25654. } else if (stackTrace == null)
  25655. stackTrace = P.AsyncError_defaultStackTrace(error);
  25656. t1._asyncCompleteError$2(error, stackTrace);
  25657. },
  25658. completeError$1: function(error) {
  25659. return this.completeError$2(error, null);
  25660. }
  25661. };
  25662. P._AsyncCompleter.prototype = {
  25663. complete$1: function(value) {
  25664. var t1 = this.future;
  25665. if (t1._state !== 0)
  25666. throw H.wrapException(P.StateError$("Future already completed"));
  25667. t1._asyncComplete$1(value);
  25668. },
  25669. complete$0: function() {
  25670. return this.complete$1(null);
  25671. }
  25672. };
  25673. P._FutureListener.prototype = {
  25674. matchesErrorTest$1: function(asyncError) {
  25675. if ((this.state & 15) !== 6)
  25676. return true;
  25677. return this.result._zone.runUnary$2$2(this.callback, asyncError.error, type$.bool, type$.Object);
  25678. },
  25679. handleError$1: function(asyncError) {
  25680. var errorCallback = this.errorCallback,
  25681. t1 = type$.dynamic,
  25682. t2 = type$.Object,
  25683. t3 = this.result._zone;
  25684. if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
  25685. return t3.runBinary$3$3(errorCallback, asyncError.error, asyncError.stackTrace, t1, t2, type$.StackTrace);
  25686. else
  25687. return t3.runUnary$2$2(errorCallback, asyncError.error, t1, t2);
  25688. }
  25689. };
  25690. P._Future.prototype = {
  25691. then$1$2$onError: function(_, f, onError, $R) {
  25692. var result, t1,
  25693. currentZone = $.Zone__current;
  25694. if (currentZone !== C.C__RootZone) {
  25695. f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), this.$ti._precomputed1);
  25696. if (onError != null)
  25697. onError = P._registerErrorHandler(onError, currentZone);
  25698. }
  25699. result = new P._Future($.Zone__current, $R._eval$1("_Future<0>"));
  25700. t1 = onError == null ? 1 : 3;
  25701. this._addListener$1(new P._FutureListener(result, t1, f, onError, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>")));
  25702. return result;
  25703. },
  25704. then$1$1: function($receiver, f, $R) {
  25705. return this.then$1$2$onError($receiver, f, null, $R);
  25706. },
  25707. then$1: function($receiver, f) {
  25708. return this.then$1$2$onError($receiver, f, null, type$.dynamic);
  25709. },
  25710. _thenAwait$1$2: function(f, onError, $E) {
  25711. var result = new P._Future($.Zone__current, $E._eval$1("_Future<0>"));
  25712. this._addListener$1(new P._FutureListener(result, 19, f, onError, this.$ti._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>")));
  25713. return result;
  25714. },
  25715. whenComplete$1: function(action) {
  25716. var t1 = this.$ti,
  25717. t2 = $.Zone__current,
  25718. result = new P._Future(t2, t1);
  25719. if (t2 !== C.C__RootZone)
  25720. action = t2.registerCallback$1$1(action, type$.dynamic);
  25721. this._addListener$1(new P._FutureListener(result, 8, action, null, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>")));
  25722. return result;
  25723. },
  25724. _addListener$1: function(listener) {
  25725. var t2, _this = this,
  25726. t1 = _this._state;
  25727. if (t1 <= 1) {
  25728. listener._nextListener = _this._resultOrListeners;
  25729. _this._resultOrListeners = listener;
  25730. } else {
  25731. if (t1 === 2) {
  25732. t1 = _this._resultOrListeners;
  25733. t2 = t1._state;
  25734. if (t2 < 4) {
  25735. t1._addListener$1(listener);
  25736. return;
  25737. }
  25738. _this._state = t2;
  25739. _this._resultOrListeners = t1._resultOrListeners;
  25740. }
  25741. _this._zone.scheduleMicrotask$1(new P._Future__addListener_closure(_this, listener));
  25742. }
  25743. },
  25744. _prependListeners$1: function(listeners) {
  25745. var t1, existingListeners, next, cursor, next0, t2, _this = this, _box_0 = {};
  25746. _box_0.listeners = listeners;
  25747. if (listeners == null)
  25748. return;
  25749. t1 = _this._state;
  25750. if (t1 <= 1) {
  25751. existingListeners = _this._resultOrListeners;
  25752. _this._resultOrListeners = listeners;
  25753. if (existingListeners != null) {
  25754. next = listeners._nextListener;
  25755. for (cursor = listeners; next != null; cursor = next, next = next0)
  25756. next0 = next._nextListener;
  25757. cursor._nextListener = existingListeners;
  25758. }
  25759. } else {
  25760. if (t1 === 2) {
  25761. t1 = _this._resultOrListeners;
  25762. t2 = t1._state;
  25763. if (t2 < 4) {
  25764. t1._prependListeners$1(listeners);
  25765. return;
  25766. }
  25767. _this._state = t2;
  25768. _this._resultOrListeners = t1._resultOrListeners;
  25769. }
  25770. _box_0.listeners = _this._reverseListeners$1(listeners);
  25771. _this._zone.scheduleMicrotask$1(new P._Future__prependListeners_closure(_box_0, _this));
  25772. }
  25773. },
  25774. _removeListeners$0: function() {
  25775. var current = this._resultOrListeners;
  25776. this._resultOrListeners = null;
  25777. return this._reverseListeners$1(current);
  25778. },
  25779. _reverseListeners$1: function(listeners) {
  25780. var current, prev, next;
  25781. for (current = listeners, prev = null; current != null; prev = current, current = next) {
  25782. next = current._nextListener;
  25783. current._nextListener = prev;
  25784. }
  25785. return prev;
  25786. },
  25787. _complete$1: function(value) {
  25788. var listeners, _this = this,
  25789. t1 = _this.$ti;
  25790. if (t1._eval$1("Future<1>")._is(value))
  25791. if (t1._is(value))
  25792. P._Future__chainCoreFuture(value, _this);
  25793. else
  25794. P._Future__chainForeignFuture(value, _this);
  25795. else {
  25796. listeners = _this._removeListeners$0();
  25797. _this._state = 4;
  25798. _this._resultOrListeners = value;
  25799. P._Future__propagateToListeners(_this, listeners);
  25800. }
  25801. },
  25802. _completeWithValue$1: function(value) {
  25803. var _this = this,
  25804. listeners = _this._removeListeners$0();
  25805. _this._state = 4;
  25806. _this._resultOrListeners = value;
  25807. P._Future__propagateToListeners(_this, listeners);
  25808. },
  25809. _completeError$2: function(error, stackTrace) {
  25810. var _this = this,
  25811. listeners = _this._removeListeners$0(),
  25812. t1 = P.AsyncError$(error, stackTrace);
  25813. _this._state = 8;
  25814. _this._resultOrListeners = t1;
  25815. P._Future__propagateToListeners(_this, listeners);
  25816. },
  25817. _asyncComplete$1: function(value) {
  25818. if (this.$ti._eval$1("Future<1>")._is(value)) {
  25819. this._chainFuture$1(value);
  25820. return;
  25821. }
  25822. this._asyncCompleteWithValue$1(value);
  25823. },
  25824. _asyncCompleteWithValue$1: function(value) {
  25825. this._state = 1;
  25826. this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteWithValue_closure(this, value));
  25827. },
  25828. _chainFuture$1: function(value) {
  25829. var _this = this;
  25830. if (_this.$ti._is(value)) {
  25831. if (value._state === 8) {
  25832. _this._state = 1;
  25833. _this._zone.scheduleMicrotask$1(new P._Future__chainFuture_closure(_this, value));
  25834. } else
  25835. P._Future__chainCoreFuture(value, _this);
  25836. return;
  25837. }
  25838. P._Future__chainForeignFuture(value, _this);
  25839. },
  25840. _asyncCompleteError$2: function(error, stackTrace) {
  25841. this._state = 1;
  25842. this._zone.scheduleMicrotask$1(new P._Future__asyncCompleteError_closure(this, error, stackTrace));
  25843. },
  25844. $isFuture: 1
  25845. };
  25846. P._Future__addListener_closure.prototype = {
  25847. call$0: function() {
  25848. P._Future__propagateToListeners(this.$this, this.listener);
  25849. },
  25850. "call*": "call$0",
  25851. $requiredArgCount: 0,
  25852. $signature: 0
  25853. };
  25854. P._Future__prependListeners_closure.prototype = {
  25855. call$0: function() {
  25856. P._Future__propagateToListeners(this.$this, this._box_0.listeners);
  25857. },
  25858. "call*": "call$0",
  25859. $requiredArgCount: 0,
  25860. $signature: 0
  25861. };
  25862. P._Future__chainForeignFuture_closure.prototype = {
  25863. call$1: function(value) {
  25864. var t1 = this.target;
  25865. t1._state = 0;
  25866. t1._complete$1(value);
  25867. },
  25868. $signature: 109
  25869. };
  25870. P._Future__chainForeignFuture_closure0.prototype = {
  25871. call$2: function(error, stackTrace) {
  25872. this.target._completeError$2(error, stackTrace);
  25873. },
  25874. "call*": "call$2",
  25875. $requiredArgCount: 2,
  25876. $signature: 297
  25877. };
  25878. P._Future__chainForeignFuture_closure1.prototype = {
  25879. call$0: function() {
  25880. this.target._completeError$2(this.e, this.s);
  25881. },
  25882. "call*": "call$0",
  25883. $requiredArgCount: 0,
  25884. $signature: 0
  25885. };
  25886. P._Future__asyncCompleteWithValue_closure.prototype = {
  25887. call$0: function() {
  25888. this.$this._completeWithValue$1(this.value);
  25889. },
  25890. "call*": "call$0",
  25891. $requiredArgCount: 0,
  25892. $signature: 0
  25893. };
  25894. P._Future__chainFuture_closure.prototype = {
  25895. call$0: function() {
  25896. P._Future__chainCoreFuture(this.value, this.$this);
  25897. },
  25898. "call*": "call$0",
  25899. $requiredArgCount: 0,
  25900. $signature: 0
  25901. };
  25902. P._Future__asyncCompleteError_closure.prototype = {
  25903. call$0: function() {
  25904. this.$this._completeError$2(this.error, this.stackTrace);
  25905. },
  25906. "call*": "call$0",
  25907. $requiredArgCount: 0,
  25908. $signature: 0
  25909. };
  25910. P._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
  25911. call$0: function() {
  25912. var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
  25913. try {
  25914. t1 = _this._box_0.listener;
  25915. completeResult = t1.result._zone.run$1$1(0, t1.callback, type$.dynamic);
  25916. } catch (exception) {
  25917. e = H.unwrapException(exception);
  25918. s = H.getTraceFromException(exception);
  25919. if (_this.hasError) {
  25920. t1 = _this._box_1.source._resultOrListeners.error;
  25921. t2 = e;
  25922. t2 = t1 == null ? t2 == null : t1 === t2;
  25923. t1 = t2;
  25924. } else
  25925. t1 = false;
  25926. t2 = _this._box_0;
  25927. if (t1)
  25928. t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
  25929. else
  25930. t2.listenerValueOrError = P.AsyncError$(e, s);
  25931. t2.listenerHasError = true;
  25932. return;
  25933. }
  25934. if (completeResult instanceof P._Future && completeResult._state >= 4) {
  25935. if (completeResult._state === 8) {
  25936. t1 = _this._box_0;
  25937. t1.listenerValueOrError = completeResult._resultOrListeners;
  25938. t1.listenerHasError = true;
  25939. }
  25940. return;
  25941. }
  25942. if (type$.Future_dynamic._is(completeResult)) {
  25943. originalSource = _this._box_1.source;
  25944. t1 = _this._box_0;
  25945. t1.listenerValueOrError = J.then$1$1$x(completeResult, new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
  25946. t1.listenerHasError = false;
  25947. }
  25948. },
  25949. $signature: 1
  25950. };
  25951. P._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
  25952. call$1: function(_) {
  25953. return this.originalSource;
  25954. },
  25955. $signature: 295
  25956. };
  25957. P._Future__propagateToListeners_handleValueCallback.prototype = {
  25958. call$0: function() {
  25959. var e, s, t1, t2, t3, exception;
  25960. try {
  25961. t1 = this._box_0;
  25962. t2 = t1.listener;
  25963. t3 = t2.$ti;
  25964. t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t2.callback, this.sourceResult, t3._eval$1("2/"), t3._precomputed1);
  25965. } catch (exception) {
  25966. e = H.unwrapException(exception);
  25967. s = H.getTraceFromException(exception);
  25968. t1 = this._box_0;
  25969. t1.listenerValueOrError = P.AsyncError$(e, s);
  25970. t1.listenerHasError = true;
  25971. }
  25972. },
  25973. $signature: 1
  25974. };
  25975. P._Future__propagateToListeners_handleError.prototype = {
  25976. call$0: function() {
  25977. var asyncError, e, s, t1, exception, t2, t3, t4, _this = this;
  25978. try {
  25979. asyncError = _this._box_1.source._resultOrListeners;
  25980. t1 = _this._box_0;
  25981. if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) {
  25982. t1.listenerValueOrError = t1.listener.handleError$1(asyncError);
  25983. t1.listenerHasError = false;
  25984. }
  25985. } catch (exception) {
  25986. e = H.unwrapException(exception);
  25987. s = H.getTraceFromException(exception);
  25988. t1 = _this._box_1.source._resultOrListeners;
  25989. t2 = t1.error;
  25990. t3 = e;
  25991. t4 = _this._box_0;
  25992. if (t2 == null ? t3 == null : t2 === t3)
  25993. t4.listenerValueOrError = t1;
  25994. else
  25995. t4.listenerValueOrError = P.AsyncError$(e, s);
  25996. t4.listenerHasError = true;
  25997. }
  25998. },
  25999. $signature: 1
  26000. };
  26001. P._AsyncCallbackEntry.prototype = {};
  26002. P.Stream.prototype = {
  26003. get$isBroadcast: function() {
  26004. return false;
  26005. },
  26006. get$length: function(_) {
  26007. var t1 = {},
  26008. future = new P._Future($.Zone__current, type$._Future_int);
  26009. t1.count = 0;
  26010. this.listen$4$cancelOnError$onDone$onError(0, new P.Stream_length_closure(t1, this), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
  26011. return future;
  26012. }
  26013. };
  26014. P.Stream_Stream$fromFuture_closure.prototype = {
  26015. call$1: function(value) {
  26016. var t1 = this.controller;
  26017. t1._async$_add$1(value);
  26018. t1._closeUnchecked$0();
  26019. },
  26020. $signature: function() {
  26021. return this.T._eval$1("Null(0)");
  26022. }
  26023. };
  26024. P.Stream_Stream$fromFuture_closure0.prototype = {
  26025. call$2: function(error, stackTrace) {
  26026. var t1 = this.controller;
  26027. t1._addError$2(error, stackTrace);
  26028. t1._closeUnchecked$0();
  26029. },
  26030. "call*": "call$2",
  26031. $requiredArgCount: 2,
  26032. $signature: 103
  26033. };
  26034. P.Stream_length_closure.prototype = {
  26035. call$1: function(_) {
  26036. ++this._box_0.count;
  26037. },
  26038. $signature: function() {
  26039. return H._instanceType(this.$this)._eval$1("Null(Stream.T)");
  26040. }
  26041. };
  26042. P.Stream_length_closure0.prototype = {
  26043. call$0: function() {
  26044. this.future._complete$1(this._box_0.count);
  26045. },
  26046. "call*": "call$0",
  26047. $requiredArgCount: 0,
  26048. $signature: 0
  26049. };
  26050. P.StreamTransformerBase.prototype = {};
  26051. P._StreamController.prototype = {
  26052. get$stream: function() {
  26053. return new P._ControllerStream(this, H._instanceType(this)._eval$1("_ControllerStream<1>"));
  26054. },
  26055. get$_pendingEvents: function() {
  26056. if ((this._state & 8) === 0)
  26057. return this._varData;
  26058. return this._varData.varData;
  26059. },
  26060. _ensurePendingEvents$0: function() {
  26061. var events, state, _this = this;
  26062. if ((_this._state & 8) === 0) {
  26063. events = _this._varData;
  26064. return events == null ? _this._varData = new P._StreamImplEvents() : events;
  26065. }
  26066. state = _this._varData;
  26067. events = state.varData;
  26068. return events == null ? state.varData = new P._StreamImplEvents() : events;
  26069. },
  26070. get$_subscription: function() {
  26071. var varData = this._varData;
  26072. return (this._state & 8) !== 0 ? varData.varData : varData;
  26073. },
  26074. _badEventState$0: function() {
  26075. if ((this._state & 4) !== 0)
  26076. return new P.StateError("Cannot add event after closing");
  26077. return new P.StateError("Cannot add event while adding a stream");
  26078. },
  26079. addStream$2$cancelOnError: function(source, cancelOnError) {
  26080. var t2, t3, t4, _this = this,
  26081. t1 = _this._state;
  26082. if (t1 >= 4)
  26083. throw H.wrapException(_this._badEventState$0());
  26084. if ((t1 & 2) !== 0) {
  26085. t1 = new P._Future($.Zone__current, type$._Future_dynamic);
  26086. t1._asyncComplete$1(null);
  26087. return t1;
  26088. }
  26089. t1 = _this._varData;
  26090. t2 = new P._Future($.Zone__current, type$._Future_dynamic);
  26091. t3 = source.listen$4$cancelOnError$onDone$onError(0, _this.get$_async$_add(), false, _this.get$_close(), _this.get$_addError());
  26092. t4 = _this._state;
  26093. if ((t4 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t4 & 2) === 0)
  26094. t3.pause$0(0);
  26095. _this._varData = new P._StreamControllerAddStreamState(t1, t2, t3);
  26096. _this._state |= 8;
  26097. return t2;
  26098. },
  26099. _ensureDoneFuture$0: function() {
  26100. var t1 = this._doneFuture;
  26101. if (t1 == null)
  26102. t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new P._Future($.Zone__current, type$._Future_void);
  26103. return t1;
  26104. },
  26105. add$1: function(_, value) {
  26106. if (this._state >= 4)
  26107. throw H.wrapException(this._badEventState$0());
  26108. this._async$_add$1(value);
  26109. },
  26110. addError$2: function(error, stackTrace) {
  26111. var replacement;
  26112. P.ArgumentError_checkNotNull(error, "error");
  26113. if (this._state >= 4)
  26114. throw H.wrapException(this._badEventState$0());
  26115. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  26116. if (replacement != null) {
  26117. error = replacement.error;
  26118. stackTrace = replacement.stackTrace;
  26119. } else if (stackTrace == null)
  26120. stackTrace = P.AsyncError_defaultStackTrace(error);
  26121. this._addError$2(error, stackTrace);
  26122. },
  26123. addError$1: function(error) {
  26124. return this.addError$2(error, null);
  26125. },
  26126. close$0: function(_) {
  26127. var _this = this,
  26128. t1 = _this._state;
  26129. if ((t1 & 4) !== 0)
  26130. return _this._ensureDoneFuture$0();
  26131. if (t1 >= 4)
  26132. throw H.wrapException(_this._badEventState$0());
  26133. _this._closeUnchecked$0();
  26134. return _this._ensureDoneFuture$0();
  26135. },
  26136. _closeUnchecked$0: function() {
  26137. var t1 = this._state |= 4;
  26138. if ((t1 & 1) !== 0)
  26139. this._sendDone$0();
  26140. else if ((t1 & 3) === 0)
  26141. this._ensurePendingEvents$0().add$1(0, C.C__DelayedDone);
  26142. },
  26143. _async$_add$1: function(value) {
  26144. var t1 = this._state;
  26145. if ((t1 & 1) !== 0)
  26146. this._sendData$1(value);
  26147. else if ((t1 & 3) === 0)
  26148. this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value));
  26149. },
  26150. _addError$2: function(error, stackTrace) {
  26151. var t1 = this._state;
  26152. if ((t1 & 1) !== 0)
  26153. this._sendError$2(error, stackTrace);
  26154. else if ((t1 & 3) === 0)
  26155. this._ensurePendingEvents$0().add$1(0, new P._DelayedError(error, stackTrace));
  26156. },
  26157. _close$0: function() {
  26158. var addState = this._varData;
  26159. this._varData = addState.varData;
  26160. this._state &= 4294967287;
  26161. addState.addStreamFuture._asyncComplete$1(null);
  26162. },
  26163. _subscribe$4: function(onData, onError, onDone, cancelOnError) {
  26164. var subscription, pendingEvents, t1, addState, _this = this;
  26165. if ((_this._state & 3) !== 0)
  26166. throw H.wrapException(P.StateError$("Stream has already been listened to."));
  26167. subscription = P._ControllerSubscription$(_this, onData, onError, onDone, cancelOnError, H._instanceType(_this)._precomputed1);
  26168. pendingEvents = _this.get$_pendingEvents();
  26169. t1 = _this._state |= 1;
  26170. if ((t1 & 8) !== 0) {
  26171. addState = _this._varData;
  26172. addState.varData = subscription;
  26173. addState.addSubscription.resume$0(0);
  26174. } else
  26175. _this._varData = subscription;
  26176. subscription._setPendingEvents$1(pendingEvents);
  26177. subscription._guardCallback$1(new P._StreamController__subscribe_closure(_this));
  26178. return subscription;
  26179. },
  26180. _recordCancel$1: function(subscription) {
  26181. var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null;
  26182. if ((_this._state & 8) !== 0)
  26183. result = _this._varData.cancel$0();
  26184. _this._varData = null;
  26185. _this._state = _this._state & 4294967286 | 2;
  26186. onCancel = _this.onCancel;
  26187. if (onCancel != null)
  26188. if (result == null)
  26189. try {
  26190. cancelResult = onCancel.call$0();
  26191. if (type$.Future_void._is(cancelResult))
  26192. result = cancelResult;
  26193. } catch (exception) {
  26194. e = H.unwrapException(exception);
  26195. s = H.getTraceFromException(exception);
  26196. result0 = new P._Future($.Zone__current, type$._Future_void);
  26197. result0._asyncCompleteError$2(e, s);
  26198. result = result0;
  26199. }
  26200. else
  26201. result = result.whenComplete$1(onCancel);
  26202. t1 = new P._StreamController__recordCancel_complete(_this);
  26203. if (result != null)
  26204. result = result.whenComplete$1(t1);
  26205. else
  26206. t1.call$0();
  26207. return result;
  26208. },
  26209. _recordPause$1: function(subscription) {
  26210. if ((this._state & 8) !== 0)
  26211. this._varData.addSubscription.pause$0(0);
  26212. P._runGuarded(this.onPause);
  26213. },
  26214. _recordResume$1: function(subscription) {
  26215. if ((this._state & 8) !== 0)
  26216. this._varData.addSubscription.resume$0(0);
  26217. P._runGuarded(this.onResume);
  26218. },
  26219. $isEventSink: 1,
  26220. set$onListen: function(val) {
  26221. return this.onListen = val;
  26222. },
  26223. set$onPause: function(val) {
  26224. return this.onPause = val;
  26225. },
  26226. set$onResume: function(val) {
  26227. return this.onResume = val;
  26228. },
  26229. set$onCancel: function(val) {
  26230. return this.onCancel = val;
  26231. }
  26232. };
  26233. P._StreamController__subscribe_closure.prototype = {
  26234. call$0: function() {
  26235. P._runGuarded(this.$this.onListen);
  26236. },
  26237. $signature: 0
  26238. };
  26239. P._StreamController__recordCancel_complete.prototype = {
  26240. call$0: function() {
  26241. var doneFuture = this.$this._doneFuture;
  26242. if (doneFuture != null && doneFuture._state === 0)
  26243. doneFuture._asyncComplete$1(null);
  26244. },
  26245. "call*": "call$0",
  26246. $requiredArgCount: 0,
  26247. $signature: 1
  26248. };
  26249. P._SyncStreamControllerDispatch.prototype = {
  26250. _sendData$1: function(data) {
  26251. this.get$_subscription()._async$_add$1(data);
  26252. },
  26253. _sendError$2: function(error, stackTrace) {
  26254. this.get$_subscription()._addError$2(error, stackTrace);
  26255. },
  26256. _sendDone$0: function() {
  26257. this.get$_subscription()._close$0();
  26258. }
  26259. };
  26260. P._AsyncStreamControllerDispatch.prototype = {
  26261. _sendData$1: function(data) {
  26262. this.get$_subscription()._addPending$1(new P._DelayedData(data));
  26263. },
  26264. _sendError$2: function(error, stackTrace) {
  26265. this.get$_subscription()._addPending$1(new P._DelayedError(error, stackTrace));
  26266. },
  26267. _sendDone$0: function() {
  26268. this.get$_subscription()._addPending$1(C.C__DelayedDone);
  26269. }
  26270. };
  26271. P._AsyncStreamController.prototype = {};
  26272. P._SyncStreamController.prototype = {};
  26273. P._ControllerStream.prototype = {
  26274. get$hashCode: function(_) {
  26275. return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>> 0;
  26276. },
  26277. $eq: function(_, other) {
  26278. if (other == null)
  26279. return false;
  26280. if (this === other)
  26281. return true;
  26282. return other instanceof P._ControllerStream && other._async$_controller === this._async$_controller;
  26283. }
  26284. };
  26285. P._ControllerSubscription.prototype = {
  26286. _async$_onCancel$0: function() {
  26287. return this._async$_controller._recordCancel$1(this);
  26288. },
  26289. _async$_onPause$0: function() {
  26290. this._async$_controller._recordPause$1(this);
  26291. },
  26292. _async$_onResume$0: function() {
  26293. this._async$_controller._recordResume$1(this);
  26294. }
  26295. };
  26296. P._AddStreamState.prototype = {
  26297. cancel$0: function() {
  26298. var cancel = this.addSubscription.cancel$0();
  26299. if (cancel == null) {
  26300. this.addStreamFuture._asyncComplete$1(null);
  26301. return $.$get$Future__nullFuture();
  26302. }
  26303. return cancel.whenComplete$1(new P._AddStreamState_cancel_closure(this));
  26304. }
  26305. };
  26306. P._AddStreamState_cancel_closure.prototype = {
  26307. call$0: function() {
  26308. this.$this.addStreamFuture._asyncComplete$1(null);
  26309. },
  26310. "call*": "call$0",
  26311. $requiredArgCount: 0,
  26312. $signature: 0
  26313. };
  26314. P._StreamControllerAddStreamState.prototype = {};
  26315. P._BufferingStreamSubscription.prototype = {
  26316. _setPendingEvents$1: function(pendingEvents) {
  26317. var _this = this;
  26318. if (pendingEvents == null)
  26319. return;
  26320. _this._pending = pendingEvents;
  26321. if (pendingEvents.lastPendingEvent != null) {
  26322. _this._state = (_this._state | 64) >>> 0;
  26323. pendingEvents.schedule$1(_this);
  26324. }
  26325. },
  26326. pause$1: function(_, resumeSignal) {
  26327. var t2, t3, _this = this,
  26328. t1 = _this._state;
  26329. if ((t1 & 8) !== 0)
  26330. return;
  26331. t2 = (t1 + 128 | 4) >>> 0;
  26332. _this._state = t2;
  26333. if (t1 < 128) {
  26334. t3 = _this._pending;
  26335. if (t3 != null)
  26336. if (t3._state === 1)
  26337. t3._state = 3;
  26338. }
  26339. if ((t1 & 4) === 0 && (t2 & 32) === 0)
  26340. _this._guardCallback$1(_this.get$_async$_onPause());
  26341. },
  26342. pause$0: function($receiver) {
  26343. return this.pause$1($receiver, null);
  26344. },
  26345. resume$0: function(_) {
  26346. var _this = this,
  26347. t1 = _this._state;
  26348. if ((t1 & 8) !== 0)
  26349. return;
  26350. if (t1 >= 128) {
  26351. t1 = _this._state = t1 - 128;
  26352. if (t1 < 128)
  26353. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent != null)
  26354. _this._pending.schedule$1(_this);
  26355. else {
  26356. t1 = (t1 & 4294967291) >>> 0;
  26357. _this._state = t1;
  26358. if ((t1 & 32) === 0)
  26359. _this._guardCallback$1(_this.get$_async$_onResume());
  26360. }
  26361. }
  26362. },
  26363. cancel$0: function() {
  26364. var _this = this,
  26365. t1 = (_this._state & 4294967279) >>> 0;
  26366. _this._state = t1;
  26367. if ((t1 & 8) === 0)
  26368. _this._cancel$0();
  26369. t1 = _this._cancelFuture;
  26370. return t1 == null ? $.$get$Future__nullFuture() : t1;
  26371. },
  26372. _cancel$0: function() {
  26373. var t2, _this = this,
  26374. t1 = _this._state = (_this._state | 8) >>> 0;
  26375. if ((t1 & 64) !== 0) {
  26376. t2 = _this._pending;
  26377. if (t2._state === 1)
  26378. t2._state = 3;
  26379. }
  26380. if ((t1 & 32) === 0)
  26381. _this._pending = null;
  26382. _this._cancelFuture = _this._async$_onCancel$0();
  26383. },
  26384. _async$_add$1: function(data) {
  26385. var t1 = this._state;
  26386. if ((t1 & 8) !== 0)
  26387. return;
  26388. if (t1 < 32)
  26389. this._sendData$1(data);
  26390. else
  26391. this._addPending$1(new P._DelayedData(data));
  26392. },
  26393. _addError$2: function(error, stackTrace) {
  26394. var t1 = this._state;
  26395. if ((t1 & 8) !== 0)
  26396. return;
  26397. if (t1 < 32)
  26398. this._sendError$2(error, stackTrace);
  26399. else
  26400. this._addPending$1(new P._DelayedError(error, stackTrace));
  26401. },
  26402. _close$0: function() {
  26403. var _this = this,
  26404. t1 = _this._state;
  26405. if ((t1 & 8) !== 0)
  26406. return;
  26407. t1 = (t1 | 2) >>> 0;
  26408. _this._state = t1;
  26409. if (t1 < 32)
  26410. _this._sendDone$0();
  26411. else
  26412. _this._addPending$1(C.C__DelayedDone);
  26413. },
  26414. _async$_onPause$0: function() {
  26415. },
  26416. _async$_onResume$0: function() {
  26417. },
  26418. _async$_onCancel$0: function() {
  26419. return null;
  26420. },
  26421. _addPending$1: function($event) {
  26422. var t1, _this = this,
  26423. pending = _this._pending;
  26424. if (pending == null)
  26425. pending = new P._StreamImplEvents();
  26426. _this._pending = pending;
  26427. pending.add$1(0, $event);
  26428. t1 = _this._state;
  26429. if ((t1 & 64) === 0) {
  26430. t1 = (t1 | 64) >>> 0;
  26431. _this._state = t1;
  26432. if (t1 < 128)
  26433. pending.schedule$1(_this);
  26434. }
  26435. },
  26436. _sendData$1: function(data) {
  26437. var _this = this,
  26438. t1 = _this._state;
  26439. _this._state = (t1 | 32) >>> 0;
  26440. _this._zone.runUnaryGuarded$1$2(_this._onData, data, H._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"));
  26441. _this._state = (_this._state & 4294967263) >>> 0;
  26442. _this._checkState$1((t1 & 4) !== 0);
  26443. },
  26444. _sendError$2: function(error, stackTrace) {
  26445. var cancelFuture, _this = this,
  26446. t1 = _this._state,
  26447. t2 = new P._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
  26448. if ((t1 & 1) !== 0) {
  26449. _this._state = (t1 | 16) >>> 0;
  26450. _this._cancel$0();
  26451. cancelFuture = _this._cancelFuture;
  26452. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  26453. cancelFuture.whenComplete$1(t2);
  26454. else
  26455. t2.call$0();
  26456. } else {
  26457. t2.call$0();
  26458. _this._checkState$1((t1 & 4) !== 0);
  26459. }
  26460. },
  26461. _sendDone$0: function() {
  26462. var cancelFuture, _this = this,
  26463. t1 = new P._BufferingStreamSubscription__sendDone_sendDone(_this);
  26464. _this._cancel$0();
  26465. _this._state = (_this._state | 16) >>> 0;
  26466. cancelFuture = _this._cancelFuture;
  26467. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  26468. cancelFuture.whenComplete$1(t1);
  26469. else
  26470. t1.call$0();
  26471. },
  26472. _guardCallback$1: function(callback) {
  26473. var _this = this,
  26474. t1 = _this._state;
  26475. _this._state = (t1 | 32) >>> 0;
  26476. callback.call$0();
  26477. _this._state = (_this._state & 4294967263) >>> 0;
  26478. _this._checkState$1((t1 & 4) !== 0);
  26479. },
  26480. _checkState$1: function(wasInputPaused) {
  26481. var t2, isInputPaused, _this = this,
  26482. t1 = _this._state;
  26483. if ((t1 & 64) !== 0 && _this._pending.lastPendingEvent == null) {
  26484. t1 = _this._state = (t1 & 4294967231) >>> 0;
  26485. if ((t1 & 4) !== 0)
  26486. if (t1 < 128) {
  26487. t2 = _this._pending;
  26488. t2 = t2 == null ? null : t2.lastPendingEvent == null;
  26489. t2 = t2 !== false;
  26490. } else
  26491. t2 = false;
  26492. else
  26493. t2 = false;
  26494. if (t2) {
  26495. t1 = (t1 & 4294967291) >>> 0;
  26496. _this._state = t1;
  26497. }
  26498. }
  26499. for (; true; wasInputPaused = isInputPaused) {
  26500. if ((t1 & 8) !== 0) {
  26501. _this._pending = null;
  26502. return;
  26503. }
  26504. isInputPaused = (t1 & 4) !== 0;
  26505. if (wasInputPaused === isInputPaused)
  26506. break;
  26507. _this._state = (t1 ^ 32) >>> 0;
  26508. if (isInputPaused)
  26509. _this._async$_onPause$0();
  26510. else
  26511. _this._async$_onResume$0();
  26512. t1 = (_this._state & 4294967263) >>> 0;
  26513. _this._state = t1;
  26514. }
  26515. if ((t1 & 64) !== 0 && t1 < 128)
  26516. _this._pending.schedule$1(_this);
  26517. },
  26518. $isStreamSubscription: 1
  26519. };
  26520. P._BufferingStreamSubscription__sendError_sendError.prototype = {
  26521. call$0: function() {
  26522. var onError, t3, t4,
  26523. t1 = this.$this,
  26524. t2 = t1._state;
  26525. if ((t2 & 8) !== 0 && (t2 & 16) === 0)
  26526. return;
  26527. t1._state = (t2 | 32) >>> 0;
  26528. onError = t1._onError;
  26529. t2 = this.error;
  26530. t3 = type$.Object;
  26531. t4 = t1._zone;
  26532. if (type$.void_Function_Object_StackTrace._is(onError))
  26533. t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace);
  26534. else
  26535. t4.runUnaryGuarded$1$2(onError, t2, t3);
  26536. t1._state = (t1._state & 4294967263) >>> 0;
  26537. },
  26538. "call*": "call$0",
  26539. $requiredArgCount: 0,
  26540. $signature: 1
  26541. };
  26542. P._BufferingStreamSubscription__sendDone_sendDone.prototype = {
  26543. call$0: function() {
  26544. var t1 = this.$this,
  26545. t2 = t1._state;
  26546. if ((t2 & 16) === 0)
  26547. return;
  26548. t1._state = (t2 | 42) >>> 0;
  26549. t1._zone.runGuarded$1(t1._onDone);
  26550. t1._state = (t1._state & 4294967263) >>> 0;
  26551. },
  26552. "call*": "call$0",
  26553. $requiredArgCount: 0,
  26554. $signature: 1
  26555. };
  26556. P._StreamImpl.prototype = {
  26557. listen$4$cancelOnError$onDone$onError: function(_, onData, cancelOnError, onDone, onError) {
  26558. return this._async$_controller._subscribe$4(onData, onError, onDone, cancelOnError === true);
  26559. },
  26560. listen$3$onDone$onError: function($receiver, onData, onDone, onError) {
  26561. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  26562. }
  26563. };
  26564. P._DelayedEvent.prototype = {
  26565. get$next: function() {
  26566. return this.next;
  26567. },
  26568. set$next: function(val) {
  26569. return this.next = val;
  26570. }
  26571. };
  26572. P._DelayedData.prototype = {
  26573. perform$1: function(dispatch) {
  26574. dispatch._sendData$1(this.value);
  26575. }
  26576. };
  26577. P._DelayedError.prototype = {
  26578. perform$1: function(dispatch) {
  26579. dispatch._sendError$2(this.error, this.stackTrace);
  26580. }
  26581. };
  26582. P._DelayedDone.prototype = {
  26583. perform$1: function(dispatch) {
  26584. dispatch._sendDone$0();
  26585. },
  26586. get$next: function() {
  26587. return null;
  26588. },
  26589. set$next: function(_) {
  26590. throw H.wrapException(P.StateError$("No events after a done."));
  26591. }
  26592. };
  26593. P._PendingEvents.prototype = {
  26594. schedule$1: function(dispatch) {
  26595. var _this = this,
  26596. t1 = _this._state;
  26597. if (t1 === 1)
  26598. return;
  26599. if (t1 >= 1) {
  26600. _this._state = 1;
  26601. return;
  26602. }
  26603. P.scheduleMicrotask(new P._PendingEvents_schedule_closure(_this, dispatch));
  26604. _this._state = 1;
  26605. }
  26606. };
  26607. P._PendingEvents_schedule_closure.prototype = {
  26608. call$0: function() {
  26609. var $event, nextEvent,
  26610. t1 = this.$this,
  26611. oldState = t1._state;
  26612. t1._state = 0;
  26613. if (oldState === 3)
  26614. return;
  26615. $event = t1.firstPendingEvent;
  26616. nextEvent = $event.get$next();
  26617. t1.firstPendingEvent = nextEvent;
  26618. if (nextEvent == null)
  26619. t1.lastPendingEvent = null;
  26620. $event.perform$1(this.dispatch);
  26621. },
  26622. "call*": "call$0",
  26623. $requiredArgCount: 0,
  26624. $signature: 0
  26625. };
  26626. P._StreamImplEvents.prototype = {
  26627. add$1: function(_, $event) {
  26628. var _this = this,
  26629. lastEvent = _this.lastPendingEvent;
  26630. if (lastEvent == null)
  26631. _this.firstPendingEvent = _this.lastPendingEvent = $event;
  26632. else {
  26633. lastEvent.set$next($event);
  26634. _this.lastPendingEvent = $event;
  26635. }
  26636. }
  26637. };
  26638. P._DoneStreamSubscription.prototype = {
  26639. _schedule$0: function() {
  26640. var _this = this;
  26641. if ((_this._state & 2) !== 0)
  26642. return;
  26643. _this._zone.scheduleMicrotask$1(_this.get$_sendDone());
  26644. _this._state = (_this._state | 2) >>> 0;
  26645. },
  26646. pause$1: function(_, resumeSignal) {
  26647. this._state += 4;
  26648. },
  26649. pause$0: function($receiver) {
  26650. return this.pause$1($receiver, null);
  26651. },
  26652. resume$0: function(_) {
  26653. var t1 = this._state;
  26654. if (t1 >= 4) {
  26655. t1 = this._state = t1 - 4;
  26656. if (t1 < 4 && (t1 & 1) === 0)
  26657. this._schedule$0();
  26658. }
  26659. },
  26660. cancel$0: function() {
  26661. return $.$get$Future__nullFuture();
  26662. },
  26663. _sendDone$0: function() {
  26664. var doneHandler, _this = this,
  26665. t1 = _this._state = (_this._state & 4294967293) >>> 0;
  26666. if (t1 >= 4)
  26667. return;
  26668. _this._state = (t1 | 1) >>> 0;
  26669. doneHandler = _this._onDone;
  26670. if (doneHandler != null)
  26671. _this._zone.runGuarded$1(doneHandler);
  26672. },
  26673. $isStreamSubscription: 1
  26674. };
  26675. P._StreamIterator.prototype = {
  26676. get$current: function(_) {
  26677. if (this._subscription != null && this._isPaused)
  26678. return this._stateData;
  26679. return null;
  26680. },
  26681. moveNext$0: function() {
  26682. var future, _this = this,
  26683. subscription = _this._subscription;
  26684. if (subscription != null) {
  26685. if (_this._isPaused) {
  26686. future = new P._Future($.Zone__current, type$._Future_bool);
  26687. _this._stateData = future;
  26688. _this._isPaused = false;
  26689. subscription.resume$0(0);
  26690. return future;
  26691. }
  26692. throw H.wrapException(P.StateError$("Already waiting for next."));
  26693. }
  26694. return _this._initializeOrDone$0();
  26695. },
  26696. _initializeOrDone$0: function() {
  26697. var _this = this,
  26698. stateData = _this._stateData;
  26699. if (stateData != null) {
  26700. _this._subscription = stateData.listen$4$cancelOnError$onDone$onError(0, _this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
  26701. return _this._stateData = new P._Future($.Zone__current, type$._Future_bool);
  26702. }
  26703. return $.$get$Future__falseFuture();
  26704. },
  26705. cancel$0: function() {
  26706. var _this = this,
  26707. subscription = _this._subscription,
  26708. stateData = _this._stateData;
  26709. _this._stateData = null;
  26710. if (subscription != null) {
  26711. _this._subscription = null;
  26712. if (!_this._isPaused)
  26713. stateData._asyncComplete$1(false);
  26714. return subscription.cancel$0();
  26715. }
  26716. return $.$get$Future__nullFuture();
  26717. },
  26718. _onData$1: function(data) {
  26719. var t1, _this = this,
  26720. moveNextFuture = _this._stateData;
  26721. _this._stateData = data;
  26722. _this._isPaused = true;
  26723. moveNextFuture._complete$1(true);
  26724. if (_this._isPaused) {
  26725. t1 = _this._subscription;
  26726. if (t1 != null)
  26727. t1.pause$0(0);
  26728. }
  26729. },
  26730. _onError$2: function(error, stackTrace) {
  26731. var moveNextFuture = this._stateData;
  26732. this._stateData = this._subscription = null;
  26733. moveNextFuture._completeError$2(error, stackTrace);
  26734. },
  26735. _onDone$0: function() {
  26736. var moveNextFuture = this._stateData;
  26737. this._stateData = this._subscription = null;
  26738. moveNextFuture._complete$1(false);
  26739. }
  26740. };
  26741. P._ForwardingStream.prototype = {
  26742. get$isBroadcast: function() {
  26743. return this._async$_source.get$isBroadcast();
  26744. },
  26745. listen$4$cancelOnError$onDone$onError: function(_, onData, cancelOnError, onDone, onError) {
  26746. var t1 = H._instanceType(this),
  26747. t2 = t1._rest[1],
  26748. t3 = $.Zone__current,
  26749. t4 = cancelOnError === true ? 1 : 0,
  26750. t5 = P._BufferingStreamSubscription__registerDataHandler(t3, onData, t2),
  26751. t6 = P._BufferingStreamSubscription__registerErrorHandler(t3, onError),
  26752. t7 = onDone == null ? P.async___nullDoneHandler$closure() : onDone;
  26753. t2 = new P._ForwardingStreamSubscription(this, t5, t6, t3.registerCallback$1$1(t7, type$.void), t3, t4, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>"));
  26754. t2._subscription = this._async$_source.listen$3$onDone$onError(0, t2.get$_handleData(), t2.get$_handleDone(), t2.get$_handleError());
  26755. return t2;
  26756. },
  26757. listen$3$onDone$onError: function($receiver, onData, onDone, onError) {
  26758. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  26759. }
  26760. };
  26761. P._ForwardingStreamSubscription.prototype = {
  26762. _async$_add$1: function(data) {
  26763. if ((this._state & 2) !== 0)
  26764. return;
  26765. this.super$_BufferingStreamSubscription$_add(data);
  26766. },
  26767. _addError$2: function(error, stackTrace) {
  26768. if ((this._state & 2) !== 0)
  26769. return;
  26770. this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
  26771. },
  26772. _async$_onPause$0: function() {
  26773. var t1 = this._subscription;
  26774. if (t1 != null)
  26775. t1.pause$0(0);
  26776. },
  26777. _async$_onResume$0: function() {
  26778. var t1 = this._subscription;
  26779. if (t1 != null)
  26780. t1.resume$0(0);
  26781. },
  26782. _async$_onCancel$0: function() {
  26783. var subscription = this._subscription;
  26784. if (subscription != null) {
  26785. this._subscription = null;
  26786. return subscription.cancel$0();
  26787. }
  26788. return null;
  26789. },
  26790. _handleData$1: function(data) {
  26791. this._stream._handleData$2(data, this);
  26792. },
  26793. _handleError$2: function(error, stackTrace) {
  26794. this._addError$2(error, stackTrace);
  26795. },
  26796. _handleDone$0: function() {
  26797. this._close$0();
  26798. }
  26799. };
  26800. P._ExpandStream.prototype = {
  26801. _handleData$2: function(inputEvent, sink) {
  26802. var value, e, s, t1, exception;
  26803. try {
  26804. for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
  26805. value = t1.get$current(t1);
  26806. sink._async$_add$1(value);
  26807. }
  26808. } catch (exception) {
  26809. e = H.unwrapException(exception);
  26810. s = H.getTraceFromException(exception);
  26811. P._addErrorWithReplacement(sink, e, s);
  26812. }
  26813. }
  26814. };
  26815. P.AsyncError.prototype = {
  26816. toString$0: function(_) {
  26817. return H.S(this.error);
  26818. },
  26819. $isError: 1,
  26820. get$stackTrace: function() {
  26821. return this.stackTrace;
  26822. }
  26823. };
  26824. P._ZoneFunction.prototype = {};
  26825. P._RunNullaryZoneFunction.prototype = {};
  26826. P._RunUnaryZoneFunction.prototype = {};
  26827. P._RunBinaryZoneFunction.prototype = {};
  26828. P._RegisterNullaryZoneFunction.prototype = {};
  26829. P._RegisterUnaryZoneFunction.prototype = {};
  26830. P._RegisterBinaryZoneFunction.prototype = {};
  26831. P._ZoneSpecification.prototype = {$isZoneSpecification: 1};
  26832. P._ZoneDelegate.prototype = {$isZoneDelegate: 1};
  26833. P._Zone.prototype = {$isZone: 1};
  26834. P._CustomZone.prototype = {
  26835. get$_delegate: function() {
  26836. var t1 = this._delegateCache;
  26837. return t1 == null ? this._delegateCache = new P._ZoneDelegate(this) : t1;
  26838. },
  26839. get$_parentDelegate: function() {
  26840. return this.parent.get$_delegate();
  26841. },
  26842. get$errorZone: function() {
  26843. return this._handleUncaughtError.zone;
  26844. },
  26845. runGuarded$1: function(f) {
  26846. var e, s, exception;
  26847. try {
  26848. this.run$1$1(0, f, type$.void);
  26849. } catch (exception) {
  26850. e = H.unwrapException(exception);
  26851. s = H.getTraceFromException(exception);
  26852. this.handleUncaughtError$2(e, s);
  26853. }
  26854. },
  26855. runUnaryGuarded$1$2: function(f, arg, $T) {
  26856. var e, s, exception;
  26857. try {
  26858. this.runUnary$2$2(f, arg, type$.void, $T);
  26859. } catch (exception) {
  26860. e = H.unwrapException(exception);
  26861. s = H.getTraceFromException(exception);
  26862. this.handleUncaughtError$2(e, s);
  26863. }
  26864. },
  26865. runBinaryGuarded$2$3: function(f, arg1, arg2, T1, T2) {
  26866. var e, s, exception;
  26867. try {
  26868. this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2);
  26869. } catch (exception) {
  26870. e = H.unwrapException(exception);
  26871. s = H.getTraceFromException(exception);
  26872. this.handleUncaughtError$2(e, s);
  26873. }
  26874. },
  26875. bindCallback$1$1: function(f, $R) {
  26876. return new P._CustomZone_bindCallback_closure(this, this.registerCallback$1$1(f, $R), $R);
  26877. },
  26878. bindUnaryCallback$2$1: function(f, $R, $T) {
  26879. return new P._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1(f, $R, $T), $T, $R);
  26880. },
  26881. bindCallbackGuarded$1: function(f) {
  26882. return new P._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(f, type$.void));
  26883. },
  26884. $index: function(_, key) {
  26885. var value,
  26886. t1 = this._async$_map,
  26887. result = t1.$index(0, key);
  26888. if (result != null || t1.containsKey$1(key))
  26889. return result;
  26890. value = this.parent.$index(0, key);
  26891. if (value != null)
  26892. t1.$indexSet(0, key, value);
  26893. return value;
  26894. },
  26895. handleUncaughtError$2: function(error, stackTrace) {
  26896. var implementation = this._handleUncaughtError,
  26897. t1 = implementation.zone;
  26898. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, error, stackTrace);
  26899. },
  26900. fork$2$specification$zoneValues: function(specification, zoneValues) {
  26901. var implementation = this._fork,
  26902. t1 = implementation.zone;
  26903. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues);
  26904. },
  26905. run$1$1: function(_, f) {
  26906. var implementation = this._run,
  26907. t1 = implementation.zone;
  26908. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  26909. },
  26910. runUnary$2$2: function(f, arg) {
  26911. var implementation = this._runUnary,
  26912. t1 = implementation.zone;
  26913. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg);
  26914. },
  26915. runBinary$3$3: function(f, arg1, arg2) {
  26916. var implementation = this._runBinary,
  26917. t1 = implementation.zone;
  26918. return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2);
  26919. },
  26920. registerCallback$1$1: function(callback) {
  26921. var implementation = this._registerCallback,
  26922. t1 = implementation.zone;
  26923. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26924. },
  26925. registerUnaryCallback$2$1: function(callback) {
  26926. var implementation = this._registerUnaryCallback,
  26927. t1 = implementation.zone;
  26928. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26929. },
  26930. registerBinaryCallback$3$1: function(callback) {
  26931. var implementation = this._registerBinaryCallback,
  26932. t1 = implementation.zone;
  26933. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  26934. },
  26935. errorCallback$2: function(error, stackTrace) {
  26936. var implementation, implementationZone;
  26937. P.ArgumentError_checkNotNull(error, "error");
  26938. implementation = this._errorCallback;
  26939. implementationZone = implementation.zone;
  26940. if (implementationZone === C.C__RootZone)
  26941. return null;
  26942. return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace);
  26943. },
  26944. scheduleMicrotask$1: function(f) {
  26945. var implementation = this._scheduleMicrotask,
  26946. t1 = implementation.zone;
  26947. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  26948. },
  26949. createTimer$2: function(duration, f) {
  26950. var implementation = this._createTimer,
  26951. t1 = implementation.zone;
  26952. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f);
  26953. },
  26954. print$1: function(line) {
  26955. var implementation = this._print,
  26956. t1 = implementation.zone;
  26957. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line);
  26958. },
  26959. get$_run: function() {
  26960. return this._run;
  26961. },
  26962. get$_runUnary: function() {
  26963. return this._runUnary;
  26964. },
  26965. get$_runBinary: function() {
  26966. return this._runBinary;
  26967. },
  26968. get$_registerCallback: function() {
  26969. return this._registerCallback;
  26970. },
  26971. get$_registerUnaryCallback: function() {
  26972. return this._registerUnaryCallback;
  26973. },
  26974. get$_registerBinaryCallback: function() {
  26975. return this._registerBinaryCallback;
  26976. },
  26977. get$_errorCallback: function() {
  26978. return this._errorCallback;
  26979. },
  26980. get$_scheduleMicrotask: function() {
  26981. return this._scheduleMicrotask;
  26982. },
  26983. get$_createTimer: function() {
  26984. return this._createTimer;
  26985. },
  26986. get$_createPeriodicTimer: function() {
  26987. return this._createPeriodicTimer;
  26988. },
  26989. get$_print: function() {
  26990. return this._print;
  26991. },
  26992. get$_fork: function() {
  26993. return this._fork;
  26994. },
  26995. get$_handleUncaughtError: function() {
  26996. return this._handleUncaughtError;
  26997. },
  26998. get$_async$_map: function() {
  26999. return this._async$_map;
  27000. }
  27001. };
  27002. P._CustomZone_bindCallback_closure.prototype = {
  27003. call$0: function() {
  27004. return this.$this.run$1$1(0, this.registered, this.R);
  27005. },
  27006. $signature: function() {
  27007. return this.R._eval$1("0()");
  27008. }
  27009. };
  27010. P._CustomZone_bindUnaryCallback_closure.prototype = {
  27011. call$1: function(arg) {
  27012. var _this = this;
  27013. return _this.$this.runUnary$2$2(_this.registered, arg, _this.R, _this.T);
  27014. },
  27015. $signature: function() {
  27016. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  27017. }
  27018. };
  27019. P._CustomZone_bindCallbackGuarded_closure.prototype = {
  27020. call$0: function() {
  27021. return this.$this.runGuarded$1(this.registered);
  27022. },
  27023. "call*": "call$0",
  27024. $requiredArgCount: 0,
  27025. $signature: 1
  27026. };
  27027. P._rootHandleUncaughtError_closure.prototype = {
  27028. call$0: function() {
  27029. var error = H.wrapException(this.error);
  27030. error.stack = J.toString$0$(this.stackTrace);
  27031. throw error;
  27032. },
  27033. $signature: 0
  27034. };
  27035. P._RootZone.prototype = {
  27036. get$_run: function() {
  27037. return C._RunNullaryZoneFunction__RootZone__rootRun;
  27038. },
  27039. get$_runUnary: function() {
  27040. return C._RunUnaryZoneFunction__RootZone__rootRunUnary;
  27041. },
  27042. get$_runBinary: function() {
  27043. return C._RunBinaryZoneFunction__RootZone__rootRunBinary;
  27044. },
  27045. get$_registerCallback: function() {
  27046. return C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback;
  27047. },
  27048. get$_registerUnaryCallback: function() {
  27049. return C._RegisterUnaryZoneFunction_Bqo;
  27050. },
  27051. get$_registerBinaryCallback: function() {
  27052. return C._RegisterBinaryZoneFunction_kGu;
  27053. },
  27054. get$_errorCallback: function() {
  27055. return C._ZoneFunction__RootZone__rootErrorCallback;
  27056. },
  27057. get$_scheduleMicrotask: function() {
  27058. return C._ZoneFunction__RootZone__rootScheduleMicrotask;
  27059. },
  27060. get$_createTimer: function() {
  27061. return C._ZoneFunction__RootZone__rootCreateTimer;
  27062. },
  27063. get$_createPeriodicTimer: function() {
  27064. return C._ZoneFunction_3bB;
  27065. },
  27066. get$_print: function() {
  27067. return C._ZoneFunction__RootZone__rootPrint;
  27068. },
  27069. get$_fork: function() {
  27070. return C._ZoneFunction__RootZone__rootFork;
  27071. },
  27072. get$_handleUncaughtError: function() {
  27073. return C._ZoneFunction_NMc;
  27074. },
  27075. get$_async$_map: function() {
  27076. return $.$get$_RootZone__rootMap();
  27077. },
  27078. get$_delegate: function() {
  27079. var t1 = $._RootZone__rootDelegate;
  27080. return t1 == null ? $._RootZone__rootDelegate = new P._ZoneDelegate(this) : t1;
  27081. },
  27082. get$_parentDelegate: function() {
  27083. return this.get$_delegate();
  27084. },
  27085. get$errorZone: function() {
  27086. return this;
  27087. },
  27088. runGuarded$1: function(f) {
  27089. var e, s, exception, _null = null;
  27090. try {
  27091. if (C.C__RootZone === $.Zone__current) {
  27092. f.call$0();
  27093. return;
  27094. }
  27095. P._rootRun(_null, _null, this, f);
  27096. } catch (exception) {
  27097. e = H.unwrapException(exception);
  27098. s = H.getTraceFromException(exception);
  27099. P._rootHandleUncaughtError(_null, _null, this, e, s);
  27100. }
  27101. },
  27102. runUnaryGuarded$1$2: function(f, arg) {
  27103. var e, s, exception, _null = null;
  27104. try {
  27105. if (C.C__RootZone === $.Zone__current) {
  27106. f.call$1(arg);
  27107. return;
  27108. }
  27109. P._rootRunUnary(_null, _null, this, f, arg);
  27110. } catch (exception) {
  27111. e = H.unwrapException(exception);
  27112. s = H.getTraceFromException(exception);
  27113. P._rootHandleUncaughtError(_null, _null, this, e, s);
  27114. }
  27115. },
  27116. runBinaryGuarded$2$3: function(f, arg1, arg2) {
  27117. var e, s, exception, _null = null;
  27118. try {
  27119. if (C.C__RootZone === $.Zone__current) {
  27120. f.call$2(arg1, arg2);
  27121. return;
  27122. }
  27123. P._rootRunBinary(_null, _null, this, f, arg1, arg2);
  27124. } catch (exception) {
  27125. e = H.unwrapException(exception);
  27126. s = H.getTraceFromException(exception);
  27127. P._rootHandleUncaughtError(_null, _null, this, e, s);
  27128. }
  27129. },
  27130. bindCallback$1$1: function(f, $R) {
  27131. return new P._RootZone_bindCallback_closure(this, f, $R);
  27132. },
  27133. bindCallbackGuarded$1: function(f) {
  27134. return new P._RootZone_bindCallbackGuarded_closure(this, f);
  27135. },
  27136. $index: function(_, key) {
  27137. return null;
  27138. },
  27139. handleUncaughtError$2: function(error, stackTrace) {
  27140. P._rootHandleUncaughtError(null, null, this, error, stackTrace);
  27141. },
  27142. fork$2$specification$zoneValues: function(specification, zoneValues) {
  27143. return P._rootFork(null, null, this, specification, zoneValues);
  27144. },
  27145. run$1$1: function(_, f) {
  27146. if ($.Zone__current === C.C__RootZone)
  27147. return f.call$0();
  27148. return P._rootRun(null, null, this, f);
  27149. },
  27150. runUnary$2$2: function(f, arg) {
  27151. if ($.Zone__current === C.C__RootZone)
  27152. return f.call$1(arg);
  27153. return P._rootRunUnary(null, null, this, f, arg);
  27154. },
  27155. runBinary$3$3: function(f, arg1, arg2) {
  27156. if ($.Zone__current === C.C__RootZone)
  27157. return f.call$2(arg1, arg2);
  27158. return P._rootRunBinary(null, null, this, f, arg1, arg2);
  27159. },
  27160. registerCallback$1$1: function(f) {
  27161. return f;
  27162. },
  27163. registerUnaryCallback$2$1: function(f) {
  27164. return f;
  27165. },
  27166. registerBinaryCallback$3$1: function(f) {
  27167. return f;
  27168. },
  27169. errorCallback$2: function(error, stackTrace) {
  27170. return null;
  27171. },
  27172. scheduleMicrotask$1: function(f) {
  27173. P._rootScheduleMicrotask(null, null, this, f);
  27174. },
  27175. createTimer$2: function(duration, f) {
  27176. return P.Timer__createTimer(duration, f);
  27177. },
  27178. print$1: function(line) {
  27179. H.printString(H.S(line));
  27180. }
  27181. };
  27182. P._RootZone_bindCallback_closure.prototype = {
  27183. call$0: function() {
  27184. return this.$this.run$1$1(0, this.f, this.R);
  27185. },
  27186. $signature: function() {
  27187. return this.R._eval$1("0()");
  27188. }
  27189. };
  27190. P._RootZone_bindCallbackGuarded_closure.prototype = {
  27191. call$0: function() {
  27192. return this.$this.runGuarded$1(this.f);
  27193. },
  27194. "call*": "call$0",
  27195. $requiredArgCount: 0,
  27196. $signature: 1
  27197. };
  27198. P._HashMap.prototype = {
  27199. get$length: function(_) {
  27200. return this._collection$_length;
  27201. },
  27202. get$isEmpty: function(_) {
  27203. return this._collection$_length === 0;
  27204. },
  27205. get$isNotEmpty: function(_) {
  27206. return this._collection$_length !== 0;
  27207. },
  27208. get$keys: function(_) {
  27209. return new P._HashMapKeyIterable(this, H._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
  27210. },
  27211. get$values: function(_) {
  27212. var t1 = H._instanceType(this);
  27213. return H.MappedIterable_MappedIterable(new P._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new P._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  27214. },
  27215. containsKey$1: function(key) {
  27216. var strings, nums;
  27217. if (typeof key == "string" && key !== "__proto__") {
  27218. strings = this._collection$_strings;
  27219. return strings == null ? false : strings[key] != null;
  27220. } else if (typeof key == "number" && (key & 1073741823) === key) {
  27221. nums = this._collection$_nums;
  27222. return nums == null ? false : nums[key] != null;
  27223. } else
  27224. return this._containsKey$1(key);
  27225. },
  27226. _containsKey$1: function(key) {
  27227. var rest = this._collection$_rest;
  27228. if (rest == null)
  27229. return false;
  27230. return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
  27231. },
  27232. addAll$1: function(_, other) {
  27233. other.forEach$1(0, new P._HashMap_addAll_closure(this));
  27234. },
  27235. $index: function(_, key) {
  27236. var strings, t1, nums;
  27237. if (typeof key == "string" && key !== "__proto__") {
  27238. strings = this._collection$_strings;
  27239. t1 = strings == null ? null : P._HashMap__getTableEntry(strings, key);
  27240. return t1;
  27241. } else if (typeof key == "number" && (key & 1073741823) === key) {
  27242. nums = this._collection$_nums;
  27243. t1 = nums == null ? null : P._HashMap__getTableEntry(nums, key);
  27244. return t1;
  27245. } else
  27246. return this._get$1(key);
  27247. },
  27248. _get$1: function(key) {
  27249. var bucket, index,
  27250. rest = this._collection$_rest;
  27251. if (rest == null)
  27252. return null;
  27253. bucket = this._getBucket$2(rest, key);
  27254. index = this._findBucketIndex$2(bucket, key);
  27255. return index < 0 ? null : bucket[index + 1];
  27256. },
  27257. $indexSet: function(_, key, value) {
  27258. var strings, nums, _this = this;
  27259. if (typeof key == "string" && key !== "__proto__") {
  27260. strings = _this._collection$_strings;
  27261. _this._collection$_addHashTableEntry$3(strings == null ? _this._collection$_strings = P._HashMap__newHashTable() : strings, key, value);
  27262. } else if (typeof key == "number" && (key & 1073741823) === key) {
  27263. nums = _this._collection$_nums;
  27264. _this._collection$_addHashTableEntry$3(nums == null ? _this._collection$_nums = P._HashMap__newHashTable() : nums, key, value);
  27265. } else
  27266. _this._set$2(key, value);
  27267. },
  27268. _set$2: function(key, value) {
  27269. var hash, bucket, index, _this = this,
  27270. rest = _this._collection$_rest;
  27271. if (rest == null)
  27272. rest = _this._collection$_rest = P._HashMap__newHashTable();
  27273. hash = _this._computeHashCode$1(key);
  27274. bucket = rest[hash];
  27275. if (bucket == null) {
  27276. P._HashMap__setTableEntry(rest, hash, [key, value]);
  27277. ++_this._collection$_length;
  27278. _this._keys = null;
  27279. } else {
  27280. index = _this._findBucketIndex$2(bucket, key);
  27281. if (index >= 0)
  27282. bucket[index + 1] = value;
  27283. else {
  27284. bucket.push(key, value);
  27285. ++_this._collection$_length;
  27286. _this._keys = null;
  27287. }
  27288. }
  27289. },
  27290. putIfAbsent$2: function(key, ifAbsent) {
  27291. var value;
  27292. if (this.containsKey$1(key))
  27293. return this.$index(0, key);
  27294. value = ifAbsent.call$0();
  27295. this.$indexSet(0, key, value);
  27296. return value;
  27297. },
  27298. remove$1: function(_, key) {
  27299. var t1;
  27300. if (typeof key == "string" && key !== "__proto__")
  27301. return this._removeHashTableEntry$2(this._collection$_strings, key);
  27302. else {
  27303. t1 = this._remove$1(key);
  27304. return t1;
  27305. }
  27306. },
  27307. _remove$1: function(key) {
  27308. var hash, bucket, index, result, _this = this,
  27309. rest = _this._collection$_rest;
  27310. if (rest == null)
  27311. return null;
  27312. hash = _this._computeHashCode$1(key);
  27313. bucket = rest[hash];
  27314. index = _this._findBucketIndex$2(bucket, key);
  27315. if (index < 0)
  27316. return null;
  27317. --_this._collection$_length;
  27318. _this._keys = null;
  27319. result = bucket.splice(index, 2)[1];
  27320. if (0 === bucket.length)
  27321. delete rest[hash];
  27322. return result;
  27323. },
  27324. forEach$1: function(_, action) {
  27325. var $length, i, key, _this = this,
  27326. keys = _this._computeKeys$0();
  27327. for ($length = keys.length, i = 0; i < $length; ++i) {
  27328. key = keys[i];
  27329. action.call$2(key, _this.$index(0, key));
  27330. if (keys !== _this._keys)
  27331. throw H.wrapException(P.ConcurrentModificationError$(_this));
  27332. }
  27333. },
  27334. _computeKeys$0: function() {
  27335. var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
  27336. result = _this._keys;
  27337. if (result != null)
  27338. return result;
  27339. result = P.List_List$filled(_this._collection$_length, null, false, type$.dynamic);
  27340. strings = _this._collection$_strings;
  27341. if (strings != null) {
  27342. names = Object.getOwnPropertyNames(strings);
  27343. entries = names.length;
  27344. for (index = 0, i = 0; i < entries; ++i) {
  27345. result[index] = names[i];
  27346. ++index;
  27347. }
  27348. } else
  27349. index = 0;
  27350. nums = _this._collection$_nums;
  27351. if (nums != null) {
  27352. names = Object.getOwnPropertyNames(nums);
  27353. entries = names.length;
  27354. for (i = 0; i < entries; ++i) {
  27355. result[index] = +names[i];
  27356. ++index;
  27357. }
  27358. }
  27359. rest = _this._collection$_rest;
  27360. if (rest != null) {
  27361. names = Object.getOwnPropertyNames(rest);
  27362. entries = names.length;
  27363. for (i = 0; i < entries; ++i) {
  27364. bucket = rest[names[i]];
  27365. $length = bucket.length;
  27366. for (i0 = 0; i0 < $length; i0 += 2) {
  27367. result[index] = bucket[i0];
  27368. ++index;
  27369. }
  27370. }
  27371. }
  27372. return _this._keys = result;
  27373. },
  27374. _collection$_addHashTableEntry$3: function(table, key, value) {
  27375. if (table[key] == null) {
  27376. ++this._collection$_length;
  27377. this._keys = null;
  27378. }
  27379. P._HashMap__setTableEntry(table, key, value);
  27380. },
  27381. _removeHashTableEntry$2: function(table, key) {
  27382. var value;
  27383. if (table != null && table[key] != null) {
  27384. value = P._HashMap__getTableEntry(table, key);
  27385. delete table[key];
  27386. --this._collection$_length;
  27387. this._keys = null;
  27388. return value;
  27389. } else
  27390. return null;
  27391. },
  27392. _computeHashCode$1: function(key) {
  27393. return J.get$hashCode$(key) & 1073741823;
  27394. },
  27395. _getBucket$2: function(table, key) {
  27396. return table[this._computeHashCode$1(key)];
  27397. },
  27398. _findBucketIndex$2: function(bucket, key) {
  27399. var $length, i;
  27400. if (bucket == null)
  27401. return -1;
  27402. $length = bucket.length;
  27403. for (i = 0; i < $length; i += 2)
  27404. if (J.$eq$(bucket[i], key))
  27405. return i;
  27406. return -1;
  27407. }
  27408. };
  27409. P._HashMap_values_closure.prototype = {
  27410. call$1: function(each) {
  27411. return this.$this.$index(0, each);
  27412. },
  27413. $signature: function() {
  27414. return H._instanceType(this.$this)._eval$1("2(1)");
  27415. }
  27416. };
  27417. P._HashMap_addAll_closure.prototype = {
  27418. call$2: function(key, value) {
  27419. this.$this.$indexSet(0, key, value);
  27420. },
  27421. $signature: function() {
  27422. return H._instanceType(this.$this)._eval$1("Null(1,2)");
  27423. }
  27424. };
  27425. P._HashMapKeyIterable.prototype = {
  27426. get$length: function(_) {
  27427. return this._collection$_map._collection$_length;
  27428. },
  27429. get$isEmpty: function(_) {
  27430. return this._collection$_map._collection$_length === 0;
  27431. },
  27432. get$iterator: function(_) {
  27433. var t1 = this._collection$_map;
  27434. return new P._HashMapKeyIterator(t1, t1._computeKeys$0());
  27435. },
  27436. contains$1: function(_, element) {
  27437. return this._collection$_map.containsKey$1(element);
  27438. }
  27439. };
  27440. P._HashMapKeyIterator.prototype = {
  27441. get$current: function(_) {
  27442. return this._collection$_current;
  27443. },
  27444. moveNext$0: function() {
  27445. var _this = this,
  27446. keys = _this._keys,
  27447. offset = _this._offset,
  27448. t1 = _this._collection$_map;
  27449. if (keys !== t1._keys)
  27450. throw H.wrapException(P.ConcurrentModificationError$(t1));
  27451. else if (offset >= keys.length) {
  27452. _this._collection$_current = null;
  27453. return false;
  27454. } else {
  27455. _this._collection$_current = keys[offset];
  27456. _this._offset = offset + 1;
  27457. return true;
  27458. }
  27459. }
  27460. };
  27461. P._LinkedIdentityHashMap.prototype = {
  27462. internalComputeHashCode$1: function(key) {
  27463. return H.objectHashCode(key) & 1073741823;
  27464. },
  27465. internalFindBucketIndex$2: function(bucket, key) {
  27466. var $length, i, t1;
  27467. if (bucket == null)
  27468. return -1;
  27469. $length = bucket.length;
  27470. for (i = 0; i < $length; ++i) {
  27471. t1 = bucket[i].hashMapCellKey;
  27472. if (t1 == null ? key == null : t1 === key)
  27473. return i;
  27474. }
  27475. return -1;
  27476. }
  27477. };
  27478. P._LinkedCustomHashMap.prototype = {
  27479. $index: function(_, key) {
  27480. if (!this._validKey.call$1(key))
  27481. return null;
  27482. return this.super$JsLinkedHashMap$internalGet(key);
  27483. },
  27484. $indexSet: function(_, key, value) {
  27485. this.super$JsLinkedHashMap$internalSet(key, value);
  27486. },
  27487. containsKey$1: function(key) {
  27488. if (!this._validKey.call$1(key))
  27489. return false;
  27490. return this.super$JsLinkedHashMap$internalContainsKey(key);
  27491. },
  27492. remove$1: function(_, key) {
  27493. if (!this._validKey.call$1(key))
  27494. return null;
  27495. return this.super$JsLinkedHashMap$internalRemove(key);
  27496. },
  27497. internalComputeHashCode$1: function(key) {
  27498. return this._hashCode.call$1(key) & 1073741823;
  27499. },
  27500. internalFindBucketIndex$2: function(bucket, key) {
  27501. var $length, t1, i;
  27502. if (bucket == null)
  27503. return -1;
  27504. $length = bucket.length;
  27505. for (t1 = this._equals, i = 0; i < $length; ++i)
  27506. if (t1.call$2(bucket[i].hashMapCellKey, key))
  27507. return i;
  27508. return -1;
  27509. }
  27510. };
  27511. P._LinkedCustomHashMap_closure.prototype = {
  27512. call$1: function(v) {
  27513. return this.K._is(v);
  27514. },
  27515. $signature: 282
  27516. };
  27517. P._LinkedHashSet.prototype = {
  27518. _newSet$0: function() {
  27519. return new P._LinkedHashSet(H._instanceType(this)._eval$1("_LinkedHashSet<1>"));
  27520. },
  27521. _newSimilarSet$1$0: function($R) {
  27522. return new P._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
  27523. },
  27524. _newSimilarSet$0: function() {
  27525. return this._newSimilarSet$1$0(type$.dynamic);
  27526. },
  27527. get$iterator: function(_) {
  27528. var t1 = new P._LinkedHashSetIterator(this, this._collection$_modifications);
  27529. t1._collection$_cell = this._collection$_first;
  27530. return t1;
  27531. },
  27532. get$length: function(_) {
  27533. return this._collection$_length;
  27534. },
  27535. get$isEmpty: function(_) {
  27536. return this._collection$_length === 0;
  27537. },
  27538. get$isNotEmpty: function(_) {
  27539. return this._collection$_length !== 0;
  27540. },
  27541. contains$1: function(_, object) {
  27542. var strings, nums;
  27543. if (typeof object == "string" && object !== "__proto__") {
  27544. strings = this._collection$_strings;
  27545. if (strings == null)
  27546. return false;
  27547. return strings[object] != null;
  27548. } else if (typeof object == "number" && (object & 1073741823) === object) {
  27549. nums = this._collection$_nums;
  27550. if (nums == null)
  27551. return false;
  27552. return nums[object] != null;
  27553. } else
  27554. return this._contains$1(object);
  27555. },
  27556. _contains$1: function(object) {
  27557. var rest = this._collection$_rest;
  27558. if (rest == null)
  27559. return false;
  27560. return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
  27561. },
  27562. get$first: function(_) {
  27563. var first = this._collection$_first;
  27564. if (first == null)
  27565. throw H.wrapException(P.StateError$("No elements"));
  27566. return first._element;
  27567. },
  27568. get$last: function(_) {
  27569. var last = this._collection$_last;
  27570. if (last == null)
  27571. throw H.wrapException(P.StateError$("No elements"));
  27572. return last._element;
  27573. },
  27574. add$1: function(_, element) {
  27575. var strings, nums, _this = this;
  27576. if (typeof element == "string" && element !== "__proto__") {
  27577. strings = _this._collection$_strings;
  27578. return _this._collection$_addHashTableEntry$2(strings == null ? _this._collection$_strings = P._LinkedHashSet__newHashTable() : strings, element);
  27579. } else if (typeof element == "number" && (element & 1073741823) === element) {
  27580. nums = _this._collection$_nums;
  27581. return _this._collection$_addHashTableEntry$2(nums == null ? _this._collection$_nums = P._LinkedHashSet__newHashTable() : nums, element);
  27582. } else
  27583. return _this._add$1(element);
  27584. },
  27585. _add$1: function(element) {
  27586. var hash, bucket, _this = this,
  27587. rest = _this._collection$_rest;
  27588. if (rest == null)
  27589. rest = _this._collection$_rest = P._LinkedHashSet__newHashTable();
  27590. hash = _this._computeHashCode$1(element);
  27591. bucket = rest[hash];
  27592. if (bucket == null)
  27593. rest[hash] = [_this._collection$_newLinkedCell$1(element)];
  27594. else {
  27595. if (_this._findBucketIndex$2(bucket, element) >= 0)
  27596. return false;
  27597. bucket.push(_this._collection$_newLinkedCell$1(element));
  27598. }
  27599. return true;
  27600. },
  27601. remove$1: function(_, object) {
  27602. var _this = this;
  27603. if (typeof object == "string" && object !== "__proto__")
  27604. return _this._removeHashTableEntry$2(_this._collection$_strings, object);
  27605. else if (typeof object == "number" && (object & 1073741823) === object)
  27606. return _this._removeHashTableEntry$2(_this._collection$_nums, object);
  27607. else
  27608. return _this._remove$1(object);
  27609. },
  27610. _remove$1: function(object) {
  27611. var hash, bucket, index, cell, _this = this,
  27612. rest = _this._collection$_rest;
  27613. if (rest == null)
  27614. return false;
  27615. hash = _this._computeHashCode$1(object);
  27616. bucket = rest[hash];
  27617. index = _this._findBucketIndex$2(bucket, object);
  27618. if (index < 0)
  27619. return false;
  27620. cell = bucket.splice(index, 1)[0];
  27621. if (0 === bucket.length)
  27622. delete rest[hash];
  27623. _this._unlinkCell$1(cell);
  27624. return true;
  27625. },
  27626. _collection$_addHashTableEntry$2: function(table, element) {
  27627. if (table[element] != null)
  27628. return false;
  27629. table[element] = this._collection$_newLinkedCell$1(element);
  27630. return true;
  27631. },
  27632. _removeHashTableEntry$2: function(table, element) {
  27633. var cell;
  27634. if (table == null)
  27635. return false;
  27636. cell = table[element];
  27637. if (cell == null)
  27638. return false;
  27639. this._unlinkCell$1(cell);
  27640. delete table[element];
  27641. return true;
  27642. },
  27643. _collection$_modified$0: function() {
  27644. this._collection$_modifications = 1073741823 & this._collection$_modifications + 1;
  27645. },
  27646. _collection$_newLinkedCell$1: function(element) {
  27647. var t1, _this = this,
  27648. cell = new P._LinkedHashSetCell(element);
  27649. if (_this._collection$_first == null)
  27650. _this._collection$_first = _this._collection$_last = cell;
  27651. else {
  27652. t1 = _this._collection$_last;
  27653. t1.toString;
  27654. cell._collection$_previous = t1;
  27655. _this._collection$_last = t1._collection$_next = cell;
  27656. }
  27657. ++_this._collection$_length;
  27658. _this._collection$_modified$0();
  27659. return cell;
  27660. },
  27661. _unlinkCell$1: function(cell) {
  27662. var _this = this,
  27663. previous = cell._collection$_previous,
  27664. next = cell._collection$_next;
  27665. if (previous == null)
  27666. _this._collection$_first = next;
  27667. else
  27668. previous._collection$_next = next;
  27669. if (next == null)
  27670. _this._collection$_last = previous;
  27671. else
  27672. next._collection$_previous = previous;
  27673. --_this._collection$_length;
  27674. _this._collection$_modified$0();
  27675. },
  27676. _computeHashCode$1: function(element) {
  27677. return J.get$hashCode$(element) & 1073741823;
  27678. },
  27679. _findBucketIndex$2: function(bucket, element) {
  27680. var $length, i;
  27681. if (bucket == null)
  27682. return -1;
  27683. $length = bucket.length;
  27684. for (i = 0; i < $length; ++i)
  27685. if (J.$eq$(bucket[i]._element, element))
  27686. return i;
  27687. return -1;
  27688. }
  27689. };
  27690. P._LinkedIdentityHashSet.prototype = {
  27691. _newSet$0: function() {
  27692. return new P._LinkedIdentityHashSet(this.$ti);
  27693. },
  27694. _newSimilarSet$1$0: function($R) {
  27695. return new P._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
  27696. },
  27697. _newSimilarSet$0: function() {
  27698. return this._newSimilarSet$1$0(type$.dynamic);
  27699. },
  27700. _computeHashCode$1: function(key) {
  27701. return H.objectHashCode(key) & 1073741823;
  27702. },
  27703. _findBucketIndex$2: function(bucket, element) {
  27704. var $length, i, t1;
  27705. if (bucket == null)
  27706. return -1;
  27707. $length = bucket.length;
  27708. for (i = 0; i < $length; ++i) {
  27709. t1 = bucket[i]._element;
  27710. if (t1 == null ? element == null : t1 === element)
  27711. return i;
  27712. }
  27713. return -1;
  27714. }
  27715. };
  27716. P._LinkedHashSetCell.prototype = {};
  27717. P._LinkedHashSetIterator.prototype = {
  27718. get$current: function(_) {
  27719. return this._collection$_current;
  27720. },
  27721. moveNext$0: function() {
  27722. var _this = this,
  27723. cell = _this._collection$_cell,
  27724. t1 = _this._set;
  27725. if (_this._collection$_modifications !== t1._collection$_modifications)
  27726. throw H.wrapException(P.ConcurrentModificationError$(t1));
  27727. else if (cell == null) {
  27728. _this._collection$_current = null;
  27729. return false;
  27730. } else {
  27731. _this._collection$_current = cell._element;
  27732. _this._collection$_cell = cell._collection$_next;
  27733. return true;
  27734. }
  27735. }
  27736. };
  27737. P.UnmodifiableListView.prototype = {
  27738. cast$1$0: function(_, $R) {
  27739. return new P.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
  27740. },
  27741. get$length: function(_) {
  27742. return J.get$length$asx(this._collection$_source);
  27743. },
  27744. $index: function(_, index) {
  27745. return J.elementAt$1$ax(this._collection$_source, index);
  27746. }
  27747. };
  27748. P.HashMap_HashMap$from_closure.prototype = {
  27749. call$2: function(k, v) {
  27750. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  27751. },
  27752. $signature: 103
  27753. };
  27754. P.IterableBase.prototype = {};
  27755. P.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
  27756. call$2: function(k, v) {
  27757. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  27758. },
  27759. $signature: 103
  27760. };
  27761. P.ListBase.prototype = {$isEfficientLengthIterable: 1, $isIterable: 1, $isList: 1};
  27762. P.ListMixin.prototype = {
  27763. get$iterator: function(receiver) {
  27764. return new H.ListIterator(receiver, this.get$length(receiver));
  27765. },
  27766. elementAt$1: function(receiver, index) {
  27767. return this.$index(receiver, index);
  27768. },
  27769. get$isEmpty: function(receiver) {
  27770. return this.get$length(receiver) === 0;
  27771. },
  27772. get$isNotEmpty: function(receiver) {
  27773. return !this.get$isEmpty(receiver);
  27774. },
  27775. get$first: function(receiver) {
  27776. if (this.get$length(receiver) === 0)
  27777. throw H.wrapException(H.IterableElementError_noElement());
  27778. return this.$index(receiver, 0);
  27779. },
  27780. get$last: function(receiver) {
  27781. if (this.get$length(receiver) === 0)
  27782. throw H.wrapException(H.IterableElementError_noElement());
  27783. return this.$index(receiver, this.get$length(receiver) - 1);
  27784. },
  27785. get$single: function(receiver) {
  27786. if (this.get$length(receiver) === 0)
  27787. throw H.wrapException(H.IterableElementError_noElement());
  27788. if (this.get$length(receiver) > 1)
  27789. throw H.wrapException(H.IterableElementError_tooMany());
  27790. return this.$index(receiver, 0);
  27791. },
  27792. contains$1: function(receiver, element) {
  27793. var i,
  27794. $length = this.get$length(receiver);
  27795. for (i = 0; i < $length; ++i) {
  27796. if (J.$eq$(this.$index(receiver, i), element))
  27797. return true;
  27798. if ($length !== this.get$length(receiver))
  27799. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27800. }
  27801. return false;
  27802. },
  27803. every$1: function(receiver, test) {
  27804. var i,
  27805. $length = this.get$length(receiver);
  27806. for (i = 0; i < $length; ++i) {
  27807. if (!test.call$1(this.$index(receiver, i)))
  27808. return false;
  27809. if ($length !== this.get$length(receiver))
  27810. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27811. }
  27812. return true;
  27813. },
  27814. any$1: function(receiver, test) {
  27815. var i,
  27816. $length = this.get$length(receiver);
  27817. for (i = 0; i < $length; ++i) {
  27818. if (test.call$1(this.$index(receiver, i)))
  27819. return true;
  27820. if ($length !== this.get$length(receiver))
  27821. throw H.wrapException(P.ConcurrentModificationError$(receiver));
  27822. }
  27823. return false;
  27824. },
  27825. join$1: function(receiver, separator) {
  27826. var t1;
  27827. if (this.get$length(receiver) === 0)
  27828. return "";
  27829. t1 = P.StringBuffer__writeAll("", receiver, separator);
  27830. return t1.charCodeAt(0) == 0 ? t1 : t1;
  27831. },
  27832. join$0: function($receiver) {
  27833. return this.join$1($receiver, "");
  27834. },
  27835. where$1: function(receiver, test) {
  27836. return new H.WhereIterable(receiver, test, H.instanceType(receiver)._eval$1("WhereIterable<ListMixin.E>"));
  27837. },
  27838. map$1$1: function(receiver, f, $T) {
  27839. return new H.MappedListIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  27840. },
  27841. expand$1$1: function(receiver, f, $T) {
  27842. return new H.ExpandIterable(receiver, f, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  27843. },
  27844. skip$1: function(receiver, count) {
  27845. return H.SubListIterable$(receiver, count, null, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27846. },
  27847. take$1: function(receiver, count) {
  27848. return H.SubListIterable$(receiver, 0, count, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27849. },
  27850. toList$1$growable: function(receiver, growable) {
  27851. var t1, first, result, i, _this = this;
  27852. if (_this.get$isEmpty(receiver)) {
  27853. t1 = H.instanceType(receiver)._eval$1("ListMixin.E");
  27854. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  27855. }
  27856. first = _this.$index(receiver, 0);
  27857. result = P.List_List$filled(_this.get$length(receiver), first, growable, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27858. for (i = 1; i < _this.get$length(receiver); ++i)
  27859. result[i] = _this.$index(receiver, i);
  27860. return result;
  27861. },
  27862. toList$0: function($receiver) {
  27863. return this.toList$1$growable($receiver, true);
  27864. },
  27865. toSet$0: function(receiver) {
  27866. var i,
  27867. result = P.LinkedHashSet_LinkedHashSet(H.instanceType(receiver)._eval$1("ListMixin.E"));
  27868. for (i = 0; i < this.get$length(receiver); ++i)
  27869. result.add$1(0, this.$index(receiver, i));
  27870. return result;
  27871. },
  27872. add$1: function(receiver, element) {
  27873. var t1 = this.get$length(receiver);
  27874. this.set$length(receiver, t1 + 1);
  27875. this.$indexSet(receiver, t1, element);
  27876. },
  27877. addAll$1: function(receiver, iterable) {
  27878. var t1,
  27879. i = this.get$length(receiver);
  27880. for (t1 = iterable.get$iterator(iterable); t1.moveNext$0();) {
  27881. this.add$1(receiver, t1.get$current(t1));
  27882. ++i;
  27883. }
  27884. },
  27885. cast$1$0: function(receiver, $R) {
  27886. return new H.CastList(receiver, H.instanceType(receiver)._eval$1("@<ListMixin.E>")._bind$1($R)._eval$1("CastList<1,2>"));
  27887. },
  27888. sort$1: function(receiver, compare) {
  27889. H.Sort_sort(receiver, compare == null ? P.collection_ListMixin__compareAny$closure() : compare);
  27890. },
  27891. sublist$2: function(receiver, start, end) {
  27892. var listLength = this.get$length(receiver);
  27893. P.RangeError_checkValidRange(start, end, listLength);
  27894. return P.List_List$from(this.getRange$2(receiver, start, end), true, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27895. },
  27896. getRange$2: function(receiver, start, end) {
  27897. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27898. return H.SubListIterable$(receiver, start, end, H.instanceType(receiver)._eval$1("ListMixin.E"));
  27899. },
  27900. fillRange$3: function(receiver, start, end, fill) {
  27901. var i;
  27902. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27903. for (i = start; i < end; ++i)
  27904. this.$indexSet(receiver, i, fill);
  27905. },
  27906. setRange$4: function(receiver, start, end, iterable, skipCount) {
  27907. var $length, otherStart, otherList, t1, i;
  27908. P.RangeError_checkValidRange(start, end, this.get$length(receiver));
  27909. $length = end - start;
  27910. if ($length === 0)
  27911. return;
  27912. P.RangeError_checkNotNegative(skipCount, "skipCount");
  27913. if (H.instanceType(receiver)._eval$1("List<ListMixin.E>")._is(iterable)) {
  27914. otherStart = skipCount;
  27915. otherList = iterable;
  27916. } else {
  27917. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  27918. otherStart = 0;
  27919. }
  27920. t1 = J.getInterceptor$asx(otherList);
  27921. if (otherStart + $length > t1.get$length(otherList))
  27922. throw H.wrapException(H.IterableElementError_tooFew());
  27923. if (otherStart < start)
  27924. for (i = $length - 1; i >= 0; --i)
  27925. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27926. else
  27927. for (i = 0; i < $length; ++i)
  27928. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  27929. },
  27930. get$reversed: function(receiver) {
  27931. return new H.ReversedListIterable(receiver, H.instanceType(receiver)._eval$1("ReversedListIterable<ListMixin.E>"));
  27932. },
  27933. toString$0: function(receiver) {
  27934. return P.IterableBase_iterableToFullString(receiver, "[", "]");
  27935. }
  27936. };
  27937. P.MapBase.prototype = {};
  27938. P.MapBase_mapToString_closure.prototype = {
  27939. call$2: function(k, v) {
  27940. var t2,
  27941. t1 = this._box_0;
  27942. if (!t1.first)
  27943. this.result._contents += ", ";
  27944. t1.first = false;
  27945. t1 = this.result;
  27946. t2 = t1._contents += H.S(k);
  27947. t1._contents = t2 + ": ";
  27948. t1._contents += H.S(v);
  27949. },
  27950. $signature: 178
  27951. };
  27952. P.MapMixin.prototype = {
  27953. forEach$1: function(_, action) {
  27954. var t1, key;
  27955. for (t1 = J.get$iterator$ax(this.get$keys(this)); t1.moveNext$0();) {
  27956. key = t1.get$current(t1);
  27957. action.call$2(key, this.$index(0, key));
  27958. }
  27959. },
  27960. addAll$1: function(_, other) {
  27961. var t1, key;
  27962. for (t1 = J.get$iterator$ax(other.get$keys(other)); t1.moveNext$0();) {
  27963. key = t1.get$current(t1);
  27964. this.$indexSet(0, key, other.$index(0, key));
  27965. }
  27966. },
  27967. putIfAbsent$2: function(key, ifAbsent) {
  27968. var t1;
  27969. if (this.containsKey$1(key))
  27970. return this.$index(0, key);
  27971. t1 = ifAbsent.call$0();
  27972. this.$indexSet(0, key, t1);
  27973. return t1;
  27974. },
  27975. get$entries: function(_) {
  27976. var _this = this;
  27977. return J.map$1$1$ax(_this.get$keys(_this), new P.MapMixin_entries_closure(_this), H._instanceType(_this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>"));
  27978. },
  27979. containsKey$1: function(key) {
  27980. return J.contains$1$asx(this.get$keys(this), key);
  27981. },
  27982. get$length: function(_) {
  27983. return J.get$length$asx(this.get$keys(this));
  27984. },
  27985. get$isEmpty: function(_) {
  27986. return J.get$isEmpty$asx(this.get$keys(this));
  27987. },
  27988. get$isNotEmpty: function(_) {
  27989. return J.get$isNotEmpty$asx(this.get$keys(this));
  27990. },
  27991. get$values: function(_) {
  27992. var t1 = H._instanceType(this);
  27993. return new P._MapBaseValueIterable(this, t1._eval$1("@<MapMixin.K>")._bind$1(t1._eval$1("MapMixin.V"))._eval$1("_MapBaseValueIterable<1,2>"));
  27994. },
  27995. toString$0: function(_) {
  27996. return P.MapBase_mapToString(this);
  27997. },
  27998. $isMap: 1
  27999. };
  28000. P.MapMixin_entries_closure.prototype = {
  28001. call$1: function(key) {
  28002. var t1 = this.$this,
  28003. t2 = H._instanceType(t1);
  28004. return new P.MapEntry(key, t1.$index(0, key), t2._eval$1("@<MapMixin.K>")._bind$1(t2._eval$1("MapMixin.V"))._eval$1("MapEntry<1,2>"));
  28005. },
  28006. $signature: function() {
  28007. return H._instanceType(this.$this)._eval$1("MapEntry<MapMixin.K,MapMixin.V>(MapMixin.K)");
  28008. }
  28009. };
  28010. P.UnmodifiableMapBase.prototype = {};
  28011. P._MapBaseValueIterable.prototype = {
  28012. get$length: function(_) {
  28013. var t1 = this._collection$_map;
  28014. return t1.get$length(t1);
  28015. },
  28016. get$isEmpty: function(_) {
  28017. var t1 = this._collection$_map;
  28018. return t1.get$isEmpty(t1);
  28019. },
  28020. get$isNotEmpty: function(_) {
  28021. var t1 = this._collection$_map;
  28022. return t1.get$isNotEmpty(t1);
  28023. },
  28024. get$first: function(_) {
  28025. var t1 = this._collection$_map;
  28026. return t1.$index(0, J.get$first$ax(t1.get$keys(t1)));
  28027. },
  28028. get$single: function(_) {
  28029. var t1 = this._collection$_map;
  28030. return t1.$index(0, J.get$single$ax(t1.get$keys(t1)));
  28031. },
  28032. get$last: function(_) {
  28033. var t1 = this._collection$_map;
  28034. return t1.$index(0, J.get$last$ax(t1.get$keys(t1)));
  28035. },
  28036. get$iterator: function(_) {
  28037. var t1 = this._collection$_map;
  28038. return new P._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys(t1)), t1);
  28039. }
  28040. };
  28041. P._MapBaseValueIterator.prototype = {
  28042. moveNext$0: function() {
  28043. var _this = this,
  28044. t1 = _this._keys;
  28045. if (t1.moveNext$0()) {
  28046. _this._collection$_current = _this._collection$_map.$index(0, t1.get$current(t1));
  28047. return true;
  28048. }
  28049. _this._collection$_current = null;
  28050. return false;
  28051. },
  28052. get$current: function(_) {
  28053. var cur = this._collection$_current;
  28054. return cur;
  28055. }
  28056. };
  28057. P._UnmodifiableMapMixin.prototype = {
  28058. $indexSet: function(_, key, value) {
  28059. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  28060. },
  28061. addAll$1: function(_, other) {
  28062. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  28063. },
  28064. remove$1: function(_, key) {
  28065. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  28066. },
  28067. putIfAbsent$2: function(key, ifAbsent) {
  28068. throw H.wrapException(P.UnsupportedError$("Cannot modify unmodifiable map"));
  28069. }
  28070. };
  28071. P.MapView.prototype = {
  28072. $index: function(_, key) {
  28073. return this._collection$_map.$index(0, key);
  28074. },
  28075. $indexSet: function(_, key, value) {
  28076. this._collection$_map.$indexSet(0, key, value);
  28077. },
  28078. addAll$1: function(_, other) {
  28079. this._collection$_map.addAll$1(0, other);
  28080. },
  28081. putIfAbsent$2: function(key, ifAbsent) {
  28082. return this._collection$_map.putIfAbsent$2(key, ifAbsent);
  28083. },
  28084. containsKey$1: function(key) {
  28085. return this._collection$_map.containsKey$1(key);
  28086. },
  28087. forEach$1: function(_, action) {
  28088. this._collection$_map.forEach$1(0, action);
  28089. },
  28090. get$isEmpty: function(_) {
  28091. var t1 = this._collection$_map;
  28092. return t1.get$isEmpty(t1);
  28093. },
  28094. get$isNotEmpty: function(_) {
  28095. var t1 = this._collection$_map;
  28096. return t1.get$isNotEmpty(t1);
  28097. },
  28098. get$length: function(_) {
  28099. var t1 = this._collection$_map;
  28100. return t1.get$length(t1);
  28101. },
  28102. get$keys: function(_) {
  28103. var t1 = this._collection$_map;
  28104. return t1.get$keys(t1);
  28105. },
  28106. remove$1: function(_, key) {
  28107. return this._collection$_map.remove$1(0, key);
  28108. },
  28109. toString$0: function(_) {
  28110. return J.toString$0$(this._collection$_map);
  28111. },
  28112. get$values: function(_) {
  28113. var t1 = this._collection$_map;
  28114. return t1.get$values(t1);
  28115. },
  28116. get$entries: function(_) {
  28117. var t1 = this._collection$_map;
  28118. return t1.get$entries(t1);
  28119. },
  28120. $isMap: 1
  28121. };
  28122. P.UnmodifiableMapView.prototype = {};
  28123. P.ListQueue.prototype = {
  28124. cast$1$0: function(_, $R) {
  28125. return new H.CastQueue(this, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastQueue<1,2>"));
  28126. },
  28127. get$iterator: function(_) {
  28128. var _this = this;
  28129. return new P._ListQueueIterator(_this, _this._collection$_tail, _this._modificationCount, _this._collection$_head);
  28130. },
  28131. get$isEmpty: function(_) {
  28132. return this._collection$_head === this._collection$_tail;
  28133. },
  28134. get$length: function(_) {
  28135. return (this._collection$_tail - this._collection$_head & this._collection$_table.length - 1) >>> 0;
  28136. },
  28137. get$first: function(_) {
  28138. var t1 = this._collection$_head;
  28139. if (t1 === this._collection$_tail)
  28140. throw H.wrapException(H.IterableElementError_noElement());
  28141. return this._collection$_table[t1];
  28142. },
  28143. get$last: function(_) {
  28144. var t1 = this._collection$_head,
  28145. t2 = this._collection$_tail;
  28146. if (t1 === t2)
  28147. throw H.wrapException(H.IterableElementError_noElement());
  28148. t1 = this._collection$_table;
  28149. return t1[(t2 - 1 & t1.length - 1) >>> 0];
  28150. },
  28151. get$single: function(_) {
  28152. var _this = this;
  28153. if (_this._collection$_head === _this._collection$_tail)
  28154. throw H.wrapException(H.IterableElementError_noElement());
  28155. if (_this.get$length(_this) > 1)
  28156. throw H.wrapException(H.IterableElementError_tooMany());
  28157. return _this._collection$_table[_this._collection$_head];
  28158. },
  28159. elementAt$1: function(_, index) {
  28160. var t1;
  28161. P.RangeError_checkValidIndex(index, this, null);
  28162. t1 = this._collection$_table;
  28163. return t1[(this._collection$_head + index & t1.length - 1) >>> 0];
  28164. },
  28165. toList$1$growable: function(_, growable) {
  28166. var t1, list, t2, i, _this = this,
  28167. mask = _this._collection$_table.length - 1,
  28168. $length = (_this._collection$_tail - _this._collection$_head & mask) >>> 0;
  28169. if ($length === 0) {
  28170. t1 = _this.$ti._precomputed1;
  28171. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  28172. }
  28173. list = P.List_List$filled($length, _this.get$first(_this), growable, _this.$ti._precomputed1);
  28174. for (t1 = _this._collection$_table, t2 = _this._collection$_head, i = 0; i < $length; ++i)
  28175. list[i] = t1[(t2 + i & mask) >>> 0];
  28176. return list;
  28177. },
  28178. toList$0: function($receiver) {
  28179. return this.toList$1$growable($receiver, true);
  28180. },
  28181. add$1: function(_, value) {
  28182. this._add$1(value);
  28183. },
  28184. addAll$1: function(_, elements) {
  28185. var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _this = this,
  28186. t1 = _this.$ti;
  28187. if (t1._eval$1("List<1>")._is(elements)) {
  28188. addCount = J.get$length$asx(elements);
  28189. $length = _this.get$length(_this);
  28190. t2 = $length + addCount;
  28191. t3 = _this._collection$_table;
  28192. t4 = t3.length;
  28193. if (t2 >= t4) {
  28194. newTable = P.List_List$filled(P.ListQueue__nextPowerOf2(t2 + C.JSInt_methods._shrOtherPositive$1(t2, 1)), null, false, t1._eval$1("1?"));
  28195. _this._collection$_tail = _this._collection$_writeToList$1(newTable);
  28196. _this._collection$_table = newTable;
  28197. _this._collection$_head = 0;
  28198. C.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
  28199. _this._collection$_tail += addCount;
  28200. } else {
  28201. t1 = _this._collection$_tail;
  28202. endSpace = t4 - t1;
  28203. if (addCount < endSpace) {
  28204. C.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
  28205. _this._collection$_tail += addCount;
  28206. } else {
  28207. preSpace = addCount - endSpace;
  28208. C.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
  28209. C.JSArray_methods.setRange$4(_this._collection$_table, 0, preSpace, elements, endSpace);
  28210. _this._collection$_tail = preSpace;
  28211. }
  28212. }
  28213. ++_this._modificationCount;
  28214. } else
  28215. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  28216. _this._add$1(t1.get$current(t1));
  28217. },
  28218. clear$0: function(_) {
  28219. var t2, t3, _this = this,
  28220. i = _this._collection$_head,
  28221. t1 = _this._collection$_tail;
  28222. if (i !== t1) {
  28223. for (t2 = _this._collection$_table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
  28224. t2[i] = null;
  28225. _this._collection$_head = _this._collection$_tail = 0;
  28226. ++_this._modificationCount;
  28227. }
  28228. },
  28229. toString$0: function(_) {
  28230. return P.IterableBase_iterableToFullString(this, "{", "}");
  28231. },
  28232. addFirst$1: function(value) {
  28233. var _this = this,
  28234. t1 = _this._collection$_head,
  28235. t2 = _this._collection$_table;
  28236. t1 = _this._collection$_head = (t1 - 1 & t2.length - 1) >>> 0;
  28237. t2[t1] = value;
  28238. if (t1 === _this._collection$_tail)
  28239. _this._collection$_grow$0();
  28240. ++_this._modificationCount;
  28241. },
  28242. removeFirst$0: function() {
  28243. var t2, result, _this = this,
  28244. t1 = _this._collection$_head;
  28245. if (t1 === _this._collection$_tail)
  28246. throw H.wrapException(H.IterableElementError_noElement());
  28247. ++_this._modificationCount;
  28248. t2 = _this._collection$_table;
  28249. result = t2[t1];
  28250. t2[t1] = null;
  28251. _this._collection$_head = (t1 + 1 & t2.length - 1) >>> 0;
  28252. return result;
  28253. },
  28254. removeLast$0: function(_) {
  28255. var result, _this = this,
  28256. t1 = _this._collection$_head,
  28257. t2 = _this._collection$_tail;
  28258. if (t1 === t2)
  28259. throw H.wrapException(H.IterableElementError_noElement());
  28260. ++_this._modificationCount;
  28261. t1 = _this._collection$_table;
  28262. t2 = _this._collection$_tail = (t2 - 1 & t1.length - 1) >>> 0;
  28263. result = t1[t2];
  28264. t1[t2] = null;
  28265. return result;
  28266. },
  28267. _add$1: function(element) {
  28268. var _this = this,
  28269. t1 = _this._collection$_table,
  28270. t2 = _this._collection$_tail;
  28271. t1[t2] = element;
  28272. t1 = (t2 + 1 & t1.length - 1) >>> 0;
  28273. _this._collection$_tail = t1;
  28274. if (_this._collection$_head === t1)
  28275. _this._collection$_grow$0();
  28276. ++_this._modificationCount;
  28277. },
  28278. _collection$_grow$0: function() {
  28279. var _this = this,
  28280. newTable = P.List_List$filled(_this._collection$_table.length * 2, null, false, _this.$ti._eval$1("1?")),
  28281. t1 = _this._collection$_table,
  28282. t2 = _this._collection$_head,
  28283. split = t1.length - t2;
  28284. C.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
  28285. C.JSArray_methods.setRange$4(newTable, split, split + _this._collection$_head, _this._collection$_table, 0);
  28286. _this._collection$_head = 0;
  28287. _this._collection$_tail = _this._collection$_table.length;
  28288. _this._collection$_table = newTable;
  28289. },
  28290. _collection$_writeToList$1: function(target) {
  28291. var $length, firstPartSize, _this = this,
  28292. t1 = _this._collection$_head,
  28293. t2 = _this._collection$_tail,
  28294. t3 = _this._collection$_table;
  28295. if (t1 <= t2) {
  28296. $length = t2 - t1;
  28297. C.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
  28298. return $length;
  28299. } else {
  28300. firstPartSize = t3.length - t1;
  28301. C.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
  28302. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._collection$_tail, _this._collection$_table, 0);
  28303. return _this._collection$_tail + firstPartSize;
  28304. }
  28305. },
  28306. $isQueue: 1
  28307. };
  28308. P._ListQueueIterator.prototype = {
  28309. get$current: function(_) {
  28310. var cur = this._collection$_current;
  28311. return cur;
  28312. },
  28313. moveNext$0: function() {
  28314. var t2, _this = this,
  28315. t1 = _this._queue;
  28316. if (_this._modificationCount !== t1._modificationCount)
  28317. H.throwExpression(P.ConcurrentModificationError$(t1));
  28318. t2 = _this._collection$_position;
  28319. if (t2 === _this._collection$_end) {
  28320. _this._collection$_current = null;
  28321. return false;
  28322. }
  28323. t1 = t1._collection$_table;
  28324. _this._collection$_current = t1[t2];
  28325. _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
  28326. return true;
  28327. }
  28328. };
  28329. P._SetBase.prototype = {
  28330. cast$1$0: function(_, $R) {
  28331. return P.Set_castFrom(this, this.get$_newSimilarSet(), H._instanceType(this)._precomputed1, $R);
  28332. },
  28333. difference$1: function(other) {
  28334. var t1, element,
  28335. result = this._newSet$0();
  28336. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  28337. element = t1.get$current(t1);
  28338. if (!other.contains$1(0, element))
  28339. result.add$1(0, element);
  28340. }
  28341. return result;
  28342. },
  28343. intersection$1: function(other) {
  28344. var t1, t2, element,
  28345. result = this._newSet$0();
  28346. for (t1 = this.get$iterator(this), t2 = other._baseMap; t1.moveNext$0();) {
  28347. element = t1.get$current(t1);
  28348. if (t2.containsKey$1(element))
  28349. result.add$1(0, element);
  28350. }
  28351. return result;
  28352. },
  28353. toSet$0: function(_) {
  28354. var t1 = this._newSet$0();
  28355. t1.addAll$1(0, this);
  28356. return t1;
  28357. },
  28358. get$isEmpty: function(_) {
  28359. return this.get$length(this) === 0;
  28360. },
  28361. get$isNotEmpty: function(_) {
  28362. return this.get$length(this) !== 0;
  28363. },
  28364. addAll$1: function(_, elements) {
  28365. var t1;
  28366. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  28367. this.add$1(0, t1.get$current(t1));
  28368. },
  28369. removeAll$1: function(elements) {
  28370. var t1;
  28371. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  28372. this.remove$1(0, t1.get$current(t1));
  28373. },
  28374. toList$1$growable: function(_, growable) {
  28375. return P.List_List$from(this, growable, H._instanceType(this)._precomputed1);
  28376. },
  28377. toList$0: function($receiver) {
  28378. return this.toList$1$growable($receiver, true);
  28379. },
  28380. map$1$1: function(_, f, $T) {
  28381. return new H.EfficientLengthMappedIterable(this, f, H._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  28382. },
  28383. get$single: function(_) {
  28384. var it, _this = this;
  28385. if (_this.get$length(_this) > 1)
  28386. throw H.wrapException(H.IterableElementError_tooMany());
  28387. it = _this.get$iterator(_this);
  28388. if (!it.moveNext$0())
  28389. throw H.wrapException(H.IterableElementError_noElement());
  28390. return it.get$current(it);
  28391. },
  28392. toString$0: function(_) {
  28393. return P.IterableBase_iterableToFullString(this, "{", "}");
  28394. },
  28395. where$1: function(_, f) {
  28396. return new H.WhereIterable(this, f, H._instanceType(this)._eval$1("WhereIterable<1>"));
  28397. },
  28398. join$1: function(_, separator) {
  28399. var t1,
  28400. iterator = this.get$iterator(this);
  28401. if (!iterator.moveNext$0())
  28402. return "";
  28403. if (separator === "") {
  28404. t1 = "";
  28405. do
  28406. t1 += H.S(iterator.get$current(iterator));
  28407. while (iterator.moveNext$0());
  28408. } else {
  28409. t1 = H.S(iterator.get$current(iterator));
  28410. for (; iterator.moveNext$0();)
  28411. t1 = t1 + separator + H.S(iterator.get$current(iterator));
  28412. }
  28413. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28414. },
  28415. join$0: function($receiver) {
  28416. return this.join$1($receiver, "");
  28417. },
  28418. any$1: function(_, test) {
  28419. var t1;
  28420. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  28421. if (test.call$1(t1.get$current(t1)))
  28422. return true;
  28423. return false;
  28424. },
  28425. take$1: function(_, n) {
  28426. return H.TakeIterable_TakeIterable(this, n, H._instanceType(this)._precomputed1);
  28427. },
  28428. skip$1: function(_, n) {
  28429. return H.SkipIterable_SkipIterable(this, n, H._instanceType(this)._precomputed1);
  28430. },
  28431. get$first: function(_) {
  28432. var it = this.get$iterator(this);
  28433. if (!it.moveNext$0())
  28434. throw H.wrapException(H.IterableElementError_noElement());
  28435. return it.get$current(it);
  28436. },
  28437. get$last: function(_) {
  28438. var result,
  28439. it = this.get$iterator(this);
  28440. if (!it.moveNext$0())
  28441. throw H.wrapException(H.IterableElementError_noElement());
  28442. do
  28443. result = it.get$current(it);
  28444. while (it.moveNext$0());
  28445. return result;
  28446. },
  28447. elementAt$1: function(_, index) {
  28448. var t1, elementIndex, element, _s5_ = "index";
  28449. P.ArgumentError_checkNotNull(index, _s5_);
  28450. P.RangeError_checkNotNegative(index, _s5_);
  28451. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  28452. element = t1.get$current(t1);
  28453. if (index === elementIndex)
  28454. return element;
  28455. ++elementIndex;
  28456. }
  28457. throw H.wrapException(P.IndexError$(index, this, _s5_, null, elementIndex));
  28458. },
  28459. $isEfficientLengthIterable: 1,
  28460. $isIterable: 1,
  28461. $isSet: 1
  28462. };
  28463. P._UnmodifiableSet.prototype = {
  28464. _newSet$0: function() {
  28465. return P.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  28466. },
  28467. _newSimilarSet$1$0: function($R) {
  28468. return P.LinkedHashSet_LinkedHashSet($R);
  28469. },
  28470. _newSimilarSet$0: function() {
  28471. return this._newSimilarSet$1$0(type$.dynamic);
  28472. },
  28473. contains$1: function(_, element) {
  28474. return this._collection$_map.containsKey$1(element);
  28475. },
  28476. get$iterator: function(_) {
  28477. var t1 = this._collection$_map;
  28478. return J.get$iterator$ax(t1.get$keys(t1));
  28479. },
  28480. get$length: function(_) {
  28481. var t1 = this._collection$_map;
  28482. return t1.get$length(t1);
  28483. },
  28484. add$1: function(_, value) {
  28485. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  28486. },
  28487. addAll$1: function(_, elements) {
  28488. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  28489. },
  28490. remove$1: function(_, value) {
  28491. throw H.wrapException(P.UnsupportedError$("Cannot change unmodifiable set"));
  28492. }
  28493. };
  28494. P._ListBase_Object_ListMixin.prototype = {};
  28495. P._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
  28496. P.Utf8Decoder_closure.prototype = {
  28497. call$0: function() {
  28498. var t1, exception;
  28499. try {
  28500. t1 = new TextDecoder("utf-8", {fatal: true});
  28501. return t1;
  28502. } catch (exception) {
  28503. H.unwrapException(exception);
  28504. }
  28505. return null;
  28506. },
  28507. $signature: 66
  28508. };
  28509. P.Utf8Decoder_closure0.prototype = {
  28510. call$0: function() {
  28511. var t1, exception;
  28512. try {
  28513. t1 = new TextDecoder("utf-8", {fatal: false});
  28514. return t1;
  28515. } catch (exception) {
  28516. H.unwrapException(exception);
  28517. }
  28518. return null;
  28519. },
  28520. $signature: 66
  28521. };
  28522. P.AsciiCodec.prototype = {
  28523. encode$1: function(source) {
  28524. return C.AsciiEncoder_127.convert$1(source);
  28525. },
  28526. get$encoder: function() {
  28527. return C.AsciiEncoder_127;
  28528. }
  28529. };
  28530. P._UnicodeSubsetEncoder.prototype = {
  28531. convert$1: function(string) {
  28532. var t1, t2, i, codeUnit,
  28533. end = P.RangeError_checkValidRange(0, null, string.length),
  28534. $length = end - 0,
  28535. result = new Uint8Array($length);
  28536. for (t1 = ~this._subsetMask, t2 = J.getInterceptor$s(string), i = 0; i < $length; ++i) {
  28537. codeUnit = t2._codeUnitAt$1(string, i);
  28538. if ((codeUnit & t1) !== 0)
  28539. throw H.wrapException(P.ArgumentError$value(string, "string", "Contains invalid characters."));
  28540. result[i] = codeUnit;
  28541. }
  28542. return result;
  28543. }
  28544. };
  28545. P.AsciiEncoder.prototype = {};
  28546. P.Base64Codec.prototype = {
  28547. get$encoder: function() {
  28548. return C.C_Base64Encoder;
  28549. },
  28550. normalize$3: function(source, start, end) {
  28551. var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
  28552. _s31_ = "Invalid base64 encoding length ";
  28553. end = P.RangeError_checkValidRange(start, end, source.length);
  28554. inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
  28555. for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
  28556. i0 = i + 1;
  28557. char = C.JSString_methods._codeUnitAt$1(source, i);
  28558. if (char === 37) {
  28559. i1 = i0 + 2;
  28560. if (i1 <= end) {
  28561. digit1 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0));
  28562. digit2 = H.hexDigitValue(C.JSString_methods._codeUnitAt$1(source, i0 + 1));
  28563. char0 = digit1 * 16 + digit2 - (digit2 & 256);
  28564. if (char0 === 37)
  28565. char0 = -1;
  28566. i0 = i1;
  28567. } else
  28568. char0 = -1;
  28569. } else
  28570. char0 = char;
  28571. if (0 <= char0 && char0 <= 127) {
  28572. value = inverseAlphabet[char0];
  28573. if (value >= 0) {
  28574. char0 = C.JSString_methods.codeUnitAt$1(string$.ABCDEF, value);
  28575. if (char0 === char)
  28576. continue;
  28577. char = char0;
  28578. } else {
  28579. if (value === -1) {
  28580. if (firstPadding < 0) {
  28581. t1 = buffer == null ? null : buffer._contents.length;
  28582. if (t1 == null)
  28583. t1 = 0;
  28584. firstPadding = t1 + (i - sliceStart);
  28585. firstPaddingSourceIndex = i;
  28586. }
  28587. ++paddingCount;
  28588. if (char === 61)
  28589. continue;
  28590. }
  28591. char = char0;
  28592. }
  28593. if (value !== -2) {
  28594. if (buffer == null) {
  28595. buffer = new P.StringBuffer("");
  28596. t1 = buffer;
  28597. } else
  28598. t1 = buffer;
  28599. t1._contents += C.JSString_methods.substring$2(source, sliceStart, i);
  28600. t1._contents += H.Primitives_stringFromCharCode(char);
  28601. sliceStart = i0;
  28602. continue;
  28603. }
  28604. }
  28605. throw H.wrapException(P.FormatException$("Invalid base64 data", source, i));
  28606. }
  28607. if (buffer != null) {
  28608. t1 = buffer._contents += C.JSString_methods.substring$2(source, sliceStart, end);
  28609. t2 = t1.length;
  28610. if (firstPadding >= 0)
  28611. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
  28612. else {
  28613. endLength = C.JSInt_methods.$mod(t2 - 1, 4) + 1;
  28614. if (endLength === 1)
  28615. throw H.wrapException(P.FormatException$(_s31_, source, end));
  28616. for (; endLength < 4;) {
  28617. t1 += "=";
  28618. buffer._contents = t1;
  28619. ++endLength;
  28620. }
  28621. }
  28622. t1 = buffer._contents;
  28623. return C.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
  28624. }
  28625. $length = end - start;
  28626. if (firstPadding >= 0)
  28627. P.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
  28628. else {
  28629. endLength = C.JSInt_methods.$mod($length, 4);
  28630. if (endLength === 1)
  28631. throw H.wrapException(P.FormatException$(_s31_, source, end));
  28632. if (endLength > 1)
  28633. source = C.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
  28634. }
  28635. return source;
  28636. }
  28637. };
  28638. P.Base64Encoder.prototype = {
  28639. convert$1: function(input) {
  28640. var t1 = J.getInterceptor$asx(input);
  28641. if (t1.get$isEmpty(input))
  28642. return "";
  28643. t1 = new P._Base64Encoder(string$.ABCDEF).encode$4(input, 0, t1.get$length(input), true);
  28644. t1.toString;
  28645. return P.String_String$fromCharCodes(t1, 0, null);
  28646. },
  28647. startChunkedConversion$1: function(sink) {
  28648. var t1,
  28649. _s64_ = string$.ABCDEF;
  28650. if (type$.StringConversionSink._is(sink)) {
  28651. t1 = sink.asUtf8Sink$1(false);
  28652. return new P._Utf8Base64EncoderSink(t1, new P._Base64Encoder(_s64_));
  28653. }
  28654. return new P._AsciiBase64EncoderSink(sink, new P._BufferCachingBase64Encoder(_s64_));
  28655. }
  28656. };
  28657. P._Base64Encoder.prototype = {
  28658. createBuffer$1: function(bufferLength) {
  28659. return new Uint8Array(bufferLength);
  28660. },
  28661. encode$4: function(bytes, start, end, isLast) {
  28662. var output, _this = this,
  28663. byteCount = (_this._convert$_state & 3) + (end - start),
  28664. fullChunks = C.JSInt_methods._tdivFast$1(byteCount, 3),
  28665. bufferLength = fullChunks * 4;
  28666. if (isLast && byteCount - fullChunks * 3 > 0)
  28667. bufferLength += 4;
  28668. output = _this.createBuffer$1(bufferLength);
  28669. _this._convert$_state = P._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
  28670. if (bufferLength > 0)
  28671. return output;
  28672. return null;
  28673. }
  28674. };
  28675. P._BufferCachingBase64Encoder.prototype = {
  28676. createBuffer$1: function(bufferLength) {
  28677. var buffer = this.bufferCache;
  28678. if (buffer == null || buffer.length < bufferLength)
  28679. buffer = this.bufferCache = new Uint8Array(bufferLength);
  28680. if (buffer == null)
  28681. throw H.wrapException("unreachable");
  28682. return H.NativeUint8List_NativeUint8List$view(buffer.buffer, buffer.byteOffset, bufferLength);
  28683. }
  28684. };
  28685. P._Base64EncoderSink.prototype = {
  28686. add$1: function(_, source) {
  28687. this._convert$_add$4(source, 0, J.get$length$asx(source), false);
  28688. },
  28689. close$0: function(_) {
  28690. this._convert$_add$4(C.List_empty1, 0, 0, true);
  28691. },
  28692. addSlice$4: function(source, start, end, isLast) {
  28693. P.RangeError_checkValidRange(start, end, source.length);
  28694. this._convert$_add$4(source, start, end, isLast);
  28695. }
  28696. };
  28697. P._AsciiBase64EncoderSink.prototype = {
  28698. _convert$_add$4: function(source, start, end, isLast) {
  28699. var buffer = this._encoder.encode$4(source, start, end, isLast);
  28700. if (buffer != null)
  28701. this._sink.add$1(0, P.String_String$fromCharCodes(buffer, 0, null));
  28702. if (isLast)
  28703. this._sink.close$0(0);
  28704. }
  28705. };
  28706. P._Utf8Base64EncoderSink.prototype = {
  28707. _convert$_add$4: function(source, start, end, isLast) {
  28708. var buffer = this._encoder.encode$4(source, start, end, isLast);
  28709. if (buffer != null)
  28710. this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
  28711. }
  28712. };
  28713. P.ByteConversionSink.prototype = {};
  28714. P.ByteConversionSinkBase.prototype = {};
  28715. P.ChunkedConversionSink.prototype = {};
  28716. P.Codec.prototype = {
  28717. encode$1: function(input) {
  28718. return this.get$encoder().convert$1(input);
  28719. }
  28720. };
  28721. P.Converter.prototype = {};
  28722. P.Encoding.prototype = {};
  28723. P.JsonUnsupportedObjectError.prototype = {
  28724. toString$0: function(_) {
  28725. var safeString = P.Error_safeToString(this.unsupportedObject);
  28726. return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
  28727. }
  28728. };
  28729. P.JsonCyclicError.prototype = {
  28730. toString$0: function(_) {
  28731. return "Cyclic error in JSON stringify";
  28732. }
  28733. };
  28734. P.JsonCodec.prototype = {
  28735. encode$2$toEncodable: function(value, toEncodable) {
  28736. var t1 = P._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
  28737. return t1;
  28738. },
  28739. get$encoder: function() {
  28740. return C.JsonEncoder_null;
  28741. }
  28742. };
  28743. P.JsonEncoder.prototype = {
  28744. convert$1: function(object) {
  28745. var t1,
  28746. output = new P.StringBuffer("");
  28747. P._JsonStringStringifier_printOn(object, output, this._toEncodable, null);
  28748. t1 = output._contents;
  28749. return t1.charCodeAt(0) == 0 ? t1 : t1;
  28750. }
  28751. };
  28752. P._JsonStringifier.prototype = {
  28753. writeStringContent$1: function(s) {
  28754. var t1, offset, i, charCode, t2, t3, _this = this,
  28755. $length = s.length;
  28756. for (t1 = J.getInterceptor$s(s), offset = 0, i = 0; i < $length; ++i) {
  28757. charCode = t1._codeUnitAt$1(s, i);
  28758. if (charCode > 92) {
  28759. if (charCode >= 55296) {
  28760. t2 = charCode & 64512;
  28761. if (t2 === 55296) {
  28762. t3 = i + 1;
  28763. t3 = !(t3 < $length && (C.JSString_methods._codeUnitAt$1(s, t3) & 64512) === 56320);
  28764. } else
  28765. t3 = false;
  28766. if (!t3)
  28767. if (t2 === 56320) {
  28768. t2 = i - 1;
  28769. t2 = !(t2 >= 0 && (C.JSString_methods.codeUnitAt$1(s, t2) & 64512) === 55296);
  28770. } else
  28771. t2 = false;
  28772. else
  28773. t2 = true;
  28774. if (t2) {
  28775. if (i > offset)
  28776. _this.writeStringSlice$3(s, offset, i);
  28777. offset = i + 1;
  28778. _this.writeCharCode$1(92);
  28779. _this.writeCharCode$1(117);
  28780. _this.writeCharCode$1(100);
  28781. t2 = charCode >>> 8 & 15;
  28782. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28783. t2 = charCode >>> 4 & 15;
  28784. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28785. t2 = charCode & 15;
  28786. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28787. }
  28788. }
  28789. continue;
  28790. }
  28791. if (charCode < 32) {
  28792. if (i > offset)
  28793. _this.writeStringSlice$3(s, offset, i);
  28794. offset = i + 1;
  28795. _this.writeCharCode$1(92);
  28796. switch (charCode) {
  28797. case 8:
  28798. _this.writeCharCode$1(98);
  28799. break;
  28800. case 9:
  28801. _this.writeCharCode$1(116);
  28802. break;
  28803. case 10:
  28804. _this.writeCharCode$1(110);
  28805. break;
  28806. case 12:
  28807. _this.writeCharCode$1(102);
  28808. break;
  28809. case 13:
  28810. _this.writeCharCode$1(114);
  28811. break;
  28812. default:
  28813. _this.writeCharCode$1(117);
  28814. _this.writeCharCode$1(48);
  28815. _this.writeCharCode$1(48);
  28816. t2 = charCode >>> 4 & 15;
  28817. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28818. t2 = charCode & 15;
  28819. _this.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  28820. break;
  28821. }
  28822. } else if (charCode === 34 || charCode === 92) {
  28823. if (i > offset)
  28824. _this.writeStringSlice$3(s, offset, i);
  28825. offset = i + 1;
  28826. _this.writeCharCode$1(92);
  28827. _this.writeCharCode$1(charCode);
  28828. }
  28829. }
  28830. if (offset === 0)
  28831. _this.writeString$1(s);
  28832. else if (offset < $length)
  28833. _this.writeStringSlice$3(s, offset, $length);
  28834. },
  28835. _checkCycle$1: function(object) {
  28836. var t1, t2, i, t3;
  28837. for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
  28838. t3 = t1[i];
  28839. if (object == null ? t3 == null : object === t3)
  28840. throw H.wrapException(new P.JsonCyclicError(object, null));
  28841. }
  28842. t1.push(object);
  28843. },
  28844. writeObject$1: function(object) {
  28845. var customJson, e, t1, exception, _this = this;
  28846. if (_this.writeJsonValue$1(object))
  28847. return;
  28848. _this._checkCycle$1(object);
  28849. try {
  28850. customJson = _this._toEncodable.call$1(object);
  28851. if (!_this.writeJsonValue$1(customJson)) {
  28852. t1 = P.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
  28853. throw H.wrapException(t1);
  28854. }
  28855. _this._seen.pop();
  28856. } catch (exception) {
  28857. e = H.unwrapException(exception);
  28858. t1 = P.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
  28859. throw H.wrapException(t1);
  28860. }
  28861. },
  28862. writeJsonValue$1: function(object) {
  28863. var success, _this = this;
  28864. if (typeof object == "number") {
  28865. if (!isFinite(object))
  28866. return false;
  28867. _this.writeNumber$1(object);
  28868. return true;
  28869. } else if (object === true) {
  28870. _this.writeString$1("true");
  28871. return true;
  28872. } else if (object === false) {
  28873. _this.writeString$1("false");
  28874. return true;
  28875. } else if (object == null) {
  28876. _this.writeString$1("null");
  28877. return true;
  28878. } else if (typeof object == "string") {
  28879. _this.writeString$1('"');
  28880. _this.writeStringContent$1(object);
  28881. _this.writeString$1('"');
  28882. return true;
  28883. } else if (type$.List_dynamic._is(object)) {
  28884. _this._checkCycle$1(object);
  28885. _this.writeList$1(object);
  28886. _this._seen.pop();
  28887. return true;
  28888. } else if (type$.Map_dynamic_dynamic._is(object)) {
  28889. _this._checkCycle$1(object);
  28890. success = _this.writeMap$1(object);
  28891. _this._seen.pop();
  28892. return success;
  28893. } else
  28894. return false;
  28895. },
  28896. writeList$1: function(list) {
  28897. var t1, i, _this = this;
  28898. _this.writeString$1("[");
  28899. t1 = J.getInterceptor$asx(list);
  28900. if (t1.get$isNotEmpty(list)) {
  28901. _this.writeObject$1(t1.$index(list, 0));
  28902. for (i = 1; i < t1.get$length(list); ++i) {
  28903. _this.writeString$1(",");
  28904. _this.writeObject$1(t1.$index(list, i));
  28905. }
  28906. }
  28907. _this.writeString$1("]");
  28908. },
  28909. writeMap$1: function(map) {
  28910. var keyValueList, i, separator, _this = this, _box_0 = {};
  28911. if (map.get$isEmpty(map)) {
  28912. _this.writeString$1("{}");
  28913. return true;
  28914. }
  28915. keyValueList = P.List_List$filled(map.get$length(map) * 2, null, false, type$.nullable_Object);
  28916. i = _box_0.i = 0;
  28917. _box_0.allStringKeys = true;
  28918. map.forEach$1(0, new P._JsonStringifier_writeMap_closure(_box_0, keyValueList));
  28919. if (!_box_0.allStringKeys)
  28920. return false;
  28921. _this.writeString$1("{");
  28922. for (separator = '"'; i < keyValueList.length; i += 2, separator = ',"') {
  28923. _this.writeString$1(separator);
  28924. _this.writeStringContent$1(H._asStringS(keyValueList[i]));
  28925. _this.writeString$1('":');
  28926. _this.writeObject$1(keyValueList[i + 1]);
  28927. }
  28928. _this.writeString$1("}");
  28929. return true;
  28930. }
  28931. };
  28932. P._JsonStringifier_writeMap_closure.prototype = {
  28933. call$2: function(key, value) {
  28934. var t1, t2, t3, i;
  28935. if (typeof key != "string")
  28936. this._box_0.allStringKeys = false;
  28937. t1 = this.keyValueList;
  28938. t2 = this._box_0;
  28939. t3 = t2.i;
  28940. i = t2.i = t3 + 1;
  28941. t1[t3] = key;
  28942. t2.i = i + 1;
  28943. t1[i] = value;
  28944. },
  28945. $signature: 178
  28946. };
  28947. P._JsonStringStringifier.prototype = {
  28948. get$_partialResult: function() {
  28949. var t1 = this._sink;
  28950. return type$.StringBuffer._is(t1) ? t1.toString$0(0) : null;
  28951. },
  28952. writeNumber$1: function(number) {
  28953. this._sink.write$1(0, C.JSNumber_methods.toString$0(number));
  28954. },
  28955. writeString$1: function(string) {
  28956. this._sink.write$1(0, string);
  28957. },
  28958. writeStringSlice$3: function(string, start, end) {
  28959. this._sink.write$1(0, C.JSString_methods.substring$2(string, start, end));
  28960. },
  28961. writeCharCode$1: function(charCode) {
  28962. this._sink.writeCharCode$1(charCode);
  28963. }
  28964. };
  28965. P.StringConversionSinkBase.prototype = {};
  28966. P.StringConversionSinkMixin.prototype = {
  28967. add$1: function(_, str) {
  28968. this.addSlice$4(str, 0, str.length, false);
  28969. },
  28970. asUtf8Sink$1: function(allowMalformed) {
  28971. return new P._Utf8ConversionSink(new P._Utf8Decoder(allowMalformed), this, new P.StringBuffer(""));
  28972. },
  28973. $isStringConversionSink: 1
  28974. };
  28975. P._StringSinkConversionSink.prototype = {
  28976. close$0: function(_) {
  28977. },
  28978. addSlice$4: function(str, start, end, isLast) {
  28979. var t1, t2, i;
  28980. if (start !== 0 || end !== str.length)
  28981. for (t1 = this._stringSink, t2 = J.getInterceptor$s(str), i = start; i < end; ++i)
  28982. t1._contents += H.Primitives_stringFromCharCode(t2._codeUnitAt$1(str, i));
  28983. else
  28984. this._stringSink._contents += H.S(str);
  28985. if (isLast)
  28986. this.close$0(0);
  28987. },
  28988. add$1: function(_, str) {
  28989. this._stringSink._contents += H.S(str);
  28990. },
  28991. asUtf8Sink$1: function(allowMalformed) {
  28992. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(allowMalformed), this, this._stringSink);
  28993. }
  28994. };
  28995. P._StringCallbackSink.prototype = {
  28996. close$0: function(_) {
  28997. var t1 = this._stringSink,
  28998. t2 = t1._contents;
  28999. t1._contents = "";
  29000. this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
  29001. },
  29002. asUtf8Sink$1: function(allowMalformed) {
  29003. return new P._Utf8StringSinkAdapter(new P._Utf8Decoder(allowMalformed), this, this._stringSink);
  29004. }
  29005. };
  29006. P._StringAdapterSink.prototype = {
  29007. add$1: function(_, str) {
  29008. this._sink.add$1(0, str);
  29009. },
  29010. addSlice$4: function(str, start, end, isLast) {
  29011. var t1 = start === 0 && end === str.length,
  29012. t2 = this._sink;
  29013. if (t1)
  29014. t2.add$1(0, str);
  29015. else
  29016. t2.add$1(0, J.substring$2$s(str, start, end));
  29017. if (isLast)
  29018. t2.close$0(0);
  29019. },
  29020. close$0: function(_) {
  29021. this._sink.close$0(0);
  29022. }
  29023. };
  29024. P._Utf8StringSinkAdapter.prototype = {
  29025. close$0: function(_) {
  29026. this._decoder.flush$1(this._stringSink);
  29027. this._sink.close$0(0);
  29028. },
  29029. add$1: function(_, chunk) {
  29030. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  29031. },
  29032. addSlice$4: function(codeUnits, startIndex, endIndex, isLast) {
  29033. this._stringSink._contents += this._decoder.convertGeneral$4(codeUnits, startIndex, endIndex, false);
  29034. if (isLast)
  29035. this.close$0(0);
  29036. }
  29037. };
  29038. P._Utf8ConversionSink.prototype = {
  29039. close$0: function(_) {
  29040. var t2, t3, accumulated,
  29041. t1 = this._convert$_buffer;
  29042. this._decoder.flush$1(t1);
  29043. t2 = t1._contents;
  29044. t3 = this._chunkedSink;
  29045. if (t2.length !== 0) {
  29046. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  29047. t1._contents = "";
  29048. t3.addSlice$4(accumulated, 0, accumulated.length, true);
  29049. } else
  29050. t3.close$0(0);
  29051. },
  29052. add$1: function(_, chunk) {
  29053. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  29054. },
  29055. addSlice$4: function(chunk, startIndex, endIndex, isLast) {
  29056. var accumulated, _this = this,
  29057. t1 = _this._convert$_buffer,
  29058. t2 = t1._contents += _this._decoder.convertGeneral$4(chunk, startIndex, endIndex, false);
  29059. if (t2.length !== 0) {
  29060. accumulated = t2.charCodeAt(0) == 0 ? t2 : t2;
  29061. _this._chunkedSink.addSlice$4(accumulated, 0, accumulated.length, isLast);
  29062. t1._contents = "";
  29063. return;
  29064. }
  29065. if (isLast)
  29066. _this.close$0(0);
  29067. }
  29068. };
  29069. P.Utf8Codec.prototype = {
  29070. get$encoder: function() {
  29071. return C.C_Utf8Encoder;
  29072. }
  29073. };
  29074. P.Utf8Encoder.prototype = {
  29075. convert$1: function(string) {
  29076. var t1, encoder,
  29077. end = P.RangeError_checkValidRange(0, null, string.length),
  29078. $length = end - 0;
  29079. if ($length === 0)
  29080. return new Uint8Array(0);
  29081. t1 = new Uint8Array($length * 3);
  29082. encoder = new P._Utf8Encoder(t1);
  29083. if (encoder._fillBuffer$3(string, 0, end) !== end) {
  29084. J.codeUnitAt$1$s(string, end - 1);
  29085. encoder._writeReplacementCharacter$0();
  29086. }
  29087. return C.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
  29088. }
  29089. };
  29090. P._Utf8Encoder.prototype = {
  29091. _writeReplacementCharacter$0: function() {
  29092. var _this = this,
  29093. t1 = _this._convert$_buffer,
  29094. t2 = _this._bufferIndex,
  29095. t3 = _this._bufferIndex = t2 + 1;
  29096. t1[t2] = 239;
  29097. t2 = _this._bufferIndex = t3 + 1;
  29098. t1[t3] = 191;
  29099. _this._bufferIndex = t2 + 1;
  29100. t1[t2] = 189;
  29101. },
  29102. _writeSurrogate$2: function(leadingSurrogate, nextCodeUnit) {
  29103. var rune, t1, t2, t3, _this = this;
  29104. if ((nextCodeUnit & 64512) === 56320) {
  29105. rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
  29106. t1 = _this._convert$_buffer;
  29107. t2 = _this._bufferIndex;
  29108. t3 = _this._bufferIndex = t2 + 1;
  29109. t1[t2] = 240 | rune >>> 18;
  29110. t2 = _this._bufferIndex = t3 + 1;
  29111. t1[t3] = 128 | rune >>> 12 & 63;
  29112. t3 = _this._bufferIndex = t2 + 1;
  29113. t1[t2] = 128 | rune >>> 6 & 63;
  29114. _this._bufferIndex = t3 + 1;
  29115. t1[t3] = 128 | rune & 63;
  29116. return true;
  29117. } else {
  29118. _this._writeReplacementCharacter$0();
  29119. return false;
  29120. }
  29121. },
  29122. _fillBuffer$3: function(str, start, end) {
  29123. var t1, t2, t3, stringIndex, codeUnit, t4, stringIndex0, t5, _this = this;
  29124. if (start !== end && (J.codeUnitAt$1$s(str, end - 1) & 64512) === 55296)
  29125. --end;
  29126. for (t1 = _this._convert$_buffer, t2 = t1.length, t3 = J.getInterceptor$s(str), stringIndex = start; stringIndex < end; ++stringIndex) {
  29127. codeUnit = t3._codeUnitAt$1(str, stringIndex);
  29128. if (codeUnit <= 127) {
  29129. t4 = _this._bufferIndex;
  29130. if (t4 >= t2)
  29131. break;
  29132. _this._bufferIndex = t4 + 1;
  29133. t1[t4] = codeUnit;
  29134. } else {
  29135. t4 = codeUnit & 64512;
  29136. if (t4 === 55296) {
  29137. if (_this._bufferIndex + 4 > t2)
  29138. break;
  29139. stringIndex0 = stringIndex + 1;
  29140. if (_this._writeSurrogate$2(codeUnit, C.JSString_methods._codeUnitAt$1(str, stringIndex0)))
  29141. stringIndex = stringIndex0;
  29142. } else if (t4 === 56320) {
  29143. if (_this._bufferIndex + 3 > t2)
  29144. break;
  29145. _this._writeReplacementCharacter$0();
  29146. } else if (codeUnit <= 2047) {
  29147. t4 = _this._bufferIndex;
  29148. t5 = t4 + 1;
  29149. if (t5 >= t2)
  29150. break;
  29151. _this._bufferIndex = t5;
  29152. t1[t4] = 192 | codeUnit >>> 6;
  29153. _this._bufferIndex = t5 + 1;
  29154. t1[t5] = 128 | codeUnit & 63;
  29155. } else {
  29156. t4 = _this._bufferIndex;
  29157. if (t4 + 2 >= t2)
  29158. break;
  29159. t5 = _this._bufferIndex = t4 + 1;
  29160. t1[t4] = 224 | codeUnit >>> 12;
  29161. t4 = _this._bufferIndex = t5 + 1;
  29162. t1[t5] = 128 | codeUnit >>> 6 & 63;
  29163. _this._bufferIndex = t4 + 1;
  29164. t1[t4] = 128 | codeUnit & 63;
  29165. }
  29166. }
  29167. }
  29168. return stringIndex;
  29169. }
  29170. };
  29171. P.Utf8Decoder.prototype = {
  29172. convert$1: function(codeUnits) {
  29173. var t1 = this._allowMalformed,
  29174. result = P.Utf8Decoder__convertIntercepted(t1, codeUnits, 0, null);
  29175. if (result != null)
  29176. return result;
  29177. return new P._Utf8Decoder(t1).convertGeneral$4(codeUnits, 0, null, true);
  29178. },
  29179. startChunkedConversion$1: function(sink) {
  29180. var stringSink = type$.StringConversionSink._is(sink) ? sink : new P._StringAdapterSink(sink);
  29181. return stringSink.asUtf8Sink$1(this._allowMalformed);
  29182. }
  29183. };
  29184. P._Utf8Decoder.prototype = {
  29185. convertGeneral$4: function(codeUnits, start, maybeEnd, single) {
  29186. var bytes, errorOffset, result, t1, message, _this = this,
  29187. end = P.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits));
  29188. if (start === end)
  29189. return "";
  29190. if (type$.Uint8List._is(codeUnits)) {
  29191. bytes = codeUnits;
  29192. errorOffset = 0;
  29193. } else {
  29194. bytes = P._Utf8Decoder__makeUint8List(codeUnits, start, end);
  29195. end -= start;
  29196. errorOffset = start;
  29197. start = 0;
  29198. }
  29199. result = _this._convertRecursive$4(bytes, start, end, single);
  29200. t1 = _this._convert$_state;
  29201. if ((t1 & 1) !== 0) {
  29202. message = P._Utf8Decoder_errorDescription(t1);
  29203. _this._convert$_state = 0;
  29204. throw H.wrapException(P.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex));
  29205. }
  29206. return result;
  29207. },
  29208. _convertRecursive$4: function(bytes, start, end, single) {
  29209. var mid, s1, _this = this;
  29210. if (end - start > 1000) {
  29211. mid = C.JSInt_methods._tdivFast$1(start + end, 2);
  29212. s1 = _this._convertRecursive$4(bytes, start, mid, false);
  29213. if ((_this._convert$_state & 1) !== 0)
  29214. return s1;
  29215. return s1 + _this._convertRecursive$4(bytes, mid, end, single);
  29216. }
  29217. return _this.decodeGeneral$4(bytes, start, end, single);
  29218. },
  29219. flush$1: function(sink) {
  29220. var state = this._convert$_state;
  29221. this._convert$_state = 0;
  29222. if (state <= 32)
  29223. return;
  29224. if (this.allowMalformed)
  29225. sink._contents += H.Primitives_stringFromCharCode(65533);
  29226. else
  29227. throw H.wrapException(P.FormatException$(P._Utf8Decoder_errorDescription(77), null, null));
  29228. },
  29229. decodeGeneral$4: function(bytes, start, end, single) {
  29230. var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533,
  29231. state = _this._convert$_state,
  29232. char = _this._charOrIndex,
  29233. buffer = new P.StringBuffer(""),
  29234. i = start + 1,
  29235. byte = bytes[start];
  29236. $label0$0:
  29237. for (t1 = _this.allowMalformed; true;) {
  29238. for (; true; i = i0) {
  29239. type = C.JSString_methods._codeUnitAt$1("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE", byte) & 31;
  29240. char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0;
  29241. state = C.JSString_methods._codeUnitAt$1(" \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA", state + type);
  29242. if (state === 0) {
  29243. buffer._contents += H.Primitives_stringFromCharCode(char);
  29244. if (i === end)
  29245. break $label0$0;
  29246. break;
  29247. } else if ((state & 1) !== 0) {
  29248. if (t1)
  29249. switch (state) {
  29250. case 69:
  29251. case 67:
  29252. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  29253. break;
  29254. case 65:
  29255. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  29256. --i;
  29257. break;
  29258. default:
  29259. t2 = buffer._contents += H.Primitives_stringFromCharCode(_65533);
  29260. buffer._contents = t2 + H.Primitives_stringFromCharCode(_65533);
  29261. break;
  29262. }
  29263. else {
  29264. _this._convert$_state = state;
  29265. _this._charOrIndex = i - 1;
  29266. return "";
  29267. }
  29268. state = 0;
  29269. }
  29270. if (i === end)
  29271. break $label0$0;
  29272. i0 = i + 1;
  29273. byte = bytes[i];
  29274. }
  29275. i0 = i + 1;
  29276. byte = bytes[i];
  29277. if (byte < 128) {
  29278. while (true) {
  29279. if (!(i0 < end)) {
  29280. markEnd = end;
  29281. break;
  29282. }
  29283. i1 = i0 + 1;
  29284. byte = bytes[i0];
  29285. if (byte >= 128) {
  29286. markEnd = i1 - 1;
  29287. i0 = i1;
  29288. break;
  29289. }
  29290. i0 = i1;
  29291. }
  29292. if (markEnd - i < 20)
  29293. for (m = i; m < markEnd; ++m)
  29294. buffer._contents += H.Primitives_stringFromCharCode(bytes[m]);
  29295. else
  29296. buffer._contents += P.String_String$fromCharCodes(bytes, i, markEnd);
  29297. if (markEnd === end)
  29298. break $label0$0;
  29299. i = i0;
  29300. } else
  29301. i = i0;
  29302. }
  29303. if (single && state > 32)
  29304. if (t1)
  29305. buffer._contents += H.Primitives_stringFromCharCode(_65533);
  29306. else {
  29307. _this._convert$_state = 77;
  29308. _this._charOrIndex = end;
  29309. return "";
  29310. }
  29311. _this._convert$_state = state;
  29312. _this._charOrIndex = char;
  29313. t1 = buffer._contents;
  29314. return t1.charCodeAt(0) == 0 ? t1 : t1;
  29315. }
  29316. };
  29317. P.NoSuchMethodError_toString_closure.prototype = {
  29318. call$2: function(key, value) {
  29319. var t3,
  29320. t1 = this.sb,
  29321. t2 = this._box_0;
  29322. t1._contents += t2.comma;
  29323. t3 = t1._contents += H.S(key.__internal$_name);
  29324. t1._contents = t3 + ": ";
  29325. t1._contents += P.Error_safeToString(value);
  29326. t2.comma = ", ";
  29327. },
  29328. $signature: 241
  29329. };
  29330. P.DateTime.prototype = {
  29331. add$1: function(_, duration) {
  29332. return P.DateTime$_withValue(C.JSInt_methods.$add(this._value, duration.get$inMilliseconds()), false);
  29333. },
  29334. $eq: function(_, other) {
  29335. if (other == null)
  29336. return false;
  29337. return other instanceof P.DateTime && this._value === other._value && true;
  29338. },
  29339. compareTo$1: function(_, other) {
  29340. return C.JSInt_methods.compareTo$1(this._value, other._value);
  29341. },
  29342. get$hashCode: function(_) {
  29343. var t1 = this._value;
  29344. return (t1 ^ C.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
  29345. },
  29346. toString$0: function(_) {
  29347. var _this = this,
  29348. y = P.DateTime__fourDigits(H.Primitives_getYear(_this)),
  29349. m = P.DateTime__twoDigits(H.Primitives_getMonth(_this)),
  29350. d = P.DateTime__twoDigits(H.Primitives_getDay(_this)),
  29351. h = P.DateTime__twoDigits(H.Primitives_getHours(_this)),
  29352. min = P.DateTime__twoDigits(H.Primitives_getMinutes(_this)),
  29353. sec = P.DateTime__twoDigits(H.Primitives_getSeconds(_this)),
  29354. ms = P.DateTime__threeDigits(H.Primitives_getMilliseconds(_this)),
  29355. t1 = y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
  29356. return t1;
  29357. },
  29358. $isComparable: 1
  29359. };
  29360. P.Duration.prototype = {
  29361. $eq: function(_, other) {
  29362. if (other == null)
  29363. return false;
  29364. return other instanceof P.Duration && this._duration === other._duration;
  29365. },
  29366. get$hashCode: function(_) {
  29367. return C.JSInt_methods.get$hashCode(this._duration);
  29368. },
  29369. compareTo$1: function(_, other) {
  29370. return C.JSInt_methods.compareTo$1(this._duration, other._duration);
  29371. },
  29372. toString$0: function(_) {
  29373. var twoDigitMinutes, twoDigitSeconds, sixDigitUs,
  29374. t1 = new P.Duration_toString_twoDigits(),
  29375. t2 = this._duration;
  29376. if (t2 < 0)
  29377. return "-" + new P.Duration(0 - t2).toString$0(0);
  29378. twoDigitMinutes = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 60000000) % 60);
  29379. twoDigitSeconds = t1.call$1(C.JSInt_methods._tdivFast$1(t2, 1000000) % 60);
  29380. sixDigitUs = new P.Duration_toString_sixDigits().call$1(t2 % 1000000);
  29381. return "" + C.JSInt_methods._tdivFast$1(t2, 3600000000) + ":" + H.S(twoDigitMinutes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs);
  29382. },
  29383. $isComparable: 1
  29384. };
  29385. P.Duration_toString_sixDigits.prototype = {
  29386. call$1: function(n) {
  29387. if (n >= 100000)
  29388. return "" + n;
  29389. if (n >= 10000)
  29390. return "0" + n;
  29391. if (n >= 1000)
  29392. return "00" + n;
  29393. if (n >= 100)
  29394. return "000" + n;
  29395. if (n >= 10)
  29396. return "0000" + n;
  29397. return "00000" + n;
  29398. },
  29399. $signature: 210
  29400. };
  29401. P.Duration_toString_twoDigits.prototype = {
  29402. call$1: function(n) {
  29403. if (n >= 10)
  29404. return "" + n;
  29405. return "0" + n;
  29406. },
  29407. $signature: 210
  29408. };
  29409. P.Error.prototype = {
  29410. get$stackTrace: function() {
  29411. return H.getTraceFromException(this.$thrownJsError);
  29412. }
  29413. };
  29414. P.AssertionError.prototype = {
  29415. toString$0: function(_) {
  29416. var t1 = this.message;
  29417. if (t1 != null)
  29418. return "Assertion failed: " + P.Error_safeToString(t1);
  29419. return "Assertion failed";
  29420. },
  29421. get$message: function(receiver) {
  29422. return this.message;
  29423. }
  29424. };
  29425. P.TypeError.prototype = {};
  29426. P.NullThrownError.prototype = {
  29427. toString$0: function(_) {
  29428. return "Throw of null.";
  29429. }
  29430. };
  29431. P.ArgumentError.prototype = {
  29432. get$_errorName: function() {
  29433. return "Invalid argument" + (!this._hasValue ? "(s)" : "");
  29434. },
  29435. get$_errorExplanation: function() {
  29436. return "";
  29437. },
  29438. toString$0: function(_) {
  29439. var explanation, errorValue, _this = this,
  29440. $name = _this.name,
  29441. nameString = $name == null ? "" : " (" + $name + ")",
  29442. message = _this.message,
  29443. messageString = message == null ? "" : ": " + H.S(message),
  29444. prefix = _this.get$_errorName() + nameString + messageString;
  29445. if (!_this._hasValue)
  29446. return prefix;
  29447. explanation = _this.get$_errorExplanation();
  29448. errorValue = P.Error_safeToString(_this.invalidValue);
  29449. return prefix + explanation + ": " + errorValue;
  29450. },
  29451. get$message: function(receiver) {
  29452. return this.message;
  29453. }
  29454. };
  29455. P.RangeError.prototype = {
  29456. get$_errorName: function() {
  29457. return "RangeError";
  29458. },
  29459. get$_errorExplanation: function() {
  29460. var explanation,
  29461. start = this.start,
  29462. end = this.end;
  29463. if (start == null)
  29464. explanation = end != null ? ": Not less than or equal to " + H.S(end) : "";
  29465. else if (end == null)
  29466. explanation = ": Not greater than or equal to " + H.S(start);
  29467. else if (end > start)
  29468. explanation = ": Not in inclusive range " + H.S(start) + ".." + H.S(end);
  29469. else
  29470. explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + H.S(start);
  29471. return explanation;
  29472. }
  29473. };
  29474. P.IndexError.prototype = {
  29475. get$_errorName: function() {
  29476. return "RangeError";
  29477. },
  29478. get$_errorExplanation: function() {
  29479. if (this.invalidValue < 0)
  29480. return ": index must not be negative";
  29481. var t1 = this.length;
  29482. if (t1 === 0)
  29483. return ": no indices are valid";
  29484. return ": index should be less than " + H.S(t1);
  29485. },
  29486. $isRangeError: 1,
  29487. get$length: function(receiver) {
  29488. return this.length;
  29489. }
  29490. };
  29491. P.NoSuchMethodError.prototype = {
  29492. toString$0: function(_) {
  29493. var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {},
  29494. sb = new P.StringBuffer("");
  29495. _box_0.comma = "";
  29496. $arguments = _this._core$_arguments;
  29497. for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") {
  29498. argument = $arguments[_i];
  29499. sb._contents = t2 + t3;
  29500. t2 = sb._contents += P.Error_safeToString(argument);
  29501. _box_0.comma = ", ";
  29502. }
  29503. _this._namedArguments.forEach$1(0, new P.NoSuchMethodError_toString_closure(_box_0, sb));
  29504. receiverText = P.Error_safeToString(_this._core$_receiver);
  29505. actualParameters = sb.toString$0(0);
  29506. t1 = "NoSuchMethodError: method not found: '" + H.S(_this._memberName.__internal$_name) + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
  29507. return t1;
  29508. }
  29509. };
  29510. P.UnsupportedError.prototype = {
  29511. toString$0: function(_) {
  29512. return "Unsupported operation: " + this.message;
  29513. },
  29514. get$message: function(receiver) {
  29515. return this.message;
  29516. }
  29517. };
  29518. P.UnimplementedError.prototype = {
  29519. toString$0: function(_) {
  29520. var message = this.message;
  29521. return message != null ? "UnimplementedError: " + message : "UnimplementedError";
  29522. },
  29523. get$message: function(receiver) {
  29524. return this.message;
  29525. }
  29526. };
  29527. P.StateError.prototype = {
  29528. toString$0: function(_) {
  29529. return "Bad state: " + this.message;
  29530. },
  29531. get$message: function(receiver) {
  29532. return this.message;
  29533. }
  29534. };
  29535. P.ConcurrentModificationError.prototype = {
  29536. toString$0: function(_) {
  29537. var t1 = this.modifiedObject;
  29538. if (t1 == null)
  29539. return "Concurrent modification during iteration.";
  29540. return "Concurrent modification during iteration: " + P.Error_safeToString(t1) + ".";
  29541. }
  29542. };
  29543. P.OutOfMemoryError.prototype = {
  29544. toString$0: function(_) {
  29545. return "Out of Memory";
  29546. },
  29547. get$stackTrace: function() {
  29548. return null;
  29549. },
  29550. $isError: 1
  29551. };
  29552. P.StackOverflowError.prototype = {
  29553. toString$0: function(_) {
  29554. return "Stack Overflow";
  29555. },
  29556. get$stackTrace: function() {
  29557. return null;
  29558. },
  29559. $isError: 1
  29560. };
  29561. P.CyclicInitializationError.prototype = {
  29562. toString$0: function(_) {
  29563. var variableName = this.variableName;
  29564. return variableName == null ? "Reading static variable during its initialization" : "Reading static variable '" + variableName + "' during its initialization";
  29565. }
  29566. };
  29567. P._Exception.prototype = {
  29568. toString$0: function(_) {
  29569. return "Exception: " + this.message;
  29570. },
  29571. $isException: 1,
  29572. get$message: function(receiver) {
  29573. return this.message;
  29574. }
  29575. };
  29576. P.FormatException.prototype = {
  29577. toString$0: function(_) {
  29578. var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix, slice,
  29579. message = this.message,
  29580. report = message != null && "" !== message ? "FormatException: " + H.S(message) : "FormatException",
  29581. offset = this.offset,
  29582. source = this.source;
  29583. if (typeof source == "string") {
  29584. if (offset != null)
  29585. t1 = offset < 0 || offset > source.length;
  29586. else
  29587. t1 = false;
  29588. if (t1)
  29589. offset = null;
  29590. if (offset == null) {
  29591. if (source.length > 78)
  29592. source = C.JSString_methods.substring$2(source, 0, 75) + "...";
  29593. return report + "\n" + source;
  29594. }
  29595. for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
  29596. char = C.JSString_methods._codeUnitAt$1(source, i);
  29597. if (char === 10) {
  29598. if (lineStart !== i || !previousCharWasCR)
  29599. ++lineNum;
  29600. lineStart = i + 1;
  29601. previousCharWasCR = false;
  29602. } else if (char === 13) {
  29603. ++lineNum;
  29604. lineStart = i + 1;
  29605. previousCharWasCR = true;
  29606. }
  29607. }
  29608. report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
  29609. lineEnd = source.length;
  29610. for (i = offset; i < lineEnd; ++i) {
  29611. char = C.JSString_methods.codeUnitAt$1(source, i);
  29612. if (char === 10 || char === 13) {
  29613. lineEnd = i;
  29614. break;
  29615. }
  29616. }
  29617. if (lineEnd - lineStart > 78)
  29618. if (offset - lineStart < 75) {
  29619. end = lineStart + 75;
  29620. start = lineStart;
  29621. prefix = "";
  29622. postfix = "...";
  29623. } else {
  29624. if (lineEnd - offset < 75) {
  29625. start = lineEnd - 75;
  29626. end = lineEnd;
  29627. postfix = "";
  29628. } else {
  29629. start = offset - 36;
  29630. end = offset + 36;
  29631. postfix = "...";
  29632. }
  29633. prefix = "...";
  29634. }
  29635. else {
  29636. end = lineEnd;
  29637. start = lineStart;
  29638. prefix = "";
  29639. postfix = "";
  29640. }
  29641. slice = C.JSString_methods.substring$2(source, start, end);
  29642. return report + prefix + slice + postfix + "\n" + C.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
  29643. } else
  29644. return offset != null ? report + (" (at offset " + H.S(offset) + ")") : report;
  29645. },
  29646. $isException: 1,
  29647. get$message: function(receiver) {
  29648. return this.message;
  29649. },
  29650. get$source: function() {
  29651. return this.source;
  29652. }
  29653. };
  29654. P.Iterable.prototype = {
  29655. cast$1$0: function(_, $R) {
  29656. return H.CastIterable_CastIterable(this, H._instanceType(this)._eval$1("Iterable.E"), $R);
  29657. },
  29658. followedBy$1: function(_, other) {
  29659. var _this = this,
  29660. t1 = H._instanceType(_this);
  29661. if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
  29662. return H.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
  29663. return new H.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
  29664. },
  29665. map$1$1: function(_, f, $T) {
  29666. return H.MappedIterable_MappedIterable(this, f, H._instanceType(this)._eval$1("Iterable.E"), $T);
  29667. },
  29668. where$1: function(_, test) {
  29669. return new H.WhereIterable(this, test, H._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
  29670. },
  29671. expand$1$1: function(_, f, $T) {
  29672. return new H.ExpandIterable(this, f, H._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  29673. },
  29674. contains$1: function(_, element) {
  29675. var t1;
  29676. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  29677. if (J.$eq$(t1.get$current(t1), element))
  29678. return true;
  29679. return false;
  29680. },
  29681. fold$1$2: function(_, initialValue, combine) {
  29682. var t1, value;
  29683. for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
  29684. value = combine.call$2(value, t1.get$current(t1));
  29685. return value;
  29686. },
  29687. fold$2: function($receiver, initialValue, combine) {
  29688. return this.fold$1$2($receiver, initialValue, combine, type$.dynamic);
  29689. },
  29690. join$1: function(_, separator) {
  29691. var t1,
  29692. iterator = this.get$iterator(this);
  29693. if (!iterator.moveNext$0())
  29694. return "";
  29695. if (separator === "") {
  29696. t1 = "";
  29697. do
  29698. t1 += H.S(J.toString$0$(iterator.get$current(iterator)));
  29699. while (iterator.moveNext$0());
  29700. } else {
  29701. t1 = H.S(J.toString$0$(iterator.get$current(iterator)));
  29702. for (; iterator.moveNext$0();)
  29703. t1 = t1 + separator + H.S(J.toString$0$(iterator.get$current(iterator)));
  29704. }
  29705. return t1.charCodeAt(0) == 0 ? t1 : t1;
  29706. },
  29707. join$0: function($receiver) {
  29708. return this.join$1($receiver, "");
  29709. },
  29710. any$1: function(_, test) {
  29711. var t1;
  29712. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  29713. if (test.call$1(t1.get$current(t1)))
  29714. return true;
  29715. return false;
  29716. },
  29717. toList$1$growable: function(_, growable) {
  29718. return P.List_List$from(this, growable, H._instanceType(this)._eval$1("Iterable.E"));
  29719. },
  29720. toList$0: function($receiver) {
  29721. return this.toList$1$growable($receiver, true);
  29722. },
  29723. toSet$0: function(_) {
  29724. return P.LinkedHashSet_LinkedHashSet$of(this, H._instanceType(this)._eval$1("Iterable.E"));
  29725. },
  29726. get$length: function(_) {
  29727. var count,
  29728. it = this.get$iterator(this);
  29729. for (count = 0; it.moveNext$0();)
  29730. ++count;
  29731. return count;
  29732. },
  29733. get$isEmpty: function(_) {
  29734. return !this.get$iterator(this).moveNext$0();
  29735. },
  29736. get$isNotEmpty: function(_) {
  29737. return !this.get$isEmpty(this);
  29738. },
  29739. take$1: function(_, count) {
  29740. return H.TakeIterable_TakeIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  29741. },
  29742. skip$1: function(_, count) {
  29743. return H.SkipIterable_SkipIterable(this, count, H._instanceType(this)._eval$1("Iterable.E"));
  29744. },
  29745. skipWhile$1: function(_, test) {
  29746. return new H.SkipWhileIterable(this, test, H._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
  29747. },
  29748. get$first: function(_) {
  29749. var it = this.get$iterator(this);
  29750. if (!it.moveNext$0())
  29751. throw H.wrapException(H.IterableElementError_noElement());
  29752. return it.get$current(it);
  29753. },
  29754. get$last: function(_) {
  29755. var result,
  29756. it = this.get$iterator(this);
  29757. if (!it.moveNext$0())
  29758. throw H.wrapException(H.IterableElementError_noElement());
  29759. do
  29760. result = it.get$current(it);
  29761. while (it.moveNext$0());
  29762. return result;
  29763. },
  29764. get$single: function(_) {
  29765. var result,
  29766. it = this.get$iterator(this);
  29767. if (!it.moveNext$0())
  29768. throw H.wrapException(H.IterableElementError_noElement());
  29769. result = it.get$current(it);
  29770. if (it.moveNext$0())
  29771. throw H.wrapException(H.IterableElementError_tooMany());
  29772. return result;
  29773. },
  29774. firstWhere$2$orElse: function(_, test, orElse) {
  29775. var t1, element;
  29776. for (t1 = this.get$iterator(this); t1.moveNext$0();) {
  29777. element = t1.get$current(t1);
  29778. if (test.call$1(element))
  29779. return element;
  29780. }
  29781. return orElse.call$0();
  29782. },
  29783. elementAt$1: function(_, index) {
  29784. var t1, elementIndex, element;
  29785. P.RangeError_checkNotNegative(index, "index");
  29786. for (t1 = this.get$iterator(this), elementIndex = 0; t1.moveNext$0();) {
  29787. element = t1.get$current(t1);
  29788. if (index === elementIndex)
  29789. return element;
  29790. ++elementIndex;
  29791. }
  29792. throw H.wrapException(P.IndexError$(index, this, "index", null, elementIndex));
  29793. },
  29794. toString$0: function(_) {
  29795. return P.IterableBase_iterableToShortString(this, "(", ")");
  29796. }
  29797. };
  29798. P._GeneratorIterable.prototype = {
  29799. elementAt$1: function(_, index) {
  29800. P.RangeError_checkValidIndex(index, this, null);
  29801. return this._generator.call$1(index);
  29802. },
  29803. get$length: function(receiver) {
  29804. return this.length;
  29805. }
  29806. };
  29807. P.Iterator.prototype = {};
  29808. P.MapEntry.prototype = {
  29809. toString$0: function(_) {
  29810. return "MapEntry(" + H.S(J.toString$0$(this.key)) + ": " + H.S(J.toString$0$(this.value)) + ")";
  29811. }
  29812. };
  29813. P.Null.prototype = {
  29814. get$hashCode: function(_) {
  29815. return P.Object.prototype.get$hashCode.call(C.JSNull_methods, this);
  29816. },
  29817. toString$0: function(_) {
  29818. return "null";
  29819. }
  29820. };
  29821. P.Object.prototype = {constructor: P.Object, $isObject: 1,
  29822. $eq: function(_, other) {
  29823. return this === other;
  29824. },
  29825. get$hashCode: function(_) {
  29826. return H.Primitives_objectHashCode(this);
  29827. },
  29828. toString$0: function(_) {
  29829. return "Instance of '" + H.S(H.Primitives_objectTypeName(this)) + "'";
  29830. },
  29831. noSuchMethod$1: function(_, invocation) {
  29832. throw H.wrapException(P.NoSuchMethodError$(this, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments()));
  29833. },
  29834. get$runtimeType: function(_) {
  29835. var rti = this instanceof H.Closure ? H.closureFunctionType(this) : null;
  29836. return H.createRuntimeType(rti == null ? H.instanceType(this) : rti);
  29837. },
  29838. toString: function() {
  29839. return this.toString$0(this);
  29840. }
  29841. };
  29842. P._StringStackTrace.prototype = {
  29843. toString$0: function(_) {
  29844. return this._stackTrace;
  29845. },
  29846. $isStackTrace: 1
  29847. };
  29848. P.Runes.prototype = {
  29849. get$iterator: function(_) {
  29850. return new P.RuneIterator(this.string);
  29851. },
  29852. get$last: function(_) {
  29853. var code, previousCode,
  29854. t1 = this.string,
  29855. t2 = t1.length;
  29856. if (t2 === 0)
  29857. throw H.wrapException(P.StateError$("No elements."));
  29858. code = C.JSString_methods.codeUnitAt$1(t1, t2 - 1);
  29859. if ((code & 64512) === 56320 && t2 > 1) {
  29860. previousCode = C.JSString_methods.codeUnitAt$1(t1, t2 - 2);
  29861. if ((previousCode & 64512) === 55296)
  29862. return P._combineSurrogatePair(previousCode, code);
  29863. }
  29864. return code;
  29865. }
  29866. };
  29867. P.RuneIterator.prototype = {
  29868. get$current: function(_) {
  29869. return this._currentCodePoint;
  29870. },
  29871. moveNext$0: function() {
  29872. var codeUnit, nextPosition, nextCodeUnit, _this = this,
  29873. t1 = _this._position = _this._nextPosition,
  29874. t2 = _this.string,
  29875. t3 = t2.length;
  29876. if (t1 === t3) {
  29877. _this._currentCodePoint = -1;
  29878. return false;
  29879. }
  29880. codeUnit = C.JSString_methods._codeUnitAt$1(t2, t1);
  29881. nextPosition = t1 + 1;
  29882. if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
  29883. nextCodeUnit = C.JSString_methods._codeUnitAt$1(t2, nextPosition);
  29884. if ((nextCodeUnit & 64512) === 56320) {
  29885. _this._nextPosition = nextPosition + 1;
  29886. _this._currentCodePoint = P._combineSurrogatePair(codeUnit, nextCodeUnit);
  29887. return true;
  29888. }
  29889. }
  29890. _this._nextPosition = nextPosition;
  29891. _this._currentCodePoint = codeUnit;
  29892. return true;
  29893. }
  29894. };
  29895. P.StringBuffer.prototype = {
  29896. get$length: function(_) {
  29897. return this._contents.length;
  29898. },
  29899. write$1: function(_, obj) {
  29900. this._contents += H.S(obj);
  29901. },
  29902. writeCharCode$1: function(charCode) {
  29903. this._contents += H.Primitives_stringFromCharCode(charCode);
  29904. },
  29905. toString$0: function(_) {
  29906. var t1 = this._contents;
  29907. return t1.charCodeAt(0) == 0 ? t1 : t1;
  29908. }
  29909. };
  29910. P.Uri__parseIPv4Address_error.prototype = {
  29911. call$2: function(msg, position) {
  29912. throw H.wrapException(P.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
  29913. },
  29914. $signature: 218
  29915. };
  29916. P.Uri_parseIPv6Address_error.prototype = {
  29917. call$2: function(msg, position) {
  29918. throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
  29919. },
  29920. call$1: function(msg) {
  29921. return this.call$2(msg, null);
  29922. },
  29923. $signature: 220
  29924. };
  29925. P.Uri_parseIPv6Address_parseHex.prototype = {
  29926. call$2: function(start, end) {
  29927. var value;
  29928. if (end - start > 4)
  29929. this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
  29930. value = P.int_parse(C.JSString_methods.substring$2(this.host, start, end), 16);
  29931. if (value < 0 || value > 65535)
  29932. this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
  29933. return value;
  29934. },
  29935. $signature: 223
  29936. };
  29937. P._Uri.prototype = {
  29938. get$_text: function() {
  29939. var t2, t3, t4, _this = this,
  29940. t1 = _this.___Uri__text;
  29941. if (t1 == null) {
  29942. t1 = _this.scheme;
  29943. t2 = t1.length !== 0 ? t1 + ":" : "";
  29944. t3 = _this._host;
  29945. t4 = t3 == null;
  29946. if (!t4 || t1 === "file") {
  29947. t1 = t2 + "//";
  29948. t2 = _this._userInfo;
  29949. if (t2.length !== 0)
  29950. t1 = t1 + t2 + "@";
  29951. if (!t4)
  29952. t1 += t3;
  29953. t2 = _this._port;
  29954. if (t2 != null)
  29955. t1 = t1 + ":" + H.S(t2);
  29956. } else
  29957. t1 = t2;
  29958. t1 += _this.path;
  29959. t2 = _this._query;
  29960. if (t2 != null)
  29961. t1 = t1 + "?" + t2;
  29962. t2 = _this._fragment;
  29963. if (t2 != null)
  29964. t1 = t1 + "#" + t2;
  29965. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  29966. if (_this.___Uri__text == null)
  29967. _this.___Uri__text = t1;
  29968. else
  29969. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field '_text' has been assigned during initialization."));
  29970. }
  29971. return t1;
  29972. },
  29973. get$pathSegments: function() {
  29974. var pathToSplit, _this = this,
  29975. t1 = _this.___Uri_pathSegments;
  29976. if (t1 == null) {
  29977. pathToSplit = _this.path;
  29978. if (pathToSplit.length !== 0 && C.JSString_methods._codeUnitAt$1(pathToSplit, 0) === 47)
  29979. pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1);
  29980. t1 = pathToSplit.length === 0 ? C.List_empty : P.List_List$unmodifiable(new H.MappedListIterable(H.setRuntimeTypeInfo(pathToSplit.split("/"), type$.JSArray_String), P.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
  29981. if (_this.___Uri_pathSegments == null)
  29982. _this.___Uri_pathSegments = t1;
  29983. else
  29984. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field 'pathSegments' has been assigned during initialization."));
  29985. }
  29986. return t1;
  29987. },
  29988. get$hashCode: function(_) {
  29989. var _this = this,
  29990. t1 = _this.___Uri_hashCode;
  29991. if (t1 == null) {
  29992. t1 = C.JSString_methods.get$hashCode(_this.get$_text());
  29993. if (_this.___Uri_hashCode == null)
  29994. _this.___Uri_hashCode = t1;
  29995. else
  29996. t1 = H.throwExpression(H.LateInitializationErrorImpl$("Field 'hashCode' has been assigned during initialization."));
  29997. }
  29998. return t1;
  29999. },
  30000. get$userInfo: function() {
  30001. return this._userInfo;
  30002. },
  30003. get$host: function() {
  30004. var host = this._host;
  30005. if (host == null)
  30006. return "";
  30007. if (C.JSString_methods.startsWith$1(host, "["))
  30008. return C.JSString_methods.substring$2(host, 1, host.length - 1);
  30009. return host;
  30010. },
  30011. get$port: function(_) {
  30012. var t1 = this._port;
  30013. return t1 == null ? P._Uri__defaultPort(this.scheme) : t1;
  30014. },
  30015. get$query: function() {
  30016. var t1 = this._query;
  30017. return t1 == null ? "" : t1;
  30018. },
  30019. get$fragment: function() {
  30020. var t1 = this._fragment;
  30021. return t1 == null ? "" : t1;
  30022. },
  30023. _mergePaths$2: function(base, reference) {
  30024. var backCount, refStart, baseEnd, newEnd, delta, t1;
  30025. for (backCount = 0, refStart = 0; C.JSString_methods.startsWith$2(reference, "../", refStart);) {
  30026. refStart += 3;
  30027. ++backCount;
  30028. }
  30029. baseEnd = C.JSString_methods.lastIndexOf$1(base, "/");
  30030. while (true) {
  30031. if (!(baseEnd > 0 && backCount > 0))
  30032. break;
  30033. newEnd = C.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
  30034. if (newEnd < 0)
  30035. break;
  30036. delta = baseEnd - newEnd;
  30037. t1 = delta !== 2;
  30038. if (!t1 || delta === 3)
  30039. if (C.JSString_methods.codeUnitAt$1(base, newEnd + 1) === 46)
  30040. t1 = !t1 || C.JSString_methods.codeUnitAt$1(base, newEnd + 2) === 46;
  30041. else
  30042. t1 = false;
  30043. else
  30044. t1 = false;
  30045. if (t1)
  30046. break;
  30047. --backCount;
  30048. baseEnd = newEnd;
  30049. }
  30050. return C.JSString_methods.replaceRange$3(base, baseEnd + 1, null, C.JSString_methods.substring$1(reference, refStart - 3 * backCount));
  30051. },
  30052. resolve$1: function(reference) {
  30053. return this.resolveUri$1(P.Uri_parse(reference));
  30054. },
  30055. resolveUri$1: function(reference) {
  30056. var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, t1, mergedPath, t2, _this = this, _null = null;
  30057. if (reference.get$scheme().length !== 0) {
  30058. targetScheme = reference.get$scheme();
  30059. if (reference.get$hasAuthority()) {
  30060. targetUserInfo = reference.get$userInfo();
  30061. targetHost = reference.get$host();
  30062. targetPort = reference.get$hasPort() ? reference.get$port(reference) : _null;
  30063. } else {
  30064. targetPort = _null;
  30065. targetHost = targetPort;
  30066. targetUserInfo = "";
  30067. }
  30068. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  30069. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  30070. } else {
  30071. targetScheme = _this.scheme;
  30072. if (reference.get$hasAuthority()) {
  30073. targetUserInfo = reference.get$userInfo();
  30074. targetHost = reference.get$host();
  30075. targetPort = P._Uri__makePort(reference.get$hasPort() ? reference.get$port(reference) : _null, targetScheme);
  30076. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  30077. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  30078. } else {
  30079. targetUserInfo = _this._userInfo;
  30080. targetHost = _this._host;
  30081. targetPort = _this._port;
  30082. if (reference.get$path(reference) === "") {
  30083. targetPath = _this.path;
  30084. targetQuery = reference.get$hasQuery() ? reference.get$query() : _this._query;
  30085. } else {
  30086. if (reference.get$hasAbsolutePath())
  30087. targetPath = P._Uri__removeDotSegments(reference.get$path(reference));
  30088. else {
  30089. t1 = _this.path;
  30090. if (t1.length === 0)
  30091. if (targetHost == null)
  30092. targetPath = targetScheme.length === 0 ? reference.get$path(reference) : P._Uri__removeDotSegments(reference.get$path(reference));
  30093. else
  30094. targetPath = P._Uri__removeDotSegments("/" + reference.get$path(reference));
  30095. else {
  30096. mergedPath = _this._mergePaths$2(t1, reference.get$path(reference));
  30097. t2 = targetScheme.length === 0;
  30098. if (!t2 || targetHost != null || C.JSString_methods.startsWith$1(t1, "/"))
  30099. targetPath = P._Uri__removeDotSegments(mergedPath);
  30100. else
  30101. targetPath = P._Uri__normalizeRelativePath(mergedPath, !t2 || targetHost != null);
  30102. }
  30103. }
  30104. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  30105. }
  30106. }
  30107. }
  30108. return new P._Uri(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, reference.get$hasFragment() ? reference.get$fragment() : _null);
  30109. },
  30110. get$hasAuthority: function() {
  30111. return this._host != null;
  30112. },
  30113. get$hasPort: function() {
  30114. return this._port != null;
  30115. },
  30116. get$hasQuery: function() {
  30117. return this._query != null;
  30118. },
  30119. get$hasFragment: function() {
  30120. return this._fragment != null;
  30121. },
  30122. get$hasAbsolutePath: function() {
  30123. return C.JSString_methods.startsWith$1(this.path, "/");
  30124. },
  30125. toFilePath$0: function() {
  30126. var pathSegments, _this = this,
  30127. t1 = _this.scheme;
  30128. if (t1 !== "" && t1 !== "file")
  30129. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI"));
  30130. if (_this.get$query() !== "")
  30131. throw H.wrapException(P.UnsupportedError$(string$.Cannotefq));
  30132. if (_this.get$fragment() !== "")
  30133. throw H.wrapException(P.UnsupportedError$(string$.Cannoteff));
  30134. t1 = $.$get$_Uri__isWindowsCached();
  30135. if (t1)
  30136. t1 = P._Uri__toWindowsFilePath(_this);
  30137. else {
  30138. if (_this._host != null && _this.get$host() !== "")
  30139. H.throwExpression(P.UnsupportedError$(string$.Cannoten));
  30140. pathSegments = _this.get$pathSegments();
  30141. P._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
  30142. t1 = P.StringBuffer__writeAll(C.JSString_methods.startsWith$1(_this.path, "/") ? "/" : "", pathSegments, "/");
  30143. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  30144. }
  30145. return t1;
  30146. },
  30147. toString$0: function(_) {
  30148. return this.get$_text();
  30149. },
  30150. $eq: function(_, other) {
  30151. var _this = this;
  30152. if (other == null)
  30153. return false;
  30154. if (_this === other)
  30155. return true;
  30156. return type$.Uri._is(other) && _this.scheme === other.get$scheme() && _this._host != null === other.get$hasAuthority() && _this._userInfo === other.get$userInfo() && _this.get$host() === other.get$host() && _this.get$port(_this) === other.get$port(other) && _this.path === other.get$path(other) && _this._query != null === other.get$hasQuery() && _this.get$query() === other.get$query() && _this._fragment != null === other.get$hasFragment() && _this.get$fragment() === other.get$fragment();
  30157. },
  30158. $isUri: 1,
  30159. get$scheme: function() {
  30160. return this.scheme;
  30161. },
  30162. get$path: function(receiver) {
  30163. return this.path;
  30164. }
  30165. };
  30166. P._Uri__makePath_closure.prototype = {
  30167. call$1: function(s) {
  30168. return P._Uri__uriEncode(C.List_qg40, s, C.C_Utf8Codec, false);
  30169. },
  30170. $signature: 198
  30171. };
  30172. P.UriData.prototype = {
  30173. get$uri: function() {
  30174. var t2, queryIndex, end, query, _this = this, _null = null,
  30175. t1 = _this._uriCache;
  30176. if (t1 == null) {
  30177. t1 = _this._text;
  30178. t2 = _this._separatorIndices[0] + 1;
  30179. queryIndex = C.JSString_methods.indexOf$2(t1, "?", t2);
  30180. end = t1.length;
  30181. if (queryIndex >= 0) {
  30182. query = P._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, C.List_CVk, false);
  30183. end = queryIndex;
  30184. } else
  30185. query = _null;
  30186. t1 = _this._uriCache = new P._DataUri("data", "", _null, _null, P._Uri__normalizeOrSubstring(t1, t2, end, C.List_qg4, false), query, _null);
  30187. }
  30188. return t1;
  30189. },
  30190. toString$0: function(_) {
  30191. var t1 = this._text;
  30192. return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
  30193. }
  30194. };
  30195. P._createTables_closure.prototype = {
  30196. call$1: function(_) {
  30197. return new Uint8Array(96);
  30198. },
  30199. $signature: 232
  30200. };
  30201. P._createTables_build.prototype = {
  30202. call$2: function(state, defaultTransition) {
  30203. var t1 = this.tables[state];
  30204. J.fillRange$3$ax(t1, 0, 96, defaultTransition);
  30205. return t1;
  30206. },
  30207. $signature: 238
  30208. };
  30209. P._createTables_setChars.prototype = {
  30210. call$3: function(target, chars, transition) {
  30211. var t1, i;
  30212. for (t1 = chars.length, i = 0; i < t1; ++i)
  30213. target[C.JSString_methods._codeUnitAt$1(chars, i) ^ 96] = transition;
  30214. },
  30215. $signature: 181
  30216. };
  30217. P._createTables_setRange.prototype = {
  30218. call$3: function(target, range, transition) {
  30219. var i, n;
  30220. for (i = C.JSString_methods._codeUnitAt$1(range, 0), n = C.JSString_methods._codeUnitAt$1(range, 1); i <= n; ++i)
  30221. target[(i ^ 96) >>> 0] = transition;
  30222. },
  30223. $signature: 181
  30224. };
  30225. P._SimpleUri.prototype = {
  30226. get$hasAuthority: function() {
  30227. return this._hostStart > 0;
  30228. },
  30229. get$hasPort: function() {
  30230. return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
  30231. },
  30232. get$hasQuery: function() {
  30233. return this._queryStart < this._fragmentStart;
  30234. },
  30235. get$hasFragment: function() {
  30236. return this._fragmentStart < this._uri.length;
  30237. },
  30238. get$_isFile: function() {
  30239. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "file");
  30240. },
  30241. get$_isHttp: function() {
  30242. return this._schemeEnd === 4 && C.JSString_methods.startsWith$1(this._uri, "http");
  30243. },
  30244. get$_isHttps: function() {
  30245. return this._schemeEnd === 5 && C.JSString_methods.startsWith$1(this._uri, "https");
  30246. },
  30247. get$hasAbsolutePath: function() {
  30248. return C.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
  30249. },
  30250. get$scheme: function() {
  30251. var t1 = this._schemeCache;
  30252. return t1 == null ? this._schemeCache = this._computeScheme$0() : t1;
  30253. },
  30254. _computeScheme$0: function() {
  30255. var _this = this,
  30256. t1 = _this._schemeEnd;
  30257. if (t1 <= 0)
  30258. return "";
  30259. if (_this.get$_isHttp())
  30260. return "http";
  30261. if (_this.get$_isHttps())
  30262. return "https";
  30263. if (_this.get$_isFile())
  30264. return "file";
  30265. if (t1 === 7 && C.JSString_methods.startsWith$1(_this._uri, "package"))
  30266. return "package";
  30267. return C.JSString_methods.substring$2(_this._uri, 0, t1);
  30268. },
  30269. get$userInfo: function() {
  30270. var t1 = this._hostStart,
  30271. t2 = this._schemeEnd + 3;
  30272. return t1 > t2 ? C.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
  30273. },
  30274. get$host: function() {
  30275. var t1 = this._hostStart;
  30276. return t1 > 0 ? C.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
  30277. },
  30278. get$port: function(_) {
  30279. var _this = this;
  30280. if (_this.get$hasPort())
  30281. return P.int_parse(C.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null);
  30282. if (_this.get$_isHttp())
  30283. return 80;
  30284. if (_this.get$_isHttps())
  30285. return 443;
  30286. return 0;
  30287. },
  30288. get$path: function(_) {
  30289. return C.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
  30290. },
  30291. get$query: function() {
  30292. var t1 = this._queryStart,
  30293. t2 = this._fragmentStart;
  30294. return t1 < t2 ? C.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
  30295. },
  30296. get$fragment: function() {
  30297. var t1 = this._fragmentStart,
  30298. t2 = this._uri;
  30299. return t1 < t2.length ? C.JSString_methods.substring$1(t2, t1 + 1) : "";
  30300. },
  30301. get$pathSegments: function() {
  30302. var parts, i,
  30303. start = this._pathStart,
  30304. end = this._queryStart,
  30305. t1 = this._uri;
  30306. if (C.JSString_methods.startsWith$2(t1, "/", start))
  30307. ++start;
  30308. if (start === end)
  30309. return C.List_empty;
  30310. parts = H.setRuntimeTypeInfo([], type$.JSArray_String);
  30311. for (i = start; i < end; ++i)
  30312. if (C.JSString_methods.codeUnitAt$1(t1, i) === 47) {
  30313. parts.push(C.JSString_methods.substring$2(t1, start, i));
  30314. start = i + 1;
  30315. }
  30316. parts.push(C.JSString_methods.substring$2(t1, start, end));
  30317. return P.List_List$unmodifiable(parts, type$.String);
  30318. },
  30319. _isPort$1: function(port) {
  30320. var portDigitStart = this._portStart + 1;
  30321. return portDigitStart + port.length === this._pathStart && C.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
  30322. },
  30323. removeFragment$0: function() {
  30324. var _this = this,
  30325. t1 = _this._fragmentStart,
  30326. t2 = _this._uri;
  30327. if (t1 >= t2.length)
  30328. return _this;
  30329. return new P._SimpleUri(C.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
  30330. },
  30331. resolve$1: function(reference) {
  30332. return this.resolveUri$1(P.Uri_parse(reference));
  30333. },
  30334. resolveUri$1: function(reference) {
  30335. if (reference instanceof P._SimpleUri)
  30336. return this._simpleMerge$2(this, reference);
  30337. return this._toNonSimple$0().resolveUri$1(reference);
  30338. },
  30339. _simpleMerge$2: function(base, ref) {
  30340. var t2, t3, isSimple, delta, refStart, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
  30341. t1 = ref._schemeEnd;
  30342. if (t1 > 0)
  30343. return ref;
  30344. t2 = ref._hostStart;
  30345. if (t2 > 0) {
  30346. t3 = base._schemeEnd;
  30347. if (t3 <= 0)
  30348. return ref;
  30349. if (base.get$_isFile())
  30350. isSimple = ref._pathStart !== ref._queryStart;
  30351. else if (base.get$_isHttp())
  30352. isSimple = !ref._isPort$1("80");
  30353. else
  30354. isSimple = !base.get$_isHttps() || !ref._isPort$1("443");
  30355. if (isSimple) {
  30356. delta = t3 + 1;
  30357. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, delta) + C.JSString_methods.substring$1(ref._uri, t1 + 1), t3, t2 + delta, ref._portStart + delta, ref._pathStart + delta, ref._queryStart + delta, ref._fragmentStart + delta, base._schemeCache);
  30358. } else
  30359. return this._toNonSimple$0().resolveUri$1(ref);
  30360. }
  30361. refStart = ref._pathStart;
  30362. t1 = ref._queryStart;
  30363. if (refStart === t1) {
  30364. t2 = ref._fragmentStart;
  30365. if (t1 < t2) {
  30366. t3 = base._queryStart;
  30367. delta = t3 - t1;
  30368. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
  30369. }
  30370. t1 = ref._uri;
  30371. if (t2 < t1.length) {
  30372. t3 = base._fragmentStart;
  30373. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
  30374. }
  30375. return base.removeFragment$0();
  30376. }
  30377. t2 = ref._uri;
  30378. if (C.JSString_methods.startsWith$2(t2, "/", refStart)) {
  30379. t3 = base._pathStart;
  30380. delta = t3 - refStart;
  30381. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, t3) + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, t3, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  30382. }
  30383. baseStart = base._pathStart;
  30384. baseEnd = base._queryStart;
  30385. if (baseStart === baseEnd && base._hostStart > 0) {
  30386. for (; C.JSString_methods.startsWith$2(t2, "../", refStart);)
  30387. refStart += 3;
  30388. delta = baseStart - refStart + 1;
  30389. return new P._SimpleUri(C.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  30390. }
  30391. baseUri = base._uri;
  30392. for (baseStart0 = baseStart; C.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
  30393. baseStart0 += 3;
  30394. backCount = 0;
  30395. while (true) {
  30396. refStart0 = refStart + 3;
  30397. if (!(refStart0 <= t1 && C.JSString_methods.startsWith$2(t2, "../", refStart)))
  30398. break;
  30399. ++backCount;
  30400. refStart = refStart0;
  30401. }
  30402. for (insert = ""; baseEnd > baseStart0;) {
  30403. --baseEnd;
  30404. if (C.JSString_methods.codeUnitAt$1(baseUri, baseEnd) === 47) {
  30405. if (backCount === 0) {
  30406. insert = "/";
  30407. break;
  30408. }
  30409. --backCount;
  30410. insert = "/";
  30411. }
  30412. }
  30413. if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !C.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
  30414. refStart -= backCount * 3;
  30415. insert = "";
  30416. }
  30417. delta = baseEnd - refStart + insert.length;
  30418. return new P._SimpleUri(C.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + C.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  30419. },
  30420. toFilePath$0: function() {
  30421. var t1, t2, t3, _this = this;
  30422. if (_this._schemeEnd >= 0 && !_this.get$_isFile())
  30423. throw H.wrapException(P.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI"));
  30424. t1 = _this._queryStart;
  30425. t2 = _this._uri;
  30426. if (t1 < t2.length) {
  30427. if (t1 < _this._fragmentStart)
  30428. throw H.wrapException(P.UnsupportedError$(string$.Cannotefq));
  30429. throw H.wrapException(P.UnsupportedError$(string$.Cannoteff));
  30430. }
  30431. t3 = $.$get$_Uri__isWindowsCached();
  30432. if (t3)
  30433. t1 = P._Uri__toWindowsFilePath(_this);
  30434. else {
  30435. if (_this._hostStart < _this._portStart)
  30436. H.throwExpression(P.UnsupportedError$(string$.Cannoten));
  30437. t1 = C.JSString_methods.substring$2(t2, _this._pathStart, t1);
  30438. }
  30439. return t1;
  30440. },
  30441. get$hashCode: function(_) {
  30442. var t1 = this._hashCodeCache;
  30443. return t1 == null ? this._hashCodeCache = C.JSString_methods.get$hashCode(this._uri) : t1;
  30444. },
  30445. $eq: function(_, other) {
  30446. if (other == null)
  30447. return false;
  30448. if (this === other)
  30449. return true;
  30450. return type$.Uri._is(other) && this._uri === other.toString$0(0);
  30451. },
  30452. _toNonSimple$0: function() {
  30453. var _this = this, _null = null,
  30454. t1 = _this.get$scheme(),
  30455. t2 = _this.get$userInfo(),
  30456. t3 = _this._hostStart > 0 ? _this.get$host() : _null,
  30457. t4 = _this.get$hasPort() ? _this.get$port(_this) : _null,
  30458. t5 = _this._uri,
  30459. t6 = _this._queryStart,
  30460. t7 = C.JSString_methods.substring$2(t5, _this._pathStart, t6),
  30461. t8 = _this._fragmentStart;
  30462. t6 = t6 < t8 ? _this.get$query() : _null;
  30463. return new P._Uri(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
  30464. },
  30465. toString$0: function(_) {
  30466. return this._uri;
  30467. },
  30468. $isUri: 1
  30469. };
  30470. P._DataUri.prototype = {};
  30471. P._JSRandom.prototype = {
  30472. nextInt$1: function(max) {
  30473. if (max <= 0 || max > 4294967296)
  30474. throw H.wrapException(P.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
  30475. return Math.random() * max >>> 0;
  30476. },
  30477. nextDouble$0: function() {
  30478. return Math.random();
  30479. }
  30480. };
  30481. N.ArgParser.prototype = {
  30482. addFlag$6$abbr$defaultsTo$help$hide$negatable: function($name, abbr, defaultsTo, help, hide, negatable) {
  30483. var _null = null;
  30484. this._addOption$11$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, C.OptionType_nMZ, hide, negatable);
  30485. },
  30486. addFlag$2$hide: function($name, hide) {
  30487. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
  30488. },
  30489. addFlag$2$help: function($name, help) {
  30490. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
  30491. },
  30492. addFlag$3$defaultsTo$help: function($name, defaultsTo, help) {
  30493. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
  30494. },
  30495. addFlag$3$help$negatable: function($name, help, negatable) {
  30496. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
  30497. },
  30498. addFlag$4$abbr$help$negatable: function($name, abbr, help, negatable) {
  30499. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
  30500. },
  30501. addFlag$3$abbr$help: function($name, abbr, help) {
  30502. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
  30503. },
  30504. addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp: function($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
  30505. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, C.OptionType_YwU, hide, null);
  30506. },
  30507. addOption$2$hide: function($name, hide) {
  30508. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, null, null, null, hide, null);
  30509. },
  30510. addOption$6$abbr$allowed$defaultsTo$help$valueHelp: function($name, abbr, allowed, defaultsTo, help, valueHelp) {
  30511. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
  30512. },
  30513. addOption$4$allowed$defaultsTo$help: function($name, allowed, defaultsTo, help) {
  30514. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
  30515. },
  30516. addMultiOption$5$abbr$help$splitCommas$valueHelp: function($name, abbr, help, splitCommas, valueHelp) {
  30517. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  30518. this._addOption$11$hide$splitCommas($name, abbr, help, valueHelp, null, null, t1, null, C.OptionType_qyr, false, false);
  30519. },
  30520. _addOption$12$hide$negatable$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, splitCommas) {
  30521. var t2, existing, t3, option,
  30522. t1 = this._arg_parser$_options;
  30523. if (t1.containsKey$1($name))
  30524. throw H.wrapException(P.ArgumentError$('Duplicate option "' + $name + '".'));
  30525. t2 = abbr != null;
  30526. if (t2) {
  30527. existing = this.findByAbbreviation$1(abbr);
  30528. if (existing != null)
  30529. throw H.wrapException(P.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".'));
  30530. }
  30531. t3 = allowed == null ? null : P.List_List$unmodifiable(allowed, type$.legacy_String);
  30532. option = new G.Option($name, abbr, help, valueHelp, t3, null, defaultsTo, negatable, callback, type, splitCommas == null ? type === C.OptionType_qyr : splitCommas, hide);
  30533. if ($name.length === 0)
  30534. H.throwExpression(P.ArgumentError$("Name cannot be empty."));
  30535. else if (C.JSString_methods.startsWith$1($name, "-"))
  30536. H.throwExpression(P.ArgumentError$("Name " + $name + ' cannot start with "-".'));
  30537. t3 = $.$get$Option__invalidChars()._nativeRegExp;
  30538. if (t3.test($name))
  30539. H.throwExpression(P.ArgumentError$('Name "' + $name + '" contains invalid characters.'));
  30540. if (t2) {
  30541. if (abbr.length !== 1)
  30542. H.throwExpression(P.ArgumentError$("Abbreviation must be null or have length 1."));
  30543. else if (abbr === "-")
  30544. H.throwExpression(P.ArgumentError$('Abbreviation cannot be "-".'));
  30545. if (t3.test(abbr))
  30546. H.throwExpression(P.ArgumentError$("Abbreviation is an invalid character."));
  30547. }
  30548. t1.$indexSet(0, $name, option);
  30549. this._optionsAndSeparators.push(option);
  30550. },
  30551. _addOption$11$hide$splitCommas: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, splitCommas) {
  30552. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, false, splitCommas);
  30553. },
  30554. _addOption$11$hide$negatable: function($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable) {
  30555. return this._addOption$12$hide$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, hide, negatable, null);
  30556. },
  30557. findByAbbreviation$1: function(abbr) {
  30558. var t1 = this.options._collection$_map;
  30559. return t1.get$values(t1).firstWhere$2$orElse(0, new N.ArgParser_findByAbbreviation_closure(abbr), new N.ArgParser_findByAbbreviation_closure0());
  30560. }
  30561. };
  30562. N.ArgParser_findByAbbreviation_closure.prototype = {
  30563. call$1: function(option) {
  30564. return option.abbr === this.abbr;
  30565. },
  30566. $signature: 265
  30567. };
  30568. N.ArgParser_findByAbbreviation_closure0.prototype = {
  30569. call$0: function() {
  30570. return null;
  30571. },
  30572. $signature: 0
  30573. };
  30574. Z.ArgParserException.prototype = {};
  30575. V.ArgResults.prototype = {
  30576. $index: function(_, $name) {
  30577. var t1 = this._parser.options._collection$_map;
  30578. if (!t1.containsKey$1($name))
  30579. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + $name + '".'));
  30580. return t1.$index(0, $name).getOrDefault$1(this._parsed.$index(0, $name));
  30581. },
  30582. wasParsed$1: function($name) {
  30583. if (this._parser.options._collection$_map.$index(0, $name) == null)
  30584. throw H.wrapException(P.ArgumentError$('Could not find an option named "' + H.S($name) + '".'));
  30585. return this._parsed.containsKey$1($name);
  30586. }
  30587. };
  30588. G.Option.prototype = {
  30589. getOrDefault$1: function(value) {
  30590. var t1;
  30591. if (value != null)
  30592. return value;
  30593. if (this.type === C.OptionType_qyr) {
  30594. t1 = this.defaultsTo;
  30595. return t1 == null ? H.setRuntimeTypeInfo([], type$.JSArray_legacy_String) : t1;
  30596. }
  30597. return this.defaultsTo;
  30598. }
  30599. };
  30600. G.OptionType.prototype = {};
  30601. G.Parser0.prototype = {
  30602. parse$0: function() {
  30603. var commandResults, commandName, commandParser, error, t1, t2, t4, t5, t6, t7, t8, t9, command, exception, _i, _this = this,
  30604. t3 = _this.args;
  30605. t3.toList$0(0);
  30606. commandResults = null;
  30607. for (t4 = _this.rest, t5 = _this.grammar, t6 = !t5.allowTrailingOptions, t7 = t5.commands; !t3.get$isEmpty(t3);) {
  30608. t8 = t3._collection$_head;
  30609. t9 = t8 === t3._collection$_tail;
  30610. if (t9)
  30611. H.throwExpression(H.IterableElementError_noElement());
  30612. t8 = t3._collection$_table[t8];
  30613. if (t8 === "--") {
  30614. t3.removeFirst$0();
  30615. break;
  30616. }
  30617. if (t9)
  30618. H.throwExpression(H.IterableElementError_noElement());
  30619. command = t7._collection$_map.$index(0, t8);
  30620. if (command != null) {
  30621. if (t4.length !== 0)
  30622. H.throwExpression(Z.ArgParserException$("Cannot specify arguments before a command.", null));
  30623. commandName = t3.removeFirst$0();
  30624. t6 = type$.JSArray_legacy_String;
  30625. t7 = H.setRuntimeTypeInfo([], t6);
  30626. C.JSArray_methods.addAll$1(t7, t4);
  30627. commandParser = new G.Parser0(commandName, _this, command, t3, t7, P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.dynamic));
  30628. try {
  30629. commandResults = commandParser.parse$0();
  30630. } catch (exception) {
  30631. t3 = H.unwrapException(exception);
  30632. if (t3 instanceof Z.ArgParserException) {
  30633. error = t3;
  30634. if (commandName == null)
  30635. throw exception;
  30636. t3 = error.message;
  30637. t1 = H.setRuntimeTypeInfo([], t6);
  30638. J.add$1$ax(t1, commandName);
  30639. for (t4 = error.commands, t5 = t4.length, _i = 0; _i < t5; ++_i) {
  30640. t2 = t4[_i];
  30641. J.add$1$ax(t1, t2);
  30642. }
  30643. throw H.wrapException(Z.ArgParserException$(t3, t1));
  30644. } else
  30645. throw exception;
  30646. }
  30647. C.JSArray_methods.set$length(t4, 0);
  30648. break;
  30649. }
  30650. if (_this.parseSoloOption$0())
  30651. continue;
  30652. if (_this.parseAbbreviation$1(_this))
  30653. continue;
  30654. if (_this.parseLongOption$0())
  30655. continue;
  30656. if (t6)
  30657. break;
  30658. t4.push(t3.removeFirst$0());
  30659. }
  30660. t5.options._collection$_map.forEach$1(0, new G.Parser_parse_closure(_this));
  30661. C.JSArray_methods.addAll$1(t4, t3);
  30662. t3.clear$0(0);
  30663. return new V.ArgResults(t5, _this.results, _this.commandName, new P.UnmodifiableListView(t4, type$.UnmodifiableListView_legacy_String));
  30664. },
  30665. readNextArgAsValue$1: function(option) {
  30666. var t1 = this.args,
  30667. t2 = t1.get$isEmpty(t1),
  30668. t3 = 'Missing argument for "' + option.name + '".';
  30669. if (t2)
  30670. H.throwExpression(Z.ArgParserException$(t3, null));
  30671. this.setOption$3(this.results, option, t1.get$first(t1));
  30672. t1.removeFirst$0();
  30673. },
  30674. parseSoloOption$0: function() {
  30675. var opt, option, t2, _this = this,
  30676. t1 = _this.args;
  30677. if (t1.get$first(t1).length !== 2)
  30678. return false;
  30679. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  30680. return false;
  30681. opt = t1.get$first(t1)[1];
  30682. if (!G._isLetterOrDigit(C.JSString_methods._codeUnitAt$1(opt, 0)))
  30683. return false;
  30684. option = _this.grammar.findByAbbreviation$1(opt);
  30685. if (option == null) {
  30686. t1 = _this.parent;
  30687. t2 = 'Could not find an option or flag "-' + opt + '".';
  30688. if (t1 == null)
  30689. H.throwExpression(Z.ArgParserException$(t2, null));
  30690. return t1.parseSoloOption$0();
  30691. }
  30692. t1.removeFirst$0();
  30693. if (option.type === C.OptionType_nMZ)
  30694. _this.results.$indexSet(0, option.name, true);
  30695. else
  30696. _this.readNextArgAsValue$1(option);
  30697. return true;
  30698. },
  30699. parseAbbreviation$1: function(innermostCommand) {
  30700. var index, t2, t3, lettersAndDigits, rest, c, first, i, i0, _this = this,
  30701. t1 = _this.args;
  30702. if (t1.get$first(t1).length < 2)
  30703. return false;
  30704. if (!J.startsWith$1$s(t1.get$first(t1), "-"))
  30705. return false;
  30706. index = 1;
  30707. while (true) {
  30708. t2 = t1._collection$_head;
  30709. t3 = t2 === t1._collection$_tail;
  30710. if (t3)
  30711. H.throwExpression(H.IterableElementError_noElement());
  30712. t2 = t1._collection$_table[t2];
  30713. if (index < t2.length) {
  30714. if (t3)
  30715. H.throwExpression(H.IterableElementError_noElement());
  30716. t2 = J._codeUnitAt$1$s(t2, index);
  30717. if (!(t2 >= 65 && t2 <= 90))
  30718. if (!(t2 >= 97 && t2 <= 122))
  30719. t2 = t2 >= 48 && t2 <= 57;
  30720. else
  30721. t2 = true;
  30722. else
  30723. t2 = true;
  30724. } else
  30725. t2 = false;
  30726. if (!t2)
  30727. break;
  30728. ++index;
  30729. }
  30730. if (index === 1)
  30731. return false;
  30732. lettersAndDigits = J.substring$2$s(t1.get$first(t1), 1, index);
  30733. rest = J.substring$1$s(t1.get$first(t1), index);
  30734. if (C.JSString_methods.contains$1(rest, "\n") || C.JSString_methods.contains$1(rest, "\r"))
  30735. return false;
  30736. c = C.JSString_methods.substring$2(lettersAndDigits, 0, 1);
  30737. first = _this.grammar.findByAbbreviation$1(c);
  30738. if (first == null) {
  30739. t1 = _this.parent;
  30740. t2 = string$.Could_ + c + '".';
  30741. if (t1 == null)
  30742. H.throwExpression(Z.ArgParserException$(t2, null));
  30743. return t1.parseAbbreviation$1(innermostCommand);
  30744. } else if (first.type !== C.OptionType_nMZ)
  30745. _this.setOption$3(_this.results, first, C.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
  30746. else {
  30747. t2 = 'Option "-' + c + '" is a flag and cannot handle value "' + C.JSString_methods.substring$1(lettersAndDigits, 1) + rest + '".';
  30748. if (rest !== "")
  30749. H.throwExpression(Z.ArgParserException$(t2, null));
  30750. for (t2 = lettersAndDigits.length, i = 0; i < t2; i = i0) {
  30751. i0 = i + 1;
  30752. innermostCommand.parseShortFlag$1(C.JSString_methods.substring$2(lettersAndDigits, i, i0));
  30753. }
  30754. }
  30755. t1.removeFirst$0();
  30756. return true;
  30757. },
  30758. parseShortFlag$1: function(c) {
  30759. var t1, t2,
  30760. option = this.grammar.findByAbbreviation$1(c);
  30761. if (option == null) {
  30762. t1 = this.parent;
  30763. t2 = string$.Could_ + c + '".';
  30764. if (t1 == null)
  30765. H.throwExpression(Z.ArgParserException$(t2, null));
  30766. t1.parseShortFlag$1(c);
  30767. return;
  30768. }
  30769. t1 = option.type;
  30770. t2 = 'Option "-' + c + '" must be a flag to be in a collapsed "-".';
  30771. if (t1 !== C.OptionType_nMZ)
  30772. H.throwExpression(Z.ArgParserException$(t2, null));
  30773. this.results.$indexSet(0, option.name, true);
  30774. },
  30775. parseLongOption$0: function() {
  30776. var index, t2, $name, t3, i, t4, t5, value, option, _this = this, _null = null,
  30777. _s32_ = 'Could not find an option named "',
  30778. t1 = _this.args;
  30779. if (!J.startsWith$1$s(t1.get$first(t1), "--"))
  30780. return false;
  30781. index = J.indexOf$1$asx(t1.get$first(t1), "=");
  30782. t2 = index === -1;
  30783. $name = t2 ? J.substring$1$s(t1.get$first(t1), 2) : J.substring$2$s(t1.get$first(t1), 2, index);
  30784. for (t3 = $name.length, i = 0; i !== t3; ++i) {
  30785. t4 = C.JSString_methods._codeUnitAt$1($name, i);
  30786. if (!(t4 >= 65 && t4 <= 90))
  30787. if (!(t4 >= 97 && t4 <= 122))
  30788. t5 = t4 >= 48 && t4 <= 57;
  30789. else
  30790. t5 = true;
  30791. else
  30792. t5 = true;
  30793. if (!(t5 || t4 === 45 || t4 === 95))
  30794. return false;
  30795. }
  30796. value = t2 ? _null : J.substring$1$s(t1.get$first(t1), index + 1);
  30797. t2 = value != null;
  30798. if (t2)
  30799. t3 = C.JSString_methods.contains$1(value, "\n") || C.JSString_methods.contains$1(value, "\r");
  30800. else
  30801. t3 = false;
  30802. if (t3)
  30803. return false;
  30804. t3 = _this.grammar.options._collection$_map;
  30805. option = t3.$index(0, $name);
  30806. if (option != null) {
  30807. t1.removeFirst$0();
  30808. if (option.type === C.OptionType_nMZ) {
  30809. t1 = 'Flag option "' + $name + '" should not be given a value.';
  30810. if (t2)
  30811. H.throwExpression(Z.ArgParserException$(t1, _null));
  30812. _this.results.$indexSet(0, option.name, true);
  30813. } else if (t2)
  30814. _this.setOption$3(_this.results, option, value);
  30815. else
  30816. _this.readNextArgAsValue$1(option);
  30817. } else if (C.JSString_methods.startsWith$1($name, "no-")) {
  30818. $name = C.JSString_methods.substring$1($name, 3);
  30819. option = t3.$index(0, $name);
  30820. if (option == null) {
  30821. t1 = _this.parent;
  30822. t2 = _s32_ + $name + '".';
  30823. if (t1 == null)
  30824. H.throwExpression(Z.ArgParserException$(t2, _null));
  30825. return t1.parseLongOption$0();
  30826. }
  30827. t1.removeFirst$0();
  30828. t1 = option.type;
  30829. t2 = 'Cannot negate non-flag option "' + $name + '".';
  30830. if (t1 !== C.OptionType_nMZ)
  30831. H.throwExpression(Z.ArgParserException$(t2, _null));
  30832. t1 = option.negatable;
  30833. t2 = 'Cannot negate option "' + $name + '".';
  30834. if (!t1)
  30835. H.throwExpression(Z.ArgParserException$(t2, _null));
  30836. _this.results.$indexSet(0, option.name, false);
  30837. } else {
  30838. t1 = _this.parent;
  30839. t2 = _s32_ + $name + '".';
  30840. if (t1 == null)
  30841. H.throwExpression(Z.ArgParserException$(t2, _null));
  30842. return t1.parseLongOption$0();
  30843. }
  30844. return true;
  30845. },
  30846. setOption$3: function(results, option, value) {
  30847. var list, t1, t2, t3, _i, element;
  30848. if (option.type !== C.OptionType_qyr) {
  30849. this._validateAllowed$2(option, value);
  30850. results.$indexSet(0, option.name, value);
  30851. return;
  30852. }
  30853. list = results.putIfAbsent$2(option.name, new G.Parser_setOption_closure());
  30854. if (option.splitCommas)
  30855. for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
  30856. element = t1[_i];
  30857. this._validateAllowed$2(option, element);
  30858. t3.add$1(list, element);
  30859. }
  30860. else {
  30861. this._validateAllowed$2(option, value);
  30862. J.add$1$ax(list, value);
  30863. }
  30864. },
  30865. _validateAllowed$2: function(option, value) {
  30866. var t2,
  30867. t1 = option.allowed;
  30868. if (t1 == null)
  30869. return;
  30870. t1 = C.JSArray_methods.contains$1(t1, value);
  30871. t2 = '"' + H.S(value) + '" is not an allowed value for option "' + option.name + '".';
  30872. if (!t1)
  30873. H.throwExpression(Z.ArgParserException$(t2, null));
  30874. }
  30875. };
  30876. G.Parser_parse_closure.prototype = {
  30877. call$2: function($name, option) {
  30878. var t1 = option.callback;
  30879. if (t1 == null)
  30880. return;
  30881. t1.call$1(option.getOrDefault$1(this.$this.results.$index(0, $name)));
  30882. },
  30883. $signature: 280
  30884. };
  30885. G.Parser_setOption_closure.prototype = {
  30886. call$0: function() {
  30887. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  30888. },
  30889. $signature: 40
  30890. };
  30891. G.Usage.prototype = {
  30892. generate$0: function() {
  30893. var t1, t2, t3, t4, _i, optionOrSeparator, t5, t6, allowedNames, t7, t8, _i0, $name, isDefault, t9, _this = this;
  30894. _this.buffer = new P.StringBuffer("");
  30895. _this.calculateColumnWidths$0();
  30896. for (t1 = _this.optionsAndSeparators, t2 = t1.length, t3 = type$.legacy_Option, t4 = type$.legacy_List_dynamic, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30897. optionOrSeparator = t1[_i];
  30898. if (typeof optionOrSeparator == "string") {
  30899. t5 = _this.buffer;
  30900. t6 = t5._contents;
  30901. t5._contents = (t6.length !== 0 ? t5._contents = t6 + "\n\n" : t6) + optionOrSeparator;
  30902. _this.newlinesNeeded = 1;
  30903. continue;
  30904. }
  30905. t3._as(optionOrSeparator);
  30906. if (optionOrSeparator.hide)
  30907. continue;
  30908. t5 = optionOrSeparator.abbr;
  30909. _this.write$2(0, 0, t5 == null ? "" : "-" + t5 + ", ");
  30910. _this.write$2(0, 1, _this.getLongOption$1(optionOrSeparator));
  30911. t5 = optionOrSeparator.help;
  30912. if (t5 != null)
  30913. _this.write$2(0, 2, t5);
  30914. t5 = optionOrSeparator.allowedHelp;
  30915. if (t5 != null) {
  30916. allowedNames = J.toList$1$growable$ax(t5.get$keys(t5), false);
  30917. if (!!allowedNames.immutable$list)
  30918. H.throwExpression(P.UnsupportedError$("sort"));
  30919. t6 = allowedNames.length - 1;
  30920. if (t6 - 0 <= 32)
  30921. H.Sort__insertionSort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30922. else
  30923. H.Sort__dualPivotQuicksort(allowedNames, 0, t6, J._interceptors_JSArray__compareAny$closure());
  30924. ++_this.newlinesNeeded;
  30925. _this.numHelpLines = _this.currentColumn = 0;
  30926. for (t6 = allowedNames.length, t7 = optionOrSeparator.defaultsTo, t8 = t4._is(t7), _i0 = 0; _i0 < allowedNames.length; allowedNames.length === t6 || (0, H.throwConcurrentModificationError)(allowedNames), ++_i0) {
  30927. $name = allowedNames[_i0];
  30928. isDefault = t8 ? C.JSArray_methods.contains$1(t7, $name) : t7 == null ? $name == null : t7 === $name;
  30929. t9 = " [" + H.S($name) + "]";
  30930. _this.write$2(0, 1, t9 + (isDefault ? " (default)" : ""));
  30931. _this.write$2(0, 2, t5.$index(0, $name));
  30932. }
  30933. ++_this.newlinesNeeded;
  30934. _this.numHelpLines = _this.currentColumn = 0;
  30935. } else if (optionOrSeparator.allowed != null)
  30936. _this.write$2(0, 2, _this.buildAllowedList$1(optionOrSeparator));
  30937. else {
  30938. t5 = optionOrSeparator.type;
  30939. if (t5 === C.OptionType_nMZ) {
  30940. if (optionOrSeparator.defaultsTo === true)
  30941. _this.write$2(0, 2, "(defaults to on)");
  30942. } else if (t5 === C.OptionType_qyr) {
  30943. t5 = optionOrSeparator.defaultsTo;
  30944. if (t5 != null && J.get$isNotEmpty$asx(t5))
  30945. _this.write$2(0, 2, "(defaults to " + J.map$1$ax(t5, new G.Usage_generate_closure()).join$1(0, ", ") + ")");
  30946. } else {
  30947. t5 = optionOrSeparator.defaultsTo;
  30948. if (t5 != null)
  30949. _this.write$2(0, 2, '(defaults to "' + H.S(t5) + '")');
  30950. }
  30951. }
  30952. }
  30953. return J.toString$0$(_this.buffer);
  30954. },
  30955. getLongOption$1: function(option) {
  30956. var t1 = option.name,
  30957. result = option.negatable ? "--[no-]" + t1 : "--" + t1;
  30958. t1 = option.valueHelp;
  30959. return t1 != null ? result + ("=<" + t1 + ">") : result;
  30960. },
  30961. calculateColumnWidths$0: function() {
  30962. var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, allowed, isDefault, t7;
  30963. for (t1 = this.optionsAndSeparators, t2 = t1.length, t3 = type$.legacy_List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  30964. option = t1[_i];
  30965. if (!(option instanceof G.Option))
  30966. continue;
  30967. if (option.hide)
  30968. continue;
  30969. t4 = option.abbr;
  30970. abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
  30971. title = Math.max(title, this.getLongOption$1(option).length);
  30972. t4 = option.allowedHelp;
  30973. if (t4 != null)
  30974. for (t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
  30975. allowed = t4.get$current(t4);
  30976. isDefault = t6 ? C.JSArray_methods.contains$1(t5, allowed) : t5 == null ? allowed == null : t5 === allowed;
  30977. t7 = " [" + H.S(allowed) + "]";
  30978. title = Math.max(title, (t7 + (isDefault ? " (default)" : "")).length);
  30979. }
  30980. }
  30981. this.columnWidths = H.setRuntimeTypeInfo([abbr, title + 4], type$.JSArray_legacy_int);
  30982. },
  30983. write$2: function(_, column, text) {
  30984. var t1, _i,
  30985. lines = H.setRuntimeTypeInfo(text.split("\n"), type$.JSArray_String);
  30986. this.columnWidths.length;
  30987. while (true) {
  30988. if (!(lines.length !== 0 && J.trim$0$s(lines[0]) === ""))
  30989. break;
  30990. if (!!lines.fixed$length)
  30991. H.throwExpression(P.UnsupportedError$("removeRange"));
  30992. P.RangeError_checkValidRange(0, 1, lines.length);
  30993. lines.splice(0, 1);
  30994. }
  30995. while (true) {
  30996. t1 = lines.length;
  30997. if (!(t1 !== 0 && J.trim$0$s(lines[t1 - 1]) === ""))
  30998. break;
  30999. lines.pop();
  31000. }
  31001. for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, H.throwConcurrentModificationError)(lines), ++_i)
  31002. this.writeLine$2(column, lines[_i]);
  31003. },
  31004. writeLine$2: function(column, text) {
  31005. var t1, t2, _this = this;
  31006. for (; t1 = _this.newlinesNeeded, t1 > 0;) {
  31007. _this.buffer._contents += "\n";
  31008. _this.newlinesNeeded = t1 - 1;
  31009. }
  31010. for (; t1 = _this.currentColumn, t1 !== column;) {
  31011. t2 = _this.buffer;
  31012. if (t1 < 2)
  31013. t2._contents += C.JSString_methods.$mul(" ", _this.columnWidths[t1]);
  31014. else
  31015. t2._contents += "\n";
  31016. _this.currentColumn = (_this.currentColumn + 1) % 3;
  31017. }
  31018. t1 = _this.columnWidths;
  31019. t1.length;
  31020. t2 = _this.buffer;
  31021. if (column < 2)
  31022. t2._contents += J.padRight$1$s(text, t1[column]);
  31023. else {
  31024. t2.toString;
  31025. t2._contents += H.S(text);
  31026. }
  31027. _this.currentColumn = (_this.currentColumn + 1) % 3;
  31028. t1 = column === 2;
  31029. if (t1)
  31030. ++_this.newlinesNeeded;
  31031. if (t1)
  31032. ++_this.numHelpLines;
  31033. else
  31034. _this.numHelpLines = 0;
  31035. },
  31036. buildAllowedList$1: function(option) {
  31037. var t2, first, _i, t3, allowed,
  31038. t1 = option.defaultsTo,
  31039. isDefault = type$.legacy_List_dynamic._is(t1) ? C.JSArray_methods.get$contains(t1) : new G.Usage_buildAllowedList_closure(option);
  31040. for (t1 = option.allowed, t2 = t1.length, first = true, _i = 0, t3 = "["; _i < t2; ++_i, first = false) {
  31041. allowed = t1[_i];
  31042. if (!first)
  31043. t3 += ", ";
  31044. t3 += H.S(allowed);
  31045. if (isDefault.call$1(allowed))
  31046. t3 += " (default)";
  31047. }
  31048. t1 = t3 + "]";
  31049. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31050. }
  31051. };
  31052. G.Usage_generate_closure.prototype = {
  31053. call$1: function(value) {
  31054. return '"' + H.S(value) + '"';
  31055. },
  31056. $signature: 106
  31057. };
  31058. G.Usage_buildAllowedList_closure.prototype = {
  31059. call$1: function(value) {
  31060. var t1 = this.option.defaultsTo;
  31061. return value == null ? t1 == null : value === t1;
  31062. },
  31063. $signature: 151
  31064. };
  31065. V.ErrorResult.prototype = {
  31066. complete$1: function(completer) {
  31067. completer.completeError$2(this.error, this.stackTrace);
  31068. },
  31069. get$hashCode: function(_) {
  31070. return (J.get$hashCode$(this.error) ^ J.get$hashCode$(this.stackTrace) ^ 492929599) >>> 0;
  31071. },
  31072. $eq: function(_, other) {
  31073. if (other == null)
  31074. return false;
  31075. return other instanceof V.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace == other.stackTrace;
  31076. },
  31077. $isResult: 1
  31078. };
  31079. F.ValueResult.prototype = {
  31080. complete$1: function(completer) {
  31081. completer.complete$1(this.value);
  31082. },
  31083. get$hashCode: function(_) {
  31084. return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
  31085. },
  31086. $eq: function(_, other) {
  31087. if (other == null)
  31088. return false;
  31089. return other instanceof F.ValueResult && J.$eq$(this.value, other.value);
  31090. },
  31091. $isResult: 1
  31092. };
  31093. Y.StreamCompleter.prototype = {
  31094. setSourceStream$1: function(sourceStream) {
  31095. var t1 = this._stream_completer$_stream;
  31096. if (t1._sourceStream != null)
  31097. throw H.wrapException(P.StateError$("Source stream already set"));
  31098. t1._sourceStream = sourceStream;
  31099. if (t1._stream_completer$_controller != null)
  31100. t1._linkStreamToController$0();
  31101. },
  31102. setError$2: function(error, stackTrace) {
  31103. var t1 = this.$ti._eval$1("1*");
  31104. this.setSourceStream$1(P.Stream_Stream$fromFuture(P.Future_Future$error(error, stackTrace, t1), t1));
  31105. },
  31106. setError$1: function(error) {
  31107. return this.setError$2(error, null);
  31108. }
  31109. };
  31110. Y._CompleterStream.prototype = {
  31111. listen$4$cancelOnError$onDone$onError: function(_, onData, cancelOnError, onDone, onError) {
  31112. var t1, _this = this, _null = null;
  31113. if (_this._stream_completer$_controller == null) {
  31114. t1 = _this._sourceStream;
  31115. if (t1 != null && !t1.get$isBroadcast())
  31116. return _this._sourceStream.listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  31117. _this._stream_completer$_controller = P.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._eval$1("1*"));
  31118. if (_this._sourceStream != null)
  31119. _this._linkStreamToController$0();
  31120. }
  31121. t1 = _this._stream_completer$_controller;
  31122. t1.toString;
  31123. return new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  31124. },
  31125. listen$3$onDone$onError: function($receiver, onData, onDone, onError) {
  31126. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, onDone, onError);
  31127. },
  31128. listen$1: function($receiver, onData) {
  31129. return this.listen$4$cancelOnError$onDone$onError($receiver, onData, null, null, null);
  31130. },
  31131. _linkStreamToController$0: function() {
  31132. var t1 = this._stream_completer$_controller.addStream$2$cancelOnError(this._sourceStream, false),
  31133. t2 = this._stream_completer$_controller;
  31134. t1.whenComplete$1(t2.get$close(t2));
  31135. }
  31136. };
  31137. L.StreamGroup.prototype = {
  31138. add$1: function(_, stream) {
  31139. var t1, _this = this;
  31140. if (_this._closed)
  31141. throw H.wrapException(P.StateError$("Can't add a Stream to a closed StreamGroup."));
  31142. t1 = _this._stream_group$_state;
  31143. if (t1 === C._StreamGroupState_dormant)
  31144. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure());
  31145. else if (t1 === C._StreamGroupState_canceled)
  31146. return stream.listen$1(0, null).cancel$0();
  31147. else
  31148. _this._subscriptions.putIfAbsent$2(stream, new L.StreamGroup_add_closure0(_this, stream));
  31149. return null;
  31150. },
  31151. remove$1: function(_, stream) {
  31152. var t1 = this._subscriptions,
  31153. subscription = t1.remove$1(0, stream),
  31154. future = subscription == null ? null : subscription.cancel$0();
  31155. if (this._closed && t1.get$isEmpty(t1))
  31156. this._controller.close$0(0);
  31157. return future;
  31158. },
  31159. _onListen$0: function() {
  31160. this._stream_group$_state = C._StreamGroupState_listening;
  31161. this._subscriptions.forEach$1(0, new L.StreamGroup__onListen_closure(this));
  31162. },
  31163. _onPause$0: function() {
  31164. this._stream_group$_state = C._StreamGroupState_paused;
  31165. for (var t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  31166. t1.get$current(t1).pause$0(0);
  31167. },
  31168. _onResume$0: function() {
  31169. this._stream_group$_state = C._StreamGroupState_listening;
  31170. for (var t1 = this._subscriptions, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  31171. t1.get$current(t1).resume$0(0);
  31172. },
  31173. _onCancel$0: function() {
  31174. var t1, t2, t3, futures;
  31175. this._stream_group$_state = C._StreamGroupState_canceled;
  31176. t1 = this._subscriptions;
  31177. t2 = t1.get$values(t1);
  31178. t2 = H.MappedIterable_MappedIterable(t2, new L.StreamGroup__onCancel_closure(this), H._instanceType(t2)._eval$1("Iterable.E"), type$.legacy_Future_void);
  31179. t3 = H._instanceType(t2)._eval$1("WhereIterable<Iterable.E>");
  31180. futures = P.List_List$from(new H.WhereIterable(t2, new L.StreamGroup__onCancel_closure0(), t3), true, t3._eval$1("Iterable.E"));
  31181. t1.clear$0(0);
  31182. return futures.length === 0 ? null : P.Future_wait(futures, type$.void);
  31183. },
  31184. _listenToStream$1: function(stream) {
  31185. var t1 = this._controller,
  31186. subscription = stream.listen$3$onDone$onError(0, t1.get$add(t1), new L.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
  31187. if (this._stream_group$_state === C._StreamGroupState_paused)
  31188. subscription.pause$0(0);
  31189. return subscription;
  31190. }
  31191. };
  31192. L.StreamGroup_add_closure.prototype = {
  31193. call$0: function() {
  31194. return null;
  31195. },
  31196. $signature: 0
  31197. };
  31198. L.StreamGroup_add_closure0.prototype = {
  31199. call$0: function() {
  31200. return this.$this._listenToStream$1(this.stream);
  31201. },
  31202. $signature: function() {
  31203. return this.$this.$ti._eval$1("StreamSubscription<1*>*()");
  31204. }
  31205. };
  31206. L.StreamGroup__onListen_closure.prototype = {
  31207. call$2: function(stream, subscription) {
  31208. var t1;
  31209. if (subscription != null)
  31210. return;
  31211. t1 = this.$this;
  31212. t1._subscriptions.$indexSet(0, stream, t1._listenToStream$1(stream));
  31213. },
  31214. $signature: function() {
  31215. return this.$this.$ti._eval$1("Null(Stream<1*>*,StreamSubscription<1*>*)");
  31216. }
  31217. };
  31218. L.StreamGroup__onCancel_closure.prototype = {
  31219. call$1: function(subscription) {
  31220. return subscription.cancel$0();
  31221. },
  31222. $signature: function() {
  31223. return this.$this.$ti._eval$1("Future<~>*(StreamSubscription<1*>*)");
  31224. }
  31225. };
  31226. L.StreamGroup__onCancel_closure0.prototype = {
  31227. call$1: function(future) {
  31228. return future != null;
  31229. },
  31230. $signature: 302
  31231. };
  31232. L.StreamGroup__listenToStream_closure.prototype = {
  31233. call$0: function() {
  31234. return this.$this.remove$1(0, this.stream);
  31235. },
  31236. "call*": "call$0",
  31237. $requiredArgCount: 0,
  31238. $signature: 139
  31239. };
  31240. L._StreamGroupState.prototype = {
  31241. toString$0: function(_) {
  31242. return this.name;
  31243. }
  31244. };
  31245. G.StreamQueue.prototype = {
  31246. get$next: function() {
  31247. var t1 = this.$ti,
  31248. t2 = new P._Future($.Zone__current, t1._eval$1("_Future<1*>"));
  31249. this._addRequest$1(new G._NextRequest(new P._AsyncCompleter(t2, t1._eval$1("_AsyncCompleter<1*>")), t1._eval$1("_NextRequest<1*>")));
  31250. return t2;
  31251. },
  31252. _updateRequests$0: function() {
  31253. var t1, t2, t3, _this = this;
  31254. for (t1 = _this._requestQueue, t2 = _this._eventQueue; !t1.get$isEmpty(t1);) {
  31255. t3 = t1._collection$_head;
  31256. if (t3 === t1._collection$_tail)
  31257. H.throwExpression(H.IterableElementError_noElement());
  31258. if (t1._collection$_table[t3].update$2(t2, _this._isDone))
  31259. t1.removeFirst$0();
  31260. else
  31261. return;
  31262. }
  31263. if (!_this._isDone)
  31264. _this._stream_queue$_subscription.pause$0(0);
  31265. },
  31266. _ensureListening$0: function() {
  31267. var t1, _this = this;
  31268. if (_this._isDone)
  31269. return;
  31270. t1 = _this._stream_queue$_subscription;
  31271. if (t1 == null)
  31272. _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(0, new G.StreamQueue__ensureListening_closure(_this), new G.StreamQueue__ensureListening_closure0(_this), new G.StreamQueue__ensureListening_closure1(_this));
  31273. else
  31274. t1.resume$0(0);
  31275. },
  31276. _addResult$1: function(result) {
  31277. ++this._eventsReceived;
  31278. this._eventQueue._queue_list$_add$1(result);
  31279. this._updateRequests$0();
  31280. },
  31281. _addRequest$1: function(request) {
  31282. var _this = this,
  31283. t1 = _this._requestQueue;
  31284. if (t1._collection$_head === t1._collection$_tail) {
  31285. if (request.update$2(_this._eventQueue, _this._isDone))
  31286. return;
  31287. _this._ensureListening$0();
  31288. }
  31289. t1._add$1(request);
  31290. }
  31291. };
  31292. G.StreamQueue__ensureListening_closure.prototype = {
  31293. call$1: function(data) {
  31294. var t1 = this.$this;
  31295. t1._addResult$1(new F.ValueResult(data, t1.$ti._eval$1("ValueResult<1*>")));
  31296. },
  31297. $signature: function() {
  31298. return this.$this.$ti._eval$1("Null(1*)");
  31299. }
  31300. };
  31301. G.StreamQueue__ensureListening_closure1.prototype = {
  31302. call$2: function(error, stackTrace) {
  31303. this.$this._addResult$1(new V.ErrorResult(error, stackTrace));
  31304. },
  31305. "call*": "call$2",
  31306. $requiredArgCount: 2,
  31307. $signature: 133
  31308. };
  31309. G.StreamQueue__ensureListening_closure0.prototype = {
  31310. call$0: function() {
  31311. var t1 = this.$this;
  31312. t1._stream_queue$_subscription = null;
  31313. t1._isDone = true;
  31314. t1._updateRequests$0();
  31315. },
  31316. "call*": "call$0",
  31317. $requiredArgCount: 0,
  31318. $signature: 0
  31319. };
  31320. G._NextRequest.prototype = {
  31321. update$2: function(events, isDone) {
  31322. if (!events.get$isEmpty(events)) {
  31323. events.removeFirst$0().complete$1(this._completer);
  31324. return true;
  31325. }
  31326. if (isDone) {
  31327. this._completer.completeError$2(new P.StateError("No elements"), P.StackTrace_current());
  31328. return true;
  31329. }
  31330. return false;
  31331. },
  31332. $is_EventRequest: 1
  31333. };
  31334. Q.Repl.prototype = {};
  31335. Q.closure113.prototype = {
  31336. call$1: function(text) {
  31337. return true;
  31338. },
  31339. $signature: 5
  31340. };
  31341. B.ReplAdapter.prototype = {
  31342. runAsync$0: function() {
  31343. var $async$runAsync$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  31344. switch ($async$errorCode) {
  31345. case 2:
  31346. $async$next = $async$nextWhenCanceled;
  31347. $async$goto = $async$next.pop();
  31348. break;
  31349. case 1:
  31350. $async$currentError = $async$result;
  31351. $async$goto = $async$handler;
  31352. }
  31353. while (true)
  31354. switch ($async$goto) {
  31355. case 0:
  31356. // Function start
  31357. t1 = J.get$isTTY$x(self.process.stdin);
  31358. output = (t1 == null ? false : t1) ? self.process.stdout : null;
  31359. t1 = $async$self.repl;
  31360. $prompt = t1.prompt;
  31361. $async$self.rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: $prompt});
  31362. controller = P.StreamController_StreamController(null, null, null, null, false, type$.legacy_String);
  31363. queue = new G.StreamQueue(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")), Q.QueueList$(null, type$.legacy_Result_legacy_String), P.ListQueue$(type$.legacy__EventRequest_dynamic), type$.StreamQueue_legacy_String);
  31364. J.on$2$x($async$self.rl, "line", P.allowInterop(new B.ReplAdapter_runAsync_closure(controller)));
  31365. prompt0 = t1.continuation, prompt1 = $prompt, statement = "";
  31366. case 3:
  31367. // for condition
  31368. // trivial condition
  31369. t2 = J.get$isTTY$x(self.process.stdin);
  31370. if (t2 == null ? false : t2)
  31371. J.write$1$x(self.process.stdout, prompt1);
  31372. $async$goto = 5;
  31373. return P._asyncStarHelper(queue.get$next(), $async$runAsync$0, $async$controller);
  31374. case 5:
  31375. // returning from await.
  31376. line = $async$result;
  31377. t2 = J.get$isTTY$x(self.process.stdin);
  31378. if (!(t2 == null ? false : t2)) {
  31379. line0 = prompt1 + H.S(line);
  31380. toZone = $.printToZone;
  31381. if (toZone == null)
  31382. H.printString(line0);
  31383. else
  31384. toZone.call$1(line0);
  31385. }
  31386. statement = C.JSString_methods.$add(statement, line);
  31387. $async$goto = t1.validator.call$1(statement) ? 6 : 8;
  31388. break;
  31389. case 6:
  31390. // then
  31391. $async$goto = 9;
  31392. $async$nextWhenCanceled = [1];
  31393. return P._asyncStarHelper(P._IterationMarker_yieldSingle(statement), $async$runAsync$0, $async$controller);
  31394. case 9:
  31395. // after yield
  31396. J.setPrompt$1$x($async$self.rl, $prompt);
  31397. prompt1 = $prompt;
  31398. statement = "";
  31399. // goto join
  31400. $async$goto = 7;
  31401. break;
  31402. case 8:
  31403. // else
  31404. statement += "\n";
  31405. J.setPrompt$1$x($async$self.rl, prompt0);
  31406. prompt1 = prompt0;
  31407. case 7:
  31408. // join
  31409. // goto for condition
  31410. $async$goto = 3;
  31411. break;
  31412. case 4:
  31413. // after for
  31414. case 1:
  31415. // return
  31416. return P._asyncStarHelper(null, 0, $async$controller);
  31417. case 2:
  31418. // rethrow
  31419. return P._asyncStarHelper($async$currentError, 1, $async$controller);
  31420. }
  31421. });
  31422. var $async$goto = 0,
  31423. $async$controller = P._makeAsyncStarStreamController($async$runAsync$0, type$.legacy_String),
  31424. $async$nextWhenCanceled, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $prompt, controller, queue, prompt0, prompt1, statement, t2, line, line0, toZone, t1, output;
  31425. return P._streamOfController($async$controller);
  31426. }
  31427. };
  31428. B.ReplAdapter_runAsync_closure.prototype = {
  31429. call$1: function(value) {
  31430. this.controller.add$1(0, value);
  31431. },
  31432. call$0: function() {
  31433. return this.call$1(null);
  31434. },
  31435. "call*": "call$1",
  31436. $requiredArgCount: 0,
  31437. $defaultValues: function() {
  31438. return [null];
  31439. },
  31440. $signature: 95
  31441. };
  31442. B.Stdin.prototype = {};
  31443. B.Stdout.prototype = {};
  31444. B.ReadlineModule.prototype = {};
  31445. B.ReadlineOptions.prototype = {};
  31446. B.ReadlineInterface.prototype = {};
  31447. O.EmptyUnmodifiableSet.prototype = {
  31448. get$iterator: function(_) {
  31449. return C.C_EmptyIterator;
  31450. },
  31451. get$length: function(_) {
  31452. return 0;
  31453. },
  31454. cast$1$0: function(_, $T) {
  31455. return new O.EmptyUnmodifiableSet($T._eval$1("EmptyUnmodifiableSet<0*>"));
  31456. },
  31457. contains$1: function(_, element) {
  31458. return false;
  31459. },
  31460. toSet$0: function(_) {
  31461. return P.LinkedHashSet_LinkedHashSet$_empty(this.$ti._eval$1("1*"));
  31462. },
  31463. add$1: function(_, value) {
  31464. return O.EmptyUnmodifiableSet__throw();
  31465. },
  31466. addAll$1: function(_, elements) {
  31467. return O.EmptyUnmodifiableSet__throw();
  31468. },
  31469. $isEfficientLengthIterable: 1,
  31470. $isSet: 1
  31471. };
  31472. U.DefaultEquality.prototype = {};
  31473. U.IterableEquality.prototype = {
  31474. equals$2: function(_, elements1, elements2) {
  31475. var it1, it2, hasNext;
  31476. if (elements1 === elements2)
  31477. return true;
  31478. it1 = J.get$iterator$ax(elements1);
  31479. it2 = J.get$iterator$ax(elements2);
  31480. for (; true;) {
  31481. hasNext = it1.moveNext$0();
  31482. if (hasNext !== it2.moveNext$0())
  31483. return false;
  31484. if (!hasNext)
  31485. return true;
  31486. if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
  31487. return false;
  31488. }
  31489. }
  31490. };
  31491. U.ListEquality.prototype = {
  31492. equals$2: function(_, list1, list2) {
  31493. var t1, $length, t2, i;
  31494. if (list1 == null ? list2 == null : list1 === list2)
  31495. return true;
  31496. if (list1 == null || list2 == null)
  31497. return false;
  31498. t1 = J.getInterceptor$asx(list1);
  31499. $length = t1.get$length(list1);
  31500. t2 = J.getInterceptor$asx(list2);
  31501. if ($length !== t2.get$length(list2))
  31502. return false;
  31503. for (i = 0; i < $length; ++i)
  31504. if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
  31505. return false;
  31506. return true;
  31507. },
  31508. hash$1: function(list) {
  31509. var t1, hash, i;
  31510. for (t1 = list.length, hash = 0, i = 0; i < t1; ++i) {
  31511. hash = hash + J.get$hashCode$(list[i]) & 2147483647;
  31512. hash = hash + (hash << 10 >>> 0) & 2147483647;
  31513. hash ^= hash >>> 6;
  31514. }
  31515. hash = hash + (hash << 3 >>> 0) & 2147483647;
  31516. hash ^= hash >>> 11;
  31517. return hash + (hash << 15 >>> 0) & 2147483647;
  31518. }
  31519. };
  31520. U._MapEntry.prototype = {
  31521. get$hashCode: function(_) {
  31522. return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
  31523. },
  31524. $eq: function(_, other) {
  31525. if (other == null)
  31526. return false;
  31527. return other instanceof U._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
  31528. }
  31529. };
  31530. U.MapEquality.prototype = {
  31531. equals$2: function(_, map1, map2) {
  31532. var equalElementCounts, t1, key, entry, count;
  31533. if (map1 === map2)
  31534. return true;
  31535. if (map1.get$length(map1) !== map2.get$length(map2))
  31536. return false;
  31537. equalElementCounts = P.HashMap_HashMap(type$.legacy__MapEntry, type$.legacy_int);
  31538. for (t1 = J.get$iterator$ax(map1.get$keys(map1)); t1.moveNext$0();) {
  31539. key = t1.get$current(t1);
  31540. entry = new U._MapEntry(this, key, map1.$index(0, key));
  31541. count = equalElementCounts.$index(0, entry);
  31542. equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
  31543. }
  31544. for (t1 = J.get$iterator$ax(map2.get$keys(map2)); t1.moveNext$0();) {
  31545. key = t1.get$current(t1);
  31546. entry = new U._MapEntry(this, key, map2.$index(0, key));
  31547. count = equalElementCounts.$index(0, entry);
  31548. if (count == null || count === 0)
  31549. return false;
  31550. equalElementCounts.$indexSet(0, entry, count - 1);
  31551. }
  31552. return true;
  31553. },
  31554. hash$1: function(map) {
  31555. var t1, hash, key;
  31556. for (t1 = J.get$iterator$ax(map.get$keys(map)), hash = 0; t1.moveNext$0();) {
  31557. key = t1.get$current(t1);
  31558. hash = hash + 3 * J.get$hashCode$(key) + 7 * J.get$hashCode$(map.$index(0, key)) & 2147483647;
  31559. }
  31560. hash = hash + (hash << 3 >>> 0) & 2147483647;
  31561. hash ^= hash >>> 11;
  31562. return hash + (hash << 15 >>> 0) & 2147483647;
  31563. }
  31564. };
  31565. Q.QueueList.prototype = {
  31566. QueueList$1: function(initialCapacity, $E) {
  31567. var t1;
  31568. if (initialCapacity == null || initialCapacity < 8)
  31569. initialCapacity = 8;
  31570. else if ((initialCapacity & initialCapacity - 1) >>> 0 !== 0)
  31571. initialCapacity = Q.QueueList__nextPowerOf2(initialCapacity);
  31572. t1 = new Array(initialCapacity);
  31573. t1.fixed$length = Array;
  31574. this._table = H.setRuntimeTypeInfo(t1, $E._eval$1("JSArray<0*>"));
  31575. },
  31576. add$1: function(_, element) {
  31577. this._queue_list$_add$1(element);
  31578. },
  31579. addAll$1: function(_, iterable) {
  31580. var addCount, $length, t1, endSpace, preSpace, _this = this;
  31581. if (type$.legacy_List_dynamic._is(iterable)) {
  31582. addCount = J.get$length$asx(iterable);
  31583. $length = _this.get$length(_this);
  31584. t1 = $length + addCount;
  31585. if (t1 >= J.get$length$asx(_this._table)) {
  31586. _this._preGrow$1(t1);
  31587. J.setRange$4$ax(_this._table, $length, t1, iterable, 0);
  31588. _this.set$_tail(_this.get$_tail() + addCount);
  31589. } else {
  31590. endSpace = J.get$length$asx(_this._table) - _this.get$_tail();
  31591. t1 = _this._table;
  31592. if (addCount < endSpace) {
  31593. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + addCount, iterable, 0);
  31594. _this.set$_tail(_this.get$_tail() + addCount);
  31595. } else {
  31596. preSpace = addCount - endSpace;
  31597. J.setRange$4$ax(t1, _this.get$_tail(), _this.get$_tail() + endSpace, iterable, 0);
  31598. J.setRange$4$ax(_this._table, 0, preSpace, iterable, endSpace);
  31599. _this.set$_tail(preSpace);
  31600. }
  31601. }
  31602. } else
  31603. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
  31604. _this._queue_list$_add$1(t1.get$current(t1));
  31605. },
  31606. cast$1$0: function(_, $T) {
  31607. var t1 = $T._eval$1("0*"),
  31608. t2 = new Q._CastQueueList(this, null, null, H._instanceType(this)._eval$1("@<QueueList.E*>")._bind$1(t1)._eval$1("_CastQueueList<1,2>"));
  31609. t2._table = J.cast$1$0$ax(this._table, t1);
  31610. return t2;
  31611. },
  31612. toString$0: function(_) {
  31613. return P.IterableBase_iterableToFullString(this, "{", "}");
  31614. },
  31615. addFirst$1: function(element) {
  31616. var _this = this;
  31617. _this.set$_head((_this.get$_head() - 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  31618. J.$indexSet$ax(_this._table, _this.get$_head(), element);
  31619. if (_this.get$_head() == _this.get$_tail())
  31620. _this._grow$0();
  31621. },
  31622. removeFirst$0: function() {
  31623. var result, _this = this;
  31624. if (_this.get$_head() == _this.get$_tail())
  31625. throw H.wrapException(P.StateError$("No element"));
  31626. result = J.$index$asx(_this._table, _this.get$_head());
  31627. J.$indexSet$ax(_this._table, _this.get$_head(), null);
  31628. _this.set$_head((_this.get$_head() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  31629. return result;
  31630. },
  31631. get$length: function(_) {
  31632. return (this.get$_tail() - this.get$_head() & J.get$length$asx(this._table) - 1) >>> 0;
  31633. },
  31634. set$length: function(_, value) {
  31635. var delta, newTail, t1, t2, _this = this;
  31636. if (value < 0)
  31637. throw H.wrapException(P.RangeError$("Length " + value + " may not be negative."));
  31638. delta = value - _this.get$length(_this);
  31639. if (delta >= 0) {
  31640. if (J.get$length$asx(_this._table) <= value)
  31641. _this._preGrow$1(value);
  31642. _this.set$_tail((_this.get$_tail() + delta & J.get$length$asx(_this._table) - 1) >>> 0);
  31643. return;
  31644. }
  31645. newTail = _this.get$_tail() + delta;
  31646. t1 = _this._table;
  31647. if (newTail >= 0)
  31648. J.fillRange$3$ax(t1, newTail, _this.get$_tail(), null);
  31649. else {
  31650. newTail += J.get$length$asx(t1);
  31651. J.fillRange$3$ax(_this._table, 0, _this.get$_tail(), null);
  31652. t1 = _this._table;
  31653. t2 = J.getInterceptor$asx(t1);
  31654. t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
  31655. }
  31656. _this.set$_tail(newTail);
  31657. },
  31658. $index: function(_, index) {
  31659. var _this = this;
  31660. if (index < 0 || index >= _this.get$length(_this))
  31661. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  31662. return J.$index$asx(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0);
  31663. },
  31664. $indexSet: function(_, index, value) {
  31665. var _this = this;
  31666. if (index < 0 || index >= _this.get$length(_this))
  31667. throw H.wrapException(P.RangeError$("Index " + H.S(index) + " must be in the range [0.." + _this.get$length(_this) + ")."));
  31668. J.$indexSet$ax(_this._table, (_this.get$_head() + index & J.get$length$asx(_this._table) - 1) >>> 0, value);
  31669. },
  31670. _queue_list$_add$1: function(element) {
  31671. var _this = this;
  31672. J.$indexSet$ax(_this._table, _this.get$_tail(), element);
  31673. _this.set$_tail((_this.get$_tail() + 1 & J.get$length$asx(_this._table) - 1) >>> 0);
  31674. if (_this.get$_head() == _this.get$_tail())
  31675. _this._grow$0();
  31676. },
  31677. _grow$0: function() {
  31678. var newTable, split, _this = this,
  31679. t1 = new Array(J.get$length$asx(_this._table) * 2);
  31680. t1.fixed$length = Array;
  31681. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E*>"));
  31682. split = J.get$length$asx(_this._table) - _this.get$_head();
  31683. C.JSArray_methods.setRange$4(newTable, 0, split, _this._table, _this.get$_head());
  31684. C.JSArray_methods.setRange$4(newTable, split, split + _this.get$_head(), _this._table, 0);
  31685. _this.set$_head(0);
  31686. _this.set$_tail(J.get$length$asx(_this._table));
  31687. _this._table = newTable;
  31688. },
  31689. _writeToList$1: function(target) {
  31690. var $length, firstPartSize, _this = this;
  31691. if (_this.get$_head() <= _this.get$_tail()) {
  31692. $length = _this.get$_tail() - _this.get$_head();
  31693. C.JSArray_methods.setRange$4(target, 0, $length, _this._table, _this.get$_head());
  31694. return $length;
  31695. } else {
  31696. firstPartSize = J.get$length$asx(_this._table) - _this.get$_head();
  31697. C.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._table, _this.get$_head());
  31698. C.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_tail(), _this._table, 0);
  31699. return _this.get$_tail() + firstPartSize;
  31700. }
  31701. },
  31702. _preGrow$1: function(newElementCount) {
  31703. var newTable, _this = this,
  31704. t1 = new Array(Q.QueueList__nextPowerOf2(newElementCount + C.JSInt_methods._shrOtherPositive$1(newElementCount, 1)));
  31705. t1.fixed$length = Array;
  31706. newTable = H.setRuntimeTypeInfo(t1, H._instanceType(_this)._eval$1("JSArray<QueueList.E*>"));
  31707. _this.set$_tail(_this._writeToList$1(newTable));
  31708. _this._table = newTable;
  31709. _this.set$_head(0);
  31710. },
  31711. $isEfficientLengthIterable: 1,
  31712. $isQueue: 1,
  31713. $isIterable: 1,
  31714. $isList: 1,
  31715. get$_head: function() {
  31716. return this._head;
  31717. },
  31718. get$_tail: function() {
  31719. return this._tail;
  31720. },
  31721. set$_head: function(val) {
  31722. return this._head = val;
  31723. },
  31724. set$_tail: function(val) {
  31725. return this._tail = val;
  31726. }
  31727. };
  31728. Q._CastQueueList.prototype = {
  31729. get$_head: function() {
  31730. return this._queue_list$_delegate.get$_head();
  31731. },
  31732. set$_head: function(value) {
  31733. this._queue_list$_delegate.set$_head(value);
  31734. },
  31735. get$_tail: function() {
  31736. return this._queue_list$_delegate.get$_tail();
  31737. },
  31738. set$_tail: function(value) {
  31739. this._queue_list$_delegate.set$_tail(value);
  31740. }
  31741. };
  31742. Q._QueueList_Object_ListMixin.prototype = {};
  31743. L.UnmodifiableSetView.prototype = {};
  31744. L.UnmodifiableSetMixin.prototype = {
  31745. add$1: function(_, value) {
  31746. return L.UnmodifiableSetMixin__throw();
  31747. },
  31748. addAll$1: function(_, elements) {
  31749. return L.UnmodifiableSetMixin__throw();
  31750. }
  31751. };
  31752. L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
  31753. B.defaultCompare_closure.prototype = {
  31754. call$2: function(value1, value2) {
  31755. return J.compareTo$1$ns(type$.legacy_Comparable_dynamic._as(value1), value2);
  31756. },
  31757. $signature: function() {
  31758. return this.T._eval$1("int*(0*,0*)");
  31759. }
  31760. };
  31761. M._DelegatingIterableBase.prototype = {
  31762. cast$1$0: function(_, $T) {
  31763. return J.cast$1$0$ax(this.get$_base(), $T._eval$1("0*"));
  31764. },
  31765. contains$1: function(_, element) {
  31766. return J.contains$1$asx(this.get$_base(), element);
  31767. },
  31768. elementAt$1: function(_, index) {
  31769. return J.elementAt$1$ax(this.get$_base(), index);
  31770. },
  31771. get$first: function(_) {
  31772. return J.get$first$ax(this.get$_base());
  31773. },
  31774. get$isEmpty: function(_) {
  31775. return J.get$isEmpty$asx(this.get$_base());
  31776. },
  31777. get$isNotEmpty: function(_) {
  31778. return J.get$isNotEmpty$asx(this.get$_base());
  31779. },
  31780. get$iterator: function(_) {
  31781. return J.get$iterator$ax(this.get$_base());
  31782. },
  31783. join$1: function(_, separator) {
  31784. return J.join$1$ax(this.get$_base(), separator);
  31785. },
  31786. join$0: function($receiver) {
  31787. return this.join$1($receiver, "");
  31788. },
  31789. get$last: function(_) {
  31790. return J.get$last$ax(this.get$_base());
  31791. },
  31792. get$length: function(_) {
  31793. return J.get$length$asx(this.get$_base());
  31794. },
  31795. map$1$1: function(_, f, $T) {
  31796. return J.map$1$1$ax(this.get$_base(), f, $T._eval$1("0*"));
  31797. },
  31798. get$single: function(_) {
  31799. return J.get$single$ax(this.get$_base());
  31800. },
  31801. skip$1: function(_, n) {
  31802. return J.skip$1$ax(this.get$_base(), n);
  31803. },
  31804. take$1: function(_, n) {
  31805. return J.take$1$ax(this.get$_base(), n);
  31806. },
  31807. toList$1$growable: function(_, growable) {
  31808. return J.toList$1$growable$ax(this.get$_base(), growable);
  31809. },
  31810. toList$0: function($receiver) {
  31811. return this.toList$1$growable($receiver, true);
  31812. },
  31813. toSet$0: function(_) {
  31814. return J.toSet$0$ax(this.get$_base());
  31815. },
  31816. where$1: function(_, test) {
  31817. return J.where$1$ax(this.get$_base(), test);
  31818. },
  31819. toString$0: function(_) {
  31820. return J.toString$0$(this.get$_base());
  31821. },
  31822. $isIterable: 1
  31823. };
  31824. M.DelegatingIterable.prototype = {
  31825. get$_base: function() {
  31826. return this._base;
  31827. }
  31828. };
  31829. M.DelegatingSet.prototype = {
  31830. add$1: function(_, value) {
  31831. return this._base.add$1(0, value);
  31832. },
  31833. addAll$1: function(_, elements) {
  31834. this._base.addAll$1(0, elements);
  31835. },
  31836. cast$1$0: function(_, $T) {
  31837. var t1 = this._base;
  31838. return P.Set_castFrom(t1, t1.get$_newSimilarSet(), H._instanceType(t1)._precomputed1, $T._eval$1("0*"));
  31839. },
  31840. toSet$0: function(_) {
  31841. return new M.DelegatingSet(this._base.toSet$0(0), H._instanceType(this)._eval$1("DelegatingSet<DelegatingSet.E*>"));
  31842. },
  31843. $isEfficientLengthIterable: 1,
  31844. $isSet: 1
  31845. };
  31846. M.MapKeySet.prototype = {
  31847. get$_base: function() {
  31848. var t1 = this._baseMap;
  31849. return t1.get$keys(t1);
  31850. },
  31851. cast$1$0: function(_, $T) {
  31852. var _this = this,
  31853. t1 = $T._eval$1("MapKeySet<0*>*");
  31854. if (t1._is(_this))
  31855. return t1._as(_this);
  31856. return P.Set_castFrom(_this, null, _this.$ti._eval$1("1*"), $T._eval$1("0*"));
  31857. },
  31858. contains$1: function(_, element) {
  31859. return this._baseMap.containsKey$1(element);
  31860. },
  31861. get$isEmpty: function(_) {
  31862. var t1 = this._baseMap;
  31863. return t1.get$isEmpty(t1);
  31864. },
  31865. get$isNotEmpty: function(_) {
  31866. var t1 = this._baseMap;
  31867. return t1.get$isNotEmpty(t1);
  31868. },
  31869. get$length: function(_) {
  31870. var t1 = this._baseMap;
  31871. return t1.get$length(t1);
  31872. },
  31873. toString$0: function(_) {
  31874. var t1 = this._baseMap;
  31875. return "{" + J.join$1$ax(t1.get$keys(t1), ", ") + "}";
  31876. },
  31877. $isEfficientLengthIterable: 1,
  31878. $isSet: 1
  31879. };
  31880. M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
  31881. V.BufferModule.prototype = {};
  31882. V.BufferConstants.prototype = {};
  31883. V.Buffer.prototype = {};
  31884. F.ConsoleModule.prototype = {};
  31885. F.Console.prototype = {};
  31886. F.EventEmitter.prototype = {};
  31887. D.FS.prototype = {};
  31888. D.FSConstants.prototype = {};
  31889. D.FSWatcher.prototype = {};
  31890. D.ReadStream.prototype = {};
  31891. D.ReadStreamOptions.prototype = {};
  31892. D.WriteStream.prototype = {};
  31893. D.WriteStreamOptions.prototype = {};
  31894. D.Stats.prototype = {};
  31895. E.Promise.prototype = {};
  31896. E.Date.prototype = {};
  31897. E.JsError.prototype = {};
  31898. E.Atomics.prototype = {};
  31899. Y.Modules.prototype = {};
  31900. Y.Module1.prototype = {};
  31901. Y.Net.prototype = {};
  31902. Y.Socket.prototype = {};
  31903. Y.NetAddress.prototype = {};
  31904. Y.NetServer.prototype = {};
  31905. X.NodeJsError.prototype = {};
  31906. X.JsAssertionError.prototype = {};
  31907. X.JsRangeError.prototype = {};
  31908. X.JsReferenceError.prototype = {};
  31909. X.JsSyntaxError.prototype = {};
  31910. X.JsTypeError.prototype = {};
  31911. X.JsSystemError.prototype = {};
  31912. X.Process.prototype = {};
  31913. X.CPUUsage.prototype = {};
  31914. X.Release.prototype = {};
  31915. D.StreamModule.prototype = {};
  31916. D.Readable.prototype = {};
  31917. D.Writable.prototype = {};
  31918. D.Duplex.prototype = {};
  31919. D.Transform.prototype = {};
  31920. D.WritableOptions.prototype = {};
  31921. D.ReadableOptions.prototype = {};
  31922. L.Immediate.prototype = {};
  31923. L.Timeout.prototype = {};
  31924. N.TTY.prototype = {};
  31925. N.TTYReadStream.prototype = {};
  31926. N.TTYWriteStream.prototype = {};
  31927. M.Util.prototype = {};
  31928. M.futureToPromise_closure.prototype = {
  31929. call$2: function(resolve, reject) {
  31930. this.future.then$1$2$onError(0, resolve, reject, type$.dynamic);
  31931. },
  31932. "call*": "call$2",
  31933. $requiredArgCount: 2,
  31934. $signature: 316
  31935. };
  31936. M.Context.prototype = {
  31937. absolute$7: function(part1, part2, part3, part4, part5, part6, part7) {
  31938. var t1;
  31939. M._validateArgList("absolute", H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7], type$.JSArray_legacy_String));
  31940. t1 = this.style;
  31941. t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
  31942. if (t1)
  31943. return part1;
  31944. t1 = this._context$_current;
  31945. return this.join$8(0, t1 == null ? D.current() : t1, part1, part2, part3, part4, part5, part6, part7);
  31946. },
  31947. absolute$1: function(part1) {
  31948. return this.absolute$7(part1, null, null, null, null, null, null);
  31949. },
  31950. dirname$1: function(path) {
  31951. var t1, t2,
  31952. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  31953. parsed.removeTrailingSeparators$0();
  31954. t1 = parsed.parts;
  31955. t2 = t1.length;
  31956. if (t2 === 0) {
  31957. t1 = parsed.root;
  31958. return t1 == null ? "." : t1;
  31959. }
  31960. if (t2 === 1) {
  31961. t1 = parsed.root;
  31962. return t1 == null ? "." : t1;
  31963. }
  31964. C.JSArray_methods.removeLast$0(t1);
  31965. C.JSArray_methods.removeLast$0(parsed.separators);
  31966. parsed.removeTrailingSeparators$0();
  31967. return parsed.toString$0(0);
  31968. },
  31969. join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8) {
  31970. var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7, part8], type$.JSArray_legacy_String);
  31971. M._validateArgList("join", parts);
  31972. return this.joinAll$1(new H.WhereIterable(parts, new M.Context_join_closure(), type$.WhereIterable_legacy_String));
  31973. },
  31974. join$2: function($receiver, part1, part2) {
  31975. return this.join$8($receiver, part1, part2, null, null, null, null, null, null);
  31976. },
  31977. joinAll$1: function(parts) {
  31978. var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
  31979. for (t1 = parts.get$iterator(parts), t2 = new H.WhereIterator(t1, new M.Context_joinAll_closure()), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t2.moveNext$0();) {
  31980. t5 = t1.get$current(t1);
  31981. if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
  31982. parsed = X.ParsedPath_ParsedPath$parse(t5, t3);
  31983. path = t4.charCodeAt(0) == 0 ? t4 : t4;
  31984. t4 = C.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
  31985. parsed.root = t4;
  31986. if (t3.needsSeparator$1(t4))
  31987. parsed.separators[0] = t3.get$separator();
  31988. t4 = parsed.toString$0(0);
  31989. } else if (t3.rootLength$1(t5) > 0) {
  31990. isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
  31991. t4 = H.S(t5);
  31992. } else {
  31993. if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
  31994. if (needsSeparator)
  31995. t4 += t3.get$separator();
  31996. t4 += t5;
  31997. }
  31998. needsSeparator = t3.needsSeparator$1(t5);
  31999. }
  32000. return t4.charCodeAt(0) == 0 ? t4 : t4;
  32001. },
  32002. split$1: function(_, path) {
  32003. var parsed = X.ParsedPath_ParsedPath$parse(path, this.style),
  32004. t1 = parsed.parts,
  32005. t2 = H._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
  32006. t2 = P.List_List$from(new H.WhereIterable(t1, new M.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
  32007. parsed.parts = t2;
  32008. t1 = parsed.root;
  32009. if (t1 != null)
  32010. C.JSArray_methods.insert$2(t2, 0, t1);
  32011. return parsed.parts;
  32012. },
  32013. canonicalize$1: function(path) {
  32014. var t1, parsed;
  32015. path = this.absolute$1(path);
  32016. t1 = this.style;
  32017. if (t1 != $.$get$Style_windows() && !this._needsNormalization$1(path))
  32018. return path;
  32019. parsed = X.ParsedPath_ParsedPath$parse(path, t1);
  32020. parsed.normalize$1$canonicalize(true);
  32021. return parsed.toString$0(0);
  32022. },
  32023. normalize$1: function(path) {
  32024. var parsed;
  32025. if (!this._needsNormalization$1(path))
  32026. return path;
  32027. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  32028. parsed.normalize$0();
  32029. return parsed.toString$0(0);
  32030. },
  32031. _needsNormalization$1: function(path) {
  32032. var t1, root, i, start, previous, t2, t3, previousPrevious, codeUnit, t4;
  32033. path.toString;
  32034. t1 = this.style;
  32035. root = t1.rootLength$1(path);
  32036. if (root !== 0) {
  32037. if (t1 === $.$get$Style_windows())
  32038. for (i = 0; i < root; ++i)
  32039. if (C.JSString_methods._codeUnitAt$1(path, i) === 47)
  32040. return true;
  32041. start = root;
  32042. previous = 47;
  32043. } else {
  32044. start = 0;
  32045. previous = null;
  32046. }
  32047. for (t2 = new H.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
  32048. codeUnit = C.JSString_methods.codeUnitAt$1(t2, i);
  32049. if (t1.isSeparator$1(codeUnit)) {
  32050. if (t1 === $.$get$Style_windows() && codeUnit === 47)
  32051. return true;
  32052. if (previous != null && t1.isSeparator$1(previous))
  32053. return true;
  32054. if (previous === 46)
  32055. t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
  32056. else
  32057. t4 = false;
  32058. if (t4)
  32059. return true;
  32060. }
  32061. }
  32062. if (previous == null)
  32063. return true;
  32064. if (t1.isSeparator$1(previous))
  32065. return true;
  32066. if (previous === 46)
  32067. t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
  32068. else
  32069. t1 = false;
  32070. if (t1)
  32071. return true;
  32072. return false;
  32073. },
  32074. relative$2$from: function(path, from) {
  32075. var fromParsed, pathParsed, t2, t3, _this = this,
  32076. _s26_ = 'Unable to find a path to "',
  32077. t1 = from == null;
  32078. if (t1 && _this.style.rootLength$1(path) <= 0)
  32079. return _this.normalize$1(path);
  32080. if (t1) {
  32081. t1 = _this._context$_current;
  32082. from = t1 == null ? D.current() : t1;
  32083. } else
  32084. from = _this.absolute$1(from);
  32085. t1 = _this.style;
  32086. if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
  32087. return _this.normalize$1(path);
  32088. if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
  32089. path = _this.absolute$1(path);
  32090. if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
  32091. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  32092. fromParsed = X.ParsedPath_ParsedPath$parse(from, t1);
  32093. fromParsed.normalize$0();
  32094. pathParsed = X.ParsedPath_ParsedPath$parse(path, t1);
  32095. pathParsed.normalize$0();
  32096. t2 = fromParsed.parts;
  32097. if (t2.length !== 0 && J.$eq$(t2[0], "."))
  32098. return pathParsed.toString$0(0);
  32099. t2 = fromParsed.root;
  32100. t3 = pathParsed.root;
  32101. if (t2 != t3)
  32102. t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
  32103. else
  32104. t2 = false;
  32105. if (t2)
  32106. return pathParsed.toString$0(0);
  32107. while (true) {
  32108. t2 = fromParsed.parts;
  32109. if (t2.length !== 0) {
  32110. t3 = pathParsed.parts;
  32111. t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
  32112. } else
  32113. t2 = false;
  32114. if (!t2)
  32115. break;
  32116. C.JSArray_methods.removeAt$1(fromParsed.parts, 0);
  32117. C.JSArray_methods.removeAt$1(fromParsed.separators, 1);
  32118. C.JSArray_methods.removeAt$1(pathParsed.parts, 0);
  32119. C.JSArray_methods.removeAt$1(pathParsed.separators, 1);
  32120. }
  32121. t2 = fromParsed.parts;
  32122. if (t2.length !== 0 && J.$eq$(t2[0], ".."))
  32123. throw H.wrapException(X.PathException$(_s26_ + H.S(path) + '" from "' + H.S(from) + '".'));
  32124. t2 = type$.legacy_String;
  32125. C.JSArray_methods.insertAll$2(pathParsed.parts, 0, P.List_List$filled(fromParsed.parts.length, "..", false, t2));
  32126. t3 = pathParsed.separators;
  32127. t3[0] = "";
  32128. C.JSArray_methods.insertAll$2(t3, 1, P.List_List$filled(fromParsed.parts.length, t1.get$separator(), false, t2));
  32129. t1 = pathParsed.parts;
  32130. t2 = t1.length;
  32131. if (t2 === 0)
  32132. return ".";
  32133. if (t2 > 1 && J.$eq$(C.JSArray_methods.get$last(t1), ".")) {
  32134. C.JSArray_methods.removeLast$0(pathParsed.parts);
  32135. t1 = pathParsed.separators;
  32136. C.JSArray_methods.removeLast$0(t1);
  32137. C.JSArray_methods.removeLast$0(t1);
  32138. C.JSArray_methods.add$1(t1, "");
  32139. }
  32140. pathParsed.root = "";
  32141. pathParsed.removeTrailingSeparators$0();
  32142. return pathParsed.toString$0(0);
  32143. },
  32144. relative$1: function(path) {
  32145. return this.relative$2$from(path, null);
  32146. },
  32147. _isWithinOrEquals$2: function($parent, child) {
  32148. var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this;
  32149. $parent = $parent;
  32150. child = child;
  32151. t1 = _this.style;
  32152. parentIsAbsolute = t1.rootLength$1($parent) > 0;
  32153. childIsAbsolute = t1.rootLength$1(child) > 0;
  32154. if (parentIsAbsolute && !childIsAbsolute) {
  32155. child = _this.absolute$1(child);
  32156. if (t1.isRootRelative$1($parent))
  32157. $parent = _this.absolute$1($parent);
  32158. } else if (childIsAbsolute && !parentIsAbsolute) {
  32159. $parent = _this.absolute$1($parent);
  32160. if (t1.isRootRelative$1(child))
  32161. child = _this.absolute$1(child);
  32162. } else if (childIsAbsolute && parentIsAbsolute) {
  32163. childIsRootRelative = t1.isRootRelative$1(child);
  32164. parentIsRootRelative = t1.isRootRelative$1($parent);
  32165. if (childIsRootRelative && !parentIsRootRelative)
  32166. child = _this.absolute$1(child);
  32167. else if (parentIsRootRelative && !childIsRootRelative)
  32168. $parent = _this.absolute$1($parent);
  32169. }
  32170. result = _this._isWithinOrEqualsFast$2($parent, child);
  32171. if (result !== C._PathRelation_inconclusive)
  32172. return result;
  32173. relative = null;
  32174. try {
  32175. relative = _this.relative$2$from(child, $parent);
  32176. } catch (exception) {
  32177. if (H.unwrapException(exception) instanceof X.PathException)
  32178. return C._PathRelation_different;
  32179. else
  32180. throw exception;
  32181. }
  32182. if (t1.rootLength$1(relative) > 0)
  32183. return C._PathRelation_different;
  32184. if (J.$eq$(relative, "."))
  32185. return C._PathRelation_equal;
  32186. if (J.$eq$(relative, ".."))
  32187. return C._PathRelation_different;
  32188. return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? C._PathRelation_different : C._PathRelation_within;
  32189. },
  32190. _isWithinOrEqualsFast$2: function($parent, child) {
  32191. var t1, parentRootLength, childRootLength, t2, t3, i, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, t4, direction, _this = this;
  32192. if ($parent === ".")
  32193. $parent = "";
  32194. t1 = _this.style;
  32195. parentRootLength = t1.rootLength$1($parent);
  32196. childRootLength = t1.rootLength$1(child);
  32197. if (parentRootLength !== childRootLength)
  32198. return C._PathRelation_different;
  32199. for (t2 = J.getInterceptor$s($parent), t3 = J.getInterceptor$s(child), i = 0; i < parentRootLength; ++i)
  32200. if (!t1.codeUnitsEqual$2(t2._codeUnitAt$1($parent, i), t3._codeUnitAt$1(child, i)))
  32201. return C._PathRelation_different;
  32202. t2 = $parent.length;
  32203. childIndex = childRootLength;
  32204. parentIndex = parentRootLength;
  32205. lastCodeUnit = 47;
  32206. lastParentSeparator = null;
  32207. while (true) {
  32208. if (!(parentIndex < t2 && childIndex < child.length))
  32209. break;
  32210. c$0: {
  32211. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  32212. childCodeUnit = t3.codeUnitAt$1(child, childIndex);
  32213. if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
  32214. if (t1.isSeparator$1(parentCodeUnit))
  32215. lastParentSeparator = parentIndex;
  32216. ++parentIndex;
  32217. ++childIndex;
  32218. lastCodeUnit = parentCodeUnit;
  32219. break c$0;
  32220. }
  32221. if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  32222. parentIndex0 = parentIndex + 1;
  32223. lastParentSeparator = parentIndex;
  32224. parentIndex = parentIndex0;
  32225. break c$0;
  32226. } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  32227. ++childIndex;
  32228. break c$0;
  32229. }
  32230. if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  32231. ++parentIndex;
  32232. if (parentIndex === t2)
  32233. break;
  32234. parentCodeUnit = C.JSString_methods.codeUnitAt$1($parent, parentIndex);
  32235. if (t1.isSeparator$1(parentCodeUnit)) {
  32236. parentIndex0 = parentIndex + 1;
  32237. lastParentSeparator = parentIndex;
  32238. parentIndex = parentIndex0;
  32239. break c$0;
  32240. }
  32241. if (parentCodeUnit === 46) {
  32242. ++parentIndex;
  32243. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  32244. return C._PathRelation_inconclusive;
  32245. }
  32246. }
  32247. if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  32248. ++childIndex;
  32249. t4 = child.length;
  32250. if (childIndex === t4)
  32251. break;
  32252. childCodeUnit = C.JSString_methods.codeUnitAt$1(child, childIndex);
  32253. if (t1.isSeparator$1(childCodeUnit)) {
  32254. ++childIndex;
  32255. break c$0;
  32256. }
  32257. if (childCodeUnit === 46) {
  32258. ++childIndex;
  32259. if (childIndex === t4 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)))
  32260. return C._PathRelation_inconclusive;
  32261. }
  32262. }
  32263. if (_this._pathDirection$2(child, childIndex) !== C._PathDirection_988)
  32264. return C._PathRelation_inconclusive;
  32265. if (_this._pathDirection$2($parent, parentIndex) !== C._PathDirection_988)
  32266. return C._PathRelation_inconclusive;
  32267. return C._PathRelation_different;
  32268. }
  32269. }
  32270. if (childIndex === child.length) {
  32271. if (parentIndex === t2 || t1.isSeparator$1(C.JSString_methods.codeUnitAt$1($parent, parentIndex)))
  32272. lastParentSeparator = parentIndex;
  32273. else if (lastParentSeparator == null)
  32274. lastParentSeparator = Math.max(0, parentRootLength - 1);
  32275. direction = _this._pathDirection$2($parent, lastParentSeparator);
  32276. if (direction === C._PathDirection_8Gl)
  32277. return C._PathRelation_equal;
  32278. return direction === C._PathDirection_ZGD ? C._PathRelation_inconclusive : C._PathRelation_different;
  32279. }
  32280. direction = _this._pathDirection$2(child, childIndex);
  32281. if (direction === C._PathDirection_8Gl)
  32282. return C._PathRelation_equal;
  32283. if (direction === C._PathDirection_ZGD)
  32284. return C._PathRelation_inconclusive;
  32285. return t1.isSeparator$1(C.JSString_methods.codeUnitAt$1(child, childIndex)) || t1.isSeparator$1(lastCodeUnit) ? C._PathRelation_within : C._PathRelation_different;
  32286. },
  32287. _pathDirection$2: function(path, index) {
  32288. var t1, t2, i, depth, reachedRoot, i0, t3;
  32289. for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
  32290. while (true) {
  32291. if (!(i < t1 && t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i))))
  32292. break;
  32293. ++i;
  32294. }
  32295. if (i === t1)
  32296. break;
  32297. i0 = i;
  32298. while (true) {
  32299. if (!(i0 < t1 && !t2.isSeparator$1(C.JSString_methods.codeUnitAt$1(path, i0))))
  32300. break;
  32301. ++i0;
  32302. }
  32303. t3 = i0 - i;
  32304. if (!(t3 === 1 && C.JSString_methods.codeUnitAt$1(path, i) === 46))
  32305. if (t3 === 2 && C.JSString_methods.codeUnitAt$1(path, i) === 46 && C.JSString_methods.codeUnitAt$1(path, i + 1) === 46) {
  32306. --depth;
  32307. if (depth < 0)
  32308. break;
  32309. if (depth === 0)
  32310. reachedRoot = true;
  32311. } else
  32312. ++depth;
  32313. if (i0 === t1)
  32314. break;
  32315. i = i0 + 1;
  32316. }
  32317. if (depth < 0)
  32318. return C._PathDirection_ZGD;
  32319. if (depth === 0)
  32320. return C._PathDirection_8Gl;
  32321. if (reachedRoot)
  32322. return C._PathDirection_FIw;
  32323. return C._PathDirection_988;
  32324. },
  32325. hash$1: function(path) {
  32326. var result, parsed, _this = this;
  32327. path = _this.absolute$1(path);
  32328. result = _this._hashFast$1(path);
  32329. if (result != null)
  32330. return result;
  32331. parsed = X.ParsedPath_ParsedPath$parse(path, _this.style);
  32332. parsed.normalize$0();
  32333. return _this._hashFast$1(parsed.toString$0(0));
  32334. },
  32335. _hashFast$1: function(path) {
  32336. var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
  32337. for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
  32338. codeUnit = t2.canonicalizeCodeUnit$1(C.JSString_methods._codeUnitAt$1(path, i));
  32339. if (t2.isSeparator$1(codeUnit)) {
  32340. wasSeparator = true;
  32341. continue;
  32342. }
  32343. if (codeUnit === 46 && wasSeparator) {
  32344. t3 = i + 1;
  32345. if (t3 === t1)
  32346. break;
  32347. next = C.JSString_methods._codeUnitAt$1(path, t3);
  32348. if (t2.isSeparator$1(next))
  32349. continue;
  32350. if (!beginning)
  32351. if (next === 46) {
  32352. t3 = i + 2;
  32353. t3 = t3 === t1 || t2.isSeparator$1(C.JSString_methods._codeUnitAt$1(path, t3));
  32354. } else
  32355. t3 = false;
  32356. else
  32357. t3 = false;
  32358. if (t3)
  32359. return null;
  32360. }
  32361. hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
  32362. beginning = false;
  32363. wasSeparator = false;
  32364. }
  32365. return hash;
  32366. },
  32367. withoutExtension$1: function(path) {
  32368. var i, t1,
  32369. parsed = X.ParsedPath_ParsedPath$parse(path, this.style);
  32370. for (i = parsed.parts.length - 1; i >= 0; --i) {
  32371. t1 = parsed.parts[i];
  32372. t1.toString;
  32373. if (J.get$length$asx(t1) !== 0) {
  32374. parsed.parts[i] = parsed._splitExtension$0()[0];
  32375. break;
  32376. }
  32377. }
  32378. return parsed.toString$0(0);
  32379. },
  32380. toUri$1: function(path) {
  32381. var t2,
  32382. t1 = this.style;
  32383. if (t1.rootLength$1(path) <= 0)
  32384. return t1.relativePathToUri$1(path);
  32385. else {
  32386. t2 = this._context$_current;
  32387. return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? D.current() : t2, path));
  32388. }
  32389. },
  32390. prettyUri$1: function(uri) {
  32391. var path, rel, _this = this,
  32392. typedUri = M._parseUri(uri);
  32393. if (typedUri.get$scheme() === "file" && _this.style == $.$get$Style_url())
  32394. return typedUri.toString$0(0);
  32395. else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style != $.$get$Style_url())
  32396. return typedUri.toString$0(0);
  32397. path = _this.normalize$1(_this.style.pathFromUri$1(M._parseUri(typedUri)));
  32398. rel = _this.relative$1(path);
  32399. return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
  32400. }
  32401. };
  32402. M.Context_join_closure.prototype = {
  32403. call$1: function(part) {
  32404. return part != null;
  32405. },
  32406. $signature: 5
  32407. };
  32408. M.Context_joinAll_closure.prototype = {
  32409. call$1: function(part) {
  32410. return part !== "";
  32411. },
  32412. $signature: 5
  32413. };
  32414. M.Context_split_closure.prototype = {
  32415. call$1: function(part) {
  32416. return part.length !== 0;
  32417. },
  32418. $signature: 5
  32419. };
  32420. M._validateArgList_closure.prototype = {
  32421. call$1: function(arg) {
  32422. return arg == null ? "null" : '"' + arg + '"';
  32423. },
  32424. $signature: 6
  32425. };
  32426. M._PathDirection.prototype = {
  32427. toString$0: function(_) {
  32428. return this.name;
  32429. }
  32430. };
  32431. M._PathRelation.prototype = {
  32432. toString$0: function(_) {
  32433. return this.name;
  32434. }
  32435. };
  32436. B.InternalStyle.prototype = {
  32437. getRoot$1: function(path) {
  32438. var $length = this.rootLength$1(path);
  32439. if ($length > 0)
  32440. return J.substring$2$s(path, 0, $length);
  32441. return this.isRootRelative$1(path) ? path[0] : null;
  32442. },
  32443. relativePathToUri$1: function(path) {
  32444. var segments = M.Context_Context(this).split$1(0, path);
  32445. if (this.isSeparator$1(J.codeUnitAt$1$s(path, path.length - 1)))
  32446. C.JSArray_methods.add$1(segments, "");
  32447. return P._Uri__Uri(null, null, segments, null);
  32448. },
  32449. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  32450. return codeUnit1 === codeUnit2;
  32451. },
  32452. pathsEqual$2: function(path1, path2) {
  32453. return path1 == path2;
  32454. },
  32455. canonicalizeCodeUnit$1: function(codeUnit) {
  32456. return codeUnit;
  32457. },
  32458. canonicalizePart$1: function(part) {
  32459. return part;
  32460. }
  32461. };
  32462. X.ParsedPath.prototype = {
  32463. get$basename: function() {
  32464. var _this = this,
  32465. t1 = type$.legacy_String,
  32466. copy = new X.ParsedPath(_this.style, _this.root, _this.isRootRelative, P.List_List$from(_this.parts, true, t1), P.List_List$from(_this.separators, true, t1));
  32467. copy.removeTrailingSeparators$0();
  32468. t1 = copy.parts;
  32469. if (t1.length === 0) {
  32470. t1 = _this.root;
  32471. return t1 == null ? "" : t1;
  32472. }
  32473. return C.JSArray_methods.get$last(t1);
  32474. },
  32475. get$hasTrailingSeparator: function() {
  32476. var t1 = this.parts;
  32477. if (t1.length !== 0)
  32478. t1 = J.$eq$(C.JSArray_methods.get$last(t1), "") || !J.$eq$(C.JSArray_methods.get$last(this.separators), "");
  32479. else
  32480. t1 = false;
  32481. return t1;
  32482. },
  32483. removeTrailingSeparators$0: function() {
  32484. var t1, t2, _this = this;
  32485. while (true) {
  32486. t1 = _this.parts;
  32487. if (!(t1.length !== 0 && J.$eq$(C.JSArray_methods.get$last(t1), "")))
  32488. break;
  32489. C.JSArray_methods.removeLast$0(_this.parts);
  32490. C.JSArray_methods.removeLast$0(_this.separators);
  32491. }
  32492. t1 = _this.separators;
  32493. t2 = t1.length;
  32494. if (t2 !== 0)
  32495. t1[t2 - 1] = "";
  32496. },
  32497. normalize$1$canonicalize: function(canonicalize) {
  32498. var t1, t2, t3, leadingDoubles, _i, part, t4, newSeparators, _this = this,
  32499. newParts = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32500. for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  32501. part = t1[_i];
  32502. t4 = J.getInterceptor$(part);
  32503. if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
  32504. if (t4.$eq(part, ".."))
  32505. if (newParts.length !== 0)
  32506. newParts.pop();
  32507. else
  32508. ++leadingDoubles;
  32509. else
  32510. newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
  32511. }
  32512. if (_this.root == null)
  32513. C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingDoubles, "..", false, type$.legacy_String));
  32514. if (newParts.length === 0 && _this.root == null)
  32515. newParts.push(".");
  32516. newSeparators = P.List_List$generate(newParts.length, new X.ParsedPath_normalize_closure(_this), true, type$.legacy_String);
  32517. t1 = _this.root;
  32518. C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.length !== 0 && t3.needsSeparator$1(t1) ? t3.get$separator() : "");
  32519. _this.parts = newParts;
  32520. _this.separators = newSeparators;
  32521. t1 = _this.root;
  32522. if (t1 != null && t3 === $.$get$Style_windows()) {
  32523. if (canonicalize)
  32524. t1 = _this.root = t1.toLowerCase();
  32525. t1.toString;
  32526. _this.root = H.stringReplaceAllUnchecked(t1, "/", "\\");
  32527. }
  32528. _this.removeTrailingSeparators$0();
  32529. },
  32530. normalize$0: function() {
  32531. return this.normalize$1$canonicalize(false);
  32532. },
  32533. toString$0: function(_) {
  32534. var i, _this = this,
  32535. t1 = _this.root;
  32536. t1 = t1 != null ? t1 : "";
  32537. for (i = 0; i < _this.parts.length; ++i)
  32538. t1 = t1 + H.S(_this.separators[i]) + H.S(_this.parts[i]);
  32539. t1 += H.S(C.JSArray_methods.get$last(_this.separators));
  32540. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32541. },
  32542. _kthLastIndexOf$3: function(path, character, k) {
  32543. var index, count, leftMostIndexedCharacter;
  32544. for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
  32545. if (path[index] === character) {
  32546. ++count;
  32547. if (count === k)
  32548. return index;
  32549. leftMostIndexedCharacter = index;
  32550. }
  32551. return leftMostIndexedCharacter;
  32552. },
  32553. _splitExtension$1: function(level) {
  32554. var file, lastDot;
  32555. if (level <= 0)
  32556. throw H.wrapException(P.RangeError$value(level, "level", "level's value must be greater than 0"));
  32557. file = C.JSArray_methods.lastWhere$2$orElse(this.parts, new X.ParsedPath__splitExtension_closure(), new X.ParsedPath__splitExtension_closure0());
  32558. if (file == null)
  32559. return H.setRuntimeTypeInfo(["", ""], type$.JSArray_legacy_String);
  32560. if (file === "..")
  32561. return H.setRuntimeTypeInfo(["..", ""], type$.JSArray_legacy_String);
  32562. lastDot = this._kthLastIndexOf$3(file, ".", level);
  32563. if (lastDot <= 0)
  32564. return H.setRuntimeTypeInfo([file, ""], type$.JSArray_legacy_String);
  32565. return H.setRuntimeTypeInfo([C.JSString_methods.substring$2(file, 0, lastDot), C.JSString_methods.substring$1(file, lastDot)], type$.JSArray_legacy_String);
  32566. },
  32567. _splitExtension$0: function() {
  32568. return this._splitExtension$1(1);
  32569. }
  32570. };
  32571. X.ParsedPath_normalize_closure.prototype = {
  32572. call$1: function(_) {
  32573. return this.$this.style.get$separator();
  32574. },
  32575. $signature: 83
  32576. };
  32577. X.ParsedPath__splitExtension_closure.prototype = {
  32578. call$1: function(p) {
  32579. return p !== "";
  32580. },
  32581. $signature: 5
  32582. };
  32583. X.ParsedPath__splitExtension_closure0.prototype = {
  32584. call$0: function() {
  32585. return null;
  32586. },
  32587. $signature: 0
  32588. };
  32589. X.PathException.prototype = {
  32590. toString$0: function(_) {
  32591. return "PathException: " + this.message;
  32592. },
  32593. $isException: 1,
  32594. get$message: function(receiver) {
  32595. return this.message;
  32596. }
  32597. };
  32598. K.PathMap.prototype = {};
  32599. K.PathMap__create_closure.prototype = {
  32600. call$2: function(path1, path2) {
  32601. if (path1 == null)
  32602. return path2 == null;
  32603. if (path2 == null)
  32604. return false;
  32605. return this._box_0.context._isWithinOrEquals$2(path1, path2) === C._PathRelation_equal;
  32606. },
  32607. "call*": "call$2",
  32608. $requiredArgCount: 2,
  32609. $signature: 372
  32610. };
  32611. K.PathMap__create_closure0.prototype = {
  32612. call$1: function(path) {
  32613. return path == null ? 0 : this._box_0.context.hash$1(path);
  32614. },
  32615. $signature: 381
  32616. };
  32617. K.PathMap__create_closure1.prototype = {
  32618. call$1: function(path) {
  32619. return typeof path == "string" || path == null;
  32620. },
  32621. $signature: 151
  32622. };
  32623. O.Style.prototype = {
  32624. toString$0: function(_) {
  32625. return this.get$name(this);
  32626. }
  32627. };
  32628. E.PosixStyle.prototype = {
  32629. containsSeparator$1: function(path) {
  32630. return C.JSString_methods.contains$1(path, "/");
  32631. },
  32632. isSeparator$1: function(codeUnit) {
  32633. return codeUnit === 47;
  32634. },
  32635. needsSeparator$1: function(path) {
  32636. var t1 = path.length;
  32637. return t1 !== 0 && C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47;
  32638. },
  32639. rootLength$2$withDrive: function(path, withDrive) {
  32640. if (path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  32641. return 1;
  32642. return 0;
  32643. },
  32644. rootLength$1: function(path) {
  32645. return this.rootLength$2$withDrive(path, false);
  32646. },
  32647. isRootRelative$1: function(path) {
  32648. return false;
  32649. },
  32650. pathFromUri$1: function(uri) {
  32651. var t1;
  32652. if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
  32653. t1 = uri.get$path(uri);
  32654. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  32655. }
  32656. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  32657. },
  32658. absolutePathToUri$1: function(path) {
  32659. var parsed = X.ParsedPath_ParsedPath$parse(path, this),
  32660. t1 = parsed.parts;
  32661. if (t1.length === 0)
  32662. C.JSArray_methods.addAll$1(t1, H.setRuntimeTypeInfo(["", ""], type$.JSArray_legacy_String));
  32663. else if (parsed.get$hasTrailingSeparator())
  32664. C.JSArray_methods.add$1(parsed.parts, "");
  32665. return P._Uri__Uri(null, null, parsed.parts, "file");
  32666. },
  32667. get$name: function() {
  32668. return "posix";
  32669. },
  32670. get$separator: function() {
  32671. return "/";
  32672. }
  32673. };
  32674. F.UrlStyle.prototype = {
  32675. containsSeparator$1: function(path) {
  32676. return C.JSString_methods.contains$1(path, "/");
  32677. },
  32678. isSeparator$1: function(codeUnit) {
  32679. return codeUnit === 47;
  32680. },
  32681. needsSeparator$1: function(path) {
  32682. var t1 = path.length;
  32683. if (t1 === 0)
  32684. return false;
  32685. if (C.JSString_methods.codeUnitAt$1(path, t1 - 1) !== 47)
  32686. return true;
  32687. return C.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
  32688. },
  32689. rootLength$2$withDrive: function(path, withDrive) {
  32690. var i, codeUnit, index, t2,
  32691. t1 = path.length;
  32692. if (t1 === 0)
  32693. return 0;
  32694. if (C.JSString_methods._codeUnitAt$1(path, 0) === 47)
  32695. return 1;
  32696. for (i = 0; i < t1; ++i) {
  32697. codeUnit = C.JSString_methods._codeUnitAt$1(path, i);
  32698. if (codeUnit === 47)
  32699. return 0;
  32700. if (codeUnit === 58) {
  32701. if (i === 0)
  32702. return 0;
  32703. index = C.JSString_methods.indexOf$2(path, "/", C.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
  32704. if (index <= 0)
  32705. return t1;
  32706. if (!withDrive || t1 < index + 3)
  32707. return index;
  32708. if (!C.JSString_methods.startsWith$1(path, "file://"))
  32709. return index;
  32710. if (!B.isDriveLetter(path, index + 1))
  32711. return index;
  32712. t2 = index + 3;
  32713. return t1 === t2 ? t2 : index + 4;
  32714. }
  32715. }
  32716. return 0;
  32717. },
  32718. rootLength$1: function(path) {
  32719. return this.rootLength$2$withDrive(path, false);
  32720. },
  32721. isRootRelative$1: function(path) {
  32722. return path.length !== 0 && C.JSString_methods._codeUnitAt$1(path, 0) === 47;
  32723. },
  32724. pathFromUri$1: function(uri) {
  32725. return uri.toString$0(0);
  32726. },
  32727. relativePathToUri$1: function(path) {
  32728. return P.Uri_parse(path);
  32729. },
  32730. absolutePathToUri$1: function(path) {
  32731. return P.Uri_parse(path);
  32732. },
  32733. get$name: function() {
  32734. return "url";
  32735. },
  32736. get$separator: function() {
  32737. return "/";
  32738. }
  32739. };
  32740. L.WindowsStyle.prototype = {
  32741. containsSeparator$1: function(path) {
  32742. return C.JSString_methods.contains$1(path, "/");
  32743. },
  32744. isSeparator$1: function(codeUnit) {
  32745. return codeUnit === 47 || codeUnit === 92;
  32746. },
  32747. needsSeparator$1: function(path) {
  32748. var t1 = path.length;
  32749. if (t1 === 0)
  32750. return false;
  32751. t1 = C.JSString_methods.codeUnitAt$1(path, t1 - 1);
  32752. return !(t1 === 47 || t1 === 92);
  32753. },
  32754. rootLength$2$withDrive: function(path, withDrive) {
  32755. var t2, index,
  32756. t1 = path.length;
  32757. if (t1 === 0)
  32758. return 0;
  32759. t2 = C.JSString_methods._codeUnitAt$1(path, 0);
  32760. if (t2 === 47)
  32761. return 1;
  32762. if (t2 === 92) {
  32763. if (t1 < 2 || C.JSString_methods._codeUnitAt$1(path, 1) !== 92)
  32764. return 1;
  32765. index = C.JSString_methods.indexOf$2(path, "\\", 2);
  32766. if (index > 0) {
  32767. index = C.JSString_methods.indexOf$2(path, "\\", index + 1);
  32768. if (index > 0)
  32769. return index;
  32770. }
  32771. return t1;
  32772. }
  32773. if (t1 < 3)
  32774. return 0;
  32775. if (!B.isAlphabetic(t2))
  32776. return 0;
  32777. if (C.JSString_methods._codeUnitAt$1(path, 1) !== 58)
  32778. return 0;
  32779. t1 = C.JSString_methods._codeUnitAt$1(path, 2);
  32780. if (!(t1 === 47 || t1 === 92))
  32781. return 0;
  32782. return 3;
  32783. },
  32784. rootLength$1: function(path) {
  32785. return this.rootLength$2$withDrive(path, false);
  32786. },
  32787. isRootRelative$1: function(path) {
  32788. return this.rootLength$1(path) === 1;
  32789. },
  32790. pathFromUri$1: function(uri) {
  32791. var path, t1;
  32792. if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
  32793. throw H.wrapException(P.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'."));
  32794. path = uri.get$path(uri);
  32795. if (uri.get$host() === "") {
  32796. if (path.length >= 3 && C.JSString_methods.startsWith$1(path, "/") && B.isDriveLetter(path, 1))
  32797. path = C.JSString_methods.replaceFirst$2(path, "/", "");
  32798. } else
  32799. path = "\\\\" + uri.get$host() + path;
  32800. t1 = H.stringReplaceAllUnchecked(path, "/", "\\");
  32801. return P._Uri__uriDecode(t1, 0, t1.length, C.C_Utf8Codec, false);
  32802. },
  32803. absolutePathToUri$1: function(path) {
  32804. var rootParts, t2,
  32805. parsed = X.ParsedPath_ParsedPath$parse(path, this),
  32806. t1 = parsed.root;
  32807. if (J.startsWith$1$s(t1, "\\\\")) {
  32808. rootParts = new H.WhereIterable(H.setRuntimeTypeInfo(t1.split("\\"), type$.JSArray_String), new L.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
  32809. C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
  32810. if (parsed.get$hasTrailingSeparator())
  32811. C.JSArray_methods.add$1(parsed.parts, "");
  32812. return P._Uri__Uri(rootParts.get$first(rootParts), null, parsed.parts, "file");
  32813. } else {
  32814. if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
  32815. C.JSArray_methods.add$1(parsed.parts, "");
  32816. t1 = parsed.parts;
  32817. t2 = parsed.root;
  32818. t2.toString;
  32819. t2 = H.stringReplaceAllUnchecked(t2, "/", "");
  32820. C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\", ""));
  32821. return P._Uri__Uri(null, null, parsed.parts, "file");
  32822. }
  32823. },
  32824. codeUnitsEqual$2: function(codeUnit1, codeUnit2) {
  32825. var upperCase1;
  32826. if (codeUnit1 === codeUnit2)
  32827. return true;
  32828. if (codeUnit1 === 47)
  32829. return codeUnit2 === 92;
  32830. if (codeUnit1 === 92)
  32831. return codeUnit2 === 47;
  32832. if ((codeUnit1 ^ codeUnit2) !== 32)
  32833. return false;
  32834. upperCase1 = codeUnit1 | 32;
  32835. return upperCase1 >= 97 && upperCase1 <= 122;
  32836. },
  32837. pathsEqual$2: function(path1, path2) {
  32838. var t1, t2, i;
  32839. if (path1 == path2)
  32840. return true;
  32841. t1 = path1.length;
  32842. if (t1 !== path2.length)
  32843. return false;
  32844. for (t2 = J.getInterceptor$s(path2), i = 0; i < t1; ++i)
  32845. if (!this.codeUnitsEqual$2(C.JSString_methods._codeUnitAt$1(path1, i), t2._codeUnitAt$1(path2, i)))
  32846. return false;
  32847. return true;
  32848. },
  32849. canonicalizeCodeUnit$1: function(codeUnit) {
  32850. if (codeUnit === 47)
  32851. return 92;
  32852. if (codeUnit < 65)
  32853. return codeUnit;
  32854. if (codeUnit > 90)
  32855. return codeUnit;
  32856. return codeUnit | 32;
  32857. },
  32858. canonicalizePart$1: function(part) {
  32859. return part.toLowerCase();
  32860. },
  32861. get$name: function() {
  32862. return "windows";
  32863. },
  32864. get$separator: function() {
  32865. return "\\";
  32866. }
  32867. };
  32868. L.WindowsStyle_absolutePathToUri_closure.prototype = {
  32869. call$1: function(part) {
  32870. return part !== "";
  32871. },
  32872. $signature: 5
  32873. };
  32874. F.CssMediaQuery.prototype = {
  32875. merge$1: function(other) {
  32876. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  32877. t1 = _this.modifier,
  32878. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  32879. t2 = _this.type,
  32880. t3 = t2 == null,
  32881. ourType = t3 ? _null : t2.toLowerCase(),
  32882. t4 = other.modifier,
  32883. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  32884. t5 = other.type,
  32885. t6 = t5 == null,
  32886. theirType = t6 ? _null : t5.toLowerCase(),
  32887. t7 = ourType == null;
  32888. if (t7 && theirType == null) {
  32889. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32890. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32891. t1.push(t2[_i]);
  32892. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  32893. t1.push(t2[_i]);
  32894. return new F.MediaQuerySuccessfulMergeResult(new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(t1, type$.legacy_String)));
  32895. }
  32896. t8 = ourModifier === "not";
  32897. if (t8 !== (theirModifier === "not")) {
  32898. if (ourType == theirType) {
  32899. negativeFeatures = t8 ? _this.features : other.features;
  32900. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  32901. return C._SingletonCssMediaQueryMergeResult_empty;
  32902. else
  32903. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32904. } else if (t3 || B.equalsIgnoreCase(t2, _s3_) || t6 || B.equalsIgnoreCase(t5, _s3_))
  32905. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32906. if (t8) {
  32907. features = other.features;
  32908. type = theirType;
  32909. modifier = theirModifier;
  32910. } else {
  32911. features = _this.features;
  32912. type = ourType;
  32913. modifier = ourModifier;
  32914. }
  32915. } else if (t8) {
  32916. if (ourType != theirType)
  32917. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32918. fewerFeatures = _this.features;
  32919. fewerFeatures0 = other.features;
  32920. t3 = fewerFeatures.length > fewerFeatures0.length;
  32921. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  32922. if (t3)
  32923. fewerFeatures = fewerFeatures0;
  32924. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  32925. return C._SingletonCssMediaQueryMergeResult_unrepresentable;
  32926. features = moreFeatures;
  32927. type = ourType;
  32928. modifier = ourModifier;
  32929. } else if (t3 || B.equalsIgnoreCase(t2, _s3_)) {
  32930. type = (t6 || B.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
  32931. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32932. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32933. t3.push(t6[_i]);
  32934. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32935. t3.push(t6[_i]);
  32936. features = t3;
  32937. modifier = theirModifier;
  32938. } else {
  32939. if (t6 || B.equalsIgnoreCase(t5, _s3_)) {
  32940. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32941. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32942. t3.push(t6[_i]);
  32943. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32944. t3.push(t6[_i]);
  32945. features = t3;
  32946. modifier = ourModifier;
  32947. } else {
  32948. if (ourType != theirType)
  32949. return C._SingletonCssMediaQueryMergeResult_empty;
  32950. else {
  32951. modifier = ourModifier == null ? theirModifier : ourModifier;
  32952. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  32953. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32954. t3.push(t6[_i]);
  32955. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  32956. t3.push(t6[_i]);
  32957. }
  32958. features = t3;
  32959. }
  32960. type = ourType;
  32961. }
  32962. t2 = type == ourType ? t2 : t5;
  32963. t1 = modifier == ourModifier ? t1 : t4;
  32964. t3 = P.List_List$unmodifiable(features, type$.legacy_String);
  32965. return new F.MediaQuerySuccessfulMergeResult(new F.CssMediaQuery(t1, t2, t3));
  32966. },
  32967. $eq: function(_, other) {
  32968. if (other == null)
  32969. return false;
  32970. return other instanceof F.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(0, other.features, this.features);
  32971. },
  32972. get$hashCode: function(_) {
  32973. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  32974. },
  32975. toString$0: function(_) {
  32976. var t2, _this = this,
  32977. t1 = _this.modifier;
  32978. t1 = t1 != null ? t1 + " " : "";
  32979. t2 = _this.type;
  32980. if (t2 != null) {
  32981. t1 += t2;
  32982. if (_this.features.length !== 0)
  32983. t1 += " and ";
  32984. }
  32985. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  32986. return t1.charCodeAt(0) == 0 ? t1 : t1;
  32987. }
  32988. };
  32989. F._SingletonCssMediaQueryMergeResult.prototype = {
  32990. toString$0: function(_) {
  32991. return this._media_query$_name;
  32992. }
  32993. };
  32994. F.MediaQuerySuccessfulMergeResult.prototype = {};
  32995. U.ModifiableCssAtRule.prototype = {
  32996. accept$1$1: function(visitor) {
  32997. return visitor.visitCssAtRule$1(this);
  32998. },
  32999. accept$1: function(visitor) {
  33000. return this.accept$1$1(visitor, type$.dynamic);
  33001. },
  33002. copyWithoutChildren$0: function() {
  33003. var _this = this;
  33004. return U.ModifiableCssAtRule$(_this.name, _this.span, _this.isChildless, _this.value);
  33005. },
  33006. addChild$1: function(child) {
  33007. this.super$ModifiableCssParentNode$addChild(child);
  33008. },
  33009. $isCssAtRule: 1,
  33010. get$isChildless: function() {
  33011. return this.isChildless;
  33012. },
  33013. get$span: function() {
  33014. return this.span;
  33015. }
  33016. };
  33017. R.ModifiableCssComment.prototype = {
  33018. accept$1$1: function(visitor) {
  33019. return visitor.visitCssComment$1(this);
  33020. },
  33021. accept$1: function(visitor) {
  33022. return this.accept$1$1(visitor, type$.dynamic);
  33023. },
  33024. $isCssComment: 1,
  33025. get$span: function() {
  33026. return this.span;
  33027. }
  33028. };
  33029. L.ModifiableCssDeclaration.prototype = {
  33030. accept$1$1: function(visitor) {
  33031. return visitor.visitCssDeclaration$1(this);
  33032. },
  33033. accept$1: function(visitor) {
  33034. return this.accept$1$1(visitor, type$.dynamic);
  33035. },
  33036. toString$0: function(_) {
  33037. return H.S(this.name) + ": " + this.value.toString$0(0) + ";";
  33038. },
  33039. get$span: function() {
  33040. return this.span;
  33041. }
  33042. };
  33043. F.ModifiableCssImport.prototype = {
  33044. accept$1$1: function(visitor) {
  33045. return visitor.visitCssImport$1(this);
  33046. },
  33047. accept$1: function(visitor) {
  33048. return this.accept$1$1(visitor, type$.dynamic);
  33049. },
  33050. $isCssImport: 1,
  33051. get$span: function() {
  33052. return this.span;
  33053. }
  33054. };
  33055. U.ModifiableCssKeyframeBlock.prototype = {
  33056. accept$1$1: function(visitor) {
  33057. return visitor.visitCssKeyframeBlock$1(this);
  33058. },
  33059. accept$1: function(visitor) {
  33060. return this.accept$1$1(visitor, type$.dynamic);
  33061. },
  33062. copyWithoutChildren$0: function() {
  33063. return U.ModifiableCssKeyframeBlock$(this.selector, this.span);
  33064. },
  33065. get$span: function() {
  33066. return this.span;
  33067. }
  33068. };
  33069. G.ModifiableCssMediaRule.prototype = {
  33070. accept$1$1: function(visitor) {
  33071. return visitor.visitCssMediaRule$1(this);
  33072. },
  33073. accept$1: function(visitor) {
  33074. return this.accept$1$1(visitor, type$.dynamic);
  33075. },
  33076. copyWithoutChildren$0: function() {
  33077. return G.ModifiableCssMediaRule$(this.queries, this.span);
  33078. },
  33079. $isCssMediaRule: 1,
  33080. get$span: function() {
  33081. return this.span;
  33082. }
  33083. };
  33084. B.ModifiableCssNode.prototype = {
  33085. get$hasFollowingSibling: function() {
  33086. var siblings, i, t2,
  33087. t1 = this._parent;
  33088. if (t1 == null)
  33089. return false;
  33090. siblings = t1.children;
  33091. for (i = this._indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  33092. if (!this._node0$_isInvisible$1(t2.elementAt$1(t1, i)))
  33093. return true;
  33094. return false;
  33095. },
  33096. _node0$_isInvisible$1: function(node) {
  33097. if (type$.legacy_CssParentNode._is(node)) {
  33098. if (type$.legacy_CssAtRule._is(node))
  33099. return false;
  33100. if (type$.legacy_CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  33101. return true;
  33102. return J.every$1$ax(node.get$children(node), this.get$_node0$_isInvisible());
  33103. } else
  33104. return false;
  33105. },
  33106. get$isGroupEnd: function() {
  33107. return this.isGroupEnd;
  33108. }
  33109. };
  33110. B.ModifiableCssParentNode.prototype = {
  33111. get$isChildless: function() {
  33112. return false;
  33113. },
  33114. addChild$1: function(child) {
  33115. var t1;
  33116. child._parent = this;
  33117. t1 = this._children;
  33118. child._indexInParent = t1.length;
  33119. t1.push(child);
  33120. },
  33121. $isCssParentNode: 1,
  33122. get$children: function(receiver) {
  33123. return this.children;
  33124. }
  33125. };
  33126. X.ModifiableCssStyleRule.prototype = {
  33127. accept$1$1: function(visitor) {
  33128. return visitor.visitCssStyleRule$1(this);
  33129. },
  33130. accept$1: function(visitor) {
  33131. return this.accept$1$1(visitor, type$.dynamic);
  33132. },
  33133. copyWithoutChildren$0: function() {
  33134. return X.ModifiableCssStyleRule$(this.selector, this.span, this.originalSelector);
  33135. },
  33136. $isCssStyleRule: 1,
  33137. get$span: function() {
  33138. return this.span;
  33139. }
  33140. };
  33141. V.ModifiableCssStylesheet.prototype = {
  33142. accept$1$1: function(visitor) {
  33143. return visitor.visitCssStylesheet$1(this);
  33144. },
  33145. accept$1: function(visitor) {
  33146. return this.accept$1$1(visitor, type$.dynamic);
  33147. },
  33148. copyWithoutChildren$0: function() {
  33149. return V.ModifiableCssStylesheet$(this.span);
  33150. },
  33151. $isCssStylesheet: 1,
  33152. get$span: function() {
  33153. return this.span;
  33154. }
  33155. };
  33156. B.ModifiableCssSupportsRule.prototype = {
  33157. accept$1$1: function(visitor) {
  33158. return visitor.visitCssSupportsRule$1(this);
  33159. },
  33160. accept$1: function(visitor) {
  33161. return this.accept$1$1(visitor, type$.dynamic);
  33162. },
  33163. copyWithoutChildren$0: function() {
  33164. return B.ModifiableCssSupportsRule$(this.condition, this.span);
  33165. },
  33166. $isCssSupportsRule: 1,
  33167. get$span: function() {
  33168. return this.span;
  33169. }
  33170. };
  33171. F.ModifiableCssValue.prototype = {
  33172. toString$0: function(_) {
  33173. return J.toString$0$(this.value);
  33174. },
  33175. $isCssValue: 1,
  33176. $isAstNode: 1,
  33177. get$value: function(receiver) {
  33178. return this.value;
  33179. },
  33180. get$span: function() {
  33181. return this.span;
  33182. }
  33183. };
  33184. B.CssNode.prototype = {
  33185. toString$0: function(_) {
  33186. return N.serialize(this, true, null, true, null, false, null, true).css;
  33187. }
  33188. };
  33189. B.CssParentNode.prototype = {};
  33190. V.CssStylesheet.prototype = {
  33191. get$isGroupEnd: function() {
  33192. return false;
  33193. },
  33194. get$isChildless: function() {
  33195. return false;
  33196. },
  33197. accept$1$1: function(visitor) {
  33198. return visitor.visitCssStylesheet$1(this);
  33199. },
  33200. accept$1: function(visitor) {
  33201. return this.accept$1$1(visitor, type$.dynamic);
  33202. },
  33203. get$children: function(receiver) {
  33204. return this.children;
  33205. },
  33206. get$span: function() {
  33207. return this.span;
  33208. }
  33209. };
  33210. F.CssValue.prototype = {
  33211. toString$0: function(_) {
  33212. return J.toString$0$(this.value);
  33213. },
  33214. $isAstNode: 1,
  33215. get$value: function(receiver) {
  33216. return this.value;
  33217. },
  33218. get$span: function() {
  33219. return this.span;
  33220. }
  33221. };
  33222. B.AstNode.prototype = {};
  33223. B._FakeAstNode.prototype = {
  33224. get$span: function() {
  33225. return this._callback.call$0();
  33226. },
  33227. $isAstNode: 1
  33228. };
  33229. Z.Argument.prototype = {
  33230. toString$0: function(_) {
  33231. var t1 = this.defaultValue,
  33232. t2 = this.name;
  33233. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  33234. },
  33235. $isAstNode: 1,
  33236. get$span: function() {
  33237. return this.span;
  33238. }
  33239. };
  33240. B.ArgumentDeclaration.prototype = {
  33241. get$spanWithName: function() {
  33242. var t3, t4,
  33243. t1 = this.span,
  33244. t2 = t1.file,
  33245. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  33246. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  33247. while (true) {
  33248. if (i > 0) {
  33249. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  33250. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  33251. } else
  33252. t3 = false;
  33253. if (!t3)
  33254. break;
  33255. --i;
  33256. }
  33257. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  33258. if (!(t3 === 95 || T.isAlphabetic0(t3) || t3 >= 128 || T.isDigit(t3) || t3 === 45))
  33259. return t1;
  33260. --i;
  33261. while (true) {
  33262. if (i >= 0) {
  33263. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  33264. if (t3 !== 95) {
  33265. if (!(t3 >= 97 && t3 <= 122))
  33266. t4 = t3 >= 65 && t3 <= 90;
  33267. else
  33268. t4 = true;
  33269. t4 = t4 || t3 >= 128;
  33270. } else
  33271. t4 = true;
  33272. if (!t4) {
  33273. t4 = t3 >= 48 && t3 <= 57;
  33274. t3 = t4 || t3 === 45;
  33275. } else
  33276. t3 = true;
  33277. } else
  33278. t3 = false;
  33279. if (!t3)
  33280. break;
  33281. --i;
  33282. }
  33283. t3 = i + 1;
  33284. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  33285. if (!(t4 === 95 || T.isAlphabetic0(t4) || t4 >= 128))
  33286. return t1;
  33287. return B.SpanExtensions_trim(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  33288. },
  33289. get$originalRestArgument: function() {
  33290. var t1, text;
  33291. if (this.restArgument == null)
  33292. return null;
  33293. t1 = this.span;
  33294. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  33295. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  33296. },
  33297. verify$2: function(positional, names) {
  33298. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  33299. _s10_ = "invocation",
  33300. _s8_ = "argument";
  33301. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  33302. argument = t1[i];
  33303. if (i < positional) {
  33304. t4 = argument.name;
  33305. if (t3.containsKey$1(t4))
  33306. throw H.wrapException(E.SassScriptException$("Argument " + H.S(_this._originalArgumentName$1(t4)) + string$.x20was_p));
  33307. } else {
  33308. t4 = argument.name;
  33309. if (t3.containsKey$1(t4))
  33310. ++namedUsed;
  33311. else if (argument.defaultValue == null)
  33312. throw H.wrapException(E.MultiSpanSassScriptException$("Missing argument " + H.S(_this._originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  33313. }
  33314. }
  33315. if (_this.restArgument != null)
  33316. return;
  33317. if (positional > t2) {
  33318. t1 = "Only " + t2 + " ";
  33319. throw H.wrapException(E.MultiSpanSassScriptException$(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  33320. }
  33321. if (namedUsed < t3.get$length(t3)) {
  33322. t2 = type$.legacy_String;
  33323. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  33324. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object*>")));
  33325. throw H.wrapException(E.MultiSpanSassScriptException$("No " + B.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure0(), type$.legacy_Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, t2)));
  33326. }
  33327. },
  33328. _originalArgumentName$1: function($name) {
  33329. var t1, t2, _i, argument, t3, t4, text, end;
  33330. if ($name === this.restArgument)
  33331. return this.get$originalRestArgument();
  33332. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  33333. argument = t1[_i];
  33334. if (argument.name === $name) {
  33335. t1 = argument.defaultValue;
  33336. t2 = argument.span;
  33337. t3 = t2.file;
  33338. t4 = t2._file$_start;
  33339. t2 = t2._end;
  33340. if (t1 == null) {
  33341. t1 = t3._decodedChars;
  33342. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  33343. } else {
  33344. t1 = t3._decodedChars;
  33345. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  33346. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  33347. end = B._lastNonWhitespace(t1, false);
  33348. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  33349. }
  33350. return t1;
  33351. }
  33352. }
  33353. throw H.wrapException(P.ArgumentError$(string$.This_d + $name + '".'));
  33354. },
  33355. matches$2: function(positional, names) {
  33356. var t1, t2, t3, namedUsed, i, argument;
  33357. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  33358. argument = t1[i];
  33359. if (i < positional) {
  33360. if (t3.containsKey$1(argument.name))
  33361. return false;
  33362. } else if (t3.containsKey$1(argument.name))
  33363. ++namedUsed;
  33364. else if (argument.defaultValue == null)
  33365. return false;
  33366. }
  33367. if (this.restArgument != null)
  33368. return true;
  33369. if (positional > t2)
  33370. return false;
  33371. if (namedUsed < t3.get$length(t3))
  33372. return false;
  33373. return true;
  33374. },
  33375. toString$0: function(_) {
  33376. var t2, t3, _i,
  33377. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  33378. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  33379. t1.push(J.toString$0$(t2[_i]));
  33380. t2 = this.restArgument;
  33381. if (t2 != null)
  33382. t1.push(t2 + "...");
  33383. return C.JSArray_methods.join$1(t1, ", ");
  33384. },
  33385. $isAstNode: 1,
  33386. get$span: function() {
  33387. return this.span;
  33388. }
  33389. };
  33390. B.ArgumentDeclaration_verify_closure.prototype = {
  33391. call$1: function(argument) {
  33392. return argument.name;
  33393. },
  33394. $signature: 478
  33395. };
  33396. B.ArgumentDeclaration_verify_closure0.prototype = {
  33397. call$1: function($name) {
  33398. return "$" + H.S($name);
  33399. },
  33400. $signature: 6
  33401. };
  33402. X.ArgumentInvocation.prototype = {
  33403. get$isEmpty: function(_) {
  33404. var t1;
  33405. if (this.positional.length === 0) {
  33406. t1 = this.named;
  33407. t1 = t1.get$isEmpty(t1) && this.rest == null;
  33408. } else
  33409. t1 = false;
  33410. return t1;
  33411. },
  33412. toString$0: function(_) {
  33413. var t2, t3, _i, t4, _this = this,
  33414. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  33415. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  33416. t1.push(t2[_i]);
  33417. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys(t2)); t3.moveNext$0();) {
  33418. t4 = t3.get$current(t3);
  33419. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  33420. }
  33421. t2 = _this.rest;
  33422. if (t2 != null)
  33423. t1.push(t2.toString$0(0) + "...");
  33424. t2 = _this.keywordRest;
  33425. if (t2 != null)
  33426. t1.push(t2.toString$0(0) + "...");
  33427. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  33428. },
  33429. $isAstNode: 1,
  33430. get$span: function() {
  33431. return this.span;
  33432. }
  33433. };
  33434. V.AtRootQuery.prototype = {
  33435. excludes$1: function(node) {
  33436. var t1, _this = this;
  33437. if (_this._all)
  33438. return !_this.include;
  33439. if (type$.legacy_CssStyleRule._is(node))
  33440. return _this._at_root_query$_rule !== _this.include;
  33441. if (type$.legacy_CssMediaRule._is(node))
  33442. return _this.excludesName$1("media");
  33443. if (type$.legacy_CssSupportsRule._is(node))
  33444. return _this.excludesName$1("supports");
  33445. if (type$.legacy_CssAtRule._is(node)) {
  33446. t1 = node.name;
  33447. return _this.excludesName$1(t1.get$value(t1).toLowerCase());
  33448. }
  33449. return false;
  33450. },
  33451. excludesName$1: function($name) {
  33452. var t1 = this._all || this.names.contains$1(0, $name);
  33453. return t1 !== this.include;
  33454. }
  33455. };
  33456. Z.ConfiguredVariable.prototype = {
  33457. toString$0: function(_) {
  33458. var t1 = "$" + this.name + ": " + H.S(this.expression);
  33459. return t1 + (this.isGuarded ? " !default" : "");
  33460. },
  33461. $isAstNode: 1,
  33462. get$span: function() {
  33463. return this.span;
  33464. }
  33465. };
  33466. V.BinaryOperationExpression.prototype = {
  33467. get$span: function() {
  33468. var right,
  33469. left = this.left;
  33470. for (; left instanceof V.BinaryOperationExpression;)
  33471. left = left.left;
  33472. right = this.right;
  33473. for (; right instanceof V.BinaryOperationExpression;)
  33474. right = right.right;
  33475. return B.spanForList(H.setRuntimeTypeInfo([left, right], type$.JSArray_legacy_AstNode));
  33476. },
  33477. accept$1$1: function(visitor) {
  33478. return visitor.visitBinaryOperationExpression$1(this);
  33479. },
  33480. accept$1: function(visitor) {
  33481. return this.accept$1$1(visitor, type$.dynamic);
  33482. },
  33483. toString$0: function(_) {
  33484. var t2, right, rightNeedsParens, _this = this,
  33485. left = _this.left,
  33486. leftNeedsParens = left instanceof V.BinaryOperationExpression && left.operator.precedence < _this.operator.precedence,
  33487. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  33488. t1 += H.S(left);
  33489. if (leftNeedsParens)
  33490. t1 += H.Primitives_stringFromCharCode(41);
  33491. t2 = _this.operator;
  33492. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  33493. right = _this.right;
  33494. rightNeedsParens = right instanceof V.BinaryOperationExpression && right.operator.precedence <= t2.precedence;
  33495. if (rightNeedsParens)
  33496. t1 += H.Primitives_stringFromCharCode(40);
  33497. t1 += H.S(right);
  33498. if (rightNeedsParens)
  33499. t1 += H.Primitives_stringFromCharCode(41);
  33500. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33501. },
  33502. $isAstNode: 1,
  33503. $isExpression: 1
  33504. };
  33505. V.BinaryOperator.prototype = {
  33506. toString$0: function(_) {
  33507. return this.name;
  33508. }
  33509. };
  33510. Z.BooleanExpression.prototype = {
  33511. accept$1$1: function(visitor) {
  33512. return visitor.visitBooleanExpression$1(this);
  33513. },
  33514. accept$1: function(visitor) {
  33515. return this.accept$1$1(visitor, type$.dynamic);
  33516. },
  33517. toString$0: function(_) {
  33518. return String(this.value);
  33519. },
  33520. $isAstNode: 1,
  33521. $isExpression: 1,
  33522. get$span: function() {
  33523. return this.span;
  33524. }
  33525. };
  33526. K.ColorExpression.prototype = {
  33527. get$span: function() {
  33528. return this.value.originalSpan;
  33529. },
  33530. accept$1$1: function(visitor) {
  33531. return visitor.visitColorExpression$1(this);
  33532. },
  33533. accept$1: function(visitor) {
  33534. return this.accept$1$1(visitor, type$.dynamic);
  33535. },
  33536. toString$0: function(_) {
  33537. return N.serializeValue0(this.value, true, true);
  33538. },
  33539. $isAstNode: 1,
  33540. $isExpression: 1
  33541. };
  33542. F.FunctionExpression.prototype = {
  33543. accept$1$1: function(visitor) {
  33544. return visitor.visitFunctionExpression$1(this);
  33545. },
  33546. accept$1: function(visitor) {
  33547. return this.accept$1$1(visitor, type$.dynamic);
  33548. },
  33549. toString$0: function(_) {
  33550. var t1 = this.namespace;
  33551. t1 = t1 != null ? t1 + "." : "";
  33552. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  33553. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33554. },
  33555. $isAstNode: 1,
  33556. $isExpression: 1,
  33557. get$span: function() {
  33558. return this.span;
  33559. }
  33560. };
  33561. L.IfExpression.prototype = {
  33562. accept$1$1: function(visitor) {
  33563. return visitor.visitIfExpression$1(this);
  33564. },
  33565. accept$1: function(visitor) {
  33566. return this.accept$1$1(visitor, type$.dynamic);
  33567. },
  33568. toString$0: function(_) {
  33569. return "if" + this.$arguments.toString$0(0);
  33570. },
  33571. $isAstNode: 1,
  33572. $isExpression: 1,
  33573. get$span: function() {
  33574. return this.span;
  33575. }
  33576. };
  33577. D.ListExpression.prototype = {
  33578. accept$1$1: function(visitor) {
  33579. return visitor.visitListExpression$1(this);
  33580. },
  33581. accept$1: function(visitor) {
  33582. return this.accept$1$1(visitor, type$.dynamic);
  33583. },
  33584. toString$0: function(_) {
  33585. var _this = this,
  33586. t1 = _this.hasBrackets,
  33587. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  33588. t3 = _this.contents,
  33589. t4 = _this.separator === C.ListSeparator_comma ? ", " : " ";
  33590. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String*>")).join$1(0, t4);
  33591. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  33592. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33593. },
  33594. _list0$_elementNeedsParens$1: function(expression) {
  33595. var t1, t2;
  33596. if (expression instanceof D.ListExpression) {
  33597. if (expression.contents.length < 2)
  33598. return false;
  33599. if (expression.hasBrackets)
  33600. return false;
  33601. t1 = this.separator;
  33602. t2 = t1 === C.ListSeparator_comma;
  33603. return t2 ? t2 : t1 !== C.ListSeparator_undecided;
  33604. }
  33605. if (this.separator !== C.ListSeparator_space)
  33606. return false;
  33607. if (expression instanceof X.UnaryOperationExpression) {
  33608. t1 = expression.operator;
  33609. return t1 === C.UnaryOperator_j2w || t1 === C.UnaryOperator_U4G;
  33610. }
  33611. return false;
  33612. },
  33613. $isAstNode: 1,
  33614. $isExpression: 1,
  33615. get$span: function() {
  33616. return this.span;
  33617. }
  33618. };
  33619. D.ListExpression_toString_closure.prototype = {
  33620. call$1: function(element) {
  33621. return this.$this._list0$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  33622. },
  33623. $signature: 471
  33624. };
  33625. A.MapExpression.prototype = {
  33626. accept$1$1: function(visitor) {
  33627. return visitor.visitMapExpression$1(this);
  33628. },
  33629. accept$1: function(visitor) {
  33630. return this.accept$1$1(visitor, type$.dynamic);
  33631. },
  33632. toString$0: function(_) {
  33633. var t1 = this.pairs;
  33634. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + ")";
  33635. },
  33636. $isAstNode: 1,
  33637. $isExpression: 1,
  33638. get$span: function() {
  33639. return this.span;
  33640. }
  33641. };
  33642. A.MapExpression_toString_closure.prototype = {
  33643. call$1: function(pair) {
  33644. return H.S(pair.item1) + ": " + H.S(pair.item2);
  33645. },
  33646. $signature: 470
  33647. };
  33648. O.NullExpression.prototype = {
  33649. accept$1$1: function(visitor) {
  33650. return visitor.visitNullExpression$1(this);
  33651. },
  33652. accept$1: function(visitor) {
  33653. return this.accept$1$1(visitor, type$.dynamic);
  33654. },
  33655. toString$0: function(_) {
  33656. return "null";
  33657. },
  33658. $isAstNode: 1,
  33659. $isExpression: 1,
  33660. get$span: function() {
  33661. return this.span;
  33662. }
  33663. };
  33664. T.NumberExpression.prototype = {
  33665. accept$1$1: function(visitor) {
  33666. return visitor.visitNumberExpression$1(this);
  33667. },
  33668. accept$1: function(visitor) {
  33669. return this.accept$1$1(visitor, type$.dynamic);
  33670. },
  33671. toString$0: function(_) {
  33672. var t1 = H.S(this.value),
  33673. t2 = this.unit;
  33674. return t1 + (t2 == null ? "" : t2);
  33675. },
  33676. $isAstNode: 1,
  33677. $isExpression: 1,
  33678. get$span: function() {
  33679. return this.span;
  33680. }
  33681. };
  33682. T.ParenthesizedExpression.prototype = {
  33683. accept$1$1: function(visitor) {
  33684. return visitor.visitParenthesizedExpression$1(this);
  33685. },
  33686. accept$1: function(visitor) {
  33687. return this.accept$1$1(visitor, type$.dynamic);
  33688. },
  33689. toString$0: function(_) {
  33690. return J.toString$0$(this.expression);
  33691. },
  33692. $isAstNode: 1,
  33693. $isExpression: 1,
  33694. get$span: function() {
  33695. return this.span;
  33696. }
  33697. };
  33698. T.SelectorExpression.prototype = {
  33699. accept$1$1: function(visitor) {
  33700. return visitor.visitSelectorExpression$1(this);
  33701. },
  33702. accept$1: function(visitor) {
  33703. return this.accept$1$1(visitor, type$.dynamic);
  33704. },
  33705. toString$0: function(_) {
  33706. return "&";
  33707. },
  33708. $isAstNode: 1,
  33709. $isExpression: 1,
  33710. get$span: function() {
  33711. return this.span;
  33712. }
  33713. };
  33714. D.StringExpression.prototype = {
  33715. get$span: function() {
  33716. return this.text.span;
  33717. },
  33718. accept$1$1: function(visitor) {
  33719. return visitor.visitStringExpression$1(this);
  33720. },
  33721. accept$1: function(visitor) {
  33722. return this.accept$1$1(visitor, type$.dynamic);
  33723. },
  33724. asInterpolation$1$static: function($static) {
  33725. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  33726. if (!_this.hasQuotes)
  33727. return _this.text;
  33728. quote = _this._bestQuote$0();
  33729. t1 = new P.StringBuffer("");
  33730. t2 = [];
  33731. buffer = new Z.InterpolationBuffer(t1, t2);
  33732. t1._contents += H.Primitives_stringFromCharCode(quote);
  33733. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.legacy_Expression, _i = 0; _i < t5; ++_i) {
  33734. value = t4[_i];
  33735. if (t6._is(value)) {
  33736. buffer._flushText$0();
  33737. t2.push(value);
  33738. } else if (typeof value == "string")
  33739. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  33740. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  33741. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  33742. t1._contents += H.Primitives_stringFromCharCode(92);
  33743. t1._contents += H.Primitives_stringFromCharCode(97);
  33744. if (i !== t8) {
  33745. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  33746. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex(next))
  33747. t1._contents += H.Primitives_stringFromCharCode(32);
  33748. }
  33749. } else {
  33750. if (codeUnit !== quote)
  33751. if (codeUnit !== 92)
  33752. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  33753. else
  33754. t9 = true;
  33755. else
  33756. t9 = true;
  33757. if (t9)
  33758. t1._contents += H.Primitives_stringFromCharCode(92);
  33759. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  33760. }
  33761. }
  33762. }
  33763. t1._contents += H.Primitives_stringFromCharCode(quote);
  33764. return buffer.interpolation$1(t3.span);
  33765. },
  33766. asInterpolation$0: function() {
  33767. return this.asInterpolation$1$static(false);
  33768. },
  33769. _bestQuote$0: function() {
  33770. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  33771. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  33772. value = t1[_i];
  33773. if (typeof value == "string")
  33774. for (t3 = value.length, i = 0; i < t3; ++i) {
  33775. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  33776. if (codeUnit === 39)
  33777. return 34;
  33778. if (codeUnit === 34)
  33779. containsDoubleQuote = true;
  33780. }
  33781. }
  33782. return containsDoubleQuote ? 39 : 34;
  33783. },
  33784. toString$0: function(_) {
  33785. return this.asInterpolation$0().toString$0(0);
  33786. },
  33787. $isAstNode: 1,
  33788. $isExpression: 1
  33789. };
  33790. X.UnaryOperationExpression.prototype = {
  33791. accept$1$1: function(visitor) {
  33792. return visitor.visitUnaryOperationExpression$1(this);
  33793. },
  33794. accept$1: function(visitor) {
  33795. return this.accept$1$1(visitor, type$.dynamic);
  33796. },
  33797. toString$0: function(_) {
  33798. var t1 = this.operator,
  33799. t2 = t1.operator;
  33800. t1 = t1 === C.UnaryOperator_not_not ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  33801. t1 += H.S(this.operand);
  33802. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33803. },
  33804. $isAstNode: 1,
  33805. $isExpression: 1,
  33806. get$span: function() {
  33807. return this.span;
  33808. }
  33809. };
  33810. X.UnaryOperator.prototype = {
  33811. toString$0: function(_) {
  33812. return this.name;
  33813. }
  33814. };
  33815. F.ValueExpression.prototype = {
  33816. accept$1$1: function(visitor) {
  33817. return visitor.visitValueExpression$1(this);
  33818. },
  33819. accept$1: function(visitor) {
  33820. return this.accept$1$1(visitor, type$.dynamic);
  33821. },
  33822. toString$0: function(_) {
  33823. return J.toString$0$(this.value);
  33824. },
  33825. $isAstNode: 1,
  33826. $isExpression: 1,
  33827. get$span: function() {
  33828. return this.span;
  33829. }
  33830. };
  33831. S.VariableExpression.prototype = {
  33832. accept$1$1: function(visitor) {
  33833. return visitor.visitVariableExpression$1(this);
  33834. },
  33835. accept$1: function(visitor) {
  33836. return this.accept$1$1(visitor, type$.dynamic);
  33837. },
  33838. toString$0: function(_) {
  33839. var t1 = this.namespace;
  33840. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  33841. t1 += this.name;
  33842. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33843. },
  33844. $isAstNode: 1,
  33845. $isExpression: 1,
  33846. get$span: function() {
  33847. return this.span;
  33848. }
  33849. };
  33850. B.DynamicImport.prototype = {
  33851. toString$0: function(_) {
  33852. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([this.url], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain();
  33853. },
  33854. $isAstNode: 1,
  33855. $isImport: 1,
  33856. get$span: function() {
  33857. return this.span;
  33858. }
  33859. };
  33860. Q.StaticImport.prototype = {
  33861. toString$0: function(_) {
  33862. var t1 = this.url.toString$0(0),
  33863. t2 = this.supports;
  33864. if (t2 != null)
  33865. t1 += " supports(" + t2.toString$0(0) + ")";
  33866. t2 = this.media;
  33867. if (t2 != null)
  33868. t1 += " " + t2.toString$0(0);
  33869. t1 += H.Primitives_stringFromCharCode(59);
  33870. return t1.charCodeAt(0) == 0 ? t1 : t1;
  33871. },
  33872. $isAstNode: 1,
  33873. $isImport: 1,
  33874. get$span: function() {
  33875. return this.span;
  33876. }
  33877. };
  33878. X.Interpolation.prototype = {
  33879. get$asPlain: function() {
  33880. var first,
  33881. t1 = this.contents,
  33882. t2 = t1.length;
  33883. if (t2 === 0)
  33884. return "";
  33885. if (t2 > 1)
  33886. return null;
  33887. first = C.JSArray_methods.get$first(t1);
  33888. return typeof first == "string" ? first : null;
  33889. },
  33890. get$initialPlain: function() {
  33891. var first = C.JSArray_methods.get$first(this.contents);
  33892. return typeof first == "string" ? first : "";
  33893. },
  33894. Interpolation$2: function(contents, span) {
  33895. var t1, t2, t3, i, t4, t5,
  33896. _s8_ = "contents";
  33897. for (t1 = this.contents, t2 = t1.length, t3 = type$.legacy_Expression, i = 0; i < t2; ++i) {
  33898. t4 = t1[i];
  33899. t5 = typeof t4 == "string";
  33900. if (!t5 && !t3._is(t4))
  33901. throw H.wrapException(P.ArgumentError$value(t1, _s8_, string$.May_on));
  33902. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  33903. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  33904. }
  33905. },
  33906. toString$0: function(_) {
  33907. var t1 = this.contents;
  33908. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  33909. },
  33910. $isAstNode: 1,
  33911. get$span: function() {
  33912. return this.span;
  33913. }
  33914. };
  33915. X.Interpolation_toString_closure.prototype = {
  33916. call$1: function(value) {
  33917. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  33918. },
  33919. $signature: 41
  33920. };
  33921. V.AtRootRule.prototype = {
  33922. accept$1$1: function(visitor) {
  33923. return visitor.visitAtRootRule$1(this);
  33924. },
  33925. accept$1: function(visitor) {
  33926. return this.accept$1$1(visitor, type$.dynamic);
  33927. },
  33928. toString$0: function(_) {
  33929. var buffer = new P.StringBuffer("@at-root "),
  33930. t1 = this.query;
  33931. if (t1 != null)
  33932. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  33933. t1 = this.children;
  33934. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  33935. },
  33936. get$span: function() {
  33937. return this.span;
  33938. }
  33939. };
  33940. U.AtRule.prototype = {
  33941. accept$1$1: function(visitor) {
  33942. return visitor.visitAtRule$1(this);
  33943. },
  33944. accept$1: function(visitor) {
  33945. return this.accept$1$1(visitor, type$.dynamic);
  33946. },
  33947. toString$0: function(_) {
  33948. var t1 = "@" + this.name.toString$0(0),
  33949. buffer = new P.StringBuffer(t1),
  33950. t2 = this.value;
  33951. if (t2 != null)
  33952. buffer._contents = t1 + (" " + t2.toString$0(0));
  33953. t1 = this.children;
  33954. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  33955. },
  33956. get$span: function() {
  33957. return this.span;
  33958. }
  33959. };
  33960. M.CallableDeclaration.prototype = {
  33961. get$span: function() {
  33962. return this.span;
  33963. }
  33964. };
  33965. Y.ContentBlock.prototype = {
  33966. accept$1$1: function(visitor) {
  33967. return visitor.visitContentBlock$1(this);
  33968. },
  33969. accept$1: function(visitor) {
  33970. return this.accept$1$1(visitor, type$.dynamic);
  33971. },
  33972. toString$0: function(_) {
  33973. var t2,
  33974. t1 = this.$arguments;
  33975. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  33976. t2 = this.children;
  33977. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  33978. }
  33979. };
  33980. Q.ContentRule.prototype = {
  33981. accept$1$1: function(visitor) {
  33982. return visitor.visitContentRule$1(this);
  33983. },
  33984. accept$1: function(visitor) {
  33985. return this.accept$1$1(visitor, type$.dynamic);
  33986. },
  33987. toString$0: function(_) {
  33988. var t1 = this.$arguments;
  33989. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  33990. },
  33991. $isAstNode: 1,
  33992. $isStatement: 1,
  33993. get$span: function() {
  33994. return this.span;
  33995. }
  33996. };
  33997. Q.DebugRule.prototype = {
  33998. accept$1$1: function(visitor) {
  33999. return visitor.visitDebugRule$1(this);
  34000. },
  34001. accept$1: function(visitor) {
  34002. return this.accept$1$1(visitor, type$.dynamic);
  34003. },
  34004. toString$0: function(_) {
  34005. return "@debug " + H.S(this.expression) + ";";
  34006. },
  34007. $isAstNode: 1,
  34008. $isStatement: 1,
  34009. get$span: function() {
  34010. return this.span;
  34011. }
  34012. };
  34013. L.Declaration.prototype = {
  34014. accept$1$1: function(visitor) {
  34015. return visitor.visitDeclaration$1(this);
  34016. },
  34017. accept$1: function(visitor) {
  34018. return this.accept$1$1(visitor, type$.dynamic);
  34019. },
  34020. get$span: function() {
  34021. return this.span;
  34022. }
  34023. };
  34024. V.EachRule.prototype = {
  34025. accept$1$1: function(visitor) {
  34026. return visitor.visitEachRule$1(this);
  34027. },
  34028. accept$1: function(visitor) {
  34029. return this.accept$1$1(visitor, type$.dynamic);
  34030. },
  34031. toString$0: function(_) {
  34032. var t1 = this.variables,
  34033. t2 = this.children;
  34034. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  34035. },
  34036. get$span: function() {
  34037. return this.span;
  34038. }
  34039. };
  34040. V.EachRule_toString_closure.prototype = {
  34041. call$1: function(variable) {
  34042. return C.JSString_methods.$add("$", variable);
  34043. },
  34044. $signature: 6
  34045. };
  34046. D.ErrorRule.prototype = {
  34047. accept$1$1: function(visitor) {
  34048. return visitor.visitErrorRule$1(this);
  34049. },
  34050. accept$1: function(visitor) {
  34051. return this.accept$1$1(visitor, type$.dynamic);
  34052. },
  34053. toString$0: function(_) {
  34054. return "@error " + H.S(this.expression) + ";";
  34055. },
  34056. $isAstNode: 1,
  34057. $isStatement: 1,
  34058. get$span: function() {
  34059. return this.span;
  34060. }
  34061. };
  34062. X.ExtendRule.prototype = {
  34063. accept$1$1: function(visitor) {
  34064. return visitor.visitExtendRule$1(this);
  34065. },
  34066. accept$1: function(visitor) {
  34067. return this.accept$1$1(visitor, type$.dynamic);
  34068. },
  34069. toString$0: function(_) {
  34070. return "@extend " + this.selector.toString$0(0);
  34071. },
  34072. $isAstNode: 1,
  34073. $isStatement: 1,
  34074. get$span: function() {
  34075. return this.span;
  34076. }
  34077. };
  34078. B.ForRule.prototype = {
  34079. accept$1$1: function(visitor) {
  34080. return visitor.visitForRule$1(this);
  34081. },
  34082. accept$1: function(visitor) {
  34083. return this.accept$1$1(visitor, type$.dynamic);
  34084. },
  34085. toString$0: function(_) {
  34086. var _this = this,
  34087. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  34088. t2 = _this.children;
  34089. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  34090. },
  34091. get$span: function() {
  34092. return this.span;
  34093. }
  34094. };
  34095. L.ForwardRule.prototype = {
  34096. accept$1$1: function(visitor) {
  34097. return visitor.visitForwardRule$1(this);
  34098. },
  34099. accept$1: function(visitor) {
  34100. return this.accept$1$1(visitor, type$.dynamic);
  34101. },
  34102. toString$0: function(_) {
  34103. var t3, _this = this,
  34104. t1 = "@forward " + H.S(new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([J.toString$0$(_this.url)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  34105. t2 = _this.shownMixinsAndFunctions;
  34106. if (t2 != null)
  34107. t1 = t1 + " show " + _this._forward_rule$_memberList$2(t2, _this.shownVariables);
  34108. else {
  34109. t2 = _this.hiddenMixinsAndFunctions;
  34110. if (t2 != null) {
  34111. t3 = t2._base;
  34112. t3 = t3.get$isNotEmpty(t3);
  34113. } else
  34114. t3 = false;
  34115. if (t3)
  34116. t1 = t1 + " hide " + _this._forward_rule$_memberList$2(t2, _this.hiddenVariables);
  34117. }
  34118. t2 = _this.prefix;
  34119. if (t2 != null)
  34120. t1 += " as " + t2 + "*";
  34121. t2 = _this.configuration;
  34122. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  34123. return t1.charCodeAt(0) == 0 ? t1 : t1;
  34124. },
  34125. _forward_rule$_memberList$2: function(mixinsAndFunctions, variables) {
  34126. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  34127. t2 = this.shownMixinsAndFunctions;
  34128. if (t2 != null)
  34129. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  34130. t1.push(t2.get$current(t2));
  34131. t2 = this.shownVariables;
  34132. if (t2 != null)
  34133. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  34134. t1.push("$" + H.S(t2.get$current(t2)));
  34135. return C.JSArray_methods.join$1(t1, ", ");
  34136. },
  34137. $isAstNode: 1,
  34138. $isStatement: 1,
  34139. get$span: function() {
  34140. return this.span;
  34141. }
  34142. };
  34143. M.FunctionRule.prototype = {
  34144. accept$1$1: function(visitor) {
  34145. return visitor.visitFunctionRule$1(this);
  34146. },
  34147. accept$1: function(visitor) {
  34148. return this.accept$1$1(visitor, type$.dynamic);
  34149. },
  34150. toString$0: function(_) {
  34151. var t1 = this.children;
  34152. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  34153. }
  34154. };
  34155. V.IfRule.prototype = {
  34156. accept$1$1: function(visitor) {
  34157. return visitor.visitIfRule$1(this);
  34158. },
  34159. accept$1: function(visitor) {
  34160. return this.accept$1$1(visitor, type$.dynamic);
  34161. },
  34162. toString$0: function(_) {
  34163. var t2, t1 = {};
  34164. t1.first = true;
  34165. t2 = this.clauses;
  34166. return new H.MappedListIterable(t2, new V.IfRule_toString_closure(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$1(0, " ");
  34167. },
  34168. $isAstNode: 1,
  34169. $isStatement: 1,
  34170. get$span: function() {
  34171. return this.span;
  34172. }
  34173. };
  34174. V.IfRule_toString_closure.prototype = {
  34175. call$1: function(clause) {
  34176. var t1 = this._box_0,
  34177. $name = t1.first ? "if" : "else";
  34178. t1.first = false;
  34179. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  34180. },
  34181. $signature: 454
  34182. };
  34183. V.IfClause.prototype = {
  34184. toString$0: function(_) {
  34185. var t1 = this.expression;
  34186. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  34187. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  34188. }
  34189. };
  34190. V.IfClause$__closure.prototype = {
  34191. call$1: function(child) {
  34192. var t1;
  34193. if (!(child instanceof Z.VariableDeclaration))
  34194. if (!(child instanceof M.FunctionRule))
  34195. if (!(child instanceof T.MixinRule))
  34196. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure());
  34197. else
  34198. t1 = true;
  34199. else
  34200. t1 = true;
  34201. else
  34202. t1 = true;
  34203. return t1;
  34204. },
  34205. $signature: 182
  34206. };
  34207. V.IfClause$___closure.prototype = {
  34208. call$1: function($import) {
  34209. return $import instanceof B.DynamicImport;
  34210. },
  34211. $signature: 190
  34212. };
  34213. B.ImportRule.prototype = {
  34214. accept$1$1: function(visitor) {
  34215. return visitor.visitImportRule$1(this);
  34216. },
  34217. accept$1: function(visitor) {
  34218. return this.accept$1$1(visitor, type$.dynamic);
  34219. },
  34220. toString$0: function(_) {
  34221. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  34222. },
  34223. $isAstNode: 1,
  34224. $isStatement: 1,
  34225. get$span: function() {
  34226. return this.span;
  34227. }
  34228. };
  34229. A.IncludeRule.prototype = {
  34230. get$spanWithoutContent: function() {
  34231. var t2, t3,
  34232. t1 = this.span;
  34233. if (!(this.content == null)) {
  34234. t2 = t1.file;
  34235. t3 = this.$arguments.span;
  34236. t3 = B.SpanExtensions_trim(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  34237. t1 = t3;
  34238. }
  34239. return t1;
  34240. },
  34241. accept$1$1: function(visitor) {
  34242. return visitor.visitIncludeRule$1(this);
  34243. },
  34244. accept$1: function(visitor) {
  34245. return this.accept$1$1(visitor, type$.dynamic);
  34246. },
  34247. toString$0: function(_) {
  34248. var t2, _this = this,
  34249. t1 = _this.namespace;
  34250. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  34251. t1 += _this.name;
  34252. t2 = _this.$arguments;
  34253. if (!t2.get$isEmpty(t2))
  34254. t1 += "(" + t2.toString$0(0) + ")";
  34255. t2 = _this.content;
  34256. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  34257. return t1.charCodeAt(0) == 0 ? t1 : t1;
  34258. },
  34259. $isAstNode: 1,
  34260. $isStatement: 1,
  34261. get$span: function() {
  34262. return this.span;
  34263. }
  34264. };
  34265. L.LoudComment.prototype = {
  34266. get$span: function() {
  34267. return this.text.span;
  34268. },
  34269. accept$1$1: function(visitor) {
  34270. return visitor.visitLoudComment$1(this);
  34271. },
  34272. accept$1: function(visitor) {
  34273. return this.accept$1$1(visitor, type$.dynamic);
  34274. },
  34275. toString$0: function(_) {
  34276. return this.text.toString$0(0);
  34277. },
  34278. $isAstNode: 1,
  34279. $isStatement: 1
  34280. };
  34281. G.MediaRule.prototype = {
  34282. accept$1$1: function(visitor) {
  34283. return visitor.visitMediaRule$1(this);
  34284. },
  34285. accept$1: function(visitor) {
  34286. return this.accept$1$1(visitor, type$.dynamic);
  34287. },
  34288. toString$0: function(_) {
  34289. var t1 = this.children;
  34290. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  34291. },
  34292. get$span: function() {
  34293. return this.span;
  34294. }
  34295. };
  34296. T.MixinRule.prototype = {
  34297. accept$1$1: function(visitor) {
  34298. return visitor.visitMixinRule$1(this);
  34299. },
  34300. accept$1: function(visitor) {
  34301. return this.accept$1$1(visitor, type$.dynamic);
  34302. },
  34303. toString$0: function(_) {
  34304. var t1 = "@mixin " + H.S(this.name),
  34305. t2 = this.$arguments;
  34306. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  34307. t1 += "(" + t2.toString$0(0) + ")";
  34308. t2 = this.children;
  34309. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  34310. return t2.charCodeAt(0) == 0 ? t2 : t2;
  34311. }
  34312. };
  34313. M.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
  34314. M.ParentStatement_closure.prototype = {
  34315. call$1: function(child) {
  34316. var t1;
  34317. if (!(child instanceof Z.VariableDeclaration))
  34318. if (!(child instanceof M.FunctionRule))
  34319. if (!(child instanceof T.MixinRule))
  34320. t1 = child instanceof B.ImportRule && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure());
  34321. else
  34322. t1 = true;
  34323. else
  34324. t1 = true;
  34325. else
  34326. t1 = true;
  34327. return t1;
  34328. },
  34329. $signature: 182
  34330. };
  34331. M.ParentStatement__closure.prototype = {
  34332. call$1: function($import) {
  34333. return $import instanceof B.DynamicImport;
  34334. },
  34335. $signature: 190
  34336. };
  34337. B.ReturnRule.prototype = {
  34338. accept$1$1: function(visitor) {
  34339. return visitor.visitReturnRule$1(this);
  34340. },
  34341. accept$1: function(visitor) {
  34342. return this.accept$1$1(visitor, type$.dynamic);
  34343. },
  34344. toString$0: function(_) {
  34345. return "@return " + H.S(this.expression) + ";";
  34346. },
  34347. $isAstNode: 1,
  34348. $isStatement: 1,
  34349. get$span: function() {
  34350. return this.span;
  34351. }
  34352. };
  34353. B.SilentComment.prototype = {
  34354. accept$1$1: function(visitor) {
  34355. return visitor.visitSilentComment$1(this);
  34356. },
  34357. accept$1: function(visitor) {
  34358. return this.accept$1$1(visitor, type$.dynamic);
  34359. },
  34360. toString$0: function(_) {
  34361. return this.text;
  34362. },
  34363. $isAstNode: 1,
  34364. $isStatement: 1,
  34365. get$span: function() {
  34366. return this.span;
  34367. }
  34368. };
  34369. X.StyleRule.prototype = {
  34370. accept$1$1: function(visitor) {
  34371. return visitor.visitStyleRule$1(this);
  34372. },
  34373. accept$1: function(visitor) {
  34374. return this.accept$1$1(visitor, type$.dynamic);
  34375. },
  34376. toString$0: function(_) {
  34377. var t1 = this.children;
  34378. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  34379. },
  34380. get$span: function() {
  34381. return this.span;
  34382. }
  34383. };
  34384. V.Stylesheet.prototype = {
  34385. Stylesheet$3$plainCss: function(children, span, plainCss) {
  34386. var t1, t2, t3, t4, _i, child;
  34387. for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
  34388. child = t1[_i];
  34389. if (child instanceof T.UseRule)
  34390. t4.push(child);
  34391. else if (child instanceof L.ForwardRule)
  34392. t3.push(child);
  34393. else if (!(child instanceof B.SilentComment) && !(child instanceof L.LoudComment) && !(child instanceof Z.VariableDeclaration))
  34394. break;
  34395. }
  34396. },
  34397. accept$1$1: function(visitor) {
  34398. return visitor.visitStylesheet$1(this);
  34399. },
  34400. accept$1: function(visitor) {
  34401. return this.accept$1$1(visitor, type$.dynamic);
  34402. },
  34403. toString$0: function(_) {
  34404. var t1 = this.children;
  34405. return (t1 && C.JSArray_methods).join$1(t1, " ");
  34406. },
  34407. get$span: function() {
  34408. return this.span;
  34409. }
  34410. };
  34411. B.SupportsRule.prototype = {
  34412. accept$1$1: function(visitor) {
  34413. return visitor.visitSupportsRule$1(this);
  34414. },
  34415. accept$1: function(visitor) {
  34416. return this.accept$1$1(visitor, type$.dynamic);
  34417. },
  34418. toString$0: function(_) {
  34419. var t1 = this.children;
  34420. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  34421. },
  34422. get$span: function() {
  34423. return this.span;
  34424. }
  34425. };
  34426. T.UseRule.prototype = {
  34427. UseRule$4$configuration: function(url, namespace, span, configuration) {
  34428. var t1, t2, _i, variable;
  34429. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  34430. variable = t1[_i];
  34431. if (variable.isGuarded)
  34432. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  34433. }
  34434. },
  34435. accept$1$1: function(visitor) {
  34436. return visitor.visitUseRule$1(this);
  34437. },
  34438. accept$1: function(visitor) {
  34439. return this.accept$1$1(visitor, type$.dynamic);
  34440. },
  34441. toString$0: function(_) {
  34442. var t1 = this.url,
  34443. t2 = "@use " + H.S(new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([J.toString$0$(t1)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  34444. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  34445. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  34446. t1 = this.namespace;
  34447. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  34448. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  34449. else
  34450. t1 = t2;
  34451. t2 = this.configuration;
  34452. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  34453. return t1.charCodeAt(0) == 0 ? t1 : t1;
  34454. },
  34455. $isAstNode: 1,
  34456. $isStatement: 1,
  34457. get$span: function() {
  34458. return this.span;
  34459. }
  34460. };
  34461. Z.VariableDeclaration.prototype = {
  34462. accept$1$1: function(visitor) {
  34463. return visitor.visitVariableDeclaration$1(this);
  34464. },
  34465. accept$1: function(visitor) {
  34466. return this.accept$1$1(visitor, type$.dynamic);
  34467. },
  34468. toString$0: function(_) {
  34469. var t1 = this.namespace;
  34470. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  34471. t1 += this.name + ": " + H.S(this.expression) + ";";
  34472. return t1.charCodeAt(0) == 0 ? t1 : t1;
  34473. },
  34474. $isAstNode: 1,
  34475. $isStatement: 1,
  34476. get$span: function() {
  34477. return this.span;
  34478. }
  34479. };
  34480. Y.WarnRule.prototype = {
  34481. accept$1$1: function(visitor) {
  34482. return visitor.visitWarnRule$1(this);
  34483. },
  34484. accept$1: function(visitor) {
  34485. return this.accept$1$1(visitor, type$.dynamic);
  34486. },
  34487. toString$0: function(_) {
  34488. return "@warn " + H.S(this.expression) + ";";
  34489. },
  34490. $isAstNode: 1,
  34491. $isStatement: 1,
  34492. get$span: function() {
  34493. return this.span;
  34494. }
  34495. };
  34496. G.WhileRule.prototype = {
  34497. accept$1$1: function(visitor) {
  34498. return visitor.visitWhileRule$1(this);
  34499. },
  34500. accept$1: function(visitor) {
  34501. return this.accept$1$1(visitor, type$.dynamic);
  34502. },
  34503. toString$0: function(_) {
  34504. var t1 = this.children;
  34505. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  34506. },
  34507. get$span: function() {
  34508. return this.span;
  34509. }
  34510. };
  34511. Y.SupportsAnything.prototype = {
  34512. toString$0: function(_) {
  34513. return "(" + this.contents.toString$0(0) + ")";
  34514. },
  34515. $isAstNode: 1,
  34516. get$span: function() {
  34517. return this.span;
  34518. }
  34519. };
  34520. L.SupportsDeclaration.prototype = {
  34521. toString$0: function(_) {
  34522. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  34523. },
  34524. $isAstNode: 1,
  34525. get$span: function() {
  34526. return this.span;
  34527. }
  34528. };
  34529. F.SupportsFunction.prototype = {
  34530. toString$0: function(_) {
  34531. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  34532. },
  34533. $isAstNode: 1,
  34534. get$span: function() {
  34535. return this.span;
  34536. }
  34537. };
  34538. X.SupportsInterpolation.prototype = {
  34539. toString$0: function(_) {
  34540. return "#{" + H.S(this.expression) + "}";
  34541. },
  34542. $isAstNode: 1,
  34543. get$span: function() {
  34544. return this.span;
  34545. }
  34546. };
  34547. M.SupportsNegation.prototype = {
  34548. toString$0: function(_) {
  34549. var t1 = this.condition;
  34550. if (t1 instanceof M.SupportsNegation || t1 instanceof U.SupportsOperation)
  34551. return "not (" + t1.toString$0(0) + ")";
  34552. else
  34553. return "not " + t1.toString$0(0);
  34554. },
  34555. $isAstNode: 1,
  34556. get$span: function() {
  34557. return this.span;
  34558. }
  34559. };
  34560. U.SupportsOperation.prototype = {
  34561. toString$0: function(_) {
  34562. var _this = this;
  34563. return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
  34564. },
  34565. _operation$_parenthesize$1: function(condition) {
  34566. var t1;
  34567. if (!(condition instanceof M.SupportsNegation))
  34568. t1 = condition instanceof U.SupportsOperation && condition.operator === this.operator;
  34569. else
  34570. t1 = true;
  34571. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  34572. },
  34573. $isAstNode: 1,
  34574. get$span: function() {
  34575. return this.span;
  34576. }
  34577. };
  34578. T.Selector.prototype = {
  34579. get$isInvisible: function() {
  34580. return false;
  34581. },
  34582. toString$0: function(_) {
  34583. var visitor = N._SerializeVisitor$0(null, true, null, true, false, null, true);
  34584. this.accept$1(visitor);
  34585. return visitor._serialize$_buffer.toString$0(0);
  34586. }
  34587. };
  34588. N.AttributeSelector.prototype = {
  34589. accept$1$1: function(visitor) {
  34590. var t2, _this = this,
  34591. t1 = visitor._serialize$_buffer;
  34592. t1.writeCharCode$1(91);
  34593. t1.write$1(0, _this.name);
  34594. t2 = _this.op;
  34595. if (t2 != null) {
  34596. t1.write$1(0, t2);
  34597. t2 = _this.value;
  34598. if (G.Parser_isIdentifier(t2) && !J.startsWith$1$s(t2, "--")) {
  34599. t1.write$1(0, t2);
  34600. t2 = _this.modifier;
  34601. if (t2 != null)
  34602. t1.writeCharCode$1(32);
  34603. } else {
  34604. visitor._visitQuotedString$1(t2);
  34605. t2 = _this.modifier;
  34606. if (t2 != null)
  34607. if (visitor._style !== C.OutputStyle_compressed)
  34608. t1.writeCharCode$1(32);
  34609. }
  34610. if (t2 != null)
  34611. t1.write$1(0, t2);
  34612. }
  34613. t1.writeCharCode$1(93);
  34614. return null;
  34615. },
  34616. accept$1: function(visitor) {
  34617. return this.accept$1$1(visitor, type$.dynamic);
  34618. },
  34619. $eq: function(_, other) {
  34620. var _this = this;
  34621. if (other == null)
  34622. return false;
  34623. return other instanceof N.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  34624. },
  34625. get$hashCode: function(_) {
  34626. var _this = this,
  34627. t1 = _this.name;
  34628. return (C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  34629. }
  34630. };
  34631. N.AttributeOperator.prototype = {
  34632. toString$0: function(_) {
  34633. return this._attribute$_text;
  34634. }
  34635. };
  34636. X.ClassSelector.prototype = {
  34637. $eq: function(_, other) {
  34638. if (other == null)
  34639. return false;
  34640. return other instanceof X.ClassSelector && other.name === this.name;
  34641. },
  34642. accept$1$1: function(visitor) {
  34643. var t1 = visitor._serialize$_buffer;
  34644. t1.writeCharCode$1(46);
  34645. t1.write$1(0, this.name);
  34646. return null;
  34647. },
  34648. accept$1: function(visitor) {
  34649. return this.accept$1$1(visitor, type$.dynamic);
  34650. },
  34651. addSuffix$1: function(suffix) {
  34652. return new X.ClassSelector(this.name + suffix);
  34653. },
  34654. get$hashCode: function(_) {
  34655. return C.JSString_methods.get$hashCode(this.name);
  34656. }
  34657. };
  34658. S.ComplexSelector.prototype = {
  34659. get$minSpecificity: function() {
  34660. if (this._minSpecificity == null)
  34661. this._computeSpecificity$0();
  34662. return this._minSpecificity;
  34663. },
  34664. get$maxSpecificity: function() {
  34665. if (this._maxSpecificity == null)
  34666. this._computeSpecificity$0();
  34667. return this._maxSpecificity;
  34668. },
  34669. get$isInvisible: function() {
  34670. var t1 = this._complex$_isInvisible;
  34671. if (t1 != null)
  34672. return t1;
  34673. return this._complex$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure());
  34674. },
  34675. accept$1$1: function(visitor) {
  34676. return visitor.visitComplexSelector$1(this);
  34677. },
  34678. accept$1: function(visitor) {
  34679. return this.accept$1$1(visitor, type$.dynamic);
  34680. },
  34681. _computeSpecificity$0: function() {
  34682. var t1, t2, component, t3, _this = this,
  34683. _i = _this._maxSpecificity = _this._minSpecificity = 0;
  34684. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  34685. component = t1[_i];
  34686. if (component instanceof X.CompoundSelector) {
  34687. t3 = _this._minSpecificity;
  34688. if (component._compound$_minSpecificity == null)
  34689. component._compound$_computeSpecificity$0();
  34690. _this._minSpecificity = t3 + component._compound$_minSpecificity;
  34691. t3 = _this._maxSpecificity;
  34692. if (component._compound$_maxSpecificity == null)
  34693. component._compound$_computeSpecificity$0();
  34694. _this._maxSpecificity = t3 + component._compound$_maxSpecificity;
  34695. }
  34696. }
  34697. },
  34698. get$hashCode: function(_) {
  34699. return C.C_ListEquality.hash$1(this.components);
  34700. },
  34701. $eq: function(_, other) {
  34702. if (other == null)
  34703. return false;
  34704. return other instanceof S.ComplexSelector && C.C_ListEquality.equals$2(0, this.components, other.components);
  34705. }
  34706. };
  34707. S.ComplexSelector_isInvisible_closure.prototype = {
  34708. call$1: function(component) {
  34709. return component instanceof X.CompoundSelector && component.get$isInvisible();
  34710. },
  34711. $signature: 90
  34712. };
  34713. S.Combinator.prototype = {
  34714. toString$0: function(_) {
  34715. return this._complex$_text;
  34716. },
  34717. $isComplexSelectorComponent: 1
  34718. };
  34719. X.CompoundSelector.prototype = {
  34720. get$isInvisible: function() {
  34721. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure());
  34722. },
  34723. accept$1$1: function(visitor) {
  34724. return visitor.visitCompoundSelector$1(this);
  34725. },
  34726. accept$1: function(visitor) {
  34727. return this.accept$1$1(visitor, type$.dynamic);
  34728. },
  34729. _compound$_computeSpecificity$0: function() {
  34730. var t1, t2, simple, _this = this,
  34731. _i = _this._compound$_maxSpecificity = _this._compound$_minSpecificity = 0;
  34732. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  34733. simple = t1[_i];
  34734. _this._compound$_minSpecificity = _this._compound$_minSpecificity + simple.get$minSpecificity();
  34735. _this._compound$_maxSpecificity = _this._compound$_maxSpecificity + simple.get$maxSpecificity();
  34736. }
  34737. },
  34738. get$hashCode: function(_) {
  34739. return C.C_ListEquality.hash$1(this.components);
  34740. },
  34741. $eq: function(_, other) {
  34742. if (other == null)
  34743. return false;
  34744. return other instanceof X.CompoundSelector && C.C_ListEquality.equals$2(0, this.components, other.components);
  34745. },
  34746. $isComplexSelectorComponent: 1
  34747. };
  34748. X.CompoundSelector_isInvisible_closure.prototype = {
  34749. call$1: function(component) {
  34750. return component.get$isInvisible();
  34751. },
  34752. $signature: 18
  34753. };
  34754. N.IDSelector.prototype = {
  34755. get$minSpecificity: function() {
  34756. return H._asIntS(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(this), 2));
  34757. },
  34758. accept$1$1: function(visitor) {
  34759. var t1 = visitor._serialize$_buffer;
  34760. t1.writeCharCode$1(35);
  34761. t1.write$1(0, this.name);
  34762. return null;
  34763. },
  34764. accept$1: function(visitor) {
  34765. return this.accept$1$1(visitor, type$.dynamic);
  34766. },
  34767. addSuffix$1: function(suffix) {
  34768. return new N.IDSelector(this.name + suffix);
  34769. },
  34770. unify$1: function(compound) {
  34771. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure(this)))
  34772. return null;
  34773. return this.super$SimpleSelector$unify(compound);
  34774. },
  34775. $eq: function(_, other) {
  34776. if (other == null)
  34777. return false;
  34778. return other instanceof N.IDSelector && other.name === this.name;
  34779. },
  34780. get$hashCode: function(_) {
  34781. return C.JSString_methods.get$hashCode(this.name);
  34782. }
  34783. };
  34784. N.IDSelector_unify_closure.prototype = {
  34785. call$1: function(simple) {
  34786. var t1;
  34787. if (simple instanceof N.IDSelector) {
  34788. t1 = simple.name;
  34789. t1 = this.$this.name !== t1;
  34790. } else
  34791. t1 = false;
  34792. return t1;
  34793. },
  34794. $signature: 18
  34795. };
  34796. D.SelectorList.prototype = {
  34797. get$isInvisible: function() {
  34798. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure());
  34799. },
  34800. get$asSassList: function() {
  34801. var t1 = this.components;
  34802. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_comma, false);
  34803. },
  34804. accept$1$1: function(visitor) {
  34805. return visitor.visitSelectorList$1(this);
  34806. },
  34807. accept$1: function(visitor) {
  34808. return this.accept$1$1(visitor, type$.dynamic);
  34809. },
  34810. unify$1: function(other) {
  34811. var t1 = this.components,
  34812. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector*>"),
  34813. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure(other), t2), true, t2._eval$1("Iterable.E"));
  34814. return contents.length === 0 ? null : D.SelectorList$(contents);
  34815. },
  34816. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  34817. var t1, _this = this;
  34818. if ($parent == null) {
  34819. if (!C.JSArray_methods.any$1(_this.components, _this.get$_complexContainsParentSelector()))
  34820. return _this;
  34821. throw H.wrapException(E.SassScriptException$(string$.Top_le));
  34822. }
  34823. t1 = _this.components;
  34824. return D.SelectorList$(B.flattenVertically(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector*>*>")), type$.legacy_ComplexSelector));
  34825. },
  34826. resolveParentSelectors$1: function($parent) {
  34827. return this.resolveParentSelectors$2$implicitParent($parent, true);
  34828. },
  34829. _complexContainsParentSelector$1: function(complex) {
  34830. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure());
  34831. },
  34832. _resolveParentSelectorsCompound$2: function(compound, $parent) {
  34833. var resolvedMembers0, parentSelector, t1,
  34834. resolvedMembers = compound.components,
  34835. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure());
  34836. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector))
  34837. return null;
  34838. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure0($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector*>")) : resolvedMembers;
  34839. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  34840. if (parentSelector instanceof M.ParentSelector) {
  34841. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  34842. return $parent.components;
  34843. } else
  34844. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(resolvedMembers0)], type$.JSArray_legacy_ComplexSelectorComponent), false)], type$.JSArray_legacy_ComplexSelector);
  34845. t1 = $parent.components;
  34846. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure1(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  34847. },
  34848. get$hashCode: function(_) {
  34849. return C.C_ListEquality.hash$1(this.components);
  34850. },
  34851. $eq: function(_, other) {
  34852. if (other == null)
  34853. return false;
  34854. return other instanceof D.SelectorList && C.C_ListEquality.equals$2(0, this.components, other.components);
  34855. }
  34856. };
  34857. D.SelectorList_isInvisible_closure.prototype = {
  34858. call$1: function(complex) {
  34859. return complex.get$isInvisible();
  34860. },
  34861. $signature: 14
  34862. };
  34863. D.SelectorList_asSassList_closure.prototype = {
  34864. call$1: function(complex) {
  34865. var t1 = complex.components;
  34866. return D.SassList$(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_space, false);
  34867. },
  34868. $signature: 439
  34869. };
  34870. D.SelectorList_asSassList__closure.prototype = {
  34871. call$1: function(component) {
  34872. return new D.SassString(J.toString$0$(component), false);
  34873. },
  34874. $signature: 430
  34875. };
  34876. D.SelectorList_unify_closure.prototype = {
  34877. call$1: function(complex1) {
  34878. var t1 = this.other.components;
  34879. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector*>"));
  34880. },
  34881. $signature: 102
  34882. };
  34883. D.SelectorList_unify__closure.prototype = {
  34884. call$1: function(complex2) {
  34885. var unified = Y.unifyComplex(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  34886. if (unified == null)
  34887. return C.List_empty4;
  34888. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure(), type$.legacy_ComplexSelector);
  34889. },
  34890. $signature: 102
  34891. };
  34892. D.SelectorList_unify___closure.prototype = {
  34893. call$1: function(complex) {
  34894. return S.ComplexSelector$(complex, false);
  34895. },
  34896. $signature: 62
  34897. };
  34898. D.SelectorList_resolveParentSelectors_closure.prototype = {
  34899. call$1: function(complex) {
  34900. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  34901. t1 = _this.$this;
  34902. if (!t1._complexContainsParentSelector$1(complex)) {
  34903. if (!_this.implicitParent)
  34904. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  34905. t1 = _this.parent.components;
  34906. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  34907. }
  34908. t2 = type$.JSArray_legacy_ComplexSelectorComponent;
  34909. t3 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent;
  34910. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  34911. t4 = type$.JSArray_legacy_bool;
  34912. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  34913. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  34914. component = t5[_i];
  34915. if (component instanceof X.CompoundSelector) {
  34916. resolved = t1._resolveParentSelectorsCompound$2(component, t7);
  34917. if (resolved == null) {
  34918. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  34919. newComplexes[_i0].push(component);
  34920. continue;
  34921. }
  34922. previousLineBreaks = _box_0.lineBreaks;
  34923. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  34924. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  34925. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  34926. newComplex = newComplexes[_i0];
  34927. i0 = i + 1;
  34928. lineBreak = previousLineBreaks[i];
  34929. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  34930. t12 = t10.get$current(t10);
  34931. t13 = H.setRuntimeTypeInfo([], t2);
  34932. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  34933. t13.push(t14.get$current(t14));
  34934. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  34935. t13.push(t14[_i1]);
  34936. newComplexes0.push(t13);
  34937. t13 = _box_0.lineBreaks;
  34938. t13.push(!t11 || t12.lineBreak);
  34939. }
  34940. }
  34941. newComplexes = newComplexes0;
  34942. } else
  34943. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  34944. newComplexes[_i0].push(component);
  34945. }
  34946. _box_0.i = 0;
  34947. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure0(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  34948. },
  34949. $signature: 102
  34950. };
  34951. D.SelectorList_resolveParentSelectors__closure.prototype = {
  34952. call$1: function(parentComplex) {
  34953. var t2, t3, _i, t4,
  34954. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  34955. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  34956. t1.push(t2[_i]);
  34957. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  34958. t1.push(t3[_i]);
  34959. return S.ComplexSelector$(t1, t2.lineBreak || parentComplex.lineBreak);
  34960. },
  34961. $signature: 82
  34962. };
  34963. D.SelectorList_resolveParentSelectors__closure0.prototype = {
  34964. call$1: function(newComplex) {
  34965. var t1 = this._box_0;
  34966. return S.ComplexSelector$(newComplex, t1.lineBreaks[t1.i++]);
  34967. },
  34968. $signature: 62
  34969. };
  34970. D.SelectorList__complexContainsParentSelector_closure.prototype = {
  34971. call$1: function(component) {
  34972. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure());
  34973. },
  34974. $signature: 90
  34975. };
  34976. D.SelectorList__complexContainsParentSelector__closure.prototype = {
  34977. call$1: function(simple) {
  34978. var t1;
  34979. if (!(simple instanceof M.ParentSelector))
  34980. if (simple instanceof D.PseudoSelector) {
  34981. t1 = simple.selector;
  34982. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34983. } else
  34984. t1 = false;
  34985. else
  34986. t1 = true;
  34987. return t1;
  34988. },
  34989. $signature: 18
  34990. };
  34991. D.SelectorList__resolveParentSelectorsCompound_closure.prototype = {
  34992. call$1: function(simple) {
  34993. var t1;
  34994. if (simple instanceof D.PseudoSelector) {
  34995. t1 = simple.selector;
  34996. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector());
  34997. } else
  34998. t1 = false;
  34999. return t1;
  35000. },
  35001. $signature: 18
  35002. };
  35003. D.SelectorList__resolveParentSelectorsCompound_closure0.prototype = {
  35004. call$1: function(simple) {
  35005. var t1, t2, t3;
  35006. if (simple instanceof D.PseudoSelector) {
  35007. t1 = simple.selector;
  35008. if (t1 == null)
  35009. return simple;
  35010. if (!C.JSArray_methods.any$1(t1.components, t1.get$_complexContainsParentSelector()))
  35011. return simple;
  35012. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  35013. t2 = simple.name;
  35014. t3 = simple.isClass;
  35015. return D.PseudoSelector$(t2, simple.argument, !t3, t1);
  35016. } else
  35017. return simple;
  35018. },
  35019. $signature: 428
  35020. };
  35021. D.SelectorList__resolveParentSelectorsCompound_closure1.prototype = {
  35022. call$1: function(complex) {
  35023. var suffix, t2, t3, t4, cur, last, _i,
  35024. t1 = complex.components,
  35025. lastComponent = C.JSArray_methods.get$last(t1);
  35026. if (!(lastComponent instanceof X.CompoundSelector))
  35027. throw H.wrapException(E.SassScriptException$('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  35028. suffix = type$.legacy_ParentSelector._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  35029. t2 = type$.JSArray_legacy_SimpleSelector;
  35030. if (suffix != null) {
  35031. t2 = H.setRuntimeTypeInfo([], t2);
  35032. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();) {
  35033. cur = t4.__internal$_current;
  35034. t2.push(cur);
  35035. }
  35036. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  35037. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  35038. cur = t3.__internal$_current;
  35039. t2.push(cur);
  35040. }
  35041. last = X.CompoundSelector$(t2);
  35042. } else {
  35043. t2 = H.setRuntimeTypeInfo([], t2);
  35044. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  35045. t2.push(t3[_i]);
  35046. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  35047. cur = t3.__internal$_current;
  35048. t2.push(cur);
  35049. }
  35050. last = X.CompoundSelector$(t2);
  35051. }
  35052. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  35053. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  35054. cur = t1.__internal$_current;
  35055. t2.push(cur);
  35056. }
  35057. t2.push(last);
  35058. return S.ComplexSelector$(t2, complex.lineBreak);
  35059. },
  35060. $signature: 82
  35061. };
  35062. M.ParentSelector.prototype = {
  35063. accept$1$1: function(visitor) {
  35064. var t2,
  35065. t1 = visitor._serialize$_buffer;
  35066. t1.writeCharCode$1(38);
  35067. t2 = this.suffix;
  35068. if (t2 != null)
  35069. t1.write$1(0, t2);
  35070. return null;
  35071. },
  35072. accept$1: function(visitor) {
  35073. return this.accept$1$1(visitor, type$.dynamic);
  35074. },
  35075. unify$1: function(compound) {
  35076. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  35077. }
  35078. };
  35079. N.PlaceholderSelector.prototype = {
  35080. get$isInvisible: function() {
  35081. return true;
  35082. },
  35083. accept$1$1: function(visitor) {
  35084. var t1 = visitor._serialize$_buffer;
  35085. t1.writeCharCode$1(37);
  35086. t1.write$1(0, this.name);
  35087. return null;
  35088. },
  35089. accept$1: function(visitor) {
  35090. return this.accept$1$1(visitor, type$.dynamic);
  35091. },
  35092. addSuffix$1: function(suffix) {
  35093. return new N.PlaceholderSelector(this.name + suffix);
  35094. },
  35095. $eq: function(_, other) {
  35096. if (other == null)
  35097. return false;
  35098. return other instanceof N.PlaceholderSelector && other.name === this.name;
  35099. },
  35100. get$hashCode: function(_) {
  35101. return C.JSString_methods.get$hashCode(this.name);
  35102. }
  35103. };
  35104. D.PseudoSelector.prototype = {
  35105. get$minSpecificity: function() {
  35106. if (this._pseudo$_minSpecificity == null)
  35107. this._pseudo$_computeSpecificity$0();
  35108. return this._pseudo$_minSpecificity;
  35109. },
  35110. get$maxSpecificity: function() {
  35111. if (this._pseudo$_maxSpecificity == null)
  35112. this._pseudo$_computeSpecificity$0();
  35113. return this._pseudo$_maxSpecificity;
  35114. },
  35115. get$isInvisible: function() {
  35116. var t1 = this.selector;
  35117. if (t1 == null)
  35118. return false;
  35119. return this.name !== "not" && t1.get$isInvisible();
  35120. },
  35121. addSuffix$1: function(suffix) {
  35122. var _this = this;
  35123. if (_this.argument != null || _this.selector != null)
  35124. _this.super$SimpleSelector$addSuffix(suffix);
  35125. return D.PseudoSelector$(_this.name + suffix, null, !_this.isClass, null);
  35126. },
  35127. unify$1: function(compound) {
  35128. var result, t1, t2, addedThis, _i, simple, _this = this;
  35129. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  35130. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector));
  35131. if (C.JSArray_methods.contains$1(compound, _this))
  35132. return compound;
  35133. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35134. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  35135. simple = compound[_i];
  35136. if (simple instanceof D.PseudoSelector && !simple.isClass) {
  35137. if (t2)
  35138. return null;
  35139. result.push(_this);
  35140. addedThis = true;
  35141. }
  35142. result.push(simple);
  35143. }
  35144. if (!addedThis)
  35145. result.push(_this);
  35146. return result;
  35147. },
  35148. _pseudo$_computeSpecificity$0: function() {
  35149. var t1, _i, t2, complex, t3, t4, _this = this;
  35150. if (!_this.isClass) {
  35151. _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 1;
  35152. return;
  35153. }
  35154. t1 = _this.selector;
  35155. if (t1 == null) {
  35156. _this._pseudo$_minSpecificity = M.SimpleSelector.prototype.get$minSpecificity.call(_this);
  35157. _this._pseudo$_maxSpecificity = M.SimpleSelector.prototype.get$maxSpecificity.call(_this);
  35158. return;
  35159. }
  35160. if (_this.name === "not") {
  35161. _i = _this._pseudo$_maxSpecificity = _this._pseudo$_minSpecificity = 0;
  35162. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  35163. complex = t1[_i];
  35164. t3 = _this._pseudo$_minSpecificity;
  35165. if (complex._minSpecificity == null)
  35166. complex._computeSpecificity$0();
  35167. t4 = complex._minSpecificity;
  35168. _this._pseudo$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  35169. t4 = _this._pseudo$_maxSpecificity;
  35170. if (complex._maxSpecificity == null)
  35171. complex._computeSpecificity$0();
  35172. t3 = complex._maxSpecificity;
  35173. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  35174. }
  35175. } else {
  35176. _this._pseudo$_minSpecificity = H._asIntS(Math.pow(M.SimpleSelector.prototype.get$minSpecificity.call(_this), 3));
  35177. _i = _this._pseudo$_maxSpecificity = 0;
  35178. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  35179. complex = t1[_i];
  35180. t3 = _this._pseudo$_minSpecificity;
  35181. if (complex._minSpecificity == null)
  35182. complex._computeSpecificity$0();
  35183. t4 = complex._minSpecificity;
  35184. _this._pseudo$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  35185. t4 = _this._pseudo$_maxSpecificity;
  35186. if (complex._maxSpecificity == null)
  35187. complex._computeSpecificity$0();
  35188. t3 = complex._maxSpecificity;
  35189. _this._pseudo$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  35190. }
  35191. }
  35192. },
  35193. accept$1$1: function(visitor) {
  35194. return visitor.visitPseudoSelector$1(this);
  35195. },
  35196. accept$1: function(visitor) {
  35197. return this.accept$1$1(visitor, type$.dynamic);
  35198. },
  35199. $eq: function(_, other) {
  35200. var _this = this;
  35201. if (other == null)
  35202. return false;
  35203. return other instanceof D.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  35204. },
  35205. get$hashCode: function(_) {
  35206. var _this = this;
  35207. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  35208. }
  35209. };
  35210. D.QualifiedName.prototype = {
  35211. $eq: function(_, other) {
  35212. if (other == null)
  35213. return false;
  35214. return other instanceof D.QualifiedName && other.name === this.name && other.namespace == this.namespace;
  35215. },
  35216. get$hashCode: function(_) {
  35217. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  35218. },
  35219. toString$0: function(_) {
  35220. var t1 = this.namespace,
  35221. t2 = this.name;
  35222. return t1 == null ? t2 : t1 + "|" + t2;
  35223. }
  35224. };
  35225. M.SimpleSelector.prototype = {
  35226. get$minSpecificity: function() {
  35227. return 1000;
  35228. },
  35229. get$maxSpecificity: function() {
  35230. return this.get$minSpecificity();
  35231. },
  35232. addSuffix$1: function(suffix) {
  35233. return H.throwExpression(E.SassScriptException$('Invalid parent selector "' + this.toString$0(0) + '"'));
  35234. },
  35235. unify$1: function(compound) {
  35236. var result, t1, addedThis, _i, simple, _this = this;
  35237. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector)
  35238. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector));
  35239. if (C.JSArray_methods.contains$1(compound, _this))
  35240. return compound;
  35241. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35242. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  35243. simple = compound[_i];
  35244. if (!addedThis && simple instanceof D.PseudoSelector) {
  35245. result.push(_this);
  35246. addedThis = true;
  35247. }
  35248. result.push(simple);
  35249. }
  35250. if (!addedThis)
  35251. result.push(_this);
  35252. return result;
  35253. }
  35254. };
  35255. F.TypeSelector.prototype = {
  35256. get$minSpecificity: function() {
  35257. return 1;
  35258. },
  35259. accept$1$1: function(visitor) {
  35260. visitor._serialize$_buffer.write$1(0, this.name);
  35261. return null;
  35262. },
  35263. accept$1: function(visitor) {
  35264. return this.accept$1$1(visitor, type$.dynamic);
  35265. },
  35266. addSuffix$1: function(suffix) {
  35267. var t1 = this.name;
  35268. return new F.TypeSelector(new D.QualifiedName(t1.name + suffix, t1.namespace));
  35269. },
  35270. unify$1: function(compound) {
  35271. var unified, t1, t2, cur, _i;
  35272. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  35273. unified = Y.unifyUniversalAndElement(this, C.JSArray_methods.get$first(compound));
  35274. if (unified == null)
  35275. return null;
  35276. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35277. t1.push(unified);
  35278. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35279. cur = t2.__internal$_current;
  35280. t1.push(cur);
  35281. }
  35282. return t1;
  35283. } else {
  35284. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35285. t1.push(this);
  35286. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  35287. t1.push(compound[_i]);
  35288. return t1;
  35289. }
  35290. },
  35291. $eq: function(_, other) {
  35292. if (other == null)
  35293. return false;
  35294. return other instanceof F.TypeSelector && other.name.$eq(0, this.name);
  35295. },
  35296. get$hashCode: function(_) {
  35297. var t1 = this.name;
  35298. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  35299. }
  35300. };
  35301. N.UniversalSelector.prototype = {
  35302. get$minSpecificity: function() {
  35303. return 0;
  35304. },
  35305. accept$1$1: function(visitor) {
  35306. var t2,
  35307. t1 = this.namespace;
  35308. if (t1 != null) {
  35309. t2 = visitor._serialize$_buffer;
  35310. t2.write$1(0, t1);
  35311. t2.writeCharCode$1(124);
  35312. }
  35313. visitor._serialize$_buffer.writeCharCode$1(42);
  35314. return null;
  35315. },
  35316. accept$1: function(visitor) {
  35317. return this.accept$1$1(visitor, type$.dynamic);
  35318. },
  35319. unify$1: function(compound) {
  35320. var unified, t1, t2, cur, _i, _this = this;
  35321. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector) {
  35322. unified = Y.unifyUniversalAndElement(_this, C.JSArray_methods.get$first(compound));
  35323. if (unified == null)
  35324. return null;
  35325. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35326. t1.push(unified);
  35327. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35328. cur = t2.__internal$_current;
  35329. t1.push(cur);
  35330. }
  35331. return t1;
  35332. }
  35333. t1 = _this.namespace;
  35334. if (t1 != null && t1 !== "*") {
  35335. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector);
  35336. t1.push(_this);
  35337. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  35338. t1.push(compound[_i]);
  35339. return t1;
  35340. }
  35341. if (compound.length !== 0)
  35342. return compound;
  35343. return H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector);
  35344. },
  35345. $eq: function(_, other) {
  35346. if (other == null)
  35347. return false;
  35348. return other instanceof N.UniversalSelector && other.namespace == this.namespace;
  35349. },
  35350. get$hashCode: function(_) {
  35351. return J.get$hashCode$(this.namespace);
  35352. }
  35353. };
  35354. X._compileStylesheet_closure0.prototype = {
  35355. call$1: function(url) {
  35356. var t1, t2, _null = null;
  35357. if (url === "")
  35358. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  35359. else {
  35360. t1 = P.Uri_parse(url);
  35361. t2 = this.importCache._async_import_cache$_resultsCache.$index(0, t1);
  35362. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  35363. t1 = (t2 == null ? t1 : t2).toString$0(0);
  35364. }
  35365. return t1;
  35366. },
  35367. $signature: 6
  35368. };
  35369. X.CompileResult.prototype = {};
  35370. Q.AsyncEnvironment.prototype = {
  35371. closure$0: function() {
  35372. var t5, t6, t7, _this = this,
  35373. t1 = _this._async_environment$_forwardedModules,
  35374. t2 = _this._async_environment$_forwardedModuleNodes,
  35375. t3 = _this._async_environment$_nestedForwardedModules,
  35376. t4 = _this._async_environment$_variables;
  35377. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  35378. t5 = _this._async_environment$_variableNodes;
  35379. if (t5 == null)
  35380. t5 = null;
  35381. else
  35382. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  35383. t6 = _this._async_environment$_functions;
  35384. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  35385. t7 = _this._async_environment$_mixins;
  35386. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  35387. return Q.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_globalModuleNodes, t1, t2, t3, _this._async_environment$_allModules, t4, t5, t6, t7, _this._async_environment$_content);
  35388. },
  35389. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  35390. var t1, t2, _this = this;
  35391. if (namespace == null) {
  35392. _this._async_environment$_globalModules.add$1(0, module);
  35393. _this._async_environment$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  35394. _this._async_environment$_allModules.push(module);
  35395. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.get$first(_this._async_environment$_variables))); t1.moveNext$0();) {
  35396. t2 = t1.get$current(t1);
  35397. if (module.get$variables().containsKey$1(t2))
  35398. throw H.wrapException(E.SassScriptException$(string$.This_ma + H.S(t2) + '".'));
  35399. }
  35400. } else {
  35401. t1 = _this._async_environment$_modules;
  35402. if (t1.containsKey$1(namespace))
  35403. throw H.wrapException(E.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  35404. t1.$indexSet(0, namespace, module);
  35405. _this._async_environment$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  35406. _this._async_environment$_allModules.push(module);
  35407. }
  35408. },
  35409. forwardModule$2: function(module, rule) {
  35410. var view, t1, t2, _this = this;
  35411. if (_this._async_environment$_forwardedModules == null)
  35412. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable);
  35413. if (_this._async_environment$_forwardedModuleNodes == null)
  35414. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable, type$.legacy_AstNode);
  35415. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.legacy_AsyncCallable);
  35416. for (t1 = _this._async_environment$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35417. t2 = t1._collection$_current;
  35418. _this._async_environment$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  35419. _this._async_environment$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  35420. _this._async_environment$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  35421. }
  35422. _this._async_environment$_allModules.push(module);
  35423. _this._async_environment$_forwardedModules.add$1(0, view);
  35424. _this._async_environment$_forwardedModuleNodes.$indexSet(0, view, rule);
  35425. },
  35426. _async_environment$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  35427. var larger, smaller, t1, t2, $name;
  35428. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  35429. larger = oldMembers;
  35430. smaller = newMembers;
  35431. } else {
  35432. larger = newMembers;
  35433. smaller = oldMembers;
  35434. }
  35435. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  35436. $name = t1.get$current(t1);
  35437. if (!larger.containsKey$1($name))
  35438. continue;
  35439. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  35440. continue;
  35441. if (t2)
  35442. $name = "$" + H.S($name);
  35443. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  35444. }
  35445. },
  35446. importForwards$1: function(module) {
  35447. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  35448. t1 = module._async_environment$_environment,
  35449. forwarded = t1._async_environment$_forwardedModules;
  35450. if (forwarded == null)
  35451. return;
  35452. if (_this._async_environment$_forwardedModules != null) {
  35453. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_AsyncCallable);
  35454. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment$_globalModules; t3.moveNext$0();) {
  35455. t5 = t3._collection$_current;
  35456. if (!_this._async_environment$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  35457. t2.add$1(0, t5);
  35458. }
  35459. forwarded = t2;
  35460. }
  35461. if (_this._async_environment$_forwardedModules == null)
  35462. _this._async_environment$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable);
  35463. if (_this._async_environment$_forwardedModuleNodes == null)
  35464. _this._async_environment$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable, type$.legacy_AstNode);
  35465. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  35466. t3 = t2._eval$1("Iterable.E");
  35467. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure(), t2), t3);
  35468. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure0(), t2), t3);
  35469. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure1(), t2), t3);
  35470. t2 = _this._async_environment$_variables;
  35471. t3 = t2.length;
  35472. if (t3 === 1) {
  35473. for (t3 = _this._async_environment$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_AsyncCallable, t7 = _this._async_environment$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35474. module = t4[_i];
  35475. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35476. if (shadowed != null) {
  35477. t3.remove$1(0, module);
  35478. t8 = shadowed.variables;
  35479. if (t8.get$isEmpty(t8)) {
  35480. t8 = shadowed.functions;
  35481. if (t8.get$isEmpty(t8)) {
  35482. t8 = shadowed.mixins;
  35483. if (t8.get$isEmpty(t8)) {
  35484. t8 = shadowed._shadowed_view$_inner;
  35485. t8 = t8.get$css(t8);
  35486. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  35487. } else
  35488. t8 = false;
  35489. } else
  35490. t8 = false;
  35491. } else
  35492. t8 = false;
  35493. if (!t8) {
  35494. t3.add$1(0, shadowed);
  35495. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  35496. }
  35497. }
  35498. }
  35499. t4 = _this._async_environment$_forwardedModules;
  35500. t4.toString;
  35501. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  35502. t5 = t4.length;
  35503. _i = 0;
  35504. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  35505. module = t4[_i];
  35506. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  35507. if (shadowed != null) {
  35508. _this._async_environment$_forwardedModules.remove$1(0, module);
  35509. t8 = shadowed.variables;
  35510. if (t8.get$isEmpty(t8)) {
  35511. t8 = shadowed.functions;
  35512. if (t8.get$isEmpty(t8)) {
  35513. t8 = shadowed.mixins;
  35514. if (t8.get$isEmpty(t8)) {
  35515. t8 = shadowed._shadowed_view$_inner;
  35516. t8 = t8.get$css(t8);
  35517. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  35518. } else
  35519. t8 = false;
  35520. } else
  35521. t8 = false;
  35522. } else
  35523. t8 = false;
  35524. if (!t8) {
  35525. _this._async_environment$_forwardedModules.add$1(0, shadowed);
  35526. t8 = _this._async_environment$_forwardedModuleNodes;
  35527. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  35528. }
  35529. }
  35530. }
  35531. t3.addAll$1(0, forwarded);
  35532. t7.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  35533. _this._async_environment$_forwardedModules.addAll$1(0, forwarded);
  35534. _this._async_environment$_forwardedModuleNodes.addAll$1(0, t1._async_environment$_forwardedModuleNodes);
  35535. } else {
  35536. t1 = _this._async_environment$_nestedForwardedModules;
  35537. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure2(), true, type$.legacy_List_legacy_Module_legacy_AsyncCallable) : t1), forwarded);
  35538. }
  35539. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment$_variableNodes, t4 = t3 != null, t5 = _this._async_environment$_variableIndices; t1.moveNext$0();) {
  35540. t6 = t1._collection$_current;
  35541. t5.remove$1(0, t6);
  35542. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  35543. if (t4)
  35544. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  35545. }
  35546. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment$_functionIndices, t3 = _this._async_environment$_functions; t1.moveNext$0();) {
  35547. t4 = t1._collection$_current;
  35548. t2.remove$1(0, t4);
  35549. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35550. }
  35551. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins; t1.moveNext$0();) {
  35552. t4 = t1._collection$_current;
  35553. t2.remove$1(0, t4);
  35554. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  35555. }
  35556. },
  35557. getVariable$2$namespace: function($name, namespace) {
  35558. var t1, index, _this = this;
  35559. if (namespace != null)
  35560. return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
  35561. if (_this._async_environment$_lastVariableName === $name) {
  35562. t1 = J.$index$asx(_this._async_environment$_variables[_this._async_environment$_lastVariableIndex], $name);
  35563. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  35564. }
  35565. t1 = _this._async_environment$_variableIndices;
  35566. index = t1.$index(0, $name);
  35567. if (index != null) {
  35568. _this._async_environment$_lastVariableName = $name;
  35569. _this._async_environment$_lastVariableIndex = index;
  35570. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  35571. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  35572. }
  35573. index = _this._async_environment$_variableIndex$1($name);
  35574. if (index == null)
  35575. return _this._async_environment$_getVariableFromGlobalModule$1($name);
  35576. _this._async_environment$_lastVariableName = $name;
  35577. _this._async_environment$_lastVariableIndex = index;
  35578. t1.$indexSet(0, $name, index);
  35579. t1 = J.$index$asx(_this._async_environment$_variables[index], $name);
  35580. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  35581. },
  35582. getVariable$1: function($name) {
  35583. return this.getVariable$2$namespace($name, null);
  35584. },
  35585. _async_environment$_getVariableFromGlobalModule$1: function($name) {
  35586. return this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
  35587. },
  35588. getVariableNode$2$namespace: function($name, namespace) {
  35589. var t1, index, _this = this;
  35590. if (namespace != null)
  35591. return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  35592. if (_this._async_environment$_lastVariableName === $name) {
  35593. t1 = J.$index$asx(_this._async_environment$_variableNodes[_this._async_environment$_lastVariableIndex], $name);
  35594. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  35595. }
  35596. t1 = _this._async_environment$_variableIndices;
  35597. index = t1.$index(0, $name);
  35598. if (index != null) {
  35599. _this._async_environment$_lastVariableName = $name;
  35600. _this._async_environment$_lastVariableIndex = index;
  35601. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  35602. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  35603. }
  35604. index = _this._async_environment$_variableIndex$1($name);
  35605. if (index == null)
  35606. return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
  35607. _this._async_environment$_lastVariableName = $name;
  35608. _this._async_environment$_lastVariableIndex = index;
  35609. t1.$indexSet(0, $name, index);
  35610. t1 = J.$index$asx(_this._async_environment$_variableNodes[index], $name);
  35611. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  35612. },
  35613. _async_environment$_getVariableNodeFromGlobalModule$1: function($name) {
  35614. var t1, value;
  35615. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  35616. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  35617. if (value != null)
  35618. return value;
  35619. }
  35620. return null;
  35621. },
  35622. globalVariableExists$2$namespace: function($name, namespace) {
  35623. if (namespace != null)
  35624. return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
  35625. if (C.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
  35626. return true;
  35627. return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
  35628. },
  35629. globalVariableExists$1: function($name) {
  35630. return this.globalVariableExists$2$namespace($name, null);
  35631. },
  35632. _async_environment$_variableIndex$1: function($name) {
  35633. var t1, i;
  35634. for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
  35635. if (t1[i].containsKey$1($name))
  35636. return i;
  35637. return null;
  35638. },
  35639. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  35640. var t1, moduleWithName, cur, t2, index, _this = this;
  35641. if (namespace != null) {
  35642. _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  35643. return;
  35644. }
  35645. if (global || _this._async_environment$_variables.length === 1) {
  35646. _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure(_this, $name));
  35647. t1 = _this._async_environment$_variables;
  35648. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  35649. moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure0($name));
  35650. if (moduleWithName != null) {
  35651. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  35652. return;
  35653. }
  35654. }
  35655. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  35656. t1 = _this._async_environment$_variableNodes;
  35657. if (t1 != null)
  35658. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  35659. return;
  35660. }
  35661. if (_this._async_environment$_nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null) {
  35662. t1 = _this._async_environment$_nestedForwardedModules;
  35663. t1.toString;
  35664. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  35665. t1 = new H.ListIterator(t1, t1.get$length(t1));
  35666. for (; t1.moveNext$0();) {
  35667. cur = t1.__internal$_current;
  35668. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35669. cur = t2.__internal$_current;
  35670. if (cur.get$variables().containsKey$1($name)) {
  35671. cur.setVariable$3($name, value, nodeWithSpan);
  35672. return;
  35673. }
  35674. }
  35675. }
  35676. }
  35677. index = _this._async_environment$_lastVariableName === $name ? _this._async_environment$_lastVariableIndex : _this._async_environment$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure1(_this, $name));
  35678. if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
  35679. index = _this._async_environment$_variables.length - 1;
  35680. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  35681. }
  35682. _this._async_environment$_lastVariableName = $name;
  35683. _this._async_environment$_lastVariableIndex = index;
  35684. J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
  35685. t1 = _this._async_environment$_variableNodes;
  35686. if (t1 != null)
  35687. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  35688. },
  35689. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  35690. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  35691. },
  35692. setLocalVariable$3: function($name, value, nodeWithSpan) {
  35693. var index, _this = this,
  35694. t1 = _this._async_environment$_variables,
  35695. t2 = t1.length;
  35696. _this._async_environment$_lastVariableName = $name;
  35697. index = _this._async_environment$_lastVariableIndex = t2 - 1;
  35698. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  35699. J.$indexSet$ax(t1[index], $name, value);
  35700. t1 = _this._async_environment$_variableNodes;
  35701. if (t1 != null)
  35702. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  35703. },
  35704. getFunction$2$namespace: function($name, namespace) {
  35705. var t1, index, _this = this;
  35706. if (namespace != null) {
  35707. t1 = _this._async_environment$_getModule$1(namespace);
  35708. return t1.get$functions(t1).$index(0, $name);
  35709. }
  35710. t1 = _this._async_environment$_functionIndices;
  35711. index = t1.$index(0, $name);
  35712. if (index != null) {
  35713. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  35714. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  35715. }
  35716. index = _this._async_environment$_functionIndex$1($name);
  35717. if (index == null)
  35718. return _this._async_environment$_getFunctionFromGlobalModule$1($name);
  35719. t1.$indexSet(0, $name, index);
  35720. t1 = J.$index$asx(_this._async_environment$_functions[index], $name);
  35721. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  35722. },
  35723. _async_environment$_getFunctionFromGlobalModule$1: function($name) {
  35724. return this._async_environment$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
  35725. },
  35726. _async_environment$_functionIndex$1: function($name) {
  35727. var t1, i;
  35728. for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
  35729. if (t1[i].containsKey$1($name))
  35730. return i;
  35731. return null;
  35732. },
  35733. getMixin$2$namespace: function($name, namespace) {
  35734. var t1, index, _this = this;
  35735. if (namespace != null)
  35736. return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
  35737. t1 = _this._async_environment$_mixinIndices;
  35738. index = t1.$index(0, $name);
  35739. if (index != null) {
  35740. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  35741. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  35742. }
  35743. index = _this._async_environment$_mixinIndex$1($name);
  35744. if (index == null)
  35745. return _this._async_environment$_getMixinFromGlobalModule$1($name);
  35746. t1.$indexSet(0, $name, index);
  35747. t1 = J.$index$asx(_this._async_environment$_mixins[index], $name);
  35748. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  35749. },
  35750. _async_environment$_getMixinFromGlobalModule$1: function($name) {
  35751. return this._async_environment$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
  35752. },
  35753. _async_environment$_mixinIndex$1: function($name) {
  35754. var t1, i;
  35755. for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
  35756. if (t1[i].containsKey$1($name))
  35757. return i;
  35758. return null;
  35759. },
  35760. withContent$2: function($content, callback) {
  35761. return this.withContent$body$AsyncEnvironment($content, callback);
  35762. },
  35763. withContent$body$AsyncEnvironment: function($content, callback) {
  35764. var $async$goto = 0,
  35765. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  35766. $async$self = this, oldContent;
  35767. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35768. if ($async$errorCode === 1)
  35769. return P._asyncRethrow($async$result, $async$completer);
  35770. while (true)
  35771. switch ($async$goto) {
  35772. case 0:
  35773. // Function start
  35774. oldContent = $async$self._async_environment$_content;
  35775. $async$self._async_environment$_content = $content;
  35776. $async$goto = 2;
  35777. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  35778. case 2:
  35779. // returning from await.
  35780. $async$self._async_environment$_content = oldContent;
  35781. // implicit return
  35782. return P._asyncReturn(null, $async$completer);
  35783. }
  35784. });
  35785. return P._asyncStartSync($async$withContent$2, $async$completer);
  35786. },
  35787. asMixin$1: function(callback) {
  35788. var $async$goto = 0,
  35789. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  35790. $async$self = this, oldInMixin;
  35791. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35792. if ($async$errorCode === 1)
  35793. return P._asyncRethrow($async$result, $async$completer);
  35794. while (true)
  35795. switch ($async$goto) {
  35796. case 0:
  35797. // Function start
  35798. oldInMixin = $async$self._async_environment$_inMixin;
  35799. $async$self._async_environment$_inMixin = true;
  35800. $async$goto = 2;
  35801. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  35802. case 2:
  35803. // returning from await.
  35804. $async$self._async_environment$_inMixin = oldInMixin;
  35805. // implicit return
  35806. return P._asyncReturn(null, $async$completer);
  35807. }
  35808. });
  35809. return P._asyncStartSync($async$asMixin$1, $async$completer);
  35810. },
  35811. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  35812. return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T._eval$1("0*"));
  35813. },
  35814. scope$1$1: function(callback, $T) {
  35815. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  35816. },
  35817. scope$1$2$when: function(callback, when, $T) {
  35818. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  35819. },
  35820. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  35821. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  35822. },
  35823. scope$body$AsyncEnvironment: function(callback, semiGlobal, when, $T, $async$type) {
  35824. var $async$goto = 0,
  35825. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  35826. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  35827. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  35828. if ($async$errorCode === 1) {
  35829. $async$currentError = $async$result;
  35830. $async$goto = $async$handler;
  35831. }
  35832. while (true)
  35833. switch ($async$goto) {
  35834. case 0:
  35835. // Function start
  35836. $async$goto = !when ? 3 : 4;
  35837. break;
  35838. case 3:
  35839. // then
  35840. wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
  35841. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  35842. $async$handler = 5;
  35843. $async$goto = 8;
  35844. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  35845. case 8:
  35846. // returning from await.
  35847. t1 = $async$result;
  35848. $async$returnValue = t1;
  35849. $async$next = [1];
  35850. // goto finally
  35851. $async$goto = 6;
  35852. break;
  35853. $async$next.push(7);
  35854. // goto finally
  35855. $async$goto = 6;
  35856. break;
  35857. case 5:
  35858. // uncaught
  35859. $async$next = [2];
  35860. case 6:
  35861. // finally
  35862. $async$handler = 2;
  35863. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  35864. // goto the next finally handler
  35865. $async$goto = $async$next.pop();
  35866. break;
  35867. case 7:
  35868. // after finally
  35869. case 4:
  35870. // join
  35871. semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
  35872. wasInSemiGlobalScope0 = $async$self._async_environment$_inSemiGlobalScope;
  35873. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  35874. t1 = $async$self._async_environment$_variables;
  35875. t2 = type$.legacy_String;
  35876. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value));
  35877. t3 = $async$self._async_environment$_variableNodes;
  35878. if (t3 != null)
  35879. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode));
  35880. t3 = $async$self._async_environment$_functions;
  35881. t4 = type$.legacy_AsyncCallable;
  35882. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  35883. t5 = $async$self._async_environment$_mixins;
  35884. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  35885. t4 = $async$self._async_environment$_nestedForwardedModules;
  35886. if (t4 != null)
  35887. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable));
  35888. $async$handler = 9;
  35889. $async$goto = 12;
  35890. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  35891. case 12:
  35892. // returning from await.
  35893. t2 = $async$result;
  35894. $async$returnValue = t2;
  35895. $async$next = [1];
  35896. // goto finally
  35897. $async$goto = 10;
  35898. break;
  35899. $async$next.push(11);
  35900. // goto finally
  35901. $async$goto = 10;
  35902. break;
  35903. case 9:
  35904. // uncaught
  35905. $async$next = [2];
  35906. case 10:
  35907. // finally
  35908. $async$handler = 2;
  35909. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope0;
  35910. $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
  35911. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
  35912. $name = t1.get$current(t1);
  35913. t2.remove$1(0, $name);
  35914. }
  35915. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t3))), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
  35916. name0 = t1.get$current(t1);
  35917. t2.remove$1(0, name0);
  35918. }
  35919. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t5))), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
  35920. name1 = t1.get$current(t1);
  35921. t2.remove$1(0, name1);
  35922. }
  35923. t1 = $async$self._async_environment$_nestedForwardedModules;
  35924. if (t1 != null)
  35925. C.JSArray_methods.removeLast$0(t1);
  35926. // goto the next finally handler
  35927. $async$goto = $async$next.pop();
  35928. break;
  35929. case 11:
  35930. // after finally
  35931. case 1:
  35932. // return
  35933. return P._asyncReturn($async$returnValue, $async$completer);
  35934. case 2:
  35935. // rethrow
  35936. return P._asyncRethrow($async$currentError, $async$completer);
  35937. }
  35938. });
  35939. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  35940. },
  35941. toImplicitConfiguration$0: function() {
  35942. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  35943. t1 = type$.legacy_String,
  35944. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue);
  35945. for (t2 = this._async_environment$_variables, t3 = this._async_environment$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode, i = 0; i < t2.length; ++i) {
  35946. values = t2[i];
  35947. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  35948. for (t6 = J.get$iterator$ax(values.get$keys(values)); t6.moveNext$0();) {
  35949. t7 = t6.get$current(t6);
  35950. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  35951. }
  35952. }
  35953. return new A.Configuration(configuration, null, true);
  35954. },
  35955. _async_environment$_getModule$1: function(namespace) {
  35956. var module = this._async_environment$_modules.$index(0, namespace);
  35957. if (module != null)
  35958. return module;
  35959. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  35960. },
  35961. _async_environment$_fromOneModule$1$3: function($name, type, callback) {
  35962. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  35963. t1 = this._async_environment$_nestedForwardedModules;
  35964. if (t1 != null)
  35965. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  35966. cur = t1.__internal$_current;
  35967. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  35968. cur = t2.__internal$_current;
  35969. value = callback.call$1(cur);
  35970. if (value != null)
  35971. return value;
  35972. }
  35973. }
  35974. for (t1 = this._async_environment$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_AsyncCallable, value = null, identity = null; t1.moveNext$0();) {
  35975. t3 = t1._collection$_current;
  35976. valueInModule = callback.call$1(t3);
  35977. if (valueInModule == null)
  35978. continue;
  35979. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  35980. if (identityFromModule.$eq(0, identity))
  35981. continue;
  35982. if (value != null) {
  35983. t1 = "This " + type + string$.x20is_av;
  35984. t2 = type + " use";
  35985. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  35986. for (t4 = this._async_environment$_globalModuleNodes, t4 = t4.get$entries(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  35987. t5 = t4.get$current(t4);
  35988. if (callback.call$1(t5.key) != null)
  35989. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  35990. }
  35991. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  35992. }
  35993. identity = identityFromModule;
  35994. value = valueInModule;
  35995. }
  35996. return value;
  35997. },
  35998. _async_environment$_fromOneModule$3: function($name, type, callback) {
  35999. return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  36000. }
  36001. };
  36002. Q.AsyncEnvironment_importForwards_closure.prototype = {
  36003. call$1: function(module) {
  36004. var t1 = module.get$variables();
  36005. return t1.get$keys(t1);
  36006. },
  36007. $signature: 88
  36008. };
  36009. Q.AsyncEnvironment_importForwards_closure0.prototype = {
  36010. call$1: function(module) {
  36011. var t1 = module.get$functions(module);
  36012. return t1.get$keys(t1);
  36013. },
  36014. $signature: 88
  36015. };
  36016. Q.AsyncEnvironment_importForwards_closure1.prototype = {
  36017. call$1: function(module) {
  36018. var t1 = module.get$mixins();
  36019. return t1.get$keys(t1);
  36020. },
  36021. $signature: 88
  36022. };
  36023. Q.AsyncEnvironment_importForwards_closure2.prototype = {
  36024. call$1: function(_) {
  36025. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable);
  36026. },
  36027. $signature: 424
  36028. };
  36029. Q.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
  36030. call$1: function(module) {
  36031. return module.get$variables().$index(0, this.name);
  36032. },
  36033. $signature: 423
  36034. };
  36035. Q.AsyncEnvironment_setVariable_closure.prototype = {
  36036. call$0: function() {
  36037. var t1 = this.$this;
  36038. t1._async_environment$_lastVariableName = this.name;
  36039. return t1._async_environment$_lastVariableIndex = 0;
  36040. },
  36041. $signature: 11
  36042. };
  36043. Q.AsyncEnvironment_setVariable_closure0.prototype = {
  36044. call$1: function(module) {
  36045. return module.get$variables().containsKey$1(this.name) ? module : null;
  36046. },
  36047. $signature: 147
  36048. };
  36049. Q.AsyncEnvironment_setVariable_closure1.prototype = {
  36050. call$0: function() {
  36051. var t1 = this.$this,
  36052. t2 = t1._async_environment$_variableIndex$1(this.name);
  36053. return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
  36054. },
  36055. $signature: 11
  36056. };
  36057. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
  36058. call$1: function(module) {
  36059. return module.get$functions(module).$index(0, this.name);
  36060. },
  36061. $signature: 149
  36062. };
  36063. Q.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
  36064. call$1: function(module) {
  36065. return module.get$mixins().$index(0, this.name);
  36066. },
  36067. $signature: 149
  36068. };
  36069. Q._EnvironmentModule0.prototype = {
  36070. get$url: function() {
  36071. return this.css.get$span().file.url;
  36072. },
  36073. setVariable$3: function($name, value, nodeWithSpan) {
  36074. var t1, t2,
  36075. module = this._async_environment$_modulesByVariable.$index(0, $name);
  36076. if (module != null) {
  36077. module.setVariable$3($name, value, nodeWithSpan);
  36078. return;
  36079. }
  36080. t1 = this._async_environment$_environment;
  36081. t2 = t1._async_environment$_variables;
  36082. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  36083. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  36084. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  36085. t1 = t1._async_environment$_variableNodes;
  36086. if (t1 != null)
  36087. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  36088. return;
  36089. },
  36090. variableIdentity$1: function($name) {
  36091. var module = this._async_environment$_modulesByVariable.$index(0, $name);
  36092. return module == null ? this : module.variableIdentity$1($name);
  36093. },
  36094. cloneCss$0: function() {
  36095. var newCssAndExtender, _this = this,
  36096. t1 = _this.css;
  36097. if (J.get$isEmpty$asx(t1.get$children(t1)))
  36098. return _this;
  36099. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  36100. return Q._EnvironmentModule$_0(_this._async_environment$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  36101. },
  36102. toString$0: function(_) {
  36103. var t1 = this.css;
  36104. if (t1.get$span().file.url == null)
  36105. t1 = "<unknown url>";
  36106. else {
  36107. t1 = t1.get$span().file;
  36108. t1 = $.$get$context().prettyUri$1(t1.url);
  36109. }
  36110. return t1;
  36111. },
  36112. $isModule: 1,
  36113. get$upstream: function() {
  36114. return this.upstream;
  36115. },
  36116. get$variables: function() {
  36117. return this.variables;
  36118. },
  36119. get$variableNodes: function() {
  36120. return this.variableNodes;
  36121. },
  36122. get$functions: function(receiver) {
  36123. return this.functions;
  36124. },
  36125. get$mixins: function() {
  36126. return this.mixins;
  36127. },
  36128. get$extender: function() {
  36129. return this.extender;
  36130. },
  36131. get$css: function(receiver) {
  36132. return this.css;
  36133. },
  36134. get$transitivelyContainsCss: function() {
  36135. return this.transitivelyContainsCss;
  36136. },
  36137. get$transitivelyContainsExtensions: function() {
  36138. return this.transitivelyContainsExtensions;
  36139. }
  36140. };
  36141. Q._EnvironmentModule__EnvironmentModule_closure5.prototype = {
  36142. call$1: function(module) {
  36143. return module.get$variables();
  36144. },
  36145. $signature: 418
  36146. };
  36147. Q._EnvironmentModule__EnvironmentModule_closure6.prototype = {
  36148. call$1: function(module) {
  36149. return module.get$variableNodes();
  36150. },
  36151. $signature: 410
  36152. };
  36153. Q._EnvironmentModule__EnvironmentModule_closure7.prototype = {
  36154. call$1: function(module) {
  36155. return module.get$functions(module);
  36156. },
  36157. $signature: 163
  36158. };
  36159. Q._EnvironmentModule__EnvironmentModule_closure8.prototype = {
  36160. call$1: function(module) {
  36161. return module.get$mixins();
  36162. },
  36163. $signature: 163
  36164. };
  36165. Q._EnvironmentModule__EnvironmentModule_closure9.prototype = {
  36166. call$1: function(module) {
  36167. return module.get$transitivelyContainsCss();
  36168. },
  36169. $signature: 93
  36170. };
  36171. Q._EnvironmentModule__EnvironmentModule_closure10.prototype = {
  36172. call$1: function(module) {
  36173. return module.get$transitivelyContainsExtensions();
  36174. },
  36175. $signature: 93
  36176. };
  36177. O.AsyncImportCache.prototype = {
  36178. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  36179. return this.canonicalize$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  36180. },
  36181. canonicalize$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  36182. var $async$goto = 0,
  36183. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2),
  36184. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl;
  36185. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36186. if ($async$errorCode === 1)
  36187. return P._asyncRethrow($async$result, $async$completer);
  36188. while (true)
  36189. switch ($async$goto) {
  36190. case 0:
  36191. // Function start
  36192. $async$goto = baseImporter != null ? 3 : 4;
  36193. break;
  36194. case 3:
  36195. // then
  36196. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  36197. $async$goto = 5;
  36198. return P._asyncAwait($async$self._async_import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  36199. case 5:
  36200. // returning from await.
  36201. canonicalUrl = $async$result;
  36202. if (canonicalUrl != null) {
  36203. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri);
  36204. // goto return
  36205. $async$goto = 1;
  36206. break;
  36207. }
  36208. case 4:
  36209. // join
  36210. $async$goto = 6;
  36211. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_canonicalizeCache, new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new O.AsyncImportCache_canonicalize_closure($async$self, url, forImport), type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  36212. case 6:
  36213. // returning from await.
  36214. $async$returnValue = $async$result;
  36215. // goto return
  36216. $async$goto = 1;
  36217. break;
  36218. case 1:
  36219. // return
  36220. return P._asyncReturn($async$returnValue, $async$completer);
  36221. }
  36222. });
  36223. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  36224. },
  36225. _async_import_cache$_canonicalize$3: function(importer, url, forImport) {
  36226. return this._canonicalize$body$AsyncImportCache(importer, url, forImport);
  36227. },
  36228. _canonicalize$body$AsyncImportCache: function(importer, url, forImport) {
  36229. var $async$goto = 0,
  36230. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Uri),
  36231. $async$returnValue, $async$self = this, result;
  36232. var $async$_async_import_cache$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36233. if ($async$errorCode === 1)
  36234. return P._asyncRethrow($async$result, $async$completer);
  36235. while (true)
  36236. switch ($async$goto) {
  36237. case 0:
  36238. // Function start
  36239. $async$goto = 3;
  36240. return P._asyncAwait(forImport ? B.inImportRule(new O.AsyncImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache$_canonicalize$3);
  36241. case 3:
  36242. // returning from await.
  36243. result = $async$result;
  36244. if ((result == null ? null : result.get$scheme()) === "")
  36245. $async$self._async_import_cache$_logger.warn$2$deprecation(0, "Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2e_Rela, true);
  36246. $async$returnValue = result;
  36247. // goto return
  36248. $async$goto = 1;
  36249. break;
  36250. case 1:
  36251. // return
  36252. return P._asyncReturn($async$returnValue, $async$completer);
  36253. }
  36254. });
  36255. return P._asyncStartSync($async$_async_import_cache$_canonicalize$3, $async$completer);
  36256. },
  36257. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  36258. return this.import$body$AsyncImportCache(url, baseImporter, baseUrl, forImport);
  36259. },
  36260. import$body$AsyncImportCache: function(url, baseImporter, baseUrl, forImport) {
  36261. var $async$goto = 0,
  36262. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet),
  36263. $async$returnValue, $async$self = this, t1, stylesheet, tuple;
  36264. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36265. if ($async$errorCode === 1)
  36266. return P._asyncRethrow($async$result, $async$completer);
  36267. while (true)
  36268. switch ($async$goto) {
  36269. case 0:
  36270. // Function start
  36271. $async$goto = 3;
  36272. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  36273. case 3:
  36274. // returning from await.
  36275. tuple = $async$result;
  36276. if (tuple == null) {
  36277. $async$returnValue = null;
  36278. // goto return
  36279. $async$goto = 1;
  36280. break;
  36281. }
  36282. t1 = tuple.item1;
  36283. $async$goto = 4;
  36284. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  36285. case 4:
  36286. // returning from await.
  36287. stylesheet = $async$result;
  36288. if (stylesheet == null) {
  36289. $async$returnValue = null;
  36290. // goto return
  36291. $async$goto = 1;
  36292. break;
  36293. }
  36294. $async$returnValue = new S.Tuple2(t1, stylesheet, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet);
  36295. // goto return
  36296. $async$goto = 1;
  36297. break;
  36298. case 1:
  36299. // return
  36300. return P._asyncReturn($async$returnValue, $async$completer);
  36301. }
  36302. });
  36303. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  36304. },
  36305. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  36306. return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl);
  36307. },
  36308. importCanonical$body$AsyncImportCache: function(importer, canonicalUrl, originalUrl) {
  36309. var $async$goto = 0,
  36310. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet_2),
  36311. $async$returnValue, $async$self = this;
  36312. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36313. if ($async$errorCode === 1)
  36314. return P._asyncRethrow($async$result, $async$completer);
  36315. while (true)
  36316. switch ($async$goto) {
  36317. case 0:
  36318. // Function start
  36319. $async$goto = 3;
  36320. return P._asyncAwait(B.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl), type$.legacy_Uri, type$.legacy_Stylesheet_2), $async$importCanonical$3);
  36321. case 3:
  36322. // returning from await.
  36323. $async$returnValue = $async$result;
  36324. // goto return
  36325. $async$goto = 1;
  36326. break;
  36327. case 1:
  36328. // return
  36329. return P._asyncReturn($async$returnValue, $async$completer);
  36330. }
  36331. });
  36332. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  36333. },
  36334. humanize$1: function(canonicalUrl) {
  36335. var t2, url,
  36336. t1 = this._async_import_cache$_canonicalizeCache;
  36337. t1 = t1.get$values(t1);
  36338. t2 = H._instanceType(t1);
  36339. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new O.AsyncImportCache_humanize_closure1(), type$.legacy_Uri, type$.dynamic);
  36340. if (url == null)
  36341. return canonicalUrl;
  36342. t1 = $.$get$url();
  36343. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  36344. }
  36345. };
  36346. O.AsyncImportCache_canonicalize_closure.prototype = {
  36347. call$0: function() {
  36348. var $async$goto = 0,
  36349. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2),
  36350. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  36351. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36352. if ($async$errorCode === 1)
  36353. return P._asyncRethrow($async$result, $async$completer);
  36354. while (true)
  36355. switch ($async$goto) {
  36356. case 0:
  36357. // Function start
  36358. t1 = $async$self.$this, t2 = t1._async_import_cache$_importers, t3 = t2.length, t4 = $async$self.url, t5 = $async$self.forImport, _i = 0;
  36359. case 3:
  36360. // for condition
  36361. if (!(_i < t2.length)) {
  36362. // goto after for
  36363. $async$goto = 5;
  36364. break;
  36365. }
  36366. importer = t2[_i];
  36367. $async$goto = 6;
  36368. return P._asyncAwait(t1._async_import_cache$_canonicalize$3(importer, t4, t5), $async$call$0);
  36369. case 6:
  36370. // returning from await.
  36371. canonicalUrl = $async$result;
  36372. if (canonicalUrl != null) {
  36373. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri);
  36374. // goto return
  36375. $async$goto = 1;
  36376. break;
  36377. }
  36378. case 4:
  36379. // for update
  36380. t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i;
  36381. // goto for condition
  36382. $async$goto = 3;
  36383. break;
  36384. case 5:
  36385. // after for
  36386. $async$returnValue = null;
  36387. // goto return
  36388. $async$goto = 1;
  36389. break;
  36390. case 1:
  36391. // return
  36392. return P._asyncReturn($async$returnValue, $async$completer);
  36393. }
  36394. });
  36395. return P._asyncStartSync($async$call$0, $async$completer);
  36396. },
  36397. $signature: 404
  36398. };
  36399. O.AsyncImportCache__canonicalize_closure.prototype = {
  36400. call$0: function() {
  36401. return this.importer.canonicalize$1(this.url);
  36402. },
  36403. $signature: 186
  36404. };
  36405. O.AsyncImportCache_importCanonical_closure.prototype = {
  36406. call$0: function() {
  36407. var $async$goto = 0,
  36408. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet_2),
  36409. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  36410. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36411. if ($async$errorCode === 1)
  36412. return P._asyncRethrow($async$result, $async$completer);
  36413. while (true)
  36414. switch ($async$goto) {
  36415. case 0:
  36416. // Function start
  36417. t1 = $async$self.canonicalUrl;
  36418. $async$goto = 3;
  36419. return P._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0);
  36420. case 3:
  36421. // returning from await.
  36422. result = $async$result;
  36423. if (result == null) {
  36424. $async$returnValue = null;
  36425. // goto return
  36426. $async$goto = 1;
  36427. break;
  36428. }
  36429. t2 = $async$self.$this;
  36430. t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
  36431. t3 = result.contents;
  36432. t4 = result.syntax;
  36433. t5 = $async$self.originalUrl;
  36434. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  36435. $async$returnValue = V.Stylesheet_Stylesheet$parse(t3, t4, t2._async_import_cache$_logger, t1);
  36436. // goto return
  36437. $async$goto = 1;
  36438. break;
  36439. case 1:
  36440. // return
  36441. return P._asyncReturn($async$returnValue, $async$completer);
  36442. }
  36443. });
  36444. return P._asyncStartSync($async$call$0, $async$completer);
  36445. },
  36446. $signature: 402
  36447. };
  36448. O.AsyncImportCache_humanize_closure.prototype = {
  36449. call$1: function(tuple) {
  36450. var t1 = tuple == null ? null : tuple.item2;
  36451. return J.$eq$(t1, this.canonicalUrl);
  36452. },
  36453. $signature: 390
  36454. };
  36455. O.AsyncImportCache_humanize_closure0.prototype = {
  36456. call$1: function(tuple) {
  36457. return tuple.item3;
  36458. },
  36459. $signature: 387
  36460. };
  36461. O.AsyncImportCache_humanize_closure1.prototype = {
  36462. call$1: function(url) {
  36463. return J.get$length$asx(J.get$path$x(url));
  36464. },
  36465. $signature: 43
  36466. };
  36467. S.AsyncBuiltInCallable.prototype = {
  36468. callbackFor$2: function(positional, names) {
  36469. return new S.Tuple2(this._async_built_in$_arguments, this._async_built_in$_callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value);
  36470. },
  36471. $isAsyncCallable: 1,
  36472. get$name: function(receiver) {
  36473. return this.name;
  36474. }
  36475. };
  36476. S.AsyncBuiltInCallable$mixin_closure.prototype = {
  36477. call$1: function($arguments) {
  36478. return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
  36479. },
  36480. $call$body$AsyncBuiltInCallable$mixin_closure: function($arguments) {
  36481. var $async$goto = 0,
  36482. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  36483. $async$returnValue, $async$self = this;
  36484. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  36485. if ($async$errorCode === 1)
  36486. return P._asyncRethrow($async$result, $async$completer);
  36487. while (true)
  36488. switch ($async$goto) {
  36489. case 0:
  36490. // Function start
  36491. $async$goto = 3;
  36492. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  36493. case 3:
  36494. // returning from await.
  36495. $async$returnValue = null;
  36496. // goto return
  36497. $async$goto = 1;
  36498. break;
  36499. case 1:
  36500. // return
  36501. return P._asyncReturn($async$returnValue, $async$completer);
  36502. }
  36503. });
  36504. return P._asyncStartSync($async$call$1, $async$completer);
  36505. },
  36506. $signature: 125
  36507. };
  36508. Q.BuiltInCallable.prototype = {
  36509. callbackFor$2: function(positional, names) {
  36510. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  36511. for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  36512. overload = t1[_i];
  36513. t3 = overload.item1;
  36514. if (t3.matches$2(positional, names))
  36515. return overload;
  36516. mismatchDistance = t3.$arguments.length - positional;
  36517. if (minMismatchDistance != null) {
  36518. t3 = Math.abs(mismatchDistance);
  36519. t4 = Math.abs(minMismatchDistance);
  36520. if (t3 > t4)
  36521. continue;
  36522. if (t3 === t4 && mismatchDistance < 0)
  36523. continue;
  36524. }
  36525. minMismatchDistance = mismatchDistance;
  36526. fuzzyMatch = overload;
  36527. }
  36528. return fuzzyMatch;
  36529. },
  36530. withName$1: function($name) {
  36531. return new Q.BuiltInCallable($name, this._overloads);
  36532. },
  36533. $isCallable: 1,
  36534. $isAsyncCallable: 1,
  36535. $isAsyncBuiltInCallable: 1,
  36536. get$name: function(receiver) {
  36537. return this.name;
  36538. }
  36539. };
  36540. Q.BuiltInCallable$mixin_closure.prototype = {
  36541. call$1: function($arguments) {
  36542. this.callback.call$1($arguments);
  36543. return null;
  36544. },
  36545. $signature: 81
  36546. };
  36547. L.PlainCssCallable.prototype = {
  36548. $eq: function(_, other) {
  36549. if (other == null)
  36550. return false;
  36551. return other instanceof L.PlainCssCallable && this.name == other.name;
  36552. },
  36553. get$hashCode: function(_) {
  36554. return J.get$hashCode$(this.name);
  36555. },
  36556. $isCallable: 1,
  36557. $isAsyncCallable: 1,
  36558. get$name: function(receiver) {
  36559. return this.name;
  36560. }
  36561. };
  36562. E.UserDefinedCallable.prototype = {
  36563. get$name: function(_) {
  36564. return this.declaration.name;
  36565. },
  36566. $isCallable: 1,
  36567. $isAsyncCallable: 1
  36568. };
  36569. U._compileStylesheet_closure.prototype = {
  36570. call$1: function(url) {
  36571. var t1, t2, _null = null;
  36572. if (url === "")
  36573. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  36574. else {
  36575. t1 = P.Uri_parse(url);
  36576. t2 = this.importCache._resultsCache.$index(0, t1);
  36577. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  36578. t1 = (t2 == null ? t1 : t2).toString$0(0);
  36579. }
  36580. return t1;
  36581. },
  36582. $signature: 6
  36583. };
  36584. A.Configuration.prototype = {
  36585. throughForward$1: function($forward) {
  36586. var t1, t2,
  36587. newValues = this._values;
  36588. if (newValues.get$isEmpty(newValues))
  36589. return C.Configuration_Map_empty_null_true;
  36590. t1 = $forward.prefix;
  36591. if (t1 != null)
  36592. newValues = new R.UnprefixedMapView(newValues, t1, type$.UnprefixedMapView_legacy_ConfiguredValue);
  36593. t1 = $forward.shownVariables;
  36594. if (t1 != null)
  36595. newValues = new K.LimitedMapView(newValues, t1._base.intersection$1(new M.MapKeySet(newValues, type$.MapKeySet_legacy_Object)), type$.LimitedMapView_of_legacy_String_and_legacy_ConfiguredValue);
  36596. else {
  36597. t1 = $forward.hiddenVariables;
  36598. if (t1 == null)
  36599. t2 = null;
  36600. else {
  36601. t2 = t1._base;
  36602. t2 = t2.get$isNotEmpty(t2);
  36603. }
  36604. if (t2 === true)
  36605. newValues = K.LimitedMapView$blocklist(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue);
  36606. }
  36607. return this.isImplicit ? new A.Configuration(newValues, null, true) : new A.Configuration(newValues, this.nodeWithSpan, false);
  36608. }
  36609. };
  36610. Z.ConfiguredValue.prototype = {};
  36611. O.Environment.prototype = {
  36612. closure$0: function() {
  36613. var t5, t6, t7, _this = this,
  36614. t1 = _this._forwardedModules,
  36615. t2 = _this._forwardedModuleNodes,
  36616. t3 = _this._nestedForwardedModules,
  36617. t4 = _this._variables;
  36618. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  36619. t5 = _this._variableNodes;
  36620. if (t5 == null)
  36621. t5 = null;
  36622. else
  36623. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  36624. t6 = _this._functions;
  36625. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  36626. t7 = _this._mixins;
  36627. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  36628. return O.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._globalModuleNodes, t1, t2, t3, _this._allModules, t4, t5, t6, t7, _this._content);
  36629. },
  36630. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  36631. var t1, t2, _this = this;
  36632. if (namespace == null) {
  36633. _this._globalModules.add$1(0, module);
  36634. _this._globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  36635. _this._allModules.push(module);
  36636. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.get$first(_this._variables))); t1.moveNext$0();) {
  36637. t2 = t1.get$current(t1);
  36638. if (module.get$variables().containsKey$1(t2))
  36639. throw H.wrapException(E.SassScriptException$(string$.This_ma + H.S(t2) + '".'));
  36640. }
  36641. } else {
  36642. t1 = _this._environment$_modules;
  36643. if (t1.containsKey$1(namespace))
  36644. throw H.wrapException(E.MultiSpanSassScriptException$(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  36645. t1.$indexSet(0, namespace, module);
  36646. _this._namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  36647. _this._allModules.push(module);
  36648. }
  36649. },
  36650. forwardModule$2: function(module, rule) {
  36651. var view, t1, t2, _this = this;
  36652. if (_this._forwardedModules == null)
  36653. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable);
  36654. if (_this._forwardedModuleNodes == null)
  36655. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable, type$.legacy_AstNode);
  36656. view = R.ForwardedModuleView_ifNecessary(module, rule, type$.legacy_Callable);
  36657. for (t1 = _this._forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  36658. t2 = t1._collection$_current;
  36659. _this._assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  36660. _this._assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  36661. _this._assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  36662. }
  36663. _this._allModules.push(module);
  36664. _this._forwardedModules.add$1(0, view);
  36665. _this._forwardedModuleNodes.$indexSet(0, view, rule);
  36666. },
  36667. _assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  36668. var larger, smaller, t1, t2, $name;
  36669. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  36670. larger = oldMembers;
  36671. smaller = newMembers;
  36672. } else {
  36673. larger = newMembers;
  36674. smaller = oldMembers;
  36675. }
  36676. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  36677. $name = t1.get$current(t1);
  36678. if (!larger.containsKey$1($name))
  36679. continue;
  36680. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  36681. continue;
  36682. if (t2)
  36683. $name = "$" + H.S($name);
  36684. throw H.wrapException(E.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  36685. }
  36686. },
  36687. importForwards$1: function(module) {
  36688. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  36689. t1 = module._environment,
  36690. forwarded = t1._forwardedModules;
  36691. if (forwarded == null)
  36692. return;
  36693. if (_this._forwardedModules != null) {
  36694. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_Callable);
  36695. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._globalModules; t3.moveNext$0();) {
  36696. t5 = t3._collection$_current;
  36697. if (!_this._forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  36698. t2.add$1(0, t5);
  36699. }
  36700. forwarded = t2;
  36701. }
  36702. if (_this._forwardedModules == null)
  36703. _this._forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable);
  36704. if (_this._forwardedModuleNodes == null)
  36705. _this._forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable, type$.legacy_AstNode);
  36706. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  36707. t3 = t2._eval$1("Iterable.E");
  36708. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure(), t2), t3);
  36709. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure0(), t2), t3);
  36710. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure1(), t2), t3);
  36711. t2 = _this._variables;
  36712. t3 = t2.length;
  36713. if (t3 === 1) {
  36714. for (t3 = _this._globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_Callable, t7 = _this._globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  36715. module = t4[_i];
  36716. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  36717. if (shadowed != null) {
  36718. t3.remove$1(0, module);
  36719. t8 = shadowed.variables;
  36720. if (t8.get$isEmpty(t8)) {
  36721. t8 = shadowed.functions;
  36722. if (t8.get$isEmpty(t8)) {
  36723. t8 = shadowed.mixins;
  36724. if (t8.get$isEmpty(t8)) {
  36725. t8 = shadowed._shadowed_view$_inner;
  36726. t8 = t8.get$css(t8);
  36727. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  36728. } else
  36729. t8 = false;
  36730. } else
  36731. t8 = false;
  36732. } else
  36733. t8 = false;
  36734. if (!t8) {
  36735. t3.add$1(0, shadowed);
  36736. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  36737. }
  36738. }
  36739. }
  36740. t4 = _this._forwardedModules;
  36741. t4.toString;
  36742. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  36743. t5 = t4.length;
  36744. _i = 0;
  36745. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  36746. module = t4[_i];
  36747. shadowed = B.ShadowedModuleView_ifNecessary(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  36748. if (shadowed != null) {
  36749. _this._forwardedModules.remove$1(0, module);
  36750. t8 = shadowed.variables;
  36751. if (t8.get$isEmpty(t8)) {
  36752. t8 = shadowed.functions;
  36753. if (t8.get$isEmpty(t8)) {
  36754. t8 = shadowed.mixins;
  36755. if (t8.get$isEmpty(t8)) {
  36756. t8 = shadowed._shadowed_view$_inner;
  36757. t8 = t8.get$css(t8);
  36758. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  36759. } else
  36760. t8 = false;
  36761. } else
  36762. t8 = false;
  36763. } else
  36764. t8 = false;
  36765. if (!t8) {
  36766. _this._forwardedModules.add$1(0, shadowed);
  36767. t8 = _this._forwardedModuleNodes;
  36768. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  36769. }
  36770. }
  36771. }
  36772. t3.addAll$1(0, forwarded);
  36773. t7.addAll$1(0, t1._forwardedModuleNodes);
  36774. _this._forwardedModules.addAll$1(0, forwarded);
  36775. _this._forwardedModuleNodes.addAll$1(0, t1._forwardedModuleNodes);
  36776. } else {
  36777. t1 = _this._nestedForwardedModules;
  36778. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure2(), true, type$.legacy_List_legacy_Module_legacy_Callable) : t1), forwarded);
  36779. }
  36780. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._variableNodes, t4 = t3 != null, t5 = _this._variableIndices; t1.moveNext$0();) {
  36781. t6 = t1._collection$_current;
  36782. t5.remove$1(0, t6);
  36783. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  36784. if (t4)
  36785. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  36786. }
  36787. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._functionIndices, t3 = _this._functions; t1.moveNext$0();) {
  36788. t4 = t1._collection$_current;
  36789. t2.remove$1(0, t4);
  36790. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  36791. }
  36792. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._mixinIndices, t3 = _this._mixins; t1.moveNext$0();) {
  36793. t4 = t1._collection$_current;
  36794. t2.remove$1(0, t4);
  36795. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  36796. }
  36797. },
  36798. getVariable$2$namespace: function($name, namespace) {
  36799. var t1, index, _this = this;
  36800. if (namespace != null)
  36801. return _this._getModule$1(namespace).get$variables().$index(0, $name);
  36802. if (_this._lastVariableName === $name) {
  36803. t1 = J.$index$asx(_this._variables[_this._lastVariableIndex], $name);
  36804. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  36805. }
  36806. t1 = _this._variableIndices;
  36807. index = t1.$index(0, $name);
  36808. if (index != null) {
  36809. _this._lastVariableName = $name;
  36810. _this._lastVariableIndex = index;
  36811. t1 = J.$index$asx(_this._variables[index], $name);
  36812. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  36813. }
  36814. index = _this._variableIndex$1($name);
  36815. if (index == null)
  36816. return _this._getVariableFromGlobalModule$1($name);
  36817. _this._lastVariableName = $name;
  36818. _this._lastVariableIndex = index;
  36819. t1.$indexSet(0, $name, index);
  36820. t1 = J.$index$asx(_this._variables[index], $name);
  36821. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  36822. },
  36823. getVariable$1: function($name) {
  36824. return this.getVariable$2$namespace($name, null);
  36825. },
  36826. _getVariableFromGlobalModule$1: function($name) {
  36827. return this._fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure($name));
  36828. },
  36829. getVariableNode$2$namespace: function($name, namespace) {
  36830. var t1, index, _this = this;
  36831. if (namespace != null)
  36832. return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
  36833. if (_this._lastVariableName === $name) {
  36834. t1 = J.$index$asx(_this._variableNodes[_this._lastVariableIndex], $name);
  36835. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  36836. }
  36837. t1 = _this._variableIndices;
  36838. index = t1.$index(0, $name);
  36839. if (index != null) {
  36840. _this._lastVariableName = $name;
  36841. _this._lastVariableIndex = index;
  36842. t1 = J.$index$asx(_this._variableNodes[index], $name);
  36843. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  36844. }
  36845. index = _this._variableIndex$1($name);
  36846. if (index == null)
  36847. return _this._getVariableNodeFromGlobalModule$1($name);
  36848. _this._lastVariableName = $name;
  36849. _this._lastVariableIndex = index;
  36850. t1.$indexSet(0, $name, index);
  36851. t1 = J.$index$asx(_this._variableNodes[index], $name);
  36852. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  36853. },
  36854. _getVariableNodeFromGlobalModule$1: function($name) {
  36855. var t1, value;
  36856. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  36857. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  36858. if (value != null)
  36859. return value;
  36860. }
  36861. return null;
  36862. },
  36863. globalVariableExists$2$namespace: function($name, namespace) {
  36864. if (namespace != null)
  36865. return this._getModule$1(namespace).get$variables().containsKey$1($name);
  36866. if (C.JSArray_methods.get$first(this._variables).containsKey$1($name))
  36867. return true;
  36868. return this._getVariableFromGlobalModule$1($name) != null;
  36869. },
  36870. globalVariableExists$1: function($name) {
  36871. return this.globalVariableExists$2$namespace($name, null);
  36872. },
  36873. _variableIndex$1: function($name) {
  36874. var t1, i;
  36875. for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
  36876. if (t1[i].containsKey$1($name))
  36877. return i;
  36878. return null;
  36879. },
  36880. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  36881. var t1, moduleWithName, cur, t2, index, _this = this;
  36882. if (namespace != null) {
  36883. _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  36884. return;
  36885. }
  36886. if (global || _this._variables.length === 1) {
  36887. _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure(_this, $name));
  36888. t1 = _this._variables;
  36889. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  36890. moduleWithName = _this._fromOneModule$3($name, "variable", new O.Environment_setVariable_closure0($name));
  36891. if (moduleWithName != null) {
  36892. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  36893. return;
  36894. }
  36895. }
  36896. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  36897. t1 = _this._variableNodes;
  36898. if (t1 != null)
  36899. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  36900. return;
  36901. }
  36902. if (_this._nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null) {
  36903. t1 = _this._nestedForwardedModules;
  36904. t1.toString;
  36905. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  36906. t1 = new H.ListIterator(t1, t1.get$length(t1));
  36907. for (; t1.moveNext$0();) {
  36908. cur = t1.__internal$_current;
  36909. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  36910. cur = t2.__internal$_current;
  36911. if (cur.get$variables().containsKey$1($name)) {
  36912. cur.setVariable$3($name, value, nodeWithSpan);
  36913. return;
  36914. }
  36915. }
  36916. }
  36917. }
  36918. index = _this._lastVariableName === $name ? _this._lastVariableIndex : _this._variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure1(_this, $name));
  36919. if (!_this._inSemiGlobalScope && index === 0) {
  36920. index = _this._variables.length - 1;
  36921. _this._variableIndices.$indexSet(0, $name, index);
  36922. }
  36923. _this._lastVariableName = $name;
  36924. _this._lastVariableIndex = index;
  36925. J.$indexSet$ax(_this._variables[index], $name, value);
  36926. t1 = _this._variableNodes;
  36927. if (t1 != null)
  36928. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  36929. },
  36930. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  36931. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  36932. },
  36933. setLocalVariable$3: function($name, value, nodeWithSpan) {
  36934. var index, _this = this,
  36935. t1 = _this._variables,
  36936. t2 = t1.length;
  36937. _this._lastVariableName = $name;
  36938. index = _this._lastVariableIndex = t2 - 1;
  36939. _this._variableIndices.$indexSet(0, $name, index);
  36940. J.$indexSet$ax(t1[index], $name, value);
  36941. t1 = _this._variableNodes;
  36942. if (t1 != null)
  36943. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  36944. },
  36945. getFunction$2$namespace: function($name, namespace) {
  36946. var t1, index, _this = this;
  36947. if (namespace != null) {
  36948. t1 = _this._getModule$1(namespace);
  36949. return t1.get$functions(t1).$index(0, $name);
  36950. }
  36951. t1 = _this._functionIndices;
  36952. index = t1.$index(0, $name);
  36953. if (index != null) {
  36954. t1 = J.$index$asx(_this._functions[index], $name);
  36955. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  36956. }
  36957. index = _this._functionIndex$1($name);
  36958. if (index == null)
  36959. return _this._getFunctionFromGlobalModule$1($name);
  36960. t1.$indexSet(0, $name, index);
  36961. t1 = J.$index$asx(_this._functions[index], $name);
  36962. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  36963. },
  36964. _getFunctionFromGlobalModule$1: function($name) {
  36965. return this._fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure($name));
  36966. },
  36967. _functionIndex$1: function($name) {
  36968. var t1, i;
  36969. for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
  36970. if (t1[i].containsKey$1($name))
  36971. return i;
  36972. return null;
  36973. },
  36974. getMixin$2$namespace: function($name, namespace) {
  36975. var t1, index, _this = this;
  36976. if (namespace != null)
  36977. return _this._getModule$1(namespace).get$mixins().$index(0, $name);
  36978. t1 = _this._mixinIndices;
  36979. index = t1.$index(0, $name);
  36980. if (index != null) {
  36981. t1 = J.$index$asx(_this._mixins[index], $name);
  36982. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  36983. }
  36984. index = _this._mixinIndex$1($name);
  36985. if (index == null)
  36986. return _this._getMixinFromGlobalModule$1($name);
  36987. t1.$indexSet(0, $name, index);
  36988. t1 = J.$index$asx(_this._mixins[index], $name);
  36989. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  36990. },
  36991. _getMixinFromGlobalModule$1: function($name) {
  36992. return this._fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure($name));
  36993. },
  36994. _mixinIndex$1: function($name) {
  36995. var t1, i;
  36996. for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
  36997. if (t1[i].containsKey$1($name))
  36998. return i;
  36999. return null;
  37000. },
  37001. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  37002. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  37003. if (!when) {
  37004. wasInSemiGlobalScope = _this._inSemiGlobalScope;
  37005. _this._inSemiGlobalScope = semiGlobal;
  37006. try {
  37007. t1 = callback.call$0();
  37008. return t1;
  37009. } finally {
  37010. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  37011. }
  37012. }
  37013. semiGlobal = semiGlobal && _this._inSemiGlobalScope;
  37014. wasInSemiGlobalScope0 = _this._inSemiGlobalScope;
  37015. _this._inSemiGlobalScope = semiGlobal;
  37016. t1 = _this._variables;
  37017. t2 = type$.legacy_String;
  37018. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value));
  37019. t3 = _this._variableNodes;
  37020. if (t3 != null)
  37021. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode));
  37022. t3 = _this._functions;
  37023. t4 = type$.legacy_Callable;
  37024. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  37025. t5 = _this._mixins;
  37026. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  37027. t4 = _this._nestedForwardedModules;
  37028. if (t4 != null)
  37029. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable));
  37030. try {
  37031. t2 = callback.call$0();
  37032. return t2;
  37033. } finally {
  37034. _this._inSemiGlobalScope = wasInSemiGlobalScope0;
  37035. _this._lastVariableIndex = _this._lastVariableName = null;
  37036. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t1))), t2 = _this._variableIndices; t1.moveNext$0();) {
  37037. $name = t1.get$current(t1);
  37038. t2.remove$1(0, $name);
  37039. }
  37040. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t3))), t2 = _this._functionIndices; t1.moveNext$0();) {
  37041. name0 = t1.get$current(t1);
  37042. t2.remove$1(0, name0);
  37043. }
  37044. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t5))), t2 = _this._mixinIndices; t1.moveNext$0();) {
  37045. name1 = t1.get$current(t1);
  37046. t2.remove$1(0, name1);
  37047. }
  37048. t1 = _this._nestedForwardedModules;
  37049. if (t1 != null)
  37050. C.JSArray_methods.removeLast$0(t1);
  37051. }
  37052. },
  37053. scope$1$1: function(callback, $T) {
  37054. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  37055. },
  37056. scope$1$2$when: function(callback, when, $T) {
  37057. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  37058. },
  37059. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  37060. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  37061. },
  37062. toImplicitConfiguration$0: function() {
  37063. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  37064. t1 = type$.legacy_String,
  37065. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue);
  37066. for (t2 = this._variables, t3 = this._variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode, i = 0; i < t2.length; ++i) {
  37067. values = t2[i];
  37068. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  37069. for (t6 = J.get$iterator$ax(values.get$keys(values)); t6.moveNext$0();) {
  37070. t7 = t6.get$current(t6);
  37071. configuration.$indexSet(0, t7, new Z.ConfiguredValue(values.$index(0, t7), null, nodes.$index(0, t7)));
  37072. }
  37073. }
  37074. return new A.Configuration(configuration, null, true);
  37075. },
  37076. _getModule$1: function(namespace) {
  37077. var module = this._environment$_modules.$index(0, namespace);
  37078. if (module != null)
  37079. return module;
  37080. throw H.wrapException(E.SassScriptException$('There is no module with the namespace "' + namespace + '".'));
  37081. },
  37082. _fromOneModule$1$3: function($name, type, callback) {
  37083. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  37084. t1 = this._nestedForwardedModules;
  37085. if (t1 != null)
  37086. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  37087. cur = t1.__internal$_current;
  37088. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  37089. cur = t2.__internal$_current;
  37090. value = callback.call$1(cur);
  37091. if (value != null)
  37092. return value;
  37093. }
  37094. }
  37095. for (t1 = this._globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_Callable, value = null, identity = null; t1.moveNext$0();) {
  37096. t3 = t1._collection$_current;
  37097. valueInModule = callback.call$1(t3);
  37098. if (valueInModule == null)
  37099. continue;
  37100. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  37101. if (identityFromModule.$eq(0, identity))
  37102. continue;
  37103. if (value != null) {
  37104. t1 = "This " + type + string$.x20is_av;
  37105. t2 = type + " use";
  37106. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  37107. for (t4 = this._globalModuleNodes, t4 = t4.get$entries(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  37108. t5 = t4.get$current(t4);
  37109. if (callback.call$1(t5.key) != null)
  37110. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  37111. }
  37112. throw H.wrapException(E.MultiSpanSassScriptException$(t1, t2, t3));
  37113. }
  37114. identity = identityFromModule;
  37115. value = valueInModule;
  37116. }
  37117. return value;
  37118. },
  37119. _fromOneModule$3: function($name, type, callback) {
  37120. return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
  37121. }
  37122. };
  37123. O.Environment_importForwards_closure.prototype = {
  37124. call$1: function(module) {
  37125. var t1 = module.get$variables();
  37126. return t1.get$keys(t1);
  37127. },
  37128. $signature: 118
  37129. };
  37130. O.Environment_importForwards_closure0.prototype = {
  37131. call$1: function(module) {
  37132. var t1 = module.get$functions(module);
  37133. return t1.get$keys(t1);
  37134. },
  37135. $signature: 118
  37136. };
  37137. O.Environment_importForwards_closure1.prototype = {
  37138. call$1: function(module) {
  37139. var t1 = module.get$mixins();
  37140. return t1.get$keys(t1);
  37141. },
  37142. $signature: 118
  37143. };
  37144. O.Environment_importForwards_closure2.prototype = {
  37145. call$1: function(_) {
  37146. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable);
  37147. },
  37148. $signature: 386
  37149. };
  37150. O.Environment__getVariableFromGlobalModule_closure.prototype = {
  37151. call$1: function(module) {
  37152. return module.get$variables().$index(0, this.name);
  37153. },
  37154. $signature: 377
  37155. };
  37156. O.Environment_setVariable_closure.prototype = {
  37157. call$0: function() {
  37158. var t1 = this.$this;
  37159. t1._lastVariableName = this.name;
  37160. return t1._lastVariableIndex = 0;
  37161. },
  37162. $signature: 11
  37163. };
  37164. O.Environment_setVariable_closure0.prototype = {
  37165. call$1: function(module) {
  37166. return module.get$variables().containsKey$1(this.name) ? module : null;
  37167. },
  37168. $signature: 128
  37169. };
  37170. O.Environment_setVariable_closure1.prototype = {
  37171. call$0: function() {
  37172. var t1 = this.$this,
  37173. t2 = t1._variableIndex$1(this.name);
  37174. return t2 == null ? t1._variables.length - 1 : t2;
  37175. },
  37176. $signature: 11
  37177. };
  37178. O.Environment__getFunctionFromGlobalModule_closure.prototype = {
  37179. call$1: function(module) {
  37180. return module.get$functions(module).$index(0, this.name);
  37181. },
  37182. $signature: 134
  37183. };
  37184. O.Environment__getMixinFromGlobalModule_closure.prototype = {
  37185. call$1: function(module) {
  37186. return module.get$mixins().$index(0, this.name);
  37187. },
  37188. $signature: 134
  37189. };
  37190. O._EnvironmentModule.prototype = {
  37191. get$url: function() {
  37192. return this.css.get$span().file.url;
  37193. },
  37194. setVariable$3: function($name, value, nodeWithSpan) {
  37195. var t1, t2,
  37196. module = this._modulesByVariable.$index(0, $name);
  37197. if (module != null) {
  37198. module.setVariable$3($name, value, nodeWithSpan);
  37199. return;
  37200. }
  37201. t1 = this._environment;
  37202. t2 = t1._variables;
  37203. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  37204. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  37205. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  37206. t1 = t1._variableNodes;
  37207. if (t1 != null)
  37208. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  37209. return;
  37210. },
  37211. variableIdentity$1: function($name) {
  37212. var module = this._modulesByVariable.$index(0, $name);
  37213. return module == null ? this : module.variableIdentity$1($name);
  37214. },
  37215. cloneCss$0: function() {
  37216. var newCssAndExtender, _this = this,
  37217. t1 = _this.css;
  37218. if (J.get$isEmpty$asx(t1.get$children(t1)))
  37219. return _this;
  37220. newCssAndExtender = V.cloneCssStylesheet(t1, _this.extender);
  37221. return O._EnvironmentModule$_(_this._environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  37222. },
  37223. toString$0: function(_) {
  37224. var t1 = this.css;
  37225. if (t1.get$span().file.url == null)
  37226. t1 = "<unknown url>";
  37227. else {
  37228. t1 = t1.get$span().file;
  37229. t1 = $.$get$context().prettyUri$1(t1.url);
  37230. }
  37231. return t1;
  37232. },
  37233. $isModule: 1,
  37234. get$upstream: function() {
  37235. return this.upstream;
  37236. },
  37237. get$variables: function() {
  37238. return this.variables;
  37239. },
  37240. get$variableNodes: function() {
  37241. return this.variableNodes;
  37242. },
  37243. get$functions: function(receiver) {
  37244. return this.functions;
  37245. },
  37246. get$mixins: function() {
  37247. return this.mixins;
  37248. },
  37249. get$extender: function() {
  37250. return this.extender;
  37251. },
  37252. get$css: function(receiver) {
  37253. return this.css;
  37254. },
  37255. get$transitivelyContainsCss: function() {
  37256. return this.transitivelyContainsCss;
  37257. },
  37258. get$transitivelyContainsExtensions: function() {
  37259. return this.transitivelyContainsExtensions;
  37260. }
  37261. };
  37262. O._EnvironmentModule__EnvironmentModule_closure.prototype = {
  37263. call$1: function(module) {
  37264. return module.get$variables();
  37265. },
  37266. $signature: 375
  37267. };
  37268. O._EnvironmentModule__EnvironmentModule_closure0.prototype = {
  37269. call$1: function(module) {
  37270. return module.get$variableNodes();
  37271. },
  37272. $signature: 374
  37273. };
  37274. O._EnvironmentModule__EnvironmentModule_closure1.prototype = {
  37275. call$1: function(module) {
  37276. return module.get$functions(module);
  37277. },
  37278. $signature: 140
  37279. };
  37280. O._EnvironmentModule__EnvironmentModule_closure2.prototype = {
  37281. call$1: function(module) {
  37282. return module.get$mixins();
  37283. },
  37284. $signature: 140
  37285. };
  37286. O._EnvironmentModule__EnvironmentModule_closure3.prototype = {
  37287. call$1: function(module) {
  37288. return module.get$transitivelyContainsCss();
  37289. },
  37290. $signature: 121
  37291. };
  37292. O._EnvironmentModule__EnvironmentModule_closure4.prototype = {
  37293. call$1: function(module) {
  37294. return module.get$transitivelyContainsExtensions();
  37295. },
  37296. $signature: 121
  37297. };
  37298. E.SassException.prototype = {
  37299. get$trace: function(_) {
  37300. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  37301. },
  37302. get$span: function() {
  37303. return G.SourceSpanException.prototype.get$span.call(this);
  37304. },
  37305. toString$1$color: function(_, color) {
  37306. var t2, _i, frame, t3, _this = this,
  37307. buffer = new P.StringBuffer(""),
  37308. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  37309. buffer._contents = t1;
  37310. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(_this).highlight$1$color(color);
  37311. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  37312. frame = t1[_i];
  37313. frame.toString;
  37314. if (J.get$length$asx(frame) === 0)
  37315. continue;
  37316. t3 = buffer._contents += "\n";
  37317. buffer._contents = t3 + (" " + H.S(frame));
  37318. }
  37319. t1 = buffer._contents;
  37320. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37321. },
  37322. toString$0: function($receiver) {
  37323. return this.toString$1$color($receiver, null);
  37324. },
  37325. toCssString$0: function() {
  37326. var stringMessage, rune,
  37327. t1 = $._glyphs,
  37328. t2 = $._glyphs = C.C_AsciiGlyphSet,
  37329. t3 = this.toString$1$color(0, false),
  37330. commentMessage = H.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
  37331. $._glyphs = t1 === C.C_AsciiGlyphSet ? t2 : C.C_UnicodeGlyphSet;
  37332. stringMessage = new P.StringBuffer("");
  37333. for (t1 = P.RuneIterator$(N.serializeValue0(new D.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
  37334. rune = t1._currentCodePoint;
  37335. if (rune > 255) {
  37336. stringMessage._contents += H.Primitives_stringFromCharCode(92);
  37337. stringMessage._contents += C.JSInt_methods.toRadixString$1(rune, 16);
  37338. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(32);
  37339. } else
  37340. t2 = stringMessage._contents += H.Primitives_stringFromCharCode(rune);
  37341. }
  37342. return "/* " + C.JSArray_methods.join$1(H.setRuntimeTypeInfo(commentMessage.split("\n"), type$.JSArray_String), "\n * ") + ' */\n\nbody::before {\n font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",\n "Droid Sans Mono", monospace, monospace;\n white-space: pre;\n display: block;\n padding: 1em;\n margin-bottom: 1em;\n border-bottom: 2px solid black;\n content: ' + stringMessage.toString$0(0) + ";\n}";
  37343. }
  37344. };
  37345. E.MultiSpanSassException.prototype = {
  37346. toString$1$color: function(_, color) {
  37347. var t2, _i, frame, t3, _this = this,
  37348. useColor = color === true && true,
  37349. buffer = new P.StringBuffer(""),
  37350. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  37351. buffer._contents = t1;
  37352. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0();
  37353. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  37354. frame = t1[_i];
  37355. frame.toString;
  37356. if (J.get$length$asx(frame) === 0)
  37357. continue;
  37358. t3 = buffer._contents += "\n";
  37359. buffer._contents = t3 + (" " + H.S(frame));
  37360. }
  37361. t1 = buffer._contents;
  37362. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37363. },
  37364. toString$0: function($receiver) {
  37365. return this.toString$1$color($receiver, null);
  37366. }
  37367. };
  37368. E.SassRuntimeException.prototype = {
  37369. get$trace: function(receiver) {
  37370. return this.trace;
  37371. }
  37372. };
  37373. E.MultiSpanSassRuntimeException.prototype = {$isSassRuntimeException: 1,
  37374. get$trace: function(receiver) {
  37375. return this.trace;
  37376. }
  37377. };
  37378. E.SassFormatException.prototype = {
  37379. get$source: function() {
  37380. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  37381. },
  37382. $isFormatException: 1,
  37383. $isSourceSpanFormatException: 1
  37384. };
  37385. E.SassScriptException.prototype = {
  37386. toString$0: function(_) {
  37387. return this.message + string$.x0a_BUG_;
  37388. },
  37389. get$message: function(receiver) {
  37390. return this.message;
  37391. }
  37392. };
  37393. E.MultiSpanSassScriptException.prototype = {};
  37394. D._writeSourceMap_closure.prototype = {
  37395. call$1: function(url) {
  37396. return this.options.sourceMapUrl$2(P.Uri_parse(url), this.destination).toString$0(0);
  37397. },
  37398. $signature: 6
  37399. };
  37400. B.ExecutableOptions.prototype = {
  37401. get$interactive: function() {
  37402. var t2, invalidOptions, _i, option,
  37403. t1 = this._interactive;
  37404. if (t1 != null)
  37405. return t1;
  37406. t1 = this._options;
  37407. t2 = H._asBoolS(t1.$index(0, "interactive"));
  37408. this._interactive = t2;
  37409. if (!t2)
  37410. return false;
  37411. invalidOptions = ["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"];
  37412. for (t2 = t1._parser.options._collection$_map, _i = 0; _i < 9; ++_i) {
  37413. option = invalidOptions[_i];
  37414. if (t2.$index(0, option) == null)
  37415. H.throwExpression(P.ArgumentError$('Could not find an option named "' + option + '".'));
  37416. if (t1._parsed.containsKey$1(option))
  37417. throw H.wrapException(B.UsageException$("--" + option + " isn't allowed with --interactive."));
  37418. }
  37419. return true;
  37420. },
  37421. get$color: function() {
  37422. var t1 = this._options;
  37423. return t1.wasParsed$1("color") ? H._asBoolS(t1.$index(0, "color")) : B.hasTerminal();
  37424. },
  37425. get$emitErrorCss: function() {
  37426. var t1 = H._asBoolS(this._options.$index(0, "error-css"));
  37427. if (t1 == null) {
  37428. this._ensureSources$0();
  37429. t1 = this._sourcesToDestinations;
  37430. t1 = t1.get$values(t1).any$1(0, new B.ExecutableOptions_emitErrorCss_closure());
  37431. }
  37432. return t1;
  37433. },
  37434. _ensureSources$0: function() {
  37435. var t1, stdin, t2, t3, $directories, t4, colonArgs, positionalArgs, cur, t5, t6, message, target, source, destination, seen, i, t7, _this = this, _null = null,
  37436. _s18_ = 'Duplicate source "';
  37437. if (_this._sourcesToDestinations != null)
  37438. return;
  37439. t1 = _this._options;
  37440. stdin = H._asBoolS(t1.$index(0, "stdin"));
  37441. t2 = t1.rest;
  37442. if (t2.get$length(t2) === 0 && !stdin)
  37443. B.ExecutableOptions__fail("Compile Sass to CSS.");
  37444. t3 = type$.legacy_String;
  37445. $directories = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  37446. for (t4 = new H.ListIterator(t2, t2.get$length(t2)), colonArgs = false, positionalArgs = false; t4.moveNext$0();) {
  37447. cur = t4.__internal$_current;
  37448. t5 = cur.length;
  37449. if (t5 === 0)
  37450. B.ExecutableOptions__fail('Invalid argument "".');
  37451. if (H.stringContainsUnchecked(cur, ":", 0)) {
  37452. if (t5 > 2) {
  37453. t6 = C.JSString_methods._codeUnitAt$1(cur, 0);
  37454. if (!(t6 >= 97 && t6 <= 122))
  37455. t6 = t6 >= 65 && t6 <= 90;
  37456. else
  37457. t6 = true;
  37458. t6 = t6 && C.JSString_methods._codeUnitAt$1(cur, 1) === 58;
  37459. } else
  37460. t6 = false;
  37461. if (t6) {
  37462. if (2 > t5)
  37463. H.throwExpression(P.RangeError$range(2, 0, t5, _null, _null));
  37464. t5 = H.stringContainsUnchecked(cur, ":", 2);
  37465. } else
  37466. t5 = true;
  37467. } else
  37468. t5 = false;
  37469. if (t5)
  37470. colonArgs = true;
  37471. else if (B.dirExists(cur))
  37472. $directories.add$1(0, cur);
  37473. else
  37474. positionalArgs = true;
  37475. }
  37476. if (positionalArgs || t2.get$length(t2) === 0) {
  37477. if (colonArgs)
  37478. B.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
  37479. else if (stdin) {
  37480. if (J.get$length$asx(t2._collection$_source) > 1)
  37481. B.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
  37482. else if (H._asBoolS(t1.$index(0, "update")))
  37483. B.ExecutableOptions__fail("--update is not allowed with --stdin.");
  37484. else if (H._asBoolS(t1.$index(0, "watch")))
  37485. B.ExecutableOptions__fail("--watch is not allowed with --stdin.");
  37486. t1 = t2.get$length(t2) === 0 ? _null : t2.get$first(t2);
  37487. t2 = type$.dynamic;
  37488. _this._sourcesToDestinations = H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
  37489. } else {
  37490. t4 = t2._collection$_source;
  37491. t5 = J.getInterceptor$asx(t4);
  37492. if (t5.get$length(t4) > 2)
  37493. B.ExecutableOptions__fail("Only two positional args may be passed.");
  37494. else if ($directories._collection$_length !== 0) {
  37495. message = 'Directory "' + H.S($directories.get$first($directories)) + '" may not be a positional arg.';
  37496. target = t2.get$last(t2);
  37497. B.ExecutableOptions__fail(J.$eq$($directories.get$first($directories), t2.get$first(t2)) && !B.fileExists(target) ? message + ('\nTo compile all CSS in "' + H.S($directories.get$first($directories)) + '" to "' + H.S(target) + '", use `sass ' + H.S($directories.get$first($directories)) + ":" + H.S(target) + "`.") : message);
  37498. } else {
  37499. source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
  37500. destination = t5.get$length(t4) === 1 ? _null : t2.get$last(t2);
  37501. if (destination == null)
  37502. if (H._asBoolS(t1.$index(0, "update")))
  37503. B.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
  37504. else if (H._asBoolS(t1.$index(0, "watch")))
  37505. B.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
  37506. t1 = P.LinkedHashMap_LinkedHashMap$_literal([source, destination], t3, t3);
  37507. t3 = K.PathMap__create(_null, t3);
  37508. t3.addAll$1(0, t1);
  37509. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, type$.PathMap_legacy_String), type$.UnmodifiableMapView_of_legacy_String_and_legacy_String);
  37510. }
  37511. }
  37512. _this._sourceDirectoriesToDestinations = C.Map_empty5;
  37513. return;
  37514. }
  37515. if (stdin)
  37516. B.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
  37517. seen = P.LinkedHashSet_LinkedHashSet$_empty(t3);
  37518. t1 = K.PathMap__create(_null, t3);
  37519. t4 = type$.PathMap_legacy_String;
  37520. t3 = K.PathMap__create(_null, t3);
  37521. for (t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  37522. cur = t2.__internal$_current;
  37523. if ($directories.contains$1(0, cur)) {
  37524. if (!seen.add$1(0, cur))
  37525. B.ExecutableOptions__fail(_s18_ + H.S(cur) + '".');
  37526. t3.$indexSet(0, cur, cur);
  37527. t1.addAll$1(0, _this._listSourceDirectory$2(cur, cur));
  37528. continue;
  37529. }
  37530. for (t5 = cur.length, destination = _null, source = destination, i = 0; i < t5; ++i) {
  37531. if (i === 1) {
  37532. t6 = i - 1;
  37533. if (t5 > t6 + 2) {
  37534. t7 = C.JSString_methods.codeUnitAt$1(cur, t6);
  37535. if (!(t7 >= 97 && t7 <= 122))
  37536. t7 = t7 >= 65 && t7 <= 90;
  37537. else
  37538. t7 = true;
  37539. t6 = t7 && C.JSString_methods.codeUnitAt$1(cur, t6 + 1) === 58;
  37540. } else
  37541. t6 = false;
  37542. } else
  37543. t6 = false;
  37544. if (t6)
  37545. continue;
  37546. if (C.JSString_methods._codeUnitAt$1(cur, i) === 58)
  37547. if (source == null) {
  37548. source = C.JSString_methods.substring$2(cur, 0, i);
  37549. destination = C.JSString_methods.substring$1(cur, i + 1);
  37550. } else {
  37551. if (i === source.length + 2) {
  37552. t6 = i - 1;
  37553. if (t5 > t6 + 2) {
  37554. t7 = C.JSString_methods.codeUnitAt$1(cur, t6);
  37555. if (!(t7 >= 97 && t7 <= 122))
  37556. t7 = t7 >= 65 && t7 <= 90;
  37557. else
  37558. t7 = true;
  37559. t6 = t7 && C.JSString_methods.codeUnitAt$1(cur, t6 + 1) === 58;
  37560. } else
  37561. t6 = false;
  37562. t6 = !t6;
  37563. } else
  37564. t6 = true;
  37565. if (t6)
  37566. B.ExecutableOptions__fail('"' + cur + '" may only contain one ":".');
  37567. }
  37568. }
  37569. if (!seen.add$1(0, source))
  37570. B.ExecutableOptions__fail(_s18_ + H.S(source) + '".');
  37571. if (source === "-")
  37572. t1.$indexSet(0, _null, destination);
  37573. else if (B.dirExists(source)) {
  37574. t3.$indexSet(0, source, destination);
  37575. t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
  37576. } else
  37577. t1.$indexSet(0, source, destination);
  37578. }
  37579. t2 = type$.UnmodifiableMapView_of_legacy_String_and_legacy_String;
  37580. _this._sourcesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t1, t4), t2);
  37581. _this._sourceDirectoriesToDestinations = new P.UnmodifiableMapView(new K.PathMap(t3, t4), t2);
  37582. },
  37583. _listSourceDirectory$2: function(source, destination) {
  37584. var t2, t3, t4, t5, _null = null,
  37585. t1 = type$.legacy_String;
  37586. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  37587. for (t2 = J.get$iterator$ax(B.listDir(source, true)), t3 = source == destination; t2.moveNext$0();) {
  37588. t4 = t2.get$current(t2);
  37589. if (this._isEntrypoint$1(t4))
  37590. t5 = !(t3 && X.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
  37591. else
  37592. t5 = false;
  37593. if (t5) {
  37594. t5 = $.$get$context();
  37595. t1.$indexSet(0, t4, t5.join$8(0, destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", _null, _null, _null, _null, _null, _null));
  37596. }
  37597. }
  37598. return t1;
  37599. },
  37600. _isEntrypoint$1: function(path) {
  37601. var extension,
  37602. t1 = $.$get$context().style;
  37603. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
  37604. return false;
  37605. extension = X.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
  37606. return extension === ".scss" || extension === ".sass" || extension === ".css";
  37607. },
  37608. get$_writeToStdout: function() {
  37609. var t1, _this = this;
  37610. _this._ensureSources$0();
  37611. t1 = _this._sourcesToDestinations;
  37612. if (t1.get$length(t1) === 1) {
  37613. _this._ensureSources$0();
  37614. t1 = _this._sourcesToDestinations;
  37615. t1 = t1.get$values(t1);
  37616. t1 = t1.get$single(t1) == null;
  37617. } else
  37618. t1 = false;
  37619. return t1;
  37620. },
  37621. get$emitSourceMap: function() {
  37622. var _this = this,
  37623. _s10_ = "source-map",
  37624. _s15_ = "source-map-urls",
  37625. _s13_ = "embed-sources",
  37626. _s16_ = "embed-source-map",
  37627. t1 = _this._options;
  37628. if (!H._asBoolS(t1.$index(0, _s10_)))
  37629. if (t1.wasParsed$1(_s15_))
  37630. B.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
  37631. else if (t1.wasParsed$1(_s13_))
  37632. B.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
  37633. else if (t1.wasParsed$1(_s16_))
  37634. B.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
  37635. if (!_this.get$_writeToStdout())
  37636. return H._asBoolS(t1.$index(0, _s10_));
  37637. if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
  37638. B.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
  37639. if (H._asBoolS(t1.$index(0, _s16_)))
  37640. return H._asBoolS(t1.$index(0, _s10_));
  37641. else if (J.$eq$(_this._ifParsed$1(_s10_), true))
  37642. B.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
  37643. else if (t1.wasParsed$1(_s15_))
  37644. B.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
  37645. else if (H._asBoolS(t1.$index(0, _s13_)))
  37646. B.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
  37647. else
  37648. return false;
  37649. },
  37650. sourceMapUrl$2: function(url, destination) {
  37651. var t1, path;
  37652. if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
  37653. return url;
  37654. t1 = $.$get$context();
  37655. path = t1.style.pathFromUri$1(M._parseUri(url));
  37656. return t1.toUri$1(J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout() ? t1.relative$2$from(path, t1.dirname$1(destination)) : D.absolute(path));
  37657. },
  37658. _ifParsed$1: function($name) {
  37659. var t1 = this._options;
  37660. return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
  37661. }
  37662. };
  37663. B.ExecutableOptions_closure.prototype = {
  37664. call$0: function() {
  37665. var t1 = type$.legacy_String,
  37666. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Option),
  37667. t3 = [],
  37668. parser = new N.ArgParser(t2, new P.UnmodifiableMapView(t2, type$.UnmodifiableMapView_of_legacy_String_and_legacy_Option), new P.UnmodifiableMapView(P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ArgParser), type$.UnmodifiableMapView_of_legacy_String_and_legacy_ArgParser), t3, true, null);
  37669. parser.addOption$2$hide("precision", true);
  37670. parser.addFlag$2$hide("async", true);
  37671. t3.push(B.ExecutableOptions__separator("Input and Output"));
  37672. parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
  37673. parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
  37674. parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
  37675. t1 = type$.JSArray_legacy_String;
  37676. parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", H.setRuntimeTypeInfo(["expanded", "compressed"], t1), "expanded", "Output style.", "NAME");
  37677. parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
  37678. parser.addFlag$3$defaultsTo$help("error-css", null, "When an error occurs, emit a stylesheet describing it.\nDefaults to true when compiling to a file.");
  37679. parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
  37680. t3.push(B.ExecutableOptions__separator("Source Maps"));
  37681. parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
  37682. parser.addOption$4$allowed$defaultsTo$help("source-map-urls", H.setRuntimeTypeInfo(["relative", "absolute"], t1), "relative", "How to link from source maps to source files.");
  37683. parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
  37684. parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
  37685. t3.push(B.ExecutableOptions__separator("Other"));
  37686. parser.addFlag$3$help$negatable("watch", "Watch stylesheets and recompile when they change.", false);
  37687. parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
  37688. parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
  37689. parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
  37690. parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
  37691. parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
  37692. parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
  37693. parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
  37694. parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
  37695. parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
  37696. return parser;
  37697. },
  37698. $signature: 368
  37699. };
  37700. B.ExecutableOptions_emitErrorCss_closure.prototype = {
  37701. call$1: function(destination) {
  37702. return destination != null;
  37703. },
  37704. $signature: 5
  37705. };
  37706. B.UsageException.prototype = {$isException: 1,
  37707. get$message: function(receiver) {
  37708. return this.message;
  37709. }
  37710. };
  37711. A.watch_closure.prototype = {
  37712. call$1: function(dir) {
  37713. for (; !B.dirExists(dir);)
  37714. dir = $.$get$context().dirname$1(dir);
  37715. return this.dirWatcher.watch$1(0, dir);
  37716. },
  37717. $signature: 365
  37718. };
  37719. A._Watcher.prototype = {
  37720. compile$3$ifModified: function(source, destination, ifModified) {
  37721. return this.compile$body$_Watcher(source, destination, ifModified);
  37722. },
  37723. compile$2: function(source, destination) {
  37724. return this.compile$3$ifModified(source, destination, false);
  37725. },
  37726. compile$body$_Watcher: function(source, destination, ifModified) {
  37727. var $async$goto = 0,
  37728. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37729. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, stackTrace, error0, stackTrace0, exception, t1, $async$exception;
  37730. var $async$compile$3$ifModified = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37731. if ($async$errorCode === 1) {
  37732. $async$currentError = $async$result;
  37733. $async$goto = $async$handler;
  37734. }
  37735. while (true)
  37736. switch ($async$goto) {
  37737. case 0:
  37738. // Function start
  37739. $async$handler = 4;
  37740. $async$goto = 7;
  37741. return P._asyncAwait(D.compileStylesheet($async$self._watch$_options, $async$self._graph, source, destination, ifModified), $async$compile$3$ifModified);
  37742. case 7:
  37743. // returning from await.
  37744. $async$returnValue = true;
  37745. // goto return
  37746. $async$goto = 1;
  37747. break;
  37748. $async$handler = 2;
  37749. // goto after finally
  37750. $async$goto = 6;
  37751. break;
  37752. case 4:
  37753. // catch
  37754. $async$handler = 3;
  37755. $async$exception = $async$currentError;
  37756. t1 = H.unwrapException($async$exception);
  37757. if (t1 instanceof E.SassException) {
  37758. error = t1;
  37759. stackTrace = H.getTraceFromException($async$exception);
  37760. t1 = $async$self._watch$_options;
  37761. if (!t1.get$emitErrorCss())
  37762. $async$self._delete$1(destination);
  37763. $async$self._printError$2(J.toString$1$color$(error, t1.get$color()), stackTrace);
  37764. J.set$exitCode$x(self.process, 65);
  37765. $async$returnValue = false;
  37766. // goto return
  37767. $async$goto = 1;
  37768. break;
  37769. } else if (t1 instanceof B.FileSystemException) {
  37770. error0 = t1;
  37771. stackTrace0 = H.getTraceFromException($async$exception);
  37772. t1 = error0.path;
  37773. $async$self._printError$2("Error reading " + H.S($.$get$context().relative$2$from(t1, null)) + ": " + error0.message + ".", stackTrace0);
  37774. J.set$exitCode$x(self.process, 66);
  37775. $async$returnValue = false;
  37776. // goto return
  37777. $async$goto = 1;
  37778. break;
  37779. } else
  37780. throw $async$exception;
  37781. // goto after finally
  37782. $async$goto = 6;
  37783. break;
  37784. case 3:
  37785. // uncaught
  37786. // goto rethrow
  37787. $async$goto = 2;
  37788. break;
  37789. case 6:
  37790. // after finally
  37791. case 1:
  37792. // return
  37793. return P._asyncReturn($async$returnValue, $async$completer);
  37794. case 2:
  37795. // rethrow
  37796. return P._asyncRethrow($async$currentError, $async$completer);
  37797. }
  37798. });
  37799. return P._asyncStartSync($async$compile$3$ifModified, $async$completer);
  37800. },
  37801. _delete$1: function(path) {
  37802. var buffer, t1, exception;
  37803. try {
  37804. B.deleteFile(path);
  37805. buffer = new P.StringBuffer("");
  37806. t1 = this._watch$_options;
  37807. if (t1.get$color())
  37808. buffer._contents += "\x1b[33m";
  37809. buffer._contents += "Deleted " + H.S(path) + ".";
  37810. if (t1.get$color())
  37811. buffer._contents += "\x1b[0m";
  37812. P.print(buffer);
  37813. } catch (exception) {
  37814. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  37815. throw exception;
  37816. }
  37817. },
  37818. _printError$2: function(message, stackTrace) {
  37819. var t2,
  37820. t1 = $.$get$stderr();
  37821. t1.writeln$1(message);
  37822. t2 = this._watch$_options._options;
  37823. if (H._asBoolS(t2.$index(0, "trace"))) {
  37824. t1.writeln$0();
  37825. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  37826. }
  37827. if (!H._asBoolS(t2.$index(0, "stop-on-error")))
  37828. t1.writeln$0();
  37829. },
  37830. watch$1: function(_, watcher) {
  37831. return this.watch$body$_Watcher(_, watcher);
  37832. },
  37833. watch$body$_Watcher: function(_, watcher) {
  37834. var $async$goto = 0,
  37835. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  37836. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
  37837. var $async$watch$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37838. if ($async$errorCode === 1) {
  37839. $async$currentError = $async$result;
  37840. $async$goto = $async$handler;
  37841. }
  37842. while (true)
  37843. switch ($async$goto) {
  37844. case 0:
  37845. // Function start
  37846. t1 = watcher._group._controller;
  37847. t1.toString;
  37848. t1 = $async$self._debounceEvents$1(new P._ControllerStream(t1, H._instanceType(t1)._eval$1("_ControllerStream<1>")));
  37849. t2 = new P._StreamIterator(t1);
  37850. P.ArgumentError_checkNotNull(t1, "stream");
  37851. $async$handler = 3;
  37852. t1 = $async$self._watch$_options._options;
  37853. case 6:
  37854. // for condition
  37855. $async$goto = 8;
  37856. return P._asyncAwait(t2.moveNext$0(), $async$watch$1);
  37857. case 8:
  37858. // returning from await.
  37859. if (!$async$result) {
  37860. // goto after for
  37861. $async$goto = 7;
  37862. break;
  37863. }
  37864. $event = t2.get$current(t2);
  37865. extension = X.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
  37866. if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
  37867. // goto for condition
  37868. $async$goto = 6;
  37869. break;
  37870. }
  37871. case 9:
  37872. // switch
  37873. switch ($event.type) {
  37874. case C.ChangeType_modify:
  37875. // goto case
  37876. $async$goto = 11;
  37877. break;
  37878. case C.ChangeType_add:
  37879. // goto case
  37880. $async$goto = 12;
  37881. break;
  37882. case C.ChangeType_remove:
  37883. // goto case
  37884. $async$goto = 13;
  37885. break;
  37886. default:
  37887. // goto after switch
  37888. $async$goto = 10;
  37889. break;
  37890. }
  37891. break;
  37892. case 11:
  37893. // case
  37894. $async$goto = 14;
  37895. return P._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
  37896. case 14:
  37897. // returning from await.
  37898. success = $async$result;
  37899. if (!success && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  37900. $async$next = [1];
  37901. // goto finally
  37902. $async$goto = 4;
  37903. break;
  37904. }
  37905. // goto after switch
  37906. $async$goto = 10;
  37907. break;
  37908. case 12:
  37909. // case
  37910. $async$goto = 15;
  37911. return P._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
  37912. case 15:
  37913. // returning from await.
  37914. success0 = $async$result;
  37915. if (!success0 && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  37916. $async$next = [1];
  37917. // goto finally
  37918. $async$goto = 4;
  37919. break;
  37920. }
  37921. // goto after switch
  37922. $async$goto = 10;
  37923. break;
  37924. case 13:
  37925. // case
  37926. $async$goto = 16;
  37927. return P._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
  37928. case 16:
  37929. // returning from await.
  37930. success1 = $async$result;
  37931. if (!success1 && H._asBoolS(t1.$index(0, "stop-on-error"))) {
  37932. $async$next = [1];
  37933. // goto finally
  37934. $async$goto = 4;
  37935. break;
  37936. }
  37937. // goto after switch
  37938. $async$goto = 10;
  37939. break;
  37940. case 10:
  37941. // after switch
  37942. // goto for condition
  37943. $async$goto = 6;
  37944. break;
  37945. case 7:
  37946. // after for
  37947. $async$next.push(5);
  37948. // goto finally
  37949. $async$goto = 4;
  37950. break;
  37951. case 3:
  37952. // uncaught
  37953. $async$next = [2];
  37954. case 4:
  37955. // finally
  37956. $async$handler = 2;
  37957. $async$goto = 17;
  37958. return P._asyncAwait(t2.cancel$0(), $async$watch$1);
  37959. case 17:
  37960. // returning from await.
  37961. // goto the next finally handler
  37962. $async$goto = $async$next.pop();
  37963. break;
  37964. case 5:
  37965. // after finally
  37966. case 1:
  37967. // return
  37968. return P._asyncReturn($async$returnValue, $async$completer);
  37969. case 2:
  37970. // rethrow
  37971. return P._asyncRethrow($async$currentError, $async$completer);
  37972. }
  37973. });
  37974. return P._asyncStartSync($async$watch$1, $async$completer);
  37975. },
  37976. _handleModify$1: function(path) {
  37977. return this._handleModify$body$_Watcher(path);
  37978. },
  37979. _handleModify$body$_Watcher: function(path) {
  37980. var $async$goto = 0,
  37981. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  37982. $async$returnValue, $async$self = this, t1, t2, t0, url, node;
  37983. var $async$_handleModify$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  37984. if ($async$errorCode === 1)
  37985. return P._asyncRethrow($async$result, $async$completer);
  37986. while (true)
  37987. switch ($async$goto) {
  37988. case 0:
  37989. // Function start
  37990. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  37991. t1 = $.$get$context();
  37992. t2 = F._realCasePath(D.absolute(t1.normalize$1(path)));
  37993. t0 = t2;
  37994. t2 = t1;
  37995. t1 = t0;
  37996. } else {
  37997. t1 = $.$get$context();
  37998. t2 = t1.canonicalize$1(path);
  37999. t0 = t2;
  38000. t2 = t1;
  38001. t1 = t0;
  38002. }
  38003. url = t2.toUri$1(t1);
  38004. t1 = $async$self._graph;
  38005. t2 = t1._nodes;
  38006. if (!t2.containsKey$1(url)) {
  38007. $async$returnValue = $async$self._handleAdd$1(path);
  38008. // goto return
  38009. $async$goto = 1;
  38010. break;
  38011. }
  38012. node = t2.$index(0, url);
  38013. t1.reload$1(url);
  38014. $async$goto = 3;
  38015. return P._asyncAwait($async$self._recompileDownstream$1(H.setRuntimeTypeInfo([node], type$.JSArray_legacy_StylesheetNode)), $async$_handleModify$1);
  38016. case 3:
  38017. // returning from await.
  38018. $async$returnValue = $async$result;
  38019. // goto return
  38020. $async$goto = 1;
  38021. break;
  38022. case 1:
  38023. // return
  38024. return P._asyncReturn($async$returnValue, $async$completer);
  38025. }
  38026. });
  38027. return P._asyncStartSync($async$_handleModify$1, $async$completer);
  38028. },
  38029. _handleAdd$1: function(path) {
  38030. return this._handleAdd$body$_Watcher(path);
  38031. },
  38032. _handleAdd$body$_Watcher: function(path) {
  38033. var $async$goto = 0,
  38034. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  38035. $async$returnValue, $async$self = this, t2, t3, t0, destination, success, t1, $async$temp1;
  38036. var $async$_handleAdd$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  38037. if ($async$errorCode === 1)
  38038. return P._asyncRethrow($async$result, $async$completer);
  38039. while (true)
  38040. switch ($async$goto) {
  38041. case 0:
  38042. // Function start
  38043. destination = $async$self._destinationFor$1(path);
  38044. $async$temp1 = destination == null;
  38045. if ($async$temp1)
  38046. $async$result = $async$temp1;
  38047. else {
  38048. // goto then
  38049. $async$goto = 3;
  38050. break;
  38051. }
  38052. // goto join
  38053. $async$goto = 4;
  38054. break;
  38055. case 3:
  38056. // then
  38057. $async$goto = 5;
  38058. return P._asyncAwait($async$self.compile$2(path, destination), $async$_handleAdd$1);
  38059. case 5:
  38060. // returning from await.
  38061. case 4:
  38062. // join
  38063. success = $async$result;
  38064. t1 = D.absolute(".");
  38065. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  38066. t2 = $.$get$context();
  38067. t3 = F._realCasePath(D.absolute(t2.normalize$1(path)));
  38068. t0 = t3;
  38069. t3 = t2;
  38070. t2 = t0;
  38071. } else {
  38072. t2 = $.$get$context();
  38073. t3 = t2.canonicalize$1(path);
  38074. t0 = t3;
  38075. t3 = t2;
  38076. t2 = t0;
  38077. }
  38078. $async$goto = 6;
  38079. return P._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(new F.FilesystemImporter(t1), t3.toUri$1(t2), t3.toUri$1(path))), $async$_handleAdd$1);
  38080. case 6:
  38081. // returning from await.
  38082. $async$returnValue = $async$result && success;
  38083. // goto return
  38084. $async$goto = 1;
  38085. break;
  38086. case 1:
  38087. // return
  38088. return P._asyncReturn($async$returnValue, $async$completer);
  38089. }
  38090. });
  38091. return P._asyncStartSync($async$_handleAdd$1, $async$completer);
  38092. },
  38093. _handleRemove$1: function(path) {
  38094. return this._handleRemove$body$_Watcher(path);
  38095. },
  38096. _handleRemove$body$_Watcher: function(path) {
  38097. var $async$goto = 0,
  38098. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  38099. $async$returnValue, $async$self = this, t1, t2, t0, url, destination, t3, node, toRecompile;
  38100. var $async$_handleRemove$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  38101. if ($async$errorCode === 1)
  38102. return P._asyncRethrow($async$result, $async$completer);
  38103. while (true)
  38104. switch ($async$goto) {
  38105. case 0:
  38106. // Function start
  38107. if (J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin")) {
  38108. t1 = $.$get$context();
  38109. t2 = F._realCasePath(D.absolute(t1.normalize$1(path)));
  38110. t0 = t2;
  38111. t2 = t1;
  38112. t1 = t0;
  38113. } else {
  38114. t1 = $.$get$context();
  38115. t2 = t1.canonicalize$1(path);
  38116. t0 = t2;
  38117. t2 = t1;
  38118. t1 = t0;
  38119. }
  38120. url = t2.toUri$1(t1);
  38121. t1 = $async$self._graph;
  38122. t2 = t1._nodes;
  38123. if (t2.containsKey$1(url)) {
  38124. destination = $async$self._destinationFor$1(path);
  38125. if (destination != null)
  38126. $async$self._delete$1(destination);
  38127. }
  38128. t3 = D.absolute(".");
  38129. node = t2.remove$1(0, url);
  38130. t2 = node != null;
  38131. if (t2) {
  38132. t1._transitiveModificationTimes.clear$0(0);
  38133. t1.importCache.clearImport$1(url);
  38134. node._stylesheet_graph$_remove$0();
  38135. }
  38136. toRecompile = t1._recanonicalizeImports$2(new F.FilesystemImporter(t3), url);
  38137. if (t2)
  38138. toRecompile.addAll$1(0, node._downstream);
  38139. $async$goto = 3;
  38140. return P._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
  38141. case 3:
  38142. // returning from await.
  38143. $async$returnValue = $async$result;
  38144. // goto return
  38145. $async$goto = 1;
  38146. break;
  38147. case 1:
  38148. // return
  38149. return P._asyncReturn($async$returnValue, $async$completer);
  38150. }
  38151. });
  38152. return P._asyncStartSync($async$_handleRemove$1, $async$completer);
  38153. },
  38154. _debounceEvents$1: function(events) {
  38155. var t1 = type$.legacy_WatchEvent;
  38156. t1 = R._debounceAggregate(P.Duration$(25), H.instantiate1(R.rate_limit___collectToList$closure(), t1), false, true, t1, type$.legacy_List_legacy_WatchEvent).bind$1(events);
  38157. return new P._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, H._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent*>"));
  38158. },
  38159. _recompileDownstream$1: function(nodes) {
  38160. return this._recompileDownstream$body$_Watcher(nodes);
  38161. },
  38162. _recompileDownstream$body$_Watcher: function(nodes) {
  38163. var $async$goto = 0,
  38164. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  38165. $async$returnValue, $async$self = this, t2, allSucceeded, node, success, t1, seen, toRecompile;
  38166. var $async$_recompileDownstream$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  38167. if ($async$errorCode === 1)
  38168. return P._asyncRethrow($async$result, $async$completer);
  38169. while (true)
  38170. switch ($async$goto) {
  38171. case 0:
  38172. // Function start
  38173. t1 = type$.legacy_StylesheetNode;
  38174. seen = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  38175. toRecompile = P.ListQueue_ListQueue$of(nodes, t1);
  38176. t1 = type$.UnmodifiableSetView_legacy_StylesheetNode, t2 = $async$self._watch$_options._options, allSucceeded = true;
  38177. case 3:
  38178. // for condition
  38179. if (!!toRecompile.get$isEmpty(toRecompile)) {
  38180. // goto after for
  38181. $async$goto = 4;
  38182. break;
  38183. }
  38184. node = toRecompile.removeFirst$0();
  38185. if (!seen.add$1(0, node)) {
  38186. // goto for condition
  38187. $async$goto = 3;
  38188. break;
  38189. }
  38190. $async$goto = 5;
  38191. return P._asyncAwait($async$self._compileIfEntrypoint$1(node.canonicalUrl), $async$_recompileDownstream$1);
  38192. case 5:
  38193. // returning from await.
  38194. success = $async$result;
  38195. allSucceeded = allSucceeded && success;
  38196. if (!success && H._asBoolS(t2.$index(0, "stop-on-error"))) {
  38197. $async$returnValue = false;
  38198. // goto return
  38199. $async$goto = 1;
  38200. break;
  38201. }
  38202. toRecompile.addAll$1(0, new L.UnmodifiableSetView(node._downstream, t1));
  38203. // goto for condition
  38204. $async$goto = 3;
  38205. break;
  38206. case 4:
  38207. // after for
  38208. $async$returnValue = allSucceeded;
  38209. // goto return
  38210. $async$goto = 1;
  38211. break;
  38212. case 1:
  38213. // return
  38214. return P._asyncReturn($async$returnValue, $async$completer);
  38215. }
  38216. });
  38217. return P._asyncStartSync($async$_recompileDownstream$1, $async$completer);
  38218. },
  38219. _compileIfEntrypoint$1: function(url) {
  38220. return this._compileIfEntrypoint$body$_Watcher(url);
  38221. },
  38222. _compileIfEntrypoint$body$_Watcher: function(url) {
  38223. var $async$goto = 0,
  38224. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_bool),
  38225. $async$returnValue, $async$self = this, source, destination;
  38226. var $async$_compileIfEntrypoint$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  38227. if ($async$errorCode === 1)
  38228. return P._asyncRethrow($async$result, $async$completer);
  38229. while (true)
  38230. switch ($async$goto) {
  38231. case 0:
  38232. // Function start
  38233. if (url.get$scheme() !== "file") {
  38234. $async$returnValue = true;
  38235. // goto return
  38236. $async$goto = 1;
  38237. break;
  38238. }
  38239. source = $.$get$context().style.pathFromUri$1(M._parseUri(url));
  38240. destination = $async$self._destinationFor$1(source);
  38241. if (destination == null) {
  38242. $async$returnValue = true;
  38243. // goto return
  38244. $async$goto = 1;
  38245. break;
  38246. }
  38247. $async$goto = 3;
  38248. return P._asyncAwait($async$self.compile$2(source, destination), $async$_compileIfEntrypoint$1);
  38249. case 3:
  38250. // returning from await.
  38251. $async$returnValue = $async$result;
  38252. // goto return
  38253. $async$goto = 1;
  38254. break;
  38255. case 1:
  38256. // return
  38257. return P._asyncReturn($async$returnValue, $async$completer);
  38258. }
  38259. });
  38260. return P._asyncStartSync($async$_compileIfEntrypoint$1, $async$completer);
  38261. },
  38262. _destinationFor$1: function(source) {
  38263. var destination, t2, t3, t4, _null = null,
  38264. t1 = this._watch$_options;
  38265. t1._ensureSources$0();
  38266. destination = t1._sourcesToDestinations.$index(0, source);
  38267. if (destination != null)
  38268. return destination;
  38269. t2 = $.$get$context();
  38270. if (J.startsWith$1$s(X.ParsedPath_ParsedPath$parse(source, t2.style).get$basename(), "_"))
  38271. return _null;
  38272. for (t1._ensureSources$0(), t3 = t1._sourceDirectoriesToDestinations, t3 = J.get$iterator$ax(t3.get$keys(t3)); t3.moveNext$0();) {
  38273. t4 = t3.get$current(t3);
  38274. if (t2._isWithinOrEquals$2(t4, source) !== C._PathRelation_within)
  38275. continue;
  38276. t1._ensureSources$0();
  38277. destination = t2.join$8(0, t1._sourceDirectoriesToDestinations.$index(0, t4), t2.withoutExtension$1(t2.relative$2$from(source, t4)) + ".css", _null, _null, _null, _null, _null, _null);
  38278. if (t2._isWithinOrEquals$2(destination, source) !== C._PathRelation_equal)
  38279. return destination;
  38280. }
  38281. return _null;
  38282. }
  38283. };
  38284. A._Watcher__debounceEvents_closure.prototype = {
  38285. call$1: function(buffer) {
  38286. var t2, t3, t4, oldType,
  38287. t1 = K.PathMap__create(null, type$.legacy_ChangeType);
  38288. for (t2 = J.get$iterator$ax(buffer); t2.moveNext$0();) {
  38289. t3 = t2.get$current(t2);
  38290. t4 = t3.path;
  38291. oldType = t1.$index(0, t4);
  38292. if (oldType == null)
  38293. t1.$indexSet(0, t4, t3.type);
  38294. else if (t3.type === C.ChangeType_remove)
  38295. t1.$indexSet(0, t4, C.ChangeType_remove);
  38296. else if (oldType !== C.ChangeType_add)
  38297. t1.$indexSet(0, t4, C.ChangeType_modify);
  38298. }
  38299. return t1.get$keys(t1).map$1$1(0, new A._Watcher__debounceEvents__closure(new K.PathMap(t1, type$.PathMap_legacy_ChangeType)), type$.legacy_WatchEvent);
  38300. },
  38301. $signature: 354
  38302. };
  38303. A._Watcher__debounceEvents__closure.prototype = {
  38304. call$1: function(path) {
  38305. return new E.WatchEvent(this.typeForPath._collection$_map.$index(0, path), path);
  38306. },
  38307. $signature: 350
  38308. };
  38309. T.EmptyExtender.prototype = {
  38310. get$isEmpty: function(_) {
  38311. return true;
  38312. },
  38313. get$simpleSelectors: function() {
  38314. return C.C_EmptyUnmodifiableSet;
  38315. },
  38316. extensionsWhereTarget$1: function(callback) {
  38317. return C.List_empty2;
  38318. },
  38319. addExtensions$1: function(extenders) {
  38320. throw H.wrapException(P.UnsupportedError$(string$.addExt));
  38321. },
  38322. clone$0: function() {
  38323. return C.Tuple2_EmptyExtender_Map_empty;
  38324. },
  38325. $isExtender: 1
  38326. };
  38327. F.Extender.prototype = {
  38328. get$isEmpty: function(_) {
  38329. var t1 = this._extensions;
  38330. return t1.get$isEmpty(t1);
  38331. },
  38332. get$simpleSelectors: function() {
  38333. return new M.MapKeySet(this._selectors, type$.MapKeySet_legacy_SimpleSelector);
  38334. },
  38335. extensionsWhereTarget$1: function($async$callback) {
  38336. var $async$self = this;
  38337. return P._makeSyncStarIterable(function() {
  38338. var callback = $async$callback;
  38339. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  38340. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  38341. if ($async$errorCode === 1) {
  38342. $async$currentError = $async$result;
  38343. $async$goto = $async$handler;
  38344. }
  38345. while (true)
  38346. switch ($async$goto) {
  38347. case 0:
  38348. // Function start
  38349. t1 = $async$self._extensions, t2 = t1.get$keys(t1), t2 = t2.get$iterator(t2);
  38350. case 2:
  38351. // for condition
  38352. if (!t2.moveNext$0()) {
  38353. // goto after for
  38354. $async$goto = 3;
  38355. break;
  38356. }
  38357. t3 = t2.get$current(t2);
  38358. if (!callback.call$1(t3)) {
  38359. // goto for condition
  38360. $async$goto = 2;
  38361. break;
  38362. }
  38363. t3 = J.get$values$z(t1.$index(0, t3)), t3 = t3.get$iterator(t3);
  38364. case 4:
  38365. // for condition
  38366. if (!t3.moveNext$0()) {
  38367. // goto after for
  38368. $async$goto = 5;
  38369. break;
  38370. }
  38371. t4 = t3.get$current(t3);
  38372. $async$goto = t4 instanceof A.MergedExtension ? 6 : 8;
  38373. break;
  38374. case 6:
  38375. // then
  38376. t4 = t4.unmerge$0();
  38377. $async$goto = 9;
  38378. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  38379. case 9:
  38380. // after yield
  38381. // goto join
  38382. $async$goto = 7;
  38383. break;
  38384. case 8:
  38385. // else
  38386. $async$goto = !t4.isOptional ? 10 : 11;
  38387. break;
  38388. case 10:
  38389. // then
  38390. $async$goto = 12;
  38391. return t4;
  38392. case 12:
  38393. // after yield
  38394. case 11:
  38395. // join
  38396. case 7:
  38397. // join
  38398. // goto for condition
  38399. $async$goto = 4;
  38400. break;
  38401. case 5:
  38402. // after for
  38403. // goto for condition
  38404. $async$goto = 2;
  38405. break;
  38406. case 3:
  38407. // after for
  38408. // implicit return
  38409. return P._IterationMarker_endOfIteration();
  38410. case 1:
  38411. // rethrow
  38412. return P._IterationMarker_uncaughtError($async$currentError);
  38413. }
  38414. };
  38415. }, type$.legacy_Extension);
  38416. },
  38417. addSelector$3: function(selector, span, mediaContext) {
  38418. var originalSelector, error, t1, t2, t3, _i, exception, modifiableSelector, _this = this;
  38419. selector = selector;
  38420. originalSelector = selector;
  38421. if (!originalSelector.get$isInvisible())
  38422. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._originals, _i = 0; _i < t2; ++_i)
  38423. t3.add$1(0, t1[_i]);
  38424. t1 = _this._extensions;
  38425. if (t1.get$isNotEmpty(t1))
  38426. try {
  38427. selector = _this._extendList$3(originalSelector, t1, mediaContext);
  38428. } catch (exception) {
  38429. t1 = H.unwrapException(exception);
  38430. if (t1 instanceof E.SassException) {
  38431. error = t1;
  38432. throw H.wrapException(E.SassException$("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  38433. } else
  38434. throw exception;
  38435. }
  38436. modifiableSelector = new F.ModifiableCssValue(selector, span, type$.ModifiableCssValue_legacy_SelectorList);
  38437. if (mediaContext != null)
  38438. _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  38439. _this._registerSelector$2(selector, modifiableSelector);
  38440. return modifiableSelector;
  38441. },
  38442. _registerSelector$2: function(list, selector) {
  38443. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  38444. for (t1 = list.components, t2 = t1.length, t3 = this._selectors, _i = 0; _i < t2; ++_i)
  38445. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  38446. component = t4[_i0];
  38447. if (component instanceof X.CompoundSelector)
  38448. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  38449. simple = t6[_i1];
  38450. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure()), selector);
  38451. if (simple instanceof D.PseudoSelector && simple.selector != null)
  38452. this._registerSelector$2(simple.selector, selector);
  38453. }
  38454. }
  38455. },
  38456. addExtension$4: function(extender, target, extend, mediaContext) {
  38457. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  38458. selectors = _this._selectors.$index(0, target),
  38459. t1 = _this._extensionsByExtender,
  38460. existingExtensions = t1.$index(0, target),
  38461. sources = _this._extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure());
  38462. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.legacy_ComplexSelector, t11 = type$.legacy_Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
  38463. complex = t2[_i];
  38464. if (complex._maxSpecificity == null)
  38465. complex._computeSpecificity$0();
  38466. t12 = complex._maxSpecificity;
  38467. state = new S.Extension(complex, target, t12, t8, false, mediaContext, t6, t7);
  38468. existingState = sources.$index(0, complex);
  38469. if (existingState != null) {
  38470. sources.$indexSet(0, complex, A.MergedExtension_merge(existingState, state));
  38471. continue;
  38472. }
  38473. sources.$indexSet(0, complex, state);
  38474. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  38475. component = t12[_i0];
  38476. if (component instanceof X.CompoundSelector)
  38477. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  38478. simple = t14[_i1];
  38479. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure0()), state);
  38480. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure1(complex));
  38481. }
  38482. }
  38483. if (!t4 || t9) {
  38484. if (newExtensions == null)
  38485. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  38486. newExtensions.$indexSet(0, complex, state);
  38487. }
  38488. }
  38489. if (newExtensions == null)
  38490. return;
  38491. t1 = type$.legacy_SimpleSelector;
  38492. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension);
  38493. if (t9) {
  38494. additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  38495. if (additionalExtensions != null)
  38496. B.mapAddAll2(newExtensionsByTarget, additionalExtensions, t1, t10, t11);
  38497. }
  38498. if (!t4)
  38499. _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
  38500. },
  38501. _extendExistingExtensions$2: function(extensions, newExtensions) {
  38502. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  38503. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.legacy_SimpleSelector, t5 = type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  38504. extension = t1[_i];
  38505. sources = t6.$index(0, extension.target);
  38506. selectors = null;
  38507. try {
  38508. selectors = this._extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  38509. if (selectors == null)
  38510. continue;
  38511. } catch (exception) {
  38512. t1 = H.unwrapException(exception);
  38513. if (t1 instanceof E.SassException) {
  38514. error = t1;
  38515. throw H.wrapException(E.SassException$("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  38516. } else
  38517. throw exception;
  38518. }
  38519. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  38520. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  38521. complex = t7[_i0];
  38522. if (containsExtension && first) {
  38523. first = false;
  38524. continue;
  38525. }
  38526. t9 = extension;
  38527. t10 = t9.target;
  38528. t11 = t9.extenderSpan;
  38529. t12 = t9.span;
  38530. t13 = t9.mediaContext;
  38531. t14 = t9.specificity;
  38532. t9 = t9.isOptional;
  38533. if (t14 == null) {
  38534. if (complex._maxSpecificity == null)
  38535. complex._computeSpecificity$0();
  38536. t14 = complex._maxSpecificity;
  38537. }
  38538. withExtender = new S.Extension(complex, t10, t14, t9, false, t13, t11, t12);
  38539. existingExtension = sources.$index(0, complex);
  38540. if (existingExtension != null)
  38541. sources.$indexSet(0, complex, A.MergedExtension_merge(existingExtension, withExtender));
  38542. else {
  38543. sources.$indexSet(0, complex, withExtender);
  38544. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  38545. component = t9[_i1];
  38546. if (component instanceof X.CompoundSelector)
  38547. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  38548. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure()), withExtender);
  38549. }
  38550. if (newExtensions.containsKey$1(extension.target)) {
  38551. if (additionalExtensions == null)
  38552. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  38553. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure0()).$indexSet(0, complex, withExtender);
  38554. }
  38555. }
  38556. }
  38557. if (!containsExtension)
  38558. sources.remove$1(0, extension.extender);
  38559. }
  38560. return additionalExtensions;
  38561. },
  38562. _extendExistingSelectors$2: function(selectors, newExtensions) {
  38563. var selector, error, t1, t2, oldValue, exception;
  38564. for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
  38565. selector = t1.get$current(t1);
  38566. oldValue = selector.value;
  38567. try {
  38568. selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  38569. } catch (exception) {
  38570. t1 = H.unwrapException(exception);
  38571. if (t1 instanceof E.SassException) {
  38572. error = t1;
  38573. throw H.wrapException(E.SassException$("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  38574. } else
  38575. throw exception;
  38576. }
  38577. if (oldValue == selector.value)
  38578. continue;
  38579. this._registerSelector$2(selector.value, selector);
  38580. }
  38581. },
  38582. addExtensions$1: function(extenders) {
  38583. var t1, t2, t3, _this = this, _box_0 = {};
  38584. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  38585. for (t1 = J.get$iterator$ax(extenders), t2 = _this._sourceSpecificity; t1.moveNext$0();) {
  38586. t3 = t1.get$current(t1);
  38587. if (t3.get$isEmpty(t3))
  38588. continue;
  38589. t2.addAll$1(0, t3.get$_sourceSpecificity());
  38590. t3.get$_extensions().forEach$1(0, new F.Extender_addExtensions_closure(_box_0, _this, t3));
  38591. }
  38592. t1 = _box_0.newExtensions;
  38593. if (t1 == null)
  38594. return;
  38595. t2 = _box_0.extensionsToExtend;
  38596. if (t2 != null)
  38597. _this._extendExistingExtensions$2(t2, t1);
  38598. t1 = _box_0.selectorsToExtend;
  38599. if (t1 != null)
  38600. _this._extendExistingSelectors$2(t1, _box_0.newExtensions);
  38601. },
  38602. _extendList$3: function(list, extensions, mediaQueryContext) {
  38603. var t1, t2, t3, extended, i, complex, result, t4;
  38604. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
  38605. complex = t1[i];
  38606. result = this._extendComplex$3(complex, extensions, mediaQueryContext);
  38607. if (result == null) {
  38608. if (extended != null)
  38609. extended.push(complex);
  38610. } else {
  38611. if (extended == null)
  38612. if (i === 0)
  38613. extended = H.setRuntimeTypeInfo([], t3);
  38614. else {
  38615. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  38616. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  38617. }
  38618. C.JSArray_methods.addAll$1(extended, result);
  38619. }
  38620. }
  38621. if (extended == null)
  38622. return list;
  38623. t1 = this._originals;
  38624. return D.SelectorList$(J.where$1$ax(this._trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure()));
  38625. },
  38626. _extendComplex$3: function(complex, extensions, mediaQueryContext) {
  38627. var t1, t2, t3, t4, t5, t6, t7, t8, t9, extendedNotExpanded, i, component, extended, result, t10,
  38628. _s28_ = "components may not be empty.",
  38629. _box_0 = {},
  38630. isOriginal = this._originals.contains$1(0, complex);
  38631. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector, t4 = type$.JSArray_legacy_ComplexSelectorComponent, t5 = type$.legacy_ComplexSelectorComponent, t6 = H._arrayInstanceType(t1), t7 = t6._precomputed1, t6 = t6._eval$1("SubListIterable<1>"), t8 = t6._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector*>*>"), t9 = t8._eval$1("ListIterable.E"), extendedNotExpanded = null, i = 0; i < t2; ++i) {
  38632. component = t1[i];
  38633. if (component instanceof X.CompoundSelector) {
  38634. extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  38635. if (extended == null) {
  38636. if (extendedNotExpanded != null) {
  38637. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  38638. result.fixed$length = Array;
  38639. result.immutable$list = Array;
  38640. t10 = result;
  38641. if (t10.length === 0)
  38642. H.throwExpression(P.ArgumentError$(_s28_));
  38643. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t10, false)], t3));
  38644. }
  38645. } else {
  38646. if (extendedNotExpanded == null) {
  38647. t10 = new H.SubListIterable(t1, 0, i, t6);
  38648. t10.SubListIterable$3(t1, 0, i, t7);
  38649. extendedNotExpanded = P.List_List$from(new H.MappedListIterable(t10, new F.Extender__extendComplex_closure(complex), t8), true, t9);
  38650. }
  38651. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  38652. }
  38653. } else if (extendedNotExpanded != null) {
  38654. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  38655. result.fixed$length = Array;
  38656. result.immutable$list = Array;
  38657. t10 = result;
  38658. if (t10.length === 0)
  38659. H.throwExpression(P.ArgumentError$(_s28_));
  38660. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector(t10, false)], t3));
  38661. }
  38662. }
  38663. if (extendedNotExpanded == null)
  38664. return null;
  38665. _box_0.first = true;
  38666. t1 = type$.legacy_ComplexSelector;
  38667. t1 = J.expand$1$1$ax(Y.paths(extendedNotExpanded, t1), new F.Extender__extendComplex_closure0(_box_0, this, complex), t1);
  38668. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  38669. },
  38670. _extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  38671. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, unifiedPaths, isOriginal, _this = this, _null = null,
  38672. _s28_ = "components may not be empty.",
  38673. _box_1 = {},
  38674. t1 = _this._mode,
  38675. targetsUsed = t1 === C.ExtendMode_normal || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_SimpleSelector);
  38676. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_legacy_List_legacy_Extension, t5 = type$.JSArray_legacy_Extension, t6 = type$.JSArray_legacy_ComplexSelectorComponent, t7 = type$.legacy_ComplexSelectorComponent, t8 = H._arrayInstanceType(t2), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = type$.legacy_SimpleSelector, t11 = _this._sourceSpecificity, t12 = type$.JSArray_legacy_SimpleSelector, options = _null, i = 0; i < t3; ++i) {
  38677. simple = t2[i];
  38678. extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  38679. if (extended == null) {
  38680. if (options != null) {
  38681. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t12), false, t10);
  38682. result.fixed$length = Array;
  38683. result.immutable$list = Array;
  38684. t13 = result;
  38685. if (t13.length === 0)
  38686. H.throwExpression(P.ArgumentError$(_s28_));
  38687. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector(t13)], t6), false, t7);
  38688. result.fixed$length = Array;
  38689. result.immutable$list = Array;
  38690. t13 = result;
  38691. if (t13.length === 0)
  38692. H.throwExpression(P.ArgumentError$(_s28_));
  38693. t14 = t11.$index(0, simple);
  38694. if (t14 == null)
  38695. t14 = 0;
  38696. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t13, false), _null, t14, true, true, _null, _null, _null)], t5));
  38697. }
  38698. } else {
  38699. if (options == null) {
  38700. options = H.setRuntimeTypeInfo([], t4);
  38701. if (i !== 0) {
  38702. t13 = new H.SubListIterable(t2, 0, i, t8);
  38703. t13.SubListIterable$3(t2, 0, i, t9);
  38704. result = P.List_List$from(t13, false, t10);
  38705. result.fixed$length = Array;
  38706. result.immutable$list = Array;
  38707. t13 = result;
  38708. compound = new X.CompoundSelector(t13);
  38709. if (t13.length === 0)
  38710. H.throwExpression(P.ArgumentError$(_s28_));
  38711. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  38712. result.fixed$length = Array;
  38713. result.immutable$list = Array;
  38714. t13 = result;
  38715. if (t13.length === 0)
  38716. H.throwExpression(P.ArgumentError$(_s28_));
  38717. t14 = _this._sourceSpecificityFor$1(compound);
  38718. options.push(H.setRuntimeTypeInfo([new S.Extension(new S.ComplexSelector(t13, false), _null, t14, true, true, _null, _null, _null)], t5));
  38719. }
  38720. }
  38721. C.JSArray_methods.addAll$1(options, extended);
  38722. }
  38723. }
  38724. if (options == null)
  38725. return _null;
  38726. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  38727. return _null;
  38728. if (options.length === 1)
  38729. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure(mediaQueryContext), type$.legacy_ComplexSelector).toList$0(0);
  38730. t1 = _box_1.first = t1 !== C.ExtendMode_replace;
  38731. unifiedPaths = J.map$1$1$ax(Y.paths(options, type$.legacy_Extension), new F.Extender__extendCompound_closure0(_box_1, mediaQueryContext), type$.legacy_List_legacy_ComplexSelector);
  38732. isOriginal = new F.Extender__extendCompound_closure1();
  38733. if (inOriginal && t1)
  38734. isOriginal = new F.Extender__extendCompound_closure2(J.get$first$ax(unifiedPaths.get$first(unifiedPaths)));
  38735. t1 = unifiedPaths.where$1(0, new F.Extender__extendCompound_closure3());
  38736. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector*>");
  38737. return _this._trim$2(P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure4(), t2), true, t2._eval$1("Iterable.E")), isOriginal);
  38738. },
  38739. _extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  38740. var extended, result,
  38741. t1 = new F.Extender__extendSimple_withoutPseudo(this, extensions, targetsUsed);
  38742. if (simple instanceof D.PseudoSelector && simple.selector != null) {
  38743. extended = this._extendPseudo$3(simple, extensions, mediaQueryContext);
  38744. if (extended != null)
  38745. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension*>*>"));
  38746. }
  38747. result = t1.call$1(simple);
  38748. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_legacy_List_legacy_Extension);
  38749. },
  38750. _extensionForSimple$1: function(simple) {
  38751. var t1 = S.ComplexSelector$(H.setRuntimeTypeInfo([X.CompoundSelector$(H.setRuntimeTypeInfo([simple], type$.JSArray_legacy_SimpleSelector))], type$.JSArray_legacy_ComplexSelectorComponent), false),
  38752. t2 = this._sourceSpecificity.$index(0, simple);
  38753. return S.Extension$oneOff(t1, true, t2 == null ? 0 : t2);
  38754. },
  38755. _extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  38756. var complexes, t2, result,
  38757. t1 = pseudo.selector,
  38758. extended = this._extendList$3(t1, extensions, mediaQueryContext);
  38759. if (extended == t1)
  38760. return null;
  38761. complexes = extended.components;
  38762. t2 = pseudo.normalizedName === "not";
  38763. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure0()))
  38764. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure1(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  38765. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure2(pseudo), type$.legacy_ComplexSelector);
  38766. if (t2 && t1.components.length === 1) {
  38767. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure3(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.legacy_PseudoSelector);
  38768. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  38769. return result.length === 0 ? null : result;
  38770. } else
  38771. return H.setRuntimeTypeInfo([D.PseudoSelector$(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$(complexes))], type$.JSArray_legacy_PseudoSelector);
  38772. },
  38773. _trim$2: function(selectors, isOriginal) {
  38774. var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, component;
  38775. if (selectors.length > 100)
  38776. return selectors;
  38777. result = Q.QueueList$(null, type$.legacy_ComplexSelector);
  38778. $label0$0:
  38779. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  38780. _box_0 = {};
  38781. complex1 = selectors[i];
  38782. if (isOriginal.call$1(complex1)) {
  38783. for (j = 0; j < numOriginals; ++j)
  38784. if (J.$eq$(result.$index(0, j), complex1)) {
  38785. B.rotateSlice(result, 0, j + 1);
  38786. continue $label0$0;
  38787. }
  38788. ++numOriginals;
  38789. result.addFirst$1(complex1);
  38790. continue $label0$0;
  38791. }
  38792. _box_0.maxSpecificity = 0;
  38793. for (t3 = complex1.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  38794. component = t3[_i];
  38795. if (component instanceof X.CompoundSelector)
  38796. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._sourceSpecificityFor$1(component));
  38797. }
  38798. if (result.any$1(result, new F.Extender__trim_closure(_box_0, complex1)))
  38799. continue $label0$0;
  38800. t3 = new H.SubListIterable(selectors, 0, i, t1);
  38801. t3.SubListIterable$3(selectors, 0, i, t2);
  38802. if (t3.any$1(0, new F.Extender__trim_closure0(_box_0, complex1)))
  38803. continue $label0$0;
  38804. result.addFirst$1(complex1);
  38805. }
  38806. return result;
  38807. },
  38808. _sourceSpecificityFor$1: function(compound) {
  38809. var t1, t2, t3, specificity, _i, t4;
  38810. for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  38811. t4 = t3.$index(0, t1[_i]);
  38812. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  38813. }
  38814. return specificity;
  38815. },
  38816. clone$0: function() {
  38817. var t3, t4, _this = this,
  38818. t1 = type$.legacy_SimpleSelector,
  38819. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList),
  38820. t2 = type$.legacy_ModifiableCssValue_legacy_SelectorList,
  38821. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_List_legacy_CssMediaQuery),
  38822. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_CssValue_legacy_SelectorList, t2);
  38823. _this._selectors.forEach$1(0, new F.Extender_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  38824. t2 = type$.legacy_Extension;
  38825. t3 = B.copyMapOfMap(_this._extensions, t1, type$.legacy_ComplexSelector, t2);
  38826. t2 = B.copyMapOfList(_this._extensionsByExtender, t1, t2);
  38827. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int);
  38828. t1.addAll$1(0, _this._sourceSpecificity);
  38829. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector);
  38830. t4.addAll$1(0, _this._originals);
  38831. return new S.Tuple2(new F.Extender(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal), oldToNewSelectors, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList);
  38832. },
  38833. get$_extensions: function() {
  38834. return this._extensions;
  38835. },
  38836. get$_sourceSpecificity: function() {
  38837. return this._sourceSpecificity;
  38838. }
  38839. };
  38840. F.Extender_extensionsWhereTarget_closure.prototype = {
  38841. call$1: function(extension) {
  38842. return !extension.isOptional;
  38843. },
  38844. $signature: 346
  38845. };
  38846. F.Extender__registerSelector_closure.prototype = {
  38847. call$0: function() {
  38848. return P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList);
  38849. },
  38850. $signature: 345
  38851. };
  38852. F.Extender_addExtension_closure.prototype = {
  38853. call$0: function() {
  38854. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  38855. },
  38856. $signature: 85
  38857. };
  38858. F.Extender_addExtension_closure0.prototype = {
  38859. call$0: function() {
  38860. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  38861. },
  38862. $signature: 164
  38863. };
  38864. F.Extender_addExtension_closure1.prototype = {
  38865. call$0: function() {
  38866. return this.complex.get$maxSpecificity();
  38867. },
  38868. $signature: 11
  38869. };
  38870. F.Extender__extendExistingExtensions_closure.prototype = {
  38871. call$0: function() {
  38872. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  38873. },
  38874. $signature: 164
  38875. };
  38876. F.Extender__extendExistingExtensions_closure0.prototype = {
  38877. call$0: function() {
  38878. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  38879. },
  38880. $signature: 85
  38881. };
  38882. F.Extender_addExtensions_closure.prototype = {
  38883. call$2: function(target, newSources) {
  38884. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  38885. if (target instanceof N.PlaceholderSelector && T.isPrivate(target.name))
  38886. return;
  38887. t1 = _this.$this;
  38888. extensionsForTarget = t1._extensionsByExtender.$index(0, target);
  38889. t2 = extensionsForTarget == null;
  38890. if (!t2) {
  38891. t3 = _this._box_0;
  38892. t4 = t3.extensionsToExtend;
  38893. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension) : t4, extensionsForTarget);
  38894. }
  38895. selectorsForTarget = t1._selectors.$index(0, target);
  38896. t3 = selectorsForTarget != null;
  38897. if (t3) {
  38898. t4 = _this._box_0;
  38899. t5 = t4.selectorsToExtend;
  38900. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList) : t5).addAll$1(0, selectorsForTarget);
  38901. }
  38902. t1 = t1._extensions;
  38903. existingSources = t1.$index(0, target);
  38904. if (existingSources == null) {
  38905. t4 = _this.extender;
  38906. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  38907. if (!t2 || t3) {
  38908. t1 = _this._box_0;
  38909. t2 = t1.newExtensions;
  38910. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension) : t2;
  38911. t1.$indexSet(0, target, t4.get$_extensions().$index(0, target));
  38912. }
  38913. } else
  38914. newSources.forEach$1(0, new F.Extender_addExtensions__closure(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  38915. },
  38916. $signature: 341
  38917. };
  38918. F.Extender_addExtensions__closure.prototype = {
  38919. call$2: function(extender, extension) {
  38920. var t2, _this = this,
  38921. t1 = _this.existingSources;
  38922. if (t1.containsKey$1(extender))
  38923. return;
  38924. t1.$indexSet(0, extender, extension);
  38925. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  38926. t1 = _this._box_0;
  38927. t2 = t1.newExtensions;
  38928. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension) : t2;
  38929. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure0(extension));
  38930. }
  38931. },
  38932. $signature: 340
  38933. };
  38934. F.Extender_addExtensions___closure.prototype = {
  38935. call$0: function() {
  38936. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector, type$.legacy_Extension);
  38937. },
  38938. $signature: 85
  38939. };
  38940. F.Extender_addExtensions___closure0.prototype = {
  38941. call$0: function() {
  38942. return this.extension;
  38943. },
  38944. $signature: 339
  38945. };
  38946. F.Extender__extendList_closure.prototype = {
  38947. call$1: function(complex) {
  38948. return complex != null;
  38949. },
  38950. $signature: 14
  38951. };
  38952. F.Extender__extendComplex_closure.prototype = {
  38953. call$1: function(component) {
  38954. return H.setRuntimeTypeInfo([S.ComplexSelector$(H.setRuntimeTypeInfo([component], type$.JSArray_legacy_ComplexSelectorComponent), this.complex.lineBreak)], type$.JSArray_legacy_ComplexSelector);
  38955. },
  38956. $signature: 338
  38957. };
  38958. F.Extender__extendComplex_closure0.prototype = {
  38959. call$1: function(path) {
  38960. var t1 = Y.weave(J.map$1$1$ax(path, new F.Extender__extendComplex__closure(), type$.legacy_List_legacy_ComplexSelectorComponent).toList$0(0));
  38961. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure0(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"));
  38962. },
  38963. $signature: 336
  38964. };
  38965. F.Extender__extendComplex__closure.prototype = {
  38966. call$1: function(complex) {
  38967. return complex.components;
  38968. },
  38969. $signature: 335
  38970. };
  38971. F.Extender__extendComplex__closure0.prototype = {
  38972. call$1: function(components) {
  38973. var _this = this,
  38974. t1 = _this.complex,
  38975. outputComplex = S.ComplexSelector$(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure())),
  38976. t2 = _this._box_0;
  38977. if (t2.first && _this.$this._originals.contains$1(0, t1))
  38978. _this.$this._originals.add$1(0, outputComplex);
  38979. t2.first = false;
  38980. return outputComplex;
  38981. },
  38982. $signature: 62
  38983. };
  38984. F.Extender__extendComplex___closure.prototype = {
  38985. call$1: function(inputComplex) {
  38986. return inputComplex.lineBreak;
  38987. },
  38988. $signature: 14
  38989. };
  38990. F.Extender__extendCompound_closure.prototype = {
  38991. call$1: function(state) {
  38992. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  38993. return state.extender;
  38994. },
  38995. $signature: 334
  38996. };
  38997. F.Extender__extendCompound_closure0.prototype = {
  38998. call$1: function(path) {
  38999. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  39000. t1 = this._box_1;
  39001. if (t1.first) {
  39002. t1.first = false;
  39003. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure(), type$.legacy_SimpleSelector))], type$.JSArray_legacy_ComplexSelectorComponent)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent);
  39004. } else {
  39005. toUnify = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent);
  39006. for (t1 = J.get$iterator$ax(path), t2 = type$.legacy_CompoundSelector, t3 = type$.JSArray_legacy_SimpleSelector, originals = null; t1.moveNext$0();) {
  39007. t4 = t1.get$current(t1);
  39008. if (t4.isOriginal) {
  39009. if (originals == null)
  39010. originals = H.setRuntimeTypeInfo([], t3);
  39011. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  39012. } else
  39013. toUnify._queue_list$_add$1(t4.extender.components);
  39014. }
  39015. if (originals != null)
  39016. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$(originals)], type$.JSArray_legacy_ComplexSelectorComponent));
  39017. complexes = Y.unifyComplex(toUnify);
  39018. if (complexes == null)
  39019. return null;
  39020. }
  39021. _box_0.lineBreak = false;
  39022. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  39023. t3 = t1.get$current(t1);
  39024. t3.assertCompatibleMediaContext$1(t2);
  39025. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  39026. }
  39027. t1 = J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure0(_box_0), type$.legacy_ComplexSelector);
  39028. return P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  39029. },
  39030. $signature: 333
  39031. };
  39032. F.Extender__extendCompound__closure.prototype = {
  39033. call$1: function(state) {
  39034. return type$.legacy_CompoundSelector._as(C.JSArray_methods.get$last(state.extender.components)).components;
  39035. },
  39036. $signature: 330
  39037. };
  39038. F.Extender__extendCompound__closure0.prototype = {
  39039. call$1: function(components) {
  39040. return S.ComplexSelector$(components, this._box_0.lineBreak);
  39041. },
  39042. $signature: 62
  39043. };
  39044. F.Extender__extendCompound_closure1.prototype = {
  39045. call$1: function(_) {
  39046. return false;
  39047. },
  39048. $signature: 14
  39049. };
  39050. F.Extender__extendCompound_closure2.prototype = {
  39051. call$1: function(complex) {
  39052. return J.$eq$(complex, this.original);
  39053. },
  39054. $signature: 14
  39055. };
  39056. F.Extender__extendCompound_closure3.prototype = {
  39057. call$1: function(complexes) {
  39058. return complexes != null;
  39059. },
  39060. $signature: 329
  39061. };
  39062. F.Extender__extendCompound_closure4.prototype = {
  39063. call$1: function(l) {
  39064. return l;
  39065. },
  39066. $signature: 326
  39067. };
  39068. F.Extender__extendSimple_withoutPseudo.prototype = {
  39069. call$1: function(simple) {
  39070. var t1, t2,
  39071. extenders = this.extensions.$index(0, simple);
  39072. if (extenders == null)
  39073. return null;
  39074. t1 = this.targetsUsed;
  39075. if (t1 != null)
  39076. t1.add$1(0, simple);
  39077. t1 = this.$this;
  39078. if (t1._mode === C.ExtendMode_replace) {
  39079. t1 = extenders.get$values(extenders);
  39080. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  39081. }
  39082. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension);
  39083. t2.push(t1._extensionForSimple$1(simple));
  39084. for (t1 = extenders.get$values(extenders), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  39085. t2.push(t1.get$current(t1));
  39086. return t2;
  39087. },
  39088. $signature: 324
  39089. };
  39090. F.Extender__extendSimple_closure.prototype = {
  39091. call$1: function(pseudo) {
  39092. var t1 = this.withoutPseudo.call$1(pseudo);
  39093. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extensionForSimple$1(pseudo)], type$.JSArray_legacy_Extension) : t1;
  39094. },
  39095. $signature: 322
  39096. };
  39097. F.Extender__extendPseudo_closure.prototype = {
  39098. call$1: function(complex) {
  39099. return complex.components.length > 1;
  39100. },
  39101. $signature: 14
  39102. };
  39103. F.Extender__extendPseudo_closure0.prototype = {
  39104. call$1: function(complex) {
  39105. return complex.components.length === 1;
  39106. },
  39107. $signature: 14
  39108. };
  39109. F.Extender__extendPseudo_closure1.prototype = {
  39110. call$1: function(complex) {
  39111. return complex.components.length <= 1;
  39112. },
  39113. $signature: 14
  39114. };
  39115. F.Extender__extendPseudo_closure2.prototype = {
  39116. call$1: function(complex) {
  39117. var innerPseudo, t2,
  39118. t1 = complex.components;
  39119. if (t1.length !== 1)
  39120. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39121. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector))
  39122. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39123. t1 = type$.legacy_CompoundSelector._as(C.JSArray_methods.get$first(t1)).components;
  39124. if (t1.length !== 1)
  39125. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39126. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector))
  39127. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39128. innerPseudo = type$.legacy_PseudoSelector._as(C.JSArray_methods.get$first(t1));
  39129. t1 = innerPseudo.selector;
  39130. if (t1 == null)
  39131. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39132. t2 = this.pseudo;
  39133. switch (t2.normalizedName) {
  39134. case "not":
  39135. if (innerPseudo.normalizedName !== "matches")
  39136. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  39137. return t1.components;
  39138. case "matches":
  39139. case "any":
  39140. case "current":
  39141. case "nth-child":
  39142. case "nth-last-child":
  39143. if (innerPseudo.name !== t2.name)
  39144. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  39145. if (innerPseudo.argument != t2.argument)
  39146. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  39147. return t1.components;
  39148. case "has":
  39149. case "host":
  39150. case "host-context":
  39151. case "slotted":
  39152. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector);
  39153. default:
  39154. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector);
  39155. }
  39156. },
  39157. $signature: 320
  39158. };
  39159. F.Extender__extendPseudo_closure3.prototype = {
  39160. call$1: function(complex) {
  39161. var t1 = this.pseudo;
  39162. return D.PseudoSelector$(t1.name, t1.argument, !t1.isClass, D.SelectorList$(H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector)));
  39163. },
  39164. $signature: 317
  39165. };
  39166. F.Extender__trim_closure.prototype = {
  39167. call$1: function(complex2) {
  39168. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  39169. },
  39170. $signature: 14
  39171. };
  39172. F.Extender__trim_closure0.prototype = {
  39173. call$1: function(complex2) {
  39174. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector(complex2.components, this.complex1.components);
  39175. },
  39176. $signature: 14
  39177. };
  39178. F.Extender_clone_closure.prototype = {
  39179. call$2: function(simple, selectors) {
  39180. var t1, t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  39181. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList);
  39182. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  39183. for (t1 = selectors.get$iterator(selectors), t2 = type$.ModifiableCssValue_legacy_SelectorList, t3 = _this.oldToNewSelectors, t4 = _this.$this._mediaContexts, t5 = _this.newMediaContexts; t1.moveNext$0();) {
  39184. t6 = t1.get$current(t1);
  39185. newSelector = new F.ModifiableCssValue(t6.value, t6.span, t2);
  39186. newSelectorSet.add$1(0, newSelector);
  39187. t3.$indexSet(0, t6, newSelector);
  39188. mediaContext = t4.$index(0, t6);
  39189. if (mediaContext != null)
  39190. t5.$indexSet(0, newSelector, mediaContext);
  39191. }
  39192. },
  39193. $signature: 314
  39194. };
  39195. S.Extension.prototype = {
  39196. assertCompatibleMediaContext$1: function(mediaContext) {
  39197. var t1 = this.mediaContext;
  39198. if (t1 == null)
  39199. return;
  39200. if (mediaContext != null && C.C_ListEquality.equals$2(0, t1, mediaContext))
  39201. return;
  39202. throw H.wrapException(E.SassException$(string$.You_ma, this.span));
  39203. },
  39204. toString$0: function(_) {
  39205. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  39206. return t1 + (this.isOptional ? " !optional" : "") + "}";
  39207. },
  39208. get$target: function() {
  39209. return this.target;
  39210. },
  39211. get$span: function() {
  39212. return this.span;
  39213. }
  39214. };
  39215. Y.unifyComplex_closure.prototype = {
  39216. call$1: function(complex) {
  39217. var t1 = J.getInterceptor$asx(complex);
  39218. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  39219. },
  39220. $signature: 96
  39221. };
  39222. Y._weaveParents_closure.prototype = {
  39223. call$2: function(group1, group2) {
  39224. var unified, t1, _null = null;
  39225. if (C.C_ListEquality.equals$2(0, group1, group2))
  39226. return group1;
  39227. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector) || !(J.get$first$ax(group2) instanceof X.CompoundSelector))
  39228. return _null;
  39229. if (Y.complexIsParentSuperselector(group1, group2))
  39230. return group2;
  39231. if (Y.complexIsParentSuperselector(group2, group1))
  39232. return group1;
  39233. if (!Y._mustUnify(group1, group2))
  39234. return _null;
  39235. unified = Y.unifyComplex(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent));
  39236. if (unified == null)
  39237. return _null;
  39238. t1 = J.getInterceptor$asx(unified);
  39239. if (t1.get$length(unified) > 1)
  39240. return _null;
  39241. return t1.get$first(unified);
  39242. },
  39243. $signature: 312
  39244. };
  39245. Y._weaveParents_closure0.prototype = {
  39246. call$1: function(sequence) {
  39247. return Y.complexIsParentSuperselector(sequence.get$first(sequence), this.group);
  39248. },
  39249. $signature: 311
  39250. };
  39251. Y._weaveParents_closure1.prototype = {
  39252. call$1: function(chunk) {
  39253. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure1(), type$.legacy_ComplexSelectorComponent);
  39254. },
  39255. $signature: 130
  39256. };
  39257. Y._weaveParents__closure1.prototype = {
  39258. call$1: function(group) {
  39259. return group;
  39260. },
  39261. $signature: 96
  39262. };
  39263. Y._weaveParents_closure2.prototype = {
  39264. call$1: function(sequence) {
  39265. return sequence.get$length(sequence) === 0;
  39266. },
  39267. $signature: 131
  39268. };
  39269. Y._weaveParents_closure3.prototype = {
  39270. call$1: function(chunk) {
  39271. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure0(), type$.legacy_ComplexSelectorComponent);
  39272. },
  39273. $signature: 130
  39274. };
  39275. Y._weaveParents__closure0.prototype = {
  39276. call$1: function(group) {
  39277. return group;
  39278. },
  39279. $signature: 96
  39280. };
  39281. Y._weaveParents_closure4.prototype = {
  39282. call$1: function(choice) {
  39283. return J.get$isNotEmpty$asx(choice);
  39284. },
  39285. $signature: 306
  39286. };
  39287. Y._weaveParents_closure5.prototype = {
  39288. call$1: function(path) {
  39289. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure(), type$.legacy_ComplexSelectorComponent);
  39290. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  39291. },
  39292. $signature: 305
  39293. };
  39294. Y._weaveParents__closure.prototype = {
  39295. call$1: function(group) {
  39296. return group;
  39297. },
  39298. $signature: 304
  39299. };
  39300. Y._mustUnify_closure.prototype = {
  39301. call$1: function(component) {
  39302. return component instanceof X.CompoundSelector && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure(this.uniqueSelectors));
  39303. },
  39304. $signature: 90
  39305. };
  39306. Y._mustUnify__closure.prototype = {
  39307. call$1: function(simple) {
  39308. var t1;
  39309. if (!(simple instanceof N.IDSelector))
  39310. t1 = simple instanceof D.PseudoSelector && !simple.isClass;
  39311. else
  39312. t1 = true;
  39313. return t1 && this.uniqueSelectors.contains$1(0, simple);
  39314. },
  39315. $signature: 18
  39316. };
  39317. Y.paths_closure.prototype = {
  39318. call$2: function(paths, choice) {
  39319. var t1 = this.T;
  39320. t1 = J.expand$1$1$ax(choice, new Y.paths__closure(paths, t1), t1._eval$1("List<0*>*"));
  39321. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  39322. },
  39323. $signature: function() {
  39324. return this.T._eval$1("List<List<0*>*>*(List<List<0*>*>*,List<0*>*)");
  39325. }
  39326. };
  39327. Y.paths__closure.prototype = {
  39328. call$1: function(option) {
  39329. var t1 = this.T;
  39330. return J.map$1$1$ax(this.paths, new Y.paths___closure(option, t1), t1._eval$1("List<0*>*"));
  39331. },
  39332. $signature: function() {
  39333. return this.T._eval$1("Iterable<List<0*>*>*(0*)");
  39334. }
  39335. };
  39336. Y.paths___closure.prototype = {
  39337. call$1: function(path) {
  39338. var t2,
  39339. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0*>"));
  39340. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  39341. t1.push(t2.get$current(t2));
  39342. t1.push(this.option);
  39343. return t1;
  39344. },
  39345. $signature: function() {
  39346. return this.T._eval$1("List<0*>*(List<0*>*)");
  39347. }
  39348. };
  39349. Y._hasRoot_closure.prototype = {
  39350. call$1: function(simple) {
  39351. return simple instanceof D.PseudoSelector && simple.isClass && simple.normalizedName === "root";
  39352. },
  39353. $signature: 18
  39354. };
  39355. Y.listIsSuperselector_closure.prototype = {
  39356. call$1: function(complex1) {
  39357. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperselector__closure(complex1));
  39358. },
  39359. $signature: 14
  39360. };
  39361. Y.listIsSuperselector__closure.prototype = {
  39362. call$1: function(complex2) {
  39363. return Y.complexIsSuperselector(complex2.components, this.complex1.components);
  39364. },
  39365. $signature: 14
  39366. };
  39367. Y._simpleIsSuperselectorOfCompound_closure.prototype = {
  39368. call$1: function(theirSimple) {
  39369. var t1 = this.simple;
  39370. if (J.$eq$(t1, theirSimple))
  39371. return true;
  39372. if (theirSimple instanceof D.PseudoSelector && theirSimple.selector != null && $._subselectorPseudos.contains$1(0, theirSimple.normalizedName))
  39373. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure(t1));
  39374. else
  39375. return false;
  39376. },
  39377. $signature: 18
  39378. };
  39379. Y._simpleIsSuperselectorOfCompound__closure.prototype = {
  39380. call$1: function(complex) {
  39381. var t1 = complex.components;
  39382. if (t1.length !== 1)
  39383. return false;
  39384. return C.JSArray_methods.contains$1(type$.legacy_CompoundSelector._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  39385. },
  39386. $signature: 14
  39387. };
  39388. Y._selectorPseudoIsSuperselector_closure.prototype = {
  39389. call$1: function(pseudo2) {
  39390. var t1 = pseudo2.selector;
  39391. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  39392. },
  39393. $signature: 51
  39394. };
  39395. Y._selectorPseudoIsSuperselector_closure0.prototype = {
  39396. call$1: function(complex1) {
  39397. var t1 = complex1.components,
  39398. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent),
  39399. t3 = this.parents;
  39400. if (t3 != null)
  39401. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  39402. t2.push(t3.get$current(t3));
  39403. t2.push(this.compound2);
  39404. return Y.complexIsSuperselector(t1, t2);
  39405. },
  39406. $signature: 14
  39407. };
  39408. Y._selectorPseudoIsSuperselector_closure1.prototype = {
  39409. call$1: function(pseudo2) {
  39410. var t1 = pseudo2.selector;
  39411. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  39412. },
  39413. $signature: 51
  39414. };
  39415. Y._selectorPseudoIsSuperselector_closure2.prototype = {
  39416. call$1: function(pseudo2) {
  39417. var t1 = pseudo2.selector;
  39418. return Y.listIsSuperselector(this.pseudo1.selector.components, t1.components);
  39419. },
  39420. $signature: 51
  39421. };
  39422. Y._selectorPseudoIsSuperselector_closure3.prototype = {
  39423. call$1: function(complex) {
  39424. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
  39425. },
  39426. $signature: 14
  39427. };
  39428. Y._selectorPseudoIsSuperselector__closure.prototype = {
  39429. call$1: function(simple2) {
  39430. var compound1, _this = this;
  39431. if (simple2 instanceof F.TypeSelector) {
  39432. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  39433. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure(simple2));
  39434. } else if (simple2 instanceof N.IDSelector) {
  39435. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  39436. return compound1 instanceof X.CompoundSelector && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure0(simple2));
  39437. } else if (simple2 instanceof D.PseudoSelector && simple2.name === _this.pseudo1.name && simple2.selector != null)
  39438. return Y.listIsSuperselector(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_legacy_ComplexSelector));
  39439. else
  39440. return false;
  39441. },
  39442. $signature: 18
  39443. };
  39444. Y._selectorPseudoIsSuperselector___closure.prototype = {
  39445. call$1: function(simple1) {
  39446. var t1;
  39447. if (simple1 instanceof F.TypeSelector) {
  39448. t1 = this.simple2.name.$eq(0, simple1.name);
  39449. t1 = !t1;
  39450. } else
  39451. t1 = false;
  39452. return t1;
  39453. },
  39454. $signature: 18
  39455. };
  39456. Y._selectorPseudoIsSuperselector___closure0.prototype = {
  39457. call$1: function(simple1) {
  39458. var t1;
  39459. if (simple1 instanceof N.IDSelector) {
  39460. t1 = simple1.name;
  39461. t1 = this.simple2.name !== t1;
  39462. } else
  39463. t1 = false;
  39464. return t1;
  39465. },
  39466. $signature: 18
  39467. };
  39468. Y._selectorPseudoIsSuperselector_closure4.prototype = {
  39469. call$1: function(pseudo2) {
  39470. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  39471. },
  39472. $signature: 51
  39473. };
  39474. Y._selectorPseudoIsSuperselector_closure5.prototype = {
  39475. call$1: function(pseudo2) {
  39476. var t1, t2;
  39477. if (pseudo2 instanceof D.PseudoSelector) {
  39478. t1 = this.pseudo1;
  39479. if (pseudo2.name === t1.name)
  39480. if (pseudo2.argument == t1.argument) {
  39481. t2 = pseudo2.selector;
  39482. t2 = Y.listIsSuperselector(t1.selector.components, t2.components);
  39483. t1 = t2;
  39484. } else
  39485. t1 = false;
  39486. else
  39487. t1 = false;
  39488. } else
  39489. t1 = false;
  39490. return t1;
  39491. },
  39492. $signature: 18
  39493. };
  39494. Y._selectorPseudosNamed_closure.prototype = {
  39495. call$1: function(pseudo) {
  39496. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  39497. },
  39498. $signature: 51
  39499. };
  39500. A.MergedExtension.prototype = {
  39501. unmerge$0: function() {
  39502. var $async$self = this;
  39503. return P._makeSyncStarIterable(function() {
  39504. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  39505. return function $async$unmerge$0($async$errorCode, $async$result) {
  39506. if ($async$errorCode === 1) {
  39507. $async$currentError = $async$result;
  39508. $async$goto = $async$handler;
  39509. }
  39510. while (true)
  39511. switch ($async$goto) {
  39512. case 0:
  39513. // Function start
  39514. t1 = $async$self.left;
  39515. $async$goto = t1 instanceof A.MergedExtension ? 2 : 4;
  39516. break;
  39517. case 2:
  39518. // then
  39519. $async$goto = 5;
  39520. return P._IterationMarker_yieldStar(t1.unmerge$0());
  39521. case 5:
  39522. // after yield
  39523. // goto join
  39524. $async$goto = 3;
  39525. break;
  39526. case 4:
  39527. // else
  39528. $async$goto = 6;
  39529. return t1;
  39530. case 6:
  39531. // after yield
  39532. case 3:
  39533. // join
  39534. $async$goto = 7;
  39535. return $async$self.right;
  39536. case 7:
  39537. // after yield
  39538. // implicit return
  39539. return P._IterationMarker_endOfIteration();
  39540. case 1:
  39541. // rethrow
  39542. return P._IterationMarker_uncaughtError($async$currentError);
  39543. }
  39544. };
  39545. }, type$.legacy_Extension);
  39546. }
  39547. };
  39548. L.ExtendMode.prototype = {
  39549. toString$0: function(_) {
  39550. return this.name;
  39551. }
  39552. };
  39553. Y.closure.prototype = {
  39554. call$1: function($arguments) {
  39555. var t1 = J.getInterceptor$asx($arguments);
  39556. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  39557. },
  39558. $signature: 4
  39559. };
  39560. K.closure44.prototype = {
  39561. call$1: function($arguments) {
  39562. return K._rgb("rgb", $arguments);
  39563. },
  39564. $signature: 4
  39565. };
  39566. K.closure45.prototype = {
  39567. call$1: function($arguments) {
  39568. return K._rgb("rgb", $arguments);
  39569. },
  39570. $signature: 4
  39571. };
  39572. K.closure46.prototype = {
  39573. call$1: function($arguments) {
  39574. return K._rgbTwoArg("rgb", $arguments);
  39575. },
  39576. $signature: 4
  39577. };
  39578. K.closure47.prototype = {
  39579. call$1: function($arguments) {
  39580. var parsed = K._parseChannels("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  39581. return parsed instanceof D.SassString ? parsed : K._rgb("rgb", type$.legacy_List_legacy_Value._as(parsed));
  39582. },
  39583. $signature: 4
  39584. };
  39585. K.closure48.prototype = {
  39586. call$1: function($arguments) {
  39587. return K._rgb("rgba", $arguments);
  39588. },
  39589. $signature: 4
  39590. };
  39591. K.closure49.prototype = {
  39592. call$1: function($arguments) {
  39593. return K._rgb("rgba", $arguments);
  39594. },
  39595. $signature: 4
  39596. };
  39597. K.closure50.prototype = {
  39598. call$1: function($arguments) {
  39599. return K._rgbTwoArg("rgba", $arguments);
  39600. },
  39601. $signature: 4
  39602. };
  39603. K.closure51.prototype = {
  39604. call$1: function($arguments) {
  39605. var parsed = K._parseChannels("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  39606. return parsed instanceof D.SassString ? parsed : K._rgb("rgba", type$.legacy_List_legacy_Value._as(parsed));
  39607. },
  39608. $signature: 4
  39609. };
  39610. K.closure52.prototype = {
  39611. call$1: function($arguments) {
  39612. var color, t2,
  39613. t1 = J.getInterceptor$asx($arguments),
  39614. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  39615. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  39616. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  39617. throw H.wrapException(string$.Only_oa);
  39618. return K._functionString("invert", t1.take$1($arguments, 1));
  39619. }
  39620. color = t1.$index($arguments, 0).assertColor$1("color");
  39621. t1 = color.get$red();
  39622. t2 = color.get$green();
  39623. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  39624. },
  39625. $signature: 4
  39626. };
  39627. K.closure53.prototype = {
  39628. call$1: function($arguments) {
  39629. return K._hsl("hsl", $arguments);
  39630. },
  39631. $signature: 4
  39632. };
  39633. K.closure54.prototype = {
  39634. call$1: function($arguments) {
  39635. return K._hsl("hsl", $arguments);
  39636. },
  39637. $signature: 4
  39638. };
  39639. K.closure55.prototype = {
  39640. call$1: function($arguments) {
  39641. var t1 = J.getInterceptor$asx($arguments);
  39642. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  39643. return K._functionString("hsl", $arguments);
  39644. else
  39645. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  39646. },
  39647. $signature: 15
  39648. };
  39649. K.closure56.prototype = {
  39650. call$1: function($arguments) {
  39651. var parsed = K._parseChannels("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  39652. return parsed instanceof D.SassString ? parsed : K._hsl("hsl", type$.legacy_List_legacy_Value._as(parsed));
  39653. },
  39654. $signature: 4
  39655. };
  39656. K.closure57.prototype = {
  39657. call$1: function($arguments) {
  39658. return K._hsl("hsla", $arguments);
  39659. },
  39660. $signature: 4
  39661. };
  39662. K.closure58.prototype = {
  39663. call$1: function($arguments) {
  39664. return K._hsl("hsla", $arguments);
  39665. },
  39666. $signature: 4
  39667. };
  39668. K.closure59.prototype = {
  39669. call$1: function($arguments) {
  39670. var t1 = J.getInterceptor$asx($arguments);
  39671. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  39672. return K._functionString("hsla", $arguments);
  39673. else
  39674. throw H.wrapException(E.SassScriptException$("Missing argument $lightness."));
  39675. },
  39676. $signature: 15
  39677. };
  39678. K.closure60.prototype = {
  39679. call$1: function($arguments) {
  39680. var parsed = K._parseChannels("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  39681. return parsed instanceof D.SassString ? parsed : K._hsl("hsla", type$.legacy_List_legacy_Value._as(parsed));
  39682. },
  39683. $signature: 4
  39684. };
  39685. K.closure61.prototype = {
  39686. call$1: function($arguments) {
  39687. var t1 = J.getInterceptor$asx($arguments);
  39688. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  39689. return K._functionString("grayscale", $arguments);
  39690. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  39691. },
  39692. $signature: 4
  39693. };
  39694. K.closure62.prototype = {
  39695. call$1: function($arguments) {
  39696. var t1 = J.getInterceptor$asx($arguments),
  39697. color = t1.$index($arguments, 0).assertColor$1("color"),
  39698. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  39699. K._checkAngle(degrees, null);
  39700. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  39701. },
  39702. $signature: 25
  39703. };
  39704. K.closure63.prototype = {
  39705. call$1: function($arguments) {
  39706. var t1 = J.getInterceptor$asx($arguments),
  39707. color = t1.$index($arguments, 0).assertColor$1("color"),
  39708. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  39709. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  39710. },
  39711. $signature: 25
  39712. };
  39713. K.closure64.prototype = {
  39714. call$1: function($arguments) {
  39715. var t1 = J.getInterceptor$asx($arguments),
  39716. color = t1.$index($arguments, 0).assertColor$1("color"),
  39717. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  39718. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  39719. },
  39720. $signature: 25
  39721. };
  39722. K.closure65.prototype = {
  39723. call$1: function($arguments) {
  39724. return new D.SassString("saturate(" + N.serializeValue0(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  39725. },
  39726. $signature: 15
  39727. };
  39728. K.closure66.prototype = {
  39729. call$1: function($arguments) {
  39730. var t1 = J.getInterceptor$asx($arguments),
  39731. color = t1.$index($arguments, 0).assertColor$1("color"),
  39732. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  39733. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  39734. },
  39735. $signature: 25
  39736. };
  39737. K.closure67.prototype = {
  39738. call$1: function($arguments) {
  39739. var t1 = J.getInterceptor$asx($arguments),
  39740. color = t1.$index($arguments, 0).assertColor$1("color"),
  39741. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  39742. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  39743. },
  39744. $signature: 25
  39745. };
  39746. K.closure68.prototype = {
  39747. call$1: function($arguments) {
  39748. var argument = J.$index$asx($arguments, 0);
  39749. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart()))
  39750. return K._functionString("alpha", $arguments);
  39751. return T.SassNumber$(argument.assertColor$1("color").alpha, null);
  39752. },
  39753. $signature: 4
  39754. };
  39755. K.closure69.prototype = {
  39756. call$1: function($arguments) {
  39757. var t1,
  39758. argList = J.$index$asx($arguments, 0).get$asList();
  39759. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure8()))
  39760. return K._functionString("alpha", $arguments);
  39761. t1 = argList.length;
  39762. if (t1 === 0)
  39763. throw H.wrapException(E.SassScriptException$("Missing argument $color."));
  39764. else
  39765. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed."));
  39766. },
  39767. $signature: 15
  39768. };
  39769. K._closure8.prototype = {
  39770. call$1: function(argument) {
  39771. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  39772. },
  39773. $signature: 53
  39774. };
  39775. K.closure70.prototype = {
  39776. call$1: function($arguments) {
  39777. var t1 = J.getInterceptor$asx($arguments);
  39778. if (t1.$index($arguments, 0) instanceof T.SassNumber)
  39779. return K._functionString("opacity", $arguments);
  39780. return T.SassNumber$(t1.$index($arguments, 0).assertColor$1("color").alpha, null);
  39781. },
  39782. $signature: 4
  39783. };
  39784. K.closure99.prototype = {
  39785. call$1: function($arguments) {
  39786. var result, color, t2,
  39787. t1 = J.getInterceptor$asx($arguments),
  39788. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  39789. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  39790. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  39791. throw H.wrapException(string$.Only_oa);
  39792. result = K._functionString("invert", t1.take$1($arguments, 1));
  39793. N.warn(string$.Passinni + result.toString$0(0), true);
  39794. return result;
  39795. }
  39796. color = t1.$index($arguments, 0).assertColor$1("color");
  39797. t1 = color.get$red();
  39798. t2 = color.get$green();
  39799. return K._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  39800. },
  39801. $signature: 4
  39802. };
  39803. K.closure100.prototype = {
  39804. call$1: function($arguments) {
  39805. var result,
  39806. t1 = J.getInterceptor$asx($arguments);
  39807. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  39808. result = K._functionString("grayscale", t1.take$1($arguments, 1));
  39809. N.warn(string$.Passinng + result.toString$0(0), true);
  39810. return result;
  39811. }
  39812. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  39813. },
  39814. $signature: 4
  39815. };
  39816. K.closure101.prototype = {
  39817. call$1: function($arguments) {
  39818. return K._hwb($arguments);
  39819. },
  39820. $signature: 4
  39821. };
  39822. K.closure102.prototype = {
  39823. call$1: function($arguments) {
  39824. var parsed = K._parseChannels("hwb", H.setRuntimeTypeInfo(["$hue", "$whiteness", "$blackness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  39825. if (parsed instanceof D.SassString)
  39826. throw H.wrapException(E.SassScriptException$('Expected numeric channels, got "' + parsed.toString$0(0) + '".'));
  39827. else
  39828. return K._hwb(type$.legacy_List_legacy_Value._as(parsed));
  39829. },
  39830. $signature: 4
  39831. };
  39832. K.closure103.prototype = {
  39833. call$1: function($arguments) {
  39834. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$whiteness(), "%");
  39835. },
  39836. $signature: 9
  39837. };
  39838. K.closure104.prototype = {
  39839. call$1: function($arguments) {
  39840. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$blackness(), "%");
  39841. },
  39842. $signature: 9
  39843. };
  39844. K.closure105.prototype = {
  39845. call$1: function($arguments) {
  39846. var result,
  39847. argument = J.$index$asx($arguments, 0);
  39848. if (argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart())) {
  39849. result = K._functionString("alpha", $arguments);
  39850. N.warn(string$.Using_ + result.toString$0(0), true);
  39851. return result;
  39852. }
  39853. return T.SassNumber$(argument.assertColor$1("color").alpha, null);
  39854. },
  39855. $signature: 4
  39856. };
  39857. K.closure106.prototype = {
  39858. call$1: function($arguments) {
  39859. var result,
  39860. t1 = J.getInterceptor$asx($arguments);
  39861. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure13())) {
  39862. result = K._functionString("alpha", $arguments);
  39863. N.warn(string$.Using_ + result.toString$0(0), true);
  39864. return result;
  39865. }
  39866. throw H.wrapException(E.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  39867. },
  39868. $signature: 15
  39869. };
  39870. K._closure13.prototype = {
  39871. call$1: function(argument) {
  39872. return argument instanceof D.SassString && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart());
  39873. },
  39874. $signature: 53
  39875. };
  39876. K.closure107.prototype = {
  39877. call$1: function($arguments) {
  39878. var result,
  39879. t1 = J.getInterceptor$asx($arguments);
  39880. if (t1.$index($arguments, 0) instanceof T.SassNumber) {
  39881. result = K._functionString("opacity", $arguments);
  39882. N.warn(string$.Passinno + result.toString$0(0), true);
  39883. return result;
  39884. }
  39885. return T.SassNumber$(t1.$index($arguments, 0).assertColor$1("color").alpha, null);
  39886. },
  39887. $signature: 4
  39888. };
  39889. K.closure82.prototype = {
  39890. call$1: function($arguments) {
  39891. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$red(), null);
  39892. },
  39893. $signature: 9
  39894. };
  39895. K.closure81.prototype = {
  39896. call$1: function($arguments) {
  39897. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$green(), null);
  39898. },
  39899. $signature: 9
  39900. };
  39901. K.closure80.prototype = {
  39902. call$1: function($arguments) {
  39903. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$blue(), null);
  39904. },
  39905. $signature: 9
  39906. };
  39907. K.closure79.prototype = {
  39908. call$1: function($arguments) {
  39909. var t1 = J.getInterceptor$asx($arguments);
  39910. return K._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  39911. },
  39912. $signature: 25
  39913. };
  39914. K.closure78.prototype = {
  39915. call$1: function($arguments) {
  39916. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$hue(), "deg");
  39917. },
  39918. $signature: 9
  39919. };
  39920. K.closure77.prototype = {
  39921. call$1: function($arguments) {
  39922. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$saturation(), "%");
  39923. },
  39924. $signature: 9
  39925. };
  39926. K.closure76.prototype = {
  39927. call$1: function($arguments) {
  39928. return T.SassNumber$(J.get$first$ax($arguments).assertColor$1("color").get$lightness(), "%");
  39929. },
  39930. $signature: 9
  39931. };
  39932. K.closure75.prototype = {
  39933. call$1: function($arguments) {
  39934. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  39935. return color.changeHsl$1$hue(color.get$hue() + 180);
  39936. },
  39937. $signature: 25
  39938. };
  39939. K.closure73.prototype = {
  39940. call$1: function($arguments) {
  39941. return K._updateComponents($arguments, true, false, false);
  39942. },
  39943. $signature: 25
  39944. };
  39945. K.closure72.prototype = {
  39946. call$1: function($arguments) {
  39947. return K._updateComponents($arguments, false, false, true);
  39948. },
  39949. $signature: 25
  39950. };
  39951. K.closure71.prototype = {
  39952. call$1: function($arguments) {
  39953. return K._updateComponents($arguments, false, true, false);
  39954. },
  39955. $signature: 25
  39956. };
  39957. K.closure74.prototype = {
  39958. call$1: function($arguments) {
  39959. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  39960. t1 = new K.closure_hexString();
  39961. return new D.SassString("#" + H.S(t1.call$1(T.fuzzyRound(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  39962. },
  39963. $signature: 15
  39964. };
  39965. K.closure_hexString.prototype = {
  39966. call$1: function(component) {
  39967. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  39968. },
  39969. $signature: 83
  39970. };
  39971. K._updateComponents_getParam.prototype = {
  39972. call$4$assertPercent$checkPercent: function($name, max, assertPercent, checkPercent) {
  39973. var t2,
  39974. t1 = this.keywords.remove$1(0, $name),
  39975. number = t1 == null ? null : t1.assertNumber$1($name);
  39976. if (number == null)
  39977. return null;
  39978. t1 = this.scale;
  39979. t2 = !t1;
  39980. if (t2 && checkPercent)
  39981. K._checkPercent(number, $name);
  39982. if (!t2 || assertPercent)
  39983. number.assertUnit$2("%", $name);
  39984. if (t1)
  39985. max = 100;
  39986. return number.valueInRange$3(this.change ? 0 : -max, max, $name);
  39987. },
  39988. call$2: function($name, max) {
  39989. return this.call$4$assertPercent$checkPercent($name, max, false, false);
  39990. },
  39991. call$3$checkPercent: function($name, max, checkPercent) {
  39992. return this.call$4$assertPercent$checkPercent($name, max, false, checkPercent);
  39993. },
  39994. call$3$assertPercent: function($name, max, assertPercent) {
  39995. return this.call$4$assertPercent$checkPercent($name, max, assertPercent, false);
  39996. },
  39997. $signature: 141
  39998. };
  39999. K._updateComponents_closure.prototype = {
  40000. call$1: function($name) {
  40001. return "$" + H.S($name);
  40002. },
  40003. $signature: 6
  40004. };
  40005. K._updateComponents_updateValue.prototype = {
  40006. call$3: function(current, param, max) {
  40007. var t1;
  40008. if (param == null)
  40009. return current;
  40010. if (this.change)
  40011. return param;
  40012. if (this.adjust)
  40013. return C.JSNumber_methods.clamp$2(current + param, 0, max);
  40014. t1 = param > 0 ? max - current : current;
  40015. return current + t1 * (param / 100);
  40016. },
  40017. $signature: 142
  40018. };
  40019. K._updateComponents_updateRgb.prototype = {
  40020. call$2: function(current, param) {
  40021. return T.fuzzyRound(this.updateValue.call$3(current, param, 255));
  40022. },
  40023. $signature: 143
  40024. };
  40025. K._functionString_closure.prototype = {
  40026. call$1: function(argument) {
  40027. argument.toString;
  40028. return N.serializeValue0(argument, false, true);
  40029. },
  40030. $signature: 292
  40031. };
  40032. K._removedColorFunction_closure.prototype = {
  40033. call$1: function($arguments) {
  40034. var t1 = this.name,
  40035. t2 = J.getInterceptor$asx($arguments),
  40036. t3 = "The function " + t1 + string$.x28__isn + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  40037. throw H.wrapException(E.SassScriptException$(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + string$.x29__Mor + t1));
  40038. },
  40039. $signature: 81
  40040. };
  40041. K._removeUnits_closure.prototype = {
  40042. call$1: function(unit) {
  40043. return " * 1" + H.S(unit);
  40044. },
  40045. $signature: 6
  40046. };
  40047. K._removeUnits_closure0.prototype = {
  40048. call$1: function(unit) {
  40049. return " / 1" + H.S(unit);
  40050. },
  40051. $signature: 6
  40052. };
  40053. K._parseChannels_closure.prototype = {
  40054. call$1: function(value) {
  40055. return value.get$isVar();
  40056. },
  40057. $signature: 53
  40058. };
  40059. D.closure43.prototype = {
  40060. call$1: function($arguments) {
  40061. return T.SassNumber$(J.$index$asx($arguments, 0).get$asList().length, null);
  40062. },
  40063. $signature: 9
  40064. };
  40065. D.closure42.prototype = {
  40066. call$1: function($arguments) {
  40067. var t1 = J.getInterceptor$asx($arguments),
  40068. list = t1.$index($arguments, 0),
  40069. index = t1.$index($arguments, 1);
  40070. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  40071. },
  40072. $signature: 4
  40073. };
  40074. D.closure41.prototype = {
  40075. call$1: function($arguments) {
  40076. var t1 = J.getInterceptor$asx($arguments),
  40077. list = t1.$index($arguments, 0),
  40078. index = t1.$index($arguments, 1),
  40079. value = t1.$index($arguments, 2),
  40080. t2 = list.get$asList(),
  40081. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  40082. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  40083. return t1.$index($arguments, 0).changeListContents$1(newList);
  40084. },
  40085. $signature: 28
  40086. };
  40087. D.closure40.prototype = {
  40088. call$1: function($arguments) {
  40089. var separator, bracketed, t2, t3, _i,
  40090. t1 = J.getInterceptor$asx($arguments),
  40091. list1 = t1.$index($arguments, 0),
  40092. list2 = t1.$index($arguments, 1),
  40093. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  40094. bracketedParam = t1.$index($arguments, 3);
  40095. t1 = separatorParam.text;
  40096. if (t1 === "auto")
  40097. if (list1.get$separator() !== C.ListSeparator_undecided)
  40098. separator = list1.get$separator();
  40099. else
  40100. separator = list2.get$separator() !== C.ListSeparator_undecided ? list2.get$separator() : C.ListSeparator_space;
  40101. else if (t1 === "space")
  40102. separator = C.ListSeparator_space;
  40103. else {
  40104. if (t1 !== "comma")
  40105. throw H.wrapException(E.SassScriptException$(string$.x24separ));
  40106. separator = C.ListSeparator_comma;
  40107. }
  40108. bracketed = bracketedParam instanceof D.SassString && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  40109. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40110. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40111. t1.push(t2[_i]);
  40112. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40113. t1.push(t2[_i]);
  40114. return D.SassList$(t1, separator, bracketed);
  40115. },
  40116. $signature: 28
  40117. };
  40118. D.closure39.prototype = {
  40119. call$1: function($arguments) {
  40120. var separator, t2, t3, _i,
  40121. t1 = J.getInterceptor$asx($arguments),
  40122. list = t1.$index($arguments, 0),
  40123. value = t1.$index($arguments, 1);
  40124. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  40125. if (t1 === "auto")
  40126. separator = list.get$separator() === C.ListSeparator_undecided ? C.ListSeparator_space : list.get$separator();
  40127. else if (t1 === "space")
  40128. separator = C.ListSeparator_space;
  40129. else {
  40130. if (t1 !== "comma")
  40131. throw H.wrapException(E.SassScriptException$(string$.x24separ));
  40132. separator = C.ListSeparator_comma;
  40133. }
  40134. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40135. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40136. t1.push(t2[_i]);
  40137. t1.push(value);
  40138. return list.changeListContents$2$separator(t1, separator);
  40139. },
  40140. $signature: 28
  40141. };
  40142. D.closure38.prototype = {
  40143. call$1: function($arguments) {
  40144. var results, result, _box_0 = {},
  40145. t1 = J.$index$asx($arguments, 0).get$asList(),
  40146. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value*>*>"),
  40147. lists = P.List_List$from(new H.MappedListIterable(t1, new D._closure5(), t2), true, t2._eval$1("ListIterable.E"));
  40148. if (lists.length === 0)
  40149. return C.SassList_lmy;
  40150. _box_0.i = 0;
  40151. results = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SassList);
  40152. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value*>"), t2 = type$.legacy_Value; C.JSArray_methods.every$1(lists, new D._closure6(_box_0));) {
  40153. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure7(_box_0), t1), false, t2);
  40154. result.fixed$length = Array;
  40155. result.immutable$list = Array;
  40156. results.push(new D.SassList(result, C.ListSeparator_space, false));
  40157. ++_box_0.i;
  40158. }
  40159. return D.SassList$(results, C.ListSeparator_comma, false);
  40160. },
  40161. $signature: 28
  40162. };
  40163. D._closure5.prototype = {
  40164. call$1: function(list) {
  40165. return list.get$asList();
  40166. },
  40167. $signature: 291
  40168. };
  40169. D._closure6.prototype = {
  40170. call$1: function(list) {
  40171. return this._box_0.i !== J.get$length$asx(list);
  40172. },
  40173. $signature: 290
  40174. };
  40175. D._closure7.prototype = {
  40176. call$1: function(list) {
  40177. return J.$index$asx(list, this._box_0.i);
  40178. },
  40179. $signature: 4
  40180. };
  40181. D.closure37.prototype = {
  40182. call$1: function($arguments) {
  40183. var t1 = J.getInterceptor$asx($arguments),
  40184. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  40185. return index === -1 ? C.C_SassNull0 : T.SassNumber$(index + 1, null);
  40186. },
  40187. $signature: 4
  40188. };
  40189. D.closure35.prototype = {
  40190. call$1: function($arguments) {
  40191. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma ? new D.SassString("comma", false) : new D.SassString("space", false);
  40192. },
  40193. $signature: 15
  40194. };
  40195. D.closure36.prototype = {
  40196. call$1: function($arguments) {
  40197. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40198. },
  40199. $signature: 22
  40200. };
  40201. A.closure34.prototype = {
  40202. call$1: function($arguments) {
  40203. var t3, _i, cur, value,
  40204. t1 = J.getInterceptor$asx($arguments),
  40205. map = t1.$index($arguments, 0).assertMap$1("map"),
  40206. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40207. t2.push(t1.$index($arguments, 1));
  40208. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  40209. t2.push(t1[_i]);
  40210. for (t1 = H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0(); map = value) {
  40211. cur = t1.__internal$_current;
  40212. value = map.contents.$index(0, cur);
  40213. if (!(value instanceof A.SassMap))
  40214. return C.C_SassNull0;
  40215. }
  40216. t1 = map.contents.$index(0, C.JSArray_methods.get$last(t2));
  40217. return t1 == null ? C.C_SassNull0 : t1;
  40218. },
  40219. $signature: 4
  40220. };
  40221. A.closure97.prototype = {
  40222. call$1: function($arguments) {
  40223. var t1 = J.getInterceptor$asx($arguments);
  40224. return A._modify(t1.$index($arguments, 0).assertMap$1("map"), H.setRuntimeTypeInfo([t1.$index($arguments, 1)], type$.JSArray_legacy_Value), new A._closure12($arguments));
  40225. },
  40226. $signature: 4
  40227. };
  40228. A._closure12.prototype = {
  40229. call$1: function(_) {
  40230. return J.$index$asx(this.$arguments, 2);
  40231. },
  40232. $signature: 64
  40233. };
  40234. A.closure98.prototype = {
  40235. call$1: function($arguments) {
  40236. var t1 = J.getInterceptor$asx($arguments),
  40237. map = t1.$index($arguments, 0).assertMap$1("map"),
  40238. args = t1.$index($arguments, 1).get$asList();
  40239. t1 = args.length;
  40240. if (t1 === 0)
  40241. throw H.wrapException(E.SassScriptException$("Expected $args to contain a key."));
  40242. else if (t1 === 1)
  40243. throw H.wrapException(E.SassScriptException$("Expected $args to contain a value."));
  40244. return A._modify(map, C.JSArray_methods.sublist$2(args, 0, t1 - 1), new A._closure11(args));
  40245. },
  40246. $signature: 4
  40247. };
  40248. A._closure11.prototype = {
  40249. call$1: function(_) {
  40250. return C.JSArray_methods.get$last(this.args);
  40251. },
  40252. $signature: 64
  40253. };
  40254. A.closure32.prototype = {
  40255. call$1: function($arguments) {
  40256. var t2, t3, t4,
  40257. t1 = J.getInterceptor$asx($arguments),
  40258. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  40259. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  40260. t1 = type$.legacy_Value;
  40261. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  40262. for (t3 = map1.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40263. t4 = t3.get$current(t3);
  40264. t2.$indexSet(0, t4.key, t4.value);
  40265. }
  40266. for (t3 = map2.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40267. t4 = t3.get$current(t3);
  40268. t2.$indexSet(0, t4.key, t4.value);
  40269. }
  40270. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  40271. },
  40272. $signature: 37
  40273. };
  40274. A.closure33.prototype = {
  40275. call$1: function($arguments) {
  40276. var map2,
  40277. t1 = J.getInterceptor$asx($arguments),
  40278. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  40279. args = t1.$index($arguments, 1).get$asList();
  40280. t1 = args.length;
  40281. if (t1 === 0)
  40282. throw H.wrapException(E.SassScriptException$("Expected $args to contain a key."));
  40283. else if (t1 === 1)
  40284. throw H.wrapException(E.SassScriptException$("Expected $args to contain a map."));
  40285. map2 = C.JSArray_methods.get$last(args).assertMap$1("map2");
  40286. return A._modify(map1, H.SubListIterable$(args, 0, args.length - 1, H._arrayInstanceType(args)._precomputed1), new A._closure4(map2));
  40287. },
  40288. $signature: 4
  40289. };
  40290. A._closure4.prototype = {
  40291. call$1: function(oldValue) {
  40292. var t1, t2, t3, t4,
  40293. nestedMap = oldValue == null ? null : oldValue.tryMap$0();
  40294. if (nestedMap == null)
  40295. return this.map2;
  40296. t1 = type$.legacy_Value;
  40297. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  40298. for (t3 = nestedMap.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40299. t4 = t3.get$current(t3);
  40300. t2.$indexSet(0, t4.key, t4.value);
  40301. }
  40302. for (t3 = this.map2.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40303. t4 = t3.get$current(t3);
  40304. t2.$indexSet(0, t4.key, t4.value);
  40305. }
  40306. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  40307. },
  40308. $signature: 288
  40309. };
  40310. A.closure96.prototype = {
  40311. call$1: function($arguments) {
  40312. var t1 = J.getInterceptor$asx($arguments);
  40313. return A._deepMergeImpl(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  40314. },
  40315. $signature: 37
  40316. };
  40317. A.closure95.prototype = {
  40318. call$1: function($arguments) {
  40319. var t3, _i,
  40320. t1 = J.getInterceptor$asx($arguments),
  40321. map = t1.$index($arguments, 0).assertMap$1("map"),
  40322. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40323. t2.push(t1.$index($arguments, 1));
  40324. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  40325. t2.push(t1[_i]);
  40326. return A._modify(map, H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value), new A._closure10(t2));
  40327. },
  40328. $signature: 4
  40329. };
  40330. A._closure10.prototype = {
  40331. call$1: function(value) {
  40332. var t2,
  40333. nestedMap = value == null ? null : value.tryMap$0(),
  40334. t1 = nestedMap == null ? null : nestedMap.contents;
  40335. t1 = t1 == null ? null : t1.containsKey$1(C.JSArray_methods.get$last(this.keys));
  40336. if (t1 === true) {
  40337. t1 = type$.legacy_Value;
  40338. t2 = P.LinkedHashMap_LinkedHashMap$of(nestedMap.contents, t1, t1);
  40339. t2.remove$1(0, C.JSArray_methods.get$last(this.keys));
  40340. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  40341. }
  40342. return value;
  40343. },
  40344. $signature: 64
  40345. };
  40346. A.closure30.prototype = {
  40347. call$1: function($arguments) {
  40348. return J.$index$asx($arguments, 0).assertMap$1("map");
  40349. },
  40350. $signature: 37
  40351. };
  40352. A.closure31.prototype = {
  40353. call$1: function($arguments) {
  40354. var t3, _i, mutableMap,
  40355. t1 = J.getInterceptor$asx($arguments),
  40356. map = t1.$index($arguments, 0).assertMap$1("map"),
  40357. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40358. t2.push(t1.$index($arguments, 1));
  40359. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  40360. t2.push(t1[_i]);
  40361. t1 = type$.legacy_Value;
  40362. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  40363. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  40364. mutableMap.remove$1(0, t2[_i]);
  40365. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  40366. },
  40367. $signature: 37
  40368. };
  40369. A.closure29.prototype = {
  40370. call$1: function($arguments) {
  40371. var t1 = J.$index$asx($arguments, 0).assertMap$1("map").contents;
  40372. return D.SassList$(t1.get$keys(t1), C.ListSeparator_comma, false);
  40373. },
  40374. $signature: 28
  40375. };
  40376. A.closure28.prototype = {
  40377. call$1: function($arguments) {
  40378. var t1 = J.$index$asx($arguments, 0).assertMap$1("map").contents;
  40379. return D.SassList$(t1.get$values(t1), C.ListSeparator_comma, false);
  40380. },
  40381. $signature: 28
  40382. };
  40383. A.closure27.prototype = {
  40384. call$1: function($arguments) {
  40385. var t3, _i, cur, value,
  40386. t1 = J.getInterceptor$asx($arguments),
  40387. map = t1.$index($arguments, 0).assertMap$1("map"),
  40388. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  40389. t2.push(t1.$index($arguments, 1));
  40390. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  40391. t2.push(t1[_i]);
  40392. for (t1 = H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0(); map = value) {
  40393. cur = t1.__internal$_current;
  40394. value = map.contents.$index(0, cur);
  40395. if (!(value instanceof A.SassMap))
  40396. return C.SassBoolean_false0;
  40397. }
  40398. return map.contents.containsKey$1(C.JSArray_methods.get$last(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40399. },
  40400. $signature: 22
  40401. };
  40402. A._modify__modifyNestedMap.prototype = {
  40403. call$2: function(map, newValue) {
  40404. var nestedMap, _this = this,
  40405. t1 = type$.legacy_Value,
  40406. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1),
  40407. t2 = _this.keyIterator,
  40408. key = t2.get$current(t2);
  40409. if (!t2.moveNext$0()) {
  40410. mutableMap.$indexSet(0, key, newValue == null ? _this.modify.call$1(mutableMap.$index(0, key)) : newValue);
  40411. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  40412. }
  40413. t2 = mutableMap.$index(0, key);
  40414. nestedMap = t2 == null ? null : t2.tryMap$0();
  40415. t2 = nestedMap == null;
  40416. if (t2) {
  40417. newValue = _this.modify.call$1(null);
  40418. if (newValue == null)
  40419. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  40420. }
  40421. mutableMap.$indexSet(0, key, _this.call$2(t2 ? C.SassMap_Map_empty : nestedMap, newValue));
  40422. return new A.SassMap(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  40423. },
  40424. call$1: function(map) {
  40425. return this.call$2(map, null);
  40426. },
  40427. $signature: 286
  40428. };
  40429. A._deepMergeImpl__ensureMutable.prototype = {
  40430. call$0: function() {
  40431. var t2,
  40432. t1 = this._box_0;
  40433. if (t1.mutable)
  40434. return;
  40435. t1.mutable = true;
  40436. t2 = type$.legacy_Value;
  40437. t1.result = P.LinkedHashMap_LinkedHashMap$of(t1.result, t2, t2);
  40438. },
  40439. $signature: 1
  40440. };
  40441. A._deepMergeImpl_closure.prototype = {
  40442. call$2: function(key, value) {
  40443. var resultMap, valueMap, merged,
  40444. t1 = this._box_0,
  40445. resultValue = t1.result.$index(0, key);
  40446. if (resultValue == null) {
  40447. this._ensureMutable.call$0();
  40448. t1.result.$indexSet(0, key, value);
  40449. } else {
  40450. resultMap = resultValue.tryMap$0();
  40451. valueMap = value.tryMap$0();
  40452. if (resultMap != null && valueMap != null) {
  40453. merged = A._deepMergeImpl(valueMap, resultMap);
  40454. if (merged === resultMap)
  40455. return;
  40456. this._ensureMutable.call$0();
  40457. t1.result.$indexSet(0, key, merged);
  40458. }
  40459. }
  40460. },
  40461. $signature: 46
  40462. };
  40463. K.closure25.prototype = {
  40464. call$1: function(value) {
  40465. return J.ceil$0$n(value);
  40466. },
  40467. $signature: 39
  40468. };
  40469. K.closure90.prototype = {
  40470. call$1: function($arguments) {
  40471. var t1 = J.getInterceptor$asx($arguments),
  40472. min = t1.$index($arguments, 0).assertNumber$1("min"),
  40473. number = t1.$index($arguments, 1).assertNumber$1("number"),
  40474. max = t1.$index($arguments, 2).assertNumber$1("max");
  40475. number.convertValueToMatch$3(min, "number", "min");
  40476. max.convertValueToMatch$3(min, "max", "min");
  40477. if (min.greaterThanOrEquals$1(max).value)
  40478. return min;
  40479. if (min.greaterThanOrEquals$1(number).value)
  40480. return min;
  40481. if (number.greaterThanOrEquals$1(max).value)
  40482. return max;
  40483. return number;
  40484. },
  40485. $signature: 9
  40486. };
  40487. K.closure24.prototype = {
  40488. call$1: function(value) {
  40489. return J.floor$0$n(value);
  40490. },
  40491. $signature: 39
  40492. };
  40493. K.closure23.prototype = {
  40494. call$1: function($arguments) {
  40495. var t1, t2, max, _i, number;
  40496. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  40497. number = t1[_i].assertNumber$0();
  40498. if (max == null || max.lessThan$1(number).value)
  40499. max = number;
  40500. }
  40501. if (max != null)
  40502. return max;
  40503. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  40504. },
  40505. $signature: 9
  40506. };
  40507. K.closure22.prototype = {
  40508. call$1: function($arguments) {
  40509. var t1, t2, min, _i, number;
  40510. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  40511. number = t1[_i].assertNumber$0();
  40512. if (min == null || min.greaterThan$1(number).value)
  40513. min = number;
  40514. }
  40515. if (min != null)
  40516. return min;
  40517. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  40518. },
  40519. $signature: 9
  40520. };
  40521. K.closure26.prototype = {
  40522. call$1: function(value) {
  40523. return Math.abs(value);
  40524. },
  40525. $signature: 155
  40526. };
  40527. K.closure88.prototype = {
  40528. call$1: function($arguments) {
  40529. var subtotal, i, number, value, t3,
  40530. t1 = J.$index$asx($arguments, 0).get$asList(),
  40531. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber*>"),
  40532. numbers = P.List_List$from(new H.MappedListIterable(t1, new K._closure9(), t2), true, t2._eval$1("ListIterable.E"));
  40533. if (numbers.length === 0)
  40534. throw H.wrapException(E.SassScriptException$("At least one argument must be passed."));
  40535. for (subtotal = 0, i = 0; i < numbers.length;) {
  40536. number = numbers[i];
  40537. t1 = numbers[0];
  40538. ++i;
  40539. t2 = "numbers[" + i + "]";
  40540. number.toString;
  40541. value = number._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(t1.numeratorUnits, t1.denominatorUnits, false, t2, t1, "numbers[1]");
  40542. H.checkNum(value);
  40543. subtotal += Math.pow(value, 2);
  40544. }
  40545. t1 = Math.sqrt(subtotal);
  40546. t2 = numbers[0];
  40547. t3 = t2.numeratorUnits;
  40548. return T.SassNumber$withUnits(t1, t2.denominatorUnits, t3);
  40549. },
  40550. $signature: 9
  40551. };
  40552. K._closure9.prototype = {
  40553. call$1: function(argument) {
  40554. return argument.assertNumber$0();
  40555. },
  40556. $signature: 284
  40557. };
  40558. K.closure87.prototype = {
  40559. call$1: function($arguments) {
  40560. var numberValue, base, baseValue,
  40561. _s18_ = " to have no units.",
  40562. t1 = J.getInterceptor$asx($arguments),
  40563. number = t1.$index($arguments, 0).assertNumber$1("number");
  40564. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  40565. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_));
  40566. numberValue = K._fuzzyRoundIfZero(number.value);
  40567. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull0))
  40568. return T.SassNumber$(Math.log(H.checkNum(numberValue)), null);
  40569. base = t1.$index($arguments, 1).assertNumber$1("base");
  40570. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  40571. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  40572. t1 = base.value;
  40573. baseValue = Math.abs(t1 - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1);
  40574. return T.SassNumber$(Math.log(H.checkNum(numberValue)) / Math.log(H.checkNum(baseValue)), null);
  40575. },
  40576. $signature: 9
  40577. };
  40578. K.closure86.prototype = {
  40579. call$1: function($arguments) {
  40580. var baseValue, exponentValue, t2, t3, _null = null,
  40581. _s18_ = " to have no units.",
  40582. t1 = J.getInterceptor$asx($arguments),
  40583. base = t1.$index($arguments, 0).assertNumber$1("base"),
  40584. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  40585. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  40586. throw H.wrapException(E.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_));
  40587. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  40588. throw H.wrapException(E.SassScriptException$("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  40589. baseValue = K._fuzzyRoundIfZero(base.value);
  40590. exponentValue = K._fuzzyRoundIfZero(exponent.value);
  40591. t1 = $.$get$epsilon();
  40592. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  40593. exponentValue.toString;
  40594. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  40595. } else
  40596. t2 = false;
  40597. if (t2)
  40598. return T.SassNumber$(0 / 0, _null);
  40599. else {
  40600. t2 = Math.abs(baseValue - 0);
  40601. if (t2 < t1) {
  40602. exponentValue.toString;
  40603. if (isFinite(exponentValue))
  40604. if (T.fuzzyIsInt(exponentValue))
  40605. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  40606. else
  40607. t1 = false;
  40608. else
  40609. t1 = false;
  40610. if (t1)
  40611. exponentValue = T.fuzzyRound(exponentValue);
  40612. } else {
  40613. if (isFinite(baseValue))
  40614. if (baseValue < 0 && !(t2 < t1)) {
  40615. exponentValue.toString;
  40616. t3 = isFinite(exponentValue) && T.fuzzyIsInt(exponentValue);
  40617. } else
  40618. t3 = false;
  40619. else
  40620. t3 = false;
  40621. if (t3)
  40622. exponentValue = T.fuzzyRound(exponentValue);
  40623. else {
  40624. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  40625. if (baseValue < 0 && !(t2 < t1)) {
  40626. exponentValue.toString;
  40627. if (isFinite(exponentValue))
  40628. if (T.fuzzyIsInt(exponentValue))
  40629. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  40630. else
  40631. t1 = false;
  40632. else
  40633. t1 = false;
  40634. } else
  40635. t1 = false;
  40636. else
  40637. t1 = false;
  40638. if (t1)
  40639. exponentValue = T.fuzzyRound(exponentValue);
  40640. }
  40641. }
  40642. }
  40643. H.checkNum(exponentValue);
  40644. return T.SassNumber$(Math.pow(baseValue, exponentValue), _null);
  40645. },
  40646. $signature: 9
  40647. };
  40648. K.closure84.prototype = {
  40649. call$1: function($arguments) {
  40650. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40651. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  40652. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  40653. return T.SassNumber$(Math.sqrt(H.checkNum(K._fuzzyRoundIfZero(number.value))), null);
  40654. },
  40655. $signature: 9
  40656. };
  40657. K.closure94.prototype = {
  40658. call$1: function($arguments) {
  40659. var numberValue,
  40660. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40661. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  40662. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  40663. numberValue = number.value;
  40664. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon())
  40665. numberValue = T.fuzzyRound(numberValue);
  40666. return T.SassNumber$withUnits(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  40667. },
  40668. $signature: 9
  40669. };
  40670. K.closure93.prototype = {
  40671. call$1: function($arguments) {
  40672. var t1,
  40673. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40674. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  40675. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  40676. t1 = number.value;
  40677. return T.SassNumber$withUnits(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon() ? T.fuzzyRound(t1) : K._fuzzyRoundIfZero(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  40678. },
  40679. $signature: 9
  40680. };
  40681. K.closure92.prototype = {
  40682. call$1: function($arguments) {
  40683. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40684. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  40685. throw H.wrapException(E.SassScriptException$("$number: Expected " + number.toString$0(0) + " to have no units."));
  40686. return T.SassNumber$withUnits(Math.atan(H.checkNum(K._fuzzyRoundIfZero(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  40687. },
  40688. $signature: 9
  40689. };
  40690. K.closure91.prototype = {
  40691. call$1: function($arguments) {
  40692. var t1 = J.getInterceptor$asx($arguments),
  40693. y = t1.$index($arguments, 0).assertNumber$1("y"),
  40694. xValue = K._fuzzyRoundIfZero(t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y"));
  40695. return T.SassNumber$withUnits(Math.atan2(H.checkNum(K._fuzzyRoundIfZero(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  40696. },
  40697. $signature: 9
  40698. };
  40699. K.closure89.prototype = {
  40700. call$1: function($arguments) {
  40701. var t1 = type$.JSArray_legacy_String;
  40702. return T.SassNumber$(Math.cos(H.checkNum(J.$index$asx($arguments, 0).assertNumber$1("number")._coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number"))), null);
  40703. },
  40704. $signature: 9
  40705. };
  40706. K.closure85.prototype = {
  40707. call$1: function($arguments) {
  40708. var t1 = type$.JSArray_legacy_String;
  40709. return T.SassNumber$(Math.sin(H.checkNum(K._fuzzyRoundIfZero(J.$index$asx($arguments, 0).assertNumber$1("number")._coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number")))), null);
  40710. },
  40711. $signature: 9
  40712. };
  40713. K.closure83.prototype = {
  40714. call$1: function($arguments) {
  40715. var t2,
  40716. t1 = type$.JSArray_legacy_String,
  40717. value = J.$index$asx($arguments, 0).assertNumber$1("number")._coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number");
  40718. t1 = C.JSNumber_methods.$mod(value - 1.5707963267948966, 6.283185307179586);
  40719. t2 = $.$get$epsilon();
  40720. if (Math.abs(t1 - 0) < t2)
  40721. return T.SassNumber$(1 / 0, null);
  40722. else if (Math.abs(C.JSNumber_methods.$mod(value + 1.5707963267948966, 6.283185307179586) - 0) < t2)
  40723. return T.SassNumber$(-1 / 0, null);
  40724. else
  40725. return T.SassNumber$(Math.tan(H.checkNum(K._fuzzyRoundIfZero(value))), null);
  40726. },
  40727. $signature: 9
  40728. };
  40729. K.closure18.prototype = {
  40730. call$1: function($arguments) {
  40731. var t1 = J.getInterceptor$asx($arguments);
  40732. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40733. },
  40734. $signature: 22
  40735. };
  40736. K.closure17.prototype = {
  40737. call$1: function($arguments) {
  40738. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40739. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40740. },
  40741. $signature: 22
  40742. };
  40743. K.closure19.prototype = {
  40744. call$1: function($arguments) {
  40745. return new D.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  40746. },
  40747. $signature: 15
  40748. };
  40749. K.closure21.prototype = {
  40750. call$1: function($arguments) {
  40751. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40752. number.assertNoUnits$1("number");
  40753. return T.SassNumber$(number.value * 100, "%");
  40754. },
  40755. $signature: 9
  40756. };
  40757. K.closure20.prototype = {
  40758. call$1: function($arguments) {
  40759. var limit,
  40760. t1 = J.getInterceptor$asx($arguments);
  40761. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull0))
  40762. return T.SassNumber$($.$get$_random0().nextDouble$0(), null);
  40763. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  40764. if (limit < 1)
  40765. throw H.wrapException(E.SassScriptException$("$limit: Must be greater than 0, was " + limit + "."));
  40766. return T.SassNumber$($.$get$_random0().nextInt$1(limit) + 1, null);
  40767. },
  40768. $signature: 9
  40769. };
  40770. K._numberFunction_closure.prototype = {
  40771. call$1: function($arguments) {
  40772. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  40773. return T.SassNumber$withUnits(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  40774. },
  40775. $signature: 9
  40776. };
  40777. Q.closure108.prototype = {
  40778. call$1: function($arguments) {
  40779. return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40780. },
  40781. $signature: 22
  40782. };
  40783. Q.closure109.prototype = {
  40784. call$1: function($arguments) {
  40785. return new D.SassString(J.toString$0$(J.get$first$ax($arguments)), false);
  40786. },
  40787. $signature: 15
  40788. };
  40789. Q.closure110.prototype = {
  40790. call$1: function($arguments) {
  40791. var value = J.$index$asx($arguments, 0);
  40792. if (value instanceof D.SassArgumentList)
  40793. return new D.SassString("arglist", false);
  40794. if (value instanceof Z.SassBoolean)
  40795. return new D.SassString("bool", false);
  40796. if (value instanceof K.SassColor)
  40797. return new D.SassString("color", false);
  40798. if (value instanceof D.SassList)
  40799. return new D.SassString("list", false);
  40800. if (value instanceof A.SassMap)
  40801. return new D.SassString("map", false);
  40802. if (value instanceof O.SassNull)
  40803. return new D.SassString("null", false);
  40804. if (value instanceof T.SassNumber)
  40805. return new D.SassString("number", false);
  40806. if (value instanceof F.SassFunction)
  40807. return new D.SassString("function", false);
  40808. return new D.SassString("string", false);
  40809. },
  40810. $signature: 15
  40811. };
  40812. Q.closure111.prototype = {
  40813. call$1: function($arguments) {
  40814. var t1, t2, t3, t4,
  40815. argumentList = J.$index$asx($arguments, 0);
  40816. if (argumentList instanceof D.SassArgumentList) {
  40817. t1 = type$.legacy_Value;
  40818. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  40819. for (argumentList._wereKeywordsAccessed = true, t3 = argumentList._keywords, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  40820. t4 = t3.get$current(t3);
  40821. t2.$indexSet(0, new D.SassString(t4.key, false), t4.value);
  40822. }
  40823. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  40824. } else
  40825. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  40826. },
  40827. $signature: 37
  40828. };
  40829. T.closure13.prototype = {
  40830. call$1: function($arguments) {
  40831. var t1 = {},
  40832. selectors = J.$index$asx($arguments, 0).get$asList();
  40833. if (selectors.length === 0)
  40834. throw H.wrapException(E.SassScriptException$(string$.x24selec));
  40835. t1.first = true;
  40836. return new H.MappedListIterable(selectors, new T._closure1(t1), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList*>")).reduce$1(0, new T._closure2()).get$asSassList();
  40837. },
  40838. $signature: 28
  40839. };
  40840. T._closure1.prototype = {
  40841. call$1: function(selector) {
  40842. var t1 = this._box_0,
  40843. result = selector.assertSelector$1$allowParent(!t1.first);
  40844. t1.first = false;
  40845. return result;
  40846. },
  40847. $signature: 157
  40848. };
  40849. T._closure2.prototype = {
  40850. call$2: function($parent, child) {
  40851. return child.resolveParentSelectors$1($parent);
  40852. },
  40853. $signature: 158
  40854. };
  40855. T.closure12.prototype = {
  40856. call$1: function($arguments) {
  40857. var selectors = J.$index$asx($arguments, 0).get$asList();
  40858. if (selectors.length === 0)
  40859. throw H.wrapException(E.SassScriptException$(string$.x24selec));
  40860. return new H.MappedListIterable(selectors, new T._closure(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList*>")).reduce$1(0, new T._closure0()).get$asSassList();
  40861. },
  40862. $signature: 28
  40863. };
  40864. T._closure.prototype = {
  40865. call$1: function(selector) {
  40866. return selector.assertSelector$0();
  40867. },
  40868. $signature: 157
  40869. };
  40870. T._closure0.prototype = {
  40871. call$2: function($parent, child) {
  40872. var t1 = child.components;
  40873. return D.SelectorList$(new H.MappedListIterable(t1, new T.__closure($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector*>"))).resolveParentSelectors$1($parent);
  40874. },
  40875. $signature: 158
  40876. };
  40877. T.__closure.prototype = {
  40878. call$1: function(complex) {
  40879. var newCompound, t2, cur,
  40880. t1 = complex.components,
  40881. compound = C.JSArray_methods.get$first(t1);
  40882. if (compound instanceof X.CompoundSelector) {
  40883. newCompound = T._prependParent(compound);
  40884. if (newCompound == null)
  40885. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  40886. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  40887. t2.push(newCompound);
  40888. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  40889. cur = t1.__internal$_current;
  40890. t2.push(cur);
  40891. }
  40892. return S.ComplexSelector$(t2, false);
  40893. } else
  40894. throw H.wrapException(E.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  40895. },
  40896. $signature: 82
  40897. };
  40898. T.closure11.prototype = {
  40899. call$1: function($arguments) {
  40900. var t1 = J.getInterceptor$asx($arguments),
  40901. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  40902. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  40903. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets).get$asSassList();
  40904. },
  40905. $signature: 28
  40906. };
  40907. T.closure10.prototype = {
  40908. call$1: function($arguments) {
  40909. var t1 = J.getInterceptor$asx($arguments),
  40910. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  40911. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  40912. return F.Extender__extendOrReplace(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace).get$asSassList();
  40913. },
  40914. $signature: 28
  40915. };
  40916. T.closure9.prototype = {
  40917. call$1: function($arguments) {
  40918. var t1 = J.getInterceptor$asx($arguments),
  40919. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  40920. return result == null ? C.C_SassNull0 : result.get$asSassList();
  40921. },
  40922. $signature: 4
  40923. };
  40924. T.closure16.prototype = {
  40925. call$1: function($arguments) {
  40926. var t1 = J.getInterceptor$asx($arguments),
  40927. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  40928. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  40929. return Y.listIsSuperselector(selector1.components, selector2.components) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  40930. },
  40931. $signature: 22
  40932. };
  40933. T.closure15.prototype = {
  40934. call$1: function($arguments) {
  40935. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  40936. return D.SassList$(new H.MappedListIterable(t1, new T._closure3(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), C.ListSeparator_comma, false);
  40937. },
  40938. $signature: 28
  40939. };
  40940. T._closure3.prototype = {
  40941. call$1: function(simple) {
  40942. return new D.SassString(J.toString$0$(simple), false);
  40943. },
  40944. $signature: 239
  40945. };
  40946. T.closure14.prototype = {
  40947. call$1: function($arguments) {
  40948. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  40949. },
  40950. $signature: 28
  40951. };
  40952. D.closure8.prototype = {
  40953. call$1: function($arguments) {
  40954. var string = J.$index$asx($arguments, 0).assertString$1("string");
  40955. if (!string.hasQuotes)
  40956. return string;
  40957. return new D.SassString(string.text, false);
  40958. },
  40959. $signature: 15
  40960. };
  40961. D.closure7.prototype = {
  40962. call$1: function($arguments) {
  40963. var string = J.$index$asx($arguments, 0).assertString$1("string");
  40964. if (string.hasQuotes)
  40965. return string;
  40966. return new D.SassString(string.text, true);
  40967. },
  40968. $signature: 15
  40969. };
  40970. D.closure3.prototype = {
  40971. call$1: function($arguments) {
  40972. return T.SassNumber$(J.$index$asx($arguments, 0).assertString$1("string").get$sassLength(), null);
  40973. },
  40974. $signature: 9
  40975. };
  40976. D.closure2.prototype = {
  40977. call$1: function($arguments) {
  40978. var indexInt, codeUnitIndex, _s5_ = "index",
  40979. t1 = J.getInterceptor$asx($arguments),
  40980. string = t1.$index($arguments, 0).assertString$1("string"),
  40981. insert = t1.$index($arguments, 1).assertString$1("insert"),
  40982. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  40983. index.assertNoUnits$1(_s5_);
  40984. indexInt = index.assertInt$1(_s5_);
  40985. if (indexInt < 0)
  40986. indexInt = string.get$sassLength() + indexInt + 2;
  40987. t1 = string.text;
  40988. codeUnitIndex = B.codepointIndexToCodeUnitIndex(t1, D._codepointForIndex(indexInt, string.get$sassLength(), false));
  40989. return new D.SassString(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  40990. },
  40991. $signature: 15
  40992. };
  40993. D.closure1.prototype = {
  40994. call$1: function($arguments) {
  40995. var t1 = J.getInterceptor$asx($arguments),
  40996. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  40997. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  40998. if (codeUnitIndex === -1)
  40999. return C.C_SassNull0;
  41000. return T.SassNumber$(B.codeUnitIndexToCodepointIndex(t2, codeUnitIndex) + 1, null);
  41001. },
  41002. $signature: 4
  41003. };
  41004. D.closure0.prototype = {
  41005. call$1: function($arguments) {
  41006. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  41007. t1 = J.getInterceptor$asx($arguments),
  41008. string = t1.$index($arguments, 0).assertString$1("string"),
  41009. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  41010. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  41011. start.assertNoUnits$1("start");
  41012. end.assertNoUnits$1("end");
  41013. lengthInCodepoints = string.get$sassLength();
  41014. endInt = end.assertInt$0();
  41015. if (endInt === 0)
  41016. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  41017. startCodepoint = D._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
  41018. endCodepoint = D._codepointForIndex(endInt, lengthInCodepoints, true);
  41019. if (endCodepoint === lengthInCodepoints)
  41020. --endCodepoint;
  41021. if (endCodepoint < startCodepoint)
  41022. return string.hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  41023. t1 = string.text;
  41024. return new D.SassString(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex(t1, startCodepoint), B.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string.hasQuotes);
  41025. },
  41026. $signature: 15
  41027. };
  41028. D.closure6.prototype = {
  41029. call$1: function($arguments) {
  41030. var t1, t2, t3, i, t4, t5,
  41031. string = J.$index$asx($arguments, 0).assertString$1("string");
  41032. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  41033. t5 = t3._codeUnitAt$1(t1, i);
  41034. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  41035. }
  41036. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  41037. },
  41038. $signature: 15
  41039. };
  41040. D.closure5.prototype = {
  41041. call$1: function($arguments) {
  41042. var t1, t2, t3, i, t4, t5,
  41043. string = J.$index$asx($arguments, 0).assertString$1("string");
  41044. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  41045. t5 = t3._codeUnitAt$1(t1, i);
  41046. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  41047. }
  41048. return new D.SassString(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  41049. },
  41050. $signature: 15
  41051. };
  41052. D.closure4.prototype = {
  41053. call$1: function($arguments) {
  41054. var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
  41055. $._previousUniqueId = t1;
  41056. if (t1 > Math.pow(36, 6))
  41057. $._previousUniqueId = C.JSInt_methods.$mod($.$get$_previousUniqueId(), H._asIntS(Math.pow(36, 6)));
  41058. return new D.SassString("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId(), 36), 6, "0"), false);
  41059. },
  41060. $signature: 15
  41061. };
  41062. R.ImportCache.prototype = {
  41063. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  41064. var resolvedUrl, canonicalUrl;
  41065. if (baseImporter != null) {
  41066. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  41067. canonicalUrl = this._canonicalize$3(baseImporter, resolvedUrl, forImport);
  41068. if (canonicalUrl != null)
  41069. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri);
  41070. }
  41071. return this._canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new R.ImportCache_canonicalize_closure(this, url, forImport));
  41072. },
  41073. canonicalize$3$baseImporter$baseUrl: function(url, baseImporter, baseUrl) {
  41074. return this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, false);
  41075. },
  41076. _canonicalize$3: function(importer, url, forImport) {
  41077. var result = forImport ? B.inImportRule(new R.ImportCache__canonicalize_closure(importer, url)) : importer.canonicalize$1(url);
  41078. if ((result == null ? null : result.get$scheme()) === "")
  41079. this._logger.warn$2$deprecation(0, "Importer " + H.S(importer) + " canonicalized " + H.S(url) + " to " + H.S(result) + string$.x2e_Rela, true);
  41080. return result;
  41081. },
  41082. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  41083. var t1, stylesheet,
  41084. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  41085. if (tuple == null)
  41086. return null;
  41087. t1 = tuple.item1;
  41088. stylesheet = this.importCanonical$3(t1, tuple.item2, tuple.item3);
  41089. if (stylesheet == null)
  41090. return null;
  41091. return new S.Tuple2(t1, stylesheet, type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet);
  41092. },
  41093. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  41094. return this._importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl));
  41095. },
  41096. importCanonical$2: function(importer, canonicalUrl) {
  41097. return this.importCanonical$3(importer, canonicalUrl, null);
  41098. },
  41099. humanize$1: function(canonicalUrl) {
  41100. var t2, url,
  41101. t1 = this._canonicalizeCache;
  41102. t1 = t1.get$values(t1);
  41103. t2 = H._instanceType(t1);
  41104. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new R.ImportCache_humanize_closure1(), type$.legacy_Uri, type$.dynamic);
  41105. if (url == null)
  41106. return canonicalUrl;
  41107. t1 = $.$get$url();
  41108. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  41109. },
  41110. clearImport$1: function(canonicalUrl) {
  41111. this._resultsCache.remove$1(0, canonicalUrl);
  41112. this._importCache.remove$1(0, canonicalUrl);
  41113. }
  41114. };
  41115. R.ImportCache_canonicalize_closure.prototype = {
  41116. call$0: function() {
  41117. var t1, t2, t3, t4, t5, _i, importer, canonicalUrl;
  41118. for (t1 = this.$this, t2 = t1._importers, t3 = t2.length, t4 = this.url, t5 = this.forImport, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  41119. importer = t2[_i];
  41120. canonicalUrl = t1._canonicalize$3(importer, t4, t5);
  41121. if (canonicalUrl != null)
  41122. return new S.Tuple3(importer, canonicalUrl, t4, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri);
  41123. }
  41124. return null;
  41125. },
  41126. $signature: 108
  41127. };
  41128. R.ImportCache__canonicalize_closure.prototype = {
  41129. call$0: function() {
  41130. return this.importer.canonicalize$1(this.url);
  41131. },
  41132. $signature: 161
  41133. };
  41134. R.ImportCache_importCanonical_closure.prototype = {
  41135. call$0: function() {
  41136. var t3, _this = this,
  41137. t1 = _this.canonicalUrl,
  41138. result = _this.importer.load$1(0, t1),
  41139. t2 = _this.$this;
  41140. t2._resultsCache.$indexSet(0, t1, result);
  41141. t3 = _this.originalUrl;
  41142. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  41143. return V.Stylesheet_Stylesheet$parse(result.contents, result.syntax, t2._logger, t1);
  41144. },
  41145. $signature: 59
  41146. };
  41147. R.ImportCache_humanize_closure.prototype = {
  41148. call$1: function(tuple) {
  41149. var t1 = tuple == null ? null : tuple.item2;
  41150. return J.$eq$(t1, this.canonicalUrl);
  41151. },
  41152. $signature: 281
  41153. };
  41154. R.ImportCache_humanize_closure0.prototype = {
  41155. call$1: function(tuple) {
  41156. return tuple.item3;
  41157. },
  41158. $signature: 279
  41159. };
  41160. R.ImportCache_humanize_closure1.prototype = {
  41161. call$1: function(url) {
  41162. return J.get$length$asx(J.get$path$x(url));
  41163. },
  41164. $signature: 43
  41165. };
  41166. M.Importer.prototype = {
  41167. modificationTime$1: function(url) {
  41168. return new P.DateTime(Date.now(), false);
  41169. },
  41170. couldCanonicalize$2: function(url, canonicalUrl) {
  41171. return true;
  41172. }
  41173. };
  41174. B.AsyncImporter.prototype = {};
  41175. F.FilesystemImporter.prototype = {
  41176. canonicalize$1: function(url) {
  41177. var t1, resolved;
  41178. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  41179. return null;
  41180. t1 = $.$get$context();
  41181. resolved = B.resolveImportPath(D.join(this._loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  41182. if (resolved == null)
  41183. t1 = null;
  41184. else
  41185. t1 = t1.toUri$1(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? F._realCasePath(D.absolute(t1.normalize$1(resolved))) : t1.canonicalize$1(resolved));
  41186. return t1;
  41187. },
  41188. load$1: function(_, url) {
  41189. var path = $.$get$context().style.pathFromUri$1(M._parseUri(url)),
  41190. t1 = B.readFile(path),
  41191. t2 = M.Syntax_forPath(path),
  41192. t3 = url.get$scheme();
  41193. if (t3 === "")
  41194. H.throwExpression(P.ArgumentError$value(url, "sourceMapUrl", "must be absolute"));
  41195. return new E.ImporterResult(t1, url, t2);
  41196. },
  41197. modificationTime$1: function(url) {
  41198. return B.modificationTime($.$get$context().style.pathFromUri$1(M._parseUri(url)));
  41199. },
  41200. couldCanonicalize$2: function(url, canonicalUrl) {
  41201. var t1, t2, t3, basename, canonicalBasename;
  41202. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  41203. return false;
  41204. if (canonicalUrl.get$scheme() !== "file")
  41205. return false;
  41206. t1 = $.$get$url();
  41207. t2 = url.get$path(url);
  41208. t3 = t1.style;
  41209. basename = X.ParsedPath_ParsedPath$parse(t2, t3).get$basename();
  41210. canonicalBasename = X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t3).get$basename();
  41211. if (!J.startsWith$1$s(basename, "_") && J.startsWith$1$s(canonicalBasename, "_"))
  41212. canonicalBasename = J.substring$1$s(canonicalBasename, 1);
  41213. return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
  41214. },
  41215. toString$0: function(_) {
  41216. return this._loadPath;
  41217. }
  41218. };
  41219. E.ImporterResult.prototype = {
  41220. get$sourceMapUrl: function() {
  41221. return this._sourceMapUrl;
  41222. }
  41223. };
  41224. B.resolveImportPath_closure.prototype = {
  41225. call$0: function() {
  41226. return B._exactlyOne(B._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  41227. },
  41228. $signature: 17
  41229. };
  41230. B.resolveImportPath_closure0.prototype = {
  41231. call$0: function() {
  41232. return B._exactlyOne(B._tryPathWithExtensions(this.path + ".import"));
  41233. },
  41234. $signature: 17
  41235. };
  41236. B._tryPathAsDirectory_closure.prototype = {
  41237. call$0: function() {
  41238. return B._exactlyOne(B._tryPathWithExtensions(D.join(this.path, "index.import", null)));
  41239. },
  41240. $signature: 17
  41241. };
  41242. B._exactlyOne_closure.prototype = {
  41243. call$1: function(path) {
  41244. var t1 = $.$get$context();
  41245. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  41246. },
  41247. $signature: 6
  41248. };
  41249. Z.InterpolationBuffer.prototype = {
  41250. add$1: function(_, expression) {
  41251. this._flushText$0();
  41252. this._interpolation_buffer$_contents.push(expression);
  41253. },
  41254. addInterpolation$1: function(interpolation) {
  41255. var first, t1, _this = this,
  41256. toAdd = interpolation.contents;
  41257. if (toAdd.length === 0)
  41258. return;
  41259. first = C.JSArray_methods.get$first(toAdd);
  41260. if (typeof first == "string") {
  41261. _this._interpolation_buffer$_text._contents += first;
  41262. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  41263. }
  41264. _this._flushText$0();
  41265. t1 = _this._interpolation_buffer$_contents;
  41266. C.JSArray_methods.addAll$1(t1, toAdd);
  41267. if (typeof C.JSArray_methods.get$last(t1) == "string")
  41268. _this._interpolation_buffer$_text._contents += H.S(t1.pop());
  41269. },
  41270. _flushText$0: function() {
  41271. var t1 = this._interpolation_buffer$_text,
  41272. t2 = t1._contents;
  41273. if (t2.length === 0)
  41274. return;
  41275. this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  41276. t1._contents = "";
  41277. },
  41278. interpolation$1: function(span) {
  41279. var t2, t3, _i,
  41280. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  41281. for (t2 = this._interpolation_buffer$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  41282. t1.push(t2[_i]);
  41283. t2 = this._interpolation_buffer$_text._contents;
  41284. if (t2.length !== 0)
  41285. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  41286. return X.Interpolation$(t1, span);
  41287. },
  41288. toString$0: function(_) {
  41289. var t1, t2, _i, t3, element;
  41290. for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  41291. element = t1[_i];
  41292. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  41293. }
  41294. t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
  41295. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41296. }
  41297. };
  41298. F._realCasePath_closure.prototype = {
  41299. call$1: function(realPath) {
  41300. return B.equalsIgnoreCase(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.component);
  41301. },
  41302. $signature: 5
  41303. };
  41304. B.FileSystemException.prototype = {
  41305. toString$0: function(_) {
  41306. var t1 = $.$get$context();
  41307. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  41308. },
  41309. get$message: function(receiver) {
  41310. return this.message;
  41311. },
  41312. get$path: function(receiver) {
  41313. return this.path;
  41314. }
  41315. };
  41316. B.Stderr.prototype = {
  41317. writeln$1: function(object) {
  41318. J.write$1$x(this._stderr, H.S(object == null ? "" : object) + "\n");
  41319. },
  41320. writeln$0: function() {
  41321. return this.writeln$1(null);
  41322. }
  41323. };
  41324. B._readFile_closure.prototype = {
  41325. call$0: function() {
  41326. return J.readFileSync$2$x(D.fs(), this.path, this.encoding);
  41327. },
  41328. $signature: 66
  41329. };
  41330. B.writeFile_closure.prototype = {
  41331. call$0: function() {
  41332. return J.writeFileSync$2$x(D.fs(), this.path, this.contents);
  41333. },
  41334. $signature: 1
  41335. };
  41336. B.deleteFile_closure.prototype = {
  41337. call$0: function() {
  41338. return J.unlinkSync$1$x(D.fs(), this.path);
  41339. },
  41340. $signature: 1
  41341. };
  41342. B.readStdin_closure.prototype = {
  41343. call$1: function(result) {
  41344. this._box_0.contents = result;
  41345. this.completer.complete$1(result);
  41346. },
  41347. $signature: 275
  41348. };
  41349. B.readStdin_closure0.prototype = {
  41350. call$1: function(chunk) {
  41351. this.sink.add$1(0, type$.legacy_List_legacy_int._as(chunk));
  41352. },
  41353. call$0: function() {
  41354. return this.call$1(null);
  41355. },
  41356. "call*": "call$1",
  41357. $requiredArgCount: 0,
  41358. $defaultValues: function() {
  41359. return [null];
  41360. },
  41361. $signature: 65
  41362. };
  41363. B.readStdin_closure1.prototype = {
  41364. call$1: function(_) {
  41365. this.sink.close$0(0);
  41366. },
  41367. call$0: function() {
  41368. return this.call$1(null);
  41369. },
  41370. "call*": "call$1",
  41371. $requiredArgCount: 0,
  41372. $defaultValues: function() {
  41373. return [null];
  41374. },
  41375. $signature: 65
  41376. };
  41377. B.readStdin_closure2.prototype = {
  41378. call$1: function(e) {
  41379. var t1 = $.$get$stderr();
  41380. t1.writeln$1("Failed to read from stdin");
  41381. t1.writeln$1(e);
  41382. this.completer.completeError$1(e);
  41383. },
  41384. call$0: function() {
  41385. return this.call$1(null);
  41386. },
  41387. "call*": "call$1",
  41388. $requiredArgCount: 0,
  41389. $defaultValues: function() {
  41390. return [null];
  41391. },
  41392. $signature: 65
  41393. };
  41394. B.fileExists_closure.prototype = {
  41395. call$0: function() {
  41396. var error, systemError, exception,
  41397. t1 = this.path;
  41398. if (!J.existsSync$1$x(D.fs(), t1))
  41399. return false;
  41400. try {
  41401. t1 = J.isFile$0$x(J.statSync$1$x(D.fs(), t1));
  41402. return t1;
  41403. } catch (exception) {
  41404. error = H.unwrapException(exception);
  41405. systemError = type$.legacy_JsSystemError._as(error);
  41406. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  41407. return false;
  41408. throw exception;
  41409. }
  41410. },
  41411. $signature: 36
  41412. };
  41413. B.dirExists_closure.prototype = {
  41414. call$0: function() {
  41415. var error, systemError, exception,
  41416. t1 = this.path;
  41417. if (!J.existsSync$1$x(D.fs(), t1))
  41418. return false;
  41419. try {
  41420. t1 = J.isDirectory$0$x(J.statSync$1$x(D.fs(), t1));
  41421. return t1;
  41422. } catch (exception) {
  41423. error = H.unwrapException(exception);
  41424. systemError = type$.legacy_JsSystemError._as(error);
  41425. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  41426. return false;
  41427. throw exception;
  41428. }
  41429. },
  41430. $signature: 36
  41431. };
  41432. B.ensureDir_closure.prototype = {
  41433. call$0: function() {
  41434. var error, systemError, exception, t1;
  41435. try {
  41436. J.mkdirSync$1$x(D.fs(), this.path);
  41437. } catch (exception) {
  41438. error = H.unwrapException(exception);
  41439. systemError = type$.legacy_JsSystemError._as(error);
  41440. if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
  41441. return;
  41442. if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
  41443. throw exception;
  41444. t1 = this.path;
  41445. B.ensureDir($.$get$context().dirname$1(t1));
  41446. J.mkdirSync$1$x(D.fs(), t1);
  41447. }
  41448. },
  41449. $signature: 0
  41450. };
  41451. B.listDir_closure.prototype = {
  41452. call$0: function() {
  41453. var t1 = this.path;
  41454. if (!this.recursive)
  41455. return J.map$1$1$ax(J.readdirSync$1$x(D.fs(), t1), new B.listDir__closure(t1), type$.legacy_String).where$1(0, new B.listDir__closure0());
  41456. else
  41457. return new B.listDir_closure_list().call$1(t1);
  41458. },
  41459. $signature: 169
  41460. };
  41461. B.listDir__closure.prototype = {
  41462. call$1: function(child) {
  41463. return D.join(this.path, H._asStringS(child), null);
  41464. },
  41465. $signature: 106
  41466. };
  41467. B.listDir__closure0.prototype = {
  41468. call$1: function(child) {
  41469. return !B.dirExists(child);
  41470. },
  41471. $signature: 5
  41472. };
  41473. B.listDir_closure_list.prototype = {
  41474. call$1: function($parent) {
  41475. return J.expand$1$1$ax(J.readdirSync$1$x(D.fs(), $parent), new B.listDir__list_closure($parent, this), type$.legacy_String);
  41476. },
  41477. $signature: 170
  41478. };
  41479. B.listDir__list_closure.prototype = {
  41480. call$1: function(child) {
  41481. var path = D.join(this.parent, H._asStringS(child), null);
  41482. return B.dirExists(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_legacy_String);
  41483. },
  41484. $signature: 171
  41485. };
  41486. B.modificationTime_closure.prototype = {
  41487. call$0: function() {
  41488. var t2,
  41489. t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(D.fs(), this.path)));
  41490. if (Math.abs(t1) <= 864e13)
  41491. t2 = false;
  41492. else
  41493. t2 = true;
  41494. if (t2)
  41495. H.throwExpression(P.ArgumentError$("DateTime is outside valid range: " + H.S(t1)));
  41496. P.ArgumentError_checkNotNull(false, "isUtc");
  41497. return new P.DateTime(t1, false);
  41498. },
  41499. $signature: 172
  41500. };
  41501. B.watchDir_closure.prototype = {
  41502. call$2: function(path, _) {
  41503. var t1 = this._box_0.controller;
  41504. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_add, path));
  41505. },
  41506. call$1: function(path) {
  41507. return this.call$2(path, null);
  41508. },
  41509. "call*": "call$2",
  41510. $defaultValues: function() {
  41511. return [null];
  41512. },
  41513. $signature: 173
  41514. };
  41515. B.watchDir_closure0.prototype = {
  41516. call$2: function(path, _) {
  41517. var t1 = this._box_0.controller;
  41518. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_modify, path));
  41519. },
  41520. call$1: function(path) {
  41521. return this.call$2(path, null);
  41522. },
  41523. "call*": "call$2",
  41524. $defaultValues: function() {
  41525. return [null];
  41526. },
  41527. $signature: 173
  41528. };
  41529. B.watchDir_closure1.prototype = {
  41530. call$1: function(path) {
  41531. var t1 = this._box_0.controller;
  41532. return t1 == null ? null : t1.add$1(0, new E.WatchEvent(C.ChangeType_remove, path));
  41533. },
  41534. $signature: 271
  41535. };
  41536. B.watchDir_closure2.prototype = {
  41537. call$1: function(error) {
  41538. var t1 = this._box_0.controller;
  41539. return t1 == null ? null : t1.addError$1(error);
  41540. },
  41541. $signature: 49
  41542. };
  41543. B.watchDir_closure3.prototype = {
  41544. call$0: function() {
  41545. var controller = P.StreamController_StreamController(new B.watchDir__closure(this.watcher), null, null, null, false, type$.legacy_WatchEvent);
  41546. this._box_0.controller = controller;
  41547. this.completer.complete$1(new P._ControllerStream(controller, H._instanceType(controller)._eval$1("_ControllerStream<1>")));
  41548. },
  41549. "call*": "call$0",
  41550. $requiredArgCount: 0,
  41551. $signature: 0
  41552. };
  41553. B.watchDir__closure.prototype = {
  41554. call$0: function() {
  41555. J.close$0$x(this.watcher);
  41556. },
  41557. "call*": "call$0",
  41558. $requiredArgCount: 0,
  41559. $signature: 0
  41560. };
  41561. F._QuietLogger.prototype = {
  41562. warn$4$deprecation$span$trace: function(_, message, deprecation, span, trace) {
  41563. },
  41564. warn$2$span: function($receiver, message, span) {
  41565. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  41566. },
  41567. warn$2$deprecation: function($receiver, message, deprecation) {
  41568. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  41569. },
  41570. warn$3$deprecation$span: function($receiver, message, deprecation, span) {
  41571. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  41572. },
  41573. warn$2$trace: function($receiver, message, trace) {
  41574. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  41575. },
  41576. debug$2: function(_, message, span) {
  41577. }
  41578. };
  41579. S.StderrLogger.prototype = {
  41580. warn$4$deprecation$span$trace: function(_, message, deprecation, span, trace) {
  41581. var t2, t3,
  41582. t1 = this.color;
  41583. if (t1) {
  41584. t2 = $.$get$stderr();
  41585. t3 = t2._stderr;
  41586. J.write$1$x(t3, "\x1b[33m\x1b[1m");
  41587. if (deprecation)
  41588. J.write$1$x(t3, "Deprecation ");
  41589. J.write$1$x(t3, "Warning\x1b[0m");
  41590. } else {
  41591. if (deprecation)
  41592. J.write$1$x($.$get$stderr()._stderr, "DEPRECATION ");
  41593. t2 = $.$get$stderr();
  41594. J.write$1$x(t2._stderr, "WARNING");
  41595. }
  41596. if (span == null)
  41597. t2.writeln$1(": " + H.S(message));
  41598. else if (trace != null)
  41599. t2.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(t1));
  41600. else
  41601. t2.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), t1));
  41602. if (trace != null)
  41603. t2.writeln$1(B.indent(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  41604. t2.writeln$0();
  41605. },
  41606. warn$2$span: function($receiver, message, span) {
  41607. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  41608. },
  41609. warn$2$deprecation: function($receiver, message, deprecation) {
  41610. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  41611. },
  41612. warn$3$deprecation$span: function($receiver, message, deprecation, span) {
  41613. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  41614. },
  41615. warn$2$trace: function($receiver, message, trace) {
  41616. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  41617. },
  41618. debug$2: function(_, message, span) {
  41619. var url, t3, t4,
  41620. t1 = span.file,
  41621. t2 = span._file$_start;
  41622. if (Y.FileLocation$_(t1, t2).file.url == null)
  41623. url = "-";
  41624. else {
  41625. t3 = Y.FileLocation$_(t1, t2);
  41626. url = $.$get$context().prettyUri$1(t3.file.url);
  41627. }
  41628. t3 = $.$get$stderr();
  41629. t4 = H.S(url) + ":";
  41630. t2 = Y.FileLocation$_(t1, t2);
  41631. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  41632. t4 = t3._stderr;
  41633. J.write$1$x(t4, t2);
  41634. J.write$1$x(t4, this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG");
  41635. t3.writeln$1(": " + H.S(message));
  41636. }
  41637. };
  41638. T.TrackingLogger.prototype = {
  41639. warn$4$deprecation$span$trace: function(_, message, deprecation, span, trace) {
  41640. this._emittedWarning = true;
  41641. this._tracking$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
  41642. },
  41643. warn$2$span: function($receiver, message, span) {
  41644. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  41645. },
  41646. warn$2$deprecation: function($receiver, message, deprecation) {
  41647. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  41648. },
  41649. warn$3$deprecation$span: function($receiver, message, deprecation, span) {
  41650. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  41651. },
  41652. warn$2$trace: function($receiver, message, trace) {
  41653. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  41654. },
  41655. debug$2: function(_, message, span) {
  41656. this._emittedDebug = true;
  41657. this._tracking$_logger.debug$2(0, message, span);
  41658. }
  41659. };
  41660. Q.BuiltInModule.prototype = {
  41661. get$upstream: function() {
  41662. return C.List_empty3;
  41663. },
  41664. get$variableNodes: function() {
  41665. return C.Map_empty1;
  41666. },
  41667. get$extender: function() {
  41668. return C.C_EmptyExtender;
  41669. },
  41670. get$css: function(_) {
  41671. return new V.CssStylesheet(C.List_empty0, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  41672. },
  41673. get$transitivelyContainsCss: function() {
  41674. return false;
  41675. },
  41676. get$transitivelyContainsExtensions: function() {
  41677. return false;
  41678. },
  41679. setVariable$3: function($name, value, nodeWithSpan) {
  41680. if (!this.variables.containsKey$1($name))
  41681. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  41682. throw H.wrapException(E.SassScriptException$("Cannot modify built-in variable."));
  41683. },
  41684. variableIdentity$1: function($name) {
  41685. return this;
  41686. },
  41687. cloneCss$0: function() {
  41688. return this;
  41689. },
  41690. $isModule: 1,
  41691. get$url: function() {
  41692. return this.url;
  41693. },
  41694. get$functions: function(receiver) {
  41695. return this.functions;
  41696. },
  41697. get$mixins: function() {
  41698. return this.mixins;
  41699. },
  41700. get$variables: function() {
  41701. return this.variables;
  41702. }
  41703. };
  41704. R.ForwardedModuleView.prototype = {
  41705. get$url: function() {
  41706. return this._forwarded_view$_inner.get$url();
  41707. },
  41708. get$upstream: function() {
  41709. return this._forwarded_view$_inner.get$upstream();
  41710. },
  41711. get$extender: function() {
  41712. return this._forwarded_view$_inner.get$extender();
  41713. },
  41714. get$css: function(_) {
  41715. var t1 = this._forwarded_view$_inner;
  41716. return t1.get$css(t1);
  41717. },
  41718. get$transitivelyContainsCss: function() {
  41719. return this._forwarded_view$_inner.get$transitivelyContainsCss();
  41720. },
  41721. get$transitivelyContainsExtensions: function() {
  41722. return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
  41723. },
  41724. setVariable$3: function($name, value, nodeWithSpan) {
  41725. var _s19_ = "Undefined variable.",
  41726. t1 = this._rule,
  41727. t2 = t1.shownVariables;
  41728. if (t2 != null && !t2._base.contains$1(0, $name))
  41729. throw H.wrapException(E.SassScriptException$(_s19_));
  41730. else {
  41731. t2 = t1.hiddenVariables;
  41732. if (t2 != null && t2._base.contains$1(0, $name))
  41733. throw H.wrapException(E.SassScriptException$(_s19_));
  41734. }
  41735. t1 = t1.prefix;
  41736. if (t1 != null) {
  41737. if (!C.JSString_methods.startsWith$1($name, t1))
  41738. throw H.wrapException(E.SassScriptException$(_s19_));
  41739. $name = C.JSString_methods.substring$1($name, t1.length);
  41740. }
  41741. return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
  41742. },
  41743. variableIdentity$1: function($name) {
  41744. var t1 = this._rule.prefix;
  41745. if (t1 != null)
  41746. $name = J.substring$1$s($name, t1.length);
  41747. return this._forwarded_view$_inner.variableIdentity$1($name);
  41748. },
  41749. $eq: function(_, other) {
  41750. if (other == null)
  41751. return false;
  41752. return other instanceof R.ForwardedModuleView && J.$eq$(this._forwarded_view$_inner, other._forwarded_view$_inner) && this._rule === other._rule;
  41753. },
  41754. get$hashCode: function(_) {
  41755. return (J.get$hashCode$(this._forwarded_view$_inner) ^ H.Primitives_objectHashCode(this._rule)) >>> 0;
  41756. },
  41757. cloneCss$0: function() {
  41758. return R.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._eval$1("1*"));
  41759. },
  41760. toString$0: function(_) {
  41761. return "forwarded " + H.S(this._forwarded_view$_inner);
  41762. },
  41763. $isModule: 1,
  41764. get$variables: function() {
  41765. return this.variables;
  41766. },
  41767. get$variableNodes: function() {
  41768. return this.variableNodes;
  41769. },
  41770. get$functions: function(receiver) {
  41771. return this.functions;
  41772. },
  41773. get$mixins: function() {
  41774. return this.mixins;
  41775. }
  41776. };
  41777. B.ShadowedModuleView.prototype = {
  41778. get$url: function() {
  41779. return this._shadowed_view$_inner.get$url();
  41780. },
  41781. get$upstream: function() {
  41782. return this._shadowed_view$_inner.get$upstream();
  41783. },
  41784. get$extender: function() {
  41785. return this._shadowed_view$_inner.get$extender();
  41786. },
  41787. get$css: function(_) {
  41788. var t1 = this._shadowed_view$_inner;
  41789. return t1.get$css(t1);
  41790. },
  41791. get$transitivelyContainsCss: function() {
  41792. return this._shadowed_view$_inner.get$transitivelyContainsCss();
  41793. },
  41794. get$transitivelyContainsExtensions: function() {
  41795. return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
  41796. },
  41797. setVariable$3: function($name, value, nodeWithSpan) {
  41798. if (!this.variables.containsKey$1($name))
  41799. throw H.wrapException(E.SassScriptException$("Undefined variable."));
  41800. else
  41801. return this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
  41802. },
  41803. variableIdentity$1: function($name) {
  41804. return this._shadowed_view$_inner.variableIdentity$1($name);
  41805. },
  41806. $eq: function(_, other) {
  41807. var t1, t2, _this = this;
  41808. if (other == null)
  41809. return false;
  41810. if (other instanceof B.ShadowedModuleView)
  41811. if (_this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner)) {
  41812. t1 = _this.variables;
  41813. t1 = t1.get$keys(t1);
  41814. t2 = other.variables;
  41815. if (C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  41816. t1 = _this.functions;
  41817. t1 = t1.get$keys(t1);
  41818. t2 = other.functions;
  41819. if (C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  41820. t1 = _this.mixins;
  41821. t1 = t1.get$keys(t1);
  41822. t2 = other.mixins;
  41823. t2 = C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  41824. t1 = t2;
  41825. } else
  41826. t1 = false;
  41827. } else
  41828. t1 = false;
  41829. } else
  41830. t1 = false;
  41831. else
  41832. t1 = false;
  41833. return t1;
  41834. },
  41835. get$hashCode: function(_) {
  41836. var t1 = this._shadowed_view$_inner;
  41837. return t1.get$hashCode(t1);
  41838. },
  41839. cloneCss$0: function() {
  41840. var _this = this;
  41841. return new B.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti._eval$1("ShadowedModuleView<1*>"));
  41842. },
  41843. toString$0: function(_) {
  41844. return "shadowed " + this._shadowed_view$_inner.toString$0(0);
  41845. },
  41846. $isModule: 1,
  41847. get$variables: function() {
  41848. return this.variables;
  41849. },
  41850. get$variableNodes: function() {
  41851. return this.variableNodes;
  41852. },
  41853. get$functions: function(receiver) {
  41854. return this.functions;
  41855. },
  41856. get$mixins: function() {
  41857. return this.mixins;
  41858. }
  41859. };
  41860. Y.Chokidar.prototype = {};
  41861. Y.ChokidarOptions.prototype = {};
  41862. Y.ChokidarWatcher.prototype = {};
  41863. F.JSFunction.prototype = {};
  41864. F.NodeImporterResult.prototype = {};
  41865. B._PropertyDescriptor.prototype = {};
  41866. V.AtRootQueryParser.prototype = {
  41867. parse$0: function() {
  41868. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure(this));
  41869. }
  41870. };
  41871. V.AtRootQueryParser_parse_closure.prototype = {
  41872. call$0: function() {
  41873. var include, atRules,
  41874. t1 = this.$this,
  41875. t2 = t1.scanner;
  41876. t2.expectChar$1(40);
  41877. t1.whitespace$0();
  41878. include = t1.scanIdentifier$1("with");
  41879. if (!include)
  41880. t1.expectIdentifier$2$name("without", '"with" or "without"');
  41881. t1.whitespace$0();
  41882. t2.expectChar$1(58);
  41883. t1.whitespace$0();
  41884. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  41885. do {
  41886. atRules.add$1(0, t1.identifier$0().toLowerCase());
  41887. t1.whitespace$0();
  41888. } while (t1.lookingAtIdentifier$0());
  41889. t2.expectChar$1(41);
  41890. t2.expectDone$0();
  41891. return new V.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  41892. },
  41893. $signature: 112
  41894. };
  41895. Q.closure112.prototype = {
  41896. call$1: function($function) {
  41897. return $function.name;
  41898. },
  41899. $signature: 270
  41900. };
  41901. Q.CssParser.prototype = {
  41902. get$plainCss: function() {
  41903. return true;
  41904. },
  41905. silentComment$0: function() {
  41906. var t1 = this.scanner,
  41907. t2 = t1._string_scanner$_position;
  41908. this.super$Parser$silentComment();
  41909. this.error$2(0, string$.Silent, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  41910. },
  41911. atRule$2$root: function(child, root) {
  41912. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  41913. t1 = _this.scanner,
  41914. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41915. t1.expectChar$1(64);
  41916. $name = _this.interpolatedIdentifier$0();
  41917. _this.whitespace$0();
  41918. switch ($name.get$asPlain()) {
  41919. case "at-root":
  41920. case "content":
  41921. case "debug":
  41922. case "each":
  41923. case "error":
  41924. case "extend":
  41925. case "for":
  41926. case "function":
  41927. case "if":
  41928. case "include":
  41929. case "mixin":
  41930. case "return":
  41931. case "warn":
  41932. case "while":
  41933. _this.almostAnyValue$0();
  41934. _this.error$2(0, "This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  41935. break;
  41936. case "charset":
  41937. _this.string$0();
  41938. if (!root)
  41939. _this.error$2(0, "This at-rule is not allowed here.", t1.spanFrom$1(start));
  41940. return null;
  41941. case "import":
  41942. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  41943. next = t1.peekChar$0();
  41944. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  41945. urlSpan = t1.spanFrom$1(urlStart);
  41946. _this.whitespace$0();
  41947. queries = _this.tryImportQueries$0();
  41948. _this.expectStatementSeparator$1("@import rule");
  41949. t2 = X.Interpolation$(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), urlSpan);
  41950. t3 = t1.spanFrom$1(urlStart);
  41951. t4 = queries == null;
  41952. t5 = t4 ? null : queries.item1;
  41953. t2 = H.setRuntimeTypeInfo([new Q.StaticImport(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_legacy_Import);
  41954. t1 = t1.spanFrom$1(start);
  41955. return new B.ImportRule(P.List_List$unmodifiable(t2, type$.legacy_Import), t1);
  41956. case "media":
  41957. return _this.mediaRule$1(start);
  41958. case "-moz-document":
  41959. return _this.mozDocumentRule$2(start, $name);
  41960. case "supports":
  41961. return _this.supportsRule$1(start);
  41962. default:
  41963. return _this.unknownAtRule$2(start, $name);
  41964. }
  41965. },
  41966. identifierLike$0: function() {
  41967. var t2, $arguments, t3, t4, _this = this,
  41968. t1 = _this.scanner,
  41969. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  41970. identifier = _this.interpolatedIdentifier$0(),
  41971. plain = identifier.get$asPlain(),
  41972. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  41973. if (specialFunction != null)
  41974. return specialFunction;
  41975. t2 = t1._string_scanner$_position;
  41976. if (!t1.scanChar$1(40))
  41977. return new D.StringExpression(identifier, false);
  41978. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  41979. if (!t1.scanChar$1(41)) {
  41980. do {
  41981. _this.whitespace$0();
  41982. $arguments.push(_this.expression$1$singleEquals(true));
  41983. _this.whitespace$0();
  41984. } while (t1.scanChar$1(44));
  41985. t1.expectChar$1(41);
  41986. }
  41987. if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
  41988. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  41989. t3 = X.Interpolation$(H.setRuntimeTypeInfo([new D.StringExpression(identifier, false)], type$.JSArray_legacy_Object), identifier.span);
  41990. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  41991. t4 = type$.legacy_Expression;
  41992. return new F.FunctionExpression(null, t3, new X.ArgumentInvocation(P.List_List$unmodifiable($arguments, t4), H.ConstantMap_ConstantMap$from(C.Map_empty3, type$.legacy_String, t4), null, null, t2), t1.spanFrom$1(start));
  41993. }
  41994. };
  41995. E.KeyframeSelectorParser.prototype = {
  41996. parse$0: function() {
  41997. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure(this));
  41998. },
  41999. _percentage$0: function() {
  42000. var t3, next,
  42001. t1 = this.scanner,
  42002. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  42003. second = t1.peekChar$0();
  42004. if (!T.isDigit(second) && second !== 46)
  42005. t1.error$1(0, "Expected number.");
  42006. while (true) {
  42007. t3 = t1.peekChar$0();
  42008. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42009. break;
  42010. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42011. }
  42012. if (t1.peekChar$0() === 46) {
  42013. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42014. while (true) {
  42015. t3 = t1.peekChar$0();
  42016. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42017. break;
  42018. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42019. }
  42020. }
  42021. if (this.scanIdentifier$1("e")) {
  42022. t2 += t1.readChar$0();
  42023. next = t1.peekChar$0();
  42024. if (next === 43 || next === 45)
  42025. t2 += t1.readChar$0();
  42026. if (!T.isDigit(t1.peekChar$0()))
  42027. t1.error$1(0, "Expected digit.");
  42028. while (true) {
  42029. t3 = t1.peekChar$0();
  42030. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  42031. break;
  42032. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42033. }
  42034. }
  42035. t1.expectChar$1(37);
  42036. t2 += H.Primitives_stringFromCharCode(37);
  42037. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42038. }
  42039. };
  42040. E.KeyframeSelectorParser_parse_closure.prototype = {
  42041. call$0: function() {
  42042. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  42043. t1 = this.$this,
  42044. t2 = t1.scanner;
  42045. do {
  42046. t1.whitespace$0();
  42047. if (t1.lookingAtIdentifier$0())
  42048. if (t1.scanIdentifier$1("from"))
  42049. selectors.push("from");
  42050. else {
  42051. t1.expectIdentifier$2$name("to", '"to" or "from"');
  42052. selectors.push("to");
  42053. }
  42054. else
  42055. selectors.push(t1._percentage$0());
  42056. t1.whitespace$0();
  42057. } while (t2.scanChar$1(44));
  42058. t2.expectDone$0();
  42059. return selectors;
  42060. },
  42061. $signature: 40
  42062. };
  42063. F.MediaQueryParser.prototype = {
  42064. parse$0: function() {
  42065. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure(this));
  42066. },
  42067. _mediaQuery$0: function() {
  42068. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  42069. t1 = _this.scanner;
  42070. if (t1.peekChar$0() !== 40) {
  42071. identifier1 = _this.identifier$0();
  42072. _this.whitespace$0();
  42073. if (!_this.lookingAtIdentifier$0())
  42074. return new F.CssMediaQuery(_null, identifier1, C.List_empty);
  42075. identifier2 = _this.identifier$0();
  42076. _this.whitespace$0();
  42077. if (B.equalsIgnoreCase(identifier2, "and")) {
  42078. type = identifier1;
  42079. modifier = _null;
  42080. } else {
  42081. if (_this.scanIdentifier$1("and"))
  42082. _this.whitespace$0();
  42083. else
  42084. return new F.CssMediaQuery(identifier1, identifier2, C.List_empty);
  42085. type = identifier2;
  42086. modifier = identifier1;
  42087. }
  42088. } else {
  42089. type = _null;
  42090. modifier = type;
  42091. }
  42092. features = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  42093. do {
  42094. _this.whitespace$0();
  42095. t1.expectChar$1(40);
  42096. features.push("(" + _this.declarationValue$0() + ")");
  42097. t1.expectChar$1(41);
  42098. _this.whitespace$0();
  42099. } while (_this.scanIdentifier$1("and"));
  42100. if (type == null)
  42101. return new F.CssMediaQuery(_null, _null, P.List_List$unmodifiable(features, type$.legacy_String));
  42102. else {
  42103. t1 = P.List_List$unmodifiable(features, type$.legacy_String);
  42104. return new F.CssMediaQuery(modifier, type, t1);
  42105. }
  42106. }
  42107. };
  42108. F.MediaQueryParser_parse_closure.prototype = {
  42109. call$0: function() {
  42110. var queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery),
  42111. t1 = this.$this,
  42112. t2 = t1.scanner;
  42113. do {
  42114. t1.whitespace$0();
  42115. queries.push(t1._mediaQuery$0());
  42116. } while (t2.scanChar$1(44));
  42117. t2.expectDone$0();
  42118. return queries;
  42119. },
  42120. $signature: 113
  42121. };
  42122. G.Parser.prototype = {
  42123. _parseIdentifier$0: function() {
  42124. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure(this));
  42125. },
  42126. _isVariableDeclarationLike$0: function() {
  42127. var _this = this,
  42128. t1 = _this.scanner;
  42129. if (!t1.scanChar$1(36))
  42130. return false;
  42131. if (!_this.lookingAtIdentifier$0())
  42132. return false;
  42133. _this.identifier$0();
  42134. _this.whitespace$0();
  42135. return t1.scanChar$1(58);
  42136. },
  42137. whitespace$0: function() {
  42138. do
  42139. this.whitespaceWithoutComments$0();
  42140. while (this.scanComment$0());
  42141. },
  42142. whitespaceWithoutComments$0: function() {
  42143. var t3,
  42144. t1 = this.scanner,
  42145. t2 = t1.string.length;
  42146. while (true) {
  42147. if (t1._string_scanner$_position !== t2) {
  42148. t3 = t1.peekChar$0();
  42149. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  42150. } else
  42151. t3 = false;
  42152. if (!t3)
  42153. break;
  42154. t1.readChar$0();
  42155. }
  42156. },
  42157. spaces$0: function() {
  42158. var t3,
  42159. t1 = this.scanner,
  42160. t2 = t1.string.length;
  42161. while (true) {
  42162. if (t1._string_scanner$_position !== t2) {
  42163. t3 = t1.peekChar$0();
  42164. t3 = t3 === 32 || t3 === 9;
  42165. } else
  42166. t3 = false;
  42167. if (!t3)
  42168. break;
  42169. t1.readChar$0();
  42170. }
  42171. },
  42172. scanComment$0: function() {
  42173. var next,
  42174. t1 = this.scanner;
  42175. if (t1.peekChar$0() !== 47)
  42176. return false;
  42177. next = t1.peekChar$1(1);
  42178. if (next === 47) {
  42179. this.silentComment$0();
  42180. return true;
  42181. } else if (next === 42) {
  42182. this.loudComment$0();
  42183. return true;
  42184. } else
  42185. return false;
  42186. },
  42187. silentComment$0: function() {
  42188. var t2, t3,
  42189. t1 = this.scanner;
  42190. t1.expect$1("//");
  42191. t2 = t1.string.length;
  42192. while (true) {
  42193. if (t1._string_scanner$_position !== t2) {
  42194. t3 = t1.peekChar$0();
  42195. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  42196. } else
  42197. t3 = false;
  42198. if (!t3)
  42199. break;
  42200. t1.readChar$0();
  42201. }
  42202. },
  42203. loudComment$0: function() {
  42204. var next,
  42205. t1 = this.scanner;
  42206. t1.expect$1("/*");
  42207. for (; true;) {
  42208. if (t1.readChar$0() !== 42)
  42209. continue;
  42210. do
  42211. next = t1.readChar$0();
  42212. while (next === 42);
  42213. if (next === 47)
  42214. break;
  42215. }
  42216. },
  42217. identifier$2$normalize$unit: function(normalize, unit) {
  42218. var t2, first, _this = this,
  42219. _s20_ = "Expected identifier.",
  42220. text = new P.StringBuffer(""),
  42221. t1 = _this.scanner;
  42222. if (t1.scanChar$1(45)) {
  42223. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  42224. if (t1.scanChar$1(45)) {
  42225. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  42226. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  42227. t1 = text._contents;
  42228. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42229. }
  42230. } else
  42231. t2 = "";
  42232. first = t1.peekChar$0();
  42233. if (first == null)
  42234. t1.error$1(0, _s20_);
  42235. else if (normalize && first === 95) {
  42236. t1.readChar$0();
  42237. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  42238. } else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  42239. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  42240. else if (first === 92)
  42241. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  42242. else
  42243. t1.error$1(0, _s20_);
  42244. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  42245. t1 = text._contents;
  42246. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42247. },
  42248. identifier$0: function() {
  42249. return this.identifier$2$normalize$unit(false, false);
  42250. },
  42251. identifier$1$normalize: function(normalize) {
  42252. return this.identifier$2$normalize$unit(normalize, false);
  42253. },
  42254. identifier$1$unit: function(unit) {
  42255. return this.identifier$2$normalize$unit(false, unit);
  42256. },
  42257. _identifierBody$3$normalize$unit: function(text, normalize, unit) {
  42258. var t1, next, second, t2;
  42259. for (t1 = this.scanner; true;) {
  42260. next = t1.peekChar$0();
  42261. if (next == null)
  42262. break;
  42263. else if (unit && next === 45) {
  42264. second = t1.peekChar$1(1);
  42265. if (second != null)
  42266. if (second !== 46)
  42267. t2 = second >= 48 && second <= 57;
  42268. else
  42269. t2 = true;
  42270. else
  42271. t2 = false;
  42272. if (t2)
  42273. break;
  42274. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42275. } else if (normalize && next === 95) {
  42276. t1.readChar$0();
  42277. text._contents += H.Primitives_stringFromCharCode(45);
  42278. } else {
  42279. if (next !== 95) {
  42280. if (!(next >= 97 && next <= 122))
  42281. t2 = next >= 65 && next <= 90;
  42282. else
  42283. t2 = true;
  42284. t2 = t2 || next >= 128;
  42285. } else
  42286. t2 = true;
  42287. if (!t2) {
  42288. t2 = next >= 48 && next <= 57;
  42289. t2 = t2 || next === 45;
  42290. } else
  42291. t2 = true;
  42292. if (t2)
  42293. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42294. else if (next === 92)
  42295. text._contents += H.S(this.escape$0());
  42296. else
  42297. break;
  42298. }
  42299. }
  42300. },
  42301. _identifierBody$1: function(text) {
  42302. return this._identifierBody$3$normalize$unit(text, false, false);
  42303. },
  42304. string$0: function() {
  42305. var t2, buffer, next,
  42306. t1 = this.scanner,
  42307. quote = t1.readChar$0();
  42308. if (quote !== 39 && quote !== 34) {
  42309. t2 = t1._string_scanner$_position;
  42310. t1.error$2$position(0, "Expected string.", t2 - 1);
  42311. }
  42312. buffer = new P.StringBuffer("");
  42313. for (; true;) {
  42314. next = t1.peekChar$0();
  42315. if (next === quote) {
  42316. t1.readChar$0();
  42317. break;
  42318. } else if (next == null || next === 10 || next === 13 || next === 12)
  42319. t1.error$1(0, "Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  42320. else if (next === 92) {
  42321. t2 = t1.peekChar$1(1);
  42322. if (t2 === 10 || t2 === 13 || t2 === 12) {
  42323. t1.readChar$0();
  42324. t1.readChar$0();
  42325. } else
  42326. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  42327. } else
  42328. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42329. }
  42330. t1 = buffer._contents;
  42331. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42332. },
  42333. naturalNumber$0: function() {
  42334. var number, t2,
  42335. t1 = this.scanner,
  42336. first = t1.readChar$0();
  42337. if (!T.isDigit(first))
  42338. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  42339. number = first - 48;
  42340. while (true) {
  42341. t2 = t1.peekChar$0();
  42342. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  42343. break;
  42344. number = number * 10 + (t1.readChar$0() - 48);
  42345. }
  42346. return number;
  42347. },
  42348. declarationValue$1$allowEmpty: function(allowEmpty) {
  42349. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  42350. buffer = new P.StringBuffer(""),
  42351. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  42352. $label0$1:
  42353. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  42354. next = t1.peekChar$0();
  42355. switch (next) {
  42356. case 92:
  42357. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  42358. wroteNewline = false;
  42359. break;
  42360. case 34:
  42361. case 39:
  42362. start = t1._string_scanner$_position;
  42363. t2.call$0();
  42364. end = t1._string_scanner$_position;
  42365. buffer._contents += J.substring$2$s(t1.string, start, end);
  42366. wroteNewline = false;
  42367. break;
  42368. case 47:
  42369. if (t1.peekChar$1(1) === 42) {
  42370. t3 = _this.get$loudComment();
  42371. start = t1._string_scanner$_position;
  42372. t3.call$0();
  42373. end = t1._string_scanner$_position;
  42374. buffer._contents += J.substring$2$s(t1.string, start, end);
  42375. } else
  42376. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42377. wroteNewline = false;
  42378. break;
  42379. case 32:
  42380. case 9:
  42381. if (!wroteNewline) {
  42382. t3 = t1.peekChar$1(1);
  42383. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  42384. } else
  42385. t3 = true;
  42386. if (t3)
  42387. buffer._contents += H.Primitives_stringFromCharCode(32);
  42388. t1.readChar$0();
  42389. break;
  42390. case 10:
  42391. case 13:
  42392. case 12:
  42393. t3 = t1.peekChar$1(-1);
  42394. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  42395. buffer._contents += "\n";
  42396. t1.readChar$0();
  42397. wroteNewline = true;
  42398. break;
  42399. case 40:
  42400. case 123:
  42401. case 91:
  42402. buffer._contents += H.Primitives_stringFromCharCode(next);
  42403. brackets.push(T.opposite(t1.readChar$0()));
  42404. wroteNewline = false;
  42405. break;
  42406. case 41:
  42407. case 125:
  42408. case 93:
  42409. if (brackets.length === 0)
  42410. break $label0$1;
  42411. buffer._contents += H.Primitives_stringFromCharCode(next);
  42412. t1.expectChar$1(brackets.pop());
  42413. wroteNewline = false;
  42414. break;
  42415. case 59:
  42416. if (brackets.length === 0)
  42417. break $label0$1;
  42418. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42419. break;
  42420. case 117:
  42421. case 85:
  42422. url = _this.tryUrl$0();
  42423. if (url != null)
  42424. buffer._contents += url;
  42425. else
  42426. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42427. wroteNewline = false;
  42428. break;
  42429. default:
  42430. if (next == null)
  42431. break $label0$1;
  42432. if (_this.lookingAtIdentifier$0())
  42433. buffer._contents += _this.identifier$0();
  42434. else
  42435. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42436. wroteNewline = false;
  42437. break;
  42438. }
  42439. }
  42440. if (brackets.length !== 0)
  42441. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  42442. if (!allowEmpty && buffer._contents.length === 0)
  42443. t1.error$1(0, "Expected token.");
  42444. t1 = buffer._contents;
  42445. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42446. },
  42447. declarationValue$0: function() {
  42448. return this.declarationValue$1$allowEmpty(false);
  42449. },
  42450. tryUrl$0: function() {
  42451. var buffer, next, t2, _this = this,
  42452. t1 = _this.scanner,
  42453. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42454. if (!_this.scanIdentifier$1("url"))
  42455. return null;
  42456. if (!t1.scanChar$1(40)) {
  42457. t1.set$state(start);
  42458. return null;
  42459. }
  42460. _this.whitespace$0();
  42461. buffer = new P.StringBuffer("");
  42462. buffer._contents = "url(";
  42463. for (; true;) {
  42464. next = t1.peekChar$0();
  42465. if (next == null)
  42466. break;
  42467. else {
  42468. if (next !== 37)
  42469. if (next !== 38)
  42470. if (next !== 35)
  42471. t2 = next >= 42 && next <= 126 || next >= 128;
  42472. else
  42473. t2 = true;
  42474. else
  42475. t2 = true;
  42476. else
  42477. t2 = true;
  42478. if (t2)
  42479. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42480. else if (next === 92)
  42481. buffer._contents += H.S(_this.escape$0());
  42482. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  42483. _this.whitespace$0();
  42484. if (t1.peekChar$0() !== 41)
  42485. break;
  42486. } else if (next === 41) {
  42487. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  42488. return t2.charCodeAt(0) == 0 ? t2 : t2;
  42489. } else
  42490. break;
  42491. }
  42492. }
  42493. t1.set$state(start);
  42494. return null;
  42495. },
  42496. variableName$0: function() {
  42497. this.scanner.expectChar$1(36);
  42498. return this.identifier$1$normalize(true);
  42499. },
  42500. escape$1$identifierStart: function(identifierStart) {
  42501. var value, first, i, next, t2, exception,
  42502. t1 = this.scanner,
  42503. start = t1._string_scanner$_position;
  42504. t1.expectChar$1(92);
  42505. value = 0;
  42506. first = t1.peekChar$0();
  42507. if (first == null)
  42508. return "";
  42509. else if (T.isNewline(first))
  42510. t1.error$1(0, "Expected escape sequence.");
  42511. else if (T.isHex(first)) {
  42512. for (i = 0; i < 6; ++i) {
  42513. next = t1.peekChar$0();
  42514. if (next == null || !T.isHex(next))
  42515. break;
  42516. value *= 16;
  42517. value += T.asHex(t1.readChar$0());
  42518. }
  42519. this.scanCharIf$1(T.character__isWhitespace$closure());
  42520. } else
  42521. value = t1.readChar$0();
  42522. if (identifierStart) {
  42523. t2 = value;
  42524. t2 = t2 === 95 || T.isAlphabetic0(t2) || t2 >= 128;
  42525. } else {
  42526. t2 = value;
  42527. t2 = t2 === 95 || T.isAlphabetic0(t2) || t2 >= 128 || T.isDigit(t2) || t2 === 45;
  42528. }
  42529. if (t2)
  42530. try {
  42531. t2 = H.Primitives_stringFromCharCode(value);
  42532. return t2;
  42533. } catch (exception) {
  42534. if (type$.legacy_RangeError._is(H.unwrapException(exception)))
  42535. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  42536. else
  42537. throw exception;
  42538. }
  42539. else {
  42540. if (!(value <= 31))
  42541. if (!J.$eq$(value, 127))
  42542. t1 = identifierStart && T.isDigit(value);
  42543. else
  42544. t1 = true;
  42545. else
  42546. t1 = true;
  42547. if (t1) {
  42548. t1 = H.Primitives_stringFromCharCode(92);
  42549. if (value > 15)
  42550. t1 += H.Primitives_stringFromCharCode(T.hexCharFor(C.JSNumber_methods._shrOtherPositive$1(value, 4)));
  42551. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor(value & 15)) + H.Primitives_stringFromCharCode(32);
  42552. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42553. } else
  42554. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_legacy_int), 0, null);
  42555. }
  42556. },
  42557. escape$0: function() {
  42558. return this.escape$1$identifierStart(false);
  42559. },
  42560. escapeCharacter$0: function() {
  42561. var first, value, i, next, t2,
  42562. t1 = this.scanner;
  42563. t1.expectChar$1(92);
  42564. first = t1.peekChar$0();
  42565. if (first == null)
  42566. return 65533;
  42567. else if (T.isNewline(first))
  42568. t1.error$1(0, "Expected escape sequence.");
  42569. else if (T.isHex(first)) {
  42570. for (value = 0, i = 0; i < 6; ++i) {
  42571. next = t1.peekChar$0();
  42572. if (next == null || !T.isHex(next))
  42573. break;
  42574. value = (value << 4 >>> 0) + T.asHex(t1.readChar$0());
  42575. }
  42576. t2 = t1.peekChar$0();
  42577. if (t2 === 32 || t2 === 9 || T.isNewline(t2))
  42578. t1.readChar$0();
  42579. if (value !== 0)
  42580. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  42581. else
  42582. t1 = true;
  42583. if (t1)
  42584. return 65533;
  42585. else
  42586. return value;
  42587. } else
  42588. return t1.readChar$0();
  42589. },
  42590. scanCharIf$1: function(condition) {
  42591. var t1 = this.scanner;
  42592. if (!condition.call$1(t1.peekChar$0()))
  42593. return false;
  42594. t1.readChar$0();
  42595. return true;
  42596. },
  42597. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  42598. var t3,
  42599. t1 = new G.Parser_scanIdentChar_matches(caseSensitive, char),
  42600. t2 = this.scanner,
  42601. next = t2.peekChar$0();
  42602. if (next != null && t1.call$1(next)) {
  42603. t2.readChar$0();
  42604. return true;
  42605. } else if (next === 92) {
  42606. t3 = t2._string_scanner$_position;
  42607. if (t1.call$1(this.escapeCharacter$0()))
  42608. return true;
  42609. t2.set$state(new S._SpanScannerState(t2, t3));
  42610. }
  42611. return false;
  42612. },
  42613. scanIdentChar$1: function(char) {
  42614. return this.scanIdentChar$2$caseSensitive(char, false);
  42615. },
  42616. expectIdentChar$1: function(letter) {
  42617. var t1;
  42618. if (this.scanIdentChar$2$caseSensitive(letter, false))
  42619. return;
  42620. t1 = this.scanner;
  42621. t1.error$2$position(0, 'Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  42622. },
  42623. lookingAtNumber$0: function() {
  42624. var second, third,
  42625. t1 = this.scanner,
  42626. first = t1.peekChar$0();
  42627. if (first == null)
  42628. return false;
  42629. if (T.isDigit(first))
  42630. return true;
  42631. if (first === 46) {
  42632. second = t1.peekChar$1(1);
  42633. return second != null && T.isDigit(second);
  42634. } else if (first === 43 || first === 45) {
  42635. second = t1.peekChar$1(1);
  42636. if (second == null)
  42637. return false;
  42638. if (T.isDigit(second))
  42639. return true;
  42640. if (second !== 46)
  42641. return false;
  42642. third = t1.peekChar$1(2);
  42643. return third != null && T.isDigit(third);
  42644. } else
  42645. return false;
  42646. },
  42647. lookingAtIdentifier$1: function($forward) {
  42648. var t1, first, second;
  42649. if ($forward == null)
  42650. $forward = 0;
  42651. t1 = this.scanner;
  42652. first = t1.peekChar$1($forward);
  42653. if (first == null)
  42654. return false;
  42655. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  42656. return true;
  42657. if (first !== 45)
  42658. return false;
  42659. second = t1.peekChar$1($forward + 1);
  42660. if (second == null)
  42661. return false;
  42662. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  42663. },
  42664. lookingAtIdentifier$0: function() {
  42665. return this.lookingAtIdentifier$1(null);
  42666. },
  42667. lookingAtIdentifierBody$0: function() {
  42668. var t1,
  42669. next = this.scanner.peekChar$0();
  42670. if (next != null)
  42671. t1 = next === 95 || T.isAlphabetic0(next) || next >= 128 || T.isDigit(next) || next === 45 || next === 92;
  42672. else
  42673. t1 = false;
  42674. return t1;
  42675. },
  42676. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  42677. var t1, start, t2, cur, _this = this;
  42678. if (!_this.lookingAtIdentifier$0())
  42679. return false;
  42680. t1 = _this.scanner;
  42681. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42682. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  42683. cur = t2.__internal$_current;
  42684. if (_this.scanIdentChar$2$caseSensitive(cur, caseSensitive))
  42685. continue;
  42686. if (start._scanner !== t1)
  42687. H.throwExpression(P.ArgumentError$(string$.The_gi));
  42688. t2 = start.position;
  42689. if (t2 < 0 || t2 > t1.string.length)
  42690. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  42691. t1._string_scanner$_position = t2;
  42692. t1._lastMatch = null;
  42693. return false;
  42694. }
  42695. if (!_this.lookingAtIdentifierBody$0())
  42696. return true;
  42697. t1.set$state(start);
  42698. return false;
  42699. },
  42700. scanIdentifier$1: function(text) {
  42701. return this.scanIdentifier$2$caseSensitive(text, false);
  42702. },
  42703. expectIdentifier$2$name: function(text, $name) {
  42704. var t1, start, t2, cur;
  42705. if ($name == null)
  42706. $name = '"' + text + '"';
  42707. t1 = this.scanner;
  42708. start = t1._string_scanner$_position;
  42709. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  42710. cur = t2.__internal$_current;
  42711. if (this.scanIdentChar$2$caseSensitive(cur, false))
  42712. continue;
  42713. t1.error$2$position(0, "Expected " + $name + ".", start);
  42714. }
  42715. if (!this.lookingAtIdentifierBody$0())
  42716. return;
  42717. t1.error$2$position(0, "Expected " + $name, start);
  42718. },
  42719. expectIdentifier$1: function(text) {
  42720. return this.expectIdentifier$2$name(text, null);
  42721. },
  42722. rawText$1: function(consumer) {
  42723. var t1 = this.scanner,
  42724. start = t1._string_scanner$_position;
  42725. consumer.call$0();
  42726. return t1.substring$1(0, start);
  42727. },
  42728. error$2: function(_, message, span) {
  42729. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  42730. },
  42731. withErrorMessage$1$2: function(message, callback) {
  42732. var error, t1, exception;
  42733. try {
  42734. t1 = callback.call$0();
  42735. return t1;
  42736. } catch (exception) {
  42737. t1 = H.unwrapException(exception);
  42738. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  42739. error = t1;
  42740. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  42741. } else
  42742. throw exception;
  42743. }
  42744. },
  42745. withErrorMessage$2: function(message, callback) {
  42746. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  42747. },
  42748. wrapSpanFormatException$1$1: function(callback) {
  42749. var error, span, startPosition, t1, exception;
  42750. try {
  42751. t1 = callback.call$0();
  42752. return t1;
  42753. } catch (exception) {
  42754. t1 = H.unwrapException(exception);
  42755. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  42756. error = t1;
  42757. span = error.get$span();
  42758. if (B.startsWithIgnoreCase(error._span_exception$_message, "expected")) {
  42759. t1 = span;
  42760. t1 = t1._end - t1._file$_start === 0;
  42761. } else
  42762. t1 = false;
  42763. if (t1) {
  42764. t1 = span;
  42765. startPosition = this._firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  42766. t1 = span;
  42767. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  42768. span = span.file.span$2(startPosition, startPosition);
  42769. }
  42770. throw H.wrapException(E.SassFormatException$(error._span_exception$_message, span));
  42771. } else
  42772. throw exception;
  42773. }
  42774. },
  42775. wrapSpanFormatException$1: function(callback) {
  42776. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  42777. },
  42778. _firstNewlineBefore$1: function(position) {
  42779. var t1, t2, lastNewline, codeUnit,
  42780. index = position - 1;
  42781. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  42782. codeUnit = t2.codeUnitAt$1(t1, index);
  42783. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  42784. return lastNewline == null ? position : lastNewline;
  42785. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  42786. lastNewline = index;
  42787. --index;
  42788. }
  42789. return position;
  42790. }
  42791. };
  42792. G.Parser__parseIdentifier_closure.prototype = {
  42793. call$0: function() {
  42794. var t1 = this.$this,
  42795. result = t1.identifier$0();
  42796. t1.scanner.expectDone$0();
  42797. return result;
  42798. },
  42799. $signature: 17
  42800. };
  42801. G.Parser_scanIdentChar_matches.prototype = {
  42802. call$1: function(actual) {
  42803. var t1 = this.char;
  42804. return this.caseSensitive ? actual === t1 : T.characterEqualsIgnoreCase(t1, actual);
  42805. },
  42806. $signature: 24
  42807. };
  42808. U.SassParser.prototype = {
  42809. get$currentIndentation: function() {
  42810. return this._currentIndentation;
  42811. },
  42812. get$indented: function() {
  42813. return true;
  42814. },
  42815. styleRuleSelector$0: function() {
  42816. var t4,
  42817. t1 = this.scanner,
  42818. t2 = t1._string_scanner$_position,
  42819. t3 = new P.StringBuffer(""),
  42820. buffer = new Z.InterpolationBuffer(t3, []);
  42821. do {
  42822. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  42823. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  42824. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character__isNewline$closure()));
  42825. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  42826. },
  42827. expectStatementSeparator$1: function($name) {
  42828. var _this = this;
  42829. if (!_this.atEndOfStatement$0())
  42830. _this._expectNewline$0();
  42831. if (_this._peekIndentation$0() <= _this._currentIndentation)
  42832. return;
  42833. _this.scanner.error$2$position(0, "Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._nextIndentationEnd.position);
  42834. },
  42835. expectStatementSeparator$0: function() {
  42836. return this.expectStatementSeparator$1(null);
  42837. },
  42838. atEndOfStatement$0: function() {
  42839. var next = this.scanner.peekChar$0();
  42840. return next == null || T.isNewline(next);
  42841. },
  42842. lookingAtChildren$0: function() {
  42843. return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
  42844. },
  42845. importArgument$0: function() {
  42846. var url, span, innerError, start, next, t2, exception, _this = this,
  42847. t1 = _this.scanner;
  42848. switch (t1.peekChar$0()) {
  42849. case 117:
  42850. case 85:
  42851. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42852. if (_this.scanIdentifier$1("url"))
  42853. if (t1.scanChar$1(40)) {
  42854. t1.set$state(start);
  42855. return _this.super$StylesheetParser$importArgument();
  42856. } else
  42857. t1.set$state(start);
  42858. break;
  42859. case 39:
  42860. case 34:
  42861. return _this.super$StylesheetParser$importArgument();
  42862. }
  42863. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  42864. next = t1.peekChar$0();
  42865. while (true) {
  42866. if (next != null)
  42867. if (next !== 44)
  42868. if (next !== 59)
  42869. t2 = !(next === 10 || next === 13 || next === 12);
  42870. else
  42871. t2 = false;
  42872. else
  42873. t2 = false;
  42874. else
  42875. t2 = false;
  42876. if (!t2)
  42877. break;
  42878. t1.readChar$0();
  42879. next = t1.peekChar$0();
  42880. }
  42881. url = t1.substring$1(0, start.position);
  42882. span = t1.spanFrom$1(start);
  42883. if (_this.isPlainImportUrl$1(url))
  42884. return new Q.StaticImport(X.Interpolation$(H.setRuntimeTypeInfo([N.serializeValue0(new D.SassString(url, true), true, true)], type$.JSArray_legacy_Object), span), null, null, span);
  42885. else
  42886. try {
  42887. t1 = _this.parseImportUrl$1(url);
  42888. return new B.DynamicImport(t1, span);
  42889. } catch (exception) {
  42890. t1 = H.unwrapException(exception);
  42891. if (type$.legacy_FormatException._is(t1)) {
  42892. innerError = t1;
  42893. _this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  42894. } else
  42895. throw exception;
  42896. }
  42897. },
  42898. scanElse$1: function(ifIndentation) {
  42899. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  42900. if (_this._peekIndentation$0() != ifIndentation)
  42901. return false;
  42902. t1 = _this.scanner;
  42903. t2 = t1._string_scanner$_position;
  42904. startIndentation = _this._currentIndentation;
  42905. startNextIndentation = _this._nextIndentation;
  42906. startNextIndentationEnd = _this._nextIndentationEnd;
  42907. _this._readIndentation$0();
  42908. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  42909. return true;
  42910. t1.set$state(new S._SpanScannerState(t1, t2));
  42911. _this._currentIndentation = startIndentation;
  42912. _this._nextIndentation = startNextIndentation;
  42913. _this._nextIndentationEnd = startNextIndentationEnd;
  42914. return false;
  42915. },
  42916. children$1: function(_, child) {
  42917. var children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  42918. this._whileIndentedLower$1(new U.SassParser_children_closure(this, children, child));
  42919. return children;
  42920. },
  42921. statements$1: function(statement) {
  42922. var statements, t2, child,
  42923. t1 = this.scanner,
  42924. first = t1.peekChar$0();
  42925. if (first === 9 || first === 32)
  42926. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  42927. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  42928. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  42929. child = this._child$1(statement);
  42930. if (child != null)
  42931. statements.push(child);
  42932. this._readIndentation$0();
  42933. }
  42934. return statements;
  42935. },
  42936. _child$1: function(child) {
  42937. var _this = this,
  42938. t1 = _this.scanner;
  42939. switch (t1.peekChar$0()) {
  42940. case 13:
  42941. case 10:
  42942. case 12:
  42943. return null;
  42944. case 36:
  42945. return _this.variableDeclarationWithoutNamespace$0();
  42946. case 47:
  42947. switch (t1.peekChar$1(1)) {
  42948. case 47:
  42949. return _this._silentComment$0();
  42950. case 42:
  42951. return _this._loudComment$0();
  42952. default:
  42953. return child.call$0();
  42954. }
  42955. default:
  42956. return child.call$0();
  42957. }
  42958. },
  42959. _silentComment$0: function() {
  42960. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  42961. t1 = _this.scanner,
  42962. t2 = t1._string_scanner$_position;
  42963. t1.expect$1("//");
  42964. buffer = new P.StringBuffer("");
  42965. parentIndentation = _this._currentIndentation;
  42966. t3 = t1.string;
  42967. $label0$0:
  42968. do {
  42969. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  42970. for (i = commentPrefix.length; true;) {
  42971. t4 = buffer._contents += commentPrefix;
  42972. for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
  42973. t4 += H.Primitives_stringFromCharCode(32);
  42974. buffer._contents = t4;
  42975. }
  42976. t5 = t3.length;
  42977. while (true) {
  42978. if (t1._string_scanner$_position !== t5) {
  42979. t6 = t1.peekChar$0();
  42980. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  42981. } else
  42982. t6 = false;
  42983. if (!t6)
  42984. break;
  42985. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  42986. buffer._contents = t4;
  42987. }
  42988. buffer._contents = t4 + "\n";
  42989. if (_this._peekIndentation$0() < parentIndentation)
  42990. break $label0$0;
  42991. if (_this._peekIndentation$0() === parentIndentation) {
  42992. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  42993. _this._readIndentation$0();
  42994. break;
  42995. }
  42996. _this._readIndentation$0();
  42997. }
  42998. } while (t1.scan$1("//"));
  42999. t3 = buffer._contents;
  43000. return _this.lastSilentComment = new B.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  43001. },
  43002. _loudComment$0: function() {
  43003. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  43004. t1 = _this.scanner,
  43005. t2 = t1._string_scanner$_position;
  43006. t1.expect$1("/*");
  43007. t3 = new P.StringBuffer("");
  43008. t4 = [];
  43009. buffer = new Z.InterpolationBuffer(t3, t4);
  43010. t3._contents = "/*";
  43011. parentIndentation = _this._currentIndentation;
  43012. for (t5 = t1.string, first = true; true; first = false) {
  43013. if (first) {
  43014. beginningOfComment = t1._string_scanner$_position;
  43015. _this.spaces$0();
  43016. t6 = t1.peekChar$0();
  43017. if (t6 === 10 || t6 === 13 || t6 === 12) {
  43018. _this._readIndentation$0();
  43019. t3._contents += H.Primitives_stringFromCharCode(32);
  43020. } else {
  43021. end = t1._string_scanner$_position;
  43022. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  43023. }
  43024. } else {
  43025. t6 = t3._contents += "\n";
  43026. t3._contents = t6 + " * ";
  43027. }
  43028. for (i = 3; i < _this._currentIndentation - parentIndentation; ++i)
  43029. t3._contents += H.Primitives_stringFromCharCode(32);
  43030. $label0$1:
  43031. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  43032. switch (t1.peekChar$0()) {
  43033. case 10:
  43034. case 13:
  43035. case 12:
  43036. break $label0$1;
  43037. case 35:
  43038. if (t1.peekChar$1(1) === 123) {
  43039. t7 = _this.singleInterpolation$0();
  43040. buffer._flushText$0();
  43041. t4.push(t7);
  43042. } else
  43043. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43044. break;
  43045. default:
  43046. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43047. break;
  43048. }
  43049. if (_this._peekIndentation$0() <= parentIndentation)
  43050. break;
  43051. for (; _this._lookingAtDoubleNewline$0();) {
  43052. _this._expectNewline$0();
  43053. t6 = t3._contents += "\n";
  43054. t3._contents = t6 + " *";
  43055. }
  43056. _this._readIndentation$0();
  43057. }
  43058. t4 = t3._contents;
  43059. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  43060. t3._contents += " */";
  43061. return new L.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  43062. },
  43063. whitespaceWithoutComments$0: function() {
  43064. var t1, t2, next;
  43065. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  43066. next = t1.peekChar$0();
  43067. if (next !== 9 && next !== 32)
  43068. break;
  43069. t1.readChar$0();
  43070. }
  43071. },
  43072. loudComment$0: function() {
  43073. var next,
  43074. t1 = this.scanner;
  43075. t1.expect$1("/*");
  43076. for (; true;) {
  43077. next = t1.readChar$0();
  43078. if (next === 10 || next === 13 || next === 12)
  43079. t1.error$1(0, "expected */.");
  43080. if (next !== 42)
  43081. continue;
  43082. do
  43083. next = t1.readChar$0();
  43084. while (next === 42);
  43085. if (next === 47)
  43086. break;
  43087. }
  43088. },
  43089. _expectNewline$0: function() {
  43090. var t1 = this.scanner;
  43091. switch (t1.peekChar$0()) {
  43092. case 59:
  43093. t1.error$1(0, string$.semico);
  43094. break;
  43095. case 13:
  43096. t1.readChar$0();
  43097. if (t1.peekChar$0() === 10)
  43098. t1.readChar$0();
  43099. return;
  43100. case 10:
  43101. case 12:
  43102. t1.readChar$0();
  43103. return;
  43104. default:
  43105. t1.error$1(0, "expected newline.");
  43106. }
  43107. },
  43108. _lookingAtDoubleNewline$0: function() {
  43109. var nextChar,
  43110. t1 = this.scanner;
  43111. switch (t1.peekChar$0()) {
  43112. case 13:
  43113. nextChar = t1.peekChar$1(1);
  43114. if (nextChar === 10)
  43115. return T.isNewline(t1.peekChar$1(2));
  43116. return nextChar === 13 || nextChar === 12;
  43117. case 10:
  43118. case 12:
  43119. return T.isNewline(t1.peekChar$1(1));
  43120. default:
  43121. return false;
  43122. }
  43123. },
  43124. _whileIndentedLower$1: function(body) {
  43125. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  43126. parentIndentation = _this._currentIndentation;
  43127. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
  43128. indentation = _this._readIndentation$0();
  43129. if (childIndentation == null)
  43130. childIndentation = indentation;
  43131. if (childIndentation != indentation) {
  43132. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  43133. t4 = t1._string_scanner$_position;
  43134. t5 = t2.getColumn$1(t4);
  43135. t1.error$3$length$position(0, t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  43136. }
  43137. body.call$0();
  43138. }
  43139. },
  43140. _readIndentation$0: function() {
  43141. var _this = this;
  43142. if (_this._nextIndentation == null)
  43143. _this._peekIndentation$0();
  43144. _this._currentIndentation = _this._nextIndentation;
  43145. _this.scanner.set$state(_this._nextIndentationEnd);
  43146. _this._nextIndentationEnd = _this._nextIndentation = null;
  43147. return _this._currentIndentation;
  43148. },
  43149. _peekIndentation$0: function() {
  43150. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  43151. t1 = _this._nextIndentation;
  43152. if (t1 != null)
  43153. return t1;
  43154. t1 = _this.scanner;
  43155. t2 = t1._string_scanner$_position;
  43156. t3 = t1.string.length;
  43157. if (t2 === t3) {
  43158. _this._nextIndentation = 0;
  43159. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  43160. return 0;
  43161. }
  43162. start = new S._SpanScannerState(t1, t2);
  43163. if (!_this.scanCharIf$1(T.character__isNewline$closure()))
  43164. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  43165. do {
  43166. _this._nextIndentation = 0;
  43167. for (containsTab = false, containsSpace = false; true;) {
  43168. next = t1.peekChar$0();
  43169. if (next === 32)
  43170. containsSpace = true;
  43171. else {
  43172. if (next !== 9)
  43173. break;
  43174. containsTab = true;
  43175. }
  43176. _this._nextIndentation = _this._nextIndentation + 1;
  43177. t1.readChar$0();
  43178. }
  43179. t2 = t1._string_scanner$_position;
  43180. if (t2 === t3) {
  43181. _this._nextIndentation = 0;
  43182. _this._nextIndentationEnd = new S._SpanScannerState(t1, t2);
  43183. t1.set$state(start);
  43184. return 0;
  43185. }
  43186. } while (_this.scanCharIf$1(T.character__isNewline$closure()));
  43187. if (containsTab) {
  43188. if (containsSpace) {
  43189. t2 = t1._string_scanner$_position;
  43190. t3 = t1._sourceFile;
  43191. t4 = t3.getColumn$1(t2);
  43192. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  43193. } else if (_this._spaces === true) {
  43194. t2 = t1._string_scanner$_position;
  43195. t3 = t1._sourceFile;
  43196. t4 = t3.getColumn$1(t2);
  43197. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  43198. }
  43199. } else if (containsSpace && _this._spaces === false) {
  43200. t2 = t1._string_scanner$_position;
  43201. t3 = t1._sourceFile;
  43202. t4 = t3.getColumn$1(t2);
  43203. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  43204. }
  43205. if (_this._nextIndentation > 0)
  43206. if (_this._spaces == null)
  43207. _this._spaces = containsSpace;
  43208. _this._nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43209. t1.set$state(start);
  43210. return _this._nextIndentation;
  43211. }
  43212. };
  43213. U.SassParser_children_closure.prototype = {
  43214. call$0: function() {
  43215. this.children.push(this.$this._child$1(this.child));
  43216. },
  43217. $signature: 0
  43218. };
  43219. L.ScssParser.prototype = {
  43220. get$indented: function() {
  43221. return false;
  43222. },
  43223. get$currentIndentation: function() {
  43224. return null;
  43225. },
  43226. styleRuleSelector$0: function() {
  43227. return this.almostAnyValue$0();
  43228. },
  43229. expectStatementSeparator$1: function($name) {
  43230. var t1, next;
  43231. this.whitespaceWithoutComments$0();
  43232. t1 = this.scanner;
  43233. if (t1._string_scanner$_position === t1.string.length)
  43234. return;
  43235. next = t1.peekChar$0();
  43236. if (next === 59 || next === 125)
  43237. return;
  43238. t1.expectChar$1(59);
  43239. },
  43240. expectStatementSeparator$0: function() {
  43241. return this.expectStatementSeparator$1(null);
  43242. },
  43243. atEndOfStatement$0: function() {
  43244. var next = this.scanner.peekChar$0();
  43245. return next == null || next === 59 || next === 125 || next === 123;
  43246. },
  43247. lookingAtChildren$0: function() {
  43248. return this.scanner.peekChar$0() === 123;
  43249. },
  43250. scanElse$1: function(_) {
  43251. var t3, _this = this,
  43252. t1 = _this.scanner,
  43253. t2 = t1._string_scanner$_position;
  43254. _this.whitespace$0();
  43255. t3 = t1._string_scanner$_position;
  43256. if (t1.scanChar$1(64)) {
  43257. if (_this.scanIdentifier$2$caseSensitive("else", true))
  43258. return true;
  43259. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  43260. _this.logger.warn$3$deprecation$span(0, string$.x40elsei, true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  43261. t1.set$position(t1._string_scanner$_position - 2);
  43262. return true;
  43263. }
  43264. }
  43265. t1.set$state(new S._SpanScannerState(t1, t2));
  43266. return false;
  43267. },
  43268. children$1: function(_, child) {
  43269. var children, _this = this,
  43270. t1 = _this.scanner;
  43271. t1.expectChar$1(123);
  43272. _this.whitespaceWithoutComments$0();
  43273. children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  43274. for (; true;)
  43275. switch (t1.peekChar$0()) {
  43276. case 36:
  43277. children.push(_this.variableDeclarationWithoutNamespace$0());
  43278. break;
  43279. case 47:
  43280. switch (t1.peekChar$1(1)) {
  43281. case 47:
  43282. children.push(_this._scss$_silentComment$0());
  43283. _this.whitespaceWithoutComments$0();
  43284. break;
  43285. case 42:
  43286. children.push(_this._scss$_loudComment$0());
  43287. _this.whitespaceWithoutComments$0();
  43288. break;
  43289. default:
  43290. children.push(child.call$0());
  43291. break;
  43292. }
  43293. break;
  43294. case 59:
  43295. t1.readChar$0();
  43296. _this.whitespaceWithoutComments$0();
  43297. break;
  43298. case 125:
  43299. t1.expectChar$1(125);
  43300. return children;
  43301. default:
  43302. children.push(child.call$0());
  43303. break;
  43304. }
  43305. },
  43306. statements$1: function(statement) {
  43307. var t1, t2, child, _this = this,
  43308. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement);
  43309. _this.whitespaceWithoutComments$0();
  43310. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  43311. switch (t1.peekChar$0()) {
  43312. case 36:
  43313. statements.push(_this.variableDeclarationWithoutNamespace$0());
  43314. break;
  43315. case 47:
  43316. switch (t1.peekChar$1(1)) {
  43317. case 47:
  43318. statements.push(_this._scss$_silentComment$0());
  43319. _this.whitespaceWithoutComments$0();
  43320. break;
  43321. case 42:
  43322. statements.push(_this._scss$_loudComment$0());
  43323. _this.whitespaceWithoutComments$0();
  43324. break;
  43325. default:
  43326. child = statement.call$0();
  43327. if (child != null)
  43328. statements.push(child);
  43329. break;
  43330. }
  43331. break;
  43332. case 59:
  43333. t1.readChar$0();
  43334. _this.whitespaceWithoutComments$0();
  43335. break;
  43336. default:
  43337. child = statement.call$0();
  43338. if (child != null)
  43339. statements.push(child);
  43340. break;
  43341. }
  43342. return statements;
  43343. },
  43344. _scss$_silentComment$0: function() {
  43345. var t2, t3, _this = this,
  43346. t1 = _this.scanner,
  43347. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43348. t1.expect$1("//");
  43349. t2 = t1.string.length;
  43350. do {
  43351. while (true) {
  43352. if (t1._string_scanner$_position !== t2) {
  43353. t3 = t1.readChar$0();
  43354. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  43355. } else
  43356. t3 = false;
  43357. if (!t3)
  43358. break;
  43359. }
  43360. if (t1._string_scanner$_position === t2)
  43361. break;
  43362. _this.whitespaceWithoutComments$0();
  43363. } while (t1.scan$1("//"));
  43364. if (_this.get$plainCss())
  43365. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  43366. return _this.lastSilentComment = new B.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  43367. },
  43368. _scss$_loudComment$0: function() {
  43369. var t3, t4, buffer, t5, endPosition,
  43370. t1 = this.scanner,
  43371. t2 = t1._string_scanner$_position;
  43372. t1.expect$1("/*");
  43373. t3 = new P.StringBuffer("");
  43374. t4 = [];
  43375. buffer = new Z.InterpolationBuffer(t3, t4);
  43376. t3._contents = "/*";
  43377. for (; true;)
  43378. switch (t1.peekChar$0()) {
  43379. case 35:
  43380. if (t1.peekChar$1(1) === 123) {
  43381. t5 = this.singleInterpolation$0();
  43382. buffer._flushText$0();
  43383. t4.push(t5);
  43384. } else
  43385. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43386. break;
  43387. case 42:
  43388. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43389. if (t1.peekChar$0() !== 47)
  43390. break;
  43391. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43392. endPosition = t1._string_scanner$_position;
  43393. t3 = t1._sourceFile;
  43394. t4 = new S._SpanScannerState(t1, t2).position;
  43395. t1 = new Y._FileSpan(t3, t4, endPosition);
  43396. t1._FileSpan$3(t3, t4, endPosition);
  43397. return new L.LoudComment(buffer.interpolation$1(t1));
  43398. case 13:
  43399. t1.readChar$0();
  43400. if (t1.peekChar$0() !== 10)
  43401. t3._contents += H.Primitives_stringFromCharCode(10);
  43402. break;
  43403. case 12:
  43404. t1.readChar$0();
  43405. t3._contents += H.Primitives_stringFromCharCode(10);
  43406. break;
  43407. default:
  43408. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  43409. break;
  43410. }
  43411. }
  43412. };
  43413. T.SelectorParser.prototype = {
  43414. parse$0: function() {
  43415. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure(this));
  43416. },
  43417. parseCompoundSelector$0: function() {
  43418. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure(this));
  43419. },
  43420. _selectorList$0: function() {
  43421. var t3, t4, lineBreak, _this = this,
  43422. t1 = _this.scanner,
  43423. t2 = t1._sourceFile,
  43424. previousLine = t2.getLine$1(t1._string_scanner$_position),
  43425. components = H.setRuntimeTypeInfo([_this._complexSelector$0()], type$.JSArray_legacy_ComplexSelector);
  43426. _this.whitespace$0();
  43427. for (t3 = t1.string; t1.scanChar$1(44);) {
  43428. _this.whitespace$0();
  43429. if (t1.peekChar$0() === 44)
  43430. continue;
  43431. t4 = t1._string_scanner$_position;
  43432. if (t4 === t3.length)
  43433. break;
  43434. lineBreak = t2.getLine$1(t4) != previousLine;
  43435. if (lineBreak)
  43436. previousLine = t2.getLine$1(t1._string_scanner$_position);
  43437. components.push(_this._complexSelector$1$lineBreak(lineBreak));
  43438. }
  43439. return D.SelectorList$(components);
  43440. },
  43441. _complexSelector$1$lineBreak: function(lineBreak) {
  43442. var t1, next, _this = this,
  43443. _s58_ = string$.x22x26__ma,
  43444. components = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent);
  43445. $label0$1:
  43446. for (t1 = _this.scanner; true;) {
  43447. _this.whitespace$0();
  43448. next = t1.peekChar$0();
  43449. switch (next) {
  43450. case 43:
  43451. t1.readChar$0();
  43452. components.push(C.Combinator_uzg);
  43453. break;
  43454. case 62:
  43455. t1.readChar$0();
  43456. components.push(C.Combinator_sgq);
  43457. break;
  43458. case 126:
  43459. t1.readChar$0();
  43460. components.push(C.Combinator_CzM);
  43461. break;
  43462. case 91:
  43463. case 46:
  43464. case 35:
  43465. case 37:
  43466. case 58:
  43467. case 38:
  43468. case 42:
  43469. case 124:
  43470. components.push(_this._compoundSelector$0());
  43471. if (t1.peekChar$0() === 38)
  43472. t1.error$1(0, _s58_);
  43473. break;
  43474. default:
  43475. if (next == null || !_this.lookingAtIdentifier$0())
  43476. break $label0$1;
  43477. components.push(_this._compoundSelector$0());
  43478. if (t1.peekChar$0() === 38)
  43479. t1.error$1(0, _s58_);
  43480. break;
  43481. }
  43482. }
  43483. if (components.length === 0)
  43484. t1.error$1(0, "expected selector.");
  43485. return S.ComplexSelector$(components, lineBreak);
  43486. },
  43487. _complexSelector$0: function() {
  43488. return this._complexSelector$1$lineBreak(false);
  43489. },
  43490. _compoundSelector$0: function() {
  43491. var t2,
  43492. components = H.setRuntimeTypeInfo([this._simpleSelector$0()], type$.JSArray_legacy_SimpleSelector),
  43493. t1 = this.scanner;
  43494. while (true) {
  43495. t2 = t1.peekChar$0();
  43496. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  43497. break;
  43498. components.push(this._simpleSelector$1$allowParent(false));
  43499. }
  43500. return X.CompoundSelector$(components);
  43501. },
  43502. _simpleSelector$1$allowParent: function(allowParent) {
  43503. var $name, text, t2, suffix, _this = this,
  43504. t1 = _this.scanner,
  43505. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43506. if (allowParent == null)
  43507. allowParent = _this._allowParent;
  43508. switch (t1.peekChar$0()) {
  43509. case 91:
  43510. return _this._attributeSelector$0();
  43511. case 46:
  43512. t1.expectChar$1(46);
  43513. return new X.ClassSelector(_this.identifier$0());
  43514. case 35:
  43515. t1.expectChar$1(35);
  43516. return new N.IDSelector(_this.identifier$0());
  43517. case 37:
  43518. t1.expectChar$1(37);
  43519. $name = _this.identifier$0();
  43520. if (!_this._allowPlaceholder)
  43521. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  43522. return new N.PlaceholderSelector($name);
  43523. case 58:
  43524. return _this._pseudoSelector$0();
  43525. case 38:
  43526. t1.expectChar$1(38);
  43527. if (_this.lookingAtIdentifierBody$0()) {
  43528. text = new P.StringBuffer("");
  43529. _this._identifierBody$1(text);
  43530. if (text._contents.length === 0)
  43531. t1.error$1(0, "Expected identifier body.");
  43532. t2 = text._contents;
  43533. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  43534. } else
  43535. suffix = null;
  43536. if (!allowParent)
  43537. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  43538. return new M.ParentSelector(suffix);
  43539. default:
  43540. return _this._typeOrUniversalSelector$0();
  43541. }
  43542. },
  43543. _simpleSelector$0: function() {
  43544. return this._simpleSelector$1$allowParent(null);
  43545. },
  43546. _attributeSelector$0: function() {
  43547. var $name, operator, next, value, modifier, _this = this, _null = null,
  43548. t1 = _this.scanner;
  43549. t1.expectChar$1(91);
  43550. _this.whitespace$0();
  43551. $name = _this._attributeName$0();
  43552. _this.whitespace$0();
  43553. if (t1.scanChar$1(93))
  43554. return new N.AttributeSelector($name, _null, _null, _null);
  43555. operator = _this._attributeOperator$0();
  43556. _this.whitespace$0();
  43557. next = t1.peekChar$0();
  43558. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  43559. _this.whitespace$0();
  43560. modifier = T.isAlphabetic0(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  43561. t1.expectChar$1(93);
  43562. return new N.AttributeSelector($name, operator, value, modifier);
  43563. },
  43564. _attributeName$0: function() {
  43565. var nameOrNamespace, _this = this,
  43566. t1 = _this.scanner;
  43567. if (t1.scanChar$1(42)) {
  43568. t1.expectChar$1(124);
  43569. return new D.QualifiedName(_this.identifier$0(), "*");
  43570. }
  43571. nameOrNamespace = _this.identifier$0();
  43572. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  43573. return new D.QualifiedName(nameOrNamespace, null);
  43574. t1.readChar$0();
  43575. return new D.QualifiedName(_this.identifier$0(), nameOrNamespace);
  43576. },
  43577. _attributeOperator$0: function() {
  43578. var t1 = this.scanner,
  43579. t2 = t1._string_scanner$_position;
  43580. switch (t1.readChar$0()) {
  43581. case 61:
  43582. return C.AttributeOperator_sEs;
  43583. case 126:
  43584. t1.expectChar$1(61);
  43585. return C.AttributeOperator_fz1;
  43586. case 124:
  43587. t1.expectChar$1(61);
  43588. return C.AttributeOperator_AuK;
  43589. case 94:
  43590. t1.expectChar$1(61);
  43591. return C.AttributeOperator_4L5;
  43592. case 36:
  43593. t1.expectChar$1(61);
  43594. return C.AttributeOperator_mOX;
  43595. case 42:
  43596. t1.expectChar$1(61);
  43597. return C.AttributeOperator_gqZ;
  43598. default:
  43599. t1.error$2$position(0, 'Expected "]".', t2);
  43600. }
  43601. },
  43602. _pseudoSelector$0: function() {
  43603. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  43604. t1 = _this.scanner;
  43605. t1.expectChar$1(58);
  43606. element = t1.scanChar$1(58);
  43607. $name = _this.identifier$0();
  43608. if (!t1.scanChar$1(40))
  43609. return D.PseudoSelector$($name, _null, element, _null);
  43610. _this.whitespace$0();
  43611. unvendored = B.unvendor($name);
  43612. if (element)
  43613. if ($._selectorPseudoElements.contains$1(0, unvendored)) {
  43614. selector = _this._selectorList$0();
  43615. argument = _null;
  43616. } else {
  43617. argument = _this.declarationValue$1$allowEmpty(true);
  43618. selector = _null;
  43619. }
  43620. else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
  43621. selector = _this._selectorList$0();
  43622. argument = _null;
  43623. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  43624. argument = _this._aNPlusB$0();
  43625. _this.whitespace$0();
  43626. t2 = t1.peekChar$1(-1);
  43627. if ((t2 === 32 || t2 === 9 || T.isNewline(t2)) && t1.peekChar$0() !== 41) {
  43628. _this.expectIdentifier$1("of");
  43629. argument += " of";
  43630. _this.whitespace$0();
  43631. selector = _this._selectorList$0();
  43632. } else
  43633. selector = _null;
  43634. } else {
  43635. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  43636. selector = _null;
  43637. }
  43638. t1.expectChar$1(41);
  43639. return D.PseudoSelector$($name, argument, element, selector);
  43640. },
  43641. _aNPlusB$0: function() {
  43642. var t2, first, t3, next, last, _this = this,
  43643. t1 = _this.scanner;
  43644. switch (t1.peekChar$0()) {
  43645. case 101:
  43646. case 69:
  43647. _this.expectIdentifier$1("even");
  43648. return "even";
  43649. case 111:
  43650. case 79:
  43651. _this.expectIdentifier$1("odd");
  43652. return "odd";
  43653. case 43:
  43654. case 45:
  43655. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  43656. break;
  43657. default:
  43658. t2 = "";
  43659. }
  43660. first = t1.peekChar$0();
  43661. if (first != null && T.isDigit(first)) {
  43662. while (true) {
  43663. t3 = t1.peekChar$0();
  43664. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  43665. break;
  43666. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  43667. }
  43668. _this.whitespace$0();
  43669. if (!_this.scanIdentChar$1(110))
  43670. return t2.charCodeAt(0) == 0 ? t2 : t2;
  43671. } else
  43672. _this.expectIdentChar$1(110);
  43673. t2 += H.Primitives_stringFromCharCode(110);
  43674. _this.whitespace$0();
  43675. next = t1.peekChar$0();
  43676. if (next !== 43 && next !== 45)
  43677. return t2.charCodeAt(0) == 0 ? t2 : t2;
  43678. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  43679. _this.whitespace$0();
  43680. last = t1.peekChar$0();
  43681. if (last == null || !T.isDigit(last))
  43682. t1.error$1(0, "Expected a number.");
  43683. while (true) {
  43684. t3 = t1.peekChar$0();
  43685. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  43686. break;
  43687. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  43688. }
  43689. return t2.charCodeAt(0) == 0 ? t2 : t2;
  43690. },
  43691. _typeOrUniversalSelector$0: function() {
  43692. var nameOrNamespace, _this = this,
  43693. t1 = _this.scanner,
  43694. first = t1.peekChar$0();
  43695. if (first === 42) {
  43696. t1.readChar$0();
  43697. if (!t1.scanChar$1(124))
  43698. return new N.UniversalSelector(null);
  43699. if (t1.scanChar$1(42))
  43700. return new N.UniversalSelector("*");
  43701. else
  43702. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), "*"));
  43703. } else if (first === 124) {
  43704. t1.readChar$0();
  43705. if (t1.scanChar$1(42))
  43706. return new N.UniversalSelector("");
  43707. else
  43708. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), ""));
  43709. }
  43710. nameOrNamespace = _this.identifier$0();
  43711. if (!t1.scanChar$1(124))
  43712. return new F.TypeSelector(new D.QualifiedName(nameOrNamespace, null));
  43713. else if (t1.scanChar$1(42))
  43714. return new N.UniversalSelector(nameOrNamespace);
  43715. else
  43716. return new F.TypeSelector(new D.QualifiedName(_this.identifier$0(), nameOrNamespace));
  43717. }
  43718. };
  43719. T.SelectorParser_parse_closure.prototype = {
  43720. call$0: function() {
  43721. var t1 = this.$this,
  43722. selector = t1._selectorList$0();
  43723. t1 = t1.scanner;
  43724. if (t1._string_scanner$_position !== t1.string.length)
  43725. t1.error$1(0, "expected selector.");
  43726. return selector;
  43727. },
  43728. $signature: 42
  43729. };
  43730. T.SelectorParser_parseCompoundSelector_closure.prototype = {
  43731. call$0: function() {
  43732. var t1 = this.$this,
  43733. compound = t1._compoundSelector$0();
  43734. t1 = t1.scanner;
  43735. if (t1._string_scanner$_position !== t1.string.length)
  43736. t1.error$1(0, "expected selector.");
  43737. return compound;
  43738. },
  43739. $signature: 264
  43740. };
  43741. V.StylesheetParser.prototype = {
  43742. parse$0: function() {
  43743. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure(this));
  43744. },
  43745. parseArgumentDeclaration$0: function() {
  43746. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure(this), type$.legacy_ArgumentDeclaration);
  43747. },
  43748. parseVariableDeclaration$0: function() {
  43749. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseVariableDeclaration_closure(this), type$.legacy_VariableDeclaration);
  43750. },
  43751. parseUseRule$0: function() {
  43752. return this._parseSingleProduction$1$1(new V.StylesheetParser_parseUseRule_closure(this), type$.legacy_UseRule);
  43753. },
  43754. _parseSingleProduction$1$1: function(production, $T) {
  43755. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure(this, production, $T));
  43756. },
  43757. _statement$1$root: function(root) {
  43758. var t2, _this = this,
  43759. t1 = _this.scanner;
  43760. switch (t1.peekChar$0()) {
  43761. case 64:
  43762. return _this.atRule$2$root(new V.StylesheetParser__statement_closure(_this), root);
  43763. case 43:
  43764. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  43765. return _this._stylesheet$_styleRule$0();
  43766. _this._isUseAllowed = false;
  43767. t2 = t1._string_scanner$_position;
  43768. t1.readChar$0();
  43769. return _this._includeRule$1(new S._SpanScannerState(t1, t2));
  43770. case 61:
  43771. if (!_this.get$indented())
  43772. return _this._stylesheet$_styleRule$0();
  43773. _this._isUseAllowed = false;
  43774. t2 = t1._string_scanner$_position;
  43775. t1.readChar$0();
  43776. _this.whitespace$0();
  43777. return _this._mixinRule$1(new S._SpanScannerState(t1, t2));
  43778. case 125:
  43779. t1.error$2$length(0, 'unmatched "}".', 1);
  43780. break;
  43781. default:
  43782. return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
  43783. }
  43784. },
  43785. _statement$0: function() {
  43786. return this._statement$1$root(false);
  43787. },
  43788. _variableDeclarationWithNamespace$0: function() {
  43789. var t1 = this.scanner,
  43790. t2 = t1._string_scanner$_position,
  43791. namespace = this.identifier$0();
  43792. t1.expectChar$1(46);
  43793. return this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  43794. },
  43795. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  43796. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, t3, t4, t5, declaration, _this = this, _box_0 = {};
  43797. _box_0.start = start;
  43798. precedingComment = _this.lastSilentComment;
  43799. _this.lastSilentComment = null;
  43800. if (start == null) {
  43801. t1 = _this.scanner;
  43802. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43803. }
  43804. $name = _this.variableName$0();
  43805. t1 = namespace != null;
  43806. if (t1)
  43807. _this._assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure(_box_0, _this));
  43808. if (_this.get$plainCss())
  43809. _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(_box_0.start));
  43810. _this.whitespace$0();
  43811. t2 = _this.scanner;
  43812. t2.expectChar$1(58);
  43813. _this.whitespace$0();
  43814. value = _this.expression$0();
  43815. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  43816. for (guarded = false, global = false; t2.scanChar$1(33);) {
  43817. flag = _this.identifier$0();
  43818. if (flag === "default")
  43819. guarded = true;
  43820. else if (flag === "global") {
  43821. if (t1) {
  43822. endPosition = t2._string_scanner$_position;
  43823. t3 = t2._sourceFile;
  43824. t4 = flagStart.position;
  43825. t5 = new Y._FileSpan(t3, t4, endPosition);
  43826. t5._FileSpan$3(t3, t4, endPosition);
  43827. _this.error$2(0, string$.x21globa, t5);
  43828. }
  43829. global = true;
  43830. } else {
  43831. endPosition = t2._string_scanner$_position;
  43832. t3 = t2._sourceFile;
  43833. t4 = flagStart.position;
  43834. t5 = new Y._FileSpan(t3, t4, endPosition);
  43835. t5._FileSpan$3(t3, t4, endPosition);
  43836. _this.error$2(0, "Invalid flag name.", t5);
  43837. }
  43838. _this.whitespace$0();
  43839. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  43840. }
  43841. _this.expectStatementSeparator$1("variable declaration");
  43842. declaration = Z.VariableDeclaration$($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  43843. if (global)
  43844. _this._globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
  43845. return declaration;
  43846. },
  43847. variableDeclarationWithoutNamespace$0: function() {
  43848. return this.variableDeclarationWithoutNamespace$2(null, null);
  43849. },
  43850. _variableDeclarationOrStyleRule$0: function() {
  43851. var t1, t2, variableOrInterpolation, t3, _this = this;
  43852. if (_this.get$plainCss())
  43853. return _this._stylesheet$_styleRule$0();
  43854. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  43855. return _this._stylesheet$_styleRule$0();
  43856. if (!_this.lookingAtIdentifier$0())
  43857. return _this._stylesheet$_styleRule$0();
  43858. t1 = _this.scanner;
  43859. t2 = t1._string_scanner$_position;
  43860. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  43861. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  43862. return variableOrInterpolation;
  43863. else {
  43864. t3 = new Z.InterpolationBuffer(new P.StringBuffer(""), []);
  43865. t3.addInterpolation$1(type$.legacy_Interpolation._as(variableOrInterpolation));
  43866. return _this._stylesheet$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  43867. }
  43868. },
  43869. _declarationOrStyleRule$0: function() {
  43870. var t1, t2, declarationOrBuffer, _this = this;
  43871. if (_this.get$plainCss() && _this._inStyleRule && !_this._stylesheet$_inUnknownAtRule)
  43872. return _this._propertyOrVariableDeclaration$0();
  43873. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  43874. return _this._stylesheet$_styleRule$0();
  43875. t1 = _this.scanner;
  43876. t2 = t1._string_scanner$_position;
  43877. declarationOrBuffer = _this._declarationOrBuffer$0();
  43878. return type$.legacy_Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet$_styleRule$2(type$.legacy_InterpolationBuffer._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  43879. },
  43880. _declarationOrBuffer$0: function() {
  43881. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, t5, value, exception, _this = this, t1 = {},
  43882. t2 = _this.scanner,
  43883. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  43884. nameBuffer = new Z.InterpolationBuffer(new P.StringBuffer(""), []),
  43885. first = t2.peekChar$0();
  43886. if (first !== 58)
  43887. if (first !== 42)
  43888. if (first !== 46)
  43889. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  43890. else
  43891. t3 = true;
  43892. else
  43893. t3 = true;
  43894. else
  43895. t3 = true;
  43896. if (t3) {
  43897. t3 = t2.readChar$0();
  43898. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(t3);
  43899. t3 = _this.rawText$1(_this.get$whitespace());
  43900. nameBuffer._interpolation_buffer$_text._contents += t3;
  43901. startsWithPunctuation = true;
  43902. } else
  43903. startsWithPunctuation = false;
  43904. if (!_this._lookingAtInterpolatedIdentifier$0())
  43905. return nameBuffer;
  43906. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
  43907. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  43908. return variableOrInterpolation;
  43909. else
  43910. nameBuffer.addInterpolation$1(type$.legacy_Interpolation._as(variableOrInterpolation));
  43911. _this._isUseAllowed = false;
  43912. if (t2.matches$1("/*")) {
  43913. t3 = _this.rawText$1(_this.get$loudComment());
  43914. nameBuffer._interpolation_buffer$_text._contents += t3;
  43915. }
  43916. midBuffer = new P.StringBuffer("");
  43917. t3 = _this.get$whitespace();
  43918. midBuffer._contents += _this.rawText$1(t3);
  43919. t4 = t2._string_scanner$_position;
  43920. if (!t2.scanChar$1(58)) {
  43921. if (midBuffer._contents.length !== 0)
  43922. nameBuffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(32);
  43923. return nameBuffer;
  43924. }
  43925. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  43926. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  43927. if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  43928. t1 = _this._interpolatedDeclarationValue$0();
  43929. _this.expectStatementSeparator$1("custom property");
  43930. return L.Declaration$($name, t2.spanFrom$1(start), null, new D.StringExpression(t1, false));
  43931. }
  43932. if (t2.scanChar$1(58)) {
  43933. t1 = nameBuffer;
  43934. t2 = t1._interpolation_buffer$_text;
  43935. t2._contents += H.S(midBuffer);
  43936. t2._contents += H.Primitives_stringFromCharCode(58);
  43937. return t1;
  43938. } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
  43939. t1 = nameBuffer;
  43940. t1._interpolation_buffer$_text._contents += H.S(midBuffer);
  43941. return t1;
  43942. }
  43943. postColonWhitespace = _this.rawText$1(t3);
  43944. if (_this.lookingAtChildren$0())
  43945. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure($name));
  43946. midBuffer._contents += postColonWhitespace;
  43947. couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
  43948. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  43949. t1.value = null;
  43950. try {
  43951. if (_this.lookingAtChildren$0()) {
  43952. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  43953. t4 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  43954. t5 = t4.offset;
  43955. value = new D.StringExpression(X.Interpolation$(t3, Y._FileSpan$(t4.file, t5, t5)), true);
  43956. } else
  43957. value = _this.expression$0();
  43958. t3 = t1.value = value;
  43959. if (_this.lookingAtChildren$0()) {
  43960. if (couldBeSelector)
  43961. _this.expectStatementSeparator$0();
  43962. } else if (!_this.atEndOfStatement$0())
  43963. _this.expectStatementSeparator$0();
  43964. } catch (exception) {
  43965. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  43966. if (!couldBeSelector)
  43967. throw exception;
  43968. t2.set$state(beforeDeclaration);
  43969. additional = _this.almostAnyValue$0();
  43970. if (!_this.get$indented() && t2.peekChar$0() === 59)
  43971. throw exception;
  43972. nameBuffer._interpolation_buffer$_text._contents += H.S(midBuffer);
  43973. nameBuffer.addInterpolation$1(additional);
  43974. return nameBuffer;
  43975. } else
  43976. throw exception;
  43977. }
  43978. if (_this.lookingAtChildren$0())
  43979. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure0(t1, $name));
  43980. else {
  43981. _this.expectStatementSeparator$0();
  43982. return L.Declaration$($name, t2.spanFrom$1(start), null, t3);
  43983. }
  43984. },
  43985. _variableDeclarationOrInterpolation$0: function() {
  43986. var t1, start, identifier, t2, buffer, _this = this;
  43987. if (!_this.lookingAtIdentifier$0())
  43988. return _this.interpolatedIdentifier$0();
  43989. t1 = _this.scanner;
  43990. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  43991. identifier = _this.identifier$0();
  43992. if (t1.matches$1(".$")) {
  43993. t1.readChar$0();
  43994. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  43995. } else {
  43996. t2 = new P.StringBuffer("");
  43997. buffer = new Z.InterpolationBuffer(t2, []);
  43998. t2._contents = identifier;
  43999. if (_this._lookingAtInterpolatedIdentifierBody$0())
  44000. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44001. return buffer.interpolation$1(t1.spanFrom$1(start));
  44002. }
  44003. },
  44004. _stylesheet$_styleRule$2: function(buffer, start) {
  44005. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  44006. t1.start = start;
  44007. _this._isUseAllowed = false;
  44008. if (start == null) {
  44009. t2 = _this.scanner;
  44010. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  44011. } else
  44012. t2 = start;
  44013. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  44014. if (buffer != null) {
  44015. buffer.addInterpolation$1(interpolation);
  44016. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  44017. } else
  44018. t3 = interpolation;
  44019. if (t3.contents.length === 0)
  44020. _this.scanner.error$1(0, 'expected "}".');
  44021. wasInStyleRule = _this._inStyleRule;
  44022. _this._inStyleRule = true;
  44023. return _this._withChildren$3(_this.get$_statement(), t2, new V.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule));
  44024. },
  44025. _stylesheet$_styleRule$0: function() {
  44026. return this._stylesheet$_styleRule$2(null, null);
  44027. },
  44028. _propertyOrVariableDeclaration$1$parseCustomProperties: function(parseCustomProperties) {
  44029. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  44030. _s48_ = string$.Nested,
  44031. t1 = {},
  44032. t2 = _this.scanner,
  44033. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  44034. t1.name = null;
  44035. first = t2.peekChar$0();
  44036. if (first !== 58)
  44037. if (first !== 42)
  44038. if (first !== 46)
  44039. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  44040. else
  44041. t3 = true;
  44042. else
  44043. t3 = true;
  44044. else
  44045. t3 = true;
  44046. if (t3) {
  44047. t3 = new P.StringBuffer("");
  44048. nameBuffer = new Z.InterpolationBuffer(t3, []);
  44049. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  44050. t3._contents += _this.rawText$1(_this.get$whitespace());
  44051. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  44052. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  44053. } else if (!_this.get$plainCss()) {
  44054. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  44055. if (variableOrInterpolation instanceof Z.VariableDeclaration)
  44056. return variableOrInterpolation;
  44057. else {
  44058. type$.legacy_Interpolation._as(variableOrInterpolation);
  44059. t1.name = variableOrInterpolation;
  44060. }
  44061. t3 = variableOrInterpolation;
  44062. } else {
  44063. $name = _this.interpolatedIdentifier$0();
  44064. t1.name = $name;
  44065. t3 = $name;
  44066. }
  44067. _this.whitespace$0();
  44068. t2.expectChar$1(58);
  44069. if (parseCustomProperties && C.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) {
  44070. t1 = _this._interpolatedDeclarationValue$0();
  44071. _this.expectStatementSeparator$1("custom property");
  44072. return L.Declaration$(t3, t2.spanFrom$1(start), null, new D.StringExpression(t1, false));
  44073. }
  44074. _this.whitespace$0();
  44075. if (_this.lookingAtChildren$0()) {
  44076. if (_this.get$plainCss())
  44077. t2.error$1(0, _s48_);
  44078. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure(t1));
  44079. }
  44080. value = _this.expression$0();
  44081. if (_this.lookingAtChildren$0()) {
  44082. if (_this.get$plainCss())
  44083. t2.error$1(0, _s48_);
  44084. return _this._withChildren$3(_this.get$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure0(t1, value));
  44085. } else {
  44086. _this.expectStatementSeparator$0();
  44087. return L.Declaration$(t3, t2.spanFrom$1(start), null, value);
  44088. }
  44089. },
  44090. _propertyOrVariableDeclaration$0: function() {
  44091. return this._propertyOrVariableDeclaration$1$parseCustomProperties(true);
  44092. },
  44093. _declarationChild$0: function() {
  44094. if (this.scanner.peekChar$0() === 64)
  44095. return this._declarationAtRule$0();
  44096. return this._propertyOrVariableDeclaration$1$parseCustomProperties(false);
  44097. },
  44098. atRule$2$root: function(child, root) {
  44099. var $name, wasUseAllowed, value, optional, _this = this,
  44100. t1 = _this.scanner,
  44101. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44102. t1.expectChar$2$name(64, "@-rule");
  44103. $name = _this.interpolatedIdentifier$0();
  44104. _this.whitespace$0();
  44105. wasUseAllowed = _this._isUseAllowed;
  44106. _this._isUseAllowed = false;
  44107. switch ($name.get$asPlain()) {
  44108. case "at-root":
  44109. return _this._atRootRule$1(start);
  44110. case "charset":
  44111. _this._isUseAllowed = wasUseAllowed;
  44112. if (!root)
  44113. _this._disallowedAtRule$1(start);
  44114. _this.string$0();
  44115. return null;
  44116. case "content":
  44117. return _this._contentRule$1(start);
  44118. case "debug":
  44119. return _this._debugRule$1(start);
  44120. case "each":
  44121. return _this._eachRule$2(start, child);
  44122. case "else":
  44123. return _this._disallowedAtRule$1(start);
  44124. case "error":
  44125. return _this._errorRule$1(start);
  44126. case "extend":
  44127. if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
  44128. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  44129. value = _this.almostAnyValue$0();
  44130. optional = t1.scanChar$1(33);
  44131. if (optional)
  44132. _this.expectIdentifier$1("optional");
  44133. _this.expectStatementSeparator$1("@extend rule");
  44134. return new X.ExtendRule(value, optional, t1.spanFrom$1(start));
  44135. case "for":
  44136. return _this._forRule$2(start, child);
  44137. case "forward":
  44138. _this._isUseAllowed = wasUseAllowed;
  44139. if (!root)
  44140. _this._disallowedAtRule$1(start);
  44141. return _this._forwardRule$1(start);
  44142. case "function":
  44143. return _this._functionRule$1(start);
  44144. case "if":
  44145. return _this._ifRule$2(start, child);
  44146. case "import":
  44147. return _this._importRule$1(start);
  44148. case "include":
  44149. return _this._includeRule$1(start);
  44150. case "media":
  44151. return _this.mediaRule$1(start);
  44152. case "mixin":
  44153. return _this._mixinRule$1(start);
  44154. case "-moz-document":
  44155. return _this.mozDocumentRule$2(start, $name);
  44156. case "return":
  44157. return _this._disallowedAtRule$1(start);
  44158. case "supports":
  44159. return _this.supportsRule$1(start);
  44160. case "use":
  44161. _this._isUseAllowed = wasUseAllowed;
  44162. if (!root)
  44163. _this._disallowedAtRule$1(start);
  44164. return _this._useRule$1(start);
  44165. case "warn":
  44166. return _this._warnRule$1(start);
  44167. case "while":
  44168. return _this._whileRule$2(start, child);
  44169. default:
  44170. return _this.unknownAtRule$2(start, $name);
  44171. }
  44172. },
  44173. _declarationAtRule$0: function() {
  44174. var _this = this,
  44175. t1 = _this.scanner,
  44176. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44177. switch (_this._plainAtRuleName$0()) {
  44178. case "content":
  44179. return _this._contentRule$1(start);
  44180. case "debug":
  44181. return _this._debugRule$1(start);
  44182. case "each":
  44183. return _this._eachRule$2(start, _this.get$_declarationChild());
  44184. case "else":
  44185. return _this._disallowedAtRule$1(start);
  44186. case "error":
  44187. return _this._errorRule$1(start);
  44188. case "for":
  44189. return _this._forRule$2(start, _this.get$_declarationAtRule());
  44190. case "if":
  44191. return _this._ifRule$2(start, _this.get$_declarationChild());
  44192. case "include":
  44193. return _this._includeRule$1(start);
  44194. case "warn":
  44195. return _this._warnRule$1(start);
  44196. case "while":
  44197. return _this._whileRule$2(start, _this.get$_declarationChild());
  44198. default:
  44199. return _this._disallowedAtRule$1(start);
  44200. }
  44201. },
  44202. _functionChild$0: function() {
  44203. var state, variableDeclarationError, statement, t2, exception, t3, start, value, _this = this,
  44204. t1 = _this.scanner;
  44205. if (t1.peekChar$0() !== 64) {
  44206. state = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44207. try {
  44208. t2 = _this._variableDeclarationWithNamespace$0();
  44209. return t2;
  44210. } catch (exception) {
  44211. t2 = H.unwrapException(exception);
  44212. t3 = type$.legacy_SourceSpanFormatException;
  44213. if (t3._is(t2)) {
  44214. variableDeclarationError = t2;
  44215. t1.set$state(state);
  44216. statement = null;
  44217. try {
  44218. statement = _this._declarationOrStyleRule$0();
  44219. } catch (exception) {
  44220. if (t3._is(H.unwrapException(exception)))
  44221. throw H.wrapException(variableDeclarationError);
  44222. else
  44223. throw exception;
  44224. }
  44225. _this.error$2(0, "@function rules may not contain " + (statement instanceof X.StyleRule ? "style rules" : "declarations") + ".", statement.get$span());
  44226. } else
  44227. throw exception;
  44228. }
  44229. }
  44230. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44231. switch (_this._plainAtRuleName$0()) {
  44232. case "debug":
  44233. return _this._debugRule$1(start);
  44234. case "each":
  44235. return _this._eachRule$2(start, _this.get$_functionChild());
  44236. case "else":
  44237. return _this._disallowedAtRule$1(start);
  44238. case "error":
  44239. return _this._errorRule$1(start);
  44240. case "for":
  44241. return _this._forRule$2(start, _this.get$_functionChild());
  44242. case "if":
  44243. return _this._ifRule$2(start, _this.get$_functionChild());
  44244. case "return":
  44245. value = _this.expression$0();
  44246. _this.expectStatementSeparator$1("@return rule");
  44247. return new B.ReturnRule(value, t1.spanFrom$1(start));
  44248. case "warn":
  44249. return _this._warnRule$1(start);
  44250. case "while":
  44251. return _this._whileRule$2(start, _this.get$_functionChild());
  44252. default:
  44253. return _this._disallowedAtRule$1(start);
  44254. }
  44255. },
  44256. _plainAtRuleName$0: function() {
  44257. this.scanner.expectChar$2$name(64, "@-rule");
  44258. var $name = this.identifier$0();
  44259. this.whitespace$0();
  44260. return $name;
  44261. },
  44262. _atRootRule$1: function(start) {
  44263. var query, _this = this,
  44264. t1 = _this.scanner;
  44265. if (t1.peekChar$0() === 40) {
  44266. query = _this._atRootQuery$0();
  44267. _this.whitespace$0();
  44268. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure(query));
  44269. } else if (_this.lookingAtChildren$0())
  44270. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__atRootRule_closure0());
  44271. else
  44272. return V.AtRootRule$(H.setRuntimeTypeInfo([_this._stylesheet$_styleRule$0()], type$.JSArray_legacy_Statement), t1.spanFrom$1(start), null);
  44273. },
  44274. _atRootQuery$0: function() {
  44275. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  44276. t1 = _this.scanner;
  44277. if (t1.peekChar$0() === 35) {
  44278. interpolation = _this.singleInterpolation$0();
  44279. return X.Interpolation$(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  44280. }
  44281. t2 = t1._string_scanner$_position;
  44282. t3 = new P.StringBuffer("");
  44283. t4 = [];
  44284. buffer = new Z.InterpolationBuffer(t3, t4);
  44285. t1.expectChar$1(40);
  44286. t3._contents += H.Primitives_stringFromCharCode(40);
  44287. _this.whitespace$0();
  44288. t5 = _this.expression$0();
  44289. buffer._flushText$0();
  44290. t4.push(t5);
  44291. if (t1.scanChar$1(58)) {
  44292. _this.whitespace$0();
  44293. t3._contents += H.Primitives_stringFromCharCode(58);
  44294. t3._contents += H.Primitives_stringFromCharCode(32);
  44295. t5 = _this.expression$0();
  44296. buffer._flushText$0();
  44297. t4.push(t5);
  44298. }
  44299. t1.expectChar$1(41);
  44300. _this.whitespace$0();
  44301. t3._contents += H.Primitives_stringFromCharCode(41);
  44302. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  44303. },
  44304. _contentRule$1: function(start) {
  44305. var t1, $arguments, t2, t3, _this = this;
  44306. if (!_this._stylesheet$_inMixin)
  44307. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  44308. _this.whitespace$0();
  44309. t1 = _this.scanner;
  44310. if (t1.peekChar$0() === 40)
  44311. $arguments = _this._argumentInvocation$1$mixin(true);
  44312. else {
  44313. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  44314. t3 = t2.offset;
  44315. $arguments = X.ArgumentInvocation$empty(Y._FileSpan$(t2.file, t3, t3));
  44316. }
  44317. _this._mixinHasContent = true;
  44318. _this.expectStatementSeparator$1("@content rule");
  44319. return new Q.ContentRule(t1.spanFrom$1(start), $arguments);
  44320. },
  44321. _debugRule$1: function(start) {
  44322. var value = this.expression$0();
  44323. this.expectStatementSeparator$1("@debug rule");
  44324. return new Q.DebugRule(value, this.scanner.spanFrom$1(start));
  44325. },
  44326. _eachRule$2: function(start, child) {
  44327. var variables, t1, _this = this,
  44328. wasInControlDirective = _this._inControlDirective;
  44329. _this._inControlDirective = true;
  44330. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_legacy_String);
  44331. _this.whitespace$0();
  44332. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  44333. _this.whitespace$0();
  44334. t1.expectChar$1(36);
  44335. variables.push(_this.identifier$1$normalize(true));
  44336. _this.whitespace$0();
  44337. }
  44338. _this.expectIdentifier$1("in");
  44339. _this.whitespace$0();
  44340. return _this._withChildren$3(child, start, new V.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this.expression$0()));
  44341. },
  44342. _errorRule$1: function(start) {
  44343. var value = this.expression$0();
  44344. this.expectStatementSeparator$1("@error rule");
  44345. return new D.ErrorRule(value, this.scanner.spanFrom$1(start));
  44346. },
  44347. _functionRule$1: function(start) {
  44348. var $name, $arguments, _this = this,
  44349. precedingComment = _this.lastSilentComment;
  44350. _this.lastSilentComment = null;
  44351. $name = _this.identifier$1$normalize(true);
  44352. _this.whitespace$0();
  44353. $arguments = _this._argumentDeclaration$0();
  44354. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  44355. _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start));
  44356. else if (_this._inControlDirective)
  44357. _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start));
  44358. switch (B.unvendor($name)) {
  44359. case "calc":
  44360. case "element":
  44361. case "expression":
  44362. case "url":
  44363. case "and":
  44364. case "or":
  44365. case "not":
  44366. case "clamp":
  44367. _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start));
  44368. break;
  44369. }
  44370. _this.whitespace$0();
  44371. return _this._withChildren$3(_this.get$_functionChild(), start, new V.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
  44372. },
  44373. _forRule$2: function(start, child) {
  44374. var variable, from, _this = this, t1 = {},
  44375. wasInControlDirective = _this._inControlDirective;
  44376. _this._inControlDirective = true;
  44377. variable = _this.variableName$0();
  44378. _this.whitespace$0();
  44379. _this.expectIdentifier$1("from");
  44380. _this.whitespace$0();
  44381. t1.exclusive = null;
  44382. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure(t1, _this));
  44383. if (t1.exclusive == null)
  44384. _this.scanner.error$1(0, 'Expected "to" or "through".');
  44385. _this.whitespace$0();
  44386. return _this._withChildren$3(child, start, new V.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  44387. },
  44388. _forwardRule$1: function(start) {
  44389. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  44390. url = _this._urlString$0();
  44391. _this.whitespace$0();
  44392. if (_this.scanIdentifier$1("as")) {
  44393. _this.whitespace$0();
  44394. prefix = _this.identifier$1$normalize(true);
  44395. _this.scanner.expectChar$1(42);
  44396. _this.whitespace$0();
  44397. } else
  44398. prefix = _null;
  44399. if (_this.scanIdentifier$1("show")) {
  44400. members = _this._memberList$0();
  44401. shownMixinsAndFunctions = members.item1;
  44402. shownVariables = members.item2;
  44403. hiddenVariables = _null;
  44404. hiddenMixinsAndFunctions = hiddenVariables;
  44405. } else {
  44406. if (_this.scanIdentifier$1("hide")) {
  44407. members = _this._memberList$0();
  44408. hiddenMixinsAndFunctions = members.item1;
  44409. hiddenVariables = members.item2;
  44410. } else {
  44411. hiddenVariables = _null;
  44412. hiddenMixinsAndFunctions = hiddenVariables;
  44413. }
  44414. shownVariables = _null;
  44415. shownMixinsAndFunctions = shownVariables;
  44416. }
  44417. configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
  44418. _this.expectStatementSeparator$1("@forward rule");
  44419. span = _this.scanner.spanFrom$1(start);
  44420. if (!_this._isUseAllowed)
  44421. _this.error$2(0, string$.x40forwa, span);
  44422. if (shownMixinsAndFunctions != null) {
  44423. t1 = type$.legacy_String;
  44424. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  44425. t3 = type$.UnmodifiableSetView_legacy_String;
  44426. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  44427. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable);
  44428. return new L.ForwardRule(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  44429. } else if (hiddenMixinsAndFunctions != null) {
  44430. t1 = type$.legacy_String;
  44431. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  44432. t3 = type$.UnmodifiableSetView_legacy_String;
  44433. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  44434. t4 = configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable);
  44435. return new L.ForwardRule(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  44436. } else
  44437. return new L.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable), span);
  44438. },
  44439. _memberList$0: function() {
  44440. var _this = this,
  44441. t1 = type$.legacy_String,
  44442. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  44443. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  44444. t1 = _this.scanner;
  44445. do {
  44446. _this.whitespace$0();
  44447. _this.withErrorMessage$2(string$.Expect, new V.StylesheetParser__memberList_closure(_this, variables, identifiers));
  44448. _this.whitespace$0();
  44449. } while (t1.scanChar$1(44));
  44450. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String);
  44451. },
  44452. _ifRule$2: function(start, child) {
  44453. var condition, children, clauses, lastClause, span, _this = this,
  44454. ifIndentation = _this.get$currentIndentation(),
  44455. wasInControlDirective = _this._inControlDirective;
  44456. _this._inControlDirective = true;
  44457. condition = _this.expression$0();
  44458. children = _this.children$1(0, child);
  44459. _this.whitespaceWithoutComments$0();
  44460. clauses = H.setRuntimeTypeInfo([V.IfClause$(condition, children)], type$.JSArray_legacy_IfClause);
  44461. while (true) {
  44462. if (!_this.scanElse$1(ifIndentation)) {
  44463. lastClause = null;
  44464. break;
  44465. }
  44466. _this.whitespace$0();
  44467. if (_this.scanIdentifier$1("if")) {
  44468. _this.whitespace$0();
  44469. clauses.push(V.IfClause$(_this.expression$0(), _this.children$1(0, child)));
  44470. } else {
  44471. lastClause = V.IfClause$last(_this.children$1(0, child));
  44472. break;
  44473. }
  44474. }
  44475. _this._inControlDirective = wasInControlDirective;
  44476. span = _this.scanner.spanFrom$1(start);
  44477. _this.whitespaceWithoutComments$0();
  44478. return new V.IfRule(P.List_List$unmodifiable(clauses, type$.legacy_IfClause), lastClause, span);
  44479. },
  44480. _importRule$1: function(start) {
  44481. var argument, _this = this,
  44482. imports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Import),
  44483. t1 = _this.scanner;
  44484. do {
  44485. _this.whitespace$0();
  44486. argument = _this.importArgument$0();
  44487. if ((_this._inControlDirective || _this._stylesheet$_inMixin) && argument instanceof B.DynamicImport)
  44488. _this._disallowedAtRule$1(start);
  44489. imports.push(argument);
  44490. _this.whitespace$0();
  44491. } while (t1.scanChar$1(44));
  44492. _this.expectStatementSeparator$1("@import rule");
  44493. t1 = t1.spanFrom$1(start);
  44494. return new B.ImportRule(P.List_List$unmodifiable(imports, type$.legacy_Import), t1);
  44495. },
  44496. importArgument$0: function() {
  44497. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  44498. t1 = _this.scanner,
  44499. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  44500. next = t1.peekChar$0();
  44501. if (next === 117 || next === 85) {
  44502. url = _this.dynamicUrl$0();
  44503. _this.whitespace$0();
  44504. queries = _this.tryImportQueries$0();
  44505. t2 = X.Interpolation$(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), t1.spanFrom$1(start));
  44506. t1 = t1.spanFrom$1(start);
  44507. t3 = queries == null;
  44508. t4 = t3 ? _null : queries.item1;
  44509. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  44510. }
  44511. url = _this.string$0();
  44512. urlSpan = t1.spanFrom$1(start);
  44513. _this.whitespace$0();
  44514. queries = _this.tryImportQueries$0();
  44515. if (_this.isPlainImportUrl$1(url) || queries != null) {
  44516. t2 = urlSpan;
  44517. t2 = X.Interpolation$(H.setRuntimeTypeInfo([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], type$.JSArray_legacy_Object), urlSpan);
  44518. t1 = t1.spanFrom$1(start);
  44519. t3 = queries == null;
  44520. t4 = t3 ? _null : queries.item1;
  44521. return new Q.StaticImport(t2, t4, t3 ? _null : queries.item2, t1);
  44522. } else
  44523. try {
  44524. t1 = _this.parseImportUrl$1(url);
  44525. return new B.DynamicImport(t1, urlSpan);
  44526. } catch (exception) {
  44527. t1 = H.unwrapException(exception);
  44528. if (type$.legacy_FormatException._is(t1)) {
  44529. innerError = t1;
  44530. _this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  44531. } else
  44532. throw exception;
  44533. }
  44534. },
  44535. parseImportUrl$1: function(url) {
  44536. var t1 = $.$get$windows();
  44537. if (t1.style.rootLength$1(url) > 0)
  44538. return t1.toUri$1(url).toString$0(0);
  44539. P.Uri_parse(url);
  44540. return url;
  44541. },
  44542. isPlainImportUrl$1: function(url) {
  44543. var first;
  44544. if (url.length < 5)
  44545. return false;
  44546. if (C.JSString_methods.endsWith$1(url, ".css"))
  44547. return true;
  44548. first = C.JSString_methods._codeUnitAt$1(url, 0);
  44549. if (first === 47)
  44550. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  44551. if (first !== 104)
  44552. return false;
  44553. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  44554. },
  44555. tryImportQueries$0: function() {
  44556. var t1, start, supports, $name, media, _this = this;
  44557. if (_this.scanIdentifier$1("supports")) {
  44558. t1 = _this.scanner;
  44559. t1.expectChar$1(40);
  44560. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  44561. if (_this.scanIdentifier$1("not")) {
  44562. _this.whitespace$0();
  44563. supports = new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(start));
  44564. } else if (t1.peekChar$0() === 40)
  44565. supports = _this._supportsCondition$0();
  44566. else {
  44567. $name = _this.expression$0();
  44568. t1.expectChar$1(58);
  44569. _this.whitespace$0();
  44570. supports = new L.SupportsDeclaration($name, _this.expression$0(), t1.spanFrom$1(start));
  44571. }
  44572. t1.expectChar$1(41);
  44573. _this.whitespace$0();
  44574. } else
  44575. supports = null;
  44576. media = _this._lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._mediaQueryList$0() : null;
  44577. if (supports == null && media == null)
  44578. return null;
  44579. return new S.Tuple2(supports, media, type$.Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation);
  44580. },
  44581. _includeRule$1: function(start) {
  44582. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  44583. $name = _this.identifier$0(),
  44584. t2 = _this.scanner;
  44585. if (t2.scanChar$1(46)) {
  44586. name0 = _this._publicIdentifier$0();
  44587. namespace = $name;
  44588. $name = name0;
  44589. } else {
  44590. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  44591. namespace = _null;
  44592. }
  44593. _this.whitespace$0();
  44594. if (t2.peekChar$0() === 40)
  44595. $arguments = _this._argumentInvocation$1$mixin(true);
  44596. else {
  44597. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  44598. t4 = t3.offset;
  44599. $arguments = X.ArgumentInvocation$empty(Y._FileSpan$(t3.file, t4, t4));
  44600. }
  44601. _this.whitespace$0();
  44602. t1.contentArguments = null;
  44603. if (_this.scanIdentifier$1("using")) {
  44604. _this.whitespace$0();
  44605. t3 = t1.contentArguments = _this._argumentDeclaration$0();
  44606. _this.whitespace$0();
  44607. } else
  44608. t3 = _null;
  44609. t3 = t3 == null;
  44610. if (!t3 || _this.lookingAtChildren$0()) {
  44611. if (t3) {
  44612. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  44613. t4 = t3.offset;
  44614. t1.contentArguments = new B.ArgumentDeclaration(C.List_empty8, _null, Y._FileSpan$(t3.file, t4, t4));
  44615. }
  44616. wasInContentBlock = _this._inContentBlock;
  44617. _this._inContentBlock = true;
  44618. $content = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__includeRule_closure(t1));
  44619. _this._inContentBlock = wasInContentBlock;
  44620. } else {
  44621. _this.expectStatementSeparator$0();
  44622. $content = _null;
  44623. }
  44624. t1 = t2.spanFrom$2(start, start);
  44625. return new A.IncludeRule(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  44626. },
  44627. mediaRule$1: function(start) {
  44628. return this._withChildren$3(this.get$_statement(), start, new V.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
  44629. },
  44630. _mixinRule$1: function(start) {
  44631. var $name, t1, $arguments, t2, t3, _this = this,
  44632. precedingComment = _this.lastSilentComment;
  44633. _this.lastSilentComment = null;
  44634. $name = _this.identifier$1$normalize(true);
  44635. _this.whitespace$0();
  44636. t1 = _this.scanner;
  44637. if (t1.peekChar$0() === 40)
  44638. $arguments = _this._argumentDeclaration$0();
  44639. else {
  44640. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  44641. t3 = t2.offset;
  44642. $arguments = new B.ArgumentDeclaration(C.List_empty8, null, Y._FileSpan$(t2.file, t3, t3));
  44643. }
  44644. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  44645. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  44646. else if (_this._inControlDirective)
  44647. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  44648. _this.whitespace$0();
  44649. _this._stylesheet$_inMixin = true;
  44650. _this._mixinHasContent = false;
  44651. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
  44652. },
  44653. mozDocumentRule$2: function(start, $name) {
  44654. var t5, t6, identifier, contents, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {},
  44655. t1 = _this.scanner,
  44656. t2 = t1._string_scanner$_position,
  44657. t3 = new P.StringBuffer(""),
  44658. t4 = [],
  44659. buffer = new Z.InterpolationBuffer(t3, t4);
  44660. _box_0.needsDeprecationWarning = false;
  44661. for (t5 = _this.get$whitespace(); true;) {
  44662. if (t1.peekChar$0() === 35) {
  44663. t6 = _this.singleInterpolation$0();
  44664. buffer._flushText$0();
  44665. t4.push(t6);
  44666. _box_0.needsDeprecationWarning = true;
  44667. } else {
  44668. t6 = t1._string_scanner$_position;
  44669. identifier = _this.identifier$0();
  44670. switch (identifier) {
  44671. case "url":
  44672. case "url-prefix":
  44673. case "domain":
  44674. contents = _this._tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  44675. if (contents != null)
  44676. buffer.addInterpolation$1(contents);
  44677. else {
  44678. t1.expectChar$1(40);
  44679. _this.whitespace$0();
  44680. argument = _this.interpolatedString$0();
  44681. t1.expectChar$1(41);
  44682. t3._contents += identifier;
  44683. t3._contents += H.Primitives_stringFromCharCode(40);
  44684. buffer.addInterpolation$1(argument.asInterpolation$0());
  44685. t3._contents += H.Primitives_stringFromCharCode(41);
  44686. }
  44687. t6 = t3._contents;
  44688. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  44689. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  44690. _box_0.needsDeprecationWarning = true;
  44691. break;
  44692. case "regexp":
  44693. t3._contents += "regexp(";
  44694. t1.expectChar$1(40);
  44695. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  44696. t1.expectChar$1(41);
  44697. t3._contents += H.Primitives_stringFromCharCode(41);
  44698. _box_0.needsDeprecationWarning = true;
  44699. break;
  44700. default:
  44701. endPosition = t1._string_scanner$_position;
  44702. t7 = t1._sourceFile;
  44703. t8 = new Y._FileSpan(t7, t6, endPosition);
  44704. t8._FileSpan$3(t7, t6, endPosition);
  44705. _this.error$2(0, "Invalid function name.", t8);
  44706. }
  44707. }
  44708. _this.whitespace$0();
  44709. if (!t1.scanChar$1(44))
  44710. break;
  44711. t3._contents += H.Primitives_stringFromCharCode(44);
  44712. start0 = t1._string_scanner$_position;
  44713. t5.call$0();
  44714. end = t1._string_scanner$_position;
  44715. t3._contents += J.substring$2$s(t1.string, start0, end);
  44716. }
  44717. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  44718. },
  44719. supportsRule$1: function(start) {
  44720. var _this = this,
  44721. condition = _this._supportsCondition$0();
  44722. _this.whitespace$0();
  44723. return _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_supportsRule_closure(condition));
  44724. },
  44725. _useRule$1: function(start) {
  44726. var namespace, configuration, span, t1, _this = this,
  44727. _s9_ = "@use rule",
  44728. url = _this._urlString$0();
  44729. _this.whitespace$0();
  44730. namespace = _this._useNamespace$2(url, start);
  44731. _this.whitespace$0();
  44732. configuration = _this._stylesheet$_configuration$0();
  44733. _this.expectStatementSeparator$1(_s9_);
  44734. span = _this.scanner.spanFrom$1(start);
  44735. if (!_this._isUseAllowed)
  44736. _this.error$2(0, string$.x40use_r, span);
  44737. _this.expectStatementSeparator$1(_s9_);
  44738. t1 = new T.UseRule(url, namespace, configuration == null ? C.List_empty6 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable), span);
  44739. t1.UseRule$4$configuration(url, namespace, span, configuration);
  44740. return t1;
  44741. },
  44742. _useNamespace$2: function(url, start) {
  44743. var namespace, basename, dot, t1, exception, _this = this;
  44744. if (_this.scanIdentifier$1("as")) {
  44745. _this.whitespace$0();
  44746. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  44747. }
  44748. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  44749. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  44750. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  44751. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  44752. try {
  44753. t1 = S.SpanScanner$(namespace, null);
  44754. t1 = new G.Parser(t1, _this.logger)._parseIdentifier$0();
  44755. return t1;
  44756. } catch (exception) {
  44757. if (H.unwrapException(exception) instanceof E.SassFormatException)
  44758. _this.error$2(0, 'Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  44759. else
  44760. throw exception;
  44761. }
  44762. },
  44763. _stylesheet$_configuration$1$allowGuarded: function(allowGuarded) {
  44764. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
  44765. if (!_this.scanIdentifier$1("with"))
  44766. return null;
  44767. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  44768. configuration = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ConfiguredVariable);
  44769. _this.whitespace$0();
  44770. t1 = _this.scanner;
  44771. t1.expectChar$1(40);
  44772. for (; true;) {
  44773. _this.whitespace$0();
  44774. t2 = t1._string_scanner$_position;
  44775. t1.expectChar$1(36);
  44776. $name = _this.identifier$1$normalize(true);
  44777. _this.whitespace$0();
  44778. t1.expectChar$1(58);
  44779. _this.whitespace$0();
  44780. expression = _this._expressionUntilComma$0();
  44781. t3 = t1._string_scanner$_position;
  44782. if (allowGuarded && t1.scanChar$1(33))
  44783. if (_this.identifier$0() === "default")
  44784. guarded = true;
  44785. else {
  44786. endPosition = t1._string_scanner$_position;
  44787. t4 = t1._sourceFile;
  44788. t5 = new Y._FileSpan(t4, t3, endPosition);
  44789. t5._FileSpan$3(t4, t3, endPosition);
  44790. _this.error$2(0, "Invalid flag name.", t5);
  44791. guarded = false;
  44792. }
  44793. else
  44794. guarded = false;
  44795. endPosition = t1._string_scanner$_position;
  44796. t3 = t1._sourceFile;
  44797. span = new Y._FileSpan(t3, t2, endPosition);
  44798. span._FileSpan$3(t3, t2, endPosition);
  44799. if (variableNames.contains$1(0, $name))
  44800. _this.error$2(0, string$.The_sa, span);
  44801. variableNames.add$1(0, $name);
  44802. configuration.push(new Z.ConfiguredVariable($name, expression, guarded, span));
  44803. if (!t1.scanChar$1(44))
  44804. break;
  44805. _this.whitespace$0();
  44806. if (!_this._lookingAtExpression$0())
  44807. break;
  44808. }
  44809. t1.expectChar$1(41);
  44810. return configuration;
  44811. },
  44812. _stylesheet$_configuration$0: function() {
  44813. return this._stylesheet$_configuration$1$allowGuarded(false);
  44814. },
  44815. _warnRule$1: function(start) {
  44816. var value = this.expression$0();
  44817. this.expectStatementSeparator$1("@warn rule");
  44818. return new Y.WarnRule(value, this.scanner.spanFrom$1(start));
  44819. },
  44820. _whileRule$2: function(start, child) {
  44821. var _this = this,
  44822. wasInControlDirective = _this._inControlDirective;
  44823. _this._inControlDirective = true;
  44824. return _this._withChildren$3(child, start, new V.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this.expression$0()));
  44825. },
  44826. unknownAtRule$2: function(start, $name) {
  44827. var t2, t3, rule, _this = this, t1 = {},
  44828. wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
  44829. _this._stylesheet$_inUnknownAtRule = true;
  44830. t1.value = null;
  44831. t2 = _this.scanner;
  44832. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  44833. if (_this.lookingAtChildren$0())
  44834. rule = _this._withChildren$3(_this.get$_statement(), start, new V.StylesheetParser_unknownAtRule_closure(t1, $name));
  44835. else {
  44836. _this.expectStatementSeparator$0();
  44837. rule = U.AtRule$($name, t2.spanFrom$1(start), null, t3);
  44838. }
  44839. _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
  44840. return rule;
  44841. },
  44842. _disallowedAtRule$1: function(start) {
  44843. this.almostAnyValue$0();
  44844. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  44845. },
  44846. _argumentDeclaration$0: function() {
  44847. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
  44848. t1 = _this.scanner,
  44849. t2 = t1._string_scanner$_position;
  44850. t1.expectChar$1(40);
  44851. _this.whitespace$0();
  44852. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Argument);
  44853. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  44854. while (true) {
  44855. if (!(t1.peekChar$0() === 36)) {
  44856. restArgument = null;
  44857. break;
  44858. }
  44859. t3 = t1._string_scanner$_position;
  44860. t1.expectChar$1(36);
  44861. $name = _this.identifier$1$normalize(true);
  44862. _this.whitespace$0();
  44863. if (t1.scanChar$1(58)) {
  44864. _this.whitespace$0();
  44865. defaultValue = _this._expressionUntilComma$0();
  44866. } else {
  44867. if (t1.scanChar$1(46)) {
  44868. t1.expectChar$1(46);
  44869. t1.expectChar$1(46);
  44870. _this.whitespace$0();
  44871. restArgument = $name;
  44872. break;
  44873. }
  44874. defaultValue = null;
  44875. }
  44876. endPosition = t1._string_scanner$_position;
  44877. t4 = t1._sourceFile;
  44878. t5 = new Y._FileSpan(t4, t3, endPosition);
  44879. t5._FileSpan$3(t4, t3, endPosition);
  44880. $arguments.push(new Z.Argument($name, defaultValue, t5));
  44881. if (!named.add$1(0, $name))
  44882. _this.error$2(0, "Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  44883. if (!t1.scanChar$1(44)) {
  44884. restArgument = null;
  44885. break;
  44886. }
  44887. _this.whitespace$0();
  44888. }
  44889. t1.expectChar$1(41);
  44890. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  44891. return new B.ArgumentDeclaration(P.List_List$unmodifiable($arguments, type$.legacy_Argument), restArgument, t1);
  44892. },
  44893. _argumentInvocation$1$mixin: function(mixin) {
  44894. var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, _this = this,
  44895. t1 = _this.scanner,
  44896. t2 = t1._string_scanner$_position;
  44897. t1.expectChar$1(40);
  44898. _this.whitespace$0();
  44899. positional = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  44900. t3 = type$.legacy_String;
  44901. t4 = type$.legacy_Expression;
  44902. named = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  44903. t5 = !mixin;
  44904. rest = null;
  44905. while (true) {
  44906. if (!_this._lookingAtExpression$0()) {
  44907. keywordRest = null;
  44908. break;
  44909. }
  44910. expression = _this._expressionUntilComma$1$singleEquals(t5);
  44911. _this.whitespace$0();
  44912. if (expression instanceof S.VariableExpression && t1.scanChar$1(58)) {
  44913. _this.whitespace$0();
  44914. t6 = expression.name;
  44915. if (named.containsKey$1(t6))
  44916. _this.error$2(0, "Duplicate argument.", expression.span);
  44917. named.$indexSet(0, t6, _this._expressionUntilComma$1$singleEquals(t5));
  44918. } else if (t1.scanChar$1(46)) {
  44919. t1.expectChar$1(46);
  44920. t1.expectChar$1(46);
  44921. if (rest != null) {
  44922. _this.whitespace$0();
  44923. keywordRest = expression;
  44924. break;
  44925. }
  44926. rest = expression;
  44927. } else if (named.get$isNotEmpty(named))
  44928. _this.error$2(0, string$.Positi, expression.get$span());
  44929. else
  44930. positional.push(expression);
  44931. _this.whitespace$0();
  44932. if (!t1.scanChar$1(44)) {
  44933. keywordRest = null;
  44934. break;
  44935. }
  44936. _this.whitespace$0();
  44937. }
  44938. t1.expectChar$1(41);
  44939. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  44940. return new X.ArgumentInvocation(P.List_List$unmodifiable(positional, t4), H.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  44941. },
  44942. _argumentInvocation$0: function() {
  44943. return this._argumentInvocation$1$mixin(false);
  44944. },
  44945. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  44946. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  44947. _s20_ = "Expected expression.",
  44948. _box_0 = {},
  44949. t1 = until != null;
  44950. if (t1 && until.call$0())
  44951. _this.scanner.error$1(0, _s20_);
  44952. if (bracketList) {
  44953. t2 = _this.scanner;
  44954. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  44955. t2.expectChar$1(91);
  44956. _this.whitespace$0();
  44957. if (t2.scanChar$1(93))
  44958. return D.ListExpression$(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression), C.ListSeparator_undecided, true, t2.spanFrom$1(beforeBracket));
  44959. } else
  44960. beforeBracket = null;
  44961. t2 = _this.scanner;
  44962. t3 = t2._string_scanner$_position;
  44963. wasInParentheses = _this._inParentheses;
  44964. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.commaExpressions = null;
  44965. _box_0.allowSlash = _this.lookingAtNumber$0();
  44966. _box_0.singleExpression = _this._singleExpression$0();
  44967. resetState = new V.StylesheetParser_expression_resetState(_box_0, _this, new S._SpanScannerState(t2, t3));
  44968. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation(_box_0, _this);
  44969. resolveOperations = new V.StylesheetParser_expression_resolveOperations(_box_0, resolveOneOperation);
  44970. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
  44971. addOperator = new V.StylesheetParser_expression_addOperator(_box_0, _this, resolveOneOperation);
  44972. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions(_box_0, resolveOperations);
  44973. $label0$0:
  44974. for (t3 = type$.JSArray_legacy_Expression; true;) {
  44975. _this.whitespace$0();
  44976. if (t1 && until.call$0())
  44977. break $label0$0;
  44978. first = t2.peekChar$0();
  44979. switch (first) {
  44980. case 40:
  44981. addSingleExpression.call$1(_this._parentheses$0());
  44982. break;
  44983. case 91:
  44984. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  44985. break;
  44986. case 36:
  44987. addSingleExpression.call$1(_this._variable$0());
  44988. break;
  44989. case 38:
  44990. addSingleExpression.call$1(_this._selector$0());
  44991. break;
  44992. case 39:
  44993. case 34:
  44994. addSingleExpression.call$1(_this.interpolatedString$0());
  44995. break;
  44996. case 35:
  44997. addSingleExpression.call$1(_this._hashExpression$0());
  44998. break;
  44999. case 61:
  45000. t2.readChar$0();
  45001. if (singleEquals && t2.peekChar$0() !== 61)
  45002. addOperator.call$1(C.BinaryOperator_kjl);
  45003. else {
  45004. t2.expectChar$1(61);
  45005. addOperator.call$1(C.BinaryOperator_YlX);
  45006. }
  45007. break;
  45008. case 33:
  45009. next = t2.peekChar$1(1);
  45010. if (next === 61) {
  45011. t2.readChar$0();
  45012. t2.readChar$0();
  45013. addOperator.call$1(C.BinaryOperator_i5H);
  45014. } else {
  45015. if (next != null)
  45016. if ((next | 32) !== 105)
  45017. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  45018. else
  45019. t4 = true;
  45020. else
  45021. t4 = true;
  45022. if (t4)
  45023. addSingleExpression.call$1(_this._importantExpression$0());
  45024. else
  45025. break $label0$0;
  45026. }
  45027. break;
  45028. case 60:
  45029. t2.readChar$0();
  45030. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h : C.BinaryOperator_8qt);
  45031. break;
  45032. case 62:
  45033. t2.readChar$0();
  45034. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da : C.BinaryOperator_AcR);
  45035. break;
  45036. case 42:
  45037. t2.readChar$0();
  45038. addOperator.call$1(C.BinaryOperator_O1M);
  45039. break;
  45040. case 43:
  45041. if (_box_0.singleExpression == null)
  45042. addSingleExpression.call$1(_this._unaryOperation$0());
  45043. else {
  45044. t2.readChar$0();
  45045. addOperator.call$1(C.BinaryOperator_AcR0);
  45046. }
  45047. break;
  45048. case 45:
  45049. next = t2.peekChar$1(1);
  45050. if (next != null && next >= 48 && next <= 57 || next === 46)
  45051. if (_box_0.singleExpression != null) {
  45052. t4 = t2.peekChar$1(-1);
  45053. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  45054. } else
  45055. t4 = true;
  45056. else
  45057. t4 = false;
  45058. if (t4)
  45059. addSingleExpression.call$2$number(_this._number$0(), true);
  45060. else if (_this._lookingAtInterpolatedIdentifier$0())
  45061. addSingleExpression.call$1(_this.identifierLike$0());
  45062. else if (_box_0.singleExpression == null)
  45063. addSingleExpression.call$1(_this._unaryOperation$0());
  45064. else {
  45065. t2.readChar$0();
  45066. addOperator.call$1(C.BinaryOperator_iyO);
  45067. }
  45068. break;
  45069. case 47:
  45070. if (_box_0.singleExpression == null)
  45071. addSingleExpression.call$1(_this._unaryOperation$0());
  45072. else {
  45073. t2.readChar$0();
  45074. addOperator.call$1(C.BinaryOperator_RTB);
  45075. }
  45076. break;
  45077. case 37:
  45078. t2.readChar$0();
  45079. addOperator.call$1(C.BinaryOperator_2ad);
  45080. break;
  45081. case 48:
  45082. case 49:
  45083. case 50:
  45084. case 51:
  45085. case 52:
  45086. case 53:
  45087. case 54:
  45088. case 55:
  45089. case 56:
  45090. case 57:
  45091. addSingleExpression.call$2$number(_this._number$0(), true);
  45092. break;
  45093. case 46:
  45094. if (t2.peekChar$1(1) === 46)
  45095. break $label0$0;
  45096. addSingleExpression.call$2$number(_this._number$0(), true);
  45097. break;
  45098. case 97:
  45099. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  45100. addOperator.call$1(C.BinaryOperator_and_and_2);
  45101. else
  45102. addSingleExpression.call$1(_this.identifierLike$0());
  45103. break;
  45104. case 111:
  45105. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  45106. addOperator.call$1(C.BinaryOperator_or_or_1);
  45107. else
  45108. addSingleExpression.call$1(_this.identifierLike$0());
  45109. break;
  45110. case 117:
  45111. case 85:
  45112. if (t2.peekChar$1(1) === 43)
  45113. addSingleExpression.call$1(_this._unicodeRange$0());
  45114. else
  45115. addSingleExpression.call$1(_this.identifierLike$0());
  45116. break;
  45117. case 98:
  45118. case 99:
  45119. case 100:
  45120. case 101:
  45121. case 102:
  45122. case 103:
  45123. case 104:
  45124. case 105:
  45125. case 106:
  45126. case 107:
  45127. case 108:
  45128. case 109:
  45129. case 110:
  45130. case 112:
  45131. case 113:
  45132. case 114:
  45133. case 115:
  45134. case 116:
  45135. case 118:
  45136. case 119:
  45137. case 120:
  45138. case 121:
  45139. case 122:
  45140. case 65:
  45141. case 66:
  45142. case 67:
  45143. case 68:
  45144. case 69:
  45145. case 70:
  45146. case 71:
  45147. case 72:
  45148. case 73:
  45149. case 74:
  45150. case 75:
  45151. case 76:
  45152. case 77:
  45153. case 78:
  45154. case 79:
  45155. case 80:
  45156. case 81:
  45157. case 82:
  45158. case 83:
  45159. case 84:
  45160. case 86:
  45161. case 87:
  45162. case 88:
  45163. case 89:
  45164. case 90:
  45165. case 95:
  45166. case 92:
  45167. addSingleExpression.call$1(_this.identifierLike$0());
  45168. break;
  45169. case 44:
  45170. if (_this._inParentheses) {
  45171. _this._inParentheses = false;
  45172. if (_box_0.allowSlash) {
  45173. resetState.call$0();
  45174. break;
  45175. }
  45176. }
  45177. if (_box_0.commaExpressions == null)
  45178. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  45179. if (_box_0.singleExpression == null)
  45180. t2.error$1(0, _s20_);
  45181. resolveSpaceExpressions.call$0();
  45182. _box_0.commaExpressions.push(_box_0.singleExpression);
  45183. t2.readChar$0();
  45184. _box_0.allowSlash = true;
  45185. _box_0.singleExpression = null;
  45186. break;
  45187. default:
  45188. if (first != null && first >= 128) {
  45189. addSingleExpression.call$1(_this.identifierLike$0());
  45190. break;
  45191. } else
  45192. break $label0$0;
  45193. }
  45194. }
  45195. if (bracketList)
  45196. t2.expectChar$1(93);
  45197. if (_box_0.commaExpressions != null) {
  45198. resolveSpaceExpressions.call$0();
  45199. _this._inParentheses = wasInParentheses;
  45200. t1 = _box_0.singleExpression;
  45201. if (t1 != null)
  45202. _box_0.commaExpressions.push(t1);
  45203. t1 = _box_0.commaExpressions;
  45204. return D.ListExpression$(t1, C.ListSeparator_comma, bracketList, bracketList ? t2.spanFrom$1(beforeBracket) : null);
  45205. } else if (bracketList && _box_0.spaceExpressions != null) {
  45206. resolveOperations.call$0();
  45207. t1 = _box_0.spaceExpressions;
  45208. t1.push(_box_0.singleExpression);
  45209. return D.ListExpression$(t1, C.ListSeparator_space, true, t2.spanFrom$1(beforeBracket));
  45210. } else {
  45211. resolveSpaceExpressions.call$0();
  45212. if (bracketList)
  45213. _box_0.singleExpression = D.ListExpression$(H.setRuntimeTypeInfo([_box_0.singleExpression], t3), C.ListSeparator_undecided, true, t2.spanFrom$1(beforeBracket));
  45214. return _box_0.singleExpression;
  45215. }
  45216. },
  45217. expression$0: function() {
  45218. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  45219. },
  45220. expression$2$singleEquals$until: function(singleEquals, until) {
  45221. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  45222. },
  45223. expression$1$bracketList: function(bracketList) {
  45224. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  45225. },
  45226. expression$1$singleEquals: function(singleEquals) {
  45227. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  45228. },
  45229. expression$1$until: function(until) {
  45230. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  45231. },
  45232. _expressionUntilComma$1$singleEquals: function(singleEquals) {
  45233. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure(this));
  45234. },
  45235. _expressionUntilComma$0: function() {
  45236. return this._expressionUntilComma$1$singleEquals(false);
  45237. },
  45238. _singleExpression$0: function() {
  45239. var next, _this = this,
  45240. t1 = _this.scanner,
  45241. first = t1.peekChar$0();
  45242. switch (first) {
  45243. case 40:
  45244. return _this._parentheses$0();
  45245. case 47:
  45246. return _this._unaryOperation$0();
  45247. case 46:
  45248. return _this._number$0();
  45249. case 91:
  45250. return _this.expression$1$bracketList(true);
  45251. case 36:
  45252. return _this._variable$0();
  45253. case 38:
  45254. return _this._selector$0();
  45255. case 39:
  45256. case 34:
  45257. return _this.interpolatedString$0();
  45258. case 35:
  45259. return _this._hashExpression$0();
  45260. case 43:
  45261. next = t1.peekChar$1(1);
  45262. return T.isDigit(next) || next === 46 ? _this._number$0() : _this._unaryOperation$0();
  45263. case 45:
  45264. return _this._minusExpression$0();
  45265. case 33:
  45266. return _this._importantExpression$0();
  45267. case 117:
  45268. case 85:
  45269. if (t1.peekChar$1(1) === 43)
  45270. return _this._unicodeRange$0();
  45271. else
  45272. return _this.identifierLike$0();
  45273. case 48:
  45274. case 49:
  45275. case 50:
  45276. case 51:
  45277. case 52:
  45278. case 53:
  45279. case 54:
  45280. case 55:
  45281. case 56:
  45282. case 57:
  45283. return _this._number$0();
  45284. case 97:
  45285. case 98:
  45286. case 99:
  45287. case 100:
  45288. case 101:
  45289. case 102:
  45290. case 103:
  45291. case 104:
  45292. case 105:
  45293. case 106:
  45294. case 107:
  45295. case 108:
  45296. case 109:
  45297. case 110:
  45298. case 111:
  45299. case 112:
  45300. case 113:
  45301. case 114:
  45302. case 115:
  45303. case 116:
  45304. case 118:
  45305. case 119:
  45306. case 120:
  45307. case 121:
  45308. case 122:
  45309. case 65:
  45310. case 66:
  45311. case 67:
  45312. case 68:
  45313. case 69:
  45314. case 70:
  45315. case 71:
  45316. case 72:
  45317. case 73:
  45318. case 74:
  45319. case 75:
  45320. case 76:
  45321. case 77:
  45322. case 78:
  45323. case 79:
  45324. case 80:
  45325. case 81:
  45326. case 82:
  45327. case 83:
  45328. case 84:
  45329. case 86:
  45330. case 87:
  45331. case 88:
  45332. case 89:
  45333. case 90:
  45334. case 95:
  45335. case 92:
  45336. return _this.identifierLike$0();
  45337. default:
  45338. if (first != null && first >= 128)
  45339. return _this.identifierLike$0();
  45340. t1.error$1(0, "Expected expression.");
  45341. }
  45342. },
  45343. _parentheses$0: function() {
  45344. var wasInParentheses, start, first, expressions, t1, _this = this;
  45345. if (_this.get$plainCss())
  45346. _this.scanner.error$2$length(0, "Parentheses aren't allowed in plain CSS.", 1);
  45347. wasInParentheses = _this._inParentheses;
  45348. _this._inParentheses = true;
  45349. try {
  45350. t1 = _this.scanner;
  45351. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45352. t1.expectChar$1(40);
  45353. _this.whitespace$0();
  45354. if (!_this._lookingAtExpression$0()) {
  45355. t1.expectChar$1(41);
  45356. t1 = D.ListExpression$(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression), C.ListSeparator_undecided, false, t1.spanFrom$1(start));
  45357. return t1;
  45358. }
  45359. first = _this._expressionUntilComma$0();
  45360. if (t1.scanChar$1(58)) {
  45361. _this.whitespace$0();
  45362. t1 = _this._stylesheet$_map$2(first, start);
  45363. return t1;
  45364. }
  45365. if (!t1.scanChar$1(44)) {
  45366. t1.expectChar$1(41);
  45367. t1 = t1.spanFrom$1(start);
  45368. return new T.ParenthesizedExpression(first, t1);
  45369. }
  45370. _this.whitespace$0();
  45371. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_legacy_Expression);
  45372. for (; true;) {
  45373. if (!_this._lookingAtExpression$0())
  45374. break;
  45375. J.add$1$ax(expressions, _this._expressionUntilComma$0());
  45376. if (!t1.scanChar$1(44))
  45377. break;
  45378. _this.whitespace$0();
  45379. }
  45380. t1.expectChar$1(41);
  45381. t1 = D.ListExpression$(expressions, C.ListSeparator_comma, false, t1.spanFrom$1(start));
  45382. return t1;
  45383. } finally {
  45384. _this._inParentheses = wasInParentheses;
  45385. }
  45386. },
  45387. _stylesheet$_map$2: function(first, start) {
  45388. var t2, key, _this = this,
  45389. t1 = type$.Tuple2_of_legacy_Expression_and_legacy_Expression,
  45390. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._expressionUntilComma$0(), t1)], type$.JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression);
  45391. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  45392. _this.whitespace$0();
  45393. if (!_this._lookingAtExpression$0())
  45394. break;
  45395. key = _this._expressionUntilComma$0();
  45396. t2.expectChar$1(58);
  45397. _this.whitespace$0();
  45398. pairs.push(new S.Tuple2(key, _this._expressionUntilComma$0(), t1));
  45399. }
  45400. t2.expectChar$1(41);
  45401. t1 = t2.spanFrom$1(start);
  45402. return new A.MapExpression(P.List_List$unmodifiable(pairs, type$.legacy_Tuple2_of_legacy_Expression_and_legacy_Expression), t1);
  45403. },
  45404. _hashExpression$0: function() {
  45405. var start, first, t2, identifier, buffer, _this = this,
  45406. t1 = _this.scanner;
  45407. if (t1.peekChar$1(1) === 123)
  45408. return _this.identifierLike$0();
  45409. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45410. t1.expectChar$1(35);
  45411. first = t1.peekChar$0();
  45412. if (first != null && T.isDigit(first))
  45413. return new K.ColorExpression(_this._hexColorContents$1(start));
  45414. t2 = t1._string_scanner$_position;
  45415. identifier = _this.interpolatedIdentifier$0();
  45416. if (_this._isHexColor$1(identifier)) {
  45417. t1.set$state(new S._SpanScannerState(t1, t2));
  45418. return new K.ColorExpression(_this._hexColorContents$1(start));
  45419. }
  45420. t2 = new P.StringBuffer("");
  45421. buffer = new Z.InterpolationBuffer(t2, []);
  45422. t2._contents += H.Primitives_stringFromCharCode(35);
  45423. buffer.addInterpolation$1(identifier);
  45424. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  45425. },
  45426. _hexColorContents$1: function(start) {
  45427. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  45428. digit1 = _this._hexDigit$0(),
  45429. digit2 = _this._hexDigit$0(),
  45430. digit3 = _this._hexDigit$0(),
  45431. t1 = _this.scanner;
  45432. if (!T.isHex(t1.peekChar$0())) {
  45433. red = (digit1 << 4 >>> 0) + digit1;
  45434. green = (digit2 << 4 >>> 0) + digit2;
  45435. blue = (digit3 << 4 >>> 0) + digit3;
  45436. alpha = 1;
  45437. } else {
  45438. digit4 = _this._hexDigit$0();
  45439. t2 = digit1 << 4 >>> 0;
  45440. t3 = digit3 << 4 >>> 0;
  45441. if (!T.isHex(t1.peekChar$0())) {
  45442. red = t2 + digit1;
  45443. green = (digit2 << 4 >>> 0) + digit2;
  45444. blue = t3 + digit3;
  45445. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  45446. } else {
  45447. red = t2 + digit2;
  45448. green = t3 + digit4;
  45449. blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
  45450. alpha = T.isHex(t1.peekChar$0()) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : 1;
  45451. }
  45452. }
  45453. return K.SassColor$rgb(red, green, blue, alpha, t1.spanFrom$1(start));
  45454. },
  45455. _isHexColor$1: function(interpolation) {
  45456. var t1,
  45457. plain = interpolation.get$asPlain();
  45458. if (plain == null)
  45459. return false;
  45460. t1 = plain.length;
  45461. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  45462. return false;
  45463. t1 = new H.CodeUnits(plain);
  45464. return t1.every$1(t1, T.character__isHex$closure());
  45465. },
  45466. _hexDigit$0: function() {
  45467. var t1 = this.scanner,
  45468. char = t1.peekChar$0();
  45469. if (char == null || !T.isHex(char))
  45470. t1.error$1(0, "Expected hex digit.");
  45471. return T.asHex(t1.readChar$0());
  45472. },
  45473. _minusExpression$0: function() {
  45474. var _this = this,
  45475. next = _this.scanner.peekChar$1(1);
  45476. if (T.isDigit(next) || next === 46)
  45477. return _this._number$0();
  45478. if (_this._lookingAtInterpolatedIdentifier$0())
  45479. return _this.identifierLike$0();
  45480. return _this._unaryOperation$0();
  45481. },
  45482. _importantExpression$0: function() {
  45483. var t1 = this.scanner,
  45484. t2 = t1._string_scanner$_position;
  45485. t1.readChar$0();
  45486. this.whitespace$0();
  45487. this.expectIdentifier$1("important");
  45488. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  45489. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo(["!important"], type$.JSArray_legacy_Object), t2), false);
  45490. },
  45491. _unaryOperation$0: function() {
  45492. var _this = this,
  45493. t1 = _this.scanner,
  45494. t2 = t1._string_scanner$_position,
  45495. operator = _this._unaryOperatorFor$1(t1.readChar$0());
  45496. if (operator == null)
  45497. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  45498. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx)
  45499. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  45500. _this.whitespace$0();
  45501. return new X.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45502. },
  45503. _unaryOperatorFor$1: function(character) {
  45504. switch (character) {
  45505. case 43:
  45506. return C.UnaryOperator_j2w;
  45507. case 45:
  45508. return C.UnaryOperator_U4G;
  45509. case 47:
  45510. return C.UnaryOperator_zDx;
  45511. default:
  45512. return null;
  45513. }
  45514. },
  45515. _number$0: function() {
  45516. var number, t4, unit, t5, _this = this,
  45517. t1 = _this.scanner,
  45518. t2 = t1._string_scanner$_position,
  45519. first = t1.peekChar$0(),
  45520. t3 = first === 45,
  45521. sign = t3 ? -1 : 1;
  45522. if (first === 43 || t3)
  45523. t1.readChar$0();
  45524. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  45525. t3 = _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  45526. t4 = _this._tryExponent$0();
  45527. if (t1.scanChar$1(37))
  45528. unit = "%";
  45529. else {
  45530. if (_this.lookingAtIdentifier$0())
  45531. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  45532. else
  45533. t5 = false;
  45534. unit = t5 ? _this.identifier$1$unit(true) : null;
  45535. }
  45536. return new T.NumberExpression(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  45537. },
  45538. _tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  45539. var t2,
  45540. t1 = this.scanner,
  45541. start = t1._string_scanner$_position;
  45542. if (t1.peekChar$0() !== 46)
  45543. return 0;
  45544. if (!T.isDigit(t1.peekChar$1(1))) {
  45545. if (allowTrailingDot)
  45546. return 0;
  45547. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  45548. }
  45549. t1.readChar$0();
  45550. while (true) {
  45551. t2 = t1.peekChar$0();
  45552. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  45553. break;
  45554. t1.readChar$0();
  45555. }
  45556. return P.double_parse(t1.substring$1(0, start));
  45557. },
  45558. _tryExponent$0: function() {
  45559. var next, t2, exponentSign, exponent,
  45560. t1 = this.scanner,
  45561. first = t1.peekChar$0();
  45562. if (first !== 101 && first !== 69)
  45563. return 1;
  45564. next = t1.peekChar$1(1);
  45565. if (!T.isDigit(next) && next !== 45 && next !== 43)
  45566. return 1;
  45567. t1.readChar$0();
  45568. t2 = next === 45;
  45569. exponentSign = t2 ? -1 : 1;
  45570. if (next === 43 || t2)
  45571. t1.readChar$0();
  45572. if (!T.isDigit(t1.peekChar$0()))
  45573. t1.error$1(0, "Expected digit.");
  45574. exponent = 0;
  45575. while (true) {
  45576. t2 = t1.peekChar$0();
  45577. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  45578. break;
  45579. exponent = exponent * 10 + (t1.readChar$0() - 48);
  45580. }
  45581. return Math.pow(10, exponentSign * exponent);
  45582. },
  45583. _unicodeRange$0: function() {
  45584. var i, t2, j, _this = this,
  45585. t1 = _this.scanner,
  45586. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45587. _this.expectIdentChar$1(117);
  45588. t1.expectChar$1(43);
  45589. for (i = 0; i < 6; ++i)
  45590. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure()))
  45591. break;
  45592. if (t1.scanChar$1(63)) {
  45593. ++i;
  45594. for (; i < 6; ++i)
  45595. if (!t1.scanChar$1(63))
  45596. break;
  45597. t2 = t1.substring$1(0, start.position);
  45598. t1 = t1.spanFrom$1(start);
  45599. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  45600. }
  45601. if (i === 0)
  45602. t1.error$1(0, 'Expected hex digit or "?".');
  45603. if (t1.scanChar$1(45)) {
  45604. for (j = 0; j < 6; ++j)
  45605. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure0()))
  45606. break;
  45607. if (j === 0)
  45608. t1.error$1(0, "Expected hex digit.");
  45609. }
  45610. if (_this._lookingAtInterpolatedIdentifierBody$0())
  45611. t1.error$1(0, "Expected end of identifier.");
  45612. t2 = t1.substring$1(0, start.position);
  45613. t1 = t1.spanFrom$1(start);
  45614. return new D.StringExpression(X.Interpolation$(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  45615. },
  45616. _variable$0: function() {
  45617. var _this = this,
  45618. t1 = _this.scanner,
  45619. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  45620. $name = _this.variableName$0();
  45621. if (_this.get$plainCss())
  45622. _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start));
  45623. return new S.VariableExpression(null, $name, t1.spanFrom$1(start));
  45624. },
  45625. _selector$0: function() {
  45626. var t1, start, _this = this;
  45627. if (_this.get$plainCss())
  45628. _this.scanner.error$2$length(0, string$.The_pa, 1);
  45629. t1 = _this.scanner;
  45630. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  45631. t1.expectChar$1(38);
  45632. if (t1.scanChar$1(38)) {
  45633. _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
  45634. t1.set$position(t1._string_scanner$_position - 1);
  45635. }
  45636. return new T.SelectorExpression(t1.spanFrom$1(start));
  45637. },
  45638. interpolatedString$0: function() {
  45639. var t3, t4, buffer, next, second, t5,
  45640. t1 = this.scanner,
  45641. t2 = t1._string_scanner$_position,
  45642. quote = t1.readChar$0();
  45643. if (quote !== 39 && quote !== 34)
  45644. t1.error$2$position(0, "Expected string.", t2);
  45645. t3 = new P.StringBuffer("");
  45646. t4 = [];
  45647. buffer = new Z.InterpolationBuffer(t3, t4);
  45648. for (; true;) {
  45649. next = t1.peekChar$0();
  45650. if (next === quote) {
  45651. t1.readChar$0();
  45652. break;
  45653. } else if (next == null || next === 10 || next === 13 || next === 12)
  45654. t1.error$1(0, "Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  45655. else if (next === 92) {
  45656. second = t1.peekChar$1(1);
  45657. if (second === 10 || second === 13 || second === 12) {
  45658. t1.readChar$0();
  45659. t1.readChar$0();
  45660. if (second === 13)
  45661. t1.scanChar$1(10);
  45662. } else
  45663. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  45664. } else if (next === 35)
  45665. if (t1.peekChar$1(1) === 123) {
  45666. t5 = this.singleInterpolation$0();
  45667. buffer._flushText$0();
  45668. t4.push(t5);
  45669. } else
  45670. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45671. else
  45672. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45673. }
  45674. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  45675. },
  45676. identifierLike$0: function() {
  45677. var invocation, lower, color, specialFunction, $name, _this = this,
  45678. t1 = _this.scanner,
  45679. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  45680. identifier = _this.interpolatedIdentifier$0(),
  45681. plain = identifier.get$asPlain(),
  45682. t2 = plain == null;
  45683. if (!t2) {
  45684. if (plain === "if") {
  45685. invocation = _this._argumentInvocation$0();
  45686. return new L.IfExpression(invocation, B.spanForList(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_legacy_AstNode)));
  45687. } else if (plain === "not") {
  45688. _this.whitespace$0();
  45689. return new X.UnaryOperationExpression(C.UnaryOperator_not_not, _this._singleExpression$0(), identifier.span);
  45690. }
  45691. lower = plain.toLowerCase();
  45692. if (t1.peekChar$0() !== 40) {
  45693. switch (plain) {
  45694. case "false":
  45695. return new Z.BooleanExpression(false, identifier.span);
  45696. case "null":
  45697. return new O.NullExpression(identifier.span);
  45698. case "true":
  45699. return new Z.BooleanExpression(true, identifier.span);
  45700. }
  45701. color = $.$get$colorsByName().$index(0, lower);
  45702. if (color != null)
  45703. return new K.ColorExpression(K.SassColor$rgb(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  45704. }
  45705. specialFunction = _this.trySpecialFunction$2(lower, start);
  45706. if (specialFunction != null)
  45707. return specialFunction;
  45708. }
  45709. switch (t1.peekChar$0()) {
  45710. case 46:
  45711. if (t1.peekChar$1(1) === 46)
  45712. return new D.StringExpression(identifier, false);
  45713. t1.readChar$0();
  45714. if (t2)
  45715. _this.error$2(0, string$.Interpn, identifier.span);
  45716. if (t1.peekChar$0() === 36) {
  45717. $name = _this.variableName$0();
  45718. _this._assertPublic$2($name, new V.StylesheetParser_identifierLike_closure(_this, start));
  45719. return new S.VariableExpression(plain, $name, t1.spanFrom$1(start));
  45720. }
  45721. t2 = t1._string_scanner$_position;
  45722. return new F.FunctionExpression(plain, X.Interpolation$(H.setRuntimeTypeInfo([_this._publicIdentifier$0()], type$.JSArray_legacy_Object), t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  45723. case 40:
  45724. return new F.FunctionExpression(null, identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  45725. default:
  45726. return new D.StringExpression(identifier, false);
  45727. }
  45728. },
  45729. trySpecialFunction$2: function($name, start) {
  45730. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  45731. switch (B.unvendor($name)) {
  45732. case "calc":
  45733. case "element":
  45734. case "expression":
  45735. if (!_this.scanner.scanChar$1(40))
  45736. return _null;
  45737. t1 = new P.StringBuffer("");
  45738. buffer = new Z.InterpolationBuffer(t1, []);
  45739. t1._contents = $name;
  45740. t1._contents += H.Primitives_stringFromCharCode(40);
  45741. break;
  45742. case "min":
  45743. case "max":
  45744. t1 = _this.scanner;
  45745. t2 = t1._string_scanner$_position;
  45746. if (!t1.scanChar$1(40))
  45747. return _null;
  45748. _this.whitespace$0();
  45749. t3 = new P.StringBuffer("");
  45750. buffer = new Z.InterpolationBuffer(t3, []);
  45751. t3._contents = $name;
  45752. t3._contents += H.Primitives_stringFromCharCode(40);
  45753. if (!_this._tryMinMaxContents$1(buffer)) {
  45754. t1.set$state(new S._SpanScannerState(t1, t2));
  45755. return _null;
  45756. }
  45757. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  45758. case "progid":
  45759. t1 = _this.scanner;
  45760. if (!t1.scanChar$1(58))
  45761. return _null;
  45762. t2 = new P.StringBuffer("");
  45763. buffer = new Z.InterpolationBuffer(t2, []);
  45764. t2._contents = $name;
  45765. t2._contents += H.Primitives_stringFromCharCode(58);
  45766. next = t1.peekChar$0();
  45767. while (true) {
  45768. if (next != null) {
  45769. if (!(next >= 97 && next <= 122))
  45770. t3 = next >= 65 && next <= 90;
  45771. else
  45772. t3 = true;
  45773. t3 = t3 || next === 46;
  45774. } else
  45775. t3 = false;
  45776. if (!t3)
  45777. break;
  45778. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45779. next = t1.peekChar$0();
  45780. }
  45781. t1.expectChar$1(40);
  45782. t2._contents += H.Primitives_stringFromCharCode(40);
  45783. break;
  45784. case "url":
  45785. contents = _this._tryUrlContents$1(start);
  45786. return contents == null ? _null : new D.StringExpression(contents, false);
  45787. case "clamp":
  45788. if ($name !== "clamp")
  45789. return _null;
  45790. if (!_this.scanner.scanChar$1(40))
  45791. return _null;
  45792. t1 = new P.StringBuffer("");
  45793. buffer = new Z.InterpolationBuffer(t1, []);
  45794. t1._contents = $name;
  45795. t1._contents += H.Primitives_stringFromCharCode(40);
  45796. break;
  45797. default:
  45798. return _null;
  45799. }
  45800. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true));
  45801. t1 = _this.scanner;
  45802. t1.expectChar$1(41);
  45803. buffer._interpolation_buffer$_text._contents += H.Primitives_stringFromCharCode(41);
  45804. return new D.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  45805. },
  45806. _tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  45807. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  45808. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer$_text, t3 = !allowComma, t4 = _this.get$_number(); true;) {
  45809. switch (t1.peekChar$0()) {
  45810. case 45:
  45811. case 43:
  45812. case 48:
  45813. case 49:
  45814. case 50:
  45815. case 51:
  45816. case 52:
  45817. case 53:
  45818. case 54:
  45819. case 55:
  45820. case 56:
  45821. case 57:
  45822. try {
  45823. start = t1._string_scanner$_position;
  45824. t4.call$0();
  45825. end = t1._string_scanner$_position;
  45826. t2._contents += J.substring$2$s(t1.string, start, end);
  45827. } catch (exception) {
  45828. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  45829. return false;
  45830. else
  45831. throw exception;
  45832. }
  45833. break;
  45834. case 35:
  45835. if (t1.peekChar$1(1) !== 123)
  45836. return false;
  45837. t5 = _this.singleInterpolation$0();
  45838. buffer._flushText$0();
  45839. buffer._interpolation_buffer$_contents.push(t5);
  45840. break;
  45841. case 99:
  45842. case 67:
  45843. switch (t1.peekChar$1(1)) {
  45844. case 97:
  45845. case 65:
  45846. if (!_this._tryMinMaxFunction$2(buffer, "calc"))
  45847. return false;
  45848. break;
  45849. case 108:
  45850. case 76:
  45851. if (!_this._tryMinMaxFunction$2(buffer, "clamp"))
  45852. return false;
  45853. break;
  45854. }
  45855. break;
  45856. case 101:
  45857. case 69:
  45858. if (!_this._tryMinMaxFunction$2(buffer, "env"))
  45859. return false;
  45860. break;
  45861. case 118:
  45862. case 86:
  45863. if (!_this._tryMinMaxFunction$2(buffer, "var"))
  45864. return false;
  45865. break;
  45866. case 40:
  45867. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45868. if (!_this._tryMinMaxContents$2$allowComma(buffer, false))
  45869. return false;
  45870. break;
  45871. case 109:
  45872. case 77:
  45873. t1.readChar$0();
  45874. if (_this.scanIdentChar$1(105)) {
  45875. if (!_this.scanIdentChar$1(110))
  45876. return false;
  45877. t2._contents += "min(";
  45878. } else if (_this.scanIdentChar$1(97)) {
  45879. if (!_this.scanIdentChar$1(120))
  45880. return false;
  45881. t2._contents += "max(";
  45882. } else
  45883. return false;
  45884. if (!t1.scanChar$1(40))
  45885. return false;
  45886. if (!_this._tryMinMaxContents$1(buffer))
  45887. return false;
  45888. break;
  45889. default:
  45890. return false;
  45891. }
  45892. _this.whitespace$0();
  45893. switch (t1.peekChar$0()) {
  45894. case 41:
  45895. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45896. return true;
  45897. case 43:
  45898. case 45:
  45899. case 42:
  45900. case 47:
  45901. t2._contents += H.Primitives_stringFromCharCode(32);
  45902. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45903. t2._contents += H.Primitives_stringFromCharCode(32);
  45904. break;
  45905. case 44:
  45906. if (t3)
  45907. return false;
  45908. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45909. t2._contents += H.Primitives_stringFromCharCode(32);
  45910. break;
  45911. default:
  45912. return false;
  45913. }
  45914. _this.whitespace$0();
  45915. }
  45916. },
  45917. _tryMinMaxContents$1: function(buffer) {
  45918. return this._tryMinMaxContents$2$allowComma(buffer, true);
  45919. },
  45920. _tryMinMaxFunction$2: function(buffer, $name) {
  45921. var t1, t2;
  45922. if (!this.scanIdentifier$1($name))
  45923. return false;
  45924. t1 = this.scanner;
  45925. if (!t1.scanChar$1(40))
  45926. return false;
  45927. t2 = buffer._interpolation_buffer$_text;
  45928. t2._contents += $name;
  45929. t2._contents += H.Primitives_stringFromCharCode(40);
  45930. buffer.addInterpolation$1(this._interpolatedDeclarationValue$1$allowEmpty(true));
  45931. t2._contents += H.Primitives_stringFromCharCode(41);
  45932. if (!t1.scanChar$1(41))
  45933. return false;
  45934. return true;
  45935. },
  45936. _tryUrlContents$2$name: function(start, $name) {
  45937. var t3, t4, buffer, next, t5, endPosition, _this = this,
  45938. t1 = _this.scanner,
  45939. t2 = t1._string_scanner$_position;
  45940. if (!t1.scanChar$1(40))
  45941. return null;
  45942. _this.whitespaceWithoutComments$0();
  45943. t3 = new P.StringBuffer("");
  45944. t4 = [];
  45945. buffer = new Z.InterpolationBuffer(t3, t4);
  45946. t3._contents = $name == null ? "url" : $name;
  45947. t3._contents += H.Primitives_stringFromCharCode(40);
  45948. for (; true;) {
  45949. next = t1.peekChar$0();
  45950. if (next == null)
  45951. break;
  45952. else {
  45953. if (next !== 33)
  45954. if (next !== 37)
  45955. if (next !== 38)
  45956. t5 = next >= 42 && next <= 126 || next >= 128;
  45957. else
  45958. t5 = true;
  45959. else
  45960. t5 = true;
  45961. else
  45962. t5 = true;
  45963. if (t5)
  45964. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45965. else if (next === 92)
  45966. t3._contents += H.S(_this.escape$0());
  45967. else if (next === 35)
  45968. if (t1.peekChar$1(1) === 123) {
  45969. t5 = _this.singleInterpolation$0();
  45970. buffer._flushText$0();
  45971. t4.push(t5);
  45972. } else
  45973. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45974. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  45975. _this.whitespaceWithoutComments$0();
  45976. if (t1.peekChar$0() !== 41)
  45977. break;
  45978. } else if (next === 41) {
  45979. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  45980. endPosition = t1._string_scanner$_position;
  45981. t2 = t1._sourceFile;
  45982. t3 = start.position;
  45983. t1 = new Y._FileSpan(t2, t3, endPosition);
  45984. t1._FileSpan$3(t2, t3, endPosition);
  45985. return buffer.interpolation$1(t1);
  45986. } else
  45987. break;
  45988. }
  45989. }
  45990. t1.set$state(new S._SpanScannerState(t1, t2));
  45991. return null;
  45992. },
  45993. _tryUrlContents$1: function(start) {
  45994. return this._tryUrlContents$2$name(start, null);
  45995. },
  45996. dynamicUrl$0: function() {
  45997. var contents, _this = this,
  45998. t1 = _this.scanner,
  45999. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  46000. _this.expectIdentifier$1("url");
  46001. contents = _this._tryUrlContents$1(start);
  46002. if (contents != null)
  46003. return new D.StringExpression(contents, false);
  46004. return new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo(["url"], type$.JSArray_legacy_Object), t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  46005. },
  46006. almostAnyValue$1$omitComments: function(omitComments) {
  46007. var t4, t5, next, commentStart, end, t6, contents, _this = this,
  46008. t1 = _this.scanner,
  46009. t2 = t1._string_scanner$_position,
  46010. t3 = new P.StringBuffer(""),
  46011. buffer = new Z.InterpolationBuffer(t3, []);
  46012. $label0$1:
  46013. for (t4 = t1.string, t5 = !omitComments; true;) {
  46014. next = t1.peekChar$0();
  46015. switch (next) {
  46016. case 92:
  46017. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46018. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46019. break;
  46020. case 34:
  46021. case 39:
  46022. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  46023. break;
  46024. case 47:
  46025. commentStart = t1._string_scanner$_position;
  46026. if (_this.scanComment$0()) {
  46027. if (t5) {
  46028. end = t1._string_scanner$_position;
  46029. t3._contents += J.substring$2$s(t4, commentStart, end);
  46030. }
  46031. } else
  46032. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46033. break;
  46034. case 35:
  46035. if (t1.peekChar$1(1) === 123)
  46036. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  46037. else
  46038. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46039. break;
  46040. case 13:
  46041. case 10:
  46042. case 12:
  46043. if (_this.get$indented())
  46044. break $label0$1;
  46045. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46046. break;
  46047. case 33:
  46048. case 59:
  46049. case 123:
  46050. case 125:
  46051. break $label0$1;
  46052. case 117:
  46053. case 85:
  46054. t6 = t1._string_scanner$_position;
  46055. if (!_this.scanIdentifier$1("url")) {
  46056. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46057. break;
  46058. }
  46059. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t6));
  46060. if (contents == null) {
  46061. if (t6 < 0 || t6 > t4.length)
  46062. H.throwExpression(P.ArgumentError$("Invalid position " + t6));
  46063. t1._string_scanner$_position = t6;
  46064. t1._lastMatch = null;
  46065. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46066. } else
  46067. buffer.addInterpolation$1(contents);
  46068. break;
  46069. default:
  46070. if (next == null)
  46071. break $label0$1;
  46072. if (_this.lookingAtIdentifier$0())
  46073. t3._contents += _this.identifier$0();
  46074. else
  46075. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46076. break;
  46077. }
  46078. }
  46079. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46080. },
  46081. almostAnyValue$0: function() {
  46082. return this.almostAnyValue$1$omitComments(false);
  46083. },
  46084. _interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon: function(allowColon, allowEmpty, allowSemicolon) {
  46085. var t4, t5, t6, wroteNewline, next, t7, start, end, contents, _this = this,
  46086. t1 = _this.scanner,
  46087. t2 = t1._string_scanner$_position,
  46088. t3 = new P.StringBuffer(""),
  46089. buffer = new Z.InterpolationBuffer(t3, []),
  46090. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  46091. $label0$1:
  46092. for (t4 = t1.string, t5 = !allowColon, t6 = !allowSemicolon, wroteNewline = false; true;) {
  46093. next = t1.peekChar$0();
  46094. switch (next) {
  46095. case 92:
  46096. t3._contents += H.S(_this.escape$1$identifierStart(true));
  46097. wroteNewline = false;
  46098. break;
  46099. case 34:
  46100. case 39:
  46101. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  46102. wroteNewline = false;
  46103. break;
  46104. case 47:
  46105. if (t1.peekChar$1(1) === 42) {
  46106. t7 = _this.get$loudComment();
  46107. start = t1._string_scanner$_position;
  46108. t7.call$0();
  46109. end = t1._string_scanner$_position;
  46110. t3._contents += J.substring$2$s(t4, start, end);
  46111. } else
  46112. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46113. wroteNewline = false;
  46114. break;
  46115. case 35:
  46116. if (t1.peekChar$1(1) === 123)
  46117. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  46118. else
  46119. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46120. wroteNewline = false;
  46121. break;
  46122. case 32:
  46123. case 9:
  46124. if (!wroteNewline) {
  46125. t7 = t1.peekChar$1(1);
  46126. t7 = !(t7 === 32 || t7 === 9 || t7 === 10 || t7 === 13 || t7 === 12);
  46127. } else
  46128. t7 = true;
  46129. if (t7)
  46130. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46131. else
  46132. t1.readChar$0();
  46133. break;
  46134. case 10:
  46135. case 13:
  46136. case 12:
  46137. if (_this.get$indented())
  46138. break $label0$1;
  46139. t7 = t1.peekChar$1(-1);
  46140. if (!(t7 === 10 || t7 === 13 || t7 === 12))
  46141. t3._contents += "\n";
  46142. t1.readChar$0();
  46143. wroteNewline = true;
  46144. break;
  46145. case 40:
  46146. case 123:
  46147. case 91:
  46148. t3._contents += H.Primitives_stringFromCharCode(next);
  46149. brackets.push(T.opposite(t1.readChar$0()));
  46150. wroteNewline = false;
  46151. break;
  46152. case 41:
  46153. case 125:
  46154. case 93:
  46155. if (brackets.length === 0)
  46156. break $label0$1;
  46157. t3._contents += H.Primitives_stringFromCharCode(next);
  46158. t1.expectChar$1(brackets.pop());
  46159. wroteNewline = false;
  46160. break;
  46161. case 59:
  46162. if (t6 && brackets.length === 0)
  46163. break $label0$1;
  46164. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46165. wroteNewline = false;
  46166. break;
  46167. case 58:
  46168. if (t5 && brackets.length === 0)
  46169. break $label0$1;
  46170. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46171. wroteNewline = false;
  46172. break;
  46173. case 117:
  46174. case 85:
  46175. t7 = t1._string_scanner$_position;
  46176. if (!_this.scanIdentifier$1("url")) {
  46177. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46178. wroteNewline = false;
  46179. break;
  46180. }
  46181. contents = _this._tryUrlContents$1(new S._SpanScannerState(t1, t7));
  46182. if (contents == null) {
  46183. if (t7 < 0 || t7 > t4.length)
  46184. H.throwExpression(P.ArgumentError$("Invalid position " + t7));
  46185. t1._string_scanner$_position = t7;
  46186. t1._lastMatch = null;
  46187. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46188. } else
  46189. buffer.addInterpolation$1(contents);
  46190. wroteNewline = false;
  46191. break;
  46192. default:
  46193. if (next == null)
  46194. break $label0$1;
  46195. if (_this.lookingAtIdentifier$0())
  46196. t3._contents += _this.identifier$0();
  46197. else
  46198. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46199. wroteNewline = false;
  46200. break;
  46201. }
  46202. }
  46203. if (brackets.length !== 0)
  46204. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  46205. if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
  46206. t1.error$1(0, "Expected token.");
  46207. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46208. },
  46209. _interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  46210. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false);
  46211. },
  46212. _interpolatedDeclarationValue$2$allowEmpty$allowSemicolon: function(allowEmpty, allowSemicolon) {
  46213. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon);
  46214. },
  46215. _interpolatedDeclarationValue$0: function() {
  46216. return this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false);
  46217. },
  46218. interpolatedIdentifier$0: function() {
  46219. var first, _this = this,
  46220. _s20_ = "Expected identifier.",
  46221. t1 = _this.scanner,
  46222. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  46223. t2 = new P.StringBuffer(""),
  46224. t3 = [],
  46225. buffer = new Z.InterpolationBuffer(t2, t3);
  46226. if (t1.scanChar$1(45)) {
  46227. t2._contents += H.Primitives_stringFromCharCode(45);
  46228. if (t1.scanChar$1(45)) {
  46229. t2._contents += H.Primitives_stringFromCharCode(45);
  46230. _this._interpolatedIdentifierBody$1(buffer);
  46231. return buffer.interpolation$1(t1.spanFrom$1(start));
  46232. }
  46233. }
  46234. first = t1.peekChar$0();
  46235. if (first == null)
  46236. t1.error$1(0, _s20_);
  46237. else if (first === 95 || T.isAlphabetic0(first) || first >= 128)
  46238. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46239. else if (first === 92)
  46240. t2._contents += H.S(_this.escape$1$identifierStart(true));
  46241. else if (first === 35 && t1.peekChar$1(1) === 123) {
  46242. t2 = _this.singleInterpolation$0();
  46243. buffer._flushText$0();
  46244. t3.push(t2);
  46245. } else
  46246. t1.error$1(0, _s20_);
  46247. _this._interpolatedIdentifierBody$1(buffer);
  46248. return buffer.interpolation$1(t1.spanFrom$1(start));
  46249. },
  46250. _interpolatedIdentifierBody$1: function(buffer) {
  46251. var t1, t2, t3, next, t4;
  46252. for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
  46253. next = t2.peekChar$0();
  46254. if (next == null)
  46255. break;
  46256. else {
  46257. if (next !== 95)
  46258. if (next !== 45) {
  46259. if (!(next >= 97 && next <= 122))
  46260. t4 = next >= 65 && next <= 90;
  46261. else
  46262. t4 = true;
  46263. if (!t4)
  46264. t4 = next >= 48 && next <= 57;
  46265. else
  46266. t4 = true;
  46267. t4 = t4 || next >= 128;
  46268. } else
  46269. t4 = true;
  46270. else
  46271. t4 = true;
  46272. if (t4)
  46273. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  46274. else if (next === 92)
  46275. t3._contents += H.S(this.escape$0());
  46276. else if (next === 35 && t2.peekChar$1(1) === 123) {
  46277. t4 = this.singleInterpolation$0();
  46278. buffer._flushText$0();
  46279. t1.push(t4);
  46280. } else
  46281. break;
  46282. }
  46283. }
  46284. },
  46285. singleInterpolation$0: function() {
  46286. var contents, _this = this,
  46287. t1 = _this.scanner,
  46288. t2 = t1._string_scanner$_position;
  46289. t1.expect$1("#{");
  46290. _this.whitespace$0();
  46291. contents = _this.expression$0();
  46292. t1.expectChar$1(125);
  46293. if (_this.get$plainCss())
  46294. _this.error$2(0, string$.Interpp, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46295. return contents;
  46296. },
  46297. _mediaQueryList$0: function() {
  46298. var t1 = this.scanner,
  46299. t2 = t1._string_scanner$_position,
  46300. t3 = new P.StringBuffer(""),
  46301. buffer = new Z.InterpolationBuffer(t3, []);
  46302. for (; true;) {
  46303. this.whitespace$0();
  46304. this._stylesheet$_mediaQuery$1(buffer);
  46305. if (!t1.scanChar$1(44))
  46306. break;
  46307. t3._contents += H.Primitives_stringFromCharCode(44);
  46308. t3._contents += H.Primitives_stringFromCharCode(32);
  46309. }
  46310. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46311. },
  46312. _stylesheet$_mediaQuery$1: function(buffer) {
  46313. var t1, identifier, _this = this;
  46314. if (_this.scanner.peekChar$0() !== 40) {
  46315. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  46316. _this.whitespace$0();
  46317. if (!_this._lookingAtInterpolatedIdentifier$0())
  46318. return;
  46319. t1 = buffer._interpolation_buffer$_text;
  46320. t1._contents += H.Primitives_stringFromCharCode(32);
  46321. identifier = _this.interpolatedIdentifier$0();
  46322. _this.whitespace$0();
  46323. if (B.equalsIgnoreCase(identifier.get$asPlain(), "and"))
  46324. t1._contents += " and ";
  46325. else {
  46326. buffer.addInterpolation$1(identifier);
  46327. if (_this.scanIdentifier$1("and")) {
  46328. _this.whitespace$0();
  46329. t1._contents += " and ";
  46330. } else
  46331. return;
  46332. }
  46333. }
  46334. for (t1 = buffer._interpolation_buffer$_text; true;) {
  46335. _this.whitespace$0();
  46336. buffer.addInterpolation$1(_this._mediaFeature$0());
  46337. _this.whitespace$0();
  46338. if (!_this.scanIdentifier$1("and"))
  46339. break;
  46340. t1._contents += " and ";
  46341. }
  46342. },
  46343. _mediaFeature$0: function() {
  46344. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  46345. t1 = _this.scanner;
  46346. if (t1.peekChar$0() === 35) {
  46347. interpolation = _this.singleInterpolation$0();
  46348. return X.Interpolation$(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  46349. }
  46350. t2 = t1._string_scanner$_position;
  46351. t3 = new P.StringBuffer("");
  46352. t4 = [];
  46353. buffer = new Z.InterpolationBuffer(t3, t4);
  46354. t1.expectChar$1(40);
  46355. t3._contents += H.Primitives_stringFromCharCode(40);
  46356. _this.whitespace$0();
  46357. t5 = _this._expressionUntilComparison$0();
  46358. buffer._flushText$0();
  46359. t4.push(t5);
  46360. if (t1.scanChar$1(58)) {
  46361. _this.whitespace$0();
  46362. t3._contents += H.Primitives_stringFromCharCode(58);
  46363. t3._contents += H.Primitives_stringFromCharCode(32);
  46364. t5 = _this.expression$0();
  46365. buffer._flushText$0();
  46366. t4.push(t5);
  46367. } else {
  46368. next = t1.peekChar$0();
  46369. isAngle = next === 60 || next === 62;
  46370. if (isAngle || next === 61) {
  46371. t3._contents += H.Primitives_stringFromCharCode(32);
  46372. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  46373. if (isAngle && t1.scanChar$1(61))
  46374. t3._contents += H.Primitives_stringFromCharCode(61);
  46375. t3._contents += H.Primitives_stringFromCharCode(32);
  46376. _this.whitespace$0();
  46377. t5 = _this._expressionUntilComparison$0();
  46378. buffer._flushText$0();
  46379. t4.push(t5);
  46380. if (isAngle && t1.scanChar$1(next)) {
  46381. t3._contents += H.Primitives_stringFromCharCode(32);
  46382. t3._contents += H.Primitives_stringFromCharCode(next);
  46383. if (t1.scanChar$1(61))
  46384. t3._contents += H.Primitives_stringFromCharCode(61);
  46385. t3._contents += H.Primitives_stringFromCharCode(32);
  46386. _this.whitespace$0();
  46387. t5 = _this._expressionUntilComparison$0();
  46388. buffer._flushText$0();
  46389. t4.push(t5);
  46390. }
  46391. }
  46392. }
  46393. t1.expectChar$1(41);
  46394. _this.whitespace$0();
  46395. t3._contents += H.Primitives_stringFromCharCode(41);
  46396. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46397. },
  46398. _expressionUntilComparison$0: function() {
  46399. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure(this));
  46400. },
  46401. _supportsCondition$0: function() {
  46402. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  46403. t1 = _this.scanner,
  46404. t2 = t1._string_scanner$_position;
  46405. if (_this.scanIdentifier$1("not")) {
  46406. _this.whitespace$0();
  46407. return new M.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  46408. }
  46409. condition = _this._supportsConditionInParens$0();
  46410. _this.whitespace$0();
  46411. for (operator = null; _this.lookingAtIdentifier$0();) {
  46412. if (operator != null)
  46413. _this.expectIdentifier$1(operator);
  46414. else if (_this.scanIdentifier$1("or"))
  46415. operator = "or";
  46416. else {
  46417. _this.expectIdentifier$1("and");
  46418. operator = "and";
  46419. }
  46420. _this.whitespace$0();
  46421. right = _this._supportsConditionInParens$0();
  46422. endPosition = t1._string_scanner$_position;
  46423. t3 = t1._sourceFile;
  46424. t4 = new Y._FileSpan(t3, t2, endPosition);
  46425. t4._FileSpan$3(t3, t2, endPosition);
  46426. condition = new U.SupportsOperation(condition, right, operator, t4);
  46427. lowerOperator = operator.toLowerCase();
  46428. if (lowerOperator !== "and" && lowerOperator !== "or")
  46429. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  46430. _this.whitespace$0();
  46431. }
  46432. return condition;
  46433. },
  46434. _supportsConditionInParens$0: function() {
  46435. var $name, nameStart, wasInParentheses, identifier, operation, contents, identifier0, t2, $arguments, condition, exception, value, _this = this,
  46436. t1 = _this.scanner,
  46437. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  46438. if (_this._lookingAtInterpolatedIdentifier$0()) {
  46439. identifier0 = _this.interpolatedIdentifier$0();
  46440. t2 = identifier0.get$asPlain();
  46441. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  46442. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  46443. if (t1.scanChar$1(40)) {
  46444. $arguments = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  46445. t1.expectChar$1(41);
  46446. return new F.SupportsFunction(identifier0, $arguments, t1.spanFrom$1(start));
  46447. } else {
  46448. t2 = identifier0.contents;
  46449. if (t2.length !== 1 || !type$.legacy_Expression._is(C.JSArray_methods.get$first(t2)))
  46450. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  46451. else
  46452. return new X.SupportsInterpolation(type$.legacy_Expression._as(C.JSArray_methods.get$first(t2)), t1.spanFrom$1(start));
  46453. }
  46454. }
  46455. t1.expectChar$1(40);
  46456. _this.whitespace$0();
  46457. if (_this.scanIdentifier$1("not")) {
  46458. _this.whitespace$0();
  46459. condition = _this._supportsConditionInParens$0();
  46460. t1.expectChar$1(41);
  46461. return new M.SupportsNegation(condition, t1.spanFrom$1(start));
  46462. } else if (t1.peekChar$0() === 40) {
  46463. condition = _this._supportsCondition$0();
  46464. t1.expectChar$1(41);
  46465. return condition;
  46466. }
  46467. $name = null;
  46468. nameStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  46469. wasInParentheses = _this._inParentheses;
  46470. try {
  46471. $name = _this.expression$0();
  46472. t1.expectChar$1(58);
  46473. } catch (exception) {
  46474. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  46475. t1.set$state(nameStart);
  46476. _this._inParentheses = wasInParentheses;
  46477. identifier = _this.interpolatedIdentifier$0();
  46478. operation = _this._trySupportsOperation$2(identifier, nameStart);
  46479. if (operation != null) {
  46480. t1.expectChar$1(41);
  46481. return operation;
  46482. }
  46483. t2 = new Z.InterpolationBuffer(new P.StringBuffer(""), []);
  46484. t2.addInterpolation$1(identifier);
  46485. t2.addInterpolation$1(_this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  46486. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  46487. if (t1.peekChar$0() === 58)
  46488. throw exception;
  46489. t1.expectChar$1(41);
  46490. return new Y.SupportsAnything(contents, t1.spanFrom$1(start));
  46491. } else
  46492. throw exception;
  46493. }
  46494. _this.whitespace$0();
  46495. value = _this.expression$0();
  46496. t1.expectChar$1(41);
  46497. return new L.SupportsDeclaration($name, value, t1.spanFrom$1(start));
  46498. },
  46499. _trySupportsOperation$2: function(interpolation, start) {
  46500. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  46501. t1 = interpolation.contents;
  46502. if (t1.length !== 1)
  46503. return _null;
  46504. expression = C.JSArray_methods.get$first(t1);
  46505. if (!type$.legacy_Expression._is(expression))
  46506. return _null;
  46507. t1 = _this.scanner;
  46508. beforeWhitespace = new S._SpanScannerState(t1, t1._string_scanner$_position);
  46509. _this.whitespace$0();
  46510. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  46511. if (operator != null)
  46512. _this.expectIdentifier$1(operator);
  46513. else if (_this.scanIdentifier$1("and"))
  46514. operator = "and";
  46515. else {
  46516. if (!_this.scanIdentifier$1("or")) {
  46517. if (beforeWhitespace._scanner !== t1)
  46518. H.throwExpression(P.ArgumentError$(string$.The_gi));
  46519. t2 = beforeWhitespace.position;
  46520. if (t2 < 0 || t2 > t1.string.length)
  46521. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  46522. t1._string_scanner$_position = t2;
  46523. return t1._lastMatch = null;
  46524. }
  46525. operator = "or";
  46526. }
  46527. _this.whitespace$0();
  46528. right = _this._supportsConditionInParens$0();
  46529. t4 = operation == null ? new X.SupportsInterpolation(expression, t3) : operation;
  46530. endPosition = t1._string_scanner$_position;
  46531. t5 = t1._sourceFile;
  46532. t6 = new Y._FileSpan(t5, t2, endPosition);
  46533. t6._FileSpan$3(t5, t2, endPosition);
  46534. operation = new U.SupportsOperation(t4, right, operator, t6);
  46535. lowerOperator = operator.toLowerCase();
  46536. if (lowerOperator !== "and" && lowerOperator !== "or")
  46537. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  46538. _this.whitespace$0();
  46539. }
  46540. return operation;
  46541. },
  46542. _lookingAtInterpolatedIdentifier$0: function() {
  46543. var second,
  46544. t1 = this.scanner,
  46545. first = t1.peekChar$0();
  46546. if (first == null)
  46547. return false;
  46548. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || first === 92)
  46549. return true;
  46550. if (first === 35)
  46551. return t1.peekChar$1(1) === 123;
  46552. if (first !== 45)
  46553. return false;
  46554. second = t1.peekChar$1(1);
  46555. if (second == null)
  46556. return false;
  46557. if (second === 35)
  46558. return t1.peekChar$1(2) === 123;
  46559. return second === 95 || T.isAlphabetic0(second) || second >= 128 || second === 92 || second === 45;
  46560. },
  46561. _lookingAtInterpolatedIdentifierBody$0: function() {
  46562. var t1 = this.scanner,
  46563. first = t1.peekChar$0();
  46564. if (first == null)
  46565. return false;
  46566. if (first === 95 || T.isAlphabetic0(first) || first >= 128 || T.isDigit(first) || first === 45 || first === 92)
  46567. return true;
  46568. return first === 35 && t1.peekChar$1(1) === 123;
  46569. },
  46570. _lookingAtExpression$0: function() {
  46571. var next,
  46572. t1 = this.scanner,
  46573. character = t1.peekChar$0();
  46574. if (character == null)
  46575. return false;
  46576. if (character === 46)
  46577. return t1.peekChar$1(1) !== 46;
  46578. if (character === 33) {
  46579. next = t1.peekChar$1(1);
  46580. if (next != null)
  46581. if ((next | 32) !== 105)
  46582. t1 = next === 32 || next === 9 || T.isNewline(next);
  46583. else
  46584. t1 = true;
  46585. else
  46586. t1 = true;
  46587. return t1;
  46588. }
  46589. if (character !== 40)
  46590. if (character !== 47)
  46591. if (character !== 91)
  46592. if (character !== 39)
  46593. if (character !== 34)
  46594. if (character !== 35)
  46595. if (character !== 43)
  46596. if (character !== 45)
  46597. if (character !== 92)
  46598. if (character !== 36)
  46599. if (character !== 38)
  46600. t1 = character === 95 || T.isAlphabetic0(character) || character >= 128 || T.isDigit(character);
  46601. else
  46602. t1 = true;
  46603. else
  46604. t1 = true;
  46605. else
  46606. t1 = true;
  46607. else
  46608. t1 = true;
  46609. else
  46610. t1 = true;
  46611. else
  46612. t1 = true;
  46613. else
  46614. t1 = true;
  46615. else
  46616. t1 = true;
  46617. else
  46618. t1 = true;
  46619. else
  46620. t1 = true;
  46621. else
  46622. t1 = true;
  46623. return t1;
  46624. },
  46625. _withChildren$1$3: function(child, start, create) {
  46626. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  46627. this.whitespaceWithoutComments$0();
  46628. return result;
  46629. },
  46630. _withChildren$3: function(child, start, create) {
  46631. return this._withChildren$1$3(child, start, create, type$.dynamic);
  46632. },
  46633. _urlString$0: function() {
  46634. var innerError, t2, exception,
  46635. t1 = this.scanner,
  46636. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  46637. url = this.string$0();
  46638. try {
  46639. t2 = P.Uri_parse(url);
  46640. return t2;
  46641. } catch (exception) {
  46642. t2 = H.unwrapException(exception);
  46643. if (type$.legacy_FormatException._is(t2)) {
  46644. innerError = t2;
  46645. this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  46646. } else
  46647. throw exception;
  46648. }
  46649. },
  46650. _publicIdentifier$0: function() {
  46651. var _this = this,
  46652. t1 = _this.scanner,
  46653. t2 = t1._string_scanner$_position,
  46654. result = _this.identifier$1$normalize(true);
  46655. _this._assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure(_this, new S._SpanScannerState(t1, t2)));
  46656. return result;
  46657. },
  46658. _assertPublic$2: function(identifier, span) {
  46659. if (!T.isPrivate(identifier))
  46660. return;
  46661. this.error$2(0, string$.Privat, span.call$0());
  46662. },
  46663. get$plainCss: function() {
  46664. return false;
  46665. }
  46666. };
  46667. V.StylesheetParser_parse_closure.prototype = {
  46668. call$0: function() {
  46669. var statements, t4,
  46670. t1 = this.$this,
  46671. t2 = t1.scanner,
  46672. t3 = t2._string_scanner$_position;
  46673. t2.scanChar$1(65279);
  46674. statements = t1.statements$1(new V.StylesheetParser_parse__closure(t1));
  46675. t2.expectDone$0();
  46676. t4 = t1._globalVariables;
  46677. t4 = t4.get$values(t4);
  46678. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure0(), H._instanceType(t4)._eval$1("Iterable.E"), type$.legacy_Statement));
  46679. return V.Stylesheet$(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  46680. },
  46681. $signature: 59
  46682. };
  46683. V.StylesheetParser_parse__closure.prototype = {
  46684. call$0: function() {
  46685. return this.$this._statement$1$root(true);
  46686. },
  46687. $signature: 57
  46688. };
  46689. V.StylesheetParser_parse__closure0.prototype = {
  46690. call$1: function(declaration) {
  46691. return Z.VariableDeclaration$(declaration.name, new O.NullExpression(declaration.expression.get$span()), declaration.span, null, false, true, null);
  46692. },
  46693. $signature: 256
  46694. };
  46695. V.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
  46696. call$0: function() {
  46697. var $arguments,
  46698. t1 = this.$this,
  46699. t2 = t1.scanner;
  46700. t2.expectChar$2$name(64, "@-rule");
  46701. t1.identifier$0();
  46702. t1.whitespace$0();
  46703. t1.identifier$0();
  46704. $arguments = t1._argumentDeclaration$0();
  46705. t1.whitespace$0();
  46706. t2.expectChar$1(123);
  46707. return $arguments;
  46708. },
  46709. $signature: 250
  46710. };
  46711. V.StylesheetParser_parseVariableDeclaration_closure.prototype = {
  46712. call$0: function() {
  46713. var t1 = this.$this;
  46714. return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
  46715. },
  46716. $signature: 187
  46717. };
  46718. V.StylesheetParser_parseUseRule_closure.prototype = {
  46719. call$0: function() {
  46720. var t1 = this.$this,
  46721. t2 = t1.scanner,
  46722. t3 = t2._string_scanner$_position;
  46723. t2.expectChar$2$name(64, "@-rule");
  46724. t1.expectIdentifier$1("use");
  46725. t1.whitespace$0();
  46726. return t1._useRule$1(new S._SpanScannerState(t2, t3));
  46727. },
  46728. $signature: 244
  46729. };
  46730. V.StylesheetParser__parseSingleProduction_closure.prototype = {
  46731. call$0: function() {
  46732. var result = this.production.call$0();
  46733. this.$this.scanner.expectDone$0();
  46734. return result;
  46735. },
  46736. $signature: function() {
  46737. return this.T._eval$1("0*()");
  46738. }
  46739. };
  46740. V.StylesheetParser__statement_closure.prototype = {
  46741. call$0: function() {
  46742. return this.$this._statement$0();
  46743. },
  46744. $signature: 57
  46745. };
  46746. V.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
  46747. call$0: function() {
  46748. return this.$this.scanner.spanFrom$1(this._box_0.start);
  46749. },
  46750. $signature: 33
  46751. };
  46752. V.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
  46753. call$0: function() {
  46754. return this.declaration;
  46755. },
  46756. $signature: 187
  46757. };
  46758. V.StylesheetParser__declarationOrBuffer_closure.prototype = {
  46759. call$2: function(children, span) {
  46760. return L.Declaration$(this.name, span, children, null);
  46761. },
  46762. $signature: 67
  46763. };
  46764. V.StylesheetParser__declarationOrBuffer_closure0.prototype = {
  46765. call$2: function(children, span) {
  46766. return L.Declaration$(this.name, span, children, this._box_0.value);
  46767. },
  46768. $signature: 67
  46769. };
  46770. V.StylesheetParser__styleRule_closure.prototype = {
  46771. call$2: function(children, span) {
  46772. var t2, _this = this,
  46773. t1 = _this.$this;
  46774. if (t1.get$indented() && children.length === 0)
  46775. t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
  46776. t1._inStyleRule = _this.wasInStyleRule;
  46777. t2 = _this._box_0;
  46778. return X.StyleRule$(t2.interpolation, children, t1.scanner.spanFrom$1(t2.start));
  46779. },
  46780. $signature: 240
  46781. };
  46782. V.StylesheetParser__propertyOrVariableDeclaration_closure.prototype = {
  46783. call$2: function(children, span) {
  46784. return L.Declaration$(this._box_0.name, span, children, null);
  46785. },
  46786. $signature: 67
  46787. };
  46788. V.StylesheetParser__propertyOrVariableDeclaration_closure0.prototype = {
  46789. call$2: function(children, span) {
  46790. return L.Declaration$(this._box_0.name, span, children, this.value);
  46791. },
  46792. $signature: 67
  46793. };
  46794. V.StylesheetParser__atRootRule_closure.prototype = {
  46795. call$2: function(children, span) {
  46796. return V.AtRootRule$(children, span, this.query);
  46797. },
  46798. $signature: 192
  46799. };
  46800. V.StylesheetParser__atRootRule_closure0.prototype = {
  46801. call$2: function(children, span) {
  46802. return V.AtRootRule$(children, span, null);
  46803. },
  46804. $signature: 192
  46805. };
  46806. V.StylesheetParser__eachRule_closure.prototype = {
  46807. call$2: function(children, span) {
  46808. var _this = this;
  46809. _this.$this._inControlDirective = _this.wasInControlDirective;
  46810. return V.EachRule$(_this.variables, _this.list, children, span);
  46811. },
  46812. $signature: 236
  46813. };
  46814. V.StylesheetParser__functionRule_closure.prototype = {
  46815. call$2: function(children, span) {
  46816. return M.FunctionRule$(this.name, this.$arguments, children, span, this.precedingComment);
  46817. },
  46818. $signature: 235
  46819. };
  46820. V.StylesheetParser__forRule_closure.prototype = {
  46821. call$0: function() {
  46822. var t1 = this.$this;
  46823. if (!t1.lookingAtIdentifier$0())
  46824. return false;
  46825. if (t1.scanIdentifier$1("to"))
  46826. return this._box_0.exclusive = true;
  46827. else if (t1.scanIdentifier$1("through")) {
  46828. this._box_0.exclusive = false;
  46829. return true;
  46830. } else
  46831. return false;
  46832. },
  46833. $signature: 36
  46834. };
  46835. V.StylesheetParser__forRule_closure0.prototype = {
  46836. call$2: function(children, span) {
  46837. var _this = this;
  46838. _this.$this._inControlDirective = _this.wasInControlDirective;
  46839. return B.ForRule$(_this.variable, _this.from, _this.to, children, span, _this._box_0.exclusive);
  46840. },
  46841. $signature: 234
  46842. };
  46843. V.StylesheetParser__memberList_closure.prototype = {
  46844. call$0: function() {
  46845. var t1 = this.$this;
  46846. if (t1.scanner.peekChar$0() === 36)
  46847. this.variables.add$1(0, t1.variableName$0());
  46848. else
  46849. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  46850. },
  46851. $signature: 0
  46852. };
  46853. V.StylesheetParser__includeRule_closure.prototype = {
  46854. call$2: function(children, span) {
  46855. return Y.ContentBlock$(this._box_0.contentArguments, children, span);
  46856. },
  46857. $signature: 233
  46858. };
  46859. V.StylesheetParser_mediaRule_closure.prototype = {
  46860. call$2: function(children, span) {
  46861. return G.MediaRule$(this.query, children, span);
  46862. },
  46863. $signature: 231
  46864. };
  46865. V.StylesheetParser__mixinRule_closure.prototype = {
  46866. call$2: function(children, span) {
  46867. var _this = this,
  46868. t1 = _this.$this,
  46869. hadContent = t1._mixinHasContent;
  46870. t1._stylesheet$_inMixin = false;
  46871. t1._mixinHasContent = null;
  46872. return T.MixinRule$(_this.name, _this.$arguments, children, span, _this.precedingComment, hadContent);
  46873. },
  46874. $signature: 229
  46875. };
  46876. V.StylesheetParser_mozDocumentRule_closure.prototype = {
  46877. call$2: function(children, span) {
  46878. var _this = this;
  46879. if (_this._box_0.needsDeprecationWarning)
  46880. _this.$this.logger.warn$3$deprecation$span(0, string$.x40_moz_, true, span);
  46881. return U.AtRule$(_this.name, span, children, _this.value);
  46882. },
  46883. $signature: 199
  46884. };
  46885. V.StylesheetParser_supportsRule_closure.prototype = {
  46886. call$2: function(children, span) {
  46887. return B.SupportsRule$(this.condition, children, span);
  46888. },
  46889. $signature: 228
  46890. };
  46891. V.StylesheetParser__whileRule_closure.prototype = {
  46892. call$2: function(children, span) {
  46893. this.$this._inControlDirective = this.wasInControlDirective;
  46894. return G.WhileRule$(this.condition, children, span);
  46895. },
  46896. $signature: 227
  46897. };
  46898. V.StylesheetParser_unknownAtRule_closure.prototype = {
  46899. call$2: function(children, span) {
  46900. return U.AtRule$(this.name, span, children, this._box_0.value);
  46901. },
  46902. $signature: 199
  46903. };
  46904. V.StylesheetParser_expression_resetState.prototype = {
  46905. call$0: function() {
  46906. var t2,
  46907. t1 = this._box_0;
  46908. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  46909. t2 = this.$this;
  46910. t2.scanner.set$state(this.start);
  46911. t1.allowSlash = t2.lookingAtNumber$0();
  46912. t1.singleExpression = t2._singleExpression$0();
  46913. },
  46914. $signature: 1
  46915. };
  46916. V.StylesheetParser_expression_resolveOneOperation.prototype = {
  46917. call$0: function() {
  46918. var t2, t3,
  46919. t1 = this._box_0,
  46920. operator = t1.operators.pop();
  46921. if (operator !== C.BinaryOperator_RTB)
  46922. t1.allowSlash = false;
  46923. t2 = t1.allowSlash && !this.$this._inParentheses;
  46924. t3 = t1.operands;
  46925. if (t2)
  46926. t1.singleExpression = new V.BinaryOperationExpression(C.BinaryOperator_RTB, t3.pop(), t1.singleExpression, true);
  46927. else
  46928. t1.singleExpression = new V.BinaryOperationExpression(operator, t3.pop(), t1.singleExpression, false);
  46929. },
  46930. $signature: 1
  46931. };
  46932. V.StylesheetParser_expression_resolveOperations.prototype = {
  46933. call$0: function() {
  46934. var t2,
  46935. t1 = this._box_0;
  46936. if (t1.operators == null)
  46937. return;
  46938. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  46939. t2.call$0();
  46940. },
  46941. $signature: 1
  46942. };
  46943. V.StylesheetParser_expression_addSingleExpression.prototype = {
  46944. call$2$number: function(expression, number) {
  46945. var t2, _this = this,
  46946. t1 = _this._box_0;
  46947. if (t1.singleExpression != null) {
  46948. t2 = _this.$this;
  46949. if (t2._inParentheses) {
  46950. t2._inParentheses = false;
  46951. if (t1.allowSlash) {
  46952. _this.resetState.call$0();
  46953. return;
  46954. }
  46955. }
  46956. if (t1.spaceExpressions == null)
  46957. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  46958. _this.resolveOperations.call$0();
  46959. t1.spaceExpressions.push(t1.singleExpression);
  46960. t1.allowSlash = number;
  46961. } else if (!number)
  46962. t1.allowSlash = false;
  46963. t1.singleExpression = expression;
  46964. },
  46965. call$1: function(expression) {
  46966. return this.call$2$number(expression, false);
  46967. },
  46968. $signature: 226
  46969. };
  46970. V.StylesheetParser_expression_addOperator.prototype = {
  46971. call$1: function(operator) {
  46972. var t2, t3, t4, t5, singleExpression,
  46973. t1 = this.$this;
  46974. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB && operator !== C.BinaryOperator_kjl) {
  46975. t2 = t1.scanner;
  46976. t3 = operator.operator.length;
  46977. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  46978. }
  46979. t2 = this._box_0;
  46980. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB;
  46981. if (t2.operators == null)
  46982. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BinaryOperator);
  46983. if (t2.operands == null)
  46984. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  46985. t3 = this.resolveOneOperation;
  46986. t4 = operator.precedence;
  46987. while (true) {
  46988. t5 = t2.operators;
  46989. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  46990. break;
  46991. t3.call$0();
  46992. }
  46993. t2.operators.push(operator);
  46994. t2.operands.push(t2.singleExpression);
  46995. t1.whitespace$0();
  46996. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  46997. singleExpression = t1._singleExpression$0();
  46998. t2.singleExpression = singleExpression;
  46999. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression;
  47000. },
  47001. $signature: 225
  47002. };
  47003. V.StylesheetParser_expression_resolveSpaceExpressions.prototype = {
  47004. call$0: function() {
  47005. var t1, t2;
  47006. this.resolveOperations.call$0();
  47007. t1 = this._box_0;
  47008. t2 = t1.spaceExpressions;
  47009. if (t2 != null) {
  47010. t2.push(t1.singleExpression);
  47011. t1.singleExpression = D.ListExpression$(t1.spaceExpressions, C.ListSeparator_space, false, null);
  47012. t1.spaceExpressions = null;
  47013. }
  47014. },
  47015. $signature: 1
  47016. };
  47017. V.StylesheetParser__expressionUntilComma_closure.prototype = {
  47018. call$0: function() {
  47019. return this.$this.scanner.peekChar$0() === 44;
  47020. },
  47021. $signature: 36
  47022. };
  47023. V.StylesheetParser__unicodeRange_closure.prototype = {
  47024. call$1: function(char) {
  47025. return char != null && T.isHex(char);
  47026. },
  47027. $signature: 24
  47028. };
  47029. V.StylesheetParser__unicodeRange_closure0.prototype = {
  47030. call$1: function(char) {
  47031. return char != null && T.isHex(char);
  47032. },
  47033. $signature: 24
  47034. };
  47035. V.StylesheetParser_identifierLike_closure.prototype = {
  47036. call$0: function() {
  47037. return this.$this.scanner.spanFrom$1(this.start);
  47038. },
  47039. $signature: 33
  47040. };
  47041. V.StylesheetParser__expressionUntilComparison_closure.prototype = {
  47042. call$0: function() {
  47043. var t1 = this.$this.scanner,
  47044. next = t1.peekChar$0();
  47045. if (next === 61)
  47046. return t1.peekChar$1(1) !== 61;
  47047. return next === 60 || next === 62;
  47048. },
  47049. $signature: 36
  47050. };
  47051. V.StylesheetParser__publicIdentifier_closure.prototype = {
  47052. call$0: function() {
  47053. return this.$this.scanner.spanFrom$1(this.start);
  47054. },
  47055. $signature: 33
  47056. };
  47057. M.StylesheetGraph.prototype = {
  47058. modifiedSince$3: function(url, since, baseImporter) {
  47059. var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
  47060. if (node == null)
  47061. return true;
  47062. return new M.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._value > since._value;
  47063. },
  47064. _stylesheet_graph$_add$3: function(url, baseImporter, baseUrl) {
  47065. var t1, t2, _this = this,
  47066. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
  47067. if (tuple == null)
  47068. return null;
  47069. t1 = tuple.item1;
  47070. t2 = tuple.item2;
  47071. _this.addCanonical$3(t1, t2, tuple.item3);
  47072. return _this._nodes.$index(0, t2);
  47073. },
  47074. addCanonical$4$recanonicalize: function(importer, canonicalUrl, originalUrl, recanonicalize) {
  47075. var stylesheet, _this = this,
  47076. t1 = _this._nodes;
  47077. if (t1.$index(0, canonicalUrl) != null)
  47078. return C.Set_empty1;
  47079. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
  47080. if (stylesheet == null)
  47081. return C.Set_empty1;
  47082. t1.$indexSet(0, canonicalUrl, M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
  47083. return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : C.Set_empty1;
  47084. },
  47085. addCanonical$3: function(importer, canonicalUrl, originalUrl) {
  47086. return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
  47087. },
  47088. _upstreamNodes$3: function(stylesheet, baseImporter, baseUrl) {
  47089. var t4, t5, t6, t7,
  47090. t1 = type$.legacy_Uri,
  47091. active = P.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
  47092. t2 = type$.JSArray_legacy_Uri,
  47093. t3 = H.setRuntimeTypeInfo([], t2);
  47094. t2 = H.setRuntimeTypeInfo([], t2);
  47095. new F._FindDependenciesVisitor(t3, t2).visitChildren$1(stylesheet);
  47096. t4 = type$.legacy_StylesheetNode;
  47097. t5 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  47098. for (t6 = C.JSArray_methods.get$iterator(t3); t6.moveNext$0();) {
  47099. t7 = t6.get$current(t6);
  47100. t5.$indexSet(0, t7, this._nodeFor$4(t7, baseImporter, baseUrl, active));
  47101. }
  47102. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t4);
  47103. for (t2 = J.get$iterator$ax(new S.Tuple2(t3, t2, type$.Tuple2_of_legacy_List_legacy_Uri_and_legacy_List_legacy_Uri).item2); t2.moveNext$0();) {
  47104. t3 = t2.get$current(t2);
  47105. t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
  47106. }
  47107. return new S.Tuple2(t5, t1, type$.Tuple2_of_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode_and_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode);
  47108. },
  47109. reload$1: function(canonicalUrl) {
  47110. var stylesheet, upstream, _this = this,
  47111. node = _this._nodes.$index(0, canonicalUrl);
  47112. if (node == null)
  47113. throw H.wrapException(P.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph."));
  47114. _this._transitiveModificationTimes.clear$0(0);
  47115. _this.importCache.clearImport$1(canonicalUrl);
  47116. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
  47117. if (stylesheet == null)
  47118. return false;
  47119. node._stylesheet_graph$_stylesheet = stylesheet;
  47120. upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
  47121. node._replaceUpstream$2(upstream.item1, upstream.item2);
  47122. return true;
  47123. },
  47124. _recanonicalizeImports$2: function(importer, canonicalUrl) {
  47125. var t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
  47126. t1 = type$.legacy_StylesheetNode,
  47127. changed = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  47128. for (t2 = _this._nodes, t3 = type$.UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode, t2 = t2.get$values(t2), t2 = t2.get$iterator(t2), t4 = type$.legacy_Uri; t2.moveNext$0();) {
  47129. t5 = t2.get$current(t2);
  47130. newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
  47131. newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
  47132. if (newUpstream.get$isNotEmpty(newUpstream) || newUpstreamImports.get$isNotEmpty(newUpstreamImports)) {
  47133. changed.add$1(0, t5);
  47134. t5._replaceUpstream$2(Y.mergeMaps(new P.UnmodifiableMapView(t5._upstream, t3), newUpstream, t4, t1), Y.mergeMaps(new P.UnmodifiableMapView(t5._upstreamImports, t3), newUpstreamImports, t4, t1));
  47135. }
  47136. }
  47137. if (changed._collection$_length !== 0)
  47138. _this._transitiveModificationTimes.clear$0(0);
  47139. return changed;
  47140. },
  47141. _recanonicalizeImportsForNode$4$forImport: function(node, importer, canonicalUrl, forImport) {
  47142. var t1 = type$.UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode,
  47143. map = forImport ? new P.UnmodifiableMapView(node._upstreamImports, t1) : new P.UnmodifiableMapView(node._upstream, t1),
  47144. newMap = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_StylesheetNode);
  47145. map._collection$_map.forEach$1(0, new M.StylesheetGraph__recanonicalizeImportsForNode_closure(this, importer, canonicalUrl, node, forImport, newMap));
  47146. return newMap;
  47147. },
  47148. _nodeFor$5$forImport: function(url, baseImporter, baseUrl, active, forImport) {
  47149. var importer, canonicalUrl, resolvedUrl, t1, stylesheet, node, _this = this,
  47150. tuple = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
  47151. if (tuple == null)
  47152. return null;
  47153. importer = tuple.item1;
  47154. canonicalUrl = tuple.item2;
  47155. resolvedUrl = tuple.item3;
  47156. t1 = _this._nodes;
  47157. if (t1.containsKey$1(canonicalUrl))
  47158. return t1.$index(0, canonicalUrl);
  47159. if (active.contains$1(0, canonicalUrl))
  47160. return null;
  47161. stylesheet = _this._ignoreErrors$1(new M.StylesheetGraph__nodeFor_closure0(_this, importer, canonicalUrl, resolvedUrl));
  47162. if (stylesheet == null)
  47163. return null;
  47164. active.add$1(0, canonicalUrl);
  47165. node = M.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl));
  47166. active.remove$1(0, canonicalUrl);
  47167. t1.$indexSet(0, canonicalUrl, node);
  47168. return node;
  47169. },
  47170. _nodeFor$4: function(url, baseImporter, baseUrl, active) {
  47171. return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
  47172. },
  47173. _ignoreErrors$1$1: function(callback) {
  47174. var t1, exception;
  47175. try {
  47176. t1 = callback.call$0();
  47177. return t1;
  47178. } catch (exception) {
  47179. H.unwrapException(exception);
  47180. return null;
  47181. }
  47182. },
  47183. _ignoreErrors$1: function(callback) {
  47184. return this._ignoreErrors$1$1(callback, type$.dynamic);
  47185. }
  47186. };
  47187. M.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
  47188. call$1: function(node) {
  47189. return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
  47190. },
  47191. $signature: 222
  47192. };
  47193. M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
  47194. call$0: function() {
  47195. var t2, t3, upstreamTime,
  47196. t1 = this.node,
  47197. latest = t1.importer.modificationTime$1(t1.canonicalUrl);
  47198. for (t2 = t1._upstream, t2 = t2.get$values(t2), t1 = t1._upstreamImports, t1 = t2.followedBy$1(0, t1.get$values(t1)), t1 = new H.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
  47199. t3 = t1._currentIterator;
  47200. t3 = t3.get$current(t3);
  47201. upstreamTime = t3 == null ? new P.DateTime(Date.now(), false) : t2.call$1(t3);
  47202. if (upstreamTime._value > latest._value)
  47203. latest = upstreamTime;
  47204. }
  47205. return latest;
  47206. },
  47207. $signature: 172
  47208. };
  47209. M.StylesheetGraph__add_closure.prototype = {
  47210. call$0: function() {
  47211. var _this = this;
  47212. return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(_this.url, _this.baseImporter, _this.baseUrl);
  47213. },
  47214. $signature: 108
  47215. };
  47216. M.StylesheetGraph_addCanonical_closure.prototype = {
  47217. call$0: function() {
  47218. var _this = this;
  47219. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.originalUrl);
  47220. },
  47221. $signature: 59
  47222. };
  47223. M.StylesheetGraph_reload_closure.prototype = {
  47224. call$0: function() {
  47225. return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
  47226. },
  47227. $signature: 59
  47228. };
  47229. M.StylesheetGraph__recanonicalizeImportsForNode_closure.prototype = {
  47230. call$2: function(url, upstream) {
  47231. var result, t1, t2, t3, t4, exception, newCanonicalUrl, _this = this;
  47232. if (!_this.importer.couldCanonicalize$2(url, _this.canonicalUrl))
  47233. return;
  47234. t1 = _this.$this;
  47235. t2 = t1.importCache;
  47236. t3 = t2._canonicalizeCache;
  47237. t4 = type$.Tuple2_of_legacy_Uri_and_legacy_bool;
  47238. t3.remove$1(0, new S.Tuple2(url, false, t4));
  47239. t3.remove$1(0, new S.Tuple2(url, true, t4));
  47240. result = null;
  47241. try {
  47242. t3 = _this.node;
  47243. result = t2.canonicalize$4$baseImporter$baseUrl$forImport(url, t3.importer, t3.canonicalUrl, _this.forImport);
  47244. } catch (exception) {
  47245. H.unwrapException(exception);
  47246. }
  47247. t2 = result;
  47248. newCanonicalUrl = t2 == null ? null : t2.item2;
  47249. if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
  47250. return;
  47251. t1 = result == null ? null : t1._nodes.$index(0, result.item2);
  47252. _this.newMap.$indexSet(0, url, t1);
  47253. },
  47254. $signature: 221
  47255. };
  47256. M.StylesheetGraph__nodeFor_closure.prototype = {
  47257. call$0: function() {
  47258. var _this = this;
  47259. return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(_this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
  47260. },
  47261. $signature: 108
  47262. };
  47263. M.StylesheetGraph__nodeFor_closure0.prototype = {
  47264. call$0: function() {
  47265. var _this = this;
  47266. return _this.$this.importCache.importCanonical$3(_this.importer, _this.canonicalUrl, _this.resolvedUrl);
  47267. },
  47268. $signature: 59
  47269. };
  47270. M.StylesheetNode.prototype = {
  47271. StylesheetNode$_$4: function(_stylesheet, importer, canonicalUrl, allUpstream) {
  47272. var t1, t2;
  47273. for (t1 = this._upstream, t1 = t1.get$values(t1), t2 = this._upstreamImports, t2 = t1.followedBy$1(0, t2.get$values(t2)), t2 = new H.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  47274. t1 = t2._currentIterator;
  47275. t1 = t1.get$current(t1);
  47276. if (t1 != null)
  47277. t1._downstream.add$1(0, this);
  47278. }
  47279. },
  47280. _replaceUpstream$2: function(newUpstream, newUpstreamImports) {
  47281. var t3, _this = this,
  47282. t1 = type$.legacy_StylesheetNode,
  47283. t2 = P.LinkedHashSet_LinkedHashSet(t1);
  47284. for (t3 = _this._upstream, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  47285. t2.add$1(0, t3.get$current(t3));
  47286. for (t3 = _this._upstreamImports, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  47287. t2.add$1(0, t3.get$current(t3));
  47288. t2.remove$1(0, null);
  47289. t1 = P.LinkedHashSet_LinkedHashSet(t1);
  47290. for (t3 = newUpstream.get$values(newUpstream), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  47291. t1.add$1(0, t3.get$current(t3));
  47292. for (t3 = newUpstreamImports.get$values(newUpstreamImports), t3 = t3.get$iterator(t3); t3.moveNext$0();)
  47293. t1.add$1(0, t3.get$current(t3));
  47294. t1.remove$1(0, null);
  47295. for (t3 = t2.difference$1(t1), t3 = P._LinkedHashSetIterator$(t3, t3._collection$_modifications); t3.moveNext$0();)
  47296. t3._collection$_current._downstream.remove$1(0, _this);
  47297. for (t1 = t1.difference$1(t2), t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();)
  47298. t1._collection$_current._downstream.add$1(0, _this);
  47299. _this._upstream = newUpstream;
  47300. _this._upstreamImports = newUpstreamImports;
  47301. },
  47302. _stylesheet_graph$_remove$0: function() {
  47303. var t2, t3, t4, _i, url, _this = this,
  47304. t1 = P.LinkedHashSet_LinkedHashSet(type$.legacy_StylesheetNode);
  47305. for (t2 = _this._upstream, t2 = t2.get$values(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  47306. t1.add$1(0, t2.get$current(t2));
  47307. for (t2 = _this._upstreamImports, t2 = t2.get$values(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  47308. t1.add$1(0, t2.get$current(t2));
  47309. t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications);
  47310. for (; t1.moveNext$0();) {
  47311. t2 = t1._collection$_current;
  47312. if (t2 == null)
  47313. continue;
  47314. t2._downstream.remove$1(0, _this);
  47315. }
  47316. for (t1 = _this._downstream, t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  47317. t2 = t1.get$current(t1);
  47318. for (t3 = t2._upstream, t3 = J.toList$0$ax(t3.get$keys(t3)), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  47319. url = t3[_i];
  47320. if (J.$eq$(t2._upstream.$index(0, url), _this)) {
  47321. t2._upstream.$indexSet(0, url, null);
  47322. break;
  47323. }
  47324. }
  47325. for (t3 = t2._upstreamImports, t3 = J.toList$0$ax(t3.get$keys(t3)), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i) {
  47326. url = t3[_i];
  47327. if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
  47328. t2._upstreamImports.$indexSet(0, url, null);
  47329. break;
  47330. }
  47331. }
  47332. }
  47333. },
  47334. toString$0: function(_) {
  47335. var t1 = this._stylesheet_graph$_stylesheet.span.file;
  47336. return $.$get$context().prettyUri$1(t1.url);
  47337. }
  47338. };
  47339. M.Syntax.prototype = {
  47340. toString$0: function(_) {
  47341. return this._syntax$_name;
  47342. }
  47343. };
  47344. G.FixedLengthListBuilder.prototype = {
  47345. add$1: function(_, element) {
  47346. var t1, _this = this;
  47347. _this._checkUnbuilt$0();
  47348. t1 = _this._fixed_length_list_builder$_index;
  47349. _this._list[t1] = element;
  47350. _this._fixed_length_list_builder$_index = t1 + 1;
  47351. },
  47352. addAll$1: function(_, elements) {
  47353. var _this = this;
  47354. _this._checkUnbuilt$0();
  47355. C.JSArray_methods.setAll$2(_this._list, _this._fixed_length_list_builder$_index, elements);
  47356. _this._fixed_length_list_builder$_index = _this._fixed_length_list_builder$_index + elements.length;
  47357. },
  47358. addRange$3: function(elements, start, end) {
  47359. var $length, t1, _this = this;
  47360. _this._checkUnbuilt$0();
  47361. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  47362. t1 = _this._fixed_length_list_builder$_index;
  47363. C.JSArray_methods.setRange$4(_this._list, t1, t1 + $length, elements, start);
  47364. _this._fixed_length_list_builder$_index += $length;
  47365. },
  47366. addRange$2: function(elements, start) {
  47367. return this.addRange$3(elements, start, null);
  47368. },
  47369. build$0: function() {
  47370. this._checkUnbuilt$0();
  47371. this._fixed_length_list_builder$_index = -1;
  47372. return this._list;
  47373. },
  47374. _checkUnbuilt$0: function() {
  47375. if (this._fixed_length_list_builder$_index === -1)
  47376. throw H.wrapException(P.StateError$("build() has already been called."));
  47377. }
  47378. };
  47379. K.LimitedMapView.prototype = {
  47380. get$keys: function(_) {
  47381. return this._limited_map_view$_keys;
  47382. },
  47383. get$length: function(_) {
  47384. return this._limited_map_view$_keys._collection$_length;
  47385. },
  47386. get$isEmpty: function(_) {
  47387. return this._limited_map_view$_keys._collection$_length === 0;
  47388. },
  47389. get$isNotEmpty: function(_) {
  47390. return this._limited_map_view$_keys._collection$_length !== 0;
  47391. },
  47392. $index: function(_, key) {
  47393. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
  47394. },
  47395. containsKey$1: function(key) {
  47396. return this._limited_map_view$_keys.contains$1(0, key);
  47397. },
  47398. remove$1: function(_, key) {
  47399. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
  47400. }
  47401. };
  47402. Z.MergedMapView.prototype = {
  47403. get$keys: function(_) {
  47404. var t1 = this._mapsByKey;
  47405. return t1.get$keys(t1);
  47406. },
  47407. get$length: function(_) {
  47408. var t1 = this._mapsByKey;
  47409. return t1.get$length(t1);
  47410. },
  47411. get$isEmpty: function(_) {
  47412. var t1 = this._mapsByKey;
  47413. return t1.get$isEmpty(t1);
  47414. },
  47415. get$isNotEmpty: function(_) {
  47416. var t1 = this._mapsByKey;
  47417. return t1.get$isNotEmpty(t1);
  47418. },
  47419. MergedMapView$1: function(maps, $K, $V) {
  47420. var t1, t2, t3, _i, map, t4, t5;
  47421. for (t1 = maps.length, t2 = this._mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView<1*,2*>*"), _i = 0; _i < maps.length; maps.length === t1 || (0, H.throwConcurrentModificationError)(maps), ++_i) {
  47422. map = maps[_i];
  47423. if (t3._is(map))
  47424. for (t4 = map._mapsByKey, t4 = t4.get$values(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  47425. t5 = t4.get$current(t4);
  47426. B.setAll(t2, t5.get$keys(t5), t5);
  47427. }
  47428. else
  47429. B.setAll(t2, map.get$keys(map), map);
  47430. }
  47431. },
  47432. $index: function(_, key) {
  47433. var child = this._mapsByKey.$index(0, key);
  47434. return child == null ? null : child.$index(0, key);
  47435. },
  47436. $indexSet: function(_, key, value) {
  47437. var child = this._mapsByKey.$index(0, key);
  47438. if (child == null)
  47439. throw H.wrapException(P.UnsupportedError$(string$.New_en));
  47440. child.$indexSet(0, key, value);
  47441. },
  47442. remove$1: function(_, key) {
  47443. throw H.wrapException(P.UnsupportedError$(string$.Entrie));
  47444. },
  47445. containsKey$1: function(key) {
  47446. return this._mapsByKey.containsKey$1(key);
  47447. }
  47448. };
  47449. U.MultiDirWatcher.prototype = {
  47450. watch$1: function(_, directory) {
  47451. var t1, t2, t3, t4, isParentOfExistingDir, _i, existingDir, t5, future, completer;
  47452. for (t1 = this._watchers, t2 = t1.get$keys(t1), t2 = P.List_List$from(t2, true, H._instanceType(t2)._eval$1("Iterable.E")), t3 = t2.length, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  47453. existingDir = t2[_i];
  47454. if (!isParentOfExistingDir) {
  47455. t5 = $.$get$context();
  47456. t5 = t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_equal || t5._isWithinOrEquals$2(existingDir, directory) === C._PathRelation_within;
  47457. } else
  47458. t5 = false;
  47459. if (t5) {
  47460. t1 = new P._Future($.Zone__current, type$._Future_void);
  47461. t1._asyncComplete$1(null);
  47462. return t1;
  47463. }
  47464. if ($.$get$context()._isWithinOrEquals$2(directory, existingDir) === C._PathRelation_within) {
  47465. t4.remove$1(0, t1.remove$1(0, existingDir));
  47466. isParentOfExistingDir = true;
  47467. }
  47468. }
  47469. future = B.watchDir(directory, this._poll);
  47470. t2 = new Y._CompleterStream(type$._CompleterStream_legacy_WatchEvent);
  47471. completer = new Y.StreamCompleter(t2, type$.StreamCompleter_legacy_WatchEvent);
  47472. future.then$1$2$onError(0, completer.get$setSourceStream(), completer.get$setError(), type$.void);
  47473. t1.$indexSet(0, directory, t2);
  47474. t4.add$1(0, t2);
  47475. return future;
  47476. }
  47477. };
  47478. N.NoSourceMapBuffer0.prototype = {
  47479. get$length: function(_) {
  47480. return this._no_source_map_buffer0$_buffer._contents.length;
  47481. },
  47482. get$sourceFiles: function() {
  47483. return C.Map_empty;
  47484. },
  47485. forSpan$1$2: function(span, callback) {
  47486. return callback.call$0();
  47487. },
  47488. forSpan$2: function(span, callback) {
  47489. return this.forSpan$1$2(span, callback, type$.dynamic);
  47490. },
  47491. write$1: function(_, object) {
  47492. this._no_source_map_buffer0$_buffer._contents += H.S(object);
  47493. return null;
  47494. },
  47495. writeCharCode$1: function(charCode) {
  47496. this._no_source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  47497. return null;
  47498. },
  47499. toString$0: function(_) {
  47500. var t1 = this._no_source_map_buffer0$_buffer._contents;
  47501. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47502. },
  47503. buildSourceMap$1$prefix: function(prefix) {
  47504. return H.throwExpression(P.UnsupportedError$(string$.NoSour));
  47505. },
  47506. $isStringBuffer: 1
  47507. };
  47508. F.PrefixedMapView.prototype = {
  47509. get$keys: function(_) {
  47510. return new F._PrefixedKeys(this);
  47511. },
  47512. get$length: function(_) {
  47513. var t1 = this._prefixed_map_view$_map;
  47514. return t1.get$length(t1);
  47515. },
  47516. get$isEmpty: function(_) {
  47517. var t1 = this._prefixed_map_view$_map;
  47518. return t1.get$isEmpty(t1);
  47519. },
  47520. get$isNotEmpty: function(_) {
  47521. var t1 = this._prefixed_map_view$_map;
  47522. return t1.get$isNotEmpty(t1);
  47523. },
  47524. $index: function(_, key) {
  47525. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
  47526. },
  47527. containsKey$1: function(key) {
  47528. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
  47529. }
  47530. };
  47531. F._PrefixedKeys.prototype = {
  47532. get$length: function(_) {
  47533. var t1 = this._view._prefixed_map_view$_map;
  47534. return t1.get$length(t1);
  47535. },
  47536. get$iterator: function(_) {
  47537. var t1 = this._view._prefixed_map_view$_map;
  47538. t1 = J.map$1$1$ax(t1.get$keys(t1), new F._PrefixedKeys_iterator_closure(this), type$.legacy_String);
  47539. return t1.get$iterator(t1);
  47540. },
  47541. contains$1: function(_, key) {
  47542. return this._view.containsKey$1(key);
  47543. }
  47544. };
  47545. F._PrefixedKeys_iterator_closure.prototype = {
  47546. call$1: function(key) {
  47547. return this.$this._view._prefix + H.S(key);
  47548. },
  47549. $signature: 6
  47550. };
  47551. U.PublicMemberMapView.prototype = {
  47552. get$keys: function(_) {
  47553. var t1 = this._inner;
  47554. return J.where$1$ax(t1.get$keys(t1), B.utils__isPublic$closure());
  47555. },
  47556. containsKey$1: function(key) {
  47557. return typeof key == "string" && B.isPublic(key) && this._inner.containsKey$1(key);
  47558. },
  47559. $index: function(_, key) {
  47560. if (typeof key == "string" && B.isPublic(key))
  47561. return this._inner.$index(0, key);
  47562. return null;
  47563. }
  47564. };
  47565. D.SourceMapBuffer0.prototype = {
  47566. get$sourceFiles: function() {
  47567. var t2, t3,
  47568. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_SourceFile);
  47569. for (t2 = this._sourceFiles, t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  47570. t3 = t2.get$current(t2);
  47571. t1.$indexSet(0, J.toString$0$(t3.key), t3.value);
  47572. }
  47573. return new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile);
  47574. },
  47575. get$_source_map_buffer0$_targetLocation: function() {
  47576. var t1 = this._source_map_buffer0$_buffer._contents,
  47577. t2 = this._source_map_buffer0$_line;
  47578. return V.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
  47579. },
  47580. get$length: function(_) {
  47581. return this._source_map_buffer0$_buffer._contents.length;
  47582. },
  47583. forSpan$1$2: function(span, callback) {
  47584. var t1, _this = this,
  47585. wasInSpan = _this._source_map_buffer0$_inSpan;
  47586. _this._source_map_buffer0$_inSpan = true;
  47587. _this._addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_source_map_buffer0$_targetLocation());
  47588. try {
  47589. t1 = callback.call$0();
  47590. return t1;
  47591. } finally {
  47592. _this._source_map_buffer0$_inSpan = wasInSpan;
  47593. }
  47594. },
  47595. forSpan$2: function(span, callback) {
  47596. return this.forSpan$1$2(span, callback, type$.dynamic);
  47597. },
  47598. _addEntry$2: function(source, target) {
  47599. var entry, t2,
  47600. t1 = this._source_map_buffer0$_entries;
  47601. if (t1.length !== 0) {
  47602. entry = C.JSArray_methods.get$last(t1);
  47603. t2 = entry.source;
  47604. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  47605. return;
  47606. if (entry.target.offset === target.offset)
  47607. return;
  47608. }
  47609. this._sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure(source));
  47610. t1.push(new L.Entry(source, target, null));
  47611. },
  47612. write$1: function(_, object) {
  47613. var t1, i,
  47614. string = J.toString$0$(object);
  47615. this._source_map_buffer0$_buffer._contents += H.S(string);
  47616. for (t1 = string.length, i = 0; i < t1; ++i)
  47617. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  47618. this._source_map_buffer0$_writeLine$0();
  47619. else
  47620. ++this._source_map_buffer0$_column;
  47621. },
  47622. writeCharCode$1: function(charCode) {
  47623. this._source_map_buffer0$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  47624. if (charCode === 10)
  47625. this._source_map_buffer0$_writeLine$0();
  47626. else
  47627. ++this._source_map_buffer0$_column;
  47628. },
  47629. _source_map_buffer0$_writeLine$0: function() {
  47630. var _this = this,
  47631. t1 = _this._source_map_buffer0$_entries;
  47632. if (C.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && C.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
  47633. t1.pop();
  47634. ++_this._source_map_buffer0$_line;
  47635. _this._source_map_buffer0$_column = 0;
  47636. if (_this._source_map_buffer0$_inSpan)
  47637. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
  47638. },
  47639. toString$0: function(_) {
  47640. var t1 = this._source_map_buffer0$_buffer._contents;
  47641. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47642. },
  47643. buildSourceMap$1$prefix: function(prefix) {
  47644. var i, t2, prefixColumn, _box_0 = {},
  47645. t1 = prefix.length;
  47646. if (t1 === 0)
  47647. return T.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
  47648. _box_0.prefixColumn = _box_0.prefixLines = 0;
  47649. for (i = 0, t2 = 0; i < t1; ++i)
  47650. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  47651. ++_box_0.prefixLines;
  47652. _box_0.prefixColumn = 0;
  47653. t2 = 0;
  47654. } else {
  47655. prefixColumn = t2 + 1;
  47656. _box_0.prefixColumn = prefixColumn;
  47657. t2 = prefixColumn;
  47658. }
  47659. t2 = this._source_map_buffer0$_entries;
  47660. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry*>")));
  47661. },
  47662. $isStringBuffer: 1
  47663. };
  47664. D.SourceMapBuffer__addEntry_closure.prototype = {
  47665. call$0: function() {
  47666. return this.source.file;
  47667. },
  47668. $signature: 123
  47669. };
  47670. D.SourceMapBuffer_buildSourceMap_closure.prototype = {
  47671. call$1: function(entry) {
  47672. var t1 = entry.source,
  47673. t2 = entry.target,
  47674. t3 = t2.line,
  47675. t4 = this._box_0,
  47676. t5 = t4.prefixLines;
  47677. t4 = t3 === 0 ? t4.prefixColumn : 0;
  47678. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  47679. },
  47680. $signature: 207
  47681. };
  47682. R.UnprefixedMapView.prototype = {
  47683. get$keys: function(_) {
  47684. return new R._UnprefixedKeys(this);
  47685. },
  47686. $index: function(_, key) {
  47687. return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  47688. },
  47689. containsKey$1: function(key) {
  47690. return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view$_prefix, key));
  47691. },
  47692. remove$1: function(_, key) {
  47693. return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view$_prefix, key)) : null;
  47694. }
  47695. };
  47696. R._UnprefixedKeys.prototype = {
  47697. get$iterator: function(_) {
  47698. var t1 = this._unprefixed_map_view$_view._unprefixed_map_view$_map;
  47699. t1 = J.where$1$ax(t1.get$keys(t1), new R._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure0(this), type$.legacy_String);
  47700. return t1.get$iterator(t1);
  47701. },
  47702. contains$1: function(_, key) {
  47703. return this._unprefixed_map_view$_view.containsKey$1(key);
  47704. }
  47705. };
  47706. R._UnprefixedKeys_iterator_closure.prototype = {
  47707. call$1: function(key) {
  47708. return J.startsWith$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
  47709. },
  47710. $signature: 5
  47711. };
  47712. R._UnprefixedKeys_iterator_closure0.prototype = {
  47713. call$1: function(key) {
  47714. return J.substring$1$s(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
  47715. },
  47716. $signature: 6
  47717. };
  47718. B.indent_closure.prototype = {
  47719. call$1: function(line) {
  47720. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  47721. },
  47722. $signature: 6
  47723. };
  47724. B.flattenVertically_closure.prototype = {
  47725. call$1: function(inner) {
  47726. return Q.QueueList_QueueList$from(inner, this.T._eval$1("0*"));
  47727. },
  47728. $signature: function() {
  47729. return this.T._eval$1("QueueList<0*>*(Iterable<0*>*)");
  47730. }
  47731. };
  47732. B.flattenVertically_closure0.prototype = {
  47733. call$1: function(queue) {
  47734. this.result.push(queue.removeFirst$0());
  47735. return queue.get$length(queue) === 0;
  47736. },
  47737. $signature: function() {
  47738. return this.T._eval$1("bool*(QueueList<0*>*)");
  47739. }
  47740. };
  47741. B.longestCommonSubsequence_closure.prototype = {
  47742. call$2: function(element1, element2) {
  47743. return J.$eq$(element1, element2) ? element1 : null;
  47744. },
  47745. $signature: function() {
  47746. return this.T._eval$1("0*(0*,0*)");
  47747. }
  47748. };
  47749. B.longestCommonSubsequence_closure0.prototype = {
  47750. call$1: function(_) {
  47751. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, false, type$.legacy_int);
  47752. },
  47753. $signature: 208
  47754. };
  47755. B.longestCommonSubsequence_closure1.prototype = {
  47756. call$1: function(_) {
  47757. var t1 = new Array(J.get$length$asx(this.list2));
  47758. t1.fixed$length = Array;
  47759. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0*>"));
  47760. },
  47761. $signature: function() {
  47762. return this.T._eval$1("List<0*>*(int*)");
  47763. }
  47764. };
  47765. B.longestCommonSubsequence_backtrack.prototype = {
  47766. call$2: function(i, j) {
  47767. var selection, t1, _this = this;
  47768. if (i === -1 || j === -1)
  47769. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0*>"));
  47770. selection = J.$index$asx(_this.selections[i], j);
  47771. if (selection != null) {
  47772. t1 = _this.call$2(i - 1, j - 1);
  47773. J.add$1$ax(t1, selection);
  47774. return t1;
  47775. }
  47776. t1 = _this.lengths;
  47777. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  47778. },
  47779. $signature: function() {
  47780. return this.T._eval$1("List<0*>*(int*,int*)");
  47781. }
  47782. };
  47783. B.mapAddAll2_closure.prototype = {
  47784. call$2: function(key, inner) {
  47785. var t1 = this.destination;
  47786. if (t1.containsKey$1(key))
  47787. t1.$index(0, key).addAll$1(0, inner);
  47788. else
  47789. t1.$indexSet(0, key, inner);
  47790. },
  47791. $signature: function() {
  47792. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("Null(1*,Map<2*,3*>*)");
  47793. }
  47794. };
  47795. F.Value.prototype = {
  47796. get$isTruthy: function() {
  47797. return true;
  47798. },
  47799. get$separator: function() {
  47800. return C.ListSeparator_undecided;
  47801. },
  47802. get$hasBrackets: function() {
  47803. return false;
  47804. },
  47805. get$asList: function() {
  47806. return H.setRuntimeTypeInfo([this], type$.JSArray_legacy_Value);
  47807. },
  47808. get$lengthAsList: function() {
  47809. return 1;
  47810. },
  47811. get$isBlank: function() {
  47812. return false;
  47813. },
  47814. get$isSpecialNumber: function() {
  47815. return false;
  47816. },
  47817. get$isVar: function() {
  47818. return false;
  47819. },
  47820. get$realNull: function() {
  47821. return this;
  47822. },
  47823. sassIndexToListIndex$2: function(sassIndex, $name) {
  47824. var _this = this,
  47825. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  47826. if (index === 0)
  47827. throw H.wrapException(_this._value$_exception$2("List index may not be 0.", $name));
  47828. if (Math.abs(index) > _this.get$lengthAsList())
  47829. throw H.wrapException(_this._value$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  47830. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  47831. },
  47832. assertColor$1: function($name) {
  47833. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a color.", $name));
  47834. },
  47835. assertFunction$1: function($name) {
  47836. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  47837. },
  47838. assertMap$1: function($name) {
  47839. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a map.", $name));
  47840. },
  47841. tryMap$0: function() {
  47842. return null;
  47843. },
  47844. assertNumber$1: function($name) {
  47845. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a number.", $name));
  47846. },
  47847. assertNumber$0: function() {
  47848. return this.assertNumber$1(null);
  47849. },
  47850. assertString$1: function($name) {
  47851. return H.throwExpression(this._value$_exception$2(this.toString$0(0) + " is not a string.", $name));
  47852. },
  47853. assertSelector$2$allowParent$name: function(allowParent, $name) {
  47854. var error, t1, exception,
  47855. string = this._selectorString$1($name);
  47856. try {
  47857. t1 = D.SelectorList_SelectorList$parse(string, allowParent, true, null);
  47858. return t1;
  47859. } catch (exception) {
  47860. t1 = H.unwrapException(exception);
  47861. if (t1 instanceof E.SassFormatException) {
  47862. error = t1;
  47863. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  47864. } else
  47865. throw exception;
  47866. }
  47867. },
  47868. assertSelector$1$name: function($name) {
  47869. return this.assertSelector$2$allowParent$name(false, $name);
  47870. },
  47871. assertSelector$0: function() {
  47872. return this.assertSelector$2$allowParent$name(false, null);
  47873. },
  47874. assertSelector$1$allowParent: function(allowParent) {
  47875. return this.assertSelector$2$allowParent$name(allowParent, null);
  47876. },
  47877. assertCompoundSelector$1$name: function($name) {
  47878. var error, t1, exception,
  47879. allowParent = false,
  47880. string = this._selectorString$1($name);
  47881. try {
  47882. t1 = T.SelectorParser$(string, allowParent, true, null, null).parseCompoundSelector$0();
  47883. return t1;
  47884. } catch (exception) {
  47885. t1 = H.unwrapException(exception);
  47886. if (t1 instanceof E.SassFormatException) {
  47887. error = t1;
  47888. throw H.wrapException(this._value$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  47889. } else
  47890. throw exception;
  47891. }
  47892. },
  47893. _selectorString$1: function($name) {
  47894. var string = this._selectorStringOrNull$0();
  47895. if (string != null)
  47896. return string;
  47897. throw H.wrapException(this._value$_exception$2(this.toString$0(0) + string$.x20is_no, $name));
  47898. },
  47899. _selectorString$0: function() {
  47900. return this._selectorString$1(null);
  47901. },
  47902. _selectorStringOrNull$0: function() {
  47903. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  47904. if (_this instanceof D.SassString)
  47905. return _this.text;
  47906. if (!(_this instanceof D.SassList))
  47907. return _null;
  47908. t1 = _this._list$_contents;
  47909. t2 = t1.length;
  47910. if (t2 === 0)
  47911. return _null;
  47912. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  47913. t3 = _this.separator === C.ListSeparator_comma;
  47914. if (t3)
  47915. for (_i = 0; _i < t2; ++_i) {
  47916. complex = t1[_i];
  47917. if (complex instanceof D.SassString)
  47918. result.push(complex.text);
  47919. else if (complex instanceof D.SassList && complex.separator === C.ListSeparator_space) {
  47920. string = complex._selectorString$0();
  47921. result.push(string);
  47922. } else
  47923. return _null;
  47924. }
  47925. else
  47926. for (_i = 0; _i < t2; ++_i) {
  47927. compound = t1[_i];
  47928. if (compound instanceof D.SassString)
  47929. result.push(compound.text);
  47930. else
  47931. return _null;
  47932. }
  47933. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  47934. },
  47935. changeListContents$2$separator: function(contents, separator) {
  47936. var t1 = separator == null ? this.get$separator() : separator,
  47937. t2 = this.get$hasBrackets();
  47938. return D.SassList$(contents, t1, t2);
  47939. },
  47940. changeListContents$1: function(contents) {
  47941. return this.changeListContents$2$separator(contents, null);
  47942. },
  47943. greaterThan$1: function(other) {
  47944. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  47945. },
  47946. greaterThanOrEquals$1: function(other) {
  47947. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  47948. },
  47949. lessThan$1: function(other) {
  47950. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  47951. },
  47952. lessThanOrEquals$1: function(other) {
  47953. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  47954. },
  47955. times$1: function(other) {
  47956. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  47957. },
  47958. modulo$1: function(other) {
  47959. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  47960. },
  47961. plus$1: function(other) {
  47962. var t1;
  47963. if (other instanceof D.SassString)
  47964. return new D.SassString(C.JSString_methods.$add(N.serializeValue0(this, false, true), other.text), other.hasQuotes);
  47965. else {
  47966. t1 = N.serializeValue0(this, false, true);
  47967. other.toString;
  47968. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  47969. }
  47970. },
  47971. minus$1: function(other) {
  47972. var t1 = N.serializeValue0(this, false, true) + "-";
  47973. other.toString;
  47974. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  47975. },
  47976. dividedBy$1: function(other) {
  47977. var t1 = N.serializeValue0(this, false, true) + "/";
  47978. other.toString;
  47979. return new D.SassString(t1 + N.serializeValue0(other, false, true), false);
  47980. },
  47981. unaryPlus$0: function() {
  47982. return new D.SassString("+" + N.serializeValue0(this, false, true), false);
  47983. },
  47984. unaryMinus$0: function() {
  47985. return new D.SassString("-" + N.serializeValue0(this, false, true), false);
  47986. },
  47987. unaryNot$0: function() {
  47988. return C.SassBoolean_false0;
  47989. },
  47990. withoutSlash$0: function() {
  47991. return this;
  47992. },
  47993. toString$0: function(_) {
  47994. return N.serializeValue0(this, true, true);
  47995. },
  47996. _value$_exception$2: function(message, $name) {
  47997. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  47998. }
  47999. };
  48000. D.SassArgumentList.prototype = {};
  48001. Z.SassBoolean.prototype = {
  48002. get$isTruthy: function() {
  48003. return this.value;
  48004. },
  48005. accept$1$1: function(visitor) {
  48006. return visitor._serialize$_buffer.write$1(0, String(this.value));
  48007. },
  48008. accept$1: function(visitor) {
  48009. return this.accept$1$1(visitor, type$.dynamic);
  48010. },
  48011. unaryNot$0: function() {
  48012. return this.value ? C.SassBoolean_false0 : C.SassBoolean_true0;
  48013. }
  48014. };
  48015. K.SassColor.prototype = {
  48016. get$red: function() {
  48017. if (this._red == null)
  48018. this._hslToRgb$0();
  48019. return this._red;
  48020. },
  48021. get$green: function() {
  48022. if (this._green == null)
  48023. this._hslToRgb$0();
  48024. return this._green;
  48025. },
  48026. get$blue: function() {
  48027. if (this._blue == null)
  48028. this._hslToRgb$0();
  48029. return this._blue;
  48030. },
  48031. get$hue: function() {
  48032. if (this._hue == null)
  48033. this._rgbToHsl$0();
  48034. return this._hue;
  48035. },
  48036. get$saturation: function() {
  48037. if (this._saturation == null)
  48038. this._rgbToHsl$0();
  48039. return this._saturation;
  48040. },
  48041. get$lightness: function() {
  48042. if (this._lightness == null)
  48043. this._rgbToHsl$0();
  48044. return this._lightness;
  48045. },
  48046. get$whiteness: function() {
  48047. var t1 = this.get$red(),
  48048. t2 = this.get$green();
  48049. return Math.min(Math.min(H.checkNum(t1), H.checkNum(t2)), H.checkNum(this.get$blue())) / 255 * 100;
  48050. },
  48051. get$blackness: function() {
  48052. var t1 = this.get$red(),
  48053. t2 = this.get$green();
  48054. return 100 - Math.max(Math.max(H.checkNum(t1), H.checkNum(t2)), H.checkNum(this.get$blue())) / 255 * 100;
  48055. },
  48056. get$original: function() {
  48057. var t1 = this.originalSpan;
  48058. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  48059. },
  48060. accept$1$1: function(visitor) {
  48061. return visitor.visitColor$1(this);
  48062. },
  48063. accept$1: function(visitor) {
  48064. return this.accept$1$1(visitor, type$.dynamic);
  48065. },
  48066. assertColor$1: function($name) {
  48067. return this;
  48068. },
  48069. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  48070. return K.SassColor$rgb(red, green, blue, alpha == null ? this.alpha : alpha, null);
  48071. },
  48072. changeRgb$3$blue$green$red: function(blue, green, red) {
  48073. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  48074. },
  48075. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  48076. var _this = this,
  48077. t1 = hue == null ? _this.get$hue() : hue,
  48078. t2 = saturation == null ? _this.get$saturation() : saturation,
  48079. t3 = lightness == null ? _this.get$lightness() : lightness;
  48080. return K.SassColor$hsl(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  48081. },
  48082. changeHsl$1$saturation: function(saturation) {
  48083. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  48084. },
  48085. changeHsl$1$lightness: function(lightness) {
  48086. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  48087. },
  48088. changeHsl$1$hue: function(hue) {
  48089. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  48090. },
  48091. changeAlpha$1: function(alpha) {
  48092. var _this = this;
  48093. return new K.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, T.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
  48094. },
  48095. plus$1: function(other) {
  48096. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  48097. return this.super$Value$plus(other);
  48098. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  48099. },
  48100. minus$1: function(other) {
  48101. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  48102. return this.super$Value$minus(other);
  48103. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  48104. },
  48105. dividedBy$1: function(other) {
  48106. if (!(other instanceof T.SassNumber) && !(other instanceof K.SassColor))
  48107. return this.super$Value$dividedBy(other);
  48108. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  48109. },
  48110. modulo$1: function(other) {
  48111. return H.throwExpression(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  48112. },
  48113. $eq: function(_, other) {
  48114. var _this = this;
  48115. if (other == null)
  48116. return false;
  48117. return other instanceof K.SassColor && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  48118. },
  48119. get$hashCode: function(_) {
  48120. var _this = this;
  48121. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  48122. },
  48123. _rgbToHsl$0: function() {
  48124. var t2, t3, _this = this,
  48125. scaledRed = _this.get$red() / 255,
  48126. scaledGreen = _this.get$green() / 255,
  48127. scaledBlue = _this.get$blue() / 255,
  48128. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  48129. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  48130. delta = max - min,
  48131. t1 = max === min;
  48132. if (t1)
  48133. _this._hue = 0;
  48134. else if (max === scaledRed)
  48135. _this._hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  48136. else if (max === scaledGreen)
  48137. _this._hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  48138. else if (max === scaledBlue)
  48139. _this._hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  48140. t2 = max + min;
  48141. t3 = 50 * t2;
  48142. _this._lightness = t3;
  48143. if (t1)
  48144. _this._saturation = 0;
  48145. else {
  48146. t1 = 100 * delta;
  48147. if (t3 < 50)
  48148. _this._saturation = t1 / t2;
  48149. else
  48150. _this._saturation = t1 / (2 - max - min);
  48151. }
  48152. },
  48153. _hslToRgb$0: function() {
  48154. var _this = this,
  48155. scaledHue = _this.get$hue() / 360,
  48156. scaledSaturation = _this.get$saturation() / 100,
  48157. scaledLightness = _this.get$lightness() / 100,
  48158. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  48159. m1 = scaledLightness * 2 - m2;
  48160. _this._red = T.fuzzyRound(K.SassColor__hueToRgb(m1, m2, scaledHue + 0.3333333333333333) * 255);
  48161. _this._green = T.fuzzyRound(K.SassColor__hueToRgb(m1, m2, scaledHue) * 255);
  48162. _this._blue = T.fuzzyRound(K.SassColor__hueToRgb(m1, m2, scaledHue - 0.3333333333333333) * 255);
  48163. }
  48164. };
  48165. K.SassColor_SassColor$hwb_toRgb.prototype = {
  48166. call$1: function(hue) {
  48167. return T.fuzzyRound((K.SassColor__hueToRgb(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
  48168. },
  48169. $signature: 39
  48170. };
  48171. F.SassFunction.prototype = {
  48172. accept$1$1: function(visitor) {
  48173. var t1, t2;
  48174. if (!visitor._serialize$_inspect)
  48175. H.throwExpression(E.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value."));
  48176. t1 = visitor._serialize$_buffer;
  48177. t1.write$1(0, "get-function(");
  48178. t2 = this.callable;
  48179. visitor._visitQuotedString$1(t2.get$name(t2));
  48180. t1.writeCharCode$1(41);
  48181. return null;
  48182. },
  48183. accept$1: function(visitor) {
  48184. return this.accept$1$1(visitor, type$.dynamic);
  48185. },
  48186. assertFunction$1: function($name) {
  48187. return this;
  48188. },
  48189. $eq: function(_, other) {
  48190. if (other == null)
  48191. return false;
  48192. return other instanceof F.SassFunction && J.$eq$(this.callable, other.callable);
  48193. },
  48194. get$hashCode: function(_) {
  48195. return J.get$hashCode$(this.callable);
  48196. }
  48197. };
  48198. D.SassList.prototype = {
  48199. get$isBlank: function() {
  48200. return C.JSArray_methods.every$1(this._list$_contents, new D.SassList_isBlank_closure());
  48201. },
  48202. get$asList: function() {
  48203. return this._list$_contents;
  48204. },
  48205. get$lengthAsList: function() {
  48206. return this._list$_contents.length;
  48207. },
  48208. SassList$3$brackets: function(contents, separator, brackets) {
  48209. if (this.separator === C.ListSeparator_undecided && this._list$_contents.length > 1)
  48210. throw H.wrapException(P.ArgumentError$(string$.A_list));
  48211. },
  48212. accept$1$1: function(visitor) {
  48213. return visitor.visitList$1(this);
  48214. },
  48215. accept$1: function(visitor) {
  48216. return this.accept$1$1(visitor, type$.dynamic);
  48217. },
  48218. assertMap$1: function($name) {
  48219. return this._list$_contents.length === 0 ? C.SassMap_Map_empty : this.super$Value$assertMap($name);
  48220. },
  48221. tryMap$0: function() {
  48222. return this._list$_contents.length === 0 ? C.SassMap_Map_empty : null;
  48223. },
  48224. $eq: function(_, other) {
  48225. var t1, _this = this;
  48226. if (other == null)
  48227. return false;
  48228. if (!(other instanceof D.SassList && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(0, other._list$_contents, _this._list$_contents)))
  48229. t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
  48230. else
  48231. t1 = true;
  48232. return t1;
  48233. },
  48234. get$hashCode: function(_) {
  48235. return C.C_ListEquality.hash$1(this._list$_contents);
  48236. },
  48237. get$separator: function() {
  48238. return this.separator;
  48239. },
  48240. get$hasBrackets: function() {
  48241. return this.hasBrackets;
  48242. }
  48243. };
  48244. D.SassList_isBlank_closure.prototype = {
  48245. call$1: function(element) {
  48246. return element.get$isBlank();
  48247. },
  48248. $signature: 53
  48249. };
  48250. D.ListSeparator.prototype = {
  48251. toString$0: function(_) {
  48252. return this._list$_name;
  48253. }
  48254. };
  48255. A.SassMap.prototype = {
  48256. get$separator: function() {
  48257. var t1 = this.contents;
  48258. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided : C.ListSeparator_comma;
  48259. },
  48260. get$asList: function() {
  48261. var result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  48262. this.contents.forEach$1(0, new A.SassMap_asList_closure(result));
  48263. return result;
  48264. },
  48265. get$lengthAsList: function() {
  48266. var t1 = this.contents;
  48267. return t1.get$length(t1);
  48268. },
  48269. accept$1$1: function(visitor) {
  48270. return visitor.visitMap$1(this);
  48271. },
  48272. accept$1: function(visitor) {
  48273. return this.accept$1$1(visitor, type$.dynamic);
  48274. },
  48275. assertMap$1: function($name) {
  48276. return this;
  48277. },
  48278. tryMap$0: function() {
  48279. return this;
  48280. },
  48281. $eq: function(_, other) {
  48282. var t1;
  48283. if (other == null)
  48284. return false;
  48285. if (!(other instanceof A.SassMap && C.C_MapEquality.equals$2(0, other.contents, this.contents))) {
  48286. t1 = this.contents;
  48287. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList && other._list$_contents.length === 0;
  48288. } else
  48289. t1 = true;
  48290. return t1;
  48291. },
  48292. get$hashCode: function(_) {
  48293. var t1 = this.contents;
  48294. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty5) : C.C_MapEquality.hash$1(t1);
  48295. }
  48296. };
  48297. A.SassMap_asList_closure.prototype = {
  48298. call$2: function(key, value) {
  48299. this.result.push(D.SassList$(H.setRuntimeTypeInfo([key, value], type$.JSArray_legacy_Value), C.ListSeparator_space, false));
  48300. },
  48301. $signature: 46
  48302. };
  48303. O.SassNull.prototype = {
  48304. get$isTruthy: function() {
  48305. return false;
  48306. },
  48307. get$isBlank: function() {
  48308. return true;
  48309. },
  48310. get$realNull: function() {
  48311. return null;
  48312. },
  48313. accept$1$1: function(visitor) {
  48314. if (visitor._serialize$_inspect)
  48315. visitor._serialize$_buffer.write$1(0, "null");
  48316. return null;
  48317. },
  48318. accept$1: function(visitor) {
  48319. return this.accept$1$1(visitor, type$.dynamic);
  48320. },
  48321. unaryNot$0: function() {
  48322. return C.SassBoolean_true0;
  48323. }
  48324. };
  48325. T.SassNumber.prototype = {
  48326. get$unitString: function() {
  48327. var _this = this,
  48328. t1 = _this.numeratorUnits;
  48329. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._unitString$2(t1, _this.denominatorUnits) : "";
  48330. },
  48331. accept$1$1: function(visitor) {
  48332. return visitor.visitNumber$1(this);
  48333. },
  48334. accept$1: function(visitor) {
  48335. return this.accept$1$1(visitor, type$.dynamic);
  48336. },
  48337. withoutSlash$0: function() {
  48338. var _this = this;
  48339. if (_this.asSlash == null)
  48340. return _this;
  48341. return new T.SassNumber(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  48342. },
  48343. withSlash$2: function(numerator, denominator) {
  48344. return new T.SassNumber(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_of_legacy_SassNumber_and_legacy_SassNumber));
  48345. },
  48346. assertNumber$1: function($name) {
  48347. return this;
  48348. },
  48349. assertNumber$0: function() {
  48350. return this.assertNumber$1(null);
  48351. },
  48352. assertInt$1: function($name) {
  48353. var t1 = this.value,
  48354. integer = T.fuzzyIsInt(t1) ? J.round$0$n(t1) : null;
  48355. if (integer != null)
  48356. return integer;
  48357. throw H.wrapException(this._number$_exception$2(this.toString$0(0) + " is not an int.", $name));
  48358. },
  48359. assertInt$0: function() {
  48360. return this.assertInt$1(null);
  48361. },
  48362. valueInRange$3: function(min, max, $name) {
  48363. var _this = this,
  48364. result = T.fuzzyCheckRange(_this.value, min, max);
  48365. if (result != null)
  48366. return result;
  48367. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  48368. },
  48369. hasUnit$1: function(unit) {
  48370. var t1 = this.numeratorUnits;
  48371. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  48372. },
  48373. compatibleWithUnit$1: function(unit) {
  48374. var t1, t2;
  48375. if (this.denominatorUnits.length !== 0)
  48376. return false;
  48377. t1 = this.numeratorUnits;
  48378. t2 = t1.length;
  48379. if (t2 === 0)
  48380. return true;
  48381. return t2 === 1 && this._conversionFactor$2(C.JSArray_methods.get$first(t1), unit) != null;
  48382. },
  48383. assertUnit$2: function(unit, $name) {
  48384. if (this.hasUnit$1(unit))
  48385. return;
  48386. throw H.wrapException(this._number$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  48387. },
  48388. assertNoUnits$1: function($name) {
  48389. var _this = this;
  48390. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  48391. return;
  48392. throw H.wrapException(_this._number$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  48393. },
  48394. coerceValueToMatch$1: function(other) {
  48395. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.numeratorUnits, other.denominatorUnits, true, null, other, null);
  48396. },
  48397. convertValueToMatch$3: function(other, $name, otherName) {
  48398. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.numeratorUnits, other.denominatorUnits, false, $name, other, otherName);
  48399. },
  48400. coerce$2: function(newNumerators, newDenominators) {
  48401. return T.SassNumber$withUnits(this._coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, null), newDenominators, newNumerators);
  48402. },
  48403. _coerceOrConvertValue$6$coerceUnitless$name$other$otherName: function(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  48404. var otherHasUnits, t2, _compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {},
  48405. t1 = _this.numeratorUnits;
  48406. if (C.C_ListEquality.equals$2(0, t1, newNumerators) && C.C_ListEquality.equals$2(0, _this.denominatorUnits, newDenominators))
  48407. return _this.value;
  48408. otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0;
  48409. if (coerceUnitless)
  48410. t2 = !(t1.length !== 0 || _this.denominatorUnits.length !== 0) || !otherHasUnits;
  48411. else
  48412. t2 = false;
  48413. if (t2)
  48414. return _this.value;
  48415. _compatibilityException = new T.SassNumber__coerceOrConvertValue__compatibilityException(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  48416. _box_0.value = _this.value;
  48417. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  48418. for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  48419. B.removeFirstWhere(oldNumerators, new T.SassNumber__coerceOrConvertValue_closure(_box_0, _this, newNumerators[_i]), new T.SassNumber__coerceOrConvertValue_closure0(_compatibilityException));
  48420. t1 = _this.denominatorUnits;
  48421. oldDenominators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  48422. for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  48423. B.removeFirstWhere(oldDenominators, new T.SassNumber__coerceOrConvertValue_closure1(_box_0, _this, newDenominators[_i]), new T.SassNumber__coerceOrConvertValue_closure2(_compatibilityException));
  48424. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  48425. throw H.wrapException(_compatibilityException.call$0());
  48426. return _box_0.value;
  48427. },
  48428. _coerceOrConvertValue$4$coerceUnitless$name: function(newNumerators, newDenominators, coerceUnitless, $name) {
  48429. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  48430. },
  48431. isComparableTo$1: function(other) {
  48432. var t1, exception;
  48433. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  48434. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  48435. else
  48436. t1 = true;
  48437. if (t1)
  48438. return true;
  48439. try {
  48440. this.greaterThan$1(other);
  48441. return true;
  48442. } catch (exception) {
  48443. if (H.unwrapException(exception) instanceof E.SassScriptException)
  48444. return false;
  48445. else
  48446. throw exception;
  48447. }
  48448. },
  48449. greaterThan$1: function(other) {
  48450. if (other instanceof T.SassNumber)
  48451. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  48452. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  48453. },
  48454. greaterThanOrEquals$1: function(other) {
  48455. if (other instanceof T.SassNumber)
  48456. return this._coerceUnits$2(other, T.number0__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  48457. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  48458. },
  48459. lessThan$1: function(other) {
  48460. if (other instanceof T.SassNumber)
  48461. return this._coerceUnits$2(other, T.number0__fuzzyLessThan$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  48462. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  48463. },
  48464. lessThanOrEquals$1: function(other) {
  48465. if (other instanceof T.SassNumber)
  48466. return this._coerceUnits$2(other, T.number0__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  48467. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  48468. },
  48469. modulo$1: function(other) {
  48470. if (other instanceof T.SassNumber)
  48471. return this._coerceNumber$2(other, new T.SassNumber_modulo_closure());
  48472. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  48473. },
  48474. plus$1: function(other) {
  48475. if (other instanceof T.SassNumber)
  48476. return this._coerceNumber$2(other, new T.SassNumber_plus_closure());
  48477. if (!(other instanceof K.SassColor))
  48478. return this.super$Value$plus(other);
  48479. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  48480. },
  48481. minus$1: function(other) {
  48482. if (other instanceof T.SassNumber)
  48483. return this._coerceNumber$2(other, new T.SassNumber_minus_closure());
  48484. if (!(other instanceof K.SassColor))
  48485. return this.super$Value$minus(other);
  48486. throw H.wrapException(E.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  48487. },
  48488. times$1: function(other) {
  48489. var _this = this;
  48490. if (other instanceof T.SassNumber)
  48491. return _this._multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  48492. throw H.wrapException(E.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  48493. },
  48494. dividedBy$1: function(other) {
  48495. var _this = this;
  48496. if (other instanceof T.SassNumber)
  48497. return _this._multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  48498. return _this.super$Value$dividedBy(other);
  48499. },
  48500. unaryPlus$0: function() {
  48501. return this;
  48502. },
  48503. unaryMinus$0: function() {
  48504. return T.SassNumber$withUnits(-this.value, this.denominatorUnits, this.numeratorUnits);
  48505. },
  48506. _coerceNumber$2: function(other, operation) {
  48507. var _this = this,
  48508. result = _this._coerceUnits$2(other, operation),
  48509. t1 = _this.numeratorUnits,
  48510. t2 = t1.length === 0;
  48511. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  48512. return T.SassNumber$withUnits(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  48513. },
  48514. _coerceUnits$1$2: function(other, operation) {
  48515. var num1, exception, _this = this, num2 = null;
  48516. if (_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0) {
  48517. num1 = _this.value;
  48518. try {
  48519. num2 = other.coerceValueToMatch$1(_this);
  48520. } catch (exception) {
  48521. if (H.unwrapException(exception) instanceof E.SassScriptException) {
  48522. _this.coerceValueToMatch$1(other);
  48523. throw exception;
  48524. } else
  48525. throw exception;
  48526. }
  48527. } else {
  48528. num1 = _this.coerceValueToMatch$1(other);
  48529. num2 = other.value;
  48530. }
  48531. return operation.call$2(num1, num2);
  48532. },
  48533. _coerceUnits$2: function(other, operation) {
  48534. return this._coerceUnits$1$2(other, operation, type$.dynamic);
  48535. },
  48536. _multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  48537. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  48538. _box_0.value = value;
  48539. t1 = numerators1.length;
  48540. if (t1 === 0) {
  48541. if (denominators2.length === 0 && !_this._areAnyConvertible$2(denominators1, numerators2))
  48542. return T.SassNumber$withUnits(value, denominators1, numerators2);
  48543. else if (denominators1.length === 0)
  48544. return T.SassNumber$withUnits(value, denominators2, numerators2);
  48545. } else if (numerators2.length === 0)
  48546. if (denominators2.length === 0)
  48547. return T.SassNumber$withUnits(value, denominators2, numerators1);
  48548. else if (denominators1.length === 0 && !_this._areAnyConvertible$2(numerators1, denominators2))
  48549. return T.SassNumber$withUnits(value, denominators2, numerators1);
  48550. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  48551. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  48552. for (_i = 0; _i < t1; ++_i) {
  48553. numerator = numerators1[_i];
  48554. B.removeFirstWhere(mutableDenominators2, new T.SassNumber__multiplyUnits_closure(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure0(newNumerators, numerator));
  48555. }
  48556. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  48557. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  48558. numerator = numerators2[_i];
  48559. B.removeFirstWhere(mutableDenominators1, new T.SassNumber__multiplyUnits_closure1(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure2(newNumerators, numerator));
  48560. }
  48561. t1 = _box_0.value;
  48562. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  48563. return T.SassNumber$withUnits(t1, mutableDenominators1, newNumerators);
  48564. },
  48565. _areAnyConvertible$2: function(units1, units2) {
  48566. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure(this, units2));
  48567. },
  48568. _conversionFactor$2: function(unit1, unit2) {
  48569. var innerMap;
  48570. if (unit1 == unit2)
  48571. return 1;
  48572. innerMap = C.Map_K2BWj.$index(0, unit1);
  48573. if (innerMap == null)
  48574. return null;
  48575. return innerMap.$index(0, unit2);
  48576. },
  48577. _unitString$2: function(numerators, denominators) {
  48578. var t1;
  48579. if (numerators.length === 0) {
  48580. t1 = denominators.length;
  48581. if (t1 === 0)
  48582. return "no units";
  48583. if (t1 === 1)
  48584. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  48585. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  48586. }
  48587. if (denominators.length === 0)
  48588. return C.JSArray_methods.join$1(numerators, "*");
  48589. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  48590. },
  48591. $eq: function(_, other) {
  48592. var t1, t2, t3, exception, _this = this;
  48593. if (other == null)
  48594. return false;
  48595. other = other;
  48596. if (other instanceof T.SassNumber) {
  48597. t1 = _this.numeratorUnits.length === 0;
  48598. t2 = !t1 || _this.denominatorUnits.length !== 0;
  48599. t3 = other;
  48600. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  48601. return false;
  48602. if (!(!t1 || _this.denominatorUnits.length !== 0))
  48603. return Math.abs(_this.value - other.value) < $.$get$epsilon();
  48604. try {
  48605. t1 = _this._coerceUnits$2(other, T.number0__fuzzyEquals$closure());
  48606. return t1;
  48607. } catch (exception) {
  48608. if (H.unwrapException(exception) instanceof E.SassScriptException)
  48609. return false;
  48610. else
  48611. throw exception;
  48612. }
  48613. } else
  48614. return false;
  48615. },
  48616. get$hashCode: function(_) {
  48617. var _this = this,
  48618. t1 = _this.value * _this._canonicalMultiplier$1(_this.numeratorUnits) / _this._canonicalMultiplier$1(_this.denominatorUnits);
  48619. return t1 == 1 / 0 || t1 == -1 / 0 || isNaN(t1) ? C.JSDouble_methods.get$hashCode(t1) : C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(t1 * $.$get$_inverseEpsilon()));
  48620. },
  48621. _canonicalMultiplier$1: function(units) {
  48622. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure());
  48623. },
  48624. _number$_exception$2: function(message, $name) {
  48625. return new E.SassScriptException($name == null ? message : "$" + $name + ": " + message);
  48626. }
  48627. };
  48628. T.SassNumber__coerceOrConvertValue__compatibilityException.prototype = {
  48629. call$0: function() {
  48630. var t2, t3, message, t4, type, unit, _this = this,
  48631. t1 = _this.other;
  48632. if (t1 != null) {
  48633. t2 = _this.$this;
  48634. t3 = t2.toString$0(0) + " and";
  48635. message = new P.StringBuffer(t3);
  48636. t4 = _this.otherName;
  48637. if (t4 != null)
  48638. t3 = message._contents = t3 + (" $" + t4 + ":");
  48639. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  48640. message._contents = t1;
  48641. if (!(t2.numeratorUnits.length !== 0 || t2.denominatorUnits.length !== 0) || !_this.otherHasUnits)
  48642. message._contents = t1 + " (one has units and the other doesn't)";
  48643. t1 = message.toString$0(0) + ".";
  48644. t2 = _this.name;
  48645. return new E.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  48646. } else if (!_this.otherHasUnits) {
  48647. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  48648. t2 = _this.name;
  48649. return new E.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  48650. } else {
  48651. t1 = _this.newNumerators;
  48652. if (t1.length === 1 && _this.newDenominators.length === 0) {
  48653. type = $.$get$_typesByUnit().$index(0, C.JSArray_methods.get$first(t1));
  48654. if (type != null) {
  48655. t1 = "Expected " + _this.$this.toString$0(0) + " to have ";
  48656. t1 = t1 + (C.JSArray_methods.contains$1(H.setRuntimeTypeInfo([97, 101, 105, 111, 117], type$.JSArray_legacy_int), C.JSString_methods._codeUnitAt$1(type, 0)) ? "an " + type : "a " + type) + " unit (";
  48657. t2 = C.Map_U8AHF.$index(0, type);
  48658. t2 = t1 + (t2 && C.JSArray_methods).join$1(t2, ", ") + ").";
  48659. t1 = _this.name;
  48660. return new E.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2);
  48661. }
  48662. }
  48663. t2 = _this.newDenominators;
  48664. unit = B.pluralize("unit", t1.length + t2.length, null);
  48665. t3 = _this.$this;
  48666. t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._unitString$2(t1, t2) + ".";
  48667. t1 = _this.name;
  48668. return new E.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2);
  48669. }
  48670. },
  48671. $signature: 219
  48672. };
  48673. T.SassNumber__coerceOrConvertValue_closure.prototype = {
  48674. call$1: function(oldNumerator) {
  48675. var t1,
  48676. factor = this.$this._conversionFactor$2(this.newNumerator, oldNumerator);
  48677. if (factor == null)
  48678. return false;
  48679. t1 = this._box_0;
  48680. t1.value = t1.value * factor;
  48681. return true;
  48682. },
  48683. $signature: 5
  48684. };
  48685. T.SassNumber__coerceOrConvertValue_closure0.prototype = {
  48686. call$0: function() {
  48687. return H.throwExpression(this._compatibilityException.call$0());
  48688. },
  48689. $signature: 0
  48690. };
  48691. T.SassNumber__coerceOrConvertValue_closure1.prototype = {
  48692. call$1: function(oldDenominator) {
  48693. var t1,
  48694. factor = this.$this._conversionFactor$2(this.newDenominator, oldDenominator);
  48695. if (factor == null)
  48696. return false;
  48697. t1 = this._box_0;
  48698. t1.value = t1.value / factor;
  48699. return true;
  48700. },
  48701. $signature: 5
  48702. };
  48703. T.SassNumber__coerceOrConvertValue_closure2.prototype = {
  48704. call$0: function() {
  48705. return H.throwExpression(this._compatibilityException.call$0());
  48706. },
  48707. $signature: 0
  48708. };
  48709. T.SassNumber_modulo_closure.prototype = {
  48710. call$2: function(num1, num2) {
  48711. var t1;
  48712. if (num2 > 0)
  48713. return C.JSNumber_methods.$mod(num1, num2);
  48714. if (num2 === 0)
  48715. return 0 / 0;
  48716. t1 = C.JSNumber_methods.$mod(num1, num2);
  48717. return t1 === 0 ? 0 : t1 + num2;
  48718. },
  48719. $signature: 50
  48720. };
  48721. T.SassNumber_plus_closure.prototype = {
  48722. call$2: function(num1, num2) {
  48723. return num1 + num2;
  48724. },
  48725. $signature: 50
  48726. };
  48727. T.SassNumber_minus_closure.prototype = {
  48728. call$2: function(num1, num2) {
  48729. return num1 - num2;
  48730. },
  48731. $signature: 50
  48732. };
  48733. T.SassNumber__multiplyUnits_closure.prototype = {
  48734. call$1: function(denominator) {
  48735. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  48736. if (factor == null)
  48737. return false;
  48738. this._box_0.value /= factor;
  48739. return true;
  48740. },
  48741. $signature: 5
  48742. };
  48743. T.SassNumber__multiplyUnits_closure0.prototype = {
  48744. call$0: function() {
  48745. this.newNumerators.push(this.numerator);
  48746. return null;
  48747. },
  48748. $signature: 0
  48749. };
  48750. T.SassNumber__multiplyUnits_closure1.prototype = {
  48751. call$1: function(denominator) {
  48752. var factor = this.$this._conversionFactor$2(this.numerator, denominator);
  48753. if (factor == null)
  48754. return false;
  48755. this._box_0.value /= factor;
  48756. return true;
  48757. },
  48758. $signature: 5
  48759. };
  48760. T.SassNumber__multiplyUnits_closure2.prototype = {
  48761. call$0: function() {
  48762. this.newNumerators.push(this.numerator);
  48763. return null;
  48764. },
  48765. $signature: 0
  48766. };
  48767. T.SassNumber__areAnyConvertible_closure.prototype = {
  48768. call$1: function(unit1) {
  48769. if (!C.Map_K2BWj.containsKey$1(unit1))
  48770. return C.JSArray_methods.contains$1(this.units2, unit1);
  48771. return C.JSArray_methods.any$1(this.units2, C.Map_K2BWj.$index(0, unit1).get$containsKey());
  48772. },
  48773. $signature: 5
  48774. };
  48775. T.SassNumber__canonicalMultiplier_closure.prototype = {
  48776. call$2: function(multiplier, unit) {
  48777. var t1,
  48778. innerMap = C.Map_K2BWj.$index(0, unit);
  48779. if (innerMap == null)
  48780. t1 = multiplier;
  48781. else {
  48782. t1 = innerMap.get$values(innerMap);
  48783. t1 = multiplier / t1.get$first(t1);
  48784. }
  48785. return t1;
  48786. },
  48787. $signature: 211
  48788. };
  48789. D.SassString.prototype = {
  48790. get$sassLength: function() {
  48791. var t1 = this._sassLength;
  48792. if (t1 == null) {
  48793. t1 = this.text;
  48794. t1.toString;
  48795. t1 = new P.Runes(t1);
  48796. t1 = this._sassLength = t1.get$length(t1);
  48797. }
  48798. return t1;
  48799. },
  48800. get$isSpecialNumber: function() {
  48801. var t1, t2;
  48802. if (this.hasQuotes)
  48803. return false;
  48804. t1 = this.text;
  48805. if (t1.length < 6)
  48806. return false;
  48807. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  48808. if (t2 === 99) {
  48809. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  48810. if (t2 === 108) {
  48811. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 97)
  48812. return false;
  48813. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 109)
  48814. return false;
  48815. if ((C.JSString_methods._codeUnitAt$1(t1, 4) | 32) !== 112)
  48816. return false;
  48817. return C.JSString_methods._codeUnitAt$1(t1, 5) === 40;
  48818. } else if (t2 === 97) {
  48819. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  48820. return false;
  48821. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  48822. return false;
  48823. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  48824. } else
  48825. return false;
  48826. } else if (t2 === 118) {
  48827. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  48828. return false;
  48829. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  48830. return false;
  48831. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  48832. } else if (t2 === 101) {
  48833. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  48834. return false;
  48835. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  48836. return false;
  48837. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  48838. } else if (t2 === 109) {
  48839. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  48840. if (t2 === 97) {
  48841. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  48842. return false;
  48843. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  48844. } else if (t2 === 105) {
  48845. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  48846. return false;
  48847. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  48848. } else
  48849. return false;
  48850. } else
  48851. return false;
  48852. },
  48853. get$isVar: function() {
  48854. if (this.hasQuotes)
  48855. return false;
  48856. var t1 = this.text;
  48857. if (t1.length < 8)
  48858. return false;
  48859. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  48860. },
  48861. get$isBlank: function() {
  48862. return !this.hasQuotes && this.text.length === 0;
  48863. },
  48864. accept$1$1: function(visitor) {
  48865. var t1 = visitor._quote && this.hasQuotes,
  48866. t2 = this.text;
  48867. if (t1)
  48868. visitor._visitQuotedString$1(t2);
  48869. else
  48870. visitor._visitUnquotedString$1(t2);
  48871. return null;
  48872. },
  48873. accept$1: function(visitor) {
  48874. return this.accept$1$1(visitor, type$.dynamic);
  48875. },
  48876. assertString$1: function($name) {
  48877. return this;
  48878. },
  48879. plus$1: function(other) {
  48880. var t1 = this.text,
  48881. t2 = this.hasQuotes;
  48882. if (other instanceof D.SassString)
  48883. return new D.SassString(J.$add$ansx(t1, other.text), t2);
  48884. else {
  48885. other.toString;
  48886. return new D.SassString(J.$add$ansx(t1, N.serializeValue0(other, false, true)), t2);
  48887. }
  48888. },
  48889. $eq: function(_, other) {
  48890. if (other == null)
  48891. return false;
  48892. return other instanceof D.SassString && this.text == other.text;
  48893. },
  48894. get$hashCode: function(_) {
  48895. return J.get$hashCode$(this.text);
  48896. }
  48897. };
  48898. E._EvaluateVisitor0.prototype = {
  48899. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap0: function(functions, importCache, logger, nodeImporter, sourceMap) {
  48900. var t2, cur, _i, metaModule, t3, module, $function, t4, _this = this,
  48901. _s20_ = "$name, $module: null",
  48902. _s9_ = "sass:meta",
  48903. metaFunctions = [Q.BuiltInCallable$function("global-variable-exists", _s20_, new E._EvaluateVisitor_closure9(_this), _s9_), Q.BuiltInCallable$function("variable-exists", "$name", new E._EvaluateVisitor_closure10(_this), _s9_), Q.BuiltInCallable$function("function-exists", _s20_, new E._EvaluateVisitor_closure11(_this), _s9_), Q.BuiltInCallable$function("mixin-exists", _s20_, new E._EvaluateVisitor_closure12(_this), _s9_), Q.BuiltInCallable$function("content-exists", "", new E._EvaluateVisitor_closure13(_this), _s9_), Q.BuiltInCallable$function("module-variables", "$module", new E._EvaluateVisitor_closure14(_this), _s9_), Q.BuiltInCallable$function("module-functions", "$module", new E._EvaluateVisitor_closure15(_this), _s9_), Q.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new E._EvaluateVisitor_closure16(_this), _s9_), new S.AsyncBuiltInCallable("call", L.ScssParser$("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure17(_this))],
  48904. t1 = type$.JSArray_legacy_AsyncBuiltInCallable,
  48905. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin("load-css", "$url, $with: null", new E._EvaluateVisitor_closure18(_this), _s9_)], t1);
  48906. t1 = H.setRuntimeTypeInfo([], t1);
  48907. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  48908. cur = t2.__internal$_current;
  48909. t1.push(cur);
  48910. }
  48911. for (_i = 0; _i < 9; ++_i)
  48912. t1.push(metaFunctions[_i]);
  48913. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.legacy_AsyncBuiltInCallable);
  48914. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable);
  48915. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  48916. cur = t2.__internal$_current;
  48917. t1.push(cur);
  48918. }
  48919. t1.push(metaModule);
  48920. t2 = t1.length;
  48921. t3 = _this._async_evaluate$_builtInModules;
  48922. _i = 0;
  48923. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  48924. module = t1[_i];
  48925. t3.$indexSet(0, module.url, module);
  48926. }
  48927. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable_2);
  48928. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  48929. cur = t2.__internal$_current;
  48930. t1.push(cur);
  48931. }
  48932. for (_i = 0; _i < 9; ++_i)
  48933. t1.push(metaFunctions[_i]);
  48934. for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  48935. $function = t1[_i];
  48936. t4 = $function.get$name($function);
  48937. t4.toString;
  48938. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  48939. }
  48940. },
  48941. run$2: function(_, importer, node) {
  48942. return this.run$body$_EvaluateVisitor(_, importer, node);
  48943. },
  48944. run$body$_EvaluateVisitor: function(_, importer, node) {
  48945. var $async$goto = 0,
  48946. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult),
  48947. $async$returnValue, $async$self = this;
  48948. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48949. if ($async$errorCode === 1)
  48950. return P._asyncRethrow($async$result, $async$completer);
  48951. while (true)
  48952. switch ($async$goto) {
  48953. case 0:
  48954. // Function start
  48955. $async$returnValue = $async$self._async_evaluate$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure0($async$self, node, importer), type$.legacy_FutureOr_legacy_EvaluateResult);
  48956. // goto return
  48957. $async$goto = 1;
  48958. break;
  48959. case 1:
  48960. // return
  48961. return P._asyncReturn($async$returnValue, $async$completer);
  48962. }
  48963. });
  48964. return P._asyncStartSync($async$run$2, $async$completer);
  48965. },
  48966. _async_evaluate$_withWarnCallback$1$1: function(callback, $T) {
  48967. return N.withWarnCallback(new E._EvaluateVisitor__withWarnCallback_closure0(this), callback, $T._eval$1("0*"));
  48968. },
  48969. _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  48970. return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  48971. },
  48972. _async_evaluate$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  48973. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  48974. },
  48975. _async_evaluate$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  48976. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  48977. },
  48978. _loadModule$body$_EvaluateVisitor: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  48979. var $async$goto = 0,
  48980. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  48981. $async$returnValue, $async$self = this, t1, builtInModule;
  48982. var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  48983. if ($async$errorCode === 1)
  48984. return P._asyncRethrow($async$result, $async$completer);
  48985. while (true)
  48986. switch ($async$goto) {
  48987. case 0:
  48988. // Function start
  48989. builtInModule = $async$self._async_evaluate$_builtInModules.$index(0, url);
  48990. if (builtInModule != null) {
  48991. if (configuration != null && !configuration.isImplicit) {
  48992. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  48993. throw H.wrapException($async$self._async_evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  48994. }
  48995. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__loadModule_closure1(callback, builtInModule));
  48996. // goto return
  48997. $async$goto = 1;
  48998. break;
  48999. }
  49000. $async$goto = 3;
  49001. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  49002. case 3:
  49003. // returning from await.
  49004. case 1:
  49005. // return
  49006. return P._asyncReturn($async$returnValue, $async$completer);
  49007. }
  49008. });
  49009. return P._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  49010. },
  49011. _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  49012. return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  49013. },
  49014. _async_evaluate$_execute$2: function(importer, stylesheet) {
  49015. return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  49016. },
  49017. _execute$body$_EvaluateVisitor: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  49018. var $async$goto = 0,
  49019. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Module_legacy_AsyncCallable),
  49020. $async$returnValue, $async$self = this, message, existingNode, environment, extender, module, t1, url, t2, alreadyLoaded;
  49021. var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49022. if ($async$errorCode === 1)
  49023. return P._asyncRethrow($async$result, $async$completer);
  49024. while (true)
  49025. switch ($async$goto) {
  49026. case 0:
  49027. // Function start
  49028. t1 = {};
  49029. url = stylesheet.span.file.url;
  49030. t2 = $async$self._async_evaluate$_modules;
  49031. alreadyLoaded = t2.$index(0, url);
  49032. if (alreadyLoaded != null) {
  49033. t1 = configuration == null;
  49034. if (!(t1 ? $async$self._async_evaluate$_configuration : configuration).isImplicit) {
  49035. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  49036. existingNode = $async$self._async_evaluate$_moduleNodes.$index(0, url);
  49037. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  49038. if (existingNode != null)
  49039. t2.$indexSet(0, existingNode.get$span(), "original load");
  49040. if (t1)
  49041. t2.$indexSet(0, $async$self._async_evaluate$_configuration.nodeWithSpan.get$span(), "configuration");
  49042. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t2));
  49043. }
  49044. $async$returnValue = alreadyLoaded;
  49045. // goto return
  49046. $async$goto = 1;
  49047. break;
  49048. }
  49049. environment = Q.AsyncEnvironment$($async$self._async_evaluate$_sourceMap);
  49050. t1.css = null;
  49051. extender = F.Extender$();
  49052. $async$goto = 3;
  49053. return P._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure0(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
  49054. case 3:
  49055. // returning from await.
  49056. module = Q._EnvironmentModule__EnvironmentModule0(environment, t1.css, extender, environment._async_environment$_forwardedModules);
  49057. t2.$indexSet(0, url, module);
  49058. $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  49059. $async$returnValue = module;
  49060. // goto return
  49061. $async$goto = 1;
  49062. break;
  49063. case 1:
  49064. // return
  49065. return P._asyncReturn($async$returnValue, $async$completer);
  49066. }
  49067. });
  49068. return P._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  49069. },
  49070. _async_evaluate$_addOutOfOrderImports$0: function() {
  49071. var t1, statements, _this = this;
  49072. if (_this._async_evaluate$_outOfOrderImports == null)
  49073. return _this._async_evaluate$_root.children;
  49074. t1 = new Array(J.get$length$asx(_this._async_evaluate$_root.children._collection$_source) + _this._async_evaluate$_outOfOrderImports.length);
  49075. t1.fixed$length = Array;
  49076. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode), type$.FixedLengthListBuilder_legacy_ModifiableCssNode);
  49077. statements.addRange$3(_this._async_evaluate$_root.children, 0, _this._async_evaluate$_endOfImports);
  49078. statements.addAll$1(0, _this._async_evaluate$_outOfOrderImports);
  49079. statements.addRange$2(_this._async_evaluate$_root.children, _this._async_evaluate$_endOfImports);
  49080. return statements.build$0();
  49081. },
  49082. _async_evaluate$_combineCss$2$clone: function(root, clone) {
  49083. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, t2, statements, index, _this = this;
  49084. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure2())) {
  49085. selectors = root.get$extender().get$simpleSelectors();
  49086. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure3(selectors)));
  49087. if (unsatisfiedExtension != null)
  49088. _this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  49089. return root.get$css(root);
  49090. }
  49091. sortedModules = _this._async_evaluate$_topologicalModules$1(root);
  49092. if (clone) {
  49093. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<AsyncCallable*>*>");
  49094. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure4(), t1), true, t1._eval$1("ListIterable.E"));
  49095. }
  49096. _this._async_evaluate$_extendModules$1(sortedModules);
  49097. t1 = type$.JSArray_legacy_CssNode;
  49098. imports = H.setRuntimeTypeInfo([], t1);
  49099. css = H.setRuntimeTypeInfo([], t1);
  49100. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  49101. cur = t1.__internal$_current;
  49102. t2 = cur.get$css(cur);
  49103. statements = t2.get$children(t2);
  49104. index = _this._async_evaluate$_indexAfterImports$1(statements);
  49105. t2 = J.getInterceptor$ax(statements);
  49106. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  49107. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  49108. }
  49109. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode), root.get$css(root).get$span());
  49110. },
  49111. _async_evaluate$_combineCss$1: function(root) {
  49112. return this._async_evaluate$_combineCss$2$clone(root, false);
  49113. },
  49114. _async_evaluate$_extendModules$1: function(sortedModules) {
  49115. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  49116. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender),
  49117. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension);
  49118. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  49119. t2 = t1.get$current(t1);
  49120. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  49121. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure1(originalSelectors)));
  49122. extenders = downstreamExtenders.$index(0, t2.get$url());
  49123. if (extenders != null)
  49124. t2.get$extender().addExtensions$1(extenders);
  49125. t3 = t2.get$extender();
  49126. if (t3.get$isEmpty(t3))
  49127. continue;
  49128. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  49129. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure2()), t2.get$extender());
  49130. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  49131. }
  49132. if (unsatisfiedExtensions._collection$_length !== 0)
  49133. this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  49134. },
  49135. _async_evaluate$_throwForUnsatisfiedExtension$1: function(extension) {
  49136. throw H.wrapException(E.SassException$(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  49137. },
  49138. _async_evaluate$_topologicalModules$1: function(root) {
  49139. var t1 = type$.legacy_Module_legacy_AsyncCallable,
  49140. sorted = Q.QueueList$(null, t1);
  49141. new E._EvaluateVisitor__topologicalModules_visitModule0(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  49142. return sorted;
  49143. },
  49144. _async_evaluate$_indexAfterImports$1: function(statements) {
  49145. var t1, t2, t3, lastImport, i, statement;
  49146. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment, t3 = type$.legacy_CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  49147. statement = t1.$index(statements, i);
  49148. if (t3._is(statement))
  49149. lastImport = i;
  49150. else if (!t2._is(statement))
  49151. break;
  49152. }
  49153. return lastImport + 1;
  49154. },
  49155. visitStylesheet$1: function(node) {
  49156. return this.visitStylesheet$body$_EvaluateVisitor(node);
  49157. },
  49158. visitStylesheet$body$_EvaluateVisitor: function(node) {
  49159. var $async$goto = 0,
  49160. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49161. $async$returnValue, $async$self = this, t1, t2, _i;
  49162. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49163. if ($async$errorCode === 1)
  49164. return P._asyncRethrow($async$result, $async$completer);
  49165. while (true)
  49166. switch ($async$goto) {
  49167. case 0:
  49168. // Function start
  49169. t1 = node.children, t2 = t1.length, _i = 0;
  49170. case 3:
  49171. // for condition
  49172. if (!(_i < t2)) {
  49173. // goto after for
  49174. $async$goto = 5;
  49175. break;
  49176. }
  49177. $async$goto = 6;
  49178. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  49179. case 6:
  49180. // returning from await.
  49181. case 4:
  49182. // for update
  49183. ++_i;
  49184. // goto for condition
  49185. $async$goto = 3;
  49186. break;
  49187. case 5:
  49188. // after for
  49189. $async$returnValue = null;
  49190. // goto return
  49191. $async$goto = 1;
  49192. break;
  49193. case 1:
  49194. // return
  49195. return P._asyncReturn($async$returnValue, $async$completer);
  49196. }
  49197. });
  49198. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  49199. },
  49200. visitAtRootRule$1: function(node) {
  49201. return this.visitAtRootRule$body$_EvaluateVisitor(node);
  49202. },
  49203. visitAtRootRule$body$_EvaluateVisitor: function(node) {
  49204. var $async$goto = 0,
  49205. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49206. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, cur, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  49207. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49208. if ($async$errorCode === 1)
  49209. return P._asyncRethrow($async$result, $async$completer);
  49210. while (true)
  49211. switch ($async$goto) {
  49212. case 0:
  49213. // Function start
  49214. t1 = node.query;
  49215. $async$goto = t1 != null ? 3 : 5;
  49216. break;
  49217. case 3:
  49218. // then
  49219. $async$temp1 = t1;
  49220. $async$temp2 = E;
  49221. $async$goto = 6;
  49222. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  49223. case 6:
  49224. // returning from await.
  49225. $async$result = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure2($async$self, $async$result));
  49226. // goto join
  49227. $async$goto = 4;
  49228. break;
  49229. case 5:
  49230. // else
  49231. $async$result = C.AtRootQuery_UsS;
  49232. case 4:
  49233. // join
  49234. query = $async$result;
  49235. $parent = $async$self._async_evaluate$_parent;
  49236. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode);
  49237. for (t1 = type$.legacy_CssStylesheet; !t1._is($parent);) {
  49238. if (!query.excludes$1($parent))
  49239. included.push($parent);
  49240. $parent = $parent._parent;
  49241. }
  49242. root = $async$self._async_evaluate$_trimIncluded$1(included);
  49243. $async$goto = root == $async$self._async_evaluate$_parent ? 7 : 8;
  49244. break;
  49245. case 7:
  49246. // then
  49247. $async$goto = 9;
  49248. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure3($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  49249. case 9:
  49250. // returning from await.
  49251. $async$returnValue = null;
  49252. // goto return
  49253. $async$goto = 1;
  49254. break;
  49255. case 8:
  49256. // join
  49257. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  49258. for (t1 = H.SubListIterable$(included, 1, null, type$.legacy_ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  49259. cur = t1.__internal$_current;
  49260. copy = cur.copyWithoutChildren$0();
  49261. copy.addChild$1(outerCopy);
  49262. }
  49263. if (outerCopy != null)
  49264. root.addChild$1(outerCopy);
  49265. $async$goto = 10;
  49266. return P._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure4($async$self, node)), $async$visitAtRootRule$1);
  49267. case 10:
  49268. // returning from await.
  49269. $async$returnValue = null;
  49270. // goto return
  49271. $async$goto = 1;
  49272. break;
  49273. case 1:
  49274. // return
  49275. return P._asyncReturn($async$returnValue, $async$completer);
  49276. }
  49277. });
  49278. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  49279. },
  49280. _async_evaluate$_trimIncluded$1: function(nodes) {
  49281. var $parent, innermostContiguous, i, t2, root,
  49282. t1 = nodes.length;
  49283. if (t1 === 0)
  49284. return this._async_evaluate$_root;
  49285. $parent = this._async_evaluate$_parent;
  49286. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  49287. for (; $parent != nodes[i]; innermostContiguous = null)
  49288. $parent = $parent._parent;
  49289. if (innermostContiguous == null)
  49290. innermostContiguous = i;
  49291. $parent = $parent._parent;
  49292. }
  49293. t2 = this._async_evaluate$_root;
  49294. if ($parent != t2)
  49295. return t2;
  49296. root = nodes[innermostContiguous];
  49297. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  49298. return root;
  49299. },
  49300. _async_evaluate$_scopeForAtRoot$4: function(node, newParent, query, included) {
  49301. var _this = this,
  49302. scope = new E._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
  49303. t1 = query._all || query._at_root_query$_rule;
  49304. if (t1 !== query.include)
  49305. scope = new E._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
  49306. if (_this._async_evaluate$_mediaQueries != null && query.excludesName$1("media"))
  49307. scope = new E._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
  49308. if (_this._async_evaluate$_inKeyframes && query.excludesName$1("keyframes"))
  49309. scope = new E._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
  49310. return _this._async_evaluate$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure9()) ? new E._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
  49311. },
  49312. visitContentBlock$1: function(node) {
  49313. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  49314. },
  49315. visitContentRule$1: function(node) {
  49316. return this.visitContentRule$body$_EvaluateVisitor(node);
  49317. },
  49318. visitContentRule$body$_EvaluateVisitor: function(node) {
  49319. var $async$goto = 0,
  49320. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49321. $async$returnValue, $async$self = this, $content;
  49322. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49323. if ($async$errorCode === 1)
  49324. return P._asyncRethrow($async$result, $async$completer);
  49325. while (true)
  49326. switch ($async$goto) {
  49327. case 0:
  49328. // Function start
  49329. $content = $async$self._async_evaluate$_environment._async_environment$_content;
  49330. if ($content == null) {
  49331. $async$returnValue = null;
  49332. // goto return
  49333. $async$goto = 1;
  49334. break;
  49335. }
  49336. $async$goto = 3;
  49337. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure0($async$self, $content)), $async$visitContentRule$1);
  49338. case 3:
  49339. // returning from await.
  49340. $async$returnValue = null;
  49341. // goto return
  49342. $async$goto = 1;
  49343. break;
  49344. case 1:
  49345. // return
  49346. return P._asyncReturn($async$returnValue, $async$completer);
  49347. }
  49348. });
  49349. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  49350. },
  49351. visitDebugRule$1: function(node) {
  49352. return this.visitDebugRule$body$_EvaluateVisitor(node);
  49353. },
  49354. visitDebugRule$body$_EvaluateVisitor: function(node) {
  49355. var $async$goto = 0,
  49356. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49357. $async$returnValue, $async$self = this, value, t1;
  49358. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49359. if ($async$errorCode === 1)
  49360. return P._asyncRethrow($async$result, $async$completer);
  49361. while (true)
  49362. switch ($async$goto) {
  49363. case 0:
  49364. // Function start
  49365. $async$goto = 3;
  49366. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  49367. case 3:
  49368. // returning from await.
  49369. value = $async$result;
  49370. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  49371. $async$self._async_evaluate$_logger.debug$2(0, t1, node.span);
  49372. $async$returnValue = null;
  49373. // goto return
  49374. $async$goto = 1;
  49375. break;
  49376. case 1:
  49377. // return
  49378. return P._asyncReturn($async$returnValue, $async$completer);
  49379. }
  49380. });
  49381. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  49382. },
  49383. visitDeclaration$1: function(node) {
  49384. return this.visitDeclaration$body$_EvaluateVisitor(node);
  49385. },
  49386. visitDeclaration$body$_EvaluateVisitor: function(node) {
  49387. var $async$goto = 0,
  49388. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49389. $async$returnValue, $async$self = this, t1, $name, t2, cssValue, t3, oldDeclarationName, $async$temp1;
  49390. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49391. if ($async$errorCode === 1)
  49392. return P._asyncRethrow($async$result, $async$completer);
  49393. while (true)
  49394. switch ($async$goto) {
  49395. case 0:
  49396. // Function start
  49397. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
  49398. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Declarm, node.span));
  49399. t1 = node.name;
  49400. $async$goto = 3;
  49401. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  49402. case 3:
  49403. // returning from await.
  49404. $name = $async$result;
  49405. t2 = $async$self._async_evaluate$_declarationName;
  49406. if (t2 != null)
  49407. $name = new F.CssValue(t2 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_legacy_String);
  49408. t2 = node.value;
  49409. $async$goto = t2 == null ? 4 : 6;
  49410. break;
  49411. case 4:
  49412. // then
  49413. $async$result = null;
  49414. // goto join
  49415. $async$goto = 5;
  49416. break;
  49417. case 6:
  49418. // else
  49419. $async$temp1 = F;
  49420. $async$goto = 7;
  49421. return P._asyncAwait(t2.accept$1($async$self), $async$visitDeclaration$1);
  49422. case 7:
  49423. // returning from await.
  49424. $async$result = new $async$temp1.CssValue($async$result, t2.get$span(), type$.CssValue_legacy_Value);
  49425. case 5:
  49426. // join
  49427. cssValue = $async$result;
  49428. if (cssValue != null) {
  49429. t3 = cssValue.value;
  49430. t3 = !t3.get$isBlank() || t3.get$asList().length === 0;
  49431. } else
  49432. t3 = false;
  49433. if (t3) {
  49434. t3 = $async$self._async_evaluate$_parent;
  49435. t1 = C.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  49436. t2 = $async$self._async_evaluate$_expressionNode$1(t2);
  49437. t2 = t2 == null ? null : t2.get$span();
  49438. t3.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1, t2));
  49439. } else if (J.startsWith$1$s($name.get$value($name), "--") && node.children == null)
  49440. throw H.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", t2.get$span()));
  49441. $async$goto = node.children != null ? 8 : 9;
  49442. break;
  49443. case 8:
  49444. // then
  49445. oldDeclarationName = $async$self._async_evaluate$_declarationName;
  49446. $async$self._async_evaluate$_declarationName = $name.get$value($name);
  49447. $async$goto = 10;
  49448. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure0($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  49449. case 10:
  49450. // returning from await.
  49451. $async$self._async_evaluate$_declarationName = oldDeclarationName;
  49452. case 9:
  49453. // join
  49454. $async$returnValue = null;
  49455. // goto return
  49456. $async$goto = 1;
  49457. break;
  49458. case 1:
  49459. // return
  49460. return P._asyncReturn($async$returnValue, $async$completer);
  49461. }
  49462. });
  49463. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  49464. },
  49465. visitEachRule$1: function(node) {
  49466. return this.visitEachRule$body$_EvaluateVisitor(node);
  49467. },
  49468. visitEachRule$body$_EvaluateVisitor: function(node) {
  49469. var $async$goto = 0,
  49470. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49471. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  49472. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49473. if ($async$errorCode === 1)
  49474. return P._asyncRethrow($async$result, $async$completer);
  49475. while (true)
  49476. switch ($async$goto) {
  49477. case 0:
  49478. // Function start
  49479. t1 = node.list;
  49480. $async$goto = 3;
  49481. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  49482. case 3:
  49483. // returning from await.
  49484. list = $async$result;
  49485. nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
  49486. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure2($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure3($async$self, node, nodeWithSpan);
  49487. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure4($async$self, list, setVariables, node), true, type$.legacy_Value);
  49488. // goto return
  49489. $async$goto = 1;
  49490. break;
  49491. case 1:
  49492. // return
  49493. return P._asyncReturn($async$returnValue, $async$completer);
  49494. }
  49495. });
  49496. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  49497. },
  49498. _async_evaluate$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  49499. var i,
  49500. list = value.get$asList(),
  49501. t1 = variables.length,
  49502. minLength = Math.min(t1, list.length);
  49503. for (i = 0; i < minLength; ++i)
  49504. this._async_evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  49505. for (i = minLength; i < t1; ++i)
  49506. this._async_evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  49507. },
  49508. visitErrorRule$1: function(node) {
  49509. return this.visitErrorRule$body$_EvaluateVisitor(node);
  49510. },
  49511. visitErrorRule$body$_EvaluateVisitor: function(node) {
  49512. var $async$goto = 0,
  49513. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49514. $async$self = this, $async$temp1, $async$temp2;
  49515. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49516. if ($async$errorCode === 1)
  49517. return P._asyncRethrow($async$result, $async$completer);
  49518. while (true)
  49519. switch ($async$goto) {
  49520. case 0:
  49521. // Function start
  49522. $async$temp1 = H;
  49523. $async$temp2 = J;
  49524. $async$goto = 2;
  49525. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  49526. case 2:
  49527. // returning from await.
  49528. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
  49529. // implicit return
  49530. return P._asyncReturn(null, $async$completer);
  49531. }
  49532. });
  49533. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  49534. },
  49535. visitExtendRule$1: function(node) {
  49536. return this.visitExtendRule$body$_EvaluateVisitor(node);
  49537. },
  49538. visitExtendRule$body$_EvaluateVisitor: function(node) {
  49539. var $async$goto = 0,
  49540. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49541. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  49542. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49543. if ($async$errorCode === 1)
  49544. return P._asyncRethrow($async$result, $async$completer);
  49545. while (true)
  49546. switch ($async$goto) {
  49547. case 0:
  49548. // Function start
  49549. if (!($async$self._async_evaluate$_styleRule != null && !$async$self._async_evaluate$_atRootExcludingStyleRule) || $async$self._async_evaluate$_declarationName != null)
  49550. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span));
  49551. $async$goto = 3;
  49552. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  49553. case 3:
  49554. // returning from await.
  49555. targetText = $async$result;
  49556. for (t1 = $async$self._async_evaluate$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure0($async$self, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector, _i = 0; _i < t2; ++_i) {
  49557. t4 = t1[_i].components;
  49558. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  49559. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.get$span()));
  49560. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  49561. if (t4.length !== 1)
  49562. throw H.wrapException(E.SassFormatException$(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span()));
  49563. $async$self._async_evaluate$_extender.addExtension$4($async$self._async_evaluate$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate$_mediaQueries);
  49564. }
  49565. $async$returnValue = null;
  49566. // goto return
  49567. $async$goto = 1;
  49568. break;
  49569. case 1:
  49570. // return
  49571. return P._asyncReturn($async$returnValue, $async$completer);
  49572. }
  49573. });
  49574. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  49575. },
  49576. visitAtRule$1: function(node) {
  49577. return this.visitAtRule$body$_EvaluateVisitor(node);
  49578. },
  49579. visitAtRule$body$_EvaluateVisitor: function(node) {
  49580. var $async$goto = 0,
  49581. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49582. $async$returnValue, $async$self = this, $name, t1, value, wasInKeyframes, wasInUnknownAtRule;
  49583. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49584. if ($async$errorCode === 1)
  49585. return P._asyncRethrow($async$result, $async$completer);
  49586. while (true)
  49587. switch ($async$goto) {
  49588. case 0:
  49589. // Function start
  49590. if ($async$self._async_evaluate$_declarationName != null)
  49591. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  49592. $async$goto = 3;
  49593. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  49594. case 3:
  49595. // returning from await.
  49596. $name = $async$result;
  49597. t1 = node.value;
  49598. $async$goto = t1 == null ? 4 : 6;
  49599. break;
  49600. case 4:
  49601. // then
  49602. $async$result = null;
  49603. // goto join
  49604. $async$goto = 5;
  49605. break;
  49606. case 6:
  49607. // else
  49608. $async$goto = 7;
  49609. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  49610. case 7:
  49611. // returning from await.
  49612. case 5:
  49613. // join
  49614. value = $async$result;
  49615. if (node.children == null) {
  49616. $async$self._async_evaluate$_parent.addChild$1(U.ModifiableCssAtRule$($name, node.span, true, value));
  49617. $async$returnValue = null;
  49618. // goto return
  49619. $async$goto = 1;
  49620. break;
  49621. }
  49622. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  49623. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  49624. if (B.unvendor($name.get$value($name)) === "keyframes")
  49625. $async$self._async_evaluate$_inKeyframes = true;
  49626. else
  49627. $async$self._async_evaluate$_inUnknownAtRule = true;
  49628. $async$goto = 8;
  49629. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$($name, node.span, false, value), new E._EvaluateVisitor_visitAtRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure2(), type$.legacy_ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
  49630. case 8:
  49631. // returning from await.
  49632. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  49633. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  49634. $async$returnValue = null;
  49635. // goto return
  49636. $async$goto = 1;
  49637. break;
  49638. case 1:
  49639. // return
  49640. return P._asyncReturn($async$returnValue, $async$completer);
  49641. }
  49642. });
  49643. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  49644. },
  49645. visitForRule$1: function(node) {
  49646. return this.visitForRule$body$_EvaluateVisitor(node);
  49647. },
  49648. visitForRule$body$_EvaluateVisitor: function(node) {
  49649. var $async$goto = 0,
  49650. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49651. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  49652. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49653. if ($async$errorCode === 1)
  49654. return P._asyncRethrow($async$result, $async$completer);
  49655. while (true)
  49656. switch ($async$goto) {
  49657. case 0:
  49658. // Function start
  49659. t1 = {};
  49660. t2 = node.from;
  49661. t3 = type$.legacy_SassNumber;
  49662. $async$goto = 3;
  49663. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
  49664. case 3:
  49665. // returning from await.
  49666. fromNumber = $async$result;
  49667. t4 = node.to;
  49668. $async$goto = 4;
  49669. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
  49670. case 4:
  49671. // returning from await.
  49672. toNumber = $async$result;
  49673. from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure6(fromNumber, toNumber));
  49674. to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure7(toNumber));
  49675. direction = from > to ? -1 : 1;
  49676. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  49677. $async$returnValue = null;
  49678. // goto return
  49679. $async$goto = 1;
  49680. break;
  49681. }
  49682. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction), true, type$.legacy_Value);
  49683. // goto return
  49684. $async$goto = 1;
  49685. break;
  49686. case 1:
  49687. // return
  49688. return P._asyncReturn($async$returnValue, $async$completer);
  49689. }
  49690. });
  49691. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  49692. },
  49693. visitForwardRule$1: function(node) {
  49694. return this.visitForwardRule$body$_EvaluateVisitor(node);
  49695. },
  49696. visitForwardRule$body$_EvaluateVisitor: function(node) {
  49697. var $async$goto = 0,
  49698. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49699. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  49700. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49701. if ($async$errorCode === 1)
  49702. return P._asyncRethrow($async$result, $async$completer);
  49703. while (true)
  49704. switch ($async$goto) {
  49705. case 0:
  49706. // Function start
  49707. oldConfiguration = $async$self._async_evaluate$_configuration;
  49708. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  49709. t1 = node.configuration;
  49710. t2 = t1.length;
  49711. t3 = node.url;
  49712. $async$goto = t2 !== 0 ? 3 : 5;
  49713. break;
  49714. case 3:
  49715. // then
  49716. $async$goto = 6;
  49717. return P._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  49718. case 6:
  49719. // returning from await.
  49720. newConfiguration = $async$result;
  49721. $async$goto = 7;
  49722. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
  49723. case 7:
  49724. // returning from await.
  49725. t3 = type$.legacy_String;
  49726. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  49727. for (_i = 0; _i < t2; ++_i) {
  49728. variable = t1[_i];
  49729. if (!variable.isGuarded)
  49730. t4.add$1(0, variable.name);
  49731. }
  49732. $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  49733. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  49734. for (_i = 0; _i < t2; ++_i)
  49735. t3.add$1(0, t1[_i].name);
  49736. $async$self._async_evaluate$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  49737. // goto join
  49738. $async$goto = 4;
  49739. break;
  49740. case 5:
  49741. // else
  49742. $async$self._async_evaluate$_configuration = adjustedConfiguration;
  49743. $async$goto = 8;
  49744. return P._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
  49745. case 8:
  49746. // returning from await.
  49747. $async$self._async_evaluate$_configuration = oldConfiguration;
  49748. case 4:
  49749. // join
  49750. $async$returnValue = null;
  49751. // goto return
  49752. $async$goto = 1;
  49753. break;
  49754. case 1:
  49755. // return
  49756. return P._asyncReturn($async$returnValue, $async$completer);
  49757. }
  49758. });
  49759. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  49760. },
  49761. _async_evaluate$_addForwardConfiguration$2: function(configuration, node) {
  49762. return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
  49763. },
  49764. _addForwardConfiguration$body$_EvaluateVisitor: function(configuration, node) {
  49765. var $async$goto = 0,
  49766. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Configuration),
  49767. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  49768. var $async$_async_evaluate$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49769. if ($async$errorCode === 1)
  49770. return P._asyncRethrow($async$result, $async$completer);
  49771. while (true)
  49772. switch ($async$goto) {
  49773. case 0:
  49774. // Function start
  49775. t1 = configuration._values;
  49776. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue), type$.legacy_String, type$.legacy_ConfiguredValue);
  49777. t2 = node.configuration, t3 = t2.length, _i = 0;
  49778. case 3:
  49779. // for condition
  49780. if (!(_i < t3)) {
  49781. // goto after for
  49782. $async$goto = 5;
  49783. break;
  49784. }
  49785. variable = t2[_i];
  49786. if (variable.isGuarded) {
  49787. t4 = variable.name;
  49788. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  49789. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  49790. newValues.$indexSet(0, t4, t5);
  49791. // goto for update
  49792. $async$goto = 4;
  49793. break;
  49794. }
  49795. }
  49796. t4 = variable.name;
  49797. t5 = variable.expression;
  49798. $async$temp1 = newValues;
  49799. $async$temp2 = t4;
  49800. $async$temp3 = Z;
  49801. $async$goto = 6;
  49802. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate$_addForwardConfiguration$2);
  49803. case 6:
  49804. // returning from await.
  49805. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  49806. case 4:
  49807. // for update
  49808. ++_i;
  49809. // goto for condition
  49810. $async$goto = 3;
  49811. break;
  49812. case 5:
  49813. // after for
  49814. $async$returnValue = new A.Configuration(newValues, node, false);
  49815. // goto return
  49816. $async$goto = 1;
  49817. break;
  49818. case 1:
  49819. // return
  49820. return P._asyncReturn($async$returnValue, $async$completer);
  49821. }
  49822. });
  49823. return P._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
  49824. },
  49825. _async_evaluate$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  49826. var t1, t2, t3, _i, $name;
  49827. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  49828. $name = t2[_i];
  49829. if (except.contains$1(0, $name))
  49830. continue;
  49831. if (!downstream._values.containsKey$1($name))
  49832. if (!t1.get$isEmpty(t1))
  49833. t1.remove$1(0, $name);
  49834. }
  49835. },
  49836. _async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  49837. configuration._values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure0(this, only, nameInError));
  49838. },
  49839. _async_evaluate$_assertConfigurationIsEmpty$1: function(configuration) {
  49840. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  49841. },
  49842. _async_evaluate$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  49843. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  49844. },
  49845. _async_evaluate$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  49846. return this._async_evaluate$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  49847. },
  49848. visitFunctionRule$1: function(node) {
  49849. return this.visitFunctionRule$body$_EvaluateVisitor(node);
  49850. },
  49851. visitFunctionRule$body$_EvaluateVisitor: function(node) {
  49852. var $async$goto = 0,
  49853. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49854. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  49855. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49856. if ($async$errorCode === 1)
  49857. return P._asyncRethrow($async$result, $async$completer);
  49858. while (true)
  49859. switch ($async$goto) {
  49860. case 0:
  49861. // Function start
  49862. t1 = $async$self._async_evaluate$_environment;
  49863. t2 = t1.closure$0();
  49864. t3 = t1._async_environment$_functions;
  49865. index = t3.length - 1;
  49866. t4 = node.name;
  49867. t1._async_environment$_functionIndices.$indexSet(0, t4, index);
  49868. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment));
  49869. $async$returnValue = null;
  49870. // goto return
  49871. $async$goto = 1;
  49872. break;
  49873. case 1:
  49874. // return
  49875. return P._asyncReturn($async$returnValue, $async$completer);
  49876. }
  49877. });
  49878. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  49879. },
  49880. visitIfRule$1: function(node) {
  49881. return this.visitIfRule$body$_EvaluateVisitor(node);
  49882. },
  49883. visitIfRule$body$_EvaluateVisitor: function(node) {
  49884. var $async$goto = 0,
  49885. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49886. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  49887. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49888. if ($async$errorCode === 1)
  49889. return P._asyncRethrow($async$result, $async$completer);
  49890. while (true)
  49891. switch ($async$goto) {
  49892. case 0:
  49893. // Function start
  49894. _box_0 = {};
  49895. _box_0.clause = node.lastClause;
  49896. t1 = node.clauses, t2 = t1.length, _i = 0;
  49897. case 3:
  49898. // for condition
  49899. if (!(_i < t2)) {
  49900. // goto after for
  49901. $async$goto = 5;
  49902. break;
  49903. }
  49904. clauseToCheck = t1[_i];
  49905. $async$goto = 6;
  49906. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  49907. case 6:
  49908. // returning from await.
  49909. if ($async$result.get$isTruthy()) {
  49910. _box_0.clause = clauseToCheck;
  49911. // goto after for
  49912. $async$goto = 5;
  49913. break;
  49914. }
  49915. case 4:
  49916. // for update
  49917. ++_i;
  49918. // goto for condition
  49919. $async$goto = 3;
  49920. break;
  49921. case 5:
  49922. // after for
  49923. t1 = _box_0.clause;
  49924. if (t1 == null) {
  49925. $async$returnValue = null;
  49926. // goto return
  49927. $async$goto = 1;
  49928. break;
  49929. }
  49930. $async$goto = 7;
  49931. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure0(_box_0, $async$self), true, t1.hasDeclarations, type$.legacy_Value), $async$visitIfRule$1);
  49932. case 7:
  49933. // returning from await.
  49934. $async$returnValue = $async$result;
  49935. // goto return
  49936. $async$goto = 1;
  49937. break;
  49938. case 1:
  49939. // return
  49940. return P._asyncReturn($async$returnValue, $async$completer);
  49941. }
  49942. });
  49943. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  49944. },
  49945. visitImportRule$1: function(node) {
  49946. return this.visitImportRule$body$_EvaluateVisitor(node);
  49947. },
  49948. visitImportRule$body$_EvaluateVisitor: function(node) {
  49949. var $async$goto = 0,
  49950. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  49951. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  49952. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49953. if ($async$errorCode === 1)
  49954. return P._asyncRethrow($async$result, $async$completer);
  49955. while (true)
  49956. switch ($async$goto) {
  49957. case 0:
  49958. // Function start
  49959. t1 = node.imports, t2 = t1.length, t3 = type$.legacy_StaticImport, _i = 0;
  49960. case 3:
  49961. // for condition
  49962. if (!(_i < t2)) {
  49963. // goto after for
  49964. $async$goto = 5;
  49965. break;
  49966. }
  49967. $import = t1[_i];
  49968. $async$goto = $import instanceof B.DynamicImport ? 6 : 8;
  49969. break;
  49970. case 6:
  49971. // then
  49972. $async$goto = 9;
  49973. return P._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
  49974. case 9:
  49975. // returning from await.
  49976. // goto join
  49977. $async$goto = 7;
  49978. break;
  49979. case 8:
  49980. // else
  49981. $async$goto = 10;
  49982. return P._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  49983. case 10:
  49984. // returning from await.
  49985. case 7:
  49986. // join
  49987. case 4:
  49988. // for update
  49989. ++_i;
  49990. // goto for condition
  49991. $async$goto = 3;
  49992. break;
  49993. case 5:
  49994. // after for
  49995. $async$returnValue = null;
  49996. // goto return
  49997. $async$goto = 1;
  49998. break;
  49999. case 1:
  50000. // return
  50001. return P._asyncReturn($async$returnValue, $async$completer);
  50002. }
  50003. });
  50004. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  50005. },
  50006. _async_evaluate$_visitDynamicImport$1: function($import) {
  50007. return this._async_evaluate$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
  50008. },
  50009. _async_evaluate$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  50010. return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
  50011. },
  50012. _async_evaluate$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  50013. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  50014. },
  50015. _async_evaluate$_loadStylesheet$3$forImport: function(url, span, forImport) {
  50016. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  50017. },
  50018. _loadStylesheet$body$_EvaluateVisitor: function(url, span, baseUrl, forImport) {
  50019. var $async$goto = 0,
  50020. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet),
  50021. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, tuple, error, error0, message, t1, t2, t3, exception, message0, $async$exception;
  50022. var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50023. if ($async$errorCode === 1) {
  50024. $async$currentError = $async$result;
  50025. $async$goto = $async$handler;
  50026. }
  50027. while (true)
  50028. switch ($async$goto) {
  50029. case 0:
  50030. // Function start
  50031. $async$handler = 4;
  50032. $async$self._async_evaluate$_importSpan = span;
  50033. t1 = P.Uri_parse(url);
  50034. t2 = $async$self._async_evaluate$_importer;
  50035. if (baseUrl == null) {
  50036. t3 = $async$self._async_evaluate$_stylesheet;
  50037. t3 = t3 == null ? null : t3.span;
  50038. t3 = t3 == null ? null : t3.file.url;
  50039. } else
  50040. t3 = baseUrl;
  50041. $async$goto = 7;
  50042. return P._asyncAwait($async$self._async_evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  50043. case 7:
  50044. // returning from await.
  50045. tuple = $async$result;
  50046. if (tuple != null) {
  50047. $async$returnValue = tuple;
  50048. $async$next = [1];
  50049. // goto finally
  50050. $async$goto = 5;
  50051. break;
  50052. }
  50053. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  50054. throw H.wrapException(string$.x22packa);
  50055. else
  50056. throw H.wrapException("Can't find stylesheet to import.");
  50057. $async$next.push(6);
  50058. // goto finally
  50059. $async$goto = 5;
  50060. break;
  50061. case 4:
  50062. // catch
  50063. $async$handler = 3;
  50064. $async$exception = $async$currentError;
  50065. t1 = H.unwrapException($async$exception);
  50066. if (t1 instanceof E.SassException) {
  50067. error = t1;
  50068. t1 = $async$self._async_evaluate$_exception$2(error._span_exception$_message, error.get$span());
  50069. throw H.wrapException(t1);
  50070. } else {
  50071. error0 = t1;
  50072. message = null;
  50073. try {
  50074. message = H._asStringS(J.get$message$x(error0));
  50075. } catch (exception) {
  50076. H.unwrapException($async$exception);
  50077. message0 = J.toString$0$(error0);
  50078. message = message0;
  50079. }
  50080. t1 = $async$self._async_evaluate$_exception$1(message);
  50081. throw H.wrapException(t1);
  50082. }
  50083. $async$next.push(6);
  50084. // goto finally
  50085. $async$goto = 5;
  50086. break;
  50087. case 3:
  50088. // uncaught
  50089. $async$next = [2];
  50090. case 5:
  50091. // finally
  50092. $async$handler = 2;
  50093. $async$self._async_evaluate$_importSpan = null;
  50094. // goto the next finally handler
  50095. $async$goto = $async$next.pop();
  50096. break;
  50097. case 6:
  50098. // after finally
  50099. case 1:
  50100. // return
  50101. return P._asyncReturn($async$returnValue, $async$completer);
  50102. case 2:
  50103. // rethrow
  50104. return P._asyncRethrow($async$currentError, $async$completer);
  50105. }
  50106. });
  50107. return P._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  50108. },
  50109. _visitStaticImport$1: function($import) {
  50110. return this._visitStaticImport$body$_EvaluateVisitor($import);
  50111. },
  50112. _visitStaticImport$body$_EvaluateVisitor: function($import) {
  50113. var $async$goto = 0,
  50114. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  50115. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  50116. var $async$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50117. if ($async$errorCode === 1)
  50118. return P._asyncRethrow($async$result, $async$completer);
  50119. while (true)
  50120. switch ($async$goto) {
  50121. case 0:
  50122. // Function start
  50123. $async$goto = 3;
  50124. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
  50125. case 3:
  50126. // returning from await.
  50127. url = $async$result;
  50128. supports = $import.supports;
  50129. $async$goto = supports instanceof L.SupportsDeclaration ? 4 : 6;
  50130. break;
  50131. case 4:
  50132. // then
  50133. $async$temp1 = H;
  50134. $async$goto = 7;
  50135. return P._asyncAwait($async$self._evaluateToCss$1(supports.name), $async$_visitStaticImport$1);
  50136. case 7:
  50137. // returning from await.
  50138. $async$temp1 = $async$temp1.S($async$result) + ": ";
  50139. $async$temp2 = H;
  50140. $async$goto = 8;
  50141. return P._asyncAwait($async$self._evaluateToCss$1(supports.value), $async$_visitStaticImport$1);
  50142. case 8:
  50143. // returning from await.
  50144. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  50145. // goto join
  50146. $async$goto = 5;
  50147. break;
  50148. case 6:
  50149. // else
  50150. $async$goto = supports == null ? 9 : 11;
  50151. break;
  50152. case 9:
  50153. // then
  50154. $async$result = null;
  50155. // goto join
  50156. $async$goto = 10;
  50157. break;
  50158. case 11:
  50159. // else
  50160. $async$goto = 12;
  50161. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(supports), $async$_visitStaticImport$1);
  50162. case 12:
  50163. // returning from await.
  50164. case 10:
  50165. // join
  50166. resolvedSupports = $async$result;
  50167. case 5:
  50168. // join
  50169. t1 = $import.media;
  50170. $async$goto = t1 == null ? 13 : 15;
  50171. break;
  50172. case 13:
  50173. // then
  50174. $async$result = null;
  50175. // goto join
  50176. $async$goto = 14;
  50177. break;
  50178. case 15:
  50179. // else
  50180. $async$goto = 16;
  50181. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(t1), $async$_visitStaticImport$1);
  50182. case 16:
  50183. // returning from await.
  50184. case 14:
  50185. // join
  50186. mediaQuery = $async$result;
  50187. t1 = $import.span;
  50188. node = F.ModifiableCssImport$(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_legacy_String));
  50189. t1 = $async$self._async_evaluate$_parent;
  50190. t2 = $async$self._async_evaluate$_root;
  50191. if (t1 != t2)
  50192. t1.addChild$1(node);
  50193. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  50194. $async$self._async_evaluate$_root.addChild$1(node);
  50195. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50196. } else {
  50197. t1 = $async$self._async_evaluate$_outOfOrderImports;
  50198. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(node);
  50199. }
  50200. $async$returnValue = null;
  50201. // goto return
  50202. $async$goto = 1;
  50203. break;
  50204. case 1:
  50205. // return
  50206. return P._asyncReturn($async$returnValue, $async$completer);
  50207. }
  50208. });
  50209. return P._asyncStartSync($async$_visitStaticImport$1, $async$completer);
  50210. },
  50211. visitIncludeRule$1: function(node) {
  50212. return this.visitIncludeRule$body$_EvaluateVisitor(node);
  50213. },
  50214. visitIncludeRule$body$_EvaluateVisitor: function(node) {
  50215. var $async$goto = 0,
  50216. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50217. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, contentCallable, mixin;
  50218. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50219. if ($async$errorCode === 1)
  50220. return P._asyncRethrow($async$result, $async$completer);
  50221. while (true)
  50222. switch ($async$goto) {
  50223. case 0:
  50224. // Function start
  50225. mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
  50226. if (mixin == null)
  50227. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", node.span));
  50228. nodeWithSpan = new B._FakeAstNode(new E._EvaluateVisitor_visitIncludeRule_closure3(node));
  50229. $async$goto = type$.legacy_AsyncBuiltInCallable._is(mixin) ? 3 : 5;
  50230. break;
  50231. case 3:
  50232. // then
  50233. if (node.content != null)
  50234. throw H.wrapException($async$self._async_evaluate$_exception$2("Mixin doesn't accept a content block.", node.span));
  50235. $async$goto = 6;
  50236. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  50237. case 6:
  50238. // returning from await.
  50239. // goto join
  50240. $async$goto = 4;
  50241. break;
  50242. case 5:
  50243. // else
  50244. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment._is(mixin) ? 7 : 9;
  50245. break;
  50246. case 7:
  50247. // then
  50248. t1 = node.content;
  50249. t2 = t1 == null;
  50250. if (!t2 && !type$.legacy_MixinRule._as(mixin.declaration).hasContent)
  50251. throw H.wrapException(E.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  50252. contentCallable = t2 ? null : new E.UserDefinedCallable(t1, $async$self._async_evaluate$_environment.closure$0(), type$.UserDefinedCallable_legacy_AsyncEnvironment);
  50253. $async$goto = 10;
  50254. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure4($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  50255. case 10:
  50256. // returning from await.
  50257. // goto join
  50258. $async$goto = 8;
  50259. break;
  50260. case 9:
  50261. // else
  50262. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  50263. case 8:
  50264. // join
  50265. case 4:
  50266. // join
  50267. $async$returnValue = null;
  50268. // goto return
  50269. $async$goto = 1;
  50270. break;
  50271. case 1:
  50272. // return
  50273. return P._asyncReturn($async$returnValue, $async$completer);
  50274. }
  50275. });
  50276. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  50277. },
  50278. visitMixinRule$1: function(node) {
  50279. return this.visitMixinRule$body$_EvaluateVisitor(node);
  50280. },
  50281. visitMixinRule$body$_EvaluateVisitor: function(node) {
  50282. var $async$goto = 0,
  50283. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50284. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  50285. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50286. if ($async$errorCode === 1)
  50287. return P._asyncRethrow($async$result, $async$completer);
  50288. while (true)
  50289. switch ($async$goto) {
  50290. case 0:
  50291. // Function start
  50292. t1 = $async$self._async_evaluate$_environment;
  50293. t2 = t1.closure$0();
  50294. t3 = t1._async_environment$_mixins;
  50295. index = t3.length - 1;
  50296. t4 = node.name;
  50297. t1._async_environment$_mixinIndices.$indexSet(0, t4, index);
  50298. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment));
  50299. $async$returnValue = null;
  50300. // goto return
  50301. $async$goto = 1;
  50302. break;
  50303. case 1:
  50304. // return
  50305. return P._asyncReturn($async$returnValue, $async$completer);
  50306. }
  50307. });
  50308. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  50309. },
  50310. visitLoudComment$1: function(node) {
  50311. return this.visitLoudComment$body$_EvaluateVisitor(node);
  50312. },
  50313. visitLoudComment$body$_EvaluateVisitor: function(node) {
  50314. var $async$goto = 0,
  50315. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50316. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  50317. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50318. if ($async$errorCode === 1)
  50319. return P._asyncRethrow($async$result, $async$completer);
  50320. while (true)
  50321. switch ($async$goto) {
  50322. case 0:
  50323. // Function start
  50324. if ($async$self._async_evaluate$_inFunction) {
  50325. $async$returnValue = null;
  50326. // goto return
  50327. $async$goto = 1;
  50328. break;
  50329. }
  50330. t1 = $async$self._async_evaluate$_parent;
  50331. t2 = $async$self._async_evaluate$_root;
  50332. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  50333. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  50334. t1 = node.text;
  50335. $async$temp1 = $async$self._async_evaluate$_parent;
  50336. $async$temp2 = R;
  50337. $async$goto = 3;
  50338. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
  50339. case 3:
  50340. // returning from await.
  50341. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
  50342. $async$returnValue = null;
  50343. // goto return
  50344. $async$goto = 1;
  50345. break;
  50346. case 1:
  50347. // return
  50348. return P._asyncReturn($async$returnValue, $async$completer);
  50349. }
  50350. });
  50351. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  50352. },
  50353. visitMediaRule$1: function(node) {
  50354. return this.visitMediaRule$body$_EvaluateVisitor(node);
  50355. },
  50356. visitMediaRule$body$_EvaluateVisitor: function(node) {
  50357. var $async$goto = 0,
  50358. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50359. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  50360. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50361. if ($async$errorCode === 1)
  50362. return P._asyncRethrow($async$result, $async$completer);
  50363. while (true)
  50364. switch ($async$goto) {
  50365. case 0:
  50366. // Function start
  50367. if ($async$self._async_evaluate$_declarationName != null)
  50368. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  50369. $async$goto = 3;
  50370. return P._asyncAwait($async$self._async_evaluate$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  50371. case 3:
  50372. // returning from await.
  50373. queries = $async$result;
  50374. t1 = $async$self._async_evaluate$_mediaQueries;
  50375. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, queries);
  50376. t1 = mergedQueries == null;
  50377. if (!t1 && mergedQueries.length === 0) {
  50378. $async$returnValue = null;
  50379. // goto return
  50380. $async$goto = 1;
  50381. break;
  50382. }
  50383. t1 = t1 ? queries : mergedQueries;
  50384. $async$goto = 4;
  50385. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure1($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure2(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
  50386. case 4:
  50387. // returning from await.
  50388. $async$returnValue = null;
  50389. // goto return
  50390. $async$goto = 1;
  50391. break;
  50392. case 1:
  50393. // return
  50394. return P._asyncReturn($async$returnValue, $async$completer);
  50395. }
  50396. });
  50397. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  50398. },
  50399. _async_evaluate$_visitMediaQueries$1: function(interpolation) {
  50400. return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
  50401. },
  50402. _visitMediaQueries$body$_EvaluateVisitor: function(interpolation) {
  50403. var $async$goto = 0,
  50404. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_List_legacy_CssMediaQuery),
  50405. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  50406. var $async$_async_evaluate$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50407. if ($async$errorCode === 1)
  50408. return P._asyncRethrow($async$result, $async$completer);
  50409. while (true)
  50410. switch ($async$goto) {
  50411. case 0:
  50412. // Function start
  50413. $async$temp1 = interpolation;
  50414. $async$temp2 = E;
  50415. $async$goto = 3;
  50416. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate$_visitMediaQueries$1);
  50417. case 3:
  50418. // returning from await.
  50419. $async$returnValue = $async$self._async_evaluate$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure0($async$self, $async$result));
  50420. // goto return
  50421. $async$goto = 1;
  50422. break;
  50423. case 1:
  50424. // return
  50425. return P._asyncReturn($async$returnValue, $async$completer);
  50426. }
  50427. });
  50428. return P._asyncStartSync($async$_async_evaluate$_visitMediaQueries$1, $async$completer);
  50429. },
  50430. _async_evaluate$_mergeMediaQueries$2: function(queries1, queries2) {
  50431. var t1, t2, t3, t4, t5, result,
  50432. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery);
  50433. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  50434. t4 = t1.get$current(t1);
  50435. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  50436. result = t4.merge$1(t5.get$current(t5));
  50437. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  50438. continue;
  50439. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  50440. return null;
  50441. queries.push(t3._as(result).query);
  50442. }
  50443. }
  50444. return queries;
  50445. },
  50446. visitReturnRule$1: function(node) {
  50447. return node.expression.accept$1(this);
  50448. },
  50449. visitSilentComment$1: function(node) {
  50450. return this.visitSilentComment$body$_EvaluateVisitor(node);
  50451. },
  50452. visitSilentComment$body$_EvaluateVisitor: function(node) {
  50453. var $async$goto = 0,
  50454. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50455. $async$returnValue;
  50456. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50457. if ($async$errorCode === 1)
  50458. return P._asyncRethrow($async$result, $async$completer);
  50459. while (true)
  50460. switch ($async$goto) {
  50461. case 0:
  50462. // Function start
  50463. $async$returnValue = null;
  50464. // goto return
  50465. $async$goto = 1;
  50466. break;
  50467. case 1:
  50468. // return
  50469. return P._asyncReturn($async$returnValue, $async$completer);
  50470. }
  50471. });
  50472. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  50473. },
  50474. visitStyleRule$1: function(node) {
  50475. return this.visitStyleRule$body$_EvaluateVisitor(node);
  50476. },
  50477. visitStyleRule$body$_EvaluateVisitor: function(node) {
  50478. var $async$goto = 0,
  50479. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50480. $async$returnValue, $async$self = this, t2, selectorText, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  50481. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50482. if ($async$errorCode === 1)
  50483. return P._asyncRethrow($async$result, $async$completer);
  50484. while (true)
  50485. switch ($async$goto) {
  50486. case 0:
  50487. // Function start
  50488. t1 = {};
  50489. if ($async$self._async_evaluate$_declarationName != null)
  50490. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  50491. t2 = node.selector;
  50492. $async$goto = 3;
  50493. return P._asyncAwait($async$self._async_evaluate$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  50494. case 3:
  50495. // returning from await.
  50496. selectorText = $async$result;
  50497. $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
  50498. break;
  50499. case 4:
  50500. // then
  50501. $async$goto = 6;
  50502. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$(new F.CssValue(P.List_List$unmodifiable($async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure6($async$self, selectorText)), type$.legacy_String), t2.span, type$.CssValue_legacy_List_legacy_String), node.span), new E._EvaluateVisitor_visitStyleRule_closure7($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure8(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
  50503. case 6:
  50504. // returning from await.
  50505. $async$returnValue = null;
  50506. // goto return
  50507. $async$goto = 1;
  50508. break;
  50509. case 5:
  50510. // join
  50511. t1.parsedSelector = $async$self._async_evaluate$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure9($async$self, selectorText));
  50512. parsedSelector = $async$self._async_evaluate$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure10(t1, $async$self));
  50513. t1.parsedSelector = parsedSelector;
  50514. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate$_mediaQueries), node.span, t1.parsedSelector);
  50515. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  50516. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  50517. $async$goto = 7;
  50518. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure11($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure12(), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
  50519. case 7:
  50520. // returning from await.
  50521. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  50522. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  50523. t1 = $async$self._async_evaluate$_parent.children;
  50524. t1 = !t1.get$isEmpty(t1);
  50525. } else
  50526. t1 = false;
  50527. if (t1) {
  50528. t1 = $async$self._async_evaluate$_parent.children;
  50529. t1.get$last(t1).isGroupEnd = true;
  50530. }
  50531. $async$returnValue = null;
  50532. // goto return
  50533. $async$goto = 1;
  50534. break;
  50535. case 1:
  50536. // return
  50537. return P._asyncReturn($async$returnValue, $async$completer);
  50538. }
  50539. });
  50540. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  50541. },
  50542. visitSupportsRule$1: function(node) {
  50543. return this.visitSupportsRule$body$_EvaluateVisitor(node);
  50544. },
  50545. visitSupportsRule$body$_EvaluateVisitor: function(node) {
  50546. var $async$goto = 0,
  50547. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50548. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  50549. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50550. if ($async$errorCode === 1)
  50551. return P._asyncRethrow($async$result, $async$completer);
  50552. while (true)
  50553. switch ($async$goto) {
  50554. case 0:
  50555. // Function start
  50556. if ($async$self._async_evaluate$_declarationName != null)
  50557. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  50558. t1 = node.condition;
  50559. $async$temp1 = B;
  50560. $async$temp2 = F;
  50561. $async$goto = 4;
  50562. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  50563. case 4:
  50564. // returning from await.
  50565. $async$goto = 3;
  50566. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$(new $async$temp2.CssValue($async$result, t1.get$span(), type$.CssValue_legacy_String), node.span), new E._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure2(), type$.legacy_ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
  50567. case 3:
  50568. // returning from await.
  50569. $async$returnValue = null;
  50570. // goto return
  50571. $async$goto = 1;
  50572. break;
  50573. case 1:
  50574. // return
  50575. return P._asyncReturn($async$returnValue, $async$completer);
  50576. }
  50577. });
  50578. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  50579. },
  50580. _async_evaluate$_visitSupportsCondition$1: function(condition) {
  50581. return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
  50582. },
  50583. _visitSupportsCondition$body$_EvaluateVisitor: function(condition) {
  50584. var $async$goto = 0,
  50585. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  50586. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  50587. var $async$_async_evaluate$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50588. if ($async$errorCode === 1)
  50589. return P._asyncRethrow($async$result, $async$completer);
  50590. while (true)
  50591. switch ($async$goto) {
  50592. case 0:
  50593. // Function start
  50594. $async$goto = condition instanceof U.SupportsOperation ? 3 : 5;
  50595. break;
  50596. case 3:
  50597. // then
  50598. t1 = condition.operator;
  50599. $async$temp1 = H;
  50600. $async$goto = 6;
  50601. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.left, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  50602. case 6:
  50603. // returning from await.
  50604. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  50605. $async$temp2 = H;
  50606. $async$goto = 7;
  50607. return P._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  50608. case 7:
  50609. // returning from await.
  50610. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  50611. // goto return
  50612. $async$goto = 1;
  50613. break;
  50614. // goto join
  50615. $async$goto = 4;
  50616. break;
  50617. case 5:
  50618. // else
  50619. $async$goto = condition instanceof M.SupportsNegation ? 8 : 10;
  50620. break;
  50621. case 8:
  50622. // then
  50623. $async$temp1 = H;
  50624. $async$goto = 11;
  50625. return P._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
  50626. case 11:
  50627. // returning from await.
  50628. $async$returnValue = "not " + $async$temp1.S($async$result);
  50629. // goto return
  50630. $async$goto = 1;
  50631. break;
  50632. // goto join
  50633. $async$goto = 9;
  50634. break;
  50635. case 10:
  50636. // else
  50637. $async$goto = condition instanceof X.SupportsInterpolation ? 12 : 14;
  50638. break;
  50639. case 12:
  50640. // then
  50641. $async$goto = 15;
  50642. return P._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
  50643. case 15:
  50644. // returning from await.
  50645. $async$returnValue = $async$result;
  50646. // goto return
  50647. $async$goto = 1;
  50648. break;
  50649. // goto join
  50650. $async$goto = 13;
  50651. break;
  50652. case 14:
  50653. // else
  50654. $async$goto = condition instanceof L.SupportsDeclaration ? 16 : 18;
  50655. break;
  50656. case 16:
  50657. // then
  50658. $async$temp1 = H;
  50659. $async$goto = 19;
  50660. return P._asyncAwait($async$self._evaluateToCss$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  50661. case 19:
  50662. // returning from await.
  50663. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  50664. $async$temp2 = H;
  50665. $async$goto = 20;
  50666. return P._asyncAwait($async$self._evaluateToCss$1(condition.value), $async$_async_evaluate$_visitSupportsCondition$1);
  50667. case 20:
  50668. // returning from await.
  50669. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  50670. // goto return
  50671. $async$goto = 1;
  50672. break;
  50673. // goto join
  50674. $async$goto = 17;
  50675. break;
  50676. case 18:
  50677. // else
  50678. $async$goto = condition instanceof F.SupportsFunction ? 21 : 23;
  50679. break;
  50680. case 21:
  50681. // then
  50682. $async$temp1 = H;
  50683. $async$goto = 24;
  50684. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  50685. case 24:
  50686. // returning from await.
  50687. $async$temp1 = $async$temp1.S($async$result) + "(";
  50688. $async$temp2 = H;
  50689. $async$goto = 25;
  50690. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.$arguments), $async$_async_evaluate$_visitSupportsCondition$1);
  50691. case 25:
  50692. // returning from await.
  50693. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  50694. // goto return
  50695. $async$goto = 1;
  50696. break;
  50697. // goto join
  50698. $async$goto = 22;
  50699. break;
  50700. case 23:
  50701. // else
  50702. $async$goto = condition instanceof Y.SupportsAnything ? 26 : 28;
  50703. break;
  50704. case 26:
  50705. // then
  50706. $async$temp1 = H;
  50707. $async$goto = 29;
  50708. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.contents), $async$_async_evaluate$_visitSupportsCondition$1);
  50709. case 29:
  50710. // returning from await.
  50711. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  50712. // goto return
  50713. $async$goto = 1;
  50714. break;
  50715. // goto join
  50716. $async$goto = 27;
  50717. break;
  50718. case 28:
  50719. // else
  50720. $async$returnValue = null;
  50721. // goto return
  50722. $async$goto = 1;
  50723. break;
  50724. case 27:
  50725. // join
  50726. case 22:
  50727. // join
  50728. case 17:
  50729. // join
  50730. case 13:
  50731. // join
  50732. case 9:
  50733. // join
  50734. case 4:
  50735. // join
  50736. case 1:
  50737. // return
  50738. return P._asyncReturn($async$returnValue, $async$completer);
  50739. }
  50740. });
  50741. return P._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
  50742. },
  50743. _async_evaluate$_parenthesize$2: function(condition, operator) {
  50744. return this._parenthesize$body$_EvaluateVisitor(condition, operator);
  50745. },
  50746. _async_evaluate$_parenthesize$1: function(condition) {
  50747. return this._async_evaluate$_parenthesize$2(condition, null);
  50748. },
  50749. _parenthesize$body$_EvaluateVisitor: function(condition, operator) {
  50750. var $async$goto = 0,
  50751. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  50752. $async$returnValue, $async$self = this, t1, $async$temp1;
  50753. var $async$_async_evaluate$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50754. if ($async$errorCode === 1)
  50755. return P._asyncRethrow($async$result, $async$completer);
  50756. while (true)
  50757. switch ($async$goto) {
  50758. case 0:
  50759. // Function start
  50760. if (!(condition instanceof M.SupportsNegation))
  50761. if (condition instanceof U.SupportsOperation)
  50762. t1 = operator == null || operator !== condition.operator;
  50763. else
  50764. t1 = false;
  50765. else
  50766. t1 = true;
  50767. $async$goto = t1 ? 3 : 5;
  50768. break;
  50769. case 3:
  50770. // then
  50771. $async$temp1 = H;
  50772. $async$goto = 6;
  50773. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  50774. case 6:
  50775. // returning from await.
  50776. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  50777. // goto return
  50778. $async$goto = 1;
  50779. break;
  50780. // goto join
  50781. $async$goto = 4;
  50782. break;
  50783. case 5:
  50784. // else
  50785. $async$goto = 7;
  50786. return P._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  50787. case 7:
  50788. // returning from await.
  50789. $async$returnValue = $async$result;
  50790. // goto return
  50791. $async$goto = 1;
  50792. break;
  50793. case 4:
  50794. // join
  50795. case 1:
  50796. // return
  50797. return P._asyncReturn($async$returnValue, $async$completer);
  50798. }
  50799. });
  50800. return P._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
  50801. },
  50802. visitVariableDeclaration$1: function(node) {
  50803. return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
  50804. },
  50805. visitVariableDeclaration$body$_EvaluateVisitor: function(node) {
  50806. var $async$goto = 0,
  50807. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50808. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  50809. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50810. if ($async$errorCode === 1)
  50811. return P._asyncRethrow($async$result, $async$completer);
  50812. while (true)
  50813. switch ($async$goto) {
  50814. case 0:
  50815. // Function start
  50816. if (node.isGuarded) {
  50817. if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
  50818. t1 = $async$self._async_evaluate$_configuration._values;
  50819. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  50820. if (t1 != null) {
  50821. $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure2($async$self, node, t1));
  50822. $async$returnValue = null;
  50823. // goto return
  50824. $async$goto = 1;
  50825. break;
  50826. }
  50827. }
  50828. value = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
  50829. if (value != null && !value.$eq(0, C.C_SassNull0)) {
  50830. $async$returnValue = null;
  50831. // goto return
  50832. $async$goto = 1;
  50833. break;
  50834. }
  50835. }
  50836. if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
  50837. t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  50838. t2 = node.span;
  50839. $async$self._async_evaluate$_logger.warn$4$deprecation$span$trace(0, t1, true, t2, $async$self._async_evaluate$_stackTrace$1(t2));
  50840. }
  50841. $async$temp1 = node;
  50842. $async$temp2 = E;
  50843. $async$temp3 = node;
  50844. $async$goto = 3;
  50845. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  50846. case 3:
  50847. // returning from await.
  50848. $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$result.withoutSlash$0()));
  50849. $async$returnValue = null;
  50850. // goto return
  50851. $async$goto = 1;
  50852. break;
  50853. case 1:
  50854. // return
  50855. return P._asyncReturn($async$returnValue, $async$completer);
  50856. }
  50857. });
  50858. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  50859. },
  50860. visitUseRule$1: function(node) {
  50861. return this.visitUseRule$body$_EvaluateVisitor(node);
  50862. },
  50863. visitUseRule$body$_EvaluateVisitor: function(node) {
  50864. var $async$goto = 0,
  50865. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50866. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  50867. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50868. if ($async$errorCode === 1)
  50869. return P._asyncRethrow($async$result, $async$completer);
  50870. while (true)
  50871. switch ($async$goto) {
  50872. case 0:
  50873. // Function start
  50874. t1 = node.configuration;
  50875. t2 = t1.length;
  50876. $async$goto = t2 === 0 ? 3 : 5;
  50877. break;
  50878. case 3:
  50879. // then
  50880. configuration = C.Configuration_Map_empty_null_true;
  50881. // goto join
  50882. $async$goto = 4;
  50883. break;
  50884. case 5:
  50885. // else
  50886. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  50887. _i = 0;
  50888. case 6:
  50889. // for condition
  50890. if (!(_i < t2)) {
  50891. // goto after for
  50892. $async$goto = 8;
  50893. break;
  50894. }
  50895. variable = t1[_i];
  50896. t4 = variable.name;
  50897. t5 = variable.expression;
  50898. $async$temp1 = t3;
  50899. $async$temp2 = t4;
  50900. $async$temp3 = Z;
  50901. $async$goto = 9;
  50902. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  50903. case 9:
  50904. // returning from await.
  50905. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate$_expressionNode$1(t5)));
  50906. case 7:
  50907. // for update
  50908. ++_i;
  50909. // goto for condition
  50910. $async$goto = 6;
  50911. break;
  50912. case 8:
  50913. // after for
  50914. configuration = new A.Configuration(t3, node, false);
  50915. case 4:
  50916. // join
  50917. $async$goto = 10;
  50918. return P._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
  50919. case 10:
  50920. // returning from await.
  50921. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
  50922. $async$returnValue = null;
  50923. // goto return
  50924. $async$goto = 1;
  50925. break;
  50926. case 1:
  50927. // return
  50928. return P._asyncReturn($async$returnValue, $async$completer);
  50929. }
  50930. });
  50931. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  50932. },
  50933. visitWarnRule$1: function(node) {
  50934. return this.visitWarnRule$body$_EvaluateVisitor(node);
  50935. },
  50936. visitWarnRule$body$_EvaluateVisitor: function(node) {
  50937. var $async$goto = 0,
  50938. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50939. $async$returnValue, $async$self = this, value, t1;
  50940. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50941. if ($async$errorCode === 1)
  50942. return P._asyncRethrow($async$result, $async$completer);
  50943. while (true)
  50944. switch ($async$goto) {
  50945. case 0:
  50946. // Function start
  50947. $async$goto = 3;
  50948. return P._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.legacy_Value), $async$visitWarnRule$1);
  50949. case 3:
  50950. // returning from await.
  50951. value = $async$result;
  50952. t1 = value instanceof D.SassString ? value.text : $async$self._async_evaluate$_serialize$2(value, node.expression);
  50953. $async$self._async_evaluate$_logger.warn$2$trace(0, t1, $async$self._async_evaluate$_stackTrace$1(node.span));
  50954. $async$returnValue = null;
  50955. // goto return
  50956. $async$goto = 1;
  50957. break;
  50958. case 1:
  50959. // return
  50960. return P._asyncReturn($async$returnValue, $async$completer);
  50961. }
  50962. });
  50963. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  50964. },
  50965. visitWhileRule$1: function(node) {
  50966. return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.legacy_Value);
  50967. },
  50968. visitBinaryOperationExpression$1: function(node) {
  50969. return this._addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure0(this, node), type$.legacy_Value);
  50970. },
  50971. visitValueExpression$1: function(node) {
  50972. return this.visitValueExpression$body$_EvaluateVisitor(node);
  50973. },
  50974. visitValueExpression$body$_EvaluateVisitor: function(node) {
  50975. var $async$goto = 0,
  50976. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  50977. $async$returnValue;
  50978. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50979. if ($async$errorCode === 1)
  50980. return P._asyncRethrow($async$result, $async$completer);
  50981. while (true)
  50982. switch ($async$goto) {
  50983. case 0:
  50984. // Function start
  50985. $async$returnValue = node.value;
  50986. // goto return
  50987. $async$goto = 1;
  50988. break;
  50989. case 1:
  50990. // return
  50991. return P._asyncReturn($async$returnValue, $async$completer);
  50992. }
  50993. });
  50994. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  50995. },
  50996. visitVariableExpression$1: function(node) {
  50997. return this.visitVariableExpression$body$_EvaluateVisitor(node);
  50998. },
  50999. visitVariableExpression$body$_EvaluateVisitor: function(node) {
  51000. var $async$goto = 0,
  51001. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51002. $async$returnValue, $async$self = this, result;
  51003. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51004. if ($async$errorCode === 1)
  51005. return P._asyncRethrow($async$result, $async$completer);
  51006. while (true)
  51007. switch ($async$goto) {
  51008. case 0:
  51009. // Function start
  51010. result = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
  51011. if (result != null) {
  51012. $async$returnValue = result;
  51013. // goto return
  51014. $async$goto = 1;
  51015. break;
  51016. }
  51017. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
  51018. case 1:
  51019. // return
  51020. return P._asyncReturn($async$returnValue, $async$completer);
  51021. }
  51022. });
  51023. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  51024. },
  51025. visitUnaryOperationExpression$1: function(node) {
  51026. return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
  51027. },
  51028. visitUnaryOperationExpression$body$_EvaluateVisitor: function(node) {
  51029. var $async$goto = 0,
  51030. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51031. $async$returnValue, $async$self = this, operand, t1;
  51032. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51033. if ($async$errorCode === 1)
  51034. return P._asyncRethrow($async$result, $async$completer);
  51035. while (true)
  51036. $async$outer:
  51037. switch ($async$goto) {
  51038. case 0:
  51039. // Function start
  51040. $async$goto = 3;
  51041. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  51042. case 3:
  51043. // returning from await.
  51044. operand = $async$result;
  51045. t1 = node.operator;
  51046. switch (t1) {
  51047. case C.UnaryOperator_j2w:
  51048. $async$returnValue = operand.unaryPlus$0();
  51049. // goto return
  51050. $async$goto = 1;
  51051. break $async$outer;
  51052. case C.UnaryOperator_U4G:
  51053. $async$returnValue = operand.unaryMinus$0();
  51054. // goto return
  51055. $async$goto = 1;
  51056. break $async$outer;
  51057. case C.UnaryOperator_zDx:
  51058. operand.toString;
  51059. $async$returnValue = new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  51060. // goto return
  51061. $async$goto = 1;
  51062. break $async$outer;
  51063. case C.UnaryOperator_not_not:
  51064. $async$returnValue = operand.unaryNot$0();
  51065. // goto return
  51066. $async$goto = 1;
  51067. break $async$outer;
  51068. default:
  51069. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  51070. }
  51071. case 1:
  51072. // return
  51073. return P._asyncReturn($async$returnValue, $async$completer);
  51074. }
  51075. });
  51076. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  51077. },
  51078. visitBooleanExpression$1: function(node) {
  51079. return this.visitBooleanExpression$body$_EvaluateVisitor(node);
  51080. },
  51081. visitBooleanExpression$body$_EvaluateVisitor: function(node) {
  51082. var $async$goto = 0,
  51083. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassBoolean),
  51084. $async$returnValue;
  51085. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51086. if ($async$errorCode === 1)
  51087. return P._asyncRethrow($async$result, $async$completer);
  51088. while (true)
  51089. switch ($async$goto) {
  51090. case 0:
  51091. // Function start
  51092. $async$returnValue = node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  51093. // goto return
  51094. $async$goto = 1;
  51095. break;
  51096. case 1:
  51097. // return
  51098. return P._asyncReturn($async$returnValue, $async$completer);
  51099. }
  51100. });
  51101. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  51102. },
  51103. visitIfExpression$1: function(node) {
  51104. return this.visitIfExpression$body$_EvaluateVisitor(node);
  51105. },
  51106. visitIfExpression$body$_EvaluateVisitor: function(node) {
  51107. var $async$goto = 0,
  51108. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51109. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  51110. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51111. if ($async$errorCode === 1)
  51112. return P._asyncRethrow($async$result, $async$completer);
  51113. while (true)
  51114. switch ($async$goto) {
  51115. case 0:
  51116. // Function start
  51117. $async$goto = 3;
  51118. return P._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  51119. case 3:
  51120. // returning from await.
  51121. pair = $async$result;
  51122. positional = pair.item1;
  51123. named = pair.item2;
  51124. t1 = J.getInterceptor$asx(positional);
  51125. $async$self._async_evaluate$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  51126. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  51127. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  51128. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  51129. $async$goto = 5;
  51130. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  51131. case 5:
  51132. // returning from await.
  51133. $async$goto = 4;
  51134. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  51135. case 4:
  51136. // returning from await.
  51137. $async$returnValue = $async$result;
  51138. // goto return
  51139. $async$goto = 1;
  51140. break;
  51141. case 1:
  51142. // return
  51143. return P._asyncReturn($async$returnValue, $async$completer);
  51144. }
  51145. });
  51146. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  51147. },
  51148. visitNullExpression$1: function(node) {
  51149. return this.visitNullExpression$body$_EvaluateVisitor(node);
  51150. },
  51151. visitNullExpression$body$_EvaluateVisitor: function(node) {
  51152. var $async$goto = 0,
  51153. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNull),
  51154. $async$returnValue;
  51155. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51156. if ($async$errorCode === 1)
  51157. return P._asyncRethrow($async$result, $async$completer);
  51158. while (true)
  51159. switch ($async$goto) {
  51160. case 0:
  51161. // Function start
  51162. $async$returnValue = C.C_SassNull0;
  51163. // goto return
  51164. $async$goto = 1;
  51165. break;
  51166. case 1:
  51167. // return
  51168. return P._asyncReturn($async$returnValue, $async$completer);
  51169. }
  51170. });
  51171. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  51172. },
  51173. visitNumberExpression$1: function(node) {
  51174. return this.visitNumberExpression$body$_EvaluateVisitor(node);
  51175. },
  51176. visitNumberExpression$body$_EvaluateVisitor: function(node) {
  51177. var $async$goto = 0,
  51178. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  51179. $async$returnValue;
  51180. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51181. if ($async$errorCode === 1)
  51182. return P._asyncRethrow($async$result, $async$completer);
  51183. while (true)
  51184. switch ($async$goto) {
  51185. case 0:
  51186. // Function start
  51187. $async$returnValue = T.SassNumber$(node.value, node.unit);
  51188. // goto return
  51189. $async$goto = 1;
  51190. break;
  51191. case 1:
  51192. // return
  51193. return P._asyncReturn($async$returnValue, $async$completer);
  51194. }
  51195. });
  51196. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  51197. },
  51198. visitParenthesizedExpression$1: function(node) {
  51199. return node.expression.accept$1(this);
  51200. },
  51201. visitColorExpression$1: function(node) {
  51202. return this.visitColorExpression$body$_EvaluateVisitor(node);
  51203. },
  51204. visitColorExpression$body$_EvaluateVisitor: function(node) {
  51205. var $async$goto = 0,
  51206. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassColor),
  51207. $async$returnValue;
  51208. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51209. if ($async$errorCode === 1)
  51210. return P._asyncRethrow($async$result, $async$completer);
  51211. while (true)
  51212. switch ($async$goto) {
  51213. case 0:
  51214. // Function start
  51215. $async$returnValue = node.value;
  51216. // goto return
  51217. $async$goto = 1;
  51218. break;
  51219. case 1:
  51220. // return
  51221. return P._asyncReturn($async$returnValue, $async$completer);
  51222. }
  51223. });
  51224. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  51225. },
  51226. visitListExpression$1: function(node) {
  51227. return this.visitListExpression$body$_EvaluateVisitor(node);
  51228. },
  51229. visitListExpression$body$_EvaluateVisitor: function(node) {
  51230. var $async$goto = 0,
  51231. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassList),
  51232. $async$returnValue, $async$self = this, $async$temp1;
  51233. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51234. if ($async$errorCode === 1)
  51235. return P._asyncRethrow($async$result, $async$completer);
  51236. while (true)
  51237. switch ($async$goto) {
  51238. case 0:
  51239. // Function start
  51240. $async$temp1 = D;
  51241. $async$goto = 3;
  51242. return P._asyncAwait(B.mapAsync(node.contents, new E._EvaluateVisitor_visitListExpression_closure0($async$self), type$.legacy_Expression, type$.legacy_Value), $async$visitListExpression$1);
  51243. case 3:
  51244. // returning from await.
  51245. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
  51246. // goto return
  51247. $async$goto = 1;
  51248. break;
  51249. case 1:
  51250. // return
  51251. return P._asyncReturn($async$returnValue, $async$completer);
  51252. }
  51253. });
  51254. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  51255. },
  51256. visitMapExpression$1: function(node) {
  51257. return this.visitMapExpression$body$_EvaluateVisitor(node);
  51258. },
  51259. visitMapExpression$body$_EvaluateVisitor: function(node) {
  51260. var $async$goto = 0,
  51261. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassMap),
  51262. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  51263. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51264. if ($async$errorCode === 1)
  51265. return P._asyncRethrow($async$result, $async$completer);
  51266. while (true)
  51267. switch ($async$goto) {
  51268. case 0:
  51269. // Function start
  51270. t1 = type$.legacy_Value;
  51271. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51272. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode);
  51273. t2 = node.pairs, t3 = t2.length, _i = 0;
  51274. case 3:
  51275. // for condition
  51276. if (!(_i < t3)) {
  51277. // goto after for
  51278. $async$goto = 5;
  51279. break;
  51280. }
  51281. pair = t2[_i];
  51282. t4 = pair.item1;
  51283. $async$goto = 6;
  51284. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  51285. case 6:
  51286. // returning from await.
  51287. keyValue = $async$result;
  51288. $async$goto = 7;
  51289. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  51290. case 7:
  51291. // returning from await.
  51292. valueValue = $async$result;
  51293. if (map.containsKey$1(keyValue))
  51294. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(t4.get$span())));
  51295. map.$indexSet(0, keyValue, valueValue);
  51296. keyNodes.$indexSet(0, keyValue, t4);
  51297. case 4:
  51298. // for update
  51299. ++_i;
  51300. // goto for condition
  51301. $async$goto = 3;
  51302. break;
  51303. case 5:
  51304. // after for
  51305. $async$returnValue = new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  51306. // goto return
  51307. $async$goto = 1;
  51308. break;
  51309. case 1:
  51310. // return
  51311. return P._asyncReturn($async$returnValue, $async$completer);
  51312. }
  51313. });
  51314. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  51315. },
  51316. visitFunctionExpression$1: function(node) {
  51317. return this.visitFunctionExpression$body$_EvaluateVisitor(node);
  51318. },
  51319. visitFunctionExpression$body$_EvaluateVisitor: function(node) {
  51320. var $async$goto = 0,
  51321. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51322. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  51323. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51324. if ($async$errorCode === 1)
  51325. return P._asyncRethrow($async$result, $async$completer);
  51326. while (true)
  51327. switch ($async$goto) {
  51328. case 0:
  51329. // Function start
  51330. t1 = {};
  51331. t2 = node.name;
  51332. plainName = t2.get$asPlain();
  51333. t1.$function = null;
  51334. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure1($async$self, node, plainName)) : null) == null ? 3 : 4;
  51335. break;
  51336. case 3:
  51337. // then
  51338. if (node.namespace != null)
  51339. throw H.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
  51340. $async$temp1 = t1;
  51341. $async$temp2 = L;
  51342. $async$goto = 5;
  51343. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  51344. case 5:
  51345. // returning from await.
  51346. $async$temp1.$function = new $async$temp2.PlainCssCallable($async$result);
  51347. case 4:
  51348. // join
  51349. oldInFunction = $async$self._async_evaluate$_inFunction;
  51350. $async$self._async_evaluate$_inFunction = true;
  51351. $async$goto = 6;
  51352. return P._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure2(t1, $async$self, node), type$.legacy_Value), $async$visitFunctionExpression$1);
  51353. case 6:
  51354. // returning from await.
  51355. result = $async$result;
  51356. $async$self._async_evaluate$_inFunction = oldInFunction;
  51357. $async$returnValue = result;
  51358. // goto return
  51359. $async$goto = 1;
  51360. break;
  51361. case 1:
  51362. // return
  51363. return P._asyncReturn($async$returnValue, $async$completer);
  51364. }
  51365. });
  51366. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  51367. },
  51368. _async_evaluate$_getFunction$2$namespace: function($name, namespace) {
  51369. var local = this._async_evaluate$_environment.getFunction$2$namespace($name, namespace);
  51370. if (local != null || namespace != null)
  51371. return local;
  51372. return this._async_evaluate$_builtInFunctions.$index(0, $name);
  51373. },
  51374. _async_evaluate$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  51375. return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run);
  51376. },
  51377. _runUserDefinedCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan, run) {
  51378. var $async$goto = 0,
  51379. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51380. $async$returnValue, $async$self = this, evaluated, t1, $name;
  51381. var $async$_async_evaluate$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51382. if ($async$errorCode === 1)
  51383. return P._asyncRethrow($async$result, $async$completer);
  51384. while (true)
  51385. switch ($async$goto) {
  51386. case 0:
  51387. // Function start
  51388. $async$goto = 3;
  51389. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$4);
  51390. case 3:
  51391. // returning from await.
  51392. evaluated = $async$result;
  51393. t1 = callable.declaration.name;
  51394. $name = t1 == null ? "@content" : t1 + "()";
  51395. $async$goto = 4;
  51396. return P._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run), type$.legacy_Value), $async$_async_evaluate$_runUserDefinedCallable$4);
  51397. case 4:
  51398. // returning from await.
  51399. $async$returnValue = $async$result;
  51400. // goto return
  51401. $async$goto = 1;
  51402. break;
  51403. case 1:
  51404. // return
  51405. return P._asyncReturn($async$returnValue, $async$completer);
  51406. }
  51407. });
  51408. return P._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$4, $async$completer);
  51409. },
  51410. _async_evaluate$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  51411. return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  51412. },
  51413. _runFunctionCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  51414. var $async$goto = 0,
  51415. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51416. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  51417. var $async$_async_evaluate$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51418. if ($async$errorCode === 1)
  51419. return P._asyncRethrow($async$result, $async$completer);
  51420. while (true)
  51421. switch ($async$goto) {
  51422. case 0:
  51423. // Function start
  51424. $async$goto = type$.legacy_AsyncBuiltInCallable._is(callable) ? 3 : 5;
  51425. break;
  51426. case 3:
  51427. // then
  51428. $async$goto = 6;
  51429. return P._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
  51430. case 6:
  51431. // returning from await.
  51432. result = $async$result;
  51433. if (result == null)
  51434. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  51435. $async$returnValue = result.withoutSlash$0();
  51436. // goto return
  51437. $async$goto = 1;
  51438. break;
  51439. // goto join
  51440. $async$goto = 4;
  51441. break;
  51442. case 5:
  51443. // else
  51444. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment._is(callable) ? 7 : 9;
  51445. break;
  51446. case 7:
  51447. // then
  51448. $async$goto = 10;
  51449. return P._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable)), $async$_async_evaluate$_runFunctionCallable$3);
  51450. case 10:
  51451. // returning from await.
  51452. $async$returnValue = $async$result.withoutSlash$0();
  51453. // goto return
  51454. $async$goto = 1;
  51455. break;
  51456. // goto join
  51457. $async$goto = 8;
  51458. break;
  51459. case 9:
  51460. // else
  51461. $async$goto = callable instanceof L.PlainCssCallable ? 11 : 13;
  51462. break;
  51463. case 11:
  51464. // then
  51465. t1 = $arguments.named;
  51466. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  51467. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  51468. t1 = H.S(callable.name) + "(";
  51469. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  51470. case 14:
  51471. // for condition
  51472. if (!(_i < t3)) {
  51473. // goto after for
  51474. $async$goto = 16;
  51475. break;
  51476. }
  51477. argument = t2[_i];
  51478. if (first)
  51479. first = false;
  51480. else
  51481. t1 += ", ";
  51482. $async$temp1 = H;
  51483. $async$goto = 17;
  51484. return P._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
  51485. case 17:
  51486. // returning from await.
  51487. t1 += $async$temp1.S($async$result);
  51488. case 15:
  51489. // for update
  51490. ++_i;
  51491. // goto for condition
  51492. $async$goto = 14;
  51493. break;
  51494. case 16:
  51495. // after for
  51496. t2 = $arguments.rest;
  51497. $async$goto = 18;
  51498. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
  51499. case 18:
  51500. // returning from await.
  51501. rest = $async$result;
  51502. if (rest != null) {
  51503. if (!first)
  51504. t1 += ", ";
  51505. t2 = t1 + H.S($async$self._async_evaluate$_serialize$2(rest, t2));
  51506. t1 = t2;
  51507. }
  51508. t1 += H.Primitives_stringFromCharCode(41);
  51509. $async$returnValue = new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  51510. // goto return
  51511. $async$goto = 1;
  51512. break;
  51513. // goto join
  51514. $async$goto = 12;
  51515. break;
  51516. case 13:
  51517. // else
  51518. $async$returnValue = null;
  51519. // goto return
  51520. $async$goto = 1;
  51521. break;
  51522. case 12:
  51523. // join
  51524. case 8:
  51525. // join
  51526. case 4:
  51527. // join
  51528. case 1:
  51529. // return
  51530. return P._asyncReturn($async$returnValue, $async$completer);
  51531. }
  51532. });
  51533. return P._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
  51534. },
  51535. _async_evaluate$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  51536. return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  51537. },
  51538. _runBuiltInCallable$body$_EvaluateVisitor: function($arguments, callable, nodeWithSpan) {
  51539. var $async$goto = 0,
  51540. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51541. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, evaluated, oldCallableNode, $async$exception;
  51542. var $async$_async_evaluate$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51543. if ($async$errorCode === 1) {
  51544. $async$currentError = $async$result;
  51545. $async$goto = $async$handler;
  51546. }
  51547. while (true)
  51548. switch ($async$goto) {
  51549. case 0:
  51550. // Function start
  51551. $async$goto = 3;
  51552. return P._asyncAwait($async$self._async_evaluate$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate$_runBuiltInCallable$3);
  51553. case 3:
  51554. // returning from await.
  51555. evaluated = $async$result;
  51556. oldCallableNode = $async$self._async_evaluate$_callableNode;
  51557. $async$self._async_evaluate$_callableNode = nodeWithSpan;
  51558. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  51559. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  51560. overload = tuple.item1;
  51561. callback = tuple.item2;
  51562. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure1(overload, evaluated, namedSet));
  51563. declaredArguments = overload.$arguments;
  51564. i = evaluated.positional.length, t1 = declaredArguments.length;
  51565. case 4:
  51566. // for condition
  51567. if (!(i < t1)) {
  51568. // goto after for
  51569. $async$goto = 6;
  51570. break;
  51571. }
  51572. argument = declaredArguments[i];
  51573. t2 = evaluated.positional;
  51574. t3 = evaluated.named.remove$1(0, argument.name);
  51575. $async$goto = t3 == null ? 7 : 8;
  51576. break;
  51577. case 7:
  51578. // then
  51579. t3 = argument.defaultValue;
  51580. $async$goto = 9;
  51581. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate$_runBuiltInCallable$3);
  51582. case 9:
  51583. // returning from await.
  51584. t3 = $async$result;
  51585. case 8:
  51586. // join
  51587. t2.push(t3);
  51588. case 5:
  51589. // for update
  51590. ++i;
  51591. // goto for condition
  51592. $async$goto = 4;
  51593. break;
  51594. case 6:
  51595. // after for
  51596. if (overload.restArgument != null) {
  51597. if (evaluated.positional.length > t1) {
  51598. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  51599. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  51600. } else
  51601. rest = C.List_empty5;
  51602. t1 = evaluated.named;
  51603. argumentList = D.SassArgumentList$(rest, t1, evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator);
  51604. evaluated.positional.push(argumentList);
  51605. } else
  51606. argumentList = null;
  51607. result = null;
  51608. $async$handler = 11;
  51609. $async$goto = 14;
  51610. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate$_runBuiltInCallable$3);
  51611. case 14:
  51612. // returning from await.
  51613. result = $async$result;
  51614. $async$handler = 2;
  51615. // goto after finally
  51616. $async$goto = 13;
  51617. break;
  51618. case 11:
  51619. // catch
  51620. $async$handler = 10;
  51621. $async$exception = $async$currentError;
  51622. t1 = H.unwrapException($async$exception);
  51623. if (type$.legacy_SassRuntimeException._is(t1))
  51624. throw $async$exception;
  51625. else if (t1 instanceof E.MultiSpanSassScriptException) {
  51626. error = t1;
  51627. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51628. } else if (t1 instanceof E.MultiSpanSassException) {
  51629. error0 = t1;
  51630. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate$_stackTrace$1(error0.get$span())));
  51631. } else {
  51632. error1 = t1;
  51633. message = null;
  51634. try {
  51635. message = H._asStringS(J.get$message$x(error1));
  51636. } catch (exception) {
  51637. H.unwrapException($async$exception);
  51638. message0 = J.toString$0$(error1);
  51639. message = message0;
  51640. }
  51641. throw H.wrapException($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span()));
  51642. }
  51643. // goto after finally
  51644. $async$goto = 13;
  51645. break;
  51646. case 10:
  51647. // uncaught
  51648. // goto rethrow
  51649. $async$goto = 2;
  51650. break;
  51651. case 13:
  51652. // after finally
  51653. $async$self._async_evaluate$_callableNode = oldCallableNode;
  51654. if (argumentList == null) {
  51655. $async$returnValue = result;
  51656. // goto return
  51657. $async$goto = 1;
  51658. break;
  51659. }
  51660. t1 = evaluated.named;
  51661. if (t1.get$isEmpty(t1)) {
  51662. $async$returnValue = result;
  51663. // goto return
  51664. $async$goto = 1;
  51665. break;
  51666. }
  51667. if (argumentList._wereKeywordsAccessed) {
  51668. $async$returnValue = result;
  51669. // goto return
  51670. $async$goto = 1;
  51671. break;
  51672. }
  51673. t1 = evaluated.named;
  51674. t1 = t1.get$keys(t1);
  51675. t1 = "No " + B.pluralize("argument", t1.get$length(t1), null) + " named ";
  51676. t2 = evaluated.named;
  51677. throw H.wrapException(E.MultiSpanSassRuntimeException$(t1 + H.S(B.toSentence(t2.get$keys(t2).map$1$1(0, new E._EvaluateVisitor__runBuiltInCallable_closure2(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  51678. case 1:
  51679. // return
  51680. return P._asyncReturn($async$returnValue, $async$completer);
  51681. case 2:
  51682. // rethrow
  51683. return P._asyncRethrow($async$currentError, $async$completer);
  51684. }
  51685. });
  51686. return P._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
  51687. },
  51688. _async_evaluate$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  51689. return this._evaluateArguments$body$_EvaluateVisitor($arguments, trackSpans);
  51690. },
  51691. _async_evaluate$_evaluateArguments$1: function($arguments) {
  51692. return this._async_evaluate$_evaluateArguments$2$trackSpans($arguments, null);
  51693. },
  51694. _evaluateArguments$body$_EvaluateVisitor: function($arguments, trackSpans) {
  51695. var $async$goto = 0,
  51696. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy__ArgumentResults),
  51697. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1, $async$temp2;
  51698. var $async$_async_evaluate$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51699. if ($async$errorCode === 1)
  51700. return P._asyncRethrow($async$result, $async$completer);
  51701. while (true)
  51702. switch ($async$goto) {
  51703. case 0:
  51704. // Function start
  51705. if (trackSpans == null)
  51706. trackSpans = $async$self._async_evaluate$_sourceMap;
  51707. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  51708. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  51709. case 3:
  51710. // for condition
  51711. if (!(_i < t3)) {
  51712. // goto after for
  51713. $async$goto = 5;
  51714. break;
  51715. }
  51716. $async$temp1 = t1;
  51717. $async$goto = 6;
  51718. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  51719. case 6:
  51720. // returning from await.
  51721. $async$temp1.push($async$result);
  51722. case 4:
  51723. // for update
  51724. ++_i;
  51725. // goto for condition
  51726. $async$goto = 3;
  51727. break;
  51728. case 5:
  51729. // after for
  51730. t4 = type$.legacy_String;
  51731. t5 = type$.legacy_Value;
  51732. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  51733. t7 = $arguments.named, t8 = t7.get$entries(t7), t8 = t8.get$iterator(t8);
  51734. case 7:
  51735. // for condition
  51736. if (!t8.moveNext$0()) {
  51737. // goto after for
  51738. $async$goto = 8;
  51739. break;
  51740. }
  51741. t9 = t8.get$current(t8);
  51742. $async$temp1 = t6;
  51743. $async$temp2 = t9.key;
  51744. $async$goto = 9;
  51745. return P._asyncAwait(t9.value.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  51746. case 9:
  51747. // returning from await.
  51748. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  51749. // goto for condition
  51750. $async$goto = 7;
  51751. break;
  51752. case 8:
  51753. // after for
  51754. if (trackSpans) {
  51755. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode);
  51756. for (_i = 0; _i < t3; ++_i)
  51757. t8.push($async$self._async_evaluate$_expressionNode$1(t2[_i]));
  51758. positionalNodes = t8;
  51759. } else
  51760. positionalNodes = null;
  51761. if (trackSpans) {
  51762. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  51763. for (t3 = t7.get$entries(t7), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  51764. t7 = t3.get$current(t3);
  51765. t2.$indexSet(0, t7.key, $async$self._async_evaluate$_expressionNode$1(t7.value));
  51766. }
  51767. namedNodes = t2;
  51768. } else
  51769. namedNodes = null;
  51770. t2 = $arguments.rest;
  51771. if (t2 == null) {
  51772. $async$returnValue = new E._ArgumentResults0(t1, positionalNodes, t6, namedNodes, C.ListSeparator_undecided);
  51773. // goto return
  51774. $async$goto = 1;
  51775. break;
  51776. }
  51777. $async$goto = 10;
  51778. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  51779. case 10:
  51780. // returning from await.
  51781. rest = $async$result;
  51782. restNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  51783. if (rest instanceof A.SassMap) {
  51784. $async$self._async_evaluate$_addRestMap$1$3(t6, rest, t2, t5);
  51785. if (namedNodes != null) {
  51786. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  51787. for (t3 = rest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t7 = type$.legacy_SassString; t3.moveNext$0();)
  51788. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  51789. namedNodes.addAll$1(0, t2);
  51790. }
  51791. separator = C.ListSeparator_undecided;
  51792. } else if (rest instanceof D.SassList) {
  51793. t2 = rest._list$_contents;
  51794. C.JSArray_methods.addAll$1(t1, t2);
  51795. if (positionalNodes != null)
  51796. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode));
  51797. separator = rest.separator;
  51798. if (rest instanceof D.SassArgumentList) {
  51799. rest._wereKeywordsAccessed = true;
  51800. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure0(t6, namedNodes, restNodeForSpan));
  51801. }
  51802. } else {
  51803. t1.push(rest);
  51804. if (positionalNodes != null)
  51805. positionalNodes.push(restNodeForSpan);
  51806. separator = C.ListSeparator_undecided;
  51807. }
  51808. t2 = $arguments.keywordRest;
  51809. if (t2 == null) {
  51810. $async$returnValue = new E._ArgumentResults0(t1, positionalNodes, t6, namedNodes, separator);
  51811. // goto return
  51812. $async$goto = 1;
  51813. break;
  51814. }
  51815. $async$goto = 11;
  51816. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$2$trackSpans);
  51817. case 11:
  51818. // returning from await.
  51819. keywordRest = $async$result;
  51820. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate$_expressionNode$1(t2) : null;
  51821. if (keywordRest instanceof A.SassMap) {
  51822. $async$self._async_evaluate$_addRestMap$1$3(t6, keywordRest, t2, t5);
  51823. if (namedNodes != null) {
  51824. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  51825. for (t3 = keywordRest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t4 = type$.legacy_SassString; t3.moveNext$0();)
  51826. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  51827. namedNodes.addAll$1(0, t2);
  51828. }
  51829. $async$returnValue = new E._ArgumentResults0(t1, positionalNodes, t6, namedNodes, separator);
  51830. // goto return
  51831. $async$goto = 1;
  51832. break;
  51833. } else
  51834. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  51835. case 1:
  51836. // return
  51837. return P._asyncReturn($async$returnValue, $async$completer);
  51838. }
  51839. });
  51840. return P._asyncStartSync($async$_async_evaluate$_evaluateArguments$2$trackSpans, $async$completer);
  51841. },
  51842. _async_evaluate$_evaluateMacroArguments$1: function(invocation) {
  51843. return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
  51844. },
  51845. _evaluateMacroArguments$body$_EvaluateVisitor: function(invocation) {
  51846. var $async$goto = 0,
  51847. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression),
  51848. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  51849. var $async$_async_evaluate$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51850. if ($async$errorCode === 1)
  51851. return P._asyncRethrow($async$result, $async$completer);
  51852. while (true)
  51853. switch ($async$goto) {
  51854. case 0:
  51855. // Function start
  51856. t1 = invocation.$arguments;
  51857. t2 = t1.rest;
  51858. if (t2 == null) {
  51859. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  51860. // goto return
  51861. $async$goto = 1;
  51862. break;
  51863. }
  51864. t3 = t1.positional;
  51865. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  51866. t3 = type$.legacy_Expression;
  51867. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  51868. $async$goto = 3;
  51869. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  51870. case 3:
  51871. // returning from await.
  51872. rest = $async$result;
  51873. if (rest instanceof A.SassMap)
  51874. $async$self._async_evaluate$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure3(), t3);
  51875. else if (rest instanceof D.SassList) {
  51876. t2 = rest._list$_contents;
  51877. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure4(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression*>")));
  51878. if (rest instanceof D.SassArgumentList) {
  51879. rest._wereKeywordsAccessed = true;
  51880. rest._keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure5(named));
  51881. }
  51882. } else
  51883. positional.push(new F.ValueExpression(rest, null));
  51884. t1 = t1.keywordRest;
  51885. if (t1 == null) {
  51886. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  51887. // goto return
  51888. $async$goto = 1;
  51889. break;
  51890. }
  51891. $async$goto = 4;
  51892. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  51893. case 4:
  51894. // returning from await.
  51895. keywordRest = $async$result;
  51896. if (keywordRest instanceof A.SassMap) {
  51897. $async$self._async_evaluate$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure6(), t3);
  51898. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  51899. // goto return
  51900. $async$goto = 1;
  51901. break;
  51902. } else
  51903. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  51904. case 1:
  51905. // return
  51906. return P._asyncReturn($async$returnValue, $async$completer);
  51907. }
  51908. });
  51909. return P._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
  51910. },
  51911. _async_evaluate$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  51912. var t1 = {};
  51913. t1.convert = convert;
  51914. if (convert == null)
  51915. t1.convert = new E._EvaluateVisitor__addRestMap_closure1($T);
  51916. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure2(t1, this, values, map, nodeWithSpan));
  51917. },
  51918. _async_evaluate$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  51919. return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  51920. },
  51921. _async_evaluate$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  51922. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
  51923. },
  51924. visitSelectorExpression$1: function(node) {
  51925. return this.visitSelectorExpression$body$_EvaluateVisitor(node);
  51926. },
  51927. visitSelectorExpression$body$_EvaluateVisitor: function(node) {
  51928. var $async$goto = 0,
  51929. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  51930. $async$returnValue, $async$self = this, t1;
  51931. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51932. if ($async$errorCode === 1)
  51933. return P._asyncRethrow($async$result, $async$completer);
  51934. while (true)
  51935. switch ($async$goto) {
  51936. case 0:
  51937. // Function start
  51938. t1 = $async$self._async_evaluate$_styleRule;
  51939. if (t1 == null) {
  51940. $async$returnValue = C.C_SassNull0;
  51941. // goto return
  51942. $async$goto = 1;
  51943. break;
  51944. }
  51945. $async$returnValue = t1.originalSelector.get$asSassList();
  51946. // goto return
  51947. $async$goto = 1;
  51948. break;
  51949. case 1:
  51950. // return
  51951. return P._asyncReturn($async$returnValue, $async$completer);
  51952. }
  51953. });
  51954. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  51955. },
  51956. visitStringExpression$1: function(node) {
  51957. return this.visitStringExpression$body$_EvaluateVisitor(node);
  51958. },
  51959. visitStringExpression$body$_EvaluateVisitor: function(node) {
  51960. var $async$goto = 0,
  51961. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassString),
  51962. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  51963. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51964. if ($async$errorCode === 1)
  51965. return P._asyncRethrow($async$result, $async$completer);
  51966. while (true)
  51967. switch ($async$goto) {
  51968. case 0:
  51969. // Function start
  51970. $async$temp1 = D;
  51971. $async$temp2 = J;
  51972. $async$goto = 3;
  51973. return P._asyncAwait(B.mapAsync(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure0($async$self), type$.legacy_Object, type$.legacy_String), $async$visitStringExpression$1);
  51974. case 3:
  51975. // returning from await.
  51976. $async$returnValue = new $async$temp1.SassString($async$temp2.join$0$ax($async$result), node.hasQuotes);
  51977. // goto return
  51978. $async$goto = 1;
  51979. break;
  51980. case 1:
  51981. // return
  51982. return P._asyncReturn($async$returnValue, $async$completer);
  51983. }
  51984. });
  51985. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  51986. },
  51987. visitCssAtRule$1: function(node) {
  51988. return this.visitCssAtRule$body$_EvaluateVisitor(node);
  51989. },
  51990. visitCssAtRule$body$_EvaluateVisitor: function(node) {
  51991. var $async$goto = 0,
  51992. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  51993. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  51994. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51995. if ($async$errorCode === 1)
  51996. return P._asyncRethrow($async$result, $async$completer);
  51997. while (true)
  51998. switch ($async$goto) {
  51999. case 0:
  52000. // Function start
  52001. if ($async$self._async_evaluate$_declarationName != null)
  52002. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  52003. if (node.isChildless) {
  52004. $async$self._async_evaluate$_parent.addChild$1(U.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  52005. $async$returnValue = null;
  52006. // goto return
  52007. $async$goto = 1;
  52008. break;
  52009. }
  52010. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  52011. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  52012. t1 = node.name;
  52013. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  52014. $async$self._async_evaluate$_inKeyframes = true;
  52015. else
  52016. $async$self._async_evaluate$_inUnknownAtRule = true;
  52017. $async$goto = 3;
  52018. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$(t1, node.span, false, node.value), new E._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure2(), type$.legacy_ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
  52019. case 3:
  52020. // returning from await.
  52021. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  52022. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  52023. case 1:
  52024. // return
  52025. return P._asyncReturn($async$returnValue, $async$completer);
  52026. }
  52027. });
  52028. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  52029. },
  52030. visitCssComment$1: function(node) {
  52031. return this.visitCssComment$body$_EvaluateVisitor(node);
  52032. },
  52033. visitCssComment$body$_EvaluateVisitor: function(node) {
  52034. var $async$goto = 0,
  52035. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52036. $async$self = this, t1, t2;
  52037. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52038. if ($async$errorCode === 1)
  52039. return P._asyncRethrow($async$result, $async$completer);
  52040. while (true)
  52041. switch ($async$goto) {
  52042. case 0:
  52043. // Function start
  52044. t1 = $async$self._async_evaluate$_parent;
  52045. t2 = $async$self._async_evaluate$_root;
  52046. if (t1 == t2 && $async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  52047. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  52048. $async$self._async_evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  52049. // implicit return
  52050. return P._asyncReturn(null, $async$completer);
  52051. }
  52052. });
  52053. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  52054. },
  52055. visitCssDeclaration$1: function(node) {
  52056. return this.visitCssDeclaration$body$_EvaluateVisitor(node);
  52057. },
  52058. visitCssDeclaration$body$_EvaluateVisitor: function(node) {
  52059. var $async$goto = 0,
  52060. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52061. $async$self = this, t1;
  52062. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52063. if ($async$errorCode === 1)
  52064. return P._asyncRethrow($async$result, $async$completer);
  52065. while (true)
  52066. switch ($async$goto) {
  52067. case 0:
  52068. // Function start
  52069. t1 = node.name;
  52070. $async$self._async_evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  52071. // implicit return
  52072. return P._asyncReturn(null, $async$completer);
  52073. }
  52074. });
  52075. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  52076. },
  52077. visitCssImport$1: function(node) {
  52078. return this.visitCssImport$body$_EvaluateVisitor(node);
  52079. },
  52080. visitCssImport$body$_EvaluateVisitor: function(node) {
  52081. var $async$goto = 0,
  52082. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52083. $async$self = this, modifiableNode, t1, t2;
  52084. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52085. if ($async$errorCode === 1)
  52086. return P._asyncRethrow($async$result, $async$completer);
  52087. while (true)
  52088. switch ($async$goto) {
  52089. case 0:
  52090. // Function start
  52091. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  52092. t1 = $async$self._async_evaluate$_parent;
  52093. t2 = $async$self._async_evaluate$_root;
  52094. if (t1 != t2)
  52095. t1.addChild$1(modifiableNode);
  52096. else if ($async$self._async_evaluate$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  52097. $async$self._async_evaluate$_root.addChild$1(modifiableNode);
  52098. $async$self._async_evaluate$_endOfImports = $async$self._async_evaluate$_endOfImports + 1;
  52099. } else {
  52100. t1 = $async$self._async_evaluate$_outOfOrderImports;
  52101. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(modifiableNode);
  52102. }
  52103. // implicit return
  52104. return P._asyncReturn(null, $async$completer);
  52105. }
  52106. });
  52107. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  52108. },
  52109. visitCssKeyframeBlock$1: function(node) {
  52110. return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
  52111. },
  52112. visitCssKeyframeBlock$body$_EvaluateVisitor: function(node) {
  52113. var $async$goto = 0,
  52114. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52115. $async$self = this;
  52116. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52117. if ($async$errorCode === 1)
  52118. return P._asyncRethrow($async$result, $async$completer);
  52119. while (true)
  52120. switch ($async$goto) {
  52121. case 0:
  52122. // Function start
  52123. $async$goto = 2;
  52124. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$(node.selector, node.span), new E._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
  52125. case 2:
  52126. // returning from await.
  52127. // implicit return
  52128. return P._asyncReturn(null, $async$completer);
  52129. }
  52130. });
  52131. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  52132. },
  52133. visitCssMediaRule$1: function(node) {
  52134. return this.visitCssMediaRule$body$_EvaluateVisitor(node);
  52135. },
  52136. visitCssMediaRule$body$_EvaluateVisitor: function(node) {
  52137. var $async$goto = 0,
  52138. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52139. $async$returnValue, $async$self = this, t1, mergedQueries;
  52140. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52141. if ($async$errorCode === 1)
  52142. return P._asyncRethrow($async$result, $async$completer);
  52143. while (true)
  52144. switch ($async$goto) {
  52145. case 0:
  52146. // Function start
  52147. if ($async$self._async_evaluate$_declarationName != null)
  52148. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  52149. t1 = $async$self._async_evaluate$_mediaQueries;
  52150. mergedQueries = t1 == null ? null : $async$self._async_evaluate$_mergeMediaQueries$2(t1, node.queries);
  52151. t1 = mergedQueries == null;
  52152. if (!t1 && mergedQueries.length === 0) {
  52153. $async$returnValue = null;
  52154. // goto return
  52155. $async$goto = 1;
  52156. break;
  52157. }
  52158. t1 = t1 ? node.queries : mergedQueries;
  52159. $async$goto = 3;
  52160. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure1($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure2(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
  52161. case 3:
  52162. // returning from await.
  52163. case 1:
  52164. // return
  52165. return P._asyncReturn($async$returnValue, $async$completer);
  52166. }
  52167. });
  52168. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  52169. },
  52170. visitCssStyleRule$1: function(node) {
  52171. return this.visitCssStyleRule$body$_EvaluateVisitor(node);
  52172. },
  52173. visitCssStyleRule$body$_EvaluateVisitor: function(node) {
  52174. var $async$goto = 0,
  52175. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52176. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  52177. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52178. if ($async$errorCode === 1)
  52179. return P._asyncRethrow($async$result, $async$completer);
  52180. while (true)
  52181. switch ($async$goto) {
  52182. case 0:
  52183. // Function start
  52184. if ($async$self._async_evaluate$_declarationName != null)
  52185. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Style_, node.span));
  52186. t1 = node.selector;
  52187. t2 = t1.value;
  52188. t3 = $async$self._async_evaluate$_styleRule;
  52189. t3 = t3 == null ? null : t3.originalSelector;
  52190. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate$_atRootExcludingStyleRule);
  52191. rule = X.ModifiableCssStyleRule$($async$self._async_evaluate$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate$_mediaQueries), node.span, originalSelector);
  52192. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  52193. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  52194. $async$goto = 2;
  52195. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure1($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure2(), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
  52196. case 2:
  52197. // returning from await.
  52198. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  52199. if (!($async$self._async_evaluate$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  52200. t1 = $async$self._async_evaluate$_parent.children;
  52201. t1 = !t1.get$isEmpty(t1);
  52202. } else
  52203. t1 = false;
  52204. if (t1) {
  52205. t1 = $async$self._async_evaluate$_parent.children;
  52206. t1.get$last(t1).isGroupEnd = true;
  52207. }
  52208. // implicit return
  52209. return P._asyncReturn(null, $async$completer);
  52210. }
  52211. });
  52212. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  52213. },
  52214. visitCssStylesheet$1: function(node) {
  52215. return this.visitCssStylesheet$body$_EvaluateVisitor(node);
  52216. },
  52217. visitCssStylesheet$body$_EvaluateVisitor: function(node) {
  52218. var $async$goto = 0,
  52219. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52220. $async$self = this, t1;
  52221. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52222. if ($async$errorCode === 1)
  52223. return P._asyncRethrow($async$result, $async$completer);
  52224. while (true)
  52225. switch ($async$goto) {
  52226. case 0:
  52227. // Function start
  52228. t1 = J.get$iterator$ax(node.get$children(node));
  52229. case 2:
  52230. // for condition
  52231. if (!t1.moveNext$0()) {
  52232. // goto after for
  52233. $async$goto = 3;
  52234. break;
  52235. }
  52236. $async$goto = 4;
  52237. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  52238. case 4:
  52239. // returning from await.
  52240. // goto for condition
  52241. $async$goto = 2;
  52242. break;
  52243. case 3:
  52244. // after for
  52245. // implicit return
  52246. return P._asyncReturn(null, $async$completer);
  52247. }
  52248. });
  52249. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  52250. },
  52251. visitCssSupportsRule$1: function(node) {
  52252. return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
  52253. },
  52254. visitCssSupportsRule$body$_EvaluateVisitor: function(node) {
  52255. var $async$goto = 0,
  52256. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  52257. $async$self = this;
  52258. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52259. if ($async$errorCode === 1)
  52260. return P._asyncRethrow($async$result, $async$completer);
  52261. while (true)
  52262. switch ($async$goto) {
  52263. case 0:
  52264. // Function start
  52265. if ($async$self._async_evaluate$_declarationName != null)
  52266. throw H.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  52267. $async$goto = 2;
  52268. return P._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$(node.condition, node.span), new E._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.legacy_ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
  52269. case 2:
  52270. // returning from await.
  52271. // implicit return
  52272. return P._asyncReturn(null, $async$completer);
  52273. }
  52274. });
  52275. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  52276. },
  52277. _async_evaluate$_handleReturn$1$2: function(list, callback) {
  52278. return this._handleReturn$body$_EvaluateVisitor(list, callback);
  52279. },
  52280. _async_evaluate$_handleReturn$2: function(list, callback) {
  52281. return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
  52282. },
  52283. _handleReturn$body$_EvaluateVisitor: function(list, callback) {
  52284. var $async$goto = 0,
  52285. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  52286. $async$returnValue, t1, _i, result;
  52287. var $async$_async_evaluate$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52288. if ($async$errorCode === 1)
  52289. return P._asyncRethrow($async$result, $async$completer);
  52290. while (true)
  52291. switch ($async$goto) {
  52292. case 0:
  52293. // Function start
  52294. t1 = list.length, _i = 0;
  52295. case 3:
  52296. // for condition
  52297. if (!(_i < list.length)) {
  52298. // goto after for
  52299. $async$goto = 5;
  52300. break;
  52301. }
  52302. $async$goto = 6;
  52303. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
  52304. case 6:
  52305. // returning from await.
  52306. result = $async$result;
  52307. if (result != null) {
  52308. $async$returnValue = result;
  52309. // goto return
  52310. $async$goto = 1;
  52311. break;
  52312. }
  52313. case 4:
  52314. // for update
  52315. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  52316. // goto for condition
  52317. $async$goto = 3;
  52318. break;
  52319. case 5:
  52320. // after for
  52321. $async$returnValue = null;
  52322. // goto return
  52323. $async$goto = 1;
  52324. break;
  52325. case 1:
  52326. // return
  52327. return P._asyncReturn($async$returnValue, $async$completer);
  52328. }
  52329. });
  52330. return P._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
  52331. },
  52332. _async_evaluate$_withEnvironment$1$2: function(environment, callback, $T) {
  52333. return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T._eval$1("0*"));
  52334. },
  52335. _withEnvironment$body$_EvaluateVisitor: function(environment, callback, $T, $async$type) {
  52336. var $async$goto = 0,
  52337. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52338. $async$returnValue, $async$self = this, result, oldEnvironment;
  52339. var $async$_async_evaluate$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52340. if ($async$errorCode === 1)
  52341. return P._asyncRethrow($async$result, $async$completer);
  52342. while (true)
  52343. switch ($async$goto) {
  52344. case 0:
  52345. // Function start
  52346. oldEnvironment = $async$self._async_evaluate$_environment;
  52347. $async$self._async_evaluate$_environment = environment;
  52348. $async$goto = 3;
  52349. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
  52350. case 3:
  52351. // returning from await.
  52352. result = $async$result;
  52353. $async$self._async_evaluate$_environment = oldEnvironment;
  52354. $async$returnValue = result;
  52355. // goto return
  52356. $async$goto = 1;
  52357. break;
  52358. case 1:
  52359. // return
  52360. return P._asyncReturn($async$returnValue, $async$completer);
  52361. }
  52362. });
  52363. return P._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
  52364. },
  52365. _async_evaluate$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  52366. return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
  52367. },
  52368. _async_evaluate$_interpolationToValue$1: function(interpolation) {
  52369. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  52370. },
  52371. _async_evaluate$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  52372. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  52373. },
  52374. _interpolationToValue$body$_EvaluateVisitor: function(interpolation, trim, warnForColor) {
  52375. var $async$goto = 0,
  52376. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CssValue_legacy_String),
  52377. $async$returnValue, $async$self = this, result, t1;
  52378. var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52379. if ($async$errorCode === 1)
  52380. return P._asyncRethrow($async$result, $async$completer);
  52381. while (true)
  52382. switch ($async$goto) {
  52383. case 0:
  52384. // Function start
  52385. $async$goto = 3;
  52386. return P._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
  52387. case 3:
  52388. // returning from await.
  52389. result = $async$result;
  52390. t1 = trim ? B.trimAscii(result, true) : result;
  52391. $async$returnValue = new F.CssValue(t1, interpolation.span, type$.CssValue_legacy_String);
  52392. // goto return
  52393. $async$goto = 1;
  52394. break;
  52395. case 1:
  52396. // return
  52397. return P._asyncReturn($async$returnValue, $async$completer);
  52398. }
  52399. });
  52400. return P._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
  52401. },
  52402. _async_evaluate$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  52403. return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
  52404. },
  52405. _async_evaluate$_performInterpolation$1: function(interpolation) {
  52406. return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
  52407. },
  52408. _performInterpolation$body$_EvaluateVisitor: function(interpolation, warnForColor) {
  52409. var $async$goto = 0,
  52410. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  52411. $async$returnValue, $async$self = this, $async$temp1;
  52412. var $async$_async_evaluate$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52413. if ($async$errorCode === 1)
  52414. return P._asyncRethrow($async$result, $async$completer);
  52415. while (true)
  52416. switch ($async$goto) {
  52417. case 0:
  52418. // Function start
  52419. $async$temp1 = J;
  52420. $async$goto = 3;
  52421. return P._asyncAwait(B.mapAsync(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure0($async$self, warnForColor), type$.legacy_Object, type$.legacy_String), $async$_async_evaluate$_performInterpolation$2$warnForColor);
  52422. case 3:
  52423. // returning from await.
  52424. $async$returnValue = $async$temp1.join$0$ax($async$result);
  52425. // goto return
  52426. $async$goto = 1;
  52427. break;
  52428. case 1:
  52429. // return
  52430. return P._asyncReturn($async$returnValue, $async$completer);
  52431. }
  52432. });
  52433. return P._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
  52434. },
  52435. _evaluateToCss$2$quote: function(expression, quote) {
  52436. return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
  52437. },
  52438. _evaluateToCss$1: function(expression) {
  52439. return this._evaluateToCss$2$quote(expression, true);
  52440. },
  52441. _evaluateToCss$body$_EvaluateVisitor: function(expression, quote) {
  52442. var $async$goto = 0,
  52443. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  52444. $async$returnValue, $async$self = this;
  52445. var $async$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52446. if ($async$errorCode === 1)
  52447. return P._asyncRethrow($async$result, $async$completer);
  52448. while (true)
  52449. switch ($async$goto) {
  52450. case 0:
  52451. // Function start
  52452. $async$goto = 3;
  52453. return P._asyncAwait(expression.accept$1($async$self), $async$_evaluateToCss$2$quote);
  52454. case 3:
  52455. // returning from await.
  52456. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
  52457. // goto return
  52458. $async$goto = 1;
  52459. break;
  52460. case 1:
  52461. // return
  52462. return P._asyncReturn($async$returnValue, $async$completer);
  52463. }
  52464. });
  52465. return P._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
  52466. },
  52467. _async_evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  52468. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure0(value, quote));
  52469. },
  52470. _async_evaluate$_serialize$2: function(value, nodeWithSpan) {
  52471. return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  52472. },
  52473. _async_evaluate$_expressionNode$1: function(expression) {
  52474. var t1;
  52475. if (!this._async_evaluate$_sourceMap)
  52476. return null;
  52477. if (expression instanceof S.VariableExpression) {
  52478. t1 = this._async_evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  52479. return t1 == null ? expression : t1;
  52480. } else
  52481. return expression;
  52482. },
  52483. _async_evaluate$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  52484. return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T._eval$1("0*"));
  52485. },
  52486. _async_evaluate$_withParent$2$2: function(node, callback, $S, $T) {
  52487. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  52488. },
  52489. _async_evaluate$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  52490. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  52491. },
  52492. _withParent$body$_EvaluateVisitor: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  52493. var $async$goto = 0,
  52494. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52495. $async$returnValue, $async$self = this, oldParent, result;
  52496. var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52497. if ($async$errorCode === 1)
  52498. return P._asyncRethrow($async$result, $async$completer);
  52499. while (true)
  52500. switch ($async$goto) {
  52501. case 0:
  52502. // Function start
  52503. $async$self._async_evaluate$_addChild$2$through(node, through);
  52504. oldParent = $async$self._async_evaluate$_parent;
  52505. $async$self._async_evaluate$_parent = node;
  52506. $async$goto = 3;
  52507. return P._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*")), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
  52508. case 3:
  52509. // returning from await.
  52510. result = $async$result;
  52511. $async$self._async_evaluate$_parent = oldParent;
  52512. $async$returnValue = result;
  52513. // goto return
  52514. $async$goto = 1;
  52515. break;
  52516. case 1:
  52517. // return
  52518. return P._asyncReturn($async$returnValue, $async$completer);
  52519. }
  52520. });
  52521. return P._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
  52522. },
  52523. _async_evaluate$_addChild$2$through: function(node, through) {
  52524. var grandparent,
  52525. $parent = this._async_evaluate$_parent;
  52526. if (through != null) {
  52527. for (; through.call$1($parent);)
  52528. $parent = $parent._parent;
  52529. if ($parent.get$hasFollowingSibling()) {
  52530. grandparent = $parent._parent;
  52531. $parent = $parent.copyWithoutChildren$0();
  52532. grandparent.addChild$1($parent);
  52533. }
  52534. }
  52535. $parent.addChild$1(node);
  52536. },
  52537. _async_evaluate$_addChild$1: function(node) {
  52538. return this._async_evaluate$_addChild$2$through(node, null);
  52539. },
  52540. _async_evaluate$_withStyleRule$1$2: function(rule, callback, $T) {
  52541. return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T._eval$1("0*"));
  52542. },
  52543. _withStyleRule$body$_EvaluateVisitor: function(rule, callback, $T, $async$type) {
  52544. var $async$goto = 0,
  52545. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52546. $async$returnValue, $async$self = this, result, oldRule;
  52547. var $async$_async_evaluate$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52548. if ($async$errorCode === 1)
  52549. return P._asyncRethrow($async$result, $async$completer);
  52550. while (true)
  52551. switch ($async$goto) {
  52552. case 0:
  52553. // Function start
  52554. oldRule = $async$self._async_evaluate$_styleRule;
  52555. $async$self._async_evaluate$_styleRule = rule;
  52556. $async$goto = 3;
  52557. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
  52558. case 3:
  52559. // returning from await.
  52560. result = $async$result;
  52561. $async$self._async_evaluate$_styleRule = oldRule;
  52562. $async$returnValue = result;
  52563. // goto return
  52564. $async$goto = 1;
  52565. break;
  52566. case 1:
  52567. // return
  52568. return P._asyncReturn($async$returnValue, $async$completer);
  52569. }
  52570. });
  52571. return P._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
  52572. },
  52573. _async_evaluate$_withMediaQueries$1$2: function(queries, callback, $T) {
  52574. return this._withMediaQueries$body$_EvaluateVisitor(queries, callback, $T, $T._eval$1("0*"));
  52575. },
  52576. _withMediaQueries$body$_EvaluateVisitor: function(queries, callback, $T, $async$type) {
  52577. var $async$goto = 0,
  52578. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52579. $async$returnValue, $async$self = this, result, oldMediaQueries;
  52580. var $async$_async_evaluate$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52581. if ($async$errorCode === 1)
  52582. return P._asyncRethrow($async$result, $async$completer);
  52583. while (true)
  52584. switch ($async$goto) {
  52585. case 0:
  52586. // Function start
  52587. oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
  52588. $async$self._async_evaluate$_mediaQueries = queries;
  52589. $async$goto = 3;
  52590. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$2);
  52591. case 3:
  52592. // returning from await.
  52593. result = $async$result;
  52594. $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
  52595. $async$returnValue = result;
  52596. // goto return
  52597. $async$goto = 1;
  52598. break;
  52599. case 1:
  52600. // return
  52601. return P._asyncReturn($async$returnValue, $async$completer);
  52602. }
  52603. });
  52604. return P._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$2, $async$completer);
  52605. },
  52606. _async_evaluate$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  52607. return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T._eval$1("0*"));
  52608. },
  52609. _withStackFrame$body$_EvaluateVisitor: function(member, nodeWithSpan, callback, $T, $async$type) {
  52610. var $async$goto = 0,
  52611. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52612. $async$returnValue, $async$self = this, oldMember, result, t1;
  52613. var $async$_async_evaluate$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52614. if ($async$errorCode === 1)
  52615. return P._asyncRethrow($async$result, $async$completer);
  52616. while (true)
  52617. switch ($async$goto) {
  52618. case 0:
  52619. // Function start
  52620. t1 = $async$self._async_evaluate$_stack;
  52621. t1.push(new S.Tuple2($async$self._async_evaluate$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode));
  52622. oldMember = $async$self._async_evaluate$_member;
  52623. $async$self._async_evaluate$_member = member;
  52624. $async$goto = 3;
  52625. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
  52626. case 3:
  52627. // returning from await.
  52628. result = $async$result;
  52629. $async$self._async_evaluate$_member = oldMember;
  52630. t1.pop();
  52631. $async$returnValue = result;
  52632. // goto return
  52633. $async$goto = 1;
  52634. break;
  52635. case 1:
  52636. // return
  52637. return P._asyncReturn($async$returnValue, $async$completer);
  52638. }
  52639. });
  52640. return P._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
  52641. },
  52642. _async_evaluate$_stackFrame$2: function(member, span) {
  52643. var url = span.file.url;
  52644. return B.frameForSpan(span, member, url != null && this._async_evaluate$_importCache != null ? this._async_evaluate$_importCache.humanize$1(url) : url);
  52645. },
  52646. _async_evaluate$_stackTrace$1: function(span) {
  52647. var t2, cur, _this = this,
  52648. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  52649. for (t2 = _this._async_evaluate$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure0(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  52650. cur = t2.__internal$_current;
  52651. t1.push(cur);
  52652. }
  52653. if (span != null)
  52654. t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
  52655. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  52656. },
  52657. _async_evaluate$_stackTrace$0: function() {
  52658. return this._async_evaluate$_stackTrace$1(null);
  52659. },
  52660. _async_evaluate$_warn$3$deprecation: function(message, span, deprecation) {
  52661. return this._async_evaluate$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, this._async_evaluate$_stackTrace$1(span));
  52662. },
  52663. _async_evaluate$_warn$2: function(message, span) {
  52664. return this._async_evaluate$_warn$3$deprecation(message, span, false);
  52665. },
  52666. _async_evaluate$_exception$2: function(message, span) {
  52667. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span() : span;
  52668. return new E.SassRuntimeException(this._async_evaluate$_stackTrace$1(span), message, t1);
  52669. },
  52670. _async_evaluate$_exception$1: function(message) {
  52671. return this._async_evaluate$_exception$2(message, null);
  52672. },
  52673. _async_evaluate$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  52674. var t1 = C.JSArray_methods.get$last(this._async_evaluate$_stack).item2.get$span();
  52675. return new E.MultiSpanSassRuntimeException(this._async_evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  52676. },
  52677. _async_evaluate$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  52678. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  52679. try {
  52680. t1 = callback.call$0();
  52681. return t1;
  52682. } catch (exception) {
  52683. t1 = H.unwrapException(exception);
  52684. if (t1 instanceof E.SassFormatException) {
  52685. error = t1;
  52686. t1 = error;
  52687. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  52688. span = nodeWithSpan.get$span();
  52689. t1 = span;
  52690. t2 = span;
  52691. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  52692. t2 = Y.SourceFile$fromString(syntheticFile, span.file.url);
  52693. t1 = span;
  52694. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  52695. t3 = error;
  52696. t3 = G.SourceSpanException.prototype.get$span.call(t3);
  52697. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  52698. t4 = span;
  52699. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  52700. t5 = error;
  52701. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  52702. syntheticSpan = t2.span$2(t1.offset + t3.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  52703. throw H.wrapException(this._async_evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  52704. } else
  52705. throw exception;
  52706. }
  52707. },
  52708. _async_evaluate$_adjustParseError$2: function(nodeWithSpan, callback) {
  52709. return this._async_evaluate$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  52710. },
  52711. _async_evaluate$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  52712. var error, error0, t1, exception;
  52713. try {
  52714. t1 = callback.call$0();
  52715. return t1;
  52716. } catch (exception) {
  52717. t1 = H.unwrapException(exception);
  52718. if (t1 instanceof E.MultiSpanSassScriptException) {
  52719. error = t1;
  52720. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  52721. } else if (t1 instanceof E.SassScriptException) {
  52722. error0 = t1;
  52723. throw H.wrapException(this._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  52724. } else
  52725. throw exception;
  52726. }
  52727. },
  52728. _async_evaluate$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  52729. return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  52730. },
  52731. _addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  52732. return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  52733. },
  52734. _addExceptionSpanAsync$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  52735. var $async$goto = 0,
  52736. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52737. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  52738. var $async$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52739. if ($async$errorCode === 1) {
  52740. $async$currentError = $async$result;
  52741. $async$goto = $async$handler;
  52742. }
  52743. while (true)
  52744. switch ($async$goto) {
  52745. case 0:
  52746. // Function start
  52747. $async$handler = 4;
  52748. $async$goto = 7;
  52749. return P._asyncAwait(callback.call$0(), $async$_addExceptionSpanAsync$1$2);
  52750. case 7:
  52751. // returning from await.
  52752. t1 = $async$result;
  52753. $async$returnValue = t1;
  52754. // goto return
  52755. $async$goto = 1;
  52756. break;
  52757. $async$handler = 2;
  52758. // goto after finally
  52759. $async$goto = 6;
  52760. break;
  52761. case 4:
  52762. // catch
  52763. $async$handler = 3;
  52764. $async$exception = $async$currentError;
  52765. t1 = H.unwrapException($async$exception);
  52766. if (t1 instanceof E.MultiSpanSassScriptException) {
  52767. error = t1;
  52768. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  52769. } else if (t1 instanceof E.SassScriptException) {
  52770. error0 = t1;
  52771. throw H.wrapException($async$self._async_evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  52772. } else
  52773. throw $async$exception;
  52774. // goto after finally
  52775. $async$goto = 6;
  52776. break;
  52777. case 3:
  52778. // uncaught
  52779. // goto rethrow
  52780. $async$goto = 2;
  52781. break;
  52782. case 6:
  52783. // after finally
  52784. case 1:
  52785. // return
  52786. return P._asyncReturn($async$returnValue, $async$completer);
  52787. case 2:
  52788. // rethrow
  52789. return P._asyncRethrow($async$currentError, $async$completer);
  52790. }
  52791. });
  52792. return P._asyncStartSync($async$_addExceptionSpanAsync$1$2, $async$completer);
  52793. },
  52794. _async_evaluate$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  52795. return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  52796. },
  52797. _addErrorSpan$body$_EvaluateVisitor: function(nodeWithSpan, callback, $T, $async$type) {
  52798. var $async$goto = 0,
  52799. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  52800. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  52801. var $async$_async_evaluate$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52802. if ($async$errorCode === 1) {
  52803. $async$currentError = $async$result;
  52804. $async$goto = $async$handler;
  52805. }
  52806. while (true)
  52807. switch ($async$goto) {
  52808. case 0:
  52809. // Function start
  52810. $async$handler = 4;
  52811. $async$goto = 7;
  52812. return P._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
  52813. case 7:
  52814. // returning from await.
  52815. t1 = $async$result;
  52816. $async$returnValue = t1;
  52817. // goto return
  52818. $async$goto = 1;
  52819. break;
  52820. $async$handler = 2;
  52821. // goto after finally
  52822. $async$goto = 6;
  52823. break;
  52824. case 4:
  52825. // catch
  52826. $async$handler = 3;
  52827. $async$exception = $async$currentError;
  52828. t1 = H.unwrapException($async$exception);
  52829. if (type$.legacy_SassRuntimeException._is(t1)) {
  52830. error = t1;
  52831. t1 = error.get$span();
  52832. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  52833. throw $async$exception;
  52834. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate$_stackTrace$0()));
  52835. } else
  52836. throw $async$exception;
  52837. // goto after finally
  52838. $async$goto = 6;
  52839. break;
  52840. case 3:
  52841. // uncaught
  52842. // goto rethrow
  52843. $async$goto = 2;
  52844. break;
  52845. case 6:
  52846. // after finally
  52847. case 1:
  52848. // return
  52849. return P._asyncReturn($async$returnValue, $async$completer);
  52850. case 2:
  52851. // rethrow
  52852. return P._asyncRethrow($async$currentError, $async$completer);
  52853. }
  52854. });
  52855. return P._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
  52856. }
  52857. };
  52858. E._EvaluateVisitor_closure9.prototype = {
  52859. call$1: function($arguments) {
  52860. var module, t2,
  52861. t1 = J.getInterceptor$asx($arguments),
  52862. variable = t1.$index($arguments, 0).assertString$1("name");
  52863. t1 = t1.$index($arguments, 1).get$realNull();
  52864. module = t1 == null ? null : t1.assertString$1("module");
  52865. t1 = this.$this._async_evaluate$_environment;
  52866. t2 = variable.text;
  52867. t2.toString;
  52868. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  52869. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  52870. },
  52871. $signature: 22
  52872. };
  52873. E._EvaluateVisitor_closure10.prototype = {
  52874. call$1: function($arguments) {
  52875. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  52876. t1 = this.$this._async_evaluate$_environment,
  52877. t2 = variable.text;
  52878. t2.toString;
  52879. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  52880. },
  52881. $signature: 22
  52882. };
  52883. E._EvaluateVisitor_closure11.prototype = {
  52884. call$1: function($arguments) {
  52885. var module, t2, t3, t4,
  52886. t1 = J.getInterceptor$asx($arguments),
  52887. variable = t1.$index($arguments, 0).assertString$1("name");
  52888. t1 = t1.$index($arguments, 1).get$realNull();
  52889. module = t1 == null ? null : t1.assertString$1("module");
  52890. t1 = this.$this;
  52891. t2 = t1._async_evaluate$_environment;
  52892. t3 = variable.text;
  52893. t3.toString;
  52894. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  52895. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  52896. },
  52897. $signature: 22
  52898. };
  52899. E._EvaluateVisitor_closure12.prototype = {
  52900. call$1: function($arguments) {
  52901. var module, t2,
  52902. t1 = J.getInterceptor$asx($arguments),
  52903. variable = t1.$index($arguments, 0).assertString$1("name");
  52904. t1 = t1.$index($arguments, 1).get$realNull();
  52905. module = t1 == null ? null : t1.assertString$1("module");
  52906. t1 = this.$this._async_evaluate$_environment;
  52907. t2 = variable.text;
  52908. t2.toString;
  52909. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  52910. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  52911. },
  52912. $signature: 22
  52913. };
  52914. E._EvaluateVisitor_closure13.prototype = {
  52915. call$1: function($arguments) {
  52916. var t1 = this.$this._async_evaluate$_environment;
  52917. if (!t1._async_environment$_inMixin)
  52918. throw H.wrapException(E.SassScriptException$(string$.conten));
  52919. return t1._async_environment$_content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  52920. },
  52921. $signature: 22
  52922. };
  52923. E._EvaluateVisitor_closure14.prototype = {
  52924. call$1: function($arguments) {
  52925. var t2, t3, t4,
  52926. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  52927. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  52928. if (module == null)
  52929. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  52930. t1 = type$.legacy_Value;
  52931. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  52932. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  52933. t4 = t3.get$current(t3);
  52934. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  52935. }
  52936. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  52937. },
  52938. $signature: 37
  52939. };
  52940. E._EvaluateVisitor_closure15.prototype = {
  52941. call$1: function($arguments) {
  52942. var t2, t3, t4,
  52943. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  52944. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  52945. if (module == null)
  52946. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  52947. t1 = type$.legacy_Value;
  52948. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  52949. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  52950. t4 = t3.get$current(t3);
  52951. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  52952. }
  52953. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  52954. },
  52955. $signature: 37
  52956. };
  52957. E._EvaluateVisitor_closure16.prototype = {
  52958. call$1: function($arguments) {
  52959. var module, callable,
  52960. t1 = J.getInterceptor$asx($arguments),
  52961. $name = t1.$index($arguments, 0).assertString$1("name"),
  52962. css = t1.$index($arguments, 1).get$isTruthy();
  52963. t1 = t1.$index($arguments, 2).get$realNull();
  52964. module = t1 == null ? null : t1.assertString$1("module");
  52965. if (css && module != null)
  52966. throw H.wrapException(string$.x24css_a);
  52967. if (css)
  52968. callable = new L.PlainCssCallable($name.text);
  52969. else {
  52970. t1 = this.$this;
  52971. callable = t1._async_evaluate$_addExceptionSpan$2(t1._async_evaluate$_callableNode, new E._EvaluateVisitor__closure4(t1, $name, module));
  52972. }
  52973. if (callable != null)
  52974. return new F.SassFunction(callable);
  52975. throw H.wrapException("Function not found: " + $name.toString$0(0));
  52976. },
  52977. $signature: 212
  52978. };
  52979. E._EvaluateVisitor__closure4.prototype = {
  52980. call$0: function() {
  52981. var t2,
  52982. t1 = this.name.text;
  52983. t1.toString;
  52984. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  52985. t2 = this.module;
  52986. t2 = t2 == null ? null : t2.text;
  52987. return this.$this._async_evaluate$_getFunction$2$namespace(t1, t2);
  52988. },
  52989. $signature: 105
  52990. };
  52991. E._EvaluateVisitor_closure17.prototype = {
  52992. call$1: function($arguments) {
  52993. return this.$call$body$_EvaluateVisitor_closure0($arguments);
  52994. },
  52995. $call$body$_EvaluateVisitor_closure0: function($arguments) {
  52996. var $async$goto = 0,
  52997. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  52998. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, invocation, callable, t1, $function, args;
  52999. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53000. if ($async$errorCode === 1)
  53001. return P._asyncRethrow($async$result, $async$completer);
  53002. while (true)
  53003. switch ($async$goto) {
  53004. case 0:
  53005. // Function start
  53006. t1 = J.getInterceptor$asx($arguments);
  53007. $function = t1.$index($arguments, 0);
  53008. args = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  53009. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  53010. t2 = type$.legacy_String;
  53011. t3 = type$.legacy_Expression;
  53012. t4 = $async$self.$this;
  53013. t5 = t4._async_evaluate$_callableNode.get$span();
  53014. t6 = t4._async_evaluate$_callableNode.get$span();
  53015. args._wereKeywordsAccessed = true;
  53016. t7 = args._keywords;
  53017. if (t7.get$isEmpty(t7))
  53018. t7 = null;
  53019. else {
  53020. t8 = type$.legacy_Value;
  53021. t9 = P.LinkedHashMap_LinkedHashMap$_empty(t8, t8);
  53022. for (args._wereKeywordsAccessed = true, t7 = t7.get$entries(t7), t7 = t7.get$iterator(t7); t7.moveNext$0();) {
  53023. t10 = t7.get$current(t7);
  53024. t9.$indexSet(0, new D.SassString(t10.key, false), t10.value);
  53025. }
  53026. t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(t9, t8, t8)), t4._async_evaluate$_callableNode.get$span());
  53027. }
  53028. invocation = new X.ArgumentInvocation(P.List_List$unmodifiable(t1, t3), H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), t2, t3), new F.ValueExpression(args, t6), t7, t5);
  53029. $async$goto = $function instanceof D.SassString ? 3 : 4;
  53030. break;
  53031. case 3:
  53032. // then
  53033. N.warn(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  53034. $async$goto = 5;
  53035. return P._asyncAwait(t4.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t4._async_evaluate$_callableNode.get$span()), invocation, t4._async_evaluate$_callableNode.get$span())), $async$call$1);
  53036. case 5:
  53037. // returning from await.
  53038. $async$returnValue = $async$result;
  53039. // goto return
  53040. $async$goto = 1;
  53041. break;
  53042. case 4:
  53043. // join
  53044. callable = $function.assertFunction$1("function").callable;
  53045. $async$goto = type$.legacy_AsyncCallable._is(callable) ? 6 : 8;
  53046. break;
  53047. case 6:
  53048. // then
  53049. $async$goto = 9;
  53050. return P._asyncAwait(t4._async_evaluate$_runFunctionCallable$3(invocation, callable, t4._async_evaluate$_callableNode), $async$call$1);
  53051. case 9:
  53052. // returning from await.
  53053. $async$returnValue = $async$result;
  53054. // goto return
  53055. $async$goto = 1;
  53056. break;
  53057. // goto join
  53058. $async$goto = 7;
  53059. break;
  53060. case 8:
  53061. // else
  53062. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name(callable)) + string$.x20is_as));
  53063. case 7:
  53064. // join
  53065. case 1:
  53066. // return
  53067. return P._asyncReturn($async$returnValue, $async$completer);
  53068. }
  53069. });
  53070. return P._asyncStartSync($async$call$1, $async$completer);
  53071. },
  53072. $signature: 217
  53073. };
  53074. E._EvaluateVisitor_closure18.prototype = {
  53075. call$1: function($arguments) {
  53076. return this.$call$body$_EvaluateVisitor_closure($arguments);
  53077. },
  53078. $call$body$_EvaluateVisitor_closure: function($arguments) {
  53079. var $async$goto = 0,
  53080. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53081. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  53082. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53083. if ($async$errorCode === 1)
  53084. return P._asyncRethrow($async$result, $async$completer);
  53085. while (true)
  53086. switch ($async$goto) {
  53087. case 0:
  53088. // Function start
  53089. t1 = J.getInterceptor$asx($arguments);
  53090. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("url").text);
  53091. t1 = t1.$index($arguments, 1).get$realNull();
  53092. t1 = t1 == null ? null : t1.assertMap$1("with");
  53093. withMap = t1 == null ? null : t1.contents;
  53094. if (withMap != null) {
  53095. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  53096. t1 = $async$self.$this;
  53097. withMap.forEach$1(0, new E._EvaluateVisitor__closure2(values, t1._async_evaluate$_callableNode.get$span()));
  53098. configuration = new A.Configuration(values, t1._async_evaluate$_callableNode, false);
  53099. } else
  53100. configuration = C.Configuration_Map_empty_null_true;
  53101. t1 = $async$self.$this;
  53102. t2 = t1._async_evaluate$_callableNode;
  53103. t3 = t2.get$span();
  53104. t3 = t3 == null ? null : t3.file.url;
  53105. $async$goto = 3;
  53106. return P._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure3(t1), t3, configuration, true), $async$call$1);
  53107. case 3:
  53108. // returning from await.
  53109. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  53110. $async$returnValue = null;
  53111. // goto return
  53112. $async$goto = 1;
  53113. break;
  53114. case 1:
  53115. // return
  53116. return P._asyncReturn($async$returnValue, $async$completer);
  53117. }
  53118. });
  53119. return P._asyncStartSync($async$call$1, $async$completer);
  53120. },
  53121. $signature: 125
  53122. };
  53123. E._EvaluateVisitor__closure2.prototype = {
  53124. call$2: function(variable, value) {
  53125. var $name,
  53126. t1 = variable.assertString$1("with key").text;
  53127. t1.toString;
  53128. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  53129. t1 = this.values;
  53130. if (t1.containsKey$1($name))
  53131. throw H.wrapException("The variable $" + $name + " was configured twice.");
  53132. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  53133. },
  53134. $signature: 46
  53135. };
  53136. E._EvaluateVisitor__closure3.prototype = {
  53137. call$1: function(module) {
  53138. var t1 = this.$this;
  53139. return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
  53140. },
  53141. $signature: 165
  53142. };
  53143. E._EvaluateVisitor_run_closure0.prototype = {
  53144. call$0: function() {
  53145. var $async$goto = 0,
  53146. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult),
  53147. $async$returnValue, $async$self = this, t1, t2, url, $async$temp1, $async$temp2;
  53148. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53149. if ($async$errorCode === 1)
  53150. return P._asyncRethrow($async$result, $async$completer);
  53151. while (true)
  53152. switch ($async$goto) {
  53153. case 0:
  53154. // Function start
  53155. t1 = $async$self.node;
  53156. t2 = t1.span;
  53157. url = t2 == null ? null : t2.file.url;
  53158. if (url != null)
  53159. $async$self.$this._async_evaluate$_activeModules.$indexSet(0, url, null);
  53160. t2 = $async$self.$this;
  53161. $async$temp1 = E;
  53162. $async$temp2 = t2;
  53163. $async$goto = 3;
  53164. return P._asyncAwait(t2._async_evaluate$_execute$2($async$self.importer, t1), $async$call$0);
  53165. case 3:
  53166. // returning from await.
  53167. $async$returnValue = new $async$temp1.EvaluateResult($async$temp2._async_evaluate$_combineCss$1($async$result));
  53168. // goto return
  53169. $async$goto = 1;
  53170. break;
  53171. case 1:
  53172. // return
  53173. return P._asyncReturn($async$returnValue, $async$completer);
  53174. }
  53175. });
  53176. return P._asyncStartSync($async$call$0, $async$completer);
  53177. },
  53178. $signature: 216
  53179. };
  53180. E._EvaluateVisitor__withWarnCallback_closure0.prototype = {
  53181. call$2: function(message, deprecation) {
  53182. var t1 = this.$this,
  53183. t2 = t1._async_evaluate$_importSpan;
  53184. return t1._async_evaluate$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate$_callableNode.get$span() : t2, deprecation);
  53185. },
  53186. "call*": "call$2",
  53187. $requiredArgCount: 2,
  53188. $signature: 72
  53189. };
  53190. E._EvaluateVisitor__loadModule_closure1.prototype = {
  53191. call$0: function() {
  53192. return this.callback.call$1(this.builtInModule);
  53193. },
  53194. $signature: 1
  53195. };
  53196. E._EvaluateVisitor__loadModule_closure2.prototype = {
  53197. call$0: function() {
  53198. var $async$goto = 0,
  53199. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53200. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  53201. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53202. if ($async$errorCode === 1) {
  53203. $async$currentError = $async$result;
  53204. $async$goto = $async$handler;
  53205. }
  53206. while (true)
  53207. switch ($async$goto) {
  53208. case 0:
  53209. // Function start
  53210. t1 = $async$self.$this;
  53211. t2 = $async$self.nodeWithSpan;
  53212. $async$goto = 2;
  53213. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  53214. case 2:
  53215. // returning from await.
  53216. result = $async$result;
  53217. importer = result.item1;
  53218. stylesheet = result.item2;
  53219. canonicalUrl = stylesheet.span.file.url;
  53220. t3 = t1._async_evaluate$_activeModules;
  53221. if (t3.containsKey$1(canonicalUrl)) {
  53222. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  53223. previousLoad = t3.$index(0, canonicalUrl);
  53224. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1(message) : t1._async_evaluate$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  53225. }
  53226. t3.$indexSet(0, canonicalUrl, t2);
  53227. module = null;
  53228. $async$handler = 3;
  53229. $async$goto = 6;
  53230. return P._asyncAwait(t1._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  53231. case 6:
  53232. // returning from await.
  53233. module = $async$result;
  53234. $async$next.push(5);
  53235. // goto finally
  53236. $async$goto = 4;
  53237. break;
  53238. case 3:
  53239. // uncaught
  53240. $async$next = [1];
  53241. case 4:
  53242. // finally
  53243. $async$handler = 1;
  53244. t3.remove$1(0, canonicalUrl);
  53245. // goto the next finally handler
  53246. $async$goto = $async$next.pop();
  53247. break;
  53248. case 5:
  53249. // after finally
  53250. $async$handler = 8;
  53251. $async$goto = 11;
  53252. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  53253. case 11:
  53254. // returning from await.
  53255. $async$handler = 1;
  53256. // goto after finally
  53257. $async$goto = 10;
  53258. break;
  53259. case 8:
  53260. // catch
  53261. $async$handler = 7;
  53262. $async$exception = $async$currentError;
  53263. t2 = H.unwrapException($async$exception);
  53264. if (type$.legacy_SassRuntimeException._is(t2))
  53265. throw $async$exception;
  53266. else if (t2 instanceof E.MultiSpanSassException) {
  53267. error = t2;
  53268. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate$_stackTrace$1(error.get$span())));
  53269. } else if (t2 instanceof E.SassException) {
  53270. error0 = t2;
  53271. throw H.wrapException(t1._async_evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  53272. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  53273. error1 = t2;
  53274. throw H.wrapException(t1._async_evaluate$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  53275. } else if (t2 instanceof E.SassScriptException) {
  53276. error2 = t2;
  53277. throw H.wrapException(t1._async_evaluate$_exception$1(error2.message));
  53278. } else
  53279. throw $async$exception;
  53280. // goto after finally
  53281. $async$goto = 10;
  53282. break;
  53283. case 7:
  53284. // uncaught
  53285. // goto rethrow
  53286. $async$goto = 1;
  53287. break;
  53288. case 10:
  53289. // after finally
  53290. // implicit return
  53291. return P._asyncReturn(null, $async$completer);
  53292. case 1:
  53293. // rethrow
  53294. return P._asyncRethrow($async$currentError, $async$completer);
  53295. }
  53296. });
  53297. return P._asyncStartSync($async$call$0, $async$completer);
  53298. },
  53299. $signature: 2
  53300. };
  53301. E._EvaluateVisitor__execute_closure0.prototype = {
  53302. call$0: function() {
  53303. var $async$goto = 0,
  53304. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53305. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  53306. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53307. if ($async$errorCode === 1)
  53308. return P._asyncRethrow($async$result, $async$completer);
  53309. while (true)
  53310. switch ($async$goto) {
  53311. case 0:
  53312. // Function start
  53313. t1 = $async$self.$this;
  53314. oldImporter = t1._async_evaluate$_importer;
  53315. oldStylesheet = t1._async_evaluate$_stylesheet;
  53316. oldRoot = t1._async_evaluate$_root;
  53317. oldParent = t1._async_evaluate$_parent;
  53318. oldEndOfImports = t1._async_evaluate$_endOfImports;
  53319. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  53320. oldExtender = t1._async_evaluate$_extender;
  53321. oldStyleRule = t1._async_evaluate$_styleRule;
  53322. oldMediaQueries = t1._async_evaluate$_mediaQueries;
  53323. oldDeclarationName = t1._async_evaluate$_declarationName;
  53324. oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  53325. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  53326. oldInKeyframes = t1._async_evaluate$_inKeyframes;
  53327. oldConfiguration = t1._async_evaluate$_configuration;
  53328. t1._async_evaluate$_importer = $async$self.importer;
  53329. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  53330. t3 = t2.span;
  53331. t1._async_evaluate$_parent = t1._async_evaluate$_root = V.ModifiableCssStylesheet$(t3);
  53332. t1._async_evaluate$_endOfImports = 0;
  53333. t1._async_evaluate$_outOfOrderImports = null;
  53334. t1._async_evaluate$_extender = $async$self.extender;
  53335. t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRule = null;
  53336. t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
  53337. t4 = $async$self.configuration;
  53338. if (t4 != null)
  53339. t1._async_evaluate$_configuration = t4;
  53340. $async$goto = 2;
  53341. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  53342. case 2:
  53343. // returning from await.
  53344. css = t1._async_evaluate$_outOfOrderImports == null ? t1._async_evaluate$_root : new V.CssStylesheet(new P.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode), t3);
  53345. $async$self._box_0.css = css;
  53346. t1._async_evaluate$_importer = oldImporter;
  53347. t1._async_evaluate$_stylesheet = oldStylesheet;
  53348. t1._async_evaluate$_root = oldRoot;
  53349. t1._async_evaluate$_parent = oldParent;
  53350. t1._async_evaluate$_endOfImports = oldEndOfImports;
  53351. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  53352. t1._async_evaluate$_extender = oldExtender;
  53353. t1._async_evaluate$_styleRule = oldStyleRule;
  53354. t1._async_evaluate$_mediaQueries = oldMediaQueries;
  53355. t1._async_evaluate$_declarationName = oldDeclarationName;
  53356. t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
  53357. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  53358. t1._async_evaluate$_inKeyframes = oldInKeyframes;
  53359. t1._async_evaluate$_configuration = oldConfiguration;
  53360. // implicit return
  53361. return P._asyncReturn(null, $async$completer);
  53362. }
  53363. });
  53364. return P._asyncStartSync($async$call$0, $async$completer);
  53365. },
  53366. $signature: 2
  53367. };
  53368. E._EvaluateVisitor__combineCss_closure2.prototype = {
  53369. call$1: function(module) {
  53370. return module.get$transitivelyContainsCss();
  53371. },
  53372. $signature: 93
  53373. };
  53374. E._EvaluateVisitor__combineCss_closure3.prototype = {
  53375. call$1: function(target) {
  53376. return !this.selectors.contains$1(0, target);
  53377. },
  53378. $signature: 18
  53379. };
  53380. E._EvaluateVisitor__combineCss_closure4.prototype = {
  53381. call$1: function(module) {
  53382. return module.cloneCss$0();
  53383. },
  53384. $signature: 147
  53385. };
  53386. E._EvaluateVisitor__extendModules_closure1.prototype = {
  53387. call$1: function(target) {
  53388. return !this.originalSelectors.contains$1(0, target);
  53389. },
  53390. $signature: 18
  53391. };
  53392. E._EvaluateVisitor__extendModules_closure2.prototype = {
  53393. call$0: function() {
  53394. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender);
  53395. },
  53396. $signature: 209
  53397. };
  53398. E._EvaluateVisitor__topologicalModules_visitModule0.prototype = {
  53399. call$1: function(module) {
  53400. var t1, t2, t3, _i, upstream;
  53401. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  53402. upstream = t1[_i];
  53403. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  53404. this.call$1(upstream);
  53405. }
  53406. this.sorted.addFirst$1(module);
  53407. },
  53408. $signature: 165
  53409. };
  53410. E._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
  53411. call$0: function() {
  53412. return V.AtRootQueryParser$(this.resolved, this.$this._async_evaluate$_logger, null).parse$0();
  53413. },
  53414. $signature: 112
  53415. };
  53416. E._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
  53417. call$0: function() {
  53418. var $async$goto = 0,
  53419. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53420. $async$self = this, t1, t2, t3, _i;
  53421. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53422. if ($async$errorCode === 1)
  53423. return P._asyncRethrow($async$result, $async$completer);
  53424. while (true)
  53425. switch ($async$goto) {
  53426. case 0:
  53427. // Function start
  53428. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53429. case 2:
  53430. // for condition
  53431. if (!(_i < t2)) {
  53432. // goto after for
  53433. $async$goto = 4;
  53434. break;
  53435. }
  53436. $async$goto = 5;
  53437. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53438. case 5:
  53439. // returning from await.
  53440. case 3:
  53441. // for update
  53442. ++_i;
  53443. // goto for condition
  53444. $async$goto = 2;
  53445. break;
  53446. case 4:
  53447. // after for
  53448. // implicit return
  53449. return P._asyncReturn(null, $async$completer);
  53450. }
  53451. });
  53452. return P._asyncStartSync($async$call$0, $async$completer);
  53453. },
  53454. $signature: 2
  53455. };
  53456. E._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
  53457. call$0: function() {
  53458. var $async$goto = 0,
  53459. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53460. $async$self = this, t1, t2, t3, _i;
  53461. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53462. if ($async$errorCode === 1)
  53463. return P._asyncRethrow($async$result, $async$completer);
  53464. while (true)
  53465. switch ($async$goto) {
  53466. case 0:
  53467. // Function start
  53468. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53469. case 2:
  53470. // for condition
  53471. if (!(_i < t2)) {
  53472. // goto after for
  53473. $async$goto = 4;
  53474. break;
  53475. }
  53476. $async$goto = 5;
  53477. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53478. case 5:
  53479. // returning from await.
  53480. case 3:
  53481. // for update
  53482. ++_i;
  53483. // goto for condition
  53484. $async$goto = 2;
  53485. break;
  53486. case 4:
  53487. // after for
  53488. // implicit return
  53489. return P._asyncReturn(null, $async$completer);
  53490. }
  53491. });
  53492. return P._asyncStartSync($async$call$0, $async$completer);
  53493. },
  53494. "call*": "call$0",
  53495. $requiredArgCount: 0,
  53496. $signature: 2
  53497. };
  53498. E._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
  53499. call$1: function(callback) {
  53500. var $async$goto = 0,
  53501. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53502. $async$self = this, t1, oldParent;
  53503. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53504. if ($async$errorCode === 1)
  53505. return P._asyncRethrow($async$result, $async$completer);
  53506. while (true)
  53507. switch ($async$goto) {
  53508. case 0:
  53509. // Function start
  53510. t1 = $async$self.$this;
  53511. oldParent = t1._async_evaluate$_parent;
  53512. t1._async_evaluate$_parent = $async$self.newParent;
  53513. $async$goto = 2;
  53514. return P._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  53515. case 2:
  53516. // returning from await.
  53517. t1._async_evaluate$_parent = oldParent;
  53518. // implicit return
  53519. return P._asyncReturn(null, $async$completer);
  53520. }
  53521. });
  53522. return P._asyncStartSync($async$call$1, $async$completer);
  53523. },
  53524. $signature: 32
  53525. };
  53526. E._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
  53527. call$1: function(callback) {
  53528. var $async$goto = 0,
  53529. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53530. $async$self = this, t1, oldAtRootExcludingStyleRule;
  53531. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53532. if ($async$errorCode === 1)
  53533. return P._asyncRethrow($async$result, $async$completer);
  53534. while (true)
  53535. switch ($async$goto) {
  53536. case 0:
  53537. // Function start
  53538. t1 = $async$self.$this;
  53539. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  53540. t1._async_evaluate$_atRootExcludingStyleRule = true;
  53541. $async$goto = 2;
  53542. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  53543. case 2:
  53544. // returning from await.
  53545. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  53546. // implicit return
  53547. return P._asyncReturn(null, $async$completer);
  53548. }
  53549. });
  53550. return P._asyncStartSync($async$call$1, $async$completer);
  53551. },
  53552. $signature: 32
  53553. };
  53554. E._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
  53555. call$1: function(callback) {
  53556. return this.$this._async_evaluate$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
  53557. },
  53558. $signature: 32
  53559. };
  53560. E._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
  53561. call$0: function() {
  53562. return this.innerScope.call$1(this.callback);
  53563. },
  53564. $signature: 2
  53565. };
  53566. E._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
  53567. call$1: function(callback) {
  53568. var $async$goto = 0,
  53569. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53570. $async$self = this, t1, wasInKeyframes;
  53571. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53572. if ($async$errorCode === 1)
  53573. return P._asyncRethrow($async$result, $async$completer);
  53574. while (true)
  53575. switch ($async$goto) {
  53576. case 0:
  53577. // Function start
  53578. t1 = $async$self.$this;
  53579. wasInKeyframes = t1._async_evaluate$_inKeyframes;
  53580. t1._async_evaluate$_inKeyframes = false;
  53581. $async$goto = 2;
  53582. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  53583. case 2:
  53584. // returning from await.
  53585. t1._async_evaluate$_inKeyframes = wasInKeyframes;
  53586. // implicit return
  53587. return P._asyncReturn(null, $async$completer);
  53588. }
  53589. });
  53590. return P._asyncStartSync($async$call$1, $async$completer);
  53591. },
  53592. $signature: 32
  53593. };
  53594. E._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
  53595. call$1: function($parent) {
  53596. return type$.legacy_CssAtRule._is($parent);
  53597. },
  53598. $signature: 205
  53599. };
  53600. E._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
  53601. call$1: function(callback) {
  53602. var $async$goto = 0,
  53603. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53604. $async$self = this, t1, wasInUnknownAtRule;
  53605. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53606. if ($async$errorCode === 1)
  53607. return P._asyncRethrow($async$result, $async$completer);
  53608. while (true)
  53609. switch ($async$goto) {
  53610. case 0:
  53611. // Function start
  53612. t1 = $async$self.$this;
  53613. wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  53614. t1._async_evaluate$_inUnknownAtRule = false;
  53615. $async$goto = 2;
  53616. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  53617. case 2:
  53618. // returning from await.
  53619. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  53620. // implicit return
  53621. return P._asyncReturn(null, $async$completer);
  53622. }
  53623. });
  53624. return P._asyncStartSync($async$call$1, $async$completer);
  53625. },
  53626. $signature: 32
  53627. };
  53628. E._EvaluateVisitor_visitContentRule_closure0.prototype = {
  53629. call$0: function() {
  53630. var $async$goto = 0,
  53631. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53632. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  53633. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53634. if ($async$errorCode === 1)
  53635. return P._asyncRethrow($async$result, $async$completer);
  53636. while (true)
  53637. switch ($async$goto) {
  53638. case 0:
  53639. // Function start
  53640. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53641. case 3:
  53642. // for condition
  53643. if (!(_i < t2)) {
  53644. // goto after for
  53645. $async$goto = 5;
  53646. break;
  53647. }
  53648. $async$goto = 6;
  53649. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53650. case 6:
  53651. // returning from await.
  53652. case 4:
  53653. // for update
  53654. ++_i;
  53655. // goto for condition
  53656. $async$goto = 3;
  53657. break;
  53658. case 5:
  53659. // after for
  53660. $async$returnValue = null;
  53661. // goto return
  53662. $async$goto = 1;
  53663. break;
  53664. case 1:
  53665. // return
  53666. return P._asyncReturn($async$returnValue, $async$completer);
  53667. }
  53668. });
  53669. return P._asyncStartSync($async$call$0, $async$completer);
  53670. },
  53671. $signature: 2
  53672. };
  53673. E._EvaluateVisitor_visitDeclaration_closure0.prototype = {
  53674. call$0: function() {
  53675. var $async$goto = 0,
  53676. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53677. $async$self = this, t1, t2, t3, _i;
  53678. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53679. if ($async$errorCode === 1)
  53680. return P._asyncRethrow($async$result, $async$completer);
  53681. while (true)
  53682. switch ($async$goto) {
  53683. case 0:
  53684. // Function start
  53685. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53686. case 2:
  53687. // for condition
  53688. if (!(_i < t2)) {
  53689. // goto after for
  53690. $async$goto = 4;
  53691. break;
  53692. }
  53693. $async$goto = 5;
  53694. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53695. case 5:
  53696. // returning from await.
  53697. case 3:
  53698. // for update
  53699. ++_i;
  53700. // goto for condition
  53701. $async$goto = 2;
  53702. break;
  53703. case 4:
  53704. // after for
  53705. // implicit return
  53706. return P._asyncReturn(null, $async$completer);
  53707. }
  53708. });
  53709. return P._asyncStartSync($async$call$0, $async$completer);
  53710. },
  53711. $signature: 2
  53712. };
  53713. E._EvaluateVisitor_visitEachRule_closure2.prototype = {
  53714. call$1: function(value) {
  53715. return this.$this._async_evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  53716. },
  53717. $signature: 68
  53718. };
  53719. E._EvaluateVisitor_visitEachRule_closure3.prototype = {
  53720. call$1: function(value) {
  53721. return this.$this._async_evaluate$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  53722. },
  53723. $signature: 68
  53724. };
  53725. E._EvaluateVisitor_visitEachRule_closure4.prototype = {
  53726. call$0: function() {
  53727. var _this = this,
  53728. t1 = _this.$this;
  53729. return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
  53730. },
  53731. $signature: 30
  53732. };
  53733. E._EvaluateVisitor_visitEachRule__closure0.prototype = {
  53734. call$1: function(element) {
  53735. var t1;
  53736. this.setVariables.call$1(element);
  53737. t1 = this.$this;
  53738. return t1._async_evaluate$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure0(t1));
  53739. },
  53740. $signature: 224
  53741. };
  53742. E._EvaluateVisitor_visitEachRule___closure0.prototype = {
  53743. call$1: function(child) {
  53744. return child.accept$1(this.$this);
  53745. },
  53746. $signature: 80
  53747. };
  53748. E._EvaluateVisitor_visitExtendRule_closure0.prototype = {
  53749. call$0: function() {
  53750. var t1 = this.targetText;
  53751. return D.SelectorList_SelectorList$parse(B.trimAscii(t1.get$value(t1), true), false, true, this.$this._async_evaluate$_logger);
  53752. },
  53753. $signature: 42
  53754. };
  53755. E._EvaluateVisitor_visitAtRule_closure1.prototype = {
  53756. call$0: function() {
  53757. var $async$goto = 0,
  53758. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53759. $async$self = this, t3, _i, t1, t2;
  53760. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53761. if ($async$errorCode === 1)
  53762. return P._asyncRethrow($async$result, $async$completer);
  53763. while (true)
  53764. switch ($async$goto) {
  53765. case 0:
  53766. // Function start
  53767. t1 = $async$self.$this;
  53768. t2 = t1._async_evaluate$_styleRule;
  53769. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) || t1._async_evaluate$_inKeyframes ? 2 : 4;
  53770. break;
  53771. case 2:
  53772. // then
  53773. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  53774. case 5:
  53775. // for condition
  53776. if (!(_i < t3)) {
  53777. // goto after for
  53778. $async$goto = 7;
  53779. break;
  53780. }
  53781. $async$goto = 8;
  53782. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  53783. case 8:
  53784. // returning from await.
  53785. case 6:
  53786. // for update
  53787. ++_i;
  53788. // goto for condition
  53789. $async$goto = 5;
  53790. break;
  53791. case 7:
  53792. // after for
  53793. // goto join
  53794. $async$goto = 3;
  53795. break;
  53796. case 4:
  53797. // else
  53798. $async$goto = 9;
  53799. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  53800. case 9:
  53801. // returning from await.
  53802. case 3:
  53803. // join
  53804. // implicit return
  53805. return P._asyncReturn(null, $async$completer);
  53806. }
  53807. });
  53808. return P._asyncStartSync($async$call$0, $async$completer);
  53809. },
  53810. $signature: 2
  53811. };
  53812. E._EvaluateVisitor_visitAtRule__closure0.prototype = {
  53813. call$0: function() {
  53814. var $async$goto = 0,
  53815. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  53816. $async$self = this, t1, t2, t3, _i;
  53817. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53818. if ($async$errorCode === 1)
  53819. return P._asyncRethrow($async$result, $async$completer);
  53820. while (true)
  53821. switch ($async$goto) {
  53822. case 0:
  53823. // Function start
  53824. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  53825. case 2:
  53826. // for condition
  53827. if (!(_i < t2)) {
  53828. // goto after for
  53829. $async$goto = 4;
  53830. break;
  53831. }
  53832. $async$goto = 5;
  53833. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  53834. case 5:
  53835. // returning from await.
  53836. case 3:
  53837. // for update
  53838. ++_i;
  53839. // goto for condition
  53840. $async$goto = 2;
  53841. break;
  53842. case 4:
  53843. // after for
  53844. // implicit return
  53845. return P._asyncReturn(null, $async$completer);
  53846. }
  53847. });
  53848. return P._asyncStartSync($async$call$0, $async$completer);
  53849. },
  53850. $signature: 2
  53851. };
  53852. E._EvaluateVisitor_visitAtRule_closure2.prototype = {
  53853. call$1: function(node) {
  53854. return type$.legacy_CssStyleRule._is(node);
  53855. },
  53856. $signature: 7
  53857. };
  53858. E._EvaluateVisitor_visitForRule_closure4.prototype = {
  53859. call$0: function() {
  53860. var $async$goto = 0,
  53861. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  53862. $async$returnValue, $async$self = this;
  53863. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53864. if ($async$errorCode === 1)
  53865. return P._asyncRethrow($async$result, $async$completer);
  53866. while (true)
  53867. switch ($async$goto) {
  53868. case 0:
  53869. // Function start
  53870. $async$goto = 3;
  53871. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  53872. case 3:
  53873. // returning from await.
  53874. $async$returnValue = $async$result.assertNumber$0();
  53875. // goto return
  53876. $async$goto = 1;
  53877. break;
  53878. case 1:
  53879. // return
  53880. return P._asyncReturn($async$returnValue, $async$completer);
  53881. }
  53882. });
  53883. return P._asyncStartSync($async$call$0, $async$completer);
  53884. },
  53885. $signature: 202
  53886. };
  53887. E._EvaluateVisitor_visitForRule_closure5.prototype = {
  53888. call$0: function() {
  53889. var $async$goto = 0,
  53890. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber),
  53891. $async$returnValue, $async$self = this;
  53892. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53893. if ($async$errorCode === 1)
  53894. return P._asyncRethrow($async$result, $async$completer);
  53895. while (true)
  53896. switch ($async$goto) {
  53897. case 0:
  53898. // Function start
  53899. $async$goto = 3;
  53900. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  53901. case 3:
  53902. // returning from await.
  53903. $async$returnValue = $async$result.assertNumber$0();
  53904. // goto return
  53905. $async$goto = 1;
  53906. break;
  53907. case 1:
  53908. // return
  53909. return P._asyncReturn($async$returnValue, $async$completer);
  53910. }
  53911. });
  53912. return P._asyncStartSync($async$call$0, $async$completer);
  53913. },
  53914. $signature: 202
  53915. };
  53916. E._EvaluateVisitor_visitForRule_closure6.prototype = {
  53917. call$0: function() {
  53918. var t1 = this.toNumber;
  53919. return this.fromNumber.coerce$2(t1.numeratorUnits, t1.denominatorUnits).assertInt$0();
  53920. },
  53921. $signature: 11
  53922. };
  53923. E._EvaluateVisitor_visitForRule_closure7.prototype = {
  53924. call$0: function() {
  53925. return this.toNumber.assertInt$0();
  53926. },
  53927. $signature: 11
  53928. };
  53929. E._EvaluateVisitor_visitForRule_closure8.prototype = {
  53930. call$0: function() {
  53931. var $async$goto = 0,
  53932. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  53933. $async$returnValue, $async$self = this, i, t3, t4, t5, result, t1, t2, nodeWithSpan;
  53934. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  53935. if ($async$errorCode === 1)
  53936. return P._asyncRethrow($async$result, $async$completer);
  53937. while (true)
  53938. switch ($async$goto) {
  53939. case 0:
  53940. // Function start
  53941. t1 = $async$self.$this;
  53942. t2 = $async$self.node;
  53943. nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
  53944. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t2 = t2.children;
  53945. case 3:
  53946. // for condition
  53947. if (!(i !== t3.to)) {
  53948. // goto after for
  53949. $async$goto = 5;
  53950. break;
  53951. }
  53952. t1._async_evaluate$_environment.setLocalVariable$3(t5, T.SassNumber$(i, null), nodeWithSpan);
  53953. $async$goto = 6;
  53954. return P._asyncAwait(t1._async_evaluate$_handleReturn$2(t2, new E._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
  53955. case 6:
  53956. // returning from await.
  53957. result = $async$result;
  53958. if (result != null) {
  53959. $async$returnValue = result;
  53960. // goto return
  53961. $async$goto = 1;
  53962. break;
  53963. }
  53964. case 4:
  53965. // for update
  53966. i += t4;
  53967. // goto for condition
  53968. $async$goto = 3;
  53969. break;
  53970. case 5:
  53971. // after for
  53972. $async$returnValue = null;
  53973. // goto return
  53974. $async$goto = 1;
  53975. break;
  53976. case 1:
  53977. // return
  53978. return P._asyncReturn($async$returnValue, $async$completer);
  53979. }
  53980. });
  53981. return P._asyncStartSync($async$call$0, $async$completer);
  53982. },
  53983. $signature: 30
  53984. };
  53985. E._EvaluateVisitor_visitForRule__closure0.prototype = {
  53986. call$1: function(child) {
  53987. return child.accept$1(this.$this);
  53988. },
  53989. $signature: 80
  53990. };
  53991. E._EvaluateVisitor_visitForwardRule_closure1.prototype = {
  53992. call$1: function(module) {
  53993. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  53994. },
  53995. $signature: 120
  53996. };
  53997. E._EvaluateVisitor_visitForwardRule_closure2.prototype = {
  53998. call$1: function(module) {
  53999. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  54000. },
  54001. $signature: 120
  54002. };
  54003. E._EvaluateVisitor__assertConfigurationIsEmpty_closure0.prototype = {
  54004. call$2: function($name, value) {
  54005. var t1 = this.only;
  54006. if (t1 != null && !t1.contains$1(0, $name))
  54007. return;
  54008. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  54009. throw H.wrapException(this.$this._async_evaluate$_exception$2(t1, value.configurationSpan));
  54010. },
  54011. $signature: 200
  54012. };
  54013. E._EvaluateVisitor_visitIfRule_closure0.prototype = {
  54014. call$0: function() {
  54015. var t1 = this.$this;
  54016. return t1._async_evaluate$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure0(t1));
  54017. },
  54018. $signature: 30
  54019. };
  54020. E._EvaluateVisitor_visitIfRule__closure0.prototype = {
  54021. call$1: function(child) {
  54022. return child.accept$1(this.$this);
  54023. },
  54024. $signature: 80
  54025. };
  54026. E._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
  54027. call$0: function() {
  54028. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
  54029. },
  54030. $call$body$_EvaluateVisitor__visitDynamicImport_closure: function() {
  54031. var $async$goto = 0,
  54032. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54033. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  54034. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54035. if ($async$errorCode === 1)
  54036. return P._asyncRethrow($async$result, $async$completer);
  54037. while (true)
  54038. switch ($async$goto) {
  54039. case 0:
  54040. // Function start
  54041. _box_0 = {};
  54042. t1 = $async$self.$this;
  54043. t2 = $async$self.$import;
  54044. $async$goto = 3;
  54045. return P._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  54046. case 3:
  54047. // returning from await.
  54048. result = $async$result;
  54049. importer = result.item1;
  54050. stylesheet = result.item2;
  54051. url = stylesheet.span.file.url;
  54052. t3 = t1._async_evaluate$_activeModules;
  54053. if (t3.containsKey$1(url)) {
  54054. previousLoad = t3.$index(0, url);
  54055. throw H.wrapException(previousLoad == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t1._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  54056. }
  54057. t3.$indexSet(0, url, t2);
  54058. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_legacy_UseRule);
  54059. if (t2.get$length(t2) === 0) {
  54060. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  54061. t2 = t2.get$length(t2) === 0;
  54062. } else
  54063. t2 = false;
  54064. $async$goto = t2 ? 4 : 5;
  54065. break;
  54066. case 4:
  54067. // then
  54068. oldImporter = t1._async_evaluate$_importer;
  54069. oldStylesheet = t1._async_evaluate$_stylesheet;
  54070. t1._async_evaluate$_importer = importer;
  54071. t1._async_evaluate$_stylesheet = stylesheet;
  54072. $async$goto = 6;
  54073. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  54074. case 6:
  54075. // returning from await.
  54076. t1._async_evaluate$_importer = oldImporter;
  54077. t1._async_evaluate$_stylesheet = oldStylesheet;
  54078. t3.remove$1(0, url);
  54079. // goto return
  54080. $async$goto = 1;
  54081. break;
  54082. case 5:
  54083. // join
  54084. _box_0.children = null;
  54085. t2 = t1._async_evaluate$_environment;
  54086. t4 = type$.legacy_String;
  54087. t5 = type$.legacy_Module_legacy_AsyncCallable;
  54088. t6 = type$.legacy_AstNode;
  54089. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable);
  54090. t8 = t2._async_environment$_variables;
  54091. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  54092. t9 = t2._async_environment$_variableNodes;
  54093. if (t9 == null)
  54094. t9 = null;
  54095. else
  54096. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  54097. t10 = t2._async_environment$_functions;
  54098. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  54099. t11 = t2._async_environment$_mixins;
  54100. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  54101. environment = Q.AsyncEnvironment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment$_content);
  54102. $async$goto = 7;
  54103. return P._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure0(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  54104. case 7:
  54105. // returning from await.
  54106. module = Q._EnvironmentModule__EnvironmentModule0(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_legacy_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._async_environment$_forwardedModules);
  54107. t1._async_evaluate$_environment.importForwards$1(module);
  54108. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  54109. break;
  54110. case 8:
  54111. // then
  54112. $async$goto = 10;
  54113. return P._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  54114. case 10:
  54115. // returning from await.
  54116. case 9:
  54117. // join
  54118. visitor = new E._ImportedCssVisitor0(t1);
  54119. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  54120. t1.get$current(t1).accept$1(visitor);
  54121. t3.remove$1(0, url);
  54122. case 1:
  54123. // return
  54124. return P._asyncReturn($async$returnValue, $async$completer);
  54125. }
  54126. });
  54127. return P._asyncStartSync($async$call$0, $async$completer);
  54128. },
  54129. $signature: 2
  54130. };
  54131. E._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
  54132. call$0: function() {
  54133. var $async$goto = 0,
  54134. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54135. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  54136. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54137. if ($async$errorCode === 1)
  54138. return P._asyncRethrow($async$result, $async$completer);
  54139. while (true)
  54140. switch ($async$goto) {
  54141. case 0:
  54142. // Function start
  54143. t1 = $async$self.$this;
  54144. oldImporter = t1._async_evaluate$_importer;
  54145. oldStylesheet = t1._async_evaluate$_stylesheet;
  54146. oldRoot = t1._async_evaluate$_root;
  54147. oldParent = t1._async_evaluate$_parent;
  54148. oldEndOfImports = t1._async_evaluate$_endOfImports;
  54149. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  54150. oldConfiguration = t1._async_evaluate$_configuration;
  54151. t1._async_evaluate$_importer = $async$self.importer;
  54152. t2 = t1._async_evaluate$_stylesheet = $async$self.stylesheet;
  54153. t1._async_evaluate$_parent = t1._async_evaluate$_root = V.ModifiableCssStylesheet$(t2.span);
  54154. t1._async_evaluate$_endOfImports = 0;
  54155. t1._async_evaluate$_outOfOrderImports = null;
  54156. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  54157. if (!t3.get$isEmpty(t3))
  54158. t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
  54159. $async$goto = 2;
  54160. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  54161. case 2:
  54162. // returning from await.
  54163. $async$self._box_0.children = t1._async_evaluate$_addOutOfOrderImports$0();
  54164. t1._async_evaluate$_importer = oldImporter;
  54165. t1._async_evaluate$_stylesheet = oldStylesheet;
  54166. t1._async_evaluate$_root = oldRoot;
  54167. t1._async_evaluate$_parent = oldParent;
  54168. t1._async_evaluate$_endOfImports = oldEndOfImports;
  54169. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  54170. t1._async_evaluate$_configuration = oldConfiguration;
  54171. // implicit return
  54172. return P._asyncReturn(null, $async$completer);
  54173. }
  54174. });
  54175. return P._asyncStartSync($async$call$0, $async$completer);
  54176. },
  54177. $signature: 2
  54178. };
  54179. E._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
  54180. call$0: function() {
  54181. var t1 = this.node;
  54182. return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  54183. },
  54184. $signature: 105
  54185. };
  54186. E._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
  54187. call$0: function() {
  54188. return this.node.get$spanWithoutContent();
  54189. },
  54190. "call*": "call$0",
  54191. $requiredArgCount: 0,
  54192. $signature: 33
  54193. };
  54194. E._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
  54195. call$0: function() {
  54196. var $async$goto = 0,
  54197. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54198. $async$returnValue, $async$self = this, t1;
  54199. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54200. if ($async$errorCode === 1)
  54201. return P._asyncRethrow($async$result, $async$completer);
  54202. while (true)
  54203. switch ($async$goto) {
  54204. case 0:
  54205. // Function start
  54206. t1 = $async$self.$this;
  54207. $async$goto = 3;
  54208. return P._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  54209. case 3:
  54210. // returning from await.
  54211. $async$returnValue = null;
  54212. // goto return
  54213. $async$goto = 1;
  54214. break;
  54215. case 1:
  54216. // return
  54217. return P._asyncReturn($async$returnValue, $async$completer);
  54218. }
  54219. });
  54220. return P._asyncStartSync($async$call$0, $async$completer);
  54221. },
  54222. $signature: 2
  54223. };
  54224. E._EvaluateVisitor_visitIncludeRule__closure0.prototype = {
  54225. call$0: function() {
  54226. var $async$goto = 0,
  54227. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54228. $async$returnValue, $async$self = this, t1;
  54229. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54230. if ($async$errorCode === 1)
  54231. return P._asyncRethrow($async$result, $async$completer);
  54232. while (true)
  54233. switch ($async$goto) {
  54234. case 0:
  54235. // Function start
  54236. t1 = $async$self.$this;
  54237. $async$goto = 3;
  54238. return P._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure0(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  54239. case 3:
  54240. // returning from await.
  54241. $async$returnValue = null;
  54242. // goto return
  54243. $async$goto = 1;
  54244. break;
  54245. case 1:
  54246. // return
  54247. return P._asyncReturn($async$returnValue, $async$completer);
  54248. }
  54249. });
  54250. return P._asyncStartSync($async$call$0, $async$completer);
  54251. },
  54252. $signature: 2
  54253. };
  54254. E._EvaluateVisitor_visitIncludeRule___closure0.prototype = {
  54255. call$0: function() {
  54256. var $async$goto = 0,
  54257. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54258. $async$self = this, t1, t2, t3, t4, t5, _i;
  54259. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54260. if ($async$errorCode === 1)
  54261. return P._asyncRethrow($async$result, $async$completer);
  54262. while (true)
  54263. switch ($async$goto) {
  54264. case 0:
  54265. // Function start
  54266. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.legacy_Value, _i = 0;
  54267. case 2:
  54268. // for condition
  54269. if (!(_i < t2)) {
  54270. // goto after for
  54271. $async$goto = 4;
  54272. break;
  54273. }
  54274. $async$goto = 5;
  54275. return P._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure0(t3, t1[_i]), t5), $async$call$0);
  54276. case 5:
  54277. // returning from await.
  54278. case 3:
  54279. // for update
  54280. ++_i;
  54281. // goto for condition
  54282. $async$goto = 2;
  54283. break;
  54284. case 4:
  54285. // after for
  54286. // implicit return
  54287. return P._asyncReturn(null, $async$completer);
  54288. }
  54289. });
  54290. return P._asyncStartSync($async$call$0, $async$completer);
  54291. },
  54292. $signature: 2
  54293. };
  54294. E._EvaluateVisitor_visitIncludeRule____closure0.prototype = {
  54295. call$0: function() {
  54296. return this.statement.accept$1(this.$this);
  54297. },
  54298. $signature: 30
  54299. };
  54300. E._EvaluateVisitor_visitMediaRule_closure1.prototype = {
  54301. call$0: function() {
  54302. var $async$goto = 0,
  54303. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54304. $async$self = this, t1, t2;
  54305. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54306. if ($async$errorCode === 1)
  54307. return P._asyncRethrow($async$result, $async$completer);
  54308. while (true)
  54309. switch ($async$goto) {
  54310. case 0:
  54311. // Function start
  54312. t1 = $async$self.$this;
  54313. t2 = $async$self.mergedQueries;
  54314. if (t2 == null)
  54315. t2 = $async$self.queries;
  54316. $async$goto = 2;
  54317. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54318. case 2:
  54319. // returning from await.
  54320. // implicit return
  54321. return P._asyncReturn(null, $async$completer);
  54322. }
  54323. });
  54324. return P._asyncStartSync($async$call$0, $async$completer);
  54325. },
  54326. $signature: 2
  54327. };
  54328. E._EvaluateVisitor_visitMediaRule__closure0.prototype = {
  54329. call$0: function() {
  54330. var $async$goto = 0,
  54331. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54332. $async$self = this, t3, _i, t1, t2;
  54333. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54334. if ($async$errorCode === 1)
  54335. return P._asyncRethrow($async$result, $async$completer);
  54336. while (true)
  54337. switch ($async$goto) {
  54338. case 0:
  54339. // Function start
  54340. t1 = $async$self.$this;
  54341. t2 = t1._async_evaluate$_styleRule;
  54342. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54343. break;
  54344. case 2:
  54345. // then
  54346. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  54347. case 5:
  54348. // for condition
  54349. if (!(_i < t3)) {
  54350. // goto after for
  54351. $async$goto = 7;
  54352. break;
  54353. }
  54354. $async$goto = 8;
  54355. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  54356. case 8:
  54357. // returning from await.
  54358. case 6:
  54359. // for update
  54360. ++_i;
  54361. // goto for condition
  54362. $async$goto = 5;
  54363. break;
  54364. case 7:
  54365. // after for
  54366. // goto join
  54367. $async$goto = 3;
  54368. break;
  54369. case 4:
  54370. // else
  54371. $async$goto = 9;
  54372. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  54373. case 9:
  54374. // returning from await.
  54375. case 3:
  54376. // join
  54377. // implicit return
  54378. return P._asyncReturn(null, $async$completer);
  54379. }
  54380. });
  54381. return P._asyncStartSync($async$call$0, $async$completer);
  54382. },
  54383. $signature: 2
  54384. };
  54385. E._EvaluateVisitor_visitMediaRule___closure0.prototype = {
  54386. call$0: function() {
  54387. var $async$goto = 0,
  54388. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54389. $async$self = this, t1, t2, t3, _i;
  54390. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54391. if ($async$errorCode === 1)
  54392. return P._asyncRethrow($async$result, $async$completer);
  54393. while (true)
  54394. switch ($async$goto) {
  54395. case 0:
  54396. // Function start
  54397. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  54398. case 2:
  54399. // for condition
  54400. if (!(_i < t2)) {
  54401. // goto after for
  54402. $async$goto = 4;
  54403. break;
  54404. }
  54405. $async$goto = 5;
  54406. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  54407. case 5:
  54408. // returning from await.
  54409. case 3:
  54410. // for update
  54411. ++_i;
  54412. // goto for condition
  54413. $async$goto = 2;
  54414. break;
  54415. case 4:
  54416. // after for
  54417. // implicit return
  54418. return P._asyncReturn(null, $async$completer);
  54419. }
  54420. });
  54421. return P._asyncStartSync($async$call$0, $async$completer);
  54422. },
  54423. $signature: 2
  54424. };
  54425. E._EvaluateVisitor_visitMediaRule_closure2.prototype = {
  54426. call$1: function(node) {
  54427. var t1;
  54428. if (!type$.legacy_CssStyleRule._is(node))
  54429. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  54430. else
  54431. t1 = true;
  54432. return t1;
  54433. },
  54434. $signature: 7
  54435. };
  54436. E._EvaluateVisitor__visitMediaQueries_closure0.prototype = {
  54437. call$0: function() {
  54438. return F.MediaQueryParser$(this.resolved, this.$this._async_evaluate$_logger, null).parse$0();
  54439. },
  54440. $signature: 113
  54441. };
  54442. E._EvaluateVisitor_visitStyleRule_closure6.prototype = {
  54443. call$0: function() {
  54444. var t1 = this.selectorText;
  54445. return E.KeyframeSelectorParser$(t1.get$value(t1), this.$this._async_evaluate$_logger).parse$0();
  54446. },
  54447. $signature: 40
  54448. };
  54449. E._EvaluateVisitor_visitStyleRule_closure7.prototype = {
  54450. call$0: function() {
  54451. var $async$goto = 0,
  54452. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54453. $async$self = this, t1, t2, t3, _i;
  54454. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54455. if ($async$errorCode === 1)
  54456. return P._asyncRethrow($async$result, $async$completer);
  54457. while (true)
  54458. switch ($async$goto) {
  54459. case 0:
  54460. // Function start
  54461. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  54462. case 2:
  54463. // for condition
  54464. if (!(_i < t2)) {
  54465. // goto after for
  54466. $async$goto = 4;
  54467. break;
  54468. }
  54469. $async$goto = 5;
  54470. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  54471. case 5:
  54472. // returning from await.
  54473. case 3:
  54474. // for update
  54475. ++_i;
  54476. // goto for condition
  54477. $async$goto = 2;
  54478. break;
  54479. case 4:
  54480. // after for
  54481. // implicit return
  54482. return P._asyncReturn(null, $async$completer);
  54483. }
  54484. });
  54485. return P._asyncStartSync($async$call$0, $async$completer);
  54486. },
  54487. $signature: 2
  54488. };
  54489. E._EvaluateVisitor_visitStyleRule_closure8.prototype = {
  54490. call$1: function(node) {
  54491. return type$.legacy_CssStyleRule._is(node);
  54492. },
  54493. $signature: 7
  54494. };
  54495. E._EvaluateVisitor_visitStyleRule_closure9.prototype = {
  54496. call$0: function() {
  54497. var t2, t3,
  54498. t1 = this.selectorText;
  54499. t1 = t1.get$value(t1);
  54500. t2 = this.$this;
  54501. t3 = !t2._async_evaluate$_stylesheet.plainCss;
  54502. return D.SelectorList_SelectorList$parse(t1, t3, t3, t2._async_evaluate$_logger);
  54503. },
  54504. $signature: 42
  54505. };
  54506. E._EvaluateVisitor_visitStyleRule_closure10.prototype = {
  54507. call$0: function() {
  54508. var t1 = this._box_0.parsedSelector,
  54509. t2 = this.$this,
  54510. t3 = t2._async_evaluate$_styleRule;
  54511. t3 = t3 == null ? null : t3.originalSelector;
  54512. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate$_atRootExcludingStyleRule);
  54513. },
  54514. $signature: 42
  54515. };
  54516. E._EvaluateVisitor_visitStyleRule_closure11.prototype = {
  54517. call$0: function() {
  54518. var $async$goto = 0,
  54519. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54520. $async$self = this, t1;
  54521. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54522. if ($async$errorCode === 1)
  54523. return P._asyncRethrow($async$result, $async$completer);
  54524. while (true)
  54525. switch ($async$goto) {
  54526. case 0:
  54527. // Function start
  54528. t1 = $async$self.$this;
  54529. $async$goto = 2;
  54530. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  54531. case 2:
  54532. // returning from await.
  54533. // implicit return
  54534. return P._asyncReturn(null, $async$completer);
  54535. }
  54536. });
  54537. return P._asyncStartSync($async$call$0, $async$completer);
  54538. },
  54539. $signature: 2
  54540. };
  54541. E._EvaluateVisitor_visitStyleRule__closure0.prototype = {
  54542. call$0: function() {
  54543. var $async$goto = 0,
  54544. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54545. $async$self = this, t1, t2, t3, _i;
  54546. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54547. if ($async$errorCode === 1)
  54548. return P._asyncRethrow($async$result, $async$completer);
  54549. while (true)
  54550. switch ($async$goto) {
  54551. case 0:
  54552. // Function start
  54553. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  54554. case 2:
  54555. // for condition
  54556. if (!(_i < t2)) {
  54557. // goto after for
  54558. $async$goto = 4;
  54559. break;
  54560. }
  54561. $async$goto = 5;
  54562. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  54563. case 5:
  54564. // returning from await.
  54565. case 3:
  54566. // for update
  54567. ++_i;
  54568. // goto for condition
  54569. $async$goto = 2;
  54570. break;
  54571. case 4:
  54572. // after for
  54573. // implicit return
  54574. return P._asyncReturn(null, $async$completer);
  54575. }
  54576. });
  54577. return P._asyncStartSync($async$call$0, $async$completer);
  54578. },
  54579. $signature: 2
  54580. };
  54581. E._EvaluateVisitor_visitStyleRule_closure12.prototype = {
  54582. call$1: function(node) {
  54583. return type$.legacy_CssStyleRule._is(node);
  54584. },
  54585. $signature: 7
  54586. };
  54587. E._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
  54588. call$0: function() {
  54589. var $async$goto = 0,
  54590. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54591. $async$self = this, t3, _i, t1, t2;
  54592. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54593. if ($async$errorCode === 1)
  54594. return P._asyncRethrow($async$result, $async$completer);
  54595. while (true)
  54596. switch ($async$goto) {
  54597. case 0:
  54598. // Function start
  54599. t1 = $async$self.$this;
  54600. t2 = t1._async_evaluate$_styleRule;
  54601. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  54602. break;
  54603. case 2:
  54604. // then
  54605. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  54606. case 5:
  54607. // for condition
  54608. if (!(_i < t3)) {
  54609. // goto after for
  54610. $async$goto = 7;
  54611. break;
  54612. }
  54613. $async$goto = 8;
  54614. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  54615. case 8:
  54616. // returning from await.
  54617. case 6:
  54618. // for update
  54619. ++_i;
  54620. // goto for condition
  54621. $async$goto = 5;
  54622. break;
  54623. case 7:
  54624. // after for
  54625. // goto join
  54626. $async$goto = 3;
  54627. break;
  54628. case 4:
  54629. // else
  54630. $async$goto = 9;
  54631. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  54632. case 9:
  54633. // returning from await.
  54634. case 3:
  54635. // join
  54636. // implicit return
  54637. return P._asyncReturn(null, $async$completer);
  54638. }
  54639. });
  54640. return P._asyncStartSync($async$call$0, $async$completer);
  54641. },
  54642. $signature: 2
  54643. };
  54644. E._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
  54645. call$0: function() {
  54646. var $async$goto = 0,
  54647. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  54648. $async$self = this, t1, t2, t3, _i;
  54649. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54650. if ($async$errorCode === 1)
  54651. return P._asyncRethrow($async$result, $async$completer);
  54652. while (true)
  54653. switch ($async$goto) {
  54654. case 0:
  54655. // Function start
  54656. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  54657. case 2:
  54658. // for condition
  54659. if (!(_i < t2)) {
  54660. // goto after for
  54661. $async$goto = 4;
  54662. break;
  54663. }
  54664. $async$goto = 5;
  54665. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  54666. case 5:
  54667. // returning from await.
  54668. case 3:
  54669. // for update
  54670. ++_i;
  54671. // goto for condition
  54672. $async$goto = 2;
  54673. break;
  54674. case 4:
  54675. // after for
  54676. // implicit return
  54677. return P._asyncReturn(null, $async$completer);
  54678. }
  54679. });
  54680. return P._asyncStartSync($async$call$0, $async$completer);
  54681. },
  54682. $signature: 2
  54683. };
  54684. E._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
  54685. call$1: function(node) {
  54686. return type$.legacy_CssStyleRule._is(node);
  54687. },
  54688. $signature: 7
  54689. };
  54690. E._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
  54691. call$0: function() {
  54692. var t1 = this.override;
  54693. this.$this._async_evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  54694. },
  54695. $signature: 0
  54696. };
  54697. E._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
  54698. call$0: function() {
  54699. var t1 = this.node;
  54700. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  54701. },
  54702. $signature: 12
  54703. };
  54704. E._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
  54705. call$0: function() {
  54706. var t1 = this.$this,
  54707. t2 = this.node;
  54708. t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  54709. },
  54710. $signature: 0
  54711. };
  54712. E._EvaluateVisitor_visitUseRule_closure0.prototype = {
  54713. call$1: function(module) {
  54714. var t1 = this.node;
  54715. this.$this._async_evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  54716. },
  54717. $signature: 120
  54718. };
  54719. E._EvaluateVisitor_visitWarnRule_closure0.prototype = {
  54720. call$0: function() {
  54721. return this.node.expression.accept$1(this.$this);
  54722. },
  54723. $signature: 30
  54724. };
  54725. E._EvaluateVisitor_visitWhileRule_closure0.prototype = {
  54726. call$0: function() {
  54727. var $async$goto = 0,
  54728. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  54729. $async$returnValue, $async$self = this, t1, t2, t3, result;
  54730. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54731. if ($async$errorCode === 1)
  54732. return P._asyncRethrow($async$result, $async$completer);
  54733. while (true)
  54734. switch ($async$goto) {
  54735. case 0:
  54736. // Function start
  54737. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  54738. case 3:
  54739. // for condition
  54740. $async$goto = 5;
  54741. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  54742. case 5:
  54743. // returning from await.
  54744. if (!$async$result.get$isTruthy()) {
  54745. // goto after for
  54746. $async$goto = 4;
  54747. break;
  54748. }
  54749. $async$goto = 6;
  54750. return P._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
  54751. case 6:
  54752. // returning from await.
  54753. result = $async$result;
  54754. if (result != null) {
  54755. $async$returnValue = result;
  54756. // goto return
  54757. $async$goto = 1;
  54758. break;
  54759. }
  54760. // goto for condition
  54761. $async$goto = 3;
  54762. break;
  54763. case 4:
  54764. // after for
  54765. $async$returnValue = null;
  54766. // goto return
  54767. $async$goto = 1;
  54768. break;
  54769. case 1:
  54770. // return
  54771. return P._asyncReturn($async$returnValue, $async$completer);
  54772. }
  54773. });
  54774. return P._asyncStartSync($async$call$0, $async$completer);
  54775. },
  54776. $signature: 30
  54777. };
  54778. E._EvaluateVisitor_visitWhileRule__closure0.prototype = {
  54779. call$1: function(child) {
  54780. return child.accept$1(this.$this);
  54781. },
  54782. $signature: 80
  54783. };
  54784. E._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
  54785. call$0: function() {
  54786. var $async$goto = 0,
  54787. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  54788. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  54789. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  54790. if ($async$errorCode === 1)
  54791. return P._asyncRethrow($async$result, $async$completer);
  54792. while (true)
  54793. switch ($async$goto) {
  54794. case 0:
  54795. // Function start
  54796. t1 = $async$self.node;
  54797. t2 = $async$self.$this;
  54798. $async$goto = 3;
  54799. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  54800. case 3:
  54801. // returning from await.
  54802. left = $async$result;
  54803. case 4:
  54804. // switch
  54805. switch (t1.operator) {
  54806. case C.BinaryOperator_kjl:
  54807. // goto case
  54808. $async$goto = 6;
  54809. break;
  54810. case C.BinaryOperator_or_or_1:
  54811. // goto case
  54812. $async$goto = 7;
  54813. break;
  54814. case C.BinaryOperator_and_and_2:
  54815. // goto case
  54816. $async$goto = 8;
  54817. break;
  54818. case C.BinaryOperator_YlX:
  54819. // goto case
  54820. $async$goto = 9;
  54821. break;
  54822. case C.BinaryOperator_i5H:
  54823. // goto case
  54824. $async$goto = 10;
  54825. break;
  54826. case C.BinaryOperator_AcR:
  54827. // goto case
  54828. $async$goto = 11;
  54829. break;
  54830. case C.BinaryOperator_1da:
  54831. // goto case
  54832. $async$goto = 12;
  54833. break;
  54834. case C.BinaryOperator_8qt:
  54835. // goto case
  54836. $async$goto = 13;
  54837. break;
  54838. case C.BinaryOperator_33h:
  54839. // goto case
  54840. $async$goto = 14;
  54841. break;
  54842. case C.BinaryOperator_AcR0:
  54843. // goto case
  54844. $async$goto = 15;
  54845. break;
  54846. case C.BinaryOperator_iyO:
  54847. // goto case
  54848. $async$goto = 16;
  54849. break;
  54850. case C.BinaryOperator_O1M:
  54851. // goto case
  54852. $async$goto = 17;
  54853. break;
  54854. case C.BinaryOperator_RTB:
  54855. // goto case
  54856. $async$goto = 18;
  54857. break;
  54858. case C.BinaryOperator_2ad:
  54859. // goto case
  54860. $async$goto = 19;
  54861. break;
  54862. default:
  54863. // goto default
  54864. $async$goto = 20;
  54865. break;
  54866. }
  54867. break;
  54868. case 6:
  54869. // case
  54870. $async$goto = 21;
  54871. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54872. case 21:
  54873. // returning from await.
  54874. right = $async$result;
  54875. left.toString;
  54876. t1 = N.serializeValue0(left, false, true) + "=";
  54877. right.toString;
  54878. $async$returnValue = new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  54879. // goto return
  54880. $async$goto = 1;
  54881. break;
  54882. case 7:
  54883. // case
  54884. $async$goto = left.get$isTruthy() ? 22 : 24;
  54885. break;
  54886. case 22:
  54887. // then
  54888. $async$result = left;
  54889. // goto join
  54890. $async$goto = 23;
  54891. break;
  54892. case 24:
  54893. // else
  54894. $async$goto = 25;
  54895. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54896. case 25:
  54897. // returning from await.
  54898. case 23:
  54899. // join
  54900. $async$returnValue = $async$result;
  54901. // goto return
  54902. $async$goto = 1;
  54903. break;
  54904. case 8:
  54905. // case
  54906. $async$goto = left.get$isTruthy() ? 26 : 28;
  54907. break;
  54908. case 26:
  54909. // then
  54910. $async$goto = 29;
  54911. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54912. case 29:
  54913. // returning from await.
  54914. // goto join
  54915. $async$goto = 27;
  54916. break;
  54917. case 28:
  54918. // else
  54919. $async$result = left;
  54920. case 27:
  54921. // join
  54922. $async$returnValue = $async$result;
  54923. // goto return
  54924. $async$goto = 1;
  54925. break;
  54926. case 9:
  54927. // case
  54928. $async$temp1 = J;
  54929. $async$temp2 = left;
  54930. $async$goto = 30;
  54931. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54932. case 30:
  54933. // returning from await.
  54934. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  54935. // goto return
  54936. $async$goto = 1;
  54937. break;
  54938. case 10:
  54939. // case
  54940. $async$temp1 = J;
  54941. $async$temp2 = left;
  54942. $async$goto = 31;
  54943. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54944. case 31:
  54945. // returning from await.
  54946. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  54947. // goto return
  54948. $async$goto = 1;
  54949. break;
  54950. case 11:
  54951. // case
  54952. $async$temp1 = left;
  54953. $async$goto = 32;
  54954. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54955. case 32:
  54956. // returning from await.
  54957. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  54958. // goto return
  54959. $async$goto = 1;
  54960. break;
  54961. case 12:
  54962. // case
  54963. $async$temp1 = left;
  54964. $async$goto = 33;
  54965. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54966. case 33:
  54967. // returning from await.
  54968. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  54969. // goto return
  54970. $async$goto = 1;
  54971. break;
  54972. case 13:
  54973. // case
  54974. $async$temp1 = left;
  54975. $async$goto = 34;
  54976. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54977. case 34:
  54978. // returning from await.
  54979. $async$returnValue = $async$temp1.lessThan$1($async$result);
  54980. // goto return
  54981. $async$goto = 1;
  54982. break;
  54983. case 14:
  54984. // case
  54985. $async$temp1 = left;
  54986. $async$goto = 35;
  54987. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54988. case 35:
  54989. // returning from await.
  54990. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  54991. // goto return
  54992. $async$goto = 1;
  54993. break;
  54994. case 15:
  54995. // case
  54996. $async$temp1 = left;
  54997. $async$goto = 36;
  54998. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  54999. case 36:
  55000. // returning from await.
  55001. $async$returnValue = $async$temp1.plus$1($async$result);
  55002. // goto return
  55003. $async$goto = 1;
  55004. break;
  55005. case 16:
  55006. // case
  55007. $async$temp1 = left;
  55008. $async$goto = 37;
  55009. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  55010. case 37:
  55011. // returning from await.
  55012. $async$returnValue = $async$temp1.minus$1($async$result);
  55013. // goto return
  55014. $async$goto = 1;
  55015. break;
  55016. case 17:
  55017. // case
  55018. $async$temp1 = left;
  55019. $async$goto = 38;
  55020. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  55021. case 38:
  55022. // returning from await.
  55023. $async$returnValue = $async$temp1.times$1($async$result);
  55024. // goto return
  55025. $async$goto = 1;
  55026. break;
  55027. case 18:
  55028. // case
  55029. $async$goto = 39;
  55030. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  55031. case 39:
  55032. // returning from await.
  55033. right = $async$result;
  55034. result = left.dividedBy$1(right);
  55035. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber) {
  55036. $async$returnValue = type$.legacy_SassNumber._as(result).withSlash$2(left, right);
  55037. // goto return
  55038. $async$goto = 1;
  55039. break;
  55040. } else {
  55041. $async$returnValue = result;
  55042. // goto return
  55043. $async$goto = 1;
  55044. break;
  55045. }
  55046. case 19:
  55047. // case
  55048. $async$temp1 = left;
  55049. $async$goto = 40;
  55050. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  55051. case 40:
  55052. // returning from await.
  55053. $async$returnValue = $async$temp1.modulo$1($async$result);
  55054. // goto return
  55055. $async$goto = 1;
  55056. break;
  55057. case 20:
  55058. // default
  55059. $async$returnValue = null;
  55060. // goto return
  55061. $async$goto = 1;
  55062. break;
  55063. case 5:
  55064. // after switch
  55065. case 1:
  55066. // return
  55067. return P._asyncReturn($async$returnValue, $async$completer);
  55068. }
  55069. });
  55070. return P._asyncStartSync($async$call$0, $async$completer);
  55071. },
  55072. $signature: 30
  55073. };
  55074. E._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
  55075. call$0: function() {
  55076. var t1 = this.node;
  55077. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  55078. },
  55079. $signature: 12
  55080. };
  55081. E._EvaluateVisitor_visitListExpression_closure0.prototype = {
  55082. call$1: function(expression) {
  55083. return expression.accept$1(this.$this);
  55084. },
  55085. $signature: 230
  55086. };
  55087. E._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
  55088. call$0: function() {
  55089. var t1 = this.node.namespace,
  55090. t2 = this.plainName;
  55091. if (t1 == null)
  55092. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  55093. return this.$this._async_evaluate$_getFunction$2$namespace(t2, t1);
  55094. },
  55095. $signature: 105
  55096. };
  55097. E._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
  55098. call$0: function() {
  55099. var t1 = this.node;
  55100. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  55101. },
  55102. $signature: 30
  55103. };
  55104. E._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
  55105. call$0: function() {
  55106. var _this = this,
  55107. t1 = _this.$this,
  55108. t2 = _this.callable;
  55109. return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  55110. },
  55111. $signature: 30
  55112. };
  55113. E._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
  55114. call$0: function() {
  55115. var _this = this,
  55116. t1 = _this.$this;
  55117. return t1._async_evaluate$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  55118. },
  55119. $signature: 30
  55120. };
  55121. E._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
  55122. call$0: function() {
  55123. var $async$goto = 0,
  55124. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  55125. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  55126. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55127. if ($async$errorCode === 1)
  55128. return P._asyncRethrow($async$result, $async$completer);
  55129. while (true)
  55130. switch ($async$goto) {
  55131. case 0:
  55132. // Function start
  55133. t1 = $async$self.$this;
  55134. t2 = $async$self.evaluated;
  55135. t3 = t2.positional;
  55136. t4 = t3.length;
  55137. t5 = t2.named;
  55138. t6 = $async$self.callable.declaration.$arguments;
  55139. t7 = $async$self.nodeWithSpan;
  55140. t1._async_evaluate$_verifyArguments$4(t4, t5, t6, t7);
  55141. declaredArguments = t6.$arguments;
  55142. t4 = declaredArguments.length;
  55143. minLength = Math.min(t3.length, t4);
  55144. for (t8 = t1._async_evaluate$_sourceMap, i = 0; i < minLength; ++i) {
  55145. t9 = t1._async_evaluate$_environment;
  55146. t10 = declaredArguments[i].name;
  55147. t11 = t3[i].withoutSlash$0();
  55148. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  55149. }
  55150. i = t3.length;
  55151. case 3:
  55152. // for condition
  55153. if (!(i < t4)) {
  55154. // goto after for
  55155. $async$goto = 5;
  55156. break;
  55157. }
  55158. argument = declaredArguments[i];
  55159. t9 = argument.name;
  55160. value = t5.remove$1(0, t9);
  55161. $async$goto = value == null ? 6 : 7;
  55162. break;
  55163. case 6:
  55164. // then
  55165. $async$goto = 8;
  55166. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  55167. case 8:
  55168. // returning from await.
  55169. value = $async$result;
  55170. case 7:
  55171. // join
  55172. t10 = t1._async_evaluate$_environment;
  55173. t11 = value.withoutSlash$0();
  55174. if (t8) {
  55175. t12 = t2.namedNodes.$index(0, t9);
  55176. if (t12 == null)
  55177. t12 = t1._async_evaluate$_expressionNode$1(argument.defaultValue);
  55178. } else
  55179. t12 = null;
  55180. t10.setLocalVariable$3(t9, t11, t12);
  55181. case 4:
  55182. // for update
  55183. ++i;
  55184. // goto for condition
  55185. $async$goto = 3;
  55186. break;
  55187. case 5:
  55188. // after for
  55189. t8 = t6.restArgument;
  55190. if (t8 != null) {
  55191. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  55192. t2 = t2.separator;
  55193. argumentList = D.SassArgumentList$(rest, t5, t2 === C.ListSeparator_undecided ? C.ListSeparator_comma : t2);
  55194. t1._async_evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  55195. } else
  55196. argumentList = null;
  55197. $async$goto = 9;
  55198. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  55199. case 9:
  55200. // returning from await.
  55201. result = $async$result;
  55202. if (argumentList == null) {
  55203. $async$returnValue = result;
  55204. // goto return
  55205. $async$goto = 1;
  55206. break;
  55207. }
  55208. if (t5.get$isEmpty(t5)) {
  55209. $async$returnValue = result;
  55210. // goto return
  55211. $async$goto = 1;
  55212. break;
  55213. }
  55214. if (argumentList._wereKeywordsAccessed) {
  55215. $async$returnValue = result;
  55216. // goto return
  55217. $async$goto = 1;
  55218. break;
  55219. }
  55220. t2 = t5.get$keys(t5);
  55221. argumentWord = B.pluralize("argument", t2.get$length(t2), null);
  55222. t5 = t5.get$keys(t5);
  55223. argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new E._EvaluateVisitor__runUserDefinedCallable____closure0(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  55224. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._async_evaluate$_stackTrace$1(t7.get$span())));
  55225. case 1:
  55226. // return
  55227. return P._asyncReturn($async$returnValue, $async$completer);
  55228. }
  55229. });
  55230. return P._asyncStartSync($async$call$0, $async$completer);
  55231. },
  55232. $signature: 30
  55233. };
  55234. E._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
  55235. call$1: function($name) {
  55236. return "$" + H.S($name);
  55237. },
  55238. $signature: 6
  55239. };
  55240. E._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
  55241. call$0: function() {
  55242. var $async$goto = 0,
  55243. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value),
  55244. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  55245. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55246. if ($async$errorCode === 1)
  55247. return P._asyncRethrow($async$result, $async$completer);
  55248. while (true)
  55249. switch ($async$goto) {
  55250. case 0:
  55251. // Function start
  55252. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  55253. case 3:
  55254. // for condition
  55255. if (!(_i < t3)) {
  55256. // goto after for
  55257. $async$goto = 5;
  55258. break;
  55259. }
  55260. $async$goto = 6;
  55261. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  55262. case 6:
  55263. // returning from await.
  55264. $returnValue = $async$result;
  55265. if ($returnValue instanceof F.Value) {
  55266. $async$returnValue = $returnValue;
  55267. // goto return
  55268. $async$goto = 1;
  55269. break;
  55270. }
  55271. case 4:
  55272. // for update
  55273. ++_i;
  55274. // goto for condition
  55275. $async$goto = 3;
  55276. break;
  55277. case 5:
  55278. // after for
  55279. throw H.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
  55280. case 1:
  55281. // return
  55282. return P._asyncReturn($async$returnValue, $async$completer);
  55283. }
  55284. });
  55285. return P._asyncStartSync($async$call$0, $async$completer);
  55286. },
  55287. $signature: 30
  55288. };
  55289. E._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
  55290. call$0: function() {
  55291. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  55292. },
  55293. $signature: 1
  55294. };
  55295. E._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
  55296. call$1: function($name) {
  55297. return "$" + H.S($name);
  55298. },
  55299. $signature: 6
  55300. };
  55301. E._EvaluateVisitor__evaluateArguments_closure0.prototype = {
  55302. call$2: function(key, value) {
  55303. var t1;
  55304. this.named.$indexSet(0, key, value);
  55305. t1 = this.namedNodes;
  55306. if (t1 != null)
  55307. t1.$indexSet(0, key, this.restNodeForSpan);
  55308. },
  55309. $signature: 79
  55310. };
  55311. E._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
  55312. call$1: function(value) {
  55313. return new F.ValueExpression(value, null);
  55314. },
  55315. $signature: 47
  55316. };
  55317. E._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
  55318. call$1: function(value) {
  55319. return new F.ValueExpression(value, null);
  55320. },
  55321. $signature: 47
  55322. };
  55323. E._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
  55324. call$2: function(key, value) {
  55325. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  55326. },
  55327. $signature: 79
  55328. };
  55329. E._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
  55330. call$1: function(value) {
  55331. return new F.ValueExpression(value, null);
  55332. },
  55333. $signature: 47
  55334. };
  55335. E._EvaluateVisitor__addRestMap_closure1.prototype = {
  55336. call$1: function(value) {
  55337. return this.T._eval$1("0*")._as(value);
  55338. },
  55339. $signature: function() {
  55340. return this.T._eval$1("0*(Value*)");
  55341. }
  55342. };
  55343. E._EvaluateVisitor__addRestMap_closure2.prototype = {
  55344. call$2: function(key, value) {
  55345. var _this = this;
  55346. if (key instanceof D.SassString)
  55347. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  55348. else
  55349. throw H.wrapException(_this.$this._async_evaluate$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  55350. },
  55351. $signature: 46
  55352. };
  55353. E._EvaluateVisitor__verifyArguments_closure0.prototype = {
  55354. call$0: function() {
  55355. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  55356. },
  55357. $signature: 1
  55358. };
  55359. E._EvaluateVisitor_visitStringExpression_closure0.prototype = {
  55360. call$1: function(value) {
  55361. var $async$goto = 0,
  55362. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  55363. $async$returnValue, $async$self = this, t1, result;
  55364. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55365. if ($async$errorCode === 1)
  55366. return P._asyncRethrow($async$result, $async$completer);
  55367. while (true)
  55368. switch ($async$goto) {
  55369. case 0:
  55370. // Function start
  55371. if (typeof value == "string") {
  55372. $async$returnValue = value;
  55373. // goto return
  55374. $async$goto = 1;
  55375. break;
  55376. }
  55377. type$.legacy_Expression._as(value);
  55378. t1 = $async$self.$this;
  55379. $async$goto = 3;
  55380. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  55381. case 3:
  55382. // returning from await.
  55383. result = $async$result;
  55384. $async$returnValue = result instanceof D.SassString ? result.text : t1._async_evaluate$_serialize$3$quote(result, value, false);
  55385. // goto return
  55386. $async$goto = 1;
  55387. break;
  55388. case 1:
  55389. // return
  55390. return P._asyncReturn($async$returnValue, $async$completer);
  55391. }
  55392. });
  55393. return P._asyncStartSync($async$call$1, $async$completer);
  55394. },
  55395. $signature: 78
  55396. };
  55397. E._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
  55398. call$0: function() {
  55399. var $async$goto = 0,
  55400. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55401. $async$self = this, t1, t2, cur;
  55402. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55403. if ($async$errorCode === 1)
  55404. return P._asyncRethrow($async$result, $async$completer);
  55405. while (true)
  55406. switch ($async$goto) {
  55407. case 0:
  55408. // Function start
  55409. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  55410. case 2:
  55411. // for condition
  55412. if (!t1.moveNext$0()) {
  55413. // goto after for
  55414. $async$goto = 3;
  55415. break;
  55416. }
  55417. cur = t1.__internal$_current;
  55418. $async$goto = 4;
  55419. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  55420. case 4:
  55421. // returning from await.
  55422. // goto for condition
  55423. $async$goto = 2;
  55424. break;
  55425. case 3:
  55426. // after for
  55427. // implicit return
  55428. return P._asyncReturn(null, $async$completer);
  55429. }
  55430. });
  55431. return P._asyncStartSync($async$call$0, $async$completer);
  55432. },
  55433. $signature: 2
  55434. };
  55435. E._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
  55436. call$1: function(node) {
  55437. return type$.legacy_CssStyleRule._is(node);
  55438. },
  55439. $signature: 7
  55440. };
  55441. E._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
  55442. call$0: function() {
  55443. var $async$goto = 0,
  55444. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55445. $async$self = this, t1, t2, cur;
  55446. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55447. if ($async$errorCode === 1)
  55448. return P._asyncRethrow($async$result, $async$completer);
  55449. while (true)
  55450. switch ($async$goto) {
  55451. case 0:
  55452. // Function start
  55453. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  55454. case 2:
  55455. // for condition
  55456. if (!t1.moveNext$0()) {
  55457. // goto after for
  55458. $async$goto = 3;
  55459. break;
  55460. }
  55461. cur = t1.__internal$_current;
  55462. $async$goto = 4;
  55463. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  55464. case 4:
  55465. // returning from await.
  55466. // goto for condition
  55467. $async$goto = 2;
  55468. break;
  55469. case 3:
  55470. // after for
  55471. // implicit return
  55472. return P._asyncReturn(null, $async$completer);
  55473. }
  55474. });
  55475. return P._asyncStartSync($async$call$0, $async$completer);
  55476. },
  55477. $signature: 2
  55478. };
  55479. E._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
  55480. call$1: function(node) {
  55481. return type$.legacy_CssStyleRule._is(node);
  55482. },
  55483. $signature: 7
  55484. };
  55485. E._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
  55486. call$0: function() {
  55487. var $async$goto = 0,
  55488. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55489. $async$self = this, t1, t2;
  55490. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55491. if ($async$errorCode === 1)
  55492. return P._asyncRethrow($async$result, $async$completer);
  55493. while (true)
  55494. switch ($async$goto) {
  55495. case 0:
  55496. // Function start
  55497. t1 = $async$self.$this;
  55498. t2 = $async$self.mergedQueries;
  55499. if (t2 == null)
  55500. t2 = $async$self.node.queries;
  55501. $async$goto = 2;
  55502. return P._asyncAwait(t1._async_evaluate$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  55503. case 2:
  55504. // returning from await.
  55505. // implicit return
  55506. return P._asyncReturn(null, $async$completer);
  55507. }
  55508. });
  55509. return P._asyncStartSync($async$call$0, $async$completer);
  55510. },
  55511. $signature: 2
  55512. };
  55513. E._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
  55514. call$0: function() {
  55515. var $async$goto = 0,
  55516. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55517. $async$self = this, cur, t1, t2;
  55518. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55519. if ($async$errorCode === 1)
  55520. return P._asyncRethrow($async$result, $async$completer);
  55521. while (true)
  55522. switch ($async$goto) {
  55523. case 0:
  55524. // Function start
  55525. t1 = $async$self.$this;
  55526. t2 = t1._async_evaluate$_styleRule;
  55527. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  55528. break;
  55529. case 2:
  55530. // then
  55531. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  55532. case 5:
  55533. // for condition
  55534. if (!t2.moveNext$0()) {
  55535. // goto after for
  55536. $async$goto = 6;
  55537. break;
  55538. }
  55539. cur = t2.__internal$_current;
  55540. $async$goto = 7;
  55541. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  55542. case 7:
  55543. // returning from await.
  55544. // goto for condition
  55545. $async$goto = 5;
  55546. break;
  55547. case 6:
  55548. // after for
  55549. // goto join
  55550. $async$goto = 3;
  55551. break;
  55552. case 4:
  55553. // else
  55554. $async$goto = 8;
  55555. return P._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  55556. case 8:
  55557. // returning from await.
  55558. case 3:
  55559. // join
  55560. // implicit return
  55561. return P._asyncReturn(null, $async$completer);
  55562. }
  55563. });
  55564. return P._asyncStartSync($async$call$0, $async$completer);
  55565. },
  55566. $signature: 2
  55567. };
  55568. E._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
  55569. call$0: function() {
  55570. var $async$goto = 0,
  55571. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55572. $async$self = this, t1, t2, cur;
  55573. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55574. if ($async$errorCode === 1)
  55575. return P._asyncRethrow($async$result, $async$completer);
  55576. while (true)
  55577. switch ($async$goto) {
  55578. case 0:
  55579. // Function start
  55580. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  55581. case 2:
  55582. // for condition
  55583. if (!t1.moveNext$0()) {
  55584. // goto after for
  55585. $async$goto = 3;
  55586. break;
  55587. }
  55588. cur = t1.__internal$_current;
  55589. $async$goto = 4;
  55590. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  55591. case 4:
  55592. // returning from await.
  55593. // goto for condition
  55594. $async$goto = 2;
  55595. break;
  55596. case 3:
  55597. // after for
  55598. // implicit return
  55599. return P._asyncReturn(null, $async$completer);
  55600. }
  55601. });
  55602. return P._asyncStartSync($async$call$0, $async$completer);
  55603. },
  55604. $signature: 2
  55605. };
  55606. E._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
  55607. call$1: function(node) {
  55608. var t1;
  55609. if (!type$.legacy_CssStyleRule._is(node))
  55610. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  55611. else
  55612. t1 = true;
  55613. return t1;
  55614. },
  55615. $signature: 7
  55616. };
  55617. E._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
  55618. call$0: function() {
  55619. var $async$goto = 0,
  55620. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55621. $async$self = this, t1;
  55622. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55623. if ($async$errorCode === 1)
  55624. return P._asyncRethrow($async$result, $async$completer);
  55625. while (true)
  55626. switch ($async$goto) {
  55627. case 0:
  55628. // Function start
  55629. t1 = $async$self.$this;
  55630. $async$goto = 2;
  55631. return P._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  55632. case 2:
  55633. // returning from await.
  55634. // implicit return
  55635. return P._asyncReturn(null, $async$completer);
  55636. }
  55637. });
  55638. return P._asyncStartSync($async$call$0, $async$completer);
  55639. },
  55640. $signature: 2
  55641. };
  55642. E._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
  55643. call$0: function() {
  55644. var $async$goto = 0,
  55645. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55646. $async$self = this, t1, t2, cur;
  55647. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55648. if ($async$errorCode === 1)
  55649. return P._asyncRethrow($async$result, $async$completer);
  55650. while (true)
  55651. switch ($async$goto) {
  55652. case 0:
  55653. // Function start
  55654. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  55655. case 2:
  55656. // for condition
  55657. if (!t1.moveNext$0()) {
  55658. // goto after for
  55659. $async$goto = 3;
  55660. break;
  55661. }
  55662. cur = t1.__internal$_current;
  55663. $async$goto = 4;
  55664. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  55665. case 4:
  55666. // returning from await.
  55667. // goto for condition
  55668. $async$goto = 2;
  55669. break;
  55670. case 3:
  55671. // after for
  55672. // implicit return
  55673. return P._asyncReturn(null, $async$completer);
  55674. }
  55675. });
  55676. return P._asyncStartSync($async$call$0, $async$completer);
  55677. },
  55678. $signature: 2
  55679. };
  55680. E._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
  55681. call$1: function(node) {
  55682. return type$.legacy_CssStyleRule._is(node);
  55683. },
  55684. $signature: 7
  55685. };
  55686. E._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
  55687. call$0: function() {
  55688. var $async$goto = 0,
  55689. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55690. $async$self = this, cur, t1, t2;
  55691. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55692. if ($async$errorCode === 1)
  55693. return P._asyncRethrow($async$result, $async$completer);
  55694. while (true)
  55695. switch ($async$goto) {
  55696. case 0:
  55697. // Function start
  55698. t1 = $async$self.$this;
  55699. t2 = t1._async_evaluate$_styleRule;
  55700. $async$goto = !(t2 != null && !t1._async_evaluate$_atRootExcludingStyleRule) ? 2 : 4;
  55701. break;
  55702. case 2:
  55703. // then
  55704. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  55705. case 5:
  55706. // for condition
  55707. if (!t2.moveNext$0()) {
  55708. // goto after for
  55709. $async$goto = 6;
  55710. break;
  55711. }
  55712. cur = t2.__internal$_current;
  55713. $async$goto = 7;
  55714. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  55715. case 7:
  55716. // returning from await.
  55717. // goto for condition
  55718. $async$goto = 5;
  55719. break;
  55720. case 6:
  55721. // after for
  55722. // goto join
  55723. $async$goto = 3;
  55724. break;
  55725. case 4:
  55726. // else
  55727. $async$goto = 8;
  55728. return P._asyncAwait(t1._async_evaluate$_withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule, type$.Null), $async$call$0);
  55729. case 8:
  55730. // returning from await.
  55731. case 3:
  55732. // join
  55733. // implicit return
  55734. return P._asyncReturn(null, $async$completer);
  55735. }
  55736. });
  55737. return P._asyncStartSync($async$call$0, $async$completer);
  55738. },
  55739. $signature: 2
  55740. };
  55741. E._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
  55742. call$0: function() {
  55743. var $async$goto = 0,
  55744. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  55745. $async$self = this, t1, t2, cur;
  55746. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55747. if ($async$errorCode === 1)
  55748. return P._asyncRethrow($async$result, $async$completer);
  55749. while (true)
  55750. switch ($async$goto) {
  55751. case 0:
  55752. // Function start
  55753. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  55754. case 2:
  55755. // for condition
  55756. if (!t1.moveNext$0()) {
  55757. // goto after for
  55758. $async$goto = 3;
  55759. break;
  55760. }
  55761. cur = t1.__internal$_current;
  55762. $async$goto = 4;
  55763. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  55764. case 4:
  55765. // returning from await.
  55766. // goto for condition
  55767. $async$goto = 2;
  55768. break;
  55769. case 3:
  55770. // after for
  55771. // implicit return
  55772. return P._asyncReturn(null, $async$completer);
  55773. }
  55774. });
  55775. return P._asyncStartSync($async$call$0, $async$completer);
  55776. },
  55777. $signature: 2
  55778. };
  55779. E._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
  55780. call$1: function(node) {
  55781. return type$.legacy_CssStyleRule._is(node);
  55782. },
  55783. $signature: 7
  55784. };
  55785. E._EvaluateVisitor__performInterpolation_closure0.prototype = {
  55786. call$1: function(value) {
  55787. var $async$goto = 0,
  55788. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  55789. $async$returnValue, $async$self = this, t1, result, t2, t3;
  55790. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  55791. if ($async$errorCode === 1)
  55792. return P._asyncRethrow($async$result, $async$completer);
  55793. while (true)
  55794. switch ($async$goto) {
  55795. case 0:
  55796. // Function start
  55797. if (typeof value == "string") {
  55798. $async$returnValue = value;
  55799. // goto return
  55800. $async$goto = 1;
  55801. break;
  55802. }
  55803. type$.legacy_Expression._as(value);
  55804. t1 = $async$self.$this;
  55805. $async$goto = 3;
  55806. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  55807. case 3:
  55808. // returning from await.
  55809. result = $async$result;
  55810. if ($async$self.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  55811. t2 = X.Interpolation$(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  55812. t3 = $.$get$namesByColor();
  55813. t1._async_evaluate$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whicw + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression(C.BinaryOperator_AcR0, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  55814. }
  55815. $async$returnValue = t1._async_evaluate$_serialize$3$quote(result, value, false);
  55816. // goto return
  55817. $async$goto = 1;
  55818. break;
  55819. case 1:
  55820. // return
  55821. return P._asyncReturn($async$returnValue, $async$completer);
  55822. }
  55823. });
  55824. return P._asyncStartSync($async$call$1, $async$completer);
  55825. },
  55826. $signature: 78
  55827. };
  55828. E._EvaluateVisitor__serialize_closure0.prototype = {
  55829. call$0: function() {
  55830. var t1 = this.value;
  55831. t1.toString;
  55832. return N.serializeValue0(t1, false, this.quote);
  55833. },
  55834. $signature: 17
  55835. };
  55836. E._EvaluateVisitor__stackTrace_closure0.prototype = {
  55837. call$1: function(tuple) {
  55838. return this.$this._async_evaluate$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  55839. },
  55840. $signature: 195
  55841. };
  55842. E._ImportedCssVisitor0.prototype = {
  55843. visitCssAtRule$1: function(node) {
  55844. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure0();
  55845. this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
  55846. },
  55847. visitCssComment$1: function(node) {
  55848. return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
  55849. },
  55850. visitCssDeclaration$1: function(node) {
  55851. },
  55852. visitCssImport$1: function(node) {
  55853. var t1 = this._async_evaluate$_visitor,
  55854. t2 = t1._async_evaluate$_parent,
  55855. t3 = t1._async_evaluate$_root;
  55856. if (t2 != t3)
  55857. t1._async_evaluate$_addChild$1(node);
  55858. else if (t1._async_evaluate$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  55859. t1._async_evaluate$_addChild$1(node);
  55860. t1._async_evaluate$_endOfImports = t1._async_evaluate$_endOfImports + 1;
  55861. } else {
  55862. t2 = t1._async_evaluate$_outOfOrderImports;
  55863. (t2 == null ? t1._async_evaluate$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t2).push(node);
  55864. }
  55865. },
  55866. visitCssKeyframeBlock$1: function(node) {
  55867. },
  55868. visitCssMediaRule$1: function(node) {
  55869. var t1 = this._async_evaluate$_visitor,
  55870. t2 = t1._async_evaluate$_mediaQueries;
  55871. t1._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure0(t2 == null || t1._async_evaluate$_mergeMediaQueries$2(t2, node.queries) != null));
  55872. },
  55873. visitCssStyleRule$1: function(node) {
  55874. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure0());
  55875. },
  55876. visitCssStylesheet$1: function(node) {
  55877. var t1, cur;
  55878. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  55879. cur = t1.__internal$_current;
  55880. cur.accept$1(this);
  55881. }
  55882. },
  55883. visitCssSupportsRule$1: function(node) {
  55884. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure0());
  55885. }
  55886. };
  55887. E._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
  55888. call$1: function(node) {
  55889. return type$.legacy_CssStyleRule._is(node);
  55890. },
  55891. $signature: 7
  55892. };
  55893. E._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
  55894. call$1: function(node) {
  55895. var t1;
  55896. if (!type$.legacy_CssStyleRule._is(node))
  55897. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule._is(node);
  55898. else
  55899. t1 = true;
  55900. return t1;
  55901. },
  55902. $signature: 7
  55903. };
  55904. E._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
  55905. call$1: function(node) {
  55906. return type$.legacy_CssStyleRule._is(node);
  55907. },
  55908. $signature: 7
  55909. };
  55910. E._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
  55911. call$1: function(node) {
  55912. return type$.legacy_CssStyleRule._is(node);
  55913. },
  55914. $signature: 7
  55915. };
  55916. E.EvaluateResult.prototype = {};
  55917. E._ArgumentResults0.prototype = {};
  55918. V._CloneCssVisitor.prototype = {
  55919. visitCssAtRule$1: function(node) {
  55920. var t1 = node.isChildless,
  55921. rule = U.ModifiableCssAtRule$(node.name, node.span, t1, node.value);
  55922. return t1 ? rule : this._visitChildren$2(rule, node);
  55923. },
  55924. visitCssComment$1: function(node) {
  55925. return new R.ModifiableCssComment(node.text, node.span);
  55926. },
  55927. visitCssDeclaration$1: function(node) {
  55928. return L.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
  55929. },
  55930. visitCssImport$1: function(node) {
  55931. return F.ModifiableCssImport$(node.url, node.span, node.media, node.supports);
  55932. },
  55933. visitCssKeyframeBlock$1: function(node) {
  55934. return this._visitChildren$2(U.ModifiableCssKeyframeBlock$(node.selector, node.span), node);
  55935. },
  55936. visitCssMediaRule$1: function(node) {
  55937. return this._visitChildren$2(G.ModifiableCssMediaRule$(node.queries, node.span), node);
  55938. },
  55939. visitCssStyleRule$1: function(node) {
  55940. var newSelector = this._oldToNewSelectors.$index(0, node.selector);
  55941. if (newSelector == null)
  55942. throw H.wrapException(P.StateError$(string$.The_Ex));
  55943. return this._visitChildren$2(X.ModifiableCssStyleRule$(newSelector, node.span, node.originalSelector), node);
  55944. },
  55945. visitCssStylesheet$1: function(node) {
  55946. return this._visitChildren$2(V.ModifiableCssStylesheet$(node.get$span()), node);
  55947. },
  55948. visitCssSupportsRule$1: function(node) {
  55949. return this._visitChildren$2(B.ModifiableCssSupportsRule$(node.condition, node.span), node);
  55950. },
  55951. _visitChildren$1$2: function(newParent, oldParent) {
  55952. var t1, t2, newChild;
  55953. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  55954. t2 = t1.get$current(t1);
  55955. newChild = t2.accept$1(this);
  55956. newChild.isGroupEnd = t2.get$isGroupEnd();
  55957. newParent.addChild$1(newChild);
  55958. }
  55959. return newParent;
  55960. },
  55961. _visitChildren$2: function(newParent, oldParent) {
  55962. return this._visitChildren$1$2(newParent, oldParent, type$.legacy_ModifiableCssParentNode);
  55963. }
  55964. };
  55965. R.Evaluator.prototype = {};
  55966. R._EvaluateVisitor.prototype = {
  55967. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap: function(functions, importCache, logger, nodeImporter, sourceMap) {
  55968. var t2, cur, _i, metaModule, t3, module, $function, t4, _this = this,
  55969. _s20_ = "$name, $module: null",
  55970. _s9_ = "sass:meta",
  55971. metaFunctions = [Q.BuiltInCallable$function("global-variable-exists", _s20_, new R._EvaluateVisitor_closure(_this), _s9_), Q.BuiltInCallable$function("variable-exists", "$name", new R._EvaluateVisitor_closure0(_this), _s9_), Q.BuiltInCallable$function("function-exists", _s20_, new R._EvaluateVisitor_closure1(_this), _s9_), Q.BuiltInCallable$function("mixin-exists", _s20_, new R._EvaluateVisitor_closure2(_this), _s9_), Q.BuiltInCallable$function("content-exists", "", new R._EvaluateVisitor_closure3(_this), _s9_), Q.BuiltInCallable$function("module-variables", "$module", new R._EvaluateVisitor_closure4(_this), _s9_), Q.BuiltInCallable$function("module-functions", "$module", new R._EvaluateVisitor_closure5(_this), _s9_), Q.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new R._EvaluateVisitor_closure6(_this), _s9_), Q.BuiltInCallable$function("call", "$function, $args...", new R._EvaluateVisitor_closure7(_this), _s9_)],
  55972. t1 = type$.JSArray_legacy_BuiltInCallable,
  55973. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin("load-css", "$url, $with: null", new R._EvaluateVisitor_closure8(_this), _s9_)], t1);
  55974. t1 = H.setRuntimeTypeInfo([], t1);
  55975. for (t2 = $.$get$global(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  55976. cur = t2.__internal$_current;
  55977. t1.push(cur);
  55978. }
  55979. for (_i = 0; _i < 9; ++_i)
  55980. t1.push(metaFunctions[_i]);
  55981. metaModule = Q.BuiltInModule$("meta", t1, metaMixins, null, type$.legacy_BuiltInCallable);
  55982. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable);
  55983. for (t2 = $.$get$coreModules(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  55984. cur = t2.__internal$_current;
  55985. t1.push(cur);
  55986. }
  55987. t1.push(metaModule);
  55988. t2 = t1.length;
  55989. t3 = _this._builtInModules;
  55990. _i = 0;
  55991. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  55992. module = t1[_i];
  55993. t3.$indexSet(0, module.url, module);
  55994. }
  55995. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Callable);
  55996. for (t2 = $.$get$globalFunctions(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  55997. cur = t2.__internal$_current;
  55998. t1.push(cur);
  55999. }
  56000. for (_i = 0; _i < 9; ++_i)
  56001. t1.push(metaFunctions[_i]);
  56002. for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  56003. $function = t1[_i];
  56004. t4 = $function.get$name($function);
  56005. t4.toString;
  56006. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  56007. }
  56008. },
  56009. run$2: function(_, importer, node) {
  56010. return this._withWarnCallback$1$1(new R._EvaluateVisitor_run_closure(this, node, importer), type$.legacy_EvaluateResult);
  56011. },
  56012. runExpression$2: function(importer, expression) {
  56013. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runExpression_closure(this, importer, expression), type$.legacy_Value);
  56014. },
  56015. runStatement$2: function(importer, statement) {
  56016. return this._withWarnCallback$1$1(new R._EvaluateVisitor_runStatement_closure(this, importer, statement), type$.void);
  56017. },
  56018. _withWarnCallback$1$1: function(callback, $T) {
  56019. return N.withWarnCallback(new R._EvaluateVisitor__withWarnCallback_closure(this), callback, $T._eval$1("0*"));
  56020. },
  56021. _withFakeStylesheet$1$3: function(importer, nodeWithSpan, callback) {
  56022. var oldStylesheet, t1, _this = this,
  56023. oldImporter = _this._importer;
  56024. _this._importer = importer;
  56025. oldStylesheet = _this._stylesheet;
  56026. _this._stylesheet = V.Stylesheet$(C.List_empty11, nodeWithSpan.get$span(), false);
  56027. try {
  56028. t1 = callback.call$0();
  56029. return t1;
  56030. } finally {
  56031. _this._importer = oldImporter;
  56032. _this._stylesheet = oldStylesheet;
  56033. }
  56034. },
  56035. _withFakeStylesheet$3: function(importer, nodeWithSpan, callback) {
  56036. return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
  56037. },
  56038. _loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  56039. var t1, _this = this,
  56040. builtInModule = _this._builtInModules.$index(0, url);
  56041. if (builtInModule != null) {
  56042. if (configuration != null && !configuration.isImplicit) {
  56043. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  56044. throw H.wrapException(_this._evaluate$_exception$2(t1, nodeWithSpan.get$span()));
  56045. }
  56046. _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__loadModule_closure(callback, builtInModule));
  56047. return;
  56048. }
  56049. _this._withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  56050. },
  56051. _loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  56052. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  56053. },
  56054. _loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  56055. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  56056. },
  56057. _execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  56058. var message, existingNode, environment, extender, module, _this = this, t1 = {},
  56059. url = stylesheet.span.file.url,
  56060. t2 = _this._modules,
  56061. alreadyLoaded = t2.$index(0, url);
  56062. if (alreadyLoaded != null) {
  56063. t1 = configuration == null;
  56064. if (!(t1 ? _this._configuration : configuration).isImplicit) {
  56065. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  56066. existingNode = _this._moduleNodes.$index(0, url);
  56067. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  56068. if (existingNode != null)
  56069. t2.$indexSet(0, existingNode.get$span(), "original load");
  56070. if (t1)
  56071. t2.$indexSet(0, _this._configuration.nodeWithSpan.get$span(), "configuration");
  56072. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t2));
  56073. }
  56074. return alreadyLoaded;
  56075. }
  56076. environment = O.Environment$(_this._sourceMap);
  56077. t1.css = null;
  56078. extender = F.Extender$();
  56079. _this._withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure(t1, _this, importer, stylesheet, extender, configuration));
  56080. module = O._EnvironmentModule__EnvironmentModule(environment, t1.css, extender, environment._forwardedModules);
  56081. t2.$indexSet(0, url, module);
  56082. _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
  56083. return module;
  56084. },
  56085. _execute$2: function(importer, stylesheet) {
  56086. return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  56087. },
  56088. _addOutOfOrderImports$0: function() {
  56089. var t1, statements, _this = this;
  56090. if (_this._outOfOrderImports == null)
  56091. return _this._root.children;
  56092. t1 = new Array(J.get$length$asx(_this._root.children._collection$_source) + _this._outOfOrderImports.length);
  56093. t1.fixed$length = Array;
  56094. statements = new G.FixedLengthListBuilder(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode), type$.FixedLengthListBuilder_legacy_ModifiableCssNode);
  56095. statements.addRange$3(_this._root.children, 0, _this._endOfImports);
  56096. statements.addAll$1(0, _this._outOfOrderImports);
  56097. statements.addRange$2(_this._root.children, _this._endOfImports);
  56098. return statements.build$0();
  56099. },
  56100. _combineCss$2$clone: function(root, clone) {
  56101. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, t2, statements, index, _this = this;
  56102. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure())) {
  56103. selectors = root.get$extender().get$simpleSelectors();
  56104. unsatisfiedExtension = B.firstOrNull(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure0(selectors)));
  56105. if (unsatisfiedExtension != null)
  56106. _this._throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  56107. return root.get$css(root);
  56108. }
  56109. sortedModules = _this._topologicalModules$1(root);
  56110. if (clone) {
  56111. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module<Callable*>*>");
  56112. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure1(), t1), true, t1._eval$1("ListIterable.E"));
  56113. }
  56114. _this._extendModules$1(sortedModules);
  56115. t1 = type$.JSArray_legacy_CssNode;
  56116. imports = H.setRuntimeTypeInfo([], t1);
  56117. css = H.setRuntimeTypeInfo([], t1);
  56118. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  56119. cur = t1.__internal$_current;
  56120. t2 = cur.get$css(cur);
  56121. statements = t2.get$children(t2);
  56122. index = _this._indexAfterImports$1(statements);
  56123. t2 = J.getInterceptor$ax(statements);
  56124. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  56125. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  56126. }
  56127. return new V.CssStylesheet(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode), root.get$css(root).get$span());
  56128. },
  56129. _combineCss$1: function(root) {
  56130. return this._combineCss$2$clone(root, false);
  56131. },
  56132. _extendModules$1: function(sortedModules) {
  56133. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  56134. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender),
  56135. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension);
  56136. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  56137. t2 = t1.get$current(t1);
  56138. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  56139. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure(originalSelectors)));
  56140. extenders = downstreamExtenders.$index(0, t2.get$url());
  56141. if (extenders != null)
  56142. t2.get$extender().addExtensions$1(extenders);
  56143. t3 = t2.get$extender();
  56144. if (t3.get$isEmpty(t3))
  56145. continue;
  56146. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  56147. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure0()), t2.get$extender());
  56148. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  56149. }
  56150. if (unsatisfiedExtensions._collection$_length !== 0)
  56151. this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  56152. },
  56153. _throwForUnsatisfiedExtension$1: function(extension) {
  56154. throw H.wrapException(E.SassException$(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  56155. },
  56156. _topologicalModules$1: function(root) {
  56157. var t1 = type$.legacy_Module_legacy_Callable,
  56158. sorted = Q.QueueList$(null, t1);
  56159. new R._EvaluateVisitor__topologicalModules_visitModule(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  56160. return sorted;
  56161. },
  56162. _indexAfterImports$1: function(statements) {
  56163. var t1, t2, t3, lastImport, i, statement;
  56164. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment, t3 = type$.legacy_CssImport, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  56165. statement = t1.$index(statements, i);
  56166. if (t3._is(statement))
  56167. lastImport = i;
  56168. else if (!t2._is(statement))
  56169. break;
  56170. }
  56171. return lastImport + 1;
  56172. },
  56173. visitStylesheet$1: function(node) {
  56174. var t1, t2, _i;
  56175. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  56176. t1[_i].accept$1(this);
  56177. return null;
  56178. },
  56179. visitAtRootRule$1: function(node) {
  56180. var root, innerCopy, outerCopy, cur, copy, _this = this, _null = null,
  56181. t1 = node.query,
  56182. query = t1 != null ? _this._adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure(_this, _this._performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS,
  56183. $parent = _this._evaluate$_parent,
  56184. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode);
  56185. for (t1 = type$.legacy_CssStylesheet; !t1._is($parent);) {
  56186. if (!query.excludes$1($parent))
  56187. included.push($parent);
  56188. $parent = $parent._parent;
  56189. }
  56190. root = _this._trimIncluded$1(included);
  56191. if (root == _this._evaluate$_parent) {
  56192. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure0(_this, node), node.hasDeclarations, type$.Null);
  56193. return _null;
  56194. }
  56195. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  56196. for (t1 = H.SubListIterable$(included, 1, _null, type$.legacy_ModifiableCssParentNode), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  56197. cur = t1.__internal$_current;
  56198. copy = cur.copyWithoutChildren$0();
  56199. copy.addChild$1(outerCopy);
  56200. }
  56201. if (outerCopy != null)
  56202. root.addChild$1(outerCopy);
  56203. _this._scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure1(_this, node));
  56204. return _null;
  56205. },
  56206. _trimIncluded$1: function(nodes) {
  56207. var $parent, innermostContiguous, i, t2, root,
  56208. t1 = nodes.length;
  56209. if (t1 === 0)
  56210. return this._root;
  56211. $parent = this._evaluate$_parent;
  56212. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  56213. for (; $parent != nodes[i]; innermostContiguous = null)
  56214. $parent = $parent._parent;
  56215. if (innermostContiguous == null)
  56216. innermostContiguous = i;
  56217. $parent = $parent._parent;
  56218. }
  56219. t2 = this._root;
  56220. if ($parent != t2)
  56221. return t2;
  56222. root = nodes[innermostContiguous];
  56223. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  56224. return root;
  56225. },
  56226. _scopeForAtRoot$4: function(node, newParent, query, included) {
  56227. var _this = this,
  56228. scope = new R._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
  56229. t1 = query._all || query._at_root_query$_rule;
  56230. if (t1 !== query.include)
  56231. scope = new R._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
  56232. if (_this._mediaQueries != null && query.excludesName$1("media"))
  56233. scope = new R._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
  56234. if (_this._inKeyframes && query.excludesName$1("keyframes"))
  56235. scope = new R._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
  56236. return _this._inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure3()) ? new R._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
  56237. },
  56238. visitContentBlock$1: function(node) {
  56239. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  56240. },
  56241. visitContentRule$1: function(node) {
  56242. var $content = this._evaluate$_environment._content;
  56243. if ($content == null)
  56244. return null;
  56245. this._runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure(this, $content));
  56246. return null;
  56247. },
  56248. visitDebugRule$1: function(node) {
  56249. var value = node.expression.accept$1(this),
  56250. t1 = value instanceof D.SassString ? value.text : J.toString$0$(value);
  56251. this._evaluate$_logger.debug$2(0, t1, node.span);
  56252. return null;
  56253. },
  56254. visitDeclaration$1: function(node) {
  56255. var t1, $name, t2, cssValue, t3, oldDeclarationName, _this = this;
  56256. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) && !_this._inUnknownAtRule && !_this._inKeyframes)
  56257. throw H.wrapException(_this._evaluate$_exception$2(string$.Declarm, node.span));
  56258. t1 = node.name;
  56259. $name = _this._interpolationToValue$2$warnForColor(t1, true);
  56260. t2 = _this._declarationName;
  56261. if (t2 != null)
  56262. $name = new F.CssValue(t2 + "-" + H.S($name.value), $name.span, type$.CssValue_legacy_String);
  56263. t2 = node.value;
  56264. cssValue = t2 == null ? null : new F.CssValue(t2.accept$1(_this), t2.get$span(), type$.CssValue_legacy_Value);
  56265. if (cssValue != null) {
  56266. t3 = cssValue.value;
  56267. t3 = !t3.get$isBlank() || t3.get$asList().length === 0;
  56268. } else
  56269. t3 = false;
  56270. if (t3) {
  56271. t3 = _this._evaluate$_parent;
  56272. t1 = C.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  56273. t2 = _this._expressionNode$1(t2);
  56274. t2 = t2 == null ? null : t2.get$span();
  56275. t3.addChild$1(L.ModifiableCssDeclaration$($name, cssValue, node.span, t1, t2));
  56276. } else if (J.startsWith$1$s($name.value, "--") && node.children == null)
  56277. throw H.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", t2.get$span()));
  56278. if (node.children != null) {
  56279. oldDeclarationName = _this._declarationName;
  56280. _this._declarationName = $name.value;
  56281. _this._evaluate$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure(_this, node), node.hasDeclarations, type$.Null);
  56282. _this._declarationName = oldDeclarationName;
  56283. }
  56284. return null;
  56285. },
  56286. visitEachRule$1: function(node) {
  56287. var _this = this,
  56288. t1 = node.list,
  56289. list = t1.accept$1(_this),
  56290. nodeWithSpan = _this._expressionNode$1(t1),
  56291. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure0(_this, node, nodeWithSpan);
  56292. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure1(_this, list, setVariables, node), true, type$.legacy_Value);
  56293. },
  56294. _setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  56295. var i,
  56296. list = value.get$asList(),
  56297. t1 = variables.length,
  56298. minLength = Math.min(t1, list.length);
  56299. for (i = 0; i < minLength; ++i)
  56300. this._evaluate$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  56301. for (i = minLength; i < t1; ++i)
  56302. this._evaluate$_environment.setLocalVariable$3(variables[i], C.C_SassNull0, nodeWithSpan);
  56303. },
  56304. visitErrorRule$1: function(node) {
  56305. throw H.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  56306. },
  56307. visitExtendRule$1: function(node) {
  56308. var targetText, t1, t2, t3, _i, t4, _this = this;
  56309. if (!(_this._styleRule != null && !_this._atRootExcludingStyleRule) || _this._declarationName != null)
  56310. throw H.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span));
  56311. targetText = _this._interpolationToValue$2$warnForColor(node.selector, true);
  56312. for (t1 = _this._adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure(_this, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector, _i = 0; _i < t2; ++_i) {
  56313. t4 = t1[_i].components;
  56314. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector))
  56315. throw H.wrapException(E.SassFormatException$("complex selectors may not be extended.", targetText.span));
  56316. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  56317. if (t4.length !== 1)
  56318. throw H.wrapException(E.SassFormatException$(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  56319. _this._extender.addExtension$4(_this._styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._mediaQueries);
  56320. }
  56321. return null;
  56322. },
  56323. visitAtRule$1: function(node) {
  56324. var $name, t1, value, wasInKeyframes, wasInUnknownAtRule, _this = this;
  56325. if (_this._declarationName != null)
  56326. throw H.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  56327. $name = _this._interpolationToValue$1(node.name);
  56328. t1 = node.value;
  56329. value = t1 == null ? null : _this._interpolationToValue$3$trim$warnForColor(t1, true, true);
  56330. if (node.children == null) {
  56331. _this._evaluate$_parent.addChild$1(U.ModifiableCssAtRule$($name, node.span, true, value));
  56332. return null;
  56333. }
  56334. wasInKeyframes = _this._inKeyframes;
  56335. wasInUnknownAtRule = _this._inUnknownAtRule;
  56336. if (B.unvendor($name.value) === "keyframes")
  56337. _this._inKeyframes = true;
  56338. else
  56339. _this._inUnknownAtRule = true;
  56340. _this._withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$($name, node.span, false, value), new R._EvaluateVisitor_visitAtRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure0(), type$.legacy_ModifiableCssAtRule, type$.Null);
  56341. _this._inUnknownAtRule = wasInUnknownAtRule;
  56342. _this._inKeyframes = wasInKeyframes;
  56343. return null;
  56344. },
  56345. visitForRule$1: function(node) {
  56346. var _this = this, t1 = {},
  56347. t2 = node.from,
  56348. fromNumber = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure(_this, node)),
  56349. t3 = node.to,
  56350. toNumber = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure0(_this, node)),
  56351. from = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure1(fromNumber, toNumber)),
  56352. to = t1.to = _this._addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure2(toNumber)),
  56353. direction = from > to ? -1 : 1;
  56354. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  56355. return null;
  56356. return _this._evaluate$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction), true, type$.legacy_Value);
  56357. },
  56358. visitForwardRule$1: function(node) {
  56359. var newConfiguration, t4, _i, variable, _this = this,
  56360. _s8_ = "@forward",
  56361. oldConfiguration = _this._configuration,
  56362. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  56363. t1 = node.configuration,
  56364. t2 = t1.length,
  56365. t3 = node.url;
  56366. if (t2 !== 0) {
  56367. newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
  56368. _this._loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
  56369. t3 = type$.legacy_String;
  56370. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  56371. for (_i = 0; _i < t2; ++_i) {
  56372. variable = t1[_i];
  56373. if (!variable.isGuarded)
  56374. t4.add$1(0, variable.name);
  56375. }
  56376. _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  56377. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  56378. for (_i = 0; _i < t2; ++_i)
  56379. t3.add$1(0, t1[_i].name);
  56380. _this._assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  56381. } else {
  56382. _this._configuration = adjustedConfiguration;
  56383. _this._loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure0(_this, node));
  56384. _this._configuration = oldConfiguration;
  56385. }
  56386. return null;
  56387. },
  56388. _addForwardConfiguration$2: function(configuration, node) {
  56389. var t2, t3, _i, variable, t4, t5,
  56390. t1 = configuration._values,
  56391. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue), type$.legacy_String, type$.legacy_ConfiguredValue);
  56392. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  56393. variable = t2[_i];
  56394. if (variable.isGuarded) {
  56395. t4 = variable.name;
  56396. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  56397. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull0)) {
  56398. newValues.$indexSet(0, t4, t5);
  56399. continue;
  56400. }
  56401. }
  56402. t4 = variable.name;
  56403. t5 = variable.expression;
  56404. newValues.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(this).withoutSlash$0(), variable.span, this._expressionNode$1(t5)));
  56405. }
  56406. return new A.Configuration(newValues, node, false);
  56407. },
  56408. _removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  56409. var t1, t2, t3, t4, _i, $name;
  56410. for (t1 = upstream._values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  56411. $name = t2[_i];
  56412. if (except.contains$1(0, $name))
  56413. continue;
  56414. if (!t4.containsKey$1($name))
  56415. if (!t1.get$isEmpty(t1))
  56416. t1.remove$1(0, $name);
  56417. }
  56418. },
  56419. _assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  56420. configuration._values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure(this, only, nameInError));
  56421. },
  56422. _assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  56423. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  56424. },
  56425. _assertConfigurationIsEmpty$1: function(configuration) {
  56426. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  56427. },
  56428. _assertConfigurationIsEmpty$2$only: function(configuration, only) {
  56429. return this._assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  56430. },
  56431. visitFunctionRule$1: function(node) {
  56432. var t1 = this._evaluate$_environment,
  56433. t2 = t1.closure$0(),
  56434. t3 = t1._functions,
  56435. index = t3.length - 1,
  56436. t4 = node.name;
  56437. t1._functionIndices.$indexSet(0, t4, index);
  56438. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_Environment));
  56439. return null;
  56440. },
  56441. visitIfRule$1: function(node) {
  56442. var t1, t2, _i, clauseToCheck, _box_0 = {};
  56443. _box_0.clause = node.lastClause;
  56444. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  56445. clauseToCheck = t1[_i];
  56446. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  56447. _box_0.clause = clauseToCheck;
  56448. break;
  56449. }
  56450. }
  56451. t1 = _box_0.clause;
  56452. if (t1 == null)
  56453. return null;
  56454. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure(_box_0, this), true, t1.hasDeclarations, type$.legacy_Value);
  56455. },
  56456. visitImportRule$1: function(node) {
  56457. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  56458. for (t1 = node.imports, t2 = t1.length, t3 = type$.legacy_CssMediaQuery, t4 = type$.CssValue_legacy_String, t5 = type$.legacy_StaticImport, t6 = type$.JSArray_legacy_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
  56459. $import = t1[_i];
  56460. if ($import instanceof B.DynamicImport)
  56461. _this._visitDynamicImport$1($import);
  56462. else {
  56463. t5._as($import);
  56464. t7 = $import.url;
  56465. result = _this._performInterpolation$2$warnForColor(t7, false);
  56466. supports = $import.supports;
  56467. if (supports instanceof L.SupportsDeclaration) {
  56468. t8 = supports.name;
  56469. t8 = H.S(_this._evaluate$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  56470. t9 = supports.value;
  56471. resolvedSupports = t8 + H.S(_this._evaluate$_serialize$3$quote(t9.accept$1(_this), t9, true));
  56472. } else
  56473. resolvedSupports = supports == null ? _null : _this._visitSupportsCondition$1(supports);
  56474. t8 = $import.media;
  56475. mediaQuery = t8 == null ? _null : _this._visitMediaQueries$1(t8);
  56476. t8 = $import.span;
  56477. t9 = resolvedSupports == null ? _null : new F.CssValue("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  56478. if (mediaQuery == null)
  56479. t10 = _null;
  56480. else {
  56481. result0 = P.List_List$from(mediaQuery, false, t3);
  56482. result0.fixed$length = Array;
  56483. result0.immutable$list = Array;
  56484. t10 = result0;
  56485. }
  56486. node = new F.ModifiableCssImport(new F.CssValue(result, t7.span, t4), t9, t10, t8);
  56487. t7 = _this._evaluate$_parent;
  56488. t8 = _this._root;
  56489. if (t7 != t8)
  56490. t7.addChild$1(node);
  56491. else if (_this._endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  56492. t7 = _this._root;
  56493. t7.toString;
  56494. node._parent = t7;
  56495. t7 = t7._children;
  56496. node._indexInParent = t7.length;
  56497. t7.push(node);
  56498. _this._endOfImports = _this._endOfImports + 1;
  56499. } else {
  56500. t7 = _this._outOfOrderImports;
  56501. (t7 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  56502. }
  56503. }
  56504. }
  56505. return _null;
  56506. },
  56507. _visitDynamicImport$1: function($import) {
  56508. return this._withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure(this, $import));
  56509. },
  56510. _loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  56511. var tuple, error, error0, message, t1, t2, t3, exception, message0, _this = this;
  56512. try {
  56513. _this._importSpan = span;
  56514. t1 = P.Uri_parse(url);
  56515. t2 = _this._importer;
  56516. if (baseUrl == null) {
  56517. t3 = _this._stylesheet;
  56518. t3 = t3 == null ? null : t3.span;
  56519. t3 = t3 == null ? null : t3.file.url;
  56520. } else
  56521. t3 = baseUrl;
  56522. tuple = _this._evaluate$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  56523. if (tuple != null)
  56524. return tuple;
  56525. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  56526. throw H.wrapException(string$.x22packa);
  56527. else
  56528. throw H.wrapException("Can't find stylesheet to import.");
  56529. } catch (exception) {
  56530. t1 = H.unwrapException(exception);
  56531. if (t1 instanceof E.SassException) {
  56532. error = t1;
  56533. t1 = _this._evaluate$_exception$2(error._span_exception$_message, error.get$span());
  56534. throw H.wrapException(t1);
  56535. } else {
  56536. error0 = t1;
  56537. message = null;
  56538. try {
  56539. message = H._asStringS(J.get$message$x(error0));
  56540. } catch (exception) {
  56541. H.unwrapException(exception);
  56542. message0 = J.toString$0$(error0);
  56543. message = message0;
  56544. }
  56545. t1 = _this._evaluate$_exception$1(message);
  56546. throw H.wrapException(t1);
  56547. }
  56548. } finally {
  56549. _this._importSpan = null;
  56550. }
  56551. },
  56552. _loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  56553. return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  56554. },
  56555. _loadStylesheet$3$forImport: function(url, span, forImport) {
  56556. return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  56557. },
  56558. visitIncludeRule$1: function(node) {
  56559. var nodeWithSpan, t1, t2, contentCallable, _this = this,
  56560. _s37_ = "Mixin doesn't accept a content block.",
  56561. mixin = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure(_this, node));
  56562. if (mixin == null)
  56563. throw H.wrapException(_this._evaluate$_exception$2("Undefined mixin.", node.span));
  56564. nodeWithSpan = new B._FakeAstNode(new R._EvaluateVisitor_visitIncludeRule_closure0(node));
  56565. if (mixin instanceof Q.BuiltInCallable) {
  56566. if (node.content != null)
  56567. throw H.wrapException(_this._evaluate$_exception$2(_s37_, node.span));
  56568. _this._runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  56569. } else if (type$.legacy_UserDefinedCallable_legacy_Environment._is(mixin)) {
  56570. t1 = node.content;
  56571. t2 = t1 == null;
  56572. if (!t2 && !type$.legacy_MixinRule._as(mixin.declaration).hasContent)
  56573. throw H.wrapException(E.MultiSpanSassRuntimeException$(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate$_stackTrace$1(node.get$spanWithoutContent())));
  56574. contentCallable = t2 ? null : new E.UserDefinedCallable(t1, _this._evaluate$_environment.closure$0(), type$.UserDefinedCallable_legacy_Environment);
  56575. _this._runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure1(_this, contentCallable, mixin, nodeWithSpan));
  56576. } else
  56577. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  56578. return null;
  56579. },
  56580. visitMixinRule$1: function(node) {
  56581. var t1 = this._evaluate$_environment,
  56582. t2 = t1.closure$0(),
  56583. t3 = t1._mixins,
  56584. index = t3.length - 1,
  56585. t4 = node.name;
  56586. t1._mixinIndices.$indexSet(0, t4, index);
  56587. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable(node, t2, type$.UserDefinedCallable_legacy_Environment));
  56588. return null;
  56589. },
  56590. visitLoudComment$1: function(node) {
  56591. var t1, t2, _this = this;
  56592. if (_this._inFunction)
  56593. return null;
  56594. t1 = _this._evaluate$_parent;
  56595. t2 = _this._root;
  56596. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  56597. _this._endOfImports = _this._endOfImports + 1;
  56598. t1 = node.text;
  56599. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
  56600. return null;
  56601. },
  56602. visitMediaRule$1: function(node) {
  56603. var queries, t1, mergedQueries, _this = this;
  56604. if (_this._declarationName != null)
  56605. throw H.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  56606. queries = _this._visitMediaQueries$1(node.query);
  56607. t1 = _this._mediaQueries;
  56608. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, queries);
  56609. t1 = mergedQueries == null;
  56610. if (!t1 && mergedQueries.length === 0)
  56611. return null;
  56612. t1 = t1 ? queries : mergedQueries;
  56613. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure0(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null);
  56614. return null;
  56615. },
  56616. _visitMediaQueries$1: function(interpolation) {
  56617. return this._adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure(this, this._performInterpolation$2$warnForColor(interpolation, true)));
  56618. },
  56619. _mergeMediaQueries$2: function(queries1, queries2) {
  56620. var t1, t2, t3, t4, t5, result,
  56621. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery);
  56622. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult; t1.moveNext$0();) {
  56623. t4 = t1.get$current(t1);
  56624. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  56625. result = t4.merge$1(t5.get$current(t5));
  56626. if (result === C._SingletonCssMediaQueryMergeResult_empty)
  56627. continue;
  56628. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable)
  56629. return null;
  56630. queries.push(t3._as(result).query);
  56631. }
  56632. }
  56633. return queries;
  56634. },
  56635. visitReturnRule$1: function(node) {
  56636. return node.expression.accept$1(this);
  56637. },
  56638. visitSilentComment$1: function(node) {
  56639. return null;
  56640. },
  56641. visitStyleRule$1: function(node) {
  56642. var t2, selectorText, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  56643. if (_this._declarationName != null)
  56644. throw H.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  56645. t2 = node.selector;
  56646. selectorText = _this._interpolationToValue$3$trim$warnForColor(t2, true, true);
  56647. if (_this._inKeyframes) {
  56648. _this._withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$(new F.CssValue(P.List_List$unmodifiable(_this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure(_this, selectorText)), type$.legacy_String), t2.span, type$.CssValue_legacy_List_legacy_String), node.span), new R._EvaluateVisitor_visitStyleRule_closure0(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure1(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null);
  56649. return null;
  56650. }
  56651. t1.parsedSelector = _this._adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure2(_this, selectorText));
  56652. parsedSelector = _this._addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure3(t1, _this));
  56653. t1.parsedSelector = parsedSelector;
  56654. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(parsedSelector, t2.span, _this._mediaQueries), node.span, t1.parsedSelector);
  56655. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  56656. _this._atRootExcludingStyleRule = false;
  56657. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure4(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure5(), type$.legacy_ModifiableCssStyleRule, type$.Null);
  56658. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  56659. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  56660. t1 = _this._evaluate$_parent.children;
  56661. t1 = !t1.get$isEmpty(t1);
  56662. } else
  56663. t1 = false;
  56664. if (t1) {
  56665. t1 = _this._evaluate$_parent.children;
  56666. t1.get$last(t1).isGroupEnd = true;
  56667. }
  56668. return null;
  56669. },
  56670. visitSupportsRule$1: function(node) {
  56671. var t1, _this = this;
  56672. if (_this._declarationName != null)
  56673. throw H.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  56674. t1 = node.condition;
  56675. _this._withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$(new F.CssValue(_this._visitSupportsCondition$1(t1), t1.get$span(), type$.CssValue_legacy_String), node.span), new R._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure0(), type$.legacy_ModifiableCssSupportsRule, type$.Null);
  56676. return null;
  56677. },
  56678. _visitSupportsCondition$1: function(condition) {
  56679. var t1, t2, _this = this;
  56680. if (condition instanceof U.SupportsOperation) {
  56681. t1 = condition.left;
  56682. t2 = condition.operator;
  56683. return H.S(_this._parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._parenthesize$2(condition.right, t2));
  56684. } else if (condition instanceof M.SupportsNegation)
  56685. return "not " + H.S(_this._parenthesize$1(condition.condition));
  56686. else if (condition instanceof X.SupportsInterpolation) {
  56687. t1 = condition.expression;
  56688. return _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
  56689. } else if (condition instanceof L.SupportsDeclaration) {
  56690. t1 = condition.name;
  56691. t1 = "(" + H.S(_this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  56692. t2 = condition.value;
  56693. return t1 + H.S(_this._evaluate$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  56694. } else if (condition instanceof F.SupportsFunction)
  56695. return _this._performInterpolation$1(condition.name) + "(" + _this._performInterpolation$1(condition.$arguments) + ")";
  56696. else if (condition instanceof Y.SupportsAnything)
  56697. return "(" + _this._performInterpolation$1(condition.contents) + ")";
  56698. else
  56699. return null;
  56700. },
  56701. _parenthesize$2: function(condition, operator) {
  56702. var t1;
  56703. if (!(condition instanceof M.SupportsNegation))
  56704. if (condition instanceof U.SupportsOperation)
  56705. t1 = operator == null || operator !== condition.operator;
  56706. else
  56707. t1 = false;
  56708. else
  56709. t1 = true;
  56710. if (t1)
  56711. return "(" + H.S(this._visitSupportsCondition$1(condition)) + ")";
  56712. else
  56713. return this._visitSupportsCondition$1(condition);
  56714. },
  56715. _parenthesize$1: function(condition) {
  56716. return this._parenthesize$2(condition, null);
  56717. },
  56718. visitVariableDeclaration$1: function(node) {
  56719. var t1, value, t2, _this = this, _null = null;
  56720. if (node.isGuarded) {
  56721. if (node.namespace == null && _this._evaluate$_environment._variables.length === 1) {
  56722. t1 = _this._configuration._values;
  56723. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  56724. if (t1 != null) {
  56725. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure(_this, node, t1));
  56726. return _null;
  56727. }
  56728. }
  56729. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
  56730. if (value != null && !value.$eq(0, C.C_SassNull0))
  56731. return _null;
  56732. }
  56733. if (node.isGlobal && !_this._evaluate$_environment.globalVariableExists$1(node.name)) {
  56734. t1 = _this._evaluate$_environment._variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName(node.span) + ": null` at the root of the\nstylesheet.";
  56735. t2 = node.span;
  56736. _this._evaluate$_logger.warn$4$deprecation$span$trace(0, t1, true, t2, _this._evaluate$_stackTrace$1(t2));
  56737. }
  56738. _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  56739. return _null;
  56740. },
  56741. visitUseRule$1: function(node) {
  56742. var configuration, t3, _i, variable, t4, t5, _this = this,
  56743. t1 = node.configuration,
  56744. t2 = t1.length;
  56745. if (t2 === 0)
  56746. configuration = C.Configuration_Map_empty_null_true;
  56747. else {
  56748. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  56749. for (_i = 0; _i < t2; ++_i) {
  56750. variable = t1[_i];
  56751. t4 = variable.name;
  56752. t5 = variable.expression;
  56753. t3.$indexSet(0, t4, new Z.ConfiguredValue(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._expressionNode$1(t5)));
  56754. }
  56755. configuration = new A.Configuration(t3, node, false);
  56756. }
  56757. _this._loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
  56758. _this._assertConfigurationIsEmpty$1(configuration);
  56759. return null;
  56760. },
  56761. visitWarnRule$1: function(node) {
  56762. var _this = this,
  56763. value = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure(_this, node)),
  56764. t1 = value instanceof D.SassString ? value.text : _this._evaluate$_serialize$2(value, node.expression);
  56765. _this._evaluate$_logger.warn$2$trace(0, t1, _this._evaluate$_stackTrace$1(node.span));
  56766. return null;
  56767. },
  56768. visitWhileRule$1: function(node) {
  56769. return this._evaluate$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.legacy_Value);
  56770. },
  56771. visitBinaryOperationExpression$1: function(node) {
  56772. return this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure(this, node));
  56773. },
  56774. visitValueExpression$1: function(node) {
  56775. return node.value;
  56776. },
  56777. visitVariableExpression$1: function(node) {
  56778. var result = this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure(this, node));
  56779. if (result != null)
  56780. return result;
  56781. throw H.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
  56782. },
  56783. visitUnaryOperationExpression$1: function(node) {
  56784. var operand = node.operand.accept$1(this),
  56785. t1 = node.operator;
  56786. switch (t1) {
  56787. case C.UnaryOperator_j2w:
  56788. return operand.unaryPlus$0();
  56789. case C.UnaryOperator_U4G:
  56790. return operand.unaryMinus$0();
  56791. case C.UnaryOperator_zDx:
  56792. operand.toString;
  56793. return new D.SassString("/" + N.serializeValue0(operand, false, true), false);
  56794. case C.UnaryOperator_not_not:
  56795. return operand.unaryNot$0();
  56796. default:
  56797. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  56798. }
  56799. },
  56800. visitBooleanExpression$1: function(node) {
  56801. return node.value ? C.SassBoolean_true0 : C.SassBoolean_false0;
  56802. },
  56803. visitIfExpression$1: function(node) {
  56804. var condition, ifTrue, ifFalse, _this = this,
  56805. pair = _this._evaluateMacroArguments$1(node),
  56806. positional = pair.item1,
  56807. named = pair.item2,
  56808. t1 = J.getInterceptor$asx(positional);
  56809. _this._verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration(), node);
  56810. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  56811. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  56812. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  56813. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  56814. },
  56815. visitNullExpression$1: function(node) {
  56816. return C.C_SassNull0;
  56817. },
  56818. visitNumberExpression$1: function(node) {
  56819. return T.SassNumber$(node.value, node.unit);
  56820. },
  56821. visitParenthesizedExpression$1: function(node) {
  56822. return node.expression.accept$1(this);
  56823. },
  56824. visitColorExpression$1: function(node) {
  56825. return node.value;
  56826. },
  56827. visitListExpression$1: function(node) {
  56828. var t1 = node.contents;
  56829. return D.SassList$(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value*>")), node.separator, node.hasBrackets);
  56830. },
  56831. visitMapExpression$1: function(node) {
  56832. var t2, t3, _i, pair, t4, keyValue, valueValue,
  56833. t1 = type$.legacy_Value,
  56834. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  56835. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode);
  56836. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  56837. pair = t2[_i];
  56838. t4 = pair.item1;
  56839. keyValue = t4.accept$1(this);
  56840. valueValue = pair.item2.accept$1(this);
  56841. if (map.containsKey$1(keyValue))
  56842. throw H.wrapException(E.MultiSpanSassRuntimeException$("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), this._evaluate$_stackTrace$1(t4.get$span())));
  56843. map.$indexSet(0, keyValue, valueValue);
  56844. keyNodes.$indexSet(0, keyValue, t4);
  56845. }
  56846. return new A.SassMap(H.ConstantMap_ConstantMap$from(map, t1, t1));
  56847. },
  56848. visitFunctionExpression$1: function(node) {
  56849. var oldInFunction, result, _this = this, t1 = {},
  56850. t2 = node.name,
  56851. plainName = t2.get$asPlain();
  56852. t1.$function = null;
  56853. if ((plainName != null ? t1.$function = _this._addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure(_this, node, plainName)) : null) == null) {
  56854. if (node.namespace != null)
  56855. throw H.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
  56856. t1.$function = new L.PlainCssCallable(_this._performInterpolation$1(t2));
  56857. }
  56858. oldInFunction = _this._inFunction;
  56859. _this._inFunction = true;
  56860. result = _this._addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure0(t1, _this, node));
  56861. _this._inFunction = oldInFunction;
  56862. return result;
  56863. },
  56864. _getFunction$2$namespace: function($name, namespace) {
  56865. var local = this._evaluate$_environment.getFunction$2$namespace($name, namespace);
  56866. if (local != null || namespace != null)
  56867. return local;
  56868. return this._builtInFunctions.$index(0, $name);
  56869. },
  56870. _runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  56871. var evaluated = this._evaluateArguments$1($arguments),
  56872. t1 = callable.declaration.name,
  56873. $name = t1 == null ? "@content" : t1 + "()";
  56874. return this._withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure(this, callable, evaluated, nodeWithSpan, run));
  56875. },
  56876. _runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  56877. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  56878. if (callable instanceof Q.BuiltInCallable) {
  56879. result = _this._runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  56880. if (result == null)
  56881. throw H.wrapException(_this._evaluate$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  56882. return result.withoutSlash$0();
  56883. } else if (type$.legacy_UserDefinedCallable_legacy_Environment._is(callable))
  56884. return _this._runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure(_this, callable)).withoutSlash$0();
  56885. else if (callable instanceof L.PlainCssCallable) {
  56886. t1 = $arguments.named;
  56887. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  56888. throw H.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  56889. t1 = H.S(callable.name) + "(";
  56890. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  56891. argument = t2[_i];
  56892. if (first)
  56893. first = false;
  56894. else
  56895. t1 += ", ";
  56896. t1 += H.S(_this._evaluate$_serialize$3$quote(argument.accept$1(_this), argument, true));
  56897. }
  56898. t2 = $arguments.rest;
  56899. rest = t2 == null ? null : t2.accept$1(_this);
  56900. if (rest != null) {
  56901. if (!first)
  56902. t1 += ", ";
  56903. t2 = t1 + H.S(_this._evaluate$_serialize$2(rest, t2));
  56904. t1 = t2;
  56905. }
  56906. t1 += H.Primitives_stringFromCharCode(41);
  56907. return new D.SassString(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  56908. } else
  56909. return null;
  56910. },
  56911. _runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  56912. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this,
  56913. evaluated = _this._evaluateArguments$2$trackSpans($arguments, false),
  56914. oldCallableNode = _this._callableNode;
  56915. _this._callableNode = nodeWithSpan;
  56916. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  56917. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  56918. overload = tuple.item1;
  56919. callback = tuple.item2;
  56920. _this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure(overload, evaluated, namedSet));
  56921. declaredArguments = overload.$arguments;
  56922. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  56923. argument = declaredArguments[i];
  56924. t2 = evaluated.positional;
  56925. t3 = evaluated.named.remove$1(0, argument.name);
  56926. if (t3 == null) {
  56927. t3 = argument.defaultValue;
  56928. t3 = t3 == null ? null : t3.accept$1(_this);
  56929. }
  56930. t2.push(t3);
  56931. }
  56932. if (overload.restArgument != null) {
  56933. if (evaluated.positional.length > t1) {
  56934. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  56935. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  56936. } else
  56937. rest = C.List_empty5;
  56938. t1 = evaluated.named;
  56939. argumentList = D.SassArgumentList$(rest, t1, evaluated.separator === C.ListSeparator_undecided ? C.ListSeparator_comma : evaluated.separator);
  56940. evaluated.positional.push(argumentList);
  56941. } else
  56942. argumentList = null;
  56943. result = null;
  56944. try {
  56945. result = callback.call$1(evaluated.positional);
  56946. } catch (exception) {
  56947. t1 = H.unwrapException(exception);
  56948. if (type$.legacy_SassRuntimeException._is(t1))
  56949. throw exception;
  56950. else if (t1 instanceof E.MultiSpanSassScriptException) {
  56951. error = t1;
  56952. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  56953. } else if (t1 instanceof E.MultiSpanSassException) {
  56954. error0 = t1;
  56955. throw H.wrapException(E.MultiSpanSassRuntimeException$(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate$_stackTrace$1(error0.get$span())));
  56956. } else {
  56957. error1 = t1;
  56958. message = null;
  56959. try {
  56960. message = H._asStringS(J.get$message$x(error1));
  56961. } catch (exception) {
  56962. H.unwrapException(exception);
  56963. message0 = J.toString$0$(error1);
  56964. message = message0;
  56965. }
  56966. throw H.wrapException(_this._evaluate$_exception$2(message, nodeWithSpan.get$span()));
  56967. }
  56968. }
  56969. _this._callableNode = oldCallableNode;
  56970. if (argumentList == null)
  56971. return result;
  56972. t1 = evaluated.named;
  56973. if (t1.get$isEmpty(t1))
  56974. return result;
  56975. if (argumentList._wereKeywordsAccessed)
  56976. return result;
  56977. t1 = evaluated.named;
  56978. t1 = t1.get$keys(t1);
  56979. t1 = "No " + B.pluralize("argument", t1.get$length(t1), null) + " named ";
  56980. t2 = evaluated.named;
  56981. throw H.wrapException(E.MultiSpanSassRuntimeException$(t1 + H.S(B.toSentence(t2.get$keys(t2).map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure0(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  56982. },
  56983. _evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  56984. var t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  56985. if (trackSpans == null)
  56986. trackSpans = _this._sourceMap;
  56987. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value);
  56988. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  56989. t1.push(t2[_i].accept$1(_this));
  56990. t4 = type$.legacy_String;
  56991. t5 = type$.legacy_Value;
  56992. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  56993. for (t7 = $arguments.named, t8 = t7.get$entries(t7), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  56994. t9 = t8.get$current(t8);
  56995. t6.$indexSet(0, t9.key, t9.value.accept$1(_this));
  56996. }
  56997. if (trackSpans) {
  56998. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode);
  56999. for (_i = 0; _i < t3; ++_i)
  57000. t8.push(_this._expressionNode$1(t2[_i]));
  57001. positionalNodes = t8;
  57002. } else
  57003. positionalNodes = _null;
  57004. if (trackSpans) {
  57005. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  57006. for (t3 = t7.get$entries(t7), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  57007. t7 = t3.get$current(t3);
  57008. t2.$indexSet(0, t7.key, _this._expressionNode$1(t7.value));
  57009. }
  57010. namedNodes = t2;
  57011. } else
  57012. namedNodes = _null;
  57013. t2 = $arguments.rest;
  57014. if (t2 == null)
  57015. return new R._ArgumentResults(t1, positionalNodes, t6, namedNodes, C.ListSeparator_undecided);
  57016. rest = t2.accept$1(_this);
  57017. restNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  57018. if (rest instanceof A.SassMap) {
  57019. _this._addRestMap$1$3(t6, rest, t2, t5);
  57020. if (namedNodes != null) {
  57021. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  57022. for (t3 = rest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t7 = type$.legacy_SassString; t3.moveNext$0();)
  57023. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  57024. namedNodes.addAll$1(0, t2);
  57025. }
  57026. separator = C.ListSeparator_undecided;
  57027. } else if (rest instanceof D.SassList) {
  57028. t2 = rest._list$_contents;
  57029. C.JSArray_methods.addAll$1(t1, t2);
  57030. if (positionalNodes != null)
  57031. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode));
  57032. separator = rest.separator;
  57033. if (rest instanceof D.SassArgumentList) {
  57034. rest._wereKeywordsAccessed = true;
  57035. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure(t6, namedNodes, restNodeForSpan));
  57036. }
  57037. } else {
  57038. t1.push(rest);
  57039. if (positionalNodes != null)
  57040. positionalNodes.push(restNodeForSpan);
  57041. separator = C.ListSeparator_undecided;
  57042. }
  57043. t2 = $arguments.keywordRest;
  57044. if (t2 == null)
  57045. return new R._ArgumentResults(t1, positionalNodes, t6, namedNodes, separator);
  57046. keywordRest = t2.accept$1(_this);
  57047. keywordRestNodeForSpan = trackSpans ? _this._expressionNode$1(t2) : _null;
  57048. if (keywordRest instanceof A.SassMap) {
  57049. _this._addRestMap$1$3(t6, keywordRest, t2, t5);
  57050. if (namedNodes != null) {
  57051. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode);
  57052. for (t3 = keywordRest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t4 = type$.legacy_SassString; t3.moveNext$0();)
  57053. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  57054. namedNodes.addAll$1(0, t2);
  57055. }
  57056. return new R._ArgumentResults(t1, positionalNodes, t6, namedNodes, separator);
  57057. } else
  57058. throw H.wrapException(_this._evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  57059. },
  57060. _evaluateArguments$1: function($arguments) {
  57061. return this._evaluateArguments$2$trackSpans($arguments, null);
  57062. },
  57063. _evaluateMacroArguments$1: function(invocation) {
  57064. var t3, positional, named, rest, keywordRest, _this = this,
  57065. t1 = invocation.$arguments,
  57066. t2 = t1.rest;
  57067. if (t2 == null)
  57068. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  57069. t3 = t1.positional;
  57070. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  57071. t3 = type$.legacy_Expression;
  57072. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  57073. rest = t2.accept$1(_this);
  57074. if (rest instanceof A.SassMap)
  57075. _this._addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure(), t3);
  57076. else if (rest instanceof D.SassList) {
  57077. t2 = rest._list$_contents;
  57078. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure0(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression*>")));
  57079. if (rest instanceof D.SassArgumentList) {
  57080. rest._wereKeywordsAccessed = true;
  57081. rest._keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure1(named));
  57082. }
  57083. } else
  57084. positional.push(new F.ValueExpression(rest, null));
  57085. t1 = t1.keywordRest;
  57086. if (t1 == null)
  57087. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  57088. keywordRest = t1.accept$1(_this);
  57089. if (keywordRest instanceof A.SassMap) {
  57090. _this._addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure2(), t3);
  57091. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression);
  57092. } else
  57093. throw H.wrapException(_this._evaluate$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  57094. },
  57095. _addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  57096. var t1 = {};
  57097. t1.convert = convert;
  57098. if (convert == null)
  57099. t1.convert = new R._EvaluateVisitor__addRestMap_closure($T);
  57100. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure0(t1, this, values, map, nodeWithSpan));
  57101. },
  57102. _addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  57103. return this._addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  57104. },
  57105. _verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  57106. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
  57107. },
  57108. visitSelectorExpression$1: function(node) {
  57109. var t1 = this._styleRule;
  57110. if (t1 == null)
  57111. return C.C_SassNull0;
  57112. return t1.originalSelector.get$asSassList();
  57113. },
  57114. visitStringExpression$1: function(node) {
  57115. var t1 = node.text.contents;
  57116. return new D.SassString(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0), node.hasQuotes);
  57117. },
  57118. visitCssAtRule$1: function(node) {
  57119. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  57120. if (_this._declarationName != null)
  57121. throw H.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  57122. if (node.isChildless) {
  57123. _this._evaluate$_parent.addChild$1(U.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  57124. return null;
  57125. }
  57126. wasInKeyframes = _this._inKeyframes;
  57127. wasInUnknownAtRule = _this._inUnknownAtRule;
  57128. t1 = node.name;
  57129. if (B.unvendor(t1.get$value(t1)) === "keyframes")
  57130. _this._inKeyframes = true;
  57131. else
  57132. _this._inUnknownAtRule = true;
  57133. _this._withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$(t1, node.span, false, node.value), new R._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure0(), type$.legacy_ModifiableCssAtRule, type$.Null);
  57134. _this._inUnknownAtRule = wasInUnknownAtRule;
  57135. _this._inKeyframes = wasInKeyframes;
  57136. },
  57137. visitCssComment$1: function(node) {
  57138. var _this = this,
  57139. t1 = _this._evaluate$_parent,
  57140. t2 = _this._root;
  57141. if (t1 == t2 && _this._endOfImports === J.get$length$asx(t2.children._collection$_source))
  57142. _this._endOfImports = _this._endOfImports + 1;
  57143. _this._evaluate$_parent.addChild$1(new R.ModifiableCssComment(node.text, node.span));
  57144. },
  57145. visitCssDeclaration$1: function(node) {
  57146. var t1 = node.name;
  57147. this._evaluate$_parent.addChild$1(L.ModifiableCssDeclaration$(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  57148. },
  57149. visitCssImport$1: function(node) {
  57150. var _this = this,
  57151. modifiableNode = F.ModifiableCssImport$(node.url, node.span, node.media, node.supports),
  57152. t1 = _this._evaluate$_parent,
  57153. t2 = _this._root;
  57154. if (t1 != t2)
  57155. t1.addChild$1(modifiableNode);
  57156. else if (_this._endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  57157. _this._root.addChild$1(modifiableNode);
  57158. _this._endOfImports = _this._endOfImports + 1;
  57159. } else {
  57160. t1 = _this._outOfOrderImports;
  57161. (t1 == null ? _this._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t1).push(modifiableNode);
  57162. }
  57163. },
  57164. visitCssKeyframeBlock$1: function(node) {
  57165. this._withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$(node.selector, node.span), new R._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.legacy_ModifiableCssKeyframeBlock, type$.Null);
  57166. },
  57167. visitCssMediaRule$1: function(node) {
  57168. var t1, mergedQueries, _this = this;
  57169. if (_this._declarationName != null)
  57170. throw H.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  57171. t1 = _this._mediaQueries;
  57172. mergedQueries = t1 == null ? null : _this._mergeMediaQueries$2(t1, node.queries);
  57173. t1 = mergedQueries == null;
  57174. if (!t1 && mergedQueries.length === 0)
  57175. return null;
  57176. t1 = t1 ? node.queries : mergedQueries;
  57177. _this._withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure0(mergedQueries), type$.legacy_ModifiableCssMediaRule, type$.Null);
  57178. },
  57179. visitCssStyleRule$1: function(node) {
  57180. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  57181. if (_this._declarationName != null)
  57182. throw H.wrapException(_this._evaluate$_exception$2(string$.Style_, node.span));
  57183. t1 = node.selector;
  57184. t2 = t1.value;
  57185. t3 = _this._styleRule;
  57186. t3 = t3 == null ? null : t3.originalSelector;
  57187. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._atRootExcludingStyleRule);
  57188. rule = X.ModifiableCssStyleRule$(_this._extender.addSelector$3(originalSelector, t1.span, _this._mediaQueries), node.span, originalSelector);
  57189. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  57190. _this._atRootExcludingStyleRule = false;
  57191. _this._withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure0(), type$.legacy_ModifiableCssStyleRule, type$.Null);
  57192. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  57193. if (!(_this._styleRule != null && !oldAtRootExcludingStyleRule)) {
  57194. t1 = _this._evaluate$_parent.children;
  57195. t1 = !t1.get$isEmpty(t1);
  57196. } else
  57197. t1 = false;
  57198. if (t1) {
  57199. t1 = _this._evaluate$_parent.children;
  57200. t1.get$last(t1).isGroupEnd = true;
  57201. }
  57202. },
  57203. visitCssStylesheet$1: function(node) {
  57204. var t1;
  57205. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  57206. t1.get$current(t1).accept$1(this);
  57207. },
  57208. visitCssSupportsRule$1: function(node) {
  57209. var _this = this;
  57210. if (_this._declarationName != null)
  57211. throw H.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  57212. _this._withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$(node.condition, node.span), new R._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.legacy_ModifiableCssSupportsRule, type$.Null);
  57213. },
  57214. _handleReturn$1$2: function(list, callback) {
  57215. var t1, _i, result;
  57216. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  57217. result = callback.call$1(list[_i]);
  57218. if (result != null)
  57219. return result;
  57220. }
  57221. return null;
  57222. },
  57223. _handleReturn$2: function(list, callback) {
  57224. return this._handleReturn$1$2(list, callback, type$.dynamic);
  57225. },
  57226. _withEnvironment$1$2: function(environment, callback) {
  57227. var result,
  57228. oldEnvironment = this._evaluate$_environment;
  57229. this._evaluate$_environment = environment;
  57230. result = callback.call$0();
  57231. this._evaluate$_environment = oldEnvironment;
  57232. return result;
  57233. },
  57234. _withEnvironment$2: function(environment, callback) {
  57235. return this._withEnvironment$1$2(environment, callback, type$.dynamic);
  57236. },
  57237. _interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  57238. var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
  57239. t1 = trim ? B.trimAscii(result, true) : result;
  57240. return new F.CssValue(t1, interpolation.span, type$.CssValue_legacy_String);
  57241. },
  57242. _interpolationToValue$1: function(interpolation) {
  57243. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  57244. },
  57245. _interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  57246. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  57247. },
  57248. _performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  57249. var t1 = interpolation.contents;
  57250. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  57251. },
  57252. _performInterpolation$1: function(interpolation) {
  57253. return this._performInterpolation$2$warnForColor(interpolation, false);
  57254. },
  57255. _evaluate$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  57256. return this._addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure(value, quote));
  57257. },
  57258. _evaluate$_serialize$2: function(value, nodeWithSpan) {
  57259. return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  57260. },
  57261. _expressionNode$1: function(expression) {
  57262. var t1;
  57263. if (!this._sourceMap)
  57264. return null;
  57265. if (expression instanceof S.VariableExpression) {
  57266. t1 = this._evaluate$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  57267. return t1 == null ? expression : t1;
  57268. } else
  57269. return expression;
  57270. },
  57271. _withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  57272. var oldParent, result, _this = this;
  57273. _this._addChild$2$through(node, through);
  57274. oldParent = _this._evaluate$_parent;
  57275. _this._evaluate$_parent = node;
  57276. result = _this._evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*"));
  57277. _this._evaluate$_parent = oldParent;
  57278. return result;
  57279. },
  57280. _withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  57281. return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  57282. },
  57283. _withParent$2$2: function(node, callback, $S, $T) {
  57284. return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  57285. },
  57286. _addChild$2$through: function(node, through) {
  57287. var grandparent,
  57288. $parent = this._evaluate$_parent;
  57289. if (through != null) {
  57290. for (; through.call$1($parent);)
  57291. $parent = $parent._parent;
  57292. if ($parent.get$hasFollowingSibling()) {
  57293. grandparent = $parent._parent;
  57294. $parent = $parent.copyWithoutChildren$0();
  57295. grandparent.addChild$1($parent);
  57296. }
  57297. }
  57298. $parent.addChild$1(node);
  57299. },
  57300. _addChild$1: function(node) {
  57301. return this._addChild$2$through(node, null);
  57302. },
  57303. _withStyleRule$1$2: function(rule, callback) {
  57304. var result,
  57305. oldRule = this._styleRule;
  57306. this._styleRule = rule;
  57307. result = callback.call$0();
  57308. this._styleRule = oldRule;
  57309. return result;
  57310. },
  57311. _withStyleRule$2: function(rule, callback) {
  57312. return this._withStyleRule$1$2(rule, callback, type$.dynamic);
  57313. },
  57314. _withMediaQueries$1$2: function(queries, callback) {
  57315. var result,
  57316. oldMediaQueries = this._mediaQueries;
  57317. this._mediaQueries = queries;
  57318. result = callback.call$0();
  57319. this._mediaQueries = oldMediaQueries;
  57320. return result;
  57321. },
  57322. _withMediaQueries$2: function(queries, callback) {
  57323. return this._withMediaQueries$1$2(queries, callback, type$.dynamic);
  57324. },
  57325. _withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  57326. var oldMember, result, _this = this,
  57327. t1 = _this._stack;
  57328. t1.push(new S.Tuple2(_this._member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode));
  57329. oldMember = _this._member;
  57330. _this._member = member;
  57331. result = callback.call$0();
  57332. _this._member = oldMember;
  57333. t1.pop();
  57334. return result;
  57335. },
  57336. _withStackFrame$3: function(member, nodeWithSpan, callback) {
  57337. return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  57338. },
  57339. _stackFrame$2: function(member, span) {
  57340. var url = span.file.url;
  57341. return B.frameForSpan(span, member, url != null && this._evaluate$_importCache != null ? this._evaluate$_importCache.humanize$1(url) : url);
  57342. },
  57343. _evaluate$_stackTrace$1: function(span) {
  57344. var t2, cur, _this = this,
  57345. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  57346. for (t2 = _this._stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  57347. cur = t2.__internal$_current;
  57348. t1.push(cur);
  57349. }
  57350. if (span != null)
  57351. t1.push(_this._stackFrame$2(_this._member, span));
  57352. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  57353. },
  57354. _evaluate$_stackTrace$0: function() {
  57355. return this._evaluate$_stackTrace$1(null);
  57356. },
  57357. _warn$3$deprecation: function(message, span, deprecation) {
  57358. return this._evaluate$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, this._evaluate$_stackTrace$1(span));
  57359. },
  57360. _warn$2: function(message, span) {
  57361. return this._warn$3$deprecation(message, span, false);
  57362. },
  57363. _evaluate$_exception$2: function(message, span) {
  57364. var t1 = span == null ? C.JSArray_methods.get$last(this._stack).item2.get$span() : span;
  57365. return new E.SassRuntimeException(this._evaluate$_stackTrace$1(span), message, t1);
  57366. },
  57367. _evaluate$_exception$1: function(message) {
  57368. return this._evaluate$_exception$2(message, null);
  57369. },
  57370. _multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  57371. var t1 = C.JSArray_methods.get$last(this._stack).item2.get$span();
  57372. return new E.MultiSpanSassRuntimeException(this._evaluate$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  57373. },
  57374. _adjustParseError$1$2: function(nodeWithSpan, callback) {
  57375. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  57376. try {
  57377. t1 = callback.call$0();
  57378. return t1;
  57379. } catch (exception) {
  57380. t1 = H.unwrapException(exception);
  57381. if (t1 instanceof E.SassFormatException) {
  57382. error = t1;
  57383. t1 = error;
  57384. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  57385. span = nodeWithSpan.get$span();
  57386. t1 = span;
  57387. t2 = span;
  57388. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  57389. t2 = Y.SourceFile$fromString(syntheticFile, span.file.url);
  57390. t1 = span;
  57391. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  57392. t3 = error;
  57393. t3 = G.SourceSpanException.prototype.get$span.call(t3);
  57394. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  57395. t4 = span;
  57396. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  57397. t5 = error;
  57398. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  57399. syntheticSpan = t2.span$2(t1.offset + t3.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  57400. throw H.wrapException(this._evaluate$_exception$2(error._span_exception$_message, syntheticSpan));
  57401. } else
  57402. throw exception;
  57403. }
  57404. },
  57405. _adjustParseError$2: function(nodeWithSpan, callback) {
  57406. return this._adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  57407. },
  57408. _addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  57409. var error, error0, t1, exception;
  57410. try {
  57411. t1 = callback.call$0();
  57412. return t1;
  57413. } catch (exception) {
  57414. t1 = H.unwrapException(exception);
  57415. if (t1 instanceof E.MultiSpanSassScriptException) {
  57416. error = t1;
  57417. throw H.wrapException(E.MultiSpanSassRuntimeException$(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate$_stackTrace$1(nodeWithSpan.get$span())));
  57418. } else if (t1 instanceof E.SassScriptException) {
  57419. error0 = t1;
  57420. throw H.wrapException(this._evaluate$_exception$2(error0.message, nodeWithSpan.get$span()));
  57421. } else
  57422. throw exception;
  57423. }
  57424. },
  57425. _addExceptionSpan$2: function(nodeWithSpan, callback) {
  57426. return this._addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  57427. },
  57428. _addErrorSpan$1$2: function(nodeWithSpan, callback) {
  57429. var error, t1, exception;
  57430. try {
  57431. t1 = callback.call$0();
  57432. return t1;
  57433. } catch (exception) {
  57434. t1 = H.unwrapException(exception);
  57435. if (type$.legacy_SassRuntimeException._is(t1)) {
  57436. error = t1;
  57437. t1 = error.get$span();
  57438. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  57439. throw exception;
  57440. throw H.wrapException(E.SassRuntimeException$(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate$_stackTrace$0()));
  57441. } else
  57442. throw exception;
  57443. }
  57444. },
  57445. _addErrorSpan$2: function(nodeWithSpan, callback) {
  57446. return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  57447. }
  57448. };
  57449. R._EvaluateVisitor_closure.prototype = {
  57450. call$1: function($arguments) {
  57451. var module, t2,
  57452. t1 = J.getInterceptor$asx($arguments),
  57453. variable = t1.$index($arguments, 0).assertString$1("name");
  57454. t1 = t1.$index($arguments, 1).get$realNull();
  57455. module = t1 == null ? null : t1.assertString$1("module");
  57456. t1 = this.$this._evaluate$_environment;
  57457. t2 = variable.text;
  57458. t2.toString;
  57459. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  57460. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57461. },
  57462. $signature: 22
  57463. };
  57464. R._EvaluateVisitor_closure0.prototype = {
  57465. call$1: function($arguments) {
  57466. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  57467. t1 = this.$this._evaluate$_environment,
  57468. t2 = variable.text;
  57469. t2.toString;
  57470. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57471. },
  57472. $signature: 22
  57473. };
  57474. R._EvaluateVisitor_closure1.prototype = {
  57475. call$1: function($arguments) {
  57476. var module, t2, t3, t4,
  57477. t1 = J.getInterceptor$asx($arguments),
  57478. variable = t1.$index($arguments, 0).assertString$1("name");
  57479. t1 = t1.$index($arguments, 1).get$realNull();
  57480. module = t1 == null ? null : t1.assertString$1("module");
  57481. t1 = this.$this;
  57482. t2 = t1._evaluate$_environment;
  57483. t3 = variable.text;
  57484. t3.toString;
  57485. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  57486. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57487. },
  57488. $signature: 22
  57489. };
  57490. R._EvaluateVisitor_closure2.prototype = {
  57491. call$1: function($arguments) {
  57492. var module, t2,
  57493. t1 = J.getInterceptor$asx($arguments),
  57494. variable = t1.$index($arguments, 0).assertString$1("name");
  57495. t1 = t1.$index($arguments, 1).get$realNull();
  57496. module = t1 == null ? null : t1.assertString$1("module");
  57497. t1 = this.$this._evaluate$_environment;
  57498. t2 = variable.text;
  57499. t2.toString;
  57500. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  57501. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57502. },
  57503. $signature: 22
  57504. };
  57505. R._EvaluateVisitor_closure3.prototype = {
  57506. call$1: function($arguments) {
  57507. var t1 = this.$this._evaluate$_environment;
  57508. if (!t1._inMixin)
  57509. throw H.wrapException(E.SassScriptException$(string$.conten));
  57510. return t1._content != null ? C.SassBoolean_true0 : C.SassBoolean_false0;
  57511. },
  57512. $signature: 22
  57513. };
  57514. R._EvaluateVisitor_closure4.prototype = {
  57515. call$1: function($arguments) {
  57516. var t2, t3, t4,
  57517. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  57518. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  57519. if (module == null)
  57520. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  57521. t1 = type$.legacy_Value;
  57522. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  57523. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  57524. t4 = t3.get$current(t3);
  57525. t2.$indexSet(0, new D.SassString(t4.key, true), t4.value);
  57526. }
  57527. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  57528. },
  57529. $signature: 37
  57530. };
  57531. R._EvaluateVisitor_closure5.prototype = {
  57532. call$1: function($arguments) {
  57533. var t2, t3, t4,
  57534. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  57535. module = this.$this._evaluate$_environment._environment$_modules.$index(0, t1);
  57536. if (module == null)
  57537. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  57538. t1 = type$.legacy_Value;
  57539. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  57540. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  57541. t4 = t3.get$current(t3);
  57542. t2.$indexSet(0, new D.SassString(t4.key, true), new F.SassFunction(t4.value));
  57543. }
  57544. return new A.SassMap(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  57545. },
  57546. $signature: 37
  57547. };
  57548. R._EvaluateVisitor_closure6.prototype = {
  57549. call$1: function($arguments) {
  57550. var module, callable,
  57551. t1 = J.getInterceptor$asx($arguments),
  57552. $name = t1.$index($arguments, 0).assertString$1("name"),
  57553. css = t1.$index($arguments, 1).get$isTruthy();
  57554. t1 = t1.$index($arguments, 2).get$realNull();
  57555. module = t1 == null ? null : t1.assertString$1("module");
  57556. if (css && module != null)
  57557. throw H.wrapException(string$.x24css_a);
  57558. if (css)
  57559. callable = new L.PlainCssCallable($name.text);
  57560. else {
  57561. t1 = this.$this;
  57562. callable = t1._addExceptionSpan$2(t1._callableNode, new R._EvaluateVisitor__closure1(t1, $name, module));
  57563. }
  57564. if (callable != null)
  57565. return new F.SassFunction(callable);
  57566. throw H.wrapException("Function not found: " + $name.toString$0(0));
  57567. },
  57568. $signature: 212
  57569. };
  57570. R._EvaluateVisitor__closure1.prototype = {
  57571. call$0: function() {
  57572. var t2,
  57573. t1 = this.name.text;
  57574. t1.toString;
  57575. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  57576. t2 = this.module;
  57577. t2 = t2 == null ? null : t2.text;
  57578. return this.$this._getFunction$2$namespace(t1, t2);
  57579. },
  57580. $signature: 117
  57581. };
  57582. R._EvaluateVisitor_closure7.prototype = {
  57583. call$1: function($arguments) {
  57584. var t2, t3, t4, t5, t6, t7, t8, t9, t10, invocation, callable,
  57585. t1 = J.getInterceptor$asx($arguments),
  57586. $function = t1.$index($arguments, 0),
  57587. args = type$.legacy_SassArgumentList._as(t1.$index($arguments, 1));
  57588. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression);
  57589. t2 = type$.legacy_String;
  57590. t3 = type$.legacy_Expression;
  57591. t4 = this.$this;
  57592. t5 = t4._callableNode.get$span();
  57593. t6 = t4._callableNode.get$span();
  57594. args._wereKeywordsAccessed = true;
  57595. t7 = args._keywords;
  57596. if (t7.get$isEmpty(t7))
  57597. t7 = null;
  57598. else {
  57599. t8 = type$.legacy_Value;
  57600. t9 = P.LinkedHashMap_LinkedHashMap$_empty(t8, t8);
  57601. for (args._wereKeywordsAccessed = true, t7 = t7.get$entries(t7), t7 = t7.get$iterator(t7); t7.moveNext$0();) {
  57602. t10 = t7.get$current(t7);
  57603. t9.$indexSet(0, new D.SassString(t10.key, false), t10.value);
  57604. }
  57605. t7 = new F.ValueExpression(new A.SassMap(H.ConstantMap_ConstantMap$from(t9, t8, t8)), t4._callableNode.get$span());
  57606. }
  57607. invocation = new X.ArgumentInvocation(P.List_List$unmodifiable(t1, t3), H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), t2, t3), new F.ValueExpression(args, t6), t7, t5);
  57608. if ($function instanceof D.SassString) {
  57609. N.warn(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  57610. return t4.visitFunctionExpression$1(new F.FunctionExpression(null, X.Interpolation$(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t4._callableNode.get$span()), invocation, t4._callableNode.get$span()));
  57611. }
  57612. callable = $function.assertFunction$1("function").callable;
  57613. if (type$.legacy_Callable._is(callable))
  57614. return t4._runFunctionCallable$3(invocation, callable, t4._callableNode);
  57615. else
  57616. throw H.wrapException(E.SassScriptException$("The function " + H.S(callable.get$name(callable)) + string$.x20is_as));
  57617. },
  57618. $signature: 4
  57619. };
  57620. R._EvaluateVisitor_closure8.prototype = {
  57621. call$1: function($arguments) {
  57622. var withMap, values, configuration, t2, t3, _null = null,
  57623. t1 = J.getInterceptor$asx($arguments),
  57624. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("url").text);
  57625. t1 = t1.$index($arguments, 1).get$realNull();
  57626. t1 = t1 == null ? _null : t1.assertMap$1("with");
  57627. withMap = t1 == null ? _null : t1.contents;
  57628. if (withMap != null) {
  57629. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue);
  57630. t1 = this.$this;
  57631. withMap.forEach$1(0, new R._EvaluateVisitor__closure(values, t1._callableNode.get$span()));
  57632. configuration = new A.Configuration(values, t1._callableNode, false);
  57633. } else
  57634. configuration = C.Configuration_Map_empty_null_true;
  57635. t1 = this.$this;
  57636. t2 = t1._callableNode;
  57637. t3 = t2.get$span();
  57638. t3 = t3 == null ? _null : t3.file.url;
  57639. t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure0(t1), t3, configuration, true);
  57640. t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
  57641. return _null;
  57642. },
  57643. $signature: 81
  57644. };
  57645. R._EvaluateVisitor__closure.prototype = {
  57646. call$2: function(variable, value) {
  57647. var $name,
  57648. t1 = variable.assertString$1("with key").text;
  57649. t1.toString;
  57650. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  57651. t1 = this.values;
  57652. if (t1.containsKey$1($name))
  57653. throw H.wrapException("The variable $" + $name + " was configured twice.");
  57654. t1.$indexSet(0, $name, new Z.ConfiguredValue(value, this.span, null));
  57655. },
  57656. $signature: 46
  57657. };
  57658. R._EvaluateVisitor__closure0.prototype = {
  57659. call$1: function(module) {
  57660. var t1 = this.$this;
  57661. return t1._combineCss$2$clone(module, true).accept$1(t1);
  57662. },
  57663. $signature: 193
  57664. };
  57665. R._EvaluateVisitor_run_closure.prototype = {
  57666. call$0: function() {
  57667. var _this = this,
  57668. t1 = _this.node,
  57669. t2 = t1.span,
  57670. url = t2 == null ? null : t2.file.url;
  57671. if (url != null)
  57672. _this.$this._activeModules.$indexSet(0, url, null);
  57673. t2 = _this.$this;
  57674. return new E.EvaluateResult(t2._combineCss$1(t2._execute$2(_this.importer, t1)));
  57675. },
  57676. $signature: 237
  57677. };
  57678. R._EvaluateVisitor_runExpression_closure.prototype = {
  57679. call$0: function() {
  57680. var t1 = this.$this,
  57681. t2 = this.expression;
  57682. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runExpression__closure(t1, t2));
  57683. },
  57684. $signature: 12
  57685. };
  57686. R._EvaluateVisitor_runExpression__closure.prototype = {
  57687. call$0: function() {
  57688. return this.expression.accept$1(this.$this);
  57689. },
  57690. $signature: 12
  57691. };
  57692. R._EvaluateVisitor_runStatement_closure.prototype = {
  57693. call$0: function() {
  57694. var t1 = this.$this,
  57695. t2 = this.statement;
  57696. return t1._withFakeStylesheet$3(this.importer, t2, new R._EvaluateVisitor_runStatement__closure(t1, t2));
  57697. },
  57698. $signature: 1
  57699. };
  57700. R._EvaluateVisitor_runStatement__closure.prototype = {
  57701. call$0: function() {
  57702. return this.statement.accept$1(this.$this);
  57703. },
  57704. $signature: 1
  57705. };
  57706. R._EvaluateVisitor__withWarnCallback_closure.prototype = {
  57707. call$2: function(message, deprecation) {
  57708. var t1 = this.$this,
  57709. t2 = t1._importSpan;
  57710. return t1._warn$3$deprecation(message, t2 == null ? t1._callableNode.get$span() : t2, deprecation);
  57711. },
  57712. "call*": "call$2",
  57713. $requiredArgCount: 2,
  57714. $signature: 72
  57715. };
  57716. R._EvaluateVisitor__loadModule_closure.prototype = {
  57717. call$0: function() {
  57718. return this.callback.call$1(this.builtInModule);
  57719. },
  57720. $signature: 1
  57721. };
  57722. R._EvaluateVisitor__loadModule_closure0.prototype = {
  57723. call$0: function() {
  57724. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  57725. t1 = _this.$this,
  57726. t2 = _this.nodeWithSpan,
  57727. result = t1._loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  57728. importer = result.item1,
  57729. stylesheet = result.item2,
  57730. canonicalUrl = stylesheet.span.file.url,
  57731. t3 = t1._activeModules;
  57732. if (t3.containsKey$1(canonicalUrl)) {
  57733. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  57734. previousLoad = t3.$index(0, canonicalUrl);
  57735. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(message) : t1._multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  57736. }
  57737. t3.$indexSet(0, canonicalUrl, t2);
  57738. module = null;
  57739. try {
  57740. module = t1._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  57741. } finally {
  57742. t3.remove$1(0, canonicalUrl);
  57743. }
  57744. try {
  57745. _this.callback.call$1(module);
  57746. } catch (exception) {
  57747. t2 = H.unwrapException(exception);
  57748. if (type$.legacy_SassRuntimeException._is(t2))
  57749. throw exception;
  57750. else if (t2 instanceof E.MultiSpanSassException) {
  57751. error = t2;
  57752. throw H.wrapException(E.MultiSpanSassRuntimeException$(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate$_stackTrace$1(error.get$span())));
  57753. } else if (t2 instanceof E.SassException) {
  57754. error0 = t2;
  57755. throw H.wrapException(t1._evaluate$_exception$2(error0._span_exception$_message, error0.get$span()));
  57756. } else if (t2 instanceof E.MultiSpanSassScriptException) {
  57757. error1 = t2;
  57758. throw H.wrapException(t1._multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  57759. } else if (t2 instanceof E.SassScriptException) {
  57760. error2 = t2;
  57761. throw H.wrapException(t1._evaluate$_exception$1(error2.message));
  57762. } else
  57763. throw exception;
  57764. }
  57765. },
  57766. $signature: 0
  57767. };
  57768. R._EvaluateVisitor__execute_closure.prototype = {
  57769. call$0: function() {
  57770. var t2, t3, t4, css, _this = this,
  57771. t1 = _this.$this,
  57772. oldImporter = t1._importer,
  57773. oldStylesheet = t1._stylesheet,
  57774. oldRoot = t1._root,
  57775. oldParent = t1._evaluate$_parent,
  57776. oldEndOfImports = t1._endOfImports,
  57777. oldOutOfOrderImports = t1._outOfOrderImports,
  57778. oldExtender = t1._extender,
  57779. oldStyleRule = t1._styleRule,
  57780. oldMediaQueries = t1._mediaQueries,
  57781. oldDeclarationName = t1._declarationName,
  57782. oldInUnknownAtRule = t1._inUnknownAtRule,
  57783. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule,
  57784. oldInKeyframes = t1._inKeyframes,
  57785. oldConfiguration = t1._configuration;
  57786. t1._importer = _this.importer;
  57787. t2 = t1._stylesheet = _this.stylesheet;
  57788. t3 = t2.span;
  57789. t1._evaluate$_parent = t1._root = V.ModifiableCssStylesheet$(t3);
  57790. t1._endOfImports = 0;
  57791. t1._outOfOrderImports = null;
  57792. t1._extender = _this.extender;
  57793. t1._declarationName = t1._mediaQueries = t1._styleRule = null;
  57794. t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
  57795. t4 = _this.configuration;
  57796. if (t4 != null)
  57797. t1._configuration = t4;
  57798. t1.visitStylesheet$1(t2);
  57799. css = t1._outOfOrderImports == null ? t1._root : new V.CssStylesheet(new P.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode), t3);
  57800. _this._box_0.css = css;
  57801. t1._importer = oldImporter;
  57802. t1._stylesheet = oldStylesheet;
  57803. t1._root = oldRoot;
  57804. t1._evaluate$_parent = oldParent;
  57805. t1._endOfImports = oldEndOfImports;
  57806. t1._outOfOrderImports = oldOutOfOrderImports;
  57807. t1._extender = oldExtender;
  57808. t1._styleRule = oldStyleRule;
  57809. t1._mediaQueries = oldMediaQueries;
  57810. t1._declarationName = oldDeclarationName;
  57811. t1._inUnknownAtRule = oldInUnknownAtRule;
  57812. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  57813. t1._inKeyframes = oldInKeyframes;
  57814. t1._configuration = oldConfiguration;
  57815. },
  57816. $signature: 0
  57817. };
  57818. R._EvaluateVisitor__combineCss_closure.prototype = {
  57819. call$1: function(module) {
  57820. return module.get$transitivelyContainsCss();
  57821. },
  57822. $signature: 121
  57823. };
  57824. R._EvaluateVisitor__combineCss_closure0.prototype = {
  57825. call$1: function(target) {
  57826. return !this.selectors.contains$1(0, target);
  57827. },
  57828. $signature: 18
  57829. };
  57830. R._EvaluateVisitor__combineCss_closure1.prototype = {
  57831. call$1: function(module) {
  57832. return module.cloneCss$0();
  57833. },
  57834. $signature: 128
  57835. };
  57836. R._EvaluateVisitor__extendModules_closure.prototype = {
  57837. call$1: function(target) {
  57838. return !this.originalSelectors.contains$1(0, target);
  57839. },
  57840. $signature: 18
  57841. };
  57842. R._EvaluateVisitor__extendModules_closure0.prototype = {
  57843. call$0: function() {
  57844. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender);
  57845. },
  57846. $signature: 209
  57847. };
  57848. R._EvaluateVisitor__topologicalModules_visitModule.prototype = {
  57849. call$1: function(module) {
  57850. var t1, t2, t3, _i, upstream;
  57851. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  57852. upstream = t1[_i];
  57853. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  57854. this.call$1(upstream);
  57855. }
  57856. this.sorted.addFirst$1(module);
  57857. },
  57858. $signature: 193
  57859. };
  57860. R._EvaluateVisitor_visitAtRootRule_closure.prototype = {
  57861. call$0: function() {
  57862. return V.AtRootQueryParser$(this.resolved, this.$this._evaluate$_logger, null).parse$0();
  57863. },
  57864. $signature: 112
  57865. };
  57866. R._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
  57867. call$0: function() {
  57868. var t1, t2, t3, _i;
  57869. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  57870. t1[_i].accept$1(t3);
  57871. },
  57872. $signature: 0
  57873. };
  57874. R._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
  57875. call$0: function() {
  57876. var t1, t2, t3, _i;
  57877. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  57878. t1[_i].accept$1(t3);
  57879. },
  57880. "call*": "call$0",
  57881. $requiredArgCount: 0,
  57882. $signature: 0
  57883. };
  57884. R._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
  57885. call$1: function(callback) {
  57886. var t1 = this.$this,
  57887. oldParent = t1._evaluate$_parent;
  57888. t1._evaluate$_parent = this.newParent;
  57889. t1._evaluate$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  57890. t1._evaluate$_parent = oldParent;
  57891. },
  57892. $signature: 35
  57893. };
  57894. R._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
  57895. call$1: function(callback) {
  57896. var t1 = this.$this,
  57897. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
  57898. t1._atRootExcludingStyleRule = true;
  57899. this.innerScope.call$1(callback);
  57900. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  57901. },
  57902. $signature: 35
  57903. };
  57904. R._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
  57905. call$1: function(callback) {
  57906. return this.$this._withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
  57907. },
  57908. $signature: 35
  57909. };
  57910. R._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
  57911. call$0: function() {
  57912. return this.innerScope.call$1(this.callback);
  57913. },
  57914. $signature: 0
  57915. };
  57916. R._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
  57917. call$1: function(callback) {
  57918. var t1 = this.$this,
  57919. wasInKeyframes = t1._inKeyframes;
  57920. t1._inKeyframes = false;
  57921. this.innerScope.call$1(callback);
  57922. t1._inKeyframes = wasInKeyframes;
  57923. },
  57924. $signature: 35
  57925. };
  57926. R._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
  57927. call$1: function($parent) {
  57928. return type$.legacy_CssAtRule._is($parent);
  57929. },
  57930. $signature: 205
  57931. };
  57932. R._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
  57933. call$1: function(callback) {
  57934. var t1 = this.$this,
  57935. wasInUnknownAtRule = t1._inUnknownAtRule;
  57936. t1._inUnknownAtRule = false;
  57937. this.innerScope.call$1(callback);
  57938. t1._inUnknownAtRule = wasInUnknownAtRule;
  57939. },
  57940. $signature: 35
  57941. };
  57942. R._EvaluateVisitor_visitContentRule_closure.prototype = {
  57943. call$0: function() {
  57944. var t1, t2, t3, _i;
  57945. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  57946. t1[_i].accept$1(t3);
  57947. return null;
  57948. },
  57949. $signature: 0
  57950. };
  57951. R._EvaluateVisitor_visitDeclaration_closure.prototype = {
  57952. call$0: function() {
  57953. var t1, t2, t3, _i;
  57954. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  57955. t1[_i].accept$1(t3);
  57956. },
  57957. $signature: 0
  57958. };
  57959. R._EvaluateVisitor_visitEachRule_closure.prototype = {
  57960. call$1: function(value) {
  57961. return this.$this._evaluate$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  57962. },
  57963. $signature: 68
  57964. };
  57965. R._EvaluateVisitor_visitEachRule_closure0.prototype = {
  57966. call$1: function(value) {
  57967. return this.$this._setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  57968. },
  57969. $signature: 68
  57970. };
  57971. R._EvaluateVisitor_visitEachRule_closure1.prototype = {
  57972. call$0: function() {
  57973. var _this = this,
  57974. t1 = _this.$this;
  57975. return t1._handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
  57976. },
  57977. $signature: 12
  57978. };
  57979. R._EvaluateVisitor_visitEachRule__closure.prototype = {
  57980. call$1: function(element) {
  57981. var t1;
  57982. this.setVariables.call$1(element);
  57983. t1 = this.$this;
  57984. return t1._handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure(t1));
  57985. },
  57986. $signature: 64
  57987. };
  57988. R._EvaluateVisitor_visitEachRule___closure.prototype = {
  57989. call$1: function(child) {
  57990. return child.accept$1(this.$this);
  57991. },
  57992. $signature: 61
  57993. };
  57994. R._EvaluateVisitor_visitExtendRule_closure.prototype = {
  57995. call$0: function() {
  57996. return D.SelectorList_SelectorList$parse(B.trimAscii(this.targetText.value, true), false, true, this.$this._evaluate$_logger);
  57997. },
  57998. $signature: 42
  57999. };
  58000. R._EvaluateVisitor_visitAtRule_closure.prototype = {
  58001. call$0: function() {
  58002. var t3, _i,
  58003. t1 = this.$this,
  58004. t2 = t1._styleRule;
  58005. if (!(t2 != null && !t1._atRootExcludingStyleRule) || t1._inKeyframes)
  58006. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  58007. t2[_i].accept$1(t1);
  58008. else
  58009. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  58010. },
  58011. $signature: 0
  58012. };
  58013. R._EvaluateVisitor_visitAtRule__closure.prototype = {
  58014. call$0: function() {
  58015. var t1, t2, t3, _i;
  58016. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  58017. t1[_i].accept$1(t3);
  58018. },
  58019. $signature: 0
  58020. };
  58021. R._EvaluateVisitor_visitAtRule_closure0.prototype = {
  58022. call$1: function(node) {
  58023. return type$.legacy_CssStyleRule._is(node);
  58024. },
  58025. $signature: 7
  58026. };
  58027. R._EvaluateVisitor_visitForRule_closure.prototype = {
  58028. call$0: function() {
  58029. return this.node.from.accept$1(this.$this).assertNumber$0();
  58030. },
  58031. $signature: 191
  58032. };
  58033. R._EvaluateVisitor_visitForRule_closure0.prototype = {
  58034. call$0: function() {
  58035. return this.node.to.accept$1(this.$this).assertNumber$0();
  58036. },
  58037. $signature: 191
  58038. };
  58039. R._EvaluateVisitor_visitForRule_closure1.prototype = {
  58040. call$0: function() {
  58041. var t1 = this.toNumber;
  58042. return this.fromNumber.coerce$2(t1.numeratorUnits, t1.denominatorUnits).assertInt$0();
  58043. },
  58044. $signature: 11
  58045. };
  58046. R._EvaluateVisitor_visitForRule_closure2.prototype = {
  58047. call$0: function() {
  58048. return this.toNumber.assertInt$0();
  58049. },
  58050. $signature: 11
  58051. };
  58052. R._EvaluateVisitor_visitForRule_closure3.prototype = {
  58053. call$0: function() {
  58054. var i, t3, t4, t5, result, _this = this,
  58055. t1 = _this.$this,
  58056. t2 = _this.node,
  58057. nodeWithSpan = t1._expressionNode$1(t2.from);
  58058. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t2 = t2.children; i !== t3.to; i += t4) {
  58059. t1._evaluate$_environment.setLocalVariable$3(t5, T.SassNumber$(i, null), nodeWithSpan);
  58060. result = t1._handleReturn$2(t2, new R._EvaluateVisitor_visitForRule__closure(t1));
  58061. if (result != null)
  58062. return result;
  58063. }
  58064. return null;
  58065. },
  58066. $signature: 12
  58067. };
  58068. R._EvaluateVisitor_visitForRule__closure.prototype = {
  58069. call$1: function(child) {
  58070. return child.accept$1(this.$this);
  58071. },
  58072. $signature: 61
  58073. };
  58074. R._EvaluateVisitor_visitForwardRule_closure.prototype = {
  58075. call$1: function(module) {
  58076. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  58077. },
  58078. $signature: 116
  58079. };
  58080. R._EvaluateVisitor_visitForwardRule_closure0.prototype = {
  58081. call$1: function(module) {
  58082. this.$this._evaluate$_environment.forwardModule$2(module, this.node);
  58083. },
  58084. $signature: 116
  58085. };
  58086. R._EvaluateVisitor__assertConfigurationIsEmpty_closure.prototype = {
  58087. call$2: function($name, value) {
  58088. var t1 = this.only;
  58089. if (t1 != null && !t1.contains$1(0, $name))
  58090. return;
  58091. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  58092. throw H.wrapException(this.$this._evaluate$_exception$2(t1, value.configurationSpan));
  58093. },
  58094. $signature: 200
  58095. };
  58096. R._EvaluateVisitor_visitIfRule_closure.prototype = {
  58097. call$0: function() {
  58098. var t1 = this.$this;
  58099. return t1._handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure(t1));
  58100. },
  58101. $signature: 12
  58102. };
  58103. R._EvaluateVisitor_visitIfRule__closure.prototype = {
  58104. call$1: function(child) {
  58105. return child.accept$1(this.$this);
  58106. },
  58107. $signature: 61
  58108. };
  58109. R._EvaluateVisitor__visitDynamicImport_closure.prototype = {
  58110. call$0: function() {
  58111. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  58112. _s34_ = "This file is already being loaded.",
  58113. _box_0 = {},
  58114. t1 = this.$this,
  58115. t2 = this.$import,
  58116. result = t1._loadStylesheet$3$forImport(t2.url, t2.span, true),
  58117. importer = result.item1,
  58118. stylesheet = result.item2,
  58119. url = stylesheet.span.file.url,
  58120. t3 = t1._activeModules;
  58121. if (t3.containsKey$1(url)) {
  58122. previousLoad = t3.$index(0, url);
  58123. throw H.wrapException(previousLoad == null ? t1._evaluate$_exception$1(_s34_) : t1._multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  58124. }
  58125. t3.$indexSet(0, url, t2);
  58126. t2 = new P.UnmodifiableListView(stylesheet._uses, type$.UnmodifiableListView_legacy_UseRule);
  58127. if (t2.get$length(t2) === 0) {
  58128. t2 = new P.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  58129. t2 = t2.get$length(t2) === 0;
  58130. } else
  58131. t2 = false;
  58132. if (t2) {
  58133. oldImporter = t1._importer;
  58134. oldStylesheet = t1._stylesheet;
  58135. t1._importer = importer;
  58136. t1._stylesheet = stylesheet;
  58137. t1.visitStylesheet$1(stylesheet);
  58138. t1._importer = oldImporter;
  58139. t1._stylesheet = oldStylesheet;
  58140. t3.remove$1(0, url);
  58141. return;
  58142. }
  58143. _box_0.children = null;
  58144. t2 = t1._evaluate$_environment;
  58145. t4 = type$.legacy_String;
  58146. t5 = type$.legacy_Module_legacy_Callable;
  58147. t6 = type$.legacy_AstNode;
  58148. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable);
  58149. t8 = t2._variables;
  58150. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  58151. t9 = t2._variableNodes;
  58152. if (t9 == null)
  58153. t9 = _null;
  58154. else
  58155. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  58156. t10 = t2._functions;
  58157. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  58158. t11 = t2._mixins;
  58159. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  58160. environment = O.Environment$_(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._content);
  58161. t1._withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure(_box_0, t1, importer, stylesheet, environment));
  58162. module = O._EnvironmentModule__EnvironmentModule(environment, new V.CssStylesheet(new P.UnmodifiableListView(C.List_empty0, type$.UnmodifiableListView_legacy_CssNode), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender, environment._forwardedModules);
  58163. t1._evaluate$_environment.importForwards$1(module);
  58164. if (module.transitivelyContainsCss)
  58165. t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  58166. visitor = new R._ImportedCssVisitor(t1);
  58167. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  58168. t1.get$current(t1).accept$1(visitor);
  58169. t3.remove$1(0, url);
  58170. },
  58171. $signature: 0
  58172. };
  58173. R._EvaluateVisitor__visitDynamicImport__closure.prototype = {
  58174. call$0: function() {
  58175. var t2, t3, _this = this,
  58176. t1 = _this.$this,
  58177. oldImporter = t1._importer,
  58178. oldStylesheet = t1._stylesheet,
  58179. oldRoot = t1._root,
  58180. oldParent = t1._evaluate$_parent,
  58181. oldEndOfImports = t1._endOfImports,
  58182. oldOutOfOrderImports = t1._outOfOrderImports,
  58183. oldConfiguration = t1._configuration;
  58184. t1._importer = _this.importer;
  58185. t2 = t1._stylesheet = _this.stylesheet;
  58186. t1._evaluate$_parent = t1._root = V.ModifiableCssStylesheet$(t2.span);
  58187. t1._endOfImports = 0;
  58188. t1._outOfOrderImports = null;
  58189. t3 = new P.UnmodifiableListView(t2._forwards, type$.UnmodifiableListView_legacy_ForwardRule);
  58190. if (!t3.get$isEmpty(t3))
  58191. t1._configuration = _this.environment.toImplicitConfiguration$0();
  58192. t1.visitStylesheet$1(t2);
  58193. _this._box_0.children = t1._addOutOfOrderImports$0();
  58194. t1._importer = oldImporter;
  58195. t1._stylesheet = oldStylesheet;
  58196. t1._root = oldRoot;
  58197. t1._evaluate$_parent = oldParent;
  58198. t1._endOfImports = oldEndOfImports;
  58199. t1._outOfOrderImports = oldOutOfOrderImports;
  58200. t1._configuration = oldConfiguration;
  58201. },
  58202. $signature: 0
  58203. };
  58204. R._EvaluateVisitor_visitIncludeRule_closure.prototype = {
  58205. call$0: function() {
  58206. var t1 = this.node;
  58207. return this.$this._evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  58208. },
  58209. $signature: 117
  58210. };
  58211. R._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
  58212. call$0: function() {
  58213. return this.node.get$spanWithoutContent();
  58214. },
  58215. "call*": "call$0",
  58216. $requiredArgCount: 0,
  58217. $signature: 33
  58218. };
  58219. R._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
  58220. call$0: function() {
  58221. var _this = this,
  58222. t1 = _this.$this,
  58223. t2 = t1._evaluate$_environment,
  58224. oldContent = t2._content;
  58225. t2._content = _this.contentCallable;
  58226. new R._EvaluateVisitor_visitIncludeRule__closure(t1, _this.mixin, _this.nodeWithSpan).call$0();
  58227. t2._content = oldContent;
  58228. return null;
  58229. },
  58230. $signature: 0
  58231. };
  58232. R._EvaluateVisitor_visitIncludeRule__closure.prototype = {
  58233. call$0: function() {
  58234. var t1 = this.$this,
  58235. t2 = t1._evaluate$_environment,
  58236. oldInMixin = t2._inMixin;
  58237. t2._inMixin = true;
  58238. new R._EvaluateVisitor_visitIncludeRule___closure(t1, this.mixin, this.nodeWithSpan).call$0();
  58239. t2._inMixin = oldInMixin;
  58240. return null;
  58241. },
  58242. $signature: 0
  58243. };
  58244. R._EvaluateVisitor_visitIncludeRule___closure.prototype = {
  58245. call$0: function() {
  58246. var t1, t2, t3, t4, _i;
  58247. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  58248. t3._addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure(t3, t1[_i]));
  58249. },
  58250. $signature: 0
  58251. };
  58252. R._EvaluateVisitor_visitIncludeRule____closure.prototype = {
  58253. call$0: function() {
  58254. return this.statement.accept$1(this.$this);
  58255. },
  58256. $signature: 12
  58257. };
  58258. R._EvaluateVisitor_visitMediaRule_closure.prototype = {
  58259. call$0: function() {
  58260. var _this = this,
  58261. t1 = _this.$this,
  58262. t2 = _this.mergedQueries;
  58263. if (t2 == null)
  58264. t2 = _this.queries;
  58265. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
  58266. },
  58267. $signature: 0
  58268. };
  58269. R._EvaluateVisitor_visitMediaRule__closure.prototype = {
  58270. call$0: function() {
  58271. var t3, _i,
  58272. t1 = this.$this,
  58273. t2 = t1._styleRule;
  58274. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  58275. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  58276. t2[_i].accept$1(t1);
  58277. else
  58278. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  58279. },
  58280. $signature: 0
  58281. };
  58282. R._EvaluateVisitor_visitMediaRule___closure.prototype = {
  58283. call$0: function() {
  58284. var t1, t2, t3, _i;
  58285. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  58286. t1[_i].accept$1(t3);
  58287. },
  58288. $signature: 0
  58289. };
  58290. R._EvaluateVisitor_visitMediaRule_closure0.prototype = {
  58291. call$1: function(node) {
  58292. var t1;
  58293. if (!type$.legacy_CssStyleRule._is(node))
  58294. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  58295. else
  58296. t1 = true;
  58297. return t1;
  58298. },
  58299. $signature: 7
  58300. };
  58301. R._EvaluateVisitor__visitMediaQueries_closure.prototype = {
  58302. call$0: function() {
  58303. return F.MediaQueryParser$(this.resolved, this.$this._evaluate$_logger, null).parse$0();
  58304. },
  58305. $signature: 113
  58306. };
  58307. R._EvaluateVisitor_visitStyleRule_closure.prototype = {
  58308. call$0: function() {
  58309. return E.KeyframeSelectorParser$(this.selectorText.value, this.$this._evaluate$_logger).parse$0();
  58310. },
  58311. $signature: 40
  58312. };
  58313. R._EvaluateVisitor_visitStyleRule_closure0.prototype = {
  58314. call$0: function() {
  58315. var t1, t2, t3, _i;
  58316. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  58317. t1[_i].accept$1(t3);
  58318. },
  58319. $signature: 0
  58320. };
  58321. R._EvaluateVisitor_visitStyleRule_closure1.prototype = {
  58322. call$1: function(node) {
  58323. return type$.legacy_CssStyleRule._is(node);
  58324. },
  58325. $signature: 7
  58326. };
  58327. R._EvaluateVisitor_visitStyleRule_closure2.prototype = {
  58328. call$0: function() {
  58329. var t1 = this.$this,
  58330. t2 = !t1._stylesheet.plainCss;
  58331. return D.SelectorList_SelectorList$parse(this.selectorText.value, t2, t2, t1._evaluate$_logger);
  58332. },
  58333. $signature: 42
  58334. };
  58335. R._EvaluateVisitor_visitStyleRule_closure3.prototype = {
  58336. call$0: function() {
  58337. var t1 = this._box_0.parsedSelector,
  58338. t2 = this.$this,
  58339. t3 = t2._styleRule;
  58340. t3 = t3 == null ? null : t3.originalSelector;
  58341. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._atRootExcludingStyleRule);
  58342. },
  58343. $signature: 42
  58344. };
  58345. R._EvaluateVisitor_visitStyleRule_closure4.prototype = {
  58346. call$0: function() {
  58347. var t1 = this.$this;
  58348. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
  58349. },
  58350. $signature: 0
  58351. };
  58352. R._EvaluateVisitor_visitStyleRule__closure.prototype = {
  58353. call$0: function() {
  58354. var t1, t2, t3, _i;
  58355. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  58356. t1[_i].accept$1(t3);
  58357. },
  58358. $signature: 0
  58359. };
  58360. R._EvaluateVisitor_visitStyleRule_closure5.prototype = {
  58361. call$1: function(node) {
  58362. return type$.legacy_CssStyleRule._is(node);
  58363. },
  58364. $signature: 7
  58365. };
  58366. R._EvaluateVisitor_visitSupportsRule_closure.prototype = {
  58367. call$0: function() {
  58368. var t3, _i,
  58369. t1 = this.$this,
  58370. t2 = t1._styleRule;
  58371. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  58372. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  58373. t2[_i].accept$1(t1);
  58374. else
  58375. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.legacy_ModifiableCssStyleRule, type$.Null);
  58376. },
  58377. $signature: 0
  58378. };
  58379. R._EvaluateVisitor_visitSupportsRule__closure.prototype = {
  58380. call$0: function() {
  58381. var t1, t2, t3, _i;
  58382. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  58383. t1[_i].accept$1(t3);
  58384. },
  58385. $signature: 0
  58386. };
  58387. R._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
  58388. call$1: function(node) {
  58389. return type$.legacy_CssStyleRule._is(node);
  58390. },
  58391. $signature: 7
  58392. };
  58393. R._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
  58394. call$0: function() {
  58395. var t1 = this.override;
  58396. this.$this._evaluate$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  58397. },
  58398. $signature: 0
  58399. };
  58400. R._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
  58401. call$0: function() {
  58402. var t1 = this.node;
  58403. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  58404. },
  58405. $signature: 12
  58406. };
  58407. R._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
  58408. call$0: function() {
  58409. var t1 = this.$this,
  58410. t2 = this.node;
  58411. t1._evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  58412. },
  58413. $signature: 0
  58414. };
  58415. R._EvaluateVisitor_visitUseRule_closure.prototype = {
  58416. call$1: function(module) {
  58417. var t1 = this.node;
  58418. this.$this._evaluate$_environment.addModule$3$namespace(module, t1, t1.namespace);
  58419. },
  58420. $signature: 116
  58421. };
  58422. R._EvaluateVisitor_visitWarnRule_closure.prototype = {
  58423. call$0: function() {
  58424. return this.node.expression.accept$1(this.$this);
  58425. },
  58426. $signature: 12
  58427. };
  58428. R._EvaluateVisitor_visitWhileRule_closure.prototype = {
  58429. call$0: function() {
  58430. var t1, t2, t3, result;
  58431. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  58432. result = t3._handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure(t3));
  58433. if (result != null)
  58434. return result;
  58435. }
  58436. return null;
  58437. },
  58438. $signature: 12
  58439. };
  58440. R._EvaluateVisitor_visitWhileRule__closure.prototype = {
  58441. call$1: function(child) {
  58442. return child.accept$1(this.$this);
  58443. },
  58444. $signature: 61
  58445. };
  58446. R._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
  58447. call$0: function() {
  58448. var right, result,
  58449. t1 = this.node,
  58450. t2 = this.$this,
  58451. left = t1.left.accept$1(t2);
  58452. switch (t1.operator) {
  58453. case C.BinaryOperator_kjl:
  58454. right = t1.right.accept$1(t2);
  58455. left.toString;
  58456. t1 = N.serializeValue0(left, false, true) + "=";
  58457. right.toString;
  58458. return new D.SassString(t1 + N.serializeValue0(right, false, true), false);
  58459. case C.BinaryOperator_or_or_1:
  58460. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  58461. case C.BinaryOperator_and_and_2:
  58462. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  58463. case C.BinaryOperator_YlX:
  58464. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  58465. case C.BinaryOperator_i5H:
  58466. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true0 : C.SassBoolean_false0;
  58467. case C.BinaryOperator_AcR:
  58468. return left.greaterThan$1(t1.right.accept$1(t2));
  58469. case C.BinaryOperator_1da:
  58470. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  58471. case C.BinaryOperator_8qt:
  58472. return left.lessThan$1(t1.right.accept$1(t2));
  58473. case C.BinaryOperator_33h:
  58474. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  58475. case C.BinaryOperator_AcR0:
  58476. return left.plus$1(t1.right.accept$1(t2));
  58477. case C.BinaryOperator_iyO:
  58478. return left.minus$1(t1.right.accept$1(t2));
  58479. case C.BinaryOperator_O1M:
  58480. return left.times$1(t1.right.accept$1(t2));
  58481. case C.BinaryOperator_RTB:
  58482. right = t1.right.accept$1(t2);
  58483. result = left.dividedBy$1(right);
  58484. if (t1.allowsSlash && left instanceof T.SassNumber && right instanceof T.SassNumber)
  58485. return type$.legacy_SassNumber._as(result).withSlash$2(left, right);
  58486. else
  58487. return result;
  58488. case C.BinaryOperator_2ad:
  58489. return left.modulo$1(t1.right.accept$1(t2));
  58490. default:
  58491. return null;
  58492. }
  58493. },
  58494. $signature: 12
  58495. };
  58496. R._EvaluateVisitor_visitVariableExpression_closure.prototype = {
  58497. call$0: function() {
  58498. var t1 = this.node;
  58499. return this.$this._evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  58500. },
  58501. $signature: 12
  58502. };
  58503. R._EvaluateVisitor_visitListExpression_closure.prototype = {
  58504. call$1: function(expression) {
  58505. return expression.accept$1(this.$this);
  58506. },
  58507. $signature: 242
  58508. };
  58509. R._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
  58510. call$0: function() {
  58511. var t1 = this.node.namespace,
  58512. t2 = this.plainName;
  58513. if (t1 == null)
  58514. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  58515. return this.$this._getFunction$2$namespace(t2, t1);
  58516. },
  58517. $signature: 117
  58518. };
  58519. R._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
  58520. call$0: function() {
  58521. var t1 = this.node;
  58522. return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  58523. },
  58524. $signature: 12
  58525. };
  58526. R._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
  58527. call$0: function() {
  58528. var _this = this,
  58529. t1 = _this.$this,
  58530. t2 = _this.callable;
  58531. return t1._withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  58532. },
  58533. $signature: 12
  58534. };
  58535. R._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
  58536. call$0: function() {
  58537. var _this = this,
  58538. t1 = _this.$this;
  58539. return t1._evaluate$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value);
  58540. },
  58541. $signature: 12
  58542. };
  58543. R._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
  58544. call$0: function() {
  58545. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  58546. t1 = _this.$this,
  58547. t2 = _this.evaluated,
  58548. t3 = t2.positional,
  58549. t4 = t3.length,
  58550. t5 = t2.named,
  58551. t6 = _this.callable.declaration.$arguments,
  58552. t7 = _this.nodeWithSpan;
  58553. t1._verifyArguments$4(t4, t5, t6, t7);
  58554. declaredArguments = t6.$arguments;
  58555. t4 = declaredArguments.length;
  58556. minLength = Math.min(t3.length, t4);
  58557. for (t8 = t1._sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  58558. t10 = t1._evaluate$_environment;
  58559. t11 = declaredArguments[i].name;
  58560. t12 = t3[i].withoutSlash$0();
  58561. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  58562. }
  58563. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  58564. argument = declaredArguments[i];
  58565. t10 = argument.name;
  58566. value = t5.remove$1(0, t10);
  58567. if (value == null)
  58568. value = argument.defaultValue.accept$1(t1);
  58569. t11 = t1._evaluate$_environment;
  58570. t12 = value.withoutSlash$0();
  58571. if (t8) {
  58572. t13 = t9.$index(0, t10);
  58573. if (t13 == null)
  58574. t13 = t1._expressionNode$1(argument.defaultValue);
  58575. } else
  58576. t13 = _null;
  58577. t11.setLocalVariable$3(t10, t12, t13);
  58578. }
  58579. t8 = t6.restArgument;
  58580. if (t8 != null) {
  58581. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty5;
  58582. t2 = t2.separator;
  58583. argumentList = D.SassArgumentList$(rest, t5, t2 === C.ListSeparator_undecided ? C.ListSeparator_comma : t2);
  58584. t1._evaluate$_environment.setLocalVariable$3(t8, argumentList, t7);
  58585. } else
  58586. argumentList = _null;
  58587. result = _this.run.call$0();
  58588. if (argumentList == null)
  58589. return result;
  58590. if (t5.get$isEmpty(t5))
  58591. return result;
  58592. if (argumentList._wereKeywordsAccessed)
  58593. return result;
  58594. t2 = t5.get$keys(t5);
  58595. argumentWord = B.pluralize("argument", t2.get$length(t2), _null);
  58596. t5 = t5.get$keys(t5);
  58597. argumentNames = B.toSentence(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  58598. throw H.wrapException(E.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._evaluate$_stackTrace$1(t7.get$span())));
  58599. },
  58600. $signature: 12
  58601. };
  58602. R._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
  58603. call$1: function($name) {
  58604. return "$" + H.S($name);
  58605. },
  58606. $signature: 6
  58607. };
  58608. R._EvaluateVisitor__runFunctionCallable_closure.prototype = {
  58609. call$0: function() {
  58610. var t1, t2, t3, t4, _i, $returnValue;
  58611. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  58612. $returnValue = t2[_i].accept$1(t4);
  58613. if ($returnValue instanceof F.Value)
  58614. return $returnValue;
  58615. }
  58616. throw H.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
  58617. },
  58618. $signature: 12
  58619. };
  58620. R._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
  58621. call$0: function() {
  58622. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  58623. },
  58624. $signature: 1
  58625. };
  58626. R._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
  58627. call$1: function($name) {
  58628. return "$" + H.S($name);
  58629. },
  58630. $signature: 6
  58631. };
  58632. R._EvaluateVisitor__evaluateArguments_closure.prototype = {
  58633. call$2: function(key, value) {
  58634. var t1;
  58635. this.named.$indexSet(0, key, value);
  58636. t1 = this.namedNodes;
  58637. if (t1 != null)
  58638. t1.$indexSet(0, key, this.restNodeForSpan);
  58639. },
  58640. $signature: 79
  58641. };
  58642. R._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
  58643. call$1: function(value) {
  58644. return new F.ValueExpression(value, null);
  58645. },
  58646. $signature: 47
  58647. };
  58648. R._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
  58649. call$1: function(value) {
  58650. return new F.ValueExpression(value, null);
  58651. },
  58652. $signature: 47
  58653. };
  58654. R._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
  58655. call$2: function(key, value) {
  58656. this.named.$indexSet(0, key, new F.ValueExpression(value, null));
  58657. },
  58658. $signature: 79
  58659. };
  58660. R._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
  58661. call$1: function(value) {
  58662. return new F.ValueExpression(value, null);
  58663. },
  58664. $signature: 47
  58665. };
  58666. R._EvaluateVisitor__addRestMap_closure.prototype = {
  58667. call$1: function(value) {
  58668. return this.T._eval$1("0*")._as(value);
  58669. },
  58670. $signature: function() {
  58671. return this.T._eval$1("0*(Value*)");
  58672. }
  58673. };
  58674. R._EvaluateVisitor__addRestMap_closure0.prototype = {
  58675. call$2: function(key, value) {
  58676. var _this = this;
  58677. if (key instanceof D.SassString)
  58678. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  58679. else
  58680. throw H.wrapException(_this.$this._evaluate$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  58681. },
  58682. $signature: 46
  58683. };
  58684. R._EvaluateVisitor__verifyArguments_closure.prototype = {
  58685. call$0: function() {
  58686. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  58687. },
  58688. $signature: 1
  58689. };
  58690. R._EvaluateVisitor_visitStringExpression_closure.prototype = {
  58691. call$1: function(value) {
  58692. var t1, result;
  58693. if (typeof value == "string")
  58694. return value;
  58695. type$.legacy_Expression._as(value);
  58696. t1 = this.$this;
  58697. result = value.accept$1(t1);
  58698. return result instanceof D.SassString ? result.text : t1._evaluate$_serialize$3$quote(result, value, false);
  58699. },
  58700. $signature: 41
  58701. };
  58702. R._EvaluateVisitor_visitCssAtRule_closure.prototype = {
  58703. call$0: function() {
  58704. var t1, t2, cur;
  58705. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  58706. cur = t1.__internal$_current;
  58707. cur.accept$1(t2);
  58708. }
  58709. },
  58710. $signature: 0
  58711. };
  58712. R._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
  58713. call$1: function(node) {
  58714. return type$.legacy_CssStyleRule._is(node);
  58715. },
  58716. $signature: 7
  58717. };
  58718. R._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
  58719. call$0: function() {
  58720. var t1, t2, cur;
  58721. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  58722. cur = t1.__internal$_current;
  58723. cur.accept$1(t2);
  58724. }
  58725. },
  58726. $signature: 0
  58727. };
  58728. R._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
  58729. call$1: function(node) {
  58730. return type$.legacy_CssStyleRule._is(node);
  58731. },
  58732. $signature: 7
  58733. };
  58734. R._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
  58735. call$0: function() {
  58736. var _this = this,
  58737. t1 = _this.$this,
  58738. t2 = _this.mergedQueries;
  58739. if (t2 == null)
  58740. t2 = _this.node.queries;
  58741. t1._withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
  58742. },
  58743. $signature: 0
  58744. };
  58745. R._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
  58746. call$0: function() {
  58747. var cur,
  58748. t1 = this.$this,
  58749. t2 = t1._styleRule;
  58750. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  58751. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  58752. cur = t2.__internal$_current;
  58753. cur.accept$1(t1);
  58754. }
  58755. else
  58756. t1._withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.legacy_ModifiableCssStyleRule, type$.Null);
  58757. },
  58758. $signature: 0
  58759. };
  58760. R._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
  58761. call$0: function() {
  58762. var t1, t2, cur;
  58763. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  58764. cur = t1.__internal$_current;
  58765. cur.accept$1(t2);
  58766. }
  58767. },
  58768. $signature: 0
  58769. };
  58770. R._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
  58771. call$1: function(node) {
  58772. var t1;
  58773. if (!type$.legacy_CssStyleRule._is(node))
  58774. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule._is(node);
  58775. else
  58776. t1 = true;
  58777. return t1;
  58778. },
  58779. $signature: 7
  58780. };
  58781. R._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
  58782. call$0: function() {
  58783. var t1 = this.$this;
  58784. t1._withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
  58785. },
  58786. $signature: 0
  58787. };
  58788. R._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
  58789. call$0: function() {
  58790. var t1, t2, cur;
  58791. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  58792. cur = t1.__internal$_current;
  58793. cur.accept$1(t2);
  58794. }
  58795. },
  58796. $signature: 0
  58797. };
  58798. R._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
  58799. call$1: function(node) {
  58800. return type$.legacy_CssStyleRule._is(node);
  58801. },
  58802. $signature: 7
  58803. };
  58804. R._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
  58805. call$0: function() {
  58806. var cur,
  58807. t1 = this.$this,
  58808. t2 = t1._styleRule;
  58809. if (!(t2 != null && !t1._atRootExcludingStyleRule))
  58810. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  58811. cur = t2.__internal$_current;
  58812. cur.accept$1(t1);
  58813. }
  58814. else
  58815. t1._withParent$2$2(X.ModifiableCssStyleRule$(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.legacy_ModifiableCssStyleRule, type$.Null);
  58816. },
  58817. $signature: 0
  58818. };
  58819. R._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
  58820. call$0: function() {
  58821. var t1, t2, cur;
  58822. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  58823. cur = t1.__internal$_current;
  58824. cur.accept$1(t2);
  58825. }
  58826. },
  58827. $signature: 0
  58828. };
  58829. R._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
  58830. call$1: function(node) {
  58831. return type$.legacy_CssStyleRule._is(node);
  58832. },
  58833. $signature: 7
  58834. };
  58835. R._EvaluateVisitor__performInterpolation_closure.prototype = {
  58836. call$1: function(value) {
  58837. var t1, result, t2, t3;
  58838. if (typeof value == "string")
  58839. return value;
  58840. type$.legacy_Expression._as(value);
  58841. t1 = this.$this;
  58842. result = value.accept$1(t1);
  58843. if (this.warnForColor && result instanceof K.SassColor && $.$get$namesByColor().containsKey$1(result)) {
  58844. t2 = X.Interpolation$(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  58845. t3 = $.$get$namesByColor();
  58846. t1._warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whicw + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression(C.BinaryOperator_AcR0, new D.StringExpression(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  58847. }
  58848. return t1._evaluate$_serialize$3$quote(result, value, false);
  58849. },
  58850. $signature: 41
  58851. };
  58852. R._EvaluateVisitor__serialize_closure.prototype = {
  58853. call$0: function() {
  58854. var t1 = this.value;
  58855. t1.toString;
  58856. return N.serializeValue0(t1, false, this.quote);
  58857. },
  58858. $signature: 17
  58859. };
  58860. R._EvaluateVisitor__stackTrace_closure.prototype = {
  58861. call$1: function(tuple) {
  58862. return this.$this._stackFrame$2(tuple.item1, tuple.item2.get$span());
  58863. },
  58864. $signature: 195
  58865. };
  58866. R._ImportedCssVisitor.prototype = {
  58867. visitCssAtRule$1: function(node) {
  58868. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure();
  58869. this._visitor._addChild$2$through(node, t1);
  58870. },
  58871. visitCssComment$1: function(node) {
  58872. return this._visitor._addChild$1(node);
  58873. },
  58874. visitCssDeclaration$1: function(node) {
  58875. },
  58876. visitCssImport$1: function(node) {
  58877. var t1 = this._visitor,
  58878. t2 = t1._evaluate$_parent,
  58879. t3 = t1._root;
  58880. if (t2 != t3)
  58881. t1._addChild$1(node);
  58882. else if (t1._endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  58883. t1._addChild$1(node);
  58884. t1._endOfImports = t1._endOfImports + 1;
  58885. } else {
  58886. t2 = t1._outOfOrderImports;
  58887. (t2 == null ? t1._outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport) : t2).push(node);
  58888. }
  58889. },
  58890. visitCssKeyframeBlock$1: function(node) {
  58891. },
  58892. visitCssMediaRule$1: function(node) {
  58893. var t1 = this._visitor,
  58894. t2 = t1._mediaQueries;
  58895. t1._addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure(t2 == null || t1._mergeMediaQueries$2(t2, node.queries) != null));
  58896. },
  58897. visitCssStyleRule$1: function(node) {
  58898. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure());
  58899. },
  58900. visitCssStylesheet$1: function(node) {
  58901. var t1, cur;
  58902. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  58903. cur = t1.__internal$_current;
  58904. cur.accept$1(this);
  58905. }
  58906. },
  58907. visitCssSupportsRule$1: function(node) {
  58908. return this._visitor._addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure());
  58909. }
  58910. };
  58911. R._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
  58912. call$1: function(node) {
  58913. return type$.legacy_CssStyleRule._is(node);
  58914. },
  58915. $signature: 7
  58916. };
  58917. R._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
  58918. call$1: function(node) {
  58919. var t1;
  58920. if (!type$.legacy_CssStyleRule._is(node))
  58921. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule._is(node);
  58922. else
  58923. t1 = true;
  58924. return t1;
  58925. },
  58926. $signature: 7
  58927. };
  58928. R._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
  58929. call$1: function(node) {
  58930. return type$.legacy_CssStyleRule._is(node);
  58931. },
  58932. $signature: 7
  58933. };
  58934. R._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
  58935. call$1: function(node) {
  58936. return type$.legacy_CssStyleRule._is(node);
  58937. },
  58938. $signature: 7
  58939. };
  58940. R._ArgumentResults.prototype = {};
  58941. F._FindDependenciesVisitor.prototype = {
  58942. visitEachRule$1: function(node) {
  58943. },
  58944. visitForRule$1: function(node) {
  58945. },
  58946. visitIfRule$1: function(node) {
  58947. },
  58948. visitWhileRule$1: function(node) {
  58949. },
  58950. visitUseRule$1: function(node) {
  58951. this._usesAndForwards.push(node.url);
  58952. },
  58953. visitForwardRule$1: function(node) {
  58954. this._usesAndForwards.push(node.url);
  58955. },
  58956. visitImportRule$1: function(node) {
  58957. var t1, t2, t3, _i, $import;
  58958. for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
  58959. $import = t1[_i];
  58960. if ($import instanceof B.DynamicImport)
  58961. t3.push(P.Uri_parse($import.url));
  58962. }
  58963. }
  58964. };
  58965. D.RecursiveStatementVisitor.prototype = {
  58966. visitAtRootRule$1: function(node) {
  58967. return this.visitChildren$1(node);
  58968. },
  58969. visitAtRule$1: function(node) {
  58970. return node.children == null ? null : this.visitChildren$1(node);
  58971. },
  58972. visitContentBlock$1: function(node) {
  58973. return null;
  58974. },
  58975. visitContentRule$1: function(node) {
  58976. this.visitArgumentInvocation$1(node.$arguments);
  58977. return null;
  58978. },
  58979. visitDebugRule$1: function(node) {
  58980. return null;
  58981. },
  58982. visitDeclaration$1: function(node) {
  58983. return node.children == null ? null : this.visitChildren$1(node);
  58984. },
  58985. visitErrorRule$1: function(node) {
  58986. return null;
  58987. },
  58988. visitExtendRule$1: function(node) {
  58989. return null;
  58990. },
  58991. visitFunctionRule$1: function(node) {
  58992. return null;
  58993. },
  58994. visitIncludeRule$1: function(node) {
  58995. this.visitArgumentInvocation$1(node.$arguments);
  58996. return null;
  58997. },
  58998. visitLoudComment$1: function(node) {
  58999. return null;
  59000. },
  59001. visitMediaRule$1: function(node) {
  59002. return this.visitChildren$1(node);
  59003. },
  59004. visitMixinRule$1: function(node) {
  59005. return null;
  59006. },
  59007. visitReturnRule$1: function(node) {
  59008. return null;
  59009. },
  59010. visitSilentComment$1: function(node) {
  59011. return null;
  59012. },
  59013. visitStyleRule$1: function(node) {
  59014. return this.visitChildren$1(node);
  59015. },
  59016. visitStylesheet$1: function(node) {
  59017. return this.visitChildren$1(node);
  59018. },
  59019. visitSupportsRule$1: function(node) {
  59020. return this.visitChildren$1(node);
  59021. },
  59022. visitVariableDeclaration$1: function(node) {
  59023. return null;
  59024. },
  59025. visitWarnRule$1: function(node) {
  59026. return null;
  59027. },
  59028. visitArgumentInvocation$1: function(invocation) {
  59029. var t1, _i;
  59030. for (t1 = invocation.positional.length, _i = 0; _i < t1; ++_i)
  59031. ;
  59032. for (t1 = invocation.named, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  59033. t1.get$current(t1);
  59034. },
  59035. visitChildren$1: function(node) {
  59036. var t1;
  59037. for (t1 = node.children, t1 = (t1 && C.JSArray_methods).get$iterator(t1); t1.moveNext$0();)
  59038. t1.get$current(t1).accept$1(this);
  59039. return null;
  59040. }
  59041. };
  59042. N.serialize_closure.prototype = {
  59043. call$1: function(codeUnit) {
  59044. return codeUnit > 127;
  59045. },
  59046. $signature: 24
  59047. };
  59048. N._SerializeVisitor0.prototype = {
  59049. visitCssStylesheet$1: function(node) {
  59050. var t1, t2, t3, t4, previous, i, child, _this = this;
  59051. for (t1 = _this._style !== C.OutputStyle_compressed, t2 = type$.legacy_CssComment, t3 = type$.legacy_CssParentNode, t4 = _this._serialize$_buffer, previous = null, i = 0; i < J.get$length$asx(node.get$children(node)); ++i) {
  59052. child = J.$index$asx(node.get$children(node), i);
  59053. if (_this._isInvisible$1(child))
  59054. continue;
  59055. if (previous != null) {
  59056. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  59057. t4.writeCharCode$1(59);
  59058. if (t1)
  59059. t4.write$1(0, "\n");
  59060. if (previous.get$isGroupEnd())
  59061. if (t1)
  59062. t4.write$1(0, "\n");
  59063. }
  59064. child.accept$1(_this);
  59065. previous = child;
  59066. }
  59067. if (previous != null)
  59068. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  59069. else
  59070. t1 = false;
  59071. if (t1)
  59072. t4.writeCharCode$1(59);
  59073. },
  59074. visitCssComment$1: function(node) {
  59075. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure(this, node));
  59076. },
  59077. visitCssAtRule$1: function(node) {
  59078. var t1, _this = this;
  59079. _this._writeIndentation$0();
  59080. t1 = _this._serialize$_buffer;
  59081. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure(_this, node));
  59082. if (!node.isChildless) {
  59083. if (_this._style !== C.OutputStyle_compressed)
  59084. t1.writeCharCode$1(32);
  59085. _this._serialize$_visitChildren$1(node.children);
  59086. }
  59087. },
  59088. visitCssMediaRule$1: function(node) {
  59089. var t1, _this = this;
  59090. _this._writeIndentation$0();
  59091. t1 = _this._serialize$_buffer;
  59092. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure(_this, node));
  59093. if (_this._style !== C.OutputStyle_compressed)
  59094. t1.writeCharCode$1(32);
  59095. _this._serialize$_visitChildren$1(node.children);
  59096. },
  59097. visitCssImport$1: function(node) {
  59098. this._writeIndentation$0();
  59099. this._serialize$_buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure(this, node));
  59100. },
  59101. _writeImportUrl$1: function(url) {
  59102. var urlContents, maybeQuote, _this = this;
  59103. if (_this._style !== C.OutputStyle_compressed || J._codeUnitAt$1$s(url, 0) !== 117) {
  59104. _this._serialize$_buffer.write$1(0, url);
  59105. return;
  59106. }
  59107. urlContents = J.substring$2$s(url, 4, url.length - 1);
  59108. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  59109. if (maybeQuote === 39 || maybeQuote === 34)
  59110. _this._serialize$_buffer.write$1(0, urlContents);
  59111. else
  59112. _this._visitQuotedString$1(urlContents);
  59113. },
  59114. visitCssKeyframeBlock$1: function(node) {
  59115. var t1, _this = this;
  59116. _this._writeIndentation$0();
  59117. t1 = _this._serialize$_buffer;
  59118. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
  59119. if (_this._style !== C.OutputStyle_compressed)
  59120. t1.writeCharCode$1(32);
  59121. _this._serialize$_visitChildren$1(node.children);
  59122. },
  59123. _visitMediaQuery$1: function(query) {
  59124. var t2, t3, _this = this,
  59125. t1 = query.modifier;
  59126. if (t1 != null) {
  59127. t2 = _this._serialize$_buffer;
  59128. t2.write$1(0, t1);
  59129. t2.writeCharCode$1(32);
  59130. }
  59131. t1 = query.type;
  59132. if (t1 != null) {
  59133. t2 = _this._serialize$_buffer;
  59134. t2.write$1(0, t1);
  59135. if (query.features.length !== 0)
  59136. t2.write$1(0, " and ");
  59137. }
  59138. t1 = query.features;
  59139. t2 = _this._style === C.OutputStyle_compressed ? "and " : " and ";
  59140. t3 = _this._serialize$_buffer;
  59141. _this._writeBetween$3(t1, t2, t3.get$write(t3));
  59142. },
  59143. visitCssStyleRule$1: function(node) {
  59144. var t1, _this = this;
  59145. _this._writeIndentation$0();
  59146. t1 = _this._serialize$_buffer;
  59147. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure(_this, node));
  59148. if (_this._style !== C.OutputStyle_compressed)
  59149. t1.writeCharCode$1(32);
  59150. _this._serialize$_visitChildren$1(node.children);
  59151. },
  59152. visitCssSupportsRule$1: function(node) {
  59153. var t1, _this = this;
  59154. _this._writeIndentation$0();
  59155. t1 = _this._serialize$_buffer;
  59156. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
  59157. if (_this._style !== C.OutputStyle_compressed)
  59158. t1.writeCharCode$1(32);
  59159. _this._serialize$_visitChildren$1(node.children);
  59160. },
  59161. visitCssDeclaration$1: function(node) {
  59162. var error, error0, t1, t2, exception, _this = this;
  59163. _this._writeIndentation$0();
  59164. t1 = node.name;
  59165. _this._write$1(t1);
  59166. t2 = _this._serialize$_buffer;
  59167. t2.writeCharCode$1(58);
  59168. if (J.startsWith$1$s(t1.get$value(t1), "--") && node.parsedAsCustomProperty)
  59169. t2.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure(_this, node));
  59170. else {
  59171. if (_this._style !== C.OutputStyle_compressed)
  59172. t2.writeCharCode$1(32);
  59173. try {
  59174. t2.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
  59175. } catch (exception) {
  59176. t1 = H.unwrapException(exception);
  59177. if (t1 instanceof E.MultiSpanSassScriptException) {
  59178. error = t1;
  59179. throw H.wrapException(E.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  59180. } else if (t1 instanceof E.SassScriptException) {
  59181. error0 = t1;
  59182. throw H.wrapException(E.SassException$(error0.message, node.value.span));
  59183. } else
  59184. throw exception;
  59185. }
  59186. }
  59187. },
  59188. _writeFoldedValue$1: function(node) {
  59189. var t1, t2, next, t3,
  59190. scanner = X.StringScanner$(type$.legacy_SassString._as(node.value.value).text, null, null);
  59191. for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  59192. next = scanner.readChar$0();
  59193. if (next !== 10) {
  59194. t2.writeCharCode$1(next);
  59195. continue;
  59196. }
  59197. t2.writeCharCode$1(32);
  59198. while (true) {
  59199. t3 = scanner.peekChar$0();
  59200. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  59201. break;
  59202. scanner.readChar$0();
  59203. }
  59204. }
  59205. },
  59206. _writeReindentedValue$1: function(node) {
  59207. var _this = this,
  59208. t1 = node.value,
  59209. value = type$.legacy_SassString._as(t1.value).text,
  59210. minimumIndentation = _this._minimumIndentation$1(value);
  59211. if (minimumIndentation == null) {
  59212. _this._serialize$_buffer.write$1(0, value);
  59213. return;
  59214. } else if (minimumIndentation === -1) {
  59215. t1 = _this._serialize$_buffer;
  59216. t1.write$1(0, B.trimAsciiRight(value, true));
  59217. t1.writeCharCode$1(32);
  59218. return;
  59219. }
  59220. if (t1.span != null) {
  59221. t1 = node.name.get$span();
  59222. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  59223. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  59224. }
  59225. _this._writeWithIndent$2(value, minimumIndentation);
  59226. },
  59227. _minimumIndentation$1: function(text) {
  59228. var character, t2, min, next, min0,
  59229. scanner = Z.LineScanner$(text),
  59230. t1 = scanner.string.length;
  59231. while (true) {
  59232. if (scanner._string_scanner$_position !== t1) {
  59233. character = scanner.super$StringScanner$readChar();
  59234. scanner._adjustLineAndColumn$1(character);
  59235. t2 = character !== 10;
  59236. } else
  59237. t2 = false;
  59238. if (!t2)
  59239. break;
  59240. }
  59241. if (scanner._string_scanner$_position === t1)
  59242. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  59243. for (min = null; scanner._string_scanner$_position !== t1;) {
  59244. for (; scanner._string_scanner$_position !== t1;) {
  59245. next = scanner.peekChar$0();
  59246. if (next !== 32 && next !== 9)
  59247. break;
  59248. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  59249. }
  59250. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  59251. continue;
  59252. min0 = scanner._line_scanner$_column;
  59253. min = min == null ? min0 : Math.min(min, min0);
  59254. while (true) {
  59255. if (scanner._string_scanner$_position !== t1) {
  59256. character = scanner.super$StringScanner$readChar();
  59257. scanner._adjustLineAndColumn$1(character);
  59258. t2 = character !== 10;
  59259. } else
  59260. t2 = false;
  59261. if (!t2)
  59262. break;
  59263. }
  59264. }
  59265. return min == null ? -1 : min;
  59266. },
  59267. _writeWithIndent$2: function(text, minimumIndentation) {
  59268. var t1, t2, t3, character, t4, lineStart, newlines, end,
  59269. scanner = Z.LineScanner$(text);
  59270. for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize$_buffer; scanner._string_scanner$_position !== t2;) {
  59271. character = scanner.super$StringScanner$readChar();
  59272. scanner._adjustLineAndColumn$1(character);
  59273. if (character === 10)
  59274. break;
  59275. t3.writeCharCode$1(character);
  59276. }
  59277. for (t4 = J.getInterceptor$s(t1); true;) {
  59278. lineStart = scanner._string_scanner$_position;
  59279. for (newlines = 1; true;) {
  59280. if (scanner._string_scanner$_position === t2) {
  59281. t3.writeCharCode$1(32);
  59282. return;
  59283. }
  59284. character = scanner.super$StringScanner$readChar();
  59285. scanner._adjustLineAndColumn$1(character);
  59286. if (character === 32 || character === 9)
  59287. continue;
  59288. if (character !== 10)
  59289. break;
  59290. lineStart = scanner._string_scanner$_position;
  59291. ++newlines;
  59292. }
  59293. this._writeTimes$2(10, newlines);
  59294. this._writeIndentation$0();
  59295. end = scanner._string_scanner$_position;
  59296. t3.write$1(0, t4.substring$2(t1, lineStart + minimumIndentation, end));
  59297. for (; true;) {
  59298. if (scanner._string_scanner$_position === t2)
  59299. return;
  59300. character = scanner.super$StringScanner$readChar();
  59301. scanner._adjustLineAndColumn$1(character);
  59302. if (character === 10)
  59303. break;
  59304. t3.writeCharCode$1(character);
  59305. }
  59306. }
  59307. },
  59308. visitColor$1: function(value) {
  59309. var $name, hexLength, t2, t3, _this = this,
  59310. t1 = _this._style === C.OutputStyle_compressed;
  59311. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon()) {
  59312. $name = $.$get$namesByColor().$index(0, value);
  59313. hexLength = _this._canUseShortHex$1(value) ? 4 : 7;
  59314. if ($name != null && $name.length <= hexLength)
  59315. _this._serialize$_buffer.write$1(0, $name);
  59316. else {
  59317. t1 = _this._serialize$_buffer;
  59318. if (_this._canUseShortHex$1(value)) {
  59319. t1.writeCharCode$1(35);
  59320. t1.writeCharCode$1(T.hexCharFor(value.get$red() & 15));
  59321. t1.writeCharCode$1(T.hexCharFor(value.get$green() & 15));
  59322. t1.writeCharCode$1(T.hexCharFor(value.get$blue() & 15));
  59323. } else {
  59324. t1.writeCharCode$1(35);
  59325. _this._writeHexComponent$1(value.get$red());
  59326. _this._writeHexComponent$1(value.get$green());
  59327. _this._writeHexComponent$1(value.get$blue());
  59328. }
  59329. }
  59330. return;
  59331. }
  59332. if (value.get$original() != null)
  59333. _this._serialize$_buffer.write$1(0, value.get$original());
  59334. else {
  59335. t2 = $.$get$namesByColor();
  59336. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon()))
  59337. _this._serialize$_buffer.write$1(0, t2.$index(0, value));
  59338. else {
  59339. t2 = value.alpha;
  59340. t3 = _this._serialize$_buffer;
  59341. if (Math.abs(t2 - 1) < $.$get$epsilon()) {
  59342. t3.writeCharCode$1(35);
  59343. _this._writeHexComponent$1(value.get$red());
  59344. _this._writeHexComponent$1(value.get$green());
  59345. _this._writeHexComponent$1(value.get$blue());
  59346. } else {
  59347. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  59348. t3.write$1(0, t1 ? "," : ", ");
  59349. t3.write$1(0, value.get$green());
  59350. t3.write$1(0, t1 ? "," : ", ");
  59351. t3.write$1(0, value.get$blue());
  59352. t3.write$1(0, t1 ? "," : ", ");
  59353. _this._writeNumber$1(t2);
  59354. t3.writeCharCode$1(41);
  59355. }
  59356. }
  59357. }
  59358. },
  59359. _canUseShortHex$1: function(color) {
  59360. var t1 = color.get$red();
  59361. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  59362. t1 = color.get$green();
  59363. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  59364. t1 = color.get$blue();
  59365. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  59366. } else
  59367. t1 = false;
  59368. } else
  59369. t1 = false;
  59370. return t1;
  59371. },
  59372. _writeHexComponent$1: function(color) {
  59373. var t1 = this._serialize$_buffer;
  59374. t1.writeCharCode$1(T.hexCharFor(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  59375. t1.writeCharCode$1(T.hexCharFor(color & 15));
  59376. },
  59377. visitList$1: function(value) {
  59378. var t2, singleton, t3, t4, _this = this,
  59379. t1 = value.hasBrackets;
  59380. if (t1)
  59381. _this._serialize$_buffer.writeCharCode$1(91);
  59382. else if (value._list$_contents.length === 0) {
  59383. if (!_this._serialize$_inspect)
  59384. throw H.wrapException(E.SassScriptException$("() isn't a valid CSS value."));
  59385. _this._serialize$_buffer.write$1(0, "()");
  59386. return;
  59387. }
  59388. t2 = _this._serialize$_inspect;
  59389. singleton = t2 && value._list$_contents.length === 1 && value.separator === C.ListSeparator_comma;
  59390. if (singleton && !t1)
  59391. _this._serialize$_buffer.writeCharCode$1(40);
  59392. t3 = value._list$_contents;
  59393. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  59394. if (value.separator === C.ListSeparator_space)
  59395. t4 = " ";
  59396. else
  59397. t4 = _this._style === C.OutputStyle_compressed ? "," : ", ";
  59398. _this._writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure0(_this, value) : new N._SerializeVisitor_visitList_closure1(_this));
  59399. if (singleton) {
  59400. t2 = _this._serialize$_buffer;
  59401. t2.writeCharCode$1(44);
  59402. if (!t1)
  59403. t2.writeCharCode$1(41);
  59404. }
  59405. if (t1)
  59406. _this._serialize$_buffer.writeCharCode$1(93);
  59407. },
  59408. _elementNeedsParens$2: function(separator, value) {
  59409. var t1;
  59410. if (value instanceof D.SassList) {
  59411. if (value._list$_contents.length < 2)
  59412. return false;
  59413. if (value.hasBrackets)
  59414. return false;
  59415. t1 = value.separator;
  59416. return separator === C.ListSeparator_comma ? t1 === C.ListSeparator_comma : t1 !== C.ListSeparator_undecided;
  59417. }
  59418. return false;
  59419. },
  59420. visitMap$1: function(map) {
  59421. var t1, t2, _this = this;
  59422. if (!_this._serialize$_inspect)
  59423. throw H.wrapException(E.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value."));
  59424. t1 = _this._serialize$_buffer;
  59425. t1.writeCharCode$1(40);
  59426. t2 = map.contents;
  59427. _this._writeBetween$3(t2.get$keys(t2), ", ", new N._SerializeVisitor_visitMap_closure(_this, map));
  59428. t1.writeCharCode$1(41);
  59429. },
  59430. _writeMapElement$1: function(value) {
  59431. var needsParens = value instanceof D.SassList && value.separator === C.ListSeparator_comma && !value.hasBrackets;
  59432. if (needsParens)
  59433. this._serialize$_buffer.writeCharCode$1(40);
  59434. value.accept$1(this);
  59435. if (needsParens)
  59436. this._serialize$_buffer.writeCharCode$1(41);
  59437. },
  59438. visitNumber$1: function(value) {
  59439. var t2, _this = this,
  59440. t1 = value.asSlash;
  59441. if (t1 != null) {
  59442. _this.visitNumber$1(t1.item1);
  59443. _this._serialize$_buffer.writeCharCode$1(47);
  59444. _this.visitNumber$1(t1.item2);
  59445. return;
  59446. }
  59447. _this._writeNumber$1(value.value);
  59448. if (!_this._serialize$_inspect) {
  59449. t1 = value.numeratorUnits;
  59450. t2 = t1.length;
  59451. if (t2 > 1 || value.denominatorUnits.length !== 0)
  59452. throw H.wrapException(E.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value."));
  59453. if (t2 !== 0)
  59454. _this._serialize$_buffer.write$1(0, C.JSArray_methods.get$first(t1));
  59455. } else
  59456. _this._serialize$_buffer.write$1(0, value.get$unitString());
  59457. },
  59458. _writeNumber$1: function(number) {
  59459. var t1, text, text0, _this = this,
  59460. integer = T.fuzzyIsInt(number) ? J.round$0$n(number) : null;
  59461. if (integer != null) {
  59462. t1 = integer >= 1e21 ? _this._removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  59463. _this._serialize$_buffer.write$1(0, t1);
  59464. return;
  59465. }
  59466. text = number >= 1e21 ? _this._removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  59467. text0 = _this._style === C.OutputStyle_compressed && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  59468. if (text.length < 12) {
  59469. _this._serialize$_buffer.write$1(0, text0);
  59470. return;
  59471. }
  59472. _this._writeDecimal$1(text0);
  59473. },
  59474. _removeExponent$1: function(text) {
  59475. var buffer, exponent, t2, additionalZeroes, negative,
  59476. t1 = text.length,
  59477. i = 0;
  59478. while (true) {
  59479. if (!(i < t1)) {
  59480. buffer = null;
  59481. exponent = null;
  59482. break;
  59483. }
  59484. c$0: {
  59485. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  59486. break c$0;
  59487. buffer = new P.StringBuffer("");
  59488. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  59489. buffer._contents = t2;
  59490. if (i > 2)
  59491. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  59492. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), null);
  59493. break;
  59494. }
  59495. ++i;
  59496. }
  59497. if (buffer == null)
  59498. return text;
  59499. if (exponent > 0) {
  59500. t1 = buffer._contents;
  59501. additionalZeroes = exponent - (t1.length - 1);
  59502. for (i = 0; i < additionalZeroes; ++i)
  59503. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  59504. return t1.charCodeAt(0) == 0 ? t1 : t1;
  59505. } else {
  59506. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  59507. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  59508. for (i = -1; i > exponent; --i)
  59509. t1 += H.Primitives_stringFromCharCode(48);
  59510. if (negative) {
  59511. t2 = buffer._contents;
  59512. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  59513. } else
  59514. t2 = buffer;
  59515. t2 = t1 + H.S(t2);
  59516. return t2.charCodeAt(0) == 0 ? t2 : t2;
  59517. }
  59518. },
  59519. _writeDecimal$1: function(text) {
  59520. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  59521. for (t1 = text.length, t2 = this._serialize$_buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  59522. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  59523. if (codeUnit === 46) {
  59524. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  59525. return;
  59526. t2.writeCharCode$1(codeUnit);
  59527. ++textIndex;
  59528. break;
  59529. }
  59530. t2.writeCharCode$1(codeUnit);
  59531. }
  59532. if (textIndex === t1)
  59533. return;
  59534. digits = new Uint8Array(10);
  59535. t3 = digits.length;
  59536. digitsIndex = 0;
  59537. while (true) {
  59538. if (!(textIndex < t1 && digitsIndex < t3))
  59539. break;
  59540. digitsIndex0 = digitsIndex + 1;
  59541. textIndex0 = textIndex + 1;
  59542. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  59543. digitsIndex = digitsIndex0;
  59544. textIndex = textIndex0;
  59545. }
  59546. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  59547. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  59548. digitsIndex0 = digitsIndex - 1;
  59549. newDigit = digits[digitsIndex0] + 1;
  59550. digits[digitsIndex0] = newDigit;
  59551. if (newDigit !== 10)
  59552. break;
  59553. }
  59554. while (true) {
  59555. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  59556. break;
  59557. --digitsIndex;
  59558. }
  59559. for (i = 0; i < digitsIndex; ++i)
  59560. t2.writeCharCode$1(48 + digits[i]);
  59561. },
  59562. _visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  59563. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  59564. buffer = forceDoubleQuote ? _this._serialize$_buffer : new P.StringBuffer("");
  59565. if (forceDoubleQuote)
  59566. buffer.writeCharCode$1(34);
  59567. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  59568. char = C.JSString_methods._codeUnitAt$1(string, i);
  59569. switch (char) {
  59570. case 39:
  59571. if (forceDoubleQuote)
  59572. buffer.writeCharCode$1(39);
  59573. else {
  59574. if (includesDoubleQuote) {
  59575. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  59576. return;
  59577. } else
  59578. buffer.writeCharCode$1(39);
  59579. includesSingleQuote = true;
  59580. }
  59581. break;
  59582. case 34:
  59583. if (forceDoubleQuote) {
  59584. buffer.writeCharCode$1(92);
  59585. buffer.writeCharCode$1(34);
  59586. } else {
  59587. if (includesSingleQuote) {
  59588. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  59589. return;
  59590. } else
  59591. buffer.writeCharCode$1(34);
  59592. includesDoubleQuote = true;
  59593. }
  59594. break;
  59595. case 0:
  59596. case 1:
  59597. case 2:
  59598. case 3:
  59599. case 4:
  59600. case 5:
  59601. case 6:
  59602. case 7:
  59603. case 8:
  59604. case 10:
  59605. case 11:
  59606. case 12:
  59607. case 13:
  59608. case 14:
  59609. case 15:
  59610. case 16:
  59611. case 17:
  59612. case 18:
  59613. case 19:
  59614. case 20:
  59615. case 21:
  59616. case 22:
  59617. case 23:
  59618. case 24:
  59619. case 25:
  59620. case 26:
  59621. case 27:
  59622. case 28:
  59623. case 29:
  59624. case 30:
  59625. case 31:
  59626. buffer.writeCharCode$1(92);
  59627. if (char > 15) {
  59628. t2 = char >>> 4;
  59629. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  59630. }
  59631. t2 = char & 15;
  59632. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  59633. t2 = i + 1;
  59634. if (t1 === t2)
  59635. break;
  59636. next = C.JSString_methods._codeUnitAt$1(string, t2);
  59637. if (T.isHex(next) || next === 32 || next === 9)
  59638. buffer.writeCharCode$1(32);
  59639. break;
  59640. case 92:
  59641. buffer.writeCharCode$1(92);
  59642. buffer.writeCharCode$1(92);
  59643. break;
  59644. default:
  59645. buffer.writeCharCode$1(char);
  59646. break;
  59647. }
  59648. }
  59649. if (forceDoubleQuote)
  59650. buffer.writeCharCode$1(34);
  59651. else {
  59652. quote = includesDoubleQuote ? 39 : 34;
  59653. t1 = _this._serialize$_buffer;
  59654. t1.writeCharCode$1(quote);
  59655. t1.write$1(0, buffer);
  59656. t1.writeCharCode$1(quote);
  59657. }
  59658. },
  59659. _visitQuotedString$1: function(string) {
  59660. return this._visitQuotedString$2$forceDoubleQuote(string, false);
  59661. },
  59662. _visitUnquotedString$1: function(string) {
  59663. var t1, t2, afterNewline, i, char;
  59664. for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  59665. char = C.JSString_methods._codeUnitAt$1(string, i);
  59666. switch (char) {
  59667. case 10:
  59668. t2.writeCharCode$1(32);
  59669. afterNewline = true;
  59670. break;
  59671. case 32:
  59672. if (!afterNewline)
  59673. t2.writeCharCode$1(32);
  59674. break;
  59675. default:
  59676. t2.writeCharCode$1(char);
  59677. afterNewline = false;
  59678. break;
  59679. }
  59680. }
  59681. },
  59682. visitComplexSelector$1: function(complex) {
  59683. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  59684. for (t1 = complex.components, t2 = t1.length, t3 = this._serialize$_buffer, t4 = this._style === C.OutputStyle_compressed, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  59685. component = t1[_i];
  59686. if (lastComponent != null)
  59687. if (!(t4 && lastComponent instanceof S.Combinator))
  59688. t5 = !(t4 && component instanceof S.Combinator);
  59689. else
  59690. t5 = false;
  59691. else
  59692. t5 = false;
  59693. if (t5)
  59694. t3.write$1(0, " ");
  59695. if (component instanceof X.CompoundSelector)
  59696. this.visitCompoundSelector$1(component);
  59697. else
  59698. t3.write$1(0, component);
  59699. }
  59700. },
  59701. visitCompoundSelector$1: function(compound) {
  59702. var t2, t3, _i,
  59703. t1 = this._serialize$_buffer,
  59704. start = t1.get$length(t1);
  59705. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  59706. t2[_i].accept$1(this);
  59707. if (t1.get$length(t1) === start)
  59708. t1.writeCharCode$1(42);
  59709. },
  59710. visitSelectorList$1: function(list) {
  59711. var complexes, t1, t2, t3, first, t4, _this = this;
  59712. if (_this._serialize$_inspect)
  59713. complexes = list.components;
  59714. else {
  59715. t1 = list.components;
  59716. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  59717. }
  59718. for (t1 = J.get$iterator$ax(complexes), t2 = _this._style !== C.OutputStyle_compressed, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
  59719. t4 = t1.get$current(t1);
  59720. if (first)
  59721. first = false;
  59722. else {
  59723. t3.writeCharCode$1(44);
  59724. if (t4.lineBreak) {
  59725. if (t2)
  59726. t3.write$1(0, "\n");
  59727. } else if (t2)
  59728. t3.writeCharCode$1(32);
  59729. }
  59730. _this.visitComplexSelector$1(t4);
  59731. }
  59732. },
  59733. visitPseudoSelector$1: function(pseudo) {
  59734. var t4, t5, t6,
  59735. t1 = pseudo.selector,
  59736. t2 = t1 == null,
  59737. t3 = !t2;
  59738. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  59739. return;
  59740. t4 = this._serialize$_buffer;
  59741. t4.writeCharCode$1(58);
  59742. if (!pseudo.isSyntacticClass)
  59743. t4.writeCharCode$1(58);
  59744. t4.write$1(0, pseudo.name);
  59745. t5 = pseudo.argument;
  59746. t6 = t5 == null;
  59747. if (t6 && t2)
  59748. return;
  59749. t4.writeCharCode$1(40);
  59750. if (!t6) {
  59751. t4.write$1(0, t5);
  59752. if (t3)
  59753. t4.writeCharCode$1(32);
  59754. }
  59755. if (t3)
  59756. this.visitSelectorList$1(t1);
  59757. t4.writeCharCode$1(41);
  59758. },
  59759. _write$1: function(value) {
  59760. return this._serialize$_buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure(this, value));
  59761. },
  59762. _serialize$_visitChildren$1: function(children) {
  59763. var _this = this, t1 = {},
  59764. t2 = _this._serialize$_buffer;
  59765. t2.writeCharCode$1(123);
  59766. if (children.every$1(children, _this.get$_isInvisible())) {
  59767. t2.writeCharCode$1(125);
  59768. return;
  59769. }
  59770. _this._writeLineFeed$0();
  59771. t1.previous = null;
  59772. ++_this._indentation;
  59773. new N._SerializeVisitor__visitChildren_closure(t1, _this, children).call$0();
  59774. --_this._indentation;
  59775. t1 = t1.previous;
  59776. if ((type$.legacy_CssParentNode._is(t1) ? t1.get$isChildless() : !type$.legacy_CssComment._is(t1)) && _this._style !== C.OutputStyle_compressed)
  59777. t2.writeCharCode$1(59);
  59778. _this._writeLineFeed$0();
  59779. _this._writeIndentation$0();
  59780. t2.writeCharCode$1(125);
  59781. },
  59782. _writeLineFeed$0: function() {
  59783. if (this._style !== C.OutputStyle_compressed)
  59784. this._serialize$_buffer.write$1(0, "\n");
  59785. },
  59786. _writeIndentation$0: function() {
  59787. var _this = this;
  59788. if (_this._style === C.OutputStyle_compressed)
  59789. return;
  59790. _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
  59791. },
  59792. _writeTimes$2: function(char, times) {
  59793. var t1, i;
  59794. for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
  59795. t1.writeCharCode$1(char);
  59796. },
  59797. _writeBetween$1$3: function(iterable, text, callback) {
  59798. var t1, t2, first, value;
  59799. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
  59800. value = t1.get$current(t1);
  59801. if (first)
  59802. first = false;
  59803. else
  59804. t2.write$1(0, text);
  59805. callback.call$1(value);
  59806. }
  59807. },
  59808. _writeBetween$3: function(iterable, text, callback) {
  59809. return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
  59810. },
  59811. _isInvisible$1: function(node) {
  59812. if (this._serialize$_inspect)
  59813. return false;
  59814. if (this._style === C.OutputStyle_compressed && type$.legacy_CssComment._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  59815. return true;
  59816. if (type$.legacy_CssParentNode._is(node)) {
  59817. if (type$.legacy_CssAtRule._is(node))
  59818. return false;
  59819. if (type$.legacy_CssStyleRule._is(node) && node.selector.value.get$isInvisible())
  59820. return true;
  59821. return J.every$1$ax(node.get$children(node), this.get$_isInvisible());
  59822. } else
  59823. return false;
  59824. }
  59825. };
  59826. N._SerializeVisitor_visitCssComment_closure.prototype = {
  59827. call$0: function() {
  59828. var t2, t3, minimumIndentation,
  59829. t1 = this.$this;
  59830. if (t1._style === C.OutputStyle_compressed && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  59831. return;
  59832. t2 = this.node;
  59833. t3 = t2.text;
  59834. minimumIndentation = t1._minimumIndentation$1(t3);
  59835. if (minimumIndentation == null) {
  59836. t1._writeIndentation$0();
  59837. t1._serialize$_buffer.write$1(0, t3);
  59838. return;
  59839. }
  59840. t2 = t2.span;
  59841. if (t2 != null) {
  59842. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  59843. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  59844. }
  59845. t1._writeIndentation$0();
  59846. t1._writeWithIndent$2(t3, minimumIndentation);
  59847. },
  59848. $signature: 0
  59849. };
  59850. N._SerializeVisitor_visitCssAtRule_closure.prototype = {
  59851. call$0: function() {
  59852. var t3,
  59853. t1 = this.$this,
  59854. t2 = t1._serialize$_buffer;
  59855. t2.writeCharCode$1(64);
  59856. t3 = this.node;
  59857. t1._write$1(t3.name);
  59858. t3 = t3.value;
  59859. if (t3 != null) {
  59860. t2.writeCharCode$1(32);
  59861. t1._write$1(t3);
  59862. }
  59863. },
  59864. $signature: 0
  59865. };
  59866. N._SerializeVisitor_visitCssMediaRule_closure.prototype = {
  59867. call$0: function() {
  59868. var t3, t4,
  59869. t1 = this.$this,
  59870. t2 = t1._serialize$_buffer;
  59871. t2.write$1(0, "@media");
  59872. t3 = t1._style === C.OutputStyle_compressed;
  59873. if (t3) {
  59874. t4 = C.JSArray_methods.get$first(this.node.queries);
  59875. t4 = !(t4.modifier == null && t4.type == null);
  59876. } else
  59877. t4 = true;
  59878. if (t4)
  59879. t2.writeCharCode$1(32);
  59880. t2 = t3 ? "," : ", ";
  59881. t1._writeBetween$3(this.node.queries, t2, t1.get$_visitMediaQuery());
  59882. },
  59883. $signature: 0
  59884. };
  59885. N._SerializeVisitor_visitCssImport_closure.prototype = {
  59886. call$0: function() {
  59887. var t3, t4, t5, t6,
  59888. t1 = this.$this,
  59889. t2 = t1._serialize$_buffer;
  59890. t2.write$1(0, "@import");
  59891. t3 = t1._style === C.OutputStyle_compressed;
  59892. t4 = !t3;
  59893. if (t4)
  59894. t2.writeCharCode$1(32);
  59895. t5 = this.node;
  59896. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure(t1, t5));
  59897. t6 = t5.supports;
  59898. if (t6 != null) {
  59899. if (t4)
  59900. t2.writeCharCode$1(32);
  59901. t1._write$1(t6);
  59902. }
  59903. t5 = t5.media;
  59904. if (t5 != null) {
  59905. if (t4)
  59906. t2.writeCharCode$1(32);
  59907. t2 = t3 ? "," : ", ";
  59908. t1._writeBetween$3(t5, t2, t1.get$_visitMediaQuery());
  59909. }
  59910. },
  59911. $signature: 0
  59912. };
  59913. N._SerializeVisitor_visitCssImport__closure.prototype = {
  59914. call$0: function() {
  59915. var t1 = this.node.url;
  59916. return this.$this._writeImportUrl$1(t1.get$value(t1));
  59917. },
  59918. $signature: 1
  59919. };
  59920. N._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
  59921. call$0: function() {
  59922. var t1 = this.$this,
  59923. t2 = t1._style === C.OutputStyle_compressed ? "," : ", ",
  59924. t3 = t1._serialize$_buffer;
  59925. return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  59926. },
  59927. $signature: 1
  59928. };
  59929. N._SerializeVisitor_visitCssStyleRule_closure.prototype = {
  59930. call$0: function() {
  59931. var t1 = this.node.selector.value;
  59932. t1.toString;
  59933. return this.$this.visitSelectorList$1(t1);
  59934. },
  59935. $signature: 1
  59936. };
  59937. N._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
  59938. call$0: function() {
  59939. var t1 = this.$this,
  59940. t2 = t1._serialize$_buffer;
  59941. t2.write$1(0, "@supports");
  59942. if (!(t1._style === C.OutputStyle_compressed && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  59943. t2.writeCharCode$1(32);
  59944. t1._write$1(this.node.condition);
  59945. },
  59946. $signature: 0
  59947. };
  59948. N._SerializeVisitor_visitCssDeclaration_closure.prototype = {
  59949. call$0: function() {
  59950. var t1 = this.$this,
  59951. t2 = this.node;
  59952. if (t1._style === C.OutputStyle_compressed)
  59953. t1._writeFoldedValue$1(t2);
  59954. else
  59955. t1._writeReindentedValue$1(t2);
  59956. },
  59957. $signature: 0
  59958. };
  59959. N._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
  59960. call$0: function() {
  59961. return this.node.value.value.accept$1(this.$this);
  59962. },
  59963. $signature: 1
  59964. };
  59965. N._SerializeVisitor_visitList_closure.prototype = {
  59966. call$1: function(element) {
  59967. return !element.get$isBlank();
  59968. },
  59969. $signature: 53
  59970. };
  59971. N._SerializeVisitor_visitList_closure0.prototype = {
  59972. call$1: function(element) {
  59973. var t1 = this.$this,
  59974. needsParens = t1._elementNeedsParens$2(this.value.separator, element);
  59975. if (needsParens)
  59976. t1._serialize$_buffer.writeCharCode$1(40);
  59977. element.accept$1(t1);
  59978. if (needsParens)
  59979. t1._serialize$_buffer.writeCharCode$1(41);
  59980. },
  59981. $signature: 115
  59982. };
  59983. N._SerializeVisitor_visitList_closure1.prototype = {
  59984. call$1: function(element) {
  59985. element.accept$1(this.$this);
  59986. },
  59987. $signature: 115
  59988. };
  59989. N._SerializeVisitor_visitMap_closure.prototype = {
  59990. call$1: function(key) {
  59991. var t1 = this.$this;
  59992. t1._writeMapElement$1(key);
  59993. t1._serialize$_buffer.write$1(0, ": ");
  59994. t1._writeMapElement$1(this.map.contents.$index(0, key));
  59995. },
  59996. $signature: 115
  59997. };
  59998. N._SerializeVisitor_visitSelectorList_closure.prototype = {
  59999. call$1: function(complex) {
  60000. return !complex.get$isInvisible();
  60001. },
  60002. $signature: 14
  60003. };
  60004. N._SerializeVisitor__write_closure.prototype = {
  60005. call$0: function() {
  60006. var t1 = this.value;
  60007. return this.$this._serialize$_buffer.write$1(0, t1.get$value(t1));
  60008. },
  60009. $signature: 1
  60010. };
  60011. N._SerializeVisitor__visitChildren_closure.prototype = {
  60012. call$0: function() {
  60013. var t1, t2, t3, t4, t5, t6, t7, i, child, t8;
  60014. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.legacy_CssComment, t6 = type$.legacy_CssParentNode, t7 = t4._serialize$_buffer, i = 0; i < t2.get$length(t1); ++i) {
  60015. child = t2.elementAt$1(t1, i);
  60016. if (t4._isInvisible$1(child))
  60017. continue;
  60018. t8 = t3.previous;
  60019. if (t8 != null) {
  60020. if (t6._is(t8) ? t8.get$isChildless() : !t5._is(t8))
  60021. t7.writeCharCode$1(59);
  60022. t8 = t4._style !== C.OutputStyle_compressed;
  60023. if (t8)
  60024. t7.write$1(0, "\n");
  60025. if (t3.previous.get$isGroupEnd())
  60026. if (t8)
  60027. t7.write$1(0, "\n");
  60028. }
  60029. t3.previous = child;
  60030. child.accept$1(t4);
  60031. }
  60032. },
  60033. $signature: 0
  60034. };
  60035. N.OutputStyle.prototype = {
  60036. toString$0: function(_) {
  60037. return this._serialize$_name;
  60038. }
  60039. };
  60040. N.LineFeed.prototype = {
  60041. toString$0: function(_) {
  60042. return "lf";
  60043. }
  60044. };
  60045. N.SerializeResult.prototype = {};
  60046. N.withWarnCallback_closure.prototype = {
  60047. call$0: function() {
  60048. return this.callback.call$0();
  60049. },
  60050. "call*": "call$0",
  60051. $requiredArgCount: 0,
  60052. $signature: function() {
  60053. return this.T._eval$1("0*()");
  60054. }
  60055. };
  60056. L.Entry.prototype = {
  60057. compareTo$1: function(_, other) {
  60058. var t1, t2, t3,
  60059. res = this.target.compareTo$1(0, other.target);
  60060. if (res !== 0)
  60061. return res;
  60062. t1 = this.source;
  60063. t2 = J.toString$0$(t1.file.url);
  60064. t3 = other.source;
  60065. res = C.JSString_methods.compareTo$1(t2, J.toString$0$(t3.file.url));
  60066. if (res !== 0)
  60067. return res;
  60068. return t1.compareTo$1(0, t3);
  60069. },
  60070. $isComparable: 1,
  60071. get$source: function() {
  60072. return this.source;
  60073. },
  60074. get$target: function() {
  60075. return this.target;
  60076. },
  60077. get$identifierName: function() {
  60078. return this.identifierName;
  60079. }
  60080. };
  60081. T.Mapping.prototype = {};
  60082. T.SingleMapping.prototype = {
  60083. toJson$1$includeSourceContents: function(includeSourceContents) {
  60084. var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, _i0, segment, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
  60085. buff = new P.StringBuffer("");
  60086. for (t1 = _this.lines, t2 = t1.length, line = 0, column = 0, srcLine = 0, srcColumn = 0, srcUrlId = 0, srcNameId = 0, first = true, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  60087. entry = t1[_i];
  60088. nextLine = entry.line;
  60089. if (nextLine > line) {
  60090. for (i = line; i < nextLine; ++i)
  60091. buff._contents += ";";
  60092. line = nextLine;
  60093. column = 0;
  60094. first = true;
  60095. }
  60096. for (t3 = entry.entries, t4 = t3.length, _i0 = 0; _i0 < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i0, column = column0, first = false) {
  60097. segment = t3[_i0];
  60098. if (!first)
  60099. buff._contents += ",";
  60100. column0 = segment.column;
  60101. t5 = L.encodeVlq(column0 - column);
  60102. t5 = P.StringBuffer__writeAll(buff._contents, t5, "");
  60103. buff._contents = t5;
  60104. newUrlId = segment.sourceUrlId;
  60105. if (newUrlId == null)
  60106. continue;
  60107. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(newUrlId - srcUrlId), "");
  60108. buff._contents = t5;
  60109. srcLine0 = segment.sourceLine;
  60110. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcLine0 - srcLine), "");
  60111. buff._contents = t5;
  60112. srcColumn0 = segment.sourceColumn;
  60113. t5 = P.StringBuffer__writeAll(t5, L.encodeVlq(srcColumn0 - srcColumn), "");
  60114. buff._contents = t5;
  60115. srcNameId0 = segment.sourceNameId;
  60116. if (srcNameId0 == null) {
  60117. srcUrlId = newUrlId;
  60118. srcColumn = srcColumn0;
  60119. srcLine = srcLine0;
  60120. continue;
  60121. }
  60122. buff._contents = P.StringBuffer__writeAll(t5, L.encodeVlq(srcNameId0 - srcNameId), "");
  60123. srcNameId = srcNameId0;
  60124. srcUrlId = newUrlId;
  60125. srcColumn = srcColumn0;
  60126. srcLine = srcLine0;
  60127. }
  60128. }
  60129. t1 = _this.sourceRoot;
  60130. if (t1 == null)
  60131. t1 = "";
  60132. t2 = buff._contents;
  60133. result = P.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.legacy_String, type$.legacy_Object);
  60134. t1 = _this.targetUrl;
  60135. if (t1 != null)
  60136. result.$indexSet(0, "file", t1);
  60137. if (includeSourceContents) {
  60138. t1 = _this.files;
  60139. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>");
  60140. result.$indexSet(0, "sourcesContent", P.List_List$from(new H.MappedListIterable(t1, new T.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E")));
  60141. }
  60142. _this.extensions.forEach$1(0, new T.SingleMapping_toJson_closure0(result));
  60143. return result;
  60144. },
  60145. toJson$0: function() {
  60146. return this.toJson$1$includeSourceContents(false);
  60147. },
  60148. toString$0: function(_) {
  60149. var _this = this,
  60150. t1 = H.getRuntimeType(_this).toString$0(0);
  60151. t1 + " : [";
  60152. t1 = t1 + " : [targetUrl: " + H.S(_this.targetUrl) + ", sourceRoot: " + H.S(_this.sourceRoot) + ", urls: " + H.S(_this.urls) + ", names: " + H.S(_this.names) + ", lines: " + H.S(_this.lines) + "]";
  60153. return t1.charCodeAt(0) == 0 ? t1 : t1;
  60154. }
  60155. };
  60156. T.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
  60157. call$0: function() {
  60158. var t1 = this.urls;
  60159. return t1.get$length(t1);
  60160. },
  60161. $signature: 11
  60162. };
  60163. T.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
  60164. call$0: function() {
  60165. return type$.legacy_FileLocation._as(this.sourceEntry.get$source()).file;
  60166. },
  60167. $signature: 123
  60168. };
  60169. T.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
  60170. call$1: function(i) {
  60171. return this.files.$index(0, i);
  60172. },
  60173. $signature: 245
  60174. };
  60175. T.SingleMapping_toJson_closure.prototype = {
  60176. call$1: function(file) {
  60177. return file == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
  60178. },
  60179. $signature: 246
  60180. };
  60181. T.SingleMapping_toJson_closure0.prototype = {
  60182. call$2: function($name, value) {
  60183. this.result.$indexSet(0, $name, value);
  60184. return value;
  60185. },
  60186. $signature: 247
  60187. };
  60188. T.TargetLineEntry.prototype = {
  60189. toString$0: function(_) {
  60190. return H.getRuntimeType(this).toString$0(0) + ": " + this.line + " " + H.S(this.entries);
  60191. }
  60192. };
  60193. T.TargetEntry.prototype = {
  60194. toString$0: function(_) {
  60195. var _this = this;
  60196. return H.getRuntimeType(_this).toString$0(0) + ": (" + _this.column + ", " + H.S(_this.sourceUrlId) + ", " + H.S(_this.sourceLine) + ", " + H.S(_this.sourceColumn) + ", " + H.S(_this.sourceNameId) + ")";
  60197. }
  60198. };
  60199. Y.SourceFile.prototype = {
  60200. get$length: function(_) {
  60201. return this._decodedChars.length;
  60202. },
  60203. get$lines: function() {
  60204. return this._lineStarts.length;
  60205. },
  60206. SourceFile$decoded$2$url: function(decodedChars, url) {
  60207. var t1, t2, t3, i, c, j;
  60208. for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
  60209. c = t1[i];
  60210. if (c === 13) {
  60211. j = i + 1;
  60212. if (j >= t2 || t1[j] !== 10)
  60213. c = 10;
  60214. }
  60215. if (c === 10)
  60216. t3.push(i + 1);
  60217. }
  60218. },
  60219. span$2: function(start, end) {
  60220. return Y._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
  60221. },
  60222. span$1: function(start) {
  60223. return this.span$2(start, null);
  60224. },
  60225. getLine$1: function(offset) {
  60226. var t1, _this = this;
  60227. if (offset < 0)
  60228. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  60229. else if (offset > _this._decodedChars.length)
  60230. throw H.wrapException(P.RangeError$("Offset " + offset + string$.x20must_ + _this.get$length(_this) + "."));
  60231. t1 = _this._lineStarts;
  60232. if (offset < C.JSArray_methods.get$first(t1))
  60233. return -1;
  60234. if (offset >= C.JSArray_methods.get$last(t1))
  60235. return t1.length - 1;
  60236. if (_this._isNearCachedLine$1(offset))
  60237. return _this._cachedLine;
  60238. return _this._cachedLine = _this._binarySearch$1(offset) - 1;
  60239. },
  60240. _isNearCachedLine$1: function(offset) {
  60241. var t2, t3,
  60242. t1 = this._cachedLine;
  60243. if (t1 == null)
  60244. return false;
  60245. t2 = this._lineStarts;
  60246. if (offset < t2[t1])
  60247. return false;
  60248. t3 = t2.length;
  60249. if (t1 >= t3 - 1 || offset < t2[t1 + 1])
  60250. return true;
  60251. if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
  60252. this._cachedLine = t1 + 1;
  60253. return true;
  60254. }
  60255. return false;
  60256. },
  60257. _binarySearch$1: function(offset) {
  60258. var min, half,
  60259. t1 = this._lineStarts,
  60260. max = t1.length - 1;
  60261. for (min = 0; min < max;) {
  60262. half = min + C.JSInt_methods._tdivFast$1(max - min, 2);
  60263. if (t1[half] > offset)
  60264. max = half;
  60265. else
  60266. min = half + 1;
  60267. }
  60268. return max;
  60269. },
  60270. getColumn$1: function(offset) {
  60271. var line, lineStart, _this = this;
  60272. if (offset < 0)
  60273. throw H.wrapException(P.RangeError$("Offset may not be negative, was " + offset + "."));
  60274. else if (offset > _this._decodedChars.length)
  60275. throw H.wrapException(P.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(_this) + "."));
  60276. line = _this.getLine$1(offset);
  60277. lineStart = _this._lineStarts[line];
  60278. if (lineStart > offset)
  60279. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " comes after offset " + offset + "."));
  60280. return offset - lineStart;
  60281. },
  60282. getOffset$1: function(line) {
  60283. var t1, t2, result, t3;
  60284. if (line < 0)
  60285. throw H.wrapException(P.RangeError$("Line may not be negative, was " + H.S(line) + "."));
  60286. else {
  60287. t1 = this._lineStarts;
  60288. t2 = t1.length;
  60289. if (line >= t2)
  60290. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " must be less than the number of lines in the file, " + this.get$lines() + "."));
  60291. }
  60292. result = t1[line];
  60293. if (result <= this._decodedChars.length) {
  60294. t3 = line + 1;
  60295. t1 = t3 < t2 && result >= t1[t3];
  60296. } else
  60297. t1 = true;
  60298. if (t1)
  60299. throw H.wrapException(P.RangeError$("Line " + H.S(line) + " doesn't have 0 columns."));
  60300. return result;
  60301. }
  60302. };
  60303. Y.FileLocation.prototype = {
  60304. get$sourceUrl: function(_) {
  60305. return this.file.url;
  60306. },
  60307. get$line: function() {
  60308. return this.file.getLine$1(this.offset);
  60309. },
  60310. get$column: function() {
  60311. return this.file.getColumn$1(this.offset);
  60312. },
  60313. pointSpan$0: function() {
  60314. var t1 = this.offset;
  60315. return Y._FileSpan$(this.file, t1, t1);
  60316. },
  60317. get$offset: function() {
  60318. return this.offset;
  60319. }
  60320. };
  60321. Y._FileSpan.prototype = {
  60322. get$sourceUrl: function(_) {
  60323. return this.file.url;
  60324. },
  60325. get$length: function(_) {
  60326. return this._end - this._file$_start;
  60327. },
  60328. get$start: function(_) {
  60329. return Y.FileLocation$_(this.file, this._file$_start);
  60330. },
  60331. get$end: function(_) {
  60332. return Y.FileLocation$_(this.file, this._end);
  60333. },
  60334. get$text: function() {
  60335. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
  60336. },
  60337. get$context: function(_) {
  60338. var _this = this,
  60339. t1 = _this.file,
  60340. endOffset = _this._end,
  60341. endLine = t1.getLine$1(endOffset);
  60342. if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
  60343. if (endOffset - _this._file$_start === 0)
  60344. return endLine === t1._lineStarts.length - 1 ? "" : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
  60345. } else
  60346. endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
  60347. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
  60348. },
  60349. _FileSpan$3: function(file, _start, _end) {
  60350. var t3,
  60351. t1 = this._end,
  60352. t2 = this._file$_start;
  60353. if (t1 < t2)
  60354. throw H.wrapException(P.ArgumentError$("End " + t1 + " must come after start " + t2 + "."));
  60355. else {
  60356. t3 = this.file;
  60357. if (t1 > t3._decodedChars.length)
  60358. throw H.wrapException(P.RangeError$("End " + t1 + string$.x20must_ + t3.get$length(t3) + "."));
  60359. else if (t2 < 0)
  60360. throw H.wrapException(P.RangeError$("Start may not be negative, was " + t2 + "."));
  60361. }
  60362. },
  60363. compareTo$1: function(_, other) {
  60364. var result;
  60365. if (!(other instanceof Y._FileSpan))
  60366. return this.super$SourceSpanMixin$compareTo(0, other);
  60367. result = C.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
  60368. return result === 0 ? C.JSInt_methods.compareTo$1(this._end, other._end) : result;
  60369. },
  60370. $eq: function(_, other) {
  60371. var _this = this;
  60372. if (other == null)
  60373. return false;
  60374. if (!type$.legacy_FileSpan._is(other))
  60375. return _this.super$SourceSpanMixin$$eq(0, other);
  60376. return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
  60377. },
  60378. get$hashCode: function(_) {
  60379. return Y.SourceSpanMixin.prototype.get$hashCode.call(this, this);
  60380. },
  60381. expand$1: function(_, other) {
  60382. var start, _this = this,
  60383. t1 = _this.file;
  60384. if (!J.$eq$(t1.url, other.file.url))
  60385. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl(_this)) + '" and "' + H.S(other.get$sourceUrl(other)) + "\" don't match."));
  60386. start = Math.min(_this._file$_start, other._file$_start);
  60387. return Y._FileSpan$(t1, start, Math.max(_this._end, other._end));
  60388. },
  60389. $isFileSpan: 1,
  60390. $isSourceSpanWithContext: 1
  60391. };
  60392. U.Highlighter.prototype = {
  60393. highlight$0: function() {
  60394. var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, cur, t10, index, primary, _i, highlight, _this = this,
  60395. t1 = _this._lines;
  60396. _this._writeFileStart$1(C.JSArray_methods.get$first(t1).url);
  60397. t2 = new Array(_this._maxMultilineSpans);
  60398. t2.fixed$length = Array;
  60399. highlightsByColumn = H.setRuntimeTypeInfo(t2, type$.JSArray_legacy__Highlight);
  60400. for (t2 = _this._highlighter$_buffer, t3 = highlightsByColumn.length !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
  60401. line = t1[i];
  60402. if (i > 0) {
  60403. lastLine = t1[i - 1];
  60404. t5 = lastLine.url;
  60405. t6 = line.url;
  60406. if (!J.$eq$(t5, t6)) {
  60407. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  60408. t2._contents += "\n";
  60409. _this._writeFileStart$1(t6);
  60410. } else if (lastLine.number + 1 !== line.number) {
  60411. _this._writeSidebar$1$text("...");
  60412. t2._contents += "\n";
  60413. }
  60414. }
  60415. for (t5 = line.highlights, t6 = new H.ReversedListIterable(t5, H._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>")), t6 = new H.ListIterator(t6, t6.get$length(t6)), t7 = line.number, t8 = line.text, t9 = J.getInterceptor$s(t8); t6.moveNext$0();) {
  60416. cur = t6.__internal$_current;
  60417. t10 = cur.span;
  60418. if (t10.get$start(t10).get$line() != t10.get$end(t10).get$line() && t10.get$start(t10).get$line() === t7 && _this._isOnlyWhitespace$1(t9.substring$2(t8, 0, t10.get$start(t10).get$column()))) {
  60419. index = C.JSArray_methods.indexOf$1(highlightsByColumn, null);
  60420. if (index < 0)
  60421. H.throwExpression(P.ArgumentError$(H.S(highlightsByColumn) + " contains no null elements."));
  60422. highlightsByColumn[index] = cur;
  60423. }
  60424. }
  60425. _this._writeSidebar$1$line(t7);
  60426. t2._contents += " ";
  60427. _this._writeMultilineHighlights$2(line, highlightsByColumn);
  60428. if (t3)
  60429. t2._contents += " ";
  60430. primary = C.JSArray_methods.firstWhere$2$orElse(t5, new U.Highlighter_highlight_closure(), new U.Highlighter_highlight_closure0());
  60431. t6 = primary != null;
  60432. if (t6) {
  60433. t9 = primary.span;
  60434. t10 = t9.get$start(t9).get$line() === t7 ? t9.get$start(t9).get$column() : 0;
  60435. _this._writeHighlightedText$4$color(t8, t10, t9.get$end(t9).get$line() === t7 ? t9.get$end(t9).get$column() : t8.length, t4);
  60436. } else
  60437. _this._writeText$1(t8);
  60438. t2._contents += "\n";
  60439. if (t6)
  60440. _this._writeIndicator$3(line, primary, highlightsByColumn);
  60441. for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, H.throwConcurrentModificationError)(t5), ++_i) {
  60442. highlight = t5[_i];
  60443. if (highlight.isPrimary)
  60444. continue;
  60445. _this._writeIndicator$3(line, highlight, highlightsByColumn);
  60446. }
  60447. }
  60448. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  60449. t1 = t2._contents;
  60450. return t1.charCodeAt(0) == 0 ? t1 : t1;
  60451. },
  60452. _writeFileStart$1: function(url) {
  60453. var _this = this,
  60454. t1 = !_this._multipleFiles || url == null,
  60455. t2 = $._glyphs;
  60456. if (t1)
  60457. _this._writeSidebar$1$end(t2.get$downEnd());
  60458. else {
  60459. _this._writeSidebar$1$end(t2.get$topLeftCorner());
  60460. _this._colorize$2$color(new U.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
  60461. _this._highlighter$_buffer._contents += " " + H.S($.$get$context().prettyUri$1(url));
  60462. }
  60463. _this._highlighter$_buffer._contents += "\n";
  60464. },
  60465. _writeMultilineHighlights$3$current: function(line, highlightsByColumn, current) {
  60466. var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, t7, startLine, endLine, _this = this, _null = null, _box_0 = {};
  60467. _box_0.openedOnThisLine = false;
  60468. _box_0.openedOnThisLineColor = null;
  60469. t1 = current == null;
  60470. if (t1)
  60471. currentColor = _null;
  60472. else
  60473. currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
  60474. for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
  60475. highlight = highlightsByColumn[_i];
  60476. t6 = highlight == null;
  60477. t7 = t6 ? _null : highlight.span;
  60478. t7 = t7 == null ? _null : t7.get$start(t7);
  60479. startLine = t7 == null ? _null : t7.get$line();
  60480. t7 = t6 ? _null : highlight.span;
  60481. t7 = t7 == null ? _null : t7.get$end(t7);
  60482. endLine = t7 == null ? _null : t7.get$line();
  60483. if (t1 && highlight === current) {
  60484. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
  60485. foundCurrent = true;
  60486. } else if (foundCurrent)
  60487. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
  60488. else if (t6)
  60489. if (_box_0.openedOnThisLine)
  60490. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
  60491. else
  60492. t5._contents += " ";
  60493. else {
  60494. t6 = highlight.isPrimary ? t4 : t3;
  60495. _this._colorize$2$color(new U.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
  60496. }
  60497. }
  60498. },
  60499. _writeMultilineHighlights$2: function(line, highlightsByColumn) {
  60500. return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
  60501. },
  60502. _writeHighlightedText$4$color: function(text, startColumn, endColumn, color) {
  60503. var _this = this;
  60504. _this._writeText$1(J.getInterceptor$s(text).substring$2(text, 0, startColumn));
  60505. _this._colorize$2$color(new U.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
  60506. _this._writeText$1(C.JSString_methods.substring$2(text, endColumn, text.length));
  60507. },
  60508. _writeIndicator$3: function(line, highlight, highlightsByColumn) {
  60509. var t2, coversWholeLine, _this = this,
  60510. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
  60511. t1 = highlight.span;
  60512. if (t1.get$start(t1).get$line() == t1.get$end(t1).get$line()) {
  60513. _this._writeSidebar$0();
  60514. t1 = _this._highlighter$_buffer;
  60515. t1._contents += " ";
  60516. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  60517. if (highlightsByColumn.length !== 0)
  60518. t1._contents += " ";
  60519. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure(_this, line, highlight), color);
  60520. t1._contents += "\n";
  60521. } else {
  60522. t2 = line.number;
  60523. if (t1.get$start(t1).get$line() === t2) {
  60524. if (C.JSArray_methods.contains$1(highlightsByColumn, highlight))
  60525. return;
  60526. B.replaceFirstNull(highlightsByColumn, highlight);
  60527. _this._writeSidebar$0();
  60528. t1 = _this._highlighter$_buffer;
  60529. t1._contents += " ";
  60530. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  60531. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
  60532. t1._contents += "\n";
  60533. } else if (t1.get$end(t1).get$line() === t2) {
  60534. coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
  60535. if (coversWholeLine && highlight.label == null) {
  60536. B.replaceWithNull(highlightsByColumn, highlight);
  60537. return;
  60538. }
  60539. _this._writeSidebar$0();
  60540. t1 = _this._highlighter$_buffer;
  60541. t1._contents += " ";
  60542. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  60543. _this._colorize$2$color(new U.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color);
  60544. t1._contents += "\n";
  60545. B.replaceWithNull(highlightsByColumn, highlight);
  60546. }
  60547. }
  60548. },
  60549. _writeArrow$3$beginning: function(line, column, beginning) {
  60550. var t2,
  60551. t1 = beginning ? 0 : 1,
  60552. tabs = this._countTabs$1(J.substring$2$s(line.text, 0, column + t1));
  60553. t1 = this._highlighter$_buffer;
  60554. t2 = t1._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
  60555. t1._contents = t2 + "^";
  60556. },
  60557. _writeArrow$2: function(line, column) {
  60558. return this._writeArrow$3$beginning(line, column, true);
  60559. },
  60560. _writeLabel$1: function(label) {
  60561. if (label != null)
  60562. this._highlighter$_buffer._contents += " " + label;
  60563. },
  60564. _writeText$1: function(text) {
  60565. var t1, t2, cur;
  60566. text.toString;
  60567. t1 = new H.CodeUnits(text);
  60568. t1 = new H.ListIterator(t1, t1.get$length(t1));
  60569. t2 = this._highlighter$_buffer;
  60570. for (; t1.moveNext$0();) {
  60571. cur = t1.__internal$_current;
  60572. if (cur === 9)
  60573. t2._contents += C.JSString_methods.$mul(" ", 4);
  60574. else
  60575. t2._contents += H.Primitives_stringFromCharCode(cur);
  60576. }
  60577. },
  60578. _writeSidebar$3$end$line$text: function(end, line, text) {
  60579. var t1 = {};
  60580. t1.text = text;
  60581. if (line != null)
  60582. t1.text = C.JSInt_methods.toString$0(line + 1);
  60583. this._colorize$2$color(new U.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
  60584. },
  60585. _writeSidebar$1$end: function(end) {
  60586. return this._writeSidebar$3$end$line$text(end, null, null);
  60587. },
  60588. _writeSidebar$1$text: function(text) {
  60589. return this._writeSidebar$3$end$line$text(null, null, text);
  60590. },
  60591. _writeSidebar$1$line: function(line) {
  60592. return this._writeSidebar$3$end$line$text(null, line, null);
  60593. },
  60594. _writeSidebar$0: function() {
  60595. return this._writeSidebar$3$end$line$text(null, null, null);
  60596. },
  60597. _countTabs$1: function(text) {
  60598. var t1, count, cur;
  60599. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)), count = 0; t1.moveNext$0();) {
  60600. cur = t1.__internal$_current;
  60601. if (cur === 9)
  60602. ++count;
  60603. }
  60604. return count;
  60605. },
  60606. _isOnlyWhitespace$1: function(text) {
  60607. var t1, cur;
  60608. for (t1 = new H.CodeUnits(text), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  60609. cur = t1.__internal$_current;
  60610. if (cur !== 32 && cur !== 9)
  60611. return false;
  60612. }
  60613. return true;
  60614. },
  60615. _colorize$2$color: function(callback, color) {
  60616. var t1 = this._primaryColor != null;
  60617. if (t1 && color != null)
  60618. this._highlighter$_buffer._contents += color;
  60619. callback.call$0();
  60620. if (t1 && color != null)
  60621. this._highlighter$_buffer._contents += "\x1b[0m";
  60622. }
  60623. };
  60624. U.Highlighter_closure.prototype = {
  60625. call$0: function() {
  60626. var t1 = this.color,
  60627. t2 = J.getInterceptor$(t1);
  60628. if (t2.$eq(t1, true))
  60629. return "\x1b[31m";
  60630. if (t2.$eq(t1, false))
  60631. return null;
  60632. return H._asStringS(t1);
  60633. },
  60634. $signature: 17
  60635. };
  60636. U.Highlighter$__closure.prototype = {
  60637. call$1: function(line) {
  60638. var t1 = line.highlights;
  60639. t1 = new H.WhereIterable(t1, new U.Highlighter$___closure(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  60640. return t1.get$length(t1);
  60641. },
  60642. $signature: 249
  60643. };
  60644. U.Highlighter$___closure.prototype = {
  60645. call$1: function(highlight) {
  60646. var t1 = highlight.span;
  60647. return t1.get$start(t1).get$line() != t1.get$end(t1).get$line();
  60648. },
  60649. $signature: 114
  60650. };
  60651. U.Highlighter$__closure0.prototype = {
  60652. call$1: function(line) {
  60653. return line.url;
  60654. },
  60655. $signature: 251
  60656. };
  60657. U.Highlighter__collateLines_closure.prototype = {
  60658. call$1: function(highlight) {
  60659. return J.get$sourceUrl$x(highlight.get$span());
  60660. },
  60661. $signature: 43
  60662. };
  60663. U.Highlighter__collateLines_closure0.prototype = {
  60664. call$2: function(highlight1, highlight2) {
  60665. return highlight1.span.compareTo$1(0, highlight2.span);
  60666. },
  60667. $signature: 252
  60668. };
  60669. U.Highlighter__collateLines_closure1.prototype = {
  60670. call$1: function(highlightsForFile) {
  60671. var t1, t2, t3, t4, context, t5, linesBeforeSpan, url, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength,
  60672. lines = H.setRuntimeTypeInfo([], type$.JSArray_legacy__Line);
  60673. for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray_legacy__Highlight; t2.moveNext$0();) {
  60674. t4 = t2.get$current(t2).span;
  60675. context = t4.get$context(t4);
  60676. t5 = C.JSString_methods.allMatches$1("\n", C.JSString_methods.substring$2(context, 0, B.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column())));
  60677. linesBeforeSpan = t5.get$length(t5);
  60678. url = t4.get$sourceUrl(t4);
  60679. lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
  60680. for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
  60681. line = t4[_i];
  60682. if (lines.length === 0 || lineNumber > C.JSArray_methods.get$last(lines).number)
  60683. lines.push(new U._Line(line, lineNumber, url, H.setRuntimeTypeInfo([], t3)));
  60684. ++lineNumber;
  60685. }
  60686. }
  60687. activeHighlights = H.setRuntimeTypeInfo([], t3);
  60688. for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, H.throwConcurrentModificationError)(lines), ++_i) {
  60689. line = lines[_i];
  60690. if (!!activeHighlights.fixed$length)
  60691. H.throwExpression(P.UnsupportedError$("removeWhere"));
  60692. C.JSArray_methods._removeWhere$2(activeHighlights, new U.Highlighter__collateLines__closure(line), true);
  60693. oldHighlightLength = activeHighlights.length;
  60694. for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  60695. t4 = t3.get$current(t3);
  60696. t5 = t4.span;
  60697. if (t5.get$start(t5).get$line() > line.number)
  60698. break;
  60699. if (!J.$eq$(t5.get$sourceUrl(t5), line.url))
  60700. break;
  60701. activeHighlights.push(t4);
  60702. }
  60703. highlightIndex += activeHighlights.length - oldHighlightLength;
  60704. C.JSArray_methods.addAll$1(line.highlights, activeHighlights);
  60705. }
  60706. return lines;
  60707. },
  60708. $signature: 253
  60709. };
  60710. U.Highlighter__collateLines__closure.prototype = {
  60711. call$1: function(highlight) {
  60712. var t1 = highlight.span,
  60713. t2 = this.line;
  60714. return !J.$eq$(t1.get$sourceUrl(t1), t2.url) || t1.get$end(t1).get$line() < t2.number;
  60715. },
  60716. $signature: 114
  60717. };
  60718. U.Highlighter_highlight_closure.prototype = {
  60719. call$1: function(highlight) {
  60720. return highlight.isPrimary;
  60721. },
  60722. $signature: 114
  60723. };
  60724. U.Highlighter_highlight_closure0.prototype = {
  60725. call$0: function() {
  60726. return null;
  60727. },
  60728. $signature: 0
  60729. };
  60730. U.Highlighter__writeFileStart_closure.prototype = {
  60731. call$0: function() {
  60732. this.$this._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
  60733. return null;
  60734. },
  60735. $signature: 1
  60736. };
  60737. U.Highlighter__writeMultilineHighlights_closure.prototype = {
  60738. call$0: function() {
  60739. var t1 = $._glyphs;
  60740. t1 = this.startLine === this.line.number ? t1.get$topLeftCorner() : t1.get$bottomLeftCorner();
  60741. this.$this._highlighter$_buffer._contents += t1;
  60742. },
  60743. $signature: 0
  60744. };
  60745. U.Highlighter__writeMultilineHighlights_closure0.prototype = {
  60746. call$0: function() {
  60747. var t1 = $._glyphs;
  60748. t1 = this.highlight == null ? t1.get$horizontalLine() : t1.get$cross();
  60749. this.$this._highlighter$_buffer._contents += t1;
  60750. },
  60751. $signature: 0
  60752. };
  60753. U.Highlighter__writeMultilineHighlights_closure1.prototype = {
  60754. call$0: function() {
  60755. this.$this._highlighter$_buffer._contents += $._glyphs.get$horizontalLine();
  60756. return null;
  60757. },
  60758. $signature: 1
  60759. };
  60760. U.Highlighter__writeMultilineHighlights_closure2.prototype = {
  60761. call$0: function() {
  60762. var _this = this,
  60763. t1 = _this._box_0,
  60764. t2 = t1.openedOnThisLine,
  60765. t3 = $._glyphs,
  60766. vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
  60767. if (_this.current != null)
  60768. _this.$this._highlighter$_buffer._contents += vertical;
  60769. else {
  60770. t2 = _this.line;
  60771. t3 = t2.number;
  60772. if (_this.startLine === t3) {
  60773. t2 = _this.$this;
  60774. t2._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
  60775. t1.openedOnThisLine = true;
  60776. if (t1.openedOnThisLineColor == null)
  60777. t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
  60778. } else {
  60779. if (_this.endLine === t3) {
  60780. t3 = _this.highlight.span;
  60781. t2 = t3.get$end(t3).get$column() === t2.text.length;
  60782. } else
  60783. t2 = false;
  60784. t3 = _this.$this;
  60785. if (t2) {
  60786. t1 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
  60787. t3._highlighter$_buffer._contents += t1;
  60788. } else
  60789. t3._colorize$2$color(new U.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
  60790. }
  60791. }
  60792. },
  60793. $signature: 0
  60794. };
  60795. U.Highlighter__writeMultilineHighlights__closure.prototype = {
  60796. call$0: function() {
  60797. var t1 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
  60798. this.$this._highlighter$_buffer._contents += $._glyphs.glyphOrAscii$2(t1, "/");
  60799. },
  60800. $signature: 0
  60801. };
  60802. U.Highlighter__writeMultilineHighlights__closure0.prototype = {
  60803. call$0: function() {
  60804. this.$this._highlighter$_buffer._contents += this.vertical;
  60805. },
  60806. $signature: 0
  60807. };
  60808. U.Highlighter__writeHighlightedText_closure.prototype = {
  60809. call$0: function() {
  60810. var _this = this;
  60811. return _this.$this._writeText$1(C.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
  60812. },
  60813. $signature: 1
  60814. };
  60815. U.Highlighter__writeIndicator_closure.prototype = {
  60816. call$0: function() {
  60817. var tabsBefore, tabsInside,
  60818. t1 = this.$this,
  60819. t2 = this.highlight,
  60820. t3 = t2.span,
  60821. t4 = t2.isPrimary ? "^" : $._glyphs.get$horizontalLineBold(),
  60822. startColumn = t3.get$start(t3).get$column(),
  60823. endColumn = t3.get$end(t3).get$column();
  60824. t3 = this.line.text;
  60825. tabsBefore = t1._countTabs$1(J.getInterceptor$s(t3).substring$2(t3, 0, startColumn));
  60826. tabsInside = t1._countTabs$1(C.JSString_methods.substring$2(t3, startColumn, endColumn));
  60827. startColumn += tabsBefore * 3;
  60828. t3 = t1._highlighter$_buffer;
  60829. t3._contents += C.JSString_methods.$mul(" ", startColumn);
  60830. t3._contents += C.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
  60831. t1._writeLabel$1(t2.label);
  60832. },
  60833. $signature: 0
  60834. };
  60835. U.Highlighter__writeIndicator_closure0.prototype = {
  60836. call$0: function() {
  60837. var t1 = this.highlight.span;
  60838. return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
  60839. },
  60840. $signature: 1
  60841. };
  60842. U.Highlighter__writeIndicator_closure1.prototype = {
  60843. call$0: function() {
  60844. var t2, _this = this,
  60845. t1 = _this.$this;
  60846. if (_this.coversWholeLine)
  60847. t1._highlighter$_buffer._contents += C.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
  60848. else {
  60849. t2 = _this.highlight.span;
  60850. t1._writeArrow$3$beginning(_this.line, Math.max(t2.get$end(t2).get$column() - 1, 0), false);
  60851. }
  60852. t1._writeLabel$1(_this.highlight.label);
  60853. },
  60854. $signature: 0
  60855. };
  60856. U.Highlighter__writeSidebar_closure.prototype = {
  60857. call$0: function() {
  60858. var t1 = this.$this,
  60859. t2 = t1._highlighter$_buffer,
  60860. t3 = this._box_0.text;
  60861. if (t3 == null)
  60862. t3 = "";
  60863. t2._contents += C.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
  60864. t1 = this.end;
  60865. t2._contents += t1 == null ? $._glyphs.get$verticalLine() : t1;
  60866. },
  60867. $signature: 0
  60868. };
  60869. U._Highlight.prototype = {
  60870. toString$0: function(_) {
  60871. var t1 = this.isPrimary ? "primary " : "",
  60872. t2 = this.span;
  60873. t2 = t1 + (H.S(t2.get$start(t2).get$line()) + ":" + t2.get$start(t2).get$column() + "-" + H.S(t2.get$end(t2).get$line()) + ":" + t2.get$end(t2).get$column());
  60874. t1 = this.label;
  60875. t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
  60876. return t1.charCodeAt(0) == 0 ? t1 : t1;
  60877. },
  60878. get$span: function() {
  60879. return this.span;
  60880. }
  60881. };
  60882. U._Highlight_closure.prototype = {
  60883. call$0: function() {
  60884. var t2, t3, t4, t5,
  60885. t1 = this.span;
  60886. if (!(type$.legacy_SourceSpanWithContext._is(t1) && B.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
  60887. t2 = V.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl(t1));
  60888. t3 = t1.get$end(t1).get$offset();
  60889. t4 = t1.get$sourceUrl(t1);
  60890. t5 = B.countCodeUnits(t1.get$text(), 10);
  60891. t1 = X.SourceSpanWithContext$(t2, V.SourceLocation$(t3, U._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
  60892. }
  60893. return U._Highlight__normalizeEndOfLine(U._Highlight__normalizeTrailingNewline(U._Highlight__normalizeNewlines(t1)));
  60894. },
  60895. $signature: 254
  60896. };
  60897. U._Line.prototype = {
  60898. toString$0: function(_) {
  60899. return "" + this.number + ': "' + H.S(this.text) + '" (' + C.JSArray_methods.join$1(this.highlights, ", ") + ")";
  60900. }
  60901. };
  60902. V.SourceLocation.prototype = {
  60903. distance$1: function(other) {
  60904. var t1 = this.sourceUrl;
  60905. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  60906. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl(other)) + "\" don't match."));
  60907. return Math.abs(this.offset - other.get$offset());
  60908. },
  60909. compareTo$1: function(_, other) {
  60910. var t1 = this.sourceUrl;
  60911. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  60912. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t1) + '" and "' + H.S(other.get$sourceUrl(other)) + "\" don't match."));
  60913. return this.offset - other.get$offset();
  60914. },
  60915. $eq: function(_, other) {
  60916. if (other == null)
  60917. return false;
  60918. return type$.legacy_SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  60919. },
  60920. get$hashCode: function(_) {
  60921. return J.get$hashCode$(this.sourceUrl) + this.offset;
  60922. },
  60923. toString$0: function(_) {
  60924. var _this = this,
  60925. t1 = "<" + H.getRuntimeType(_this).toString$0(0) + ": " + _this.offset + " ",
  60926. source = _this.sourceUrl;
  60927. return t1 + (H.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
  60928. },
  60929. $isComparable: 1,
  60930. get$sourceUrl: function(receiver) {
  60931. return this.sourceUrl;
  60932. },
  60933. get$offset: function() {
  60934. return this.offset;
  60935. },
  60936. get$line: function() {
  60937. return this.line;
  60938. },
  60939. get$column: function() {
  60940. return this.column;
  60941. }
  60942. };
  60943. D.SourceLocationMixin.prototype = {
  60944. distance$1: function(other) {
  60945. var _this = this;
  60946. if (!J.$eq$(_this.file.url, other.get$sourceUrl(other)))
  60947. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl(_this)) + '" and "' + H.S(other.get$sourceUrl(other)) + "\" don't match."));
  60948. return Math.abs(_this.offset - other.get$offset());
  60949. },
  60950. compareTo$1: function(_, other) {
  60951. var _this = this;
  60952. if (!J.$eq$(_this.file.url, other.get$sourceUrl(other)))
  60953. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(_this.get$sourceUrl(_this)) + '" and "' + H.S(other.get$sourceUrl(other)) + "\" don't match."));
  60954. return _this.offset - other.get$offset();
  60955. },
  60956. $eq: function(_, other) {
  60957. if (other == null)
  60958. return false;
  60959. return type$.legacy_SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  60960. },
  60961. get$hashCode: function(_) {
  60962. return J.get$hashCode$(this.file.url) + this.offset;
  60963. },
  60964. toString$0: function(_) {
  60965. var t1 = this.offset,
  60966. t2 = "<" + H.getRuntimeType(this).toString$0(0) + ": " + t1 + " ",
  60967. t3 = this.file,
  60968. source = t3.url;
  60969. return t2 + (H.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t1) + 1) + ":" + (t3.getColumn$1(t1) + 1)) + ">";
  60970. },
  60971. $isComparable: 1,
  60972. $isSourceLocation: 1
  60973. };
  60974. V.SourceSpanBase.prototype = {
  60975. SourceSpanBase$3: function(start, end, text) {
  60976. var t3,
  60977. t1 = this.end,
  60978. t2 = this.start;
  60979. if (!J.$eq$(t1.get$sourceUrl(t1), t2.get$sourceUrl(t2)))
  60980. throw H.wrapException(P.ArgumentError$('Source URLs "' + H.S(t2.get$sourceUrl(t2)) + '" and "' + H.S(t1.get$sourceUrl(t1)) + "\" don't match."));
  60981. else if (t1.get$offset() < t2.get$offset())
  60982. throw H.wrapException(P.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + "."));
  60983. else {
  60984. t3 = this.text;
  60985. if (t3.length !== t2.distance$1(t1))
  60986. throw H.wrapException(P.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long."));
  60987. }
  60988. },
  60989. get$start: function(receiver) {
  60990. return this.start;
  60991. },
  60992. get$end: function(receiver) {
  60993. return this.end;
  60994. },
  60995. get$text: function() {
  60996. return this.text;
  60997. }
  60998. };
  60999. G.SourceSpanException.prototype = {
  61000. get$message: function(_) {
  61001. return this._span_exception$_message;
  61002. },
  61003. get$span: function() {
  61004. return this._span;
  61005. },
  61006. toString$1$color: function(_, color) {
  61007. var _this = this;
  61008. if (_this.get$span() == null)
  61009. return _this._span_exception$_message;
  61010. return "Error on " + _this.get$span().message$2$color(0, _this._span_exception$_message, color);
  61011. },
  61012. toString$0: function($receiver) {
  61013. return this.toString$1$color($receiver, null);
  61014. },
  61015. $isException: 1
  61016. };
  61017. G.SourceSpanFormatException.prototype = {$isFormatException: 1,
  61018. get$source: function() {
  61019. return this.source;
  61020. }
  61021. };
  61022. Y.SourceSpanMixin.prototype = {
  61023. get$sourceUrl: function(_) {
  61024. var t1 = this.get$start(this);
  61025. return t1.get$sourceUrl(t1);
  61026. },
  61027. get$length: function(_) {
  61028. var _this = this;
  61029. return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
  61030. },
  61031. compareTo$1: function(_, other) {
  61032. var _this = this,
  61033. result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
  61034. return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
  61035. },
  61036. message$2$color: function(_, message, color) {
  61037. var t2, highlight, _this = this,
  61038. t1 = "line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1);
  61039. if (_this.get$sourceUrl(_this) != null) {
  61040. t2 = _this.get$sourceUrl(_this);
  61041. t2 = t1 + (" of " + H.S($.$get$context().prettyUri$1(t2)));
  61042. t1 = t2;
  61043. }
  61044. t1 += ": " + H.S(message);
  61045. highlight = _this.highlight$1$color(color);
  61046. if (highlight.length !== 0)
  61047. t1 = t1 + "\n" + highlight;
  61048. return t1.charCodeAt(0) == 0 ? t1 : t1;
  61049. },
  61050. message$1: function($receiver, message) {
  61051. return this.message$2$color($receiver, message, null);
  61052. },
  61053. highlight$1$color: function(color) {
  61054. var _this = this;
  61055. if (!type$.legacy_SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
  61056. return "";
  61057. return U.Highlighter$(_this, color).highlight$0();
  61058. },
  61059. $eq: function(_, other) {
  61060. var _this = this;
  61061. if (other == null)
  61062. return false;
  61063. return type$.legacy_SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
  61064. },
  61065. get$hashCode: function(_) {
  61066. var t2, _this = this,
  61067. t1 = _this.get$start(_this);
  61068. t1 = t1.get$hashCode(t1);
  61069. t2 = _this.get$end(_this);
  61070. return t1 + 31 * t2.get$hashCode(t2);
  61071. },
  61072. toString$0: function(_) {
  61073. var _this = this;
  61074. return "<" + H.getRuntimeType(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
  61075. },
  61076. $isComparable: 1,
  61077. $isSourceSpan: 1
  61078. };
  61079. X.SourceSpanWithContext.prototype = {
  61080. get$context: function(_) {
  61081. return this._context;
  61082. }
  61083. };
  61084. U.Chain.prototype = {
  61085. toTrace$0: function() {
  61086. var t1 = this.traces;
  61087. return new Y.Trace(P.List_List$unmodifiable(new H.ExpandIterable(t1, new U.Chain_toTrace_closure(), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame*>")), type$.legacy_Frame), new P._StringStackTrace(null));
  61088. },
  61089. toString$0: function(_) {
  61090. var t1 = this.traces,
  61091. t2 = H._arrayInstanceType(t1);
  61092. return new H.MappedListIterable(t1, new U.Chain_toString_closure(new H.MappedListIterable(t1, new U.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int))), t2._eval$1("MappedListIterable<1,String*>")).join$1(0, string$.x3d_____);
  61093. },
  61094. $isStackTrace: 1
  61095. };
  61096. U.Chain_Chain$parse_closure.prototype = {
  61097. call$1: function(line) {
  61098. return line.length !== 0;
  61099. },
  61100. $signature: 5
  61101. };
  61102. U.Chain_Chain$parse_closure0.prototype = {
  61103. call$1: function(trace) {
  61104. return new Y.Trace(P.List_List$unmodifiable(Y.Trace__parseVM(trace), type$.legacy_Frame), new P._StringStackTrace(trace));
  61105. },
  61106. $signature: 185
  61107. };
  61108. U.Chain_Chain$parse_closure1.prototype = {
  61109. call$1: function(trace) {
  61110. return Y.Trace$parseFriendly(trace);
  61111. },
  61112. $signature: 185
  61113. };
  61114. U.Chain_toTrace_closure.prototype = {
  61115. call$1: function(trace) {
  61116. return trace.get$frames();
  61117. },
  61118. $signature: 257
  61119. };
  61120. U.Chain_toString_closure0.prototype = {
  61121. call$1: function(trace) {
  61122. var t1 = trace.get$frames();
  61123. return new H.MappedListIterable(t1, new U.Chain_toString__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int));
  61124. },
  61125. $signature: 258
  61126. };
  61127. U.Chain_toString__closure0.prototype = {
  61128. call$1: function(frame) {
  61129. return frame.get$location().length;
  61130. },
  61131. $signature: 184
  61132. };
  61133. U.Chain_toString_closure.prototype = {
  61134. call$1: function(trace) {
  61135. var t1 = trace.get$frames();
  61136. return new H.MappedListIterable(t1, new U.Chain_toString__closure(this.longest), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  61137. },
  61138. $signature: 260
  61139. };
  61140. U.Chain_toString__closure.prototype = {
  61141. call$1: function(frame) {
  61142. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  61143. },
  61144. $signature: 183
  61145. };
  61146. A.Frame.prototype = {
  61147. get$isCore: function() {
  61148. return this.uri.get$scheme() === "dart";
  61149. },
  61150. get$library: function() {
  61151. var t1 = this.uri;
  61152. if (t1.get$scheme() === "data")
  61153. return "data:...";
  61154. return $.$get$context().prettyUri$1(t1);
  61155. },
  61156. get$$package: function() {
  61157. var t1 = this.uri;
  61158. if (t1.get$scheme() !== "package")
  61159. return null;
  61160. return C.JSArray_methods.get$first(t1.get$path(t1).split("/"));
  61161. },
  61162. get$location: function() {
  61163. var t2, _this = this,
  61164. t1 = _this.line;
  61165. if (t1 == null)
  61166. return _this.get$library();
  61167. t2 = _this.column;
  61168. if (t2 == null)
  61169. return H.S(_this.get$library()) + " " + H.S(t1);
  61170. return H.S(_this.get$library()) + " " + H.S(t1) + ":" + H.S(t2);
  61171. },
  61172. toString$0: function(_) {
  61173. return H.S(this.get$location()) + " in " + H.S(this.member);
  61174. },
  61175. get$uri: function() {
  61176. return this.uri;
  61177. },
  61178. get$line: function() {
  61179. return this.line;
  61180. },
  61181. get$column: function() {
  61182. return this.column;
  61183. },
  61184. get$member: function() {
  61185. return this.member;
  61186. }
  61187. };
  61188. A.Frame_Frame$parseVM_closure.prototype = {
  61189. call$0: function() {
  61190. var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
  61191. t1 = this.frame;
  61192. if (t1 === "...")
  61193. return new A.Frame(P._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
  61194. match = $.$get$_vmFrame().firstMatch$1(t1);
  61195. if (match == null)
  61196. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  61197. t1 = match._match;
  61198. t2 = t1[1];
  61199. t3 = $.$get$_asyncBody();
  61200. t2.toString;
  61201. t2 = H.stringReplaceAllUnchecked(t2, t3, "<async>");
  61202. member = H.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
  61203. t2 = t1[2];
  61204. uri = J.startsWith$1$s(t2, "<data:") ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
  61205. lineAndColumn = t1[3].split(":");
  61206. t1 = lineAndColumn.length;
  61207. line = t1 > 1 ? P.int_parse(lineAndColumn[1], _null) : _null;
  61208. return new A.Frame(uri, line, t1 > 2 ? P.int_parse(lineAndColumn[2], _null) : _null, member);
  61209. },
  61210. $signature: 60
  61211. };
  61212. A.Frame_Frame$parseV8_closure.prototype = {
  61213. call$0: function() {
  61214. var t2, t3, _s4_ = "<fn>",
  61215. t1 = this.frame,
  61216. match = $.$get$_v8Frame().firstMatch$1(t1);
  61217. if (match == null)
  61218. return new N.UnparsedFrame(P._Uri__Uri(null, "unparsed", null, null), t1);
  61219. t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
  61220. t2 = match._match;
  61221. t3 = t2[2];
  61222. if (t3 != null) {
  61223. t2 = t2[1];
  61224. t2.toString;
  61225. t2 = H.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
  61226. t2 = H.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
  61227. return t1.call$2(t3, H.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
  61228. } else
  61229. return t1.call$2(t2[3], _s4_);
  61230. },
  61231. $signature: 60
  61232. };
  61233. A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
  61234. call$2: function($location, member) {
  61235. var urlMatch, uri, line, _null = null,
  61236. t1 = $.$get$_v8EvalLocation(),
  61237. evalMatch = t1.firstMatch$1($location);
  61238. for (; evalMatch != null;) {
  61239. $location = evalMatch._match[1];
  61240. evalMatch = t1.firstMatch$1($location);
  61241. }
  61242. if ($location === "native")
  61243. return new A.Frame(P.Uri_parse("native"), _null, _null, member);
  61244. urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
  61245. if (urlMatch == null)
  61246. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
  61247. t1 = urlMatch._match;
  61248. uri = A.Frame__uriOrPathToUri(t1[1]);
  61249. line = P.int_parse(t1[2], _null);
  61250. t1 = t1[3];
  61251. return new A.Frame(uri, line, t1 != null ? P.int_parse(t1, _null) : _null, member);
  61252. },
  61253. $signature: 263
  61254. };
  61255. A.Frame_Frame$_parseFirefoxEval_closure.prototype = {
  61256. call$0: function() {
  61257. var t2, member, uri, line, _null = null,
  61258. t1 = this.frame,
  61259. match = $.$get$_firefoxEvalLocation().firstMatch$1(t1);
  61260. if (match == null)
  61261. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  61262. t1 = match._match;
  61263. t2 = t1[1];
  61264. t2.toString;
  61265. member = H.stringReplaceAllUnchecked(t2, "/<", "");
  61266. uri = A.Frame__uriOrPathToUri(t1[2]);
  61267. line = P.int_parse(t1[3], _null);
  61268. return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "<fn>" : member);
  61269. },
  61270. $signature: 60
  61271. };
  61272. A.Frame_Frame$parseFirefox_closure.prototype = {
  61273. call$0: function() {
  61274. var t2, t3, uri, member, line, _null = null,
  61275. t1 = this.frame,
  61276. match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
  61277. if (match == null)
  61278. return new N.UnparsedFrame(P._Uri__Uri(_null, "unparsed", _null, _null), t1);
  61279. t2 = match._match;
  61280. t3 = t2[3];
  61281. if (J.contains$1$asx(t3, " line "))
  61282. return A.Frame_Frame$_parseFirefoxEval(t1);
  61283. uri = A.Frame__uriOrPathToUri(t3);
  61284. t1 = t2[1];
  61285. if (t1 != null) {
  61286. t3 = C.JSString_methods.allMatches$1("/", t2[2]);
  61287. member = J.$add$ansx(t1, C.JSArray_methods.join$0(P.List_List$filled(t3.get$length(t3), ".<fn>", false, type$.legacy_String)));
  61288. if (member === "")
  61289. member = "<fn>";
  61290. member = C.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
  61291. } else
  61292. member = "<fn>";
  61293. t1 = t2[4];
  61294. line = t1 === "" ? _null : P.int_parse(t1, _null);
  61295. t1 = t2[5];
  61296. return new A.Frame(uri, line, t1 == null || t1 === "" ? _null : P.int_parse(t1, _null), member);
  61297. },
  61298. $signature: 60
  61299. };
  61300. A.Frame_Frame$parseFriendly_closure.prototype = {
  61301. call$0: function() {
  61302. var t2, uri, line, column, _null = null,
  61303. t1 = this.frame,
  61304. match = $.$get$_friendlyFrame().firstMatch$1(t1);
  61305. if (match == null)
  61306. throw H.wrapException(P.FormatException$("Couldn't parse package:stack_trace stack trace line '" + H.S(t1) + "'.", _null, _null));
  61307. t1 = match._match;
  61308. t2 = t1[1];
  61309. uri = t2 === "data:..." ? P.Uri_Uri$dataFromString("", _null, _null) : P.Uri_parse(t2);
  61310. if (uri.get$scheme() === "") {
  61311. t2 = $.$get$context();
  61312. uri = t2.toUri$1(D.absolute(t2.style.pathFromUri$1(M._parseUri(uri))));
  61313. }
  61314. t2 = t1[2];
  61315. line = t2 == null ? _null : P.int_parse(t2, _null);
  61316. t2 = t1[3];
  61317. column = t2 == null ? _null : P.int_parse(t2, _null);
  61318. return new A.Frame(uri, line, column, t1[4]);
  61319. },
  61320. $signature: 60
  61321. };
  61322. T.LazyTrace.prototype = {
  61323. get$_lazy_trace$_trace: function() {
  61324. var t1 = this._lazy_trace$_inner;
  61325. return t1 == null ? this._lazy_trace$_inner = this._thunk.call$0() : t1;
  61326. },
  61327. get$frames: function() {
  61328. return this.get$_lazy_trace$_trace().get$frames();
  61329. },
  61330. get$terse: function() {
  61331. return new T.LazyTrace(new T.LazyTrace_terse_closure(this));
  61332. },
  61333. toString$0: function(_) {
  61334. return J.toString$0$(this.get$_lazy_trace$_trace());
  61335. },
  61336. $isStackTrace: 1,
  61337. $isTrace: 1
  61338. };
  61339. T.LazyTrace_terse_closure.prototype = {
  61340. call$0: function() {
  61341. return this.$this.get$_lazy_trace$_trace().get$terse();
  61342. },
  61343. $signature: 180
  61344. };
  61345. Y.Trace.prototype = {
  61346. get$terse: function() {
  61347. return this.foldFrames$2$terse(new Y.Trace_terse_closure(), true);
  61348. },
  61349. foldFrames$2$terse: function(predicate, terse) {
  61350. var newFrames, t1, cur, _box_0 = {};
  61351. _box_0.predicate = predicate;
  61352. _box_0.predicate = new Y.Trace_foldFrames_closure(predicate);
  61353. newFrames = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  61354. for (t1 = this.frames, t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  61355. cur = t1.__internal$_current;
  61356. if (cur instanceof N.UnparsedFrame || !_box_0.predicate.call$1(cur))
  61357. newFrames.push(cur);
  61358. else if (newFrames.length === 0 || !_box_0.predicate.call$1(C.JSArray_methods.get$last(newFrames)))
  61359. newFrames.push(new A.Frame(cur.get$uri(), cur.get$line(), cur.get$column(), cur.get$member()));
  61360. }
  61361. t1 = type$.MappedListIterable_of_legacy_Frame_and_legacy_Frame;
  61362. newFrames = P.List_List$from(new H.MappedListIterable(newFrames, new Y.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E"));
  61363. if (newFrames.length > 1 && _box_0.predicate.call$1(C.JSArray_methods.get$first(newFrames)))
  61364. C.JSArray_methods.removeAt$1(newFrames, 0);
  61365. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(newFrames, H._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), type$.legacy_Frame), new P._StringStackTrace(this.original._stackTrace));
  61366. },
  61367. toString$0: function(_) {
  61368. var t1 = this.frames,
  61369. t2 = H._arrayInstanceType(t1);
  61370. return new H.MappedListIterable(t1, new Y.Trace_toString_closure(new H.MappedListIterable(t1, new Y.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int*>")).fold$2(0, 0, H.instantiate1(P.math__max$closure(), type$.legacy_int))), t2._eval$1("MappedListIterable<1,String*>")).join$0(0);
  61371. },
  61372. $isStackTrace: 1,
  61373. get$frames: function() {
  61374. return this.frames;
  61375. }
  61376. };
  61377. Y.Trace_Trace$from_closure.prototype = {
  61378. call$0: function() {
  61379. return Y.Trace_Trace$parse(this.trace.toString$0(0));
  61380. },
  61381. $signature: 180
  61382. };
  61383. Y.Trace__parseVM_closure.prototype = {
  61384. call$1: function(line) {
  61385. return line.length !== 0;
  61386. },
  61387. $signature: 5
  61388. };
  61389. Y.Trace__parseVM_closure0.prototype = {
  61390. call$1: function(line) {
  61391. return A.Frame_Frame$parseVM(line);
  61392. },
  61393. $signature: 54
  61394. };
  61395. Y.Trace$parseV8_closure.prototype = {
  61396. call$1: function(line) {
  61397. return !J.startsWith$1$s(line, $.$get$_v8TraceLine());
  61398. },
  61399. $signature: 5
  61400. };
  61401. Y.Trace$parseV8_closure0.prototype = {
  61402. call$1: function(line) {
  61403. return A.Frame_Frame$parseV8(line);
  61404. },
  61405. $signature: 54
  61406. };
  61407. Y.Trace$parseJSCore_closure.prototype = {
  61408. call$1: function(line) {
  61409. return line !== "\tat ";
  61410. },
  61411. $signature: 5
  61412. };
  61413. Y.Trace$parseJSCore_closure0.prototype = {
  61414. call$1: function(line) {
  61415. return A.Frame_Frame$parseV8(line);
  61416. },
  61417. $signature: 54
  61418. };
  61419. Y.Trace$parseFirefox_closure.prototype = {
  61420. call$1: function(line) {
  61421. return line.length !== 0 && line !== "[native code]";
  61422. },
  61423. $signature: 5
  61424. };
  61425. Y.Trace$parseFirefox_closure0.prototype = {
  61426. call$1: function(line) {
  61427. return A.Frame_Frame$parseFirefox(line);
  61428. },
  61429. $signature: 54
  61430. };
  61431. Y.Trace$parseFriendly_closure.prototype = {
  61432. call$1: function(line) {
  61433. return !J.startsWith$1$s(line, "=====");
  61434. },
  61435. $signature: 5
  61436. };
  61437. Y.Trace$parseFriendly_closure0.prototype = {
  61438. call$1: function(line) {
  61439. return A.Frame_Frame$parseFriendly(line);
  61440. },
  61441. $signature: 54
  61442. };
  61443. Y.Trace_terse_closure.prototype = {
  61444. call$1: function(_) {
  61445. return false;
  61446. },
  61447. $signature: 179
  61448. };
  61449. Y.Trace_foldFrames_closure.prototype = {
  61450. call$1: function(frame) {
  61451. if (this.oldPredicate.call$1(frame))
  61452. return true;
  61453. if (frame.get$isCore())
  61454. return true;
  61455. if (frame.get$$package() === "stack_trace")
  61456. return true;
  61457. if (!J.contains$1$asx(frame.get$member(), "<async>"))
  61458. return false;
  61459. return frame.get$line() == null;
  61460. },
  61461. $signature: 179
  61462. };
  61463. Y.Trace_foldFrames_closure0.prototype = {
  61464. call$1: function(frame) {
  61465. var t1, t2;
  61466. if (frame instanceof N.UnparsedFrame || !this._box_0.predicate.call$1(frame))
  61467. return frame;
  61468. t1 = frame.get$library();
  61469. t2 = $.$get$_terseRegExp();
  61470. t1.toString;
  61471. return new A.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
  61472. },
  61473. $signature: 267
  61474. };
  61475. Y.Trace_toString_closure0.prototype = {
  61476. call$1: function(frame) {
  61477. return frame.get$location().length;
  61478. },
  61479. $signature: 184
  61480. };
  61481. Y.Trace_toString_closure.prototype = {
  61482. call$1: function(frame) {
  61483. if (frame instanceof N.UnparsedFrame)
  61484. return frame.toString$0(0) + "\n";
  61485. return J.padRight$1$s(frame.get$location(), this.longest) + " " + H.S(frame.get$member()) + "\n";
  61486. },
  61487. $signature: 183
  61488. };
  61489. N.UnparsedFrame.prototype = {
  61490. toString$0: function(_) {
  61491. return this.member;
  61492. },
  61493. $isFrame: 1,
  61494. get$uri: function() {
  61495. return this.uri;
  61496. },
  61497. get$line: function() {
  61498. return null;
  61499. },
  61500. get$column: function() {
  61501. return null;
  61502. },
  61503. get$isCore: function() {
  61504. return false;
  61505. },
  61506. get$library: function() {
  61507. return "unparsed";
  61508. },
  61509. get$$package: function() {
  61510. return null;
  61511. },
  61512. get$location: function() {
  61513. return "unparsed";
  61514. },
  61515. get$member: function() {
  61516. return this.member;
  61517. }
  61518. };
  61519. L._StreamTransformer.prototype = {
  61520. bind$1: function(values) {
  61521. var controller, _null = null, t1 = {},
  61522. t2 = this.$ti;
  61523. if (values.get$isBroadcast())
  61524. controller = new P._SyncBroadcastStreamController(_null, _null, t2._eval$1("_SyncBroadcastStreamController<2*>"));
  61525. else
  61526. controller = P.StreamController_StreamController(_null, _null, _null, _null, true, t2._eval$1("2*"));
  61527. t1.subscription = null;
  61528. controller.set$onListen(new L._StreamTransformer_bind_closure(t1, this, values, controller));
  61529. return controller.get$stream();
  61530. }
  61531. };
  61532. L._StreamTransformer_bind_closure.prototype = {
  61533. call$0: function() {
  61534. var t2, t3, t4, t5, _this = this, t1 = {};
  61535. t1.valuesDone = false;
  61536. t2 = _this.values;
  61537. t3 = _this.$this;
  61538. t4 = _this.controller;
  61539. t5 = _this._box_1;
  61540. t5.subscription = t2.listen$3$onDone$onError(0, new L._StreamTransformer_bind__closure(t3, t4), new L._StreamTransformer_bind__closure0(t1, t3, t4), new L._StreamTransformer_bind__closure1(t3, t4));
  61541. if (!t2.get$isBroadcast()) {
  61542. t2 = t5.subscription;
  61543. t4.set$onPause(t2.get$pause(t2));
  61544. t2 = t5.subscription;
  61545. t4.set$onResume(t2.get$resume(t2));
  61546. }
  61547. t4.set$onCancel(new L._StreamTransformer_bind__closure2(t5, t1));
  61548. },
  61549. $signature: 0
  61550. };
  61551. L._StreamTransformer_bind__closure.prototype = {
  61552. call$1: function(value) {
  61553. return this.$this._from_handlers$_handleData.call$2(value, this.controller);
  61554. },
  61555. $signature: function() {
  61556. return this.$this.$ti._eval$1("~(1*)");
  61557. }
  61558. };
  61559. L._StreamTransformer_bind__closure1.prototype = {
  61560. call$2: function(error, stackTrace) {
  61561. this.$this._from_handlers$_handleError.call$3(error, stackTrace, this.controller);
  61562. },
  61563. "call*": "call$2",
  61564. $requiredArgCount: 2,
  61565. $signature: 133
  61566. };
  61567. L._StreamTransformer_bind__closure0.prototype = {
  61568. call$0: function() {
  61569. this._box_0.valuesDone = true;
  61570. this.$this._from_handlers$_handleDone.call$1(this.controller);
  61571. },
  61572. "call*": "call$0",
  61573. $requiredArgCount: 0,
  61574. $signature: 0
  61575. };
  61576. L._StreamTransformer_bind__closure2.prototype = {
  61577. call$0: function() {
  61578. var t1 = this._box_1,
  61579. toCancel = t1.subscription;
  61580. t1.subscription = null;
  61581. if (!this._box_0.valuesDone)
  61582. return toCancel.cancel$0();
  61583. return null;
  61584. },
  61585. "call*": "call$0",
  61586. $requiredArgCount: 0,
  61587. $signature: 268
  61588. };
  61589. R._debounceAggregate_closure.prototype = {
  61590. call$2: function(value, sink) {
  61591. var soFar, _this = this,
  61592. t1 = _this._box_0,
  61593. t2 = t1.timer;
  61594. if (t2 != null)
  61595. t2.cancel$0();
  61596. soFar = _this.collect.call$2(value, t1.soFar);
  61597. t1.soFar = soFar;
  61598. if (t1.timer == null && _this.leading) {
  61599. t1.emittedLatestAsLeading = true;
  61600. sink.add$1(0, soFar);
  61601. } else
  61602. t1.emittedLatestAsLeading = false;
  61603. t1.timer = P.Timer_Timer(_this.duration, new R._debounceAggregate__closure(t1, _this.trailing, sink));
  61604. },
  61605. "call*": "call$2",
  61606. $requiredArgCount: 2,
  61607. $signature: function() {
  61608. return this.T._eval$1("@<0>")._bind$1(this.R)._eval$1("Null(1*,EventSink<2*>*)");
  61609. }
  61610. };
  61611. R._debounceAggregate__closure.prototype = {
  61612. call$0: function() {
  61613. var t1 = this._box_0,
  61614. t2 = t1.emittedLatestAsLeading;
  61615. if (!t2)
  61616. this.sink.add$1(0, t1.soFar);
  61617. if (t1.shouldClose)
  61618. this.sink.close$0(0);
  61619. t1.timer = t1.soFar = null;
  61620. },
  61621. "call*": "call$0",
  61622. $requiredArgCount: 0,
  61623. $signature: 0
  61624. };
  61625. R._debounceAggregate_closure0.prototype = {
  61626. call$1: function(sink) {
  61627. var t1 = this._box_0;
  61628. if (t1.soFar != null && this.trailing)
  61629. t1.shouldClose = true;
  61630. else {
  61631. t1 = t1.timer;
  61632. if (t1 != null)
  61633. t1.cancel$0();
  61634. sink.close$0(0);
  61635. }
  61636. },
  61637. $signature: function() {
  61638. return this.R._eval$1("Null(EventSink<0*>*)");
  61639. }
  61640. };
  61641. E.StringScannerException.prototype = {
  61642. get$source: function() {
  61643. return H._asStringS(this.source);
  61644. }
  61645. };
  61646. Z.LineScanner.prototype = {
  61647. get$_betweenCRLF: function() {
  61648. return this.peekChar$1(-1) === 13 && this.peekChar$0() === 10;
  61649. },
  61650. scanChar$1: function(character) {
  61651. if (!this.super$StringScanner$scanChar(character))
  61652. return false;
  61653. this._adjustLineAndColumn$1(character);
  61654. return true;
  61655. },
  61656. _adjustLineAndColumn$1: function(character) {
  61657. var t1, _this = this;
  61658. if (character !== 10)
  61659. t1 = character === 13 && _this.peekChar$0() !== 10;
  61660. else
  61661. t1 = true;
  61662. if (t1) {
  61663. ++_this._line_scanner$_line;
  61664. _this._line_scanner$_column = 0;
  61665. } else
  61666. ++_this._line_scanner$_column;
  61667. },
  61668. scan$1: function(pattern) {
  61669. var newlines, t1, t2, _this = this;
  61670. if (!_this.super$StringScanner$scan(pattern))
  61671. return false;
  61672. newlines = _this._newlinesIn$1(_this.get$lastMatch().group$1(0, 0));
  61673. t1 = _this._line_scanner$_line;
  61674. t2 = newlines.length;
  61675. _this._line_scanner$_line = t1 + t2;
  61676. if (t2 === 0)
  61677. _this._line_scanner$_column = _this._line_scanner$_column + _this.get$lastMatch().group$1(0, 0).length;
  61678. else
  61679. _this._line_scanner$_column = _this.get$lastMatch().group$1(0, 0).length - J.get$end$x(C.JSArray_methods.get$last(newlines));
  61680. return true;
  61681. },
  61682. _newlinesIn$1: function(text) {
  61683. var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
  61684. newlines = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  61685. if (this.get$_betweenCRLF())
  61686. C.JSArray_methods.removeLast$0(newlines);
  61687. return newlines;
  61688. }
  61689. };
  61690. S.SpanScanner.prototype = {
  61691. set$state: function(state) {
  61692. if (!(state instanceof S._SpanScannerState) || state._scanner !== this)
  61693. throw H.wrapException(P.ArgumentError$(string$.The_gi));
  61694. this.set$position(state.position);
  61695. },
  61696. spanFrom$2: function(startState, endState) {
  61697. var endPosition = endState == null ? this._string_scanner$_position : endState.position;
  61698. return this._sourceFile.span$2(startState.position, endPosition);
  61699. },
  61700. spanFrom$1: function(startState) {
  61701. return this.spanFrom$2(startState, null);
  61702. },
  61703. matches$1: function(pattern) {
  61704. var t1, t2, _this = this;
  61705. if (!_this.super$StringScanner$matches(pattern))
  61706. return false;
  61707. t1 = _this._string_scanner$_position;
  61708. t2 = _this.get$lastMatch();
  61709. _this._sourceFile.span$2(t1, t2.start + t2.pattern.length);
  61710. return true;
  61711. },
  61712. error$3$length$position: function(_, message, $length, position) {
  61713. var t2, match, _this = this,
  61714. t1 = _this.string;
  61715. B.validateErrorArgs(t1, null, position, $length);
  61716. t2 = position == null && $length == null;
  61717. match = t2 ? _this.get$lastMatch() : null;
  61718. if (position == null)
  61719. position = match == null ? _this._string_scanner$_position : match.start;
  61720. if ($length == null)
  61721. if (match == null)
  61722. $length = 0;
  61723. else {
  61724. t2 = match.start;
  61725. $length = t2 + match.pattern.length - t2;
  61726. }
  61727. throw H.wrapException(E.StringScannerException$(message, _this._sourceFile.span$2(position, position + $length), t1));
  61728. },
  61729. error$1: function($receiver, message) {
  61730. return this.error$3$length$position($receiver, message, null, null);
  61731. },
  61732. error$2$position: function($receiver, message, position) {
  61733. return this.error$3$length$position($receiver, message, null, position);
  61734. },
  61735. error$2$length: function($receiver, message, $length) {
  61736. return this.error$3$length$position($receiver, message, $length, null);
  61737. }
  61738. };
  61739. S._SpanScannerState.prototype = {};
  61740. X.StringScanner.prototype = {
  61741. set$position: function(position) {
  61742. if (position < 0 || position > this.string.length)
  61743. throw H.wrapException(P.ArgumentError$("Invalid position " + position));
  61744. this._string_scanner$_position = position;
  61745. this._lastMatch = null;
  61746. },
  61747. get$lastMatch: function() {
  61748. var _this = this;
  61749. if (_this._string_scanner$_position !== _this._lastMatchPosition)
  61750. _this._lastMatch = null;
  61751. return _this._lastMatch;
  61752. },
  61753. readChar$0: function() {
  61754. var _this = this,
  61755. t1 = _this._string_scanner$_position,
  61756. t2 = _this.string;
  61757. if (t1 === t2.length)
  61758. _this.error$3$length$position(0, "expected more input.", 0, t1);
  61759. return J.codeUnitAt$1$s(t2, _this._string_scanner$_position++);
  61760. },
  61761. peekChar$1: function(offset) {
  61762. var index;
  61763. if (offset == null)
  61764. offset = 0;
  61765. index = this._string_scanner$_position + offset;
  61766. if (index < 0 || index >= this.string.length)
  61767. return null;
  61768. return J.codeUnitAt$1$s(this.string, index);
  61769. },
  61770. peekChar$0: function() {
  61771. return this.peekChar$1(null);
  61772. },
  61773. scanChar$1: function(character) {
  61774. var t1 = this._string_scanner$_position,
  61775. t2 = this.string;
  61776. if (t1 === t2.length)
  61777. return false;
  61778. if (J.codeUnitAt$1$s(t2, t1) !== character)
  61779. return false;
  61780. this._string_scanner$_position = t1 + 1;
  61781. return true;
  61782. },
  61783. expectChar$2$name: function(character, $name) {
  61784. if (this.scanChar$1(character))
  61785. return;
  61786. if ($name == null)
  61787. if (character === 92)
  61788. $name = '"\\"';
  61789. else
  61790. $name = character === 34 ? '"\\""' : '"' + H.Primitives_stringFromCharCode(character) + '"';
  61791. this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
  61792. },
  61793. expectChar$1: function(character) {
  61794. return this.expectChar$2$name(character, null);
  61795. },
  61796. scan$1: function(pattern) {
  61797. var t1, _this = this,
  61798. success = _this.matches$1(pattern);
  61799. if (success) {
  61800. t1 = _this._lastMatch;
  61801. _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
  61802. }
  61803. return success;
  61804. },
  61805. expect$1: function(pattern) {
  61806. var t1, $name;
  61807. if (this.scan$1(pattern))
  61808. return;
  61809. t1 = H.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
  61810. $name = '"' + H.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
  61811. this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
  61812. },
  61813. expectDone$0: function() {
  61814. var t1 = this._string_scanner$_position;
  61815. if (t1 === this.string.length)
  61816. return;
  61817. this.error$3$length$position(0, "expected no more input.", 0, t1);
  61818. },
  61819. matches$1: function(pattern) {
  61820. var _this = this,
  61821. t1 = C.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
  61822. _this._lastMatch = t1;
  61823. _this._lastMatchPosition = _this._string_scanner$_position;
  61824. return t1 != null;
  61825. },
  61826. substring$1: function(_, start) {
  61827. var end = this._string_scanner$_position;
  61828. return J.substring$2$s(this.string, start, end);
  61829. },
  61830. error$3$length$position: function(_, message, $length, position) {
  61831. var t1 = this.string;
  61832. B.validateErrorArgs(t1, null, position, $length);
  61833. throw H.wrapException(E.StringScannerException$(message, Y.SourceFile$fromString(t1, this.sourceUrl).span$2(position, position + $length), t1));
  61834. }
  61835. };
  61836. A.AsciiGlyphSet.prototype = {
  61837. glyphOrAscii$2: function(glyph, alternative) {
  61838. return alternative;
  61839. },
  61840. get$horizontalLine: function() {
  61841. return "-";
  61842. },
  61843. get$verticalLine: function() {
  61844. return "|";
  61845. },
  61846. get$topLeftCorner: function() {
  61847. return ",";
  61848. },
  61849. get$bottomLeftCorner: function() {
  61850. return "'";
  61851. },
  61852. get$cross: function() {
  61853. return "+";
  61854. },
  61855. get$upEnd: function() {
  61856. return "'";
  61857. },
  61858. get$downEnd: function() {
  61859. return ",";
  61860. },
  61861. get$horizontalLineBold: function() {
  61862. return "=";
  61863. }
  61864. };
  61865. K.UnicodeGlyphSet.prototype = {
  61866. glyphOrAscii$2: function(glyph, alternative) {
  61867. return glyph;
  61868. },
  61869. get$horizontalLine: function() {
  61870. return "\u2500";
  61871. },
  61872. get$verticalLine: function() {
  61873. return "\u2502";
  61874. },
  61875. get$topLeftCorner: function() {
  61876. return "\u250c";
  61877. },
  61878. get$bottomLeftCorner: function() {
  61879. return "\u2514";
  61880. },
  61881. get$cross: function() {
  61882. return "\u253c";
  61883. },
  61884. get$upEnd: function() {
  61885. return "\u2575";
  61886. },
  61887. get$downEnd: function() {
  61888. return "\u2577";
  61889. },
  61890. get$horizontalLineBold: function() {
  61891. return "\u2501";
  61892. }
  61893. };
  61894. S.Tuple2.prototype = {
  61895. toString$0: function(_) {
  61896. return "[" + H.S(this.item1) + ", " + H.S(this.item2) + "]";
  61897. },
  61898. $eq: function(_, other) {
  61899. if (other == null)
  61900. return false;
  61901. return other instanceof S.Tuple2 && J.$eq$(other.item1, this.item1) && J.$eq$(other.item2, this.item2);
  61902. },
  61903. get$hashCode: function(_) {
  61904. var t1 = J.get$hashCode$(this.item1),
  61905. t2 = J.get$hashCode$(this.item2);
  61906. return A._finish(A._combine(A._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)));
  61907. }
  61908. };
  61909. S.Tuple3.prototype = {
  61910. toString$0: function(_) {
  61911. return "[" + H.S(this.item1) + ", " + this.item2.toString$0(0) + ", " + H.S(this.item3) + "]";
  61912. },
  61913. $eq: function(_, other) {
  61914. if (other == null)
  61915. return false;
  61916. return other instanceof S.Tuple3 && other.item1 == this.item1 && other.item2.$eq(0, this.item2) && J.$eq$(other.item3, this.item3);
  61917. },
  61918. get$hashCode: function(_) {
  61919. var t3,
  61920. t1 = J.get$hashCode$(this.item1),
  61921. t2 = this.item2;
  61922. t2 = t2.get$hashCode(t2);
  61923. t3 = J.get$hashCode$(this.item3);
  61924. return A._finish(A._combine(A._combine(A._combine(0, C.JSInt_methods.get$hashCode(t1)), C.JSInt_methods.get$hashCode(t2)), C.JSInt_methods.get$hashCode(t3)));
  61925. }
  61926. };
  61927. E.WatchEvent.prototype = {
  61928. toString$0: function(_) {
  61929. return H.S(this.type) + " " + H.S(this.path);
  61930. },
  61931. get$path: function(receiver) {
  61932. return this.path;
  61933. }
  61934. };
  61935. E.ChangeType.prototype = {
  61936. toString$0: function(_) {
  61937. return this._watch_event$_name;
  61938. }
  61939. };
  61940. Y.SupportsAnything0.prototype = {
  61941. toString$0: function(_) {
  61942. return "(" + this.contents.toString$0(0) + ")";
  61943. },
  61944. $isAstNode0: 1,
  61945. get$span: function() {
  61946. return this.span;
  61947. }
  61948. };
  61949. Z.Argument0.prototype = {
  61950. toString$0: function(_) {
  61951. var t1 = this.defaultValue,
  61952. t2 = this.name;
  61953. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  61954. },
  61955. $isAstNode0: 1,
  61956. get$span: function() {
  61957. return this.span;
  61958. }
  61959. };
  61960. B.ArgumentDeclaration0.prototype = {
  61961. get$spanWithName: function() {
  61962. var t3, t4,
  61963. t1 = this.span,
  61964. t2 = t1.file,
  61965. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  61966. i = Y.FileLocation$_(t2, t1._file$_start).offset - 1;
  61967. while (true) {
  61968. if (i > 0) {
  61969. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  61970. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  61971. } else
  61972. t3 = false;
  61973. if (!t3)
  61974. break;
  61975. --i;
  61976. }
  61977. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  61978. if (!(t3 === 95 || T.isAlphabetic1(t3) || t3 >= 128 || T.isDigit0(t3) || t3 === 45))
  61979. return t1;
  61980. --i;
  61981. while (true) {
  61982. if (i >= 0) {
  61983. t3 = C.JSString_methods.codeUnitAt$1(text, i);
  61984. if (t3 !== 95) {
  61985. if (!(t3 >= 97 && t3 <= 122))
  61986. t4 = t3 >= 65 && t3 <= 90;
  61987. else
  61988. t4 = true;
  61989. t4 = t4 || t3 >= 128;
  61990. } else
  61991. t4 = true;
  61992. if (!t4) {
  61993. t4 = t3 >= 48 && t3 <= 57;
  61994. t3 = t4 || t3 === 45;
  61995. } else
  61996. t3 = true;
  61997. } else
  61998. t3 = false;
  61999. if (!t3)
  62000. break;
  62001. --i;
  62002. }
  62003. t3 = i + 1;
  62004. t4 = C.JSString_methods.codeUnitAt$1(text, t3);
  62005. if (!(t4 === 95 || T.isAlphabetic1(t4) || t4 >= 128))
  62006. return t1;
  62007. return B.SpanExtensions_trim0(t2.span$2(t3, Y.FileLocation$_(t2, t1._end).offset));
  62008. },
  62009. get$originalRestArgument: function() {
  62010. var t1, text;
  62011. if (this.restArgument == null)
  62012. return null;
  62013. t1 = this.span;
  62014. text = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  62015. return C.JSString_methods.substring$2(C.JSString_methods.substring$1(text, C.JSString_methods.lastIndexOf$1(text, "$")), 0, C.JSString_methods.indexOf$1(text, "."));
  62016. },
  62017. verify$2: function(positional, names) {
  62018. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  62019. _s10_ = "invocation",
  62020. _s8_ = "argument";
  62021. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  62022. argument = t1[i];
  62023. if (i < positional) {
  62024. t4 = argument.name;
  62025. if (t3.containsKey$1(t4))
  62026. throw H.wrapException(E.SassScriptException$0("Argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + string$.x20was_p));
  62027. } else {
  62028. t4 = argument.name;
  62029. if (t3.containsKey$1(t4))
  62030. ++namedUsed;
  62031. else if (argument.defaultValue == null)
  62032. throw H.wrapException(E.MultiSpanSassScriptException$0("Missing argument " + H.S(_this._argument_declaration$_originalArgumentName$1(t4)) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  62033. }
  62034. }
  62035. if (_this.restArgument != null)
  62036. return;
  62037. if (positional > t2) {
  62038. t1 = "Only " + t2 + " ";
  62039. throw H.wrapException(E.MultiSpanSassScriptException$0(t1 + (names.get$isEmpty(names) ? "" : "positional ") + B.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + B.pluralize0("was", positional, "were") + " passed.", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String)));
  62040. }
  62041. if (namedUsed < t3.get$length(t3)) {
  62042. t2 = type$.legacy_String;
  62043. unknownNames = P.LinkedHashSet_LinkedHashSet$of(names, t2);
  62044. unknownNames.removeAll$1(new H.MappedListIterable(t1, new B.ArgumentDeclaration_verify_closure1(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object*>")));
  62045. throw H.wrapException(E.MultiSpanSassScriptException$0("No " + B.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + H.S(B.toSentence0(unknownNames.map$1$1(0, new B.ArgumentDeclaration_verify_closure2(), type$.legacy_Object), "or")) + ".", _s10_, P.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.legacy_FileSpan, t2)));
  62046. }
  62047. },
  62048. _argument_declaration$_originalArgumentName$1: function($name) {
  62049. var t1, t2, _i, argument, t3, t4, text, end;
  62050. if ($name === this.restArgument)
  62051. return this.get$originalRestArgument();
  62052. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  62053. argument = t1[_i];
  62054. if (argument.name === $name) {
  62055. t1 = argument.defaultValue;
  62056. t2 = argument.span;
  62057. t3 = t2.file;
  62058. t4 = t2._file$_start;
  62059. t2 = t2._end;
  62060. if (t1 == null) {
  62061. t1 = t3._decodedChars;
  62062. t1 = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  62063. } else {
  62064. t1 = t3._decodedChars;
  62065. text = P.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, H._checkValidRange(t4, t2, t1.length))), 0, null);
  62066. t1 = C.JSString_methods.substring$2(text, 0, C.JSString_methods.indexOf$1(text, ":"));
  62067. end = B._lastNonWhitespace0(t1, false);
  62068. t1 = end == null ? "" : C.JSString_methods.substring$2(t1, 0, end + 1);
  62069. }
  62070. return t1;
  62071. }
  62072. }
  62073. throw H.wrapException(P.ArgumentError$(string$.This_d + $name + '".'));
  62074. },
  62075. matches$2: function(positional, names) {
  62076. var t1, t2, t3, namedUsed, i, argument;
  62077. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  62078. argument = t1[i];
  62079. if (i < positional) {
  62080. if (t3.containsKey$1(argument.name))
  62081. return false;
  62082. } else if (t3.containsKey$1(argument.name))
  62083. ++namedUsed;
  62084. else if (argument.defaultValue == null)
  62085. return false;
  62086. }
  62087. if (this.restArgument != null)
  62088. return true;
  62089. if (positional > t2)
  62090. return false;
  62091. if (namedUsed < t3.get$length(t3))
  62092. return false;
  62093. return true;
  62094. },
  62095. toString$0: function(_) {
  62096. var t2, t3, _i,
  62097. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  62098. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  62099. t1.push(J.toString$0$(t2[_i]));
  62100. t2 = this.restArgument;
  62101. if (t2 != null)
  62102. t1.push(t2 + "...");
  62103. return C.JSArray_methods.join$1(t1, ", ");
  62104. },
  62105. $isAstNode0: 1,
  62106. get$span: function() {
  62107. return this.span;
  62108. }
  62109. };
  62110. B.ArgumentDeclaration_verify_closure1.prototype = {
  62111. call$1: function(argument) {
  62112. return argument.name;
  62113. },
  62114. $signature: 269
  62115. };
  62116. B.ArgumentDeclaration_verify_closure2.prototype = {
  62117. call$1: function($name) {
  62118. return "$" + H.S($name);
  62119. },
  62120. $signature: 6
  62121. };
  62122. X.ArgumentInvocation0.prototype = {
  62123. get$isEmpty: function(_) {
  62124. var t1;
  62125. if (this.positional.length === 0) {
  62126. t1 = this.named;
  62127. t1 = t1.get$isEmpty(t1) && this.rest == null;
  62128. } else
  62129. t1 = false;
  62130. return t1;
  62131. },
  62132. toString$0: function(_) {
  62133. var t2, t3, _i, t4, _this = this,
  62134. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  62135. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  62136. t1.push(t2[_i]);
  62137. for (t2 = _this.named, t3 = J.get$iterator$ax(t2.get$keys(t2)); t3.moveNext$0();) {
  62138. t4 = t3.get$current(t3);
  62139. t1.push(H.S(t4) + ": " + H.S(t2.$index(0, t4)));
  62140. }
  62141. t2 = _this.rest;
  62142. if (t2 != null)
  62143. t1.push(t2.toString$0(0) + "...");
  62144. t2 = _this.keywordRest;
  62145. if (t2 != null)
  62146. t1.push(t2.toString$0(0) + "...");
  62147. return "(" + C.JSArray_methods.join$1(t1, ", ") + ")";
  62148. },
  62149. $isAstNode0: 1,
  62150. get$span: function() {
  62151. return this.span;
  62152. }
  62153. };
  62154. D.SassArgumentList0.prototype = {};
  62155. B.AsyncImporter0.prototype = {};
  62156. S.AsyncBuiltInCallable0.prototype = {
  62157. callbackFor$2: function(positional, names) {
  62158. return new S.Tuple2(this._async_built_in0$_arguments, this._async_built_in0$_callback, type$.Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value_2);
  62159. },
  62160. $isAsyncCallable0: 1,
  62161. get$name: function(receiver) {
  62162. return this.name;
  62163. }
  62164. };
  62165. S.AsyncBuiltInCallable$mixin_closure0.prototype = {
  62166. call$1: function($arguments) {
  62167. return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
  62168. },
  62169. $call$body$AsyncBuiltInCallable$mixin_closure0: function($arguments) {
  62170. var $async$goto = 0,
  62171. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  62172. $async$returnValue, $async$self = this;
  62173. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62174. if ($async$errorCode === 1)
  62175. return P._asyncRethrow($async$result, $async$completer);
  62176. while (true)
  62177. switch ($async$goto) {
  62178. case 0:
  62179. // Function start
  62180. $async$goto = 3;
  62181. return P._asyncAwait($async$self.callback.call$1($arguments), $async$call$1);
  62182. case 3:
  62183. // returning from await.
  62184. $async$returnValue = null;
  62185. // goto return
  62186. $async$goto = 1;
  62187. break;
  62188. case 1:
  62189. // return
  62190. return P._asyncReturn($async$returnValue, $async$completer);
  62191. }
  62192. });
  62193. return P._asyncStartSync($async$call$1, $async$completer);
  62194. },
  62195. $signature: 176
  62196. };
  62197. X._compileStylesheet_closure2.prototype = {
  62198. call$1: function(url) {
  62199. var t1, t2, _null = null;
  62200. if (url === "")
  62201. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  62202. else {
  62203. t1 = P.Uri_parse(url);
  62204. t2 = this.importCache._async_import_cache0$_resultsCache.$index(0, t1);
  62205. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  62206. t1 = (t2 == null ? t1 : t2).toString$0(0);
  62207. }
  62208. return t1;
  62209. },
  62210. $signature: 6
  62211. };
  62212. X.CompileResult0.prototype = {};
  62213. Q.AsyncEnvironment0.prototype = {
  62214. closure$0: function() {
  62215. var t5, t6, t7, _this = this,
  62216. t1 = _this._async_environment0$_forwardedModules,
  62217. t2 = _this._async_environment0$_forwardedModuleNodes,
  62218. t3 = _this._async_environment0$_nestedForwardedModules,
  62219. t4 = _this._async_environment0$_variables;
  62220. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  62221. t5 = _this._async_environment0$_variableNodes;
  62222. if (t5 == null)
  62223. t5 = null;
  62224. else
  62225. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  62226. t6 = _this._async_environment0$_functions;
  62227. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  62228. t7 = _this._async_environment0$_mixins;
  62229. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  62230. return Q.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_globalModuleNodes, t1, t2, t3, _this._async_environment0$_allModules, t4, t5, t6, t7, _this._async_environment0$_content);
  62231. },
  62232. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  62233. var t1, t2, _this = this;
  62234. if (namespace == null) {
  62235. _this._async_environment0$_globalModules.add$1(0, module);
  62236. _this._async_environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  62237. _this._async_environment0$_allModules.push(module);
  62238. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.get$first(_this._async_environment0$_variables))); t1.moveNext$0();) {
  62239. t2 = t1.get$current(t1);
  62240. if (module.get$variables().containsKey$1(t2))
  62241. throw H.wrapException(E.SassScriptException$0(string$.This_ma + H.S(t2) + '".'));
  62242. }
  62243. } else {
  62244. t1 = _this._async_environment0$_modules;
  62245. if (t1.containsKey$1(namespace))
  62246. throw H.wrapException(E.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._async_environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  62247. t1.$indexSet(0, namespace, module);
  62248. _this._async_environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  62249. _this._async_environment0$_allModules.push(module);
  62250. }
  62251. },
  62252. forwardModule$2: function(module, rule) {
  62253. var view, t1, t2, _this = this;
  62254. if (_this._async_environment0$_forwardedModules == null)
  62255. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable_2);
  62256. if (_this._async_environment0$_forwardedModuleNodes == null)
  62257. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable_2, type$.legacy_AstNode_2);
  62258. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.legacy_AsyncCallable_2);
  62259. for (t1 = _this._async_environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  62260. t2 = t1._collection$_current;
  62261. _this._async_environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  62262. _this._async_environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  62263. _this._async_environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  62264. }
  62265. _this._async_environment0$_allModules.push(module);
  62266. _this._async_environment0$_forwardedModules.add$1(0, view);
  62267. _this._async_environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  62268. },
  62269. _async_environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  62270. var larger, smaller, t1, t2, $name;
  62271. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  62272. larger = oldMembers;
  62273. smaller = newMembers;
  62274. } else {
  62275. larger = newMembers;
  62276. smaller = oldMembers;
  62277. }
  62278. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  62279. $name = t1.get$current(t1);
  62280. if (!larger.containsKey$1($name))
  62281. continue;
  62282. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  62283. continue;
  62284. if (t2)
  62285. $name = "$" + H.S($name);
  62286. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._async_environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  62287. }
  62288. },
  62289. importForwards$1: function(module) {
  62290. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  62291. t1 = module._async_environment0$_environment,
  62292. forwarded = t1._async_environment0$_forwardedModules;
  62293. if (forwarded == null)
  62294. return;
  62295. if (_this._async_environment0$_forwardedModules != null) {
  62296. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_AsyncCallable_2);
  62297. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._async_environment0$_globalModules; t3.moveNext$0();) {
  62298. t5 = t3._collection$_current;
  62299. if (!_this._async_environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  62300. t2.add$1(0, t5);
  62301. }
  62302. forwarded = t2;
  62303. }
  62304. if (_this._async_environment0$_forwardedModules == null)
  62305. _this._async_environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_AsyncCallable_2);
  62306. if (_this._async_environment0$_forwardedModuleNodes == null)
  62307. _this._async_environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_AsyncCallable_2, type$.legacy_AstNode_2);
  62308. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  62309. t3 = t2._eval$1("Iterable.E");
  62310. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure3(), t2), t3);
  62311. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure4(), t2), t3);
  62312. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new Q.AsyncEnvironment_importForwards_closure5(), t2), t3);
  62313. t2 = _this._async_environment0$_variables;
  62314. t3 = t2.length;
  62315. if (t3 === 1) {
  62316. for (t3 = _this._async_environment0$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_AsyncCallable_2, t7 = _this._async_environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  62317. module = t4[_i];
  62318. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  62319. if (shadowed != null) {
  62320. t3.remove$1(0, module);
  62321. t8 = shadowed.variables;
  62322. if (t8.get$isEmpty(t8)) {
  62323. t8 = shadowed.functions;
  62324. if (t8.get$isEmpty(t8)) {
  62325. t8 = shadowed.mixins;
  62326. if (t8.get$isEmpty(t8)) {
  62327. t8 = shadowed._shadowed_view0$_inner;
  62328. t8 = t8.get$css(t8);
  62329. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  62330. } else
  62331. t8 = false;
  62332. } else
  62333. t8 = false;
  62334. } else
  62335. t8 = false;
  62336. if (!t8) {
  62337. t3.add$1(0, shadowed);
  62338. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  62339. }
  62340. }
  62341. }
  62342. t4 = _this._async_environment0$_forwardedModules;
  62343. t4.toString;
  62344. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  62345. t5 = t4.length;
  62346. _i = 0;
  62347. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  62348. module = t4[_i];
  62349. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  62350. if (shadowed != null) {
  62351. _this._async_environment0$_forwardedModules.remove$1(0, module);
  62352. t8 = shadowed.variables;
  62353. if (t8.get$isEmpty(t8)) {
  62354. t8 = shadowed.functions;
  62355. if (t8.get$isEmpty(t8)) {
  62356. t8 = shadowed.mixins;
  62357. if (t8.get$isEmpty(t8)) {
  62358. t8 = shadowed._shadowed_view0$_inner;
  62359. t8 = t8.get$css(t8);
  62360. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  62361. } else
  62362. t8 = false;
  62363. } else
  62364. t8 = false;
  62365. } else
  62366. t8 = false;
  62367. if (!t8) {
  62368. _this._async_environment0$_forwardedModules.add$1(0, shadowed);
  62369. t8 = _this._async_environment0$_forwardedModuleNodes;
  62370. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  62371. }
  62372. }
  62373. }
  62374. t3.addAll$1(0, forwarded);
  62375. t7.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  62376. _this._async_environment0$_forwardedModules.addAll$1(0, forwarded);
  62377. _this._async_environment0$_forwardedModuleNodes.addAll$1(0, t1._async_environment0$_forwardedModuleNodes);
  62378. } else {
  62379. t1 = _this._async_environment0$_nestedForwardedModules;
  62380. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._async_environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new Q.AsyncEnvironment_importForwards_closure6(), true, type$.legacy_List_legacy_Module_legacy_AsyncCallable_2) : t1), forwarded);
  62381. }
  62382. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._async_environment0$_variableNodes, t4 = t3 != null, t5 = _this._async_environment0$_variableIndices; t1.moveNext$0();) {
  62383. t6 = t1._collection$_current;
  62384. t5.remove$1(0, t6);
  62385. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  62386. if (t4)
  62387. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  62388. }
  62389. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._async_environment0$_functionIndices, t3 = _this._async_environment0$_functions; t1.moveNext$0();) {
  62390. t4 = t1._collection$_current;
  62391. t2.remove$1(0, t4);
  62392. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  62393. }
  62394. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins; t1.moveNext$0();) {
  62395. t4 = t1._collection$_current;
  62396. t2.remove$1(0, t4);
  62397. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  62398. }
  62399. },
  62400. getVariable$2$namespace: function($name, namespace) {
  62401. var t1, index, _this = this;
  62402. if (namespace != null)
  62403. return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  62404. if (_this._async_environment0$_lastVariableName === $name) {
  62405. t1 = J.$index$asx(_this._async_environment0$_variables[_this._async_environment0$_lastVariableIndex], $name);
  62406. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  62407. }
  62408. t1 = _this._async_environment0$_variableIndices;
  62409. index = t1.$index(0, $name);
  62410. if (index != null) {
  62411. _this._async_environment0$_lastVariableName = $name;
  62412. _this._async_environment0$_lastVariableIndex = index;
  62413. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  62414. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  62415. }
  62416. index = _this._async_environment0$_variableIndex$1($name);
  62417. if (index == null)
  62418. return _this._async_environment0$_getVariableFromGlobalModule$1($name);
  62419. _this._async_environment0$_lastVariableName = $name;
  62420. _this._async_environment0$_lastVariableIndex = index;
  62421. t1.$indexSet(0, $name, index);
  62422. t1 = J.$index$asx(_this._async_environment0$_variables[index], $name);
  62423. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  62424. },
  62425. getVariable$1: function($name) {
  62426. return this.getVariable$2$namespace($name, null);
  62427. },
  62428. _async_environment0$_getVariableFromGlobalModule$1: function($name) {
  62429. return this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
  62430. },
  62431. getVariableNode$2$namespace: function($name, namespace) {
  62432. var t1, index, _this = this;
  62433. if (namespace != null)
  62434. return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  62435. if (_this._async_environment0$_lastVariableName === $name) {
  62436. t1 = J.$index$asx(_this._async_environment0$_variableNodes[_this._async_environment0$_lastVariableIndex], $name);
  62437. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  62438. }
  62439. t1 = _this._async_environment0$_variableIndices;
  62440. index = t1.$index(0, $name);
  62441. if (index != null) {
  62442. _this._async_environment0$_lastVariableName = $name;
  62443. _this._async_environment0$_lastVariableIndex = index;
  62444. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  62445. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  62446. }
  62447. index = _this._async_environment0$_variableIndex$1($name);
  62448. if (index == null)
  62449. return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
  62450. _this._async_environment0$_lastVariableName = $name;
  62451. _this._async_environment0$_lastVariableIndex = index;
  62452. t1.$indexSet(0, $name, index);
  62453. t1 = J.$index$asx(_this._async_environment0$_variableNodes[index], $name);
  62454. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  62455. },
  62456. _async_environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  62457. var t1, value;
  62458. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  62459. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  62460. if (value != null)
  62461. return value;
  62462. }
  62463. return null;
  62464. },
  62465. globalVariableExists$2$namespace: function($name, namespace) {
  62466. if (namespace != null)
  62467. return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  62468. if (C.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
  62469. return true;
  62470. return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
  62471. },
  62472. globalVariableExists$1: function($name) {
  62473. return this.globalVariableExists$2$namespace($name, null);
  62474. },
  62475. _async_environment0$_variableIndex$1: function($name) {
  62476. var t1, i;
  62477. for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
  62478. if (t1[i].containsKey$1($name))
  62479. return i;
  62480. return null;
  62481. },
  62482. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  62483. var t1, moduleWithName, cur, t2, index, _this = this;
  62484. if (namespace != null) {
  62485. _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  62486. return;
  62487. }
  62488. if (global || _this._async_environment0$_variables.length === 1) {
  62489. _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure2(_this, $name));
  62490. t1 = _this._async_environment0$_variables;
  62491. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  62492. moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new Q.AsyncEnvironment_setVariable_closure3($name));
  62493. if (moduleWithName != null) {
  62494. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  62495. return;
  62496. }
  62497. }
  62498. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  62499. t1 = _this._async_environment0$_variableNodes;
  62500. if (t1 != null)
  62501. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  62502. return;
  62503. }
  62504. if (_this._async_environment0$_nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null) {
  62505. t1 = _this._async_environment0$_nestedForwardedModules;
  62506. t1.toString;
  62507. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  62508. t1 = new H.ListIterator(t1, t1.get$length(t1));
  62509. for (; t1.moveNext$0();) {
  62510. cur = t1.__internal$_current;
  62511. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  62512. cur = t2.__internal$_current;
  62513. if (cur.get$variables().containsKey$1($name)) {
  62514. cur.setVariable$3($name, value, nodeWithSpan);
  62515. return;
  62516. }
  62517. }
  62518. }
  62519. }
  62520. index = _this._async_environment0$_lastVariableName === $name ? _this._async_environment0$_lastVariableIndex : _this._async_environment0$_variableIndices.putIfAbsent$2($name, new Q.AsyncEnvironment_setVariable_closure4(_this, $name));
  62521. if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
  62522. index = _this._async_environment0$_variables.length - 1;
  62523. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  62524. }
  62525. _this._async_environment0$_lastVariableName = $name;
  62526. _this._async_environment0$_lastVariableIndex = index;
  62527. J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
  62528. t1 = _this._async_environment0$_variableNodes;
  62529. if (t1 != null)
  62530. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  62531. },
  62532. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  62533. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  62534. },
  62535. setLocalVariable$3: function($name, value, nodeWithSpan) {
  62536. var index, _this = this,
  62537. t1 = _this._async_environment0$_variables,
  62538. t2 = t1.length;
  62539. _this._async_environment0$_lastVariableName = $name;
  62540. index = _this._async_environment0$_lastVariableIndex = t2 - 1;
  62541. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  62542. J.$indexSet$ax(t1[index], $name, value);
  62543. t1 = _this._async_environment0$_variableNodes;
  62544. if (t1 != null)
  62545. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  62546. },
  62547. getFunction$2$namespace: function($name, namespace) {
  62548. var t1, index, _this = this;
  62549. if (namespace != null) {
  62550. t1 = _this._async_environment0$_getModule$1(namespace);
  62551. return t1.get$functions(t1).$index(0, $name);
  62552. }
  62553. t1 = _this._async_environment0$_functionIndices;
  62554. index = t1.$index(0, $name);
  62555. if (index != null) {
  62556. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  62557. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  62558. }
  62559. index = _this._async_environment0$_functionIndex$1($name);
  62560. if (index == null)
  62561. return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
  62562. t1.$indexSet(0, $name, index);
  62563. t1 = J.$index$asx(_this._async_environment0$_functions[index], $name);
  62564. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  62565. },
  62566. _async_environment0$_getFunctionFromGlobalModule$1: function($name) {
  62567. return this._async_environment0$_fromOneModule$3($name, "function", new Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
  62568. },
  62569. _async_environment0$_functionIndex$1: function($name) {
  62570. var t1, i;
  62571. for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
  62572. if (t1[i].containsKey$1($name))
  62573. return i;
  62574. return null;
  62575. },
  62576. getMixin$2$namespace: function($name, namespace) {
  62577. var t1, index, _this = this;
  62578. if (namespace != null)
  62579. return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  62580. t1 = _this._async_environment0$_mixinIndices;
  62581. index = t1.$index(0, $name);
  62582. if (index != null) {
  62583. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  62584. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  62585. }
  62586. index = _this._async_environment0$_mixinIndex$1($name);
  62587. if (index == null)
  62588. return _this._async_environment0$_getMixinFromGlobalModule$1($name);
  62589. t1.$indexSet(0, $name, index);
  62590. t1 = J.$index$asx(_this._async_environment0$_mixins[index], $name);
  62591. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  62592. },
  62593. _async_environment0$_getMixinFromGlobalModule$1: function($name) {
  62594. return this._async_environment0$_fromOneModule$3($name, "mixin", new Q.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
  62595. },
  62596. _async_environment0$_mixinIndex$1: function($name) {
  62597. var t1, i;
  62598. for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  62599. if (t1[i].containsKey$1($name))
  62600. return i;
  62601. return null;
  62602. },
  62603. withContent$2: function($content, callback) {
  62604. return this.withContent$body$AsyncEnvironment0($content, callback);
  62605. },
  62606. withContent$body$AsyncEnvironment0: function($content, callback) {
  62607. var $async$goto = 0,
  62608. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  62609. $async$self = this, oldContent;
  62610. var $async$withContent$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62611. if ($async$errorCode === 1)
  62612. return P._asyncRethrow($async$result, $async$completer);
  62613. while (true)
  62614. switch ($async$goto) {
  62615. case 0:
  62616. // Function start
  62617. oldContent = $async$self._async_environment0$_content;
  62618. $async$self._async_environment0$_content = $content;
  62619. $async$goto = 2;
  62620. return P._asyncAwait(callback.call$0(), $async$withContent$2);
  62621. case 2:
  62622. // returning from await.
  62623. $async$self._async_environment0$_content = oldContent;
  62624. // implicit return
  62625. return P._asyncReturn(null, $async$completer);
  62626. }
  62627. });
  62628. return P._asyncStartSync($async$withContent$2, $async$completer);
  62629. },
  62630. asMixin$1: function(callback) {
  62631. var $async$goto = 0,
  62632. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  62633. $async$self = this, oldInMixin;
  62634. var $async$asMixin$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62635. if ($async$errorCode === 1)
  62636. return P._asyncRethrow($async$result, $async$completer);
  62637. while (true)
  62638. switch ($async$goto) {
  62639. case 0:
  62640. // Function start
  62641. oldInMixin = $async$self._async_environment0$_inMixin;
  62642. $async$self._async_environment0$_inMixin = true;
  62643. $async$goto = 2;
  62644. return P._asyncAwait(callback.call$0(), $async$asMixin$1);
  62645. case 2:
  62646. // returning from await.
  62647. $async$self._async_environment0$_inMixin = oldInMixin;
  62648. // implicit return
  62649. return P._asyncReturn(null, $async$completer);
  62650. }
  62651. });
  62652. return P._asyncStartSync($async$asMixin$1, $async$completer);
  62653. },
  62654. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when, $T) {
  62655. return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T._eval$1("0*"));
  62656. },
  62657. scope$1$1: function(callback, $T) {
  62658. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  62659. },
  62660. scope$1$2$when: function(callback, when, $T) {
  62661. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  62662. },
  62663. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  62664. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  62665. },
  62666. scope$body$AsyncEnvironment0: function(callback, semiGlobal, when, $T, $async$type) {
  62667. var $async$goto = 0,
  62668. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  62669. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5;
  62670. var $async$scope$1$3$semiGlobal$when = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  62671. if ($async$errorCode === 1) {
  62672. $async$currentError = $async$result;
  62673. $async$goto = $async$handler;
  62674. }
  62675. while (true)
  62676. switch ($async$goto) {
  62677. case 0:
  62678. // Function start
  62679. $async$goto = !when ? 3 : 4;
  62680. break;
  62681. case 3:
  62682. // then
  62683. wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
  62684. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  62685. $async$handler = 5;
  62686. $async$goto = 8;
  62687. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  62688. case 8:
  62689. // returning from await.
  62690. t1 = $async$result;
  62691. $async$returnValue = t1;
  62692. $async$next = [1];
  62693. // goto finally
  62694. $async$goto = 6;
  62695. break;
  62696. $async$next.push(7);
  62697. // goto finally
  62698. $async$goto = 6;
  62699. break;
  62700. case 5:
  62701. // uncaught
  62702. $async$next = [2];
  62703. case 6:
  62704. // finally
  62705. $async$handler = 2;
  62706. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  62707. // goto the next finally handler
  62708. $async$goto = $async$next.pop();
  62709. break;
  62710. case 7:
  62711. // after finally
  62712. case 4:
  62713. // join
  62714. semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
  62715. wasInSemiGlobalScope0 = $async$self._async_environment0$_inSemiGlobalScope;
  62716. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  62717. t1 = $async$self._async_environment0$_variables;
  62718. t2 = type$.legacy_String;
  62719. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value_2));
  62720. t3 = $async$self._async_environment0$_variableNodes;
  62721. if (t3 != null)
  62722. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode_2));
  62723. t3 = $async$self._async_environment0$_functions;
  62724. t4 = type$.legacy_AsyncCallable_2;
  62725. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  62726. t5 = $async$self._async_environment0$_mixins;
  62727. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  62728. t4 = $async$self._async_environment0$_nestedForwardedModules;
  62729. if (t4 != null)
  62730. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2));
  62731. $async$handler = 9;
  62732. $async$goto = 12;
  62733. return P._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  62734. case 12:
  62735. // returning from await.
  62736. t2 = $async$result;
  62737. $async$returnValue = t2;
  62738. $async$next = [1];
  62739. // goto finally
  62740. $async$goto = 10;
  62741. break;
  62742. $async$next.push(11);
  62743. // goto finally
  62744. $async$goto = 10;
  62745. break;
  62746. case 9:
  62747. // uncaught
  62748. $async$next = [2];
  62749. case 10:
  62750. // finally
  62751. $async$handler = 2;
  62752. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  62753. $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
  62754. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
  62755. $name = t1.get$current(t1);
  62756. t2.remove$1(0, $name);
  62757. }
  62758. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t3))), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
  62759. name0 = t1.get$current(t1);
  62760. t2.remove$1(0, name0);
  62761. }
  62762. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t5))), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
  62763. name1 = t1.get$current(t1);
  62764. t2.remove$1(0, name1);
  62765. }
  62766. t1 = $async$self._async_environment0$_nestedForwardedModules;
  62767. if (t1 != null)
  62768. C.JSArray_methods.removeLast$0(t1);
  62769. // goto the next finally handler
  62770. $async$goto = $async$next.pop();
  62771. break;
  62772. case 11:
  62773. // after finally
  62774. case 1:
  62775. // return
  62776. return P._asyncReturn($async$returnValue, $async$completer);
  62777. case 2:
  62778. // rethrow
  62779. return P._asyncRethrow($async$currentError, $async$completer);
  62780. }
  62781. });
  62782. return P._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  62783. },
  62784. toImplicitConfiguration$0: function() {
  62785. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  62786. t1 = type$.legacy_String,
  62787. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue_2);
  62788. for (t2 = this._async_environment0$_variables, t3 = this._async_environment0$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode_2, i = 0; i < t2.length; ++i) {
  62789. values = t2[i];
  62790. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  62791. for (t6 = J.get$iterator$ax(values.get$keys(values)); t6.moveNext$0();) {
  62792. t7 = t6.get$current(t6);
  62793. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  62794. }
  62795. }
  62796. return new A.Configuration0(configuration, null, true);
  62797. },
  62798. _async_environment0$_getModule$1: function(namespace) {
  62799. var module = this._async_environment0$_modules.$index(0, namespace);
  62800. if (module != null)
  62801. return module;
  62802. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  62803. },
  62804. _async_environment0$_fromOneModule$1$3: function($name, type, callback) {
  62805. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  62806. t1 = this._async_environment0$_nestedForwardedModules;
  62807. if (t1 != null)
  62808. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  62809. cur = t1.__internal$_current;
  62810. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  62811. cur = t2.__internal$_current;
  62812. value = callback.call$1(cur);
  62813. if (value != null)
  62814. return value;
  62815. }
  62816. }
  62817. for (t1 = this._async_environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_AsyncCallable_2, value = null, identity = null; t1.moveNext$0();) {
  62818. t3 = t1._collection$_current;
  62819. valueInModule = callback.call$1(t3);
  62820. if (valueInModule == null)
  62821. continue;
  62822. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  62823. if (identityFromModule.$eq(0, identity))
  62824. continue;
  62825. if (value != null) {
  62826. t1 = "This " + type + string$.x20is_av;
  62827. t2 = type + " use";
  62828. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  62829. for (t4 = this._async_environment0$_globalModuleNodes, t4 = t4.get$entries(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  62830. t5 = t4.get$current(t4);
  62831. if (callback.call$1(t5.key) != null)
  62832. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  62833. }
  62834. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  62835. }
  62836. identity = identityFromModule;
  62837. value = valueInModule;
  62838. }
  62839. return value;
  62840. },
  62841. _async_environment0$_fromOneModule$3: function($name, type, callback) {
  62842. return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  62843. }
  62844. };
  62845. Q.AsyncEnvironment_importForwards_closure3.prototype = {
  62846. call$1: function(module) {
  62847. var t1 = module.get$variables();
  62848. return t1.get$keys(t1);
  62849. },
  62850. $signature: 111
  62851. };
  62852. Q.AsyncEnvironment_importForwards_closure4.prototype = {
  62853. call$1: function(module) {
  62854. var t1 = module.get$functions(module);
  62855. return t1.get$keys(t1);
  62856. },
  62857. $signature: 111
  62858. };
  62859. Q.AsyncEnvironment_importForwards_closure5.prototype = {
  62860. call$1: function(module) {
  62861. var t1 = module.get$mixins();
  62862. return t1.get$keys(t1);
  62863. },
  62864. $signature: 111
  62865. };
  62866. Q.AsyncEnvironment_importForwards_closure6.prototype = {
  62867. call$1: function(_) {
  62868. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  62869. },
  62870. $signature: 272
  62871. };
  62872. Q.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
  62873. call$1: function(module) {
  62874. return module.get$variables().$index(0, this.name);
  62875. },
  62876. $signature: 273
  62877. };
  62878. Q.AsyncEnvironment_setVariable_closure2.prototype = {
  62879. call$0: function() {
  62880. var t1 = this.$this;
  62881. t1._async_environment0$_lastVariableName = this.name;
  62882. return t1._async_environment0$_lastVariableIndex = 0;
  62883. },
  62884. $signature: 11
  62885. };
  62886. Q.AsyncEnvironment_setVariable_closure3.prototype = {
  62887. call$1: function(module) {
  62888. return module.get$variables().containsKey$1(this.name) ? module : null;
  62889. },
  62890. $signature: 168
  62891. };
  62892. Q.AsyncEnvironment_setVariable_closure4.prototype = {
  62893. call$0: function() {
  62894. var t1 = this.$this,
  62895. t2 = t1._async_environment0$_variableIndex$1(this.name);
  62896. return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
  62897. },
  62898. $signature: 11
  62899. };
  62900. Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
  62901. call$1: function(module) {
  62902. return module.get$functions(module).$index(0, this.name);
  62903. },
  62904. $signature: 166
  62905. };
  62906. Q.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
  62907. call$1: function(module) {
  62908. return module.get$mixins().$index(0, this.name);
  62909. },
  62910. $signature: 166
  62911. };
  62912. Q._EnvironmentModule2.prototype = {
  62913. get$url: function() {
  62914. return this.css.get$span().file.url;
  62915. },
  62916. setVariable$3: function($name, value, nodeWithSpan) {
  62917. var t1, t2,
  62918. module = this._async_environment0$_modulesByVariable.$index(0, $name);
  62919. if (module != null) {
  62920. module.setVariable$3($name, value, nodeWithSpan);
  62921. return;
  62922. }
  62923. t1 = this._async_environment0$_environment;
  62924. t2 = t1._async_environment0$_variables;
  62925. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  62926. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  62927. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  62928. t1 = t1._async_environment0$_variableNodes;
  62929. if (t1 != null)
  62930. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  62931. return;
  62932. },
  62933. variableIdentity$1: function($name) {
  62934. var module = this._async_environment0$_modulesByVariable.$index(0, $name);
  62935. return module == null ? this : module.variableIdentity$1($name);
  62936. },
  62937. cloneCss$0: function() {
  62938. var newCssAndExtender, _this = this,
  62939. t1 = _this.css;
  62940. if (J.get$isEmpty$asx(t1.get$children(t1)))
  62941. return _this;
  62942. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  62943. return Q._EnvironmentModule$_2(_this._async_environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  62944. },
  62945. toString$0: function(_) {
  62946. var t1 = this.css;
  62947. if (t1.get$span().file.url == null)
  62948. t1 = "<unknown url>";
  62949. else {
  62950. t1 = t1.get$span();
  62951. t1 = $.$get$context().prettyUri$1(t1.file.url);
  62952. }
  62953. return t1;
  62954. },
  62955. $isModule0: 1,
  62956. get$upstream: function() {
  62957. return this.upstream;
  62958. },
  62959. get$variables: function() {
  62960. return this.variables;
  62961. },
  62962. get$variableNodes: function() {
  62963. return this.variableNodes;
  62964. },
  62965. get$functions: function(receiver) {
  62966. return this.functions;
  62967. },
  62968. get$mixins: function() {
  62969. return this.mixins;
  62970. },
  62971. get$extender: function() {
  62972. return this.extender;
  62973. },
  62974. get$css: function(receiver) {
  62975. return this.css;
  62976. },
  62977. get$transitivelyContainsCss: function() {
  62978. return this.transitivelyContainsCss;
  62979. },
  62980. get$transitivelyContainsExtensions: function() {
  62981. return this.transitivelyContainsExtensions;
  62982. }
  62983. };
  62984. Q._EnvironmentModule__EnvironmentModule_closure17.prototype = {
  62985. call$1: function(module) {
  62986. return module.get$variables();
  62987. },
  62988. $signature: 276
  62989. };
  62990. Q._EnvironmentModule__EnvironmentModule_closure18.prototype = {
  62991. call$1: function(module) {
  62992. return module.get$variableNodes();
  62993. },
  62994. $signature: 277
  62995. };
  62996. Q._EnvironmentModule__EnvironmentModule_closure19.prototype = {
  62997. call$1: function(module) {
  62998. return module.get$functions(module);
  62999. },
  63000. $signature: 215
  63001. };
  63002. Q._EnvironmentModule__EnvironmentModule_closure20.prototype = {
  63003. call$1: function(module) {
  63004. return module.get$mixins();
  63005. },
  63006. $signature: 215
  63007. };
  63008. Q._EnvironmentModule__EnvironmentModule_closure21.prototype = {
  63009. call$1: function(module) {
  63010. return module.get$transitivelyContainsCss();
  63011. },
  63012. $signature: 110
  63013. };
  63014. Q._EnvironmentModule__EnvironmentModule_closure22.prototype = {
  63015. call$1: function(module) {
  63016. return module.get$transitivelyContainsExtensions();
  63017. },
  63018. $signature: 110
  63019. };
  63020. E._EvaluateVisitor2.prototype = {
  63021. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap2: function(functions, importCache, logger, nodeImporter, sourceMap) {
  63022. var t2, cur, _i, metaModule, t3, module, $function, t4, _this = this,
  63023. _s20_ = "$name, $module: null",
  63024. _s9_ = "sass:meta",
  63025. metaFunctions = [Q.BuiltInCallable$function0("global-variable-exists", _s20_, new E._EvaluateVisitor_closure29(_this), _s9_), Q.BuiltInCallable$function0("variable-exists", "$name", new E._EvaluateVisitor_closure30(_this), _s9_), Q.BuiltInCallable$function0("function-exists", _s20_, new E._EvaluateVisitor_closure31(_this), _s9_), Q.BuiltInCallable$function0("mixin-exists", _s20_, new E._EvaluateVisitor_closure32(_this), _s9_), Q.BuiltInCallable$function0("content-exists", "", new E._EvaluateVisitor_closure33(_this), _s9_), Q.BuiltInCallable$function0("module-variables", "$module", new E._EvaluateVisitor_closure34(_this), _s9_), Q.BuiltInCallable$function0("module-functions", "$module", new E._EvaluateVisitor_closure35(_this), _s9_), Q.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new E._EvaluateVisitor_closure36(_this), _s9_), new S.AsyncBuiltInCallable0("call", L.ScssParser$0("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new E._EvaluateVisitor_closure37(_this))],
  63026. t1 = type$.JSArray_legacy_AsyncBuiltInCallable_2,
  63027. metaMixins = H.setRuntimeTypeInfo([S.AsyncBuiltInCallable$mixin0("load-css", "$url, $with: null", new E._EvaluateVisitor_closure38(_this), _s9_)], t1);
  63028. t1 = H.setRuntimeTypeInfo([], t1);
  63029. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  63030. cur = t2.__internal$_current;
  63031. t1.push(cur);
  63032. }
  63033. for (_i = 0; _i < 9; ++_i)
  63034. t1.push(metaFunctions[_i]);
  63035. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.legacy_AsyncBuiltInCallable_2);
  63036. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable_2);
  63037. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  63038. cur = t2.__internal$_current;
  63039. t1.push(cur);
  63040. }
  63041. t1.push(metaModule);
  63042. t2 = t1.length;
  63043. t3 = _this._async_evaluate0$_builtInModules;
  63044. _i = 0;
  63045. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  63046. module = t1[_i];
  63047. t3.$indexSet(0, module.url, module);
  63048. }
  63049. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AsyncCallable);
  63050. for (t2 = functions.length, _i = 0; _i < functions.length; functions.length === t2 || (0, H.throwConcurrentModificationError)(functions), ++_i)
  63051. t1.push(functions[_i]);
  63052. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  63053. cur = t2.__internal$_current;
  63054. t1.push(cur);
  63055. }
  63056. for (_i = 0; _i < 9; ++_i)
  63057. t1.push(metaFunctions[_i]);
  63058. for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  63059. $function = t1[_i];
  63060. t4 = $function.get$name($function);
  63061. t4.toString;
  63062. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  63063. }
  63064. },
  63065. run$2: function(_, importer, node) {
  63066. return this.run$body$_EvaluateVisitor0(_, importer, node);
  63067. },
  63068. run$body$_EvaluateVisitor0: function(_, importer, node) {
  63069. var $async$goto = 0,
  63070. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult_2),
  63071. $async$returnValue, $async$self = this;
  63072. var $async$run$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63073. if ($async$errorCode === 1)
  63074. return P._asyncRethrow($async$result, $async$completer);
  63075. while (true)
  63076. switch ($async$goto) {
  63077. case 0:
  63078. // Function start
  63079. $async$returnValue = $async$self._async_evaluate0$_withWarnCallback$1$1(new E._EvaluateVisitor_run_closure2($async$self, node, importer), type$.legacy_FutureOr_legacy_EvaluateResult_2);
  63080. // goto return
  63081. $async$goto = 1;
  63082. break;
  63083. case 1:
  63084. // return
  63085. return P._asyncReturn($async$returnValue, $async$completer);
  63086. }
  63087. });
  63088. return P._asyncStartSync($async$run$2, $async$completer);
  63089. },
  63090. _async_evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  63091. return N.withWarnCallback0(new E._EvaluateVisitor__withWarnCallback_closure2(this), callback, $T._eval$1("0*"));
  63092. },
  63093. _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  63094. return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  63095. },
  63096. _async_evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  63097. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  63098. },
  63099. _async_evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  63100. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  63101. },
  63102. _loadModule$body$_EvaluateVisitor0: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  63103. var $async$goto = 0,
  63104. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  63105. $async$returnValue, $async$self = this, t1, builtInModule;
  63106. var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63107. if ($async$errorCode === 1)
  63108. return P._asyncRethrow($async$result, $async$completer);
  63109. while (true)
  63110. switch ($async$goto) {
  63111. case 0:
  63112. // Function start
  63113. builtInModule = $async$self._async_evaluate0$_builtInModules.$index(0, url);
  63114. if (builtInModule != null) {
  63115. if (configuration != null && !configuration.isImplicit) {
  63116. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  63117. throw H.wrapException($async$self._async_evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  63118. }
  63119. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__loadModule_closure5(callback, builtInModule));
  63120. // goto return
  63121. $async$goto = 1;
  63122. break;
  63123. }
  63124. $async$goto = 3;
  63125. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new E._EvaluateVisitor__loadModule_closure6($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  63126. case 3:
  63127. // returning from await.
  63128. case 1:
  63129. // return
  63130. return P._asyncReturn($async$returnValue, $async$completer);
  63131. }
  63132. });
  63133. return P._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  63134. },
  63135. _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  63136. return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  63137. },
  63138. _async_evaluate0$_execute$2: function(importer, stylesheet) {
  63139. return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  63140. },
  63141. _execute$body$_EvaluateVisitor0: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  63142. var $async$goto = 0,
  63143. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Module_legacy_AsyncCallable_2),
  63144. $async$returnValue, $async$self = this, message, existingNode, environment, extender, module, t1, url, t2, alreadyLoaded;
  63145. var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63146. if ($async$errorCode === 1)
  63147. return P._asyncRethrow($async$result, $async$completer);
  63148. while (true)
  63149. switch ($async$goto) {
  63150. case 0:
  63151. // Function start
  63152. t1 = {};
  63153. url = stylesheet.span.file.url;
  63154. t2 = $async$self._async_evaluate0$_modules;
  63155. alreadyLoaded = t2.$index(0, url);
  63156. if (alreadyLoaded != null) {
  63157. t1 = configuration == null;
  63158. if (!(t1 ? $async$self._async_evaluate0$_configuration : configuration).isImplicit) {
  63159. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  63160. existingNode = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
  63161. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  63162. if (existingNode != null)
  63163. t2.$indexSet(0, existingNode.get$span(), "original load");
  63164. if (t1)
  63165. t2.$indexSet(0, $async$self._async_evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  63166. throw H.wrapException(t2.get$isEmpty(t2) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t2));
  63167. }
  63168. $async$returnValue = alreadyLoaded;
  63169. // goto return
  63170. $async$goto = 1;
  63171. break;
  63172. }
  63173. environment = Q.AsyncEnvironment$0($async$self._async_evaluate0$_sourceMap);
  63174. t1.css = null;
  63175. extender = F.Extender$0();
  63176. $async$goto = 3;
  63177. return P._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__execute_closure2(t1, $async$self, importer, stylesheet, extender, configuration), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
  63178. case 3:
  63179. // returning from await.
  63180. module = Q._EnvironmentModule__EnvironmentModule2(environment, t1.css, extender, environment._async_environment0$_forwardedModules);
  63181. t2.$indexSet(0, url, module);
  63182. $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  63183. $async$returnValue = module;
  63184. // goto return
  63185. $async$goto = 1;
  63186. break;
  63187. case 1:
  63188. // return
  63189. return P._asyncReturn($async$returnValue, $async$completer);
  63190. }
  63191. });
  63192. return P._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  63193. },
  63194. _async_evaluate0$_addOutOfOrderImports$0: function() {
  63195. var t1, statements, _this = this;
  63196. if (_this._async_evaluate0$_outOfOrderImports == null)
  63197. return _this._async_evaluate0$_root.children;
  63198. t1 = new Array(J.get$length$asx(_this._async_evaluate0$_root.children._collection$_source) + _this._async_evaluate0$_outOfOrderImports.length);
  63199. t1.fixed$length = Array;
  63200. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode_2), type$.FixedLengthListBuilder_legacy_ModifiableCssNode_2);
  63201. statements.addRange$3(_this._async_evaluate0$_root.children, 0, _this._async_evaluate0$_endOfImports);
  63202. statements.addAll$1(0, _this._async_evaluate0$_outOfOrderImports);
  63203. statements.addRange$2(_this._async_evaluate0$_root.children, _this._async_evaluate0$_endOfImports);
  63204. return statements.build$0();
  63205. },
  63206. _async_evaluate0$_combineCss$2$clone: function(root, clone) {
  63207. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, t2, statements, index, _this = this;
  63208. if (!C.JSArray_methods.any$1(root.get$upstream(), new E._EvaluateVisitor__combineCss_closure8())) {
  63209. selectors = root.get$extender().get$simpleSelectors();
  63210. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__combineCss_closure9(selectors)));
  63211. if (unsatisfiedExtension != null)
  63212. _this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  63213. return root.get$css(root);
  63214. }
  63215. sortedModules = _this._async_evaluate0$_topologicalModules$1(root);
  63216. if (clone) {
  63217. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<AsyncCallable0*>*>");
  63218. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new E._EvaluateVisitor__combineCss_closure10(), t1), true, t1._eval$1("ListIterable.E"));
  63219. }
  63220. _this._async_evaluate0$_extendModules$1(sortedModules);
  63221. t1 = type$.JSArray_legacy_CssNode_2;
  63222. imports = H.setRuntimeTypeInfo([], t1);
  63223. css = H.setRuntimeTypeInfo([], t1);
  63224. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  63225. cur = t1.__internal$_current;
  63226. t2 = cur.get$css(cur);
  63227. statements = t2.get$children(t2);
  63228. index = _this._async_evaluate0$_indexAfterImports$1(statements);
  63229. t2 = J.getInterceptor$ax(statements);
  63230. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  63231. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  63232. }
  63233. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode_2), root.get$css(root).get$span());
  63234. },
  63235. _async_evaluate0$_combineCss$1: function(root) {
  63236. return this._async_evaluate0$_combineCss$2$clone(root, false);
  63237. },
  63238. _async_evaluate0$_extendModules$1: function(sortedModules) {
  63239. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  63240. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender_2),
  63241. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension_2);
  63242. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  63243. t2 = t1.get$current(t1);
  63244. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  63245. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new E._EvaluateVisitor__extendModules_closure5(originalSelectors)));
  63246. extenders = downstreamExtenders.$index(0, t2.get$url());
  63247. if (extenders != null)
  63248. t2.get$extender().addExtensions$1(extenders);
  63249. t3 = t2.get$extender();
  63250. if (t3.get$isEmpty(t3))
  63251. continue;
  63252. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  63253. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new E._EvaluateVisitor__extendModules_closure6()), t2.get$extender());
  63254. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  63255. }
  63256. if (unsatisfiedExtensions._collection$_length !== 0)
  63257. this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  63258. },
  63259. _async_evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  63260. throw H.wrapException(E.SassException$0(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  63261. },
  63262. _async_evaluate0$_topologicalModules$1: function(root) {
  63263. var t1 = type$.legacy_Module_legacy_AsyncCallable_2,
  63264. sorted = Q.QueueList$(null, t1);
  63265. new E._EvaluateVisitor__topologicalModules_visitModule2(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  63266. return sorted;
  63267. },
  63268. _async_evaluate0$_indexAfterImports$1: function(statements) {
  63269. var t1, t2, t3, lastImport, i, statement;
  63270. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  63271. statement = t1.$index(statements, i);
  63272. if (t3._is(statement))
  63273. lastImport = i;
  63274. else if (!t2._is(statement))
  63275. break;
  63276. }
  63277. return lastImport + 1;
  63278. },
  63279. visitStylesheet$1: function(node) {
  63280. return this.visitStylesheet$body$_EvaluateVisitor0(node);
  63281. },
  63282. visitStylesheet$body$_EvaluateVisitor0: function(node) {
  63283. var $async$goto = 0,
  63284. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63285. $async$returnValue, $async$self = this, t1, t2, _i;
  63286. var $async$visitStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63287. if ($async$errorCode === 1)
  63288. return P._asyncRethrow($async$result, $async$completer);
  63289. while (true)
  63290. switch ($async$goto) {
  63291. case 0:
  63292. // Function start
  63293. t1 = node.children, t2 = t1.length, _i = 0;
  63294. case 3:
  63295. // for condition
  63296. if (!(_i < t2)) {
  63297. // goto after for
  63298. $async$goto = 5;
  63299. break;
  63300. }
  63301. $async$goto = 6;
  63302. return P._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  63303. case 6:
  63304. // returning from await.
  63305. case 4:
  63306. // for update
  63307. ++_i;
  63308. // goto for condition
  63309. $async$goto = 3;
  63310. break;
  63311. case 5:
  63312. // after for
  63313. $async$returnValue = null;
  63314. // goto return
  63315. $async$goto = 1;
  63316. break;
  63317. case 1:
  63318. // return
  63319. return P._asyncReturn($async$returnValue, $async$completer);
  63320. }
  63321. });
  63322. return P._asyncStartSync($async$visitStylesheet$1, $async$completer);
  63323. },
  63324. visitAtRootRule$1: function(node) {
  63325. return this.visitAtRootRule$body$_EvaluateVisitor0(node);
  63326. },
  63327. visitAtRootRule$body$_EvaluateVisitor0: function(node) {
  63328. var $async$goto = 0,
  63329. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63330. $async$returnValue, $async$self = this, root, innerCopy, outerCopy, cur, copy, t1, query, $parent, included, $async$temp1, $async$temp2;
  63331. var $async$visitAtRootRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63332. if ($async$errorCode === 1)
  63333. return P._asyncRethrow($async$result, $async$completer);
  63334. while (true)
  63335. switch ($async$goto) {
  63336. case 0:
  63337. // Function start
  63338. t1 = node.query;
  63339. $async$goto = t1 != null ? 3 : 5;
  63340. break;
  63341. case 3:
  63342. // then
  63343. $async$temp1 = t1;
  63344. $async$temp2 = E;
  63345. $async$goto = 6;
  63346. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(t1, true), $async$visitAtRootRule$1);
  63347. case 6:
  63348. // returning from await.
  63349. $async$result = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor_visitAtRootRule_closure8($async$self, $async$result));
  63350. // goto join
  63351. $async$goto = 4;
  63352. break;
  63353. case 5:
  63354. // else
  63355. $async$result = C.AtRootQuery_UsS0;
  63356. case 4:
  63357. // join
  63358. query = $async$result;
  63359. $parent = $async$self._async_evaluate0$_parent;
  63360. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode_2);
  63361. for (t1 = type$.legacy_CssStylesheet_2; !t1._is($parent);) {
  63362. if (!query.excludes$1($parent))
  63363. included.push($parent);
  63364. $parent = $parent._node2$_parent;
  63365. }
  63366. root = $async$self._async_evaluate0$_trimIncluded$1(included);
  63367. $async$goto = root == $async$self._async_evaluate0$_parent ? 7 : 8;
  63368. break;
  63369. case 7:
  63370. // then
  63371. $async$goto = 9;
  63372. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitAtRootRule_closure9($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  63373. case 9:
  63374. // returning from await.
  63375. $async$returnValue = null;
  63376. // goto return
  63377. $async$goto = 1;
  63378. break;
  63379. case 8:
  63380. // join
  63381. innerCopy = included.length === 0 ? null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  63382. for (t1 = H.SubListIterable$(included, 1, null, type$.legacy_ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  63383. cur = t1.__internal$_current;
  63384. copy = cur.copyWithoutChildren$0();
  63385. copy.addChild$1(outerCopy);
  63386. }
  63387. if (outerCopy != null)
  63388. root.addChild$1(outerCopy);
  63389. $async$goto = 10;
  63390. return P._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new E._EvaluateVisitor_visitAtRootRule_closure10($async$self, node)), $async$visitAtRootRule$1);
  63391. case 10:
  63392. // returning from await.
  63393. $async$returnValue = null;
  63394. // goto return
  63395. $async$goto = 1;
  63396. break;
  63397. case 1:
  63398. // return
  63399. return P._asyncReturn($async$returnValue, $async$completer);
  63400. }
  63401. });
  63402. return P._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  63403. },
  63404. _async_evaluate0$_trimIncluded$1: function(nodes) {
  63405. var $parent, innermostContiguous, i, t2, root,
  63406. t1 = nodes.length;
  63407. if (t1 === 0)
  63408. return this._async_evaluate0$_root;
  63409. $parent = this._async_evaluate0$_parent;
  63410. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  63411. for (; $parent != nodes[i]; innermostContiguous = null)
  63412. $parent = $parent._node2$_parent;
  63413. if (innermostContiguous == null)
  63414. innermostContiguous = i;
  63415. $parent = $parent._node2$_parent;
  63416. }
  63417. t2 = this._async_evaluate0$_root;
  63418. if ($parent != t2)
  63419. return t2;
  63420. root = nodes[innermostContiguous];
  63421. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  63422. return root;
  63423. },
  63424. _async_evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  63425. var _this = this,
  63426. scope = new E._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
  63427. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  63428. if (t1 !== query.include)
  63429. scope = new E._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
  63430. if (_this._async_evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  63431. scope = new E._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
  63432. if (_this._async_evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  63433. scope = new E._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
  63434. return _this._async_evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new E._EvaluateVisitor__scopeForAtRoot_closure21()) ? new E._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
  63435. },
  63436. visitContentBlock$1: function(node) {
  63437. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  63438. },
  63439. visitContentRule$1: function(node) {
  63440. return this.visitContentRule$body$_EvaluateVisitor0(node);
  63441. },
  63442. visitContentRule$body$_EvaluateVisitor0: function(node) {
  63443. var $async$goto = 0,
  63444. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63445. $async$returnValue, $async$self = this, $content;
  63446. var $async$visitContentRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63447. if ($async$errorCode === 1)
  63448. return P._asyncRethrow($async$result, $async$completer);
  63449. while (true)
  63450. switch ($async$goto) {
  63451. case 0:
  63452. // Function start
  63453. $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
  63454. if ($content == null) {
  63455. $async$returnValue = null;
  63456. // goto return
  63457. $async$goto = 1;
  63458. break;
  63459. }
  63460. $async$goto = 3;
  63461. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new E._EvaluateVisitor_visitContentRule_closure2($async$self, $content)), $async$visitContentRule$1);
  63462. case 3:
  63463. // returning from await.
  63464. $async$returnValue = null;
  63465. // goto return
  63466. $async$goto = 1;
  63467. break;
  63468. case 1:
  63469. // return
  63470. return P._asyncReturn($async$returnValue, $async$completer);
  63471. }
  63472. });
  63473. return P._asyncStartSync($async$visitContentRule$1, $async$completer);
  63474. },
  63475. visitDebugRule$1: function(node) {
  63476. return this.visitDebugRule$body$_EvaluateVisitor0(node);
  63477. },
  63478. visitDebugRule$body$_EvaluateVisitor0: function(node) {
  63479. var $async$goto = 0,
  63480. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63481. $async$returnValue, $async$self = this, value, t1;
  63482. var $async$visitDebugRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63483. if ($async$errorCode === 1)
  63484. return P._asyncRethrow($async$result, $async$completer);
  63485. while (true)
  63486. switch ($async$goto) {
  63487. case 0:
  63488. // Function start
  63489. $async$goto = 3;
  63490. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  63491. case 3:
  63492. // returning from await.
  63493. value = $async$result;
  63494. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  63495. $async$self._async_evaluate0$_logger.debug$2(0, t1, node.span);
  63496. $async$returnValue = null;
  63497. // goto return
  63498. $async$goto = 1;
  63499. break;
  63500. case 1:
  63501. // return
  63502. return P._asyncReturn($async$returnValue, $async$completer);
  63503. }
  63504. });
  63505. return P._asyncStartSync($async$visitDebugRule$1, $async$completer);
  63506. },
  63507. visitDeclaration$1: function(node) {
  63508. return this.visitDeclaration$body$_EvaluateVisitor0(node);
  63509. },
  63510. visitDeclaration$body$_EvaluateVisitor0: function(node) {
  63511. var $async$goto = 0,
  63512. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63513. $async$returnValue, $async$self = this, t1, $name, t2, cssValue, t3, oldDeclarationName, $async$temp1;
  63514. var $async$visitDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63515. if ($async$errorCode === 1)
  63516. return P._asyncRethrow($async$result, $async$completer);
  63517. while (true)
  63518. switch ($async$goto) {
  63519. case 0:
  63520. // Function start
  63521. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
  63522. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarm, node.span));
  63523. t1 = node.name;
  63524. $async$goto = 3;
  63525. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  63526. case 3:
  63527. // returning from await.
  63528. $name = $async$result;
  63529. t2 = $async$self._async_evaluate0$_declarationName;
  63530. if (t2 != null)
  63531. $name = new F.CssValue0(t2 + "-" + H.S($name.get$value($name)), $name.get$span(), type$.CssValue_legacy_String_2);
  63532. t2 = node.value;
  63533. $async$goto = t2 == null ? 4 : 6;
  63534. break;
  63535. case 4:
  63536. // then
  63537. $async$result = null;
  63538. // goto join
  63539. $async$goto = 5;
  63540. break;
  63541. case 6:
  63542. // else
  63543. $async$temp1 = F;
  63544. $async$goto = 7;
  63545. return P._asyncAwait(t2.accept$1($async$self), $async$visitDeclaration$1);
  63546. case 7:
  63547. // returning from await.
  63548. $async$result = new $async$temp1.CssValue0($async$result, t2.get$span(), type$.CssValue_legacy_Value_2);
  63549. case 5:
  63550. // join
  63551. cssValue = $async$result;
  63552. if (cssValue != null) {
  63553. t3 = cssValue.value;
  63554. t3 = !t3.get$isBlank() || t3.get$asList().length === 0;
  63555. } else
  63556. t3 = false;
  63557. if (t3) {
  63558. t3 = $async$self._async_evaluate0$_parent;
  63559. t1 = C.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  63560. t2 = $async$self._async_evaluate0$_expressionNode$1(t2);
  63561. t2 = t2 == null ? null : t2.get$span();
  63562. t3.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1, t2));
  63563. } else if (J.startsWith$1$s($name.get$value($name), "--") && node.children == null)
  63564. throw H.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", t2.get$span()));
  63565. $async$goto = node.children != null ? 8 : 9;
  63566. break;
  63567. case 8:
  63568. // then
  63569. oldDeclarationName = $async$self._async_evaluate0$_declarationName;
  63570. $async$self._async_evaluate0$_declarationName = $name.get$value($name);
  63571. $async$goto = 10;
  63572. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new E._EvaluateVisitor_visitDeclaration_closure2($async$self, node), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  63573. case 10:
  63574. // returning from await.
  63575. $async$self._async_evaluate0$_declarationName = oldDeclarationName;
  63576. case 9:
  63577. // join
  63578. $async$returnValue = null;
  63579. // goto return
  63580. $async$goto = 1;
  63581. break;
  63582. case 1:
  63583. // return
  63584. return P._asyncReturn($async$returnValue, $async$completer);
  63585. }
  63586. });
  63587. return P._asyncStartSync($async$visitDeclaration$1, $async$completer);
  63588. },
  63589. visitEachRule$1: function(node) {
  63590. return this.visitEachRule$body$_EvaluateVisitor0(node);
  63591. },
  63592. visitEachRule$body$_EvaluateVisitor0: function(node) {
  63593. var $async$goto = 0,
  63594. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63595. $async$returnValue, $async$self = this, t1, list, nodeWithSpan, setVariables;
  63596. var $async$visitEachRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63597. if ($async$errorCode === 1)
  63598. return P._asyncRethrow($async$result, $async$completer);
  63599. while (true)
  63600. switch ($async$goto) {
  63601. case 0:
  63602. // Function start
  63603. t1 = node.list;
  63604. $async$goto = 3;
  63605. return P._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  63606. case 3:
  63607. // returning from await.
  63608. list = $async$result;
  63609. nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
  63610. setVariables = node.variables.length === 1 ? new E._EvaluateVisitor_visitEachRule_closure8($async$self, node, nodeWithSpan) : new E._EvaluateVisitor_visitEachRule_closure9($async$self, node, nodeWithSpan);
  63611. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitEachRule_closure10($async$self, list, setVariables, node), true, type$.legacy_Value_2);
  63612. // goto return
  63613. $async$goto = 1;
  63614. break;
  63615. case 1:
  63616. // return
  63617. return P._asyncReturn($async$returnValue, $async$completer);
  63618. }
  63619. });
  63620. return P._asyncStartSync($async$visitEachRule$1, $async$completer);
  63621. },
  63622. _async_evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  63623. var i,
  63624. list = value.get$asList(),
  63625. t1 = variables.length,
  63626. minLength = Math.min(t1, list.length);
  63627. for (i = 0; i < minLength; ++i)
  63628. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  63629. for (i = minLength; i < t1; ++i)
  63630. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  63631. },
  63632. visitErrorRule$1: function(node) {
  63633. return this.visitErrorRule$body$_EvaluateVisitor0(node);
  63634. },
  63635. visitErrorRule$body$_EvaluateVisitor0: function(node) {
  63636. var $async$goto = 0,
  63637. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63638. $async$self = this, $async$temp1, $async$temp2;
  63639. var $async$visitErrorRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63640. if ($async$errorCode === 1)
  63641. return P._asyncRethrow($async$result, $async$completer);
  63642. while (true)
  63643. switch ($async$goto) {
  63644. case 0:
  63645. // Function start
  63646. $async$temp1 = H;
  63647. $async$temp2 = J;
  63648. $async$goto = 2;
  63649. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  63650. case 2:
  63651. // returning from await.
  63652. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
  63653. // implicit return
  63654. return P._asyncReturn(null, $async$completer);
  63655. }
  63656. });
  63657. return P._asyncStartSync($async$visitErrorRule$1, $async$completer);
  63658. },
  63659. visitExtendRule$1: function(node) {
  63660. return this.visitExtendRule$body$_EvaluateVisitor0(node);
  63661. },
  63662. visitExtendRule$body$_EvaluateVisitor0: function(node) {
  63663. var $async$goto = 0,
  63664. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63665. $async$returnValue, $async$self = this, targetText, t1, t2, t3, _i, t4;
  63666. var $async$visitExtendRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63667. if ($async$errorCode === 1)
  63668. return P._asyncRethrow($async$result, $async$completer);
  63669. while (true)
  63670. switch ($async$goto) {
  63671. case 0:
  63672. // Function start
  63673. if (!($async$self._async_evaluate0$_styleRule != null && !$async$self._async_evaluate0$_atRootExcludingStyleRule) || $async$self._async_evaluate0$_declarationName != null)
  63674. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span));
  63675. $async$goto = 3;
  63676. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  63677. case 3:
  63678. // returning from await.
  63679. targetText = $async$result;
  63680. for (t1 = $async$self._async_evaluate0$_adjustParseError$2(targetText, new E._EvaluateVisitor_visitExtendRule_closure2($async$self, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  63681. t4 = t1[_i].components;
  63682. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  63683. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.get$span()));
  63684. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  63685. if (t4.length !== 1)
  63686. throw H.wrapException(E.SassFormatException$0(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.get$span()));
  63687. $async$self._async_evaluate0$_extender.addExtension$4($async$self._async_evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, $async$self._async_evaluate0$_mediaQueries);
  63688. }
  63689. $async$returnValue = null;
  63690. // goto return
  63691. $async$goto = 1;
  63692. break;
  63693. case 1:
  63694. // return
  63695. return P._asyncReturn($async$returnValue, $async$completer);
  63696. }
  63697. });
  63698. return P._asyncStartSync($async$visitExtendRule$1, $async$completer);
  63699. },
  63700. visitAtRule$1: function(node) {
  63701. return this.visitAtRule$body$_EvaluateVisitor0(node);
  63702. },
  63703. visitAtRule$body$_EvaluateVisitor0: function(node) {
  63704. var $async$goto = 0,
  63705. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63706. $async$returnValue, $async$self = this, $name, t1, value, wasInKeyframes, wasInUnknownAtRule;
  63707. var $async$visitAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63708. if ($async$errorCode === 1)
  63709. return P._asyncRethrow($async$result, $async$completer);
  63710. while (true)
  63711. switch ($async$goto) {
  63712. case 0:
  63713. // Function start
  63714. if ($async$self._async_evaluate0$_declarationName != null)
  63715. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  63716. $async$goto = 3;
  63717. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  63718. case 3:
  63719. // returning from await.
  63720. $name = $async$result;
  63721. t1 = node.value;
  63722. $async$goto = t1 == null ? 4 : 6;
  63723. break;
  63724. case 4:
  63725. // then
  63726. $async$result = null;
  63727. // goto join
  63728. $async$goto = 5;
  63729. break;
  63730. case 6:
  63731. // else
  63732. $async$goto = 7;
  63733. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true), $async$visitAtRule$1);
  63734. case 7:
  63735. // returning from await.
  63736. case 5:
  63737. // join
  63738. value = $async$result;
  63739. if (node.children == null) {
  63740. $async$self._async_evaluate0$_parent.addChild$1(U.ModifiableCssAtRule$0($name, node.span, true, value));
  63741. $async$returnValue = null;
  63742. // goto return
  63743. $async$goto = 1;
  63744. break;
  63745. }
  63746. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  63747. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  63748. if (B.unvendor0($name.get$value($name)) === "keyframes")
  63749. $async$self._async_evaluate0$_inKeyframes = true;
  63750. else
  63751. $async$self._async_evaluate0$_inUnknownAtRule = true;
  63752. $async$goto = 8;
  63753. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$0($name, node.span, false, value), new E._EvaluateVisitor_visitAtRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitAtRule_closure6(), type$.legacy_ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
  63754. case 8:
  63755. // returning from await.
  63756. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  63757. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  63758. $async$returnValue = null;
  63759. // goto return
  63760. $async$goto = 1;
  63761. break;
  63762. case 1:
  63763. // return
  63764. return P._asyncReturn($async$returnValue, $async$completer);
  63765. }
  63766. });
  63767. return P._asyncStartSync($async$visitAtRule$1, $async$completer);
  63768. },
  63769. visitForRule$1: function(node) {
  63770. return this.visitForRule$body$_EvaluateVisitor0(node);
  63771. },
  63772. visitForRule$body$_EvaluateVisitor0: function(node) {
  63773. var $async$goto = 0,
  63774. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63775. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  63776. var $async$visitForRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63777. if ($async$errorCode === 1)
  63778. return P._asyncRethrow($async$result, $async$completer);
  63779. while (true)
  63780. switch ($async$goto) {
  63781. case 0:
  63782. // Function start
  63783. t1 = {};
  63784. t2 = node.from;
  63785. t3 = type$.legacy_SassNumber_2;
  63786. $async$goto = 3;
  63787. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new E._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
  63788. case 3:
  63789. // returning from await.
  63790. fromNumber = $async$result;
  63791. t4 = node.to;
  63792. $async$goto = 4;
  63793. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new E._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
  63794. case 4:
  63795. // returning from await.
  63796. toNumber = $async$result;
  63797. from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitForRule_closure16(fromNumber, toNumber));
  63798. to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new E._EvaluateVisitor_visitForRule_closure17(toNumber));
  63799. direction = from > to ? -1 : 1;
  63800. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  63801. $async$returnValue = null;
  63802. // goto return
  63803. $async$goto = 1;
  63804. break;
  63805. }
  63806. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new E._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction), true, type$.legacy_Value_2);
  63807. // goto return
  63808. $async$goto = 1;
  63809. break;
  63810. case 1:
  63811. // return
  63812. return P._asyncReturn($async$returnValue, $async$completer);
  63813. }
  63814. });
  63815. return P._asyncStartSync($async$visitForRule$1, $async$completer);
  63816. },
  63817. visitForwardRule$1: function(node) {
  63818. return this.visitForwardRule$body$_EvaluateVisitor0(node);
  63819. },
  63820. visitForwardRule$body$_EvaluateVisitor0: function(node) {
  63821. var $async$goto = 0,
  63822. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63823. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  63824. var $async$visitForwardRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63825. if ($async$errorCode === 1)
  63826. return P._asyncRethrow($async$result, $async$completer);
  63827. while (true)
  63828. switch ($async$goto) {
  63829. case 0:
  63830. // Function start
  63831. oldConfiguration = $async$self._async_evaluate0$_configuration;
  63832. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  63833. t1 = node.configuration;
  63834. t2 = t1.length;
  63835. t3 = node.url;
  63836. $async$goto = t2 !== 0 ? 3 : 5;
  63837. break;
  63838. case 3:
  63839. // then
  63840. $async$goto = 6;
  63841. return P._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  63842. case 6:
  63843. // returning from await.
  63844. newConfiguration = $async$result;
  63845. $async$goto = 7;
  63846. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
  63847. case 7:
  63848. // returning from await.
  63849. t3 = type$.legacy_String;
  63850. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  63851. for (_i = 0; _i < t2; ++_i) {
  63852. variable = t1[_i];
  63853. if (!variable.isGuarded)
  63854. t4.add$1(0, variable.name);
  63855. }
  63856. $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  63857. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  63858. for (_i = 0; _i < t2; ++_i)
  63859. t3.add$1(0, t1[_i].name);
  63860. $async$self._async_evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  63861. // goto join
  63862. $async$goto = 4;
  63863. break;
  63864. case 5:
  63865. // else
  63866. $async$self._async_evaluate0$_configuration = adjustedConfiguration;
  63867. $async$goto = 8;
  63868. return P._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new E._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
  63869. case 8:
  63870. // returning from await.
  63871. $async$self._async_evaluate0$_configuration = oldConfiguration;
  63872. case 4:
  63873. // join
  63874. $async$returnValue = null;
  63875. // goto return
  63876. $async$goto = 1;
  63877. break;
  63878. case 1:
  63879. // return
  63880. return P._asyncReturn($async$returnValue, $async$completer);
  63881. }
  63882. });
  63883. return P._asyncStartSync($async$visitForwardRule$1, $async$completer);
  63884. },
  63885. _async_evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  63886. return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
  63887. },
  63888. _addForwardConfiguration$body$_EvaluateVisitor0: function(configuration, node) {
  63889. var $async$goto = 0,
  63890. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Configuration_2),
  63891. $async$returnValue, $async$self = this, t2, t3, _i, variable, t4, t5, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  63892. var $async$_async_evaluate0$_addForwardConfiguration$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63893. if ($async$errorCode === 1)
  63894. return P._asyncRethrow($async$result, $async$completer);
  63895. while (true)
  63896. switch ($async$goto) {
  63897. case 0:
  63898. // Function start
  63899. t1 = configuration._configuration$_values;
  63900. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2), type$.legacy_String, type$.legacy_ConfiguredValue_2);
  63901. t2 = node.configuration, t3 = t2.length, _i = 0;
  63902. case 3:
  63903. // for condition
  63904. if (!(_i < t3)) {
  63905. // goto after for
  63906. $async$goto = 5;
  63907. break;
  63908. }
  63909. variable = t2[_i];
  63910. if (variable.isGuarded) {
  63911. t4 = variable.name;
  63912. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  63913. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  63914. newValues.$indexSet(0, t4, t5);
  63915. // goto for update
  63916. $async$goto = 4;
  63917. break;
  63918. }
  63919. }
  63920. t4 = variable.name;
  63921. t5 = variable.expression;
  63922. $async$temp1 = newValues;
  63923. $async$temp2 = t4;
  63924. $async$temp3 = Z;
  63925. $async$goto = 6;
  63926. return P._asyncAwait(t5.accept$1($async$self), $async$_async_evaluate0$_addForwardConfiguration$2);
  63927. case 6:
  63928. // returning from await.
  63929. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  63930. case 4:
  63931. // for update
  63932. ++_i;
  63933. // goto for condition
  63934. $async$goto = 3;
  63935. break;
  63936. case 5:
  63937. // after for
  63938. $async$returnValue = new A.Configuration0(newValues, node, false);
  63939. // goto return
  63940. $async$goto = 1;
  63941. break;
  63942. case 1:
  63943. // return
  63944. return P._asyncReturn($async$returnValue, $async$completer);
  63945. }
  63946. });
  63947. return P._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
  63948. },
  63949. _async_evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  63950. var t1, t2, t3, _i, $name;
  63951. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  63952. $name = t2[_i];
  63953. if (except.contains$1(0, $name))
  63954. continue;
  63955. if (!downstream._configuration$_values.containsKey$1($name))
  63956. if (!t1.get$isEmpty(t1))
  63957. t1.remove$1(0, $name);
  63958. }
  63959. },
  63960. _async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  63961. configuration._configuration$_values.forEach$1(0, new E._EvaluateVisitor__assertConfigurationIsEmpty_closure2(this, only, nameInError));
  63962. },
  63963. _async_evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  63964. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  63965. },
  63966. _async_evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  63967. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  63968. },
  63969. _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  63970. return this._async_evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  63971. },
  63972. visitFunctionRule$1: function(node) {
  63973. return this.visitFunctionRule$body$_EvaluateVisitor0(node);
  63974. },
  63975. visitFunctionRule$body$_EvaluateVisitor0: function(node) {
  63976. var $async$goto = 0,
  63977. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  63978. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  63979. var $async$visitFunctionRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  63980. if ($async$errorCode === 1)
  63981. return P._asyncRethrow($async$result, $async$completer);
  63982. while (true)
  63983. switch ($async$goto) {
  63984. case 0:
  63985. // Function start
  63986. t1 = $async$self._async_evaluate0$_environment;
  63987. t2 = t1.closure$0();
  63988. t3 = t1._async_environment0$_functions;
  63989. index = t3.length - 1;
  63990. t4 = node.name;
  63991. t1._async_environment0$_functionIndices.$indexSet(0, t4, index);
  63992. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment_2));
  63993. $async$returnValue = null;
  63994. // goto return
  63995. $async$goto = 1;
  63996. break;
  63997. case 1:
  63998. // return
  63999. return P._asyncReturn($async$returnValue, $async$completer);
  64000. }
  64001. });
  64002. return P._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  64003. },
  64004. visitIfRule$1: function(node) {
  64005. return this.visitIfRule$body$_EvaluateVisitor0(node);
  64006. },
  64007. visitIfRule$body$_EvaluateVisitor0: function(node) {
  64008. var $async$goto = 0,
  64009. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64010. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, _box_0;
  64011. var $async$visitIfRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64012. if ($async$errorCode === 1)
  64013. return P._asyncRethrow($async$result, $async$completer);
  64014. while (true)
  64015. switch ($async$goto) {
  64016. case 0:
  64017. // Function start
  64018. _box_0 = {};
  64019. _box_0.clause = node.lastClause;
  64020. t1 = node.clauses, t2 = t1.length, _i = 0;
  64021. case 3:
  64022. // for condition
  64023. if (!(_i < t2)) {
  64024. // goto after for
  64025. $async$goto = 5;
  64026. break;
  64027. }
  64028. clauseToCheck = t1[_i];
  64029. $async$goto = 6;
  64030. return P._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  64031. case 6:
  64032. // returning from await.
  64033. if ($async$result.get$isTruthy()) {
  64034. _box_0.clause = clauseToCheck;
  64035. // goto after for
  64036. $async$goto = 5;
  64037. break;
  64038. }
  64039. case 4:
  64040. // for update
  64041. ++_i;
  64042. // goto for condition
  64043. $async$goto = 3;
  64044. break;
  64045. case 5:
  64046. // after for
  64047. t1 = _box_0.clause;
  64048. if (t1 == null) {
  64049. $async$returnValue = null;
  64050. // goto return
  64051. $async$goto = 1;
  64052. break;
  64053. }
  64054. $async$goto = 7;
  64055. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitIfRule_closure2(_box_0, $async$self), true, t1.hasDeclarations, type$.legacy_Value_2), $async$visitIfRule$1);
  64056. case 7:
  64057. // returning from await.
  64058. $async$returnValue = $async$result;
  64059. // goto return
  64060. $async$goto = 1;
  64061. break;
  64062. case 1:
  64063. // return
  64064. return P._asyncReturn($async$returnValue, $async$completer);
  64065. }
  64066. });
  64067. return P._asyncStartSync($async$visitIfRule$1, $async$completer);
  64068. },
  64069. visitImportRule$1: function(node) {
  64070. return this.visitImportRule$body$_EvaluateVisitor0(node);
  64071. },
  64072. visitImportRule$body$_EvaluateVisitor0: function(node) {
  64073. var $async$goto = 0,
  64074. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64075. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  64076. var $async$visitImportRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64077. if ($async$errorCode === 1)
  64078. return P._asyncRethrow($async$result, $async$completer);
  64079. while (true)
  64080. switch ($async$goto) {
  64081. case 0:
  64082. // Function start
  64083. t1 = node.imports, t2 = t1.length, t3 = type$.legacy_StaticImport_2, _i = 0;
  64084. case 3:
  64085. // for condition
  64086. if (!(_i < t2)) {
  64087. // goto after for
  64088. $async$goto = 5;
  64089. break;
  64090. }
  64091. $import = t1[_i];
  64092. $async$goto = $import instanceof B.DynamicImport0 ? 6 : 8;
  64093. break;
  64094. case 6:
  64095. // then
  64096. $async$goto = 9;
  64097. return P._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
  64098. case 9:
  64099. // returning from await.
  64100. // goto join
  64101. $async$goto = 7;
  64102. break;
  64103. case 8:
  64104. // else
  64105. $async$goto = 10;
  64106. return P._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  64107. case 10:
  64108. // returning from await.
  64109. case 7:
  64110. // join
  64111. case 4:
  64112. // for update
  64113. ++_i;
  64114. // goto for condition
  64115. $async$goto = 3;
  64116. break;
  64117. case 5:
  64118. // after for
  64119. $async$returnValue = null;
  64120. // goto return
  64121. $async$goto = 1;
  64122. break;
  64123. case 1:
  64124. // return
  64125. return P._asyncReturn($async$returnValue, $async$completer);
  64126. }
  64127. });
  64128. return P._asyncStartSync($async$visitImportRule$1, $async$completer);
  64129. },
  64130. _async_evaluate0$_visitDynamicImport$1: function($import) {
  64131. return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new E._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
  64132. },
  64133. _async_evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  64134. return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
  64135. },
  64136. _async_evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  64137. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  64138. },
  64139. _async_evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  64140. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  64141. },
  64142. _loadStylesheet$body$_EvaluateVisitor0: function(url, span, baseUrl, forImport) {
  64143. var $async$goto = 0,
  64144. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2),
  64145. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, stylesheet, tuple, error, error0, message, t1, t2, t3, exception, message0, $async$exception;
  64146. var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64147. if ($async$errorCode === 1) {
  64148. $async$currentError = $async$result;
  64149. $async$goto = $async$handler;
  64150. }
  64151. while (true)
  64152. switch ($async$goto) {
  64153. case 0:
  64154. // Function start
  64155. $async$handler = 4;
  64156. $async$self._async_evaluate0$_importSpan = span;
  64157. $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 7 : 9;
  64158. break;
  64159. case 7:
  64160. // then
  64161. $async$goto = 10;
  64162. return P._asyncAwait($async$self._async_evaluate0$_importLikeNode$2(url, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  64163. case 10:
  64164. // returning from await.
  64165. stylesheet = $async$result;
  64166. if (stylesheet != null) {
  64167. $async$returnValue = new S.Tuple2(null, stylesheet, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2);
  64168. $async$next = [1];
  64169. // goto finally
  64170. $async$goto = 5;
  64171. break;
  64172. }
  64173. // goto join
  64174. $async$goto = 8;
  64175. break;
  64176. case 9:
  64177. // else
  64178. t1 = P.Uri_parse(url);
  64179. t2 = $async$self._async_evaluate0$_importer;
  64180. if (baseUrl == null) {
  64181. t3 = $async$self._async_evaluate0$_stylesheet;
  64182. t3 = t3 == null ? null : t3.span;
  64183. t3 = t3 == null ? null : t3.file.url;
  64184. } else
  64185. t3 = baseUrl;
  64186. $async$goto = 11;
  64187. return P._asyncAwait($async$self._async_evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  64188. case 11:
  64189. // returning from await.
  64190. tuple = $async$result;
  64191. if (tuple != null) {
  64192. $async$returnValue = tuple;
  64193. $async$next = [1];
  64194. // goto finally
  64195. $async$goto = 5;
  64196. break;
  64197. }
  64198. case 8:
  64199. // join
  64200. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  64201. throw H.wrapException(string$.x22packa);
  64202. else
  64203. throw H.wrapException("Can't find stylesheet to import.");
  64204. $async$next.push(6);
  64205. // goto finally
  64206. $async$goto = 5;
  64207. break;
  64208. case 4:
  64209. // catch
  64210. $async$handler = 3;
  64211. $async$exception = $async$currentError;
  64212. t1 = H.unwrapException($async$exception);
  64213. if (t1 instanceof E.SassException0) {
  64214. error = t1;
  64215. t1 = $async$self._async_evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  64216. throw H.wrapException(t1);
  64217. } else {
  64218. error0 = t1;
  64219. message = null;
  64220. try {
  64221. message = H._asStringS(J.get$message$x(error0));
  64222. } catch (exception) {
  64223. H.unwrapException($async$exception);
  64224. message0 = J.toString$0$(error0);
  64225. message = message0;
  64226. }
  64227. t1 = $async$self._async_evaluate0$_exception$1(message);
  64228. throw H.wrapException(t1);
  64229. }
  64230. $async$next.push(6);
  64231. // goto finally
  64232. $async$goto = 5;
  64233. break;
  64234. case 3:
  64235. // uncaught
  64236. $async$next = [2];
  64237. case 5:
  64238. // finally
  64239. $async$handler = 2;
  64240. $async$self._async_evaluate0$_importSpan = null;
  64241. // goto the next finally handler
  64242. $async$goto = $async$next.pop();
  64243. break;
  64244. case 6:
  64245. // after finally
  64246. case 1:
  64247. // return
  64248. return P._asyncReturn($async$returnValue, $async$completer);
  64249. case 2:
  64250. // rethrow
  64251. return P._asyncRethrow($async$currentError, $async$completer);
  64252. }
  64253. });
  64254. return P._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  64255. },
  64256. _async_evaluate0$_importLikeNode$2: function(originalUrl, forImport) {
  64257. return this._importLikeNode$body$_EvaluateVisitor(originalUrl, forImport);
  64258. },
  64259. _importLikeNode$body$_EvaluateVisitor: function(originalUrl, forImport) {
  64260. var $async$goto = 0,
  64261. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  64262. $async$returnValue, $async$self = this, contents, url, t1, result;
  64263. var $async$_async_evaluate0$_importLikeNode$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64264. if ($async$errorCode === 1)
  64265. return P._asyncRethrow($async$result, $async$completer);
  64266. while (true)
  64267. switch ($async$goto) {
  64268. case 0:
  64269. // Function start
  64270. t1 = $async$self._async_evaluate0$_stylesheet.span;
  64271. $async$goto = 3;
  64272. return P._asyncAwait($async$self._async_evaluate0$_nodeImporter.loadAsync$3(originalUrl, t1.file.url, forImport), $async$_async_evaluate0$_importLikeNode$2);
  64273. case 3:
  64274. // returning from await.
  64275. result = $async$result;
  64276. if (result == null) {
  64277. $async$returnValue = null;
  64278. // goto return
  64279. $async$goto = 1;
  64280. break;
  64281. }
  64282. contents = result.item1;
  64283. url = result.item2;
  64284. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  64285. $async$self._async_evaluate0$_includedFiles.add$1(0, t1);
  64286. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  64287. $async$returnValue = V.Stylesheet_Stylesheet$parse0(contents, t1, $async$self._async_evaluate0$_logger, url);
  64288. // goto return
  64289. $async$goto = 1;
  64290. break;
  64291. case 1:
  64292. // return
  64293. return P._asyncReturn($async$returnValue, $async$completer);
  64294. }
  64295. });
  64296. return P._asyncStartSync($async$_async_evaluate0$_importLikeNode$2, $async$completer);
  64297. },
  64298. _async_evaluate0$_visitStaticImport$1: function($import) {
  64299. return this._visitStaticImport$body$_EvaluateVisitor0($import);
  64300. },
  64301. _visitStaticImport$body$_EvaluateVisitor0: function($import) {
  64302. var $async$goto = 0,
  64303. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  64304. $async$returnValue, $async$self = this, resolvedSupports, t1, mediaQuery, node, t2, url, supports, $async$temp1, $async$temp2;
  64305. var $async$_async_evaluate0$_visitStaticImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64306. if ($async$errorCode === 1)
  64307. return P._asyncRethrow($async$result, $async$completer);
  64308. while (true)
  64309. switch ($async$goto) {
  64310. case 0:
  64311. // Function start
  64312. $async$goto = 3;
  64313. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
  64314. case 3:
  64315. // returning from await.
  64316. url = $async$result;
  64317. supports = $import.supports;
  64318. $async$goto = supports instanceof L.SupportsDeclaration0 ? 4 : 6;
  64319. break;
  64320. case 4:
  64321. // then
  64322. $async$temp1 = H;
  64323. $async$goto = 7;
  64324. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.name), $async$_async_evaluate0$_visitStaticImport$1);
  64325. case 7:
  64326. // returning from await.
  64327. $async$temp1 = $async$temp1.S($async$result) + ": ";
  64328. $async$temp2 = H;
  64329. $async$goto = 8;
  64330. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(supports.value), $async$_async_evaluate0$_visitStaticImport$1);
  64331. case 8:
  64332. // returning from await.
  64333. resolvedSupports = $async$temp1 + $async$temp2.S($async$result);
  64334. // goto join
  64335. $async$goto = 5;
  64336. break;
  64337. case 6:
  64338. // else
  64339. $async$goto = supports == null ? 9 : 11;
  64340. break;
  64341. case 9:
  64342. // then
  64343. $async$result = null;
  64344. // goto join
  64345. $async$goto = 10;
  64346. break;
  64347. case 11:
  64348. // else
  64349. $async$goto = 12;
  64350. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(supports), $async$_async_evaluate0$_visitStaticImport$1);
  64351. case 12:
  64352. // returning from await.
  64353. case 10:
  64354. // join
  64355. resolvedSupports = $async$result;
  64356. case 5:
  64357. // join
  64358. t1 = $import.media;
  64359. $async$goto = t1 == null ? 13 : 15;
  64360. break;
  64361. case 13:
  64362. // then
  64363. $async$result = null;
  64364. // goto join
  64365. $async$goto = 14;
  64366. break;
  64367. case 15:
  64368. // else
  64369. $async$goto = 16;
  64370. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(t1), $async$_async_evaluate0$_visitStaticImport$1);
  64371. case 16:
  64372. // returning from await.
  64373. case 14:
  64374. // join
  64375. mediaQuery = $async$result;
  64376. t1 = $import.span;
  64377. node = F.ModifiableCssImport$0(url, t1, mediaQuery, resolvedSupports == null ? null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), type$.CssValue_legacy_String_2));
  64378. t1 = $async$self._async_evaluate0$_parent;
  64379. t2 = $async$self._async_evaluate0$_root;
  64380. if (t1 != t2)
  64381. t1.addChild$1(node);
  64382. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  64383. $async$self._async_evaluate0$_root.addChild$1(node);
  64384. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64385. } else {
  64386. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  64387. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(node);
  64388. }
  64389. $async$returnValue = null;
  64390. // goto return
  64391. $async$goto = 1;
  64392. break;
  64393. case 1:
  64394. // return
  64395. return P._asyncReturn($async$returnValue, $async$completer);
  64396. }
  64397. });
  64398. return P._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
  64399. },
  64400. visitIncludeRule$1: function(node) {
  64401. return this.visitIncludeRule$body$_EvaluateVisitor0(node);
  64402. },
  64403. visitIncludeRule$body$_EvaluateVisitor0: function(node) {
  64404. var $async$goto = 0,
  64405. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64406. $async$returnValue, $async$self = this, nodeWithSpan, t1, t2, contentCallable, mixin;
  64407. var $async$visitIncludeRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64408. if ($async$errorCode === 1)
  64409. return P._asyncRethrow($async$result, $async$completer);
  64410. while (true)
  64411. switch ($async$goto) {
  64412. case 0:
  64413. // Function start
  64414. mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
  64415. if (mixin == null)
  64416. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", node.span));
  64417. nodeWithSpan = new B._FakeAstNode0(new E._EvaluateVisitor_visitIncludeRule_closure9(node));
  64418. $async$goto = type$.legacy_AsyncBuiltInCallable_2._is(mixin) ? 3 : 5;
  64419. break;
  64420. case 3:
  64421. // then
  64422. if (node.content != null)
  64423. throw H.wrapException($async$self._async_evaluate0$_exception$2("Mixin doesn't accept a content block.", node.span));
  64424. $async$goto = 6;
  64425. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan), $async$visitIncludeRule$1);
  64426. case 6:
  64427. // returning from await.
  64428. // goto join
  64429. $async$goto = 4;
  64430. break;
  64431. case 5:
  64432. // else
  64433. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment_2._is(mixin) ? 7 : 9;
  64434. break;
  64435. case 7:
  64436. // then
  64437. t1 = node.content;
  64438. t2 = t1 == null;
  64439. if (!t2 && !type$.legacy_MixinRule_2._as(mixin.declaration).hasContent)
  64440. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  64441. contentCallable = t2 ? null : new E.UserDefinedCallable0(t1, $async$self._async_evaluate0$_environment.closure$0(), type$.UserDefinedCallable_legacy_AsyncEnvironment_2);
  64442. $async$goto = 10;
  64443. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new E._EvaluateVisitor_visitIncludeRule_closure10($async$self, contentCallable, mixin, nodeWithSpan)), $async$visitIncludeRule$1);
  64444. case 10:
  64445. // returning from await.
  64446. // goto join
  64447. $async$goto = 8;
  64448. break;
  64449. case 9:
  64450. // else
  64451. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  64452. case 8:
  64453. // join
  64454. case 4:
  64455. // join
  64456. $async$returnValue = null;
  64457. // goto return
  64458. $async$goto = 1;
  64459. break;
  64460. case 1:
  64461. // return
  64462. return P._asyncReturn($async$returnValue, $async$completer);
  64463. }
  64464. });
  64465. return P._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  64466. },
  64467. visitMixinRule$1: function(node) {
  64468. return this.visitMixinRule$body$_EvaluateVisitor0(node);
  64469. },
  64470. visitMixinRule$body$_EvaluateVisitor0: function(node) {
  64471. var $async$goto = 0,
  64472. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64473. $async$returnValue, $async$self = this, t1, t2, t3, index, t4;
  64474. var $async$visitMixinRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64475. if ($async$errorCode === 1)
  64476. return P._asyncRethrow($async$result, $async$completer);
  64477. while (true)
  64478. switch ($async$goto) {
  64479. case 0:
  64480. // Function start
  64481. t1 = $async$self._async_evaluate0$_environment;
  64482. t2 = t1.closure$0();
  64483. t3 = t1._async_environment0$_mixins;
  64484. index = t3.length - 1;
  64485. t4 = node.name;
  64486. t1._async_environment0$_mixinIndices.$indexSet(0, t4, index);
  64487. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_AsyncEnvironment_2));
  64488. $async$returnValue = null;
  64489. // goto return
  64490. $async$goto = 1;
  64491. break;
  64492. case 1:
  64493. // return
  64494. return P._asyncReturn($async$returnValue, $async$completer);
  64495. }
  64496. });
  64497. return P._asyncStartSync($async$visitMixinRule$1, $async$completer);
  64498. },
  64499. visitLoudComment$1: function(node) {
  64500. return this.visitLoudComment$body$_EvaluateVisitor0(node);
  64501. },
  64502. visitLoudComment$body$_EvaluateVisitor0: function(node) {
  64503. var $async$goto = 0,
  64504. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64505. $async$returnValue, $async$self = this, t1, t2, $async$temp1, $async$temp2;
  64506. var $async$visitLoudComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64507. if ($async$errorCode === 1)
  64508. return P._asyncRethrow($async$result, $async$completer);
  64509. while (true)
  64510. switch ($async$goto) {
  64511. case 0:
  64512. // Function start
  64513. if ($async$self._async_evaluate0$_inFunction) {
  64514. $async$returnValue = null;
  64515. // goto return
  64516. $async$goto = 1;
  64517. break;
  64518. }
  64519. t1 = $async$self._async_evaluate0$_parent;
  64520. t2 = $async$self._async_evaluate0$_root;
  64521. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  64522. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  64523. t1 = node.text;
  64524. $async$temp1 = $async$self._async_evaluate0$_parent;
  64525. $async$temp2 = R;
  64526. $async$goto = 3;
  64527. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
  64528. case 3:
  64529. // returning from await.
  64530. $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
  64531. $async$returnValue = null;
  64532. // goto return
  64533. $async$goto = 1;
  64534. break;
  64535. case 1:
  64536. // return
  64537. return P._asyncReturn($async$returnValue, $async$completer);
  64538. }
  64539. });
  64540. return P._asyncStartSync($async$visitLoudComment$1, $async$completer);
  64541. },
  64542. visitMediaRule$1: function(node) {
  64543. return this.visitMediaRule$body$_EvaluateVisitor0(node);
  64544. },
  64545. visitMediaRule$body$_EvaluateVisitor0: function(node) {
  64546. var $async$goto = 0,
  64547. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64548. $async$returnValue, $async$self = this, queries, t1, mergedQueries;
  64549. var $async$visitMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64550. if ($async$errorCode === 1)
  64551. return P._asyncRethrow($async$result, $async$completer);
  64552. while (true)
  64553. switch ($async$goto) {
  64554. case 0:
  64555. // Function start
  64556. if ($async$self._async_evaluate0$_declarationName != null)
  64557. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  64558. $async$goto = 3;
  64559. return P._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  64560. case 3:
  64561. // returning from await.
  64562. queries = $async$result;
  64563. t1 = $async$self._async_evaluate0$_mediaQueries;
  64564. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, queries);
  64565. t1 = mergedQueries == null;
  64566. if (!t1 && mergedQueries.length === 0) {
  64567. $async$returnValue = null;
  64568. // goto return
  64569. $async$goto = 1;
  64570. break;
  64571. }
  64572. t1 = t1 ? queries : mergedQueries;
  64573. $async$goto = 4;
  64574. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitMediaRule_closure5($async$self, mergedQueries, queries, node), node.hasDeclarations, new E._EvaluateVisitor_visitMediaRule_closure6(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
  64575. case 4:
  64576. // returning from await.
  64577. $async$returnValue = null;
  64578. // goto return
  64579. $async$goto = 1;
  64580. break;
  64581. case 1:
  64582. // return
  64583. return P._asyncReturn($async$returnValue, $async$completer);
  64584. }
  64585. });
  64586. return P._asyncStartSync($async$visitMediaRule$1, $async$completer);
  64587. },
  64588. _async_evaluate0$_visitMediaQueries$1: function(interpolation) {
  64589. return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
  64590. },
  64591. _visitMediaQueries$body$_EvaluateVisitor0: function(interpolation) {
  64592. var $async$goto = 0,
  64593. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_List_legacy_CssMediaQuery_2),
  64594. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  64595. var $async$_async_evaluate0$_visitMediaQueries$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64596. if ($async$errorCode === 1)
  64597. return P._asyncRethrow($async$result, $async$completer);
  64598. while (true)
  64599. switch ($async$goto) {
  64600. case 0:
  64601. // Function start
  64602. $async$temp1 = interpolation;
  64603. $async$temp2 = E;
  64604. $async$goto = 3;
  64605. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
  64606. case 3:
  64607. // returning from await.
  64608. $async$returnValue = $async$self._async_evaluate0$_adjustParseError$2($async$temp1, new $async$temp2._EvaluateVisitor__visitMediaQueries_closure2($async$self, $async$result));
  64609. // goto return
  64610. $async$goto = 1;
  64611. break;
  64612. case 1:
  64613. // return
  64614. return P._asyncReturn($async$returnValue, $async$completer);
  64615. }
  64616. });
  64617. return P._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
  64618. },
  64619. _async_evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  64620. var t1, t2, t3, t4, t5, result,
  64621. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2);
  64622. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  64623. t4 = t1.get$current(t1);
  64624. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  64625. result = t4.merge$1(t5.get$current(t5));
  64626. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  64627. continue;
  64628. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  64629. return null;
  64630. queries.push(t3._as(result).query);
  64631. }
  64632. }
  64633. return queries;
  64634. },
  64635. visitReturnRule$1: function(node) {
  64636. return node.expression.accept$1(this);
  64637. },
  64638. visitSilentComment$1: function(node) {
  64639. return this.visitSilentComment$body$_EvaluateVisitor0(node);
  64640. },
  64641. visitSilentComment$body$_EvaluateVisitor0: function(node) {
  64642. var $async$goto = 0,
  64643. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64644. $async$returnValue;
  64645. var $async$visitSilentComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64646. if ($async$errorCode === 1)
  64647. return P._asyncRethrow($async$result, $async$completer);
  64648. while (true)
  64649. switch ($async$goto) {
  64650. case 0:
  64651. // Function start
  64652. $async$returnValue = null;
  64653. // goto return
  64654. $async$goto = 1;
  64655. break;
  64656. case 1:
  64657. // return
  64658. return P._asyncReturn($async$returnValue, $async$completer);
  64659. }
  64660. });
  64661. return P._asyncStartSync($async$visitSilentComment$1, $async$completer);
  64662. },
  64663. visitStyleRule$1: function(node) {
  64664. return this.visitStyleRule$body$_EvaluateVisitor0(node);
  64665. },
  64666. visitStyleRule$body$_EvaluateVisitor0: function(node) {
  64667. var $async$goto = 0,
  64668. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64669. $async$returnValue, $async$self = this, t2, selectorText, parsedSelector, rule, oldAtRootExcludingStyleRule, t1;
  64670. var $async$visitStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64671. if ($async$errorCode === 1)
  64672. return P._asyncRethrow($async$result, $async$completer);
  64673. while (true)
  64674. switch ($async$goto) {
  64675. case 0:
  64676. // Function start
  64677. t1 = {};
  64678. if ($async$self._async_evaluate0$_declarationName != null)
  64679. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  64680. t2 = node.selector;
  64681. $async$goto = 3;
  64682. return P._asyncAwait($async$self._async_evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true), $async$visitStyleRule$1);
  64683. case 3:
  64684. // returning from await.
  64685. selectorText = $async$result;
  64686. $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
  64687. break;
  64688. case 4:
  64689. // then
  64690. $async$goto = 6;
  64691. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$0(new F.CssValue0(P.List_List$unmodifiable($async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure20($async$self, selectorText)), type$.legacy_String), t2.span, type$.CssValue_legacy_List_legacy_String_2), node.span), new E._EvaluateVisitor_visitStyleRule_closure21($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure22(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
  64692. case 6:
  64693. // returning from await.
  64694. $async$returnValue = null;
  64695. // goto return
  64696. $async$goto = 1;
  64697. break;
  64698. case 5:
  64699. // join
  64700. t1.parsedSelector = $async$self._async_evaluate0$_adjustParseError$2(t2, new E._EvaluateVisitor_visitStyleRule_closure23($async$self, selectorText));
  64701. parsedSelector = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new E._EvaluateVisitor_visitStyleRule_closure24(t1, $async$self));
  64702. t1.parsedSelector = parsedSelector;
  64703. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(parsedSelector, t2.span, $async$self._async_evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  64704. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  64705. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  64706. $async$goto = 7;
  64707. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitStyleRule_closure25($async$self, rule, node), node.hasDeclarations, new E._EvaluateVisitor_visitStyleRule_closure26(), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
  64708. case 7:
  64709. // returning from await.
  64710. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  64711. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  64712. t1 = $async$self._async_evaluate0$_parent.children;
  64713. t1 = !t1.get$isEmpty(t1);
  64714. } else
  64715. t1 = false;
  64716. if (t1) {
  64717. t1 = $async$self._async_evaluate0$_parent.children;
  64718. t1.get$last(t1).isGroupEnd = true;
  64719. }
  64720. $async$returnValue = null;
  64721. // goto return
  64722. $async$goto = 1;
  64723. break;
  64724. case 1:
  64725. // return
  64726. return P._asyncReturn($async$returnValue, $async$completer);
  64727. }
  64728. });
  64729. return P._asyncStartSync($async$visitStyleRule$1, $async$completer);
  64730. },
  64731. visitSupportsRule$1: function(node) {
  64732. return this.visitSupportsRule$body$_EvaluateVisitor0(node);
  64733. },
  64734. visitSupportsRule$body$_EvaluateVisitor0: function(node) {
  64735. var $async$goto = 0,
  64736. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64737. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  64738. var $async$visitSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64739. if ($async$errorCode === 1)
  64740. return P._asyncRethrow($async$result, $async$completer);
  64741. while (true)
  64742. switch ($async$goto) {
  64743. case 0:
  64744. // Function start
  64745. if ($async$self._async_evaluate0$_declarationName != null)
  64746. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  64747. t1 = node.condition;
  64748. $async$temp1 = B;
  64749. $async$temp2 = F;
  64750. $async$goto = 4;
  64751. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  64752. case 4:
  64753. // returning from await.
  64754. $async$goto = 3;
  64755. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$0(new $async$temp2.CssValue0($async$result, t1.get$span(), type$.CssValue_legacy_String_2), node.span), new E._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new E._EvaluateVisitor_visitSupportsRule_closure6(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
  64756. case 3:
  64757. // returning from await.
  64758. $async$returnValue = null;
  64759. // goto return
  64760. $async$goto = 1;
  64761. break;
  64762. case 1:
  64763. // return
  64764. return P._asyncReturn($async$returnValue, $async$completer);
  64765. }
  64766. });
  64767. return P._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  64768. },
  64769. _async_evaluate0$_visitSupportsCondition$1: function(condition) {
  64770. return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
  64771. },
  64772. _visitSupportsCondition$body$_EvaluateVisitor0: function(condition) {
  64773. var $async$goto = 0,
  64774. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  64775. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  64776. var $async$_async_evaluate0$_visitSupportsCondition$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64777. if ($async$errorCode === 1)
  64778. return P._asyncRethrow($async$result, $async$completer);
  64779. while (true)
  64780. switch ($async$goto) {
  64781. case 0:
  64782. // Function start
  64783. $async$goto = condition instanceof U.SupportsOperation0 ? 3 : 5;
  64784. break;
  64785. case 3:
  64786. // then
  64787. t1 = condition.operator;
  64788. $async$temp1 = H;
  64789. $async$goto = 6;
  64790. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.left, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  64791. case 6:
  64792. // returning from await.
  64793. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  64794. $async$temp2 = H;
  64795. $async$goto = 7;
  64796. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  64797. case 7:
  64798. // returning from await.
  64799. $async$returnValue = $async$temp1 + $async$temp2.S($async$result);
  64800. // goto return
  64801. $async$goto = 1;
  64802. break;
  64803. // goto join
  64804. $async$goto = 4;
  64805. break;
  64806. case 5:
  64807. // else
  64808. $async$goto = condition instanceof M.SupportsNegation0 ? 8 : 10;
  64809. break;
  64810. case 8:
  64811. // then
  64812. $async$temp1 = H;
  64813. $async$goto = 11;
  64814. return P._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
  64815. case 11:
  64816. // returning from await.
  64817. $async$returnValue = "not " + $async$temp1.S($async$result);
  64818. // goto return
  64819. $async$goto = 1;
  64820. break;
  64821. // goto join
  64822. $async$goto = 9;
  64823. break;
  64824. case 10:
  64825. // else
  64826. $async$goto = condition instanceof X.SupportsInterpolation0 ? 12 : 14;
  64827. break;
  64828. case 12:
  64829. // then
  64830. $async$goto = 15;
  64831. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
  64832. case 15:
  64833. // returning from await.
  64834. $async$returnValue = $async$result;
  64835. // goto return
  64836. $async$goto = 1;
  64837. break;
  64838. // goto join
  64839. $async$goto = 13;
  64840. break;
  64841. case 14:
  64842. // else
  64843. $async$goto = condition instanceof L.SupportsDeclaration0 ? 16 : 18;
  64844. break;
  64845. case 16:
  64846. // then
  64847. $async$temp1 = H;
  64848. $async$goto = 19;
  64849. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  64850. case 19:
  64851. // returning from await.
  64852. $async$temp1 = "(" + $async$temp1.S($async$result) + ": ";
  64853. $async$temp2 = H;
  64854. $async$goto = 20;
  64855. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(condition.value), $async$_async_evaluate0$_visitSupportsCondition$1);
  64856. case 20:
  64857. // returning from await.
  64858. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  64859. // goto return
  64860. $async$goto = 1;
  64861. break;
  64862. // goto join
  64863. $async$goto = 17;
  64864. break;
  64865. case 18:
  64866. // else
  64867. $async$goto = condition instanceof F.SupportsFunction0 ? 21 : 23;
  64868. break;
  64869. case 21:
  64870. // then
  64871. $async$temp1 = H;
  64872. $async$goto = 24;
  64873. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  64874. case 24:
  64875. // returning from await.
  64876. $async$temp1 = $async$temp1.S($async$result) + "(";
  64877. $async$temp2 = H;
  64878. $async$goto = 25;
  64879. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.$arguments), $async$_async_evaluate0$_visitSupportsCondition$1);
  64880. case 25:
  64881. // returning from await.
  64882. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  64883. // goto return
  64884. $async$goto = 1;
  64885. break;
  64886. // goto join
  64887. $async$goto = 22;
  64888. break;
  64889. case 23:
  64890. // else
  64891. $async$goto = condition instanceof Y.SupportsAnything0 ? 26 : 28;
  64892. break;
  64893. case 26:
  64894. // then
  64895. $async$temp1 = H;
  64896. $async$goto = 29;
  64897. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.contents), $async$_async_evaluate0$_visitSupportsCondition$1);
  64898. case 29:
  64899. // returning from await.
  64900. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  64901. // goto return
  64902. $async$goto = 1;
  64903. break;
  64904. // goto join
  64905. $async$goto = 27;
  64906. break;
  64907. case 28:
  64908. // else
  64909. $async$returnValue = null;
  64910. // goto return
  64911. $async$goto = 1;
  64912. break;
  64913. case 27:
  64914. // join
  64915. case 22:
  64916. // join
  64917. case 17:
  64918. // join
  64919. case 13:
  64920. // join
  64921. case 9:
  64922. // join
  64923. case 4:
  64924. // join
  64925. case 1:
  64926. // return
  64927. return P._asyncReturn($async$returnValue, $async$completer);
  64928. }
  64929. });
  64930. return P._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
  64931. },
  64932. _async_evaluate0$_parenthesize$2: function(condition, operator) {
  64933. return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
  64934. },
  64935. _async_evaluate0$_parenthesize$1: function(condition) {
  64936. return this._async_evaluate0$_parenthesize$2(condition, null);
  64937. },
  64938. _parenthesize$body$_EvaluateVisitor0: function(condition, operator) {
  64939. var $async$goto = 0,
  64940. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  64941. $async$returnValue, $async$self = this, t1, $async$temp1;
  64942. var $async$_async_evaluate0$_parenthesize$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64943. if ($async$errorCode === 1)
  64944. return P._asyncRethrow($async$result, $async$completer);
  64945. while (true)
  64946. switch ($async$goto) {
  64947. case 0:
  64948. // Function start
  64949. if (!(condition instanceof M.SupportsNegation0))
  64950. if (condition instanceof U.SupportsOperation0)
  64951. t1 = operator == null || operator !== condition.operator;
  64952. else
  64953. t1 = false;
  64954. else
  64955. t1 = true;
  64956. $async$goto = t1 ? 3 : 5;
  64957. break;
  64958. case 3:
  64959. // then
  64960. $async$temp1 = H;
  64961. $async$goto = 6;
  64962. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  64963. case 6:
  64964. // returning from await.
  64965. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  64966. // goto return
  64967. $async$goto = 1;
  64968. break;
  64969. // goto join
  64970. $async$goto = 4;
  64971. break;
  64972. case 5:
  64973. // else
  64974. $async$goto = 7;
  64975. return P._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  64976. case 7:
  64977. // returning from await.
  64978. $async$returnValue = $async$result;
  64979. // goto return
  64980. $async$goto = 1;
  64981. break;
  64982. case 4:
  64983. // join
  64984. case 1:
  64985. // return
  64986. return P._asyncReturn($async$returnValue, $async$completer);
  64987. }
  64988. });
  64989. return P._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
  64990. },
  64991. visitVariableDeclaration$1: function(node) {
  64992. return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
  64993. },
  64994. visitVariableDeclaration$body$_EvaluateVisitor0: function(node) {
  64995. var $async$goto = 0,
  64996. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  64997. $async$returnValue, $async$self = this, t1, value, t2, $async$temp1, $async$temp2, $async$temp3;
  64998. var $async$visitVariableDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  64999. if ($async$errorCode === 1)
  65000. return P._asyncRethrow($async$result, $async$completer);
  65001. while (true)
  65002. switch ($async$goto) {
  65003. case 0:
  65004. // Function start
  65005. if (node.isGuarded) {
  65006. if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
  65007. t1 = $async$self._async_evaluate0$_configuration._configuration$_values;
  65008. t1 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, node.name);
  65009. if (t1 != null) {
  65010. $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure8($async$self, node, t1));
  65011. $async$returnValue = null;
  65012. // goto return
  65013. $async$goto = 1;
  65014. break;
  65015. }
  65016. }
  65017. value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
  65018. if (value != null && !value.$eq(0, C.C_SassNull)) {
  65019. $async$returnValue = null;
  65020. // goto return
  65021. $async$goto = 1;
  65022. break;
  65023. }
  65024. }
  65025. if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
  65026. t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  65027. t2 = node.span;
  65028. $async$self._async_evaluate0$_logger.warn$4$deprecation$span$trace(0, t1, true, t2, $async$self._async_evaluate0$_stackTrace$1(t2));
  65029. }
  65030. $async$temp1 = node;
  65031. $async$temp2 = E;
  65032. $async$temp3 = node;
  65033. $async$goto = 3;
  65034. return P._asyncAwait(node.expression.accept$1($async$self), $async$visitVariableDeclaration$1);
  65035. case 3:
  65036. // returning from await.
  65037. $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$result.withoutSlash$0()));
  65038. $async$returnValue = null;
  65039. // goto return
  65040. $async$goto = 1;
  65041. break;
  65042. case 1:
  65043. // return
  65044. return P._asyncReturn($async$returnValue, $async$completer);
  65045. }
  65046. });
  65047. return P._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  65048. },
  65049. visitUseRule$1: function(node) {
  65050. return this.visitUseRule$body$_EvaluateVisitor0(node);
  65051. },
  65052. visitUseRule$body$_EvaluateVisitor0: function(node) {
  65053. var $async$goto = 0,
  65054. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65055. $async$returnValue, $async$self = this, configuration, t3, _i, variable, t4, t5, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  65056. var $async$visitUseRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65057. if ($async$errorCode === 1)
  65058. return P._asyncRethrow($async$result, $async$completer);
  65059. while (true)
  65060. switch ($async$goto) {
  65061. case 0:
  65062. // Function start
  65063. t1 = node.configuration;
  65064. t2 = t1.length;
  65065. $async$goto = t2 === 0 ? 3 : 5;
  65066. break;
  65067. case 3:
  65068. // then
  65069. configuration = C.Configuration_Map_empty_null_true0;
  65070. // goto join
  65071. $async$goto = 4;
  65072. break;
  65073. case 5:
  65074. // else
  65075. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  65076. _i = 0;
  65077. case 6:
  65078. // for condition
  65079. if (!(_i < t2)) {
  65080. // goto after for
  65081. $async$goto = 8;
  65082. break;
  65083. }
  65084. variable = t1[_i];
  65085. t4 = variable.name;
  65086. t5 = variable.expression;
  65087. $async$temp1 = t3;
  65088. $async$temp2 = t4;
  65089. $async$temp3 = Z;
  65090. $async$goto = 9;
  65091. return P._asyncAwait(t5.accept$1($async$self), $async$visitUseRule$1);
  65092. case 9:
  65093. // returning from await.
  65094. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$result.withoutSlash$0(), variable.span, $async$self._async_evaluate0$_expressionNode$1(t5)));
  65095. case 7:
  65096. // for update
  65097. ++_i;
  65098. // goto for condition
  65099. $async$goto = 6;
  65100. break;
  65101. case 8:
  65102. // after for
  65103. configuration = new A.Configuration0(t3, node, false);
  65104. case 4:
  65105. // join
  65106. $async$goto = 10;
  65107. return P._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new E._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
  65108. case 10:
  65109. // returning from await.
  65110. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
  65111. $async$returnValue = null;
  65112. // goto return
  65113. $async$goto = 1;
  65114. break;
  65115. case 1:
  65116. // return
  65117. return P._asyncReturn($async$returnValue, $async$completer);
  65118. }
  65119. });
  65120. return P._asyncStartSync($async$visitUseRule$1, $async$completer);
  65121. },
  65122. visitWarnRule$1: function(node) {
  65123. return this.visitWarnRule$body$_EvaluateVisitor0(node);
  65124. },
  65125. visitWarnRule$body$_EvaluateVisitor0: function(node) {
  65126. var $async$goto = 0,
  65127. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65128. $async$returnValue, $async$self = this, value, t1;
  65129. var $async$visitWarnRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65130. if ($async$errorCode === 1)
  65131. return P._asyncRethrow($async$result, $async$completer);
  65132. while (true)
  65133. switch ($async$goto) {
  65134. case 0:
  65135. // Function start
  65136. $async$goto = 3;
  65137. return P._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.legacy_Value_2), $async$visitWarnRule$1);
  65138. case 3:
  65139. // returning from await.
  65140. value = $async$result;
  65141. t1 = value instanceof D.SassString0 ? value.text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
  65142. $async$self._async_evaluate0$_logger.warn$2$trace(0, t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
  65143. $async$returnValue = null;
  65144. // goto return
  65145. $async$goto = 1;
  65146. break;
  65147. case 1:
  65148. // return
  65149. return P._asyncReturn($async$returnValue, $async$completer);
  65150. }
  65151. });
  65152. return P._asyncStartSync($async$visitWarnRule$1, $async$completer);
  65153. },
  65154. visitWhileRule$1: function(node) {
  65155. return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new E._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.legacy_Value_2);
  65156. },
  65157. visitBinaryOperationExpression$1: function(node) {
  65158. return this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new E._EvaluateVisitor_visitBinaryOperationExpression_closure2(this, node), type$.legacy_Value_2);
  65159. },
  65160. visitValueExpression$1: function(node) {
  65161. return this.visitValueExpression$body$_EvaluateVisitor0(node);
  65162. },
  65163. visitValueExpression$body$_EvaluateVisitor0: function(node) {
  65164. var $async$goto = 0,
  65165. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65166. $async$returnValue;
  65167. var $async$visitValueExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65168. if ($async$errorCode === 1)
  65169. return P._asyncRethrow($async$result, $async$completer);
  65170. while (true)
  65171. switch ($async$goto) {
  65172. case 0:
  65173. // Function start
  65174. $async$returnValue = node.value;
  65175. // goto return
  65176. $async$goto = 1;
  65177. break;
  65178. case 1:
  65179. // return
  65180. return P._asyncReturn($async$returnValue, $async$completer);
  65181. }
  65182. });
  65183. return P._asyncStartSync($async$visitValueExpression$1, $async$completer);
  65184. },
  65185. visitVariableExpression$1: function(node) {
  65186. return this.visitVariableExpression$body$_EvaluateVisitor0(node);
  65187. },
  65188. visitVariableExpression$body$_EvaluateVisitor0: function(node) {
  65189. var $async$goto = 0,
  65190. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65191. $async$returnValue, $async$self = this, result;
  65192. var $async$visitVariableExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65193. if ($async$errorCode === 1)
  65194. return P._asyncRethrow($async$result, $async$completer);
  65195. while (true)
  65196. switch ($async$goto) {
  65197. case 0:
  65198. // Function start
  65199. result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
  65200. if (result != null) {
  65201. $async$returnValue = result;
  65202. // goto return
  65203. $async$goto = 1;
  65204. break;
  65205. }
  65206. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
  65207. case 1:
  65208. // return
  65209. return P._asyncReturn($async$returnValue, $async$completer);
  65210. }
  65211. });
  65212. return P._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  65213. },
  65214. visitUnaryOperationExpression$1: function(node) {
  65215. return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
  65216. },
  65217. visitUnaryOperationExpression$body$_EvaluateVisitor0: function(node) {
  65218. var $async$goto = 0,
  65219. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65220. $async$returnValue, $async$self = this, operand, t1;
  65221. var $async$visitUnaryOperationExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65222. if ($async$errorCode === 1)
  65223. return P._asyncRethrow($async$result, $async$completer);
  65224. while (true)
  65225. $async$outer:
  65226. switch ($async$goto) {
  65227. case 0:
  65228. // Function start
  65229. $async$goto = 3;
  65230. return P._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  65231. case 3:
  65232. // returning from await.
  65233. operand = $async$result;
  65234. t1 = node.operator;
  65235. switch (t1) {
  65236. case C.UnaryOperator_j2w0:
  65237. $async$returnValue = operand.unaryPlus$0();
  65238. // goto return
  65239. $async$goto = 1;
  65240. break $async$outer;
  65241. case C.UnaryOperator_U4G0:
  65242. $async$returnValue = operand.unaryMinus$0();
  65243. // goto return
  65244. $async$goto = 1;
  65245. break $async$outer;
  65246. case C.UnaryOperator_zDx0:
  65247. operand.toString;
  65248. $async$returnValue = new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  65249. // goto return
  65250. $async$goto = 1;
  65251. break $async$outer;
  65252. case C.UnaryOperator_not_not0:
  65253. $async$returnValue = operand.unaryNot$0();
  65254. // goto return
  65255. $async$goto = 1;
  65256. break $async$outer;
  65257. default:
  65258. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  65259. }
  65260. case 1:
  65261. // return
  65262. return P._asyncReturn($async$returnValue, $async$completer);
  65263. }
  65264. });
  65265. return P._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  65266. },
  65267. visitBooleanExpression$1: function(node) {
  65268. return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
  65269. },
  65270. visitBooleanExpression$body$_EvaluateVisitor0: function(node) {
  65271. var $async$goto = 0,
  65272. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassBoolean_2),
  65273. $async$returnValue;
  65274. var $async$visitBooleanExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65275. if ($async$errorCode === 1)
  65276. return P._asyncRethrow($async$result, $async$completer);
  65277. while (true)
  65278. switch ($async$goto) {
  65279. case 0:
  65280. // Function start
  65281. $async$returnValue = node.value ? C.SassBoolean_true : C.SassBoolean_false;
  65282. // goto return
  65283. $async$goto = 1;
  65284. break;
  65285. case 1:
  65286. // return
  65287. return P._asyncReturn($async$returnValue, $async$completer);
  65288. }
  65289. });
  65290. return P._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  65291. },
  65292. visitIfExpression$1: function(node) {
  65293. return this.visitIfExpression$body$_EvaluateVisitor0(node);
  65294. },
  65295. visitIfExpression$body$_EvaluateVisitor0: function(node) {
  65296. var $async$goto = 0,
  65297. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65298. $async$returnValue, $async$self = this, condition, ifTrue, ifFalse, pair, positional, named, t1;
  65299. var $async$visitIfExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65300. if ($async$errorCode === 1)
  65301. return P._asyncRethrow($async$result, $async$completer);
  65302. while (true)
  65303. switch ($async$goto) {
  65304. case 0:
  65305. // Function start
  65306. $async$goto = 3;
  65307. return P._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  65308. case 3:
  65309. // returning from await.
  65310. pair = $async$result;
  65311. positional = pair.item1;
  65312. named = pair.item2;
  65313. t1 = J.getInterceptor$asx(positional);
  65314. $async$self._async_evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  65315. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  65316. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  65317. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  65318. $async$goto = 5;
  65319. return P._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  65320. case 5:
  65321. // returning from await.
  65322. $async$goto = 4;
  65323. return P._asyncAwait(($async$result.get$isTruthy() ? ifTrue : ifFalse).accept$1($async$self), $async$visitIfExpression$1);
  65324. case 4:
  65325. // returning from await.
  65326. $async$returnValue = $async$result;
  65327. // goto return
  65328. $async$goto = 1;
  65329. break;
  65330. case 1:
  65331. // return
  65332. return P._asyncReturn($async$returnValue, $async$completer);
  65333. }
  65334. });
  65335. return P._asyncStartSync($async$visitIfExpression$1, $async$completer);
  65336. },
  65337. visitNullExpression$1: function(node) {
  65338. return this.visitNullExpression$body$_EvaluateVisitor0(node);
  65339. },
  65340. visitNullExpression$body$_EvaluateVisitor0: function(node) {
  65341. var $async$goto = 0,
  65342. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNull_2),
  65343. $async$returnValue;
  65344. var $async$visitNullExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65345. if ($async$errorCode === 1)
  65346. return P._asyncRethrow($async$result, $async$completer);
  65347. while (true)
  65348. switch ($async$goto) {
  65349. case 0:
  65350. // Function start
  65351. $async$returnValue = C.C_SassNull;
  65352. // goto return
  65353. $async$goto = 1;
  65354. break;
  65355. case 1:
  65356. // return
  65357. return P._asyncReturn($async$returnValue, $async$completer);
  65358. }
  65359. });
  65360. return P._asyncStartSync($async$visitNullExpression$1, $async$completer);
  65361. },
  65362. visitNumberExpression$1: function(node) {
  65363. return this.visitNumberExpression$body$_EvaluateVisitor0(node);
  65364. },
  65365. visitNumberExpression$body$_EvaluateVisitor0: function(node) {
  65366. var $async$goto = 0,
  65367. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  65368. $async$returnValue;
  65369. var $async$visitNumberExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65370. if ($async$errorCode === 1)
  65371. return P._asyncRethrow($async$result, $async$completer);
  65372. while (true)
  65373. switch ($async$goto) {
  65374. case 0:
  65375. // Function start
  65376. $async$returnValue = T.SassNumber$0(node.value, node.unit);
  65377. // goto return
  65378. $async$goto = 1;
  65379. break;
  65380. case 1:
  65381. // return
  65382. return P._asyncReturn($async$returnValue, $async$completer);
  65383. }
  65384. });
  65385. return P._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  65386. },
  65387. visitParenthesizedExpression$1: function(node) {
  65388. return node.expression.accept$1(this);
  65389. },
  65390. visitColorExpression$1: function(node) {
  65391. return this.visitColorExpression$body$_EvaluateVisitor0(node);
  65392. },
  65393. visitColorExpression$body$_EvaluateVisitor0: function(node) {
  65394. var $async$goto = 0,
  65395. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassColor_2),
  65396. $async$returnValue;
  65397. var $async$visitColorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65398. if ($async$errorCode === 1)
  65399. return P._asyncRethrow($async$result, $async$completer);
  65400. while (true)
  65401. switch ($async$goto) {
  65402. case 0:
  65403. // Function start
  65404. $async$returnValue = node.value;
  65405. // goto return
  65406. $async$goto = 1;
  65407. break;
  65408. case 1:
  65409. // return
  65410. return P._asyncReturn($async$returnValue, $async$completer);
  65411. }
  65412. });
  65413. return P._asyncStartSync($async$visitColorExpression$1, $async$completer);
  65414. },
  65415. visitListExpression$1: function(node) {
  65416. return this.visitListExpression$body$_EvaluateVisitor0(node);
  65417. },
  65418. visitListExpression$body$_EvaluateVisitor0: function(node) {
  65419. var $async$goto = 0,
  65420. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassList_2),
  65421. $async$returnValue, $async$self = this, $async$temp1;
  65422. var $async$visitListExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65423. if ($async$errorCode === 1)
  65424. return P._asyncRethrow($async$result, $async$completer);
  65425. while (true)
  65426. switch ($async$goto) {
  65427. case 0:
  65428. // Function start
  65429. $async$temp1 = D;
  65430. $async$goto = 3;
  65431. return P._asyncAwait(B.mapAsync0(node.contents, new E._EvaluateVisitor_visitListExpression_closure2($async$self), type$.legacy_Expression_2, type$.legacy_Value_2), $async$visitListExpression$1);
  65432. case 3:
  65433. // returning from await.
  65434. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
  65435. // goto return
  65436. $async$goto = 1;
  65437. break;
  65438. case 1:
  65439. // return
  65440. return P._asyncReturn($async$returnValue, $async$completer);
  65441. }
  65442. });
  65443. return P._asyncStartSync($async$visitListExpression$1, $async$completer);
  65444. },
  65445. visitMapExpression$1: function(node) {
  65446. return this.visitMapExpression$body$_EvaluateVisitor0(node);
  65447. },
  65448. visitMapExpression$body$_EvaluateVisitor0: function(node) {
  65449. var $async$goto = 0,
  65450. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassMap_2),
  65451. $async$returnValue, $async$self = this, t2, t3, _i, pair, t4, keyValue, valueValue, t1, map, keyNodes;
  65452. var $async$visitMapExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65453. if ($async$errorCode === 1)
  65454. return P._asyncRethrow($async$result, $async$completer);
  65455. while (true)
  65456. switch ($async$goto) {
  65457. case 0:
  65458. // Function start
  65459. t1 = type$.legacy_Value_2;
  65460. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  65461. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode_2);
  65462. t2 = node.pairs, t3 = t2.length, _i = 0;
  65463. case 3:
  65464. // for condition
  65465. if (!(_i < t3)) {
  65466. // goto after for
  65467. $async$goto = 5;
  65468. break;
  65469. }
  65470. pair = t2[_i];
  65471. t4 = pair.item1;
  65472. $async$goto = 6;
  65473. return P._asyncAwait(t4.accept$1($async$self), $async$visitMapExpression$1);
  65474. case 6:
  65475. // returning from await.
  65476. keyValue = $async$result;
  65477. $async$goto = 7;
  65478. return P._asyncAwait(pair.item2.accept$1($async$self), $async$visitMapExpression$1);
  65479. case 7:
  65480. // returning from await.
  65481. valueValue = $async$result;
  65482. if (map.containsKey$1(keyValue))
  65483. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(t4.get$span())));
  65484. map.$indexSet(0, keyValue, valueValue);
  65485. keyNodes.$indexSet(0, keyValue, t4);
  65486. case 4:
  65487. // for update
  65488. ++_i;
  65489. // goto for condition
  65490. $async$goto = 3;
  65491. break;
  65492. case 5:
  65493. // after for
  65494. $async$returnValue = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  65495. // goto return
  65496. $async$goto = 1;
  65497. break;
  65498. case 1:
  65499. // return
  65500. return P._asyncReturn($async$returnValue, $async$completer);
  65501. }
  65502. });
  65503. return P._asyncStartSync($async$visitMapExpression$1, $async$completer);
  65504. },
  65505. visitFunctionExpression$1: function(node) {
  65506. return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
  65507. },
  65508. visitFunctionExpression$body$_EvaluateVisitor0: function(node) {
  65509. var $async$goto = 0,
  65510. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65511. $async$returnValue, $async$self = this, oldInFunction, result, t1, t2, plainName, $async$temp1, $async$temp2;
  65512. var $async$visitFunctionExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65513. if ($async$errorCode === 1)
  65514. return P._asyncRethrow($async$result, $async$completer);
  65515. while (true)
  65516. switch ($async$goto) {
  65517. case 0:
  65518. // Function start
  65519. t1 = {};
  65520. t2 = node.name;
  65521. plainName = t2.get$asPlain();
  65522. t1.$function = null;
  65523. $async$goto = (plainName != null ? t1.$function = $async$self._async_evaluate0$_addExceptionSpan$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure5($async$self, node, plainName)) : null) == null ? 3 : 4;
  65524. break;
  65525. case 3:
  65526. // then
  65527. if (node.namespace != null)
  65528. throw H.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
  65529. $async$temp1 = t1;
  65530. $async$temp2 = L;
  65531. $async$goto = 5;
  65532. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t2), $async$visitFunctionExpression$1);
  65533. case 5:
  65534. // returning from await.
  65535. $async$temp1.$function = new $async$temp2.PlainCssCallable0($async$result);
  65536. case 4:
  65537. // join
  65538. oldInFunction = $async$self._async_evaluate0$_inFunction;
  65539. $async$self._async_evaluate0$_inFunction = true;
  65540. $async$goto = 6;
  65541. return P._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new E._EvaluateVisitor_visitFunctionExpression_closure6(t1, $async$self, node), type$.legacy_Value_2), $async$visitFunctionExpression$1);
  65542. case 6:
  65543. // returning from await.
  65544. result = $async$result;
  65545. $async$self._async_evaluate0$_inFunction = oldInFunction;
  65546. $async$returnValue = result;
  65547. // goto return
  65548. $async$goto = 1;
  65549. break;
  65550. case 1:
  65551. // return
  65552. return P._asyncReturn($async$returnValue, $async$completer);
  65553. }
  65554. });
  65555. return P._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  65556. },
  65557. _async_evaluate0$_getFunction$2$namespace: function($name, namespace) {
  65558. var local = this._async_evaluate0$_environment.getFunction$2$namespace($name, namespace);
  65559. if (local != null || namespace != null)
  65560. return local;
  65561. return this._async_evaluate0$_builtInFunctions.$index(0, $name);
  65562. },
  65563. _async_evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  65564. return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run);
  65565. },
  65566. _runUserDefinedCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan, run) {
  65567. var $async$goto = 0,
  65568. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65569. $async$returnValue, $async$self = this, evaluated, t1, $name;
  65570. var $async$_async_evaluate0$_runUserDefinedCallable$4 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65571. if ($async$errorCode === 1)
  65572. return P._asyncRethrow($async$result, $async$completer);
  65573. while (true)
  65574. switch ($async$goto) {
  65575. case 0:
  65576. // Function start
  65577. $async$goto = 3;
  65578. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$4);
  65579. case 3:
  65580. // returning from await.
  65581. evaluated = $async$result;
  65582. t1 = callable.declaration.name;
  65583. $name = t1 == null ? "@content" : t1 + "()";
  65584. $async$goto = 4;
  65585. return P._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new E._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run), type$.legacy_Value_2), $async$_async_evaluate0$_runUserDefinedCallable$4);
  65586. case 4:
  65587. // returning from await.
  65588. $async$returnValue = $async$result;
  65589. // goto return
  65590. $async$goto = 1;
  65591. break;
  65592. case 1:
  65593. // return
  65594. return P._asyncReturn($async$returnValue, $async$completer);
  65595. }
  65596. });
  65597. return P._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$4, $async$completer);
  65598. },
  65599. _async_evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  65600. return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  65601. },
  65602. _runFunctionCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  65603. var $async$goto = 0,
  65604. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65605. $async$returnValue, $async$self = this, result, t1, t2, t3, first, _i, argument, rest, $async$temp1;
  65606. var $async$_async_evaluate0$_runFunctionCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65607. if ($async$errorCode === 1)
  65608. return P._asyncRethrow($async$result, $async$completer);
  65609. while (true)
  65610. switch ($async$goto) {
  65611. case 0:
  65612. // Function start
  65613. $async$goto = type$.legacy_AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
  65614. break;
  65615. case 3:
  65616. // then
  65617. $async$goto = 6;
  65618. return P._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
  65619. case 6:
  65620. // returning from await.
  65621. result = $async$result;
  65622. if (result == null)
  65623. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  65624. $async$returnValue = result.withoutSlash$0();
  65625. // goto return
  65626. $async$goto = 1;
  65627. break;
  65628. // goto join
  65629. $async$goto = 4;
  65630. break;
  65631. case 5:
  65632. // else
  65633. $async$goto = type$.legacy_UserDefinedCallable_legacy_AsyncEnvironment_2._is(callable) ? 7 : 9;
  65634. break;
  65635. case 7:
  65636. // then
  65637. $async$goto = 10;
  65638. return P._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new E._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable)), $async$_async_evaluate0$_runFunctionCallable$3);
  65639. case 10:
  65640. // returning from await.
  65641. $async$returnValue = $async$result.withoutSlash$0();
  65642. // goto return
  65643. $async$goto = 1;
  65644. break;
  65645. // goto join
  65646. $async$goto = 8;
  65647. break;
  65648. case 9:
  65649. // else
  65650. $async$goto = callable instanceof L.PlainCssCallable0 ? 11 : 13;
  65651. break;
  65652. case 11:
  65653. // then
  65654. t1 = $arguments.named;
  65655. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  65656. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  65657. t1 = H.S(callable.name) + "(";
  65658. t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0;
  65659. case 14:
  65660. // for condition
  65661. if (!(_i < t3)) {
  65662. // goto after for
  65663. $async$goto = 16;
  65664. break;
  65665. }
  65666. argument = t2[_i];
  65667. if (first)
  65668. first = false;
  65669. else
  65670. t1 += ", ";
  65671. $async$temp1 = H;
  65672. $async$goto = 17;
  65673. return P._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
  65674. case 17:
  65675. // returning from await.
  65676. t1 += $async$temp1.S($async$result);
  65677. case 15:
  65678. // for update
  65679. ++_i;
  65680. // goto for condition
  65681. $async$goto = 14;
  65682. break;
  65683. case 16:
  65684. // after for
  65685. t2 = $arguments.rest;
  65686. $async$goto = 18;
  65687. return P._asyncAwait(t2 == null ? null : t2.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
  65688. case 18:
  65689. // returning from await.
  65690. rest = $async$result;
  65691. if (rest != null) {
  65692. if (!first)
  65693. t1 += ", ";
  65694. t2 = t1 + H.S($async$self._async_evaluate0$_serialize$2(rest, t2));
  65695. t1 = t2;
  65696. }
  65697. t1 += H.Primitives_stringFromCharCode(41);
  65698. $async$returnValue = new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  65699. // goto return
  65700. $async$goto = 1;
  65701. break;
  65702. // goto join
  65703. $async$goto = 12;
  65704. break;
  65705. case 13:
  65706. // else
  65707. $async$returnValue = null;
  65708. // goto return
  65709. $async$goto = 1;
  65710. break;
  65711. case 12:
  65712. // join
  65713. case 8:
  65714. // join
  65715. case 4:
  65716. // join
  65717. case 1:
  65718. // return
  65719. return P._asyncReturn($async$returnValue, $async$completer);
  65720. }
  65721. });
  65722. return P._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
  65723. },
  65724. _async_evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  65725. return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  65726. },
  65727. _runBuiltInCallable$body$_EvaluateVisitor0: function($arguments, callable, nodeWithSpan) {
  65728. var $async$goto = 0,
  65729. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  65730. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, evaluated, oldCallableNode, $async$exception;
  65731. var $async$_async_evaluate0$_runBuiltInCallable$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65732. if ($async$errorCode === 1) {
  65733. $async$currentError = $async$result;
  65734. $async$goto = $async$handler;
  65735. }
  65736. while (true)
  65737. switch ($async$goto) {
  65738. case 0:
  65739. // Function start
  65740. $async$goto = 3;
  65741. return P._asyncAwait($async$self._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, false), $async$_async_evaluate0$_runBuiltInCallable$3);
  65742. case 3:
  65743. // returning from await.
  65744. evaluated = $async$result;
  65745. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  65746. $async$self._async_evaluate0$_callableNode = nodeWithSpan;
  65747. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  65748. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  65749. overload = tuple.item1;
  65750. callback = tuple.item2;
  65751. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__runBuiltInCallable_closure5(overload, evaluated, namedSet));
  65752. declaredArguments = overload.$arguments;
  65753. i = evaluated.positional.length, t1 = declaredArguments.length;
  65754. case 4:
  65755. // for condition
  65756. if (!(i < t1)) {
  65757. // goto after for
  65758. $async$goto = 6;
  65759. break;
  65760. }
  65761. argument = declaredArguments[i];
  65762. t2 = evaluated.positional;
  65763. t3 = evaluated.named.remove$1(0, argument.name);
  65764. $async$goto = t3 == null ? 7 : 8;
  65765. break;
  65766. case 7:
  65767. // then
  65768. t3 = argument.defaultValue;
  65769. $async$goto = 9;
  65770. return P._asyncAwait(t3 == null ? null : t3.accept$1($async$self), $async$_async_evaluate0$_runBuiltInCallable$3);
  65771. case 9:
  65772. // returning from await.
  65773. t3 = $async$result;
  65774. case 8:
  65775. // join
  65776. t2.push(t3);
  65777. case 5:
  65778. // for update
  65779. ++i;
  65780. // goto for condition
  65781. $async$goto = 4;
  65782. break;
  65783. case 6:
  65784. // after for
  65785. if (overload.restArgument != null) {
  65786. if (evaluated.positional.length > t1) {
  65787. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  65788. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  65789. } else
  65790. rest = C.List_empty16;
  65791. t1 = evaluated.named;
  65792. argumentList = D.SassArgumentList$0(rest, t1, evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator);
  65793. evaluated.positional.push(argumentList);
  65794. } else
  65795. argumentList = null;
  65796. result = null;
  65797. $async$handler = 11;
  65798. $async$goto = 14;
  65799. return P._asyncAwait(callback.call$1(evaluated.positional), $async$_async_evaluate0$_runBuiltInCallable$3);
  65800. case 14:
  65801. // returning from await.
  65802. result = $async$result;
  65803. $async$handler = 2;
  65804. // goto after finally
  65805. $async$goto = 13;
  65806. break;
  65807. case 11:
  65808. // catch
  65809. $async$handler = 10;
  65810. $async$exception = $async$currentError;
  65811. t1 = H.unwrapException($async$exception);
  65812. if (type$.legacy_SassRuntimeException_2._is(t1))
  65813. throw $async$exception;
  65814. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  65815. error = t1;
  65816. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65817. } else if (t1 instanceof E.MultiSpanSassException0) {
  65818. error0 = t1;
  65819. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(error0.get$span())));
  65820. } else {
  65821. error1 = t1;
  65822. message = null;
  65823. try {
  65824. message = H._asStringS(J.get$message$x(error1));
  65825. } catch (exception) {
  65826. H.unwrapException($async$exception);
  65827. message0 = J.toString$0$(error1);
  65828. message = message0;
  65829. }
  65830. throw H.wrapException($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  65831. }
  65832. // goto after finally
  65833. $async$goto = 13;
  65834. break;
  65835. case 10:
  65836. // uncaught
  65837. // goto rethrow
  65838. $async$goto = 2;
  65839. break;
  65840. case 13:
  65841. // after finally
  65842. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  65843. if (argumentList == null) {
  65844. $async$returnValue = result;
  65845. // goto return
  65846. $async$goto = 1;
  65847. break;
  65848. }
  65849. t1 = evaluated.named;
  65850. if (t1.get$isEmpty(t1)) {
  65851. $async$returnValue = result;
  65852. // goto return
  65853. $async$goto = 1;
  65854. break;
  65855. }
  65856. if (argumentList._argument_list$_wereKeywordsAccessed) {
  65857. $async$returnValue = result;
  65858. // goto return
  65859. $async$goto = 1;
  65860. break;
  65861. }
  65862. t1 = evaluated.named;
  65863. t1 = t1.get$keys(t1);
  65864. t1 = "No " + B.pluralize0("argument", t1.get$length(t1), null) + " named ";
  65865. t2 = evaluated.named;
  65866. throw H.wrapException(E.MultiSpanSassRuntimeException$0(t1 + H.S(B.toSentence0(t2.get$keys(t2).map$1$1(0, new E._EvaluateVisitor__runBuiltInCallable_closure6(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  65867. case 1:
  65868. // return
  65869. return P._asyncReturn($async$returnValue, $async$completer);
  65870. case 2:
  65871. // rethrow
  65872. return P._asyncRethrow($async$currentError, $async$completer);
  65873. }
  65874. });
  65875. return P._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
  65876. },
  65877. _async_evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  65878. return this._evaluateArguments$body$_EvaluateVisitor0($arguments, trackSpans);
  65879. },
  65880. _async_evaluate0$_evaluateArguments$1: function($arguments) {
  65881. return this._async_evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  65882. },
  65883. _evaluateArguments$body$_EvaluateVisitor0: function($arguments, trackSpans) {
  65884. var $async$goto = 0,
  65885. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy__ArgumentResults_2),
  65886. $async$returnValue, $async$self = this, t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, $async$temp1, $async$temp2;
  65887. var $async$_async_evaluate0$_evaluateArguments$2$trackSpans = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  65888. if ($async$errorCode === 1)
  65889. return P._asyncRethrow($async$result, $async$completer);
  65890. while (true)
  65891. switch ($async$goto) {
  65892. case 0:
  65893. // Function start
  65894. if (trackSpans == null)
  65895. trackSpans = $async$self._async_evaluate0$_sourceMap;
  65896. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  65897. t2 = $arguments.positional, t3 = t2.length, _i = 0;
  65898. case 3:
  65899. // for condition
  65900. if (!(_i < t3)) {
  65901. // goto after for
  65902. $async$goto = 5;
  65903. break;
  65904. }
  65905. $async$temp1 = t1;
  65906. $async$goto = 6;
  65907. return P._asyncAwait(t2[_i].accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  65908. case 6:
  65909. // returning from await.
  65910. $async$temp1.push($async$result);
  65911. case 4:
  65912. // for update
  65913. ++_i;
  65914. // goto for condition
  65915. $async$goto = 3;
  65916. break;
  65917. case 5:
  65918. // after for
  65919. t4 = type$.legacy_String;
  65920. t5 = type$.legacy_Value_2;
  65921. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  65922. t7 = $arguments.named, t8 = t7.get$entries(t7), t8 = t8.get$iterator(t8);
  65923. case 7:
  65924. // for condition
  65925. if (!t8.moveNext$0()) {
  65926. // goto after for
  65927. $async$goto = 8;
  65928. break;
  65929. }
  65930. t9 = t8.get$current(t8);
  65931. $async$temp1 = t6;
  65932. $async$temp2 = t9.key;
  65933. $async$goto = 9;
  65934. return P._asyncAwait(t9.value.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  65935. case 9:
  65936. // returning from await.
  65937. $async$temp1.$indexSet(0, $async$temp2, $async$result);
  65938. // goto for condition
  65939. $async$goto = 7;
  65940. break;
  65941. case 8:
  65942. // after for
  65943. if (trackSpans) {
  65944. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode_2);
  65945. for (_i = 0; _i < t3; ++_i)
  65946. t8.push($async$self._async_evaluate0$_expressionNode$1(t2[_i]));
  65947. positionalNodes = t8;
  65948. } else
  65949. positionalNodes = null;
  65950. if (trackSpans) {
  65951. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  65952. for (t3 = t7.get$entries(t7), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  65953. t7 = t3.get$current(t3);
  65954. t2.$indexSet(0, t7.key, $async$self._async_evaluate0$_expressionNode$1(t7.value));
  65955. }
  65956. namedNodes = t2;
  65957. } else
  65958. namedNodes = null;
  65959. t2 = $arguments.rest;
  65960. if (t2 == null) {
  65961. $async$returnValue = new E._ArgumentResults2(t1, positionalNodes, t6, namedNodes, C.ListSeparator_undecided0);
  65962. // goto return
  65963. $async$goto = 1;
  65964. break;
  65965. }
  65966. $async$goto = 10;
  65967. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  65968. case 10:
  65969. // returning from await.
  65970. rest = $async$result;
  65971. restNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  65972. if (rest instanceof A.SassMap0) {
  65973. $async$self._async_evaluate0$_addRestMap$1$3(t6, rest, t2, t5);
  65974. if (namedNodes != null) {
  65975. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  65976. for (t3 = rest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t7 = type$.legacy_SassString_2; t3.moveNext$0();)
  65977. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  65978. namedNodes.addAll$1(0, t2);
  65979. }
  65980. separator = C.ListSeparator_undecided0;
  65981. } else if (rest instanceof D.SassList0) {
  65982. t2 = rest._list1$_contents;
  65983. C.JSArray_methods.addAll$1(t1, t2);
  65984. if (positionalNodes != null)
  65985. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode_2));
  65986. separator = rest.separator;
  65987. if (rest instanceof D.SassArgumentList0) {
  65988. rest._argument_list$_wereKeywordsAccessed = true;
  65989. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateArguments_closure2(t6, namedNodes, restNodeForSpan));
  65990. }
  65991. } else {
  65992. t1.push(rest);
  65993. if (positionalNodes != null)
  65994. positionalNodes.push(restNodeForSpan);
  65995. separator = C.ListSeparator_undecided0;
  65996. }
  65997. t2 = $arguments.keywordRest;
  65998. if (t2 == null) {
  65999. $async$returnValue = new E._ArgumentResults2(t1, positionalNodes, t6, namedNodes, separator);
  66000. // goto return
  66001. $async$goto = 1;
  66002. break;
  66003. }
  66004. $async$goto = 11;
  66005. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$2$trackSpans);
  66006. case 11:
  66007. // returning from await.
  66008. keywordRest = $async$result;
  66009. keywordRestNodeForSpan = trackSpans ? $async$self._async_evaluate0$_expressionNode$1(t2) : null;
  66010. if (keywordRest instanceof A.SassMap0) {
  66011. $async$self._async_evaluate0$_addRestMap$1$3(t6, keywordRest, t2, t5);
  66012. if (namedNodes != null) {
  66013. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  66014. for (t3 = keywordRest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t4 = type$.legacy_SassString_2; t3.moveNext$0();)
  66015. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  66016. namedNodes.addAll$1(0, t2);
  66017. }
  66018. $async$returnValue = new E._ArgumentResults2(t1, positionalNodes, t6, namedNodes, separator);
  66019. // goto return
  66020. $async$goto = 1;
  66021. break;
  66022. } else
  66023. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  66024. case 1:
  66025. // return
  66026. return P._asyncReturn($async$returnValue, $async$completer);
  66027. }
  66028. });
  66029. return P._asyncStartSync($async$_async_evaluate0$_evaluateArguments$2$trackSpans, $async$completer);
  66030. },
  66031. _async_evaluate0$_evaluateMacroArguments$1: function(invocation) {
  66032. return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
  66033. },
  66034. _evaluateMacroArguments$body$_EvaluateVisitor0: function(invocation) {
  66035. var $async$goto = 0,
  66036. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2),
  66037. $async$returnValue, $async$self = this, t3, positional, named, rest, keywordRest, t1, t2;
  66038. var $async$_async_evaluate0$_evaluateMacroArguments$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66039. if ($async$errorCode === 1)
  66040. return P._asyncRethrow($async$result, $async$completer);
  66041. while (true)
  66042. switch ($async$goto) {
  66043. case 0:
  66044. // Function start
  66045. t1 = invocation.$arguments;
  66046. t2 = t1.rest;
  66047. if (t2 == null) {
  66048. $async$returnValue = new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  66049. // goto return
  66050. $async$goto = 1;
  66051. break;
  66052. }
  66053. t3 = t1.positional;
  66054. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  66055. t3 = type$.legacy_Expression_2;
  66056. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  66057. $async$goto = 3;
  66058. return P._asyncAwait(t2.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  66059. case 3:
  66060. // returning from await.
  66061. rest = $async$result;
  66062. if (rest instanceof A.SassMap0)
  66063. $async$self._async_evaluate0$_addRestMap$1$4(named, rest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure11(), t3);
  66064. else if (rest instanceof D.SassList0) {
  66065. t2 = rest._list1$_contents;
  66066. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new E._EvaluateVisitor__evaluateMacroArguments_closure12(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0*>")));
  66067. if (rest instanceof D.SassArgumentList0) {
  66068. rest._argument_list$_wereKeywordsAccessed = true;
  66069. rest._argument_list$_keywords.forEach$1(0, new E._EvaluateVisitor__evaluateMacroArguments_closure13(named));
  66070. }
  66071. } else
  66072. positional.push(new F.ValueExpression0(rest, null));
  66073. t1 = t1.keywordRest;
  66074. if (t1 == null) {
  66075. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  66076. // goto return
  66077. $async$goto = 1;
  66078. break;
  66079. }
  66080. $async$goto = 4;
  66081. return P._asyncAwait(t1.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  66082. case 4:
  66083. // returning from await.
  66084. keywordRest = $async$result;
  66085. if (keywordRest instanceof A.SassMap0) {
  66086. $async$self._async_evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new E._EvaluateVisitor__evaluateMacroArguments_closure14(), t3);
  66087. $async$returnValue = new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  66088. // goto return
  66089. $async$goto = 1;
  66090. break;
  66091. } else
  66092. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  66093. case 1:
  66094. // return
  66095. return P._asyncReturn($async$returnValue, $async$completer);
  66096. }
  66097. });
  66098. return P._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
  66099. },
  66100. _async_evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  66101. var t1 = {};
  66102. t1.convert = convert;
  66103. if (convert == null)
  66104. t1.convert = new E._EvaluateVisitor__addRestMap_closure5($T);
  66105. map.contents.forEach$1(0, new E._EvaluateVisitor__addRestMap_closure6(t1, this, values, map, nodeWithSpan));
  66106. },
  66107. _async_evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  66108. return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  66109. },
  66110. _async_evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  66111. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
  66112. },
  66113. visitSelectorExpression$1: function(node) {
  66114. return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
  66115. },
  66116. visitSelectorExpression$body$_EvaluateVisitor0: function(node) {
  66117. var $async$goto = 0,
  66118. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  66119. $async$returnValue, $async$self = this, t1;
  66120. var $async$visitSelectorExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66121. if ($async$errorCode === 1)
  66122. return P._asyncRethrow($async$result, $async$completer);
  66123. while (true)
  66124. switch ($async$goto) {
  66125. case 0:
  66126. // Function start
  66127. t1 = $async$self._async_evaluate0$_styleRule;
  66128. if (t1 == null) {
  66129. $async$returnValue = C.C_SassNull;
  66130. // goto return
  66131. $async$goto = 1;
  66132. break;
  66133. }
  66134. $async$returnValue = t1.originalSelector.get$asSassList();
  66135. // goto return
  66136. $async$goto = 1;
  66137. break;
  66138. case 1:
  66139. // return
  66140. return P._asyncReturn($async$returnValue, $async$completer);
  66141. }
  66142. });
  66143. return P._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  66144. },
  66145. visitStringExpression$1: function(node) {
  66146. return this.visitStringExpression$body$_EvaluateVisitor0(node);
  66147. },
  66148. visitStringExpression$body$_EvaluateVisitor0: function(node) {
  66149. var $async$goto = 0,
  66150. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassString_2),
  66151. $async$returnValue, $async$self = this, $async$temp1, $async$temp2;
  66152. var $async$visitStringExpression$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66153. if ($async$errorCode === 1)
  66154. return P._asyncRethrow($async$result, $async$completer);
  66155. while (true)
  66156. switch ($async$goto) {
  66157. case 0:
  66158. // Function start
  66159. $async$temp1 = D;
  66160. $async$temp2 = J;
  66161. $async$goto = 3;
  66162. return P._asyncAwait(B.mapAsync0(node.text.contents, new E._EvaluateVisitor_visitStringExpression_closure2($async$self), type$.legacy_Object, type$.legacy_String), $async$visitStringExpression$1);
  66163. case 3:
  66164. // returning from await.
  66165. $async$returnValue = new $async$temp1.SassString0($async$temp2.join$0$ax($async$result), node.hasQuotes);
  66166. // goto return
  66167. $async$goto = 1;
  66168. break;
  66169. case 1:
  66170. // return
  66171. return P._asyncReturn($async$returnValue, $async$completer);
  66172. }
  66173. });
  66174. return P._asyncStartSync($async$visitStringExpression$1, $async$completer);
  66175. },
  66176. visitCssAtRule$1: function(node) {
  66177. return this.visitCssAtRule$body$_EvaluateVisitor0(node);
  66178. },
  66179. visitCssAtRule$body$_EvaluateVisitor0: function(node) {
  66180. var $async$goto = 0,
  66181. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66182. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  66183. var $async$visitCssAtRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66184. if ($async$errorCode === 1)
  66185. return P._asyncRethrow($async$result, $async$completer);
  66186. while (true)
  66187. switch ($async$goto) {
  66188. case 0:
  66189. // Function start
  66190. if ($async$self._async_evaluate0$_declarationName != null)
  66191. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  66192. if (node.isChildless) {
  66193. $async$self._async_evaluate0$_parent.addChild$1(U.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  66194. $async$returnValue = null;
  66195. // goto return
  66196. $async$goto = 1;
  66197. break;
  66198. }
  66199. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  66200. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  66201. t1 = node.name;
  66202. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  66203. $async$self._async_evaluate0$_inKeyframes = true;
  66204. else
  66205. $async$self._async_evaluate0$_inUnknownAtRule = true;
  66206. $async$goto = 3;
  66207. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$0(t1, node.span, false, node.value), new E._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssAtRule_closure6(), type$.legacy_ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
  66208. case 3:
  66209. // returning from await.
  66210. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  66211. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  66212. case 1:
  66213. // return
  66214. return P._asyncReturn($async$returnValue, $async$completer);
  66215. }
  66216. });
  66217. return P._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  66218. },
  66219. visitCssComment$1: function(node) {
  66220. return this.visitCssComment$body$_EvaluateVisitor0(node);
  66221. },
  66222. visitCssComment$body$_EvaluateVisitor0: function(node) {
  66223. var $async$goto = 0,
  66224. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66225. $async$self = this, t1, t2;
  66226. var $async$visitCssComment$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66227. if ($async$errorCode === 1)
  66228. return P._asyncRethrow($async$result, $async$completer);
  66229. while (true)
  66230. switch ($async$goto) {
  66231. case 0:
  66232. // Function start
  66233. t1 = $async$self._async_evaluate0$_parent;
  66234. t2 = $async$self._async_evaluate0$_root;
  66235. if (t1 == t2 && $async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  66236. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  66237. $async$self._async_evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  66238. // implicit return
  66239. return P._asyncReturn(null, $async$completer);
  66240. }
  66241. });
  66242. return P._asyncStartSync($async$visitCssComment$1, $async$completer);
  66243. },
  66244. visitCssDeclaration$1: function(node) {
  66245. return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
  66246. },
  66247. visitCssDeclaration$body$_EvaluateVisitor0: function(node) {
  66248. var $async$goto = 0,
  66249. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66250. $async$self = this, t1;
  66251. var $async$visitCssDeclaration$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66252. if ($async$errorCode === 1)
  66253. return P._asyncRethrow($async$result, $async$completer);
  66254. while (true)
  66255. switch ($async$goto) {
  66256. case 0:
  66257. // Function start
  66258. t1 = node.name;
  66259. $async$self._async_evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  66260. // implicit return
  66261. return P._asyncReturn(null, $async$completer);
  66262. }
  66263. });
  66264. return P._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  66265. },
  66266. visitCssImport$1: function(node) {
  66267. return this.visitCssImport$body$_EvaluateVisitor0(node);
  66268. },
  66269. visitCssImport$body$_EvaluateVisitor0: function(node) {
  66270. var $async$goto = 0,
  66271. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66272. $async$self = this, modifiableNode, t1, t2;
  66273. var $async$visitCssImport$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66274. if ($async$errorCode === 1)
  66275. return P._asyncRethrow($async$result, $async$completer);
  66276. while (true)
  66277. switch ($async$goto) {
  66278. case 0:
  66279. // Function start
  66280. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  66281. t1 = $async$self._async_evaluate0$_parent;
  66282. t2 = $async$self._async_evaluate0$_root;
  66283. if (t1 != t2)
  66284. t1.addChild$1(modifiableNode);
  66285. else if ($async$self._async_evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  66286. $async$self._async_evaluate0$_root.addChild$1(modifiableNode);
  66287. $async$self._async_evaluate0$_endOfImports = $async$self._async_evaluate0$_endOfImports + 1;
  66288. } else {
  66289. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  66290. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(modifiableNode);
  66291. }
  66292. // implicit return
  66293. return P._asyncReturn(null, $async$completer);
  66294. }
  66295. });
  66296. return P._asyncStartSync($async$visitCssImport$1, $async$completer);
  66297. },
  66298. visitCssKeyframeBlock$1: function(node) {
  66299. return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
  66300. },
  66301. visitCssKeyframeBlock$body$_EvaluateVisitor0: function(node) {
  66302. var $async$goto = 0,
  66303. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66304. $async$self = this;
  66305. var $async$visitCssKeyframeBlock$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66306. if ($async$errorCode === 1)
  66307. return P._asyncRethrow($async$result, $async$completer);
  66308. while (true)
  66309. switch ($async$goto) {
  66310. case 0:
  66311. // Function start
  66312. $async$goto = 2;
  66313. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$0(node.selector, node.span), new E._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
  66314. case 2:
  66315. // returning from await.
  66316. // implicit return
  66317. return P._asyncReturn(null, $async$completer);
  66318. }
  66319. });
  66320. return P._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  66321. },
  66322. visitCssMediaRule$1: function(node) {
  66323. return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
  66324. },
  66325. visitCssMediaRule$body$_EvaluateVisitor0: function(node) {
  66326. var $async$goto = 0,
  66327. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66328. $async$returnValue, $async$self = this, t1, mergedQueries;
  66329. var $async$visitCssMediaRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66330. if ($async$errorCode === 1)
  66331. return P._asyncRethrow($async$result, $async$completer);
  66332. while (true)
  66333. switch ($async$goto) {
  66334. case 0:
  66335. // Function start
  66336. if ($async$self._async_evaluate0$_declarationName != null)
  66337. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  66338. t1 = $async$self._async_evaluate0$_mediaQueries;
  66339. mergedQueries = t1 == null ? null : $async$self._async_evaluate0$_mergeMediaQueries$2(t1, node.queries);
  66340. t1 = mergedQueries == null;
  66341. if (!t1 && mergedQueries.length === 0) {
  66342. $async$returnValue = null;
  66343. // goto return
  66344. $async$goto = 1;
  66345. break;
  66346. }
  66347. t1 = t1 ? node.queries : mergedQueries;
  66348. $async$goto = 3;
  66349. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new E._EvaluateVisitor_visitCssMediaRule_closure5($async$self, mergedQueries, node), false, new E._EvaluateVisitor_visitCssMediaRule_closure6(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
  66350. case 3:
  66351. // returning from await.
  66352. case 1:
  66353. // return
  66354. return P._asyncReturn($async$returnValue, $async$completer);
  66355. }
  66356. });
  66357. return P._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  66358. },
  66359. visitCssStyleRule$1: function(node) {
  66360. return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
  66361. },
  66362. visitCssStyleRule$body$_EvaluateVisitor0: function(node) {
  66363. var $async$goto = 0,
  66364. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66365. $async$self = this, t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule;
  66366. var $async$visitCssStyleRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66367. if ($async$errorCode === 1)
  66368. return P._asyncRethrow($async$result, $async$completer);
  66369. while (true)
  66370. switch ($async$goto) {
  66371. case 0:
  66372. // Function start
  66373. if ($async$self._async_evaluate0$_declarationName != null)
  66374. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_, node.span));
  66375. t1 = node.selector;
  66376. t2 = t1.value;
  66377. t3 = $async$self._async_evaluate0$_styleRule;
  66378. t3 = t3 == null ? null : t3.originalSelector;
  66379. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !$async$self._async_evaluate0$_atRootExcludingStyleRule);
  66380. rule = X.ModifiableCssStyleRule$0($async$self._async_evaluate0$_extender.addSelector$3(originalSelector, t1.span, $async$self._async_evaluate0$_mediaQueries), node.span, originalSelector);
  66381. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  66382. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  66383. $async$goto = 2;
  66384. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new E._EvaluateVisitor_visitCssStyleRule_closure5($async$self, rule, node), false, new E._EvaluateVisitor_visitCssStyleRule_closure6(), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
  66385. case 2:
  66386. // returning from await.
  66387. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  66388. if (!($async$self._async_evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  66389. t1 = $async$self._async_evaluate0$_parent.children;
  66390. t1 = !t1.get$isEmpty(t1);
  66391. } else
  66392. t1 = false;
  66393. if (t1) {
  66394. t1 = $async$self._async_evaluate0$_parent.children;
  66395. t1.get$last(t1).isGroupEnd = true;
  66396. }
  66397. // implicit return
  66398. return P._asyncReturn(null, $async$completer);
  66399. }
  66400. });
  66401. return P._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  66402. },
  66403. visitCssStylesheet$1: function(node) {
  66404. return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
  66405. },
  66406. visitCssStylesheet$body$_EvaluateVisitor0: function(node) {
  66407. var $async$goto = 0,
  66408. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66409. $async$self = this, t1;
  66410. var $async$visitCssStylesheet$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66411. if ($async$errorCode === 1)
  66412. return P._asyncRethrow($async$result, $async$completer);
  66413. while (true)
  66414. switch ($async$goto) {
  66415. case 0:
  66416. // Function start
  66417. t1 = J.get$iterator$ax(node.get$children(node));
  66418. case 2:
  66419. // for condition
  66420. if (!t1.moveNext$0()) {
  66421. // goto after for
  66422. $async$goto = 3;
  66423. break;
  66424. }
  66425. $async$goto = 4;
  66426. return P._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  66427. case 4:
  66428. // returning from await.
  66429. // goto for condition
  66430. $async$goto = 2;
  66431. break;
  66432. case 3:
  66433. // after for
  66434. // implicit return
  66435. return P._asyncReturn(null, $async$completer);
  66436. }
  66437. });
  66438. return P._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  66439. },
  66440. visitCssSupportsRule$1: function(node) {
  66441. return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
  66442. },
  66443. visitCssSupportsRule$body$_EvaluateVisitor0: function(node) {
  66444. var $async$goto = 0,
  66445. $async$completer = P._makeAsyncAwaitCompleter(type$.void),
  66446. $async$self = this;
  66447. var $async$visitCssSupportsRule$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66448. if ($async$errorCode === 1)
  66449. return P._asyncRethrow($async$result, $async$completer);
  66450. while (true)
  66451. switch ($async$goto) {
  66452. case 0:
  66453. // Function start
  66454. if ($async$self._async_evaluate0$_declarationName != null)
  66455. throw H.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  66456. $async$goto = 2;
  66457. return P._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$0(node.condition, node.span), new E._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new E._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
  66458. case 2:
  66459. // returning from await.
  66460. // implicit return
  66461. return P._asyncReturn(null, $async$completer);
  66462. }
  66463. });
  66464. return P._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  66465. },
  66466. _async_evaluate0$_handleReturn$1$2: function(list, callback) {
  66467. return this._handleReturn$body$_EvaluateVisitor0(list, callback);
  66468. },
  66469. _async_evaluate0$_handleReturn$2: function(list, callback) {
  66470. return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  66471. },
  66472. _handleReturn$body$_EvaluateVisitor0: function(list, callback) {
  66473. var $async$goto = 0,
  66474. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  66475. $async$returnValue, t1, _i, result;
  66476. var $async$_async_evaluate0$_handleReturn$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66477. if ($async$errorCode === 1)
  66478. return P._asyncRethrow($async$result, $async$completer);
  66479. while (true)
  66480. switch ($async$goto) {
  66481. case 0:
  66482. // Function start
  66483. t1 = list.length, _i = 0;
  66484. case 3:
  66485. // for condition
  66486. if (!(_i < list.length)) {
  66487. // goto after for
  66488. $async$goto = 5;
  66489. break;
  66490. }
  66491. $async$goto = 6;
  66492. return P._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
  66493. case 6:
  66494. // returning from await.
  66495. result = $async$result;
  66496. if (result != null) {
  66497. $async$returnValue = result;
  66498. // goto return
  66499. $async$goto = 1;
  66500. break;
  66501. }
  66502. case 4:
  66503. // for update
  66504. list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i;
  66505. // goto for condition
  66506. $async$goto = 3;
  66507. break;
  66508. case 5:
  66509. // after for
  66510. $async$returnValue = null;
  66511. // goto return
  66512. $async$goto = 1;
  66513. break;
  66514. case 1:
  66515. // return
  66516. return P._asyncReturn($async$returnValue, $async$completer);
  66517. }
  66518. });
  66519. return P._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
  66520. },
  66521. _async_evaluate0$_withEnvironment$1$2: function(environment, callback, $T) {
  66522. return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T._eval$1("0*"));
  66523. },
  66524. _withEnvironment$body$_EvaluateVisitor0: function(environment, callback, $T, $async$type) {
  66525. var $async$goto = 0,
  66526. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66527. $async$returnValue, $async$self = this, result, oldEnvironment;
  66528. var $async$_async_evaluate0$_withEnvironment$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66529. if ($async$errorCode === 1)
  66530. return P._asyncRethrow($async$result, $async$completer);
  66531. while (true)
  66532. switch ($async$goto) {
  66533. case 0:
  66534. // Function start
  66535. oldEnvironment = $async$self._async_evaluate0$_environment;
  66536. $async$self._async_evaluate0$_environment = environment;
  66537. $async$goto = 3;
  66538. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
  66539. case 3:
  66540. // returning from await.
  66541. result = $async$result;
  66542. $async$self._async_evaluate0$_environment = oldEnvironment;
  66543. $async$returnValue = result;
  66544. // goto return
  66545. $async$goto = 1;
  66546. break;
  66547. case 1:
  66548. // return
  66549. return P._asyncReturn($async$returnValue, $async$completer);
  66550. }
  66551. });
  66552. return P._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
  66553. },
  66554. _async_evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  66555. return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
  66556. },
  66557. _async_evaluate0$_interpolationToValue$1: function(interpolation) {
  66558. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  66559. },
  66560. _async_evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  66561. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  66562. },
  66563. _interpolationToValue$body$_EvaluateVisitor0: function(interpolation, trim, warnForColor) {
  66564. var $async$goto = 0,
  66565. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_CssValue_legacy_String_2),
  66566. $async$returnValue, $async$self = this, result, t1;
  66567. var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66568. if ($async$errorCode === 1)
  66569. return P._asyncRethrow($async$result, $async$completer);
  66570. while (true)
  66571. switch ($async$goto) {
  66572. case 0:
  66573. // Function start
  66574. $async$goto = 3;
  66575. return P._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
  66576. case 3:
  66577. // returning from await.
  66578. result = $async$result;
  66579. t1 = trim ? B.trimAscii0(result, true) : result;
  66580. $async$returnValue = new F.CssValue0(t1, interpolation.span, type$.CssValue_legacy_String_2);
  66581. // goto return
  66582. $async$goto = 1;
  66583. break;
  66584. case 1:
  66585. // return
  66586. return P._asyncReturn($async$returnValue, $async$completer);
  66587. }
  66588. });
  66589. return P._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
  66590. },
  66591. _async_evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  66592. return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
  66593. },
  66594. _async_evaluate0$_performInterpolation$1: function(interpolation) {
  66595. return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  66596. },
  66597. _performInterpolation$body$_EvaluateVisitor0: function(interpolation, warnForColor) {
  66598. var $async$goto = 0,
  66599. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  66600. $async$returnValue, $async$self = this, $async$temp1;
  66601. var $async$_async_evaluate0$_performInterpolation$2$warnForColor = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66602. if ($async$errorCode === 1)
  66603. return P._asyncRethrow($async$result, $async$completer);
  66604. while (true)
  66605. switch ($async$goto) {
  66606. case 0:
  66607. // Function start
  66608. $async$temp1 = J;
  66609. $async$goto = 3;
  66610. return P._asyncAwait(B.mapAsync0(interpolation.contents, new E._EvaluateVisitor__performInterpolation_closure2($async$self, warnForColor), type$.legacy_Object, type$.legacy_String), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
  66611. case 3:
  66612. // returning from await.
  66613. $async$returnValue = $async$temp1.join$0$ax($async$result);
  66614. // goto return
  66615. $async$goto = 1;
  66616. break;
  66617. case 1:
  66618. // return
  66619. return P._asyncReturn($async$returnValue, $async$completer);
  66620. }
  66621. });
  66622. return P._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
  66623. },
  66624. _async_evaluate0$_evaluateToCss$2$quote: function(expression, quote) {
  66625. return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
  66626. },
  66627. _async_evaluate0$_evaluateToCss$1: function(expression) {
  66628. return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
  66629. },
  66630. _evaluateToCss$body$_EvaluateVisitor0: function(expression, quote) {
  66631. var $async$goto = 0,
  66632. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  66633. $async$returnValue, $async$self = this;
  66634. var $async$_async_evaluate0$_evaluateToCss$2$quote = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66635. if ($async$errorCode === 1)
  66636. return P._asyncRethrow($async$result, $async$completer);
  66637. while (true)
  66638. switch ($async$goto) {
  66639. case 0:
  66640. // Function start
  66641. $async$goto = 3;
  66642. return P._asyncAwait(expression.accept$1($async$self), $async$_async_evaluate0$_evaluateToCss$2$quote);
  66643. case 3:
  66644. // returning from await.
  66645. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
  66646. // goto return
  66647. $async$goto = 1;
  66648. break;
  66649. case 1:
  66650. // return
  66651. return P._asyncReturn($async$returnValue, $async$completer);
  66652. }
  66653. });
  66654. return P._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
  66655. },
  66656. _async_evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  66657. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new E._EvaluateVisitor__serialize_closure2(value, quote));
  66658. },
  66659. _async_evaluate0$_serialize$2: function(value, nodeWithSpan) {
  66660. return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  66661. },
  66662. _async_evaluate0$_expressionNode$1: function(expression) {
  66663. var t1;
  66664. if (!this._async_evaluate0$_sourceMap)
  66665. return null;
  66666. if (expression instanceof S.VariableExpression0) {
  66667. t1 = this._async_evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  66668. return t1 == null ? expression : t1;
  66669. } else
  66670. return expression;
  66671. },
  66672. _async_evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  66673. return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T._eval$1("0*"));
  66674. },
  66675. _async_evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  66676. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  66677. },
  66678. _async_evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  66679. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  66680. },
  66681. _withParent$body$_EvaluateVisitor0: function(node, callback, scopeWhen, through, $S, $T, $async$type) {
  66682. var $async$goto = 0,
  66683. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66684. $async$returnValue, $async$self = this, oldParent, result;
  66685. var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66686. if ($async$errorCode === 1)
  66687. return P._asyncRethrow($async$result, $async$completer);
  66688. while (true)
  66689. switch ($async$goto) {
  66690. case 0:
  66691. // Function start
  66692. $async$self._async_evaluate0$_addChild$2$through(node, through);
  66693. oldParent = $async$self._async_evaluate0$_parent;
  66694. $async$self._async_evaluate0$_parent = node;
  66695. $async$goto = 3;
  66696. return P._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*")), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
  66697. case 3:
  66698. // returning from await.
  66699. result = $async$result;
  66700. $async$self._async_evaluate0$_parent = oldParent;
  66701. $async$returnValue = result;
  66702. // goto return
  66703. $async$goto = 1;
  66704. break;
  66705. case 1:
  66706. // return
  66707. return P._asyncReturn($async$returnValue, $async$completer);
  66708. }
  66709. });
  66710. return P._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
  66711. },
  66712. _async_evaluate0$_addChild$2$through: function(node, through) {
  66713. var grandparent,
  66714. $parent = this._async_evaluate0$_parent;
  66715. if (through != null) {
  66716. for (; through.call$1($parent);)
  66717. $parent = $parent._node2$_parent;
  66718. if ($parent.get$hasFollowingSibling()) {
  66719. grandparent = $parent._node2$_parent;
  66720. $parent = $parent.copyWithoutChildren$0();
  66721. grandparent.addChild$1($parent);
  66722. }
  66723. }
  66724. $parent.addChild$1(node);
  66725. },
  66726. _async_evaluate0$_addChild$1: function(node) {
  66727. return this._async_evaluate0$_addChild$2$through(node, null);
  66728. },
  66729. _async_evaluate0$_withStyleRule$1$2: function(rule, callback, $T) {
  66730. return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T._eval$1("0*"));
  66731. },
  66732. _withStyleRule$body$_EvaluateVisitor0: function(rule, callback, $T, $async$type) {
  66733. var $async$goto = 0,
  66734. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66735. $async$returnValue, $async$self = this, result, oldRule;
  66736. var $async$_async_evaluate0$_withStyleRule$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66737. if ($async$errorCode === 1)
  66738. return P._asyncRethrow($async$result, $async$completer);
  66739. while (true)
  66740. switch ($async$goto) {
  66741. case 0:
  66742. // Function start
  66743. oldRule = $async$self._async_evaluate0$_styleRule;
  66744. $async$self._async_evaluate0$_styleRule = rule;
  66745. $async$goto = 3;
  66746. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
  66747. case 3:
  66748. // returning from await.
  66749. result = $async$result;
  66750. $async$self._async_evaluate0$_styleRule = oldRule;
  66751. $async$returnValue = result;
  66752. // goto return
  66753. $async$goto = 1;
  66754. break;
  66755. case 1:
  66756. // return
  66757. return P._asyncReturn($async$returnValue, $async$completer);
  66758. }
  66759. });
  66760. return P._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
  66761. },
  66762. _async_evaluate0$_withMediaQueries$1$2: function(queries, callback, $T) {
  66763. return this._withMediaQueries$body$_EvaluateVisitor0(queries, callback, $T, $T._eval$1("0*"));
  66764. },
  66765. _withMediaQueries$body$_EvaluateVisitor0: function(queries, callback, $T, $async$type) {
  66766. var $async$goto = 0,
  66767. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66768. $async$returnValue, $async$self = this, result, oldMediaQueries;
  66769. var $async$_async_evaluate0$_withMediaQueries$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66770. if ($async$errorCode === 1)
  66771. return P._asyncRethrow($async$result, $async$completer);
  66772. while (true)
  66773. switch ($async$goto) {
  66774. case 0:
  66775. // Function start
  66776. oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
  66777. $async$self._async_evaluate0$_mediaQueries = queries;
  66778. $async$goto = 3;
  66779. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$2);
  66780. case 3:
  66781. // returning from await.
  66782. result = $async$result;
  66783. $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
  66784. $async$returnValue = result;
  66785. // goto return
  66786. $async$goto = 1;
  66787. break;
  66788. case 1:
  66789. // return
  66790. return P._asyncReturn($async$returnValue, $async$completer);
  66791. }
  66792. });
  66793. return P._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$2, $async$completer);
  66794. },
  66795. _async_evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback, $T) {
  66796. return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T._eval$1("0*"));
  66797. },
  66798. _withStackFrame$body$_EvaluateVisitor0: function(member, nodeWithSpan, callback, $T, $async$type) {
  66799. var $async$goto = 0,
  66800. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66801. $async$returnValue, $async$self = this, oldMember, result, t1;
  66802. var $async$_async_evaluate0$_withStackFrame$1$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66803. if ($async$errorCode === 1)
  66804. return P._asyncRethrow($async$result, $async$completer);
  66805. while (true)
  66806. switch ($async$goto) {
  66807. case 0:
  66808. // Function start
  66809. t1 = $async$self._async_evaluate0$_stack;
  66810. t1.push(new S.Tuple2($async$self._async_evaluate0$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode_2));
  66811. oldMember = $async$self._async_evaluate0$_member;
  66812. $async$self._async_evaluate0$_member = member;
  66813. $async$goto = 3;
  66814. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
  66815. case 3:
  66816. // returning from await.
  66817. result = $async$result;
  66818. $async$self._async_evaluate0$_member = oldMember;
  66819. t1.pop();
  66820. $async$returnValue = result;
  66821. // goto return
  66822. $async$goto = 1;
  66823. break;
  66824. case 1:
  66825. // return
  66826. return P._asyncReturn($async$returnValue, $async$completer);
  66827. }
  66828. });
  66829. return P._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
  66830. },
  66831. _async_evaluate0$_stackFrame$2: function(member, span) {
  66832. var url = span.file.url;
  66833. return B.frameForSpan0(span, member, url != null && this._async_evaluate0$_importCache != null ? this._async_evaluate0$_importCache.humanize$1(url) : url);
  66834. },
  66835. _async_evaluate0$_stackTrace$1: function(span) {
  66836. var t2, cur, _this = this,
  66837. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  66838. for (t2 = _this._async_evaluate0$_stack, t2 = new H.MappedListIterable(t2, new E._EvaluateVisitor__stackTrace_closure2(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  66839. cur = t2.__internal$_current;
  66840. t1.push(cur);
  66841. }
  66842. if (span != null)
  66843. t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
  66844. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  66845. },
  66846. _async_evaluate0$_stackTrace$0: function() {
  66847. return this._async_evaluate0$_stackTrace$1(null);
  66848. },
  66849. _async_evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  66850. return this._async_evaluate0$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, this._async_evaluate0$_stackTrace$1(span));
  66851. },
  66852. _async_evaluate0$_warn$2: function(message, span) {
  66853. return this._async_evaluate0$_warn$3$deprecation(message, span, false);
  66854. },
  66855. _async_evaluate0$_exception$2: function(message, span) {
  66856. var t1 = span == null ? C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span() : span;
  66857. return new E.SassRuntimeException0(this._async_evaluate0$_stackTrace$1(span), message, t1);
  66858. },
  66859. _async_evaluate0$_exception$1: function(message) {
  66860. return this._async_evaluate0$_exception$2(message, null);
  66861. },
  66862. _async_evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  66863. var t1 = C.JSArray_methods.get$last(this._async_evaluate0$_stack).item2.get$span();
  66864. return new E.MultiSpanSassRuntimeException0(this._async_evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  66865. },
  66866. _async_evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  66867. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  66868. try {
  66869. t1 = callback.call$0();
  66870. return t1;
  66871. } catch (exception) {
  66872. t1 = H.unwrapException(exception);
  66873. if (t1 instanceof E.SassFormatException0) {
  66874. error = t1;
  66875. t1 = error;
  66876. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  66877. span = nodeWithSpan.get$span();
  66878. t1 = span;
  66879. t2 = span;
  66880. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  66881. t2 = Y.SourceFile$fromString(syntheticFile, span.file.url);
  66882. t1 = span;
  66883. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  66884. t3 = error;
  66885. t3 = G.SourceSpanException.prototype.get$span.call(t3);
  66886. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  66887. t4 = span;
  66888. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  66889. t5 = error;
  66890. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  66891. syntheticSpan = t2.span$2(t1.offset + t3.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  66892. throw H.wrapException(this._async_evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  66893. } else
  66894. throw exception;
  66895. }
  66896. },
  66897. _async_evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  66898. return this._async_evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  66899. },
  66900. _async_evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  66901. var error, error0, t1, exception;
  66902. try {
  66903. t1 = callback.call$0();
  66904. return t1;
  66905. } catch (exception) {
  66906. t1 = H.unwrapException(exception);
  66907. if (t1 instanceof E.MultiSpanSassScriptException0) {
  66908. error = t1;
  66909. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  66910. } else if (t1 instanceof E.SassScriptException0) {
  66911. error0 = t1;
  66912. throw H.wrapException(this._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  66913. } else
  66914. throw exception;
  66915. }
  66916. },
  66917. _async_evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  66918. return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  66919. },
  66920. _async_evaluate0$_addExceptionSpanAsync$1$2: function(nodeWithSpan, callback, $T) {
  66921. return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  66922. },
  66923. _addExceptionSpanAsync$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  66924. var $async$goto = 0,
  66925. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66926. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, error0, t1, exception, $async$exception;
  66927. var $async$_async_evaluate0$_addExceptionSpanAsync$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66928. if ($async$errorCode === 1) {
  66929. $async$currentError = $async$result;
  66930. $async$goto = $async$handler;
  66931. }
  66932. while (true)
  66933. switch ($async$goto) {
  66934. case 0:
  66935. // Function start
  66936. $async$handler = 4;
  66937. $async$goto = 7;
  66938. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addExceptionSpanAsync$1$2);
  66939. case 7:
  66940. // returning from await.
  66941. t1 = $async$result;
  66942. $async$returnValue = t1;
  66943. // goto return
  66944. $async$goto = 1;
  66945. break;
  66946. $async$handler = 2;
  66947. // goto after finally
  66948. $async$goto = 6;
  66949. break;
  66950. case 4:
  66951. // catch
  66952. $async$handler = 3;
  66953. $async$exception = $async$currentError;
  66954. t1 = H.unwrapException($async$exception);
  66955. if (t1 instanceof E.MultiSpanSassScriptException0) {
  66956. error = t1;
  66957. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  66958. } else if (t1 instanceof E.SassScriptException0) {
  66959. error0 = t1;
  66960. throw H.wrapException($async$self._async_evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  66961. } else
  66962. throw $async$exception;
  66963. // goto after finally
  66964. $async$goto = 6;
  66965. break;
  66966. case 3:
  66967. // uncaught
  66968. // goto rethrow
  66969. $async$goto = 2;
  66970. break;
  66971. case 6:
  66972. // after finally
  66973. case 1:
  66974. // return
  66975. return P._asyncReturn($async$returnValue, $async$completer);
  66976. case 2:
  66977. // rethrow
  66978. return P._asyncRethrow($async$currentError, $async$completer);
  66979. }
  66980. });
  66981. return P._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$2, $async$completer);
  66982. },
  66983. _async_evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback, $T) {
  66984. return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T._eval$1("0*"));
  66985. },
  66986. _addErrorSpan$body$_EvaluateVisitor0: function(nodeWithSpan, callback, $T, $async$type) {
  66987. var $async$goto = 0,
  66988. $async$completer = P._makeAsyncAwaitCompleter($async$type),
  66989. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, error, t1, exception, $async$exception;
  66990. var $async$_async_evaluate0$_addErrorSpan$1$2 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  66991. if ($async$errorCode === 1) {
  66992. $async$currentError = $async$result;
  66993. $async$goto = $async$handler;
  66994. }
  66995. while (true)
  66996. switch ($async$goto) {
  66997. case 0:
  66998. // Function start
  66999. $async$handler = 4;
  67000. $async$goto = 7;
  67001. return P._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
  67002. case 7:
  67003. // returning from await.
  67004. t1 = $async$result;
  67005. $async$returnValue = t1;
  67006. // goto return
  67007. $async$goto = 1;
  67008. break;
  67009. $async$handler = 2;
  67010. // goto after finally
  67011. $async$goto = 6;
  67012. break;
  67013. case 4:
  67014. // catch
  67015. $async$handler = 3;
  67016. $async$exception = $async$currentError;
  67017. t1 = H.unwrapException($async$exception);
  67018. if (type$.legacy_SassRuntimeException_2._is(t1)) {
  67019. error = t1;
  67020. t1 = error.get$span();
  67021. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  67022. throw $async$exception;
  67023. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), $async$self._async_evaluate0$_stackTrace$0()));
  67024. } else
  67025. throw $async$exception;
  67026. // goto after finally
  67027. $async$goto = 6;
  67028. break;
  67029. case 3:
  67030. // uncaught
  67031. // goto rethrow
  67032. $async$goto = 2;
  67033. break;
  67034. case 6:
  67035. // after finally
  67036. case 1:
  67037. // return
  67038. return P._asyncReturn($async$returnValue, $async$completer);
  67039. case 2:
  67040. // rethrow
  67041. return P._asyncRethrow($async$currentError, $async$completer);
  67042. }
  67043. });
  67044. return P._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
  67045. }
  67046. };
  67047. E._EvaluateVisitor_closure29.prototype = {
  67048. call$1: function($arguments) {
  67049. var module, t2,
  67050. t1 = J.getInterceptor$asx($arguments),
  67051. variable = t1.$index($arguments, 0).assertString$1("name");
  67052. t1 = t1.$index($arguments, 1).get$realNull();
  67053. module = t1 == null ? null : t1.assertString$1("module");
  67054. t1 = this.$this._async_evaluate0$_environment;
  67055. t2 = variable.text;
  67056. t2.toString;
  67057. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  67058. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  67059. },
  67060. $signature: 20
  67061. };
  67062. E._EvaluateVisitor_closure30.prototype = {
  67063. call$1: function($arguments) {
  67064. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  67065. t1 = this.$this._async_evaluate0$_environment,
  67066. t2 = variable.text;
  67067. t2.toString;
  67068. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  67069. },
  67070. $signature: 20
  67071. };
  67072. E._EvaluateVisitor_closure31.prototype = {
  67073. call$1: function($arguments) {
  67074. var module, t2, t3, t4,
  67075. t1 = J.getInterceptor$asx($arguments),
  67076. variable = t1.$index($arguments, 0).assertString$1("name");
  67077. t1 = t1.$index($arguments, 1).get$realNull();
  67078. module = t1 == null ? null : t1.assertString$1("module");
  67079. t1 = this.$this;
  67080. t2 = t1._async_evaluate0$_environment;
  67081. t3 = variable.text;
  67082. t3.toString;
  67083. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  67084. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  67085. },
  67086. $signature: 20
  67087. };
  67088. E._EvaluateVisitor_closure32.prototype = {
  67089. call$1: function($arguments) {
  67090. var module, t2,
  67091. t1 = J.getInterceptor$asx($arguments),
  67092. variable = t1.$index($arguments, 0).assertString$1("name");
  67093. t1 = t1.$index($arguments, 1).get$realNull();
  67094. module = t1 == null ? null : t1.assertString$1("module");
  67095. t1 = this.$this._async_evaluate0$_environment;
  67096. t2 = variable.text;
  67097. t2.toString;
  67098. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  67099. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  67100. },
  67101. $signature: 20
  67102. };
  67103. E._EvaluateVisitor_closure33.prototype = {
  67104. call$1: function($arguments) {
  67105. var t1 = this.$this._async_evaluate0$_environment;
  67106. if (!t1._async_environment0$_inMixin)
  67107. throw H.wrapException(E.SassScriptException$0(string$.conten));
  67108. return t1._async_environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  67109. },
  67110. $signature: 20
  67111. };
  67112. E._EvaluateVisitor_closure34.prototype = {
  67113. call$1: function($arguments) {
  67114. var t2, t3, t4,
  67115. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  67116. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  67117. if (module == null)
  67118. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  67119. t1 = type$.legacy_Value_2;
  67120. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  67121. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  67122. t4 = t3.get$current(t3);
  67123. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  67124. }
  67125. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  67126. },
  67127. $signature: 38
  67128. };
  67129. E._EvaluateVisitor_closure35.prototype = {
  67130. call$1: function($arguments) {
  67131. var t2, t3, t4,
  67132. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  67133. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  67134. if (module == null)
  67135. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  67136. t1 = type$.legacy_Value_2;
  67137. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  67138. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  67139. t4 = t3.get$current(t3);
  67140. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  67141. }
  67142. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  67143. },
  67144. $signature: 38
  67145. };
  67146. E._EvaluateVisitor_closure36.prototype = {
  67147. call$1: function($arguments) {
  67148. var module, callable,
  67149. t1 = J.getInterceptor$asx($arguments),
  67150. $name = t1.$index($arguments, 0).assertString$1("name"),
  67151. css = t1.$index($arguments, 1).get$isTruthy();
  67152. t1 = t1.$index($arguments, 2).get$realNull();
  67153. module = t1 == null ? null : t1.assertString$1("module");
  67154. if (css && module != null)
  67155. throw H.wrapException(string$.x24css_a);
  67156. if (css)
  67157. callable = new L.PlainCssCallable0($name.text);
  67158. else {
  67159. t1 = this.$this;
  67160. callable = t1._async_evaluate0$_addExceptionSpan$2(t1._async_evaluate0$_callableNode, new E._EvaluateVisitor__closure10(t1, $name, module));
  67161. }
  67162. if (callable != null)
  67163. return new F.SassFunction0(callable);
  67164. throw H.wrapException("Function not found: " + $name.toString$0(0));
  67165. },
  67166. $signature: 162
  67167. };
  67168. E._EvaluateVisitor__closure10.prototype = {
  67169. call$0: function() {
  67170. var t2,
  67171. t1 = this.name.text;
  67172. t1.toString;
  67173. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  67174. t2 = this.module;
  67175. t2 = t2 == null ? null : t2.text;
  67176. return this.$this._async_evaluate0$_getFunction$2$namespace(t1, t2);
  67177. },
  67178. $signature: 107
  67179. };
  67180. E._EvaluateVisitor_closure37.prototype = {
  67181. call$1: function($arguments) {
  67182. return this.$call$body$_EvaluateVisitor_closure2($arguments);
  67183. },
  67184. $call$body$_EvaluateVisitor_closure2: function($arguments) {
  67185. var $async$goto = 0,
  67186. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  67187. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, invocation, callable, t1, $function, args;
  67188. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67189. if ($async$errorCode === 1)
  67190. return P._asyncRethrow($async$result, $async$completer);
  67191. while (true)
  67192. switch ($async$goto) {
  67193. case 0:
  67194. // Function start
  67195. t1 = J.getInterceptor$asx($arguments);
  67196. $function = t1.$index($arguments, 0);
  67197. args = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  67198. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  67199. t2 = type$.legacy_String;
  67200. t3 = type$.legacy_Expression_2;
  67201. t4 = $async$self.$this;
  67202. t5 = t4._async_evaluate0$_callableNode.get$span();
  67203. t6 = t4._async_evaluate0$_callableNode.get$span();
  67204. args._argument_list$_wereKeywordsAccessed = true;
  67205. t7 = args._argument_list$_keywords;
  67206. if (t7.get$isEmpty(t7))
  67207. t7 = null;
  67208. else {
  67209. t8 = type$.legacy_Value_2;
  67210. t9 = P.LinkedHashMap_LinkedHashMap$_empty(t8, t8);
  67211. for (args._argument_list$_wereKeywordsAccessed = true, t7 = t7.get$entries(t7), t7 = t7.get$iterator(t7); t7.moveNext$0();) {
  67212. t10 = t7.get$current(t7);
  67213. t9.$indexSet(0, new D.SassString0(t10.key, false), t10.value);
  67214. }
  67215. t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(t9, t8, t8)), t4._async_evaluate0$_callableNode.get$span());
  67216. }
  67217. invocation = new X.ArgumentInvocation0(P.List_List$unmodifiable(t1, t3), H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), t2, t3), new F.ValueExpression0(args, t6), t7, t5);
  67218. $async$goto = $function instanceof D.SassString0 ? 3 : 4;
  67219. break;
  67220. case 3:
  67221. // then
  67222. N.warn0(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  67223. $async$goto = 5;
  67224. return P._asyncAwait(t4.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t4._async_evaluate0$_callableNode.get$span()), invocation, t4._async_evaluate0$_callableNode.get$span())), $async$call$1);
  67225. case 5:
  67226. // returning from await.
  67227. $async$returnValue = $async$result;
  67228. // goto return
  67229. $async$goto = 1;
  67230. break;
  67231. case 4:
  67232. // join
  67233. callable = $function.assertFunction$1("function").callable;
  67234. $async$goto = type$.legacy_AsyncCallable_2._is(callable) ? 6 : 8;
  67235. break;
  67236. case 6:
  67237. // then
  67238. $async$goto = 9;
  67239. return P._asyncAwait(t4._async_evaluate0$_runFunctionCallable$3(invocation, callable, t4._async_evaluate0$_callableNode), $async$call$1);
  67240. case 9:
  67241. // returning from await.
  67242. $async$returnValue = $async$result;
  67243. // goto return
  67244. $async$goto = 1;
  67245. break;
  67246. // goto join
  67247. $async$goto = 7;
  67248. break;
  67249. case 8:
  67250. // else
  67251. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name(callable)) + string$.x20is_as));
  67252. case 7:
  67253. // join
  67254. case 1:
  67255. // return
  67256. return P._asyncReturn($async$returnValue, $async$completer);
  67257. }
  67258. });
  67259. return P._asyncStartSync($async$call$1, $async$completer);
  67260. },
  67261. $signature: 156
  67262. };
  67263. E._EvaluateVisitor_closure38.prototype = {
  67264. call$1: function($arguments) {
  67265. return this.$call$body$_EvaluateVisitor_closure1($arguments);
  67266. },
  67267. $call$body$_EvaluateVisitor_closure1: function($arguments) {
  67268. var $async$goto = 0,
  67269. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67270. $async$returnValue, $async$self = this, withMap, values, configuration, t2, t3, t1, url;
  67271. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67272. if ($async$errorCode === 1)
  67273. return P._asyncRethrow($async$result, $async$completer);
  67274. while (true)
  67275. switch ($async$goto) {
  67276. case 0:
  67277. // Function start
  67278. t1 = J.getInterceptor$asx($arguments);
  67279. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("url").text);
  67280. t1 = t1.$index($arguments, 1).get$realNull();
  67281. t1 = t1 == null ? null : t1.assertMap$1("with");
  67282. withMap = t1 == null ? null : t1.contents;
  67283. if (withMap != null) {
  67284. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  67285. t1 = $async$self.$this;
  67286. withMap.forEach$1(0, new E._EvaluateVisitor__closure8(values, t1._async_evaluate0$_callableNode.get$span()));
  67287. configuration = new A.Configuration0(values, t1._async_evaluate0$_callableNode, false);
  67288. } else
  67289. configuration = C.Configuration_Map_empty_null_true0;
  67290. t1 = $async$self.$this;
  67291. t2 = t1._async_evaluate0$_callableNode;
  67292. t3 = t2.get$span();
  67293. t3 = t3 == null ? null : t3.file.url;
  67294. $async$goto = 3;
  67295. return P._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new E._EvaluateVisitor__closure9(t1), t3, configuration, true), $async$call$1);
  67296. case 3:
  67297. // returning from await.
  67298. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  67299. $async$returnValue = null;
  67300. // goto return
  67301. $async$goto = 1;
  67302. break;
  67303. case 1:
  67304. // return
  67305. return P._asyncReturn($async$returnValue, $async$completer);
  67306. }
  67307. });
  67308. return P._asyncStartSync($async$call$1, $async$completer);
  67309. },
  67310. $signature: 176
  67311. };
  67312. E._EvaluateVisitor__closure8.prototype = {
  67313. call$2: function(variable, value) {
  67314. var $name,
  67315. t1 = variable.assertString$1("with key").text;
  67316. t1.toString;
  67317. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  67318. t1 = this.values;
  67319. if (t1.containsKey$1($name))
  67320. throw H.wrapException("The variable $" + $name + " was configured twice.");
  67321. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  67322. },
  67323. $signature: 45
  67324. };
  67325. E._EvaluateVisitor__closure9.prototype = {
  67326. call$1: function(module) {
  67327. var t1 = this.$this;
  67328. return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  67329. },
  67330. $signature: 152
  67331. };
  67332. E._EvaluateVisitor_run_closure2.prototype = {
  67333. call$0: function() {
  67334. var $async$goto = 0,
  67335. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_EvaluateResult_2),
  67336. $async$returnValue, $async$self = this, t2, t1, url, $async$temp1, $async$temp2;
  67337. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67338. if ($async$errorCode === 1)
  67339. return P._asyncRethrow($async$result, $async$completer);
  67340. while (true)
  67341. switch ($async$goto) {
  67342. case 0:
  67343. // Function start
  67344. t1 = $async$self.node;
  67345. url = t1.span.file.url;
  67346. if (url != null) {
  67347. t2 = $async$self.$this;
  67348. t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
  67349. if (t2._async_evaluate0$_nodeImporter != null)
  67350. if (url.get$scheme() === "file")
  67351. t2._async_evaluate0$_includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  67352. else if (url.toString$0(0) !== "stdin")
  67353. t2._async_evaluate0$_includedFiles.add$1(0, url.toString$0(0));
  67354. }
  67355. t2 = $async$self.$this;
  67356. $async$temp1 = E;
  67357. $async$temp2 = t2;
  67358. $async$goto = 3;
  67359. return P._asyncAwait(t2._async_evaluate0$_execute$2($async$self.importer, t1), $async$call$0);
  67360. case 3:
  67361. // returning from await.
  67362. $async$returnValue = new $async$temp1.EvaluateResult0($async$temp2._async_evaluate0$_combineCss$1($async$result), t2._async_evaluate0$_includedFiles);
  67363. // goto return
  67364. $async$goto = 1;
  67365. break;
  67366. case 1:
  67367. // return
  67368. return P._asyncReturn($async$returnValue, $async$completer);
  67369. }
  67370. });
  67371. return P._asyncStartSync($async$call$0, $async$completer);
  67372. },
  67373. $signature: 287
  67374. };
  67375. E._EvaluateVisitor__withWarnCallback_closure2.prototype = {
  67376. call$2: function(message, deprecation) {
  67377. var t1 = this.$this,
  67378. t2 = t1._async_evaluate0$_importSpan;
  67379. return t1._async_evaluate0$_warn$3$deprecation(message, t2 == null ? t1._async_evaluate0$_callableNode.get$span() : t2, deprecation);
  67380. },
  67381. "call*": "call$2",
  67382. $requiredArgCount: 2,
  67383. $signature: 72
  67384. };
  67385. E._EvaluateVisitor__loadModule_closure5.prototype = {
  67386. call$0: function() {
  67387. return this.callback.call$1(this.builtInModule);
  67388. },
  67389. $signature: 1
  67390. };
  67391. E._EvaluateVisitor__loadModule_closure6.prototype = {
  67392. call$0: function() {
  67393. var $async$goto = 0,
  67394. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67395. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, module, error, error0, error1, error2, message, previousLoad, exception, t1, t2, result, importer, stylesheet, canonicalUrl, t3, $async$exception;
  67396. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67397. if ($async$errorCode === 1) {
  67398. $async$currentError = $async$result;
  67399. $async$goto = $async$handler;
  67400. }
  67401. while (true)
  67402. switch ($async$goto) {
  67403. case 0:
  67404. // Function start
  67405. t1 = $async$self.$this;
  67406. t2 = $async$self.nodeWithSpan;
  67407. $async$goto = 2;
  67408. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$($async$self.url), t2.get$span(), $async$self.baseUrl), $async$call$0);
  67409. case 2:
  67410. // returning from await.
  67411. result = $async$result;
  67412. importer = result.item1;
  67413. stylesheet = result.item2;
  67414. canonicalUrl = stylesheet.span.file.url;
  67415. t3 = t1._async_evaluate0$_activeModules;
  67416. if (t3.containsKey$1(canonicalUrl)) {
  67417. message = $async$self.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  67418. previousLoad = t3.$index(0, canonicalUrl);
  67419. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1(message) : t1._async_evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  67420. }
  67421. t3.$indexSet(0, canonicalUrl, t2);
  67422. module = null;
  67423. $async$handler = 3;
  67424. $async$goto = 6;
  67425. return P._asyncAwait(t1._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t2), $async$call$0);
  67426. case 6:
  67427. // returning from await.
  67428. module = $async$result;
  67429. $async$next.push(5);
  67430. // goto finally
  67431. $async$goto = 4;
  67432. break;
  67433. case 3:
  67434. // uncaught
  67435. $async$next = [1];
  67436. case 4:
  67437. // finally
  67438. $async$handler = 1;
  67439. t3.remove$1(0, canonicalUrl);
  67440. // goto the next finally handler
  67441. $async$goto = $async$next.pop();
  67442. break;
  67443. case 5:
  67444. // after finally
  67445. $async$handler = 8;
  67446. $async$goto = 11;
  67447. return P._asyncAwait($async$self.callback.call$1(module), $async$call$0);
  67448. case 11:
  67449. // returning from await.
  67450. $async$handler = 1;
  67451. // goto after finally
  67452. $async$goto = 10;
  67453. break;
  67454. case 8:
  67455. // catch
  67456. $async$handler = 7;
  67457. $async$exception = $async$currentError;
  67458. t2 = H.unwrapException($async$exception);
  67459. if (type$.legacy_SassRuntimeException_2._is(t2))
  67460. throw $async$exception;
  67461. else if (t2 instanceof E.MultiSpanSassException0) {
  67462. error = t2;
  67463. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._async_evaluate0$_stackTrace$1(error.get$span())));
  67464. } else if (t2 instanceof E.SassException0) {
  67465. error0 = t2;
  67466. throw H.wrapException(t1._async_evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  67467. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  67468. error1 = t2;
  67469. throw H.wrapException(t1._async_evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  67470. } else if (t2 instanceof E.SassScriptException0) {
  67471. error2 = t2;
  67472. throw H.wrapException(t1._async_evaluate0$_exception$1(error2.message));
  67473. } else
  67474. throw $async$exception;
  67475. // goto after finally
  67476. $async$goto = 10;
  67477. break;
  67478. case 7:
  67479. // uncaught
  67480. // goto rethrow
  67481. $async$goto = 1;
  67482. break;
  67483. case 10:
  67484. // after finally
  67485. // implicit return
  67486. return P._asyncReturn(null, $async$completer);
  67487. case 1:
  67488. // rethrow
  67489. return P._asyncRethrow($async$currentError, $async$completer);
  67490. }
  67491. });
  67492. return P._asyncStartSync($async$call$0, $async$completer);
  67493. },
  67494. $signature: 2
  67495. };
  67496. E._EvaluateVisitor__execute_closure2.prototype = {
  67497. call$0: function() {
  67498. var $async$goto = 0,
  67499. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67500. $async$self = this, t2, t3, t4, css, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtender, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldAtRootExcludingStyleRule, oldInKeyframes, oldConfiguration;
  67501. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67502. if ($async$errorCode === 1)
  67503. return P._asyncRethrow($async$result, $async$completer);
  67504. while (true)
  67505. switch ($async$goto) {
  67506. case 0:
  67507. // Function start
  67508. t1 = $async$self.$this;
  67509. oldImporter = t1._async_evaluate0$_importer;
  67510. oldStylesheet = t1._async_evaluate0$_stylesheet;
  67511. oldRoot = t1._async_evaluate0$_root;
  67512. oldParent = t1._async_evaluate0$_parent;
  67513. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  67514. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  67515. oldExtender = t1._async_evaluate0$_extender;
  67516. oldStyleRule = t1._async_evaluate0$_styleRule;
  67517. oldMediaQueries = t1._async_evaluate0$_mediaQueries;
  67518. oldDeclarationName = t1._async_evaluate0$_declarationName;
  67519. oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  67520. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  67521. oldInKeyframes = t1._async_evaluate0$_inKeyframes;
  67522. oldConfiguration = t1._async_evaluate0$_configuration;
  67523. t1._async_evaluate0$_importer = $async$self.importer;
  67524. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  67525. t3 = t2.span;
  67526. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = V.ModifiableCssStylesheet$0(t3);
  67527. t1._async_evaluate0$_endOfImports = 0;
  67528. t1._async_evaluate0$_outOfOrderImports = null;
  67529. t1._async_evaluate0$_extender = $async$self.extender;
  67530. t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRule = null;
  67531. t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
  67532. t4 = $async$self.configuration;
  67533. if (t4 != null)
  67534. t1._async_evaluate0$_configuration = t4;
  67535. $async$goto = 2;
  67536. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  67537. case 2:
  67538. // returning from await.
  67539. css = t1._async_evaluate0$_outOfOrderImports == null ? t1._async_evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode_2), t3);
  67540. $async$self._box_0.css = css;
  67541. t1._async_evaluate0$_importer = oldImporter;
  67542. t1._async_evaluate0$_stylesheet = oldStylesheet;
  67543. t1._async_evaluate0$_root = oldRoot;
  67544. t1._async_evaluate0$_parent = oldParent;
  67545. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  67546. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  67547. t1._async_evaluate0$_extender = oldExtender;
  67548. t1._async_evaluate0$_styleRule = oldStyleRule;
  67549. t1._async_evaluate0$_mediaQueries = oldMediaQueries;
  67550. t1._async_evaluate0$_declarationName = oldDeclarationName;
  67551. t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  67552. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  67553. t1._async_evaluate0$_inKeyframes = oldInKeyframes;
  67554. t1._async_evaluate0$_configuration = oldConfiguration;
  67555. // implicit return
  67556. return P._asyncReturn(null, $async$completer);
  67557. }
  67558. });
  67559. return P._asyncStartSync($async$call$0, $async$completer);
  67560. },
  67561. $signature: 2
  67562. };
  67563. E._EvaluateVisitor__combineCss_closure8.prototype = {
  67564. call$1: function(module) {
  67565. return module.get$transitivelyContainsCss();
  67566. },
  67567. $signature: 110
  67568. };
  67569. E._EvaluateVisitor__combineCss_closure9.prototype = {
  67570. call$1: function(target) {
  67571. return !this.selectors.contains$1(0, target);
  67572. },
  67573. $signature: 19
  67574. };
  67575. E._EvaluateVisitor__combineCss_closure10.prototype = {
  67576. call$1: function(module) {
  67577. return module.cloneCss$0();
  67578. },
  67579. $signature: 168
  67580. };
  67581. E._EvaluateVisitor__extendModules_closure5.prototype = {
  67582. call$1: function(target) {
  67583. return !this.originalSelectors.contains$1(0, target);
  67584. },
  67585. $signature: 19
  67586. };
  67587. E._EvaluateVisitor__extendModules_closure6.prototype = {
  67588. call$0: function() {
  67589. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender_2);
  67590. },
  67591. $signature: 150
  67592. };
  67593. E._EvaluateVisitor__topologicalModules_visitModule2.prototype = {
  67594. call$1: function(module) {
  67595. var t1, t2, t3, _i, upstream;
  67596. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  67597. upstream = t1[_i];
  67598. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  67599. this.call$1(upstream);
  67600. }
  67601. this.sorted.addFirst$1(module);
  67602. },
  67603. $signature: 152
  67604. };
  67605. E._EvaluateVisitor_visitAtRootRule_closure8.prototype = {
  67606. call$0: function() {
  67607. return V.AtRootQueryParser$0(this.resolved, this.$this._async_evaluate0$_logger, null).parse$0();
  67608. },
  67609. $signature: 104
  67610. };
  67611. E._EvaluateVisitor_visitAtRootRule_closure9.prototype = {
  67612. call$0: function() {
  67613. var $async$goto = 0,
  67614. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67615. $async$self = this, t1, t2, t3, _i;
  67616. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67617. if ($async$errorCode === 1)
  67618. return P._asyncRethrow($async$result, $async$completer);
  67619. while (true)
  67620. switch ($async$goto) {
  67621. case 0:
  67622. // Function start
  67623. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67624. case 2:
  67625. // for condition
  67626. if (!(_i < t2)) {
  67627. // goto after for
  67628. $async$goto = 4;
  67629. break;
  67630. }
  67631. $async$goto = 5;
  67632. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67633. case 5:
  67634. // returning from await.
  67635. case 3:
  67636. // for update
  67637. ++_i;
  67638. // goto for condition
  67639. $async$goto = 2;
  67640. break;
  67641. case 4:
  67642. // after for
  67643. // implicit return
  67644. return P._asyncReturn(null, $async$completer);
  67645. }
  67646. });
  67647. return P._asyncStartSync($async$call$0, $async$completer);
  67648. },
  67649. $signature: 2
  67650. };
  67651. E._EvaluateVisitor_visitAtRootRule_closure10.prototype = {
  67652. call$0: function() {
  67653. var $async$goto = 0,
  67654. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67655. $async$self = this, t1, t2, t3, _i;
  67656. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67657. if ($async$errorCode === 1)
  67658. return P._asyncRethrow($async$result, $async$completer);
  67659. while (true)
  67660. switch ($async$goto) {
  67661. case 0:
  67662. // Function start
  67663. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67664. case 2:
  67665. // for condition
  67666. if (!(_i < t2)) {
  67667. // goto after for
  67668. $async$goto = 4;
  67669. break;
  67670. }
  67671. $async$goto = 5;
  67672. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67673. case 5:
  67674. // returning from await.
  67675. case 3:
  67676. // for update
  67677. ++_i;
  67678. // goto for condition
  67679. $async$goto = 2;
  67680. break;
  67681. case 4:
  67682. // after for
  67683. // implicit return
  67684. return P._asyncReturn(null, $async$completer);
  67685. }
  67686. });
  67687. return P._asyncStartSync($async$call$0, $async$completer);
  67688. },
  67689. "call*": "call$0",
  67690. $requiredArgCount: 0,
  67691. $signature: 2
  67692. };
  67693. E._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
  67694. call$1: function(callback) {
  67695. var $async$goto = 0,
  67696. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67697. $async$self = this, t1, oldParent;
  67698. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67699. if ($async$errorCode === 1)
  67700. return P._asyncRethrow($async$result, $async$completer);
  67701. while (true)
  67702. switch ($async$goto) {
  67703. case 0:
  67704. // Function start
  67705. t1 = $async$self.$this;
  67706. oldParent = t1._async_evaluate0$_parent;
  67707. t1._async_evaluate0$_parent = $async$self.newParent;
  67708. $async$goto = 2;
  67709. return P._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  67710. case 2:
  67711. // returning from await.
  67712. t1._async_evaluate0$_parent = oldParent;
  67713. // implicit return
  67714. return P._asyncReturn(null, $async$completer);
  67715. }
  67716. });
  67717. return P._asyncStartSync($async$call$1, $async$completer);
  67718. },
  67719. $signature: 32
  67720. };
  67721. E._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
  67722. call$1: function(callback) {
  67723. var $async$goto = 0,
  67724. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67725. $async$self = this, t1, oldAtRootExcludingStyleRule;
  67726. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67727. if ($async$errorCode === 1)
  67728. return P._asyncRethrow($async$result, $async$completer);
  67729. while (true)
  67730. switch ($async$goto) {
  67731. case 0:
  67732. // Function start
  67733. t1 = $async$self.$this;
  67734. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  67735. t1._async_evaluate0$_atRootExcludingStyleRule = true;
  67736. $async$goto = 2;
  67737. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  67738. case 2:
  67739. // returning from await.
  67740. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  67741. // implicit return
  67742. return P._asyncReturn(null, $async$completer);
  67743. }
  67744. });
  67745. return P._asyncStartSync($async$call$1, $async$completer);
  67746. },
  67747. $signature: 32
  67748. };
  67749. E._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
  67750. call$1: function(callback) {
  67751. return this.$this._async_evaluate0$_withMediaQueries$1$2(null, new E._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
  67752. },
  67753. $signature: 32
  67754. };
  67755. E._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
  67756. call$0: function() {
  67757. return this.innerScope.call$1(this.callback);
  67758. },
  67759. $signature: 2
  67760. };
  67761. E._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
  67762. call$1: function(callback) {
  67763. var $async$goto = 0,
  67764. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67765. $async$self = this, t1, wasInKeyframes;
  67766. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67767. if ($async$errorCode === 1)
  67768. return P._asyncRethrow($async$result, $async$completer);
  67769. while (true)
  67770. switch ($async$goto) {
  67771. case 0:
  67772. // Function start
  67773. t1 = $async$self.$this;
  67774. wasInKeyframes = t1._async_evaluate0$_inKeyframes;
  67775. t1._async_evaluate0$_inKeyframes = false;
  67776. $async$goto = 2;
  67777. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  67778. case 2:
  67779. // returning from await.
  67780. t1._async_evaluate0$_inKeyframes = wasInKeyframes;
  67781. // implicit return
  67782. return P._asyncReturn(null, $async$completer);
  67783. }
  67784. });
  67785. return P._asyncStartSync($async$call$1, $async$completer);
  67786. },
  67787. $signature: 32
  67788. };
  67789. E._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
  67790. call$1: function($parent) {
  67791. return type$.legacy_CssAtRule_2._is($parent);
  67792. },
  67793. $signature: 146
  67794. };
  67795. E._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
  67796. call$1: function(callback) {
  67797. var $async$goto = 0,
  67798. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67799. $async$self = this, t1, wasInUnknownAtRule;
  67800. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67801. if ($async$errorCode === 1)
  67802. return P._asyncRethrow($async$result, $async$completer);
  67803. while (true)
  67804. switch ($async$goto) {
  67805. case 0:
  67806. // Function start
  67807. t1 = $async$self.$this;
  67808. wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  67809. t1._async_evaluate0$_inUnknownAtRule = false;
  67810. $async$goto = 2;
  67811. return P._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  67812. case 2:
  67813. // returning from await.
  67814. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  67815. // implicit return
  67816. return P._asyncReturn(null, $async$completer);
  67817. }
  67818. });
  67819. return P._asyncStartSync($async$call$1, $async$completer);
  67820. },
  67821. $signature: 32
  67822. };
  67823. E._EvaluateVisitor_visitContentRule_closure2.prototype = {
  67824. call$0: function() {
  67825. var $async$goto = 0,
  67826. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67827. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  67828. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67829. if ($async$errorCode === 1)
  67830. return P._asyncRethrow($async$result, $async$completer);
  67831. while (true)
  67832. switch ($async$goto) {
  67833. case 0:
  67834. // Function start
  67835. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67836. case 3:
  67837. // for condition
  67838. if (!(_i < t2)) {
  67839. // goto after for
  67840. $async$goto = 5;
  67841. break;
  67842. }
  67843. $async$goto = 6;
  67844. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67845. case 6:
  67846. // returning from await.
  67847. case 4:
  67848. // for update
  67849. ++_i;
  67850. // goto for condition
  67851. $async$goto = 3;
  67852. break;
  67853. case 5:
  67854. // after for
  67855. $async$returnValue = null;
  67856. // goto return
  67857. $async$goto = 1;
  67858. break;
  67859. case 1:
  67860. // return
  67861. return P._asyncReturn($async$returnValue, $async$completer);
  67862. }
  67863. });
  67864. return P._asyncStartSync($async$call$0, $async$completer);
  67865. },
  67866. $signature: 2
  67867. };
  67868. E._EvaluateVisitor_visitDeclaration_closure2.prototype = {
  67869. call$0: function() {
  67870. var $async$goto = 0,
  67871. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67872. $async$self = this, t1, t2, t3, _i;
  67873. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67874. if ($async$errorCode === 1)
  67875. return P._asyncRethrow($async$result, $async$completer);
  67876. while (true)
  67877. switch ($async$goto) {
  67878. case 0:
  67879. // Function start
  67880. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  67881. case 2:
  67882. // for condition
  67883. if (!(_i < t2)) {
  67884. // goto after for
  67885. $async$goto = 4;
  67886. break;
  67887. }
  67888. $async$goto = 5;
  67889. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  67890. case 5:
  67891. // returning from await.
  67892. case 3:
  67893. // for update
  67894. ++_i;
  67895. // goto for condition
  67896. $async$goto = 2;
  67897. break;
  67898. case 4:
  67899. // after for
  67900. // implicit return
  67901. return P._asyncReturn(null, $async$completer);
  67902. }
  67903. });
  67904. return P._asyncStartSync($async$call$0, $async$completer);
  67905. },
  67906. $signature: 2
  67907. };
  67908. E._EvaluateVisitor_visitEachRule_closure8.prototype = {
  67909. call$1: function(value) {
  67910. return this.$this._async_evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  67911. },
  67912. $signature: 77
  67913. };
  67914. E._EvaluateVisitor_visitEachRule_closure9.prototype = {
  67915. call$1: function(value) {
  67916. return this.$this._async_evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  67917. },
  67918. $signature: 77
  67919. };
  67920. E._EvaluateVisitor_visitEachRule_closure10.prototype = {
  67921. call$0: function() {
  67922. var _this = this,
  67923. t1 = _this.$this;
  67924. return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new E._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
  67925. },
  67926. $signature: 31
  67927. };
  67928. E._EvaluateVisitor_visitEachRule__closure2.prototype = {
  67929. call$1: function(element) {
  67930. var t1;
  67931. this.setVariables.call$1(element);
  67932. t1 = this.$this;
  67933. return t1._async_evaluate0$_handleReturn$2(this.node.children, new E._EvaluateVisitor_visitEachRule___closure2(t1));
  67934. },
  67935. $signature: 294
  67936. };
  67937. E._EvaluateVisitor_visitEachRule___closure2.prototype = {
  67938. call$1: function(child) {
  67939. return child.accept$1(this.$this);
  67940. },
  67941. $signature: 76
  67942. };
  67943. E._EvaluateVisitor_visitExtendRule_closure2.prototype = {
  67944. call$0: function() {
  67945. var t1 = this.targetText;
  67946. return D.SelectorList_SelectorList$parse0(B.trimAscii0(t1.get$value(t1), true), false, true, this.$this._async_evaluate0$_logger);
  67947. },
  67948. $signature: 44
  67949. };
  67950. E._EvaluateVisitor_visitAtRule_closure5.prototype = {
  67951. call$0: function() {
  67952. var $async$goto = 0,
  67953. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  67954. $async$self = this, t3, _i, t1, t2;
  67955. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67956. if ($async$errorCode === 1)
  67957. return P._asyncRethrow($async$result, $async$completer);
  67958. while (true)
  67959. switch ($async$goto) {
  67960. case 0:
  67961. // Function start
  67962. t1 = $async$self.$this;
  67963. t2 = t1._async_evaluate0$_styleRule;
  67964. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) || t1._async_evaluate0$_inKeyframes ? 2 : 4;
  67965. break;
  67966. case 2:
  67967. // then
  67968. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  67969. case 5:
  67970. // for condition
  67971. if (!(_i < t3)) {
  67972. // goto after for
  67973. $async$goto = 7;
  67974. break;
  67975. }
  67976. $async$goto = 8;
  67977. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  67978. case 8:
  67979. // returning from await.
  67980. case 6:
  67981. // for update
  67982. ++_i;
  67983. // goto for condition
  67984. $async$goto = 5;
  67985. break;
  67986. case 7:
  67987. // after for
  67988. // goto join
  67989. $async$goto = 3;
  67990. break;
  67991. case 4:
  67992. // else
  67993. $async$goto = 9;
  67994. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  67995. case 9:
  67996. // returning from await.
  67997. case 3:
  67998. // join
  67999. // implicit return
  68000. return P._asyncReturn(null, $async$completer);
  68001. }
  68002. });
  68003. return P._asyncStartSync($async$call$0, $async$completer);
  68004. },
  68005. $signature: 2
  68006. };
  68007. E._EvaluateVisitor_visitAtRule__closure2.prototype = {
  68008. call$0: function() {
  68009. var $async$goto = 0,
  68010. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68011. $async$self = this, t1, t2, t3, _i;
  68012. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68013. if ($async$errorCode === 1)
  68014. return P._asyncRethrow($async$result, $async$completer);
  68015. while (true)
  68016. switch ($async$goto) {
  68017. case 0:
  68018. // Function start
  68019. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  68020. case 2:
  68021. // for condition
  68022. if (!(_i < t2)) {
  68023. // goto after for
  68024. $async$goto = 4;
  68025. break;
  68026. }
  68027. $async$goto = 5;
  68028. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  68029. case 5:
  68030. // returning from await.
  68031. case 3:
  68032. // for update
  68033. ++_i;
  68034. // goto for condition
  68035. $async$goto = 2;
  68036. break;
  68037. case 4:
  68038. // after for
  68039. // implicit return
  68040. return P._asyncReturn(null, $async$completer);
  68041. }
  68042. });
  68043. return P._asyncStartSync($async$call$0, $async$completer);
  68044. },
  68045. $signature: 2
  68046. };
  68047. E._EvaluateVisitor_visitAtRule_closure6.prototype = {
  68048. call$1: function(node) {
  68049. return type$.legacy_CssStyleRule_2._is(node);
  68050. },
  68051. $signature: 8
  68052. };
  68053. E._EvaluateVisitor_visitForRule_closure14.prototype = {
  68054. call$0: function() {
  68055. var $async$goto = 0,
  68056. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  68057. $async$returnValue, $async$self = this;
  68058. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68059. if ($async$errorCode === 1)
  68060. return P._asyncRethrow($async$result, $async$completer);
  68061. while (true)
  68062. switch ($async$goto) {
  68063. case 0:
  68064. // Function start
  68065. $async$goto = 3;
  68066. return P._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  68067. case 3:
  68068. // returning from await.
  68069. $async$returnValue = $async$result.assertNumber$0();
  68070. // goto return
  68071. $async$goto = 1;
  68072. break;
  68073. case 1:
  68074. // return
  68075. return P._asyncReturn($async$returnValue, $async$completer);
  68076. }
  68077. });
  68078. return P._asyncStartSync($async$call$0, $async$completer);
  68079. },
  68080. $signature: 138
  68081. };
  68082. E._EvaluateVisitor_visitForRule_closure15.prototype = {
  68083. call$0: function() {
  68084. var $async$goto = 0,
  68085. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_SassNumber_2),
  68086. $async$returnValue, $async$self = this;
  68087. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68088. if ($async$errorCode === 1)
  68089. return P._asyncRethrow($async$result, $async$completer);
  68090. while (true)
  68091. switch ($async$goto) {
  68092. case 0:
  68093. // Function start
  68094. $async$goto = 3;
  68095. return P._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  68096. case 3:
  68097. // returning from await.
  68098. $async$returnValue = $async$result.assertNumber$0();
  68099. // goto return
  68100. $async$goto = 1;
  68101. break;
  68102. case 1:
  68103. // return
  68104. return P._asyncReturn($async$returnValue, $async$completer);
  68105. }
  68106. });
  68107. return P._asyncStartSync($async$call$0, $async$completer);
  68108. },
  68109. $signature: 138
  68110. };
  68111. E._EvaluateVisitor_visitForRule_closure16.prototype = {
  68112. call$0: function() {
  68113. var t1 = this.toNumber;
  68114. return this.fromNumber.coerce$2(t1.numeratorUnits, t1.denominatorUnits).assertInt$0();
  68115. },
  68116. $signature: 11
  68117. };
  68118. E._EvaluateVisitor_visitForRule_closure17.prototype = {
  68119. call$0: function() {
  68120. return this.toNumber.assertInt$0();
  68121. },
  68122. $signature: 11
  68123. };
  68124. E._EvaluateVisitor_visitForRule_closure18.prototype = {
  68125. call$0: function() {
  68126. var $async$goto = 0,
  68127. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  68128. $async$returnValue, $async$self = this, i, t3, t4, t5, result, t1, t2, nodeWithSpan;
  68129. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68130. if ($async$errorCode === 1)
  68131. return P._asyncRethrow($async$result, $async$completer);
  68132. while (true)
  68133. switch ($async$goto) {
  68134. case 0:
  68135. // Function start
  68136. t1 = $async$self.$this;
  68137. t2 = $async$self.node;
  68138. nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
  68139. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t2 = t2.children;
  68140. case 3:
  68141. // for condition
  68142. if (!(i !== t3.to)) {
  68143. // goto after for
  68144. $async$goto = 5;
  68145. break;
  68146. }
  68147. t1._async_evaluate0$_environment.setLocalVariable$3(t5, T.SassNumber$0(i, null), nodeWithSpan);
  68148. $async$goto = 6;
  68149. return P._asyncAwait(t1._async_evaluate0$_handleReturn$2(t2, new E._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
  68150. case 6:
  68151. // returning from await.
  68152. result = $async$result;
  68153. if (result != null) {
  68154. $async$returnValue = result;
  68155. // goto return
  68156. $async$goto = 1;
  68157. break;
  68158. }
  68159. case 4:
  68160. // for update
  68161. i += t4;
  68162. // goto for condition
  68163. $async$goto = 3;
  68164. break;
  68165. case 5:
  68166. // after for
  68167. $async$returnValue = null;
  68168. // goto return
  68169. $async$goto = 1;
  68170. break;
  68171. case 1:
  68172. // return
  68173. return P._asyncReturn($async$returnValue, $async$completer);
  68174. }
  68175. });
  68176. return P._asyncStartSync($async$call$0, $async$completer);
  68177. },
  68178. $signature: 31
  68179. };
  68180. E._EvaluateVisitor_visitForRule__closure2.prototype = {
  68181. call$1: function(child) {
  68182. return child.accept$1(this.$this);
  68183. },
  68184. $signature: 76
  68185. };
  68186. E._EvaluateVisitor_visitForwardRule_closure5.prototype = {
  68187. call$1: function(module) {
  68188. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  68189. },
  68190. $signature: 100
  68191. };
  68192. E._EvaluateVisitor_visitForwardRule_closure6.prototype = {
  68193. call$1: function(module) {
  68194. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  68195. },
  68196. $signature: 100
  68197. };
  68198. E._EvaluateVisitor__assertConfigurationIsEmpty_closure2.prototype = {
  68199. call$2: function($name, value) {
  68200. var t1 = this.only;
  68201. if (t1 != null && !t1.contains$1(0, $name))
  68202. return;
  68203. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  68204. throw H.wrapException(this.$this._async_evaluate0$_exception$2(t1, value.configurationSpan));
  68205. },
  68206. $signature: 136
  68207. };
  68208. E._EvaluateVisitor_visitIfRule_closure2.prototype = {
  68209. call$0: function() {
  68210. var t1 = this.$this;
  68211. return t1._async_evaluate0$_handleReturn$2(this._box_0.clause.children, new E._EvaluateVisitor_visitIfRule__closure2(t1));
  68212. },
  68213. $signature: 31
  68214. };
  68215. E._EvaluateVisitor_visitIfRule__closure2.prototype = {
  68216. call$1: function(child) {
  68217. return child.accept$1(this.$this);
  68218. },
  68219. $signature: 76
  68220. };
  68221. E._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
  68222. call$0: function() {
  68223. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
  68224. },
  68225. $call$body$_EvaluateVisitor__visitDynamicImport_closure0: function() {
  68226. var $async$goto = 0,
  68227. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68228. $async$returnValue, $async$self = this, previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _box_0, t1, t2, result, importer, stylesheet, url, t3;
  68229. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68230. if ($async$errorCode === 1)
  68231. return P._asyncRethrow($async$result, $async$completer);
  68232. while (true)
  68233. switch ($async$goto) {
  68234. case 0:
  68235. // Function start
  68236. _box_0 = {};
  68237. t1 = $async$self.$this;
  68238. t2 = $async$self.$import;
  68239. $async$goto = 3;
  68240. return P._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true), $async$call$0);
  68241. case 3:
  68242. // returning from await.
  68243. result = $async$result;
  68244. importer = result.item1;
  68245. stylesheet = result.item2;
  68246. url = stylesheet.span.file.url;
  68247. t3 = t1._async_evaluate0$_activeModules;
  68248. if (t3.containsKey$1(url)) {
  68249. previousLoad = t3.$index(0, url);
  68250. throw H.wrapException(previousLoad == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t1._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  68251. }
  68252. t3.$indexSet(0, url, t2);
  68253. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_legacy_UseRule_2);
  68254. if (t2.get$length(t2) === 0) {
  68255. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  68256. t2 = t2.get$length(t2) === 0;
  68257. } else
  68258. t2 = false;
  68259. $async$goto = t2 ? 4 : 5;
  68260. break;
  68261. case 4:
  68262. // then
  68263. oldImporter = t1._async_evaluate0$_importer;
  68264. oldStylesheet = t1._async_evaluate0$_stylesheet;
  68265. t1._async_evaluate0$_importer = importer;
  68266. t1._async_evaluate0$_stylesheet = stylesheet;
  68267. $async$goto = 6;
  68268. return P._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
  68269. case 6:
  68270. // returning from await.
  68271. t1._async_evaluate0$_importer = oldImporter;
  68272. t1._async_evaluate0$_stylesheet = oldStylesheet;
  68273. t3.remove$1(0, url);
  68274. // goto return
  68275. $async$goto = 1;
  68276. break;
  68277. case 5:
  68278. // join
  68279. _box_0.children = null;
  68280. t2 = t1._async_evaluate0$_environment;
  68281. t4 = type$.legacy_String;
  68282. t5 = type$.legacy_Module_legacy_AsyncCallable_2;
  68283. t6 = type$.legacy_AstNode_2;
  68284. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  68285. t8 = t2._async_environment0$_variables;
  68286. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  68287. t9 = t2._async_environment0$_variableNodes;
  68288. if (t9 == null)
  68289. t9 = null;
  68290. else
  68291. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  68292. t10 = t2._async_environment0$_functions;
  68293. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  68294. t11 = t2._async_environment0$_mixins;
  68295. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  68296. environment = Q.AsyncEnvironment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), null, null, null, t7, t8, t9, t10, t11, t2._async_environment0$_content);
  68297. $async$goto = 7;
  68298. return P._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new E._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, importer, stylesheet, environment), type$.Null), $async$call$0);
  68299. case 7:
  68300. // returning from await.
  68301. module = Q._EnvironmentModule__EnvironmentModule2(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_legacy_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._async_environment0$_forwardedModules);
  68302. t1._async_evaluate0$_environment.importForwards$1(module);
  68303. $async$goto = module.transitivelyContainsCss ? 8 : 9;
  68304. break;
  68305. case 8:
  68306. // then
  68307. $async$goto = 10;
  68308. return P._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  68309. case 10:
  68310. // returning from await.
  68311. case 9:
  68312. // join
  68313. visitor = new E._ImportedCssVisitor2(t1);
  68314. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  68315. t1.get$current(t1).accept$1(visitor);
  68316. t3.remove$1(0, url);
  68317. case 1:
  68318. // return
  68319. return P._asyncReturn($async$returnValue, $async$completer);
  68320. }
  68321. });
  68322. return P._asyncStartSync($async$call$0, $async$completer);
  68323. },
  68324. $signature: 2
  68325. };
  68326. E._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
  68327. call$0: function() {
  68328. var $async$goto = 0,
  68329. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68330. $async$self = this, t2, t3, t1, oldImporter, oldStylesheet, oldRoot, oldParent, oldEndOfImports, oldOutOfOrderImports, oldConfiguration;
  68331. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68332. if ($async$errorCode === 1)
  68333. return P._asyncRethrow($async$result, $async$completer);
  68334. while (true)
  68335. switch ($async$goto) {
  68336. case 0:
  68337. // Function start
  68338. t1 = $async$self.$this;
  68339. oldImporter = t1._async_evaluate0$_importer;
  68340. oldStylesheet = t1._async_evaluate0$_stylesheet;
  68341. oldRoot = t1._async_evaluate0$_root;
  68342. oldParent = t1._async_evaluate0$_parent;
  68343. oldEndOfImports = t1._async_evaluate0$_endOfImports;
  68344. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  68345. oldConfiguration = t1._async_evaluate0$_configuration;
  68346. t1._async_evaluate0$_importer = $async$self.importer;
  68347. t2 = t1._async_evaluate0$_stylesheet = $async$self.stylesheet;
  68348. t1._async_evaluate0$_parent = t1._async_evaluate0$_root = V.ModifiableCssStylesheet$0(t2.span);
  68349. t1._async_evaluate0$_endOfImports = 0;
  68350. t1._async_evaluate0$_outOfOrderImports = null;
  68351. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  68352. if (!t3.get$isEmpty(t3))
  68353. t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
  68354. $async$goto = 2;
  68355. return P._asyncAwait(t1.visitStylesheet$1(t2), $async$call$0);
  68356. case 2:
  68357. // returning from await.
  68358. $async$self._box_0.children = t1._async_evaluate0$_addOutOfOrderImports$0();
  68359. t1._async_evaluate0$_importer = oldImporter;
  68360. t1._async_evaluate0$_stylesheet = oldStylesheet;
  68361. t1._async_evaluate0$_root = oldRoot;
  68362. t1._async_evaluate0$_parent = oldParent;
  68363. t1._async_evaluate0$_endOfImports = oldEndOfImports;
  68364. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  68365. t1._async_evaluate0$_configuration = oldConfiguration;
  68366. // implicit return
  68367. return P._asyncReturn(null, $async$completer);
  68368. }
  68369. });
  68370. return P._asyncStartSync($async$call$0, $async$completer);
  68371. },
  68372. $signature: 2
  68373. };
  68374. E._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
  68375. call$0: function() {
  68376. var t1 = this.node;
  68377. return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  68378. },
  68379. $signature: 107
  68380. };
  68381. E._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
  68382. call$0: function() {
  68383. return this.node.get$spanWithoutContent();
  68384. },
  68385. "call*": "call$0",
  68386. $requiredArgCount: 0,
  68387. $signature: 33
  68388. };
  68389. E._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
  68390. call$0: function() {
  68391. var $async$goto = 0,
  68392. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68393. $async$returnValue, $async$self = this, t1;
  68394. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68395. if ($async$errorCode === 1)
  68396. return P._asyncRethrow($async$result, $async$completer);
  68397. while (true)
  68398. switch ($async$goto) {
  68399. case 0:
  68400. // Function start
  68401. t1 = $async$self.$this;
  68402. $async$goto = 3;
  68403. return P._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new E._EvaluateVisitor_visitIncludeRule__closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  68404. case 3:
  68405. // returning from await.
  68406. $async$returnValue = null;
  68407. // goto return
  68408. $async$goto = 1;
  68409. break;
  68410. case 1:
  68411. // return
  68412. return P._asyncReturn($async$returnValue, $async$completer);
  68413. }
  68414. });
  68415. return P._asyncStartSync($async$call$0, $async$completer);
  68416. },
  68417. $signature: 2
  68418. };
  68419. E._EvaluateVisitor_visitIncludeRule__closure2.prototype = {
  68420. call$0: function() {
  68421. var $async$goto = 0,
  68422. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68423. $async$returnValue, $async$self = this, t1;
  68424. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68425. if ($async$errorCode === 1)
  68426. return P._asyncRethrow($async$result, $async$completer);
  68427. while (true)
  68428. switch ($async$goto) {
  68429. case 0:
  68430. // Function start
  68431. t1 = $async$self.$this;
  68432. $async$goto = 3;
  68433. return P._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new E._EvaluateVisitor_visitIncludeRule___closure2(t1, $async$self.mixin, $async$self.nodeWithSpan)), $async$call$0);
  68434. case 3:
  68435. // returning from await.
  68436. $async$returnValue = null;
  68437. // goto return
  68438. $async$goto = 1;
  68439. break;
  68440. case 1:
  68441. // return
  68442. return P._asyncReturn($async$returnValue, $async$completer);
  68443. }
  68444. });
  68445. return P._asyncStartSync($async$call$0, $async$completer);
  68446. },
  68447. $signature: 2
  68448. };
  68449. E._EvaluateVisitor_visitIncludeRule___closure2.prototype = {
  68450. call$0: function() {
  68451. var $async$goto = 0,
  68452. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68453. $async$self = this, t1, t2, t3, t4, t5, _i;
  68454. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68455. if ($async$errorCode === 1)
  68456. return P._asyncRethrow($async$result, $async$completer);
  68457. while (true)
  68458. switch ($async$goto) {
  68459. case 0:
  68460. // Function start
  68461. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpan, t5 = type$.legacy_Value_2, _i = 0;
  68462. case 2:
  68463. // for condition
  68464. if (!(_i < t2)) {
  68465. // goto after for
  68466. $async$goto = 4;
  68467. break;
  68468. }
  68469. $async$goto = 5;
  68470. return P._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new E._EvaluateVisitor_visitIncludeRule____closure2(t3, t1[_i]), t5), $async$call$0);
  68471. case 5:
  68472. // returning from await.
  68473. case 3:
  68474. // for update
  68475. ++_i;
  68476. // goto for condition
  68477. $async$goto = 2;
  68478. break;
  68479. case 4:
  68480. // after for
  68481. // implicit return
  68482. return P._asyncReturn(null, $async$completer);
  68483. }
  68484. });
  68485. return P._asyncStartSync($async$call$0, $async$completer);
  68486. },
  68487. $signature: 2
  68488. };
  68489. E._EvaluateVisitor_visitIncludeRule____closure2.prototype = {
  68490. call$0: function() {
  68491. return this.statement.accept$1(this.$this);
  68492. },
  68493. $signature: 31
  68494. };
  68495. E._EvaluateVisitor_visitMediaRule_closure5.prototype = {
  68496. call$0: function() {
  68497. var $async$goto = 0,
  68498. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68499. $async$self = this, t1, t2;
  68500. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68501. if ($async$errorCode === 1)
  68502. return P._asyncRethrow($async$result, $async$completer);
  68503. while (true)
  68504. switch ($async$goto) {
  68505. case 0:
  68506. // Function start
  68507. t1 = $async$self.$this;
  68508. t2 = $async$self.mergedQueries;
  68509. if (t2 == null)
  68510. t2 = $async$self.queries;
  68511. $async$goto = 2;
  68512. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  68513. case 2:
  68514. // returning from await.
  68515. // implicit return
  68516. return P._asyncReturn(null, $async$completer);
  68517. }
  68518. });
  68519. return P._asyncStartSync($async$call$0, $async$completer);
  68520. },
  68521. $signature: 2
  68522. };
  68523. E._EvaluateVisitor_visitMediaRule__closure2.prototype = {
  68524. call$0: function() {
  68525. var $async$goto = 0,
  68526. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68527. $async$self = this, t3, _i, t1, t2;
  68528. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68529. if ($async$errorCode === 1)
  68530. return P._asyncRethrow($async$result, $async$completer);
  68531. while (true)
  68532. switch ($async$goto) {
  68533. case 0:
  68534. // Function start
  68535. t1 = $async$self.$this;
  68536. t2 = t1._async_evaluate0$_styleRule;
  68537. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  68538. break;
  68539. case 2:
  68540. // then
  68541. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  68542. case 5:
  68543. // for condition
  68544. if (!(_i < t3)) {
  68545. // goto after for
  68546. $async$goto = 7;
  68547. break;
  68548. }
  68549. $async$goto = 8;
  68550. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  68551. case 8:
  68552. // returning from await.
  68553. case 6:
  68554. // for update
  68555. ++_i;
  68556. // goto for condition
  68557. $async$goto = 5;
  68558. break;
  68559. case 7:
  68560. // after for
  68561. // goto join
  68562. $async$goto = 3;
  68563. break;
  68564. case 4:
  68565. // else
  68566. $async$goto = 9;
  68567. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68568. case 9:
  68569. // returning from await.
  68570. case 3:
  68571. // join
  68572. // implicit return
  68573. return P._asyncReturn(null, $async$completer);
  68574. }
  68575. });
  68576. return P._asyncStartSync($async$call$0, $async$completer);
  68577. },
  68578. $signature: 2
  68579. };
  68580. E._EvaluateVisitor_visitMediaRule___closure2.prototype = {
  68581. call$0: function() {
  68582. var $async$goto = 0,
  68583. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68584. $async$self = this, t1, t2, t3, _i;
  68585. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68586. if ($async$errorCode === 1)
  68587. return P._asyncRethrow($async$result, $async$completer);
  68588. while (true)
  68589. switch ($async$goto) {
  68590. case 0:
  68591. // Function start
  68592. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  68593. case 2:
  68594. // for condition
  68595. if (!(_i < t2)) {
  68596. // goto after for
  68597. $async$goto = 4;
  68598. break;
  68599. }
  68600. $async$goto = 5;
  68601. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  68602. case 5:
  68603. // returning from await.
  68604. case 3:
  68605. // for update
  68606. ++_i;
  68607. // goto for condition
  68608. $async$goto = 2;
  68609. break;
  68610. case 4:
  68611. // after for
  68612. // implicit return
  68613. return P._asyncReturn(null, $async$completer);
  68614. }
  68615. });
  68616. return P._asyncStartSync($async$call$0, $async$completer);
  68617. },
  68618. $signature: 2
  68619. };
  68620. E._EvaluateVisitor_visitMediaRule_closure6.prototype = {
  68621. call$1: function(node) {
  68622. var t1;
  68623. if (!type$.legacy_CssStyleRule_2._is(node))
  68624. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  68625. else
  68626. t1 = true;
  68627. return t1;
  68628. },
  68629. $signature: 8
  68630. };
  68631. E._EvaluateVisitor__visitMediaQueries_closure2.prototype = {
  68632. call$0: function() {
  68633. return F.MediaQueryParser$0(this.resolved, this.$this._async_evaluate0$_logger, null).parse$0();
  68634. },
  68635. $signature: 99
  68636. };
  68637. E._EvaluateVisitor_visitStyleRule_closure20.prototype = {
  68638. call$0: function() {
  68639. var t1 = this.selectorText;
  68640. return E.KeyframeSelectorParser$0(t1.get$value(t1), this.$this._async_evaluate0$_logger).parse$0();
  68641. },
  68642. $signature: 40
  68643. };
  68644. E._EvaluateVisitor_visitStyleRule_closure21.prototype = {
  68645. call$0: function() {
  68646. var $async$goto = 0,
  68647. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68648. $async$self = this, t1, t2, t3, _i;
  68649. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68650. if ($async$errorCode === 1)
  68651. return P._asyncRethrow($async$result, $async$completer);
  68652. while (true)
  68653. switch ($async$goto) {
  68654. case 0:
  68655. // Function start
  68656. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  68657. case 2:
  68658. // for condition
  68659. if (!(_i < t2)) {
  68660. // goto after for
  68661. $async$goto = 4;
  68662. break;
  68663. }
  68664. $async$goto = 5;
  68665. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  68666. case 5:
  68667. // returning from await.
  68668. case 3:
  68669. // for update
  68670. ++_i;
  68671. // goto for condition
  68672. $async$goto = 2;
  68673. break;
  68674. case 4:
  68675. // after for
  68676. // implicit return
  68677. return P._asyncReturn(null, $async$completer);
  68678. }
  68679. });
  68680. return P._asyncStartSync($async$call$0, $async$completer);
  68681. },
  68682. $signature: 2
  68683. };
  68684. E._EvaluateVisitor_visitStyleRule_closure22.prototype = {
  68685. call$1: function(node) {
  68686. return type$.legacy_CssStyleRule_2._is(node);
  68687. },
  68688. $signature: 8
  68689. };
  68690. E._EvaluateVisitor_visitStyleRule_closure23.prototype = {
  68691. call$0: function() {
  68692. var t2, t3,
  68693. t1 = this.selectorText;
  68694. t1 = t1.get$value(t1);
  68695. t2 = this.$this;
  68696. t3 = !t2._async_evaluate0$_stylesheet.plainCss;
  68697. return D.SelectorList_SelectorList$parse0(t1, t3, t3, t2._async_evaluate0$_logger);
  68698. },
  68699. $signature: 44
  68700. };
  68701. E._EvaluateVisitor_visitStyleRule_closure24.prototype = {
  68702. call$0: function() {
  68703. var t1 = this._box_0.parsedSelector,
  68704. t2 = this.$this,
  68705. t3 = t2._async_evaluate0$_styleRule;
  68706. t3 = t3 == null ? null : t3.originalSelector;
  68707. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._async_evaluate0$_atRootExcludingStyleRule);
  68708. },
  68709. $signature: 44
  68710. };
  68711. E._EvaluateVisitor_visitStyleRule_closure25.prototype = {
  68712. call$0: function() {
  68713. var $async$goto = 0,
  68714. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68715. $async$self = this, t1;
  68716. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68717. if ($async$errorCode === 1)
  68718. return P._asyncRethrow($async$result, $async$completer);
  68719. while (true)
  68720. switch ($async$goto) {
  68721. case 0:
  68722. // Function start
  68723. t1 = $async$self.$this;
  68724. $async$goto = 2;
  68725. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  68726. case 2:
  68727. // returning from await.
  68728. // implicit return
  68729. return P._asyncReturn(null, $async$completer);
  68730. }
  68731. });
  68732. return P._asyncStartSync($async$call$0, $async$completer);
  68733. },
  68734. $signature: 2
  68735. };
  68736. E._EvaluateVisitor_visitStyleRule__closure2.prototype = {
  68737. call$0: function() {
  68738. var $async$goto = 0,
  68739. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68740. $async$self = this, t1, t2, t3, _i;
  68741. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68742. if ($async$errorCode === 1)
  68743. return P._asyncRethrow($async$result, $async$completer);
  68744. while (true)
  68745. switch ($async$goto) {
  68746. case 0:
  68747. // Function start
  68748. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  68749. case 2:
  68750. // for condition
  68751. if (!(_i < t2)) {
  68752. // goto after for
  68753. $async$goto = 4;
  68754. break;
  68755. }
  68756. $async$goto = 5;
  68757. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  68758. case 5:
  68759. // returning from await.
  68760. case 3:
  68761. // for update
  68762. ++_i;
  68763. // goto for condition
  68764. $async$goto = 2;
  68765. break;
  68766. case 4:
  68767. // after for
  68768. // implicit return
  68769. return P._asyncReturn(null, $async$completer);
  68770. }
  68771. });
  68772. return P._asyncStartSync($async$call$0, $async$completer);
  68773. },
  68774. $signature: 2
  68775. };
  68776. E._EvaluateVisitor_visitStyleRule_closure26.prototype = {
  68777. call$1: function(node) {
  68778. return type$.legacy_CssStyleRule_2._is(node);
  68779. },
  68780. $signature: 8
  68781. };
  68782. E._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
  68783. call$0: function() {
  68784. var $async$goto = 0,
  68785. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68786. $async$self = this, t3, _i, t1, t2;
  68787. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68788. if ($async$errorCode === 1)
  68789. return P._asyncRethrow($async$result, $async$completer);
  68790. while (true)
  68791. switch ($async$goto) {
  68792. case 0:
  68793. // Function start
  68794. t1 = $async$self.$this;
  68795. t2 = t1._async_evaluate0$_styleRule;
  68796. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  68797. break;
  68798. case 2:
  68799. // then
  68800. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  68801. case 5:
  68802. // for condition
  68803. if (!(_i < t3)) {
  68804. // goto after for
  68805. $async$goto = 7;
  68806. break;
  68807. }
  68808. $async$goto = 8;
  68809. return P._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  68810. case 8:
  68811. // returning from await.
  68812. case 6:
  68813. // for update
  68814. ++_i;
  68815. // goto for condition
  68816. $async$goto = 5;
  68817. break;
  68818. case 7:
  68819. // after for
  68820. // goto join
  68821. $async$goto = 3;
  68822. break;
  68823. case 4:
  68824. // else
  68825. $async$goto = 9;
  68826. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  68827. case 9:
  68828. // returning from await.
  68829. case 3:
  68830. // join
  68831. // implicit return
  68832. return P._asyncReturn(null, $async$completer);
  68833. }
  68834. });
  68835. return P._asyncStartSync($async$call$0, $async$completer);
  68836. },
  68837. $signature: 2
  68838. };
  68839. E._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
  68840. call$0: function() {
  68841. var $async$goto = 0,
  68842. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  68843. $async$self = this, t1, t2, t3, _i;
  68844. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68845. if ($async$errorCode === 1)
  68846. return P._asyncRethrow($async$result, $async$completer);
  68847. while (true)
  68848. switch ($async$goto) {
  68849. case 0:
  68850. // Function start
  68851. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  68852. case 2:
  68853. // for condition
  68854. if (!(_i < t2)) {
  68855. // goto after for
  68856. $async$goto = 4;
  68857. break;
  68858. }
  68859. $async$goto = 5;
  68860. return P._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  68861. case 5:
  68862. // returning from await.
  68863. case 3:
  68864. // for update
  68865. ++_i;
  68866. // goto for condition
  68867. $async$goto = 2;
  68868. break;
  68869. case 4:
  68870. // after for
  68871. // implicit return
  68872. return P._asyncReturn(null, $async$completer);
  68873. }
  68874. });
  68875. return P._asyncStartSync($async$call$0, $async$completer);
  68876. },
  68877. $signature: 2
  68878. };
  68879. E._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
  68880. call$1: function(node) {
  68881. return type$.legacy_CssStyleRule_2._is(node);
  68882. },
  68883. $signature: 8
  68884. };
  68885. E._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
  68886. call$0: function() {
  68887. var t1 = this.override;
  68888. this.$this._async_evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  68889. },
  68890. $signature: 0
  68891. };
  68892. E._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
  68893. call$0: function() {
  68894. var t1 = this.node;
  68895. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  68896. },
  68897. $signature: 21
  68898. };
  68899. E._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
  68900. call$0: function() {
  68901. var t1 = this.$this,
  68902. t2 = this.node;
  68903. t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  68904. },
  68905. $signature: 0
  68906. };
  68907. E._EvaluateVisitor_visitUseRule_closure2.prototype = {
  68908. call$1: function(module) {
  68909. var t1 = this.node;
  68910. this.$this._async_evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  68911. },
  68912. $signature: 100
  68913. };
  68914. E._EvaluateVisitor_visitWarnRule_closure2.prototype = {
  68915. call$0: function() {
  68916. return this.node.expression.accept$1(this.$this);
  68917. },
  68918. $signature: 31
  68919. };
  68920. E._EvaluateVisitor_visitWhileRule_closure2.prototype = {
  68921. call$0: function() {
  68922. var $async$goto = 0,
  68923. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  68924. $async$returnValue, $async$self = this, t1, t2, t3, result;
  68925. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68926. if ($async$errorCode === 1)
  68927. return P._asyncRethrow($async$result, $async$completer);
  68928. while (true)
  68929. switch ($async$goto) {
  68930. case 0:
  68931. // Function start
  68932. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  68933. case 3:
  68934. // for condition
  68935. $async$goto = 5;
  68936. return P._asyncAwait(t2.accept$1(t3), $async$call$0);
  68937. case 5:
  68938. // returning from await.
  68939. if (!$async$result.get$isTruthy()) {
  68940. // goto after for
  68941. $async$goto = 4;
  68942. break;
  68943. }
  68944. $async$goto = 6;
  68945. return P._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new E._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
  68946. case 6:
  68947. // returning from await.
  68948. result = $async$result;
  68949. if (result != null) {
  68950. $async$returnValue = result;
  68951. // goto return
  68952. $async$goto = 1;
  68953. break;
  68954. }
  68955. // goto for condition
  68956. $async$goto = 3;
  68957. break;
  68958. case 4:
  68959. // after for
  68960. $async$returnValue = null;
  68961. // goto return
  68962. $async$goto = 1;
  68963. break;
  68964. case 1:
  68965. // return
  68966. return P._asyncReturn($async$returnValue, $async$completer);
  68967. }
  68968. });
  68969. return P._asyncStartSync($async$call$0, $async$completer);
  68970. },
  68971. $signature: 31
  68972. };
  68973. E._EvaluateVisitor_visitWhileRule__closure2.prototype = {
  68974. call$1: function(child) {
  68975. return child.accept$1(this.$this);
  68976. },
  68977. $signature: 76
  68978. };
  68979. E._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
  68980. call$0: function() {
  68981. var $async$goto = 0,
  68982. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  68983. $async$returnValue, $async$self = this, right, result, t1, t2, left, $async$temp1, $async$temp2;
  68984. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68985. if ($async$errorCode === 1)
  68986. return P._asyncRethrow($async$result, $async$completer);
  68987. while (true)
  68988. switch ($async$goto) {
  68989. case 0:
  68990. // Function start
  68991. t1 = $async$self.node;
  68992. t2 = $async$self.$this;
  68993. $async$goto = 3;
  68994. return P._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  68995. case 3:
  68996. // returning from await.
  68997. left = $async$result;
  68998. case 4:
  68999. // switch
  69000. switch (t1.operator) {
  69001. case C.BinaryOperator_kjl0:
  69002. // goto case
  69003. $async$goto = 6;
  69004. break;
  69005. case C.BinaryOperator_or_or_10:
  69006. // goto case
  69007. $async$goto = 7;
  69008. break;
  69009. case C.BinaryOperator_and_and_20:
  69010. // goto case
  69011. $async$goto = 8;
  69012. break;
  69013. case C.BinaryOperator_YlX0:
  69014. // goto case
  69015. $async$goto = 9;
  69016. break;
  69017. case C.BinaryOperator_i5H0:
  69018. // goto case
  69019. $async$goto = 10;
  69020. break;
  69021. case C.BinaryOperator_AcR1:
  69022. // goto case
  69023. $async$goto = 11;
  69024. break;
  69025. case C.BinaryOperator_1da0:
  69026. // goto case
  69027. $async$goto = 12;
  69028. break;
  69029. case C.BinaryOperator_8qt0:
  69030. // goto case
  69031. $async$goto = 13;
  69032. break;
  69033. case C.BinaryOperator_33h0:
  69034. // goto case
  69035. $async$goto = 14;
  69036. break;
  69037. case C.BinaryOperator_AcR2:
  69038. // goto case
  69039. $async$goto = 15;
  69040. break;
  69041. case C.BinaryOperator_iyO0:
  69042. // goto case
  69043. $async$goto = 16;
  69044. break;
  69045. case C.BinaryOperator_O1M0:
  69046. // goto case
  69047. $async$goto = 17;
  69048. break;
  69049. case C.BinaryOperator_RTB0:
  69050. // goto case
  69051. $async$goto = 18;
  69052. break;
  69053. case C.BinaryOperator_2ad0:
  69054. // goto case
  69055. $async$goto = 19;
  69056. break;
  69057. default:
  69058. // goto default
  69059. $async$goto = 20;
  69060. break;
  69061. }
  69062. break;
  69063. case 6:
  69064. // case
  69065. $async$goto = 21;
  69066. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69067. case 21:
  69068. // returning from await.
  69069. right = $async$result;
  69070. left.toString;
  69071. t1 = N.serializeValue(left, false, true) + "=";
  69072. right.toString;
  69073. $async$returnValue = new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  69074. // goto return
  69075. $async$goto = 1;
  69076. break;
  69077. case 7:
  69078. // case
  69079. $async$goto = left.get$isTruthy() ? 22 : 24;
  69080. break;
  69081. case 22:
  69082. // then
  69083. $async$result = left;
  69084. // goto join
  69085. $async$goto = 23;
  69086. break;
  69087. case 24:
  69088. // else
  69089. $async$goto = 25;
  69090. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69091. case 25:
  69092. // returning from await.
  69093. case 23:
  69094. // join
  69095. $async$returnValue = $async$result;
  69096. // goto return
  69097. $async$goto = 1;
  69098. break;
  69099. case 8:
  69100. // case
  69101. $async$goto = left.get$isTruthy() ? 26 : 28;
  69102. break;
  69103. case 26:
  69104. // then
  69105. $async$goto = 29;
  69106. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69107. case 29:
  69108. // returning from await.
  69109. // goto join
  69110. $async$goto = 27;
  69111. break;
  69112. case 28:
  69113. // else
  69114. $async$result = left;
  69115. case 27:
  69116. // join
  69117. $async$returnValue = $async$result;
  69118. // goto return
  69119. $async$goto = 1;
  69120. break;
  69121. case 9:
  69122. // case
  69123. $async$temp1 = J;
  69124. $async$temp2 = left;
  69125. $async$goto = 30;
  69126. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69127. case 30:
  69128. // returning from await.
  69129. $async$returnValue = $async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  69130. // goto return
  69131. $async$goto = 1;
  69132. break;
  69133. case 10:
  69134. // case
  69135. $async$temp1 = J;
  69136. $async$temp2 = left;
  69137. $async$goto = 31;
  69138. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69139. case 31:
  69140. // returning from await.
  69141. $async$returnValue = !$async$temp1.$eq$($async$temp2, $async$result) ? C.SassBoolean_true : C.SassBoolean_false;
  69142. // goto return
  69143. $async$goto = 1;
  69144. break;
  69145. case 11:
  69146. // case
  69147. $async$temp1 = left;
  69148. $async$goto = 32;
  69149. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69150. case 32:
  69151. // returning from await.
  69152. $async$returnValue = $async$temp1.greaterThan$1($async$result);
  69153. // goto return
  69154. $async$goto = 1;
  69155. break;
  69156. case 12:
  69157. // case
  69158. $async$temp1 = left;
  69159. $async$goto = 33;
  69160. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69161. case 33:
  69162. // returning from await.
  69163. $async$returnValue = $async$temp1.greaterThanOrEquals$1($async$result);
  69164. // goto return
  69165. $async$goto = 1;
  69166. break;
  69167. case 13:
  69168. // case
  69169. $async$temp1 = left;
  69170. $async$goto = 34;
  69171. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69172. case 34:
  69173. // returning from await.
  69174. $async$returnValue = $async$temp1.lessThan$1($async$result);
  69175. // goto return
  69176. $async$goto = 1;
  69177. break;
  69178. case 14:
  69179. // case
  69180. $async$temp1 = left;
  69181. $async$goto = 35;
  69182. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69183. case 35:
  69184. // returning from await.
  69185. $async$returnValue = $async$temp1.lessThanOrEquals$1($async$result);
  69186. // goto return
  69187. $async$goto = 1;
  69188. break;
  69189. case 15:
  69190. // case
  69191. $async$temp1 = left;
  69192. $async$goto = 36;
  69193. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69194. case 36:
  69195. // returning from await.
  69196. $async$returnValue = $async$temp1.plus$1($async$result);
  69197. // goto return
  69198. $async$goto = 1;
  69199. break;
  69200. case 16:
  69201. // case
  69202. $async$temp1 = left;
  69203. $async$goto = 37;
  69204. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69205. case 37:
  69206. // returning from await.
  69207. $async$returnValue = $async$temp1.minus$1($async$result);
  69208. // goto return
  69209. $async$goto = 1;
  69210. break;
  69211. case 17:
  69212. // case
  69213. $async$temp1 = left;
  69214. $async$goto = 38;
  69215. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69216. case 38:
  69217. // returning from await.
  69218. $async$returnValue = $async$temp1.times$1($async$result);
  69219. // goto return
  69220. $async$goto = 1;
  69221. break;
  69222. case 18:
  69223. // case
  69224. $async$goto = 39;
  69225. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69226. case 39:
  69227. // returning from await.
  69228. right = $async$result;
  69229. result = left.dividedBy$1(right);
  69230. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0) {
  69231. $async$returnValue = type$.legacy_SassNumber_2._as(result).withSlash$2(left, right);
  69232. // goto return
  69233. $async$goto = 1;
  69234. break;
  69235. } else {
  69236. $async$returnValue = result;
  69237. // goto return
  69238. $async$goto = 1;
  69239. break;
  69240. }
  69241. case 19:
  69242. // case
  69243. $async$temp1 = left;
  69244. $async$goto = 40;
  69245. return P._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  69246. case 40:
  69247. // returning from await.
  69248. $async$returnValue = $async$temp1.modulo$1($async$result);
  69249. // goto return
  69250. $async$goto = 1;
  69251. break;
  69252. case 20:
  69253. // default
  69254. $async$returnValue = null;
  69255. // goto return
  69256. $async$goto = 1;
  69257. break;
  69258. case 5:
  69259. // after switch
  69260. case 1:
  69261. // return
  69262. return P._asyncReturn($async$returnValue, $async$completer);
  69263. }
  69264. });
  69265. return P._asyncStartSync($async$call$0, $async$completer);
  69266. },
  69267. $signature: 31
  69268. };
  69269. E._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
  69270. call$0: function() {
  69271. var t1 = this.node;
  69272. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  69273. },
  69274. $signature: 21
  69275. };
  69276. E._EvaluateVisitor_visitListExpression_closure2.prototype = {
  69277. call$1: function(expression) {
  69278. return expression.accept$1(this.$this);
  69279. },
  69280. $signature: 303
  69281. };
  69282. E._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
  69283. call$0: function() {
  69284. var t1 = this.node.namespace,
  69285. t2 = this.plainName;
  69286. if (t1 == null)
  69287. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  69288. return this.$this._async_evaluate0$_getFunction$2$namespace(t2, t1);
  69289. },
  69290. $signature: 107
  69291. };
  69292. E._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
  69293. call$0: function() {
  69294. var t1 = this.node;
  69295. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  69296. },
  69297. $signature: 31
  69298. };
  69299. E._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
  69300. call$0: function() {
  69301. var _this = this,
  69302. t1 = _this.$this,
  69303. t2 = _this.callable;
  69304. return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new E._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  69305. },
  69306. $signature: 31
  69307. };
  69308. E._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
  69309. call$0: function() {
  69310. var _this = this,
  69311. t1 = _this.$this;
  69312. return t1._async_evaluate0$_environment.scope$1$1(new E._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  69313. },
  69314. $signature: 31
  69315. };
  69316. E._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
  69317. call$0: function() {
  69318. var $async$goto = 0,
  69319. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  69320. $async$returnValue, $async$self = this, declaredArguments, minLength, t8, i, t9, t10, t11, argument, value, t12, rest, argumentList, result, argumentWord, argumentNames, t1, t2, t3, t4, t5, t6, t7;
  69321. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69322. if ($async$errorCode === 1)
  69323. return P._asyncRethrow($async$result, $async$completer);
  69324. while (true)
  69325. switch ($async$goto) {
  69326. case 0:
  69327. // Function start
  69328. t1 = $async$self.$this;
  69329. t2 = $async$self.evaluated;
  69330. t3 = t2.positional;
  69331. t4 = t3.length;
  69332. t5 = t2.named;
  69333. t6 = $async$self.callable.declaration.$arguments;
  69334. t7 = $async$self.nodeWithSpan;
  69335. t1._async_evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  69336. declaredArguments = t6.$arguments;
  69337. t4 = declaredArguments.length;
  69338. minLength = Math.min(t3.length, t4);
  69339. for (t8 = t1._async_evaluate0$_sourceMap, i = 0; i < minLength; ++i) {
  69340. t9 = t1._async_evaluate0$_environment;
  69341. t10 = declaredArguments[i].name;
  69342. t11 = t3[i].withoutSlash$0();
  69343. t9.setLocalVariable$3(t10, t11, t8 ? t2.positionalNodes[i] : null);
  69344. }
  69345. i = t3.length;
  69346. case 3:
  69347. // for condition
  69348. if (!(i < t4)) {
  69349. // goto after for
  69350. $async$goto = 5;
  69351. break;
  69352. }
  69353. argument = declaredArguments[i];
  69354. t9 = argument.name;
  69355. value = t5.remove$1(0, t9);
  69356. $async$goto = value == null ? 6 : 7;
  69357. break;
  69358. case 6:
  69359. // then
  69360. $async$goto = 8;
  69361. return P._asyncAwait(argument.defaultValue.accept$1(t1), $async$call$0);
  69362. case 8:
  69363. // returning from await.
  69364. value = $async$result;
  69365. case 7:
  69366. // join
  69367. t10 = t1._async_evaluate0$_environment;
  69368. t11 = value.withoutSlash$0();
  69369. if (t8) {
  69370. t12 = t2.namedNodes.$index(0, t9);
  69371. if (t12 == null)
  69372. t12 = t1._async_evaluate0$_expressionNode$1(argument.defaultValue);
  69373. } else
  69374. t12 = null;
  69375. t10.setLocalVariable$3(t9, t11, t12);
  69376. case 4:
  69377. // for update
  69378. ++i;
  69379. // goto for condition
  69380. $async$goto = 3;
  69381. break;
  69382. case 5:
  69383. // after for
  69384. t8 = t6.restArgument;
  69385. if (t8 != null) {
  69386. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  69387. t2 = t2.separator;
  69388. argumentList = D.SassArgumentList$0(rest, t5, t2 === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : t2);
  69389. t1._async_evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  69390. } else
  69391. argumentList = null;
  69392. $async$goto = 9;
  69393. return P._asyncAwait($async$self.run.call$0(), $async$call$0);
  69394. case 9:
  69395. // returning from await.
  69396. result = $async$result;
  69397. if (argumentList == null) {
  69398. $async$returnValue = result;
  69399. // goto return
  69400. $async$goto = 1;
  69401. break;
  69402. }
  69403. if (t5.get$isEmpty(t5)) {
  69404. $async$returnValue = result;
  69405. // goto return
  69406. $async$goto = 1;
  69407. break;
  69408. }
  69409. if (argumentList._argument_list$_wereKeywordsAccessed) {
  69410. $async$returnValue = result;
  69411. // goto return
  69412. $async$goto = 1;
  69413. break;
  69414. }
  69415. t2 = t5.get$keys(t5);
  69416. argumentWord = B.pluralize0("argument", t2.get$length(t2), null);
  69417. t5 = t5.get$keys(t5);
  69418. argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new E._EvaluateVisitor__runUserDefinedCallable____closure2(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  69419. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._async_evaluate0$_stackTrace$1(t7.get$span())));
  69420. case 1:
  69421. // return
  69422. return P._asyncReturn($async$returnValue, $async$completer);
  69423. }
  69424. });
  69425. return P._asyncStartSync($async$call$0, $async$completer);
  69426. },
  69427. $signature: 31
  69428. };
  69429. E._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
  69430. call$1: function($name) {
  69431. return "$" + H.S($name);
  69432. },
  69433. $signature: 6
  69434. };
  69435. E._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
  69436. call$0: function() {
  69437. var $async$goto = 0,
  69438. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  69439. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  69440. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69441. if ($async$errorCode === 1)
  69442. return P._asyncRethrow($async$result, $async$completer);
  69443. while (true)
  69444. switch ($async$goto) {
  69445. case 0:
  69446. // Function start
  69447. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  69448. case 3:
  69449. // for condition
  69450. if (!(_i < t3)) {
  69451. // goto after for
  69452. $async$goto = 5;
  69453. break;
  69454. }
  69455. $async$goto = 6;
  69456. return P._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  69457. case 6:
  69458. // returning from await.
  69459. $returnValue = $async$result;
  69460. if ($returnValue instanceof F.Value0) {
  69461. $async$returnValue = $returnValue;
  69462. // goto return
  69463. $async$goto = 1;
  69464. break;
  69465. }
  69466. case 4:
  69467. // for update
  69468. ++_i;
  69469. // goto for condition
  69470. $async$goto = 3;
  69471. break;
  69472. case 5:
  69473. // after for
  69474. throw H.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
  69475. case 1:
  69476. // return
  69477. return P._asyncReturn($async$returnValue, $async$completer);
  69478. }
  69479. });
  69480. return P._asyncStartSync($async$call$0, $async$completer);
  69481. },
  69482. $signature: 31
  69483. };
  69484. E._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
  69485. call$0: function() {
  69486. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  69487. },
  69488. $signature: 1
  69489. };
  69490. E._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
  69491. call$1: function($name) {
  69492. return "$" + H.S($name);
  69493. },
  69494. $signature: 6
  69495. };
  69496. E._EvaluateVisitor__evaluateArguments_closure2.prototype = {
  69497. call$2: function(key, value) {
  69498. var t1;
  69499. this.named.$indexSet(0, key, value);
  69500. t1 = this.namedNodes;
  69501. if (t1 != null)
  69502. t1.$indexSet(0, key, this.restNodeForSpan);
  69503. },
  69504. $signature: 75
  69505. };
  69506. E._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
  69507. call$1: function(value) {
  69508. return new F.ValueExpression0(value, null);
  69509. },
  69510. $signature: 48
  69511. };
  69512. E._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
  69513. call$1: function(value) {
  69514. return new F.ValueExpression0(value, null);
  69515. },
  69516. $signature: 48
  69517. };
  69518. E._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
  69519. call$2: function(key, value) {
  69520. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  69521. },
  69522. $signature: 75
  69523. };
  69524. E._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
  69525. call$1: function(value) {
  69526. return new F.ValueExpression0(value, null);
  69527. },
  69528. $signature: 48
  69529. };
  69530. E._EvaluateVisitor__addRestMap_closure5.prototype = {
  69531. call$1: function(value) {
  69532. return this.T._eval$1("0*")._as(value);
  69533. },
  69534. $signature: function() {
  69535. return this.T._eval$1("0*(Value0*)");
  69536. }
  69537. };
  69538. E._EvaluateVisitor__addRestMap_closure6.prototype = {
  69539. call$2: function(key, value) {
  69540. var _this = this;
  69541. if (key instanceof D.SassString0)
  69542. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  69543. else
  69544. throw H.wrapException(_this.$this._async_evaluate0$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  69545. },
  69546. $signature: 45
  69547. };
  69548. E._EvaluateVisitor__verifyArguments_closure2.prototype = {
  69549. call$0: function() {
  69550. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  69551. },
  69552. $signature: 1
  69553. };
  69554. E._EvaluateVisitor_visitStringExpression_closure2.prototype = {
  69555. call$1: function(value) {
  69556. var $async$goto = 0,
  69557. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  69558. $async$returnValue, $async$self = this, t1, result;
  69559. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69560. if ($async$errorCode === 1)
  69561. return P._asyncRethrow($async$result, $async$completer);
  69562. while (true)
  69563. switch ($async$goto) {
  69564. case 0:
  69565. // Function start
  69566. if (typeof value == "string") {
  69567. $async$returnValue = value;
  69568. // goto return
  69569. $async$goto = 1;
  69570. break;
  69571. }
  69572. type$.legacy_Expression_2._as(value);
  69573. t1 = $async$self.$this;
  69574. $async$goto = 3;
  69575. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  69576. case 3:
  69577. // returning from await.
  69578. result = $async$result;
  69579. $async$returnValue = result instanceof D.SassString0 ? result.text : t1._async_evaluate0$_serialize$3$quote(result, value, false);
  69580. // goto return
  69581. $async$goto = 1;
  69582. break;
  69583. case 1:
  69584. // return
  69585. return P._asyncReturn($async$returnValue, $async$completer);
  69586. }
  69587. });
  69588. return P._asyncStartSync($async$call$1, $async$completer);
  69589. },
  69590. $signature: 78
  69591. };
  69592. E._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
  69593. call$0: function() {
  69594. var $async$goto = 0,
  69595. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69596. $async$self = this, t1, t2, cur;
  69597. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69598. if ($async$errorCode === 1)
  69599. return P._asyncRethrow($async$result, $async$completer);
  69600. while (true)
  69601. switch ($async$goto) {
  69602. case 0:
  69603. // Function start
  69604. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  69605. case 2:
  69606. // for condition
  69607. if (!t1.moveNext$0()) {
  69608. // goto after for
  69609. $async$goto = 3;
  69610. break;
  69611. }
  69612. cur = t1.__internal$_current;
  69613. $async$goto = 4;
  69614. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  69615. case 4:
  69616. // returning from await.
  69617. // goto for condition
  69618. $async$goto = 2;
  69619. break;
  69620. case 3:
  69621. // after for
  69622. // implicit return
  69623. return P._asyncReturn(null, $async$completer);
  69624. }
  69625. });
  69626. return P._asyncStartSync($async$call$0, $async$completer);
  69627. },
  69628. $signature: 2
  69629. };
  69630. E._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
  69631. call$1: function(node) {
  69632. return type$.legacy_CssStyleRule_2._is(node);
  69633. },
  69634. $signature: 8
  69635. };
  69636. E._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
  69637. call$0: function() {
  69638. var $async$goto = 0,
  69639. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69640. $async$self = this, t1, t2, cur;
  69641. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69642. if ($async$errorCode === 1)
  69643. return P._asyncRethrow($async$result, $async$completer);
  69644. while (true)
  69645. switch ($async$goto) {
  69646. case 0:
  69647. // Function start
  69648. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  69649. case 2:
  69650. // for condition
  69651. if (!t1.moveNext$0()) {
  69652. // goto after for
  69653. $async$goto = 3;
  69654. break;
  69655. }
  69656. cur = t1.__internal$_current;
  69657. $async$goto = 4;
  69658. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  69659. case 4:
  69660. // returning from await.
  69661. // goto for condition
  69662. $async$goto = 2;
  69663. break;
  69664. case 3:
  69665. // after for
  69666. // implicit return
  69667. return P._asyncReturn(null, $async$completer);
  69668. }
  69669. });
  69670. return P._asyncStartSync($async$call$0, $async$completer);
  69671. },
  69672. $signature: 2
  69673. };
  69674. E._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
  69675. call$1: function(node) {
  69676. return type$.legacy_CssStyleRule_2._is(node);
  69677. },
  69678. $signature: 8
  69679. };
  69680. E._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
  69681. call$0: function() {
  69682. var $async$goto = 0,
  69683. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69684. $async$self = this, t1, t2;
  69685. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69686. if ($async$errorCode === 1)
  69687. return P._asyncRethrow($async$result, $async$completer);
  69688. while (true)
  69689. switch ($async$goto) {
  69690. case 0:
  69691. // Function start
  69692. t1 = $async$self.$this;
  69693. t2 = $async$self.mergedQueries;
  69694. if (t2 == null)
  69695. t2 = $async$self.node.queries;
  69696. $async$goto = 2;
  69697. return P._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$2(t2, new E._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  69698. case 2:
  69699. // returning from await.
  69700. // implicit return
  69701. return P._asyncReturn(null, $async$completer);
  69702. }
  69703. });
  69704. return P._asyncStartSync($async$call$0, $async$completer);
  69705. },
  69706. $signature: 2
  69707. };
  69708. E._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
  69709. call$0: function() {
  69710. var $async$goto = 0,
  69711. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69712. $async$self = this, cur, t1, t2;
  69713. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69714. if ($async$errorCode === 1)
  69715. return P._asyncRethrow($async$result, $async$completer);
  69716. while (true)
  69717. switch ($async$goto) {
  69718. case 0:
  69719. // Function start
  69720. t1 = $async$self.$this;
  69721. t2 = t1._async_evaluate0$_styleRule;
  69722. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  69723. break;
  69724. case 2:
  69725. // then
  69726. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  69727. case 5:
  69728. // for condition
  69729. if (!t2.moveNext$0()) {
  69730. // goto after for
  69731. $async$goto = 6;
  69732. break;
  69733. }
  69734. cur = t2.__internal$_current;
  69735. $async$goto = 7;
  69736. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  69737. case 7:
  69738. // returning from await.
  69739. // goto for condition
  69740. $async$goto = 5;
  69741. break;
  69742. case 6:
  69743. // after for
  69744. // goto join
  69745. $async$goto = 3;
  69746. break;
  69747. case 4:
  69748. // else
  69749. $async$goto = 8;
  69750. return P._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  69751. case 8:
  69752. // returning from await.
  69753. case 3:
  69754. // join
  69755. // implicit return
  69756. return P._asyncReturn(null, $async$completer);
  69757. }
  69758. });
  69759. return P._asyncStartSync($async$call$0, $async$completer);
  69760. },
  69761. $signature: 2
  69762. };
  69763. E._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
  69764. call$0: function() {
  69765. var $async$goto = 0,
  69766. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69767. $async$self = this, t1, t2, cur;
  69768. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69769. if ($async$errorCode === 1)
  69770. return P._asyncRethrow($async$result, $async$completer);
  69771. while (true)
  69772. switch ($async$goto) {
  69773. case 0:
  69774. // Function start
  69775. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  69776. case 2:
  69777. // for condition
  69778. if (!t1.moveNext$0()) {
  69779. // goto after for
  69780. $async$goto = 3;
  69781. break;
  69782. }
  69783. cur = t1.__internal$_current;
  69784. $async$goto = 4;
  69785. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  69786. case 4:
  69787. // returning from await.
  69788. // goto for condition
  69789. $async$goto = 2;
  69790. break;
  69791. case 3:
  69792. // after for
  69793. // implicit return
  69794. return P._asyncReturn(null, $async$completer);
  69795. }
  69796. });
  69797. return P._asyncStartSync($async$call$0, $async$completer);
  69798. },
  69799. $signature: 2
  69800. };
  69801. E._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
  69802. call$1: function(node) {
  69803. var t1;
  69804. if (!type$.legacy_CssStyleRule_2._is(node))
  69805. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  69806. else
  69807. t1 = true;
  69808. return t1;
  69809. },
  69810. $signature: 8
  69811. };
  69812. E._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
  69813. call$0: function() {
  69814. var $async$goto = 0,
  69815. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69816. $async$self = this, t1;
  69817. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69818. if ($async$errorCode === 1)
  69819. return P._asyncRethrow($async$result, $async$completer);
  69820. while (true)
  69821. switch ($async$goto) {
  69822. case 0:
  69823. // Function start
  69824. t1 = $async$self.$this;
  69825. $async$goto = 2;
  69826. return P._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new E._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  69827. case 2:
  69828. // returning from await.
  69829. // implicit return
  69830. return P._asyncReturn(null, $async$completer);
  69831. }
  69832. });
  69833. return P._asyncStartSync($async$call$0, $async$completer);
  69834. },
  69835. $signature: 2
  69836. };
  69837. E._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
  69838. call$0: function() {
  69839. var $async$goto = 0,
  69840. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69841. $async$self = this, t1, t2, cur;
  69842. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69843. if ($async$errorCode === 1)
  69844. return P._asyncRethrow($async$result, $async$completer);
  69845. while (true)
  69846. switch ($async$goto) {
  69847. case 0:
  69848. // Function start
  69849. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  69850. case 2:
  69851. // for condition
  69852. if (!t1.moveNext$0()) {
  69853. // goto after for
  69854. $async$goto = 3;
  69855. break;
  69856. }
  69857. cur = t1.__internal$_current;
  69858. $async$goto = 4;
  69859. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  69860. case 4:
  69861. // returning from await.
  69862. // goto for condition
  69863. $async$goto = 2;
  69864. break;
  69865. case 3:
  69866. // after for
  69867. // implicit return
  69868. return P._asyncReturn(null, $async$completer);
  69869. }
  69870. });
  69871. return P._asyncStartSync($async$call$0, $async$completer);
  69872. },
  69873. $signature: 2
  69874. };
  69875. E._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
  69876. call$1: function(node) {
  69877. return type$.legacy_CssStyleRule_2._is(node);
  69878. },
  69879. $signature: 8
  69880. };
  69881. E._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
  69882. call$0: function() {
  69883. var $async$goto = 0,
  69884. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69885. $async$self = this, cur, t1, t2;
  69886. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69887. if ($async$errorCode === 1)
  69888. return P._asyncRethrow($async$result, $async$completer);
  69889. while (true)
  69890. switch ($async$goto) {
  69891. case 0:
  69892. // Function start
  69893. t1 = $async$self.$this;
  69894. t2 = t1._async_evaluate0$_styleRule;
  69895. $async$goto = !(t2 != null && !t1._async_evaluate0$_atRootExcludingStyleRule) ? 2 : 4;
  69896. break;
  69897. case 2:
  69898. // then
  69899. t2 = $async$self.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2));
  69900. case 5:
  69901. // for condition
  69902. if (!t2.moveNext$0()) {
  69903. // goto after for
  69904. $async$goto = 6;
  69905. break;
  69906. }
  69907. cur = t2.__internal$_current;
  69908. $async$goto = 7;
  69909. return P._asyncAwait(cur.accept$1(t1), $async$call$0);
  69910. case 7:
  69911. // returning from await.
  69912. // goto for condition
  69913. $async$goto = 5;
  69914. break;
  69915. case 6:
  69916. // after for
  69917. // goto join
  69918. $async$goto = 3;
  69919. break;
  69920. case 4:
  69921. // else
  69922. $async$goto = 8;
  69923. return P._asyncAwait(t1._async_evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new E._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  69924. case 8:
  69925. // returning from await.
  69926. case 3:
  69927. // join
  69928. // implicit return
  69929. return P._asyncReturn(null, $async$completer);
  69930. }
  69931. });
  69932. return P._asyncStartSync($async$call$0, $async$completer);
  69933. },
  69934. $signature: 2
  69935. };
  69936. E._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
  69937. call$0: function() {
  69938. var $async$goto = 0,
  69939. $async$completer = P._makeAsyncAwaitCompleter(type$.Null),
  69940. $async$self = this, t1, t2, cur;
  69941. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69942. if ($async$errorCode === 1)
  69943. return P._asyncRethrow($async$result, $async$completer);
  69944. while (true)
  69945. switch ($async$goto) {
  69946. case 0:
  69947. // Function start
  69948. t1 = $async$self.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = $async$self.$this;
  69949. case 2:
  69950. // for condition
  69951. if (!t1.moveNext$0()) {
  69952. // goto after for
  69953. $async$goto = 3;
  69954. break;
  69955. }
  69956. cur = t1.__internal$_current;
  69957. $async$goto = 4;
  69958. return P._asyncAwait(cur.accept$1(t2), $async$call$0);
  69959. case 4:
  69960. // returning from await.
  69961. // goto for condition
  69962. $async$goto = 2;
  69963. break;
  69964. case 3:
  69965. // after for
  69966. // implicit return
  69967. return P._asyncReturn(null, $async$completer);
  69968. }
  69969. });
  69970. return P._asyncStartSync($async$call$0, $async$completer);
  69971. },
  69972. $signature: 2
  69973. };
  69974. E._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
  69975. call$1: function(node) {
  69976. return type$.legacy_CssStyleRule_2._is(node);
  69977. },
  69978. $signature: 8
  69979. };
  69980. E._EvaluateVisitor__performInterpolation_closure2.prototype = {
  69981. call$1: function(value) {
  69982. var $async$goto = 0,
  69983. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_String),
  69984. $async$returnValue, $async$self = this, t1, result, t2, t3;
  69985. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69986. if ($async$errorCode === 1)
  69987. return P._asyncRethrow($async$result, $async$completer);
  69988. while (true)
  69989. switch ($async$goto) {
  69990. case 0:
  69991. // Function start
  69992. if (typeof value == "string") {
  69993. $async$returnValue = value;
  69994. // goto return
  69995. $async$goto = 1;
  69996. break;
  69997. }
  69998. type$.legacy_Expression_2._as(value);
  69999. t1 = $async$self.$this;
  70000. $async$goto = 3;
  70001. return P._asyncAwait(value.accept$1(t1), $async$call$1);
  70002. case 3:
  70003. // returning from await.
  70004. result = $async$result;
  70005. if ($async$self.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  70006. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  70007. t3 = $.$get$namesByColor0();
  70008. t1._async_evaluate0$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whicw + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression0(C.BinaryOperator_AcR2, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  70009. }
  70010. $async$returnValue = t1._async_evaluate0$_serialize$3$quote(result, value, false);
  70011. // goto return
  70012. $async$goto = 1;
  70013. break;
  70014. case 1:
  70015. // return
  70016. return P._asyncReturn($async$returnValue, $async$completer);
  70017. }
  70018. });
  70019. return P._asyncStartSync($async$call$1, $async$completer);
  70020. },
  70021. $signature: 78
  70022. };
  70023. E._EvaluateVisitor__serialize_closure2.prototype = {
  70024. call$0: function() {
  70025. var t1 = this.value;
  70026. t1.toString;
  70027. return N.serializeValue(t1, false, this.quote);
  70028. },
  70029. $signature: 17
  70030. };
  70031. E._EvaluateVisitor__stackTrace_closure2.prototype = {
  70032. call$1: function(tuple) {
  70033. return this.$this._async_evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  70034. },
  70035. $signature: 132
  70036. };
  70037. E._ImportedCssVisitor2.prototype = {
  70038. visitCssAtRule$1: function(node) {
  70039. var t1 = node.isChildless ? null : new E._ImportedCssVisitor_visitCssAtRule_closure2();
  70040. this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
  70041. },
  70042. visitCssComment$1: function(node) {
  70043. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
  70044. },
  70045. visitCssDeclaration$1: function(node) {
  70046. },
  70047. visitCssImport$1: function(node) {
  70048. var t1 = this._async_evaluate0$_visitor,
  70049. t2 = t1._async_evaluate0$_parent,
  70050. t3 = t1._async_evaluate0$_root;
  70051. if (t2 != t3)
  70052. t1._async_evaluate0$_addChild$1(node);
  70053. else if (t1._async_evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  70054. t1._async_evaluate0$_addChild$1(node);
  70055. t1._async_evaluate0$_endOfImports = t1._async_evaluate0$_endOfImports + 1;
  70056. } else {
  70057. t2 = t1._async_evaluate0$_outOfOrderImports;
  70058. (t2 == null ? t1._async_evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t2).push(node);
  70059. }
  70060. },
  70061. visitCssKeyframeBlock$1: function(node) {
  70062. },
  70063. visitCssMediaRule$1: function(node) {
  70064. var t1 = this._async_evaluate0$_visitor,
  70065. t2 = t1._async_evaluate0$_mediaQueries;
  70066. t1._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssMediaRule_closure2(t2 == null || t1._async_evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  70067. },
  70068. visitCssStyleRule$1: function(node) {
  70069. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssStyleRule_closure2());
  70070. },
  70071. visitCssStylesheet$1: function(node) {
  70072. var t1, cur;
  70073. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  70074. cur = t1.__internal$_current;
  70075. cur.accept$1(this);
  70076. }
  70077. },
  70078. visitCssSupportsRule$1: function(node) {
  70079. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new E._ImportedCssVisitor_visitCssSupportsRule_closure2());
  70080. }
  70081. };
  70082. E._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
  70083. call$1: function(node) {
  70084. return type$.legacy_CssStyleRule_2._is(node);
  70085. },
  70086. $signature: 8
  70087. };
  70088. E._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
  70089. call$1: function(node) {
  70090. var t1;
  70091. if (!type$.legacy_CssStyleRule_2._is(node))
  70092. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule_2._is(node);
  70093. else
  70094. t1 = true;
  70095. return t1;
  70096. },
  70097. $signature: 8
  70098. };
  70099. E._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
  70100. call$1: function(node) {
  70101. return type$.legacy_CssStyleRule_2._is(node);
  70102. },
  70103. $signature: 8
  70104. };
  70105. E._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
  70106. call$1: function(node) {
  70107. return type$.legacy_CssStyleRule_2._is(node);
  70108. },
  70109. $signature: 8
  70110. };
  70111. E.EvaluateResult0.prototype = {};
  70112. E._ArgumentResults2.prototype = {};
  70113. O.AsyncImportCache0.prototype = {
  70114. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  70115. return this.canonicalize$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  70116. },
  70117. canonicalize$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  70118. var $async$goto = 0,
  70119. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri),
  70120. $async$returnValue, $async$self = this, resolvedUrl, canonicalUrl;
  70121. var $async$canonicalize$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70122. if ($async$errorCode === 1)
  70123. return P._asyncRethrow($async$result, $async$completer);
  70124. while (true)
  70125. switch ($async$goto) {
  70126. case 0:
  70127. // Function start
  70128. $async$goto = baseImporter != null ? 3 : 4;
  70129. break;
  70130. case 3:
  70131. // then
  70132. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  70133. $async$goto = 5;
  70134. return P._asyncAwait($async$self._async_import_cache0$_canonicalize$3(baseImporter, resolvedUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  70135. case 5:
  70136. // returning from await.
  70137. canonicalUrl = $async$result;
  70138. if (canonicalUrl != null) {
  70139. $async$returnValue = new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2);
  70140. // goto return
  70141. $async$goto = 1;
  70142. break;
  70143. }
  70144. case 4:
  70145. // join
  70146. $async$goto = 6;
  70147. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_canonicalizeCache, new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new O.AsyncImportCache_canonicalize_closure0($async$self, url, forImport), type$.legacy_Tuple2_of_legacy_Uri_and_legacy_bool, type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  70148. case 6:
  70149. // returning from await.
  70150. $async$returnValue = $async$result;
  70151. // goto return
  70152. $async$goto = 1;
  70153. break;
  70154. case 1:
  70155. // return
  70156. return P._asyncReturn($async$returnValue, $async$completer);
  70157. }
  70158. });
  70159. return P._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  70160. },
  70161. _async_import_cache0$_canonicalize$3: function(importer, url, forImport) {
  70162. return this._canonicalize$body$AsyncImportCache0(importer, url, forImport);
  70163. },
  70164. _canonicalize$body$AsyncImportCache0: function(importer, url, forImport) {
  70165. var $async$goto = 0,
  70166. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Uri),
  70167. $async$returnValue, $async$self = this, result;
  70168. var $async$_async_import_cache0$_canonicalize$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70169. if ($async$errorCode === 1)
  70170. return P._asyncRethrow($async$result, $async$completer);
  70171. while (true)
  70172. switch ($async$goto) {
  70173. case 0:
  70174. // Function start
  70175. $async$goto = 3;
  70176. return P._asyncAwait(forImport ? B.inImportRule0(new O.AsyncImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url), $async$_async_import_cache0$_canonicalize$3);
  70177. case 3:
  70178. // returning from await.
  70179. result = $async$result;
  70180. if ((result == null ? null : result.get$scheme()) === "")
  70181. $async$self._async_import_cache0$_logger.warn$2$deprecation(0, "Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2e_Rela, true);
  70182. $async$returnValue = result;
  70183. // goto return
  70184. $async$goto = 1;
  70185. break;
  70186. case 1:
  70187. // return
  70188. return P._asyncReturn($async$returnValue, $async$completer);
  70189. }
  70190. });
  70191. return P._asyncStartSync($async$_async_import_cache0$_canonicalize$3, $async$completer);
  70192. },
  70193. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  70194. return this.import$body$AsyncImportCache0(url, baseImporter, baseUrl, forImport);
  70195. },
  70196. import$body$AsyncImportCache0: function(url, baseImporter, baseUrl, forImport) {
  70197. var $async$goto = 0,
  70198. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2),
  70199. $async$returnValue, $async$self = this, t1, stylesheet, tuple;
  70200. var $async$import$4$baseImporter$baseUrl$forImport = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70201. if ($async$errorCode === 1)
  70202. return P._asyncRethrow($async$result, $async$completer);
  70203. while (true)
  70204. switch ($async$goto) {
  70205. case 0:
  70206. // Function start
  70207. $async$goto = 3;
  70208. return P._asyncAwait($async$self.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport), $async$import$4$baseImporter$baseUrl$forImport);
  70209. case 3:
  70210. // returning from await.
  70211. tuple = $async$result;
  70212. if (tuple == null) {
  70213. $async$returnValue = null;
  70214. // goto return
  70215. $async$goto = 1;
  70216. break;
  70217. }
  70218. t1 = tuple.item1;
  70219. $async$goto = 4;
  70220. return P._asyncAwait($async$self.importCanonical$3(t1, tuple.item2, tuple.item3), $async$import$4$baseImporter$baseUrl$forImport);
  70221. case 4:
  70222. // returning from await.
  70223. stylesheet = $async$result;
  70224. if (stylesheet == null) {
  70225. $async$returnValue = null;
  70226. // goto return
  70227. $async$goto = 1;
  70228. break;
  70229. }
  70230. $async$returnValue = new S.Tuple2(t1, stylesheet, type$.Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2);
  70231. // goto return
  70232. $async$goto = 1;
  70233. break;
  70234. case 1:
  70235. // return
  70236. return P._asyncReturn($async$returnValue, $async$completer);
  70237. }
  70238. });
  70239. return P._asyncStartSync($async$import$4$baseImporter$baseUrl$forImport, $async$completer);
  70240. },
  70241. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  70242. return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl);
  70243. },
  70244. importCanonical$body$AsyncImportCache0: function(importer, canonicalUrl, originalUrl) {
  70245. var $async$goto = 0,
  70246. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  70247. $async$returnValue, $async$self = this;
  70248. var $async$importCanonical$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70249. if ($async$errorCode === 1)
  70250. return P._asyncRethrow($async$result, $async$completer);
  70251. while (true)
  70252. switch ($async$goto) {
  70253. case 0:
  70254. // Function start
  70255. $async$goto = 3;
  70256. return P._asyncAwait(B.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new O.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl), type$.legacy_Uri, type$.legacy_Stylesheet), $async$importCanonical$3);
  70257. case 3:
  70258. // returning from await.
  70259. $async$returnValue = $async$result;
  70260. // goto return
  70261. $async$goto = 1;
  70262. break;
  70263. case 1:
  70264. // return
  70265. return P._asyncReturn($async$returnValue, $async$completer);
  70266. }
  70267. });
  70268. return P._asyncStartSync($async$importCanonical$3, $async$completer);
  70269. },
  70270. humanize$1: function(canonicalUrl) {
  70271. var t2, url,
  70272. t1 = this._async_import_cache0$_canonicalizeCache;
  70273. t1 = t1.get$values(t1);
  70274. t2 = H._instanceType(t1);
  70275. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new O.AsyncImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new O.AsyncImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new O.AsyncImportCache_humanize_closure4(), type$.legacy_Uri, type$.dynamic);
  70276. if (url == null)
  70277. return canonicalUrl;
  70278. t1 = $.$get$url();
  70279. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  70280. }
  70281. };
  70282. O.AsyncImportCache_canonicalize_closure0.prototype = {
  70283. call$0: function() {
  70284. var $async$goto = 0,
  70285. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri),
  70286. $async$returnValue, $async$self = this, t1, t2, t3, _i, importer, canonicalUrl;
  70287. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70288. if ($async$errorCode === 1)
  70289. return P._asyncRethrow($async$result, $async$completer);
  70290. while (true)
  70291. switch ($async$goto) {
  70292. case 0:
  70293. // Function start
  70294. t1 = $async$self.$this, t2 = $async$self.url, t3 = $async$self.forImport, _i = 0;
  70295. case 3:
  70296. // for condition
  70297. if (!false) {
  70298. // goto after for
  70299. $async$goto = 5;
  70300. break;
  70301. }
  70302. importer = C.List_empty23[_i];
  70303. $async$goto = 6;
  70304. return P._asyncAwait(t1._async_import_cache0$_canonicalize$3(importer, t2, t3), $async$call$0);
  70305. case 6:
  70306. // returning from await.
  70307. canonicalUrl = $async$result;
  70308. if (canonicalUrl != null) {
  70309. $async$returnValue = new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2);
  70310. // goto return
  70311. $async$goto = 1;
  70312. break;
  70313. }
  70314. case 4:
  70315. // for update
  70316. ++_i;
  70317. // goto for condition
  70318. $async$goto = 3;
  70319. break;
  70320. case 5:
  70321. // after for
  70322. $async$returnValue = null;
  70323. // goto return
  70324. $async$goto = 1;
  70325. break;
  70326. case 1:
  70327. // return
  70328. return P._asyncReturn($async$returnValue, $async$completer);
  70329. }
  70330. });
  70331. return P._asyncStartSync($async$call$0, $async$completer);
  70332. },
  70333. $signature: 307
  70334. };
  70335. O.AsyncImportCache__canonicalize_closure0.prototype = {
  70336. call$0: function() {
  70337. return this.importer.canonicalize$1(this.url);
  70338. },
  70339. $signature: 186
  70340. };
  70341. O.AsyncImportCache_importCanonical_closure0.prototype = {
  70342. call$0: function() {
  70343. var $async$goto = 0,
  70344. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Stylesheet),
  70345. $async$returnValue, $async$self = this, t2, t3, t4, t5, t1, result;
  70346. var $async$call$0 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70347. if ($async$errorCode === 1)
  70348. return P._asyncRethrow($async$result, $async$completer);
  70349. while (true)
  70350. switch ($async$goto) {
  70351. case 0:
  70352. // Function start
  70353. t1 = $async$self.canonicalUrl;
  70354. $async$goto = 3;
  70355. return P._asyncAwait($async$self.importer.load$1(0, t1), $async$call$0);
  70356. case 3:
  70357. // returning from await.
  70358. result = $async$result;
  70359. if (result == null) {
  70360. $async$returnValue = null;
  70361. // goto return
  70362. $async$goto = 1;
  70363. break;
  70364. }
  70365. t2 = $async$self.$this;
  70366. t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
  70367. t3 = result.contents;
  70368. t4 = result.syntax;
  70369. t5 = $async$self.originalUrl;
  70370. t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
  70371. $async$returnValue = V.Stylesheet_Stylesheet$parse0(t3, t4, t2._async_import_cache0$_logger, t1);
  70372. // goto return
  70373. $async$goto = 1;
  70374. break;
  70375. case 1:
  70376. // return
  70377. return P._asyncReturn($async$returnValue, $async$completer);
  70378. }
  70379. });
  70380. return P._asyncStartSync($async$call$0, $async$completer);
  70381. },
  70382. $signature: 308
  70383. };
  70384. O.AsyncImportCache_humanize_closure2.prototype = {
  70385. call$1: function(tuple) {
  70386. var t1 = tuple == null ? null : tuple.item2;
  70387. return J.$eq$(t1, this.canonicalUrl);
  70388. },
  70389. $signature: 309
  70390. };
  70391. O.AsyncImportCache_humanize_closure3.prototype = {
  70392. call$1: function(tuple) {
  70393. return tuple.item3;
  70394. },
  70395. $signature: 310
  70396. };
  70397. O.AsyncImportCache_humanize_closure4.prototype = {
  70398. call$1: function(url) {
  70399. return J.get$length$asx(J.get$path$x(url));
  70400. },
  70401. $signature: 43
  70402. };
  70403. V.AtRootQueryParser0.prototype = {
  70404. parse$0: function() {
  70405. return this.wrapSpanFormatException$1(new V.AtRootQueryParser_parse_closure0(this));
  70406. }
  70407. };
  70408. V.AtRootQueryParser_parse_closure0.prototype = {
  70409. call$0: function() {
  70410. var include, atRules,
  70411. t1 = this.$this,
  70412. t2 = t1.scanner;
  70413. t2.expectChar$1(40);
  70414. t1.whitespace$0();
  70415. include = t1.scanIdentifier$1("with");
  70416. if (!include)
  70417. t1.expectIdentifier$2$name("without", '"with" or "without"');
  70418. t1.whitespace$0();
  70419. t2.expectChar$1(58);
  70420. t1.whitespace$0();
  70421. atRules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  70422. do {
  70423. atRules.add$1(0, t1.identifier$0().toLowerCase());
  70424. t1.whitespace$0();
  70425. } while (t1.lookingAtIdentifier$0());
  70426. t2.expectChar$1(41);
  70427. t2.expectDone$0();
  70428. return new V.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  70429. },
  70430. $signature: 104
  70431. };
  70432. V.AtRootQuery0.prototype = {
  70433. excludes$1: function(node) {
  70434. var t1, _this = this;
  70435. if (_this._at_root_query0$_all)
  70436. return !_this.include;
  70437. if (type$.legacy_CssStyleRule_2._is(node))
  70438. return _this._at_root_query0$_rule !== _this.include;
  70439. if (type$.legacy_CssMediaRule_2._is(node))
  70440. return _this.excludesName$1("media");
  70441. if (type$.legacy_CssSupportsRule_2._is(node))
  70442. return _this.excludesName$1("supports");
  70443. if (type$.legacy_CssAtRule_2._is(node)) {
  70444. t1 = node.name;
  70445. return _this.excludesName$1(t1.get$value(t1).toLowerCase());
  70446. }
  70447. return false;
  70448. },
  70449. excludesName$1: function($name) {
  70450. var t1 = this._at_root_query0$_all || this.names.contains$1(0, $name);
  70451. return t1 !== this.include;
  70452. }
  70453. };
  70454. V.AtRootRule0.prototype = {
  70455. accept$1$1: function(visitor) {
  70456. return visitor.visitAtRootRule$1(this);
  70457. },
  70458. accept$1: function(visitor) {
  70459. return this.accept$1$1(visitor, type$.dynamic);
  70460. },
  70461. toString$0: function(_) {
  70462. var buffer = new P.StringBuffer("@at-root "),
  70463. t1 = this.query;
  70464. if (t1 != null)
  70465. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  70466. t1 = this.children;
  70467. return buffer.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  70468. },
  70469. get$span: function() {
  70470. return this.span;
  70471. }
  70472. };
  70473. U.ModifiableCssAtRule0.prototype = {
  70474. accept$1$1: function(visitor) {
  70475. return visitor.visitCssAtRule$1(this);
  70476. },
  70477. accept$1: function(visitor) {
  70478. return this.accept$1$1(visitor, type$.dynamic);
  70479. },
  70480. copyWithoutChildren$0: function() {
  70481. var _this = this;
  70482. return U.ModifiableCssAtRule$0(_this.name, _this.span, _this.isChildless, _this.value);
  70483. },
  70484. addChild$1: function(child) {
  70485. this.super$ModifiableCssParentNode$addChild0(child);
  70486. },
  70487. $isCssAtRule0: 1,
  70488. get$isChildless: function() {
  70489. return this.isChildless;
  70490. },
  70491. get$span: function() {
  70492. return this.span;
  70493. }
  70494. };
  70495. U.AtRule0.prototype = {
  70496. accept$1$1: function(visitor) {
  70497. return visitor.visitAtRule$1(this);
  70498. },
  70499. accept$1: function(visitor) {
  70500. return this.accept$1$1(visitor, type$.dynamic);
  70501. },
  70502. toString$0: function(_) {
  70503. var t1 = "@" + this.name.toString$0(0),
  70504. buffer = new P.StringBuffer(t1),
  70505. t2 = this.value;
  70506. if (t2 != null)
  70507. buffer._contents = t1 + (" " + t2.toString$0(0));
  70508. t1 = this.children;
  70509. return t1 == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + C.JSArray_methods.join$1(t1, " ") + "}";
  70510. },
  70511. get$span: function() {
  70512. return this.span;
  70513. }
  70514. };
  70515. N.AttributeSelector0.prototype = {
  70516. accept$1$1: function(visitor) {
  70517. var t2, _this = this,
  70518. t1 = visitor._buffer;
  70519. t1.writeCharCode$1(91);
  70520. t1.write$1(0, _this.name);
  70521. t2 = _this.op;
  70522. if (t2 != null) {
  70523. t1.write$1(0, t2);
  70524. t2 = _this.value;
  70525. if (G.Parser_isIdentifier0(t2) && !J.startsWith$1$s(t2, "--")) {
  70526. t1.write$1(0, t2);
  70527. t2 = _this.modifier;
  70528. if (t2 != null)
  70529. t1.writeCharCode$1(32);
  70530. } else {
  70531. visitor._serialize0$_visitQuotedString$1(t2);
  70532. t2 = _this.modifier;
  70533. if (t2 != null)
  70534. if (visitor._serialize0$_style !== C.OutputStyle_compressed0)
  70535. t1.writeCharCode$1(32);
  70536. }
  70537. if (t2 != null)
  70538. t1.write$1(0, t2);
  70539. }
  70540. t1.writeCharCode$1(93);
  70541. return null;
  70542. },
  70543. accept$1: function(visitor) {
  70544. return this.accept$1$1(visitor, type$.dynamic);
  70545. },
  70546. $eq: function(_, other) {
  70547. var _this = this;
  70548. if (other == null)
  70549. return false;
  70550. return other instanceof N.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  70551. },
  70552. get$hashCode: function(_) {
  70553. var _this = this,
  70554. t1 = _this.name;
  70555. return (C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  70556. }
  70557. };
  70558. N.AttributeOperator0.prototype = {
  70559. toString$0: function(_) {
  70560. return this._attribute0$_text;
  70561. }
  70562. };
  70563. V.BinaryOperationExpression0.prototype = {
  70564. get$span: function() {
  70565. var right,
  70566. left = this.left;
  70567. for (; left instanceof V.BinaryOperationExpression0;)
  70568. left = left.left;
  70569. right = this.right;
  70570. for (; right instanceof V.BinaryOperationExpression0;)
  70571. right = right.right;
  70572. return B.spanForList0(H.setRuntimeTypeInfo([left, right], type$.JSArray_legacy_AstNode_2));
  70573. },
  70574. accept$1$1: function(visitor) {
  70575. return visitor.visitBinaryOperationExpression$1(this);
  70576. },
  70577. accept$1: function(visitor) {
  70578. return this.accept$1$1(visitor, type$.dynamic);
  70579. },
  70580. toString$0: function(_) {
  70581. var t2, right, rightNeedsParens, _this = this,
  70582. left = _this.left,
  70583. leftNeedsParens = left instanceof V.BinaryOperationExpression0 && left.operator.precedence < _this.operator.precedence,
  70584. t1 = leftNeedsParens ? H.Primitives_stringFromCharCode(40) : "";
  70585. t1 += H.S(left);
  70586. if (leftNeedsParens)
  70587. t1 += H.Primitives_stringFromCharCode(41);
  70588. t2 = _this.operator;
  70589. t1 = t1 + H.Primitives_stringFromCharCode(32) + t2.operator + H.Primitives_stringFromCharCode(32);
  70590. right = _this.right;
  70591. rightNeedsParens = right instanceof V.BinaryOperationExpression0 && right.operator.precedence <= t2.precedence;
  70592. if (rightNeedsParens)
  70593. t1 += H.Primitives_stringFromCharCode(40);
  70594. t1 += H.S(right);
  70595. if (rightNeedsParens)
  70596. t1 += H.Primitives_stringFromCharCode(41);
  70597. return t1.charCodeAt(0) == 0 ? t1 : t1;
  70598. },
  70599. $isExpression0: 1,
  70600. $isAstNode0: 1
  70601. };
  70602. V.BinaryOperator0.prototype = {
  70603. toString$0: function(_) {
  70604. return this.name;
  70605. }
  70606. };
  70607. Z.BooleanExpression0.prototype = {
  70608. accept$1$1: function(visitor) {
  70609. return visitor.visitBooleanExpression$1(this);
  70610. },
  70611. accept$1: function(visitor) {
  70612. return this.accept$1$1(visitor, type$.dynamic);
  70613. },
  70614. toString$0: function(_) {
  70615. return String(this.value);
  70616. },
  70617. $isExpression0: 1,
  70618. $isAstNode0: 1,
  70619. get$span: function() {
  70620. return this.span;
  70621. }
  70622. };
  70623. Z.closure263.prototype = {
  70624. call$0: function() {
  70625. var $constructor = P.allowInterop(new Z._closure34());
  70626. B.injectSuperclass(C.SassBoolean_true, $constructor);
  70627. self.Object.defineProperty(C.SassBoolean_true.constructor, "name", {value: "SassBoolean"});
  70628. B.forwardToString($constructor);
  70629. $constructor.prototype.getValue = P.allowInteropCaptureThis(new Z._closure35());
  70630. $constructor.TRUE = C.SassBoolean_true;
  70631. $constructor.FALSE = C.SassBoolean_false;
  70632. return $constructor;
  70633. },
  70634. $signature: 129
  70635. };
  70636. Z._closure34.prototype = {
  70637. call$1: function(_) {
  70638. throw H.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
  70639. },
  70640. call$0: function() {
  70641. return this.call$1(null);
  70642. },
  70643. "call*": "call$1",
  70644. $requiredArgCount: 0,
  70645. $defaultValues: function() {
  70646. return [null];
  70647. },
  70648. $signature: 95
  70649. };
  70650. Z._closure35.prototype = {
  70651. call$1: function(thisArg) {
  70652. return thisArg === C.SassBoolean_true;
  70653. },
  70654. $signature: 23
  70655. };
  70656. Z.SassBoolean0.prototype = {
  70657. get$isTruthy: function() {
  70658. return this.value;
  70659. },
  70660. accept$1$1: function(visitor) {
  70661. return visitor._buffer.write$1(0, String(this.value));
  70662. },
  70663. accept$1: function(visitor) {
  70664. return this.accept$1$1(visitor, type$.dynamic);
  70665. },
  70666. unaryNot$0: function() {
  70667. return this.value ? C.SassBoolean_false : C.SassBoolean_true;
  70668. }
  70669. };
  70670. Q.BuiltInCallable0.prototype = {
  70671. callbackFor$2: function(positional, names) {
  70672. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  70673. for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  70674. overload = t1[_i];
  70675. t3 = overload.item1;
  70676. if (t3.matches$2(positional, names))
  70677. return overload;
  70678. mismatchDistance = t3.$arguments.length - positional;
  70679. if (minMismatchDistance != null) {
  70680. t3 = Math.abs(mismatchDistance);
  70681. t4 = Math.abs(minMismatchDistance);
  70682. if (t3 > t4)
  70683. continue;
  70684. if (t3 === t4 && mismatchDistance < 0)
  70685. continue;
  70686. }
  70687. minMismatchDistance = mismatchDistance;
  70688. fuzzyMatch = overload;
  70689. }
  70690. return fuzzyMatch;
  70691. },
  70692. withName$1: function($name) {
  70693. return new Q.BuiltInCallable0($name, this._built_in$_overloads);
  70694. },
  70695. $isAsyncCallable0: 1,
  70696. $isAsyncBuiltInCallable0: 1,
  70697. $isCallable0: 1,
  70698. get$name: function(receiver) {
  70699. return this.name;
  70700. }
  70701. };
  70702. Q.BuiltInCallable$mixin_closure0.prototype = {
  70703. call$1: function($arguments) {
  70704. this.callback.call$1($arguments);
  70705. return null;
  70706. },
  70707. $signature: 97
  70708. };
  70709. Q.BuiltInModule0.prototype = {
  70710. get$upstream: function() {
  70711. return C.List_empty14;
  70712. },
  70713. get$variableNodes: function() {
  70714. return C.Map_empty7;
  70715. },
  70716. get$extender: function() {
  70717. return C.C_EmptyExtender0;
  70718. },
  70719. get$css: function(_) {
  70720. return new V.CssStylesheet0(C.List_empty12, Y.SourceFile$decoded(C.List_empty1, this.url).span$2(0, 0));
  70721. },
  70722. get$transitivelyContainsCss: function() {
  70723. return false;
  70724. },
  70725. get$transitivelyContainsExtensions: function() {
  70726. return false;
  70727. },
  70728. setVariable$3: function($name, value, nodeWithSpan) {
  70729. if (!this.variables.containsKey$1($name))
  70730. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  70731. throw H.wrapException(E.SassScriptException$0("Cannot modify built-in variable."));
  70732. },
  70733. variableIdentity$1: function($name) {
  70734. return this;
  70735. },
  70736. cloneCss$0: function() {
  70737. return this;
  70738. },
  70739. $isModule0: 1,
  70740. get$url: function() {
  70741. return this.url;
  70742. },
  70743. get$functions: function(receiver) {
  70744. return this.functions;
  70745. },
  70746. get$mixins: function() {
  70747. return this.mixins;
  70748. },
  70749. get$variables: function() {
  70750. return this.variables;
  70751. }
  70752. };
  70753. M.CallableDeclaration0.prototype = {
  70754. get$span: function() {
  70755. return this.span;
  70756. }
  70757. };
  70758. Y.Chokidar0.prototype = {};
  70759. Y.ChokidarOptions0.prototype = {};
  70760. Y.ChokidarWatcher0.prototype = {};
  70761. X.ClassSelector0.prototype = {
  70762. $eq: function(_, other) {
  70763. if (other == null)
  70764. return false;
  70765. return other instanceof X.ClassSelector0 && other.name === this.name;
  70766. },
  70767. accept$1$1: function(visitor) {
  70768. var t1 = visitor._buffer;
  70769. t1.writeCharCode$1(46);
  70770. t1.write$1(0, this.name);
  70771. return null;
  70772. },
  70773. accept$1: function(visitor) {
  70774. return this.accept$1$1(visitor, type$.dynamic);
  70775. },
  70776. addSuffix$1: function(suffix) {
  70777. return new X.ClassSelector0(this.name + suffix);
  70778. },
  70779. get$hashCode: function(_) {
  70780. return C.JSString_methods.get$hashCode(this.name);
  70781. }
  70782. };
  70783. V._CloneCssVisitor0.prototype = {
  70784. visitCssAtRule$1: function(node) {
  70785. var t1 = node.isChildless,
  70786. rule = U.ModifiableCssAtRule$0(node.name, node.span, t1, node.value);
  70787. return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
  70788. },
  70789. visitCssComment$1: function(node) {
  70790. return new R.ModifiableCssComment0(node.text, node.span);
  70791. },
  70792. visitCssDeclaration$1: function(node) {
  70793. return L.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
  70794. },
  70795. visitCssImport$1: function(node) {
  70796. return F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports);
  70797. },
  70798. visitCssKeyframeBlock$1: function(node) {
  70799. return this._clone_css$_visitChildren$2(U.ModifiableCssKeyframeBlock$0(node.selector, node.span), node);
  70800. },
  70801. visitCssMediaRule$1: function(node) {
  70802. return this._clone_css$_visitChildren$2(G.ModifiableCssMediaRule$0(node.queries, node.span), node);
  70803. },
  70804. visitCssStyleRule$1: function(node) {
  70805. var newSelector = this._clone_css$_oldToNewSelectors.$index(0, node.selector);
  70806. if (newSelector == null)
  70807. throw H.wrapException(P.StateError$(string$.The_Ex));
  70808. return this._clone_css$_visitChildren$2(X.ModifiableCssStyleRule$0(newSelector, node.span, node.originalSelector), node);
  70809. },
  70810. visitCssStylesheet$1: function(node) {
  70811. return this._clone_css$_visitChildren$2(V.ModifiableCssStylesheet$0(node.get$span()), node);
  70812. },
  70813. visitCssSupportsRule$1: function(node) {
  70814. return this._clone_css$_visitChildren$2(B.ModifiableCssSupportsRule$0(node.condition, node.span), node);
  70815. },
  70816. _clone_css$_visitChildren$1$2: function(newParent, oldParent) {
  70817. var t1, t2, newChild;
  70818. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  70819. t2 = t1.get$current(t1);
  70820. newChild = t2.accept$1(this);
  70821. newChild.isGroupEnd = t2.get$isGroupEnd();
  70822. newParent.addChild$1(newChild);
  70823. }
  70824. return newParent;
  70825. },
  70826. _clone_css$_visitChildren$2: function(newParent, oldParent) {
  70827. return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.legacy_ModifiableCssParentNode_2);
  70828. }
  70829. };
  70830. K.ColorExpression0.prototype = {
  70831. get$span: function() {
  70832. return this.value.originalSpan;
  70833. },
  70834. accept$1$1: function(visitor) {
  70835. return visitor.visitColorExpression$1(this);
  70836. },
  70837. accept$1: function(visitor) {
  70838. return this.accept$1$1(visitor, type$.dynamic);
  70839. },
  70840. toString$0: function(_) {
  70841. return N.serializeValue(this.value, true, true);
  70842. },
  70843. $isExpression0: 1,
  70844. $isAstNode0: 1
  70845. };
  70846. K.closure159.prototype = {
  70847. call$1: function($arguments) {
  70848. return K._rgb0("rgb", $arguments);
  70849. },
  70850. $signature: 3
  70851. };
  70852. K.closure160.prototype = {
  70853. call$1: function($arguments) {
  70854. return K._rgb0("rgb", $arguments);
  70855. },
  70856. $signature: 3
  70857. };
  70858. K.closure161.prototype = {
  70859. call$1: function($arguments) {
  70860. return K._rgbTwoArg0("rgb", $arguments);
  70861. },
  70862. $signature: 3
  70863. };
  70864. K.closure162.prototype = {
  70865. call$1: function($arguments) {
  70866. var parsed = K._parseChannels0("rgb", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  70867. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgb", type$.legacy_List_legacy_Value_2._as(parsed));
  70868. },
  70869. $signature: 3
  70870. };
  70871. K.closure163.prototype = {
  70872. call$1: function($arguments) {
  70873. return K._rgb0("rgba", $arguments);
  70874. },
  70875. $signature: 3
  70876. };
  70877. K.closure164.prototype = {
  70878. call$1: function($arguments) {
  70879. return K._rgb0("rgba", $arguments);
  70880. },
  70881. $signature: 3
  70882. };
  70883. K.closure165.prototype = {
  70884. call$1: function($arguments) {
  70885. return K._rgbTwoArg0("rgba", $arguments);
  70886. },
  70887. $signature: 3
  70888. };
  70889. K.closure166.prototype = {
  70890. call$1: function($arguments) {
  70891. var parsed = K._parseChannels0("rgba", H.setRuntimeTypeInfo(["$red", "$green", "$blue"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  70892. return parsed instanceof D.SassString0 ? parsed : K._rgb0("rgba", type$.legacy_List_legacy_Value_2._as(parsed));
  70893. },
  70894. $signature: 3
  70895. };
  70896. K.closure167.prototype = {
  70897. call$1: function($arguments) {
  70898. var color, t2,
  70899. t1 = J.getInterceptor$asx($arguments),
  70900. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  70901. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  70902. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  70903. throw H.wrapException(string$.Only_oa);
  70904. return K._functionString0("invert", t1.take$1($arguments, 1));
  70905. }
  70906. color = t1.$index($arguments, 0).assertColor$1("color");
  70907. t1 = color.get$red();
  70908. t2 = color.get$green();
  70909. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  70910. },
  70911. $signature: 3
  70912. };
  70913. K.closure168.prototype = {
  70914. call$1: function($arguments) {
  70915. return K._hsl0("hsl", $arguments);
  70916. },
  70917. $signature: 3
  70918. };
  70919. K.closure169.prototype = {
  70920. call$1: function($arguments) {
  70921. return K._hsl0("hsl", $arguments);
  70922. },
  70923. $signature: 3
  70924. };
  70925. K.closure170.prototype = {
  70926. call$1: function($arguments) {
  70927. var t1 = J.getInterceptor$asx($arguments);
  70928. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  70929. return K._functionString0("hsl", $arguments);
  70930. else
  70931. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  70932. },
  70933. $signature: 16
  70934. };
  70935. K.closure171.prototype = {
  70936. call$1: function($arguments) {
  70937. var parsed = K._parseChannels0("hsl", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  70938. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsl", type$.legacy_List_legacy_Value_2._as(parsed));
  70939. },
  70940. $signature: 3
  70941. };
  70942. K.closure172.prototype = {
  70943. call$1: function($arguments) {
  70944. return K._hsl0("hsla", $arguments);
  70945. },
  70946. $signature: 3
  70947. };
  70948. K.closure173.prototype = {
  70949. call$1: function($arguments) {
  70950. return K._hsl0("hsla", $arguments);
  70951. },
  70952. $signature: 3
  70953. };
  70954. K.closure174.prototype = {
  70955. call$1: function($arguments) {
  70956. var t1 = J.getInterceptor$asx($arguments);
  70957. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  70958. return K._functionString0("hsla", $arguments);
  70959. else
  70960. throw H.wrapException(E.SassScriptException$0("Missing argument $lightness."));
  70961. },
  70962. $signature: 16
  70963. };
  70964. K.closure175.prototype = {
  70965. call$1: function($arguments) {
  70966. var parsed = K._parseChannels0("hsla", H.setRuntimeTypeInfo(["$hue", "$saturation", "$lightness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  70967. return parsed instanceof D.SassString0 ? parsed : K._hsl0("hsla", type$.legacy_List_legacy_Value_2._as(parsed));
  70968. },
  70969. $signature: 3
  70970. };
  70971. K.closure176.prototype = {
  70972. call$1: function($arguments) {
  70973. var t1 = J.getInterceptor$asx($arguments);
  70974. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  70975. return K._functionString0("grayscale", $arguments);
  70976. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  70977. },
  70978. $signature: 3
  70979. };
  70980. K.closure177.prototype = {
  70981. call$1: function($arguments) {
  70982. var t1 = J.getInterceptor$asx($arguments),
  70983. color = t1.$index($arguments, 0).assertColor$1("color"),
  70984. degrees = t1.$index($arguments, 1).assertNumber$1("degrees");
  70985. K._checkAngle0(degrees, null);
  70986. return color.changeHsl$1$hue(color.get$hue() + degrees.value);
  70987. },
  70988. $signature: 29
  70989. };
  70990. K.closure178.prototype = {
  70991. call$1: function($arguments) {
  70992. var t1 = J.getInterceptor$asx($arguments),
  70993. color = t1.$index($arguments, 0).assertColor$1("color"),
  70994. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  70995. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  70996. },
  70997. $signature: 29
  70998. };
  70999. K.closure179.prototype = {
  71000. call$1: function($arguments) {
  71001. var t1 = J.getInterceptor$asx($arguments),
  71002. color = t1.$index($arguments, 0).assertColor$1("color"),
  71003. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  71004. return color.changeHsl$1$lightness(C.JSNumber_methods.clamp$2(color.get$lightness() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  71005. },
  71006. $signature: 29
  71007. };
  71008. K.closure180.prototype = {
  71009. call$1: function($arguments) {
  71010. return new D.SassString0("saturate(" + N.serializeValue(J.$index$asx($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  71011. },
  71012. $signature: 16
  71013. };
  71014. K.closure181.prototype = {
  71015. call$1: function($arguments) {
  71016. var t1 = J.getInterceptor$asx($arguments),
  71017. color = t1.$index($arguments, 0).assertColor$1("color"),
  71018. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  71019. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() + amount.valueInRange$3(0, 100, "amount"), 0, 100));
  71020. },
  71021. $signature: 29
  71022. };
  71023. K.closure182.prototype = {
  71024. call$1: function($arguments) {
  71025. var t1 = J.getInterceptor$asx($arguments),
  71026. color = t1.$index($arguments, 0).assertColor$1("color"),
  71027. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  71028. return color.changeHsl$1$saturation(C.JSNumber_methods.clamp$2(color.get$saturation() - amount.valueInRange$3(0, 100, "amount"), 0, 100));
  71029. },
  71030. $signature: 29
  71031. };
  71032. K.closure183.prototype = {
  71033. call$1: function($arguments) {
  71034. var argument = J.$index$asx($arguments, 0);
  71035. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0()))
  71036. return K._functionString0("alpha", $arguments);
  71037. return T.SassNumber$0(argument.assertColor$1("color").alpha, null);
  71038. },
  71039. $signature: 3
  71040. };
  71041. K.closure184.prototype = {
  71042. call$1: function($arguments) {
  71043. var t1,
  71044. argList = J.$index$asx($arguments, 0).get$asList();
  71045. if (argList.length !== 0 && C.JSArray_methods.every$1(argList, new K._closure23()))
  71046. return K._functionString0("alpha", $arguments);
  71047. t1 = argList.length;
  71048. if (t1 === 0)
  71049. throw H.wrapException(E.SassScriptException$0("Missing argument $color."));
  71050. else
  71051. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed."));
  71052. },
  71053. $signature: 16
  71054. };
  71055. K._closure23.prototype = {
  71056. call$1: function(argument) {
  71057. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  71058. },
  71059. $signature: 55
  71060. };
  71061. K.closure185.prototype = {
  71062. call$1: function($arguments) {
  71063. var t1 = J.getInterceptor$asx($arguments);
  71064. if (t1.$index($arguments, 0) instanceof T.SassNumber0)
  71065. return K._functionString0("opacity", $arguments);
  71066. return T.SassNumber$0(t1.$index($arguments, 0).assertColor$1("color").alpha, null);
  71067. },
  71068. $signature: 3
  71069. };
  71070. K.closure214.prototype = {
  71071. call$1: function($arguments) {
  71072. var result, color, t2,
  71073. t1 = J.getInterceptor$asx($arguments),
  71074. weight = t1.$index($arguments, 1).assertNumber$1("weight");
  71075. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  71076. if (weight.value !== 100 || !weight.hasUnit$1("%"))
  71077. throw H.wrapException(string$.Only_oa);
  71078. result = K._functionString0("invert", t1.take$1($arguments, 1));
  71079. N.warn0(string$.Passinni + result.toString$0(0), true);
  71080. return result;
  71081. }
  71082. color = t1.$index($arguments, 0).assertColor$1("color");
  71083. t1 = color.get$red();
  71084. t2 = color.get$green();
  71085. return K._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(), 255 - t2, 255 - t1), color, weight);
  71086. },
  71087. $signature: 3
  71088. };
  71089. K.closure215.prototype = {
  71090. call$1: function($arguments) {
  71091. var result,
  71092. t1 = J.getInterceptor$asx($arguments);
  71093. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  71094. result = K._functionString0("grayscale", t1.take$1($arguments, 1));
  71095. N.warn0(string$.Passinng + result.toString$0(0), true);
  71096. return result;
  71097. }
  71098. return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
  71099. },
  71100. $signature: 3
  71101. };
  71102. K.closure216.prototype = {
  71103. call$1: function($arguments) {
  71104. return K._hwb0($arguments);
  71105. },
  71106. $signature: 3
  71107. };
  71108. K.closure217.prototype = {
  71109. call$1: function($arguments) {
  71110. var parsed = K._parseChannels0("hwb", H.setRuntimeTypeInfo(["$hue", "$whiteness", "$blackness"], type$.JSArray_legacy_String), J.get$first$ax($arguments));
  71111. if (parsed instanceof D.SassString0)
  71112. throw H.wrapException(E.SassScriptException$0('Expected numeric channels, got "' + parsed.toString$0(0) + '".'));
  71113. else
  71114. return K._hwb0(type$.legacy_List_legacy_Value_2._as(parsed));
  71115. },
  71116. $signature: 3
  71117. };
  71118. K.closure218.prototype = {
  71119. call$1: function($arguments) {
  71120. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$whiteness(), "%");
  71121. },
  71122. $signature: 10
  71123. };
  71124. K.closure219.prototype = {
  71125. call$1: function($arguments) {
  71126. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$blackness(), "%");
  71127. },
  71128. $signature: 10
  71129. };
  71130. K.closure220.prototype = {
  71131. call$1: function($arguments) {
  71132. var result,
  71133. argument = J.$index$asx($arguments, 0);
  71134. if (argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0())) {
  71135. result = K._functionString0("alpha", $arguments);
  71136. N.warn0(string$.Using_ + result.toString$0(0), true);
  71137. return result;
  71138. }
  71139. return T.SassNumber$0(argument.assertColor$1("color").alpha, null);
  71140. },
  71141. $signature: 3
  71142. };
  71143. K.closure221.prototype = {
  71144. call$1: function($arguments) {
  71145. var result,
  71146. t1 = J.getInterceptor$asx($arguments);
  71147. if (C.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new K._closure28())) {
  71148. result = K._functionString0("alpha", $arguments);
  71149. N.warn0(string$.Using_ + result.toString$0(0), true);
  71150. return result;
  71151. }
  71152. throw H.wrapException(E.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed."));
  71153. },
  71154. $signature: 16
  71155. };
  71156. K._closure28.prototype = {
  71157. call$1: function(argument) {
  71158. return argument instanceof D.SassString0 && !argument.hasQuotes && J.contains$1$asx(argument.text, $.$get$_microsoftFilterStart0());
  71159. },
  71160. $signature: 55
  71161. };
  71162. K.closure222.prototype = {
  71163. call$1: function($arguments) {
  71164. var result,
  71165. t1 = J.getInterceptor$asx($arguments);
  71166. if (t1.$index($arguments, 0) instanceof T.SassNumber0) {
  71167. result = K._functionString0("opacity", $arguments);
  71168. N.warn0(string$.Passinno + result.toString$0(0), true);
  71169. return result;
  71170. }
  71171. return T.SassNumber$0(t1.$index($arguments, 0).assertColor$1("color").alpha, null);
  71172. },
  71173. $signature: 3
  71174. };
  71175. K.closure197.prototype = {
  71176. call$1: function($arguments) {
  71177. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$red(), null);
  71178. },
  71179. $signature: 10
  71180. };
  71181. K.closure196.prototype = {
  71182. call$1: function($arguments) {
  71183. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$green(), null);
  71184. },
  71185. $signature: 10
  71186. };
  71187. K.closure195.prototype = {
  71188. call$1: function($arguments) {
  71189. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$blue(), null);
  71190. },
  71191. $signature: 10
  71192. };
  71193. K.closure194.prototype = {
  71194. call$1: function($arguments) {
  71195. var t1 = J.getInterceptor$asx($arguments);
  71196. return K._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
  71197. },
  71198. $signature: 29
  71199. };
  71200. K.closure193.prototype = {
  71201. call$1: function($arguments) {
  71202. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$hue(), "deg");
  71203. },
  71204. $signature: 10
  71205. };
  71206. K.closure192.prototype = {
  71207. call$1: function($arguments) {
  71208. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$saturation(), "%");
  71209. },
  71210. $signature: 10
  71211. };
  71212. K.closure191.prototype = {
  71213. call$1: function($arguments) {
  71214. return T.SassNumber$0(J.get$first$ax($arguments).assertColor$1("color").get$lightness(), "%");
  71215. },
  71216. $signature: 10
  71217. };
  71218. K.closure190.prototype = {
  71219. call$1: function($arguments) {
  71220. var color = J.$index$asx($arguments, 0).assertColor$1("color");
  71221. return color.changeHsl$1$hue(color.get$hue() + 180);
  71222. },
  71223. $signature: 29
  71224. };
  71225. K.closure188.prototype = {
  71226. call$1: function($arguments) {
  71227. return K._updateComponents0($arguments, true, false, false);
  71228. },
  71229. $signature: 29
  71230. };
  71231. K.closure187.prototype = {
  71232. call$1: function($arguments) {
  71233. return K._updateComponents0($arguments, false, false, true);
  71234. },
  71235. $signature: 29
  71236. };
  71237. K.closure186.prototype = {
  71238. call$1: function($arguments) {
  71239. return K._updateComponents0($arguments, false, true, false);
  71240. },
  71241. $signature: 29
  71242. };
  71243. K.closure189.prototype = {
  71244. call$1: function($arguments) {
  71245. var color = J.$index$asx($arguments, 0).assertColor$1("color"),
  71246. t1 = new K.closure_hexString0();
  71247. return new D.SassString0("#" + H.S(t1.call$1(T.fuzzyRound0(color.alpha * 255))) + H.S(t1.call$1(color.get$red())) + H.S(t1.call$1(color.get$green())) + H.S(t1.call$1(color.get$blue())), false);
  71248. },
  71249. $signature: 16
  71250. };
  71251. K.closure_hexString0.prototype = {
  71252. call$1: function(component) {
  71253. return C.JSString_methods.padLeft$2(J.toRadixString$1$n(component, 16), 2, "0").toUpperCase();
  71254. },
  71255. $signature: 83
  71256. };
  71257. K._updateComponents_getParam0.prototype = {
  71258. call$4$assertPercent$checkPercent: function($name, max, assertPercent, checkPercent) {
  71259. var t2,
  71260. t1 = this.keywords.remove$1(0, $name),
  71261. number = t1 == null ? null : t1.assertNumber$1($name);
  71262. if (number == null)
  71263. return null;
  71264. t1 = this.scale;
  71265. t2 = !t1;
  71266. if (t2 && checkPercent)
  71267. K._checkPercent0(number, $name);
  71268. if (!t2 || assertPercent)
  71269. number.assertUnit$2("%", $name);
  71270. if (t1)
  71271. max = 100;
  71272. return number.valueInRange$3(this.change ? 0 : -max, max, $name);
  71273. },
  71274. call$2: function($name, max) {
  71275. return this.call$4$assertPercent$checkPercent($name, max, false, false);
  71276. },
  71277. call$3$checkPercent: function($name, max, checkPercent) {
  71278. return this.call$4$assertPercent$checkPercent($name, max, false, checkPercent);
  71279. },
  71280. call$3$assertPercent: function($name, max, assertPercent) {
  71281. return this.call$4$assertPercent$checkPercent($name, max, assertPercent, false);
  71282. },
  71283. $signature: 141
  71284. };
  71285. K._updateComponents_closure0.prototype = {
  71286. call$1: function($name) {
  71287. return "$" + H.S($name);
  71288. },
  71289. $signature: 6
  71290. };
  71291. K._updateComponents_updateValue0.prototype = {
  71292. call$3: function(current, param, max) {
  71293. var t1;
  71294. if (param == null)
  71295. return current;
  71296. if (this.change)
  71297. return param;
  71298. if (this.adjust)
  71299. return C.JSNumber_methods.clamp$2(current + param, 0, max);
  71300. t1 = param > 0 ? max - current : current;
  71301. return current + t1 * (param / 100);
  71302. },
  71303. $signature: 142
  71304. };
  71305. K._updateComponents_updateRgb0.prototype = {
  71306. call$2: function(current, param) {
  71307. return T.fuzzyRound0(this.updateValue.call$3(current, param, 255));
  71308. },
  71309. $signature: 143
  71310. };
  71311. K._functionString_closure0.prototype = {
  71312. call$1: function(argument) {
  71313. argument.toString;
  71314. return N.serializeValue(argument, false, true);
  71315. },
  71316. $signature: 318
  71317. };
  71318. K._removedColorFunction_closure0.prototype = {
  71319. call$1: function($arguments) {
  71320. var t1 = this.name,
  71321. t2 = J.getInterceptor$asx($arguments),
  71322. t3 = "The function " + t1 + string$.x28__isn + H.S(t2.$index($arguments, 0)) + ", $" + this.argument + ": ";
  71323. throw H.wrapException(E.SassScriptException$0(t3 + (this.negative ? "-" : "") + H.S(t2.$index($arguments, 1)) + string$.x29__Mor + t1));
  71324. },
  71325. $signature: 97
  71326. };
  71327. K._removeUnits_closure1.prototype = {
  71328. call$1: function(unit) {
  71329. return " * 1" + H.S(unit);
  71330. },
  71331. $signature: 6
  71332. };
  71333. K._removeUnits_closure2.prototype = {
  71334. call$1: function(unit) {
  71335. return " / 1" + H.S(unit);
  71336. },
  71337. $signature: 6
  71338. };
  71339. K._parseChannels_closure0.prototype = {
  71340. call$1: function(value) {
  71341. return value.get$isVar();
  71342. },
  71343. $signature: 55
  71344. };
  71345. K._NodeSassColor.prototype = {};
  71346. K.closure253.prototype = {
  71347. call$6: function(thisArg, redOrArgb, green, blue, alpha, dartValue) {
  71348. var red, t1, t2, t3, t4;
  71349. if (dartValue != null) {
  71350. J.set$dartValue$x(thisArg, dartValue);
  71351. return;
  71352. }
  71353. if (green == null) {
  71354. H._asIntS(redOrArgb);
  71355. alpha = C.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
  71356. red = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
  71357. green = C.JSInt_methods.$mod(C.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
  71358. blue = C.JSInt_methods.$mod(redOrArgb, 256);
  71359. } else
  71360. red = redOrArgb;
  71361. t1 = C.JSNumber_methods.round$0(J.clamp$2$n(red, 0, 255));
  71362. t2 = C.JSNumber_methods.round$0(C.JSNumber_methods.clamp$2(green, 0, 255));
  71363. t3 = C.JSNumber_methods.round$0(J.clamp$2$n(blue, 0, 255));
  71364. t4 = alpha == null ? null : C.JSNumber_methods.clamp$2(alpha, 0, 1);
  71365. J.set$dartValue$x(thisArg, K.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4, null));
  71366. },
  71367. call$2: function(thisArg, redOrArgb) {
  71368. return this.call$6(thisArg, redOrArgb, null, null, null, null);
  71369. },
  71370. call$3: function(thisArg, redOrArgb, green) {
  71371. return this.call$6(thisArg, redOrArgb, green, null, null, null);
  71372. },
  71373. call$4: function(thisArg, redOrArgb, green, blue) {
  71374. return this.call$6(thisArg, redOrArgb, green, blue, null, null);
  71375. },
  71376. call$5: function(thisArg, redOrArgb, green, blue, alpha) {
  71377. return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
  71378. },
  71379. "call*": "call$6",
  71380. $requiredArgCount: 2,
  71381. $defaultValues: function() {
  71382. return [null, null, null, null];
  71383. },
  71384. $signature: 479
  71385. };
  71386. K.closure254.prototype = {
  71387. call$1: function(thisArg) {
  71388. return J.get$dartValue$x(thisArg).get$red();
  71389. },
  71390. $signature: 94
  71391. };
  71392. K.closure255.prototype = {
  71393. call$1: function(thisArg) {
  71394. return J.get$dartValue$x(thisArg).get$green();
  71395. },
  71396. $signature: 94
  71397. };
  71398. K.closure256.prototype = {
  71399. call$1: function(thisArg) {
  71400. return J.get$dartValue$x(thisArg).get$blue();
  71401. },
  71402. $signature: 94
  71403. };
  71404. K.closure257.prototype = {
  71405. call$1: function(thisArg) {
  71406. return J.get$dartValue$x(thisArg).alpha;
  71407. },
  71408. $signature: 321
  71409. };
  71410. K.closure258.prototype = {
  71411. call$2: function(thisArg, value) {
  71412. var t1 = J.getInterceptor$x(thisArg);
  71413. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  71414. },
  71415. "call*": "call$2",
  71416. $requiredArgCount: 2,
  71417. $signature: 74
  71418. };
  71419. K.closure259.prototype = {
  71420. call$2: function(thisArg, value) {
  71421. var t1 = J.getInterceptor$x(thisArg);
  71422. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  71423. },
  71424. "call*": "call$2",
  71425. $requiredArgCount: 2,
  71426. $signature: 74
  71427. };
  71428. K.closure260.prototype = {
  71429. call$2: function(thisArg, value) {
  71430. var t1 = J.getInterceptor$x(thisArg);
  71431. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(C.JSNumber_methods.round$0(J.clamp$2$n(value, 0, 255))));
  71432. },
  71433. "call*": "call$2",
  71434. $requiredArgCount: 2,
  71435. $signature: 74
  71436. };
  71437. K.closure261.prototype = {
  71438. call$2: function(thisArg, value) {
  71439. var t1 = J.getInterceptor$x(thisArg);
  71440. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(J.clamp$2$n(value, 0, 1)));
  71441. },
  71442. "call*": "call$2",
  71443. $requiredArgCount: 2,
  71444. $signature: 74
  71445. };
  71446. K.closure262.prototype = {
  71447. call$1: function(thisArg) {
  71448. return J.toString$0$(J.get$dartValue$x(thisArg));
  71449. },
  71450. $signature: 323
  71451. };
  71452. K.SassColor0.prototype = {
  71453. get$red: function() {
  71454. if (this._color0$_red == null)
  71455. this._color0$_hslToRgb$0();
  71456. return this._color0$_red;
  71457. },
  71458. get$green: function() {
  71459. if (this._color0$_green == null)
  71460. this._color0$_hslToRgb$0();
  71461. return this._color0$_green;
  71462. },
  71463. get$blue: function() {
  71464. if (this._color0$_blue == null)
  71465. this._color0$_hslToRgb$0();
  71466. return this._color0$_blue;
  71467. },
  71468. get$hue: function() {
  71469. if (this._color0$_hue == null)
  71470. this._color0$_rgbToHsl$0();
  71471. return this._color0$_hue;
  71472. },
  71473. get$saturation: function() {
  71474. if (this._color0$_saturation == null)
  71475. this._color0$_rgbToHsl$0();
  71476. return this._color0$_saturation;
  71477. },
  71478. get$lightness: function() {
  71479. if (this._color0$_lightness == null)
  71480. this._color0$_rgbToHsl$0();
  71481. return this._color0$_lightness;
  71482. },
  71483. get$whiteness: function() {
  71484. var t1 = this.get$red(),
  71485. t2 = this.get$green();
  71486. return Math.min(Math.min(H.checkNum(t1), H.checkNum(t2)), H.checkNum(this.get$blue())) / 255 * 100;
  71487. },
  71488. get$blackness: function() {
  71489. var t1 = this.get$red(),
  71490. t2 = this.get$green();
  71491. return 100 - Math.max(Math.max(H.checkNum(t1), H.checkNum(t2)), H.checkNum(this.get$blue())) / 255 * 100;
  71492. },
  71493. get$original: function() {
  71494. var t1 = this.originalSpan;
  71495. return t1 == null ? null : P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  71496. },
  71497. accept$1$1: function(visitor) {
  71498. return visitor.visitColor$1(this);
  71499. },
  71500. accept$1: function(visitor) {
  71501. return this.accept$1$1(visitor, type$.dynamic);
  71502. },
  71503. assertColor$1: function($name) {
  71504. return this;
  71505. },
  71506. changeRgb$4$alpha$blue$green$red: function(alpha, blue, green, red) {
  71507. var _this = this,
  71508. t1 = red == null ? _this.get$red() : red,
  71509. t2 = green == null ? _this.get$green() : green,
  71510. t3 = blue == null ? _this.get$blue() : blue;
  71511. return K.SassColor$rgb0(t1, t2, t3, alpha == null ? _this.alpha : alpha, null);
  71512. },
  71513. changeRgb$3$blue$green$red: function(blue, green, red) {
  71514. return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
  71515. },
  71516. changeRgb$1$alpha: function(alpha) {
  71517. return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
  71518. },
  71519. changeRgb$1$blue: function(blue) {
  71520. return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
  71521. },
  71522. changeRgb$1$green: function(green) {
  71523. return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
  71524. },
  71525. changeRgb$1$red: function(red) {
  71526. return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
  71527. },
  71528. changeHsl$4$alpha$hue$lightness$saturation: function(alpha, hue, lightness, saturation) {
  71529. var _this = this,
  71530. t1 = hue == null ? _this.get$hue() : hue,
  71531. t2 = saturation == null ? _this.get$saturation() : saturation,
  71532. t3 = lightness == null ? _this.get$lightness() : lightness;
  71533. return K.SassColor$hsl0(t1, t2, t3, alpha == null ? _this.alpha : alpha);
  71534. },
  71535. changeHsl$1$saturation: function(saturation) {
  71536. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
  71537. },
  71538. changeHsl$1$lightness: function(lightness) {
  71539. return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
  71540. },
  71541. changeHsl$1$hue: function(hue) {
  71542. return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
  71543. },
  71544. changeAlpha$1: function(alpha) {
  71545. var _this = this;
  71546. return new K.SassColor0(_this._color0$_red, _this._color0$_green, _this._color0$_blue, _this._color0$_hue, _this._color0$_saturation, _this._color0$_lightness, T.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null);
  71547. },
  71548. plus$1: function(other) {
  71549. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  71550. return this.super$Value$plus0(other);
  71551. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + H.S(other) + '".'));
  71552. },
  71553. minus$1: function(other) {
  71554. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  71555. return this.super$Value$minus0(other);
  71556. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + H.S(other) + '".'));
  71557. },
  71558. dividedBy$1: function(other) {
  71559. if (!(other instanceof T.SassNumber0) && !(other instanceof K.SassColor0))
  71560. return this.super$Value$dividedBy0(other);
  71561. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + H.S(other) + '".'));
  71562. },
  71563. modulo$1: function(other) {
  71564. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  71565. },
  71566. $eq: function(_, other) {
  71567. var _this = this;
  71568. if (other == null)
  71569. return false;
  71570. return other instanceof K.SassColor0 && other.get$red() == _this.get$red() && other.get$green() == _this.get$green() && other.get$blue() == _this.get$blue() && other.alpha === _this.alpha;
  71571. },
  71572. get$hashCode: function(_) {
  71573. var _this = this;
  71574. return J.get$hashCode$(_this.get$red()) ^ J.get$hashCode$(_this.get$green()) ^ J.get$hashCode$(_this.get$blue()) ^ C.JSNumber_methods.get$hashCode(_this.alpha);
  71575. },
  71576. _color0$_rgbToHsl$0: function() {
  71577. var t2, t3, _this = this,
  71578. scaledRed = _this.get$red() / 255,
  71579. scaledGreen = _this.get$green() / 255,
  71580. scaledBlue = _this.get$blue() / 255,
  71581. max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
  71582. min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
  71583. delta = max - min,
  71584. t1 = max === min;
  71585. if (t1)
  71586. _this._color0$_hue = 0;
  71587. else if (max === scaledRed)
  71588. _this._color0$_hue = C.JSDouble_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
  71589. else if (max === scaledGreen)
  71590. _this._color0$_hue = C.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
  71591. else if (max === scaledBlue)
  71592. _this._color0$_hue = C.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
  71593. t2 = max + min;
  71594. t3 = 50 * t2;
  71595. _this._color0$_lightness = t3;
  71596. if (t1)
  71597. _this._color0$_saturation = 0;
  71598. else {
  71599. t1 = 100 * delta;
  71600. if (t3 < 50)
  71601. _this._color0$_saturation = t1 / t2;
  71602. else
  71603. _this._color0$_saturation = t1 / (2 - max - min);
  71604. }
  71605. },
  71606. _color0$_hslToRgb$0: function() {
  71607. var _this = this,
  71608. scaledHue = _this.get$hue() / 360,
  71609. scaledSaturation = _this.get$saturation() / 100,
  71610. scaledLightness = _this.get$lightness() / 100,
  71611. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  71612. m1 = scaledLightness * 2 - m2;
  71613. _this._color0$_red = T.fuzzyRound0(K.SassColor__hueToRgb0(m1, m2, scaledHue + 0.3333333333333333) * 255);
  71614. _this._color0$_green = T.fuzzyRound0(K.SassColor__hueToRgb0(m1, m2, scaledHue) * 255);
  71615. _this._color0$_blue = T.fuzzyRound0(K.SassColor__hueToRgb0(m1, m2, scaledHue - 0.3333333333333333) * 255);
  71616. }
  71617. };
  71618. K.SassColor_SassColor$hwb_toRgb0.prototype = {
  71619. call$1: function(hue) {
  71620. return T.fuzzyRound0((K.SassColor__hueToRgb0(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
  71621. },
  71622. $signature: 39
  71623. };
  71624. R.ModifiableCssComment0.prototype = {
  71625. accept$1$1: function(visitor) {
  71626. return visitor.visitCssComment$1(this);
  71627. },
  71628. accept$1: function(visitor) {
  71629. return this.accept$1$1(visitor, type$.dynamic);
  71630. },
  71631. $isCssComment0: 1,
  71632. get$span: function() {
  71633. return this.span;
  71634. }
  71635. };
  71636. U._compileStylesheet_closure1.prototype = {
  71637. call$1: function(url) {
  71638. var t1, t2, _null = null;
  71639. if (url === "")
  71640. t1 = P.Uri_Uri$dataFromString(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, _null), 0, _null), C.C_Utf8Codec, _null).get$_text();
  71641. else {
  71642. t1 = P.Uri_parse(url);
  71643. t2 = this.importCache._import_cache$_resultsCache.$index(0, t1);
  71644. t2 = t2 == null ? _null : t2.get$sourceMapUrl();
  71645. t1 = (t2 == null ? t1 : t2).toString$0(0);
  71646. }
  71647. return t1;
  71648. },
  71649. $signature: 6
  71650. };
  71651. S.ComplexSelector0.prototype = {
  71652. get$minSpecificity: function() {
  71653. if (this._complex0$_minSpecificity == null)
  71654. this._complex0$_computeSpecificity$0();
  71655. return this._complex0$_minSpecificity;
  71656. },
  71657. get$maxSpecificity: function() {
  71658. if (this._complex0$_maxSpecificity == null)
  71659. this._complex0$_computeSpecificity$0();
  71660. return this._complex0$_maxSpecificity;
  71661. },
  71662. get$isInvisible: function() {
  71663. var t1 = this._complex0$_isInvisible;
  71664. if (t1 != null)
  71665. return t1;
  71666. return this._complex0$_isInvisible = C.JSArray_methods.any$1(this.components, new S.ComplexSelector_isInvisible_closure0());
  71667. },
  71668. accept$1$1: function(visitor) {
  71669. return visitor.visitComplexSelector$1(this);
  71670. },
  71671. accept$1: function(visitor) {
  71672. return this.accept$1$1(visitor, type$.dynamic);
  71673. },
  71674. _complex0$_computeSpecificity$0: function() {
  71675. var t1, t2, component, t3, _this = this,
  71676. _i = _this._complex0$_maxSpecificity = _this._complex0$_minSpecificity = 0;
  71677. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  71678. component = t1[_i];
  71679. if (component instanceof X.CompoundSelector0) {
  71680. t3 = _this._complex0$_minSpecificity;
  71681. if (component._compound0$_minSpecificity == null)
  71682. component._compound0$_computeSpecificity$0();
  71683. _this._complex0$_minSpecificity = t3 + component._compound0$_minSpecificity;
  71684. t3 = _this._complex0$_maxSpecificity;
  71685. if (component._compound0$_maxSpecificity == null)
  71686. component._compound0$_computeSpecificity$0();
  71687. _this._complex0$_maxSpecificity = t3 + component._compound0$_maxSpecificity;
  71688. }
  71689. }
  71690. },
  71691. get$hashCode: function(_) {
  71692. return C.C_ListEquality.hash$1(this.components);
  71693. },
  71694. $eq: function(_, other) {
  71695. if (other == null)
  71696. return false;
  71697. return other instanceof S.ComplexSelector0 && C.C_ListEquality.equals$2(0, this.components, other.components);
  71698. }
  71699. };
  71700. S.ComplexSelector_isInvisible_closure0.prototype = {
  71701. call$1: function(component) {
  71702. return component instanceof X.CompoundSelector0 && component.get$isInvisible();
  71703. },
  71704. $signature: 92
  71705. };
  71706. S.Combinator0.prototype = {
  71707. toString$0: function(_) {
  71708. return this._complex0$_text;
  71709. },
  71710. $isComplexSelectorComponent0: 1
  71711. };
  71712. X.CompoundSelector0.prototype = {
  71713. get$isInvisible: function() {
  71714. return C.JSArray_methods.any$1(this.components, new X.CompoundSelector_isInvisible_closure0());
  71715. },
  71716. accept$1$1: function(visitor) {
  71717. return visitor.visitCompoundSelector$1(this);
  71718. },
  71719. accept$1: function(visitor) {
  71720. return this.accept$1$1(visitor, type$.dynamic);
  71721. },
  71722. _compound0$_computeSpecificity$0: function() {
  71723. var t1, t2, simple, _this = this,
  71724. _i = _this._compound0$_maxSpecificity = _this._compound0$_minSpecificity = 0;
  71725. for (t1 = _this.components, t2 = t1.length; _i < t2; ++_i) {
  71726. simple = t1[_i];
  71727. _this._compound0$_minSpecificity = _this._compound0$_minSpecificity + simple.get$minSpecificity();
  71728. _this._compound0$_maxSpecificity = _this._compound0$_maxSpecificity + simple.get$maxSpecificity();
  71729. }
  71730. },
  71731. get$hashCode: function(_) {
  71732. return C.C_ListEquality.hash$1(this.components);
  71733. },
  71734. $eq: function(_, other) {
  71735. if (other == null)
  71736. return false;
  71737. return other instanceof X.CompoundSelector0 && C.C_ListEquality.equals$2(0, this.components, other.components);
  71738. },
  71739. $isComplexSelectorComponent0: 1
  71740. };
  71741. X.CompoundSelector_isInvisible_closure0.prototype = {
  71742. call$1: function(component) {
  71743. return component.get$isInvisible();
  71744. },
  71745. $signature: 19
  71746. };
  71747. A.Configuration0.prototype = {
  71748. throughForward$1: function($forward) {
  71749. var t1, t2,
  71750. newValues = this._configuration$_values;
  71751. if (newValues.get$isEmpty(newValues))
  71752. return C.Configuration_Map_empty_null_true0;
  71753. t1 = $forward.prefix;
  71754. if (t1 != null)
  71755. newValues = new R.UnprefixedMapView0(newValues, t1, type$.UnprefixedMapView_legacy_ConfiguredValue_2);
  71756. t1 = $forward.shownVariables;
  71757. if (t1 != null)
  71758. newValues = new K.LimitedMapView0(newValues, t1._base.intersection$1(new M.MapKeySet(newValues, type$.MapKeySet_legacy_Object)), type$.LimitedMapView_of_legacy_String_and_legacy_ConfiguredValue_2);
  71759. else {
  71760. t1 = $forward.hiddenVariables;
  71761. if (t1 == null)
  71762. t2 = null;
  71763. else {
  71764. t2 = t1._base;
  71765. t2 = t2.get$isNotEmpty(t2);
  71766. }
  71767. if (t2 === true)
  71768. newValues = K.LimitedMapView$blocklist0(newValues, t1, type$.legacy_String, type$.legacy_ConfiguredValue_2);
  71769. }
  71770. return this.isImplicit ? new A.Configuration0(newValues, null, true) : new A.Configuration0(newValues, this.nodeWithSpan, false);
  71771. }
  71772. };
  71773. Z.ConfiguredValue0.prototype = {};
  71774. Z.ConfiguredVariable0.prototype = {
  71775. toString$0: function(_) {
  71776. var t1 = "$" + this.name + ": " + H.S(this.expression);
  71777. return t1 + (this.isGuarded ? " !default" : "");
  71778. },
  71779. $isAstNode0: 1,
  71780. get$span: function() {
  71781. return this.span;
  71782. }
  71783. };
  71784. Y.ContentBlock0.prototype = {
  71785. accept$1$1: function(visitor) {
  71786. return visitor.visitContentBlock$1(this);
  71787. },
  71788. accept$1: function(visitor) {
  71789. return this.accept$1$1(visitor, type$.dynamic);
  71790. },
  71791. toString$0: function(_) {
  71792. var t2,
  71793. t1 = this.$arguments;
  71794. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  71795. t2 = this.children;
  71796. return t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  71797. }
  71798. };
  71799. Q.ContentRule0.prototype = {
  71800. accept$1$1: function(visitor) {
  71801. return visitor.visitContentRule$1(this);
  71802. },
  71803. accept$1: function(visitor) {
  71804. return this.accept$1$1(visitor, type$.dynamic);
  71805. },
  71806. toString$0: function(_) {
  71807. var t1 = this.$arguments;
  71808. return t1.get$isEmpty(t1) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  71809. },
  71810. $isAstNode0: 1,
  71811. $isStatement0: 1,
  71812. get$span: function() {
  71813. return this.span;
  71814. }
  71815. };
  71816. Q.closure227.prototype = {
  71817. call$1: function($function) {
  71818. return $function.name;
  71819. },
  71820. $signature: 325
  71821. };
  71822. Q.CssParser0.prototype = {
  71823. get$plainCss: function() {
  71824. return true;
  71825. },
  71826. silentComment$0: function() {
  71827. var t1 = this.scanner,
  71828. t2 = t1._string_scanner$_position;
  71829. this.super$Parser$silentComment0();
  71830. this.error$2(0, string$.Silent, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  71831. },
  71832. atRule$2$root: function(child, root) {
  71833. var $name, urlStart, next, url, urlSpan, queries, t2, t3, t4, t5, _this = this,
  71834. t1 = _this.scanner,
  71835. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  71836. t1.expectChar$1(64);
  71837. $name = _this.interpolatedIdentifier$0();
  71838. _this.whitespace$0();
  71839. switch ($name.get$asPlain()) {
  71840. case "at-root":
  71841. case "content":
  71842. case "debug":
  71843. case "each":
  71844. case "error":
  71845. case "extend":
  71846. case "for":
  71847. case "function":
  71848. case "if":
  71849. case "include":
  71850. case "mixin":
  71851. case "return":
  71852. case "warn":
  71853. case "while":
  71854. _this.almostAnyValue$0();
  71855. _this.error$2(0, "This at-rule isn't allowed in plain CSS.", t1.spanFrom$1(start));
  71856. break;
  71857. case "charset":
  71858. _this.string$0();
  71859. if (!root)
  71860. _this.error$2(0, "This at-rule is not allowed here.", t1.spanFrom$1(start));
  71861. return null;
  71862. case "import":
  71863. urlStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  71864. next = t1.peekChar$0();
  71865. url = next === 117 || next === 85 ? _this.dynamicUrl$0() : new D.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
  71866. urlSpan = t1.spanFrom$1(urlStart);
  71867. _this.whitespace$0();
  71868. queries = _this.tryImportQueries$0();
  71869. _this.expectStatementSeparator$1("@import rule");
  71870. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), urlSpan);
  71871. t3 = t1.spanFrom$1(urlStart);
  71872. t4 = queries == null;
  71873. t5 = t4 ? null : queries.item1;
  71874. t2 = H.setRuntimeTypeInfo([new Q.StaticImport0(t2, t5, t4 ? null : queries.item2, t3)], type$.JSArray_legacy_Import_2);
  71875. t1 = t1.spanFrom$1(start);
  71876. return new B.ImportRule0(P.List_List$unmodifiable(t2, type$.legacy_Import_2), t1);
  71877. case "media":
  71878. return _this.mediaRule$1(start);
  71879. case "-moz-document":
  71880. return _this.mozDocumentRule$2(start, $name);
  71881. case "supports":
  71882. return _this.supportsRule$1(start);
  71883. default:
  71884. return _this.unknownAtRule$2(start, $name);
  71885. }
  71886. },
  71887. identifierLike$0: function() {
  71888. var t2, $arguments, t3, t4, _this = this,
  71889. t1 = _this.scanner,
  71890. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  71891. identifier = _this.interpolatedIdentifier$0(),
  71892. plain = identifier.get$asPlain(),
  71893. specialFunction = _this.trySpecialFunction$2(plain.toLowerCase(), start);
  71894. if (specialFunction != null)
  71895. return specialFunction;
  71896. t2 = t1._string_scanner$_position;
  71897. if (!t1.scanChar$1(40))
  71898. return new D.StringExpression0(identifier, false);
  71899. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  71900. if (!t1.scanChar$1(41)) {
  71901. do {
  71902. _this.whitespace$0();
  71903. $arguments.push(_this.expression$1$singleEquals(true));
  71904. _this.whitespace$0();
  71905. } while (t1.scanChar$1(44));
  71906. t1.expectChar$1(41);
  71907. }
  71908. if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
  71909. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  71910. t3 = X.Interpolation$0(H.setRuntimeTypeInfo([new D.StringExpression0(identifier, false)], type$.JSArray_legacy_Object), identifier.span);
  71911. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  71912. t4 = type$.legacy_Expression_2;
  71913. return new F.FunctionExpression0(null, t3, new X.ArgumentInvocation0(P.List_List$unmodifiable($arguments, t4), H.ConstantMap_ConstantMap$from(C.Map_empty9, type$.legacy_String, t4), null, null, t2), t1.spanFrom$1(start));
  71914. }
  71915. };
  71916. Q.DebugRule0.prototype = {
  71917. accept$1$1: function(visitor) {
  71918. return visitor.visitDebugRule$1(this);
  71919. },
  71920. accept$1: function(visitor) {
  71921. return this.accept$1$1(visitor, type$.dynamic);
  71922. },
  71923. toString$0: function(_) {
  71924. return "@debug " + H.S(this.expression) + ";";
  71925. },
  71926. $isAstNode0: 1,
  71927. $isStatement0: 1,
  71928. get$span: function() {
  71929. return this.span;
  71930. }
  71931. };
  71932. L.ModifiableCssDeclaration0.prototype = {
  71933. accept$1$1: function(visitor) {
  71934. return visitor.visitCssDeclaration$1(this);
  71935. },
  71936. accept$1: function(visitor) {
  71937. return this.accept$1$1(visitor, type$.dynamic);
  71938. },
  71939. toString$0: function(_) {
  71940. return H.S(this.name) + ": " + this.value.toString$0(0) + ";";
  71941. },
  71942. get$span: function() {
  71943. return this.span;
  71944. }
  71945. };
  71946. L.Declaration0.prototype = {
  71947. accept$1$1: function(visitor) {
  71948. return visitor.visitDeclaration$1(this);
  71949. },
  71950. accept$1: function(visitor) {
  71951. return this.accept$1$1(visitor, type$.dynamic);
  71952. },
  71953. get$span: function() {
  71954. return this.span;
  71955. }
  71956. };
  71957. L.SupportsDeclaration0.prototype = {
  71958. toString$0: function(_) {
  71959. return "(" + H.S(this.name) + ": " + H.S(this.value) + ")";
  71960. },
  71961. $isAstNode0: 1,
  71962. get$span: function() {
  71963. return this.span;
  71964. }
  71965. };
  71966. B.DynamicImport0.prototype = {
  71967. toString$0: function(_) {
  71968. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([this.url], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain();
  71969. },
  71970. $isImport0: 1,
  71971. $isAstNode0: 1,
  71972. get$span: function() {
  71973. return this.span;
  71974. }
  71975. };
  71976. V.EachRule0.prototype = {
  71977. accept$1$1: function(visitor) {
  71978. return visitor.visitEachRule$1(this);
  71979. },
  71980. accept$1: function(visitor) {
  71981. return this.accept$1$1(visitor, type$.dynamic);
  71982. },
  71983. toString$0: function(_) {
  71984. var t1 = this.variables,
  71985. t2 = this.children;
  71986. return "@each " + new H.MappedListIterable(t1, new V.EachRule_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + " in " + H.S(this.list) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  71987. },
  71988. get$span: function() {
  71989. return this.span;
  71990. }
  71991. };
  71992. V.EachRule_toString_closure0.prototype = {
  71993. call$1: function(variable) {
  71994. return C.JSString_methods.$add("$", variable);
  71995. },
  71996. $signature: 6
  71997. };
  71998. T.EmptyExtender0.prototype = {
  71999. get$isEmpty: function(_) {
  72000. return true;
  72001. },
  72002. get$simpleSelectors: function() {
  72003. return C.C_EmptyUnmodifiableSet0;
  72004. },
  72005. extensionsWhereTarget$1: function(callback) {
  72006. return C.List_empty13;
  72007. },
  72008. addExtensions$1: function(extenders) {
  72009. throw H.wrapException(P.UnsupportedError$(string$.addExt));
  72010. },
  72011. clone$0: function() {
  72012. return C.Tuple2_EmptyExtender_Map_empty0;
  72013. },
  72014. $isExtender0: 1
  72015. };
  72016. O.Environment0.prototype = {
  72017. closure$0: function() {
  72018. var t5, t6, t7, _this = this,
  72019. t1 = _this._environment0$_forwardedModules,
  72020. t2 = _this._environment0$_forwardedModuleNodes,
  72021. t3 = _this._environment0$_nestedForwardedModules,
  72022. t4 = _this._environment0$_variables;
  72023. t4 = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4));
  72024. t5 = _this._environment0$_variableNodes;
  72025. if (t5 == null)
  72026. t5 = null;
  72027. else
  72028. t5 = H.setRuntimeTypeInfo(t5.slice(0), H._arrayInstanceType(t5));
  72029. t6 = _this._environment0$_functions;
  72030. t6 = H.setRuntimeTypeInfo(t6.slice(0), H._arrayInstanceType(t6));
  72031. t7 = _this._environment0$_mixins;
  72032. t7 = H.setRuntimeTypeInfo(t7.slice(0), H._arrayInstanceType(t7));
  72033. return O.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_globalModuleNodes, t1, t2, t3, _this._environment0$_allModules, t4, t5, t6, t7, _this._environment0$_content);
  72034. },
  72035. addModule$3$namespace: function(module, nodeWithSpan, namespace) {
  72036. var t1, t2, _this = this;
  72037. if (namespace == null) {
  72038. _this._environment0$_globalModules.add$1(0, module);
  72039. _this._environment0$_globalModuleNodes.$indexSet(0, module, nodeWithSpan);
  72040. _this._environment0$_allModules.push(module);
  72041. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.get$first(_this._environment0$_variables))); t1.moveNext$0();) {
  72042. t2 = t1.get$current(t1);
  72043. if (module.get$variables().containsKey$1(t2))
  72044. throw H.wrapException(E.SassScriptException$0(string$.This_ma + H.S(t2) + '".'));
  72045. }
  72046. } else {
  72047. t1 = _this._environment0$_modules;
  72048. if (t1.containsKey$1(namespace))
  72049. throw H.wrapException(E.MultiSpanSassScriptException$0(string$.There_ + namespace + '".', "new @use", P.LinkedHashMap_LinkedHashMap$_literal([_this._environment0$_namespaceNodes.$index(0, namespace).get$span(), "original @use"], type$.legacy_FileSpan, type$.legacy_String)));
  72050. t1.$indexSet(0, namespace, module);
  72051. _this._environment0$_namespaceNodes.$indexSet(0, namespace, nodeWithSpan);
  72052. _this._environment0$_allModules.push(module);
  72053. }
  72054. },
  72055. forwardModule$2: function(module, rule) {
  72056. var view, t1, t2, _this = this;
  72057. if (_this._environment0$_forwardedModules == null)
  72058. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable_2);
  72059. if (_this._environment0$_forwardedModuleNodes == null)
  72060. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable_2, type$.legacy_AstNode_2);
  72061. view = R.ForwardedModuleView_ifNecessary0(module, rule, type$.legacy_Callable_2);
  72062. for (t1 = _this._environment0$_forwardedModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  72063. t2 = t1._collection$_current;
  72064. _this._environment0$_assertNoConflicts$6(view.get$variables(), t2.get$variables(), view, t2, "variable", rule);
  72065. _this._environment0$_assertNoConflicts$6(view.get$functions(view), t2.get$functions(t2), view, t2, "function", rule);
  72066. _this._environment0$_assertNoConflicts$6(view.get$mixins(), t2.get$mixins(), view, t2, "mixin", rule);
  72067. }
  72068. _this._environment0$_allModules.push(module);
  72069. _this._environment0$_forwardedModules.add$1(0, view);
  72070. _this._environment0$_forwardedModuleNodes.$indexSet(0, view, rule);
  72071. },
  72072. _environment0$_assertNoConflicts$6: function(newMembers, oldMembers, newModule, oldModule, type, newModuleNodeWithSpan) {
  72073. var larger, smaller, t1, t2, $name;
  72074. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  72075. larger = oldMembers;
  72076. smaller = newMembers;
  72077. } else {
  72078. larger = newMembers;
  72079. smaller = oldMembers;
  72080. }
  72081. for (t1 = J.get$iterator$ax(smaller.get$keys(smaller)), t2 = type === "variable"; t1.moveNext$0();) {
  72082. $name = t1.get$current(t1);
  72083. if (!larger.containsKey$1($name))
  72084. continue;
  72085. if (t2 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(larger.$index(0, $name), smaller.$index(0, $name)))
  72086. continue;
  72087. if (t2)
  72088. $name = "$" + H.S($name);
  72089. throw H.wrapException(E.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + H.S($name) + ".", "new @forward", P.LinkedHashMap_LinkedHashMap$_literal([this._environment0$_forwardedModuleNodes.$index(0, oldModule).get$span(), "original @forward"], type$.legacy_FileSpan, type$.legacy_String)));
  72090. }
  72091. },
  72092. importForwards$1: function(module) {
  72093. var t2, t3, t4, t5, forwardedVariableNames, forwardedFunctionNames, forwardedMixinNames, t6, t7, _i, shadowed, t8, _this = this,
  72094. t1 = module._environment0$_environment,
  72095. forwarded = t1._environment0$_forwardedModules;
  72096. if (forwarded == null)
  72097. return;
  72098. if (_this._environment0$_forwardedModules != null) {
  72099. t2 = P.LinkedHashSet_LinkedHashSet(type$.legacy_Module_legacy_Callable_2);
  72100. for (t3 = P._LinkedHashSetIterator$(forwarded, forwarded._collection$_modifications), t4 = _this._environment0$_globalModules; t3.moveNext$0();) {
  72101. t5 = t3._collection$_current;
  72102. if (!_this._environment0$_forwardedModules.contains$1(0, t5) || !t4.contains$1(0, t5))
  72103. t2.add$1(0, t5);
  72104. }
  72105. forwarded = t2;
  72106. }
  72107. if (_this._environment0$_forwardedModules == null)
  72108. _this._environment0$_forwardedModules = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_Module_legacy_Callable_2);
  72109. if (_this._environment0$_forwardedModuleNodes == null)
  72110. _this._environment0$_forwardedModuleNodes = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Module_legacy_Callable_2, type$.legacy_AstNode_2);
  72111. t2 = H._instanceType(forwarded)._eval$1("ExpandIterable<1,String*>");
  72112. t3 = t2._eval$1("Iterable.E");
  72113. forwardedVariableNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure3(), t2), t3);
  72114. forwardedFunctionNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure4(), t2), t3);
  72115. forwardedMixinNames = P.LinkedHashSet_LinkedHashSet$of(new H.ExpandIterable(forwarded, new O.Environment_importForwards_closure5(), t2), t3);
  72116. t2 = _this._environment0$_variables;
  72117. t3 = t2.length;
  72118. if (t3 === 1) {
  72119. for (t3 = _this._environment0$_globalModules, t4 = P.List_List$from(t3, true, H._instanceType(t3)._precomputed1), t5 = t4.length, t6 = type$.legacy_Callable_2, t7 = _this._environment0$_globalModuleNodes, _i = 0; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  72120. module = t4[_i];
  72121. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  72122. if (shadowed != null) {
  72123. t3.remove$1(0, module);
  72124. t8 = shadowed.variables;
  72125. if (t8.get$isEmpty(t8)) {
  72126. t8 = shadowed.functions;
  72127. if (t8.get$isEmpty(t8)) {
  72128. t8 = shadowed.mixins;
  72129. if (t8.get$isEmpty(t8)) {
  72130. t8 = shadowed._shadowed_view0$_inner;
  72131. t8 = t8.get$css(t8);
  72132. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  72133. } else
  72134. t8 = false;
  72135. } else
  72136. t8 = false;
  72137. } else
  72138. t8 = false;
  72139. if (!t8) {
  72140. t3.add$1(0, shadowed);
  72141. t7.$indexSet(0, shadowed, t7.remove$1(0, module));
  72142. }
  72143. }
  72144. }
  72145. t4 = _this._environment0$_forwardedModules;
  72146. t4.toString;
  72147. t4 = P.List_List$from(t4, true, H._instanceType(t4)._precomputed1);
  72148. t5 = t4.length;
  72149. _i = 0;
  72150. for (; _i < t4.length; t4.length === t5 || (0, H.throwConcurrentModificationError)(t4), ++_i) {
  72151. module = t4[_i];
  72152. shadowed = B.ShadowedModuleView_ifNecessary0(module, forwardedFunctionNames, forwardedMixinNames, forwardedVariableNames, t6);
  72153. if (shadowed != null) {
  72154. _this._environment0$_forwardedModules.remove$1(0, module);
  72155. t8 = shadowed.variables;
  72156. if (t8.get$isEmpty(t8)) {
  72157. t8 = shadowed.functions;
  72158. if (t8.get$isEmpty(t8)) {
  72159. t8 = shadowed.mixins;
  72160. if (t8.get$isEmpty(t8)) {
  72161. t8 = shadowed._shadowed_view0$_inner;
  72162. t8 = t8.get$css(t8);
  72163. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  72164. } else
  72165. t8 = false;
  72166. } else
  72167. t8 = false;
  72168. } else
  72169. t8 = false;
  72170. if (!t8) {
  72171. _this._environment0$_forwardedModules.add$1(0, shadowed);
  72172. t8 = _this._environment0$_forwardedModuleNodes;
  72173. t8.$indexSet(0, shadowed, t8.remove$1(0, module));
  72174. }
  72175. }
  72176. }
  72177. t3.addAll$1(0, forwarded);
  72178. t7.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  72179. _this._environment0$_forwardedModules.addAll$1(0, forwarded);
  72180. _this._environment0$_forwardedModuleNodes.addAll$1(0, t1._environment0$_forwardedModuleNodes);
  72181. } else {
  72182. t1 = _this._environment0$_nestedForwardedModules;
  72183. J.addAll$1$ax(C.JSArray_methods.get$last(t1 == null ? _this._environment0$_nestedForwardedModules = P.List_List$generate(t3 - 1, new O.Environment_importForwards_closure6(), true, type$.legacy_List_legacy_Module_legacy_Callable_2) : t1), forwarded);
  72184. }
  72185. for (t1 = P._LinkedHashSetIterator$(forwardedVariableNames, forwardedVariableNames._collection$_modifications), t3 = _this._environment0$_variableNodes, t4 = t3 != null, t5 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  72186. t6 = t1._collection$_current;
  72187. t5.remove$1(0, t6);
  72188. J.remove$1$ax(C.JSArray_methods.get$last(t2), t6);
  72189. if (t4)
  72190. J.remove$1$ax(C.JSArray_methods.get$last(t3), t6);
  72191. }
  72192. for (t1 = P._LinkedHashSetIterator$(forwardedFunctionNames, forwardedFunctionNames._collection$_modifications), t2 = _this._environment0$_functionIndices, t3 = _this._environment0$_functions; t1.moveNext$0();) {
  72193. t4 = t1._collection$_current;
  72194. t2.remove$1(0, t4);
  72195. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  72196. }
  72197. for (t1 = P._LinkedHashSetIterator$(forwardedMixinNames, forwardedMixinNames._collection$_modifications), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins; t1.moveNext$0();) {
  72198. t4 = t1._collection$_current;
  72199. t2.remove$1(0, t4);
  72200. J.remove$1$ax(C.JSArray_methods.get$last(t3), t4);
  72201. }
  72202. },
  72203. getVariable$2$namespace: function($name, namespace) {
  72204. var t1, index, _this = this;
  72205. if (namespace != null)
  72206. return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  72207. if (_this._environment0$_lastVariableName === $name) {
  72208. t1 = J.$index$asx(_this._environment0$_variables[_this._environment0$_lastVariableIndex], $name);
  72209. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  72210. }
  72211. t1 = _this._environment0$_variableIndices;
  72212. index = t1.$index(0, $name);
  72213. if (index != null) {
  72214. _this._environment0$_lastVariableName = $name;
  72215. _this._environment0$_lastVariableIndex = index;
  72216. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  72217. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  72218. }
  72219. index = _this._environment0$_variableIndex$1($name);
  72220. if (index == null)
  72221. return _this._environment0$_getVariableFromGlobalModule$1($name);
  72222. _this._environment0$_lastVariableName = $name;
  72223. _this._environment0$_lastVariableIndex = index;
  72224. t1.$indexSet(0, $name, index);
  72225. t1 = J.$index$asx(_this._environment0$_variables[index], $name);
  72226. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  72227. },
  72228. getVariable$1: function($name) {
  72229. return this.getVariable$2$namespace($name, null);
  72230. },
  72231. _environment0$_getVariableFromGlobalModule$1: function($name) {
  72232. return this._environment0$_fromOneModule$3($name, "variable", new O.Environment__getVariableFromGlobalModule_closure0($name));
  72233. },
  72234. getVariableNode$2$namespace: function($name, namespace) {
  72235. var t1, index, _this = this;
  72236. if (namespace != null)
  72237. return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  72238. if (_this._environment0$_lastVariableName === $name) {
  72239. t1 = J.$index$asx(_this._environment0$_variableNodes[_this._environment0$_lastVariableIndex], $name);
  72240. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  72241. }
  72242. t1 = _this._environment0$_variableIndices;
  72243. index = t1.$index(0, $name);
  72244. if (index != null) {
  72245. _this._environment0$_lastVariableName = $name;
  72246. _this._environment0$_lastVariableIndex = index;
  72247. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  72248. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  72249. }
  72250. index = _this._environment0$_variableIndex$1($name);
  72251. if (index == null)
  72252. return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
  72253. _this._environment0$_lastVariableName = $name;
  72254. _this._environment0$_lastVariableIndex = index;
  72255. t1.$indexSet(0, $name, index);
  72256. t1 = J.$index$asx(_this._environment0$_variableNodes[index], $name);
  72257. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  72258. },
  72259. _environment0$_getVariableNodeFromGlobalModule$1: function($name) {
  72260. var t1, value;
  72261. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications); t1.moveNext$0();) {
  72262. value = t1._collection$_current.get$variableNodes().$index(0, $name);
  72263. if (value != null)
  72264. return value;
  72265. }
  72266. return null;
  72267. },
  72268. globalVariableExists$2$namespace: function($name, namespace) {
  72269. if (namespace != null)
  72270. return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  72271. if (C.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
  72272. return true;
  72273. return this._environment0$_getVariableFromGlobalModule$1($name) != null;
  72274. },
  72275. globalVariableExists$1: function($name) {
  72276. return this.globalVariableExists$2$namespace($name, null);
  72277. },
  72278. _environment0$_variableIndex$1: function($name) {
  72279. var t1, i;
  72280. for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
  72281. if (t1[i].containsKey$1($name))
  72282. return i;
  72283. return null;
  72284. },
  72285. setVariable$5$global$namespace: function($name, value, nodeWithSpan, global, namespace) {
  72286. var t1, moduleWithName, cur, t2, index, _this = this;
  72287. if (namespace != null) {
  72288. _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  72289. return;
  72290. }
  72291. if (global || _this._environment0$_variables.length === 1) {
  72292. _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure2(_this, $name));
  72293. t1 = _this._environment0$_variables;
  72294. if (!C.JSArray_methods.get$first(t1).containsKey$1($name)) {
  72295. moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new O.Environment_setVariable_closure3($name));
  72296. if (moduleWithName != null) {
  72297. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  72298. return;
  72299. }
  72300. }
  72301. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, value);
  72302. t1 = _this._environment0$_variableNodes;
  72303. if (t1 != null)
  72304. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  72305. return;
  72306. }
  72307. if (_this._environment0$_nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null) {
  72308. t1 = _this._environment0$_nestedForwardedModules;
  72309. t1.toString;
  72310. t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"));
  72311. t1 = new H.ListIterator(t1, t1.get$length(t1));
  72312. for (; t1.moveNext$0();) {
  72313. cur = t1.__internal$_current;
  72314. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72315. cur = t2.__internal$_current;
  72316. if (cur.get$variables().containsKey$1($name)) {
  72317. cur.setVariable$3($name, value, nodeWithSpan);
  72318. return;
  72319. }
  72320. }
  72321. }
  72322. }
  72323. index = _this._environment0$_lastVariableName === $name ? _this._environment0$_lastVariableIndex : _this._environment0$_variableIndices.putIfAbsent$2($name, new O.Environment_setVariable_closure4(_this, $name));
  72324. if (!_this._environment0$_inSemiGlobalScope && index === 0) {
  72325. index = _this._environment0$_variables.length - 1;
  72326. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  72327. }
  72328. _this._environment0$_lastVariableName = $name;
  72329. _this._environment0$_lastVariableIndex = index;
  72330. J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
  72331. t1 = _this._environment0$_variableNodes;
  72332. if (t1 != null)
  72333. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  72334. },
  72335. setVariable$4$global: function($name, value, nodeWithSpan, global) {
  72336. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  72337. },
  72338. setLocalVariable$3: function($name, value, nodeWithSpan) {
  72339. var index, _this = this,
  72340. t1 = _this._environment0$_variables,
  72341. t2 = t1.length;
  72342. _this._environment0$_lastVariableName = $name;
  72343. index = _this._environment0$_lastVariableIndex = t2 - 1;
  72344. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  72345. J.$indexSet$ax(t1[index], $name, value);
  72346. t1 = _this._environment0$_variableNodes;
  72347. if (t1 != null)
  72348. J.$indexSet$ax(t1[index], $name, nodeWithSpan);
  72349. },
  72350. getFunction$2$namespace: function($name, namespace) {
  72351. var t1, index, _this = this;
  72352. if (namespace != null) {
  72353. t1 = _this._environment0$_getModule$1(namespace);
  72354. return t1.get$functions(t1).$index(0, $name);
  72355. }
  72356. t1 = _this._environment0$_functionIndices;
  72357. index = t1.$index(0, $name);
  72358. if (index != null) {
  72359. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  72360. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  72361. }
  72362. index = _this._environment0$_functionIndex$1($name);
  72363. if (index == null)
  72364. return _this._environment0$_getFunctionFromGlobalModule$1($name);
  72365. t1.$indexSet(0, $name, index);
  72366. t1 = J.$index$asx(_this._environment0$_functions[index], $name);
  72367. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  72368. },
  72369. _environment0$_getFunctionFromGlobalModule$1: function($name) {
  72370. return this._environment0$_fromOneModule$3($name, "function", new O.Environment__getFunctionFromGlobalModule_closure0($name));
  72371. },
  72372. _environment0$_functionIndex$1: function($name) {
  72373. var t1, i;
  72374. for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
  72375. if (t1[i].containsKey$1($name))
  72376. return i;
  72377. return null;
  72378. },
  72379. getMixin$2$namespace: function($name, namespace) {
  72380. var t1, index, _this = this;
  72381. if (namespace != null)
  72382. return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  72383. t1 = _this._environment0$_mixinIndices;
  72384. index = t1.$index(0, $name);
  72385. if (index != null) {
  72386. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  72387. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  72388. }
  72389. index = _this._environment0$_mixinIndex$1($name);
  72390. if (index == null)
  72391. return _this._environment0$_getMixinFromGlobalModule$1($name);
  72392. t1.$indexSet(0, $name, index);
  72393. t1 = J.$index$asx(_this._environment0$_mixins[index], $name);
  72394. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  72395. },
  72396. _environment0$_getMixinFromGlobalModule$1: function($name) {
  72397. return this._environment0$_fromOneModule$3($name, "mixin", new O.Environment__getMixinFromGlobalModule_closure0($name));
  72398. },
  72399. _environment0$_mixinIndex$1: function($name) {
  72400. var t1, i;
  72401. for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  72402. if (t1[i].containsKey$1($name))
  72403. return i;
  72404. return null;
  72405. },
  72406. scope$1$3$semiGlobal$when: function(callback, semiGlobal, when) {
  72407. var wasInSemiGlobalScope, wasInSemiGlobalScope0, $name, name0, name1, t1, t2, t3, t4, t5, _this = this;
  72408. if (!when) {
  72409. wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
  72410. _this._environment0$_inSemiGlobalScope = semiGlobal;
  72411. try {
  72412. t1 = callback.call$0();
  72413. return t1;
  72414. } finally {
  72415. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  72416. }
  72417. }
  72418. semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
  72419. wasInSemiGlobalScope0 = _this._environment0$_inSemiGlobalScope;
  72420. _this._environment0$_inSemiGlobalScope = semiGlobal;
  72421. t1 = _this._environment0$_variables;
  72422. t2 = type$.legacy_String;
  72423. C.JSArray_methods.add$1(t1, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_Value_2));
  72424. t3 = _this._environment0$_variableNodes;
  72425. if (t3 != null)
  72426. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_AstNode_2));
  72427. t3 = _this._environment0$_functions;
  72428. t4 = type$.legacy_Callable_2;
  72429. C.JSArray_methods.add$1(t3, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  72430. t5 = _this._environment0$_mixins;
  72431. C.JSArray_methods.add$1(t5, P.LinkedHashMap_LinkedHashMap$_empty(t2, t4));
  72432. t4 = _this._environment0$_nestedForwardedModules;
  72433. if (t4 != null)
  72434. C.JSArray_methods.add$1(t4, H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2));
  72435. try {
  72436. t2 = callback.call$0();
  72437. return t2;
  72438. } finally {
  72439. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope0;
  72440. _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
  72441. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t1))), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  72442. $name = t1.get$current(t1);
  72443. t2.remove$1(0, $name);
  72444. }
  72445. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t3))), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
  72446. name0 = t1.get$current(t1);
  72447. t2.remove$1(0, name0);
  72448. }
  72449. for (t1 = J.get$iterator$ax(J.get$keys$z(C.JSArray_methods.removeLast$0(t5))), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
  72450. name1 = t1.get$current(t1);
  72451. t2.remove$1(0, name1);
  72452. }
  72453. t1 = _this._environment0$_nestedForwardedModules;
  72454. if (t1 != null)
  72455. C.JSArray_methods.removeLast$0(t1);
  72456. }
  72457. },
  72458. scope$1$1: function(callback, $T) {
  72459. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  72460. },
  72461. scope$1$2$when: function(callback, when, $T) {
  72462. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  72463. },
  72464. scope$1$2$semiGlobal: function(callback, semiGlobal, $T) {
  72465. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  72466. },
  72467. toImplicitConfiguration$0: function() {
  72468. var t2, t3, t4, t5, i, values, nodes, t6, t7,
  72469. t1 = type$.legacy_String,
  72470. configuration = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_ConfiguredValue_2);
  72471. for (t2 = this._environment0$_variables, t3 = this._environment0$_variableNodes, t4 = t3 == null, t5 = type$.legacy_AstNode_2, i = 0; i < t2.length; ++i) {
  72472. values = t2[i];
  72473. nodes = t4 ? P.LinkedHashMap_LinkedHashMap$_empty(t1, t5) : t3[i];
  72474. for (t6 = J.get$iterator$ax(values.get$keys(values)); t6.moveNext$0();) {
  72475. t7 = t6.get$current(t6);
  72476. configuration.$indexSet(0, t7, new Z.ConfiguredValue0(values.$index(0, t7), null, nodes.$index(0, t7)));
  72477. }
  72478. }
  72479. return new A.Configuration0(configuration, null, true);
  72480. },
  72481. _environment0$_getModule$1: function(namespace) {
  72482. var module = this._environment0$_modules.$index(0, namespace);
  72483. if (module != null)
  72484. return module;
  72485. throw H.wrapException(E.SassScriptException$0('There is no module with the namespace "' + namespace + '".'));
  72486. },
  72487. _environment0$_fromOneModule$1$3: function($name, type, callback) {
  72488. var cur, t2, value, identity, t3, valueInModule, identityFromModule, t4, t5,
  72489. t1 = this._environment0$_nestedForwardedModules;
  72490. if (t1 != null)
  72491. for (t1 = new H.ReversedListIterable(t1, H._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>")), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  72492. cur = t1.__internal$_current;
  72493. for (t2 = J.get$reversed$ax(cur), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72494. cur = t2.__internal$_current;
  72495. value = callback.call$1(cur);
  72496. if (value != null)
  72497. return value;
  72498. }
  72499. }
  72500. for (t1 = this._environment0$_globalModules, t1 = P._LinkedHashSetIterator$(t1, t1._collection$_modifications), t2 = type$.legacy_Callable_2, value = null, identity = null; t1.moveNext$0();) {
  72501. t3 = t1._collection$_current;
  72502. valueInModule = callback.call$1(t3);
  72503. if (valueInModule == null)
  72504. continue;
  72505. identityFromModule = t2._is(valueInModule) ? valueInModule : t3.variableIdentity$1($name);
  72506. if (identityFromModule.$eq(0, identity))
  72507. continue;
  72508. if (value != null) {
  72509. t1 = "This " + type + string$.x20is_av;
  72510. t2 = type + " use";
  72511. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  72512. for (t4 = this._environment0$_globalModuleNodes, t4 = t4.get$entries(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  72513. t5 = t4.get$current(t4);
  72514. if (callback.call$1(t5.key) != null)
  72515. t3.$indexSet(0, t5.value.get$span(), "includes " + type);
  72516. }
  72517. throw H.wrapException(E.MultiSpanSassScriptException$0(t1, t2, t3));
  72518. }
  72519. identity = identityFromModule;
  72520. value = valueInModule;
  72521. }
  72522. return value;
  72523. },
  72524. _environment0$_fromOneModule$3: function($name, type, callback) {
  72525. return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  72526. }
  72527. };
  72528. O.Environment_importForwards_closure3.prototype = {
  72529. call$1: function(module) {
  72530. var t1 = module.get$variables();
  72531. return t1.get$keys(t1);
  72532. },
  72533. $signature: 91
  72534. };
  72535. O.Environment_importForwards_closure4.prototype = {
  72536. call$1: function(module) {
  72537. var t1 = module.get$functions(module);
  72538. return t1.get$keys(t1);
  72539. },
  72540. $signature: 91
  72541. };
  72542. O.Environment_importForwards_closure5.prototype = {
  72543. call$1: function(module) {
  72544. var t1 = module.get$mixins();
  72545. return t1.get$keys(t1);
  72546. },
  72547. $signature: 91
  72548. };
  72549. O.Environment_importForwards_closure6.prototype = {
  72550. call$1: function(_) {
  72551. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2);
  72552. },
  72553. $signature: 327
  72554. };
  72555. O.Environment__getVariableFromGlobalModule_closure0.prototype = {
  72556. call$1: function(module) {
  72557. return module.get$variables().$index(0, this.name);
  72558. },
  72559. $signature: 328
  72560. };
  72561. O.Environment_setVariable_closure2.prototype = {
  72562. call$0: function() {
  72563. var t1 = this.$this;
  72564. t1._environment0$_lastVariableName = this.name;
  72565. return t1._environment0$_lastVariableIndex = 0;
  72566. },
  72567. $signature: 11
  72568. };
  72569. O.Environment_setVariable_closure3.prototype = {
  72570. call$1: function(module) {
  72571. return module.get$variables().containsKey$1(this.name) ? module : null;
  72572. },
  72573. $signature: 201
  72574. };
  72575. O.Environment_setVariable_closure4.prototype = {
  72576. call$0: function() {
  72577. var t1 = this.$this,
  72578. t2 = t1._environment0$_variableIndex$1(this.name);
  72579. return t2 == null ? t1._environment0$_variables.length - 1 : t2;
  72580. },
  72581. $signature: 11
  72582. };
  72583. O.Environment__getFunctionFromGlobalModule_closure0.prototype = {
  72584. call$1: function(module) {
  72585. return module.get$functions(module).$index(0, this.name);
  72586. },
  72587. $signature: 197
  72588. };
  72589. O.Environment__getMixinFromGlobalModule_closure0.prototype = {
  72590. call$1: function(module) {
  72591. return module.get$mixins().$index(0, this.name);
  72592. },
  72593. $signature: 197
  72594. };
  72595. O._EnvironmentModule1.prototype = {
  72596. get$url: function() {
  72597. return this.css.get$span().file.url;
  72598. },
  72599. setVariable$3: function($name, value, nodeWithSpan) {
  72600. var t1, t2,
  72601. module = this._environment0$_modulesByVariable.$index(0, $name);
  72602. if (module != null) {
  72603. module.setVariable$3($name, value, nodeWithSpan);
  72604. return;
  72605. }
  72606. t1 = this._environment0$_environment;
  72607. t2 = t1._environment0$_variables;
  72608. if (!C.JSArray_methods.get$first(t2).containsKey$1($name))
  72609. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  72610. J.$indexSet$ax(C.JSArray_methods.get$first(t2), $name, value);
  72611. t1 = t1._environment0$_variableNodes;
  72612. if (t1 != null)
  72613. J.$indexSet$ax(C.JSArray_methods.get$first(t1), $name, nodeWithSpan);
  72614. return;
  72615. },
  72616. variableIdentity$1: function($name) {
  72617. var module = this._environment0$_modulesByVariable.$index(0, $name);
  72618. return module == null ? this : module.variableIdentity$1($name);
  72619. },
  72620. cloneCss$0: function() {
  72621. var newCssAndExtender, _this = this,
  72622. t1 = _this.css;
  72623. if (J.get$isEmpty$asx(t1.get$children(t1)))
  72624. return _this;
  72625. newCssAndExtender = V.cloneCssStylesheet0(t1, _this.extender);
  72626. return O._EnvironmentModule$_1(_this._environment0$_environment, newCssAndExtender.item1, newCssAndExtender.item2, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.transitivelyContainsCss, _this.transitivelyContainsExtensions);
  72627. },
  72628. toString$0: function(_) {
  72629. var t1 = this.css;
  72630. if (t1.get$span().file.url == null)
  72631. t1 = "<unknown url>";
  72632. else {
  72633. t1 = t1.get$span();
  72634. t1 = $.$get$context().prettyUri$1(t1.file.url);
  72635. }
  72636. return t1;
  72637. },
  72638. $isModule0: 1,
  72639. get$upstream: function() {
  72640. return this.upstream;
  72641. },
  72642. get$variables: function() {
  72643. return this.variables;
  72644. },
  72645. get$variableNodes: function() {
  72646. return this.variableNodes;
  72647. },
  72648. get$functions: function(receiver) {
  72649. return this.functions;
  72650. },
  72651. get$mixins: function() {
  72652. return this.mixins;
  72653. },
  72654. get$extender: function() {
  72655. return this.extender;
  72656. },
  72657. get$css: function(receiver) {
  72658. return this.css;
  72659. },
  72660. get$transitivelyContainsCss: function() {
  72661. return this.transitivelyContainsCss;
  72662. },
  72663. get$transitivelyContainsExtensions: function() {
  72664. return this.transitivelyContainsExtensions;
  72665. }
  72666. };
  72667. O._EnvironmentModule__EnvironmentModule_closure11.prototype = {
  72668. call$1: function(module) {
  72669. return module.get$variables();
  72670. },
  72671. $signature: 331
  72672. };
  72673. O._EnvironmentModule__EnvironmentModule_closure12.prototype = {
  72674. call$1: function(module) {
  72675. return module.get$variableNodes();
  72676. },
  72677. $signature: 332
  72678. };
  72679. O._EnvironmentModule__EnvironmentModule_closure13.prototype = {
  72680. call$1: function(module) {
  72681. return module.get$functions(module);
  72682. },
  72683. $signature: 196
  72684. };
  72685. O._EnvironmentModule__EnvironmentModule_closure14.prototype = {
  72686. call$1: function(module) {
  72687. return module.get$mixins();
  72688. },
  72689. $signature: 196
  72690. };
  72691. O._EnvironmentModule__EnvironmentModule_closure15.prototype = {
  72692. call$1: function(module) {
  72693. return module.get$transitivelyContainsCss();
  72694. },
  72695. $signature: 101
  72696. };
  72697. O._EnvironmentModule__EnvironmentModule_closure16.prototype = {
  72698. call$1: function(module) {
  72699. return module.get$transitivelyContainsExtensions();
  72700. },
  72701. $signature: 101
  72702. };
  72703. D.ErrorRule0.prototype = {
  72704. accept$1$1: function(visitor) {
  72705. return visitor.visitErrorRule$1(this);
  72706. },
  72707. accept$1: function(visitor) {
  72708. return this.accept$1$1(visitor, type$.dynamic);
  72709. },
  72710. toString$0: function(_) {
  72711. return "@error " + H.S(this.expression) + ";";
  72712. },
  72713. $isAstNode0: 1,
  72714. $isStatement0: 1,
  72715. get$span: function() {
  72716. return this.span;
  72717. }
  72718. };
  72719. R._EvaluateVisitor1.prototype = {
  72720. _EvaluateVisitor$5$functions$importCache$logger$nodeImporter$sourceMap1: function(functions, importCache, logger, nodeImporter, sourceMap) {
  72721. var t2, cur, _i, metaModule, t3, module, $function, t4, _this = this,
  72722. _s20_ = "$name, $module: null",
  72723. _s9_ = "sass:meta",
  72724. metaFunctions = [Q.BuiltInCallable$function0("global-variable-exists", _s20_, new R._EvaluateVisitor_closure19(_this), _s9_), Q.BuiltInCallable$function0("variable-exists", "$name", new R._EvaluateVisitor_closure20(_this), _s9_), Q.BuiltInCallable$function0("function-exists", _s20_, new R._EvaluateVisitor_closure21(_this), _s9_), Q.BuiltInCallable$function0("mixin-exists", _s20_, new R._EvaluateVisitor_closure22(_this), _s9_), Q.BuiltInCallable$function0("content-exists", "", new R._EvaluateVisitor_closure23(_this), _s9_), Q.BuiltInCallable$function0("module-variables", "$module", new R._EvaluateVisitor_closure24(_this), _s9_), Q.BuiltInCallable$function0("module-functions", "$module", new R._EvaluateVisitor_closure25(_this), _s9_), Q.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new R._EvaluateVisitor_closure26(_this), _s9_), Q.BuiltInCallable$function0("call", "$function, $args...", new R._EvaluateVisitor_closure27(_this), _s9_)],
  72725. t1 = type$.JSArray_legacy_BuiltInCallable_2,
  72726. metaMixins = H.setRuntimeTypeInfo([Q.BuiltInCallable$mixin0("load-css", "$url, $with: null", new R._EvaluateVisitor_closure28(_this), _s9_)], t1);
  72727. t1 = H.setRuntimeTypeInfo([], t1);
  72728. for (t2 = $.$get$global6(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72729. cur = t2.__internal$_current;
  72730. t1.push(cur);
  72731. }
  72732. for (_i = 0; _i < 9; ++_i)
  72733. t1.push(metaFunctions[_i]);
  72734. metaModule = Q.BuiltInModule$0("meta", t1, metaMixins, null, type$.legacy_BuiltInCallable_2);
  72735. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2);
  72736. for (t2 = $.$get$coreModules0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72737. cur = t2.__internal$_current;
  72738. t1.push(cur);
  72739. }
  72740. t1.push(metaModule);
  72741. t2 = t1.length;
  72742. t3 = _this._evaluate0$_builtInModules;
  72743. _i = 0;
  72744. for (; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  72745. module = t1[_i];
  72746. t3.$indexSet(0, module.url, module);
  72747. }
  72748. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Callable_2);
  72749. for (t2 = new H.ListIterator(functions, functions.get$length(functions)); t2.moveNext$0();) {
  72750. cur = t2.__internal$_current;
  72751. t1.push(cur);
  72752. }
  72753. for (t2 = $.$get$globalFunctions0(), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  72754. cur = t2.__internal$_current;
  72755. t1.push(cur);
  72756. }
  72757. for (_i = 0; _i < 9; ++_i)
  72758. t1.push(metaFunctions[_i]);
  72759. for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  72760. $function = t1[_i];
  72761. t4 = $function.get$name($function);
  72762. t4.toString;
  72763. t3.$indexSet(0, H.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  72764. }
  72765. },
  72766. run$2: function(_, importer, node) {
  72767. return this._evaluate0$_withWarnCallback$1$1(new R._EvaluateVisitor_run_closure1(this, node, importer), type$.legacy_EvaluateResult_2);
  72768. },
  72769. _evaluate0$_withWarnCallback$1$1: function(callback, $T) {
  72770. return N.withWarnCallback0(new R._EvaluateVisitor__withWarnCallback_closure1(this), callback, $T._eval$1("0*"));
  72771. },
  72772. _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors: function(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  72773. var t1, _this = this,
  72774. builtInModule = _this._evaluate0$_builtInModules.$index(0, url);
  72775. if (builtInModule != null) {
  72776. if (configuration != null && !configuration.isImplicit) {
  72777. t1 = namesInErrors ? "Built-in module " + H.S(url) + " can't be configured." : "Built-in modules can't be configured.";
  72778. throw H.wrapException(_this._evaluate0$_exception$2(t1, nodeWithSpan.get$span()));
  72779. }
  72780. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__loadModule_closure3(callback, builtInModule));
  72781. return;
  72782. }
  72783. _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new R._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  72784. },
  72785. _evaluate0$_loadModule$5$configuration: function(url, stackFrame, nodeWithSpan, callback, configuration) {
  72786. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  72787. },
  72788. _evaluate0$_loadModule$4: function(url, stackFrame, nodeWithSpan, callback) {
  72789. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  72790. },
  72791. _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan: function(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  72792. var message, existingNode, environment, extender, module, _this = this, t1 = {},
  72793. url = stylesheet.span.file.url,
  72794. t2 = _this._evaluate0$_modules,
  72795. alreadyLoaded = t2.$index(0, url);
  72796. if (alreadyLoaded != null) {
  72797. t1 = configuration == null;
  72798. if (!(t1 ? _this._evaluate0$_configuration : configuration).isImplicit) {
  72799. message = namesInErrors ? H.S($.$get$context().prettyUri$1(url)) + string$.x20was_a : string$.This_mw;
  72800. existingNode = _this._evaluate0$_moduleNodes.$index(0, url);
  72801. t2 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_FileSpan, type$.legacy_String);
  72802. if (existingNode != null)
  72803. t2.$indexSet(0, existingNode.get$span(), "original load");
  72804. if (t1)
  72805. t2.$indexSet(0, _this._evaluate0$_configuration.nodeWithSpan.get$span(), "configuration");
  72806. throw H.wrapException(t2.get$isEmpty(t2) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t2));
  72807. }
  72808. return alreadyLoaded;
  72809. }
  72810. environment = O.Environment$0(_this._evaluate0$_sourceMap);
  72811. t1.css = null;
  72812. extender = F.Extender$0();
  72813. _this._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__execute_closure1(t1, _this, importer, stylesheet, extender, configuration));
  72814. module = O._EnvironmentModule__EnvironmentModule1(environment, t1.css, extender, environment._environment0$_forwardedModules);
  72815. t2.$indexSet(0, url, module);
  72816. _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  72817. return module;
  72818. },
  72819. _evaluate0$_execute$2: function(importer, stylesheet) {
  72820. return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  72821. },
  72822. _evaluate0$_addOutOfOrderImports$0: function() {
  72823. var t1, statements, _this = this;
  72824. if (_this._evaluate0$_outOfOrderImports == null)
  72825. return _this._evaluate0$_root.children;
  72826. t1 = new Array(J.get$length$asx(_this._evaluate0$_root.children._collection$_source) + _this._evaluate0$_outOfOrderImports.length);
  72827. t1.fixed$length = Array;
  72828. statements = new G.FixedLengthListBuilder0(H.setRuntimeTypeInfo(t1, type$.JSArray_legacy_ModifiableCssNode_2), type$.FixedLengthListBuilder_legacy_ModifiableCssNode_2);
  72829. statements.addRange$3(_this._evaluate0$_root.children, 0, _this._evaluate0$_endOfImports);
  72830. statements.addAll$1(0, _this._evaluate0$_outOfOrderImports);
  72831. statements.addRange$2(_this._evaluate0$_root.children, _this._evaluate0$_endOfImports);
  72832. return statements.build$0();
  72833. },
  72834. _evaluate0$_combineCss$2$clone: function(root, clone) {
  72835. var selectors, unsatisfiedExtension, sortedModules, t1, imports, css, cur, t2, statements, index, _this = this;
  72836. if (!C.JSArray_methods.any$1(root.get$upstream(), new R._EvaluateVisitor__combineCss_closure5())) {
  72837. selectors = root.get$extender().get$simpleSelectors();
  72838. unsatisfiedExtension = B.firstOrNull0(root.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__combineCss_closure6(selectors)));
  72839. if (unsatisfiedExtension != null)
  72840. _this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtension);
  72841. return root.get$css(root);
  72842. }
  72843. sortedModules = _this._evaluate0$_topologicalModules$1(root);
  72844. if (clone) {
  72845. t1 = sortedModules.$ti._eval$1("MappedListIterable<ListMixin.E,Module0<Callable0*>*>");
  72846. sortedModules = P.List_List$from(new H.MappedListIterable(sortedModules, new R._EvaluateVisitor__combineCss_closure7(), t1), true, t1._eval$1("ListIterable.E"));
  72847. }
  72848. _this._evaluate0$_extendModules$1(sortedModules);
  72849. t1 = type$.JSArray_legacy_CssNode_2;
  72850. imports = H.setRuntimeTypeInfo([], t1);
  72851. css = H.setRuntimeTypeInfo([], t1);
  72852. for (t1 = J.get$reversed$ax(sortedModules), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  72853. cur = t1.__internal$_current;
  72854. t2 = cur.get$css(cur);
  72855. statements = t2.get$children(t2);
  72856. index = _this._evaluate0$_indexAfterImports$1(statements);
  72857. t2 = J.getInterceptor$ax(statements);
  72858. C.JSArray_methods.addAll$1(imports, t2.getRange$2(statements, 0, index));
  72859. C.JSArray_methods.addAll$1(css, t2.getRange$2(statements, index, t2.get$length(statements)));
  72860. }
  72861. return new V.CssStylesheet0(new P.UnmodifiableListView(C.JSArray_methods.$add(imports, css), type$.UnmodifiableListView_legacy_CssNode_2), root.get$css(root).get$span());
  72862. },
  72863. _evaluate0$_combineCss$1: function(root) {
  72864. return this._evaluate0$_combineCss$2$clone(root, false);
  72865. },
  72866. _evaluate0$_extendModules$1: function(sortedModules) {
  72867. var t1, t2, originalSelectors, extenders, t3, t4, _i,
  72868. downstreamExtenders = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_Uri, type$.legacy_List_legacy_Extender_2),
  72869. unsatisfiedExtensions = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_Extension_2);
  72870. for (t1 = J.get$iterator$ax(sortedModules); t1.moveNext$0();) {
  72871. t2 = t1.get$current(t1);
  72872. originalSelectors = t2.get$extender().get$simpleSelectors().toSet$0(0);
  72873. unsatisfiedExtensions.addAll$1(0, t2.get$extender().extensionsWhereTarget$1(new R._EvaluateVisitor__extendModules_closure3(originalSelectors)));
  72874. extenders = downstreamExtenders.$index(0, t2.get$url());
  72875. if (extenders != null)
  72876. t2.get$extender().addExtensions$1(extenders);
  72877. t3 = t2.get$extender();
  72878. if (t3.get$isEmpty(t3))
  72879. continue;
  72880. for (t3 = t2.get$upstream(), t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, H.throwConcurrentModificationError)(t3), ++_i)
  72881. J.add$1$ax(downstreamExtenders.putIfAbsent$2(t3[_i].get$url(), new R._EvaluateVisitor__extendModules_closure4()), t2.get$extender());
  72882. unsatisfiedExtensions.removeAll$1(t2.get$extender().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  72883. }
  72884. if (unsatisfiedExtensions._collection$_length !== 0)
  72885. this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(unsatisfiedExtensions));
  72886. },
  72887. _evaluate0$_throwForUnsatisfiedExtension$1: function(extension) {
  72888. throw H.wrapException(E.SassException$0(string$.The_ta + H.S(extension.target) + ' !optional" to avoid this error.', extension.span));
  72889. },
  72890. _evaluate0$_topologicalModules$1: function(root) {
  72891. var t1 = type$.legacy_Module_legacy_Callable_2,
  72892. sorted = Q.QueueList$(null, t1);
  72893. new R._EvaluateVisitor__topologicalModules_visitModule1(P.LinkedHashSet_LinkedHashSet$_empty(t1), sorted).call$1(root);
  72894. return sorted;
  72895. },
  72896. _evaluate0$_indexAfterImports$1: function(statements) {
  72897. var t1, t2, t3, lastImport, i, statement;
  72898. for (t1 = J.getInterceptor$asx(statements), t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssImport_2, lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  72899. statement = t1.$index(statements, i);
  72900. if (t3._is(statement))
  72901. lastImport = i;
  72902. else if (!t2._is(statement))
  72903. break;
  72904. }
  72905. return lastImport + 1;
  72906. },
  72907. visitStylesheet$1: function(node) {
  72908. var t1, t2, _i;
  72909. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  72910. t1[_i].accept$1(this);
  72911. return null;
  72912. },
  72913. visitAtRootRule$1: function(node) {
  72914. var root, innerCopy, outerCopy, cur, copy, _this = this, _null = null,
  72915. t1 = node.query,
  72916. query = t1 != null ? _this._evaluate0$_adjustParseError$2(t1, new R._EvaluateVisitor_visitAtRootRule_closure5(_this, _this._evaluate0$_performInterpolation$2$warnForColor(t1, true))) : C.AtRootQuery_UsS0,
  72917. $parent = _this._evaluate0$_parent,
  72918. included = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssParentNode_2);
  72919. for (t1 = type$.legacy_CssStylesheet_2; !t1._is($parent);) {
  72920. if (!query.excludes$1($parent))
  72921. included.push($parent);
  72922. $parent = $parent._node2$_parent;
  72923. }
  72924. root = _this._evaluate0$_trimIncluded$1(included);
  72925. if (root == _this._evaluate0$_parent) {
  72926. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitAtRootRule_closure6(_this, node), node.hasDeclarations, type$.Null);
  72927. return _null;
  72928. }
  72929. innerCopy = included.length === 0 ? _null : C.JSArray_methods.get$first(included).copyWithoutChildren$0();
  72930. for (t1 = H.SubListIterable$(included, 1, _null, type$.legacy_ModifiableCssParentNode_2), t1 = new H.ListIterator(t1, t1.get$length(t1)), outerCopy = innerCopy; t1.moveNext$0(); outerCopy = copy) {
  72931. cur = t1.__internal$_current;
  72932. copy = cur.copyWithoutChildren$0();
  72933. copy.addChild$1(outerCopy);
  72934. }
  72935. if (outerCopy != null)
  72936. root.addChild$1(outerCopy);
  72937. _this._evaluate0$_scopeForAtRoot$4(node, innerCopy == null ? root : innerCopy, query, included).call$1(new R._EvaluateVisitor_visitAtRootRule_closure7(_this, node));
  72938. return _null;
  72939. },
  72940. _evaluate0$_trimIncluded$1: function(nodes) {
  72941. var $parent, innermostContiguous, i, t2, root,
  72942. t1 = nodes.length;
  72943. if (t1 === 0)
  72944. return this._evaluate0$_root;
  72945. $parent = this._evaluate0$_parent;
  72946. for (innermostContiguous = null, i = 0; i < t1; ++i) {
  72947. for (; $parent != nodes[i]; innermostContiguous = null)
  72948. $parent = $parent._node2$_parent;
  72949. if (innermostContiguous == null)
  72950. innermostContiguous = i;
  72951. $parent = $parent._node2$_parent;
  72952. }
  72953. t2 = this._evaluate0$_root;
  72954. if ($parent != t2)
  72955. return t2;
  72956. root = nodes[innermostContiguous];
  72957. C.JSArray_methods.removeRange$2(nodes, innermostContiguous, t1);
  72958. return root;
  72959. },
  72960. _evaluate0$_scopeForAtRoot$4: function(node, newParent, query, included) {
  72961. var _this = this,
  72962. scope = new R._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
  72963. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  72964. if (t1 !== query.include)
  72965. scope = new R._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
  72966. if (_this._evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  72967. scope = new R._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
  72968. if (_this._evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  72969. scope = new R._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
  72970. return _this._evaluate0$_inUnknownAtRule && !C.JSArray_methods.any$1(included, new R._EvaluateVisitor__scopeForAtRoot_closure15()) ? new R._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
  72971. },
  72972. visitContentBlock$1: function(node) {
  72973. return H.throwExpression(P.UnsupportedError$(string$.Evalua));
  72974. },
  72975. visitContentRule$1: function(node) {
  72976. var $content = this._evaluate0$_environment._environment0$_content;
  72977. if ($content == null)
  72978. return null;
  72979. this._evaluate0$_runUserDefinedCallable$4(node.$arguments, $content, node, new R._EvaluateVisitor_visitContentRule_closure1(this, $content));
  72980. return null;
  72981. },
  72982. visitDebugRule$1: function(node) {
  72983. var value = node.expression.accept$1(this),
  72984. t1 = value instanceof D.SassString0 ? value.text : J.toString$0$(value);
  72985. this._evaluate0$_logger.debug$2(0, t1, node.span);
  72986. return null;
  72987. },
  72988. visitDeclaration$1: function(node) {
  72989. var t1, $name, t2, cssValue, t3, oldDeclarationName, _this = this;
  72990. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
  72991. throw H.wrapException(_this._evaluate0$_exception$2(string$.Declarm, node.span));
  72992. t1 = node.name;
  72993. $name = _this._evaluate0$_interpolationToValue$2$warnForColor(t1, true);
  72994. t2 = _this._evaluate0$_declarationName;
  72995. if (t2 != null)
  72996. $name = new F.CssValue0(t2 + "-" + H.S($name.value), $name.span, type$.CssValue_legacy_String_2);
  72997. t2 = node.value;
  72998. cssValue = t2 == null ? null : new F.CssValue0(t2.accept$1(_this), t2.get$span(), type$.CssValue_legacy_Value_2);
  72999. if (cssValue != null) {
  73000. t3 = cssValue.value;
  73001. t3 = !t3.get$isBlank() || t3.get$asList().length === 0;
  73002. } else
  73003. t3 = false;
  73004. if (t3) {
  73005. t3 = _this._evaluate0$_parent;
  73006. t1 = C.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  73007. t2 = _this._evaluate0$_expressionNode$1(t2);
  73008. t2 = t2 == null ? null : t2.get$span();
  73009. t3.addChild$1(L.ModifiableCssDeclaration$0($name, cssValue, node.span, t1, t2));
  73010. } else if (J.startsWith$1$s($name.value, "--") && node.children == null)
  73011. throw H.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", t2.get$span()));
  73012. if (node.children != null) {
  73013. oldDeclarationName = _this._evaluate0$_declarationName;
  73014. _this._evaluate0$_declarationName = $name.value;
  73015. _this._evaluate0$_environment.scope$1$2$when(new R._EvaluateVisitor_visitDeclaration_closure1(_this, node), node.hasDeclarations, type$.Null);
  73016. _this._evaluate0$_declarationName = oldDeclarationName;
  73017. }
  73018. return null;
  73019. },
  73020. visitEachRule$1: function(node) {
  73021. var _this = this,
  73022. t1 = node.list,
  73023. list = t1.accept$1(_this),
  73024. nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
  73025. setVariables = node.variables.length === 1 ? new R._EvaluateVisitor_visitEachRule_closure5(_this, node, nodeWithSpan) : new R._EvaluateVisitor_visitEachRule_closure6(_this, node, nodeWithSpan);
  73026. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitEachRule_closure7(_this, list, setVariables, node), true, type$.legacy_Value_2);
  73027. },
  73028. _evaluate0$_setMultipleVariables$3: function(variables, value, nodeWithSpan) {
  73029. var i,
  73030. list = value.get$asList(),
  73031. t1 = variables.length,
  73032. minLength = Math.min(t1, list.length);
  73033. for (i = 0; i < minLength; ++i)
  73034. this._evaluate0$_environment.setLocalVariable$3(variables[i], list[i].withoutSlash$0(), nodeWithSpan);
  73035. for (i = minLength; i < t1; ++i)
  73036. this._evaluate0$_environment.setLocalVariable$3(variables[i], C.C_SassNull, nodeWithSpan);
  73037. },
  73038. visitErrorRule$1: function(node) {
  73039. throw H.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  73040. },
  73041. visitExtendRule$1: function(node) {
  73042. var targetText, t1, t2, t3, _i, t4, _this = this;
  73043. if (!(_this._evaluate0$_styleRule != null && !_this._evaluate0$_atRootExcludingStyleRule) || _this._evaluate0$_declarationName != null)
  73044. throw H.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span));
  73045. targetText = _this._evaluate0$_interpolationToValue$2$warnForColor(node.selector, true);
  73046. for (t1 = _this._evaluate0$_adjustParseError$2(targetText, new R._EvaluateVisitor_visitExtendRule_closure1(_this, targetText)).components, t2 = t1.length, t3 = type$.legacy_CompoundSelector_2, _i = 0; _i < t2; ++_i) {
  73047. t4 = t1[_i].components;
  73048. if (t4.length !== 1 || !(C.JSArray_methods.get$first(t4) instanceof X.CompoundSelector0))
  73049. throw H.wrapException(E.SassFormatException$0("complex selectors may not be extended.", targetText.span));
  73050. t4 = t3._as(C.JSArray_methods.get$first(t4)).components;
  73051. if (t4.length !== 1)
  73052. throw H.wrapException(E.SassFormatException$0(string$.compou + C.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, targetText.span));
  73053. _this._evaluate0$_extender.addExtension$4(_this._evaluate0$_styleRule.selector, C.JSArray_methods.get$first(t4), node, _this._evaluate0$_mediaQueries);
  73054. }
  73055. return null;
  73056. },
  73057. visitAtRule$1: function(node) {
  73058. var $name, t1, value, wasInKeyframes, wasInUnknownAtRule, _this = this;
  73059. if (_this._evaluate0$_declarationName != null)
  73060. throw H.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  73061. $name = _this._evaluate0$_interpolationToValue$1(node.name);
  73062. t1 = node.value;
  73063. value = t1 == null ? null : _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t1, true, true);
  73064. if (node.children == null) {
  73065. _this._evaluate0$_parent.addChild$1(U.ModifiableCssAtRule$0($name, node.span, true, value));
  73066. return null;
  73067. }
  73068. wasInKeyframes = _this._evaluate0$_inKeyframes;
  73069. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  73070. if (B.unvendor0($name.value) === "keyframes")
  73071. _this._evaluate0$_inKeyframes = true;
  73072. else
  73073. _this._evaluate0$_inUnknownAtRule = true;
  73074. _this._evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$0($name, node.span, false, value), new R._EvaluateVisitor_visitAtRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitAtRule_closure4(), type$.legacy_ModifiableCssAtRule_2, type$.Null);
  73075. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  73076. _this._evaluate0$_inKeyframes = wasInKeyframes;
  73077. return null;
  73078. },
  73079. visitForRule$1: function(node) {
  73080. var _this = this, t1 = {},
  73081. t2 = node.from,
  73082. fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure9(_this, node)),
  73083. t3 = node.to,
  73084. toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure10(_this, node)),
  73085. from = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitForRule_closure11(fromNumber, toNumber)),
  73086. to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new R._EvaluateVisitor_visitForRule_closure12(toNumber)),
  73087. direction = from > to ? -1 : 1;
  73088. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  73089. return null;
  73090. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new R._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction), true, type$.legacy_Value_2);
  73091. },
  73092. visitForwardRule$1: function(node) {
  73093. var newConfiguration, t4, _i, variable, _this = this,
  73094. _s8_ = "@forward",
  73095. oldConfiguration = _this._evaluate0$_configuration,
  73096. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  73097. t1 = node.configuration,
  73098. t2 = t1.length,
  73099. t3 = node.url;
  73100. if (t2 !== 0) {
  73101. newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
  73102. _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
  73103. t3 = type$.legacy_String;
  73104. t4 = P.LinkedHashSet_LinkedHashSet(t3);
  73105. for (_i = 0; _i < t2; ++_i) {
  73106. variable = t1[_i];
  73107. if (!variable.isGuarded)
  73108. t4.add$1(0, variable.name);
  73109. }
  73110. _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  73111. t3 = P.LinkedHashSet_LinkedHashSet(t3);
  73112. for (_i = 0; _i < t2; ++_i)
  73113. t3.add$1(0, t1[_i].name);
  73114. _this._evaluate0$_assertConfigurationIsEmpty$2$only(newConfiguration, t3);
  73115. } else {
  73116. _this._evaluate0$_configuration = adjustedConfiguration;
  73117. _this._evaluate0$_loadModule$4(t3, _s8_, node, new R._EvaluateVisitor_visitForwardRule_closure4(_this, node));
  73118. _this._evaluate0$_configuration = oldConfiguration;
  73119. }
  73120. return null;
  73121. },
  73122. _evaluate0$_addForwardConfiguration$2: function(configuration, node) {
  73123. var t2, t3, _i, variable, t4, t5,
  73124. t1 = configuration._configuration$_values,
  73125. newValues = P.LinkedHashMap_LinkedHashMap$of(new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2), type$.legacy_String, type$.legacy_ConfiguredValue_2);
  73126. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  73127. variable = t2[_i];
  73128. if (variable.isGuarded) {
  73129. t4 = variable.name;
  73130. t5 = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t4);
  73131. if (t5 != null && !J.$eq$(t5.value, C.C_SassNull)) {
  73132. newValues.$indexSet(0, t4, t5);
  73133. continue;
  73134. }
  73135. }
  73136. t4 = variable.name;
  73137. t5 = variable.expression;
  73138. newValues.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(this).withoutSlash$0(), variable.span, this._evaluate0$_expressionNode$1(t5)));
  73139. }
  73140. return new A.Configuration0(newValues, node, false);
  73141. },
  73142. _evaluate0$_removeUsedConfiguration$3$except: function(upstream, downstream, except) {
  73143. var t1, t2, t3, t4, _i, $name;
  73144. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i) {
  73145. $name = t2[_i];
  73146. if (except.contains$1(0, $name))
  73147. continue;
  73148. if (!t4.containsKey$1($name))
  73149. if (!t1.get$isEmpty(t1))
  73150. t1.remove$1(0, $name);
  73151. }
  73152. },
  73153. _evaluate0$_assertConfigurationIsEmpty$3$nameInError$only: function(configuration, nameInError, only) {
  73154. configuration._configuration$_values.forEach$1(0, new R._EvaluateVisitor__assertConfigurationIsEmpty_closure1(this, only, nameInError));
  73155. },
  73156. _evaluate0$_assertConfigurationIsEmpty$2$nameInError: function(configuration, nameInError) {
  73157. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, nameInError, null);
  73158. },
  73159. _evaluate0$_assertConfigurationIsEmpty$1: function(configuration) {
  73160. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, null);
  73161. },
  73162. _evaluate0$_assertConfigurationIsEmpty$2$only: function(configuration, only) {
  73163. return this._evaluate0$_assertConfigurationIsEmpty$3$nameInError$only(configuration, false, only);
  73164. },
  73165. visitFunctionRule$1: function(node) {
  73166. var t1 = this._evaluate0$_environment,
  73167. t2 = t1.closure$0(),
  73168. t3 = t1._environment0$_functions,
  73169. index = t3.length - 1,
  73170. t4 = node.name;
  73171. t1._environment0$_functionIndices.$indexSet(0, t4, index);
  73172. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_Environment_2));
  73173. return null;
  73174. },
  73175. visitIfRule$1: function(node) {
  73176. var t1, t2, _i, clauseToCheck, _box_0 = {};
  73177. _box_0.clause = node.lastClause;
  73178. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  73179. clauseToCheck = t1[_i];
  73180. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  73181. _box_0.clause = clauseToCheck;
  73182. break;
  73183. }
  73184. }
  73185. t1 = _box_0.clause;
  73186. if (t1 == null)
  73187. return null;
  73188. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitIfRule_closure1(_box_0, this), true, t1.hasDeclarations, type$.legacy_Value_2);
  73189. },
  73190. visitImportRule$1: function(node) {
  73191. var t1, t2, t3, t4, t5, t6, _i, $import, t7, result, supports, t8, t9, resolvedSupports, mediaQuery, t10, result0, _this = this, _null = null;
  73192. for (t1 = node.imports, t2 = t1.length, t3 = type$.legacy_CssMediaQuery_2, t4 = type$.CssValue_legacy_String_2, t5 = type$.legacy_StaticImport_2, t6 = type$.JSArray_legacy_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
  73193. $import = t1[_i];
  73194. if ($import instanceof B.DynamicImport0)
  73195. _this._evaluate0$_visitDynamicImport$1($import);
  73196. else {
  73197. t5._as($import);
  73198. t7 = $import.url;
  73199. result = _this._evaluate0$_performInterpolation$2$warnForColor(t7, false);
  73200. supports = $import.supports;
  73201. if (supports instanceof L.SupportsDeclaration0) {
  73202. t8 = supports.name;
  73203. t8 = H.S(_this._evaluate0$_serialize$3$quote(t8.accept$1(_this), t8, true)) + ": ";
  73204. t9 = supports.value;
  73205. resolvedSupports = t8 + H.S(_this._evaluate0$_serialize$3$quote(t9.accept$1(_this), t9, true));
  73206. } else
  73207. resolvedSupports = supports == null ? _null : _this._evaluate0$_visitSupportsCondition$1(supports);
  73208. t8 = $import.media;
  73209. mediaQuery = t8 == null ? _null : _this._evaluate0$_visitMediaQueries$1(t8);
  73210. t8 = $import.span;
  73211. t9 = resolvedSupports == null ? _null : new F.CssValue0("supports(" + resolvedSupports + ")", supports.get$span(), t4);
  73212. if (mediaQuery == null)
  73213. t10 = _null;
  73214. else {
  73215. result0 = P.List_List$from(mediaQuery, false, t3);
  73216. result0.fixed$length = Array;
  73217. result0.immutable$list = Array;
  73218. t10 = result0;
  73219. }
  73220. node = new F.ModifiableCssImport0(new F.CssValue0(result, t7.span, t4), t9, t10, t8);
  73221. t7 = _this._evaluate0$_parent;
  73222. t8 = _this._evaluate0$_root;
  73223. if (t7 != t8)
  73224. t7.addChild$1(node);
  73225. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t8.children._collection$_source)) {
  73226. t7 = _this._evaluate0$_root;
  73227. t7.toString;
  73228. node._node2$_parent = t7;
  73229. t7 = t7._node2$_children;
  73230. node._node2$_indexInParent = t7.length;
  73231. t7.push(node);
  73232. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  73233. } else {
  73234. t7 = _this._evaluate0$_outOfOrderImports;
  73235. (t7 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], t6) : t7).push(node);
  73236. }
  73237. }
  73238. }
  73239. return _null;
  73240. },
  73241. _evaluate0$_visitDynamicImport$1: function($import) {
  73242. return this._evaluate0$_withStackFrame$3("@import", $import, new R._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
  73243. },
  73244. _evaluate0$_loadStylesheet$4$baseUrl$forImport: function(url, span, baseUrl, forImport) {
  73245. var stylesheet, tuple, error, error0, message, t1, t2, t3, exception, message0, _this = this;
  73246. try {
  73247. _this._evaluate0$_importSpan = span;
  73248. if (_this._nodeImporter != null) {
  73249. stylesheet = _this._importLikeNode$2(url, forImport);
  73250. if (stylesheet != null)
  73251. return new S.Tuple2(null, stylesheet, type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2);
  73252. } else {
  73253. t1 = P.Uri_parse(url);
  73254. t2 = _this._evaluate0$_importer;
  73255. if (baseUrl == null) {
  73256. t3 = _this._evaluate0$_stylesheet;
  73257. t3 = t3 == null ? null : t3.span;
  73258. t3 = t3 == null ? null : t3.file.url;
  73259. } else
  73260. t3 = baseUrl;
  73261. tuple = _this._evaluate0$_importCache.import$4$baseImporter$baseUrl$forImport(t1, t2, t3, forImport);
  73262. if (tuple != null)
  73263. return tuple;
  73264. }
  73265. if (C.JSString_methods.startsWith$1(url, "package:") && true)
  73266. throw H.wrapException(string$.x22packa);
  73267. else
  73268. throw H.wrapException("Can't find stylesheet to import.");
  73269. } catch (exception) {
  73270. t1 = H.unwrapException(exception);
  73271. if (t1 instanceof E.SassException0) {
  73272. error = t1;
  73273. t1 = _this._evaluate0$_exception$2(error._span_exception$_message, error.get$span());
  73274. throw H.wrapException(t1);
  73275. } else {
  73276. error0 = t1;
  73277. message = null;
  73278. try {
  73279. message = H._asStringS(J.get$message$x(error0));
  73280. } catch (exception) {
  73281. H.unwrapException(exception);
  73282. message0 = J.toString$0$(error0);
  73283. message = message0;
  73284. }
  73285. t1 = _this._evaluate0$_exception$1(message);
  73286. throw H.wrapException(t1);
  73287. }
  73288. } finally {
  73289. _this._evaluate0$_importSpan = null;
  73290. }
  73291. },
  73292. _evaluate0$_loadStylesheet$3$baseUrl: function(url, span, baseUrl) {
  73293. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  73294. },
  73295. _evaluate0$_loadStylesheet$3$forImport: function(url, span, forImport) {
  73296. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  73297. },
  73298. _importLikeNode$2: function(originalUrl, forImport) {
  73299. var contents, url, _this = this,
  73300. t1 = _this._evaluate0$_stylesheet.span,
  73301. result = _this._nodeImporter.load$3(0, originalUrl, t1.file.url, forImport);
  73302. if (result == null)
  73303. return null;
  73304. contents = result.item1;
  73305. url = result.item2;
  73306. t1 = J.getInterceptor$s(url).startsWith$1(url, "file:") ? $.$get$context().style.pathFromUri$1(M._parseUri(url)) : url;
  73307. _this._includedFiles.add$1(0, t1);
  73308. t1 = C.JSString_methods.startsWith$1(url, "file") ? M.Syntax_forPath0(url) : C.Syntax_SCSS0;
  73309. return V.Stylesheet_Stylesheet$parse0(contents, t1, _this._evaluate0$_logger, url);
  73310. },
  73311. visitIncludeRule$1: function(node) {
  73312. var nodeWithSpan, t1, t2, contentCallable, _this = this,
  73313. _s37_ = "Mixin doesn't accept a content block.",
  73314. mixin = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
  73315. if (mixin == null)
  73316. throw H.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", node.span));
  73317. nodeWithSpan = new B._FakeAstNode0(new R._EvaluateVisitor_visitIncludeRule_closure6(node));
  73318. if (mixin instanceof Q.BuiltInCallable0) {
  73319. if (node.content != null)
  73320. throw H.wrapException(_this._evaluate0$_exception$2(_s37_, node.span));
  73321. _this._evaluate0$_runBuiltInCallable$3(node.$arguments, mixin, nodeWithSpan);
  73322. } else if (type$.legacy_UserDefinedCallable_legacy_Environment_2._is(mixin)) {
  73323. t1 = node.content;
  73324. t2 = t1 == null;
  73325. if (!t2 && !type$.legacy_MixinRule_2._as(mixin.declaration).hasContent)
  73326. throw H.wrapException(E.MultiSpanSassRuntimeException$0(_s37_, node.get$spanWithoutContent(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate0$_stackTrace$1(node.get$spanWithoutContent())));
  73327. contentCallable = t2 ? null : new E.UserDefinedCallable0(t1, _this._evaluate0$_environment.closure$0(), type$.UserDefinedCallable_legacy_Environment_2);
  73328. _this._evaluate0$_runUserDefinedCallable$4(node.$arguments, mixin, nodeWithSpan, new R._EvaluateVisitor_visitIncludeRule_closure7(_this, contentCallable, mixin, nodeWithSpan));
  73329. } else
  73330. throw H.wrapException(P.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  73331. return null;
  73332. },
  73333. visitMixinRule$1: function(node) {
  73334. var t1 = this._evaluate0$_environment,
  73335. t2 = t1.closure$0(),
  73336. t3 = t1._environment0$_mixins,
  73337. index = t3.length - 1,
  73338. t4 = node.name;
  73339. t1._environment0$_mixinIndices.$indexSet(0, t4, index);
  73340. J.$indexSet$ax(t3[index], t4, new E.UserDefinedCallable0(node, t2, type$.UserDefinedCallable_legacy_Environment_2));
  73341. return null;
  73342. },
  73343. visitLoudComment$1: function(node) {
  73344. var t1, t2, _this = this;
  73345. if (_this._evaluate0$_inFunction)
  73346. return null;
  73347. t1 = _this._evaluate0$_parent;
  73348. t2 = _this._evaluate0$_root;
  73349. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  73350. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  73351. t1 = node.text;
  73352. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
  73353. return null;
  73354. },
  73355. visitMediaRule$1: function(node) {
  73356. var queries, t1, mergedQueries, _this = this;
  73357. if (_this._evaluate0$_declarationName != null)
  73358. throw H.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  73359. queries = _this._evaluate0$_visitMediaQueries$1(node.query);
  73360. t1 = _this._evaluate0$_mediaQueries;
  73361. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, queries);
  73362. t1 = mergedQueries == null;
  73363. if (!t1 && mergedQueries.length === 0)
  73364. return null;
  73365. t1 = t1 ? queries : mergedQueries;
  73366. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitMediaRule_closure3(_this, mergedQueries, queries, node), node.hasDeclarations, new R._EvaluateVisitor_visitMediaRule_closure4(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null);
  73367. return null;
  73368. },
  73369. _evaluate0$_visitMediaQueries$1: function(interpolation) {
  73370. return this._evaluate0$_adjustParseError$2(interpolation, new R._EvaluateVisitor__visitMediaQueries_closure1(this, this._evaluate0$_performInterpolation$2$warnForColor(interpolation, true)));
  73371. },
  73372. _evaluate0$_mergeMediaQueries$2: function(queries1, queries2) {
  73373. var t1, t2, t3, t4, t5, result,
  73374. queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2);
  73375. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2), t3 = type$.legacy_MediaQuerySuccessfulMergeResult_2; t1.moveNext$0();) {
  73376. t4 = t1.get$current(t1);
  73377. for (t5 = t2.get$iterator(queries2); t5.moveNext$0();) {
  73378. result = t4.merge$1(t5.get$current(t5));
  73379. if (result === C._SingletonCssMediaQueryMergeResult_empty0)
  73380. continue;
  73381. if (result === C._SingletonCssMediaQueryMergeResult_unrepresentable0)
  73382. return null;
  73383. queries.push(t3._as(result).query);
  73384. }
  73385. }
  73386. return queries;
  73387. },
  73388. visitReturnRule$1: function(node) {
  73389. return node.expression.accept$1(this);
  73390. },
  73391. visitSilentComment$1: function(node) {
  73392. return null;
  73393. },
  73394. visitStyleRule$1: function(node) {
  73395. var t2, selectorText, parsedSelector, rule, oldAtRootExcludingStyleRule, _this = this, t1 = {};
  73396. if (_this._evaluate0$_declarationName != null)
  73397. throw H.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  73398. t2 = node.selector;
  73399. selectorText = _this._evaluate0$_interpolationToValue$3$trim$warnForColor(t2, true, true);
  73400. if (_this._evaluate0$_inKeyframes) {
  73401. _this._evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$0(new F.CssValue0(P.List_List$unmodifiable(_this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure13(_this, selectorText)), type$.legacy_String), t2.span, type$.CssValue_legacy_List_legacy_String_2), node.span), new R._EvaluateVisitor_visitStyleRule_closure14(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure15(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null);
  73402. return null;
  73403. }
  73404. t1.parsedSelector = _this._evaluate0$_adjustParseError$2(t2, new R._EvaluateVisitor_visitStyleRule_closure16(_this, selectorText));
  73405. parsedSelector = _this._evaluate0$_addExceptionSpan$2(t2, new R._EvaluateVisitor_visitStyleRule_closure17(t1, _this));
  73406. t1.parsedSelector = parsedSelector;
  73407. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(parsedSelector, t2.span, _this._evaluate0$_mediaQueries), node.span, t1.parsedSelector);
  73408. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  73409. _this._evaluate0$_atRootExcludingStyleRule = false;
  73410. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitStyleRule_closure18(_this, rule, node), node.hasDeclarations, new R._EvaluateVisitor_visitStyleRule_closure19(), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73411. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73412. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  73413. t1 = _this._evaluate0$_parent.children;
  73414. t1 = !t1.get$isEmpty(t1);
  73415. } else
  73416. t1 = false;
  73417. if (t1) {
  73418. t1 = _this._evaluate0$_parent.children;
  73419. t1.get$last(t1).isGroupEnd = true;
  73420. }
  73421. return null;
  73422. },
  73423. visitSupportsRule$1: function(node) {
  73424. var t1, _this = this;
  73425. if (_this._evaluate0$_declarationName != null)
  73426. throw H.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  73427. t1 = node.condition;
  73428. _this._evaluate0$_withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$0(new F.CssValue0(_this._evaluate0$_visitSupportsCondition$1(t1), t1.get$span(), type$.CssValue_legacy_String_2), node.span), new R._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new R._EvaluateVisitor_visitSupportsRule_closure4(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null);
  73429. return null;
  73430. },
  73431. _evaluate0$_visitSupportsCondition$1: function(condition) {
  73432. var t1, t2, _this = this;
  73433. if (condition instanceof U.SupportsOperation0) {
  73434. t1 = condition.left;
  73435. t2 = condition.operator;
  73436. return H.S(_this._evaluate0$_parenthesize$2(t1, t2)) + " " + t2 + " " + H.S(_this._evaluate0$_parenthesize$2(condition.right, t2));
  73437. } else if (condition instanceof M.SupportsNegation0)
  73438. return "not " + H.S(_this._evaluate0$_parenthesize$1(condition.condition));
  73439. else if (condition instanceof X.SupportsInterpolation0) {
  73440. t1 = condition.expression;
  73441. return _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
  73442. } else if (condition instanceof L.SupportsDeclaration0) {
  73443. t1 = condition.name;
  73444. t1 = "(" + H.S(_this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, true)) + ": ";
  73445. t2 = condition.value;
  73446. return t1 + H.S(_this._evaluate0$_serialize$3$quote(t2.accept$1(_this), t2, true)) + ")";
  73447. } else if (condition instanceof F.SupportsFunction0)
  73448. return _this._evaluate0$_performInterpolation$1(condition.name) + "(" + _this._evaluate0$_performInterpolation$1(condition.$arguments) + ")";
  73449. else if (condition instanceof Y.SupportsAnything0)
  73450. return "(" + _this._evaluate0$_performInterpolation$1(condition.contents) + ")";
  73451. else
  73452. return null;
  73453. },
  73454. _evaluate0$_parenthesize$2: function(condition, operator) {
  73455. var t1;
  73456. if (!(condition instanceof M.SupportsNegation0))
  73457. if (condition instanceof U.SupportsOperation0)
  73458. t1 = operator == null || operator !== condition.operator;
  73459. else
  73460. t1 = false;
  73461. else
  73462. t1 = true;
  73463. if (t1)
  73464. return "(" + H.S(this._evaluate0$_visitSupportsCondition$1(condition)) + ")";
  73465. else
  73466. return this._evaluate0$_visitSupportsCondition$1(condition);
  73467. },
  73468. _evaluate0$_parenthesize$1: function(condition) {
  73469. return this._evaluate0$_parenthesize$2(condition, null);
  73470. },
  73471. visitVariableDeclaration$1: function(node) {
  73472. var t1, value, t2, _this = this, _null = null;
  73473. if (node.isGuarded) {
  73474. if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
  73475. t1 = _this._evaluate0$_configuration._configuration$_values;
  73476. t1 = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, node.name);
  73477. if (t1 != null) {
  73478. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure5(_this, node, t1));
  73479. return _null;
  73480. }
  73481. }
  73482. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
  73483. if (value != null && !value.$eq(0, C.C_SassNull))
  73484. return _null;
  73485. }
  73486. if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
  73487. t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_C + B.declarationName0(node.span) + ": null` at the root of the\nstylesheet.";
  73488. t2 = node.span;
  73489. _this._evaluate0$_logger.warn$4$deprecation$span$trace(0, t1, true, t2, _this._evaluate0$_stackTrace$1(t2));
  73490. }
  73491. _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, node.expression.accept$1(_this).withoutSlash$0()));
  73492. return _null;
  73493. },
  73494. visitUseRule$1: function(node) {
  73495. var configuration, t3, _i, variable, t4, t5, _this = this,
  73496. t1 = node.configuration,
  73497. t2 = t1.length;
  73498. if (t2 === 0)
  73499. configuration = C.Configuration_Map_empty_null_true0;
  73500. else {
  73501. t3 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  73502. for (_i = 0; _i < t2; ++_i) {
  73503. variable = t1[_i];
  73504. t4 = variable.name;
  73505. t5 = variable.expression;
  73506. t3.$indexSet(0, t4, new Z.ConfiguredValue0(t5.accept$1(_this).withoutSlash$0(), variable.span, _this._evaluate0$_expressionNode$1(t5)));
  73507. }
  73508. configuration = new A.Configuration0(t3, node, false);
  73509. }
  73510. _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new R._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
  73511. _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
  73512. return null;
  73513. },
  73514. visitWarnRule$1: function(node) {
  73515. var _this = this,
  73516. value = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
  73517. t1 = value instanceof D.SassString0 ? value.text : _this._evaluate0$_serialize$2(value, node.expression);
  73518. _this._evaluate0$_logger.warn$2$trace(0, t1, _this._evaluate0$_stackTrace$1(node.span));
  73519. return null;
  73520. },
  73521. visitWhileRule$1: function(node) {
  73522. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new R._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.legacy_Value_2);
  73523. },
  73524. visitBinaryOperationExpression$1: function(node) {
  73525. return this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitBinaryOperationExpression_closure1(this, node));
  73526. },
  73527. visitValueExpression$1: function(node) {
  73528. return node.value;
  73529. },
  73530. visitVariableExpression$1: function(node) {
  73531. var result = this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitVariableExpression_closure1(this, node));
  73532. if (result != null)
  73533. return result;
  73534. throw H.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
  73535. },
  73536. visitUnaryOperationExpression$1: function(node) {
  73537. var operand = node.operand.accept$1(this),
  73538. t1 = node.operator;
  73539. switch (t1) {
  73540. case C.UnaryOperator_j2w0:
  73541. return operand.unaryPlus$0();
  73542. case C.UnaryOperator_U4G0:
  73543. return operand.unaryMinus$0();
  73544. case C.UnaryOperator_zDx0:
  73545. operand.toString;
  73546. return new D.SassString0("/" + N.serializeValue(operand, false, true), false);
  73547. case C.UnaryOperator_not_not0:
  73548. return operand.unaryNot$0();
  73549. default:
  73550. throw H.wrapException(P.StateError$("Unknown unary operator " + H.S(t1) + "."));
  73551. }
  73552. },
  73553. visitBooleanExpression$1: function(node) {
  73554. return node.value ? C.SassBoolean_true : C.SassBoolean_false;
  73555. },
  73556. visitIfExpression$1: function(node) {
  73557. var condition, ifTrue, ifFalse, _this = this,
  73558. pair = _this._evaluate0$_evaluateMacroArguments$1(node),
  73559. positional = pair.item1,
  73560. named = pair.item2,
  73561. t1 = J.getInterceptor$asx(positional);
  73562. _this._evaluate0$_verifyArguments$4(t1.get$length(positional), named, $.$get$IfExpression_declaration0(), node);
  73563. condition = t1.get$length(positional) > 0 ? t1.$index(positional, 0) : named.$index(0, "condition");
  73564. ifTrue = t1.get$length(positional) > 1 ? t1.$index(positional, 1) : named.$index(0, "if-true");
  73565. ifFalse = t1.get$length(positional) > 2 ? t1.$index(positional, 2) : named.$index(0, "if-false");
  73566. return (condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse).accept$1(_this);
  73567. },
  73568. visitNullExpression$1: function(node) {
  73569. return C.C_SassNull;
  73570. },
  73571. visitNumberExpression$1: function(node) {
  73572. return T.SassNumber$0(node.value, node.unit);
  73573. },
  73574. visitParenthesizedExpression$1: function(node) {
  73575. return node.expression.accept$1(this);
  73576. },
  73577. visitColorExpression$1: function(node) {
  73578. return node.value;
  73579. },
  73580. visitListExpression$1: function(node) {
  73581. var t1 = node.contents;
  73582. return D.SassList$0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitListExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), node.separator, node.hasBrackets);
  73583. },
  73584. visitMapExpression$1: function(node) {
  73585. var t2, t3, _i, pair, t4, keyValue, valueValue,
  73586. t1 = type$.legacy_Value_2,
  73587. map = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  73588. keyNodes = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_AstNode_2);
  73589. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  73590. pair = t2[_i];
  73591. t4 = pair.item1;
  73592. keyValue = t4.accept$1(this);
  73593. valueValue = pair.item2.accept$1(this);
  73594. if (map.containsKey$1(keyValue))
  73595. throw H.wrapException(E.MultiSpanSassRuntimeException$0("Duplicate key.", t4.get$span(), "second key", P.LinkedHashMap_LinkedHashMap$_literal([keyNodes.$index(0, keyValue).get$span(), "first key"], type$.legacy_FileSpan, type$.legacy_String), this._evaluate0$_stackTrace$1(t4.get$span())));
  73596. map.$indexSet(0, keyValue, valueValue);
  73597. keyNodes.$indexSet(0, keyValue, t4);
  73598. }
  73599. return new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  73600. },
  73601. visitFunctionExpression$1: function(node) {
  73602. var oldInFunction, result, _this = this, t1 = {},
  73603. t2 = node.name,
  73604. plainName = t2.get$asPlain();
  73605. t1.$function = null;
  73606. if ((plainName != null ? t1.$function = _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure3(_this, node, plainName)) : null) == null) {
  73607. if (node.namespace != null)
  73608. throw H.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
  73609. t1.$function = new L.PlainCssCallable0(_this._evaluate0$_performInterpolation$1(t2));
  73610. }
  73611. oldInFunction = _this._evaluate0$_inFunction;
  73612. _this._evaluate0$_inFunction = true;
  73613. result = _this._evaluate0$_addErrorSpan$2(node, new R._EvaluateVisitor_visitFunctionExpression_closure4(t1, _this, node));
  73614. _this._evaluate0$_inFunction = oldInFunction;
  73615. return result;
  73616. },
  73617. _evaluate0$_getFunction$2$namespace: function($name, namespace) {
  73618. var local = this._evaluate0$_environment.getFunction$2$namespace($name, namespace);
  73619. if (local != null || namespace != null)
  73620. return local;
  73621. return this._evaluate0$_builtInFunctions.$index(0, $name);
  73622. },
  73623. _evaluate0$_runUserDefinedCallable$4: function($arguments, callable, nodeWithSpan, run) {
  73624. var evaluated = this._evaluate0$_evaluateArguments$1($arguments),
  73625. t1 = callable.declaration.name,
  73626. $name = t1 == null ? "@content" : t1 + "()";
  73627. return this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new R._EvaluateVisitor__runUserDefinedCallable_closure1(this, callable, evaluated, nodeWithSpan, run));
  73628. },
  73629. _evaluate0$_runFunctionCallable$3: function($arguments, callable, nodeWithSpan) {
  73630. var result, t1, t2, t3, first, _i, argument, rest, _this = this;
  73631. if (callable instanceof Q.BuiltInCallable0) {
  73632. result = _this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan);
  73633. if (result == null)
  73634. throw H.wrapException(_this._evaluate0$_exception$2(string$.Custom, nodeWithSpan.get$span()));
  73635. return result.withoutSlash$0();
  73636. } else if (type$.legacy_UserDefinedCallable_legacy_Environment_2._is(callable))
  73637. return _this._evaluate0$_runUserDefinedCallable$4($arguments, callable, nodeWithSpan, new R._EvaluateVisitor__runFunctionCallable_closure1(_this, callable)).withoutSlash$0();
  73638. else if (callable instanceof L.PlainCssCallable0) {
  73639. t1 = $arguments.named;
  73640. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  73641. throw H.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span()));
  73642. t1 = H.S(callable.name) + "(";
  73643. for (t2 = $arguments.positional, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i) {
  73644. argument = t2[_i];
  73645. if (first)
  73646. first = false;
  73647. else
  73648. t1 += ", ";
  73649. t1 += H.S(_this._evaluate0$_serialize$3$quote(argument.accept$1(_this), argument, true));
  73650. }
  73651. t2 = $arguments.rest;
  73652. rest = t2 == null ? null : t2.accept$1(_this);
  73653. if (rest != null) {
  73654. if (!first)
  73655. t1 += ", ";
  73656. t2 = t1 + H.S(_this._evaluate0$_serialize$2(rest, t2));
  73657. t1 = t2;
  73658. }
  73659. t1 += H.Primitives_stringFromCharCode(41);
  73660. return new D.SassString0(t1.charCodeAt(0) == 0 ? t1 : t1, false);
  73661. } else
  73662. return null;
  73663. },
  73664. _evaluate0$_runBuiltInCallable$3: function($arguments, callable, nodeWithSpan) {
  73665. var callback, result, error, error0, error1, message, namedSet, tuple, overload, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this,
  73666. evaluated = _this._evaluate0$_evaluateArguments$2$trackSpans($arguments, false),
  73667. oldCallableNode = _this._evaluate0$_callableNode;
  73668. _this._evaluate0$_callableNode = nodeWithSpan;
  73669. namedSet = new M.MapKeySet(evaluated.named, type$.MapKeySet_legacy_String);
  73670. tuple = callable.callbackFor$2(evaluated.positional.length, namedSet);
  73671. overload = tuple.item1;
  73672. callback = tuple.item2;
  73673. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__runBuiltInCallable_closure3(overload, evaluated, namedSet));
  73674. declaredArguments = overload.$arguments;
  73675. for (i = evaluated.positional.length, t1 = declaredArguments.length; i < t1; ++i) {
  73676. argument = declaredArguments[i];
  73677. t2 = evaluated.positional;
  73678. t3 = evaluated.named.remove$1(0, argument.name);
  73679. if (t3 == null) {
  73680. t3 = argument.defaultValue;
  73681. t3 = t3 == null ? null : t3.accept$1(_this);
  73682. }
  73683. t2.push(t3);
  73684. }
  73685. if (overload.restArgument != null) {
  73686. if (evaluated.positional.length > t1) {
  73687. rest = C.JSArray_methods.sublist$1(evaluated.positional, t1);
  73688. C.JSArray_methods.removeRange$2(evaluated.positional, t1, evaluated.positional.length);
  73689. } else
  73690. rest = C.List_empty16;
  73691. t1 = evaluated.named;
  73692. argumentList = D.SassArgumentList$0(rest, t1, evaluated.separator === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : evaluated.separator);
  73693. evaluated.positional.push(argumentList);
  73694. } else
  73695. argumentList = null;
  73696. result = null;
  73697. try {
  73698. result = callback.call$1(evaluated.positional);
  73699. } catch (exception) {
  73700. t1 = H.unwrapException(exception);
  73701. if (type$.legacy_SassRuntimeException_2._is(t1))
  73702. throw exception;
  73703. else if (t1 instanceof E.MultiSpanSassScriptException0) {
  73704. error = t1;
  73705. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  73706. } else if (t1 instanceof E.MultiSpanSassException0) {
  73707. error0 = t1;
  73708. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error0._span_exception$_message, error0.get$span(), error0.primaryLabel, error0.secondarySpans, _this._evaluate0$_stackTrace$1(error0.get$span())));
  73709. } else {
  73710. error1 = t1;
  73711. message = null;
  73712. try {
  73713. message = H._asStringS(J.get$message$x(error1));
  73714. } catch (exception) {
  73715. H.unwrapException(exception);
  73716. message0 = J.toString$0$(error1);
  73717. message = message0;
  73718. }
  73719. throw H.wrapException(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span()));
  73720. }
  73721. }
  73722. _this._evaluate0$_callableNode = oldCallableNode;
  73723. if (argumentList == null)
  73724. return result;
  73725. t1 = evaluated.named;
  73726. if (t1.get$isEmpty(t1))
  73727. return result;
  73728. if (argumentList._argument_list$_wereKeywordsAccessed)
  73729. return result;
  73730. t1 = evaluated.named;
  73731. t1 = t1.get$keys(t1);
  73732. t1 = "No " + B.pluralize0("argument", t1.get$length(t1), null) + " named ";
  73733. t2 = evaluated.named;
  73734. throw H.wrapException(E.MultiSpanSassRuntimeException$0(t1 + H.S(B.toSentence0(t2.get$keys(t2).map$1$1(0, new R._EvaluateVisitor__runBuiltInCallable_closure4(), type$.legacy_Object), "or")) + ".", nodeWithSpan.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([overload.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  73735. },
  73736. _evaluate0$_evaluateArguments$2$trackSpans: function($arguments, trackSpans) {
  73737. var t1, t2, t3, _i, t4, t5, t6, t7, t8, t9, positionalNodes, namedNodes, rest, restNodeForSpan, separator, keywordRest, keywordRestNodeForSpan, _this = this, _null = null;
  73738. if (trackSpans == null)
  73739. trackSpans = _this._evaluate0$_sourceMap;
  73740. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  73741. for (t2 = $arguments.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  73742. t1.push(t2[_i].accept$1(_this));
  73743. t4 = type$.legacy_String;
  73744. t5 = type$.legacy_Value_2;
  73745. t6 = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  73746. for (t7 = $arguments.named, t8 = t7.get$entries(t7), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  73747. t9 = t8.get$current(t8);
  73748. t6.$indexSet(0, t9.key, t9.value.accept$1(_this));
  73749. }
  73750. if (trackSpans) {
  73751. t8 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_AstNode_2);
  73752. for (_i = 0; _i < t3; ++_i)
  73753. t8.push(_this._evaluate0$_expressionNode$1(t2[_i]));
  73754. positionalNodes = t8;
  73755. } else
  73756. positionalNodes = _null;
  73757. if (trackSpans) {
  73758. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  73759. for (t3 = t7.get$entries(t7), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  73760. t7 = t3.get$current(t3);
  73761. t2.$indexSet(0, t7.key, _this._evaluate0$_expressionNode$1(t7.value));
  73762. }
  73763. namedNodes = t2;
  73764. } else
  73765. namedNodes = _null;
  73766. t2 = $arguments.rest;
  73767. if (t2 == null)
  73768. return new R._ArgumentResults1(t1, positionalNodes, t6, namedNodes, C.ListSeparator_undecided0);
  73769. rest = t2.accept$1(_this);
  73770. restNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  73771. if (rest instanceof A.SassMap0) {
  73772. _this._evaluate0$_addRestMap$1$3(t6, rest, t2, t5);
  73773. if (namedNodes != null) {
  73774. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  73775. for (t3 = rest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t7 = type$.legacy_SassString_2; t3.moveNext$0();)
  73776. t2.$indexSet(0, t7._as(t3.get$current(t3)).text, restNodeForSpan);
  73777. namedNodes.addAll$1(0, t2);
  73778. }
  73779. separator = C.ListSeparator_undecided0;
  73780. } else if (rest instanceof D.SassList0) {
  73781. t2 = rest._list1$_contents;
  73782. C.JSArray_methods.addAll$1(t1, t2);
  73783. if (positionalNodes != null)
  73784. C.JSArray_methods.addAll$1(positionalNodes, P.List_List$filled(t2.length, restNodeForSpan, false, type$.legacy_AstNode_2));
  73785. separator = rest.separator;
  73786. if (rest instanceof D.SassArgumentList0) {
  73787. rest._argument_list$_wereKeywordsAccessed = true;
  73788. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateArguments_closure1(t6, namedNodes, restNodeForSpan));
  73789. }
  73790. } else {
  73791. t1.push(rest);
  73792. if (positionalNodes != null)
  73793. positionalNodes.push(restNodeForSpan);
  73794. separator = C.ListSeparator_undecided0;
  73795. }
  73796. t2 = $arguments.keywordRest;
  73797. if (t2 == null)
  73798. return new R._ArgumentResults1(t1, positionalNodes, t6, namedNodes, separator);
  73799. keywordRest = t2.accept$1(_this);
  73800. keywordRestNodeForSpan = trackSpans ? _this._evaluate0$_expressionNode$1(t2) : _null;
  73801. if (keywordRest instanceof A.SassMap0) {
  73802. _this._evaluate0$_addRestMap$1$3(t6, keywordRest, t2, t5);
  73803. if (namedNodes != null) {
  73804. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t4, type$.legacy_AstNode_2);
  73805. for (t3 = keywordRest.contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), t4 = type$.legacy_SassString_2; t3.moveNext$0();)
  73806. t2.$indexSet(0, t4._as(t3.get$current(t3)).text, keywordRestNodeForSpan);
  73807. namedNodes.addAll$1(0, t2);
  73808. }
  73809. return new R._ArgumentResults1(t1, positionalNodes, t6, namedNodes, separator);
  73810. } else
  73811. throw H.wrapException(_this._evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", t2.get$span()));
  73812. },
  73813. _evaluate0$_evaluateArguments$1: function($arguments) {
  73814. return this._evaluate0$_evaluateArguments$2$trackSpans($arguments, null);
  73815. },
  73816. _evaluate0$_evaluateMacroArguments$1: function(invocation) {
  73817. var t3, positional, named, rest, keywordRest, _this = this,
  73818. t1 = invocation.$arguments,
  73819. t2 = t1.rest;
  73820. if (t2 == null)
  73821. return new S.Tuple2(t1.positional, t1.named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  73822. t3 = t1.positional;
  73823. positional = H.setRuntimeTypeInfo(t3.slice(0), H._arrayInstanceType(t3)._eval$1("JSArray<1>"));
  73824. t3 = type$.legacy_Expression_2;
  73825. named = P.LinkedHashMap_LinkedHashMap$of(t1.named, type$.legacy_String, t3);
  73826. rest = t2.accept$1(_this);
  73827. if (rest instanceof A.SassMap0)
  73828. _this._evaluate0$_addRestMap$1$4(named, rest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure7(), t3);
  73829. else if (rest instanceof D.SassList0) {
  73830. t2 = rest._list1$_contents;
  73831. C.JSArray_methods.addAll$1(positional, new H.MappedListIterable(t2, new R._EvaluateVisitor__evaluateMacroArguments_closure8(), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0*>")));
  73832. if (rest instanceof D.SassArgumentList0) {
  73833. rest._argument_list$_wereKeywordsAccessed = true;
  73834. rest._argument_list$_keywords.forEach$1(0, new R._EvaluateVisitor__evaluateMacroArguments_closure9(named));
  73835. }
  73836. } else
  73837. positional.push(new F.ValueExpression0(rest, null));
  73838. t1 = t1.keywordRest;
  73839. if (t1 == null)
  73840. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  73841. keywordRest = t1.accept$1(_this);
  73842. if (keywordRest instanceof A.SassMap0) {
  73843. _this._evaluate0$_addRestMap$1$4(named, keywordRest, invocation, new R._EvaluateVisitor__evaluateMacroArguments_closure10(), t3);
  73844. return new S.Tuple2(positional, named, type$.Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2);
  73845. } else
  73846. throw H.wrapException(_this._evaluate0$_exception$2(string$.Variabs + H.S(keywordRest) + ").", invocation.span));
  73847. },
  73848. _evaluate0$_addRestMap$1$4: function(values, map, nodeWithSpan, convert, $T) {
  73849. var t1 = {};
  73850. t1.convert = convert;
  73851. if (convert == null)
  73852. t1.convert = new R._EvaluateVisitor__addRestMap_closure3($T);
  73853. map.contents.forEach$1(0, new R._EvaluateVisitor__addRestMap_closure4(t1, this, values, map, nodeWithSpan));
  73854. },
  73855. _evaluate0$_addRestMap$1$3: function(values, map, nodeWithSpan, $T) {
  73856. return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, null, $T);
  73857. },
  73858. _evaluate0$_verifyArguments$4: function(positional, named, $arguments, nodeWithSpan) {
  73859. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
  73860. },
  73861. visitSelectorExpression$1: function(node) {
  73862. var t1 = this._evaluate0$_styleRule;
  73863. if (t1 == null)
  73864. return C.C_SassNull;
  73865. return t1.originalSelector.get$asSassList();
  73866. },
  73867. visitStringExpression$1: function(node) {
  73868. var t1 = node.text.contents;
  73869. return new D.SassString0(new H.MappedListIterable(t1, new R._EvaluateVisitor_visitStringExpression_closure1(this), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0), node.hasQuotes);
  73870. },
  73871. visitCssAtRule$1: function(node) {
  73872. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  73873. if (_this._evaluate0$_declarationName != null)
  73874. throw H.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  73875. if (node.isChildless) {
  73876. _this._evaluate0$_parent.addChild$1(U.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  73877. return null;
  73878. }
  73879. wasInKeyframes = _this._evaluate0$_inKeyframes;
  73880. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  73881. t1 = node.name;
  73882. if (B.unvendor0(t1.get$value(t1)) === "keyframes")
  73883. _this._evaluate0$_inKeyframes = true;
  73884. else
  73885. _this._evaluate0$_inUnknownAtRule = true;
  73886. _this._evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssAtRule$0(t1, node.span, false, node.value), new R._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssAtRule_closure4(), type$.legacy_ModifiableCssAtRule_2, type$.Null);
  73887. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  73888. _this._evaluate0$_inKeyframes = wasInKeyframes;
  73889. },
  73890. visitCssComment$1: function(node) {
  73891. var _this = this,
  73892. t1 = _this._evaluate0$_parent,
  73893. t2 = _this._evaluate0$_root;
  73894. if (t1 == t2 && _this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source))
  73895. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  73896. _this._evaluate0$_parent.addChild$1(new R.ModifiableCssComment0(node.text, node.span));
  73897. },
  73898. visitCssDeclaration$1: function(node) {
  73899. var t1 = node.name;
  73900. this._evaluate0$_parent.addChild$1(L.ModifiableCssDeclaration$0(t1, node.value, node.span, J.startsWith$1$s(t1.get$value(t1), "--"), node.valueSpanForMap));
  73901. },
  73902. visitCssImport$1: function(node) {
  73903. var _this = this,
  73904. modifiableNode = F.ModifiableCssImport$0(node.url, node.span, node.media, node.supports),
  73905. t1 = _this._evaluate0$_parent,
  73906. t2 = _this._evaluate0$_root;
  73907. if (t1 != t2)
  73908. t1.addChild$1(modifiableNode);
  73909. else if (_this._evaluate0$_endOfImports === J.get$length$asx(t2.children._collection$_source)) {
  73910. _this._evaluate0$_root.addChild$1(modifiableNode);
  73911. _this._evaluate0$_endOfImports = _this._evaluate0$_endOfImports + 1;
  73912. } else {
  73913. t1 = _this._evaluate0$_outOfOrderImports;
  73914. (t1 == null ? _this._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t1).push(modifiableNode);
  73915. }
  73916. },
  73917. visitCssKeyframeBlock$1: function(node) {
  73918. this._evaluate0$_withParent$2$4$scopeWhen$through(U.ModifiableCssKeyframeBlock$0(node.selector, node.span), new R._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new R._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.legacy_ModifiableCssKeyframeBlock_2, type$.Null);
  73919. },
  73920. visitCssMediaRule$1: function(node) {
  73921. var t1, mergedQueries, _this = this;
  73922. if (_this._evaluate0$_declarationName != null)
  73923. throw H.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  73924. t1 = _this._evaluate0$_mediaQueries;
  73925. mergedQueries = t1 == null ? null : _this._evaluate0$_mergeMediaQueries$2(t1, node.queries);
  73926. t1 = mergedQueries == null;
  73927. if (!t1 && mergedQueries.length === 0)
  73928. return null;
  73929. t1 = t1 ? node.queries : mergedQueries;
  73930. _this._evaluate0$_withParent$2$4$scopeWhen$through(G.ModifiableCssMediaRule$0(t1, node.span), new R._EvaluateVisitor_visitCssMediaRule_closure3(_this, mergedQueries, node), false, new R._EvaluateVisitor_visitCssMediaRule_closure4(mergedQueries), type$.legacy_ModifiableCssMediaRule_2, type$.Null);
  73931. },
  73932. visitCssStyleRule$1: function(node) {
  73933. var t1, t2, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _this = this;
  73934. if (_this._evaluate0$_declarationName != null)
  73935. throw H.wrapException(_this._evaluate0$_exception$2(string$.Style_, node.span));
  73936. t1 = node.selector;
  73937. t2 = t1.value;
  73938. t3 = _this._evaluate0$_styleRule;
  73939. t3 = t3 == null ? null : t3.originalSelector;
  73940. originalSelector = t2.resolveParentSelectors$2$implicitParent(t3, !_this._evaluate0$_atRootExcludingStyleRule);
  73941. rule = X.ModifiableCssStyleRule$0(_this._evaluate0$_extender.addSelector$3(originalSelector, t1.span, _this._evaluate0$_mediaQueries), node.span, originalSelector);
  73942. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  73943. _this._evaluate0$_atRootExcludingStyleRule = false;
  73944. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new R._EvaluateVisitor_visitCssStyleRule_closure3(_this, rule, node), false, new R._EvaluateVisitor_visitCssStyleRule_closure4(), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  73945. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73946. if (!(_this._evaluate0$_styleRule != null && !oldAtRootExcludingStyleRule)) {
  73947. t1 = _this._evaluate0$_parent.children;
  73948. t1 = !t1.get$isEmpty(t1);
  73949. } else
  73950. t1 = false;
  73951. if (t1) {
  73952. t1 = _this._evaluate0$_parent.children;
  73953. t1.get$last(t1).isGroupEnd = true;
  73954. }
  73955. },
  73956. visitCssStylesheet$1: function(node) {
  73957. var t1;
  73958. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  73959. t1.get$current(t1).accept$1(this);
  73960. },
  73961. visitCssSupportsRule$1: function(node) {
  73962. var _this = this;
  73963. if (_this._evaluate0$_declarationName != null)
  73964. throw H.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  73965. _this._evaluate0$_withParent$2$4$scopeWhen$through(B.ModifiableCssSupportsRule$0(node.condition, node.span), new R._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new R._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.legacy_ModifiableCssSupportsRule_2, type$.Null);
  73966. },
  73967. _evaluate0$_handleReturn$1$2: function(list, callback) {
  73968. var t1, _i, result;
  73969. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, H.throwConcurrentModificationError)(list), ++_i) {
  73970. result = callback.call$1(list[_i]);
  73971. if (result != null)
  73972. return result;
  73973. }
  73974. return null;
  73975. },
  73976. _evaluate0$_handleReturn$2: function(list, callback) {
  73977. return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  73978. },
  73979. _evaluate0$_withEnvironment$1$2: function(environment, callback) {
  73980. var result,
  73981. oldEnvironment = this._evaluate0$_environment;
  73982. this._evaluate0$_environment = environment;
  73983. result = callback.call$0();
  73984. this._evaluate0$_environment = oldEnvironment;
  73985. return result;
  73986. },
  73987. _evaluate0$_withEnvironment$2: function(environment, callback) {
  73988. return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
  73989. },
  73990. _evaluate0$_interpolationToValue$3$trim$warnForColor: function(interpolation, trim, warnForColor) {
  73991. var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
  73992. t1 = trim ? B.trimAscii0(result, true) : result;
  73993. return new F.CssValue0(t1, interpolation.span, type$.CssValue_legacy_String_2);
  73994. },
  73995. _evaluate0$_interpolationToValue$1: function(interpolation) {
  73996. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  73997. },
  73998. _evaluate0$_interpolationToValue$2$warnForColor: function(interpolation, warnForColor) {
  73999. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  74000. },
  74001. _evaluate0$_performInterpolation$2$warnForColor: function(interpolation, warnForColor) {
  74002. var t1 = interpolation.contents;
  74003. return new H.MappedListIterable(t1, new R._EvaluateVisitor__performInterpolation_closure1(this, warnForColor), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  74004. },
  74005. _evaluate0$_performInterpolation$1: function(interpolation) {
  74006. return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  74007. },
  74008. _evaluate0$_serialize$3$quote: function(value, nodeWithSpan, quote) {
  74009. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new R._EvaluateVisitor__serialize_closure1(value, quote));
  74010. },
  74011. _evaluate0$_serialize$2: function(value, nodeWithSpan) {
  74012. return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  74013. },
  74014. _evaluate0$_expressionNode$1: function(expression) {
  74015. var t1;
  74016. if (!this._evaluate0$_sourceMap)
  74017. return null;
  74018. if (expression instanceof S.VariableExpression0) {
  74019. t1 = this._evaluate0$_environment.getVariableNode$2$namespace(expression.name, expression.namespace);
  74020. return t1 == null ? expression : t1;
  74021. } else
  74022. return expression;
  74023. },
  74024. _evaluate0$_withParent$2$4$scopeWhen$through: function(node, callback, scopeWhen, through, $S, $T) {
  74025. var oldParent, result, _this = this;
  74026. _this._evaluate0$_addChild$2$through(node, through);
  74027. oldParent = _this._evaluate0$_parent;
  74028. _this._evaluate0$_parent = node;
  74029. result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T._eval$1("0*"));
  74030. _this._evaluate0$_parent = oldParent;
  74031. return result;
  74032. },
  74033. _evaluate0$_withParent$2$3$scopeWhen: function(node, callback, scopeWhen, $S, $T) {
  74034. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  74035. },
  74036. _evaluate0$_withParent$2$2: function(node, callback, $S, $T) {
  74037. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  74038. },
  74039. _evaluate0$_addChild$2$through: function(node, through) {
  74040. var grandparent,
  74041. $parent = this._evaluate0$_parent;
  74042. if (through != null) {
  74043. for (; through.call$1($parent);)
  74044. $parent = $parent._node2$_parent;
  74045. if ($parent.get$hasFollowingSibling()) {
  74046. grandparent = $parent._node2$_parent;
  74047. $parent = $parent.copyWithoutChildren$0();
  74048. grandparent.addChild$1($parent);
  74049. }
  74050. }
  74051. $parent.addChild$1(node);
  74052. },
  74053. _evaluate0$_addChild$1: function(node) {
  74054. return this._evaluate0$_addChild$2$through(node, null);
  74055. },
  74056. _evaluate0$_withStyleRule$1$2: function(rule, callback) {
  74057. var result,
  74058. oldRule = this._evaluate0$_styleRule;
  74059. this._evaluate0$_styleRule = rule;
  74060. result = callback.call$0();
  74061. this._evaluate0$_styleRule = oldRule;
  74062. return result;
  74063. },
  74064. _evaluate0$_withStyleRule$2: function(rule, callback) {
  74065. return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
  74066. },
  74067. _evaluate0$_withMediaQueries$1$2: function(queries, callback) {
  74068. var result,
  74069. oldMediaQueries = this._evaluate0$_mediaQueries;
  74070. this._evaluate0$_mediaQueries = queries;
  74071. result = callback.call$0();
  74072. this._evaluate0$_mediaQueries = oldMediaQueries;
  74073. return result;
  74074. },
  74075. _evaluate0$_withMediaQueries$2: function(queries, callback) {
  74076. return this._evaluate0$_withMediaQueries$1$2(queries, callback, type$.dynamic);
  74077. },
  74078. _evaluate0$_withStackFrame$1$3: function(member, nodeWithSpan, callback) {
  74079. var oldMember, result, _this = this,
  74080. t1 = _this._evaluate0$_stack;
  74081. t1.push(new S.Tuple2(_this._evaluate0$_member, nodeWithSpan, type$.Tuple2_of_legacy_String_and_legacy_AstNode_2));
  74082. oldMember = _this._evaluate0$_member;
  74083. _this._evaluate0$_member = member;
  74084. result = callback.call$0();
  74085. _this._evaluate0$_member = oldMember;
  74086. t1.pop();
  74087. return result;
  74088. },
  74089. _evaluate0$_withStackFrame$3: function(member, nodeWithSpan, callback) {
  74090. return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  74091. },
  74092. _evaluate0$_stackFrame$2: function(member, span) {
  74093. var url = span.file.url;
  74094. return B.frameForSpan0(span, member, url != null && this._evaluate0$_importCache != null ? this._evaluate0$_importCache.humanize$1(url) : url);
  74095. },
  74096. _evaluate0$_stackTrace$1: function(span) {
  74097. var t2, cur, _this = this,
  74098. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Frame);
  74099. for (t2 = _this._evaluate0$_stack, t2 = new H.MappedListIterable(t2, new R._EvaluateVisitor__stackTrace_closure1(_this), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Frame*>")), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  74100. cur = t2.__internal$_current;
  74101. t1.push(cur);
  74102. }
  74103. if (span != null)
  74104. t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
  74105. return new Y.Trace(P.List_List$unmodifiable(new H.ReversedListIterable(t1, type$.ReversedListIterable_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  74106. },
  74107. _evaluate0$_stackTrace$0: function() {
  74108. return this._evaluate0$_stackTrace$1(null);
  74109. },
  74110. _evaluate0$_warn$3$deprecation: function(message, span, deprecation) {
  74111. return this._evaluate0$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, this._evaluate0$_stackTrace$1(span));
  74112. },
  74113. _evaluate0$_warn$2: function(message, span) {
  74114. return this._evaluate0$_warn$3$deprecation(message, span, false);
  74115. },
  74116. _evaluate0$_exception$2: function(message, span) {
  74117. var t1 = span == null ? C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span() : span;
  74118. return new E.SassRuntimeException0(this._evaluate0$_stackTrace$1(span), message, t1);
  74119. },
  74120. _evaluate0$_exception$1: function(message) {
  74121. return this._evaluate0$_exception$2(message, null);
  74122. },
  74123. _evaluate0$_multiSpanException$3: function(message, primaryLabel, secondaryLabels) {
  74124. var t1 = C.JSArray_methods.get$last(this._evaluate0$_stack).item2.get$span();
  74125. return new E.MultiSpanSassRuntimeException0(this._evaluate0$_stackTrace$0(), primaryLabel, H.ConstantMap_ConstantMap$from(secondaryLabels, type$.legacy_FileSpan, type$.legacy_String), message, t1);
  74126. },
  74127. _evaluate0$_adjustParseError$1$2: function(nodeWithSpan, callback) {
  74128. var error, errorText, span, syntheticFile, syntheticSpan, t1, exception, t2, t3, t4, t5, _null = null;
  74129. try {
  74130. t1 = callback.call$0();
  74131. return t1;
  74132. } catch (exception) {
  74133. t1 = H.unwrapException(exception);
  74134. if (t1 instanceof E.SassFormatException0) {
  74135. error = t1;
  74136. t1 = error;
  74137. errorText = P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(t1).file._decodedChars, 0, _null), 0, _null);
  74138. span = nodeWithSpan.get$span();
  74139. t1 = span;
  74140. t2 = span;
  74141. syntheticFile = C.JSString_methods.replaceRange$3(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(span.file._decodedChars, 0, _null), 0, _null), Y.FileLocation$_(t1.file, t1._file$_start).offset, Y.FileLocation$_(t2.file, t2._end).offset, errorText);
  74142. t2 = Y.SourceFile$fromString(syntheticFile, span.file.url);
  74143. t1 = span;
  74144. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  74145. t3 = error;
  74146. t3 = G.SourceSpanException.prototype.get$span.call(t3);
  74147. t3 = Y.FileLocation$_(t3.file, t3._file$_start);
  74148. t4 = span;
  74149. t4 = Y.FileLocation$_(t4.file, t4._file$_start);
  74150. t5 = error;
  74151. t5 = G.SourceSpanException.prototype.get$span.call(t5);
  74152. syntheticSpan = t2.span$2(t1.offset + t3.offset, t4.offset + Y.FileLocation$_(t5.file, t5._end).offset);
  74153. throw H.wrapException(this._evaluate0$_exception$2(error._span_exception$_message, syntheticSpan));
  74154. } else
  74155. throw exception;
  74156. }
  74157. },
  74158. _evaluate0$_adjustParseError$2: function(nodeWithSpan, callback) {
  74159. return this._evaluate0$_adjustParseError$1$2(nodeWithSpan, callback, type$.dynamic);
  74160. },
  74161. _evaluate0$_addExceptionSpan$1$2: function(nodeWithSpan, callback) {
  74162. var error, error0, t1, exception;
  74163. try {
  74164. t1 = callback.call$0();
  74165. return t1;
  74166. } catch (exception) {
  74167. t1 = H.unwrapException(exception);
  74168. if (t1 instanceof E.MultiSpanSassScriptException0) {
  74169. error = t1;
  74170. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error.message, nodeWithSpan.get$span(), error.primaryLabel, error.secondarySpans, this._evaluate0$_stackTrace$1(nodeWithSpan.get$span())));
  74171. } else if (t1 instanceof E.SassScriptException0) {
  74172. error0 = t1;
  74173. throw H.wrapException(this._evaluate0$_exception$2(error0.message, nodeWithSpan.get$span()));
  74174. } else
  74175. throw exception;
  74176. }
  74177. },
  74178. _evaluate0$_addExceptionSpan$2: function(nodeWithSpan, callback) {
  74179. return this._evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  74180. },
  74181. _evaluate0$_addErrorSpan$1$2: function(nodeWithSpan, callback) {
  74182. var error, t1, exception;
  74183. try {
  74184. t1 = callback.call$0();
  74185. return t1;
  74186. } catch (exception) {
  74187. t1 = H.unwrapException(exception);
  74188. if (type$.legacy_SassRuntimeException_2._is(t1)) {
  74189. error = t1;
  74190. t1 = error.get$span();
  74191. if (!C.JSString_methods.startsWith$1(P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null), "@error"))
  74192. throw exception;
  74193. throw H.wrapException(E.SassRuntimeException$0(error._span_exception$_message, nodeWithSpan.get$span(), this._evaluate0$_stackTrace$0()));
  74194. } else
  74195. throw exception;
  74196. }
  74197. },
  74198. _evaluate0$_addErrorSpan$2: function(nodeWithSpan, callback) {
  74199. return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  74200. }
  74201. };
  74202. R._EvaluateVisitor_closure19.prototype = {
  74203. call$1: function($arguments) {
  74204. var module, t2,
  74205. t1 = J.getInterceptor$asx($arguments),
  74206. variable = t1.$index($arguments, 0).assertString$1("name");
  74207. t1 = t1.$index($arguments, 1).get$realNull();
  74208. module = t1 == null ? null : t1.assertString$1("module");
  74209. t1 = this.$this._evaluate0$_environment;
  74210. t2 = variable.text;
  74211. t2.toString;
  74212. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  74213. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module.text) ? C.SassBoolean_true : C.SassBoolean_false;
  74214. },
  74215. $signature: 20
  74216. };
  74217. R._EvaluateVisitor_closure20.prototype = {
  74218. call$1: function($arguments) {
  74219. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  74220. t1 = this.$this._evaluate0$_environment,
  74221. t2 = variable.text;
  74222. t2.toString;
  74223. return t1.getVariable$1(H.stringReplaceAllUnchecked(t2, "_", "-")) != null ? C.SassBoolean_true : C.SassBoolean_false;
  74224. },
  74225. $signature: 20
  74226. };
  74227. R._EvaluateVisitor_closure21.prototype = {
  74228. call$1: function($arguments) {
  74229. var module, t2, t3, t4,
  74230. t1 = J.getInterceptor$asx($arguments),
  74231. variable = t1.$index($arguments, 0).assertString$1("name");
  74232. t1 = t1.$index($arguments, 1).get$realNull();
  74233. module = t1 == null ? null : t1.assertString$1("module");
  74234. t1 = this.$this;
  74235. t2 = t1._evaluate0$_environment;
  74236. t3 = variable.text;
  74237. t3.toString;
  74238. t4 = H.stringReplaceAllUnchecked(t3, "_", "-");
  74239. return t2.getFunction$2$namespace(t4, module == null ? null : module.text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? C.SassBoolean_true : C.SassBoolean_false;
  74240. },
  74241. $signature: 20
  74242. };
  74243. R._EvaluateVisitor_closure22.prototype = {
  74244. call$1: function($arguments) {
  74245. var module, t2,
  74246. t1 = J.getInterceptor$asx($arguments),
  74247. variable = t1.$index($arguments, 0).assertString$1("name");
  74248. t1 = t1.$index($arguments, 1).get$realNull();
  74249. module = t1 == null ? null : t1.assertString$1("module");
  74250. t1 = this.$this._evaluate0$_environment;
  74251. t2 = variable.text;
  74252. t2.toString;
  74253. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  74254. return t1.getMixin$2$namespace(t2, module == null ? null : module.text) != null ? C.SassBoolean_true : C.SassBoolean_false;
  74255. },
  74256. $signature: 20
  74257. };
  74258. R._EvaluateVisitor_closure23.prototype = {
  74259. call$1: function($arguments) {
  74260. var t1 = this.$this._evaluate0$_environment;
  74261. if (!t1._environment0$_inMixin)
  74262. throw H.wrapException(E.SassScriptException$0(string$.conten));
  74263. return t1._environment0$_content != null ? C.SassBoolean_true : C.SassBoolean_false;
  74264. },
  74265. $signature: 20
  74266. };
  74267. R._EvaluateVisitor_closure24.prototype = {
  74268. call$1: function($arguments) {
  74269. var t2, t3, t4,
  74270. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  74271. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  74272. if (module == null)
  74273. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  74274. t1 = type$.legacy_Value_2;
  74275. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  74276. for (t3 = module.get$variables(), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  74277. t4 = t3.get$current(t3);
  74278. t2.$indexSet(0, new D.SassString0(t4.key, true), t4.value);
  74279. }
  74280. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  74281. },
  74282. $signature: 38
  74283. };
  74284. R._EvaluateVisitor_closure25.prototype = {
  74285. call$1: function($arguments) {
  74286. var t2, t3, t4,
  74287. t1 = J.$index$asx($arguments, 0).assertString$1("module").text,
  74288. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  74289. if (module == null)
  74290. throw H.wrapException('There is no module with namespace "' + H.S(t1) + '".');
  74291. t1 = type$.legacy_Value_2;
  74292. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  74293. for (t3 = module.get$functions(module), t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  74294. t4 = t3.get$current(t3);
  74295. t2.$indexSet(0, new D.SassString0(t4.key, true), new F.SassFunction0(t4.value));
  74296. }
  74297. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  74298. },
  74299. $signature: 38
  74300. };
  74301. R._EvaluateVisitor_closure26.prototype = {
  74302. call$1: function($arguments) {
  74303. var module, callable,
  74304. t1 = J.getInterceptor$asx($arguments),
  74305. $name = t1.$index($arguments, 0).assertString$1("name"),
  74306. css = t1.$index($arguments, 1).get$isTruthy();
  74307. t1 = t1.$index($arguments, 2).get$realNull();
  74308. module = t1 == null ? null : t1.assertString$1("module");
  74309. if (css && module != null)
  74310. throw H.wrapException(string$.x24css_a);
  74311. if (css)
  74312. callable = new L.PlainCssCallable0($name.text);
  74313. else {
  74314. t1 = this.$this;
  74315. callable = t1._evaluate0$_addExceptionSpan$2(t1._evaluate0$_callableNode, new R._EvaluateVisitor__closure7(t1, $name, module));
  74316. }
  74317. if (callable != null)
  74318. return new F.SassFunction0(callable);
  74319. throw H.wrapException("Function not found: " + $name.toString$0(0));
  74320. },
  74321. $signature: 162
  74322. };
  74323. R._EvaluateVisitor__closure7.prototype = {
  74324. call$0: function() {
  74325. var t2,
  74326. t1 = this.name.text;
  74327. t1.toString;
  74328. t1 = H.stringReplaceAllUnchecked(t1, "_", "-");
  74329. t2 = this.module;
  74330. t2 = t2 == null ? null : t2.text;
  74331. return this.$this._evaluate0$_getFunction$2$namespace(t1, t2);
  74332. },
  74333. $signature: 89
  74334. };
  74335. R._EvaluateVisitor_closure27.prototype = {
  74336. call$1: function($arguments) {
  74337. var t2, t3, t4, t5, t6, t7, t8, t9, t10, invocation, callable,
  74338. t1 = J.getInterceptor$asx($arguments),
  74339. $function = t1.$index($arguments, 0),
  74340. args = type$.legacy_SassArgumentList_2._as(t1.$index($arguments, 1));
  74341. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  74342. t2 = type$.legacy_String;
  74343. t3 = type$.legacy_Expression_2;
  74344. t4 = this.$this;
  74345. t5 = t4._evaluate0$_callableNode.get$span();
  74346. t6 = t4._evaluate0$_callableNode.get$span();
  74347. args._argument_list$_wereKeywordsAccessed = true;
  74348. t7 = args._argument_list$_keywords;
  74349. if (t7.get$isEmpty(t7))
  74350. t7 = null;
  74351. else {
  74352. t8 = type$.legacy_Value_2;
  74353. t9 = P.LinkedHashMap_LinkedHashMap$_empty(t8, t8);
  74354. for (args._argument_list$_wereKeywordsAccessed = true, t7 = t7.get$entries(t7), t7 = t7.get$iterator(t7); t7.moveNext$0();) {
  74355. t10 = t7.get$current(t7);
  74356. t9.$indexSet(0, new D.SassString0(t10.key, false), t10.value);
  74357. }
  74358. t7 = new F.ValueExpression0(new A.SassMap0(H.ConstantMap_ConstantMap$from(t9, t8, t8)), t4._evaluate0$_callableNode.get$span());
  74359. }
  74360. invocation = new X.ArgumentInvocation0(P.List_List$unmodifiable(t1, t3), H.ConstantMap_ConstantMap$from(P.LinkedHashMap_LinkedHashMap$_empty(t2, t3), t2, t3), new F.ValueExpression0(args, t6), t7, t5);
  74361. if ($function instanceof D.SassString0) {
  74362. N.warn0(string$.Passins + $function.toString$0(0) + ")) instead.", true);
  74363. return t4.visitFunctionExpression$1(new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo([$function.text], type$.JSArray_legacy_Object), t4._evaluate0$_callableNode.get$span()), invocation, t4._evaluate0$_callableNode.get$span()));
  74364. }
  74365. callable = $function.assertFunction$1("function").callable;
  74366. if (type$.legacy_Callable_2._is(callable))
  74367. return t4._evaluate0$_runFunctionCallable$3(invocation, callable, t4._evaluate0$_callableNode);
  74368. else
  74369. throw H.wrapException(E.SassScriptException$0("The function " + H.S(callable.get$name(callable)) + string$.x20is_as));
  74370. },
  74371. $signature: 3
  74372. };
  74373. R._EvaluateVisitor_closure28.prototype = {
  74374. call$1: function($arguments) {
  74375. var withMap, values, configuration, t2, t3, _null = null,
  74376. t1 = J.getInterceptor$asx($arguments),
  74377. url = P.Uri_parse(t1.$index($arguments, 0).assertString$1("url").text);
  74378. t1 = t1.$index($arguments, 1).get$realNull();
  74379. t1 = t1 == null ? _null : t1.assertMap$1("with");
  74380. withMap = t1 == null ? _null : t1.contents;
  74381. if (withMap != null) {
  74382. values = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_ConfiguredValue_2);
  74383. t1 = this.$this;
  74384. withMap.forEach$1(0, new R._EvaluateVisitor__closure5(values, t1._evaluate0$_callableNode.get$span()));
  74385. configuration = new A.Configuration0(values, t1._evaluate0$_callableNode, false);
  74386. } else
  74387. configuration = C.Configuration_Map_empty_null_true0;
  74388. t1 = this.$this;
  74389. t2 = t1._evaluate0$_callableNode;
  74390. t3 = t2.get$span();
  74391. t3 = t3 == null ? _null : t3.file.url;
  74392. t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new R._EvaluateVisitor__closure6(t1), t3, configuration, true);
  74393. t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  74394. return _null;
  74395. },
  74396. $signature: 97
  74397. };
  74398. R._EvaluateVisitor__closure5.prototype = {
  74399. call$2: function(variable, value) {
  74400. var $name,
  74401. t1 = variable.assertString$1("with key").text;
  74402. t1.toString;
  74403. $name = H.stringReplaceAllUnchecked(t1, "_", "-");
  74404. t1 = this.values;
  74405. if (t1.containsKey$1($name))
  74406. throw H.wrapException("The variable $" + $name + " was configured twice.");
  74407. t1.$indexSet(0, $name, new Z.ConfiguredValue0(value, this.span, null));
  74408. },
  74409. $signature: 45
  74410. };
  74411. R._EvaluateVisitor__closure6.prototype = {
  74412. call$1: function(module) {
  74413. var t1 = this.$this;
  74414. return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  74415. },
  74416. $signature: 188
  74417. };
  74418. R._EvaluateVisitor_run_closure1.prototype = {
  74419. call$0: function() {
  74420. var t2, _this = this,
  74421. t1 = _this.node,
  74422. url = t1.span.file.url;
  74423. if (url != null) {
  74424. t2 = _this.$this;
  74425. t2._evaluate0$_activeModules.$indexSet(0, url, null);
  74426. if (t2._nodeImporter != null)
  74427. if (url.get$scheme() === "file")
  74428. t2._includedFiles.add$1(0, $.$get$context().style.pathFromUri$1(M._parseUri(url)));
  74429. else if (url.toString$0(0) !== "stdin")
  74430. t2._includedFiles.add$1(0, url.toString$0(0));
  74431. }
  74432. t2 = _this.$this;
  74433. return new E.EvaluateResult0(t2._evaluate0$_combineCss$1(t2._evaluate0$_execute$2(_this.importer, t1)), t2._includedFiles);
  74434. },
  74435. $signature: 337
  74436. };
  74437. R._EvaluateVisitor__withWarnCallback_closure1.prototype = {
  74438. call$2: function(message, deprecation) {
  74439. var t1 = this.$this,
  74440. t2 = t1._evaluate0$_importSpan;
  74441. return t1._evaluate0$_warn$3$deprecation(message, t2 == null ? t1._evaluate0$_callableNode.get$span() : t2, deprecation);
  74442. },
  74443. "call*": "call$2",
  74444. $requiredArgCount: 2,
  74445. $signature: 72
  74446. };
  74447. R._EvaluateVisitor__loadModule_closure3.prototype = {
  74448. call$0: function() {
  74449. return this.callback.call$1(this.builtInModule);
  74450. },
  74451. $signature: 1
  74452. };
  74453. R._EvaluateVisitor__loadModule_closure4.prototype = {
  74454. call$0: function() {
  74455. var module, error, error0, error1, error2, message, previousLoad, exception, _this = this,
  74456. t1 = _this.$this,
  74457. t2 = _this.nodeWithSpan,
  74458. result = t1._evaluate0$_loadStylesheet$3$baseUrl(J.toString$0$(_this.url), t2.get$span(), _this.baseUrl),
  74459. importer = result.item1,
  74460. stylesheet = result.item2,
  74461. canonicalUrl = stylesheet.span.file.url,
  74462. t3 = t1._evaluate0$_activeModules;
  74463. if (t3.containsKey$1(canonicalUrl)) {
  74464. message = _this.namesInErrors ? "Module loop: " + H.S($.$get$context().prettyUri$1(canonicalUrl)) + " is already being loaded." : string$.Module;
  74465. previousLoad = t3.$index(0, canonicalUrl);
  74466. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(message) : t1._evaluate0$_multiSpanException$3(message, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  74467. }
  74468. t3.$indexSet(0, canonicalUrl, t2);
  74469. module = null;
  74470. try {
  74471. module = t1._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t2);
  74472. } finally {
  74473. t3.remove$1(0, canonicalUrl);
  74474. }
  74475. try {
  74476. _this.callback.call$1(module);
  74477. } catch (exception) {
  74478. t2 = H.unwrapException(exception);
  74479. if (type$.legacy_SassRuntimeException_2._is(t2))
  74480. throw exception;
  74481. else if (t2 instanceof E.MultiSpanSassException0) {
  74482. error = t2;
  74483. throw H.wrapException(E.MultiSpanSassRuntimeException$0(error._span_exception$_message, error.get$span(), error.primaryLabel, error.secondarySpans, t1._evaluate0$_stackTrace$1(error.get$span())));
  74484. } else if (t2 instanceof E.SassException0) {
  74485. error0 = t2;
  74486. throw H.wrapException(t1._evaluate0$_exception$2(error0._span_exception$_message, error0.get$span()));
  74487. } else if (t2 instanceof E.MultiSpanSassScriptException0) {
  74488. error1 = t2;
  74489. throw H.wrapException(t1._evaluate0$_multiSpanException$3(error1.message, error1.primaryLabel, error1.secondarySpans));
  74490. } else if (t2 instanceof E.SassScriptException0) {
  74491. error2 = t2;
  74492. throw H.wrapException(t1._evaluate0$_exception$1(error2.message));
  74493. } else
  74494. throw exception;
  74495. }
  74496. },
  74497. $signature: 0
  74498. };
  74499. R._EvaluateVisitor__execute_closure1.prototype = {
  74500. call$0: function() {
  74501. var t2, t3, t4, css, _this = this,
  74502. t1 = _this.$this,
  74503. oldImporter = t1._evaluate0$_importer,
  74504. oldStylesheet = t1._evaluate0$_stylesheet,
  74505. oldRoot = t1._evaluate0$_root,
  74506. oldParent = t1._evaluate0$_parent,
  74507. oldEndOfImports = t1._evaluate0$_endOfImports,
  74508. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  74509. oldExtender = t1._evaluate0$_extender,
  74510. oldStyleRule = t1._evaluate0$_styleRule,
  74511. oldMediaQueries = t1._evaluate0$_mediaQueries,
  74512. oldDeclarationName = t1._evaluate0$_declarationName,
  74513. oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
  74514. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule,
  74515. oldInKeyframes = t1._evaluate0$_inKeyframes,
  74516. oldConfiguration = t1._evaluate0$_configuration;
  74517. t1._evaluate0$_importer = _this.importer;
  74518. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  74519. t3 = t2.span;
  74520. t1._evaluate0$_parent = t1._evaluate0$_root = V.ModifiableCssStylesheet$0(t3);
  74521. t1._evaluate0$_endOfImports = 0;
  74522. t1._evaluate0$_outOfOrderImports = null;
  74523. t1._evaluate0$_extender = _this.extender;
  74524. t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRule = null;
  74525. t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
  74526. t4 = _this.configuration;
  74527. if (t4 != null)
  74528. t1._evaluate0$_configuration = t4;
  74529. t1.visitStylesheet$1(t2);
  74530. css = t1._evaluate0$_outOfOrderImports == null ? t1._evaluate0$_root : new V.CssStylesheet0(new P.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_legacy_CssNode_2), t3);
  74531. _this._box_0.css = css;
  74532. t1._evaluate0$_importer = oldImporter;
  74533. t1._evaluate0$_stylesheet = oldStylesheet;
  74534. t1._evaluate0$_root = oldRoot;
  74535. t1._evaluate0$_parent = oldParent;
  74536. t1._evaluate0$_endOfImports = oldEndOfImports;
  74537. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  74538. t1._evaluate0$_extender = oldExtender;
  74539. t1._evaluate0$_styleRule = oldStyleRule;
  74540. t1._evaluate0$_mediaQueries = oldMediaQueries;
  74541. t1._evaluate0$_declarationName = oldDeclarationName;
  74542. t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  74543. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  74544. t1._evaluate0$_inKeyframes = oldInKeyframes;
  74545. t1._evaluate0$_configuration = oldConfiguration;
  74546. },
  74547. $signature: 0
  74548. };
  74549. R._EvaluateVisitor__combineCss_closure5.prototype = {
  74550. call$1: function(module) {
  74551. return module.get$transitivelyContainsCss();
  74552. },
  74553. $signature: 101
  74554. };
  74555. R._EvaluateVisitor__combineCss_closure6.prototype = {
  74556. call$1: function(target) {
  74557. return !this.selectors.contains$1(0, target);
  74558. },
  74559. $signature: 19
  74560. };
  74561. R._EvaluateVisitor__combineCss_closure7.prototype = {
  74562. call$1: function(module) {
  74563. return module.cloneCss$0();
  74564. },
  74565. $signature: 201
  74566. };
  74567. R._EvaluateVisitor__extendModules_closure3.prototype = {
  74568. call$1: function(target) {
  74569. return !this.originalSelectors.contains$1(0, target);
  74570. },
  74571. $signature: 19
  74572. };
  74573. R._EvaluateVisitor__extendModules_closure4.prototype = {
  74574. call$0: function() {
  74575. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extender_2);
  74576. },
  74577. $signature: 150
  74578. };
  74579. R._EvaluateVisitor__topologicalModules_visitModule1.prototype = {
  74580. call$1: function(module) {
  74581. var t1, t2, t3, _i, upstream;
  74582. for (t1 = module.get$upstream(), t2 = t1.length, t3 = this.seen, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  74583. upstream = t1[_i];
  74584. if (upstream.get$transitivelyContainsCss() && t3.add$1(0, upstream))
  74585. this.call$1(upstream);
  74586. }
  74587. this.sorted.addFirst$1(module);
  74588. },
  74589. $signature: 188
  74590. };
  74591. R._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
  74592. call$0: function() {
  74593. return V.AtRootQueryParser$0(this.resolved, this.$this._evaluate0$_logger, null).parse$0();
  74594. },
  74595. $signature: 104
  74596. };
  74597. R._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
  74598. call$0: function() {
  74599. var t1, t2, t3, _i;
  74600. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  74601. t1[_i].accept$1(t3);
  74602. },
  74603. $signature: 0
  74604. };
  74605. R._EvaluateVisitor_visitAtRootRule_closure7.prototype = {
  74606. call$0: function() {
  74607. var t1, t2, t3, _i;
  74608. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  74609. t1[_i].accept$1(t3);
  74610. },
  74611. "call*": "call$0",
  74612. $requiredArgCount: 0,
  74613. $signature: 0
  74614. };
  74615. R._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
  74616. call$1: function(callback) {
  74617. var t1 = this.$this,
  74618. oldParent = t1._evaluate0$_parent;
  74619. t1._evaluate0$_parent = this.newParent;
  74620. t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  74621. t1._evaluate0$_parent = oldParent;
  74622. },
  74623. $signature: 35
  74624. };
  74625. R._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
  74626. call$1: function(callback) {
  74627. var t1 = this.$this,
  74628. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
  74629. t1._evaluate0$_atRootExcludingStyleRule = true;
  74630. this.innerScope.call$1(callback);
  74631. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  74632. },
  74633. $signature: 35
  74634. };
  74635. R._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
  74636. call$1: function(callback) {
  74637. return this.$this._evaluate0$_withMediaQueries$2(null, new R._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
  74638. },
  74639. $signature: 35
  74640. };
  74641. R._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
  74642. call$0: function() {
  74643. return this.innerScope.call$1(this.callback);
  74644. },
  74645. $signature: 0
  74646. };
  74647. R._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
  74648. call$1: function(callback) {
  74649. var t1 = this.$this,
  74650. wasInKeyframes = t1._evaluate0$_inKeyframes;
  74651. t1._evaluate0$_inKeyframes = false;
  74652. this.innerScope.call$1(callback);
  74653. t1._evaluate0$_inKeyframes = wasInKeyframes;
  74654. },
  74655. $signature: 35
  74656. };
  74657. R._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
  74658. call$1: function($parent) {
  74659. return type$.legacy_CssAtRule_2._is($parent);
  74660. },
  74661. $signature: 146
  74662. };
  74663. R._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
  74664. call$1: function(callback) {
  74665. var t1 = this.$this,
  74666. wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
  74667. t1._evaluate0$_inUnknownAtRule = false;
  74668. this.innerScope.call$1(callback);
  74669. t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  74670. },
  74671. $signature: 35
  74672. };
  74673. R._EvaluateVisitor_visitContentRule_closure1.prototype = {
  74674. call$0: function() {
  74675. var t1, t2, t3, _i;
  74676. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  74677. t1[_i].accept$1(t3);
  74678. return null;
  74679. },
  74680. $signature: 0
  74681. };
  74682. R._EvaluateVisitor_visitDeclaration_closure1.prototype = {
  74683. call$0: function() {
  74684. var t1, t2, t3, _i;
  74685. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  74686. t1[_i].accept$1(t3);
  74687. },
  74688. $signature: 0
  74689. };
  74690. R._EvaluateVisitor_visitEachRule_closure5.prototype = {
  74691. call$1: function(value) {
  74692. return this.$this._evaluate0$_environment.setLocalVariable$3(C.JSArray_methods.get$first(this.node.variables), value.withoutSlash$0(), this.nodeWithSpan);
  74693. },
  74694. $signature: 77
  74695. };
  74696. R._EvaluateVisitor_visitEachRule_closure6.prototype = {
  74697. call$1: function(value) {
  74698. return this.$this._evaluate0$_setMultipleVariables$3(this.node.variables, value, this.nodeWithSpan);
  74699. },
  74700. $signature: 77
  74701. };
  74702. R._EvaluateVisitor_visitEachRule_closure7.prototype = {
  74703. call$0: function() {
  74704. var _this = this,
  74705. t1 = _this.$this;
  74706. return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new R._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
  74707. },
  74708. $signature: 21
  74709. };
  74710. R._EvaluateVisitor_visitEachRule__closure1.prototype = {
  74711. call$1: function(element) {
  74712. var t1;
  74713. this.setVariables.call$1(element);
  74714. t1 = this.$this;
  74715. return t1._evaluate0$_handleReturn$2(this.node.children, new R._EvaluateVisitor_visitEachRule___closure1(t1));
  74716. },
  74717. $signature: 73
  74718. };
  74719. R._EvaluateVisitor_visitEachRule___closure1.prototype = {
  74720. call$1: function(child) {
  74721. return child.accept$1(this.$this);
  74722. },
  74723. $signature: 70
  74724. };
  74725. R._EvaluateVisitor_visitExtendRule_closure1.prototype = {
  74726. call$0: function() {
  74727. return D.SelectorList_SelectorList$parse0(B.trimAscii0(this.targetText.value, true), false, true, this.$this._evaluate0$_logger);
  74728. },
  74729. $signature: 44
  74730. };
  74731. R._EvaluateVisitor_visitAtRule_closure3.prototype = {
  74732. call$0: function() {
  74733. var t3, _i,
  74734. t1 = this.$this,
  74735. t2 = t1._evaluate0$_styleRule;
  74736. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule) || t1._evaluate0$_inKeyframes)
  74737. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  74738. t2[_i].accept$1(t1);
  74739. else
  74740. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitAtRule__closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  74741. },
  74742. $signature: 0
  74743. };
  74744. R._EvaluateVisitor_visitAtRule__closure1.prototype = {
  74745. call$0: function() {
  74746. var t1, t2, t3, _i;
  74747. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  74748. t1[_i].accept$1(t3);
  74749. },
  74750. $signature: 0
  74751. };
  74752. R._EvaluateVisitor_visitAtRule_closure4.prototype = {
  74753. call$1: function(node) {
  74754. return type$.legacy_CssStyleRule_2._is(node);
  74755. },
  74756. $signature: 8
  74757. };
  74758. R._EvaluateVisitor_visitForRule_closure9.prototype = {
  74759. call$0: function() {
  74760. return this.node.from.accept$1(this.$this).assertNumber$0();
  74761. },
  74762. $signature: 175
  74763. };
  74764. R._EvaluateVisitor_visitForRule_closure10.prototype = {
  74765. call$0: function() {
  74766. return this.node.to.accept$1(this.$this).assertNumber$0();
  74767. },
  74768. $signature: 175
  74769. };
  74770. R._EvaluateVisitor_visitForRule_closure11.prototype = {
  74771. call$0: function() {
  74772. var t1 = this.toNumber;
  74773. return this.fromNumber.coerce$2(t1.numeratorUnits, t1.denominatorUnits).assertInt$0();
  74774. },
  74775. $signature: 11
  74776. };
  74777. R._EvaluateVisitor_visitForRule_closure12.prototype = {
  74778. call$0: function() {
  74779. return this.toNumber.assertInt$0();
  74780. },
  74781. $signature: 11
  74782. };
  74783. R._EvaluateVisitor_visitForRule_closure13.prototype = {
  74784. call$0: function() {
  74785. var i, t3, t4, t5, result, _this = this,
  74786. t1 = _this.$this,
  74787. t2 = _this.node,
  74788. nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
  74789. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t2 = t2.children; i !== t3.to; i += t4) {
  74790. t1._evaluate0$_environment.setLocalVariable$3(t5, T.SassNumber$0(i, null), nodeWithSpan);
  74791. result = t1._evaluate0$_handleReturn$2(t2, new R._EvaluateVisitor_visitForRule__closure1(t1));
  74792. if (result != null)
  74793. return result;
  74794. }
  74795. return null;
  74796. },
  74797. $signature: 21
  74798. };
  74799. R._EvaluateVisitor_visitForRule__closure1.prototype = {
  74800. call$1: function(child) {
  74801. return child.accept$1(this.$this);
  74802. },
  74803. $signature: 70
  74804. };
  74805. R._EvaluateVisitor_visitForwardRule_closure3.prototype = {
  74806. call$1: function(module) {
  74807. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  74808. },
  74809. $signature: 86
  74810. };
  74811. R._EvaluateVisitor_visitForwardRule_closure4.prototype = {
  74812. call$1: function(module) {
  74813. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  74814. },
  74815. $signature: 86
  74816. };
  74817. R._EvaluateVisitor__assertConfigurationIsEmpty_closure1.prototype = {
  74818. call$2: function($name, value) {
  74819. var t1 = this.only;
  74820. if (t1 != null && !t1.contains$1(0, $name))
  74821. return;
  74822. t1 = this.nameInError ? "$" + H.S($name) + string$.x20was_n : string$.This_v;
  74823. throw H.wrapException(this.$this._evaluate0$_exception$2(t1, value.configurationSpan));
  74824. },
  74825. $signature: 136
  74826. };
  74827. R._EvaluateVisitor_visitIfRule_closure1.prototype = {
  74828. call$0: function() {
  74829. var t1 = this.$this;
  74830. return t1._evaluate0$_handleReturn$2(this._box_0.clause.children, new R._EvaluateVisitor_visitIfRule__closure1(t1));
  74831. },
  74832. $signature: 21
  74833. };
  74834. R._EvaluateVisitor_visitIfRule__closure1.prototype = {
  74835. call$1: function(child) {
  74836. return child.accept$1(this.$this);
  74837. },
  74838. $signature: 70
  74839. };
  74840. R._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
  74841. call$0: function() {
  74842. var previousLoad, oldImporter, oldStylesheet, t4, t5, t6, t7, t8, t9, t10, t11, environment, module, visitor, _null = null,
  74843. _s34_ = "This file is already being loaded.",
  74844. _box_0 = {},
  74845. t1 = this.$this,
  74846. t2 = this.$import,
  74847. result = t1._evaluate0$_loadStylesheet$3$forImport(t2.url, t2.span, true),
  74848. importer = result.item1,
  74849. stylesheet = result.item2,
  74850. url = stylesheet.span.file.url,
  74851. t3 = t1._evaluate0$_activeModules;
  74852. if (t3.containsKey$1(url)) {
  74853. previousLoad = t3.$index(0, url);
  74854. throw H.wrapException(previousLoad == null ? t1._evaluate0$_exception$1(_s34_) : t1._evaluate0$_multiSpanException$3(_s34_, "new load", P.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(), "original load"], type$.legacy_FileSpan, type$.legacy_String)));
  74855. }
  74856. t3.$indexSet(0, url, t2);
  74857. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_uses, type$.UnmodifiableListView_legacy_UseRule_2);
  74858. if (t2.get$length(t2) === 0) {
  74859. t2 = new P.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  74860. t2 = t2.get$length(t2) === 0;
  74861. } else
  74862. t2 = false;
  74863. if (t2) {
  74864. oldImporter = t1._evaluate0$_importer;
  74865. oldStylesheet = t1._evaluate0$_stylesheet;
  74866. t1._evaluate0$_importer = importer;
  74867. t1._evaluate0$_stylesheet = stylesheet;
  74868. t1.visitStylesheet$1(stylesheet);
  74869. t1._evaluate0$_importer = oldImporter;
  74870. t1._evaluate0$_stylesheet = oldStylesheet;
  74871. t3.remove$1(0, url);
  74872. return;
  74873. }
  74874. _box_0.children = null;
  74875. t2 = t1._evaluate0$_environment;
  74876. t4 = type$.legacy_String;
  74877. t5 = type$.legacy_Module_legacy_Callable_2;
  74878. t6 = type$.legacy_AstNode_2;
  74879. t7 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Module_legacy_Callable_2);
  74880. t8 = t2._environment0$_variables;
  74881. t8 = H.setRuntimeTypeInfo(t8.slice(0), H._arrayInstanceType(t8));
  74882. t9 = t2._environment0$_variableNodes;
  74883. if (t9 == null)
  74884. t9 = _null;
  74885. else
  74886. t9 = H.setRuntimeTypeInfo(t9.slice(0), H._arrayInstanceType(t9));
  74887. t10 = t2._environment0$_functions;
  74888. t10 = H.setRuntimeTypeInfo(t10.slice(0), H._arrayInstanceType(t10));
  74889. t11 = t2._environment0$_mixins;
  74890. t11 = H.setRuntimeTypeInfo(t11.slice(0), H._arrayInstanceType(t11));
  74891. environment = O.Environment$_0(P.LinkedHashMap_LinkedHashMap$_empty(t4, t5), P.LinkedHashMap_LinkedHashMap$_empty(t4, t6), P.LinkedHashSet_LinkedHashSet$_empty(t5), P.LinkedHashMap_LinkedHashMap$_empty(t5, t6), _null, _null, _null, t7, t8, t9, t10, t11, t2._environment0$_content);
  74892. t1._evaluate0$_withEnvironment$2(environment, new R._EvaluateVisitor__visitDynamicImport__closure1(_box_0, t1, importer, stylesheet, environment));
  74893. module = O._EnvironmentModule__EnvironmentModule1(environment, new V.CssStylesheet0(new P.UnmodifiableListView(C.List_empty12, type$.UnmodifiableListView_legacy_CssNode_2), Y.SourceFile$decoded(C.List_empty1, "<dummy module>").span$1(0)), C.C_EmptyExtender0, environment._environment0$_forwardedModules);
  74894. t1._evaluate0$_environment.importForwards$1(module);
  74895. if (module.transitivelyContainsCss)
  74896. t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  74897. visitor = new R._ImportedCssVisitor1(t1);
  74898. for (t1 = J.get$iterator$ax(_box_0.children); t1.moveNext$0();)
  74899. t1.get$current(t1).accept$1(visitor);
  74900. t3.remove$1(0, url);
  74901. },
  74902. $signature: 0
  74903. };
  74904. R._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
  74905. call$0: function() {
  74906. var t2, t3, _this = this,
  74907. t1 = _this.$this,
  74908. oldImporter = t1._evaluate0$_importer,
  74909. oldStylesheet = t1._evaluate0$_stylesheet,
  74910. oldRoot = t1._evaluate0$_root,
  74911. oldParent = t1._evaluate0$_parent,
  74912. oldEndOfImports = t1._evaluate0$_endOfImports,
  74913. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  74914. oldConfiguration = t1._evaluate0$_configuration;
  74915. t1._evaluate0$_importer = _this.importer;
  74916. t2 = t1._evaluate0$_stylesheet = _this.stylesheet;
  74917. t1._evaluate0$_parent = t1._evaluate0$_root = V.ModifiableCssStylesheet$0(t2.span);
  74918. t1._evaluate0$_endOfImports = 0;
  74919. t1._evaluate0$_outOfOrderImports = null;
  74920. t3 = new P.UnmodifiableListView(t2._stylesheet1$_forwards, type$.UnmodifiableListView_legacy_ForwardRule_2);
  74921. if (!t3.get$isEmpty(t3))
  74922. t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
  74923. t1.visitStylesheet$1(t2);
  74924. _this._box_0.children = t1._evaluate0$_addOutOfOrderImports$0();
  74925. t1._evaluate0$_importer = oldImporter;
  74926. t1._evaluate0$_stylesheet = oldStylesheet;
  74927. t1._evaluate0$_root = oldRoot;
  74928. t1._evaluate0$_parent = oldParent;
  74929. t1._evaluate0$_endOfImports = oldEndOfImports;
  74930. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  74931. t1._evaluate0$_configuration = oldConfiguration;
  74932. },
  74933. $signature: 0
  74934. };
  74935. R._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
  74936. call$0: function() {
  74937. var t1 = this.node;
  74938. return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  74939. },
  74940. $signature: 89
  74941. };
  74942. R._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
  74943. call$0: function() {
  74944. return this.node.get$spanWithoutContent();
  74945. },
  74946. "call*": "call$0",
  74947. $requiredArgCount: 0,
  74948. $signature: 33
  74949. };
  74950. R._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
  74951. call$0: function() {
  74952. var _this = this,
  74953. t1 = _this.$this,
  74954. t2 = t1._evaluate0$_environment,
  74955. oldContent = t2._environment0$_content;
  74956. t2._environment0$_content = _this.contentCallable;
  74957. new R._EvaluateVisitor_visitIncludeRule__closure1(t1, _this.mixin, _this.nodeWithSpan).call$0();
  74958. t2._environment0$_content = oldContent;
  74959. return null;
  74960. },
  74961. $signature: 0
  74962. };
  74963. R._EvaluateVisitor_visitIncludeRule__closure1.prototype = {
  74964. call$0: function() {
  74965. var t1 = this.$this,
  74966. t2 = t1._evaluate0$_environment,
  74967. oldInMixin = t2._environment0$_inMixin;
  74968. t2._environment0$_inMixin = true;
  74969. new R._EvaluateVisitor_visitIncludeRule___closure1(t1, this.mixin, this.nodeWithSpan).call$0();
  74970. t2._environment0$_inMixin = oldInMixin;
  74971. return null;
  74972. },
  74973. $signature: 0
  74974. };
  74975. R._EvaluateVisitor_visitIncludeRule___closure1.prototype = {
  74976. call$0: function() {
  74977. var t1, t2, t3, t4, _i;
  74978. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpan, _i = 0; _i < t2; ++_i)
  74979. t3._evaluate0$_addErrorSpan$2(t4, new R._EvaluateVisitor_visitIncludeRule____closure1(t3, t1[_i]));
  74980. },
  74981. $signature: 0
  74982. };
  74983. R._EvaluateVisitor_visitIncludeRule____closure1.prototype = {
  74984. call$0: function() {
  74985. return this.statement.accept$1(this.$this);
  74986. },
  74987. $signature: 21
  74988. };
  74989. R._EvaluateVisitor_visitMediaRule_closure3.prototype = {
  74990. call$0: function() {
  74991. var _this = this,
  74992. t1 = _this.$this,
  74993. t2 = _this.mergedQueries;
  74994. if (t2 == null)
  74995. t2 = _this.queries;
  74996. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
  74997. },
  74998. $signature: 0
  74999. };
  75000. R._EvaluateVisitor_visitMediaRule__closure1.prototype = {
  75001. call$0: function() {
  75002. var t3, _i,
  75003. t1 = this.$this,
  75004. t2 = t1._evaluate0$_styleRule;
  75005. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  75006. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  75007. t2[_i].accept$1(t1);
  75008. else
  75009. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  75010. },
  75011. $signature: 0
  75012. };
  75013. R._EvaluateVisitor_visitMediaRule___closure1.prototype = {
  75014. call$0: function() {
  75015. var t1, t2, t3, _i;
  75016. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  75017. t1[_i].accept$1(t3);
  75018. },
  75019. $signature: 0
  75020. };
  75021. R._EvaluateVisitor_visitMediaRule_closure4.prototype = {
  75022. call$1: function(node) {
  75023. var t1;
  75024. if (!type$.legacy_CssStyleRule_2._is(node))
  75025. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  75026. else
  75027. t1 = true;
  75028. return t1;
  75029. },
  75030. $signature: 8
  75031. };
  75032. R._EvaluateVisitor__visitMediaQueries_closure1.prototype = {
  75033. call$0: function() {
  75034. return F.MediaQueryParser$0(this.resolved, this.$this._evaluate0$_logger, null).parse$0();
  75035. },
  75036. $signature: 99
  75037. };
  75038. R._EvaluateVisitor_visitStyleRule_closure13.prototype = {
  75039. call$0: function() {
  75040. return E.KeyframeSelectorParser$0(this.selectorText.value, this.$this._evaluate0$_logger).parse$0();
  75041. },
  75042. $signature: 40
  75043. };
  75044. R._EvaluateVisitor_visitStyleRule_closure14.prototype = {
  75045. call$0: function() {
  75046. var t1, t2, t3, _i;
  75047. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  75048. t1[_i].accept$1(t3);
  75049. },
  75050. $signature: 0
  75051. };
  75052. R._EvaluateVisitor_visitStyleRule_closure15.prototype = {
  75053. call$1: function(node) {
  75054. return type$.legacy_CssStyleRule_2._is(node);
  75055. },
  75056. $signature: 8
  75057. };
  75058. R._EvaluateVisitor_visitStyleRule_closure16.prototype = {
  75059. call$0: function() {
  75060. var t1 = this.$this,
  75061. t2 = !t1._evaluate0$_stylesheet.plainCss;
  75062. return D.SelectorList_SelectorList$parse0(this.selectorText.value, t2, t2, t1._evaluate0$_logger);
  75063. },
  75064. $signature: 44
  75065. };
  75066. R._EvaluateVisitor_visitStyleRule_closure17.prototype = {
  75067. call$0: function() {
  75068. var t1 = this._box_0.parsedSelector,
  75069. t2 = this.$this,
  75070. t3 = t2._evaluate0$_styleRule;
  75071. t3 = t3 == null ? null : t3.originalSelector;
  75072. return t1.resolveParentSelectors$2$implicitParent(t3, !t2._evaluate0$_atRootExcludingStyleRule);
  75073. },
  75074. $signature: 44
  75075. };
  75076. R._EvaluateVisitor_visitStyleRule_closure18.prototype = {
  75077. call$0: function() {
  75078. var t1 = this.$this;
  75079. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
  75080. },
  75081. $signature: 0
  75082. };
  75083. R._EvaluateVisitor_visitStyleRule__closure1.prototype = {
  75084. call$0: function() {
  75085. var t1, t2, t3, _i;
  75086. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  75087. t1[_i].accept$1(t3);
  75088. },
  75089. $signature: 0
  75090. };
  75091. R._EvaluateVisitor_visitStyleRule_closure19.prototype = {
  75092. call$1: function(node) {
  75093. return type$.legacy_CssStyleRule_2._is(node);
  75094. },
  75095. $signature: 8
  75096. };
  75097. R._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
  75098. call$0: function() {
  75099. var t3, _i,
  75100. t1 = this.$this,
  75101. t2 = t1._evaluate0$_styleRule;
  75102. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  75103. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  75104. t2[_i].accept$1(t1);
  75105. else
  75106. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  75107. },
  75108. $signature: 0
  75109. };
  75110. R._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
  75111. call$0: function() {
  75112. var t1, t2, t3, _i;
  75113. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  75114. t1[_i].accept$1(t3);
  75115. },
  75116. $signature: 0
  75117. };
  75118. R._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
  75119. call$1: function(node) {
  75120. return type$.legacy_CssStyleRule_2._is(node);
  75121. },
  75122. $signature: 8
  75123. };
  75124. R._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
  75125. call$0: function() {
  75126. var t1 = this.override;
  75127. this.$this._evaluate0$_environment.setVariable$4$global(this.node.name, t1.value, t1.assignmentNode, true);
  75128. },
  75129. $signature: 0
  75130. };
  75131. R._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
  75132. call$0: function() {
  75133. var t1 = this.node;
  75134. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  75135. },
  75136. $signature: 21
  75137. };
  75138. R._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
  75139. call$0: function() {
  75140. var t1 = this.$this,
  75141. t2 = this.node;
  75142. t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  75143. },
  75144. $signature: 0
  75145. };
  75146. R._EvaluateVisitor_visitUseRule_closure1.prototype = {
  75147. call$1: function(module) {
  75148. var t1 = this.node;
  75149. this.$this._evaluate0$_environment.addModule$3$namespace(module, t1, t1.namespace);
  75150. },
  75151. $signature: 86
  75152. };
  75153. R._EvaluateVisitor_visitWarnRule_closure1.prototype = {
  75154. call$0: function() {
  75155. return this.node.expression.accept$1(this.$this);
  75156. },
  75157. $signature: 21
  75158. };
  75159. R._EvaluateVisitor_visitWhileRule_closure1.prototype = {
  75160. call$0: function() {
  75161. var t1, t2, t3, result;
  75162. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  75163. result = t3._evaluate0$_handleReturn$2(t1, new R._EvaluateVisitor_visitWhileRule__closure1(t3));
  75164. if (result != null)
  75165. return result;
  75166. }
  75167. return null;
  75168. },
  75169. $signature: 21
  75170. };
  75171. R._EvaluateVisitor_visitWhileRule__closure1.prototype = {
  75172. call$1: function(child) {
  75173. return child.accept$1(this.$this);
  75174. },
  75175. $signature: 70
  75176. };
  75177. R._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
  75178. call$0: function() {
  75179. var right, result,
  75180. t1 = this.node,
  75181. t2 = this.$this,
  75182. left = t1.left.accept$1(t2);
  75183. switch (t1.operator) {
  75184. case C.BinaryOperator_kjl0:
  75185. right = t1.right.accept$1(t2);
  75186. left.toString;
  75187. t1 = N.serializeValue(left, false, true) + "=";
  75188. right.toString;
  75189. return new D.SassString0(t1 + N.serializeValue(right, false, true), false);
  75190. case C.BinaryOperator_or_or_10:
  75191. return left.get$isTruthy() ? left : t1.right.accept$1(t2);
  75192. case C.BinaryOperator_and_and_20:
  75193. return left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  75194. case C.BinaryOperator_YlX0:
  75195. return J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  75196. case C.BinaryOperator_i5H0:
  75197. return !J.$eq$(left, t1.right.accept$1(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  75198. case C.BinaryOperator_AcR1:
  75199. return left.greaterThan$1(t1.right.accept$1(t2));
  75200. case C.BinaryOperator_1da0:
  75201. return left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  75202. case C.BinaryOperator_8qt0:
  75203. return left.lessThan$1(t1.right.accept$1(t2));
  75204. case C.BinaryOperator_33h0:
  75205. return left.lessThanOrEquals$1(t1.right.accept$1(t2));
  75206. case C.BinaryOperator_AcR2:
  75207. return left.plus$1(t1.right.accept$1(t2));
  75208. case C.BinaryOperator_iyO0:
  75209. return left.minus$1(t1.right.accept$1(t2));
  75210. case C.BinaryOperator_O1M0:
  75211. return left.times$1(t1.right.accept$1(t2));
  75212. case C.BinaryOperator_RTB0:
  75213. right = t1.right.accept$1(t2);
  75214. result = left.dividedBy$1(right);
  75215. if (t1.allowsSlash && left instanceof T.SassNumber0 && right instanceof T.SassNumber0)
  75216. return type$.legacy_SassNumber_2._as(result).withSlash$2(left, right);
  75217. else
  75218. return result;
  75219. case C.BinaryOperator_2ad0:
  75220. return left.modulo$1(t1.right.accept$1(t2));
  75221. default:
  75222. return null;
  75223. }
  75224. },
  75225. $signature: 21
  75226. };
  75227. R._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
  75228. call$0: function() {
  75229. var t1 = this.node;
  75230. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  75231. },
  75232. $signature: 21
  75233. };
  75234. R._EvaluateVisitor_visitListExpression_closure1.prototype = {
  75235. call$1: function(expression) {
  75236. return expression.accept$1(this.$this);
  75237. },
  75238. $signature: 342
  75239. };
  75240. R._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
  75241. call$0: function() {
  75242. var t1 = this.node.namespace,
  75243. t2 = this.plainName;
  75244. if (t1 == null)
  75245. t2 = H.stringReplaceAllUnchecked(t2, "_", "-");
  75246. return this.$this._evaluate0$_getFunction$2$namespace(t2, t1);
  75247. },
  75248. $signature: 89
  75249. };
  75250. R._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
  75251. call$0: function() {
  75252. var t1 = this.node;
  75253. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  75254. },
  75255. $signature: 21
  75256. };
  75257. R._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
  75258. call$0: function() {
  75259. var _this = this,
  75260. t1 = _this.$this,
  75261. t2 = _this.callable;
  75262. return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new R._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run));
  75263. },
  75264. $signature: 21
  75265. };
  75266. R._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
  75267. call$0: function() {
  75268. var _this = this,
  75269. t1 = _this.$this;
  75270. return t1._evaluate0$_environment.scope$1$1(new R._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run), type$.legacy_Value_2);
  75271. },
  75272. $signature: 21
  75273. };
  75274. R._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
  75275. call$0: function() {
  75276. var declaredArguments, minLength, t8, t9, i, t10, t11, t12, argument, value, t13, rest, argumentList, result, argumentWord, argumentNames, _this = this, _null = null,
  75277. t1 = _this.$this,
  75278. t2 = _this.evaluated,
  75279. t3 = t2.positional,
  75280. t4 = t3.length,
  75281. t5 = t2.named,
  75282. t6 = _this.callable.declaration.$arguments,
  75283. t7 = _this.nodeWithSpan;
  75284. t1._evaluate0$_verifyArguments$4(t4, t5, t6, t7);
  75285. declaredArguments = t6.$arguments;
  75286. t4 = declaredArguments.length;
  75287. minLength = Math.min(t3.length, t4);
  75288. for (t8 = t1._evaluate0$_sourceMap, t9 = t2.positionalNodes, i = 0; i < minLength; ++i) {
  75289. t10 = t1._evaluate0$_environment;
  75290. t11 = declaredArguments[i].name;
  75291. t12 = t3[i].withoutSlash$0();
  75292. t10.setLocalVariable$3(t11, t12, t8 ? t9[i] : _null);
  75293. }
  75294. for (i = t3.length, t9 = t2.namedNodes; i < t4; ++i) {
  75295. argument = declaredArguments[i];
  75296. t10 = argument.name;
  75297. value = t5.remove$1(0, t10);
  75298. if (value == null)
  75299. value = argument.defaultValue.accept$1(t1);
  75300. t11 = t1._evaluate0$_environment;
  75301. t12 = value.withoutSlash$0();
  75302. if (t8) {
  75303. t13 = t9.$index(0, t10);
  75304. if (t13 == null)
  75305. t13 = t1._evaluate0$_expressionNode$1(argument.defaultValue);
  75306. } else
  75307. t13 = _null;
  75308. t11.setLocalVariable$3(t10, t12, t13);
  75309. }
  75310. t8 = t6.restArgument;
  75311. if (t8 != null) {
  75312. rest = t3.length > t4 ? C.JSArray_methods.sublist$1(t3, t4) : C.List_empty16;
  75313. t2 = t2.separator;
  75314. argumentList = D.SassArgumentList$0(rest, t5, t2 === C.ListSeparator_undecided0 ? C.ListSeparator_comma0 : t2);
  75315. t1._evaluate0$_environment.setLocalVariable$3(t8, argumentList, t7);
  75316. } else
  75317. argumentList = _null;
  75318. result = _this.run.call$0();
  75319. if (argumentList == null)
  75320. return result;
  75321. if (t5.get$isEmpty(t5))
  75322. return result;
  75323. if (argumentList._argument_list$_wereKeywordsAccessed)
  75324. return result;
  75325. t2 = t5.get$keys(t5);
  75326. argumentWord = B.pluralize0("argument", t2.get$length(t2), _null);
  75327. t5 = t5.get$keys(t5);
  75328. argumentNames = B.toSentence0(H.MappedIterable_MappedIterable(t5, new R._EvaluateVisitor__runUserDefinedCallable____closure1(), H._instanceType(t5)._eval$1("Iterable.E"), type$.legacy_Object), "or");
  75329. throw H.wrapException(E.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + H.S(argumentNames) + ".", t7.get$span(), "invocation", P.LinkedHashMap_LinkedHashMap$_literal([t6.get$spanWithName(), "declaration"], type$.legacy_FileSpan, type$.legacy_String), t1._evaluate0$_stackTrace$1(t7.get$span())));
  75330. },
  75331. $signature: 21
  75332. };
  75333. R._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
  75334. call$1: function($name) {
  75335. return "$" + H.S($name);
  75336. },
  75337. $signature: 6
  75338. };
  75339. R._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
  75340. call$0: function() {
  75341. var t1, t2, t3, t4, _i, $returnValue;
  75342. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  75343. $returnValue = t2[_i].accept$1(t4);
  75344. if ($returnValue instanceof F.Value0)
  75345. return $returnValue;
  75346. }
  75347. throw H.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
  75348. },
  75349. $signature: 21
  75350. };
  75351. R._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
  75352. call$0: function() {
  75353. return this.overload.verify$2(this.evaluated.positional.length, this.namedSet);
  75354. },
  75355. $signature: 1
  75356. };
  75357. R._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
  75358. call$1: function($name) {
  75359. return "$" + H.S($name);
  75360. },
  75361. $signature: 6
  75362. };
  75363. R._EvaluateVisitor__evaluateArguments_closure1.prototype = {
  75364. call$2: function(key, value) {
  75365. var t1;
  75366. this.named.$indexSet(0, key, value);
  75367. t1 = this.namedNodes;
  75368. if (t1 != null)
  75369. t1.$indexSet(0, key, this.restNodeForSpan);
  75370. },
  75371. $signature: 75
  75372. };
  75373. R._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
  75374. call$1: function(value) {
  75375. return new F.ValueExpression0(value, null);
  75376. },
  75377. $signature: 48
  75378. };
  75379. R._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
  75380. call$1: function(value) {
  75381. return new F.ValueExpression0(value, null);
  75382. },
  75383. $signature: 48
  75384. };
  75385. R._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
  75386. call$2: function(key, value) {
  75387. this.named.$indexSet(0, key, new F.ValueExpression0(value, null));
  75388. },
  75389. $signature: 75
  75390. };
  75391. R._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
  75392. call$1: function(value) {
  75393. return new F.ValueExpression0(value, null);
  75394. },
  75395. $signature: 48
  75396. };
  75397. R._EvaluateVisitor__addRestMap_closure3.prototype = {
  75398. call$1: function(value) {
  75399. return this.T._eval$1("0*")._as(value);
  75400. },
  75401. $signature: function() {
  75402. return this.T._eval$1("0*(Value0*)");
  75403. }
  75404. };
  75405. R._EvaluateVisitor__addRestMap_closure4.prototype = {
  75406. call$2: function(key, value) {
  75407. var _this = this;
  75408. if (key instanceof D.SassString0)
  75409. _this.values.$indexSet(0, key.text, _this._box_0.convert.call$1(value));
  75410. else
  75411. throw H.wrapException(_this.$this._evaluate0$_exception$2(string$.Variab_ + H.S(key) + " is not a string in " + _this.map.toString$0(0) + ".", _this.nodeWithSpan.get$span()));
  75412. },
  75413. $signature: 45
  75414. };
  75415. R._EvaluateVisitor__verifyArguments_closure1.prototype = {
  75416. call$0: function() {
  75417. return this.$arguments.verify$2(this.positional, new M.MapKeySet(this.named, type$.MapKeySet_legacy_String));
  75418. },
  75419. $signature: 1
  75420. };
  75421. R._EvaluateVisitor_visitStringExpression_closure1.prototype = {
  75422. call$1: function(value) {
  75423. var t1, result;
  75424. if (typeof value == "string")
  75425. return value;
  75426. type$.legacy_Expression_2._as(value);
  75427. t1 = this.$this;
  75428. result = value.accept$1(t1);
  75429. return result instanceof D.SassString0 ? result.text : t1._evaluate0$_serialize$3$quote(result, value, false);
  75430. },
  75431. $signature: 41
  75432. };
  75433. R._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
  75434. call$0: function() {
  75435. var t1, t2, cur;
  75436. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  75437. cur = t1.__internal$_current;
  75438. cur.accept$1(t2);
  75439. }
  75440. },
  75441. $signature: 0
  75442. };
  75443. R._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
  75444. call$1: function(node) {
  75445. return type$.legacy_CssStyleRule_2._is(node);
  75446. },
  75447. $signature: 8
  75448. };
  75449. R._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
  75450. call$0: function() {
  75451. var t1, t2, cur;
  75452. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  75453. cur = t1.__internal$_current;
  75454. cur.accept$1(t2);
  75455. }
  75456. },
  75457. $signature: 0
  75458. };
  75459. R._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
  75460. call$1: function(node) {
  75461. return type$.legacy_CssStyleRule_2._is(node);
  75462. },
  75463. $signature: 8
  75464. };
  75465. R._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
  75466. call$0: function() {
  75467. var _this = this,
  75468. t1 = _this.$this,
  75469. t2 = _this.mergedQueries;
  75470. if (t2 == null)
  75471. t2 = _this.node.queries;
  75472. t1._evaluate0$_withMediaQueries$2(t2, new R._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
  75473. },
  75474. $signature: 0
  75475. };
  75476. R._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
  75477. call$0: function() {
  75478. var cur,
  75479. t1 = this.$this,
  75480. t2 = t1._evaluate0$_styleRule;
  75481. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  75482. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  75483. cur = t2.__internal$_current;
  75484. cur.accept$1(t1);
  75485. }
  75486. else
  75487. t1._evaluate0$_withParent$2$3$scopeWhen(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  75488. },
  75489. $signature: 0
  75490. };
  75491. R._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
  75492. call$0: function() {
  75493. var t1, t2, cur;
  75494. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  75495. cur = t1.__internal$_current;
  75496. cur.accept$1(t2);
  75497. }
  75498. },
  75499. $signature: 0
  75500. };
  75501. R._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
  75502. call$1: function(node) {
  75503. var t1;
  75504. if (!type$.legacy_CssStyleRule_2._is(node))
  75505. t1 = this.mergedQueries != null && type$.legacy_CssMediaRule_2._is(node);
  75506. else
  75507. t1 = true;
  75508. return t1;
  75509. },
  75510. $signature: 8
  75511. };
  75512. R._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
  75513. call$0: function() {
  75514. var t1 = this.$this;
  75515. t1._evaluate0$_withStyleRule$2(this.rule, new R._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
  75516. },
  75517. $signature: 0
  75518. };
  75519. R._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
  75520. call$0: function() {
  75521. var t1, t2, cur;
  75522. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  75523. cur = t1.__internal$_current;
  75524. cur.accept$1(t2);
  75525. }
  75526. },
  75527. $signature: 0
  75528. };
  75529. R._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
  75530. call$1: function(node) {
  75531. return type$.legacy_CssStyleRule_2._is(node);
  75532. },
  75533. $signature: 8
  75534. };
  75535. R._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
  75536. call$0: function() {
  75537. var cur,
  75538. t1 = this.$this,
  75539. t2 = t1._evaluate0$_styleRule;
  75540. if (!(t2 != null && !t1._evaluate0$_atRootExcludingStyleRule))
  75541. for (t2 = this.node.children, t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  75542. cur = t2.__internal$_current;
  75543. cur.accept$1(t1);
  75544. }
  75545. else
  75546. t1._evaluate0$_withParent$2$2(X.ModifiableCssStyleRule$0(t2.selector, t2.span, t2.originalSelector), new R._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.legacy_ModifiableCssStyleRule_2, type$.Null);
  75547. },
  75548. $signature: 0
  75549. };
  75550. R._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
  75551. call$0: function() {
  75552. var t1, t2, cur;
  75553. for (t1 = this.node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)), t2 = this.$this; t1.moveNext$0();) {
  75554. cur = t1.__internal$_current;
  75555. cur.accept$1(t2);
  75556. }
  75557. },
  75558. $signature: 0
  75559. };
  75560. R._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
  75561. call$1: function(node) {
  75562. return type$.legacy_CssStyleRule_2._is(node);
  75563. },
  75564. $signature: 8
  75565. };
  75566. R._EvaluateVisitor__performInterpolation_closure1.prototype = {
  75567. call$1: function(value) {
  75568. var t1, result, t2, t3;
  75569. if (typeof value == "string")
  75570. return value;
  75571. type$.legacy_Expression_2._as(value);
  75572. t1 = this.$this;
  75573. result = value.accept$1(t1);
  75574. if (this.warnForColor && result instanceof K.SassColor0 && $.$get$namesByColor0().containsKey$1(result)) {
  75575. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([""], type$.JSArray_legacy_Object), null);
  75576. t3 = $.$get$namesByColor0();
  75577. t1._evaluate0$_warn$2(string$.You_pr + H.S(t3.$index(0, result)) + string$.x20in_in + H.S(result) + string$.x2c_whicw + H.S(t3.$index(0, result)) + string$.x22x29__If + new V.BinaryOperationExpression0(C.BinaryOperator_AcR2, new D.StringExpression0(t2, true), value, false).toString$0(0) + "'.", value.get$span());
  75578. }
  75579. return t1._evaluate0$_serialize$3$quote(result, value, false);
  75580. },
  75581. $signature: 41
  75582. };
  75583. R._EvaluateVisitor__serialize_closure1.prototype = {
  75584. call$0: function() {
  75585. var t1 = this.value;
  75586. t1.toString;
  75587. return N.serializeValue(t1, false, this.quote);
  75588. },
  75589. $signature: 17
  75590. };
  75591. R._EvaluateVisitor__stackTrace_closure1.prototype = {
  75592. call$1: function(tuple) {
  75593. return this.$this._evaluate0$_stackFrame$2(tuple.item1, tuple.item2.get$span());
  75594. },
  75595. $signature: 132
  75596. };
  75597. R._ImportedCssVisitor1.prototype = {
  75598. visitCssAtRule$1: function(node) {
  75599. var t1 = node.isChildless ? null : new R._ImportedCssVisitor_visitCssAtRule_closure1();
  75600. this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
  75601. },
  75602. visitCssComment$1: function(node) {
  75603. return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
  75604. },
  75605. visitCssDeclaration$1: function(node) {
  75606. },
  75607. visitCssImport$1: function(node) {
  75608. var t1 = this._evaluate0$_visitor,
  75609. t2 = t1._evaluate0$_parent,
  75610. t3 = t1._evaluate0$_root;
  75611. if (t2 != t3)
  75612. t1._evaluate0$_addChild$1(node);
  75613. else if (t1._evaluate0$_endOfImports === J.get$length$asx(t3.children._collection$_source)) {
  75614. t1._evaluate0$_addChild$1(node);
  75615. t1._evaluate0$_endOfImports = t1._evaluate0$_endOfImports + 1;
  75616. } else {
  75617. t2 = t1._evaluate0$_outOfOrderImports;
  75618. (t2 == null ? t1._evaluate0$_outOfOrderImports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ModifiableCssImport_2) : t2).push(node);
  75619. }
  75620. },
  75621. visitCssKeyframeBlock$1: function(node) {
  75622. },
  75623. visitCssMediaRule$1: function(node) {
  75624. var t1 = this._evaluate0$_visitor,
  75625. t2 = t1._evaluate0$_mediaQueries;
  75626. t1._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssMediaRule_closure1(t2 == null || t1._evaluate0$_mergeMediaQueries$2(t2, node.queries) != null));
  75627. },
  75628. visitCssStyleRule$1: function(node) {
  75629. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssStyleRule_closure1());
  75630. },
  75631. visitCssStylesheet$1: function(node) {
  75632. var t1, cur;
  75633. for (t1 = node.children, t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  75634. cur = t1.__internal$_current;
  75635. cur.accept$1(this);
  75636. }
  75637. },
  75638. visitCssSupportsRule$1: function(node) {
  75639. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new R._ImportedCssVisitor_visitCssSupportsRule_closure1());
  75640. }
  75641. };
  75642. R._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
  75643. call$1: function(node) {
  75644. return type$.legacy_CssStyleRule_2._is(node);
  75645. },
  75646. $signature: 8
  75647. };
  75648. R._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
  75649. call$1: function(node) {
  75650. var t1;
  75651. if (!type$.legacy_CssStyleRule_2._is(node))
  75652. t1 = this.hasBeenMerged && type$.legacy_CssMediaRule_2._is(node);
  75653. else
  75654. t1 = true;
  75655. return t1;
  75656. },
  75657. $signature: 8
  75658. };
  75659. R._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
  75660. call$1: function(node) {
  75661. return type$.legacy_CssStyleRule_2._is(node);
  75662. },
  75663. $signature: 8
  75664. };
  75665. R._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
  75666. call$1: function(node) {
  75667. return type$.legacy_CssStyleRule_2._is(node);
  75668. },
  75669. $signature: 8
  75670. };
  75671. R._ArgumentResults1.prototype = {};
  75672. E.SassException0.prototype = {
  75673. get$trace: function(_) {
  75674. return new Y.Trace(P.List_List$unmodifiable(H.setRuntimeTypeInfo([B.frameForSpan0(G.SourceSpanException.prototype.get$span.call(this), "root stylesheet", null)], type$.JSArray_legacy_Frame), type$.legacy_Frame), new P._StringStackTrace(null));
  75675. },
  75676. get$span: function() {
  75677. return G.SourceSpanException.prototype.get$span.call(this);
  75678. },
  75679. toString$0: function(_) {
  75680. var t2, _i, frame, t3, _this = this,
  75681. buffer = new P.StringBuffer(""),
  75682. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  75683. buffer._contents = t1;
  75684. buffer._contents = t1 + G.SourceSpanException.prototype.get$span.call(_this).highlight$1$color(null);
  75685. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  75686. frame = t1[_i];
  75687. frame.toString;
  75688. if (J.get$length$asx(frame) === 0)
  75689. continue;
  75690. t3 = buffer._contents += "\n";
  75691. buffer._contents = t3 + (" " + H.S(frame));
  75692. }
  75693. t1 = buffer._contents;
  75694. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75695. }
  75696. };
  75697. E.MultiSpanSassException0.prototype = {
  75698. toString$0: function(_) {
  75699. var t2, _i, frame, t3, _this = this,
  75700. buffer = new P.StringBuffer(""),
  75701. t1 = "Error: " + H.S(_this._span_exception$_message) + "\n";
  75702. buffer._contents = t1;
  75703. buffer._contents = t1 + U.Highlighter$multiple(G.SourceSpanException.prototype.get$span.call(_this), _this.primaryLabel, _this.secondarySpans, false, null, null).highlight$0();
  75704. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  75705. frame = t1[_i];
  75706. frame.toString;
  75707. if (J.get$length$asx(frame) === 0)
  75708. continue;
  75709. t3 = buffer._contents += "\n";
  75710. buffer._contents = t3 + (" " + H.S(frame));
  75711. }
  75712. t1 = buffer._contents;
  75713. return t1.charCodeAt(0) == 0 ? t1 : t1;
  75714. }
  75715. };
  75716. E.SassRuntimeException0.prototype = {
  75717. get$trace: function(receiver) {
  75718. return this.trace;
  75719. }
  75720. };
  75721. E.MultiSpanSassRuntimeException0.prototype = {$isSassRuntimeException0: 1,
  75722. get$trace: function(receiver) {
  75723. return this.trace;
  75724. }
  75725. };
  75726. E.SassFormatException0.prototype = {
  75727. get$source: function() {
  75728. return P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(G.SourceSpanException.prototype.get$span.call(this).file._decodedChars, 0, null), 0, null);
  75729. },
  75730. $isFormatException: 1,
  75731. $isSourceSpanFormatException: 1
  75732. };
  75733. E.SassScriptException0.prototype = {
  75734. toString$0: function(_) {
  75735. return this.message + string$.x0a_BUG_;
  75736. },
  75737. get$message: function(receiver) {
  75738. return this.message;
  75739. }
  75740. };
  75741. E.MultiSpanSassScriptException0.prototype = {};
  75742. D.Exports.prototype = {};
  75743. X.ExtendRule0.prototype = {
  75744. accept$1$1: function(visitor) {
  75745. return visitor.visitExtendRule$1(this);
  75746. },
  75747. accept$1: function(visitor) {
  75748. return this.accept$1$1(visitor, type$.dynamic);
  75749. },
  75750. toString$0: function(_) {
  75751. return "@extend " + this.selector.toString$0(0);
  75752. },
  75753. $isAstNode0: 1,
  75754. $isStatement0: 1,
  75755. get$span: function() {
  75756. return this.span;
  75757. }
  75758. };
  75759. F.Extender0.prototype = {
  75760. get$isEmpty: function(_) {
  75761. var t1 = this._extender$_extensions;
  75762. return t1.get$isEmpty(t1);
  75763. },
  75764. get$simpleSelectors: function() {
  75765. return new M.MapKeySet(this._extender$_selectors, type$.MapKeySet_legacy_SimpleSelector_2);
  75766. },
  75767. extensionsWhereTarget$1: function($async$callback) {
  75768. var $async$self = this;
  75769. return P._makeSyncStarIterable(function() {
  75770. var callback = $async$callback;
  75771. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4;
  75772. return function $async$extensionsWhereTarget$1($async$errorCode, $async$result) {
  75773. if ($async$errorCode === 1) {
  75774. $async$currentError = $async$result;
  75775. $async$goto = $async$handler;
  75776. }
  75777. while (true)
  75778. switch ($async$goto) {
  75779. case 0:
  75780. // Function start
  75781. t1 = $async$self._extender$_extensions, t2 = t1.get$keys(t1), t2 = t2.get$iterator(t2);
  75782. case 2:
  75783. // for condition
  75784. if (!t2.moveNext$0()) {
  75785. // goto after for
  75786. $async$goto = 3;
  75787. break;
  75788. }
  75789. t3 = t2.get$current(t2);
  75790. if (!callback.call$1(t3)) {
  75791. // goto for condition
  75792. $async$goto = 2;
  75793. break;
  75794. }
  75795. t3 = J.get$values$z(t1.$index(0, t3)), t3 = t3.get$iterator(t3);
  75796. case 4:
  75797. // for condition
  75798. if (!t3.moveNext$0()) {
  75799. // goto after for
  75800. $async$goto = 5;
  75801. break;
  75802. }
  75803. t4 = t3.get$current(t3);
  75804. $async$goto = t4 instanceof A.MergedExtension0 ? 6 : 8;
  75805. break;
  75806. case 6:
  75807. // then
  75808. t4 = t4.unmerge$0();
  75809. $async$goto = 9;
  75810. return P._IterationMarker_yieldStar(new H.WhereIterable(t4, new F.Extender_extensionsWhereTarget_closure0(), t4.$ti._eval$1("WhereIterable<Iterable.E>")));
  75811. case 9:
  75812. // after yield
  75813. // goto join
  75814. $async$goto = 7;
  75815. break;
  75816. case 8:
  75817. // else
  75818. $async$goto = !t4.isOptional ? 10 : 11;
  75819. break;
  75820. case 10:
  75821. // then
  75822. $async$goto = 12;
  75823. return t4;
  75824. case 12:
  75825. // after yield
  75826. case 11:
  75827. // join
  75828. case 7:
  75829. // join
  75830. // goto for condition
  75831. $async$goto = 4;
  75832. break;
  75833. case 5:
  75834. // after for
  75835. // goto for condition
  75836. $async$goto = 2;
  75837. break;
  75838. case 3:
  75839. // after for
  75840. // implicit return
  75841. return P._IterationMarker_endOfIteration();
  75842. case 1:
  75843. // rethrow
  75844. return P._IterationMarker_uncaughtError($async$currentError);
  75845. }
  75846. };
  75847. }, type$.legacy_Extension_2);
  75848. },
  75849. addSelector$3: function(selector, span, mediaContext) {
  75850. var originalSelector, error, t1, t2, t3, _i, exception, modifiableSelector, _this = this;
  75851. selector = selector;
  75852. originalSelector = selector;
  75853. if (!originalSelector.get$isInvisible())
  75854. for (t1 = originalSelector.components, t2 = t1.length, t3 = _this._extender$_originals, _i = 0; _i < t2; ++_i)
  75855. t3.add$1(0, t1[_i]);
  75856. t1 = _this._extender$_extensions;
  75857. if (t1.get$isNotEmpty(t1))
  75858. try {
  75859. selector = _this._extender$_extendList$3(originalSelector, t1, mediaContext);
  75860. } catch (exception) {
  75861. t1 = H.unwrapException(exception);
  75862. if (t1 instanceof E.SassException0) {
  75863. error = t1;
  75864. throw H.wrapException(E.SassException$0("From " + error.get$span().message$1(0, "") + "\n" + H.S(error._span_exception$_message), span));
  75865. } else
  75866. throw exception;
  75867. }
  75868. modifiableSelector = new F.ModifiableCssValue0(selector, span, type$.ModifiableCssValue_legacy_SelectorList_2);
  75869. if (mediaContext != null)
  75870. _this._extender$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  75871. _this._extender$_registerSelector$2(selector, modifiableSelector);
  75872. return modifiableSelector;
  75873. },
  75874. _extender$_registerSelector$2: function(list, selector) {
  75875. var t1, t2, t3, _i, t4, t5, _i0, component, t6, t7, _i1, simple;
  75876. for (t1 = list.components, t2 = t1.length, t3 = this._extender$_selectors, _i = 0; _i < t2; ++_i)
  75877. for (t4 = t1[_i].components, t5 = t4.length, _i0 = 0; _i0 < t5; ++_i0) {
  75878. component = t4[_i0];
  75879. if (component instanceof X.CompoundSelector0)
  75880. for (t6 = component.components, t7 = t6.length, _i1 = 0; _i1 < t7; ++_i1) {
  75881. simple = t6[_i1];
  75882. J.add$1$ax(t3.putIfAbsent$2(simple, new F.Extender__registerSelector_closure0()), selector);
  75883. if (simple instanceof D.PseudoSelector0 && simple.selector != null)
  75884. this._extender$_registerSelector$2(simple.selector, selector);
  75885. }
  75886. }
  75887. },
  75888. addExtension$4: function(extender, target, extend, mediaContext) {
  75889. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, _i, complex, t12, state, existingState, t13, _i0, component, t14, t15, _i1, simple, newExtensionsByTarget, additionalExtensions, _this = this,
  75890. selectors = _this._extender$_selectors.$index(0, target),
  75891. t1 = _this._extender$_extensionsByExtender,
  75892. existingExtensions = t1.$index(0, target),
  75893. sources = _this._extender$_extensions.putIfAbsent$2(target, new F.Extender_addExtension_closure2());
  75894. for (t2 = extender.value.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extender$_sourceSpecificity, t6 = extender.span, t7 = extend.span, t8 = extend.isOptional, t9 = existingExtensions != null, t10 = type$.legacy_ComplexSelector_2, t11 = type$.legacy_Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
  75895. complex = t2[_i];
  75896. if (complex._complex0$_maxSpecificity == null)
  75897. complex._complex0$_computeSpecificity$0();
  75898. t12 = complex._complex0$_maxSpecificity;
  75899. state = new S.Extension0(complex, target, t12, t8, false, mediaContext, t6, t7);
  75900. existingState = sources.$index(0, complex);
  75901. if (existingState != null) {
  75902. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingState, state));
  75903. continue;
  75904. }
  75905. sources.$indexSet(0, complex, state);
  75906. for (t12 = complex.components, t13 = t12.length, _i0 = 0; _i0 < t13; ++_i0) {
  75907. component = t12[_i0];
  75908. if (component instanceof X.CompoundSelector0)
  75909. for (t14 = component.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1) {
  75910. simple = t14[_i1];
  75911. J.add$1$ax(t1.putIfAbsent$2(simple, new F.Extender_addExtension_closure3()), state);
  75912. t5.putIfAbsent$2(simple, new F.Extender_addExtension_closure4(complex));
  75913. }
  75914. }
  75915. if (!t4 || t9) {
  75916. if (newExtensions == null)
  75917. newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t10, t11);
  75918. newExtensions.$indexSet(0, complex, state);
  75919. }
  75920. }
  75921. if (newExtensions == null)
  75922. return;
  75923. t1 = type$.legacy_SimpleSelector_2;
  75924. newExtensionsByTarget = P.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2);
  75925. if (t9) {
  75926. additionalExtensions = _this._extender$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  75927. if (additionalExtensions != null)
  75928. B.mapAddAll20(newExtensionsByTarget, additionalExtensions, t1, t10, t11);
  75929. }
  75930. if (!t4)
  75931. _this._extender$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
  75932. },
  75933. _extender$_extendExistingExtensions$2: function(extensions, newExtensions) {
  75934. var extension, selectors, error, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, sources, exception, containsExtension, t7, t8, first, _i0, complex, t9, t10, t11, t12, t13, t14, withExtender, existingExtension, _i1, component, _i2;
  75935. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extender$_extensionsByExtender, t4 = type$.legacy_SimpleSelector_2, t5 = type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2, t6 = this._extender$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  75936. extension = t1[_i];
  75937. sources = t6.$index(0, extension.target);
  75938. selectors = null;
  75939. try {
  75940. selectors = this._extender$_extendComplex$3(extension.extender, newExtensions, extension.mediaContext);
  75941. if (selectors == null)
  75942. continue;
  75943. } catch (exception) {
  75944. t1 = H.unwrapException(exception);
  75945. if (t1 instanceof E.SassException0) {
  75946. error = t1;
  75947. throw H.wrapException(E.SassException$0("From " + extension.extenderSpan.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  75948. } else
  75949. throw exception;
  75950. }
  75951. containsExtension = J.$eq$(J.get$first$ax(selectors), extension.extender);
  75952. for (t7 = selectors, t8 = t7.length, first = false, _i0 = 0; _i0 < t7.length; t7.length === t8 || (0, H.throwConcurrentModificationError)(t7), ++_i0) {
  75953. complex = t7[_i0];
  75954. if (containsExtension && first) {
  75955. first = false;
  75956. continue;
  75957. }
  75958. t9 = extension;
  75959. t10 = t9.target;
  75960. t11 = t9.extenderSpan;
  75961. t12 = t9.span;
  75962. t13 = t9.mediaContext;
  75963. t14 = t9.specificity;
  75964. t9 = t9.isOptional;
  75965. if (t14 == null) {
  75966. if (complex._complex0$_maxSpecificity == null)
  75967. complex._complex0$_computeSpecificity$0();
  75968. t14 = complex._complex0$_maxSpecificity;
  75969. }
  75970. withExtender = new S.Extension0(complex, t10, t14, t9, false, t13, t11, t12);
  75971. existingExtension = sources.$index(0, complex);
  75972. if (existingExtension != null)
  75973. sources.$indexSet(0, complex, A.MergedExtension_merge0(existingExtension, withExtender));
  75974. else {
  75975. sources.$indexSet(0, complex, withExtender);
  75976. for (t9 = complex.components, t10 = t9.length, _i1 = 0; _i1 < t10; ++_i1) {
  75977. component = t9[_i1];
  75978. if (component instanceof X.CompoundSelector0)
  75979. for (t11 = component.components, t12 = t11.length, _i2 = 0; _i2 < t12; ++_i2)
  75980. J.add$1$ax(t3.putIfAbsent$2(t11[_i2], new F.Extender__extendExistingExtensions_closure1()), withExtender);
  75981. }
  75982. if (newExtensions.containsKey$1(extension.target)) {
  75983. if (additionalExtensions == null)
  75984. additionalExtensions = P.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  75985. additionalExtensions.putIfAbsent$2(extension.target, new F.Extender__extendExistingExtensions_closure2()).$indexSet(0, complex, withExtender);
  75986. }
  75987. }
  75988. }
  75989. if (!containsExtension)
  75990. sources.remove$1(0, extension.extender);
  75991. }
  75992. return additionalExtensions;
  75993. },
  75994. _extender$_extendExistingSelectors$2: function(selectors, newExtensions) {
  75995. var selector, error, t1, t2, oldValue, exception;
  75996. for (t1 = selectors.get$iterator(selectors), t2 = this._extender$_mediaContexts; t1.moveNext$0();) {
  75997. selector = t1.get$current(t1);
  75998. oldValue = selector.value;
  75999. try {
  76000. selector.value = this._extender$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  76001. } catch (exception) {
  76002. t1 = H.unwrapException(exception);
  76003. if (t1 instanceof E.SassException0) {
  76004. error = t1;
  76005. throw H.wrapException(E.SassException$0("From " + selector.span.message$1(0, "") + "\n" + H.S(error._span_exception$_message), error.get$span()));
  76006. } else
  76007. throw exception;
  76008. }
  76009. if (oldValue == selector.value)
  76010. continue;
  76011. this._extender$_registerSelector$2(selector.value, selector);
  76012. }
  76013. },
  76014. addExtensions$1: function(extenders) {
  76015. var t1, t2, t3, _this = this, _box_0 = {};
  76016. _box_0.newExtensions = _box_0.selectorsToExtend = _box_0.extensionsToExtend = null;
  76017. for (t1 = J.get$iterator$ax(extenders), t2 = _this._extender$_sourceSpecificity; t1.moveNext$0();) {
  76018. t3 = t1.get$current(t1);
  76019. if (t3.get$isEmpty(t3))
  76020. continue;
  76021. t2.addAll$1(0, t3.get$_extender$_sourceSpecificity());
  76022. t3.get$_extender$_extensions().forEach$1(0, new F.Extender_addExtensions_closure0(_box_0, _this, t3));
  76023. }
  76024. t1 = _box_0.newExtensions;
  76025. if (t1 == null)
  76026. return;
  76027. t2 = _box_0.extensionsToExtend;
  76028. if (t2 != null)
  76029. _this._extender$_extendExistingExtensions$2(t2, t1);
  76030. t1 = _box_0.selectorsToExtend;
  76031. if (t1 != null)
  76032. _this._extender$_extendExistingSelectors$2(t1, _box_0.newExtensions);
  76033. },
  76034. _extender$_extendList$3: function(list, extensions, mediaQueryContext) {
  76035. var t1, t2, t3, extended, i, complex, result, t4;
  76036. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
  76037. complex = t1[i];
  76038. result = this._extender$_extendComplex$3(complex, extensions, mediaQueryContext);
  76039. if (result == null) {
  76040. if (extended != null)
  76041. extended.push(complex);
  76042. } else {
  76043. if (extended == null)
  76044. if (i === 0)
  76045. extended = H.setRuntimeTypeInfo([], t3);
  76046. else {
  76047. t4 = C.JSArray_methods.sublist$2(t1, 0, i);
  76048. extended = H.setRuntimeTypeInfo(t4.slice(0), H._arrayInstanceType(t4)._eval$1("JSArray<1>"));
  76049. }
  76050. C.JSArray_methods.addAll$1(extended, result);
  76051. }
  76052. }
  76053. if (extended == null)
  76054. return list;
  76055. t1 = this._extender$_originals;
  76056. return D.SelectorList$0(J.where$1$ax(this._extender$_trim$2(extended, t1.get$contains(t1)), new F.Extender__extendList_closure0()));
  76057. },
  76058. _extender$_extendComplex$3: function(complex, extensions, mediaQueryContext) {
  76059. var t1, t2, t3, t4, t5, t6, t7, t8, t9, extendedNotExpanded, i, component, extended, result, t10,
  76060. _s28_ = "components may not be empty.",
  76061. _box_0 = {},
  76062. isOriginal = this._extender$_originals.contains$1(0, complex);
  76063. for (t1 = complex.components, t2 = t1.length, t3 = type$.JSArray_legacy_ComplexSelector_2, t4 = type$.JSArray_legacy_ComplexSelectorComponent_2, t5 = type$.legacy_ComplexSelectorComponent_2, t6 = H._arrayInstanceType(t1), t7 = t6._precomputed1, t6 = t6._eval$1("SubListIterable<1>"), t8 = t6._eval$1("MappedListIterable<ListIterable.E,List<ComplexSelector0*>*>"), t9 = t8._eval$1("ListIterable.E"), extendedNotExpanded = null, i = 0; i < t2; ++i) {
  76064. component = t1[i];
  76065. if (component instanceof X.CompoundSelector0) {
  76066. extended = this._extender$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  76067. if (extended == null) {
  76068. if (extendedNotExpanded != null) {
  76069. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  76070. result.fixed$length = Array;
  76071. result.immutable$list = Array;
  76072. t10 = result;
  76073. if (t10.length === 0)
  76074. H.throwExpression(P.ArgumentError$(_s28_));
  76075. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t10, false)], t3));
  76076. }
  76077. } else {
  76078. if (extendedNotExpanded == null) {
  76079. t10 = new H.SubListIterable(t1, 0, i, t6);
  76080. t10.SubListIterable$3(t1, 0, i, t7);
  76081. extendedNotExpanded = P.List_List$from(new H.MappedListIterable(t10, new F.Extender__extendComplex_closure1(complex), t8), true, t9);
  76082. }
  76083. C.JSArray_methods.add$1(extendedNotExpanded, extended);
  76084. }
  76085. } else if (extendedNotExpanded != null) {
  76086. result = P.List_List$from(H.setRuntimeTypeInfo([component], t4), false, t5);
  76087. result.fixed$length = Array;
  76088. result.immutable$list = Array;
  76089. t10 = result;
  76090. if (t10.length === 0)
  76091. H.throwExpression(P.ArgumentError$(_s28_));
  76092. C.JSArray_methods.add$1(extendedNotExpanded, H.setRuntimeTypeInfo([new S.ComplexSelector0(t10, false)], t3));
  76093. }
  76094. }
  76095. if (extendedNotExpanded == null)
  76096. return null;
  76097. _box_0.first = true;
  76098. t1 = type$.legacy_ComplexSelector_2;
  76099. t1 = J.expand$1$1$ax(Y.paths0(extendedNotExpanded, t1), new F.Extender__extendComplex_closure2(_box_0, this, complex), t1);
  76100. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  76101. },
  76102. _extender$_extendCompound$4$inOriginal: function(compound, extensions, mediaQueryContext, inOriginal) {
  76103. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, options, i, simple, extended, result, t13, t14, unifiedPaths, isOriginal, _this = this, _null = null,
  76104. _s28_ = "components may not be empty.",
  76105. _box_1 = {},
  76106. t1 = _this._extender$_mode,
  76107. targetsUsed = t1 === C.ExtendMode_normal0 || extensions.get$length(extensions) < 2 ? _null : P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_SimpleSelector_2);
  76108. for (t2 = compound.components, t3 = t2.length, t4 = type$.JSArray_legacy_List_legacy_Extension_2, t5 = type$.JSArray_legacy_Extension_2, t6 = type$.JSArray_legacy_ComplexSelectorComponent_2, t7 = type$.legacy_ComplexSelectorComponent_2, t8 = H._arrayInstanceType(t2), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = type$.legacy_SimpleSelector_2, t11 = _this._extender$_sourceSpecificity, t12 = type$.JSArray_legacy_SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
  76109. simple = t2[i];
  76110. extended = _this._extender$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  76111. if (extended == null) {
  76112. if (options != null) {
  76113. result = P.List_List$from(H.setRuntimeTypeInfo([simple], t12), false, t10);
  76114. result.fixed$length = Array;
  76115. result.immutable$list = Array;
  76116. t13 = result;
  76117. if (t13.length === 0)
  76118. H.throwExpression(P.ArgumentError$(_s28_));
  76119. result = P.List_List$from(H.setRuntimeTypeInfo([new X.CompoundSelector0(t13)], t6), false, t7);
  76120. result.fixed$length = Array;
  76121. result.immutable$list = Array;
  76122. t13 = result;
  76123. if (t13.length === 0)
  76124. H.throwExpression(P.ArgumentError$(_s28_));
  76125. t14 = t11.$index(0, simple);
  76126. if (t14 == null)
  76127. t14 = 0;
  76128. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t13, false), _null, t14, true, true, _null, _null, _null)], t5));
  76129. }
  76130. } else {
  76131. if (options == null) {
  76132. options = H.setRuntimeTypeInfo([], t4);
  76133. if (i !== 0) {
  76134. t13 = new H.SubListIterable(t2, 0, i, t8);
  76135. t13.SubListIterable$3(t2, 0, i, t9);
  76136. result = P.List_List$from(t13, false, t10);
  76137. result.fixed$length = Array;
  76138. result.immutable$list = Array;
  76139. t13 = result;
  76140. compound = new X.CompoundSelector0(t13);
  76141. if (t13.length === 0)
  76142. H.throwExpression(P.ArgumentError$(_s28_));
  76143. result = P.List_List$from(H.setRuntimeTypeInfo([compound], t6), false, t7);
  76144. result.fixed$length = Array;
  76145. result.immutable$list = Array;
  76146. t13 = result;
  76147. if (t13.length === 0)
  76148. H.throwExpression(P.ArgumentError$(_s28_));
  76149. t14 = _this._extender$_sourceSpecificityFor$1(compound);
  76150. options.push(H.setRuntimeTypeInfo([new S.Extension0(new S.ComplexSelector0(t13, false), _null, t14, true, true, _null, _null, _null)], t5));
  76151. }
  76152. }
  76153. C.JSArray_methods.addAll$1(options, extended);
  76154. }
  76155. }
  76156. if (options == null)
  76157. return _null;
  76158. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.get$length(extensions))
  76159. return _null;
  76160. if (options.length === 1)
  76161. return J.map$1$1$ax(C.JSArray_methods.get$first(options), new F.Extender__extendCompound_closure5(mediaQueryContext), type$.legacy_ComplexSelector_2).toList$0(0);
  76162. t1 = _box_1.first = t1 !== C.ExtendMode_replace0;
  76163. unifiedPaths = J.map$1$1$ax(Y.paths0(options, type$.legacy_Extension_2), new F.Extender__extendCompound_closure6(_box_1, mediaQueryContext), type$.legacy_List_legacy_ComplexSelector_2);
  76164. isOriginal = new F.Extender__extendCompound_closure7();
  76165. if (inOriginal && t1)
  76166. isOriginal = new F.Extender__extendCompound_closure8(J.get$first$ax(unifiedPaths.get$first(unifiedPaths)));
  76167. t1 = unifiedPaths.where$1(0, new F.Extender__extendCompound_closure9());
  76168. t2 = t1.$ti._eval$1("ExpandIterable<Iterable.E,ComplexSelector0*>");
  76169. return _this._extender$_trim$2(P.List_List$from(new H.ExpandIterable(t1, new F.Extender__extendCompound_closure10(), t2), true, t2._eval$1("Iterable.E")), isOriginal);
  76170. },
  76171. _extender$_extendSimple$4: function(simple, extensions, mediaQueryContext, targetsUsed) {
  76172. var extended, result,
  76173. t1 = new F.Extender__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
  76174. if (simple instanceof D.PseudoSelector0 && simple.selector != null) {
  76175. extended = this._extender$_extendPseudo$3(simple, extensions, mediaQueryContext);
  76176. if (extended != null)
  76177. return new H.MappedListIterable(extended, new F.Extender__extendSimple_closure0(this, t1), H._arrayInstanceType(extended)._eval$1("MappedListIterable<1,List<Extension0*>*>"));
  76178. }
  76179. result = t1.call$1(simple);
  76180. return result == null ? null : H.setRuntimeTypeInfo([result], type$.JSArray_legacy_List_legacy_Extension_2);
  76181. },
  76182. _extender$_extensionForSimple$1: function(simple) {
  76183. var t1 = S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(H.setRuntimeTypeInfo([simple], type$.JSArray_legacy_SimpleSelector_2))], type$.JSArray_legacy_ComplexSelectorComponent_2), false),
  76184. t2 = this._extender$_sourceSpecificity.$index(0, simple);
  76185. return S.Extension$oneOff0(t1, true, t2 == null ? 0 : t2);
  76186. },
  76187. _extender$_extendPseudo$3: function(pseudo, extensions, mediaQueryContext) {
  76188. var complexes, t2, result,
  76189. t1 = pseudo.selector,
  76190. extended = this._extender$_extendList$3(t1, extensions, mediaQueryContext);
  76191. if (extended == t1)
  76192. return null;
  76193. complexes = extended.components;
  76194. t2 = pseudo.normalizedName === "not";
  76195. if (t2 && !C.JSArray_methods.any$1(t1.components, new F.Extender__extendPseudo_closure4()) && C.JSArray_methods.any$1(complexes, new F.Extender__extendPseudo_closure5()))
  76196. complexes = new H.WhereIterable(complexes, new F.Extender__extendPseudo_closure6(), H._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  76197. complexes = J.expand$1$1$ax(complexes, new F.Extender__extendPseudo_closure7(pseudo), type$.legacy_ComplexSelector_2);
  76198. if (t2 && t1.components.length === 1) {
  76199. t1 = H.MappedIterable_MappedIterable(complexes, new F.Extender__extendPseudo_closure8(pseudo), complexes.$ti._eval$1("Iterable.E"), type$.legacy_PseudoSelector_2);
  76200. result = P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  76201. return result.length === 0 ? null : result;
  76202. } else
  76203. return H.setRuntimeTypeInfo([D.PseudoSelector$0(pseudo.name, pseudo.argument, !pseudo.isClass, D.SelectorList$0(complexes))], type$.JSArray_legacy_PseudoSelector_2);
  76204. },
  76205. _extender$_trim$2: function(selectors, isOriginal) {
  76206. var result, i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, component;
  76207. if (selectors.length > 100)
  76208. return selectors;
  76209. result = Q.QueueList$(null, type$.legacy_ComplexSelector_2);
  76210. $label0$0:
  76211. for (i = selectors.length - 1, t1 = H._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  76212. _box_0 = {};
  76213. complex1 = selectors[i];
  76214. if (isOriginal.call$1(complex1)) {
  76215. for (j = 0; j < numOriginals; ++j)
  76216. if (J.$eq$(result.$index(0, j), complex1)) {
  76217. B.rotateSlice0(result, 0, j + 1);
  76218. continue $label0$0;
  76219. }
  76220. ++numOriginals;
  76221. result.addFirst$1(complex1);
  76222. continue $label0$0;
  76223. }
  76224. _box_0.maxSpecificity = 0;
  76225. for (t3 = complex1.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  76226. component = t3[_i];
  76227. if (component instanceof X.CompoundSelector0)
  76228. _box_0.maxSpecificity = Math.max(_box_0.maxSpecificity, this._extender$_sourceSpecificityFor$1(component));
  76229. }
  76230. if (result.any$1(result, new F.Extender__trim_closure1(_box_0, complex1)))
  76231. continue $label0$0;
  76232. t3 = new H.SubListIterable(selectors, 0, i, t1);
  76233. t3.SubListIterable$3(selectors, 0, i, t2);
  76234. if (t3.any$1(0, new F.Extender__trim_closure2(_box_0, complex1)))
  76235. continue $label0$0;
  76236. result.addFirst$1(complex1);
  76237. }
  76238. return result;
  76239. },
  76240. _extender$_sourceSpecificityFor$1: function(compound) {
  76241. var t1, t2, t3, specificity, _i, t4;
  76242. for (t1 = compound.components, t2 = t1.length, t3 = this._extender$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  76243. t4 = t3.$index(0, t1[_i]);
  76244. specificity = Math.max(specificity, H.checkNum(t4 == null ? 0 : t4));
  76245. }
  76246. return specificity;
  76247. },
  76248. clone$0: function() {
  76249. var t3, t4, _this = this,
  76250. t1 = type$.legacy_SimpleSelector_2,
  76251. newSelectors = P.LinkedHashMap_LinkedHashMap$_empty(t1, type$.legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2),
  76252. t2 = type$.legacy_ModifiableCssValue_legacy_SelectorList_2,
  76253. newMediaContexts = P.LinkedHashMap_LinkedHashMap$_empty(t2, type$.legacy_List_legacy_CssMediaQuery_2),
  76254. oldToNewSelectors = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_CssValue_legacy_SelectorList_2, t2);
  76255. _this._extender$_selectors.forEach$1(0, new F.Extender_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  76256. t2 = type$.legacy_Extension_2;
  76257. t3 = B.copyMapOfMap0(_this._extender$_extensions, t1, type$.legacy_ComplexSelector_2, t2);
  76258. t2 = B.copyMapOfList0(_this._extender$_extensionsByExtender, t1, t2);
  76259. t1 = P._LinkedIdentityHashMap__LinkedIdentityHashMap$es6(t1, type$.legacy_int);
  76260. t1.addAll$1(0, _this._extender$_sourceSpecificity);
  76261. t4 = new P._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_legacy_ComplexSelector_2);
  76262. t4.addAll$1(0, _this._extender$_originals);
  76263. return new S.Tuple2(new F.Extender0(newSelectors, t3, t2, newMediaContexts, t1, t4, C.ExtendMode_normal0), oldToNewSelectors, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2);
  76264. },
  76265. get$_extender$_extensions: function() {
  76266. return this._extender$_extensions;
  76267. },
  76268. get$_extender$_sourceSpecificity: function() {
  76269. return this._extender$_sourceSpecificity;
  76270. }
  76271. };
  76272. F.Extender_extensionsWhereTarget_closure0.prototype = {
  76273. call$1: function(extension) {
  76274. return !extension.isOptional;
  76275. },
  76276. $signature: 343
  76277. };
  76278. F.Extender__registerSelector_closure0.prototype = {
  76279. call$0: function() {
  76280. return P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2);
  76281. },
  76282. $signature: 344
  76283. };
  76284. F.Extender_addExtension_closure2.prototype = {
  76285. call$0: function() {
  76286. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  76287. },
  76288. $signature: 84
  76289. };
  76290. F.Extender_addExtension_closure3.prototype = {
  76291. call$0: function() {
  76292. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  76293. },
  76294. $signature: 159
  76295. };
  76296. F.Extender_addExtension_closure4.prototype = {
  76297. call$0: function() {
  76298. return this.complex.get$maxSpecificity();
  76299. },
  76300. $signature: 11
  76301. };
  76302. F.Extender__extendExistingExtensions_closure1.prototype = {
  76303. call$0: function() {
  76304. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  76305. },
  76306. $signature: 159
  76307. };
  76308. F.Extender__extendExistingExtensions_closure2.prototype = {
  76309. call$0: function() {
  76310. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  76311. },
  76312. $signature: 84
  76313. };
  76314. F.Extender_addExtensions_closure0.prototype = {
  76315. call$2: function(target, newSources) {
  76316. var t1, extensionsForTarget, t2, t3, t4, selectorsForTarget, t5, existingSources, _this = this;
  76317. if (target instanceof N.PlaceholderSelector0 && T.isPrivate0(target.name))
  76318. return;
  76319. t1 = _this.$this;
  76320. extensionsForTarget = t1._extender$_extensionsByExtender.$index(0, target);
  76321. t2 = extensionsForTarget == null;
  76322. if (!t2) {
  76323. t3 = _this._box_0;
  76324. t4 = t3.extensionsToExtend;
  76325. C.JSArray_methods.addAll$1(t4 == null ? t3.extensionsToExtend = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2) : t4, extensionsForTarget);
  76326. }
  76327. selectorsForTarget = t1._extender$_selectors.$index(0, target);
  76328. t3 = selectorsForTarget != null;
  76329. if (t3) {
  76330. t4 = _this._box_0;
  76331. t5 = t4.selectorsToExtend;
  76332. (t5 == null ? t4.selectorsToExtend = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2) : t5).addAll$1(0, selectorsForTarget);
  76333. }
  76334. t1 = t1._extender$_extensions;
  76335. existingSources = t1.$index(0, target);
  76336. if (existingSources == null) {
  76337. t4 = _this.extender;
  76338. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  76339. if (!t2 || t3) {
  76340. t1 = _this._box_0;
  76341. t2 = t1.newExtensions;
  76342. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2) : t2;
  76343. t1.$indexSet(0, target, t4.get$_extender$_extensions().$index(0, target));
  76344. }
  76345. } else
  76346. newSources.forEach$1(0, new F.Extender_addExtensions__closure0(_this._box_0, existingSources, extensionsForTarget, selectorsForTarget, target));
  76347. },
  76348. $signature: 347
  76349. };
  76350. F.Extender_addExtensions__closure0.prototype = {
  76351. call$2: function(extender, extension) {
  76352. var t2, _this = this,
  76353. t1 = _this.existingSources;
  76354. if (t1.containsKey$1(extender))
  76355. return;
  76356. t1.$indexSet(0, extender, extension);
  76357. if (_this.extensionsForTarget != null || _this.selectorsForTarget != null) {
  76358. t1 = _this._box_0;
  76359. t2 = t1.newExtensions;
  76360. t1 = t2 == null ? t1.newExtensions = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SimpleSelector_2, type$.legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2) : t2;
  76361. t1.putIfAbsent$2(_this.target, new F.Extender_addExtensions___closure1()).putIfAbsent$2(extender, new F.Extender_addExtensions___closure2(extension));
  76362. }
  76363. },
  76364. $signature: 348
  76365. };
  76366. F.Extender_addExtensions___closure1.prototype = {
  76367. call$0: function() {
  76368. return P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_ComplexSelector_2, type$.legacy_Extension_2);
  76369. },
  76370. $signature: 84
  76371. };
  76372. F.Extender_addExtensions___closure2.prototype = {
  76373. call$0: function() {
  76374. return this.extension;
  76375. },
  76376. $signature: 349
  76377. };
  76378. F.Extender__extendList_closure0.prototype = {
  76379. call$1: function(complex) {
  76380. return complex != null;
  76381. },
  76382. $signature: 13
  76383. };
  76384. F.Extender__extendComplex_closure1.prototype = {
  76385. call$1: function(component) {
  76386. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([component], type$.JSArray_legacy_ComplexSelectorComponent_2), this.complex.lineBreak)], type$.JSArray_legacy_ComplexSelector_2);
  76387. },
  76388. $signature: 351
  76389. };
  76390. F.Extender__extendComplex_closure2.prototype = {
  76391. call$1: function(path) {
  76392. var t1 = Y.weave0(J.map$1$1$ax(path, new F.Extender__extendComplex__closure1(), type$.legacy_List_legacy_ComplexSelectorComponent_2).toList$0(0));
  76393. return new H.MappedListIterable(t1, new F.Extender__extendComplex__closure2(this._box_0, this.$this, this.complex, path), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  76394. },
  76395. $signature: 352
  76396. };
  76397. F.Extender__extendComplex__closure1.prototype = {
  76398. call$1: function(complex) {
  76399. return complex.components;
  76400. },
  76401. $signature: 353
  76402. };
  76403. F.Extender__extendComplex__closure2.prototype = {
  76404. call$1: function(components) {
  76405. var _this = this,
  76406. t1 = _this.complex,
  76407. outputComplex = S.ComplexSelector$0(components, t1.lineBreak || J.any$1$ax(_this.path, new F.Extender__extendComplex___closure0())),
  76408. t2 = _this._box_0;
  76409. if (t2.first && _this.$this._extender$_originals.contains$1(0, t1))
  76410. _this.$this._extender$_originals.add$1(0, outputComplex);
  76411. t2.first = false;
  76412. return outputComplex;
  76413. },
  76414. $signature: 71
  76415. };
  76416. F.Extender__extendComplex___closure0.prototype = {
  76417. call$1: function(inputComplex) {
  76418. return inputComplex.lineBreak;
  76419. },
  76420. $signature: 13
  76421. };
  76422. F.Extender__extendCompound_closure5.prototype = {
  76423. call$1: function(state) {
  76424. state.assertCompatibleMediaContext$1(this.mediaQueryContext);
  76425. return state.extender;
  76426. },
  76427. $signature: 355
  76428. };
  76429. F.Extender__extendCompound_closure6.prototype = {
  76430. call$1: function(path) {
  76431. var complexes, toUnify, t2, t3, originals, t4, _box_0 = {},
  76432. t1 = this._box_1;
  76433. if (t1.first) {
  76434. t1.first = false;
  76435. complexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([X.CompoundSelector$0(J.expand$1$1$ax(path, new F.Extender__extendCompound__closure1(), type$.legacy_SimpleSelector_2))], type$.JSArray_legacy_ComplexSelectorComponent_2)], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2);
  76436. } else {
  76437. toUnify = Q.QueueList$(null, type$.legacy_List_legacy_ComplexSelectorComponent_2);
  76438. for (t1 = J.get$iterator$ax(path), t2 = type$.legacy_CompoundSelector_2, t3 = type$.JSArray_legacy_SimpleSelector_2, originals = null; t1.moveNext$0();) {
  76439. t4 = t1.get$current(t1);
  76440. if (t4.isOriginal) {
  76441. if (originals == null)
  76442. originals = H.setRuntimeTypeInfo([], t3);
  76443. C.JSArray_methods.addAll$1(originals, t2._as(C.JSArray_methods.get$last(t4.extender.components)).components);
  76444. } else
  76445. toUnify._queue_list$_add$1(t4.extender.components);
  76446. }
  76447. if (originals != null)
  76448. toUnify.addFirst$1(H.setRuntimeTypeInfo([X.CompoundSelector$0(originals)], type$.JSArray_legacy_ComplexSelectorComponent_2));
  76449. complexes = Y.unifyComplex0(toUnify);
  76450. if (complexes == null)
  76451. return null;
  76452. }
  76453. _box_0.lineBreak = false;
  76454. for (t1 = J.get$iterator$ax(path), t2 = this.mediaQueryContext; t1.moveNext$0();) {
  76455. t3 = t1.get$current(t1);
  76456. t3.assertCompatibleMediaContext$1(t2);
  76457. _box_0.lineBreak = _box_0.lineBreak || t3.extender.lineBreak;
  76458. }
  76459. t1 = J.map$1$1$ax(complexes, new F.Extender__extendCompound__closure2(_box_0), type$.legacy_ComplexSelector_2);
  76460. return P.List_List$from(t1, true, t1.$ti._eval$1("ListIterable.E"));
  76461. },
  76462. $signature: 356
  76463. };
  76464. F.Extender__extendCompound__closure1.prototype = {
  76465. call$1: function(state) {
  76466. return type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$last(state.extender.components)).components;
  76467. },
  76468. $signature: 357
  76469. };
  76470. F.Extender__extendCompound__closure2.prototype = {
  76471. call$1: function(components) {
  76472. return S.ComplexSelector$0(components, this._box_0.lineBreak);
  76473. },
  76474. $signature: 71
  76475. };
  76476. F.Extender__extendCompound_closure7.prototype = {
  76477. call$1: function(_) {
  76478. return false;
  76479. },
  76480. $signature: 13
  76481. };
  76482. F.Extender__extendCompound_closure8.prototype = {
  76483. call$1: function(complex) {
  76484. return J.$eq$(complex, this.original);
  76485. },
  76486. $signature: 13
  76487. };
  76488. F.Extender__extendCompound_closure9.prototype = {
  76489. call$1: function(complexes) {
  76490. return complexes != null;
  76491. },
  76492. $signature: 358
  76493. };
  76494. F.Extender__extendCompound_closure10.prototype = {
  76495. call$1: function(l) {
  76496. return l;
  76497. },
  76498. $signature: 359
  76499. };
  76500. F.Extender__extendSimple_withoutPseudo0.prototype = {
  76501. call$1: function(simple) {
  76502. var t1, t2,
  76503. extenders = this.extensions.$index(0, simple);
  76504. if (extenders == null)
  76505. return null;
  76506. t1 = this.targetsUsed;
  76507. if (t1 != null)
  76508. t1.add$1(0, simple);
  76509. t1 = this.$this;
  76510. if (t1._extender$_mode === C.ExtendMode_replace0) {
  76511. t1 = extenders.get$values(extenders);
  76512. return P.List_List$from(t1, true, H._instanceType(t1)._eval$1("Iterable.E"));
  76513. }
  76514. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Extension_2);
  76515. t2.push(t1._extender$_extensionForSimple$1(simple));
  76516. for (t1 = extenders.get$values(extenders), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  76517. t2.push(t1.get$current(t1));
  76518. return t2;
  76519. },
  76520. $signature: 360
  76521. };
  76522. F.Extender__extendSimple_closure0.prototype = {
  76523. call$1: function(pseudo) {
  76524. var t1 = this.withoutPseudo.call$1(pseudo);
  76525. return t1 == null ? H.setRuntimeTypeInfo([this.$this._extender$_extensionForSimple$1(pseudo)], type$.JSArray_legacy_Extension_2) : t1;
  76526. },
  76527. $signature: 361
  76528. };
  76529. F.Extender__extendPseudo_closure4.prototype = {
  76530. call$1: function(complex) {
  76531. return complex.components.length > 1;
  76532. },
  76533. $signature: 13
  76534. };
  76535. F.Extender__extendPseudo_closure5.prototype = {
  76536. call$1: function(complex) {
  76537. return complex.components.length === 1;
  76538. },
  76539. $signature: 13
  76540. };
  76541. F.Extender__extendPseudo_closure6.prototype = {
  76542. call$1: function(complex) {
  76543. return complex.components.length <= 1;
  76544. },
  76545. $signature: 13
  76546. };
  76547. F.Extender__extendPseudo_closure7.prototype = {
  76548. call$1: function(complex) {
  76549. var innerPseudo, t2,
  76550. t1 = complex.components;
  76551. if (t1.length !== 1)
  76552. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76553. if (!(C.JSArray_methods.get$first(t1) instanceof X.CompoundSelector0))
  76554. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76555. t1 = type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$first(t1)).components;
  76556. if (t1.length !== 1)
  76557. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76558. if (!(C.JSArray_methods.get$first(t1) instanceof D.PseudoSelector0))
  76559. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76560. innerPseudo = type$.legacy_PseudoSelector_2._as(C.JSArray_methods.get$first(t1));
  76561. t1 = innerPseudo.selector;
  76562. if (t1 == null)
  76563. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76564. t2 = this.pseudo;
  76565. switch (t2.normalizedName) {
  76566. case "not":
  76567. if (innerPseudo.normalizedName !== "matches")
  76568. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  76569. return t1.components;
  76570. case "matches":
  76571. case "any":
  76572. case "current":
  76573. case "nth-child":
  76574. case "nth-last-child":
  76575. if (innerPseudo.name !== t2.name)
  76576. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  76577. if (innerPseudo.argument != t2.argument)
  76578. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  76579. return t1.components;
  76580. case "has":
  76581. case "host":
  76582. case "host-context":
  76583. case "slotted":
  76584. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  76585. default:
  76586. return H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelector_2);
  76587. }
  76588. },
  76589. $signature: 362
  76590. };
  76591. F.Extender__extendPseudo_closure8.prototype = {
  76592. call$1: function(complex) {
  76593. var t1 = this.pseudo;
  76594. return D.PseudoSelector$0(t1.name, t1.argument, !t1.isClass, D.SelectorList$0(H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2)));
  76595. },
  76596. $signature: 363
  76597. };
  76598. F.Extender__trim_closure1.prototype = {
  76599. call$1: function(complex2) {
  76600. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  76601. },
  76602. $signature: 13
  76603. };
  76604. F.Extender__trim_closure2.prototype = {
  76605. call$1: function(complex2) {
  76606. return complex2.get$minSpecificity() >= this._box_0.maxSpecificity && Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  76607. },
  76608. $signature: 13
  76609. };
  76610. F.Extender_clone_closure0.prototype = {
  76611. call$2: function(simple, selectors) {
  76612. var t1, t2, t3, t4, t5, t6, newSelector, mediaContext, _this = this,
  76613. newSelectorSet = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_ModifiableCssValue_legacy_SelectorList_2);
  76614. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  76615. for (t1 = selectors.get$iterator(selectors), t2 = type$.ModifiableCssValue_legacy_SelectorList_2, t3 = _this.oldToNewSelectors, t4 = _this.$this._extender$_mediaContexts, t5 = _this.newMediaContexts; t1.moveNext$0();) {
  76616. t6 = t1.get$current(t1);
  76617. newSelector = new F.ModifiableCssValue0(t6.value, t6.span, t2);
  76618. newSelectorSet.add$1(0, newSelector);
  76619. t3.$indexSet(0, t6, newSelector);
  76620. mediaContext = t4.$index(0, t6);
  76621. if (mediaContext != null)
  76622. t5.$indexSet(0, newSelector, mediaContext);
  76623. }
  76624. },
  76625. $signature: 364
  76626. };
  76627. S.Extension0.prototype = {
  76628. assertCompatibleMediaContext$1: function(mediaContext) {
  76629. var t1 = this.mediaContext;
  76630. if (t1 == null)
  76631. return;
  76632. if (mediaContext != null && C.C_ListEquality.equals$2(0, t1, mediaContext))
  76633. return;
  76634. throw H.wrapException(E.SassException$0(string$.You_ma, this.span));
  76635. },
  76636. toString$0: function(_) {
  76637. var t1 = H.S(this.extender) + " {@extend " + H.S(this.target);
  76638. return t1 + (this.isOptional ? " !optional" : "") + "}";
  76639. },
  76640. get$target: function() {
  76641. return this.target;
  76642. },
  76643. get$span: function() {
  76644. return this.span;
  76645. }
  76646. };
  76647. E.FiberClass.prototype = {};
  76648. E.Fiber.prototype = {};
  76649. F.FilesystemImporter0.prototype = {
  76650. canonicalize$1: function(url) {
  76651. var t1, resolved;
  76652. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  76653. return null;
  76654. t1 = $.$get$context();
  76655. resolved = B.resolveImportPath0(D.join(this._filesystem$_loadPath, t1.style.pathFromUri$1(M._parseUri(url)), null));
  76656. if (resolved == null)
  76657. t1 = null;
  76658. else
  76659. t1 = t1.toUri$1(J.$eq$(J.get$platform$x(self.process), "win32") || J.$eq$(J.get$platform$x(self.process), "darwin") ? F._realCasePath0(D.absolute(t1.normalize$1(resolved))) : t1.canonicalize$1(resolved));
  76660. return t1;
  76661. },
  76662. load$1: function(_, url) {
  76663. var path = $.$get$context().style.pathFromUri$1(M._parseUri(url)),
  76664. t1 = B.readFile0(path),
  76665. t2 = M.Syntax_forPath0(path),
  76666. t3 = url.get$scheme();
  76667. if (t3 === "")
  76668. H.throwExpression(P.ArgumentError$value(url, "sourceMapUrl", "must be absolute"));
  76669. return new E.ImporterResult0(t1, url, t2);
  76670. },
  76671. toString$0: function(_) {
  76672. return this._filesystem$_loadPath;
  76673. }
  76674. };
  76675. G.FixedLengthListBuilder0.prototype = {
  76676. add$1: function(_, element) {
  76677. var t1, _this = this;
  76678. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  76679. t1 = _this._fixed_length_list_builder0$_index;
  76680. _this._fixed_length_list_builder0$_list[t1] = element;
  76681. _this._fixed_length_list_builder0$_index = t1 + 1;
  76682. },
  76683. addAll$1: function(_, elements) {
  76684. var _this = this;
  76685. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  76686. C.JSArray_methods.setAll$2(_this._fixed_length_list_builder0$_list, _this._fixed_length_list_builder0$_index, elements);
  76687. _this._fixed_length_list_builder0$_index = _this._fixed_length_list_builder0$_index + elements.length;
  76688. },
  76689. addRange$3: function(elements, start, end) {
  76690. var $length, t1, _this = this;
  76691. _this._fixed_length_list_builder0$_checkUnbuilt$0();
  76692. $length = (end == null ? J.get$length$asx(elements._collection$_source) : end) - start;
  76693. t1 = _this._fixed_length_list_builder0$_index;
  76694. C.JSArray_methods.setRange$4(_this._fixed_length_list_builder0$_list, t1, t1 + $length, elements, start);
  76695. _this._fixed_length_list_builder0$_index += $length;
  76696. },
  76697. addRange$2: function(elements, start) {
  76698. return this.addRange$3(elements, start, null);
  76699. },
  76700. build$0: function() {
  76701. this._fixed_length_list_builder0$_checkUnbuilt$0();
  76702. this._fixed_length_list_builder0$_index = -1;
  76703. return this._fixed_length_list_builder0$_list;
  76704. },
  76705. _fixed_length_list_builder0$_checkUnbuilt$0: function() {
  76706. if (this._fixed_length_list_builder0$_index === -1)
  76707. throw H.wrapException(P.StateError$("build() has already been called."));
  76708. }
  76709. };
  76710. B.ForRule0.prototype = {
  76711. accept$1$1: function(visitor) {
  76712. return visitor.visitForRule$1(this);
  76713. },
  76714. accept$1: function(visitor) {
  76715. return this.accept$1$1(visitor, type$.dynamic);
  76716. },
  76717. toString$0: function(_) {
  76718. var _this = this,
  76719. t1 = "@for $" + _this.variable + " from " + H.S(_this.from) + " ",
  76720. t2 = _this.children;
  76721. return t1 + (_this.isExclusive ? "to" : "through") + " " + H.S(_this.to) + " {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}";
  76722. },
  76723. get$span: function() {
  76724. return this.span;
  76725. }
  76726. };
  76727. L.ForwardRule0.prototype = {
  76728. accept$1$1: function(visitor) {
  76729. return visitor.visitForwardRule$1(this);
  76730. },
  76731. accept$1: function(visitor) {
  76732. return this.accept$1$1(visitor, type$.dynamic);
  76733. },
  76734. toString$0: function(_) {
  76735. var t3, _this = this,
  76736. t1 = "@forward " + H.S(new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([J.toString$0$(_this.url)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  76737. t2 = _this.shownMixinsAndFunctions;
  76738. if (t2 != null)
  76739. t1 = t1 + " show " + _this._forward_rule0$_memberList$2(t2, _this.shownVariables);
  76740. else {
  76741. t2 = _this.hiddenMixinsAndFunctions;
  76742. if (t2 != null) {
  76743. t3 = t2._base;
  76744. t3 = t3.get$isNotEmpty(t3);
  76745. } else
  76746. t3 = false;
  76747. if (t3)
  76748. t1 = t1 + " hide " + _this._forward_rule0$_memberList$2(t2, _this.hiddenVariables);
  76749. }
  76750. t2 = _this.prefix;
  76751. if (t2 != null)
  76752. t1 += " as " + t2 + "*";
  76753. t2 = _this.configuration;
  76754. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  76755. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76756. },
  76757. _forward_rule0$_memberList$2: function(mixinsAndFunctions, variables) {
  76758. var t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  76759. t2 = this.shownMixinsAndFunctions;
  76760. if (t2 != null)
  76761. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  76762. t1.push(t2.get$current(t2));
  76763. t2 = this.shownVariables;
  76764. if (t2 != null)
  76765. for (t2 = t2._base, t2 = t2.get$iterator(t2); t2.moveNext$0();)
  76766. t1.push("$" + H.S(t2.get$current(t2)));
  76767. return C.JSArray_methods.join$1(t1, ", ");
  76768. },
  76769. $isAstNode0: 1,
  76770. $isStatement0: 1,
  76771. get$span: function() {
  76772. return this.span;
  76773. }
  76774. };
  76775. R.ForwardedModuleView0.prototype = {
  76776. get$url: function() {
  76777. return this._forwarded_view0$_inner.get$url();
  76778. },
  76779. get$upstream: function() {
  76780. return this._forwarded_view0$_inner.get$upstream();
  76781. },
  76782. get$extender: function() {
  76783. return this._forwarded_view0$_inner.get$extender();
  76784. },
  76785. get$css: function(_) {
  76786. var t1 = this._forwarded_view0$_inner;
  76787. return t1.get$css(t1);
  76788. },
  76789. get$transitivelyContainsCss: function() {
  76790. return this._forwarded_view0$_inner.get$transitivelyContainsCss();
  76791. },
  76792. get$transitivelyContainsExtensions: function() {
  76793. return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
  76794. },
  76795. setVariable$3: function($name, value, nodeWithSpan) {
  76796. var _s19_ = "Undefined variable.",
  76797. t1 = this._forwarded_view0$_rule,
  76798. t2 = t1.shownVariables;
  76799. if (t2 != null && !t2._base.contains$1(0, $name))
  76800. throw H.wrapException(E.SassScriptException$0(_s19_));
  76801. else {
  76802. t2 = t1.hiddenVariables;
  76803. if (t2 != null && t2._base.contains$1(0, $name))
  76804. throw H.wrapException(E.SassScriptException$0(_s19_));
  76805. }
  76806. t1 = t1.prefix;
  76807. if (t1 != null) {
  76808. if (!C.JSString_methods.startsWith$1($name, t1))
  76809. throw H.wrapException(E.SassScriptException$0(_s19_));
  76810. $name = C.JSString_methods.substring$1($name, t1.length);
  76811. }
  76812. return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  76813. },
  76814. variableIdentity$1: function($name) {
  76815. var t1 = this._forwarded_view0$_rule.prefix;
  76816. if (t1 != null)
  76817. $name = J.substring$1$s($name, t1.length);
  76818. return this._forwarded_view0$_inner.variableIdentity$1($name);
  76819. },
  76820. $eq: function(_, other) {
  76821. if (other == null)
  76822. return false;
  76823. return other instanceof R.ForwardedModuleView0 && J.$eq$(this._forwarded_view0$_inner, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
  76824. },
  76825. get$hashCode: function(_) {
  76826. return (J.get$hashCode$(this._forwarded_view0$_inner) ^ H.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
  76827. },
  76828. cloneCss$0: function() {
  76829. return R.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._eval$1("1*"));
  76830. },
  76831. toString$0: function(_) {
  76832. return "forwarded " + H.S(this._forwarded_view0$_inner);
  76833. },
  76834. $isModule0: 1,
  76835. get$variables: function() {
  76836. return this.variables;
  76837. },
  76838. get$variableNodes: function() {
  76839. return this.variableNodes;
  76840. },
  76841. get$functions: function(receiver) {
  76842. return this.functions;
  76843. },
  76844. get$mixins: function() {
  76845. return this.mixins;
  76846. }
  76847. };
  76848. F.FunctionExpression0.prototype = {
  76849. accept$1$1: function(visitor) {
  76850. return visitor.visitFunctionExpression$1(this);
  76851. },
  76852. accept$1: function(visitor) {
  76853. return this.accept$1$1(visitor, type$.dynamic);
  76854. },
  76855. toString$0: function(_) {
  76856. var t1 = this.namespace;
  76857. t1 = t1 != null ? t1 + "." : "";
  76858. t1 += this.name.toString$0(0) + this.$arguments.toString$0(0);
  76859. return t1.charCodeAt(0) == 0 ? t1 : t1;
  76860. },
  76861. $isExpression0: 1,
  76862. $isAstNode0: 1,
  76863. get$span: function() {
  76864. return this.span;
  76865. }
  76866. };
  76867. F.JSFunction0.prototype = {};
  76868. F.SupportsFunction0.prototype = {
  76869. toString$0: function(_) {
  76870. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  76871. },
  76872. $isAstNode0: 1,
  76873. get$span: function() {
  76874. return this.span;
  76875. }
  76876. };
  76877. F.SassFunction0.prototype = {
  76878. accept$1$1: function(visitor) {
  76879. var t1, t2;
  76880. if (!visitor._inspect)
  76881. H.throwExpression(E.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value."));
  76882. t1 = visitor._buffer;
  76883. t1.write$1(0, "get-function(");
  76884. t2 = this.callable;
  76885. visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
  76886. t1.writeCharCode$1(41);
  76887. return null;
  76888. },
  76889. accept$1: function(visitor) {
  76890. return this.accept$1$1(visitor, type$.dynamic);
  76891. },
  76892. assertFunction$1: function($name) {
  76893. return this;
  76894. },
  76895. $eq: function(_, other) {
  76896. if (other == null)
  76897. return false;
  76898. return other instanceof F.SassFunction0 && J.$eq$(this.callable, other.callable);
  76899. },
  76900. get$hashCode: function(_) {
  76901. return J.get$hashCode$(this.callable);
  76902. }
  76903. };
  76904. M.FunctionRule0.prototype = {
  76905. accept$1$1: function(visitor) {
  76906. return visitor.visitFunctionRule$1(this);
  76907. },
  76908. accept$1: function(visitor) {
  76909. return this.accept$1$1(visitor, type$.dynamic);
  76910. },
  76911. toString$0: function(_) {
  76912. var t1 = this.children;
  76913. return "@function " + H.S(this.name) + "(" + H.S(this.$arguments) + ") {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  76914. }
  76915. };
  76916. Y.unifyComplex_closure0.prototype = {
  76917. call$1: function(complex) {
  76918. var t1 = J.getInterceptor$asx(complex);
  76919. return t1.sublist$2(complex, 0, t1.get$length(complex) - 1);
  76920. },
  76921. $signature: 122
  76922. };
  76923. Y._weaveParents_closure6.prototype = {
  76924. call$2: function(group1, group2) {
  76925. var unified, t1, _null = null;
  76926. if (C.C_ListEquality.equals$2(0, group1, group2))
  76927. return group1;
  76928. if (!(J.get$first$ax(group1) instanceof X.CompoundSelector0) || !(J.get$first$ax(group2) instanceof X.CompoundSelector0))
  76929. return _null;
  76930. if (Y.complexIsParentSuperselector0(group1, group2))
  76931. return group2;
  76932. if (Y.complexIsParentSuperselector0(group2, group1))
  76933. return group1;
  76934. if (!Y._mustUnify0(group1, group2))
  76935. return _null;
  76936. unified = Y.unifyComplex0(H.setRuntimeTypeInfo([group1, group2], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  76937. if (unified == null)
  76938. return _null;
  76939. t1 = J.getInterceptor$asx(unified);
  76940. if (t1.get$length(unified) > 1)
  76941. return _null;
  76942. return t1.get$first(unified);
  76943. },
  76944. $signature: 366
  76945. };
  76946. Y._weaveParents_closure7.prototype = {
  76947. call$1: function(sequence) {
  76948. return Y.complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
  76949. },
  76950. $signature: 367
  76951. };
  76952. Y._weaveParents_closure8.prototype = {
  76953. call$1: function(chunk) {
  76954. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure4(), type$.legacy_ComplexSelectorComponent_2);
  76955. },
  76956. $signature: 145
  76957. };
  76958. Y._weaveParents__closure4.prototype = {
  76959. call$1: function(group) {
  76960. return group;
  76961. },
  76962. $signature: 122
  76963. };
  76964. Y._weaveParents_closure9.prototype = {
  76965. call$1: function(sequence) {
  76966. return sequence.get$length(sequence) === 0;
  76967. },
  76968. $signature: 131
  76969. };
  76970. Y._weaveParents_closure10.prototype = {
  76971. call$1: function(chunk) {
  76972. return J.expand$1$1$ax(chunk, new Y._weaveParents__closure3(), type$.legacy_ComplexSelectorComponent_2);
  76973. },
  76974. $signature: 145
  76975. };
  76976. Y._weaveParents__closure3.prototype = {
  76977. call$1: function(group) {
  76978. return group;
  76979. },
  76980. $signature: 122
  76981. };
  76982. Y._weaveParents_closure11.prototype = {
  76983. call$1: function(choice) {
  76984. return J.get$isNotEmpty$asx(choice);
  76985. },
  76986. $signature: 369
  76987. };
  76988. Y._weaveParents_closure12.prototype = {
  76989. call$1: function(path) {
  76990. var t1 = J.expand$1$1$ax(path, new Y._weaveParents__closure2(), type$.legacy_ComplexSelectorComponent_2);
  76991. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  76992. },
  76993. $signature: 370
  76994. };
  76995. Y._weaveParents__closure2.prototype = {
  76996. call$1: function(group) {
  76997. return group;
  76998. },
  76999. $signature: 371
  77000. };
  77001. Y._mustUnify_closure0.prototype = {
  77002. call$1: function(component) {
  77003. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new Y._mustUnify__closure0(this.uniqueSelectors));
  77004. },
  77005. $signature: 92
  77006. };
  77007. Y._mustUnify__closure0.prototype = {
  77008. call$1: function(simple) {
  77009. var t1;
  77010. if (!(simple instanceof N.IDSelector0))
  77011. t1 = simple instanceof D.PseudoSelector0 && !simple.isClass;
  77012. else
  77013. t1 = true;
  77014. return t1 && this.uniqueSelectors.contains$1(0, simple);
  77015. },
  77016. $signature: 19
  77017. };
  77018. Y.paths_closure0.prototype = {
  77019. call$2: function(paths, choice) {
  77020. var t1 = this.T;
  77021. t1 = J.expand$1$1$ax(choice, new Y.paths__closure0(paths, t1), t1._eval$1("List<0*>*"));
  77022. return P.List_List$from(t1, true, t1.$ti._eval$1("Iterable.E"));
  77023. },
  77024. $signature: function() {
  77025. return this.T._eval$1("List<List<0*>*>*(List<List<0*>*>*,List<0*>*)");
  77026. }
  77027. };
  77028. Y.paths__closure0.prototype = {
  77029. call$1: function(option) {
  77030. var t1 = this.T;
  77031. return J.map$1$1$ax(this.paths, new Y.paths___closure0(option, t1), t1._eval$1("List<0*>*"));
  77032. },
  77033. $signature: function() {
  77034. return this.T._eval$1("Iterable<List<0*>*>*(0*)");
  77035. }
  77036. };
  77037. Y.paths___closure0.prototype = {
  77038. call$1: function(path) {
  77039. var t2,
  77040. t1 = H.setRuntimeTypeInfo([], this.T._eval$1("JSArray<0*>"));
  77041. for (t2 = J.get$iterator$ax(path); t2.moveNext$0();)
  77042. t1.push(t2.get$current(t2));
  77043. t1.push(this.option);
  77044. return t1;
  77045. },
  77046. $signature: function() {
  77047. return this.T._eval$1("List<0*>*(List<0*>*)");
  77048. }
  77049. };
  77050. Y._hasRoot_closure0.prototype = {
  77051. call$1: function(simple) {
  77052. return simple instanceof D.PseudoSelector0 && simple.isClass && simple.normalizedName === "root";
  77053. },
  77054. $signature: 19
  77055. };
  77056. Y.listIsSuperselector_closure0.prototype = {
  77057. call$1: function(complex1) {
  77058. return C.JSArray_methods.any$1(this.list1, new Y.listIsSuperselector__closure0(complex1));
  77059. },
  77060. $signature: 13
  77061. };
  77062. Y.listIsSuperselector__closure0.prototype = {
  77063. call$1: function(complex2) {
  77064. return Y.complexIsSuperselector0(complex2.components, this.complex1.components);
  77065. },
  77066. $signature: 13
  77067. };
  77068. Y._simpleIsSuperselectorOfCompound_closure0.prototype = {
  77069. call$1: function(theirSimple) {
  77070. var t1 = this.simple;
  77071. if (J.$eq$(t1, theirSimple))
  77072. return true;
  77073. if (theirSimple instanceof D.PseudoSelector0 && theirSimple.selector != null && $._subselectorPseudos0.contains$1(0, theirSimple.normalizedName))
  77074. return C.JSArray_methods.every$1(theirSimple.selector.components, new Y._simpleIsSuperselectorOfCompound__closure0(t1));
  77075. else
  77076. return false;
  77077. },
  77078. $signature: 19
  77079. };
  77080. Y._simpleIsSuperselectorOfCompound__closure0.prototype = {
  77081. call$1: function(complex) {
  77082. var t1 = complex.components;
  77083. if (t1.length !== 1)
  77084. return false;
  77085. return C.JSArray_methods.contains$1(type$.legacy_CompoundSelector_2._as(C.JSArray_methods.get$single(t1)).components, this.simple);
  77086. },
  77087. $signature: 13
  77088. };
  77089. Y._selectorPseudoIsSuperselector_closure6.prototype = {
  77090. call$1: function(pseudo2) {
  77091. var t1 = pseudo2.selector;
  77092. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  77093. },
  77094. $signature: 58
  77095. };
  77096. Y._selectorPseudoIsSuperselector_closure7.prototype = {
  77097. call$1: function(complex1) {
  77098. var t1 = complex1.components,
  77099. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2),
  77100. t3 = this.parents;
  77101. if (t3 != null)
  77102. for (t3 = t3.get$iterator(t3); t3.moveNext$0();)
  77103. t2.push(t3.get$current(t3));
  77104. t2.push(this.compound2);
  77105. return Y.complexIsSuperselector0(t1, t2);
  77106. },
  77107. $signature: 13
  77108. };
  77109. Y._selectorPseudoIsSuperselector_closure8.prototype = {
  77110. call$1: function(pseudo2) {
  77111. var t1 = pseudo2.selector;
  77112. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  77113. },
  77114. $signature: 58
  77115. };
  77116. Y._selectorPseudoIsSuperselector_closure9.prototype = {
  77117. call$1: function(pseudo2) {
  77118. var t1 = pseudo2.selector;
  77119. return Y.listIsSuperselector0(this.pseudo1.selector.components, t1.components);
  77120. },
  77121. $signature: 58
  77122. };
  77123. Y._selectorPseudoIsSuperselector_closure10.prototype = {
  77124. call$1: function(complex) {
  77125. return C.JSArray_methods.any$1(this.compound2.components, new Y._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
  77126. },
  77127. $signature: 13
  77128. };
  77129. Y._selectorPseudoIsSuperselector__closure0.prototype = {
  77130. call$1: function(simple2) {
  77131. var compound1, _this = this;
  77132. if (simple2 instanceof F.TypeSelector0) {
  77133. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  77134. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure1(simple2));
  77135. } else if (simple2 instanceof N.IDSelector0) {
  77136. compound1 = C.JSArray_methods.get$last(_this.complex.components);
  77137. return compound1 instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(compound1.components, new Y._selectorPseudoIsSuperselector___closure2(simple2));
  77138. } else if (simple2 instanceof D.PseudoSelector0 && simple2.name === _this.pseudo1.name && simple2.selector != null)
  77139. return Y.listIsSuperselector0(simple2.selector.components, H.setRuntimeTypeInfo([_this.complex], type$.JSArray_legacy_ComplexSelector_2));
  77140. else
  77141. return false;
  77142. },
  77143. $signature: 19
  77144. };
  77145. Y._selectorPseudoIsSuperselector___closure1.prototype = {
  77146. call$1: function(simple1) {
  77147. var t1;
  77148. if (simple1 instanceof F.TypeSelector0) {
  77149. t1 = this.simple2.name.$eq(0, simple1.name);
  77150. t1 = !t1;
  77151. } else
  77152. t1 = false;
  77153. return t1;
  77154. },
  77155. $signature: 19
  77156. };
  77157. Y._selectorPseudoIsSuperselector___closure2.prototype = {
  77158. call$1: function(simple1) {
  77159. var t1;
  77160. if (simple1 instanceof N.IDSelector0) {
  77161. t1 = simple1.name;
  77162. t1 = this.simple2.name !== t1;
  77163. } else
  77164. t1 = false;
  77165. return t1;
  77166. },
  77167. $signature: 19
  77168. };
  77169. Y._selectorPseudoIsSuperselector_closure11.prototype = {
  77170. call$1: function(pseudo2) {
  77171. return J.$eq$(this.pseudo1.selector, pseudo2.selector);
  77172. },
  77173. $signature: 58
  77174. };
  77175. Y._selectorPseudoIsSuperselector_closure12.prototype = {
  77176. call$1: function(pseudo2) {
  77177. var t1, t2;
  77178. if (pseudo2 instanceof D.PseudoSelector0) {
  77179. t1 = this.pseudo1;
  77180. if (pseudo2.name === t1.name)
  77181. if (pseudo2.argument == t1.argument) {
  77182. t2 = pseudo2.selector;
  77183. t2 = Y.listIsSuperselector0(t1.selector.components, t2.components);
  77184. t1 = t2;
  77185. } else
  77186. t1 = false;
  77187. else
  77188. t1 = false;
  77189. } else
  77190. t1 = false;
  77191. return t1;
  77192. },
  77193. $signature: 19
  77194. };
  77195. Y._selectorPseudosNamed_closure0.prototype = {
  77196. call$1: function(pseudo) {
  77197. return pseudo.isClass === this.isClass && pseudo.selector != null && pseudo.name === this.name;
  77198. },
  77199. $signature: 58
  77200. };
  77201. Y.closure114.prototype = {
  77202. call$1: function($arguments) {
  77203. var t1 = J.getInterceptor$asx($arguments);
  77204. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  77205. },
  77206. $signature: 3
  77207. };
  77208. N.IDSelector0.prototype = {
  77209. get$minSpecificity: function() {
  77210. return H._asIntS(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(this), 2));
  77211. },
  77212. accept$1$1: function(visitor) {
  77213. var t1 = visitor._buffer;
  77214. t1.writeCharCode$1(35);
  77215. t1.write$1(0, this.name);
  77216. return null;
  77217. },
  77218. accept$1: function(visitor) {
  77219. return this.accept$1$1(visitor, type$.dynamic);
  77220. },
  77221. addSuffix$1: function(suffix) {
  77222. return new N.IDSelector0(this.name + suffix);
  77223. },
  77224. unify$1: function(compound) {
  77225. if (C.JSArray_methods.any$1(compound, new N.IDSelector_unify_closure0(this)))
  77226. return null;
  77227. return this.super$SimpleSelector$unify0(compound);
  77228. },
  77229. $eq: function(_, other) {
  77230. if (other == null)
  77231. return false;
  77232. return other instanceof N.IDSelector0 && other.name === this.name;
  77233. },
  77234. get$hashCode: function(_) {
  77235. return C.JSString_methods.get$hashCode(this.name);
  77236. }
  77237. };
  77238. N.IDSelector_unify_closure0.prototype = {
  77239. call$1: function(simple) {
  77240. var t1;
  77241. if (simple instanceof N.IDSelector0) {
  77242. t1 = simple.name;
  77243. t1 = this.$this.name !== t1;
  77244. } else
  77245. t1 = false;
  77246. return t1;
  77247. },
  77248. $signature: 19
  77249. };
  77250. L.IfExpression0.prototype = {
  77251. accept$1$1: function(visitor) {
  77252. return visitor.visitIfExpression$1(this);
  77253. },
  77254. accept$1: function(visitor) {
  77255. return this.accept$1$1(visitor, type$.dynamic);
  77256. },
  77257. toString$0: function(_) {
  77258. return "if" + this.$arguments.toString$0(0);
  77259. },
  77260. $isExpression0: 1,
  77261. $isAstNode0: 1,
  77262. get$span: function() {
  77263. return this.span;
  77264. }
  77265. };
  77266. V.IfRule0.prototype = {
  77267. accept$1$1: function(visitor) {
  77268. return visitor.visitIfRule$1(this);
  77269. },
  77270. accept$1: function(visitor) {
  77271. return this.accept$1$1(visitor, type$.dynamic);
  77272. },
  77273. toString$0: function(_) {
  77274. var t2, t1 = {};
  77275. t1.first = true;
  77276. t2 = this.clauses;
  77277. return new H.MappedListIterable(t2, new V.IfRule_toString_closure0(t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String*>")).join$1(0, " ");
  77278. },
  77279. $isAstNode0: 1,
  77280. $isStatement0: 1,
  77281. get$span: function() {
  77282. return this.span;
  77283. }
  77284. };
  77285. V.IfRule_toString_closure0.prototype = {
  77286. call$1: function(clause) {
  77287. var t1 = this._box_0,
  77288. $name = t1.first ? "if" : "else";
  77289. t1.first = false;
  77290. return "@" + $name + " " + H.S(clause.expression) + " {" + C.JSArray_methods.join$1(clause.children, " ") + "}";
  77291. },
  77292. $signature: 373
  77293. };
  77294. V.IfClause0.prototype = {
  77295. toString$0: function(_) {
  77296. var t1 = this.expression;
  77297. t1 = t1 == null ? "@else" : "@if " + t1.toString$0(0);
  77298. return t1 + (" {" + C.JSArray_methods.join$1(this.children, " ") + "}");
  77299. }
  77300. };
  77301. V.IfClause$__closure0.prototype = {
  77302. call$1: function(child) {
  77303. var t1;
  77304. if (!(child instanceof Z.VariableDeclaration0))
  77305. if (!(child instanceof M.FunctionRule0))
  77306. if (!(child instanceof T.MixinRule0))
  77307. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new V.IfClause$___closure0());
  77308. else
  77309. t1 = true;
  77310. else
  77311. t1 = true;
  77312. else
  77313. t1 = true;
  77314. return t1;
  77315. },
  77316. $signature: 137
  77317. };
  77318. V.IfClause$___closure0.prototype = {
  77319. call$1: function($import) {
  77320. return $import instanceof B.DynamicImport0;
  77321. },
  77322. $signature: 135
  77323. };
  77324. F.NodeImporter.prototype = {
  77325. load$3: function(_, url, previous, forImport) {
  77326. var result, previousString, t1, t2, t3, t4, _i, value, _this = this,
  77327. parsed = P.Uri_parse(url);
  77328. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  77329. result = _this._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  77330. if (result != null)
  77331. return result;
  77332. }
  77333. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  77334. for (t1 = _this._implementation$_importers, t2 = t1.length, t3 = _this._implementation$_context, t4 = type$.JSArray_legacy_Object, _i = 0; _i < t2; ++_i) {
  77335. value = J.apply$2$x(t1[_i], t3, H.setRuntimeTypeInfo([url, previousString], t4));
  77336. if (value != null)
  77337. return _this._handleImportResult$4(url, previous, value, forImport);
  77338. }
  77339. return _this._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  77340. },
  77341. loadAsync$3: function(url, previous, forImport) {
  77342. return this.loadAsync$body$NodeImporter(url, previous, forImport);
  77343. },
  77344. loadAsync$body$NodeImporter: function(url, previous, forImport) {
  77345. var $async$goto = 0,
  77346. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Tuple2_of_legacy_String_and_legacy_String),
  77347. $async$returnValue, $async$self = this, result, previousString, t1, t2, _i, value, parsed;
  77348. var $async$loadAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77349. if ($async$errorCode === 1)
  77350. return P._asyncRethrow($async$result, $async$completer);
  77351. while (true)
  77352. switch ($async$goto) {
  77353. case 0:
  77354. // Function start
  77355. parsed = P.Uri_parse(url);
  77356. if (parsed.get$scheme() === "" || parsed.get$scheme() === "file") {
  77357. result = $async$self._resolveRelativePath$3($.$get$context().style.pathFromUri$1(M._parseUri(parsed)), previous, forImport);
  77358. if (result != null) {
  77359. $async$returnValue = result;
  77360. // goto return
  77361. $async$goto = 1;
  77362. break;
  77363. }
  77364. }
  77365. previousString = previous.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(M._parseUri(previous)) : previous.toString$0(0);
  77366. t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
  77367. case 3:
  77368. // for condition
  77369. if (!(_i < t2)) {
  77370. // goto after for
  77371. $async$goto = 5;
  77372. break;
  77373. }
  77374. $async$goto = 6;
  77375. return P._asyncAwait($async$self._callImporterAsync$3(t1[_i], url, previousString), $async$loadAsync$3);
  77376. case 6:
  77377. // returning from await.
  77378. value = $async$result;
  77379. if (value != null) {
  77380. $async$returnValue = $async$self._handleImportResult$4(url, previous, value, forImport);
  77381. // goto return
  77382. $async$goto = 1;
  77383. break;
  77384. }
  77385. case 4:
  77386. // for update
  77387. ++_i;
  77388. // goto for condition
  77389. $async$goto = 3;
  77390. break;
  77391. case 5:
  77392. // after for
  77393. $async$returnValue = $async$self._resolveLoadPathFromUrl$3(parsed, previous, forImport);
  77394. // goto return
  77395. $async$goto = 1;
  77396. break;
  77397. case 1:
  77398. // return
  77399. return P._asyncReturn($async$returnValue, $async$completer);
  77400. }
  77401. });
  77402. return P._asyncStartSync($async$loadAsync$3, $async$completer);
  77403. },
  77404. _resolveRelativePath$3: function(path, previous, forImport) {
  77405. var result,
  77406. t1 = $.$get$context(),
  77407. t2 = t1.style;
  77408. if (t2.rootLength$1(path) > 0)
  77409. return this._tryPath$2(path, forImport);
  77410. if (previous.get$scheme() === "file") {
  77411. result = this._tryPath$2(D.join(t1.dirname$1(t2.pathFromUri$1(M._parseUri(previous))), path, null), forImport);
  77412. if (result != null)
  77413. return result;
  77414. }
  77415. return null;
  77416. },
  77417. _resolveLoadPathFromUrl$3: function(url, previous, forImport) {
  77418. return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$3($.$get$context().style.pathFromUri$1(M._parseUri(url)), previous, forImport) : null;
  77419. },
  77420. _resolveLoadPath$3: function(path, previous, forImport) {
  77421. var t1, t2, _i, includePath, t3, result, _null = null,
  77422. cwdResult = this._tryPath$2(D.absolute(path), forImport);
  77423. if (cwdResult != null)
  77424. return cwdResult;
  77425. for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  77426. includePath = t1[_i];
  77427. t3 = $.$get$context();
  77428. result = this._tryPath$2(t3.absolute$7(t3.join$8(0, includePath, path, _null, _null, _null, _null, _null, _null), _null, _null, _null, _null, _null, _null), forImport);
  77429. if (result != null)
  77430. return result;
  77431. }
  77432. return _null;
  77433. },
  77434. _tryPath$2: function(path, forImport) {
  77435. var resolved = forImport ? B.inImportRule0(new F.NodeImporter__tryPath_closure(path)) : B.resolveImportPath0(path);
  77436. return resolved == null ? null : new S.Tuple2(B.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0), type$.Tuple2_of_legacy_String_and_legacy_String);
  77437. },
  77438. _handleImportResult$4: function(url, previous, value, forImport) {
  77439. var resolved,
  77440. t1 = self.Error;
  77441. if (H._asBoolS($.$get$_jsInstanceOf().call$2(value, t1)))
  77442. throw H.wrapException(value);
  77443. if (!type$.legacy_NodeImporterResult._is(value))
  77444. return null;
  77445. t1 = J.getInterceptor$x(value);
  77446. if (t1.get$file(value) == null) {
  77447. t1 = t1.get$contents(value);
  77448. if (t1 == null)
  77449. t1 = "";
  77450. return new S.Tuple2(t1, url, type$.Tuple2_of_legacy_String_and_legacy_String);
  77451. } else if (t1.get$contents(value) != null)
  77452. return new S.Tuple2(t1.get$contents(value), t1.get$file(value), type$.Tuple2_of_legacy_String_and_legacy_String);
  77453. else {
  77454. resolved = this._resolveRelativePath$3(t1.get$file(value), previous, forImport);
  77455. if (resolved == null)
  77456. resolved = this._resolveLoadPath$3(t1.get$file(value), previous, forImport);
  77457. if (resolved != null)
  77458. return resolved;
  77459. throw H.wrapException("Can't find stylesheet to import.");
  77460. }
  77461. },
  77462. _callImporterAsync$3: function(importer, url, previousString) {
  77463. return this._callImporterAsync$body$NodeImporter(importer, url, previousString);
  77464. },
  77465. _callImporterAsync$body$NodeImporter: function(importer, url, previousString) {
  77466. var $async$goto = 0,
  77467. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Object),
  77468. $async$returnValue, $async$self = this, t1, result;
  77469. var $async$_callImporterAsync$3 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  77470. if ($async$errorCode === 1)
  77471. return P._asyncRethrow($async$result, $async$completer);
  77472. while (true)
  77473. switch ($async$goto) {
  77474. case 0:
  77475. // Function start
  77476. t1 = new P._Future($.Zone__current, type$._Future_legacy_Object);
  77477. result = J.apply$2$x(importer, $async$self._implementation$_context, H.setRuntimeTypeInfo([url, previousString, P.allowInterop(new P._AsyncCompleter(t1, type$._AsyncCompleter_legacy_Object).get$complete())], type$.JSArray_legacy_Object));
  77478. $async$goto = H._asBoolS($.$get$_isUndefined().call$1(result)) ? 3 : 4;
  77479. break;
  77480. case 3:
  77481. // then
  77482. $async$goto = 5;
  77483. return P._asyncAwait(t1, $async$_callImporterAsync$3);
  77484. case 5:
  77485. // returning from await.
  77486. $async$returnValue = $async$result;
  77487. // goto return
  77488. $async$goto = 1;
  77489. break;
  77490. case 4:
  77491. // join
  77492. $async$returnValue = result;
  77493. // goto return
  77494. $async$goto = 1;
  77495. break;
  77496. case 1:
  77497. // return
  77498. return P._asyncReturn($async$returnValue, $async$completer);
  77499. }
  77500. });
  77501. return P._asyncStartSync($async$_callImporterAsync$3, $async$completer);
  77502. }
  77503. };
  77504. F.NodeImporter__tryPath_closure.prototype = {
  77505. call$0: function() {
  77506. return B.resolveImportPath0(this.path);
  77507. },
  77508. $signature: 17
  77509. };
  77510. F.ModifiableCssImport0.prototype = {
  77511. accept$1$1: function(visitor) {
  77512. return visitor.visitCssImport$1(this);
  77513. },
  77514. accept$1: function(visitor) {
  77515. return this.accept$1$1(visitor, type$.dynamic);
  77516. },
  77517. $isCssImport0: 1,
  77518. get$span: function() {
  77519. return this.span;
  77520. }
  77521. };
  77522. R.ImportCache0.prototype = {
  77523. canonicalize$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  77524. var resolvedUrl, canonicalUrl;
  77525. if (baseImporter != null) {
  77526. resolvedUrl = baseUrl != null ? baseUrl.resolveUri$1(url) : url;
  77527. canonicalUrl = this._import_cache$_canonicalize$3(baseImporter, resolvedUrl, forImport);
  77528. if (canonicalUrl != null)
  77529. return new S.Tuple3(baseImporter, canonicalUrl, resolvedUrl, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2);
  77530. }
  77531. return this._import_cache$_canonicalizeCache.putIfAbsent$2(new S.Tuple2(url, forImport, type$.Tuple2_of_legacy_Uri_and_legacy_bool), new R.ImportCache_canonicalize_closure0(this, url, forImport));
  77532. },
  77533. _import_cache$_canonicalize$3: function(importer, url, forImport) {
  77534. var result = forImport ? B.inImportRule0(new R.ImportCache__canonicalize_closure0(importer, url)) : importer.canonicalize$1(url);
  77535. if ((result == null ? null : result.get$scheme()) === "")
  77536. this._import_cache$_logger.warn$2$deprecation(0, "Importer " + H.S(importer) + " canonicalized " + url.toString$0(0) + " to " + H.S(result) + string$.x2e_Rela, true);
  77537. return result;
  77538. },
  77539. import$4$baseImporter$baseUrl$forImport: function(url, baseImporter, baseUrl, forImport) {
  77540. var t1, stylesheet,
  77541. tuple = this.canonicalize$4$baseImporter$baseUrl$forImport(url, baseImporter, baseUrl, forImport);
  77542. if (tuple == null)
  77543. return null;
  77544. t1 = tuple.item1;
  77545. stylesheet = this.importCanonical$3(t1, tuple.item2, tuple.item3);
  77546. if (stylesheet == null)
  77547. return null;
  77548. return new S.Tuple2(t1, stylesheet, type$.Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2);
  77549. },
  77550. importCanonical$3: function(importer, canonicalUrl, originalUrl) {
  77551. return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new R.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl));
  77552. },
  77553. humanize$1: function(canonicalUrl) {
  77554. var t2, url,
  77555. t1 = this._import_cache$_canonicalizeCache;
  77556. t1 = t1.get$values(t1);
  77557. t2 = H._instanceType(t1);
  77558. url = Y.minBy(new H.MappedIterable(new H.WhereIterable(t1, new R.ImportCache_humanize_closure2(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new R.ImportCache_humanize_closure3(), t2._eval$1("MappedIterable<Iterable.E,Uri*>")), new R.ImportCache_humanize_closure4(), type$.legacy_Uri, type$.dynamic);
  77559. if (url == null)
  77560. return canonicalUrl;
  77561. t1 = $.$get$url();
  77562. return url.resolve$1(X.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t1.style).get$basename());
  77563. }
  77564. };
  77565. R.ImportCache_canonicalize_closure0.prototype = {
  77566. call$0: function() {
  77567. var t1, t2, t3, _i, importer, canonicalUrl;
  77568. for (t1 = this.$this, t2 = this.url, t3 = this.forImport, _i = 0; false; ++_i) {
  77569. importer = C.List_empty17[_i];
  77570. canonicalUrl = t1._import_cache$_canonicalize$3(importer, t2, t3);
  77571. if (canonicalUrl != null)
  77572. return new S.Tuple3(importer, canonicalUrl, t2, type$.Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2);
  77573. }
  77574. return null;
  77575. },
  77576. $signature: 376
  77577. };
  77578. R.ImportCache__canonicalize_closure0.prototype = {
  77579. call$0: function() {
  77580. return this.importer.canonicalize$1(this.url);
  77581. },
  77582. $signature: 161
  77583. };
  77584. R.ImportCache_importCanonical_closure0.prototype = {
  77585. call$0: function() {
  77586. var t3, _this = this,
  77587. t1 = _this.canonicalUrl,
  77588. result = _this.importer.load$1(0, t1),
  77589. t2 = _this.$this;
  77590. t2._import_cache$_resultsCache.$indexSet(0, t1, result);
  77591. t3 = _this.originalUrl;
  77592. t1 = t3 == null ? t1 : t3.resolveUri$1(t1);
  77593. return V.Stylesheet_Stylesheet$parse0(result.contents, result.syntax, t2._import_cache$_logger, t1);
  77594. },
  77595. $signature: 127
  77596. };
  77597. R.ImportCache_humanize_closure2.prototype = {
  77598. call$1: function(tuple) {
  77599. var t1 = tuple == null ? null : tuple.item2;
  77600. return J.$eq$(t1, this.canonicalUrl);
  77601. },
  77602. $signature: 378
  77603. };
  77604. R.ImportCache_humanize_closure3.prototype = {
  77605. call$1: function(tuple) {
  77606. return tuple.item3;
  77607. },
  77608. $signature: 379
  77609. };
  77610. R.ImportCache_humanize_closure4.prototype = {
  77611. call$1: function(url) {
  77612. return J.get$length$asx(J.get$path$x(url));
  77613. },
  77614. $signature: 43
  77615. };
  77616. B.ImportRule0.prototype = {
  77617. accept$1$1: function(visitor) {
  77618. return visitor.visitImportRule$1(this);
  77619. },
  77620. accept$1: function(visitor) {
  77621. return this.accept$1$1(visitor, type$.dynamic);
  77622. },
  77623. toString$0: function(_) {
  77624. return "@import " + C.JSArray_methods.join$1(this.imports, ", ") + ";";
  77625. },
  77626. $isAstNode0: 1,
  77627. $isStatement0: 1,
  77628. get$span: function() {
  77629. return this.span;
  77630. }
  77631. };
  77632. M.Importer0.prototype = {};
  77633. F.NodeImporterResult0.prototype = {};
  77634. A.IncludeRule0.prototype = {
  77635. get$spanWithoutContent: function() {
  77636. var t2, t3,
  77637. t1 = this.span;
  77638. if (!(this.content == null)) {
  77639. t2 = t1.file;
  77640. t3 = this.$arguments.span;
  77641. t3 = B.SpanExtensions_trim0(t2.span$2(Y.FileLocation$_(t2, t1._file$_start).offset, Y.FileLocation$_(t3.file, t3._end).offset));
  77642. t1 = t3;
  77643. }
  77644. return t1;
  77645. },
  77646. accept$1$1: function(visitor) {
  77647. return visitor.visitIncludeRule$1(this);
  77648. },
  77649. accept$1: function(visitor) {
  77650. return this.accept$1$1(visitor, type$.dynamic);
  77651. },
  77652. toString$0: function(_) {
  77653. var t2, _this = this,
  77654. t1 = _this.namespace;
  77655. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  77656. t1 += _this.name;
  77657. t2 = _this.$arguments;
  77658. if (!t2.get$isEmpty(t2))
  77659. t1 += "(" + t2.toString$0(0) + ")";
  77660. t2 = _this.content;
  77661. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  77662. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77663. },
  77664. $isAstNode0: 1,
  77665. $isStatement0: 1,
  77666. get$span: function() {
  77667. return this.span;
  77668. }
  77669. };
  77670. X.Interpolation0.prototype = {
  77671. get$asPlain: function() {
  77672. var first,
  77673. t1 = this.contents,
  77674. t2 = t1.length;
  77675. if (t2 === 0)
  77676. return "";
  77677. if (t2 > 1)
  77678. return null;
  77679. first = C.JSArray_methods.get$first(t1);
  77680. return typeof first == "string" ? first : null;
  77681. },
  77682. get$initialPlain: function() {
  77683. var first = C.JSArray_methods.get$first(this.contents);
  77684. return typeof first == "string" ? first : "";
  77685. },
  77686. Interpolation$20: function(contents, span) {
  77687. var t1, t2, t3, i, t4, t5,
  77688. _s8_ = "contents";
  77689. for (t1 = this.contents, t2 = t1.length, t3 = type$.legacy_Expression_2, i = 0; i < t2; ++i) {
  77690. t4 = t1[i];
  77691. t5 = typeof t4 == "string";
  77692. if (!t5 && !t3._is(t4))
  77693. throw H.wrapException(P.ArgumentError$value(t1, _s8_, string$.May_on));
  77694. if (i !== 0 && typeof t1[i - 1] == "string" && t5)
  77695. throw H.wrapException(P.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  77696. }
  77697. },
  77698. toString$0: function(_) {
  77699. var t1 = this.contents;
  77700. return new H.MappedListIterable(t1, new X.Interpolation_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$0(0);
  77701. },
  77702. $isAstNode0: 1,
  77703. get$span: function() {
  77704. return this.span;
  77705. }
  77706. };
  77707. X.Interpolation_toString_closure0.prototype = {
  77708. call$1: function(value) {
  77709. return typeof value == "string" ? value : "#{" + H.S(value) + "}";
  77710. },
  77711. $signature: 41
  77712. };
  77713. X.SupportsInterpolation0.prototype = {
  77714. toString$0: function(_) {
  77715. return "#{" + H.S(this.expression) + "}";
  77716. },
  77717. $isAstNode0: 1,
  77718. get$span: function() {
  77719. return this.span;
  77720. }
  77721. };
  77722. Z.InterpolationBuffer0.prototype = {
  77723. add$1: function(_, expression) {
  77724. this._interpolation_buffer0$_flushText$0();
  77725. this._interpolation_buffer0$_contents.push(expression);
  77726. },
  77727. addInterpolation$1: function(interpolation) {
  77728. var first, t1, _this = this,
  77729. toAdd = interpolation.contents;
  77730. if (toAdd.length === 0)
  77731. return;
  77732. first = C.JSArray_methods.get$first(toAdd);
  77733. if (typeof first == "string") {
  77734. _this._interpolation_buffer0$_text._contents += first;
  77735. toAdd = H.SubListIterable$(toAdd, 1, null, H._arrayInstanceType(toAdd)._precomputed1);
  77736. }
  77737. _this._interpolation_buffer0$_flushText$0();
  77738. t1 = _this._interpolation_buffer0$_contents;
  77739. C.JSArray_methods.addAll$1(t1, toAdd);
  77740. if (typeof C.JSArray_methods.get$last(t1) == "string")
  77741. _this._interpolation_buffer0$_text._contents += H.S(t1.pop());
  77742. },
  77743. _interpolation_buffer0$_flushText$0: function() {
  77744. var t1 = this._interpolation_buffer0$_text,
  77745. t2 = t1._contents;
  77746. if (t2.length === 0)
  77747. return;
  77748. this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  77749. t1._contents = "";
  77750. },
  77751. interpolation$1: function(span) {
  77752. var t2, t3, _i,
  77753. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  77754. for (t2 = this._interpolation_buffer0$_contents, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  77755. t1.push(t2[_i]);
  77756. t2 = this._interpolation_buffer0$_text._contents;
  77757. if (t2.length !== 0)
  77758. t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  77759. return X.Interpolation$0(t1, span);
  77760. },
  77761. toString$0: function(_) {
  77762. var t1, t2, _i, t3, element;
  77763. for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  77764. element = t1[_i];
  77765. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + H.S(element) + H.Primitives_stringFromCharCode(125);
  77766. }
  77767. t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
  77768. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77769. }
  77770. };
  77771. F._realCasePath_closure0.prototype = {
  77772. call$1: function(realPath) {
  77773. return B.equalsIgnoreCase0(X.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.component);
  77774. },
  77775. $signature: 5
  77776. };
  77777. U.ModifiableCssKeyframeBlock0.prototype = {
  77778. accept$1$1: function(visitor) {
  77779. return visitor.visitCssKeyframeBlock$1(this);
  77780. },
  77781. accept$1: function(visitor) {
  77782. return this.accept$1$1(visitor, type$.dynamic);
  77783. },
  77784. copyWithoutChildren$0: function() {
  77785. return U.ModifiableCssKeyframeBlock$0(this.selector, this.span);
  77786. },
  77787. get$span: function() {
  77788. return this.span;
  77789. }
  77790. };
  77791. E.KeyframeSelectorParser0.prototype = {
  77792. parse$0: function() {
  77793. return this.wrapSpanFormatException$1(new E.KeyframeSelectorParser_parse_closure0(this));
  77794. },
  77795. _keyframe_selector$_percentage$0: function() {
  77796. var t3, next,
  77797. t1 = this.scanner,
  77798. t2 = t1.scanChar$1(43) ? H.Primitives_stringFromCharCode(43) : "",
  77799. second = t1.peekChar$0();
  77800. if (!T.isDigit0(second) && second !== 46)
  77801. t1.error$1(0, "Expected number.");
  77802. while (true) {
  77803. t3 = t1.peekChar$0();
  77804. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  77805. break;
  77806. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  77807. }
  77808. if (t1.peekChar$0() === 46) {
  77809. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  77810. while (true) {
  77811. t3 = t1.peekChar$0();
  77812. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  77813. break;
  77814. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  77815. }
  77816. }
  77817. if (this.scanIdentifier$1("e")) {
  77818. t2 += t1.readChar$0();
  77819. next = t1.peekChar$0();
  77820. if (next === 43 || next === 45)
  77821. t2 += t1.readChar$0();
  77822. if (!T.isDigit0(t1.peekChar$0()))
  77823. t1.error$1(0, "Expected digit.");
  77824. while (true) {
  77825. t3 = t1.peekChar$0();
  77826. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  77827. break;
  77828. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  77829. }
  77830. }
  77831. t1.expectChar$1(37);
  77832. t2 += H.Primitives_stringFromCharCode(37);
  77833. return t2.charCodeAt(0) == 0 ? t2 : t2;
  77834. }
  77835. };
  77836. E.KeyframeSelectorParser_parse_closure0.prototype = {
  77837. call$0: function() {
  77838. var selectors = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String),
  77839. t1 = this.$this,
  77840. t2 = t1.scanner;
  77841. do {
  77842. t1.whitespace$0();
  77843. if (t1.lookingAtIdentifier$0())
  77844. if (t1.scanIdentifier$1("from"))
  77845. selectors.push("from");
  77846. else {
  77847. t1.expectIdentifier$2$name("to", '"to" or "from"');
  77848. selectors.push("to");
  77849. }
  77850. else
  77851. selectors.push(t1._keyframe_selector$_percentage$0());
  77852. t1.whitespace$0();
  77853. } while (t2.scanChar$1(44));
  77854. t2.expectDone$0();
  77855. return selectors;
  77856. },
  77857. $signature: 40
  77858. };
  77859. K.LimitedMapView0.prototype = {
  77860. get$keys: function(_) {
  77861. return this._limited_map_view0$_keys;
  77862. },
  77863. get$length: function(_) {
  77864. return this._limited_map_view0$_keys._collection$_length;
  77865. },
  77866. get$isEmpty: function(_) {
  77867. return this._limited_map_view0$_keys._collection$_length === 0;
  77868. },
  77869. get$isNotEmpty: function(_) {
  77870. return this._limited_map_view0$_keys._collection$_length !== 0;
  77871. },
  77872. $index: function(_, key) {
  77873. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
  77874. },
  77875. containsKey$1: function(key) {
  77876. return this._limited_map_view0$_keys.contains$1(0, key);
  77877. },
  77878. remove$1: function(_, key) {
  77879. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
  77880. }
  77881. };
  77882. D.ListExpression0.prototype = {
  77883. accept$1$1: function(visitor) {
  77884. return visitor.visitListExpression$1(this);
  77885. },
  77886. accept$1: function(visitor) {
  77887. return this.accept$1$1(visitor, type$.dynamic);
  77888. },
  77889. toString$0: function(_) {
  77890. var _this = this,
  77891. t1 = _this.hasBrackets,
  77892. t2 = t1 ? H.Primitives_stringFromCharCode(91) : "",
  77893. t3 = _this.contents,
  77894. t4 = _this.separator === C.ListSeparator_comma0 ? ", " : " ";
  77895. t4 = t2 + new H.MappedListIterable(t3, new D.ListExpression_toString_closure0(_this), H._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String*>")).join$1(0, t4);
  77896. t1 = t1 ? t4 + H.Primitives_stringFromCharCode(93) : t4;
  77897. return t1.charCodeAt(0) == 0 ? t1 : t1;
  77898. },
  77899. _list3$_elementNeedsParens$1: function(expression) {
  77900. var t1, t2;
  77901. if (expression instanceof D.ListExpression0) {
  77902. if (expression.contents.length < 2)
  77903. return false;
  77904. if (expression.hasBrackets)
  77905. return false;
  77906. t1 = this.separator;
  77907. t2 = t1 === C.ListSeparator_comma0;
  77908. return t2 ? t2 : t1 !== C.ListSeparator_undecided0;
  77909. }
  77910. if (this.separator !== C.ListSeparator_space0)
  77911. return false;
  77912. if (expression instanceof X.UnaryOperationExpression0) {
  77913. t1 = expression.operator;
  77914. return t1 === C.UnaryOperator_j2w0 || t1 === C.UnaryOperator_U4G0;
  77915. }
  77916. return false;
  77917. },
  77918. $isExpression0: 1,
  77919. $isAstNode0: 1,
  77920. get$span: function() {
  77921. return this.span;
  77922. }
  77923. };
  77924. D.ListExpression_toString_closure0.prototype = {
  77925. call$1: function(element) {
  77926. return this.$this._list3$_elementNeedsParens$1(element) ? "(" + H.S(element) + ")" : J.toString$0$(element);
  77927. },
  77928. $signature: 380
  77929. };
  77930. D.closure158.prototype = {
  77931. call$1: function($arguments) {
  77932. return T.SassNumber$0(J.$index$asx($arguments, 0).get$asList().length, null);
  77933. },
  77934. $signature: 10
  77935. };
  77936. D.closure157.prototype = {
  77937. call$1: function($arguments) {
  77938. var t1 = J.getInterceptor$asx($arguments),
  77939. list = t1.$index($arguments, 0),
  77940. index = t1.$index($arguments, 1);
  77941. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  77942. },
  77943. $signature: 3
  77944. };
  77945. D.closure156.prototype = {
  77946. call$1: function($arguments) {
  77947. var t1 = J.getInterceptor$asx($arguments),
  77948. list = t1.$index($arguments, 0),
  77949. index = t1.$index($arguments, 1),
  77950. value = t1.$index($arguments, 2),
  77951. t2 = list.get$asList(),
  77952. newList = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2));
  77953. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  77954. return t1.$index($arguments, 0).changeListContents$1(newList);
  77955. },
  77956. $signature: 27
  77957. };
  77958. D.closure155.prototype = {
  77959. call$1: function($arguments) {
  77960. var separator, bracketed, t2, t3, _i,
  77961. t1 = J.getInterceptor$asx($arguments),
  77962. list1 = t1.$index($arguments, 0),
  77963. list2 = t1.$index($arguments, 1),
  77964. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  77965. bracketedParam = t1.$index($arguments, 3);
  77966. t1 = separatorParam.text;
  77967. if (t1 === "auto")
  77968. if (list1.get$separator() !== C.ListSeparator_undecided0)
  77969. separator = list1.get$separator();
  77970. else
  77971. separator = list2.get$separator() !== C.ListSeparator_undecided0 ? list2.get$separator() : C.ListSeparator_space0;
  77972. else if (t1 === "space")
  77973. separator = C.ListSeparator_space0;
  77974. else {
  77975. if (t1 !== "comma")
  77976. throw H.wrapException(E.SassScriptException$0(string$.x24separ));
  77977. separator = C.ListSeparator_comma0;
  77978. }
  77979. bracketed = bracketedParam instanceof D.SassString0 && bracketedParam.text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  77980. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  77981. for (t2 = list1.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  77982. t1.push(t2[_i]);
  77983. for (t2 = list2.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  77984. t1.push(t2[_i]);
  77985. return D.SassList$0(t1, separator, bracketed);
  77986. },
  77987. $signature: 27
  77988. };
  77989. D.closure154.prototype = {
  77990. call$1: function($arguments) {
  77991. var separator, t2, t3, _i,
  77992. t1 = J.getInterceptor$asx($arguments),
  77993. list = t1.$index($arguments, 0),
  77994. value = t1.$index($arguments, 1);
  77995. t1 = t1.$index($arguments, 2).assertString$1("separator").text;
  77996. if (t1 === "auto")
  77997. separator = list.get$separator() === C.ListSeparator_undecided0 ? C.ListSeparator_space0 : list.get$separator();
  77998. else if (t1 === "space")
  77999. separator = C.ListSeparator_space0;
  78000. else {
  78001. if (t1 !== "comma")
  78002. throw H.wrapException(E.SassScriptException$0(string$.x24separ));
  78003. separator = C.ListSeparator_comma0;
  78004. }
  78005. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78006. for (t2 = list.get$asList(), t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  78007. t1.push(t2[_i]);
  78008. t1.push(value);
  78009. return list.changeListContents$2$separator(t1, separator);
  78010. },
  78011. $signature: 27
  78012. };
  78013. D.closure153.prototype = {
  78014. call$1: function($arguments) {
  78015. var results, result, _box_0 = {},
  78016. t1 = J.$index$asx($arguments, 0).get$asList(),
  78017. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0*>*>"),
  78018. lists = P.List_List$from(new H.MappedListIterable(t1, new D._closure20(), t2), true, t2._eval$1("ListIterable.E"));
  78019. if (lists.length === 0)
  78020. return C.SassList_lmy0;
  78021. _box_0.i = 0;
  78022. results = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SassList_2);
  78023. for (t1 = H._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0*>"), t2 = type$.legacy_Value_2; C.JSArray_methods.every$1(lists, new D._closure21(_box_0));) {
  78024. result = P.List_List$from(new H.MappedListIterable(lists, new D._closure22(_box_0), t1), false, t2);
  78025. result.fixed$length = Array;
  78026. result.immutable$list = Array;
  78027. results.push(new D.SassList0(result, C.ListSeparator_space0, false));
  78028. ++_box_0.i;
  78029. }
  78030. return D.SassList$0(results, C.ListSeparator_comma0, false);
  78031. },
  78032. $signature: 27
  78033. };
  78034. D._closure20.prototype = {
  78035. call$1: function(list) {
  78036. return list.get$asList();
  78037. },
  78038. $signature: 382
  78039. };
  78040. D._closure21.prototype = {
  78041. call$1: function(list) {
  78042. return this._box_0.i !== J.get$length$asx(list);
  78043. },
  78044. $signature: 383
  78045. };
  78046. D._closure22.prototype = {
  78047. call$1: function(list) {
  78048. return J.$index$asx(list, this._box_0.i);
  78049. },
  78050. $signature: 3
  78051. };
  78052. D.closure152.prototype = {
  78053. call$1: function($arguments) {
  78054. var t1 = J.getInterceptor$asx($arguments),
  78055. index = C.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  78056. return index === -1 ? C.C_SassNull : T.SassNumber$0(index + 1, null);
  78057. },
  78058. $signature: 3
  78059. };
  78060. D.closure150.prototype = {
  78061. call$1: function($arguments) {
  78062. return J.$index$asx($arguments, 0).get$separator() === C.ListSeparator_comma0 ? new D.SassString0("comma", false) : new D.SassString0("space", false);
  78063. },
  78064. $signature: 16
  78065. };
  78066. D.closure151.prototype = {
  78067. call$1: function($arguments) {
  78068. return J.$index$asx($arguments, 0).get$hasBrackets() ? C.SassBoolean_true : C.SassBoolean_false;
  78069. },
  78070. $signature: 20
  78071. };
  78072. D.SelectorList0.prototype = {
  78073. get$isInvisible: function() {
  78074. return C.JSArray_methods.every$1(this.components, new D.SelectorList_isInvisible_closure0());
  78075. },
  78076. get$asSassList: function() {
  78077. var t1 = this.components;
  78078. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_comma0, false);
  78079. },
  78080. accept$1$1: function(visitor) {
  78081. return visitor.visitSelectorList$1(this);
  78082. },
  78083. accept$1: function(visitor) {
  78084. return this.accept$1$1(visitor, type$.dynamic);
  78085. },
  78086. unify$1: function(other) {
  78087. var t1 = this.components,
  78088. t2 = H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0*>"),
  78089. contents = P.List_List$from(new H.ExpandIterable(t1, new D.SelectorList_unify_closure0(other), t2), true, t2._eval$1("Iterable.E"));
  78090. return contents.length === 0 ? null : D.SelectorList$0(contents);
  78091. },
  78092. resolveParentSelectors$2$implicitParent: function($parent, implicitParent) {
  78093. var t1, _this = this;
  78094. if ($parent == null) {
  78095. if (!C.JSArray_methods.any$1(_this.components, _this.get$_list2$_complexContainsParentSelector()))
  78096. return _this;
  78097. throw H.wrapException(E.SassScriptException$0(string$.Top_le));
  78098. }
  78099. t1 = _this.components;
  78100. return D.SelectorList$0(B.flattenVertically0(new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors_closure0(_this, implicitParent, $parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0*>*>")), type$.legacy_ComplexSelector_2));
  78101. },
  78102. resolveParentSelectors$1: function($parent) {
  78103. return this.resolveParentSelectors$2$implicitParent($parent, true);
  78104. },
  78105. _list2$_complexContainsParentSelector$1: function(complex) {
  78106. return C.JSArray_methods.any$1(complex.components, new D.SelectorList__complexContainsParentSelector_closure0());
  78107. },
  78108. _list2$_resolveParentSelectorsCompound$2: function(compound, $parent) {
  78109. var resolvedMembers0, parentSelector, t1,
  78110. resolvedMembers = compound.components,
  78111. containsSelectorPseudo = C.JSArray_methods.any$1(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure2());
  78112. if (!containsSelectorPseudo && !(C.JSArray_methods.get$first(resolvedMembers) instanceof M.ParentSelector0))
  78113. return null;
  78114. resolvedMembers0 = containsSelectorPseudo ? new H.MappedListIterable(resolvedMembers, new D.SelectorList__resolveParentSelectorsCompound_closure3($parent), H._arrayInstanceType(resolvedMembers)._eval$1("MappedListIterable<1,SimpleSelector0*>")) : resolvedMembers;
  78115. parentSelector = C.JSArray_methods.get$first(resolvedMembers);
  78116. if (parentSelector instanceof M.ParentSelector0) {
  78117. if (resolvedMembers.length === 1 && parentSelector.suffix == null)
  78118. return $parent.components;
  78119. } else
  78120. return H.setRuntimeTypeInfo([S.ComplexSelector$0(H.setRuntimeTypeInfo([X.CompoundSelector$0(resolvedMembers0)], type$.JSArray_legacy_ComplexSelectorComponent_2), false)], type$.JSArray_legacy_ComplexSelector_2);
  78121. t1 = $parent.components;
  78122. return new H.MappedListIterable(t1, new D.SelectorList__resolveParentSelectorsCompound_closure4(compound, resolvedMembers0), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  78123. },
  78124. get$hashCode: function(_) {
  78125. return C.C_ListEquality.hash$1(this.components);
  78126. },
  78127. $eq: function(_, other) {
  78128. if (other == null)
  78129. return false;
  78130. return other instanceof D.SelectorList0 && C.C_ListEquality.equals$2(0, this.components, other.components);
  78131. }
  78132. };
  78133. D.SelectorList_isInvisible_closure0.prototype = {
  78134. call$1: function(complex) {
  78135. return complex.get$isInvisible();
  78136. },
  78137. $signature: 13
  78138. };
  78139. D.SelectorList_asSassList_closure0.prototype = {
  78140. call$1: function(complex) {
  78141. var t1 = complex.components;
  78142. return D.SassList$0(new H.MappedListIterable(t1, new D.SelectorList_asSassList__closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_space0, false);
  78143. },
  78144. $signature: 384
  78145. };
  78146. D.SelectorList_asSassList__closure0.prototype = {
  78147. call$1: function(component) {
  78148. return new D.SassString0(J.toString$0$(component), false);
  78149. },
  78150. $signature: 385
  78151. };
  78152. D.SelectorList_unify_closure0.prototype = {
  78153. call$1: function(complex1) {
  78154. var t1 = this.other.components;
  78155. return new H.ExpandIterable(t1, new D.SelectorList_unify__closure0(complex1), H._arrayInstanceType(t1)._eval$1("ExpandIterable<1,ComplexSelector0*>"));
  78156. },
  78157. $signature: 119
  78158. };
  78159. D.SelectorList_unify__closure0.prototype = {
  78160. call$1: function(complex2) {
  78161. var unified = Y.unifyComplex0(H.setRuntimeTypeInfo([this.complex1.components, complex2.components], type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2));
  78162. if (unified == null)
  78163. return C.List_empty15;
  78164. return J.map$1$1$ax(unified, new D.SelectorList_unify___closure0(), type$.legacy_ComplexSelector_2);
  78165. },
  78166. $signature: 119
  78167. };
  78168. D.SelectorList_unify___closure0.prototype = {
  78169. call$1: function(complex) {
  78170. return S.ComplexSelector$0(complex, false);
  78171. },
  78172. $signature: 71
  78173. };
  78174. D.SelectorList_resolveParentSelectors_closure0.prototype = {
  78175. call$1: function(complex) {
  78176. var t2, t3, newComplexes, t4, t5, t6, t7, _i, component, resolved, t8, _i0, previousLineBreaks, newComplexes0, t9, i, newComplex, i0, lineBreak, t10, t11, t12, t13, t14, t15, _i1, _this = this, _box_0 = {},
  78177. t1 = _this.$this;
  78178. if (!t1._list2$_complexContainsParentSelector$1(complex)) {
  78179. if (!_this.implicitParent)
  78180. return H.setRuntimeTypeInfo([complex], type$.JSArray_legacy_ComplexSelector_2);
  78181. t1 = _this.parent.components;
  78182. return new H.MappedListIterable(t1, new D.SelectorList_resolveParentSelectors__closure1(complex), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  78183. }
  78184. t2 = type$.JSArray_legacy_ComplexSelectorComponent_2;
  78185. t3 = type$.JSArray_legacy_List_legacy_ComplexSelectorComponent_2;
  78186. newComplexes = H.setRuntimeTypeInfo([H.setRuntimeTypeInfo([], t2)], t3);
  78187. t4 = type$.JSArray_legacy_bool;
  78188. _box_0.lineBreaks = H.setRuntimeTypeInfo([false], t4);
  78189. for (t5 = complex.components, t6 = t5.length, t7 = _this.parent, _i = 0; _i < t6; ++_i) {
  78190. component = t5[_i];
  78191. if (component instanceof X.CompoundSelector0) {
  78192. resolved = t1._list2$_resolveParentSelectorsCompound$2(component, t7);
  78193. if (resolved == null) {
  78194. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  78195. newComplexes[_i0].push(component);
  78196. continue;
  78197. }
  78198. previousLineBreaks = _box_0.lineBreaks;
  78199. newComplexes0 = H.setRuntimeTypeInfo([], t3);
  78200. _box_0.lineBreaks = H.setRuntimeTypeInfo([], t4);
  78201. for (t8 = newComplexes.length, t9 = J.getInterceptor$ax(resolved), i = 0, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0, i = i0) {
  78202. newComplex = newComplexes[_i0];
  78203. i0 = i + 1;
  78204. lineBreak = previousLineBreaks[i];
  78205. for (t10 = t9.get$iterator(resolved), t11 = !lineBreak; t10.moveNext$0();) {
  78206. t12 = t10.get$current(t10);
  78207. t13 = H.setRuntimeTypeInfo([], t2);
  78208. for (t14 = C.JSArray_methods.get$iterator(newComplex); t14.moveNext$0();)
  78209. t13.push(t14.get$current(t14));
  78210. for (t14 = t12.components, t15 = t14.length, _i1 = 0; _i1 < t15; ++_i1)
  78211. t13.push(t14[_i1]);
  78212. newComplexes0.push(t13);
  78213. t13 = _box_0.lineBreaks;
  78214. t13.push(!t11 || t12.lineBreak);
  78215. }
  78216. }
  78217. newComplexes = newComplexes0;
  78218. } else
  78219. for (t8 = newComplexes.length, _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t8 || (0, H.throwConcurrentModificationError)(newComplexes), ++_i0)
  78220. newComplexes[_i0].push(component);
  78221. }
  78222. _box_0.i = 0;
  78223. return new H.MappedListIterable(newComplexes, new D.SelectorList_resolveParentSelectors__closure2(_box_0), H._arrayInstanceType(newComplexes)._eval$1("MappedListIterable<1,ComplexSelector0*>"));
  78224. },
  78225. $signature: 119
  78226. };
  78227. D.SelectorList_resolveParentSelectors__closure1.prototype = {
  78228. call$1: function(parentComplex) {
  78229. var t2, t3, _i, t4,
  78230. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  78231. for (t2 = parentComplex.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  78232. t1.push(t2[_i]);
  78233. for (t2 = this.complex, t3 = t2.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  78234. t1.push(t3[_i]);
  78235. return S.ComplexSelector$0(t1, t2.lineBreak || parentComplex.lineBreak);
  78236. },
  78237. $signature: 98
  78238. };
  78239. D.SelectorList_resolveParentSelectors__closure2.prototype = {
  78240. call$1: function(newComplex) {
  78241. var t1 = this._box_0;
  78242. return S.ComplexSelector$0(newComplex, t1.lineBreaks[t1.i++]);
  78243. },
  78244. $signature: 71
  78245. };
  78246. D.SelectorList__complexContainsParentSelector_closure0.prototype = {
  78247. call$1: function(component) {
  78248. return component instanceof X.CompoundSelector0 && C.JSArray_methods.any$1(component.components, new D.SelectorList__complexContainsParentSelector__closure0());
  78249. },
  78250. $signature: 92
  78251. };
  78252. D.SelectorList__complexContainsParentSelector__closure0.prototype = {
  78253. call$1: function(simple) {
  78254. var t1;
  78255. if (!(simple instanceof M.ParentSelector0))
  78256. if (simple instanceof D.PseudoSelector0) {
  78257. t1 = simple.selector;
  78258. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  78259. } else
  78260. t1 = false;
  78261. else
  78262. t1 = true;
  78263. return t1;
  78264. },
  78265. $signature: 19
  78266. };
  78267. D.SelectorList__resolveParentSelectorsCompound_closure2.prototype = {
  78268. call$1: function(simple) {
  78269. var t1;
  78270. if (simple instanceof D.PseudoSelector0) {
  78271. t1 = simple.selector;
  78272. t1 = t1 != null && C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector());
  78273. } else
  78274. t1 = false;
  78275. return t1;
  78276. },
  78277. $signature: 19
  78278. };
  78279. D.SelectorList__resolveParentSelectorsCompound_closure3.prototype = {
  78280. call$1: function(simple) {
  78281. var t1, t2, t3;
  78282. if (simple instanceof D.PseudoSelector0) {
  78283. t1 = simple.selector;
  78284. if (t1 == null)
  78285. return simple;
  78286. if (!C.JSArray_methods.any$1(t1.components, t1.get$_list2$_complexContainsParentSelector()))
  78287. return simple;
  78288. t1 = t1.resolveParentSelectors$2$implicitParent(this.parent, false);
  78289. t2 = simple.name;
  78290. t3 = simple.isClass;
  78291. return D.PseudoSelector$0(t2, simple.argument, !t3, t1);
  78292. } else
  78293. return simple;
  78294. },
  78295. $signature: 388
  78296. };
  78297. D.SelectorList__resolveParentSelectorsCompound_closure4.prototype = {
  78298. call$1: function(complex) {
  78299. var suffix, t2, t3, t4, cur, last, _i,
  78300. t1 = complex.components,
  78301. lastComponent = C.JSArray_methods.get$last(t1);
  78302. if (!(lastComponent instanceof X.CompoundSelector0))
  78303. throw H.wrapException(E.SassScriptException$0('Parent "' + complex.toString$0(0) + '" is incompatible with this selector.'));
  78304. suffix = type$.legacy_ParentSelector_2._as(C.JSArray_methods.get$first(this.compound.components)).suffix;
  78305. t2 = type$.JSArray_legacy_SimpleSelector_2;
  78306. if (suffix != null) {
  78307. t2 = H.setRuntimeTypeInfo([], t2);
  78308. for (t3 = lastComponent.components, t4 = H.SubListIterable$(t3, 0, t3.length - 1, H._arrayInstanceType(t3)._precomputed1), t4 = new H.ListIterator(t4, t4.get$length(t4)); t4.moveNext$0();) {
  78309. cur = t4.__internal$_current;
  78310. t2.push(cur);
  78311. }
  78312. t2.push(C.JSArray_methods.get$last(t3).addSuffix$1(suffix));
  78313. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  78314. cur = t3.__internal$_current;
  78315. t2.push(cur);
  78316. }
  78317. last = X.CompoundSelector$0(t2);
  78318. } else {
  78319. t2 = H.setRuntimeTypeInfo([], t2);
  78320. for (t3 = lastComponent.components, t4 = t3.length, _i = 0; _i < t4; ++_i)
  78321. t2.push(t3[_i]);
  78322. for (t3 = J.skip$1$ax(this.resolvedMembers, 1), t3 = new H.ListIterator(t3, t3.get$length(t3)); t3.moveNext$0();) {
  78323. cur = t3.__internal$_current;
  78324. t2.push(cur);
  78325. }
  78326. last = X.CompoundSelector$0(t2);
  78327. }
  78328. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  78329. for (t1 = H.SubListIterable$(t1, 0, t1.length - 1, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  78330. cur = t1.__internal$_current;
  78331. t2.push(cur);
  78332. }
  78333. t2.push(last);
  78334. return S.ComplexSelector$0(t2, complex.lineBreak);
  78335. },
  78336. $signature: 98
  78337. };
  78338. D._NodeSassList.prototype = {};
  78339. D.closure246.prototype = {
  78340. call$4: function(thisArg, $length, commaSeparator, dartValue) {
  78341. var t1;
  78342. if (dartValue == null) {
  78343. t1 = P.Iterable_Iterable$generate($length, new D._closure33(), type$.legacy_Value_2);
  78344. t1 = D.SassList$0(t1, commaSeparator !== false ? C.ListSeparator_comma0 : C.ListSeparator_space0, false);
  78345. } else
  78346. t1 = dartValue;
  78347. J.set$dartValue$x(thisArg, t1);
  78348. },
  78349. call$2: function(thisArg, $length) {
  78350. return this.call$4(thisArg, $length, null, null);
  78351. },
  78352. call$3: function(thisArg, $length, commaSeparator) {
  78353. return this.call$4(thisArg, $length, commaSeparator, null);
  78354. },
  78355. "call*": "call$4",
  78356. $requiredArgCount: 2,
  78357. $defaultValues: function() {
  78358. return [null, null];
  78359. },
  78360. $signature: 389
  78361. };
  78362. D._closure33.prototype = {
  78363. call$1: function(_) {
  78364. return C.C_SassNull;
  78365. },
  78366. $signature: 194
  78367. };
  78368. D.closure247.prototype = {
  78369. call$2: function(thisArg, index) {
  78370. return F.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
  78371. },
  78372. "call*": "call$2",
  78373. $requiredArgCount: 2,
  78374. $signature: 391
  78375. };
  78376. D.closure248.prototype = {
  78377. call$3: function(thisArg, index, value) {
  78378. var t1 = J.getInterceptor$x(thisArg),
  78379. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  78380. mutable = H.setRuntimeTypeInfo(t2.slice(0), H._arrayInstanceType(t2)._eval$1("JSArray<1>"));
  78381. mutable[index] = F.unwrapValue(value);
  78382. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeListContents$1(mutable));
  78383. },
  78384. "call*": "call$3",
  78385. $requiredArgCount: 3,
  78386. $signature: 392
  78387. };
  78388. D.closure249.prototype = {
  78389. call$1: function(thisArg) {
  78390. return J.get$dartValue$x(thisArg).separator === C.ListSeparator_comma0;
  78391. },
  78392. $signature: 393
  78393. };
  78394. D.closure250.prototype = {
  78395. call$2: function(thisArg, isComma) {
  78396. var t1 = J.getInterceptor$x(thisArg),
  78397. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  78398. t3 = isComma ? C.ListSeparator_comma0 : C.ListSeparator_space0;
  78399. t1.set$dartValue(thisArg, D.SassList$0(t2, t3, t1.get$dartValue(thisArg).hasBrackets));
  78400. },
  78401. "call*": "call$2",
  78402. $requiredArgCount: 2,
  78403. $signature: 394
  78404. };
  78405. D.closure251.prototype = {
  78406. call$1: function(thisArg) {
  78407. return J.get$dartValue$x(thisArg)._list1$_contents.length;
  78408. },
  78409. $signature: 395
  78410. };
  78411. D.closure252.prototype = {
  78412. call$1: function(thisArg) {
  78413. return J.toString$0$(J.get$dartValue$x(thisArg));
  78414. },
  78415. $signature: 396
  78416. };
  78417. D.SassList0.prototype = {
  78418. get$isBlank: function() {
  78419. return C.JSArray_methods.every$1(this._list1$_contents, new D.SassList_isBlank_closure0());
  78420. },
  78421. get$asList: function() {
  78422. return this._list1$_contents;
  78423. },
  78424. get$lengthAsList: function() {
  78425. return this._list1$_contents.length;
  78426. },
  78427. SassList$3$brackets0: function(contents, separator, brackets) {
  78428. if (this.separator === C.ListSeparator_undecided0 && this._list1$_contents.length > 1)
  78429. throw H.wrapException(P.ArgumentError$(string$.A_list));
  78430. },
  78431. accept$1$1: function(visitor) {
  78432. return visitor.visitList$1(this);
  78433. },
  78434. accept$1: function(visitor) {
  78435. return this.accept$1$1(visitor, type$.dynamic);
  78436. },
  78437. assertMap$1: function($name) {
  78438. return this._list1$_contents.length === 0 ? C.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
  78439. },
  78440. tryMap$0: function() {
  78441. return this._list1$_contents.length === 0 ? C.SassMap_Map_empty0 : null;
  78442. },
  78443. $eq: function(_, other) {
  78444. var t1, _this = this;
  78445. if (other == null)
  78446. return false;
  78447. if (!(other instanceof D.SassList0 && other.separator === _this.separator && other.hasBrackets === _this.hasBrackets && C.C_ListEquality.equals$2(0, other._list1$_contents, _this._list1$_contents)))
  78448. t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
  78449. else
  78450. t1 = true;
  78451. return t1;
  78452. },
  78453. get$hashCode: function(_) {
  78454. return C.C_ListEquality.hash$1(this._list1$_contents);
  78455. },
  78456. get$separator: function() {
  78457. return this.separator;
  78458. },
  78459. get$hasBrackets: function() {
  78460. return this.hasBrackets;
  78461. }
  78462. };
  78463. D.SassList_isBlank_closure0.prototype = {
  78464. call$1: function(element) {
  78465. return element.get$isBlank();
  78466. },
  78467. $signature: 55
  78468. };
  78469. D.ListSeparator0.prototype = {
  78470. toString$0: function(_) {
  78471. return this._list1$_name;
  78472. }
  78473. };
  78474. L.LoudComment0.prototype = {
  78475. get$span: function() {
  78476. return this.text.span;
  78477. },
  78478. accept$1$1: function(visitor) {
  78479. return visitor.visitLoudComment$1(this);
  78480. },
  78481. accept$1: function(visitor) {
  78482. return this.accept$1$1(visitor, type$.dynamic);
  78483. },
  78484. toString$0: function(_) {
  78485. return this.text.toString$0(0);
  78486. },
  78487. $isAstNode0: 1,
  78488. $isStatement0: 1
  78489. };
  78490. A.MapExpression0.prototype = {
  78491. accept$1$1: function(visitor) {
  78492. return visitor.visitMapExpression$1(this);
  78493. },
  78494. accept$1: function(visitor) {
  78495. return this.accept$1$1(visitor, type$.dynamic);
  78496. },
  78497. toString$0: function(_) {
  78498. var t1 = this.pairs;
  78499. return "(" + new H.MappedListIterable(t1, new A.MapExpression_toString_closure0(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String*>")).join$1(0, ", ") + ")";
  78500. },
  78501. $isExpression0: 1,
  78502. $isAstNode0: 1,
  78503. get$span: function() {
  78504. return this.span;
  78505. }
  78506. };
  78507. A.MapExpression_toString_closure0.prototype = {
  78508. call$1: function(pair) {
  78509. return H.S(pair.item1) + ": " + H.S(pair.item2);
  78510. },
  78511. $signature: 397
  78512. };
  78513. A.closure149.prototype = {
  78514. call$1: function($arguments) {
  78515. var t3, _i, cur, value,
  78516. t1 = J.getInterceptor$asx($arguments),
  78517. map = t1.$index($arguments, 0).assertMap$1("map"),
  78518. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78519. t2.push(t1.$index($arguments, 1));
  78520. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  78521. t2.push(t1[_i]);
  78522. for (t1 = H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value_2), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0(); map = value) {
  78523. cur = t1.__internal$_current;
  78524. value = map.contents.$index(0, cur);
  78525. if (!(value instanceof A.SassMap0))
  78526. return C.C_SassNull;
  78527. }
  78528. t1 = map.contents.$index(0, C.JSArray_methods.get$last(t2));
  78529. return t1 == null ? C.C_SassNull : t1;
  78530. },
  78531. $signature: 3
  78532. };
  78533. A.closure212.prototype = {
  78534. call$1: function($arguments) {
  78535. var t1 = J.getInterceptor$asx($arguments);
  78536. return A._modify0(t1.$index($arguments, 0).assertMap$1("map"), H.setRuntimeTypeInfo([t1.$index($arguments, 1)], type$.JSArray_legacy_Value_2), new A._closure27($arguments));
  78537. },
  78538. $signature: 3
  78539. };
  78540. A._closure27.prototype = {
  78541. call$1: function(_) {
  78542. return J.$index$asx(this.$arguments, 2);
  78543. },
  78544. $signature: 73
  78545. };
  78546. A.closure213.prototype = {
  78547. call$1: function($arguments) {
  78548. var t1 = J.getInterceptor$asx($arguments),
  78549. map = t1.$index($arguments, 0).assertMap$1("map"),
  78550. args = t1.$index($arguments, 1).get$asList();
  78551. t1 = args.length;
  78552. if (t1 === 0)
  78553. throw H.wrapException(E.SassScriptException$0("Expected $args to contain a key."));
  78554. else if (t1 === 1)
  78555. throw H.wrapException(E.SassScriptException$0("Expected $args to contain a value."));
  78556. return A._modify0(map, C.JSArray_methods.sublist$2(args, 0, t1 - 1), new A._closure26(args));
  78557. },
  78558. $signature: 3
  78559. };
  78560. A._closure26.prototype = {
  78561. call$1: function(_) {
  78562. return C.JSArray_methods.get$last(this.args);
  78563. },
  78564. $signature: 73
  78565. };
  78566. A.closure147.prototype = {
  78567. call$1: function($arguments) {
  78568. var t2, t3, t4,
  78569. t1 = J.getInterceptor$asx($arguments),
  78570. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  78571. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  78572. t1 = type$.legacy_Value_2;
  78573. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  78574. for (t3 = map1.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78575. t4 = t3.get$current(t3);
  78576. t2.$indexSet(0, t4.key, t4.value);
  78577. }
  78578. for (t3 = map2.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78579. t4 = t3.get$current(t3);
  78580. t2.$indexSet(0, t4.key, t4.value);
  78581. }
  78582. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  78583. },
  78584. $signature: 38
  78585. };
  78586. A.closure148.prototype = {
  78587. call$1: function($arguments) {
  78588. var map2,
  78589. t1 = J.getInterceptor$asx($arguments),
  78590. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  78591. args = t1.$index($arguments, 1).get$asList();
  78592. t1 = args.length;
  78593. if (t1 === 0)
  78594. throw H.wrapException(E.SassScriptException$0("Expected $args to contain a key."));
  78595. else if (t1 === 1)
  78596. throw H.wrapException(E.SassScriptException$0("Expected $args to contain a map."));
  78597. map2 = C.JSArray_methods.get$last(args).assertMap$1("map2");
  78598. return A._modify0(map1, H.SubListIterable$(args, 0, args.length - 1, H._arrayInstanceType(args)._precomputed1), new A._closure19(map2));
  78599. },
  78600. $signature: 3
  78601. };
  78602. A._closure19.prototype = {
  78603. call$1: function(oldValue) {
  78604. var t1, t2, t3, t4,
  78605. nestedMap = oldValue == null ? null : oldValue.tryMap$0();
  78606. if (nestedMap == null)
  78607. return this.map2;
  78608. t1 = type$.legacy_Value_2;
  78609. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  78610. for (t3 = nestedMap.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78611. t4 = t3.get$current(t3);
  78612. t2.$indexSet(0, t4.key, t4.value);
  78613. }
  78614. for (t3 = this.map2.contents, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78615. t4 = t3.get$current(t3);
  78616. t2.$indexSet(0, t4.key, t4.value);
  78617. }
  78618. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  78619. },
  78620. $signature: 398
  78621. };
  78622. A.closure211.prototype = {
  78623. call$1: function($arguments) {
  78624. var t1 = J.getInterceptor$asx($arguments);
  78625. return A._deepMergeImpl0(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  78626. },
  78627. $signature: 38
  78628. };
  78629. A.closure210.prototype = {
  78630. call$1: function($arguments) {
  78631. var t3, _i,
  78632. t1 = J.getInterceptor$asx($arguments),
  78633. map = t1.$index($arguments, 0).assertMap$1("map"),
  78634. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78635. t2.push(t1.$index($arguments, 1));
  78636. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  78637. t2.push(t1[_i]);
  78638. return A._modify0(map, H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value_2), new A._closure25(t2));
  78639. },
  78640. $signature: 3
  78641. };
  78642. A._closure25.prototype = {
  78643. call$1: function(value) {
  78644. var t2,
  78645. nestedMap = value == null ? null : value.tryMap$0(),
  78646. t1 = nestedMap == null ? null : nestedMap.contents;
  78647. t1 = t1 == null ? null : t1.containsKey$1(C.JSArray_methods.get$last(this.keys));
  78648. if (t1 === true) {
  78649. t1 = type$.legacy_Value_2;
  78650. t2 = P.LinkedHashMap_LinkedHashMap$of(nestedMap.contents, t1, t1);
  78651. t2.remove$1(0, C.JSArray_methods.get$last(this.keys));
  78652. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  78653. }
  78654. return value;
  78655. },
  78656. $signature: 73
  78657. };
  78658. A.closure145.prototype = {
  78659. call$1: function($arguments) {
  78660. return J.$index$asx($arguments, 0).assertMap$1("map");
  78661. },
  78662. $signature: 38
  78663. };
  78664. A.closure146.prototype = {
  78665. call$1: function($arguments) {
  78666. var t3, _i, mutableMap,
  78667. t1 = J.getInterceptor$asx($arguments),
  78668. map = t1.$index($arguments, 0).assertMap$1("map"),
  78669. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78670. t2.push(t1.$index($arguments, 1));
  78671. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  78672. t2.push(t1[_i]);
  78673. t1 = type$.legacy_Value_2;
  78674. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1);
  78675. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, H.throwConcurrentModificationError)(t2), ++_i)
  78676. mutableMap.remove$1(0, t2[_i]);
  78677. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  78678. },
  78679. $signature: 38
  78680. };
  78681. A.closure144.prototype = {
  78682. call$1: function($arguments) {
  78683. var t1 = J.$index$asx($arguments, 0).assertMap$1("map").contents;
  78684. return D.SassList$0(t1.get$keys(t1), C.ListSeparator_comma0, false);
  78685. },
  78686. $signature: 27
  78687. };
  78688. A.closure143.prototype = {
  78689. call$1: function($arguments) {
  78690. var t1 = J.$index$asx($arguments, 0).assertMap$1("map").contents;
  78691. return D.SassList$0(t1.get$values(t1), C.ListSeparator_comma0, false);
  78692. },
  78693. $signature: 27
  78694. };
  78695. A.closure142.prototype = {
  78696. call$1: function($arguments) {
  78697. var t3, _i, cur, value,
  78698. t1 = J.getInterceptor$asx($arguments),
  78699. map = t1.$index($arguments, 0).assertMap$1("map"),
  78700. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78701. t2.push(t1.$index($arguments, 1));
  78702. for (t1 = t1.$index($arguments, 2).get$asList(), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, H.throwConcurrentModificationError)(t1), ++_i)
  78703. t2.push(t1[_i]);
  78704. for (t1 = H.SubListIterable$(t2, 0, t2.length - 1, type$.legacy_Value_2), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0(); map = value) {
  78705. cur = t1.__internal$_current;
  78706. value = map.contents.$index(0, cur);
  78707. if (!(value instanceof A.SassMap0))
  78708. return C.SassBoolean_false;
  78709. }
  78710. return map.contents.containsKey$1(C.JSArray_methods.get$last(t2)) ? C.SassBoolean_true : C.SassBoolean_false;
  78711. },
  78712. $signature: 20
  78713. };
  78714. A._modify__modifyNestedMap0.prototype = {
  78715. call$2: function(map, newValue) {
  78716. var nestedMap, _this = this,
  78717. t1 = type$.legacy_Value_2,
  78718. mutableMap = P.LinkedHashMap_LinkedHashMap$of(map.contents, t1, t1),
  78719. t2 = _this.keyIterator,
  78720. key = t2.get$current(t2);
  78721. if (!t2.moveNext$0()) {
  78722. mutableMap.$indexSet(0, key, newValue == null ? _this.modify.call$1(mutableMap.$index(0, key)) : newValue);
  78723. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  78724. }
  78725. t2 = mutableMap.$index(0, key);
  78726. nestedMap = t2 == null ? null : t2.tryMap$0();
  78727. t2 = nestedMap == null;
  78728. if (t2) {
  78729. newValue = _this.modify.call$1(null);
  78730. if (newValue == null)
  78731. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  78732. }
  78733. mutableMap.$indexSet(0, key, _this.call$2(t2 ? C.SassMap_Map_empty0 : nestedMap, newValue));
  78734. return new A.SassMap0(H.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  78735. },
  78736. call$1: function(map) {
  78737. return this.call$2(map, null);
  78738. },
  78739. $signature: 399
  78740. };
  78741. A._deepMergeImpl__ensureMutable0.prototype = {
  78742. call$0: function() {
  78743. var t2,
  78744. t1 = this._box_0;
  78745. if (t1.mutable)
  78746. return;
  78747. t1.mutable = true;
  78748. t2 = type$.legacy_Value_2;
  78749. t1.result = P.LinkedHashMap_LinkedHashMap$of(t1.result, t2, t2);
  78750. },
  78751. $signature: 1
  78752. };
  78753. A._deepMergeImpl_closure0.prototype = {
  78754. call$2: function(key, value) {
  78755. var resultMap, valueMap, merged,
  78756. t1 = this._box_0,
  78757. resultValue = t1.result.$index(0, key);
  78758. if (resultValue == null) {
  78759. this._ensureMutable.call$0();
  78760. t1.result.$indexSet(0, key, value);
  78761. } else {
  78762. resultMap = resultValue.tryMap$0();
  78763. valueMap = value.tryMap$0();
  78764. if (resultMap != null && valueMap != null) {
  78765. merged = A._deepMergeImpl0(valueMap, resultMap);
  78766. if (merged === resultMap)
  78767. return;
  78768. this._ensureMutable.call$0();
  78769. t1.result.$indexSet(0, key, merged);
  78770. }
  78771. }
  78772. },
  78773. $signature: 45
  78774. };
  78775. A._NodeSassMap.prototype = {};
  78776. A.closure239.prototype = {
  78777. call$3: function(thisArg, $length, dartValue) {
  78778. var t1, t2, t3, map;
  78779. if (dartValue == null) {
  78780. t1 = type$.legacy_Value_2;
  78781. t2 = P.Iterable_Iterable$generate($length, new A._closure31(), t1);
  78782. t3 = P.Iterable_Iterable$generate($length, new A._closure32(), t1);
  78783. map = P.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
  78784. P.MapBase__fillMapWithIterables(map, t2, t3);
  78785. t1 = new A.SassMap0(H.ConstantMap_ConstantMap$from(map, t1, t1));
  78786. } else
  78787. t1 = dartValue;
  78788. J.set$dartValue$x(thisArg, t1);
  78789. },
  78790. call$2: function(thisArg, $length) {
  78791. return this.call$3(thisArg, $length, null);
  78792. },
  78793. "call*": "call$3",
  78794. $requiredArgCount: 2,
  78795. $defaultValues: function() {
  78796. return [null];
  78797. },
  78798. $signature: 400
  78799. };
  78800. A._closure31.prototype = {
  78801. call$1: function(i) {
  78802. return T.SassNumber$0(i, null);
  78803. },
  78804. $signature: 401
  78805. };
  78806. A._closure32.prototype = {
  78807. call$1: function(_) {
  78808. return C.C_SassNull;
  78809. },
  78810. $signature: 194
  78811. };
  78812. A.closure240.prototype = {
  78813. call$2: function(thisArg, index) {
  78814. var t1 = J.get$dartValue$x(thisArg).contents;
  78815. return F.wrapValue(J.elementAt$1$ax(t1.get$keys(t1), index));
  78816. },
  78817. "call*": "call$2",
  78818. $requiredArgCount: 2,
  78819. $signature: 189
  78820. };
  78821. A.closure241.prototype = {
  78822. call$2: function(thisArg, index) {
  78823. var t1 = J.get$dartValue$x(thisArg).contents;
  78824. return F.wrapValue(t1.get$values(t1).elementAt$1(0, index));
  78825. },
  78826. "call*": "call$2",
  78827. $requiredArgCount: 2,
  78828. $signature: 189
  78829. };
  78830. A.closure242.prototype = {
  78831. call$1: function(thisArg) {
  78832. var t1 = J.get$dartValue$x(thisArg).contents;
  78833. return t1.get$length(t1);
  78834. },
  78835. $signature: 403
  78836. };
  78837. A.closure243.prototype = {
  78838. call$3: function(thisArg, index, key) {
  78839. var newKey, t2, newMap, t3, i, t4,
  78840. t1 = J.getInterceptor$x(thisArg),
  78841. oldMap = t1.get$dartValue(thisArg).contents;
  78842. P.RangeError_checkValidIndex(index, oldMap, "index");
  78843. newKey = F.unwrapValue(key);
  78844. t2 = type$.legacy_Value_2;
  78845. newMap = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  78846. for (t3 = t1.get$dartValue(thisArg).contents, t3 = J.get$iterator$ax(t3.get$keys(t3)), i = 0; t3.moveNext$0();) {
  78847. t4 = t3.get$current(t3);
  78848. if (i === index)
  78849. newMap.$indexSet(0, newKey, oldMap.$index(0, t4));
  78850. else {
  78851. if (newKey.$eq(0, t4))
  78852. throw H.wrapException(P.ArgumentError$value(key, "key", "is already in the map"));
  78853. newMap.$indexSet(0, t4, oldMap.$index(0, t4));
  78854. }
  78855. ++i;
  78856. }
  78857. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(newMap, t2, t2)));
  78858. },
  78859. "call*": "call$3",
  78860. $requiredArgCount: 3,
  78861. $signature: 177
  78862. };
  78863. A.closure244.prototype = {
  78864. call$3: function(thisArg, index, value) {
  78865. var t3, t4, t5,
  78866. t1 = J.getInterceptor$x(thisArg),
  78867. t2 = t1.get$dartValue(thisArg).contents,
  78868. key = J.elementAt$1$ax(t2.get$keys(t2), index);
  78869. t2 = type$.legacy_Value_2;
  78870. t3 = P.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  78871. for (t4 = t1.get$dartValue(thisArg).contents, t4 = t4.get$entries(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  78872. t5 = t4.get$current(t4);
  78873. t3.$indexSet(0, t5.key, t5.value);
  78874. }
  78875. t3.$indexSet(0, key, F.unwrapValue(value));
  78876. t1.set$dartValue(thisArg, new A.SassMap0(H.ConstantMap_ConstantMap$from(t3, t2, t2)));
  78877. },
  78878. "call*": "call$3",
  78879. $requiredArgCount: 3,
  78880. $signature: 177
  78881. };
  78882. A.closure245.prototype = {
  78883. call$1: function(thisArg) {
  78884. return J.toString$0$(J.get$dartValue$x(thisArg));
  78885. },
  78886. $signature: 405
  78887. };
  78888. A.SassMap0.prototype = {
  78889. get$separator: function() {
  78890. var t1 = this.contents;
  78891. return t1.get$isEmpty(t1) ? C.ListSeparator_undecided0 : C.ListSeparator_comma0;
  78892. },
  78893. get$asList: function() {
  78894. var result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Value_2);
  78895. this.contents.forEach$1(0, new A.SassMap_asList_closure0(result));
  78896. return result;
  78897. },
  78898. get$lengthAsList: function() {
  78899. var t1 = this.contents;
  78900. return t1.get$length(t1);
  78901. },
  78902. accept$1$1: function(visitor) {
  78903. return visitor.visitMap$1(this);
  78904. },
  78905. accept$1: function(visitor) {
  78906. return this.accept$1$1(visitor, type$.dynamic);
  78907. },
  78908. assertMap$1: function($name) {
  78909. return this;
  78910. },
  78911. tryMap$0: function() {
  78912. return this;
  78913. },
  78914. $eq: function(_, other) {
  78915. var t1;
  78916. if (other == null)
  78917. return false;
  78918. if (!(other instanceof A.SassMap0 && C.C_MapEquality.equals$2(0, other.contents, this.contents))) {
  78919. t1 = this.contents;
  78920. t1 = t1.get$isEmpty(t1) && other instanceof D.SassList0 && other._list1$_contents.length === 0;
  78921. } else
  78922. t1 = true;
  78923. return t1;
  78924. },
  78925. get$hashCode: function(_) {
  78926. var t1 = this.contents;
  78927. return t1.get$isEmpty(t1) ? C.C_ListEquality.hash$1(C.List_empty16) : C.C_MapEquality.hash$1(t1);
  78928. }
  78929. };
  78930. A.SassMap_asList_closure0.prototype = {
  78931. call$2: function(key, value) {
  78932. this.result.push(D.SassList$0(H.setRuntimeTypeInfo([key, value], type$.JSArray_legacy_Value_2), C.ListSeparator_space0, false));
  78933. },
  78934. $signature: 45
  78935. };
  78936. K.closure140.prototype = {
  78937. call$1: function(value) {
  78938. return J.ceil$0$n(value);
  78939. },
  78940. $signature: 39
  78941. };
  78942. K.closure205.prototype = {
  78943. call$1: function($arguments) {
  78944. var t1 = J.getInterceptor$asx($arguments),
  78945. min = t1.$index($arguments, 0).assertNumber$1("min"),
  78946. number = t1.$index($arguments, 1).assertNumber$1("number"),
  78947. max = t1.$index($arguments, 2).assertNumber$1("max");
  78948. number.convertValueToMatch$3(min, "number", "min");
  78949. max.convertValueToMatch$3(min, "max", "min");
  78950. if (min.greaterThanOrEquals$1(max).value)
  78951. return min;
  78952. if (min.greaterThanOrEquals$1(number).value)
  78953. return min;
  78954. if (number.greaterThanOrEquals$1(max).value)
  78955. return max;
  78956. return number;
  78957. },
  78958. $signature: 10
  78959. };
  78960. K.closure139.prototype = {
  78961. call$1: function(value) {
  78962. return J.floor$0$n(value);
  78963. },
  78964. $signature: 39
  78965. };
  78966. K.closure138.prototype = {
  78967. call$1: function($arguments) {
  78968. var t1, t2, max, _i, number;
  78969. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  78970. number = t1[_i].assertNumber$0();
  78971. if (max == null || max.lessThan$1(number).value)
  78972. max = number;
  78973. }
  78974. if (max != null)
  78975. return max;
  78976. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  78977. },
  78978. $signature: 10
  78979. };
  78980. K.closure137.prototype = {
  78981. call$1: function($arguments) {
  78982. var t1, t2, min, _i, number;
  78983. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, H.throwConcurrentModificationError)(t1), ++_i) {
  78984. number = t1[_i].assertNumber$0();
  78985. if (min == null || min.greaterThan$1(number).value)
  78986. min = number;
  78987. }
  78988. if (min != null)
  78989. return min;
  78990. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  78991. },
  78992. $signature: 10
  78993. };
  78994. K.closure141.prototype = {
  78995. call$1: function(value) {
  78996. return Math.abs(value);
  78997. },
  78998. $signature: 155
  78999. };
  79000. K.closure203.prototype = {
  79001. call$1: function($arguments) {
  79002. var subtotal, i, number, value, t3,
  79003. t1 = J.$index$asx($arguments, 0).get$asList(),
  79004. t2 = H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0*>"),
  79005. numbers = P.List_List$from(new H.MappedListIterable(t1, new K._closure24(), t2), true, t2._eval$1("ListIterable.E"));
  79006. if (numbers.length === 0)
  79007. throw H.wrapException(E.SassScriptException$0("At least one argument must be passed."));
  79008. for (subtotal = 0, i = 0; i < numbers.length;) {
  79009. number = numbers[i];
  79010. t1 = numbers[0];
  79011. ++i;
  79012. t2 = "numbers[" + i + "]";
  79013. number.toString;
  79014. value = number._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(t1.numeratorUnits, t1.denominatorUnits, false, t2, t1, "numbers[1]");
  79015. H.checkNum(value);
  79016. subtotal += Math.pow(value, 2);
  79017. }
  79018. t1 = Math.sqrt(subtotal);
  79019. t2 = numbers[0];
  79020. t3 = t2.numeratorUnits;
  79021. return T.SassNumber$withUnits0(t1, t2.denominatorUnits, t3);
  79022. },
  79023. $signature: 10
  79024. };
  79025. K._closure24.prototype = {
  79026. call$1: function(argument) {
  79027. return argument.assertNumber$0();
  79028. },
  79029. $signature: 406
  79030. };
  79031. K.closure202.prototype = {
  79032. call$1: function($arguments) {
  79033. var numberValue, base, baseValue,
  79034. _s18_ = " to have no units.",
  79035. t1 = J.getInterceptor$asx($arguments),
  79036. number = t1.$index($arguments, 0).assertNumber$1("number");
  79037. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  79038. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_));
  79039. numberValue = K._fuzzyRoundIfZero0(number.value);
  79040. if (J.$eq$(t1.$index($arguments, 1), C.C_SassNull))
  79041. return T.SassNumber$0(Math.log(H.checkNum(numberValue)), null);
  79042. base = t1.$index($arguments, 1).assertNumber$1("base");
  79043. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  79044. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  79045. t1 = base.value;
  79046. baseValue = Math.abs(t1 - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1);
  79047. return T.SassNumber$0(Math.log(H.checkNum(numberValue)) / Math.log(H.checkNum(baseValue)), null);
  79048. },
  79049. $signature: 10
  79050. };
  79051. K.closure201.prototype = {
  79052. call$1: function($arguments) {
  79053. var baseValue, exponentValue, t2, t3, _null = null,
  79054. _s18_ = " to have no units.",
  79055. t1 = J.getInterceptor$asx($arguments),
  79056. base = t1.$index($arguments, 0).assertNumber$1("base"),
  79057. exponent = t1.$index($arguments, 1).assertNumber$1("exponent");
  79058. if (base.numeratorUnits.length !== 0 || base.denominatorUnits.length !== 0)
  79059. throw H.wrapException(E.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_));
  79060. else if (exponent.numeratorUnits.length !== 0 || exponent.denominatorUnits.length !== 0)
  79061. throw H.wrapException(E.SassScriptException$0("$exponent: Expected " + exponent.toString$0(0) + _s18_));
  79062. baseValue = K._fuzzyRoundIfZero0(base.value);
  79063. exponentValue = K._fuzzyRoundIfZero0(exponent.value);
  79064. t1 = $.$get$epsilon0();
  79065. if (Math.abs(Math.abs(baseValue) - 1) < t1) {
  79066. exponentValue.toString;
  79067. t2 = exponentValue == 1 / 0 || exponentValue == -1 / 0;
  79068. } else
  79069. t2 = false;
  79070. if (t2)
  79071. return T.SassNumber$0(0 / 0, _null);
  79072. else {
  79073. t2 = Math.abs(baseValue - 0);
  79074. if (t2 < t1) {
  79075. exponentValue.toString;
  79076. if (isFinite(exponentValue))
  79077. if (T.fuzzyIsInt0(exponentValue))
  79078. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  79079. else
  79080. t1 = false;
  79081. else
  79082. t1 = false;
  79083. if (t1)
  79084. exponentValue = T.fuzzyRound0(exponentValue);
  79085. } else {
  79086. if (isFinite(baseValue))
  79087. if (baseValue < 0 && !(t2 < t1)) {
  79088. exponentValue.toString;
  79089. t3 = isFinite(exponentValue) && T.fuzzyIsInt0(exponentValue);
  79090. } else
  79091. t3 = false;
  79092. else
  79093. t3 = false;
  79094. if (t3)
  79095. exponentValue = T.fuzzyRound0(exponentValue);
  79096. else {
  79097. if (baseValue == 1 / 0 || baseValue == -1 / 0)
  79098. if (baseValue < 0 && !(t2 < t1)) {
  79099. exponentValue.toString;
  79100. if (isFinite(exponentValue))
  79101. if (T.fuzzyIsInt0(exponentValue))
  79102. t1 = C.JSInt_methods.$mod(T.fuzzyIsInt0(exponentValue) ? C.JSNumber_methods.round$0(exponentValue) : _null, 2) === 1;
  79103. else
  79104. t1 = false;
  79105. else
  79106. t1 = false;
  79107. } else
  79108. t1 = false;
  79109. else
  79110. t1 = false;
  79111. if (t1)
  79112. exponentValue = T.fuzzyRound0(exponentValue);
  79113. }
  79114. }
  79115. }
  79116. H.checkNum(exponentValue);
  79117. return T.SassNumber$0(Math.pow(baseValue, exponentValue), _null);
  79118. },
  79119. $signature: 10
  79120. };
  79121. K.closure199.prototype = {
  79122. call$1: function($arguments) {
  79123. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79124. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  79125. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  79126. return T.SassNumber$0(Math.sqrt(H.checkNum(K._fuzzyRoundIfZero0(number.value))), null);
  79127. },
  79128. $signature: 10
  79129. };
  79130. K.closure209.prototype = {
  79131. call$1: function($arguments) {
  79132. var numberValue,
  79133. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79134. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  79135. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  79136. numberValue = number.value;
  79137. if (Math.abs(Math.abs(numberValue) - 1) < $.$get$epsilon0())
  79138. numberValue = T.fuzzyRound0(numberValue);
  79139. return T.SassNumber$withUnits0(Math.acos(numberValue) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  79140. },
  79141. $signature: 10
  79142. };
  79143. K.closure208.prototype = {
  79144. call$1: function($arguments) {
  79145. var t1,
  79146. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79147. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  79148. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  79149. t1 = number.value;
  79150. return T.SassNumber$withUnits0(Math.asin(H.checkNum(Math.abs(Math.abs(t1) - 1) < $.$get$epsilon0() ? T.fuzzyRound0(t1) : K._fuzzyRoundIfZero0(t1))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  79151. },
  79152. $signature: 10
  79153. };
  79154. K.closure207.prototype = {
  79155. call$1: function($arguments) {
  79156. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79157. if (number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0)
  79158. throw H.wrapException(E.SassScriptException$0("$number: Expected " + number.toString$0(0) + " to have no units."));
  79159. return T.SassNumber$withUnits0(Math.atan(H.checkNum(K._fuzzyRoundIfZero0(number.value))) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  79160. },
  79161. $signature: 10
  79162. };
  79163. K.closure206.prototype = {
  79164. call$1: function($arguments) {
  79165. var t1 = J.getInterceptor$asx($arguments),
  79166. y = t1.$index($arguments, 0).assertNumber$1("y"),
  79167. xValue = K._fuzzyRoundIfZero0(t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y"));
  79168. return T.SassNumber$withUnits0(Math.atan2(H.checkNum(K._fuzzyRoundIfZero0(y.value)), H.checkNum(xValue)) * 180 / 3.141592653589793, null, H.setRuntimeTypeInfo(["deg"], type$.JSArray_legacy_String));
  79169. },
  79170. $signature: 10
  79171. };
  79172. K.closure204.prototype = {
  79173. call$1: function($arguments) {
  79174. var t1 = type$.JSArray_legacy_String;
  79175. return T.SassNumber$0(Math.cos(H.checkNum(J.$index$asx($arguments, 0).assertNumber$1("number")._number1$_coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number"))), null);
  79176. },
  79177. $signature: 10
  79178. };
  79179. K.closure200.prototype = {
  79180. call$1: function($arguments) {
  79181. var t1 = type$.JSArray_legacy_String;
  79182. return T.SassNumber$0(Math.sin(H.checkNum(K._fuzzyRoundIfZero0(J.$index$asx($arguments, 0).assertNumber$1("number")._number1$_coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number")))), null);
  79183. },
  79184. $signature: 10
  79185. };
  79186. K.closure198.prototype = {
  79187. call$1: function($arguments) {
  79188. var t2,
  79189. t1 = type$.JSArray_legacy_String,
  79190. value = J.$index$asx($arguments, 0).assertNumber$1("number")._number1$_coerceOrConvertValue$4$coerceUnitless$name(H.setRuntimeTypeInfo(["rad"], t1), H.setRuntimeTypeInfo([], t1), true, "number");
  79191. t1 = C.JSNumber_methods.$mod(value - 1.5707963267948966, 6.283185307179586);
  79192. t2 = $.$get$epsilon0();
  79193. if (Math.abs(t1 - 0) < t2)
  79194. return T.SassNumber$0(1 / 0, null);
  79195. else if (Math.abs(C.JSNumber_methods.$mod(value + 1.5707963267948966, 6.283185307179586) - 0) < t2)
  79196. return T.SassNumber$0(-1 / 0, null);
  79197. else
  79198. return T.SassNumber$0(Math.tan(H.checkNum(K._fuzzyRoundIfZero0(value))), null);
  79199. },
  79200. $signature: 10
  79201. };
  79202. K.closure133.prototype = {
  79203. call$1: function($arguments) {
  79204. var t1 = J.getInterceptor$asx($arguments);
  79205. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? C.SassBoolean_true : C.SassBoolean_false;
  79206. },
  79207. $signature: 20
  79208. };
  79209. K.closure132.prototype = {
  79210. call$1: function($arguments) {
  79211. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79212. return !(number.numeratorUnits.length !== 0 || number.denominatorUnits.length !== 0) ? C.SassBoolean_true : C.SassBoolean_false;
  79213. },
  79214. $signature: 20
  79215. };
  79216. K.closure134.prototype = {
  79217. call$1: function($arguments) {
  79218. return new D.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  79219. },
  79220. $signature: 16
  79221. };
  79222. K.closure136.prototype = {
  79223. call$1: function($arguments) {
  79224. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79225. number.assertNoUnits$1("number");
  79226. return T.SassNumber$0(number.value * 100, "%");
  79227. },
  79228. $signature: 10
  79229. };
  79230. K.closure135.prototype = {
  79231. call$1: function($arguments) {
  79232. var limit,
  79233. t1 = J.getInterceptor$asx($arguments);
  79234. if (J.$eq$(t1.$index($arguments, 0), C.C_SassNull))
  79235. return T.SassNumber$0($.$get$_random2().nextDouble$0(), null);
  79236. limit = t1.$index($arguments, 0).assertNumber$1("limit").assertInt$1("limit");
  79237. if (limit < 1)
  79238. throw H.wrapException(E.SassScriptException$0("$limit: Must be greater than 0, was " + limit + "."));
  79239. return T.SassNumber$0($.$get$_random2().nextInt$1(limit) + 1, null);
  79240. },
  79241. $signature: 10
  79242. };
  79243. K._numberFunction_closure0.prototype = {
  79244. call$1: function($arguments) {
  79245. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  79246. return T.SassNumber$withUnits0(this.transform.call$1(number.value), number.denominatorUnits, number.numeratorUnits);
  79247. },
  79248. $signature: 10
  79249. };
  79250. F.CssMediaQuery0.prototype = {
  79251. merge$1: function(other) {
  79252. var _i, t8, negativeFeatures, features, type, modifier, fewerFeatures, fewerFeatures0, moreFeatures, _this = this, _null = null, _s3_ = "all",
  79253. t1 = _this.modifier,
  79254. ourModifier = t1 == null ? _null : t1.toLowerCase(),
  79255. t2 = _this.type,
  79256. t3 = t2 == null,
  79257. ourType = t3 ? _null : t2.toLowerCase(),
  79258. t4 = other.modifier,
  79259. theirModifier = t4 == null ? _null : t4.toLowerCase(),
  79260. t5 = other.type,
  79261. t6 = t5 == null,
  79262. theirType = t6 ? _null : t5.toLowerCase(),
  79263. t7 = ourType == null;
  79264. if (t7 && theirType == null) {
  79265. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  79266. for (t2 = _this.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  79267. t1.push(t2[_i]);
  79268. for (t2 = other.features, t3 = t2.length, _i = 0; _i < t3; ++_i)
  79269. t1.push(t2[_i]);
  79270. return new F.MediaQuerySuccessfulMergeResult0(new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(t1, type$.legacy_String)));
  79271. }
  79272. t8 = ourModifier === "not";
  79273. if (t8 !== (theirModifier === "not")) {
  79274. if (ourType == theirType) {
  79275. negativeFeatures = t8 ? _this.features : other.features;
  79276. if (C.JSArray_methods.every$1(negativeFeatures, C.JSArray_methods.get$contains(t8 ? other.features : _this.features)))
  79277. return C._SingletonCssMediaQueryMergeResult_empty0;
  79278. else
  79279. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  79280. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_) || t6 || B.equalsIgnoreCase0(t5, _s3_))
  79281. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  79282. if (t8) {
  79283. features = other.features;
  79284. type = theirType;
  79285. modifier = theirModifier;
  79286. } else {
  79287. features = _this.features;
  79288. type = ourType;
  79289. modifier = ourModifier;
  79290. }
  79291. } else if (t8) {
  79292. if (ourType != theirType)
  79293. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  79294. fewerFeatures = _this.features;
  79295. fewerFeatures0 = other.features;
  79296. t3 = fewerFeatures.length > fewerFeatures0.length;
  79297. moreFeatures = t3 ? fewerFeatures : fewerFeatures0;
  79298. if (t3)
  79299. fewerFeatures = fewerFeatures0;
  79300. if (!C.JSArray_methods.every$1(fewerFeatures, C.JSArray_methods.get$contains(moreFeatures)))
  79301. return C._SingletonCssMediaQueryMergeResult_unrepresentable0;
  79302. features = moreFeatures;
  79303. type = ourType;
  79304. modifier = ourModifier;
  79305. } else if (t3 || B.equalsIgnoreCase0(t2, _s3_)) {
  79306. type = (t6 || B.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
  79307. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  79308. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79309. t3.push(t6[_i]);
  79310. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79311. t3.push(t6[_i]);
  79312. features = t3;
  79313. modifier = theirModifier;
  79314. } else {
  79315. if (t6 || B.equalsIgnoreCase0(t5, _s3_)) {
  79316. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  79317. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79318. t3.push(t6[_i]);
  79319. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79320. t3.push(t6[_i]);
  79321. features = t3;
  79322. modifier = ourModifier;
  79323. } else {
  79324. if (ourType != theirType)
  79325. return C._SingletonCssMediaQueryMergeResult_empty0;
  79326. else {
  79327. modifier = ourModifier == null ? theirModifier : ourModifier;
  79328. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  79329. for (t6 = _this.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79330. t3.push(t6[_i]);
  79331. for (t6 = other.features, t7 = t6.length, _i = 0; _i < t7; ++_i)
  79332. t3.push(t6[_i]);
  79333. }
  79334. features = t3;
  79335. }
  79336. type = ourType;
  79337. }
  79338. t2 = type == ourType ? t2 : t5;
  79339. t1 = modifier == ourModifier ? t1 : t4;
  79340. t3 = P.List_List$unmodifiable(features, type$.legacy_String);
  79341. return new F.MediaQuerySuccessfulMergeResult0(new F.CssMediaQuery0(t1, t2, t3));
  79342. },
  79343. $eq: function(_, other) {
  79344. if (other == null)
  79345. return false;
  79346. return other instanceof F.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && C.C_ListEquality.equals$2(0, other.features, this.features);
  79347. },
  79348. get$hashCode: function(_) {
  79349. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ C.C_ListEquality.hash$1(this.features);
  79350. },
  79351. toString$0: function(_) {
  79352. var t2, _this = this,
  79353. t1 = _this.modifier;
  79354. t1 = t1 != null ? t1 + " " : "";
  79355. t2 = _this.type;
  79356. if (t2 != null) {
  79357. t1 += t2;
  79358. if (_this.features.length !== 0)
  79359. t1 += " and ";
  79360. }
  79361. t1 += C.JSArray_methods.join$1(_this.features, " and ");
  79362. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79363. }
  79364. };
  79365. F._SingletonCssMediaQueryMergeResult0.prototype = {
  79366. toString$0: function(_) {
  79367. return this._media_query1$_name;
  79368. }
  79369. };
  79370. F.MediaQuerySuccessfulMergeResult0.prototype = {};
  79371. F.MediaQueryParser0.prototype = {
  79372. parse$0: function() {
  79373. return this.wrapSpanFormatException$1(new F.MediaQueryParser_parse_closure0(this));
  79374. },
  79375. _media_query0$_mediaQuery$0: function() {
  79376. var identifier1, identifier2, type, modifier, features, _this = this, _null = null,
  79377. t1 = _this.scanner;
  79378. if (t1.peekChar$0() !== 40) {
  79379. identifier1 = _this.identifier$0();
  79380. _this.whitespace$0();
  79381. if (!_this.lookingAtIdentifier$0())
  79382. return new F.CssMediaQuery0(_null, identifier1, C.List_empty);
  79383. identifier2 = _this.identifier$0();
  79384. _this.whitespace$0();
  79385. if (B.equalsIgnoreCase0(identifier2, "and")) {
  79386. type = identifier1;
  79387. modifier = _null;
  79388. } else {
  79389. if (_this.scanIdentifier$1("and"))
  79390. _this.whitespace$0();
  79391. else
  79392. return new F.CssMediaQuery0(identifier1, identifier2, C.List_empty);
  79393. type = identifier2;
  79394. modifier = identifier1;
  79395. }
  79396. } else {
  79397. type = _null;
  79398. modifier = type;
  79399. }
  79400. features = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  79401. do {
  79402. _this.whitespace$0();
  79403. t1.expectChar$1(40);
  79404. features.push("(" + _this.declarationValue$0() + ")");
  79405. t1.expectChar$1(41);
  79406. _this.whitespace$0();
  79407. } while (_this.scanIdentifier$1("and"));
  79408. if (type == null)
  79409. return new F.CssMediaQuery0(_null, _null, P.List_List$unmodifiable(features, type$.legacy_String));
  79410. else {
  79411. t1 = P.List_List$unmodifiable(features, type$.legacy_String);
  79412. return new F.CssMediaQuery0(modifier, type, t1);
  79413. }
  79414. }
  79415. };
  79416. F.MediaQueryParser_parse_closure0.prototype = {
  79417. call$0: function() {
  79418. var queries = H.setRuntimeTypeInfo([], type$.JSArray_legacy_CssMediaQuery_2),
  79419. t1 = this.$this,
  79420. t2 = t1.scanner;
  79421. do {
  79422. t1.whitespace$0();
  79423. queries.push(t1._media_query0$_mediaQuery$0());
  79424. } while (t2.scanChar$1(44));
  79425. t2.expectDone$0();
  79426. return queries;
  79427. },
  79428. $signature: 99
  79429. };
  79430. G.ModifiableCssMediaRule0.prototype = {
  79431. accept$1$1: function(visitor) {
  79432. return visitor.visitCssMediaRule$1(this);
  79433. },
  79434. accept$1: function(visitor) {
  79435. return this.accept$1$1(visitor, type$.dynamic);
  79436. },
  79437. copyWithoutChildren$0: function() {
  79438. return G.ModifiableCssMediaRule$0(this.queries, this.span);
  79439. },
  79440. $isCssMediaRule0: 1,
  79441. get$span: function() {
  79442. return this.span;
  79443. }
  79444. };
  79445. G.MediaRule0.prototype = {
  79446. accept$1$1: function(visitor) {
  79447. return visitor.visitMediaRule$1(this);
  79448. },
  79449. accept$1: function(visitor) {
  79450. return this.accept$1$1(visitor, type$.dynamic);
  79451. },
  79452. toString$0: function(_) {
  79453. var t1 = this.children;
  79454. return "@media " + this.query.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  79455. },
  79456. get$span: function() {
  79457. return this.span;
  79458. }
  79459. };
  79460. A.MergedExtension0.prototype = {
  79461. unmerge$0: function() {
  79462. var $async$self = this;
  79463. return P._makeSyncStarIterable(function() {
  79464. var $async$goto = 0, $async$handler = 1, $async$currentError, t1;
  79465. return function $async$unmerge$0($async$errorCode, $async$result) {
  79466. if ($async$errorCode === 1) {
  79467. $async$currentError = $async$result;
  79468. $async$goto = $async$handler;
  79469. }
  79470. while (true)
  79471. switch ($async$goto) {
  79472. case 0:
  79473. // Function start
  79474. t1 = $async$self.left;
  79475. $async$goto = t1 instanceof A.MergedExtension0 ? 2 : 4;
  79476. break;
  79477. case 2:
  79478. // then
  79479. $async$goto = 5;
  79480. return P._IterationMarker_yieldStar(t1.unmerge$0());
  79481. case 5:
  79482. // after yield
  79483. // goto join
  79484. $async$goto = 3;
  79485. break;
  79486. case 4:
  79487. // else
  79488. $async$goto = 6;
  79489. return t1;
  79490. case 6:
  79491. // after yield
  79492. case 3:
  79493. // join
  79494. $async$goto = 7;
  79495. return $async$self.right;
  79496. case 7:
  79497. // after yield
  79498. // implicit return
  79499. return P._IterationMarker_endOfIteration();
  79500. case 1:
  79501. // rethrow
  79502. return P._IterationMarker_uncaughtError($async$currentError);
  79503. }
  79504. };
  79505. }, type$.legacy_Extension_2);
  79506. }
  79507. };
  79508. Z.MergedMapView0.prototype = {
  79509. get$keys: function(_) {
  79510. var t1 = this._merged_map_view$_mapsByKey;
  79511. return t1.get$keys(t1);
  79512. },
  79513. get$length: function(_) {
  79514. var t1 = this._merged_map_view$_mapsByKey;
  79515. return t1.get$length(t1);
  79516. },
  79517. get$isEmpty: function(_) {
  79518. var t1 = this._merged_map_view$_mapsByKey;
  79519. return t1.get$isEmpty(t1);
  79520. },
  79521. get$isNotEmpty: function(_) {
  79522. var t1 = this._merged_map_view$_mapsByKey;
  79523. return t1.get$isNotEmpty(t1);
  79524. },
  79525. MergedMapView$10: function(maps, $K, $V) {
  79526. var t1, t2, t3, _i, map, t4, t5;
  79527. for (t1 = maps.length, t2 = this._merged_map_view$_mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView0<1*,2*>*"), _i = 0; _i < maps.length; maps.length === t1 || (0, H.throwConcurrentModificationError)(maps), ++_i) {
  79528. map = maps[_i];
  79529. if (t3._is(map))
  79530. for (t4 = map._merged_map_view$_mapsByKey, t4 = t4.get$values(t4), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  79531. t5 = t4.get$current(t4);
  79532. B.setAll0(t2, t5.get$keys(t5), t5);
  79533. }
  79534. else
  79535. B.setAll0(t2, map.get$keys(map), map);
  79536. }
  79537. },
  79538. $index: function(_, key) {
  79539. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  79540. return child == null ? null : child.$index(0, key);
  79541. },
  79542. $indexSet: function(_, key, value) {
  79543. var child = this._merged_map_view$_mapsByKey.$index(0, key);
  79544. if (child == null)
  79545. throw H.wrapException(P.UnsupportedError$(string$.New_en));
  79546. child.$indexSet(0, key, value);
  79547. },
  79548. remove$1: function(_, key) {
  79549. throw H.wrapException(P.UnsupportedError$(string$.Entrie));
  79550. },
  79551. containsKey$1: function(key) {
  79552. return this._merged_map_view$_mapsByKey.containsKey$1(key);
  79553. }
  79554. };
  79555. Q.closure223.prototype = {
  79556. call$1: function($arguments) {
  79557. return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature").text) ? C.SassBoolean_true : C.SassBoolean_false;
  79558. },
  79559. $signature: 20
  79560. };
  79561. Q.closure224.prototype = {
  79562. call$1: function($arguments) {
  79563. return new D.SassString0(J.toString$0$(J.get$first$ax($arguments)), false);
  79564. },
  79565. $signature: 16
  79566. };
  79567. Q.closure225.prototype = {
  79568. call$1: function($arguments) {
  79569. var value = J.$index$asx($arguments, 0);
  79570. if (value instanceof D.SassArgumentList0)
  79571. return new D.SassString0("arglist", false);
  79572. if (value instanceof Z.SassBoolean0)
  79573. return new D.SassString0("bool", false);
  79574. if (value instanceof K.SassColor0)
  79575. return new D.SassString0("color", false);
  79576. if (value instanceof D.SassList0)
  79577. return new D.SassString0("list", false);
  79578. if (value instanceof A.SassMap0)
  79579. return new D.SassString0("map", false);
  79580. if (value instanceof O.SassNull0)
  79581. return new D.SassString0("null", false);
  79582. if (value instanceof T.SassNumber0)
  79583. return new D.SassString0("number", false);
  79584. if (value instanceof F.SassFunction0)
  79585. return new D.SassString0("function", false);
  79586. return new D.SassString0("string", false);
  79587. },
  79588. $signature: 16
  79589. };
  79590. Q.closure226.prototype = {
  79591. call$1: function($arguments) {
  79592. var t1, t2, t3, t4,
  79593. argumentList = J.$index$asx($arguments, 0);
  79594. if (argumentList instanceof D.SassArgumentList0) {
  79595. t1 = type$.legacy_Value_2;
  79596. t2 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  79597. for (argumentList._argument_list$_wereKeywordsAccessed = true, t3 = argumentList._argument_list$_keywords, t3 = t3.get$entries(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  79598. t4 = t3.get$current(t3);
  79599. t2.$indexSet(0, new D.SassString0(t4.key, false), t4.value);
  79600. }
  79601. return new A.SassMap0(H.ConstantMap_ConstantMap$from(t2, t1, t1));
  79602. } else
  79603. throw H.wrapException("$args: " + H.S(argumentList) + " is not an argument list.");
  79604. },
  79605. $signature: 38
  79606. };
  79607. T.MixinRule0.prototype = {
  79608. accept$1$1: function(visitor) {
  79609. return visitor.visitMixinRule$1(this);
  79610. },
  79611. accept$1: function(visitor) {
  79612. return this.accept$1$1(visitor, type$.dynamic);
  79613. },
  79614. toString$0: function(_) {
  79615. var t1 = "@mixin " + H.S(this.name),
  79616. t2 = this.$arguments;
  79617. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  79618. t1 += "(" + t2.toString$0(0) + ")";
  79619. t2 = this.children;
  79620. t2 = t1 + (" {" + (t2 && C.JSArray_methods).join$1(t2, " ") + "}");
  79621. return t2.charCodeAt(0) == 0 ? t2 : t2;
  79622. }
  79623. };
  79624. L.ExtendMode0.prototype = {
  79625. toString$0: function(_) {
  79626. return this.name;
  79627. }
  79628. };
  79629. M.SupportsNegation0.prototype = {
  79630. toString$0: function(_) {
  79631. var t1 = this.condition;
  79632. if (t1 instanceof M.SupportsNegation0 || t1 instanceof U.SupportsOperation0)
  79633. return "not (" + t1.toString$0(0) + ")";
  79634. else
  79635. return "not " + t1.toString$0(0);
  79636. },
  79637. $isAstNode0: 1,
  79638. get$span: function() {
  79639. return this.span;
  79640. }
  79641. };
  79642. N.NoSourceMapBuffer.prototype = {
  79643. get$length: function(_) {
  79644. return this._no_source_map_buffer$_buffer._contents.length;
  79645. },
  79646. get$sourceFiles: function() {
  79647. return C.Map_empty;
  79648. },
  79649. forSpan$1$2: function(span, callback) {
  79650. return callback.call$0();
  79651. },
  79652. forSpan$2: function(span, callback) {
  79653. return this.forSpan$1$2(span, callback, type$.dynamic);
  79654. },
  79655. write$1: function(_, object) {
  79656. this._no_source_map_buffer$_buffer._contents += H.S(object);
  79657. return null;
  79658. },
  79659. writeCharCode$1: function(charCode) {
  79660. this._no_source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  79661. return null;
  79662. },
  79663. toString$0: function(_) {
  79664. var t1 = this._no_source_map_buffer$_buffer._contents;
  79665. return t1.charCodeAt(0) == 0 ? t1 : t1;
  79666. },
  79667. buildSourceMap$1$prefix: function(prefix) {
  79668. return H.throwExpression(P.UnsupportedError$(string$.NoSour));
  79669. },
  79670. $isStringBuffer: 1
  79671. };
  79672. B.AstNode0.prototype = {};
  79673. B._FakeAstNode0.prototype = {
  79674. get$span: function() {
  79675. return this._node3$_callback.call$0();
  79676. },
  79677. $isAstNode0: 1
  79678. };
  79679. B.CssNode0.prototype = {
  79680. toString$0: function(_) {
  79681. return N.serialize0(this, true, null, true, null, false, null, true).css;
  79682. }
  79683. };
  79684. B.CssParentNode0.prototype = {};
  79685. B.FileSystemException0.prototype = {
  79686. toString$0: function(_) {
  79687. var t1 = $.$get$context();
  79688. return H.S(t1.prettyUri$1(t1.toUri$1(this.path))) + ": " + this.message;
  79689. },
  79690. get$message: function(receiver) {
  79691. return this.message;
  79692. },
  79693. get$path: function(receiver) {
  79694. return this.path;
  79695. }
  79696. };
  79697. B.Stderr0.prototype = {
  79698. writeln$1: function(object) {
  79699. J.write$1$x(this._node1$_stderr, (object == null ? "" : object) + "\n");
  79700. },
  79701. writeln$0: function() {
  79702. return this.writeln$1(null);
  79703. }
  79704. };
  79705. B._readFile_closure0.prototype = {
  79706. call$0: function() {
  79707. return J.readFileSync$2$x(D.fs(), this.path, this.encoding);
  79708. },
  79709. $signature: 66
  79710. };
  79711. B.fileExists_closure0.prototype = {
  79712. call$0: function() {
  79713. var error, systemError, exception,
  79714. t1 = this.path;
  79715. if (!J.existsSync$1$x(D.fs(), t1))
  79716. return false;
  79717. try {
  79718. t1 = J.isFile$0$x(J.statSync$1$x(D.fs(), t1));
  79719. return t1;
  79720. } catch (exception) {
  79721. error = H.unwrapException(exception);
  79722. systemError = type$.legacy_JsSystemError._as(error);
  79723. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  79724. return false;
  79725. throw exception;
  79726. }
  79727. },
  79728. $signature: 36
  79729. };
  79730. B.dirExists_closure0.prototype = {
  79731. call$0: function() {
  79732. var error, systemError, exception,
  79733. t1 = this.path;
  79734. if (!J.existsSync$1$x(D.fs(), t1))
  79735. return false;
  79736. try {
  79737. t1 = J.isDirectory$0$x(J.statSync$1$x(D.fs(), t1));
  79738. return t1;
  79739. } catch (exception) {
  79740. error = H.unwrapException(exception);
  79741. systemError = type$.legacy_JsSystemError._as(error);
  79742. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  79743. return false;
  79744. throw exception;
  79745. }
  79746. },
  79747. $signature: 36
  79748. };
  79749. B.listDir_closure0.prototype = {
  79750. call$0: function() {
  79751. var t1 = this.path;
  79752. if (!this.recursive)
  79753. return J.map$1$1$ax(J.readdirSync$1$x(D.fs(), t1), new B.listDir__closure1(t1), type$.legacy_String).where$1(0, new B.listDir__closure2());
  79754. else
  79755. return new B.listDir_closure_list0().call$1(t1);
  79756. },
  79757. $signature: 169
  79758. };
  79759. B.listDir__closure1.prototype = {
  79760. call$1: function(child) {
  79761. return D.join(this.path, H._asStringS(child), null);
  79762. },
  79763. $signature: 106
  79764. };
  79765. B.listDir__closure2.prototype = {
  79766. call$1: function(child) {
  79767. return !B.dirExists0(child);
  79768. },
  79769. $signature: 5
  79770. };
  79771. B.listDir_closure_list0.prototype = {
  79772. call$1: function($parent) {
  79773. return J.expand$1$1$ax(J.readdirSync$1$x(D.fs(), $parent), new B.listDir__list_closure0($parent, this), type$.legacy_String);
  79774. },
  79775. $signature: 170
  79776. };
  79777. B.listDir__list_closure0.prototype = {
  79778. call$1: function(child) {
  79779. var path = D.join(this.parent, H._asStringS(child), null);
  79780. return B.dirExists0(path) ? this.list.call$1(path) : H.setRuntimeTypeInfo([path], type$.JSArray_legacy_String);
  79781. },
  79782. $signature: 171
  79783. };
  79784. B.ModifiableCssNode0.prototype = {
  79785. get$hasFollowingSibling: function() {
  79786. var siblings, i, t2,
  79787. t1 = this._node2$_parent;
  79788. if (t1 == null)
  79789. return false;
  79790. siblings = t1.children;
  79791. for (i = this._node2$_indexInParent + 1, t1 = siblings._collection$_source, t2 = J.getInterceptor$asx(t1); i < t2.get$length(t1); ++i)
  79792. if (!this._node2$_isInvisible$1(t2.elementAt$1(t1, i)))
  79793. return true;
  79794. return false;
  79795. },
  79796. _node2$_isInvisible$1: function(node) {
  79797. if (type$.legacy_CssParentNode_2._is(node)) {
  79798. if (type$.legacy_CssAtRule_2._is(node))
  79799. return false;
  79800. if (type$.legacy_CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  79801. return true;
  79802. return J.every$1$ax(node.get$children(node), this.get$_node2$_isInvisible());
  79803. } else
  79804. return false;
  79805. },
  79806. get$isGroupEnd: function() {
  79807. return this.isGroupEnd;
  79808. }
  79809. };
  79810. B.ModifiableCssParentNode0.prototype = {
  79811. get$isChildless: function() {
  79812. return false;
  79813. },
  79814. addChild$1: function(child) {
  79815. var t1;
  79816. child._node2$_parent = this;
  79817. t1 = this._node2$_children;
  79818. child._node2$_indexInParent = t1.length;
  79819. t1.push(child);
  79820. },
  79821. $isCssParentNode0: 1,
  79822. get$children: function(receiver) {
  79823. return this.children;
  79824. }
  79825. };
  79826. B._render_closure.prototype = {
  79827. call$0: function() {
  79828. var error, exception;
  79829. try {
  79830. this.callback.call$2(null, B._renderSync(this.options));
  79831. } catch (exception) {
  79832. error = H.unwrapException(exception);
  79833. this.callback.call$2(type$.legacy_JsError._as(error), null);
  79834. }
  79835. return null;
  79836. },
  79837. "call*": "call$0",
  79838. $requiredArgCount: 0,
  79839. $signature: 0
  79840. };
  79841. B._render_closure0.prototype = {
  79842. call$1: function(result) {
  79843. this.callback.call$2(null, result);
  79844. },
  79845. $signature: 407
  79846. };
  79847. B._render_closure1.prototype = {
  79848. call$2: function(error, stackTrace) {
  79849. var _null = null,
  79850. t1 = this.callback;
  79851. if (error instanceof E.SassException0)
  79852. t1.call$2(B._wrapException(error), _null);
  79853. else
  79854. t1.call$2(B._newRenderError(J.toString$0$(error), _null, _null, _null, 3), _null);
  79855. },
  79856. "call*": "call$2",
  79857. $requiredArgCount: 2,
  79858. $signature: 408
  79859. };
  79860. B._parseFunctions_closure.prototype = {
  79861. call$2: function(signature, callback) {
  79862. var error, exception, t1, _this = this, tuple = null;
  79863. try {
  79864. tuple = L.ScssParser$0(signature, null, null).parseSignature$0();
  79865. } catch (exception) {
  79866. t1 = H.unwrapException(exception);
  79867. if (t1 instanceof E.SassFormatException0) {
  79868. error = t1;
  79869. throw H.wrapException(E.SassFormatException$0('Invalid signature "' + H.S(signature) + '": ' + H.S(error._span_exception$_message), error.get$span()));
  79870. } else
  79871. throw exception;
  79872. }
  79873. t1 = _this.options;
  79874. if (J.get$fiber$x(t1) != null)
  79875. _this.result.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure(t1, callback)));
  79876. else {
  79877. t1 = _this.result;
  79878. if (!_this.asynch)
  79879. t1.push(Q.BuiltInCallable$parsed(tuple.item1, tuple.item2, new B._parseFunctions__closure0(callback)));
  79880. else
  79881. t1.push(new S.AsyncBuiltInCallable0(tuple.item1, tuple.item2, new B._parseFunctions__closure1(callback)));
  79882. }
  79883. },
  79884. $signature: 409
  79885. };
  79886. B._parseFunctions__closure.prototype = {
  79887. call$1: function($arguments) {
  79888. var t4, result,
  79889. t1 = this.options,
  79890. t2 = J.getInterceptor$x(t1),
  79891. fiber = J.get$current$x(t2.get$fiber(t1)),
  79892. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  79893. for (t4 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object), t4 = t4.get$iterator(t4); t4.moveNext$0();)
  79894. t3.push(t4.get$current(t4));
  79895. t3.push(P.allowInterop(new B._parseFunctions___closure0(fiber)));
  79896. result = P.Function_apply(type$.legacy_Function._as(this.callback), t3);
  79897. return F.unwrapValue(H._asBoolS($.$get$_isUndefined().call$1(result)) ? J.yield$0$x(t2.get$fiber(t1)) : result);
  79898. },
  79899. $signature: 3
  79900. };
  79901. B._parseFunctions___closure0.prototype = {
  79902. call$1: function(result) {
  79903. P.scheduleMicrotask(new B._parseFunctions____closure(this.fiber, result));
  79904. },
  79905. call$0: function() {
  79906. return this.call$1(null);
  79907. },
  79908. "call*": "call$1",
  79909. $requiredArgCount: 0,
  79910. $defaultValues: function() {
  79911. return [null];
  79912. },
  79913. $signature: 65
  79914. };
  79915. B._parseFunctions____closure.prototype = {
  79916. call$0: function() {
  79917. return J.run$1$x(this.fiber, this.result);
  79918. },
  79919. "call*": "call$0",
  79920. $requiredArgCount: 0,
  79921. $signature: 160
  79922. };
  79923. B._parseFunctions__closure0.prototype = {
  79924. call$1: function($arguments) {
  79925. return F.unwrapValue(P.Function_apply(type$.legacy_Function._as(this.callback), J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object).toList$0(0)));
  79926. },
  79927. $signature: 3
  79928. };
  79929. B._parseFunctions__closure1.prototype = {
  79930. call$1: function($arguments) {
  79931. return this.$call$body$_parseFunctions__closure($arguments);
  79932. },
  79933. $call$body$_parseFunctions__closure: function($arguments) {
  79934. var $async$goto = 0,
  79935. $async$completer = P._makeAsyncAwaitCompleter(type$.legacy_Value_2),
  79936. $async$returnValue, $async$self = this, t2, result, completer, t1, $async$temp1;
  79937. var $async$call$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  79938. if ($async$errorCode === 1)
  79939. return P._asyncRethrow($async$result, $async$completer);
  79940. while (true)
  79941. switch ($async$goto) {
  79942. case 0:
  79943. // Function start
  79944. completer = new P._AsyncCompleter(new P._Future($.Zone__current, type$._Future_legacy_Object), type$._AsyncCompleter_legacy_Object);
  79945. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  79946. for (t2 = J.map$1$1$ax($arguments, F.value1__wrapValue$closure(), type$.legacy_Object), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  79947. t1.push(t2.get$current(t2));
  79948. t1.push(P.allowInterop(new B._parseFunctions___closure(completer)));
  79949. result = P.Function_apply(type$.legacy_Function._as($async$self.callback), t1);
  79950. $async$temp1 = F;
  79951. $async$goto = H._asBoolS($.$get$_isUndefined().call$1(result)) ? 3 : 5;
  79952. break;
  79953. case 3:
  79954. // then
  79955. $async$goto = 6;
  79956. return P._asyncAwait(completer.future, $async$call$1);
  79957. case 6:
  79958. // returning from await.
  79959. // goto join
  79960. $async$goto = 4;
  79961. break;
  79962. case 5:
  79963. // else
  79964. $async$result = result;
  79965. case 4:
  79966. // join
  79967. $async$returnValue = $async$temp1.unwrapValue($async$result);
  79968. // goto return
  79969. $async$goto = 1;
  79970. break;
  79971. case 1:
  79972. // return
  79973. return P._asyncReturn($async$returnValue, $async$completer);
  79974. }
  79975. });
  79976. return P._asyncStartSync($async$call$1, $async$completer);
  79977. },
  79978. $signature: 156
  79979. };
  79980. B._parseFunctions___closure.prototype = {
  79981. call$1: function(result) {
  79982. return this.completer.complete$1(result);
  79983. },
  79984. call$0: function() {
  79985. return this.call$1(null);
  79986. },
  79987. "call*": "call$1",
  79988. $requiredArgCount: 0,
  79989. $defaultValues: function() {
  79990. return [null];
  79991. },
  79992. $signature: 411
  79993. };
  79994. B._parseImporter_closure.prototype = {
  79995. call$1: function(importer) {
  79996. return type$.legacy_JSFunction._as(P.allowInteropCaptureThis(new B._parseImporter__closure(this.options, importer)));
  79997. },
  79998. $signature: 412
  79999. };
  80000. B._parseImporter__closure.prototype = {
  80001. call$4: function(thisArg, url, previous, _) {
  80002. var t1 = this.options,
  80003. t2 = J.getInterceptor$x(t1),
  80004. result = J.apply$2$x(this.importer, thisArg, H.setRuntimeTypeInfo([url, previous, P.allowInterop(new B._parseImporter___closure(J.get$current$x(t2.get$fiber(t1))))], type$.JSArray_legacy_Object));
  80005. if (H._asBoolS($.$get$_isUndefined().call$1(result)))
  80006. return J.yield$0$x(t2.get$fiber(t1));
  80007. return result;
  80008. },
  80009. call$3: function(thisArg, url, previous) {
  80010. return this.call$4(thisArg, url, previous, null);
  80011. },
  80012. "call*": "call$4",
  80013. $requiredArgCount: 3,
  80014. $defaultValues: function() {
  80015. return [null];
  80016. },
  80017. $signature: 413
  80018. };
  80019. B._parseImporter___closure.prototype = {
  80020. call$1: function(result) {
  80021. P.scheduleMicrotask(new B._parseImporter____closure(this.fiber, result));
  80022. },
  80023. $signature: 414
  80024. };
  80025. B._parseImporter____closure.prototype = {
  80026. call$0: function() {
  80027. return J.run$1$x(this.fiber, this.result);
  80028. },
  80029. "call*": "call$0",
  80030. $requiredArgCount: 0,
  80031. $signature: 160
  80032. };
  80033. O.NullExpression0.prototype = {
  80034. accept$1$1: function(visitor) {
  80035. return visitor.visitNullExpression$1(this);
  80036. },
  80037. accept$1: function(visitor) {
  80038. return this.accept$1$1(visitor, type$.dynamic);
  80039. },
  80040. toString$0: function(_) {
  80041. return "null";
  80042. },
  80043. $isExpression0: 1,
  80044. $isAstNode0: 1,
  80045. get$span: function() {
  80046. return this.span;
  80047. }
  80048. };
  80049. O.closure238.prototype = {
  80050. call$0: function() {
  80051. var $constructor = P.allowInterop(new O._closure29());
  80052. B.injectSuperclass(C.C_SassNull, $constructor);
  80053. self.Object.defineProperty(C.C_SassNull.constructor, "name", {value: "SassNull"});
  80054. B.forwardToString($constructor);
  80055. $constructor.NULL = C.C_SassNull;
  80056. C.C_SassNull.toString = P.allowInterop(new O._closure30());
  80057. return $constructor;
  80058. },
  80059. $signature: 129
  80060. };
  80061. O._closure29.prototype = {
  80062. call$1: function(_) {
  80063. throw H.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
  80064. },
  80065. call$0: function() {
  80066. return this.call$1(null);
  80067. },
  80068. "call*": "call$1",
  80069. $requiredArgCount: 0,
  80070. $defaultValues: function() {
  80071. return [null];
  80072. },
  80073. $signature: 95
  80074. };
  80075. O._closure30.prototype = {
  80076. call$0: function() {
  80077. return "null";
  80078. },
  80079. "call*": "call$0",
  80080. $requiredArgCount: 0,
  80081. $signature: 17
  80082. };
  80083. O.SassNull0.prototype = {
  80084. get$isTruthy: function() {
  80085. return false;
  80086. },
  80087. get$isBlank: function() {
  80088. return true;
  80089. },
  80090. get$realNull: function() {
  80091. return null;
  80092. },
  80093. accept$1$1: function(visitor) {
  80094. if (visitor._inspect)
  80095. visitor._buffer.write$1(0, "null");
  80096. return null;
  80097. },
  80098. accept$1: function(visitor) {
  80099. return this.accept$1$1(visitor, type$.dynamic);
  80100. },
  80101. unaryNot$0: function() {
  80102. return C.SassBoolean_true;
  80103. }
  80104. };
  80105. T.NumberExpression0.prototype = {
  80106. accept$1$1: function(visitor) {
  80107. return visitor.visitNumberExpression$1(this);
  80108. },
  80109. accept$1: function(visitor) {
  80110. return this.accept$1$1(visitor, type$.dynamic);
  80111. },
  80112. toString$0: function(_) {
  80113. var t1 = H.S(this.value),
  80114. t2 = this.unit;
  80115. return t1 + (t2 == null ? "" : t2);
  80116. },
  80117. $isExpression0: 1,
  80118. $isAstNode0: 1,
  80119. get$span: function() {
  80120. return this.span;
  80121. }
  80122. };
  80123. T._NodeSassNumber.prototype = {};
  80124. T.closure232.prototype = {
  80125. call$4: function(thisArg, value, unit, dartValue) {
  80126. J.set$dartValue$x(thisArg, dartValue == null ? T._parseNumber(value, unit) : dartValue);
  80127. },
  80128. call$2: function(thisArg, value) {
  80129. return this.call$4(thisArg, value, null, null);
  80130. },
  80131. call$3: function(thisArg, value, unit) {
  80132. return this.call$4(thisArg, value, unit, null);
  80133. },
  80134. "call*": "call$4",
  80135. $requiredArgCount: 2,
  80136. $defaultValues: function() {
  80137. return [null, null];
  80138. },
  80139. $signature: 415
  80140. };
  80141. T.closure233.prototype = {
  80142. call$1: function(thisArg) {
  80143. return J.get$dartValue$x(thisArg).value;
  80144. },
  80145. $signature: 416
  80146. };
  80147. T.closure234.prototype = {
  80148. call$2: function(thisArg, value) {
  80149. var t1 = J.getInterceptor$x(thisArg),
  80150. t2 = t1.get$dartValue(thisArg).numeratorUnits;
  80151. t1.set$dartValue(thisArg, T.SassNumber$withUnits0(value, t1.get$dartValue(thisArg).denominatorUnits, t2));
  80152. },
  80153. "call*": "call$2",
  80154. $requiredArgCount: 2,
  80155. $signature: 417
  80156. };
  80157. T.closure235.prototype = {
  80158. call$1: function(thisArg) {
  80159. var t1 = J.getInterceptor$x(thisArg),
  80160. t2 = C.JSArray_methods.join$1(t1.get$dartValue(thisArg).numeratorUnits, "*");
  80161. return t2 + (t1.get$dartValue(thisArg).denominatorUnits.length === 0 ? "" : "/") + C.JSArray_methods.join$1(t1.get$dartValue(thisArg).denominatorUnits, "*");
  80162. },
  80163. $signature: 153
  80164. };
  80165. T.closure236.prototype = {
  80166. call$2: function(thisArg, unit) {
  80167. var t1 = J.getInterceptor$x(thisArg);
  80168. t1.set$dartValue(thisArg, T._parseNumber(t1.get$dartValue(thisArg).value, unit));
  80169. },
  80170. "call*": "call$2",
  80171. $requiredArgCount: 2,
  80172. $signature: 419
  80173. };
  80174. T.closure237.prototype = {
  80175. call$1: function(thisArg) {
  80176. return J.toString$0$(J.get$dartValue$x(thisArg));
  80177. },
  80178. $signature: 153
  80179. };
  80180. T._parseNumber_closure.prototype = {
  80181. call$1: function(unit) {
  80182. return unit.length === 0;
  80183. },
  80184. $signature: 5
  80185. };
  80186. T._parseNumber_closure0.prototype = {
  80187. call$1: function(unit) {
  80188. return unit.length === 0;
  80189. },
  80190. $signature: 5
  80191. };
  80192. T.SassNumber0.prototype = {
  80193. get$unitString: function() {
  80194. var _this = this,
  80195. t1 = _this.numeratorUnits;
  80196. return t1.length !== 0 || _this.denominatorUnits.length !== 0 ? _this._number1$_unitString$2(t1, _this.denominatorUnits) : "";
  80197. },
  80198. accept$1$1: function(visitor) {
  80199. return visitor.visitNumber$1(this);
  80200. },
  80201. accept$1: function(visitor) {
  80202. return this.accept$1$1(visitor, type$.dynamic);
  80203. },
  80204. withoutSlash$0: function() {
  80205. var _this = this;
  80206. if (_this.asSlash == null)
  80207. return _this;
  80208. return new T.SassNumber0(_this.value, _this.numeratorUnits, _this.denominatorUnits, null);
  80209. },
  80210. withSlash$2: function(numerator, denominator) {
  80211. return new T.SassNumber0(this.value, this.numeratorUnits, this.denominatorUnits, new S.Tuple2(numerator, denominator, type$.Tuple2_of_legacy_SassNumber_and_legacy_SassNumber_2));
  80212. },
  80213. assertNumber$1: function($name) {
  80214. return this;
  80215. },
  80216. assertNumber$0: function() {
  80217. return this.assertNumber$1(null);
  80218. },
  80219. assertInt$1: function($name) {
  80220. var t1 = this.value,
  80221. integer = T.fuzzyIsInt0(t1) ? J.round$0$n(t1) : null;
  80222. if (integer != null)
  80223. return integer;
  80224. throw H.wrapException(this._number1$_exception$2(this.toString$0(0) + " is not an int.", $name));
  80225. },
  80226. assertInt$0: function() {
  80227. return this.assertInt$1(null);
  80228. },
  80229. valueInRange$3: function(min, max, $name) {
  80230. var _this = this,
  80231. result = T.fuzzyCheckRange0(_this.value, min, max);
  80232. if (result != null)
  80233. return result;
  80234. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  80235. },
  80236. hasUnit$1: function(unit) {
  80237. var t1 = this.numeratorUnits;
  80238. return t1.length === 1 && this.denominatorUnits.length === 0 && J.$eq$(C.JSArray_methods.get$first(t1), unit);
  80239. },
  80240. compatibleWithUnit$1: function(unit) {
  80241. var t1, t2;
  80242. if (this.denominatorUnits.length !== 0)
  80243. return false;
  80244. t1 = this.numeratorUnits;
  80245. t2 = t1.length;
  80246. if (t2 === 0)
  80247. return true;
  80248. return t2 === 1 && this._number1$_conversionFactor$2(C.JSArray_methods.get$first(t1), unit) != null;
  80249. },
  80250. assertUnit$2: function(unit, $name) {
  80251. if (this.hasUnit$1(unit))
  80252. return;
  80253. throw H.wrapException(this._number1$_exception$2("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  80254. },
  80255. assertNoUnits$1: function($name) {
  80256. var _this = this;
  80257. if (!(_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0))
  80258. return;
  80259. throw H.wrapException(_this._number1$_exception$2("Expected " + _this.toString$0(0) + " to have no units.", $name));
  80260. },
  80261. coerceValueToMatch$1: function(other) {
  80262. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.numeratorUnits, other.denominatorUnits, true, null, other, null);
  80263. },
  80264. convertValueToMatch$3: function(other, $name, otherName) {
  80265. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.numeratorUnits, other.denominatorUnits, false, $name, other, otherName);
  80266. },
  80267. coerce$2: function(newNumerators, newDenominators) {
  80268. return T.SassNumber$withUnits0(this._number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, null), newDenominators, newNumerators);
  80269. },
  80270. _number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName: function(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  80271. var otherHasUnits, t2, _compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {},
  80272. t1 = _this.numeratorUnits;
  80273. if (C.C_ListEquality.equals$2(0, t1, newNumerators) && C.C_ListEquality.equals$2(0, _this.denominatorUnits, newDenominators))
  80274. return _this.value;
  80275. otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0;
  80276. if (coerceUnitless)
  80277. t2 = !(t1.length !== 0 || _this.denominatorUnits.length !== 0) || !otherHasUnits;
  80278. else
  80279. t2 = false;
  80280. if (t2)
  80281. return _this.value;
  80282. _compatibilityException = new T.SassNumber__coerceOrConvertValue__compatibilityException0(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  80283. _box_0.value = _this.value;
  80284. oldNumerators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  80285. for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, H.throwConcurrentModificationError)(newNumerators), ++_i)
  80286. B.removeFirstWhere0(oldNumerators, new T.SassNumber__coerceOrConvertValue_closure3(_box_0, _this, newNumerators[_i]), new T.SassNumber__coerceOrConvertValue_closure4(_compatibilityException));
  80287. t1 = _this.denominatorUnits;
  80288. oldDenominators = H.setRuntimeTypeInfo(t1.slice(0), H._arrayInstanceType(t1)._eval$1("JSArray<1>"));
  80289. for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, H.throwConcurrentModificationError)(newDenominators), ++_i)
  80290. B.removeFirstWhere0(oldDenominators, new T.SassNumber__coerceOrConvertValue_closure5(_box_0, _this, newDenominators[_i]), new T.SassNumber__coerceOrConvertValue_closure6(_compatibilityException));
  80291. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  80292. throw H.wrapException(_compatibilityException.call$0());
  80293. return _box_0.value;
  80294. },
  80295. _number1$_coerceOrConvertValue$4$coerceUnitless$name: function(newNumerators, newDenominators, coerceUnitless, $name) {
  80296. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  80297. },
  80298. isComparableTo$1: function(other) {
  80299. var t1, exception;
  80300. if (this.numeratorUnits.length !== 0 || this.denominatorUnits.length !== 0)
  80301. t1 = !(other.numeratorUnits.length !== 0 || other.denominatorUnits.length !== 0);
  80302. else
  80303. t1 = true;
  80304. if (t1)
  80305. return true;
  80306. try {
  80307. this.greaterThan$1(other);
  80308. return true;
  80309. } catch (exception) {
  80310. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  80311. return false;
  80312. else
  80313. throw exception;
  80314. }
  80315. },
  80316. greaterThan$1: function(other) {
  80317. if (other instanceof T.SassNumber0)
  80318. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  80319. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  80320. },
  80321. greaterThanOrEquals$1: function(other) {
  80322. if (other instanceof T.SassNumber0)
  80323. return this._number1$_coerceUnits$2(other, T.number2__fuzzyGreaterThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  80324. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  80325. },
  80326. lessThan$1: function(other) {
  80327. if (other instanceof T.SassNumber0)
  80328. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThan$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  80329. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  80330. },
  80331. lessThanOrEquals$1: function(other) {
  80332. if (other instanceof T.SassNumber0)
  80333. return this._number1$_coerceUnits$2(other, T.number2__fuzzyLessThanOrEquals$closure()) ? C.SassBoolean_true : C.SassBoolean_false;
  80334. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  80335. },
  80336. modulo$1: function(other) {
  80337. if (other instanceof T.SassNumber0)
  80338. return this._number1$_coerceNumber$2(other, new T.SassNumber_modulo_closure0());
  80339. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  80340. },
  80341. plus$1: function(other) {
  80342. if (other instanceof T.SassNumber0)
  80343. return this._number1$_coerceNumber$2(other, new T.SassNumber_plus_closure0());
  80344. if (!(other instanceof K.SassColor0))
  80345. return this.super$Value$plus0(other);
  80346. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".'));
  80347. },
  80348. minus$1: function(other) {
  80349. if (other instanceof T.SassNumber0)
  80350. return this._number1$_coerceNumber$2(other, new T.SassNumber_minus_closure0());
  80351. if (!(other instanceof K.SassColor0))
  80352. return this.super$Value$minus0(other);
  80353. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".'));
  80354. },
  80355. times$1: function(other) {
  80356. var _this = this;
  80357. if (other instanceof T.SassNumber0)
  80358. return _this._number1$_multiplyUnits$5(_this.value * other.value, _this.numeratorUnits, _this.denominatorUnits, other.numeratorUnits, other.denominatorUnits);
  80359. throw H.wrapException(E.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + H.S(other) + '".'));
  80360. },
  80361. dividedBy$1: function(other) {
  80362. var _this = this;
  80363. if (other instanceof T.SassNumber0)
  80364. return _this._number1$_multiplyUnits$5(_this.value / other.value, _this.numeratorUnits, _this.denominatorUnits, other.denominatorUnits, other.numeratorUnits);
  80365. return _this.super$Value$dividedBy0(other);
  80366. },
  80367. unaryPlus$0: function() {
  80368. return this;
  80369. },
  80370. unaryMinus$0: function() {
  80371. return T.SassNumber$withUnits0(-this.value, this.denominatorUnits, this.numeratorUnits);
  80372. },
  80373. _number1$_coerceNumber$2: function(other, operation) {
  80374. var _this = this,
  80375. result = _this._number1$_coerceUnits$2(other, operation),
  80376. t1 = _this.numeratorUnits,
  80377. t2 = t1.length === 0;
  80378. t1 = !t2 || _this.denominatorUnits.length !== 0 ? t1 : other.numeratorUnits;
  80379. return T.SassNumber$withUnits0(result, !t2 || _this.denominatorUnits.length !== 0 ? _this.denominatorUnits : other.denominatorUnits, t1);
  80380. },
  80381. _number1$_coerceUnits$1$2: function(other, operation) {
  80382. var num1, exception, _this = this, num2 = null;
  80383. if (_this.numeratorUnits.length !== 0 || _this.denominatorUnits.length !== 0) {
  80384. num1 = _this.value;
  80385. try {
  80386. num2 = other.coerceValueToMatch$1(_this);
  80387. } catch (exception) {
  80388. if (H.unwrapException(exception) instanceof E.SassScriptException0) {
  80389. _this.coerceValueToMatch$1(other);
  80390. throw exception;
  80391. } else
  80392. throw exception;
  80393. }
  80394. } else {
  80395. num1 = _this.coerceValueToMatch$1(other);
  80396. num2 = other.value;
  80397. }
  80398. return operation.call$2(num1, num2);
  80399. },
  80400. _number1$_coerceUnits$2: function(other, operation) {
  80401. return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
  80402. },
  80403. _number1$_multiplyUnits$5: function(value, numerators1, denominators1, numerators2, denominators2) {
  80404. var t1, newNumerators, mutableDenominators2, _i, numerator, mutableDenominators1, _this = this, _box_0 = {};
  80405. _box_0.value = value;
  80406. t1 = numerators1.length;
  80407. if (t1 === 0) {
  80408. if (denominators2.length === 0 && !_this._number1$_areAnyConvertible$2(denominators1, numerators2))
  80409. return T.SassNumber$withUnits0(value, denominators1, numerators2);
  80410. else if (denominators1.length === 0)
  80411. return T.SassNumber$withUnits0(value, denominators2, numerators2);
  80412. } else if (numerators2.length === 0)
  80413. if (denominators2.length === 0)
  80414. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  80415. else if (denominators1.length === 0 && !_this._number1$_areAnyConvertible$2(numerators1, denominators2))
  80416. return T.SassNumber$withUnits0(value, denominators2, numerators1);
  80417. newNumerators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  80418. mutableDenominators2 = H.setRuntimeTypeInfo(denominators2.slice(0), H._arrayInstanceType(denominators2)._eval$1("JSArray<1>"));
  80419. for (_i = 0; _i < t1; ++_i) {
  80420. numerator = numerators1[_i];
  80421. B.removeFirstWhere0(mutableDenominators2, new T.SassNumber__multiplyUnits_closure3(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure4(newNumerators, numerator));
  80422. }
  80423. mutableDenominators1 = H.setRuntimeTypeInfo(denominators1.slice(0), H._arrayInstanceType(denominators1)._eval$1("JSArray<1>"));
  80424. for (t1 = numerators2.length, _i = 0; _i < t1; ++_i) {
  80425. numerator = numerators2[_i];
  80426. B.removeFirstWhere0(mutableDenominators1, new T.SassNumber__multiplyUnits_closure5(_box_0, _this, numerator), new T.SassNumber__multiplyUnits_closure6(newNumerators, numerator));
  80427. }
  80428. t1 = _box_0.value;
  80429. C.JSArray_methods.addAll$1(mutableDenominators1, mutableDenominators2);
  80430. return T.SassNumber$withUnits0(t1, mutableDenominators1, newNumerators);
  80431. },
  80432. _number1$_areAnyConvertible$2: function(units1, units2) {
  80433. return C.JSArray_methods.any$1(units1, new T.SassNumber__areAnyConvertible_closure0(this, units2));
  80434. },
  80435. _number1$_conversionFactor$2: function(unit1, unit2) {
  80436. var innerMap;
  80437. if (unit1 == unit2)
  80438. return 1;
  80439. innerMap = C.Map_K2BWj.$index(0, unit1);
  80440. if (innerMap == null)
  80441. return null;
  80442. return innerMap.$index(0, unit2);
  80443. },
  80444. _number1$_unitString$2: function(numerators, denominators) {
  80445. var t1;
  80446. if (numerators.length === 0) {
  80447. t1 = denominators.length;
  80448. if (t1 === 0)
  80449. return "no units";
  80450. if (t1 === 1)
  80451. return J.$add$ansx(C.JSArray_methods.get$single(denominators), "^-1");
  80452. return "(" + C.JSArray_methods.join$1(denominators, "*") + ")^-1";
  80453. }
  80454. if (denominators.length === 0)
  80455. return C.JSArray_methods.join$1(numerators, "*");
  80456. return C.JSArray_methods.join$1(numerators, "*") + "/" + C.JSArray_methods.join$1(denominators, "*");
  80457. },
  80458. $eq: function(_, other) {
  80459. var t1, t2, t3, exception, _this = this;
  80460. if (other == null)
  80461. return false;
  80462. other = other;
  80463. if (other instanceof T.SassNumber0) {
  80464. t1 = _this.numeratorUnits.length === 0;
  80465. t2 = !t1 || _this.denominatorUnits.length !== 0;
  80466. t3 = other;
  80467. if (t2 !== (t3.numeratorUnits.length !== 0 || t3.denominatorUnits.length !== 0))
  80468. return false;
  80469. if (!(!t1 || _this.denominatorUnits.length !== 0))
  80470. return Math.abs(_this.value - other.value) < $.$get$epsilon0();
  80471. try {
  80472. t1 = _this._number1$_coerceUnits$2(other, T.number2__fuzzyEquals$closure());
  80473. return t1;
  80474. } catch (exception) {
  80475. if (H.unwrapException(exception) instanceof E.SassScriptException0)
  80476. return false;
  80477. else
  80478. throw exception;
  80479. }
  80480. } else
  80481. return false;
  80482. },
  80483. get$hashCode: function(_) {
  80484. var _this = this,
  80485. t1 = _this.value * _this._number1$_canonicalMultiplier$1(_this.numeratorUnits) / _this._number1$_canonicalMultiplier$1(_this.denominatorUnits);
  80486. return t1 == 1 / 0 || t1 == -1 / 0 || isNaN(t1) ? C.JSDouble_methods.get$hashCode(t1) : C.JSInt_methods.get$hashCode(C.JSDouble_methods.round$0(t1 * $.$get$_inverseEpsilon0()));
  80487. },
  80488. _number1$_canonicalMultiplier$1: function(units) {
  80489. return C.JSArray_methods.fold$2(units, 1, new T.SassNumber__canonicalMultiplier_closure0());
  80490. },
  80491. _number1$_exception$2: function(message, $name) {
  80492. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  80493. }
  80494. };
  80495. T.SassNumber__coerceOrConvertValue__compatibilityException0.prototype = {
  80496. call$0: function() {
  80497. var t2, t3, message, t4, type, unit, _this = this,
  80498. t1 = _this.other;
  80499. if (t1 != null) {
  80500. t2 = _this.$this;
  80501. t3 = t2.toString$0(0) + " and";
  80502. message = new P.StringBuffer(t3);
  80503. t4 = _this.otherName;
  80504. if (t4 != null)
  80505. t3 = message._contents = t3 + (" $" + t4 + ":");
  80506. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  80507. message._contents = t1;
  80508. if (!(t2.numeratorUnits.length !== 0 || t2.denominatorUnits.length !== 0) || !_this.otherHasUnits)
  80509. message._contents = t1 + " (one has units and the other doesn't)";
  80510. t1 = message.toString$0(0) + ".";
  80511. t2 = _this.name;
  80512. return new E.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  80513. } else if (!_this.otherHasUnits) {
  80514. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  80515. t2 = _this.name;
  80516. return new E.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  80517. } else {
  80518. t1 = _this.newNumerators;
  80519. if (t1.length === 1 && _this.newDenominators.length === 0) {
  80520. type = $.$get$_typesByUnit0().$index(0, C.JSArray_methods.get$first(t1));
  80521. if (type != null) {
  80522. t1 = "Expected " + _this.$this.toString$0(0) + " to have ";
  80523. t1 = t1 + (C.JSArray_methods.contains$1(H.setRuntimeTypeInfo([97, 101, 105, 111, 117], type$.JSArray_legacy_int), C.JSString_methods._codeUnitAt$1(type, 0)) ? "an " + type : "a " + type) + " unit (";
  80524. t2 = C.Map_U8AHF.$index(0, type);
  80525. t2 = t1 + (t2 && C.JSArray_methods).join$1(t2, ", ") + ").";
  80526. t1 = _this.name;
  80527. return new E.SassScriptException0(t1 == null ? t2 : "$" + t1 + ": " + t2);
  80528. }
  80529. }
  80530. t2 = _this.newDenominators;
  80531. unit = B.pluralize0("unit", t1.length + t2.length, null);
  80532. t3 = _this.$this;
  80533. t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._number1$_unitString$2(t1, t2) + ".";
  80534. t1 = _this.name;
  80535. return new E.SassScriptException0(t1 == null ? t2 : "$" + t1 + ": " + t2);
  80536. }
  80537. },
  80538. $signature: 420
  80539. };
  80540. T.SassNumber__coerceOrConvertValue_closure3.prototype = {
  80541. call$1: function(oldNumerator) {
  80542. var t1,
  80543. factor = this.$this._number1$_conversionFactor$2(this.newNumerator, oldNumerator);
  80544. if (factor == null)
  80545. return false;
  80546. t1 = this._box_0;
  80547. t1.value = t1.value * factor;
  80548. return true;
  80549. },
  80550. $signature: 5
  80551. };
  80552. T.SassNumber__coerceOrConvertValue_closure4.prototype = {
  80553. call$0: function() {
  80554. return H.throwExpression(this._compatibilityException.call$0());
  80555. },
  80556. $signature: 0
  80557. };
  80558. T.SassNumber__coerceOrConvertValue_closure5.prototype = {
  80559. call$1: function(oldDenominator) {
  80560. var t1,
  80561. factor = this.$this._number1$_conversionFactor$2(this.newDenominator, oldDenominator);
  80562. if (factor == null)
  80563. return false;
  80564. t1 = this._box_0;
  80565. t1.value = t1.value / factor;
  80566. return true;
  80567. },
  80568. $signature: 5
  80569. };
  80570. T.SassNumber__coerceOrConvertValue_closure6.prototype = {
  80571. call$0: function() {
  80572. return H.throwExpression(this._compatibilityException.call$0());
  80573. },
  80574. $signature: 0
  80575. };
  80576. T.SassNumber_modulo_closure0.prototype = {
  80577. call$2: function(num1, num2) {
  80578. var t1;
  80579. if (num2 > 0)
  80580. return C.JSNumber_methods.$mod(num1, num2);
  80581. if (num2 === 0)
  80582. return 0 / 0;
  80583. t1 = C.JSNumber_methods.$mod(num1, num2);
  80584. return t1 === 0 ? 0 : t1 + num2;
  80585. },
  80586. $signature: 50
  80587. };
  80588. T.SassNumber_plus_closure0.prototype = {
  80589. call$2: function(num1, num2) {
  80590. return num1 + num2;
  80591. },
  80592. $signature: 50
  80593. };
  80594. T.SassNumber_minus_closure0.prototype = {
  80595. call$2: function(num1, num2) {
  80596. return num1 - num2;
  80597. },
  80598. $signature: 50
  80599. };
  80600. T.SassNumber__multiplyUnits_closure3.prototype = {
  80601. call$1: function(denominator) {
  80602. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  80603. if (factor == null)
  80604. return false;
  80605. this._box_0.value /= factor;
  80606. return true;
  80607. },
  80608. $signature: 5
  80609. };
  80610. T.SassNumber__multiplyUnits_closure4.prototype = {
  80611. call$0: function() {
  80612. this.newNumerators.push(this.numerator);
  80613. return null;
  80614. },
  80615. $signature: 0
  80616. };
  80617. T.SassNumber__multiplyUnits_closure5.prototype = {
  80618. call$1: function(denominator) {
  80619. var factor = this.$this._number1$_conversionFactor$2(this.numerator, denominator);
  80620. if (factor == null)
  80621. return false;
  80622. this._box_0.value /= factor;
  80623. return true;
  80624. },
  80625. $signature: 5
  80626. };
  80627. T.SassNumber__multiplyUnits_closure6.prototype = {
  80628. call$0: function() {
  80629. this.newNumerators.push(this.numerator);
  80630. return null;
  80631. },
  80632. $signature: 0
  80633. };
  80634. T.SassNumber__areAnyConvertible_closure0.prototype = {
  80635. call$1: function(unit1) {
  80636. if (!C.Map_K2BWj.containsKey$1(unit1))
  80637. return C.JSArray_methods.contains$1(this.units2, unit1);
  80638. return C.JSArray_methods.any$1(this.units2, C.Map_K2BWj.$index(0, unit1).get$containsKey());
  80639. },
  80640. $signature: 5
  80641. };
  80642. T.SassNumber__canonicalMultiplier_closure0.prototype = {
  80643. call$2: function(multiplier, unit) {
  80644. var t1,
  80645. innerMap = C.Map_K2BWj.$index(0, unit);
  80646. if (innerMap == null)
  80647. t1 = multiplier;
  80648. else {
  80649. t1 = innerMap.get$values(innerMap);
  80650. t1 = multiplier / t1.get$first(t1);
  80651. }
  80652. return t1;
  80653. },
  80654. $signature: 211
  80655. };
  80656. U.SupportsOperation0.prototype = {
  80657. toString$0: function(_) {
  80658. var _this = this;
  80659. return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
  80660. },
  80661. _operation0$_parenthesize$1: function(condition) {
  80662. var t1;
  80663. if (!(condition instanceof M.SupportsNegation0))
  80664. t1 = condition instanceof U.SupportsOperation0 && condition.operator === this.operator;
  80665. else
  80666. t1 = true;
  80667. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  80668. },
  80669. $isAstNode0: 1,
  80670. get$span: function() {
  80671. return this.span;
  80672. }
  80673. };
  80674. M.ParentSelector0.prototype = {
  80675. accept$1$1: function(visitor) {
  80676. var t2,
  80677. t1 = visitor._buffer;
  80678. t1.writeCharCode$1(38);
  80679. t2 = this.suffix;
  80680. if (t2 != null)
  80681. t1.write$1(0, t2);
  80682. return null;
  80683. },
  80684. accept$1: function(visitor) {
  80685. return this.accept$1$1(visitor, type$.dynamic);
  80686. },
  80687. unify$1: function(compound) {
  80688. return H.throwExpression(P.UnsupportedError$("& doesn't support unification."));
  80689. }
  80690. };
  80691. M.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
  80692. M.ParentStatement_closure0.prototype = {
  80693. call$1: function(child) {
  80694. var t1;
  80695. if (!(child instanceof Z.VariableDeclaration0))
  80696. if (!(child instanceof M.FunctionRule0))
  80697. if (!(child instanceof T.MixinRule0))
  80698. t1 = child instanceof B.ImportRule0 && C.JSArray_methods.any$1(child.imports, new M.ParentStatement__closure0());
  80699. else
  80700. t1 = true;
  80701. else
  80702. t1 = true;
  80703. else
  80704. t1 = true;
  80705. return t1;
  80706. },
  80707. $signature: 137
  80708. };
  80709. M.ParentStatement__closure0.prototype = {
  80710. call$1: function($import) {
  80711. return $import instanceof B.DynamicImport0;
  80712. },
  80713. $signature: 135
  80714. };
  80715. T.ParenthesizedExpression0.prototype = {
  80716. accept$1$1: function(visitor) {
  80717. return visitor.visitParenthesizedExpression$1(this);
  80718. },
  80719. accept$1: function(visitor) {
  80720. return this.accept$1$1(visitor, type$.dynamic);
  80721. },
  80722. toString$0: function(_) {
  80723. return J.toString$0$(this.expression);
  80724. },
  80725. $isExpression0: 1,
  80726. $isAstNode0: 1,
  80727. get$span: function() {
  80728. return this.span;
  80729. }
  80730. };
  80731. G.Parser1.prototype = {
  80732. _parser$_parseIdentifier$0: function() {
  80733. return this.wrapSpanFormatException$1(new G.Parser__parseIdentifier_closure0(this));
  80734. },
  80735. whitespace$0: function() {
  80736. do
  80737. this.whitespaceWithoutComments$0();
  80738. while (this.scanComment$0());
  80739. },
  80740. whitespaceWithoutComments$0: function() {
  80741. var t3,
  80742. t1 = this.scanner,
  80743. t2 = t1.string.length;
  80744. while (true) {
  80745. if (t1._string_scanner$_position !== t2) {
  80746. t3 = t1.peekChar$0();
  80747. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  80748. } else
  80749. t3 = false;
  80750. if (!t3)
  80751. break;
  80752. t1.readChar$0();
  80753. }
  80754. },
  80755. spaces$0: function() {
  80756. var t3,
  80757. t1 = this.scanner,
  80758. t2 = t1.string.length;
  80759. while (true) {
  80760. if (t1._string_scanner$_position !== t2) {
  80761. t3 = t1.peekChar$0();
  80762. t3 = t3 === 32 || t3 === 9;
  80763. } else
  80764. t3 = false;
  80765. if (!t3)
  80766. break;
  80767. t1.readChar$0();
  80768. }
  80769. },
  80770. scanComment$0: function() {
  80771. var next,
  80772. t1 = this.scanner;
  80773. if (t1.peekChar$0() !== 47)
  80774. return false;
  80775. next = t1.peekChar$1(1);
  80776. if (next === 47) {
  80777. this.silentComment$0();
  80778. return true;
  80779. } else if (next === 42) {
  80780. this.loudComment$0();
  80781. return true;
  80782. } else
  80783. return false;
  80784. },
  80785. silentComment$0: function() {
  80786. var t2, t3,
  80787. t1 = this.scanner;
  80788. t1.expect$1("//");
  80789. t2 = t1.string.length;
  80790. while (true) {
  80791. if (t1._string_scanner$_position !== t2) {
  80792. t3 = t1.peekChar$0();
  80793. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  80794. } else
  80795. t3 = false;
  80796. if (!t3)
  80797. break;
  80798. t1.readChar$0();
  80799. }
  80800. },
  80801. loudComment$0: function() {
  80802. var next,
  80803. t1 = this.scanner;
  80804. t1.expect$1("/*");
  80805. for (; true;) {
  80806. if (t1.readChar$0() !== 42)
  80807. continue;
  80808. do
  80809. next = t1.readChar$0();
  80810. while (next === 42);
  80811. if (next === 47)
  80812. break;
  80813. }
  80814. },
  80815. identifier$2$normalize$unit: function(normalize, unit) {
  80816. var t2, first, _this = this,
  80817. _s20_ = "Expected identifier.",
  80818. text = new P.StringBuffer(""),
  80819. t1 = _this.scanner;
  80820. if (t1.scanChar$1(45)) {
  80821. t2 = text._contents = H.Primitives_stringFromCharCode(45);
  80822. if (t1.scanChar$1(45)) {
  80823. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  80824. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  80825. t1 = text._contents;
  80826. return t1.charCodeAt(0) == 0 ? t1 : t1;
  80827. }
  80828. } else
  80829. t2 = "";
  80830. first = t1.peekChar$0();
  80831. if (first == null)
  80832. t1.error$1(0, _s20_);
  80833. else if (normalize && first === 95) {
  80834. t1.readChar$0();
  80835. text._contents = t2 + H.Primitives_stringFromCharCode(45);
  80836. } else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  80837. text._contents = t2 + H.Primitives_stringFromCharCode(t1.readChar$0());
  80838. else if (first === 92)
  80839. text._contents = t2 + H.S(_this.escape$1$identifierStart(true));
  80840. else
  80841. t1.error$1(0, _s20_);
  80842. _this._parser$_identifierBody$3$normalize$unit(text, normalize, unit);
  80843. t1 = text._contents;
  80844. return t1.charCodeAt(0) == 0 ? t1 : t1;
  80845. },
  80846. identifier$0: function() {
  80847. return this.identifier$2$normalize$unit(false, false);
  80848. },
  80849. identifier$1$normalize: function(normalize) {
  80850. return this.identifier$2$normalize$unit(normalize, false);
  80851. },
  80852. identifier$1$unit: function(unit) {
  80853. return this.identifier$2$normalize$unit(false, unit);
  80854. },
  80855. _parser$_identifierBody$3$normalize$unit: function(text, normalize, unit) {
  80856. var t1, next, second, t2;
  80857. for (t1 = this.scanner; true;) {
  80858. next = t1.peekChar$0();
  80859. if (next == null)
  80860. break;
  80861. else if (unit && next === 45) {
  80862. second = t1.peekChar$1(1);
  80863. if (second != null)
  80864. if (second !== 46)
  80865. t2 = second >= 48 && second <= 57;
  80866. else
  80867. t2 = true;
  80868. else
  80869. t2 = false;
  80870. if (t2)
  80871. break;
  80872. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80873. } else if (normalize && next === 95) {
  80874. t1.readChar$0();
  80875. text._contents += H.Primitives_stringFromCharCode(45);
  80876. } else {
  80877. if (next !== 95) {
  80878. if (!(next >= 97 && next <= 122))
  80879. t2 = next >= 65 && next <= 90;
  80880. else
  80881. t2 = true;
  80882. t2 = t2 || next >= 128;
  80883. } else
  80884. t2 = true;
  80885. if (!t2) {
  80886. t2 = next >= 48 && next <= 57;
  80887. t2 = t2 || next === 45;
  80888. } else
  80889. t2 = true;
  80890. if (t2)
  80891. text._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80892. else if (next === 92)
  80893. text._contents += H.S(this.escape$0());
  80894. else
  80895. break;
  80896. }
  80897. }
  80898. },
  80899. _parser$_identifierBody$1: function(text) {
  80900. return this._parser$_identifierBody$3$normalize$unit(text, false, false);
  80901. },
  80902. string$0: function() {
  80903. var t2, buffer, next,
  80904. t1 = this.scanner,
  80905. quote = t1.readChar$0();
  80906. if (quote !== 39 && quote !== 34) {
  80907. t2 = t1._string_scanner$_position;
  80908. t1.error$2$position(0, "Expected string.", t2 - 1);
  80909. }
  80910. buffer = new P.StringBuffer("");
  80911. for (; true;) {
  80912. next = t1.peekChar$0();
  80913. if (next === quote) {
  80914. t1.readChar$0();
  80915. break;
  80916. } else if (next == null || next === 10 || next === 13 || next === 12)
  80917. t1.error$1(0, "Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  80918. else if (next === 92) {
  80919. t2 = t1.peekChar$1(1);
  80920. if (t2 === 10 || t2 === 13 || t2 === 12) {
  80921. t1.readChar$0();
  80922. t1.readChar$0();
  80923. } else
  80924. buffer._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  80925. } else
  80926. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80927. }
  80928. t1 = buffer._contents;
  80929. return t1.charCodeAt(0) == 0 ? t1 : t1;
  80930. },
  80931. naturalNumber$0: function() {
  80932. var number, t2,
  80933. t1 = this.scanner,
  80934. first = t1.readChar$0();
  80935. if (!T.isDigit0(first))
  80936. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  80937. number = first - 48;
  80938. while (true) {
  80939. t2 = t1.peekChar$0();
  80940. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  80941. break;
  80942. number = number * 10 + (t1.readChar$0() - 48);
  80943. }
  80944. return number;
  80945. },
  80946. declarationValue$1$allowEmpty: function(allowEmpty) {
  80947. var t1, t2, wroteNewline, next, start, end, t3, url, _this = this,
  80948. buffer = new P.StringBuffer(""),
  80949. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  80950. $label0$1:
  80951. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  80952. next = t1.peekChar$0();
  80953. switch (next) {
  80954. case 92:
  80955. buffer._contents += H.S(_this.escape$1$identifierStart(true));
  80956. wroteNewline = false;
  80957. break;
  80958. case 34:
  80959. case 39:
  80960. start = t1._string_scanner$_position;
  80961. t2.call$0();
  80962. end = t1._string_scanner$_position;
  80963. buffer._contents += J.substring$2$s(t1.string, start, end);
  80964. wroteNewline = false;
  80965. break;
  80966. case 47:
  80967. if (t1.peekChar$1(1) === 42) {
  80968. t3 = _this.get$loudComment();
  80969. start = t1._string_scanner$_position;
  80970. t3.call$0();
  80971. end = t1._string_scanner$_position;
  80972. buffer._contents += J.substring$2$s(t1.string, start, end);
  80973. } else
  80974. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  80975. wroteNewline = false;
  80976. break;
  80977. case 32:
  80978. case 9:
  80979. if (!wroteNewline) {
  80980. t3 = t1.peekChar$1(1);
  80981. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  80982. } else
  80983. t3 = true;
  80984. if (t3)
  80985. buffer._contents += H.Primitives_stringFromCharCode(32);
  80986. t1.readChar$0();
  80987. break;
  80988. case 10:
  80989. case 13:
  80990. case 12:
  80991. t3 = t1.peekChar$1(-1);
  80992. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  80993. buffer._contents += "\n";
  80994. t1.readChar$0();
  80995. wroteNewline = true;
  80996. break;
  80997. case 40:
  80998. case 123:
  80999. case 91:
  81000. buffer._contents += H.Primitives_stringFromCharCode(next);
  81001. brackets.push(T.opposite0(t1.readChar$0()));
  81002. wroteNewline = false;
  81003. break;
  81004. case 41:
  81005. case 125:
  81006. case 93:
  81007. if (brackets.length === 0)
  81008. break $label0$1;
  81009. buffer._contents += H.Primitives_stringFromCharCode(next);
  81010. t1.expectChar$1(brackets.pop());
  81011. wroteNewline = false;
  81012. break;
  81013. case 59:
  81014. if (brackets.length === 0)
  81015. break $label0$1;
  81016. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81017. break;
  81018. case 117:
  81019. case 85:
  81020. url = _this.tryUrl$0();
  81021. if (url != null)
  81022. buffer._contents += url;
  81023. else
  81024. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81025. wroteNewline = false;
  81026. break;
  81027. default:
  81028. if (next == null)
  81029. break $label0$1;
  81030. if (_this.lookingAtIdentifier$0())
  81031. buffer._contents += _this.identifier$0();
  81032. else
  81033. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81034. wroteNewline = false;
  81035. break;
  81036. }
  81037. }
  81038. if (brackets.length !== 0)
  81039. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  81040. if (!allowEmpty && buffer._contents.length === 0)
  81041. t1.error$1(0, "Expected token.");
  81042. t1 = buffer._contents;
  81043. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81044. },
  81045. declarationValue$0: function() {
  81046. return this.declarationValue$1$allowEmpty(false);
  81047. },
  81048. tryUrl$0: function() {
  81049. var buffer, next, t2, _this = this,
  81050. t1 = _this.scanner,
  81051. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  81052. if (!_this.scanIdentifier$1("url"))
  81053. return null;
  81054. if (!t1.scanChar$1(40)) {
  81055. t1.set$state(start);
  81056. return null;
  81057. }
  81058. _this.whitespace$0();
  81059. buffer = new P.StringBuffer("");
  81060. buffer._contents = "url(";
  81061. for (; true;) {
  81062. next = t1.peekChar$0();
  81063. if (next == null)
  81064. break;
  81065. else {
  81066. if (next !== 37)
  81067. if (next !== 38)
  81068. if (next !== 35)
  81069. t2 = next >= 42 && next <= 126 || next >= 128;
  81070. else
  81071. t2 = true;
  81072. else
  81073. t2 = true;
  81074. else
  81075. t2 = true;
  81076. if (t2)
  81077. buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81078. else if (next === 92)
  81079. buffer._contents += H.S(_this.escape$0());
  81080. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  81081. _this.whitespace$0();
  81082. if (t1.peekChar$0() !== 41)
  81083. break;
  81084. } else if (next === 41) {
  81085. t2 = buffer._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81086. return t2.charCodeAt(0) == 0 ? t2 : t2;
  81087. } else
  81088. break;
  81089. }
  81090. }
  81091. t1.set$state(start);
  81092. return null;
  81093. },
  81094. variableName$0: function() {
  81095. this.scanner.expectChar$1(36);
  81096. return this.identifier$1$normalize(true);
  81097. },
  81098. escape$1$identifierStart: function(identifierStart) {
  81099. var value, first, i, next, t2, exception,
  81100. t1 = this.scanner,
  81101. start = t1._string_scanner$_position;
  81102. t1.expectChar$1(92);
  81103. value = 0;
  81104. first = t1.peekChar$0();
  81105. if (first == null)
  81106. return "";
  81107. else if (T.isNewline0(first))
  81108. t1.error$1(0, "Expected escape sequence.");
  81109. else if (T.isHex0(first)) {
  81110. for (i = 0; i < 6; ++i) {
  81111. next = t1.peekChar$0();
  81112. if (next == null || !T.isHex0(next))
  81113. break;
  81114. value *= 16;
  81115. value += T.asHex0(t1.readChar$0());
  81116. }
  81117. this.scanCharIf$1(T.character0__isWhitespace$closure());
  81118. } else
  81119. value = t1.readChar$0();
  81120. if (identifierStart) {
  81121. t2 = value;
  81122. t2 = t2 === 95 || T.isAlphabetic1(t2) || t2 >= 128;
  81123. } else {
  81124. t2 = value;
  81125. t2 = t2 === 95 || T.isAlphabetic1(t2) || t2 >= 128 || T.isDigit0(t2) || t2 === 45;
  81126. }
  81127. if (t2)
  81128. try {
  81129. t2 = H.Primitives_stringFromCharCode(value);
  81130. return t2;
  81131. } catch (exception) {
  81132. if (type$.legacy_RangeError._is(H.unwrapException(exception)))
  81133. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  81134. else
  81135. throw exception;
  81136. }
  81137. else {
  81138. if (!(value <= 31))
  81139. if (!J.$eq$(value, 127))
  81140. t1 = identifierStart && T.isDigit0(value);
  81141. else
  81142. t1 = true;
  81143. else
  81144. t1 = true;
  81145. if (t1) {
  81146. t1 = H.Primitives_stringFromCharCode(92);
  81147. if (value > 15)
  81148. t1 += H.Primitives_stringFromCharCode(T.hexCharFor0(C.JSNumber_methods._shrOtherPositive$1(value, 4)));
  81149. t1 = t1 + H.Primitives_stringFromCharCode(T.hexCharFor0(value & 15)) + H.Primitives_stringFromCharCode(32);
  81150. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81151. } else
  81152. return P.String_String$fromCharCodes(H.setRuntimeTypeInfo([92, value], type$.JSArray_legacy_int), 0, null);
  81153. }
  81154. },
  81155. escape$0: function() {
  81156. return this.escape$1$identifierStart(false);
  81157. },
  81158. escapeCharacter$0: function() {
  81159. var first, value, i, next, t2,
  81160. t1 = this.scanner;
  81161. t1.expectChar$1(92);
  81162. first = t1.peekChar$0();
  81163. if (first == null)
  81164. return 65533;
  81165. else if (T.isNewline0(first))
  81166. t1.error$1(0, "Expected escape sequence.");
  81167. else if (T.isHex0(first)) {
  81168. for (value = 0, i = 0; i < 6; ++i) {
  81169. next = t1.peekChar$0();
  81170. if (next == null || !T.isHex0(next))
  81171. break;
  81172. value = (value << 4 >>> 0) + T.asHex0(t1.readChar$0());
  81173. }
  81174. t2 = t1.peekChar$0();
  81175. if (t2 === 32 || t2 === 9 || T.isNewline0(t2))
  81176. t1.readChar$0();
  81177. if (value !== 0)
  81178. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  81179. else
  81180. t1 = true;
  81181. if (t1)
  81182. return 65533;
  81183. else
  81184. return value;
  81185. } else
  81186. return t1.readChar$0();
  81187. },
  81188. scanCharIf$1: function(condition) {
  81189. var t1 = this.scanner;
  81190. if (!condition.call$1(t1.peekChar$0()))
  81191. return false;
  81192. t1.readChar$0();
  81193. return true;
  81194. },
  81195. scanIdentChar$2$caseSensitive: function(char, caseSensitive) {
  81196. var t3,
  81197. t1 = new G.Parser_scanIdentChar_matches0(caseSensitive, char),
  81198. t2 = this.scanner,
  81199. next = t2.peekChar$0();
  81200. if (next != null && t1.call$1(next)) {
  81201. t2.readChar$0();
  81202. return true;
  81203. } else if (next === 92) {
  81204. t3 = t2._string_scanner$_position;
  81205. if (t1.call$1(this.escapeCharacter$0()))
  81206. return true;
  81207. t2.set$state(new S._SpanScannerState(t2, t3));
  81208. }
  81209. return false;
  81210. },
  81211. scanIdentChar$1: function(char) {
  81212. return this.scanIdentChar$2$caseSensitive(char, false);
  81213. },
  81214. expectIdentChar$1: function(letter) {
  81215. var t1;
  81216. if (this.scanIdentChar$2$caseSensitive(letter, false))
  81217. return;
  81218. t1 = this.scanner;
  81219. t1.error$2$position(0, 'Expected "' + H.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  81220. },
  81221. lookingAtNumber$0: function() {
  81222. var second, third,
  81223. t1 = this.scanner,
  81224. first = t1.peekChar$0();
  81225. if (first == null)
  81226. return false;
  81227. if (T.isDigit0(first))
  81228. return true;
  81229. if (first === 46) {
  81230. second = t1.peekChar$1(1);
  81231. return second != null && T.isDigit0(second);
  81232. } else if (first === 43 || first === 45) {
  81233. second = t1.peekChar$1(1);
  81234. if (second == null)
  81235. return false;
  81236. if (T.isDigit0(second))
  81237. return true;
  81238. if (second !== 46)
  81239. return false;
  81240. third = t1.peekChar$1(2);
  81241. return third != null && T.isDigit0(third);
  81242. } else
  81243. return false;
  81244. },
  81245. lookingAtIdentifier$1: function($forward) {
  81246. var t1, first, second;
  81247. if ($forward == null)
  81248. $forward = 0;
  81249. t1 = this.scanner;
  81250. first = t1.peekChar$1($forward);
  81251. if (first == null)
  81252. return false;
  81253. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  81254. return true;
  81255. if (first !== 45)
  81256. return false;
  81257. second = t1.peekChar$1($forward + 1);
  81258. if (second == null)
  81259. return false;
  81260. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  81261. },
  81262. lookingAtIdentifier$0: function() {
  81263. return this.lookingAtIdentifier$1(null);
  81264. },
  81265. lookingAtIdentifierBody$0: function() {
  81266. var t1,
  81267. next = this.scanner.peekChar$0();
  81268. if (next != null)
  81269. t1 = next === 95 || T.isAlphabetic1(next) || next >= 128 || T.isDigit0(next) || next === 45 || next === 92;
  81270. else
  81271. t1 = false;
  81272. return t1;
  81273. },
  81274. scanIdentifier$2$caseSensitive: function(text, caseSensitive) {
  81275. var t1, start, t2, cur, _this = this;
  81276. if (!_this.lookingAtIdentifier$0())
  81277. return false;
  81278. t1 = _this.scanner;
  81279. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  81280. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  81281. cur = t2.__internal$_current;
  81282. if (_this.scanIdentChar$2$caseSensitive(cur, caseSensitive))
  81283. continue;
  81284. if (start._scanner !== t1)
  81285. H.throwExpression(P.ArgumentError$(string$.The_gi));
  81286. t2 = start.position;
  81287. if (t2 < 0 || t2 > t1.string.length)
  81288. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  81289. t1._string_scanner$_position = t2;
  81290. t1._lastMatch = null;
  81291. return false;
  81292. }
  81293. if (!_this.lookingAtIdentifierBody$0())
  81294. return true;
  81295. t1.set$state(start);
  81296. return false;
  81297. },
  81298. scanIdentifier$1: function(text) {
  81299. return this.scanIdentifier$2$caseSensitive(text, false);
  81300. },
  81301. expectIdentifier$2$name: function(text, $name) {
  81302. var t1, start, t2, cur;
  81303. if ($name == null)
  81304. $name = '"' + text + '"';
  81305. t1 = this.scanner;
  81306. start = t1._string_scanner$_position;
  81307. for (t2 = new H.CodeUnits(text), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  81308. cur = t2.__internal$_current;
  81309. if (this.scanIdentChar$2$caseSensitive(cur, false))
  81310. continue;
  81311. t1.error$2$position(0, "Expected " + $name + ".", start);
  81312. }
  81313. if (!this.lookingAtIdentifierBody$0())
  81314. return;
  81315. t1.error$2$position(0, "Expected " + $name, start);
  81316. },
  81317. expectIdentifier$1: function(text) {
  81318. return this.expectIdentifier$2$name(text, null);
  81319. },
  81320. rawText$1: function(consumer) {
  81321. var t1 = this.scanner,
  81322. start = t1._string_scanner$_position;
  81323. consumer.call$0();
  81324. return t1.substring$1(0, start);
  81325. },
  81326. error$2: function(_, message, span) {
  81327. return H.throwExpression(E.StringScannerException$(message, span, this.scanner.string));
  81328. },
  81329. withErrorMessage$1$2: function(message, callback) {
  81330. var error, t1, exception;
  81331. try {
  81332. t1 = callback.call$0();
  81333. return t1;
  81334. } catch (exception) {
  81335. t1 = H.unwrapException(exception);
  81336. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  81337. error = t1;
  81338. throw H.wrapException(G.SourceSpanFormatException$(message, error.get$span(), error.get$source()));
  81339. } else
  81340. throw exception;
  81341. }
  81342. },
  81343. withErrorMessage$2: function(message, callback) {
  81344. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  81345. },
  81346. wrapSpanFormatException$1$1: function(callback) {
  81347. var error, span, startPosition, t1, exception;
  81348. try {
  81349. t1 = callback.call$0();
  81350. return t1;
  81351. } catch (exception) {
  81352. t1 = H.unwrapException(exception);
  81353. if (type$.legacy_SourceSpanFormatException._is(t1)) {
  81354. error = t1;
  81355. span = error.get$span();
  81356. if (B.startsWithIgnoreCase0(error._span_exception$_message, "expected")) {
  81357. t1 = span;
  81358. t1 = t1._end - t1._file$_start === 0;
  81359. } else
  81360. t1 = false;
  81361. if (t1) {
  81362. t1 = span;
  81363. startPosition = this._parser$_firstNewlineBefore$1(Y.FileLocation$_(t1.file, t1._file$_start).offset);
  81364. t1 = span;
  81365. if (!J.$eq$(startPosition, Y.FileLocation$_(t1.file, t1._file$_start).offset))
  81366. span = span.file.span$2(startPosition, startPosition);
  81367. }
  81368. throw H.wrapException(E.SassFormatException$0(error._span_exception$_message, span));
  81369. } else
  81370. throw exception;
  81371. }
  81372. },
  81373. wrapSpanFormatException$1: function(callback) {
  81374. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  81375. },
  81376. _parser$_firstNewlineBefore$1: function(position) {
  81377. var t1, t2, lastNewline, codeUnit,
  81378. index = position - 1;
  81379. for (t1 = this.scanner.string, t2 = J.getInterceptor$s(t1), lastNewline = null; index >= 0;) {
  81380. codeUnit = t2.codeUnitAt$1(t1, index);
  81381. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  81382. return lastNewline == null ? position : lastNewline;
  81383. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  81384. lastNewline = index;
  81385. --index;
  81386. }
  81387. return position;
  81388. }
  81389. };
  81390. G.Parser__parseIdentifier_closure0.prototype = {
  81391. call$0: function() {
  81392. var t1 = this.$this,
  81393. result = t1.identifier$0();
  81394. t1.scanner.expectDone$0();
  81395. return result;
  81396. },
  81397. $signature: 17
  81398. };
  81399. G.Parser_scanIdentChar_matches0.prototype = {
  81400. call$1: function(actual) {
  81401. var t1 = this.char;
  81402. return this.caseSensitive ? actual === t1 : T.characterEqualsIgnoreCase0(t1, actual);
  81403. },
  81404. $signature: 24
  81405. };
  81406. N.PlaceholderSelector0.prototype = {
  81407. get$isInvisible: function() {
  81408. return true;
  81409. },
  81410. accept$1$1: function(visitor) {
  81411. var t1 = visitor._buffer;
  81412. t1.writeCharCode$1(37);
  81413. t1.write$1(0, this.name);
  81414. return null;
  81415. },
  81416. accept$1: function(visitor) {
  81417. return this.accept$1$1(visitor, type$.dynamic);
  81418. },
  81419. addSuffix$1: function(suffix) {
  81420. return new N.PlaceholderSelector0(this.name + suffix);
  81421. },
  81422. $eq: function(_, other) {
  81423. if (other == null)
  81424. return false;
  81425. return other instanceof N.PlaceholderSelector0 && other.name === this.name;
  81426. },
  81427. get$hashCode: function(_) {
  81428. return C.JSString_methods.get$hashCode(this.name);
  81429. }
  81430. };
  81431. L.PlainCssCallable0.prototype = {
  81432. $eq: function(_, other) {
  81433. if (other == null)
  81434. return false;
  81435. return other instanceof L.PlainCssCallable0 && this.name == other.name;
  81436. },
  81437. get$hashCode: function(_) {
  81438. return J.get$hashCode$(this.name);
  81439. },
  81440. $isAsyncCallable0: 1,
  81441. $isCallable0: 1,
  81442. get$name: function(receiver) {
  81443. return this.name;
  81444. }
  81445. };
  81446. F.PrefixedMapView0.prototype = {
  81447. get$keys: function(_) {
  81448. return new F._PrefixedKeys0(this);
  81449. },
  81450. get$length: function(_) {
  81451. var t1 = this._prefixed_map_view0$_map;
  81452. return t1.get$length(t1);
  81453. },
  81454. get$isEmpty: function(_) {
  81455. var t1 = this._prefixed_map_view0$_map;
  81456. return t1.get$isEmpty(t1);
  81457. },
  81458. get$isNotEmpty: function(_) {
  81459. var t1 = this._prefixed_map_view0$_map;
  81460. return t1.get$isNotEmpty(t1);
  81461. },
  81462. $index: function(_, key) {
  81463. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) ? this._prefixed_map_view0$_map.$index(0, J.substring$1$s(key, this._prefixed_map_view0$_prefix.length)) : null;
  81464. },
  81465. containsKey$1: function(key) {
  81466. return typeof key == "string" && C.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) && this._prefixed_map_view0$_map.containsKey$1(J.substring$1$s(key, this._prefixed_map_view0$_prefix.length));
  81467. }
  81468. };
  81469. F._PrefixedKeys0.prototype = {
  81470. get$length: function(_) {
  81471. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  81472. return t1.get$length(t1);
  81473. },
  81474. get$iterator: function(_) {
  81475. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  81476. t1 = J.map$1$1$ax(t1.get$keys(t1), new F._PrefixedKeys_iterator_closure0(this), type$.legacy_String);
  81477. return t1.get$iterator(t1);
  81478. },
  81479. contains$1: function(_, key) {
  81480. return this._prefixed_map_view0$_view.containsKey$1(key);
  81481. }
  81482. };
  81483. F._PrefixedKeys_iterator_closure0.prototype = {
  81484. call$1: function(key) {
  81485. return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + H.S(key);
  81486. },
  81487. $signature: 6
  81488. };
  81489. D.PseudoSelector0.prototype = {
  81490. get$minSpecificity: function() {
  81491. if (this._pseudo0$_minSpecificity == null)
  81492. this._pseudo0$_computeSpecificity$0();
  81493. return this._pseudo0$_minSpecificity;
  81494. },
  81495. get$maxSpecificity: function() {
  81496. if (this._pseudo0$_maxSpecificity == null)
  81497. this._pseudo0$_computeSpecificity$0();
  81498. return this._pseudo0$_maxSpecificity;
  81499. },
  81500. get$isInvisible: function() {
  81501. var t1 = this.selector;
  81502. if (t1 == null)
  81503. return false;
  81504. return this.name !== "not" && t1.get$isInvisible();
  81505. },
  81506. addSuffix$1: function(suffix) {
  81507. var _this = this;
  81508. if (_this.argument != null || _this.selector != null)
  81509. _this.super$SimpleSelector$addSuffix0(suffix);
  81510. return D.PseudoSelector$0(_this.name + suffix, null, !_this.isClass, null);
  81511. },
  81512. unify$1: function(compound) {
  81513. var result, t1, t2, addedThis, _i, simple, _this = this;
  81514. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  81515. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2));
  81516. if (C.JSArray_methods.contains$1(compound, _this))
  81517. return compound;
  81518. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  81519. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  81520. simple = compound[_i];
  81521. if (simple instanceof D.PseudoSelector0 && !simple.isClass) {
  81522. if (t2)
  81523. return null;
  81524. result.push(_this);
  81525. addedThis = true;
  81526. }
  81527. result.push(simple);
  81528. }
  81529. if (!addedThis)
  81530. result.push(_this);
  81531. return result;
  81532. },
  81533. _pseudo0$_computeSpecificity$0: function() {
  81534. var t1, _i, t2, complex, t3, t4, _this = this;
  81535. if (!_this.isClass) {
  81536. _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 1;
  81537. return;
  81538. }
  81539. t1 = _this.selector;
  81540. if (t1 == null) {
  81541. _this._pseudo0$_minSpecificity = M.SimpleSelector0.prototype.get$minSpecificity.call(_this);
  81542. _this._pseudo0$_maxSpecificity = M.SimpleSelector0.prototype.get$maxSpecificity.call(_this);
  81543. return;
  81544. }
  81545. if (_this.name === "not") {
  81546. _i = _this._pseudo0$_maxSpecificity = _this._pseudo0$_minSpecificity = 0;
  81547. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  81548. complex = t1[_i];
  81549. t3 = _this._pseudo0$_minSpecificity;
  81550. if (complex._complex0$_minSpecificity == null)
  81551. complex._complex0$_computeSpecificity$0();
  81552. t4 = complex._complex0$_minSpecificity;
  81553. _this._pseudo0$_minSpecificity = Math.max(H.checkNum(t3), H.checkNum(t4));
  81554. t4 = _this._pseudo0$_maxSpecificity;
  81555. if (complex._complex0$_maxSpecificity == null)
  81556. complex._complex0$_computeSpecificity$0();
  81557. t3 = complex._complex0$_maxSpecificity;
  81558. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  81559. }
  81560. } else {
  81561. _this._pseudo0$_minSpecificity = H._asIntS(Math.pow(M.SimpleSelector0.prototype.get$minSpecificity.call(_this), 3));
  81562. _i = _this._pseudo0$_maxSpecificity = 0;
  81563. for (t1 = t1.components, t2 = t1.length; _i < t2; ++_i) {
  81564. complex = t1[_i];
  81565. t3 = _this._pseudo0$_minSpecificity;
  81566. if (complex._complex0$_minSpecificity == null)
  81567. complex._complex0$_computeSpecificity$0();
  81568. t4 = complex._complex0$_minSpecificity;
  81569. _this._pseudo0$_minSpecificity = Math.min(H.checkNum(t3), H.checkNum(t4));
  81570. t4 = _this._pseudo0$_maxSpecificity;
  81571. if (complex._complex0$_maxSpecificity == null)
  81572. complex._complex0$_computeSpecificity$0();
  81573. t3 = complex._complex0$_maxSpecificity;
  81574. _this._pseudo0$_maxSpecificity = Math.max(H.checkNum(t4), H.checkNum(t3));
  81575. }
  81576. }
  81577. },
  81578. accept$1$1: function(visitor) {
  81579. return visitor.visitPseudoSelector$1(this);
  81580. },
  81581. accept$1: function(visitor) {
  81582. return this.accept$1$1(visitor, type$.dynamic);
  81583. },
  81584. $eq: function(_, other) {
  81585. var _this = this;
  81586. if (other == null)
  81587. return false;
  81588. return other instanceof D.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  81589. },
  81590. get$hashCode: function(_) {
  81591. var _this = this;
  81592. return (C.JSString_methods.get$hashCode(_this.name) ^ C.JSBool_methods.get$hashCode(!_this.isClass) ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector)) >>> 0;
  81593. }
  81594. };
  81595. U.PublicMemberMapView0.prototype = {
  81596. get$keys: function(_) {
  81597. var t1 = this._public_member_map_view$_inner;
  81598. return J.where$1$ax(t1.get$keys(t1), B.utils0__isPublic$closure());
  81599. },
  81600. containsKey$1: function(key) {
  81601. return typeof key == "string" && B.isPublic0(key) && this._public_member_map_view$_inner.containsKey$1(key);
  81602. },
  81603. $index: function(_, key) {
  81604. if (typeof key == "string" && B.isPublic0(key))
  81605. return this._public_member_map_view$_inner.$index(0, key);
  81606. return null;
  81607. }
  81608. };
  81609. D.QualifiedName0.prototype = {
  81610. $eq: function(_, other) {
  81611. if (other == null)
  81612. return false;
  81613. return other instanceof D.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
  81614. },
  81615. get$hashCode: function(_) {
  81616. return C.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  81617. },
  81618. toString$0: function(_) {
  81619. var t1 = this.namespace,
  81620. t2 = this.name;
  81621. return t1 == null ? t2 : t1 + "|" + t2;
  81622. }
  81623. };
  81624. Z.RenderContext.prototype = {};
  81625. L.RenderContextOptions.prototype = {};
  81626. R.RenderOptions.prototype = {};
  81627. U.RenderResult.prototype = {};
  81628. U.RenderResultStats.prototype = {};
  81629. E.ImporterResult0.prototype = {
  81630. get$sourceMapUrl: function() {
  81631. return this._result$_sourceMapUrl;
  81632. }
  81633. };
  81634. B.ReturnRule0.prototype = {
  81635. accept$1$1: function(visitor) {
  81636. return visitor.visitReturnRule$1(this);
  81637. },
  81638. accept$1: function(visitor) {
  81639. return this.accept$1$1(visitor, type$.dynamic);
  81640. },
  81641. toString$0: function(_) {
  81642. return "@return " + H.S(this.expression) + ";";
  81643. },
  81644. $isAstNode0: 1,
  81645. $isStatement0: 1,
  81646. get$span: function() {
  81647. return this.span;
  81648. }
  81649. };
  81650. U.main_printError.prototype = {
  81651. call$2: function(error, stackTrace) {
  81652. var t1 = this._box_0;
  81653. if (t1.printedError)
  81654. $.$get$stderr().writeln$0();
  81655. t1.printedError = true;
  81656. t1 = $.$get$stderr();
  81657. t1.writeln$1(error);
  81658. if (stackTrace != null) {
  81659. t1.writeln$0();
  81660. t1.writeln$1(C.JSString_methods.trimRight$0(Y.Trace_Trace$from(stackTrace).get$terse().toString$0(0)));
  81661. }
  81662. },
  81663. $signature: 421
  81664. };
  81665. U.main_closure.prototype = {
  81666. call$0: function() {
  81667. var t1, exception;
  81668. try {
  81669. t1 = this.destination;
  81670. if (t1 != null && !this._box_0.options.get$emitErrorCss())
  81671. B.deleteFile(t1);
  81672. } catch (exception) {
  81673. if (!(H.unwrapException(exception) instanceof B.FileSystemException))
  81674. throw exception;
  81675. }
  81676. },
  81677. $signature: 0
  81678. };
  81679. U.SassParser0.prototype = {
  81680. get$currentIndentation: function() {
  81681. return this._sass0$_currentIndentation;
  81682. },
  81683. get$indented: function() {
  81684. return true;
  81685. },
  81686. styleRuleSelector$0: function() {
  81687. var t4,
  81688. t1 = this.scanner,
  81689. t2 = t1._string_scanner$_position,
  81690. t3 = new P.StringBuffer(""),
  81691. buffer = new Z.InterpolationBuffer0(t3, []);
  81692. do {
  81693. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  81694. t4 = t3._contents += H.Primitives_stringFromCharCode(10);
  81695. } while (C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(T.character0__isNewline$closure()));
  81696. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  81697. },
  81698. expectStatementSeparator$1: function($name) {
  81699. var _this = this;
  81700. if (!_this.atEndOfStatement$0())
  81701. _this._sass0$_expectNewline$0();
  81702. if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
  81703. return;
  81704. _this.scanner.error$2$position(0, "Nothing may be indented " + ($name == null ? "here" : "beneath a " + $name) + ".", _this._sass0$_nextIndentationEnd.position);
  81705. },
  81706. expectStatementSeparator$0: function() {
  81707. return this.expectStatementSeparator$1(null);
  81708. },
  81709. atEndOfStatement$0: function() {
  81710. var next = this.scanner.peekChar$0();
  81711. return next == null || T.isNewline0(next);
  81712. },
  81713. lookingAtChildren$0: function() {
  81714. return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
  81715. },
  81716. importArgument$0: function() {
  81717. var url, span, innerError, start, next, t2, exception, _this = this,
  81718. t1 = _this.scanner;
  81719. switch (t1.peekChar$0()) {
  81720. case 117:
  81721. case 85:
  81722. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  81723. if (_this.scanIdentifier$1("url"))
  81724. if (t1.scanChar$1(40)) {
  81725. t1.set$state(start);
  81726. return _this.super$StylesheetParser$importArgument0();
  81727. } else
  81728. t1.set$state(start);
  81729. break;
  81730. case 39:
  81731. case 34:
  81732. return _this.super$StylesheetParser$importArgument0();
  81733. }
  81734. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  81735. next = t1.peekChar$0();
  81736. while (true) {
  81737. if (next != null)
  81738. if (next !== 44)
  81739. if (next !== 59)
  81740. t2 = !(next === 10 || next === 13 || next === 12);
  81741. else
  81742. t2 = false;
  81743. else
  81744. t2 = false;
  81745. else
  81746. t2 = false;
  81747. if (!t2)
  81748. break;
  81749. t1.readChar$0();
  81750. next = t1.peekChar$0();
  81751. }
  81752. url = t1.substring$1(0, start.position);
  81753. span = t1.spanFrom$1(start);
  81754. if (_this.isPlainImportUrl$1(url))
  81755. return new Q.StaticImport0(X.Interpolation$0(H.setRuntimeTypeInfo([N.serializeValue(new D.SassString0(url, true), true, true)], type$.JSArray_legacy_Object), span), null, null, span);
  81756. else
  81757. try {
  81758. t1 = _this.parseImportUrl$1(url);
  81759. return new B.DynamicImport0(t1, span);
  81760. } catch (exception) {
  81761. t1 = H.unwrapException(exception);
  81762. if (type$.legacy_FormatException._is(t1)) {
  81763. innerError = t1;
  81764. _this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), span);
  81765. } else
  81766. throw exception;
  81767. }
  81768. },
  81769. scanElse$1: function(ifIndentation) {
  81770. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  81771. if (_this._sass0$_peekIndentation$0() != ifIndentation)
  81772. return false;
  81773. t1 = _this.scanner;
  81774. t2 = t1._string_scanner$_position;
  81775. startIndentation = _this._sass0$_currentIndentation;
  81776. startNextIndentation = _this._sass0$_nextIndentation;
  81777. startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
  81778. _this._sass0$_readIndentation$0();
  81779. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  81780. return true;
  81781. t1.set$state(new S._SpanScannerState(t1, t2));
  81782. _this._sass0$_currentIndentation = startIndentation;
  81783. _this._sass0$_nextIndentation = startNextIndentation;
  81784. _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
  81785. return false;
  81786. },
  81787. children$1: function(_, child) {
  81788. var children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  81789. this._sass0$_whileIndentedLower$1(new U.SassParser_children_closure0(this, children, child));
  81790. return children;
  81791. },
  81792. statements$1: function(statement) {
  81793. var statements, t2, child,
  81794. t1 = this.scanner,
  81795. first = t1.peekChar$0();
  81796. if (first === 9 || first === 32)
  81797. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  81798. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  81799. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  81800. child = this._sass0$_child$1(statement);
  81801. if (child != null)
  81802. statements.push(child);
  81803. this._sass0$_readIndentation$0();
  81804. }
  81805. return statements;
  81806. },
  81807. _sass0$_child$1: function(child) {
  81808. var _this = this,
  81809. t1 = _this.scanner;
  81810. switch (t1.peekChar$0()) {
  81811. case 13:
  81812. case 10:
  81813. case 12:
  81814. return null;
  81815. case 36:
  81816. return _this.variableDeclarationWithoutNamespace$0();
  81817. case 47:
  81818. switch (t1.peekChar$1(1)) {
  81819. case 47:
  81820. return _this._sass0$_silentComment$0();
  81821. case 42:
  81822. return _this._sass0$_loudComment$0();
  81823. default:
  81824. return child.call$0();
  81825. }
  81826. default:
  81827. return child.call$0();
  81828. }
  81829. },
  81830. _sass0$_silentComment$0: function() {
  81831. var buffer, parentIndentation, t3, commentPrefix, i, t4, i0, t5, t6, _this = this,
  81832. t1 = _this.scanner,
  81833. t2 = t1._string_scanner$_position;
  81834. t1.expect$1("//");
  81835. buffer = new P.StringBuffer("");
  81836. parentIndentation = _this._sass0$_currentIndentation;
  81837. t3 = t1.string;
  81838. $label0$0:
  81839. do {
  81840. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  81841. for (i = commentPrefix.length; true;) {
  81842. t4 = buffer._contents += commentPrefix;
  81843. for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
  81844. t4 += H.Primitives_stringFromCharCode(32);
  81845. buffer._contents = t4;
  81846. }
  81847. t5 = t3.length;
  81848. while (true) {
  81849. if (t1._string_scanner$_position !== t5) {
  81850. t6 = t1.peekChar$0();
  81851. t6 = !(t6 === 10 || t6 === 13 || t6 === 12);
  81852. } else
  81853. t6 = false;
  81854. if (!t6)
  81855. break;
  81856. t4 += H.Primitives_stringFromCharCode(t1.readChar$0());
  81857. buffer._contents = t4;
  81858. }
  81859. buffer._contents = t4 + "\n";
  81860. if (_this._sass0$_peekIndentation$0() < parentIndentation)
  81861. break $label0$0;
  81862. if (_this._sass0$_peekIndentation$0() === parentIndentation) {
  81863. if (t1.peekChar$1(1 + parentIndentation) === 47 && t1.peekChar$1(2 + parentIndentation) === 47)
  81864. _this._sass0$_readIndentation$0();
  81865. break;
  81866. }
  81867. _this._sass0$_readIndentation$0();
  81868. }
  81869. } while (t1.scan$1("//"));
  81870. t3 = buffer._contents;
  81871. return _this.lastSilentComment = new B.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  81872. },
  81873. _sass0$_loudComment$0: function() {
  81874. var t3, t4, buffer, parentIndentation, t5, first, beginningOfComment, t6, end, i, t7, _this = this,
  81875. t1 = _this.scanner,
  81876. t2 = t1._string_scanner$_position;
  81877. t1.expect$1("/*");
  81878. t3 = new P.StringBuffer("");
  81879. t4 = [];
  81880. buffer = new Z.InterpolationBuffer0(t3, t4);
  81881. t3._contents = "/*";
  81882. parentIndentation = _this._sass0$_currentIndentation;
  81883. for (t5 = t1.string, first = true; true; first = false) {
  81884. if (first) {
  81885. beginningOfComment = t1._string_scanner$_position;
  81886. _this.spaces$0();
  81887. t6 = t1.peekChar$0();
  81888. if (t6 === 10 || t6 === 13 || t6 === 12) {
  81889. _this._sass0$_readIndentation$0();
  81890. t3._contents += H.Primitives_stringFromCharCode(32);
  81891. } else {
  81892. end = t1._string_scanner$_position;
  81893. t3._contents += J.substring$2$s(t5, beginningOfComment, end);
  81894. }
  81895. } else {
  81896. t6 = t3._contents += "\n";
  81897. t3._contents = t6 + " * ";
  81898. }
  81899. for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i)
  81900. t3._contents += H.Primitives_stringFromCharCode(32);
  81901. $label0$1:
  81902. for (t6 = t5.length; t1._string_scanner$_position !== t6;)
  81903. switch (t1.peekChar$0()) {
  81904. case 10:
  81905. case 13:
  81906. case 12:
  81907. break $label0$1;
  81908. case 35:
  81909. if (t1.peekChar$1(1) === 123) {
  81910. t7 = _this.singleInterpolation$0();
  81911. buffer._interpolation_buffer0$_flushText$0();
  81912. t4.push(t7);
  81913. } else
  81914. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81915. break;
  81916. default:
  81917. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  81918. break;
  81919. }
  81920. if (_this._sass0$_peekIndentation$0() <= parentIndentation)
  81921. break;
  81922. for (; _this._sass0$_lookingAtDoubleNewline$0();) {
  81923. _this._sass0$_expectNewline$0();
  81924. t6 = t3._contents += "\n";
  81925. t3._contents = t6 + " *";
  81926. }
  81927. _this._sass0$_readIndentation$0();
  81928. }
  81929. t4 = t3._contents;
  81930. if (!C.JSString_methods.endsWith$1(C.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
  81931. t3._contents += " */";
  81932. return new L.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))));
  81933. },
  81934. whitespaceWithoutComments$0: function() {
  81935. var t1, t2, next;
  81936. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  81937. next = t1.peekChar$0();
  81938. if (next !== 9 && next !== 32)
  81939. break;
  81940. t1.readChar$0();
  81941. }
  81942. },
  81943. loudComment$0: function() {
  81944. var next,
  81945. t1 = this.scanner;
  81946. t1.expect$1("/*");
  81947. for (; true;) {
  81948. next = t1.readChar$0();
  81949. if (next === 10 || next === 13 || next === 12)
  81950. t1.error$1(0, "expected */.");
  81951. if (next !== 42)
  81952. continue;
  81953. do
  81954. next = t1.readChar$0();
  81955. while (next === 42);
  81956. if (next === 47)
  81957. break;
  81958. }
  81959. },
  81960. _sass0$_expectNewline$0: function() {
  81961. var t1 = this.scanner;
  81962. switch (t1.peekChar$0()) {
  81963. case 59:
  81964. t1.error$1(0, string$.semico);
  81965. break;
  81966. case 13:
  81967. t1.readChar$0();
  81968. if (t1.peekChar$0() === 10)
  81969. t1.readChar$0();
  81970. return;
  81971. case 10:
  81972. case 12:
  81973. t1.readChar$0();
  81974. return;
  81975. default:
  81976. t1.error$1(0, "expected newline.");
  81977. }
  81978. },
  81979. _sass0$_lookingAtDoubleNewline$0: function() {
  81980. var nextChar,
  81981. t1 = this.scanner;
  81982. switch (t1.peekChar$0()) {
  81983. case 13:
  81984. nextChar = t1.peekChar$1(1);
  81985. if (nextChar === 10)
  81986. return T.isNewline0(t1.peekChar$1(2));
  81987. return nextChar === 13 || nextChar === 12;
  81988. case 10:
  81989. case 12:
  81990. return T.isNewline0(t1.peekChar$1(1));
  81991. default:
  81992. return false;
  81993. }
  81994. },
  81995. _sass0$_whileIndentedLower$1: function(body) {
  81996. var t1, t2, childIndentation, indentation, t3, t4, t5, _this = this,
  81997. parentIndentation = _this._sass0$_currentIndentation;
  81998. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
  81999. indentation = _this._sass0$_readIndentation$0();
  82000. if (childIndentation == null)
  82001. childIndentation = indentation;
  82002. if (childIndentation != indentation) {
  82003. t3 = "Inconsistent indentation, expected " + H.S(childIndentation) + " spaces.";
  82004. t4 = t1._string_scanner$_position;
  82005. t5 = t2.getColumn$1(t4);
  82006. t1.error$3$length$position(0, t3, t2.getColumn$1(t1._string_scanner$_position), t4 - t5);
  82007. }
  82008. body.call$0();
  82009. }
  82010. },
  82011. _sass0$_readIndentation$0: function() {
  82012. var _this = this;
  82013. if (_this._sass0$_nextIndentation == null)
  82014. _this._sass0$_peekIndentation$0();
  82015. _this._sass0$_currentIndentation = _this._sass0$_nextIndentation;
  82016. _this.scanner.set$state(_this._sass0$_nextIndentationEnd);
  82017. _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
  82018. return _this._sass0$_currentIndentation;
  82019. },
  82020. _sass0$_peekIndentation$0: function() {
  82021. var t2, t3, start, containsTab, containsSpace, next, t4, _this = this,
  82022. t1 = _this._sass0$_nextIndentation;
  82023. if (t1 != null)
  82024. return t1;
  82025. t1 = _this.scanner;
  82026. t2 = t1._string_scanner$_position;
  82027. t3 = t1.string.length;
  82028. if (t2 === t3) {
  82029. _this._sass0$_nextIndentation = 0;
  82030. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  82031. return 0;
  82032. }
  82033. start = new S._SpanScannerState(t1, t2);
  82034. if (!_this.scanCharIf$1(T.character0__isNewline$closure()))
  82035. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  82036. do {
  82037. _this._sass0$_nextIndentation = 0;
  82038. for (containsTab = false, containsSpace = false; true;) {
  82039. next = t1.peekChar$0();
  82040. if (next === 32)
  82041. containsSpace = true;
  82042. else {
  82043. if (next !== 9)
  82044. break;
  82045. containsTab = true;
  82046. }
  82047. _this._sass0$_nextIndentation = _this._sass0$_nextIndentation + 1;
  82048. t1.readChar$0();
  82049. }
  82050. t2 = t1._string_scanner$_position;
  82051. if (t2 === t3) {
  82052. _this._sass0$_nextIndentation = 0;
  82053. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t2);
  82054. t1.set$state(start);
  82055. return 0;
  82056. }
  82057. } while (_this.scanCharIf$1(T.character0__isNewline$closure()));
  82058. if (containsTab) {
  82059. if (containsSpace) {
  82060. t2 = t1._string_scanner$_position;
  82061. t3 = t1._sourceFile;
  82062. t4 = t3.getColumn$1(t2);
  82063. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  82064. } else if (_this._sass0$_spaces === true) {
  82065. t2 = t1._string_scanner$_position;
  82066. t3 = t1._sourceFile;
  82067. t4 = t3.getColumn$1(t2);
  82068. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  82069. }
  82070. } else if (containsSpace && _this._sass0$_spaces === false) {
  82071. t2 = t1._string_scanner$_position;
  82072. t3 = t1._sourceFile;
  82073. t4 = t3.getColumn$1(t2);
  82074. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  82075. }
  82076. if (_this._sass0$_nextIndentation > 0)
  82077. if (_this._sass0$_spaces == null)
  82078. _this._sass0$_spaces = containsSpace;
  82079. _this._sass0$_nextIndentationEnd = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82080. t1.set$state(start);
  82081. return _this._sass0$_nextIndentation;
  82082. }
  82083. };
  82084. U.SassParser_children_closure0.prototype = {
  82085. call$0: function() {
  82086. this.children.push(this.$this._sass0$_child$1(this.child));
  82087. },
  82088. $signature: 0
  82089. };
  82090. R._Exports.prototype = {};
  82091. R._wrapMain_closure.prototype = {
  82092. call$1: function(_) {
  82093. return R._translateReturnValue(this.main.call$0());
  82094. },
  82095. $signature: 144
  82096. };
  82097. R._wrapMain_closure0.prototype = {
  82098. call$1: function(args) {
  82099. return R._translateReturnValue(this.main.call$1(P.List_List$from(type$.legacy_List_legacy_Object._as(args), true, type$.legacy_String)));
  82100. },
  82101. $signature: 144
  82102. };
  82103. L.ScssParser0.prototype = {
  82104. get$indented: function() {
  82105. return false;
  82106. },
  82107. get$currentIndentation: function() {
  82108. return null;
  82109. },
  82110. styleRuleSelector$0: function() {
  82111. return this.almostAnyValue$0();
  82112. },
  82113. expectStatementSeparator$1: function($name) {
  82114. var t1, next;
  82115. this.whitespaceWithoutComments$0();
  82116. t1 = this.scanner;
  82117. if (t1._string_scanner$_position === t1.string.length)
  82118. return;
  82119. next = t1.peekChar$0();
  82120. if (next === 59 || next === 125)
  82121. return;
  82122. t1.expectChar$1(59);
  82123. },
  82124. expectStatementSeparator$0: function() {
  82125. return this.expectStatementSeparator$1(null);
  82126. },
  82127. atEndOfStatement$0: function() {
  82128. var next = this.scanner.peekChar$0();
  82129. return next == null || next === 59 || next === 125 || next === 123;
  82130. },
  82131. lookingAtChildren$0: function() {
  82132. return this.scanner.peekChar$0() === 123;
  82133. },
  82134. scanElse$1: function(_) {
  82135. var t3, _this = this,
  82136. t1 = _this.scanner,
  82137. t2 = t1._string_scanner$_position;
  82138. _this.whitespace$0();
  82139. t3 = t1._string_scanner$_position;
  82140. if (t1.scanChar$1(64)) {
  82141. if (_this.scanIdentifier$2$caseSensitive("else", true))
  82142. return true;
  82143. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  82144. _this.logger.warn$3$deprecation$span(0, string$.x40elsei, true, t1.spanFrom$1(new S._SpanScannerState(t1, t3)));
  82145. t1.set$position(t1._string_scanner$_position - 2);
  82146. return true;
  82147. }
  82148. }
  82149. t1.set$state(new S._SpanScannerState(t1, t2));
  82150. return false;
  82151. },
  82152. children$1: function(_, child) {
  82153. var children, _this = this,
  82154. t1 = _this.scanner;
  82155. t1.expectChar$1(123);
  82156. _this.whitespaceWithoutComments$0();
  82157. children = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  82158. for (; true;)
  82159. switch (t1.peekChar$0()) {
  82160. case 36:
  82161. children.push(_this.variableDeclarationWithoutNamespace$0());
  82162. break;
  82163. case 47:
  82164. switch (t1.peekChar$1(1)) {
  82165. case 47:
  82166. children.push(_this._scss0$_silentComment$0());
  82167. _this.whitespaceWithoutComments$0();
  82168. break;
  82169. case 42:
  82170. children.push(_this._scss0$_loudComment$0());
  82171. _this.whitespaceWithoutComments$0();
  82172. break;
  82173. default:
  82174. children.push(child.call$0());
  82175. break;
  82176. }
  82177. break;
  82178. case 59:
  82179. t1.readChar$0();
  82180. _this.whitespaceWithoutComments$0();
  82181. break;
  82182. case 125:
  82183. t1.expectChar$1(125);
  82184. return children;
  82185. default:
  82186. children.push(child.call$0());
  82187. break;
  82188. }
  82189. },
  82190. statements$1: function(statement) {
  82191. var t1, t2, child, _this = this,
  82192. statements = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Statement_2);
  82193. _this.whitespaceWithoutComments$0();
  82194. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  82195. switch (t1.peekChar$0()) {
  82196. case 36:
  82197. statements.push(_this.variableDeclarationWithoutNamespace$0());
  82198. break;
  82199. case 47:
  82200. switch (t1.peekChar$1(1)) {
  82201. case 47:
  82202. statements.push(_this._scss0$_silentComment$0());
  82203. _this.whitespaceWithoutComments$0();
  82204. break;
  82205. case 42:
  82206. statements.push(_this._scss0$_loudComment$0());
  82207. _this.whitespaceWithoutComments$0();
  82208. break;
  82209. default:
  82210. child = statement.call$0();
  82211. if (child != null)
  82212. statements.push(child);
  82213. break;
  82214. }
  82215. break;
  82216. case 59:
  82217. t1.readChar$0();
  82218. _this.whitespaceWithoutComments$0();
  82219. break;
  82220. default:
  82221. child = statement.call$0();
  82222. if (child != null)
  82223. statements.push(child);
  82224. break;
  82225. }
  82226. return statements;
  82227. },
  82228. _scss0$_silentComment$0: function() {
  82229. var t2, t3, _this = this,
  82230. t1 = _this.scanner,
  82231. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82232. t1.expect$1("//");
  82233. t2 = t1.string.length;
  82234. do {
  82235. while (true) {
  82236. if (t1._string_scanner$_position !== t2) {
  82237. t3 = t1.readChar$0();
  82238. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  82239. } else
  82240. t3 = false;
  82241. if (!t3)
  82242. break;
  82243. }
  82244. if (t1._string_scanner$_position === t2)
  82245. break;
  82246. _this.whitespaceWithoutComments$0();
  82247. } while (t1.scan$1("//"));
  82248. if (_this.get$plainCss())
  82249. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  82250. return _this.lastSilentComment = new B.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  82251. },
  82252. _scss0$_loudComment$0: function() {
  82253. var t3, t4, buffer, t5, endPosition,
  82254. t1 = this.scanner,
  82255. t2 = t1._string_scanner$_position;
  82256. t1.expect$1("/*");
  82257. t3 = new P.StringBuffer("");
  82258. t4 = [];
  82259. buffer = new Z.InterpolationBuffer0(t3, t4);
  82260. t3._contents = "/*";
  82261. for (; true;)
  82262. switch (t1.peekChar$0()) {
  82263. case 35:
  82264. if (t1.peekChar$1(1) === 123) {
  82265. t5 = this.singleInterpolation$0();
  82266. buffer._interpolation_buffer0$_flushText$0();
  82267. t4.push(t5);
  82268. } else
  82269. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  82270. break;
  82271. case 42:
  82272. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  82273. if (t1.peekChar$0() !== 47)
  82274. break;
  82275. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  82276. endPosition = t1._string_scanner$_position;
  82277. t3 = t1._sourceFile;
  82278. t4 = new S._SpanScannerState(t1, t2).position;
  82279. t1 = new Y._FileSpan(t3, t4, endPosition);
  82280. t1._FileSpan$3(t3, t4, endPosition);
  82281. return new L.LoudComment0(buffer.interpolation$1(t1));
  82282. case 13:
  82283. t1.readChar$0();
  82284. if (t1.peekChar$0() !== 10)
  82285. t3._contents += H.Primitives_stringFromCharCode(10);
  82286. break;
  82287. case 12:
  82288. t1.readChar$0();
  82289. t3._contents += H.Primitives_stringFromCharCode(10);
  82290. break;
  82291. default:
  82292. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  82293. break;
  82294. }
  82295. }
  82296. };
  82297. T.Selector0.prototype = {
  82298. get$isInvisible: function() {
  82299. return false;
  82300. },
  82301. toString$0: function(_) {
  82302. var visitor = N._SerializeVisitor$(null, true, null, true, false, null, true);
  82303. this.accept$1(visitor);
  82304. return visitor._buffer.toString$0(0);
  82305. }
  82306. };
  82307. T.SelectorExpression0.prototype = {
  82308. accept$1$1: function(visitor) {
  82309. return visitor.visitSelectorExpression$1(this);
  82310. },
  82311. accept$1: function(visitor) {
  82312. return this.accept$1$1(visitor, type$.dynamic);
  82313. },
  82314. toString$0: function(_) {
  82315. return "&";
  82316. },
  82317. $isExpression0: 1,
  82318. $isAstNode0: 1,
  82319. get$span: function() {
  82320. return this.span;
  82321. }
  82322. };
  82323. T.closure128.prototype = {
  82324. call$1: function($arguments) {
  82325. var t1 = {},
  82326. selectors = J.$index$asx($arguments, 0).get$asList();
  82327. if (selectors.length === 0)
  82328. throw H.wrapException(E.SassScriptException$0(string$.x24selec));
  82329. t1.first = true;
  82330. return new H.MappedListIterable(selectors, new T._closure16(t1), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0*>")).reduce$1(0, new T._closure17()).get$asSassList();
  82331. },
  82332. $signature: 27
  82333. };
  82334. T._closure16.prototype = {
  82335. call$1: function(selector) {
  82336. var t1 = this._box_0,
  82337. result = selector.assertSelector$1$allowParent(!t1.first);
  82338. t1.first = false;
  82339. return result;
  82340. },
  82341. $signature: 126
  82342. };
  82343. T._closure17.prototype = {
  82344. call$2: function($parent, child) {
  82345. return child.resolveParentSelectors$1($parent);
  82346. },
  82347. $signature: 213
  82348. };
  82349. T.closure127.prototype = {
  82350. call$1: function($arguments) {
  82351. var selectors = J.$index$asx($arguments, 0).get$asList();
  82352. if (selectors.length === 0)
  82353. throw H.wrapException(E.SassScriptException$0(string$.x24selec));
  82354. return new H.MappedListIterable(selectors, new T._closure14(), H._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0*>")).reduce$1(0, new T._closure15()).get$asSassList();
  82355. },
  82356. $signature: 27
  82357. };
  82358. T._closure14.prototype = {
  82359. call$1: function(selector) {
  82360. return selector.assertSelector$0();
  82361. },
  82362. $signature: 126
  82363. };
  82364. T._closure15.prototype = {
  82365. call$2: function($parent, child) {
  82366. var t1 = child.components;
  82367. return D.SelectorList$0(new H.MappedListIterable(t1, new T.__closure0($parent), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0*>"))).resolveParentSelectors$1($parent);
  82368. },
  82369. $signature: 213
  82370. };
  82371. T.__closure0.prototype = {
  82372. call$1: function(complex) {
  82373. var newCompound, t2, cur,
  82374. t1 = complex.components,
  82375. compound = C.JSArray_methods.get$first(t1);
  82376. if (compound instanceof X.CompoundSelector0) {
  82377. newCompound = T._prependParent0(compound);
  82378. if (newCompound == null)
  82379. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  82380. t2 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  82381. t2.push(newCompound);
  82382. for (t1 = H.SubListIterable$(t1, 1, null, H._arrayInstanceType(t1)._precomputed1), t1 = new H.ListIterator(t1, t1.get$length(t1)); t1.moveNext$0();) {
  82383. cur = t1.__internal$_current;
  82384. t2.push(cur);
  82385. }
  82386. return S.ComplexSelector$0(t2, false);
  82387. } else
  82388. throw H.wrapException(E.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + H.S(this.parent) + "."));
  82389. },
  82390. $signature: 98
  82391. };
  82392. T.closure126.prototype = {
  82393. call$1: function($arguments) {
  82394. var t1 = J.getInterceptor$asx($arguments),
  82395. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  82396. target = t1.$index($arguments, 1).assertSelector$1$name("extendee");
  82397. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("extender"), target, C.ExtendMode_allTargets0).get$asSassList();
  82398. },
  82399. $signature: 27
  82400. };
  82401. T.closure125.prototype = {
  82402. call$1: function($arguments) {
  82403. var t1 = J.getInterceptor$asx($arguments),
  82404. selector = t1.$index($arguments, 0).assertSelector$1$name("selector"),
  82405. target = t1.$index($arguments, 1).assertSelector$1$name("original");
  82406. return F.Extender__extendOrReplace0(selector, t1.$index($arguments, 2).assertSelector$1$name("replacement"), target, C.ExtendMode_replace0).get$asSassList();
  82407. },
  82408. $signature: 27
  82409. };
  82410. T.closure124.prototype = {
  82411. call$1: function($arguments) {
  82412. var t1 = J.getInterceptor$asx($arguments),
  82413. result = t1.$index($arguments, 0).assertSelector$1$name("selector1").unify$1(t1.$index($arguments, 1).assertSelector$1$name("selector2"));
  82414. return result == null ? C.C_SassNull : result.get$asSassList();
  82415. },
  82416. $signature: 3
  82417. };
  82418. T.closure131.prototype = {
  82419. call$1: function($arguments) {
  82420. var t1 = J.getInterceptor$asx($arguments),
  82421. selector1 = t1.$index($arguments, 0).assertSelector$1$name("super"),
  82422. selector2 = t1.$index($arguments, 1).assertSelector$1$name("sub");
  82423. return Y.listIsSuperselector0(selector1.components, selector2.components) ? C.SassBoolean_true : C.SassBoolean_false;
  82424. },
  82425. $signature: 20
  82426. };
  82427. T.closure130.prototype = {
  82428. call$1: function($arguments) {
  82429. var t1 = J.$index$asx($arguments, 0).assertCompoundSelector$1$name("selector").components;
  82430. return D.SassList$0(new H.MappedListIterable(t1, new T._closure18(), H._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0*>")), C.ListSeparator_comma0, false);
  82431. },
  82432. $signature: 27
  82433. };
  82434. T._closure18.prototype = {
  82435. call$1: function(simple) {
  82436. return new D.SassString0(J.toString$0$(simple), false);
  82437. },
  82438. $signature: 425
  82439. };
  82440. T.closure129.prototype = {
  82441. call$1: function($arguments) {
  82442. return J.$index$asx($arguments, 0).assertSelector$1$name("selector").get$asSassList();
  82443. },
  82444. $signature: 27
  82445. };
  82446. T.SelectorParser0.prototype = {
  82447. parse$0: function() {
  82448. return this.wrapSpanFormatException$1(new T.SelectorParser_parse_closure0(this));
  82449. },
  82450. parseCompoundSelector$0: function() {
  82451. return this.wrapSpanFormatException$1(new T.SelectorParser_parseCompoundSelector_closure0(this));
  82452. },
  82453. _selector$_selectorList$0: function() {
  82454. var t3, t4, lineBreak, _this = this,
  82455. t1 = _this.scanner,
  82456. t2 = t1._sourceFile,
  82457. previousLine = t2.getLine$1(t1._string_scanner$_position),
  82458. components = H.setRuntimeTypeInfo([_this._selector$_complexSelector$0()], type$.JSArray_legacy_ComplexSelector_2);
  82459. _this.whitespace$0();
  82460. for (t3 = t1.string; t1.scanChar$1(44);) {
  82461. _this.whitespace$0();
  82462. if (t1.peekChar$0() === 44)
  82463. continue;
  82464. t4 = t1._string_scanner$_position;
  82465. if (t4 === t3.length)
  82466. break;
  82467. lineBreak = t2.getLine$1(t4) != previousLine;
  82468. if (lineBreak)
  82469. previousLine = t2.getLine$1(t1._string_scanner$_position);
  82470. components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
  82471. }
  82472. return D.SelectorList$0(components);
  82473. },
  82474. _selector$_complexSelector$1$lineBreak: function(lineBreak) {
  82475. var t1, next, _this = this,
  82476. _s58_ = string$.x22x26__ma,
  82477. components = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ComplexSelectorComponent_2);
  82478. $label0$1:
  82479. for (t1 = _this.scanner; true;) {
  82480. _this.whitespace$0();
  82481. next = t1.peekChar$0();
  82482. switch (next) {
  82483. case 43:
  82484. t1.readChar$0();
  82485. components.push(C.Combinator_uzg0);
  82486. break;
  82487. case 62:
  82488. t1.readChar$0();
  82489. components.push(C.Combinator_sgq0);
  82490. break;
  82491. case 126:
  82492. t1.readChar$0();
  82493. components.push(C.Combinator_CzM0);
  82494. break;
  82495. case 91:
  82496. case 46:
  82497. case 35:
  82498. case 37:
  82499. case 58:
  82500. case 38:
  82501. case 42:
  82502. case 124:
  82503. components.push(_this._selector$_compoundSelector$0());
  82504. if (t1.peekChar$0() === 38)
  82505. t1.error$1(0, _s58_);
  82506. break;
  82507. default:
  82508. if (next == null || !_this.lookingAtIdentifier$0())
  82509. break $label0$1;
  82510. components.push(_this._selector$_compoundSelector$0());
  82511. if (t1.peekChar$0() === 38)
  82512. t1.error$1(0, _s58_);
  82513. break;
  82514. }
  82515. }
  82516. if (components.length === 0)
  82517. t1.error$1(0, "expected selector.");
  82518. return S.ComplexSelector$0(components, lineBreak);
  82519. },
  82520. _selector$_complexSelector$0: function() {
  82521. return this._selector$_complexSelector$1$lineBreak(false);
  82522. },
  82523. _selector$_compoundSelector$0: function() {
  82524. var t2,
  82525. components = H.setRuntimeTypeInfo([this._selector$_simpleSelector$0()], type$.JSArray_legacy_SimpleSelector_2),
  82526. t1 = this.scanner;
  82527. while (true) {
  82528. t2 = t1.peekChar$0();
  82529. if (!(t2 === 42 || t2 === 91 || t2 === 46 || t2 === 35 || t2 === 37 || t2 === 58))
  82530. break;
  82531. components.push(this._selector$_simpleSelector$1$allowParent(false));
  82532. }
  82533. return X.CompoundSelector$0(components);
  82534. },
  82535. _selector$_simpleSelector$1$allowParent: function(allowParent) {
  82536. var $name, text, t2, suffix, _this = this,
  82537. t1 = _this.scanner,
  82538. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  82539. if (allowParent == null)
  82540. allowParent = _this._selector$_allowParent;
  82541. switch (t1.peekChar$0()) {
  82542. case 91:
  82543. return _this._selector$_attributeSelector$0();
  82544. case 46:
  82545. t1.expectChar$1(46);
  82546. return new X.ClassSelector0(_this.identifier$0());
  82547. case 35:
  82548. t1.expectChar$1(35);
  82549. return new N.IDSelector0(_this.identifier$0());
  82550. case 37:
  82551. t1.expectChar$1(37);
  82552. $name = _this.identifier$0();
  82553. if (!_this._selector$_allowPlaceholder)
  82554. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  82555. return new N.PlaceholderSelector0($name);
  82556. case 58:
  82557. return _this._selector$_pseudoSelector$0();
  82558. case 38:
  82559. t1.expectChar$1(38);
  82560. if (_this.lookingAtIdentifierBody$0()) {
  82561. text = new P.StringBuffer("");
  82562. _this._parser$_identifierBody$1(text);
  82563. if (text._contents.length === 0)
  82564. t1.error$1(0, "Expected identifier body.");
  82565. t2 = text._contents;
  82566. suffix = t2.charCodeAt(0) == 0 ? t2 : t2;
  82567. } else
  82568. suffix = null;
  82569. if (!allowParent)
  82570. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  82571. return new M.ParentSelector0(suffix);
  82572. default:
  82573. return _this._selector$_typeOrUniversalSelector$0();
  82574. }
  82575. },
  82576. _selector$_simpleSelector$0: function() {
  82577. return this._selector$_simpleSelector$1$allowParent(null);
  82578. },
  82579. _selector$_attributeSelector$0: function() {
  82580. var $name, operator, next, value, modifier, _this = this, _null = null,
  82581. t1 = _this.scanner;
  82582. t1.expectChar$1(91);
  82583. _this.whitespace$0();
  82584. $name = _this._selector$_attributeName$0();
  82585. _this.whitespace$0();
  82586. if (t1.scanChar$1(93))
  82587. return new N.AttributeSelector0($name, _null, _null, _null);
  82588. operator = _this._selector$_attributeOperator$0();
  82589. _this.whitespace$0();
  82590. next = t1.peekChar$0();
  82591. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  82592. _this.whitespace$0();
  82593. modifier = T.isAlphabetic1(t1.peekChar$0()) ? H.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  82594. t1.expectChar$1(93);
  82595. return new N.AttributeSelector0($name, operator, value, modifier);
  82596. },
  82597. _selector$_attributeName$0: function() {
  82598. var nameOrNamespace, _this = this,
  82599. t1 = _this.scanner;
  82600. if (t1.scanChar$1(42)) {
  82601. t1.expectChar$1(124);
  82602. return new D.QualifiedName0(_this.identifier$0(), "*");
  82603. }
  82604. nameOrNamespace = _this.identifier$0();
  82605. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  82606. return new D.QualifiedName0(nameOrNamespace, null);
  82607. t1.readChar$0();
  82608. return new D.QualifiedName0(_this.identifier$0(), nameOrNamespace);
  82609. },
  82610. _selector$_attributeOperator$0: function() {
  82611. var t1 = this.scanner,
  82612. t2 = t1._string_scanner$_position;
  82613. switch (t1.readChar$0()) {
  82614. case 61:
  82615. return C.AttributeOperator_sEs0;
  82616. case 126:
  82617. t1.expectChar$1(61);
  82618. return C.AttributeOperator_fz10;
  82619. case 124:
  82620. t1.expectChar$1(61);
  82621. return C.AttributeOperator_AuK0;
  82622. case 94:
  82623. t1.expectChar$1(61);
  82624. return C.AttributeOperator_4L50;
  82625. case 36:
  82626. t1.expectChar$1(61);
  82627. return C.AttributeOperator_mOX0;
  82628. case 42:
  82629. t1.expectChar$1(61);
  82630. return C.AttributeOperator_gqZ0;
  82631. default:
  82632. t1.error$2$position(0, 'Expected "]".', t2);
  82633. }
  82634. },
  82635. _selector$_pseudoSelector$0: function() {
  82636. var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
  82637. t1 = _this.scanner;
  82638. t1.expectChar$1(58);
  82639. element = t1.scanChar$1(58);
  82640. $name = _this.identifier$0();
  82641. if (!t1.scanChar$1(40))
  82642. return D.PseudoSelector$0($name, _null, element, _null);
  82643. _this.whitespace$0();
  82644. unvendored = B.unvendor0($name);
  82645. if (element)
  82646. if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
  82647. selector = _this._selector$_selectorList$0();
  82648. argument = _null;
  82649. } else {
  82650. argument = _this.declarationValue$1$allowEmpty(true);
  82651. selector = _null;
  82652. }
  82653. else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
  82654. selector = _this._selector$_selectorList$0();
  82655. argument = _null;
  82656. } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  82657. argument = _this._selector$_aNPlusB$0();
  82658. _this.whitespace$0();
  82659. t2 = t1.peekChar$1(-1);
  82660. if ((t2 === 32 || t2 === 9 || T.isNewline0(t2)) && t1.peekChar$0() !== 41) {
  82661. _this.expectIdentifier$1("of");
  82662. argument += " of";
  82663. _this.whitespace$0();
  82664. selector = _this._selector$_selectorList$0();
  82665. } else
  82666. selector = _null;
  82667. } else {
  82668. argument = C.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  82669. selector = _null;
  82670. }
  82671. t1.expectChar$1(41);
  82672. return D.PseudoSelector$0($name, argument, element, selector);
  82673. },
  82674. _selector$_aNPlusB$0: function() {
  82675. var t2, first, t3, next, last, _this = this,
  82676. t1 = _this.scanner;
  82677. switch (t1.peekChar$0()) {
  82678. case 101:
  82679. case 69:
  82680. _this.expectIdentifier$1("even");
  82681. return "even";
  82682. case 111:
  82683. case 79:
  82684. _this.expectIdentifier$1("odd");
  82685. return "odd";
  82686. case 43:
  82687. case 45:
  82688. t2 = H.Primitives_stringFromCharCode(t1.readChar$0());
  82689. break;
  82690. default:
  82691. t2 = "";
  82692. }
  82693. first = t1.peekChar$0();
  82694. if (first != null && T.isDigit0(first)) {
  82695. while (true) {
  82696. t3 = t1.peekChar$0();
  82697. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  82698. break;
  82699. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  82700. }
  82701. _this.whitespace$0();
  82702. if (!_this.scanIdentChar$1(110))
  82703. return t2.charCodeAt(0) == 0 ? t2 : t2;
  82704. } else
  82705. _this.expectIdentChar$1(110);
  82706. t2 += H.Primitives_stringFromCharCode(110);
  82707. _this.whitespace$0();
  82708. next = t1.peekChar$0();
  82709. if (next !== 43 && next !== 45)
  82710. return t2.charCodeAt(0) == 0 ? t2 : t2;
  82711. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  82712. _this.whitespace$0();
  82713. last = t1.peekChar$0();
  82714. if (last == null || !T.isDigit0(last))
  82715. t1.error$1(0, "Expected a number.");
  82716. while (true) {
  82717. t3 = t1.peekChar$0();
  82718. if (!(t3 != null && t3 >= 48 && t3 <= 57))
  82719. break;
  82720. t2 += H.Primitives_stringFromCharCode(t1.readChar$0());
  82721. }
  82722. return t2.charCodeAt(0) == 0 ? t2 : t2;
  82723. },
  82724. _selector$_typeOrUniversalSelector$0: function() {
  82725. var nameOrNamespace, _this = this,
  82726. t1 = _this.scanner,
  82727. first = t1.peekChar$0();
  82728. if (first === 42) {
  82729. t1.readChar$0();
  82730. if (!t1.scanChar$1(124))
  82731. return new N.UniversalSelector0(null);
  82732. if (t1.scanChar$1(42))
  82733. return new N.UniversalSelector0("*");
  82734. else
  82735. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), "*"));
  82736. } else if (first === 124) {
  82737. t1.readChar$0();
  82738. if (t1.scanChar$1(42))
  82739. return new N.UniversalSelector0("");
  82740. else
  82741. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), ""));
  82742. }
  82743. nameOrNamespace = _this.identifier$0();
  82744. if (!t1.scanChar$1(124))
  82745. return new F.TypeSelector0(new D.QualifiedName0(nameOrNamespace, null));
  82746. else if (t1.scanChar$1(42))
  82747. return new N.UniversalSelector0(nameOrNamespace);
  82748. else
  82749. return new F.TypeSelector0(new D.QualifiedName0(_this.identifier$0(), nameOrNamespace));
  82750. }
  82751. };
  82752. T.SelectorParser_parse_closure0.prototype = {
  82753. call$0: function() {
  82754. var t1 = this.$this,
  82755. selector = t1._selector$_selectorList$0();
  82756. t1 = t1.scanner;
  82757. if (t1._string_scanner$_position !== t1.string.length)
  82758. t1.error$1(0, "expected selector.");
  82759. return selector;
  82760. },
  82761. $signature: 44
  82762. };
  82763. T.SelectorParser_parseCompoundSelector_closure0.prototype = {
  82764. call$0: function() {
  82765. var t1 = this.$this,
  82766. compound = t1._selector$_compoundSelector$0();
  82767. t1 = t1.scanner;
  82768. if (t1._string_scanner$_position !== t1.string.length)
  82769. t1.error$1(0, "expected selector.");
  82770. return compound;
  82771. },
  82772. $signature: 426
  82773. };
  82774. N.serialize_closure0.prototype = {
  82775. call$1: function(codeUnit) {
  82776. return codeUnit > 127;
  82777. },
  82778. $signature: 24
  82779. };
  82780. N._SerializeVisitor.prototype = {
  82781. visitCssStylesheet$1: function(node) {
  82782. var t1, t2, t3, t4, t5, previous, i, child, _this = this;
  82783. for (t1 = _this._serialize0$_style !== C.OutputStyle_compressed0, t2 = type$.legacy_CssComment_2, t3 = type$.legacy_CssParentNode_2, t4 = _this._buffer, t5 = _this._lineFeed.text, previous = null, i = 0; i < J.get$length$asx(node.get$children(node)); ++i) {
  82784. child = J.$index$asx(node.get$children(node), i);
  82785. if (_this._serialize0$_isInvisible$1(child))
  82786. continue;
  82787. if (previous != null) {
  82788. if (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous))
  82789. t4.writeCharCode$1(59);
  82790. if (t1)
  82791. t4.write$1(0, t5);
  82792. if (previous.get$isGroupEnd())
  82793. if (t1)
  82794. t4.write$1(0, t5);
  82795. }
  82796. child.accept$1(_this);
  82797. previous = child;
  82798. }
  82799. if (previous != null)
  82800. t1 = (t3._is(previous) ? previous.get$isChildless() : !t2._is(previous)) && t1;
  82801. else
  82802. t1 = false;
  82803. if (t1)
  82804. t4.writeCharCode$1(59);
  82805. },
  82806. visitCssComment$1: function(node) {
  82807. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssComment_closure0(this, node));
  82808. },
  82809. visitCssAtRule$1: function(node) {
  82810. var t1, _this = this;
  82811. _this._serialize0$_writeIndentation$0();
  82812. t1 = _this._buffer;
  82813. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssAtRule_closure0(_this, node));
  82814. if (!node.isChildless) {
  82815. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82816. t1.writeCharCode$1(32);
  82817. _this._serialize0$_visitChildren$1(node.children);
  82818. }
  82819. },
  82820. visitCssMediaRule$1: function(node) {
  82821. var t1, _this = this;
  82822. _this._serialize0$_writeIndentation$0();
  82823. t1 = _this._buffer;
  82824. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
  82825. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82826. t1.writeCharCode$1(32);
  82827. _this._serialize0$_visitChildren$1(node.children);
  82828. },
  82829. visitCssImport$1: function(node) {
  82830. this._serialize0$_writeIndentation$0();
  82831. this._buffer.forSpan$2(node.span, new N._SerializeVisitor_visitCssImport_closure0(this, node));
  82832. },
  82833. _serialize0$_writeImportUrl$1: function(url) {
  82834. var urlContents, maybeQuote, _this = this;
  82835. if (_this._serialize0$_style !== C.OutputStyle_compressed0 || J._codeUnitAt$1$s(url, 0) !== 117) {
  82836. _this._buffer.write$1(0, url);
  82837. return;
  82838. }
  82839. urlContents = J.substring$2$s(url, 4, url.length - 1);
  82840. maybeQuote = C.JSString_methods._codeUnitAt$1(urlContents, 0);
  82841. if (maybeQuote === 39 || maybeQuote === 34)
  82842. _this._buffer.write$1(0, urlContents);
  82843. else
  82844. _this._serialize0$_visitQuotedString$1(urlContents);
  82845. },
  82846. visitCssKeyframeBlock$1: function(node) {
  82847. var t1, _this = this;
  82848. _this._serialize0$_writeIndentation$0();
  82849. t1 = _this._buffer;
  82850. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
  82851. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82852. t1.writeCharCode$1(32);
  82853. _this._serialize0$_visitChildren$1(node.children);
  82854. },
  82855. _serialize0$_visitMediaQuery$1: function(query) {
  82856. var t2, t3, _this = this,
  82857. t1 = query.modifier;
  82858. if (t1 != null) {
  82859. t2 = _this._buffer;
  82860. t2.write$1(0, t1);
  82861. t2.writeCharCode$1(32);
  82862. }
  82863. t1 = query.type;
  82864. if (t1 != null) {
  82865. t2 = _this._buffer;
  82866. t2.write$1(0, t1);
  82867. if (query.features.length !== 0)
  82868. t2.write$1(0, " and ");
  82869. }
  82870. t1 = query.features;
  82871. t2 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "and " : " and ";
  82872. t3 = _this._buffer;
  82873. _this._serialize0$_writeBetween$3(t1, t2, t3.get$write(t3));
  82874. },
  82875. visitCssStyleRule$1: function(node) {
  82876. var t1, _this = this;
  82877. _this._serialize0$_writeIndentation$0();
  82878. t1 = _this._buffer;
  82879. t1.forSpan$2(node.selector.span, new N._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
  82880. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82881. t1.writeCharCode$1(32);
  82882. _this._serialize0$_visitChildren$1(node.children);
  82883. },
  82884. visitCssSupportsRule$1: function(node) {
  82885. var t1, _this = this;
  82886. _this._serialize0$_writeIndentation$0();
  82887. t1 = _this._buffer;
  82888. t1.forSpan$2(node.span, new N._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
  82889. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82890. t1.writeCharCode$1(32);
  82891. _this._serialize0$_visitChildren$1(node.children);
  82892. },
  82893. visitCssDeclaration$1: function(node) {
  82894. var error, error0, t1, t2, exception, _this = this;
  82895. _this._serialize0$_writeIndentation$0();
  82896. t1 = node.name;
  82897. _this._serialize0$_write$1(t1);
  82898. t2 = _this._buffer;
  82899. t2.writeCharCode$1(58);
  82900. if (J.startsWith$1$s(t1.get$value(t1), "--") && node.parsedAsCustomProperty)
  82901. t2.forSpan$2(node.value.span, new N._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
  82902. else {
  82903. if (_this._serialize0$_style !== C.OutputStyle_compressed0)
  82904. t2.writeCharCode$1(32);
  82905. try {
  82906. t2.forSpan$2(node.valueSpanForMap, new N._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
  82907. } catch (exception) {
  82908. t1 = H.unwrapException(exception);
  82909. if (t1 instanceof E.MultiSpanSassScriptException0) {
  82910. error = t1;
  82911. throw H.wrapException(E.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans));
  82912. } else if (t1 instanceof E.SassScriptException0) {
  82913. error0 = t1;
  82914. throw H.wrapException(E.SassException$0(error0.message, node.value.span));
  82915. } else
  82916. throw exception;
  82917. }
  82918. }
  82919. },
  82920. _serialize0$_writeFoldedValue$1: function(node) {
  82921. var t1, t2, next, t3,
  82922. scanner = X.StringScanner$(type$.legacy_SassString_2._as(node.value.value).text, null, null);
  82923. for (t1 = scanner.string.length, t2 = this._buffer; scanner._string_scanner$_position !== t1;) {
  82924. next = scanner.readChar$0();
  82925. if (next !== 10) {
  82926. t2.writeCharCode$1(next);
  82927. continue;
  82928. }
  82929. t2.writeCharCode$1(32);
  82930. while (true) {
  82931. t3 = scanner.peekChar$0();
  82932. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  82933. break;
  82934. scanner.readChar$0();
  82935. }
  82936. }
  82937. },
  82938. _serialize0$_writeReindentedValue$1: function(node) {
  82939. var _this = this,
  82940. t1 = node.value,
  82941. value = type$.legacy_SassString_2._as(t1.value).text,
  82942. minimumIndentation = _this._serialize0$_minimumIndentation$1(value);
  82943. if (minimumIndentation == null) {
  82944. _this._buffer.write$1(0, value);
  82945. return;
  82946. } else if (minimumIndentation === -1) {
  82947. t1 = _this._buffer;
  82948. t1.write$1(0, B.trimAsciiRight0(value, true));
  82949. t1.writeCharCode$1(32);
  82950. return;
  82951. }
  82952. if (t1.span != null) {
  82953. t1 = node.name.get$span();
  82954. t1 = Y.FileLocation$_(t1.file, t1._file$_start);
  82955. minimumIndentation = Math.min(minimumIndentation, t1.file.getColumn$1(t1.offset));
  82956. }
  82957. _this._serialize0$_writeWithIndent$2(value, minimumIndentation);
  82958. },
  82959. _serialize0$_minimumIndentation$1: function(text) {
  82960. var character, t2, min, next, min0,
  82961. scanner = Z.LineScanner$(text),
  82962. t1 = scanner.string.length;
  82963. while (true) {
  82964. if (scanner._string_scanner$_position !== t1) {
  82965. character = scanner.super$StringScanner$readChar();
  82966. scanner._adjustLineAndColumn$1(character);
  82967. t2 = character !== 10;
  82968. } else
  82969. t2 = false;
  82970. if (!t2)
  82971. break;
  82972. }
  82973. if (scanner._string_scanner$_position === t1)
  82974. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  82975. for (min = null; scanner._string_scanner$_position !== t1;) {
  82976. for (; scanner._string_scanner$_position !== t1;) {
  82977. next = scanner.peekChar$0();
  82978. if (next !== 32 && next !== 9)
  82979. break;
  82980. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  82981. }
  82982. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  82983. continue;
  82984. min0 = scanner._line_scanner$_column;
  82985. min = min == null ? min0 : Math.min(min, min0);
  82986. while (true) {
  82987. if (scanner._string_scanner$_position !== t1) {
  82988. character = scanner.super$StringScanner$readChar();
  82989. scanner._adjustLineAndColumn$1(character);
  82990. t2 = character !== 10;
  82991. } else
  82992. t2 = false;
  82993. if (!t2)
  82994. break;
  82995. }
  82996. }
  82997. return min == null ? -1 : min;
  82998. },
  82999. _serialize0$_writeWithIndent$2: function(text, minimumIndentation) {
  83000. var t1, t2, t3, character, t4, lineStart, newlines, end,
  83001. scanner = Z.LineScanner$(text);
  83002. for (t1 = scanner.string, t2 = t1.length, t3 = this._buffer; scanner._string_scanner$_position !== t2;) {
  83003. character = scanner.super$StringScanner$readChar();
  83004. scanner._adjustLineAndColumn$1(character);
  83005. if (character === 10)
  83006. break;
  83007. t3.writeCharCode$1(character);
  83008. }
  83009. for (t4 = J.getInterceptor$s(t1); true;) {
  83010. lineStart = scanner._string_scanner$_position;
  83011. for (newlines = 1; true;) {
  83012. if (scanner._string_scanner$_position === t2) {
  83013. t3.writeCharCode$1(32);
  83014. return;
  83015. }
  83016. character = scanner.super$StringScanner$readChar();
  83017. scanner._adjustLineAndColumn$1(character);
  83018. if (character === 32 || character === 9)
  83019. continue;
  83020. if (character !== 10)
  83021. break;
  83022. lineStart = scanner._string_scanner$_position;
  83023. ++newlines;
  83024. }
  83025. this._serialize0$_writeTimes$2(10, newlines);
  83026. this._serialize0$_writeIndentation$0();
  83027. end = scanner._string_scanner$_position;
  83028. t3.write$1(0, t4.substring$2(t1, lineStart + minimumIndentation, end));
  83029. for (; true;) {
  83030. if (scanner._string_scanner$_position === t2)
  83031. return;
  83032. character = scanner.super$StringScanner$readChar();
  83033. scanner._adjustLineAndColumn$1(character);
  83034. if (character === 10)
  83035. break;
  83036. t3.writeCharCode$1(character);
  83037. }
  83038. }
  83039. },
  83040. visitColor$1: function(value) {
  83041. var $name, hexLength, t2, t3, _this = this,
  83042. t1 = _this._serialize0$_style === C.OutputStyle_compressed0;
  83043. if (t1 && Math.abs(value.alpha - 1) < $.$get$epsilon0()) {
  83044. $name = $.$get$namesByColor0().$index(0, value);
  83045. hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7;
  83046. if ($name != null && $name.length <= hexLength)
  83047. _this._buffer.write$1(0, $name);
  83048. else {
  83049. t1 = _this._buffer;
  83050. if (_this._serialize0$_canUseShortHex$1(value)) {
  83051. t1.writeCharCode$1(35);
  83052. t1.writeCharCode$1(T.hexCharFor0(value.get$red() & 15));
  83053. t1.writeCharCode$1(T.hexCharFor0(value.get$green() & 15));
  83054. t1.writeCharCode$1(T.hexCharFor0(value.get$blue() & 15));
  83055. } else {
  83056. t1.writeCharCode$1(35);
  83057. _this._serialize0$_writeHexComponent$1(value.get$red());
  83058. _this._serialize0$_writeHexComponent$1(value.get$green());
  83059. _this._serialize0$_writeHexComponent$1(value.get$blue());
  83060. }
  83061. }
  83062. return;
  83063. }
  83064. if (value.get$original() != null)
  83065. _this._buffer.write$1(0, value.get$original());
  83066. else {
  83067. t2 = $.$get$namesByColor0();
  83068. if (t2.containsKey$1(value) && !(Math.abs(value.alpha - 0) < $.$get$epsilon0()))
  83069. _this._buffer.write$1(0, t2.$index(0, value));
  83070. else {
  83071. t2 = value.alpha;
  83072. t3 = _this._buffer;
  83073. if (Math.abs(t2 - 1) < $.$get$epsilon0()) {
  83074. t3.writeCharCode$1(35);
  83075. _this._serialize0$_writeHexComponent$1(value.get$red());
  83076. _this._serialize0$_writeHexComponent$1(value.get$green());
  83077. _this._serialize0$_writeHexComponent$1(value.get$blue());
  83078. } else {
  83079. t3.write$1(0, "rgba(" + H.S(value.get$red()));
  83080. t3.write$1(0, t1 ? "," : ", ");
  83081. t3.write$1(0, value.get$green());
  83082. t3.write$1(0, t1 ? "," : ", ");
  83083. t3.write$1(0, value.get$blue());
  83084. t3.write$1(0, t1 ? "," : ", ");
  83085. _this._serialize0$_writeNumber$1(t2);
  83086. t3.writeCharCode$1(41);
  83087. }
  83088. }
  83089. }
  83090. },
  83091. _serialize0$_canUseShortHex$1: function(color) {
  83092. var t1 = color.get$red();
  83093. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  83094. t1 = color.get$green();
  83095. if ((t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4)) {
  83096. t1 = color.get$blue();
  83097. t1 = (t1 & 15) === C.JSInt_methods._shrOtherPositive$1(t1, 4);
  83098. } else
  83099. t1 = false;
  83100. } else
  83101. t1 = false;
  83102. return t1;
  83103. },
  83104. _serialize0$_writeHexComponent$1: function(color) {
  83105. var t1 = this._buffer;
  83106. t1.writeCharCode$1(T.hexCharFor0(C.JSInt_methods._shrOtherPositive$1(color, 4)));
  83107. t1.writeCharCode$1(T.hexCharFor0(color & 15));
  83108. },
  83109. visitList$1: function(value) {
  83110. var t2, singleton, t3, t4, _this = this,
  83111. t1 = value.hasBrackets;
  83112. if (t1)
  83113. _this._buffer.writeCharCode$1(91);
  83114. else if (value._list1$_contents.length === 0) {
  83115. if (!_this._inspect)
  83116. throw H.wrapException(E.SassScriptException$0("() isn't a valid CSS value."));
  83117. _this._buffer.write$1(0, "()");
  83118. return;
  83119. }
  83120. t2 = _this._inspect;
  83121. singleton = t2 && value._list1$_contents.length === 1 && value.separator === C.ListSeparator_comma0;
  83122. if (singleton && !t1)
  83123. _this._buffer.writeCharCode$1(40);
  83124. t3 = value._list1$_contents;
  83125. t3 = t2 ? t3 : new H.WhereIterable(t3, new N._SerializeVisitor_visitList_closure2(), H._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  83126. if (value.separator === C.ListSeparator_space0)
  83127. t4 = " ";
  83128. else
  83129. t4 = _this._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ";
  83130. _this._serialize0$_writeBetween$3(t3, t4, t2 ? new N._SerializeVisitor_visitList_closure3(_this, value) : new N._SerializeVisitor_visitList_closure4(_this));
  83131. if (singleton) {
  83132. t2 = _this._buffer;
  83133. t2.writeCharCode$1(44);
  83134. if (!t1)
  83135. t2.writeCharCode$1(41);
  83136. }
  83137. if (t1)
  83138. _this._buffer.writeCharCode$1(93);
  83139. },
  83140. _serialize0$_elementNeedsParens$2: function(separator, value) {
  83141. var t1;
  83142. if (value instanceof D.SassList0) {
  83143. if (value._list1$_contents.length < 2)
  83144. return false;
  83145. if (value.hasBrackets)
  83146. return false;
  83147. t1 = value.separator;
  83148. return separator === C.ListSeparator_comma0 ? t1 === C.ListSeparator_comma0 : t1 !== C.ListSeparator_undecided0;
  83149. }
  83150. return false;
  83151. },
  83152. visitMap$1: function(map) {
  83153. var t1, t2, _this = this;
  83154. if (!_this._inspect)
  83155. throw H.wrapException(E.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value."));
  83156. t1 = _this._buffer;
  83157. t1.writeCharCode$1(40);
  83158. t2 = map.contents;
  83159. _this._serialize0$_writeBetween$3(t2.get$keys(t2), ", ", new N._SerializeVisitor_visitMap_closure0(_this, map));
  83160. t1.writeCharCode$1(41);
  83161. },
  83162. _serialize0$_writeMapElement$1: function(value) {
  83163. var needsParens = value instanceof D.SassList0 && value.separator === C.ListSeparator_comma0 && !value.hasBrackets;
  83164. if (needsParens)
  83165. this._buffer.writeCharCode$1(40);
  83166. value.accept$1(this);
  83167. if (needsParens)
  83168. this._buffer.writeCharCode$1(41);
  83169. },
  83170. visitNumber$1: function(value) {
  83171. var t2, _this = this,
  83172. t1 = value.asSlash;
  83173. if (t1 != null) {
  83174. _this.visitNumber$1(t1.item1);
  83175. _this._buffer.writeCharCode$1(47);
  83176. _this.visitNumber$1(t1.item2);
  83177. return;
  83178. }
  83179. _this._serialize0$_writeNumber$1(value.value);
  83180. if (!_this._inspect) {
  83181. t1 = value.numeratorUnits;
  83182. t2 = t1.length;
  83183. if (t2 > 1 || value.denominatorUnits.length !== 0)
  83184. throw H.wrapException(E.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value."));
  83185. if (t2 !== 0)
  83186. _this._buffer.write$1(0, C.JSArray_methods.get$first(t1));
  83187. } else
  83188. _this._buffer.write$1(0, value.get$unitString());
  83189. },
  83190. _serialize0$_writeNumber$1: function(number) {
  83191. var t1, text, text0, _this = this,
  83192. integer = T.fuzzyIsInt0(number) ? J.round$0$n(number) : null;
  83193. if (integer != null) {
  83194. t1 = integer >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSInt_methods.toString$0(integer)) : C.JSInt_methods.toString$0(integer);
  83195. _this._buffer.write$1(0, t1);
  83196. return;
  83197. }
  83198. text = number >= 1e21 ? _this._serialize0$_removeExponent$1(C.JSNumber_methods.toString$0(number)) : C.JSNumber_methods.toString$0(number);
  83199. text0 = _this._serialize0$_style === C.OutputStyle_compressed0 && C.JSString_methods._codeUnitAt$1(text, 0) === 48 ? C.JSString_methods.substring$1(text, 1) : text;
  83200. if (text.length < 12) {
  83201. _this._buffer.write$1(0, text0);
  83202. return;
  83203. }
  83204. _this._serialize0$_writeDecimal$1(text0);
  83205. },
  83206. _serialize0$_removeExponent$1: function(text) {
  83207. var buffer, exponent, t2, additionalZeroes, negative,
  83208. t1 = text.length,
  83209. i = 0;
  83210. while (true) {
  83211. if (!(i < t1)) {
  83212. buffer = null;
  83213. exponent = null;
  83214. break;
  83215. }
  83216. c$0: {
  83217. if (C.JSString_methods._codeUnitAt$1(text, i) !== 101)
  83218. break c$0;
  83219. buffer = new P.StringBuffer("");
  83220. t2 = H.Primitives_stringFromCharCode(C.JSString_methods._codeUnitAt$1(text, 0));
  83221. buffer._contents = t2;
  83222. if (i > 2)
  83223. buffer._contents = t2 + C.JSString_methods.substring$2(text, 2, i);
  83224. exponent = P.int_parse(C.JSString_methods.substring$2(text, i + 1, t1), null);
  83225. break;
  83226. }
  83227. ++i;
  83228. }
  83229. if (buffer == null)
  83230. return text;
  83231. if (exponent > 0) {
  83232. t1 = buffer._contents;
  83233. additionalZeroes = exponent - (t1.length - 1);
  83234. for (i = 0; i < additionalZeroes; ++i)
  83235. t1 = buffer._contents += H.Primitives_stringFromCharCode(48);
  83236. return t1.charCodeAt(0) == 0 ? t1 : t1;
  83237. } else {
  83238. negative = C.JSString_methods._codeUnitAt$1(text, 0) === 45;
  83239. t1 = (negative ? H.Primitives_stringFromCharCode(45) : "") + "0.";
  83240. for (i = -1; i > exponent; --i)
  83241. t1 += H.Primitives_stringFromCharCode(48);
  83242. if (negative) {
  83243. t2 = buffer._contents;
  83244. t2 = C.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  83245. } else
  83246. t2 = buffer;
  83247. t2 = t1 + H.S(t2);
  83248. return t2.charCodeAt(0) == 0 ? t2 : t2;
  83249. }
  83250. },
  83251. _serialize0$_writeDecimal$1: function(text) {
  83252. var t1, t2, textIndex, codeUnit, digits, t3, digitsIndex, digitsIndex0, textIndex0, newDigit, i;
  83253. for (t1 = text.length, t2 = this._buffer, textIndex = 0; textIndex < t1; ++textIndex) {
  83254. codeUnit = C.JSString_methods._codeUnitAt$1(text, textIndex);
  83255. if (codeUnit === 46) {
  83256. if (textIndex === t1 - 2 && C.JSString_methods.codeUnitAt$1(text, t1 - 1) === 48)
  83257. return;
  83258. t2.writeCharCode$1(codeUnit);
  83259. ++textIndex;
  83260. break;
  83261. }
  83262. t2.writeCharCode$1(codeUnit);
  83263. }
  83264. if (textIndex === t1)
  83265. return;
  83266. digits = new Uint8Array(10);
  83267. t3 = digits.length;
  83268. digitsIndex = 0;
  83269. while (true) {
  83270. if (!(textIndex < t1 && digitsIndex < t3))
  83271. break;
  83272. digitsIndex0 = digitsIndex + 1;
  83273. textIndex0 = textIndex + 1;
  83274. digits[digitsIndex] = C.JSString_methods._codeUnitAt$1(text, textIndex) - 48;
  83275. digitsIndex = digitsIndex0;
  83276. textIndex = textIndex0;
  83277. }
  83278. if (textIndex !== t1 && C.JSString_methods._codeUnitAt$1(text, textIndex) - 48 >= 5)
  83279. for (; digitsIndex >= 0; digitsIndex = digitsIndex0) {
  83280. digitsIndex0 = digitsIndex - 1;
  83281. newDigit = digits[digitsIndex0] + 1;
  83282. digits[digitsIndex0] = newDigit;
  83283. if (newDigit !== 10)
  83284. break;
  83285. }
  83286. while (true) {
  83287. if (!(digitsIndex > 0 && digits[digitsIndex - 1] === 0))
  83288. break;
  83289. --digitsIndex;
  83290. }
  83291. for (i = 0; i < digitsIndex; ++i)
  83292. t2.writeCharCode$1(48 + digits[i]);
  83293. },
  83294. _serialize0$_visitQuotedString$2$forceDoubleQuote: function(string, forceDoubleQuote) {
  83295. var t1, includesSingleQuote, includesDoubleQuote, i, char, t2, next, quote, _this = this,
  83296. buffer = forceDoubleQuote ? _this._buffer : new P.StringBuffer("");
  83297. if (forceDoubleQuote)
  83298. buffer.writeCharCode$1(34);
  83299. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  83300. char = C.JSString_methods._codeUnitAt$1(string, i);
  83301. switch (char) {
  83302. case 39:
  83303. if (forceDoubleQuote)
  83304. buffer.writeCharCode$1(39);
  83305. else {
  83306. if (includesDoubleQuote) {
  83307. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  83308. return;
  83309. } else
  83310. buffer.writeCharCode$1(39);
  83311. includesSingleQuote = true;
  83312. }
  83313. break;
  83314. case 34:
  83315. if (forceDoubleQuote) {
  83316. buffer.writeCharCode$1(92);
  83317. buffer.writeCharCode$1(34);
  83318. } else {
  83319. if (includesSingleQuote) {
  83320. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  83321. return;
  83322. } else
  83323. buffer.writeCharCode$1(34);
  83324. includesDoubleQuote = true;
  83325. }
  83326. break;
  83327. case 0:
  83328. case 1:
  83329. case 2:
  83330. case 3:
  83331. case 4:
  83332. case 5:
  83333. case 6:
  83334. case 7:
  83335. case 8:
  83336. case 10:
  83337. case 11:
  83338. case 12:
  83339. case 13:
  83340. case 14:
  83341. case 15:
  83342. case 16:
  83343. case 17:
  83344. case 18:
  83345. case 19:
  83346. case 20:
  83347. case 21:
  83348. case 22:
  83349. case 23:
  83350. case 24:
  83351. case 25:
  83352. case 26:
  83353. case 27:
  83354. case 28:
  83355. case 29:
  83356. case 30:
  83357. case 31:
  83358. buffer.writeCharCode$1(92);
  83359. if (char > 15) {
  83360. t2 = char >>> 4;
  83361. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  83362. }
  83363. t2 = char & 15;
  83364. buffer.writeCharCode$1(t2 < 10 ? 48 + t2 : 87 + t2);
  83365. t2 = i + 1;
  83366. if (t1 === t2)
  83367. break;
  83368. next = C.JSString_methods._codeUnitAt$1(string, t2);
  83369. if (T.isHex0(next) || next === 32 || next === 9)
  83370. buffer.writeCharCode$1(32);
  83371. break;
  83372. case 92:
  83373. buffer.writeCharCode$1(92);
  83374. buffer.writeCharCode$1(92);
  83375. break;
  83376. default:
  83377. buffer.writeCharCode$1(char);
  83378. break;
  83379. }
  83380. }
  83381. if (forceDoubleQuote)
  83382. buffer.writeCharCode$1(34);
  83383. else {
  83384. quote = includesDoubleQuote ? 39 : 34;
  83385. t1 = _this._buffer;
  83386. t1.writeCharCode$1(quote);
  83387. t1.write$1(0, buffer);
  83388. t1.writeCharCode$1(quote);
  83389. }
  83390. },
  83391. _serialize0$_visitQuotedString$1: function(string) {
  83392. return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
  83393. },
  83394. _serialize0$_visitUnquotedString$1: function(string) {
  83395. var t1, t2, afterNewline, i, char;
  83396. for (t1 = string.length, t2 = this._buffer, afterNewline = false, i = 0; i < t1; ++i) {
  83397. char = C.JSString_methods._codeUnitAt$1(string, i);
  83398. switch (char) {
  83399. case 10:
  83400. t2.writeCharCode$1(32);
  83401. afterNewline = true;
  83402. break;
  83403. case 32:
  83404. if (!afterNewline)
  83405. t2.writeCharCode$1(32);
  83406. break;
  83407. default:
  83408. t2.writeCharCode$1(char);
  83409. afterNewline = false;
  83410. break;
  83411. }
  83412. }
  83413. },
  83414. visitComplexSelector$1: function(complex) {
  83415. var t1, t2, t3, t4, lastComponent, _i, component, t5;
  83416. for (t1 = complex.components, t2 = t1.length, t3 = this._buffer, t4 = this._serialize0$_style === C.OutputStyle_compressed0, lastComponent = null, _i = 0; _i < t2; ++_i, lastComponent = component) {
  83417. component = t1[_i];
  83418. if (lastComponent != null)
  83419. if (!(t4 && lastComponent instanceof S.Combinator0))
  83420. t5 = !(t4 && component instanceof S.Combinator0);
  83421. else
  83422. t5 = false;
  83423. else
  83424. t5 = false;
  83425. if (t5)
  83426. t3.write$1(0, " ");
  83427. if (component instanceof X.CompoundSelector0)
  83428. this.visitCompoundSelector$1(component);
  83429. else
  83430. t3.write$1(0, component);
  83431. }
  83432. },
  83433. visitCompoundSelector$1: function(compound) {
  83434. var t2, t3, _i,
  83435. t1 = this._buffer,
  83436. start = t1.get$length(t1);
  83437. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  83438. t2[_i].accept$1(this);
  83439. if (t1.get$length(t1) === start)
  83440. t1.writeCharCode$1(42);
  83441. },
  83442. visitSelectorList$1: function(list) {
  83443. var complexes, t1, t2, t3, t4, first, t5, _this = this;
  83444. if (_this._inspect)
  83445. complexes = list.components;
  83446. else {
  83447. t1 = list.components;
  83448. complexes = new H.WhereIterable(t1, new N._SerializeVisitor_visitSelectorList_closure0(), H._arrayInstanceType(t1)._eval$1("WhereIterable<1>"));
  83449. }
  83450. for (t1 = J.get$iterator$ax(complexes), t2 = _this._serialize0$_style !== C.OutputStyle_compressed0, t3 = _this._buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
  83451. t5 = t1.get$current(t1);
  83452. if (first)
  83453. first = false;
  83454. else {
  83455. t3.writeCharCode$1(44);
  83456. if (t5.lineBreak) {
  83457. if (t2)
  83458. t3.write$1(0, t4);
  83459. } else if (t2)
  83460. t3.writeCharCode$1(32);
  83461. }
  83462. _this.visitComplexSelector$1(t5);
  83463. }
  83464. },
  83465. visitPseudoSelector$1: function(pseudo) {
  83466. var t4, t5, t6,
  83467. t1 = pseudo.selector,
  83468. t2 = t1 == null,
  83469. t3 = !t2;
  83470. if (t3 && pseudo.name === "not" && t1.get$isInvisible())
  83471. return;
  83472. t4 = this._buffer;
  83473. t4.writeCharCode$1(58);
  83474. if (!pseudo.isSyntacticClass)
  83475. t4.writeCharCode$1(58);
  83476. t4.write$1(0, pseudo.name);
  83477. t5 = pseudo.argument;
  83478. t6 = t5 == null;
  83479. if (t6 && t2)
  83480. return;
  83481. t4.writeCharCode$1(40);
  83482. if (!t6) {
  83483. t4.write$1(0, t5);
  83484. if (t3)
  83485. t4.writeCharCode$1(32);
  83486. }
  83487. if (t3)
  83488. this.visitSelectorList$1(t1);
  83489. t4.writeCharCode$1(41);
  83490. },
  83491. _serialize0$_write$1: function(value) {
  83492. return this._buffer.forSpan$2(value.get$span(), new N._SerializeVisitor__write_closure0(this, value));
  83493. },
  83494. _serialize0$_visitChildren$1: function(children) {
  83495. var _this = this, t1 = {},
  83496. t2 = _this._buffer;
  83497. t2.writeCharCode$1(123);
  83498. if (children.every$1(children, _this.get$_serialize0$_isInvisible())) {
  83499. t2.writeCharCode$1(125);
  83500. return;
  83501. }
  83502. _this._serialize0$_writeLineFeed$0();
  83503. t1.previous = null;
  83504. ++_this._serialize0$_indentation;
  83505. new N._SerializeVisitor__visitChildren_closure0(t1, _this, children).call$0();
  83506. --_this._serialize0$_indentation;
  83507. t1 = t1.previous;
  83508. if ((type$.legacy_CssParentNode_2._is(t1) ? t1.get$isChildless() : !type$.legacy_CssComment_2._is(t1)) && _this._serialize0$_style !== C.OutputStyle_compressed0)
  83509. t2.writeCharCode$1(59);
  83510. _this._serialize0$_writeLineFeed$0();
  83511. _this._serialize0$_writeIndentation$0();
  83512. t2.writeCharCode$1(125);
  83513. },
  83514. _serialize0$_writeLineFeed$0: function() {
  83515. if (this._serialize0$_style !== C.OutputStyle_compressed0)
  83516. this._buffer.write$1(0, this._lineFeed.text);
  83517. },
  83518. _serialize0$_writeIndentation$0: function() {
  83519. var _this = this;
  83520. if (_this._serialize0$_style === C.OutputStyle_compressed0)
  83521. return;
  83522. _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
  83523. },
  83524. _serialize0$_writeTimes$2: function(char, times) {
  83525. var t1, i;
  83526. for (t1 = this._buffer, i = 0; i < times; ++i)
  83527. t1.writeCharCode$1(char);
  83528. },
  83529. _serialize0$_writeBetween$1$3: function(iterable, text, callback) {
  83530. var t1, t2, first, value;
  83531. for (t1 = J.get$iterator$ax(iterable), t2 = this._buffer, first = true; t1.moveNext$0();) {
  83532. value = t1.get$current(t1);
  83533. if (first)
  83534. first = false;
  83535. else
  83536. t2.write$1(0, text);
  83537. callback.call$1(value);
  83538. }
  83539. },
  83540. _serialize0$_writeBetween$3: function(iterable, text, callback) {
  83541. return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
  83542. },
  83543. _serialize0$_isInvisible$1: function(node) {
  83544. if (this._inspect)
  83545. return false;
  83546. if (this._serialize0$_style === C.OutputStyle_compressed0 && type$.legacy_CssComment_2._is(node) && J._codeUnitAt$1$s(node.text, 2) !== 33)
  83547. return true;
  83548. if (type$.legacy_CssParentNode_2._is(node)) {
  83549. if (type$.legacy_CssAtRule_2._is(node))
  83550. return false;
  83551. if (type$.legacy_CssStyleRule_2._is(node) && node.selector.value.get$isInvisible())
  83552. return true;
  83553. return J.every$1$ax(node.get$children(node), this.get$_serialize0$_isInvisible());
  83554. } else
  83555. return false;
  83556. }
  83557. };
  83558. N._SerializeVisitor_visitCssComment_closure0.prototype = {
  83559. call$0: function() {
  83560. var t2, t3, minimumIndentation,
  83561. t1 = this.$this;
  83562. if (t1._serialize0$_style === C.OutputStyle_compressed0 && J._codeUnitAt$1$s(this.node.text, 2) !== 33)
  83563. return;
  83564. t2 = this.node;
  83565. t3 = t2.text;
  83566. minimumIndentation = t1._serialize0$_minimumIndentation$1(t3);
  83567. if (minimumIndentation == null) {
  83568. t1._serialize0$_writeIndentation$0();
  83569. t1._buffer.write$1(0, t3);
  83570. return;
  83571. }
  83572. t2 = t2.span;
  83573. if (t2 != null) {
  83574. t2 = Y.FileLocation$_(t2.file, t2._file$_start);
  83575. minimumIndentation = Math.min(minimumIndentation, t2.file.getColumn$1(t2.offset));
  83576. }
  83577. t1._serialize0$_writeIndentation$0();
  83578. t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
  83579. },
  83580. $signature: 0
  83581. };
  83582. N._SerializeVisitor_visitCssAtRule_closure0.prototype = {
  83583. call$0: function() {
  83584. var t3,
  83585. t1 = this.$this,
  83586. t2 = t1._buffer;
  83587. t2.writeCharCode$1(64);
  83588. t3 = this.node;
  83589. t1._serialize0$_write$1(t3.name);
  83590. t3 = t3.value;
  83591. if (t3 != null) {
  83592. t2.writeCharCode$1(32);
  83593. t1._serialize0$_write$1(t3);
  83594. }
  83595. },
  83596. $signature: 0
  83597. };
  83598. N._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
  83599. call$0: function() {
  83600. var t3, t4,
  83601. t1 = this.$this,
  83602. t2 = t1._buffer;
  83603. t2.write$1(0, "@media");
  83604. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  83605. if (t3) {
  83606. t4 = C.JSArray_methods.get$first(this.node.queries);
  83607. t4 = !(t4.modifier == null && t4.type == null);
  83608. } else
  83609. t4 = true;
  83610. if (t4)
  83611. t2.writeCharCode$1(32);
  83612. t2 = t3 ? "," : ", ";
  83613. t1._serialize0$_writeBetween$3(this.node.queries, t2, t1.get$_serialize0$_visitMediaQuery());
  83614. },
  83615. $signature: 0
  83616. };
  83617. N._SerializeVisitor_visitCssImport_closure0.prototype = {
  83618. call$0: function() {
  83619. var t3, t4, t5, t6,
  83620. t1 = this.$this,
  83621. t2 = t1._buffer;
  83622. t2.write$1(0, "@import");
  83623. t3 = t1._serialize0$_style === C.OutputStyle_compressed0;
  83624. t4 = !t3;
  83625. if (t4)
  83626. t2.writeCharCode$1(32);
  83627. t5 = this.node;
  83628. t2.forSpan$2(t5.url.get$span(), new N._SerializeVisitor_visitCssImport__closure0(t1, t5));
  83629. t6 = t5.supports;
  83630. if (t6 != null) {
  83631. if (t4)
  83632. t2.writeCharCode$1(32);
  83633. t1._serialize0$_write$1(t6);
  83634. }
  83635. t5 = t5.media;
  83636. if (t5 != null) {
  83637. if (t4)
  83638. t2.writeCharCode$1(32);
  83639. t2 = t3 ? "," : ", ";
  83640. t1._serialize0$_writeBetween$3(t5, t2, t1.get$_serialize0$_visitMediaQuery());
  83641. }
  83642. },
  83643. $signature: 0
  83644. };
  83645. N._SerializeVisitor_visitCssImport__closure0.prototype = {
  83646. call$0: function() {
  83647. var t1 = this.node.url;
  83648. return this.$this._serialize0$_writeImportUrl$1(t1.get$value(t1));
  83649. },
  83650. $signature: 1
  83651. };
  83652. N._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
  83653. call$0: function() {
  83654. var t1 = this.$this,
  83655. t2 = t1._serialize0$_style === C.OutputStyle_compressed0 ? "," : ", ",
  83656. t3 = t1._buffer;
  83657. return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  83658. },
  83659. $signature: 1
  83660. };
  83661. N._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
  83662. call$0: function() {
  83663. var t1 = this.node.selector.value;
  83664. t1.toString;
  83665. return this.$this.visitSelectorList$1(t1);
  83666. },
  83667. $signature: 1
  83668. };
  83669. N._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
  83670. call$0: function() {
  83671. var t1 = this.$this,
  83672. t2 = t1._buffer;
  83673. t2.write$1(0, "@supports");
  83674. if (!(t1._serialize0$_style === C.OutputStyle_compressed0 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  83675. t2.writeCharCode$1(32);
  83676. t1._serialize0$_write$1(this.node.condition);
  83677. },
  83678. $signature: 0
  83679. };
  83680. N._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
  83681. call$0: function() {
  83682. var t1 = this.$this,
  83683. t2 = this.node;
  83684. if (t1._serialize0$_style === C.OutputStyle_compressed0)
  83685. t1._serialize0$_writeFoldedValue$1(t2);
  83686. else
  83687. t1._serialize0$_writeReindentedValue$1(t2);
  83688. },
  83689. $signature: 0
  83690. };
  83691. N._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
  83692. call$0: function() {
  83693. return this.node.value.value.accept$1(this.$this);
  83694. },
  83695. $signature: 1
  83696. };
  83697. N._SerializeVisitor_visitList_closure2.prototype = {
  83698. call$1: function(element) {
  83699. return !element.get$isBlank();
  83700. },
  83701. $signature: 55
  83702. };
  83703. N._SerializeVisitor_visitList_closure3.prototype = {
  83704. call$1: function(element) {
  83705. var t1 = this.$this,
  83706. needsParens = t1._serialize0$_elementNeedsParens$2(this.value.separator, element);
  83707. if (needsParens)
  83708. t1._buffer.writeCharCode$1(40);
  83709. element.accept$1(t1);
  83710. if (needsParens)
  83711. t1._buffer.writeCharCode$1(41);
  83712. },
  83713. $signature: 87
  83714. };
  83715. N._SerializeVisitor_visitList_closure4.prototype = {
  83716. call$1: function(element) {
  83717. element.accept$1(this.$this);
  83718. },
  83719. $signature: 87
  83720. };
  83721. N._SerializeVisitor_visitMap_closure0.prototype = {
  83722. call$1: function(key) {
  83723. var t1 = this.$this;
  83724. t1._serialize0$_writeMapElement$1(key);
  83725. t1._buffer.write$1(0, ": ");
  83726. t1._serialize0$_writeMapElement$1(this.map.contents.$index(0, key));
  83727. },
  83728. $signature: 87
  83729. };
  83730. N._SerializeVisitor_visitSelectorList_closure0.prototype = {
  83731. call$1: function(complex) {
  83732. return !complex.get$isInvisible();
  83733. },
  83734. $signature: 13
  83735. };
  83736. N._SerializeVisitor__write_closure0.prototype = {
  83737. call$0: function() {
  83738. var t1 = this.value;
  83739. return this.$this._buffer.write$1(0, t1.get$value(t1));
  83740. },
  83741. $signature: 1
  83742. };
  83743. N._SerializeVisitor__visitChildren_closure0.prototype = {
  83744. call$0: function() {
  83745. var t1, t2, t3, t4, t5, t6, t7, t8, i, child, t9;
  83746. for (t1 = this.children._collection$_source, t2 = J.getInterceptor$asx(t1), t3 = this._box_0, t4 = this.$this, t5 = type$.legacy_CssComment_2, t6 = type$.legacy_CssParentNode_2, t7 = t4._buffer, t8 = t4._lineFeed.text, i = 0; i < t2.get$length(t1); ++i) {
  83747. child = t2.elementAt$1(t1, i);
  83748. if (t4._serialize0$_isInvisible$1(child))
  83749. continue;
  83750. t9 = t3.previous;
  83751. if (t9 != null) {
  83752. if (t6._is(t9) ? t9.get$isChildless() : !t5._is(t9))
  83753. t7.writeCharCode$1(59);
  83754. t9 = t4._serialize0$_style !== C.OutputStyle_compressed0;
  83755. if (t9)
  83756. t7.write$1(0, t8);
  83757. if (t3.previous.get$isGroupEnd())
  83758. if (t9)
  83759. t7.write$1(0, t8);
  83760. }
  83761. t3.previous = child;
  83762. child.accept$1(t4);
  83763. }
  83764. },
  83765. $signature: 0
  83766. };
  83767. N.OutputStyle0.prototype = {
  83768. toString$0: function(_) {
  83769. return this._name;
  83770. }
  83771. };
  83772. N.LineFeed0.prototype = {
  83773. toString$0: function(_) {
  83774. return this.name;
  83775. }
  83776. };
  83777. N.SerializeResult0.prototype = {};
  83778. B.ShadowedModuleView0.prototype = {
  83779. get$url: function() {
  83780. return this._shadowed_view0$_inner.get$url();
  83781. },
  83782. get$upstream: function() {
  83783. return this._shadowed_view0$_inner.get$upstream();
  83784. },
  83785. get$extender: function() {
  83786. return this._shadowed_view0$_inner.get$extender();
  83787. },
  83788. get$css: function(_) {
  83789. var t1 = this._shadowed_view0$_inner;
  83790. return t1.get$css(t1);
  83791. },
  83792. get$transitivelyContainsCss: function() {
  83793. return this._shadowed_view0$_inner.get$transitivelyContainsCss();
  83794. },
  83795. get$transitivelyContainsExtensions: function() {
  83796. return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
  83797. },
  83798. setVariable$3: function($name, value, nodeWithSpan) {
  83799. if (!this.variables.containsKey$1($name))
  83800. throw H.wrapException(E.SassScriptException$0("Undefined variable."));
  83801. else
  83802. return this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  83803. },
  83804. variableIdentity$1: function($name) {
  83805. return this._shadowed_view0$_inner.variableIdentity$1($name);
  83806. },
  83807. $eq: function(_, other) {
  83808. var t1, t2, _this = this;
  83809. if (other == null)
  83810. return false;
  83811. if (other instanceof B.ShadowedModuleView0)
  83812. if (_this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner)) {
  83813. t1 = _this.variables;
  83814. t1 = t1.get$keys(t1);
  83815. t2 = other.variables;
  83816. if (C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  83817. t1 = _this.functions;
  83818. t1 = t1.get$keys(t1);
  83819. t2 = other.functions;
  83820. if (C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
  83821. t1 = _this.mixins;
  83822. t1 = t1.get$keys(t1);
  83823. t2 = other.mixins;
  83824. t2 = C.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  83825. t1 = t2;
  83826. } else
  83827. t1 = false;
  83828. } else
  83829. t1 = false;
  83830. } else
  83831. t1 = false;
  83832. else
  83833. t1 = false;
  83834. return t1;
  83835. },
  83836. get$hashCode: function(_) {
  83837. var t1 = this._shadowed_view0$_inner;
  83838. return t1.get$hashCode(t1);
  83839. },
  83840. cloneCss$0: function() {
  83841. var _this = this;
  83842. return new B.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti._eval$1("ShadowedModuleView0<1*>"));
  83843. },
  83844. toString$0: function(_) {
  83845. return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
  83846. },
  83847. $isModule0: 1,
  83848. get$variables: function() {
  83849. return this.variables;
  83850. },
  83851. get$variableNodes: function() {
  83852. return this.variableNodes;
  83853. },
  83854. get$functions: function(receiver) {
  83855. return this.functions;
  83856. },
  83857. get$mixins: function() {
  83858. return this.mixins;
  83859. }
  83860. };
  83861. B.SilentComment0.prototype = {
  83862. accept$1$1: function(visitor) {
  83863. return visitor.visitSilentComment$1(this);
  83864. },
  83865. accept$1: function(visitor) {
  83866. return this.accept$1$1(visitor, type$.dynamic);
  83867. },
  83868. toString$0: function(_) {
  83869. return this.text;
  83870. },
  83871. $isAstNode0: 1,
  83872. $isStatement0: 1,
  83873. get$span: function() {
  83874. return this.span;
  83875. }
  83876. };
  83877. M.SimpleSelector0.prototype = {
  83878. get$minSpecificity: function() {
  83879. return 1000;
  83880. },
  83881. get$maxSpecificity: function() {
  83882. return this.get$minSpecificity();
  83883. },
  83884. addSuffix$1: function(suffix) {
  83885. return H.throwExpression(E.SassScriptException$0('Invalid parent selector "' + this.toString$0(0) + '"'));
  83886. },
  83887. unify$1: function(compound) {
  83888. var result, t1, addedThis, _i, simple, _this = this;
  83889. if (compound.length === 1 && C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0)
  83890. return C.JSArray_methods.get$first(compound).unify$1(H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2));
  83891. if (C.JSArray_methods.contains$1(compound, _this))
  83892. return compound;
  83893. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  83894. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, H.throwConcurrentModificationError)(compound), ++_i) {
  83895. simple = compound[_i];
  83896. if (!addedThis && simple instanceof D.PseudoSelector0) {
  83897. result.push(_this);
  83898. addedThis = true;
  83899. }
  83900. result.push(simple);
  83901. }
  83902. if (!addedThis)
  83903. result.push(_this);
  83904. return result;
  83905. }
  83906. };
  83907. D.SourceMapBuffer.prototype = {
  83908. get$sourceFiles: function() {
  83909. var t2, t3,
  83910. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_String, type$.legacy_SourceFile);
  83911. for (t2 = this._source_map_buffer$_sourceFiles, t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  83912. t3 = t2.get$current(t2);
  83913. t1.$indexSet(0, J.toString$0$(t3.key), t3.value);
  83914. }
  83915. return new P.UnmodifiableMapView(t1, type$.UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile);
  83916. },
  83917. get$_targetLocation: function() {
  83918. var t1 = this._source_map_buffer$_buffer._contents,
  83919. t2 = this._line;
  83920. return V.SourceLocation$(t1.length, this._column, t2, null);
  83921. },
  83922. get$length: function(_) {
  83923. return this._source_map_buffer$_buffer._contents.length;
  83924. },
  83925. forSpan$1$2: function(span, callback) {
  83926. var t1, _this = this,
  83927. wasInSpan = _this._inSpan;
  83928. _this._inSpan = true;
  83929. _this._source_map_buffer$_addEntry$2(Y.FileLocation$_(span.file, span._file$_start), _this.get$_targetLocation());
  83930. try {
  83931. t1 = callback.call$0();
  83932. return t1;
  83933. } finally {
  83934. _this._inSpan = wasInSpan;
  83935. }
  83936. },
  83937. forSpan$2: function(span, callback) {
  83938. return this.forSpan$1$2(span, callback, type$.dynamic);
  83939. },
  83940. _source_map_buffer$_addEntry$2: function(source, target) {
  83941. var entry, t2,
  83942. t1 = this._entries;
  83943. if (t1.length !== 0) {
  83944. entry = C.JSArray_methods.get$last(t1);
  83945. t2 = entry.source;
  83946. if (t2.file.getLine$1(t2.offset) == source.file.getLine$1(source.offset) && entry.target.line === target.line)
  83947. return;
  83948. if (entry.target.offset === target.offset)
  83949. return;
  83950. }
  83951. this._source_map_buffer$_sourceFiles.putIfAbsent$2(source.file.url, new D.SourceMapBuffer__addEntry_closure0(source));
  83952. t1.push(new L.Entry(source, target, null));
  83953. },
  83954. write$1: function(_, object) {
  83955. var t1, i,
  83956. string = J.toString$0$(object);
  83957. this._source_map_buffer$_buffer._contents += H.S(string);
  83958. for (t1 = string.length, i = 0; i < t1; ++i)
  83959. if (C.JSString_methods._codeUnitAt$1(string, i) === 10)
  83960. this._writeLine$0();
  83961. else
  83962. ++this._column;
  83963. },
  83964. writeCharCode$1: function(charCode) {
  83965. this._source_map_buffer$_buffer._contents += H.Primitives_stringFromCharCode(charCode);
  83966. if (charCode === 10)
  83967. this._writeLine$0();
  83968. else
  83969. ++this._column;
  83970. },
  83971. _writeLine$0: function() {
  83972. var _this = this,
  83973. t1 = _this._entries;
  83974. if (C.JSArray_methods.get$last(t1).target.line === _this._line && C.JSArray_methods.get$last(t1).target.column === _this._column)
  83975. t1.pop();
  83976. ++_this._line;
  83977. _this._column = 0;
  83978. if (_this._inSpan)
  83979. t1.push(new L.Entry(C.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
  83980. },
  83981. toString$0: function(_) {
  83982. var t1 = this._source_map_buffer$_buffer._contents;
  83983. return t1.charCodeAt(0) == 0 ? t1 : t1;
  83984. },
  83985. buildSourceMap$1$prefix: function(prefix) {
  83986. var i, t2, prefixColumn, _box_0 = {},
  83987. t1 = prefix.length;
  83988. if (t1 === 0)
  83989. return T.SingleMapping_SingleMapping$fromEntries(this._entries);
  83990. _box_0.prefixColumn = _box_0.prefixLines = 0;
  83991. for (i = 0, t2 = 0; i < t1; ++i)
  83992. if (C.JSString_methods._codeUnitAt$1(prefix, i) === 10) {
  83993. ++_box_0.prefixLines;
  83994. _box_0.prefixColumn = 0;
  83995. t2 = 0;
  83996. } else {
  83997. prefixColumn = t2 + 1;
  83998. _box_0.prefixColumn = prefixColumn;
  83999. t2 = prefixColumn;
  84000. }
  84001. t2 = this._entries;
  84002. return T.SingleMapping_SingleMapping$fromEntries(new H.MappedListIterable(t2, new D.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), H._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry*>")));
  84003. },
  84004. $isStringBuffer: 1
  84005. };
  84006. D.SourceMapBuffer__addEntry_closure0.prototype = {
  84007. call$0: function() {
  84008. return this.source.file;
  84009. },
  84010. $signature: 123
  84011. };
  84012. D.SourceMapBuffer_buildSourceMap_closure0.prototype = {
  84013. call$1: function(entry) {
  84014. var t1 = entry.source,
  84015. t2 = entry.target,
  84016. t3 = t2.line,
  84017. t4 = this._box_0,
  84018. t5 = t4.prefixLines;
  84019. t4 = t3 === 0 ? t4.prefixColumn : 0;
  84020. return new L.Entry(t1, V.SourceLocation$(t2.offset + this.prefixLength, t2.column + t4, t3 + t5, null), entry.identifierName);
  84021. },
  84022. $signature: 207
  84023. };
  84024. Q.StaticImport0.prototype = {
  84025. toString$0: function(_) {
  84026. var t1 = this.url.toString$0(0),
  84027. t2 = this.supports;
  84028. if (t2 != null)
  84029. t1 += " supports(" + t2.toString$0(0) + ")";
  84030. t2 = this.media;
  84031. if (t2 != null)
  84032. t1 += " " + t2.toString$0(0);
  84033. t1 += H.Primitives_stringFromCharCode(59);
  84034. return t1.charCodeAt(0) == 0 ? t1 : t1;
  84035. },
  84036. $isImport0: 1,
  84037. $isAstNode0: 1,
  84038. get$span: function() {
  84039. return this.span;
  84040. }
  84041. };
  84042. S.StderrLogger0.prototype = {
  84043. warn$4$deprecation$span$trace: function(_, message, deprecation, span, trace) {
  84044. var t1;
  84045. if (deprecation)
  84046. J.write$1$x($.$get$stderr0()._node1$_stderr, "DEPRECATION ");
  84047. J.write$1$x($.$get$stderr0()._node1$_stderr, "WARNING");
  84048. if (span == null) {
  84049. t1 = $.$get$stderr0();
  84050. t1.writeln$1(": " + H.S(message));
  84051. } else if (trace != null) {
  84052. t1 = $.$get$stderr0();
  84053. t1.writeln$1(": " + H.S(message) + "\n\n" + span.highlight$1$color(false));
  84054. } else {
  84055. t1 = $.$get$stderr0();
  84056. t1.writeln$1(" on " + span.message$2$color(0, C.JSString_methods.$add("\n", message), false));
  84057. }
  84058. if (trace != null)
  84059. t1.writeln$1(B.indent0(C.JSString_methods.trimRight$0(trace.toString$0(0)), 4));
  84060. t1.writeln$0();
  84061. },
  84062. warn$2$span: function($receiver, message, span) {
  84063. return this.warn$4$deprecation$span$trace($receiver, message, false, span, null);
  84064. },
  84065. warn$2$deprecation: function($receiver, message, deprecation) {
  84066. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, null, null);
  84067. },
  84068. warn$3$deprecation$span: function($receiver, message, deprecation, span) {
  84069. return this.warn$4$deprecation$span$trace($receiver, message, deprecation, span, null);
  84070. },
  84071. warn$2$trace: function($receiver, message, trace) {
  84072. return this.warn$4$deprecation$span$trace($receiver, message, false, null, trace);
  84073. },
  84074. debug$2: function(_, message, span) {
  84075. var url, t3, t4,
  84076. t1 = span.file,
  84077. t2 = span._file$_start;
  84078. if (Y.FileLocation$_(t1, t2).file.url == null)
  84079. url = "-";
  84080. else {
  84081. t3 = Y.FileLocation$_(t1, t2);
  84082. url = $.$get$context().prettyUri$1(t3.file.url);
  84083. }
  84084. t3 = $.$get$stderr0();
  84085. t4 = H.S(url) + ":";
  84086. t2 = Y.FileLocation$_(t1, t2);
  84087. t2 = t4 + (t2.file.getLine$1(t2.offset) + 1) + " ";
  84088. t4 = t3._node1$_stderr;
  84089. J.write$1$x(t4, t2);
  84090. J.write$1$x(t4, "DEBUG");
  84091. t3.writeln$1(": " + H.S(message));
  84092. }
  84093. };
  84094. D.StringExpression0.prototype = {
  84095. get$span: function() {
  84096. return this.text.span;
  84097. },
  84098. accept$1$1: function(visitor) {
  84099. return visitor.visitStringExpression$1(this);
  84100. },
  84101. accept$1: function(visitor) {
  84102. return this.accept$1$1(visitor, type$.dynamic);
  84103. },
  84104. asInterpolation$1$static: function($static) {
  84105. var quote, t1, t2, buffer, t3, t4, t5, t6, _i, value, t7, t8, i, codeUnit, next, t9, _this = this;
  84106. if (!_this.hasQuotes)
  84107. return _this.text;
  84108. quote = _this._string0$_bestQuote$0();
  84109. t1 = new P.StringBuffer("");
  84110. t2 = [];
  84111. buffer = new Z.InterpolationBuffer0(t1, t2);
  84112. t1._contents += H.Primitives_stringFromCharCode(quote);
  84113. for (t3 = _this.text, t4 = t3.contents, t5 = t4.length, t6 = type$.legacy_Expression_2, _i = 0; _i < t5; ++_i) {
  84114. value = t4[_i];
  84115. if (t6._is(value)) {
  84116. buffer._interpolation_buffer0$_flushText$0();
  84117. t2.push(value);
  84118. } else if (typeof value == "string")
  84119. for (t7 = value.length, t8 = t7 - 1, i = 0; i < t7; ++i) {
  84120. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  84121. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12) {
  84122. t1._contents += H.Primitives_stringFromCharCode(92);
  84123. t1._contents += H.Primitives_stringFromCharCode(97);
  84124. if (i !== t8) {
  84125. next = C.JSString_methods._codeUnitAt$1(value, i + 1);
  84126. if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12 || T.isHex0(next))
  84127. t1._contents += H.Primitives_stringFromCharCode(32);
  84128. }
  84129. } else {
  84130. if (codeUnit !== quote)
  84131. if (codeUnit !== 92)
  84132. t9 = $static && codeUnit === 35 && i < t8 && C.JSString_methods._codeUnitAt$1(value, i + 1) === 123;
  84133. else
  84134. t9 = true;
  84135. else
  84136. t9 = true;
  84137. if (t9)
  84138. t1._contents += H.Primitives_stringFromCharCode(92);
  84139. t1._contents += H.Primitives_stringFromCharCode(codeUnit);
  84140. }
  84141. }
  84142. }
  84143. t1._contents += H.Primitives_stringFromCharCode(quote);
  84144. return buffer.interpolation$1(t3.span);
  84145. },
  84146. asInterpolation$0: function() {
  84147. return this.asInterpolation$1$static(false);
  84148. },
  84149. _string0$_bestQuote$0: function() {
  84150. var t1, t2, containsDoubleQuote, _i, value, t3, i, codeUnit;
  84151. for (t1 = this.text.contents, t2 = t1.length, containsDoubleQuote = false, _i = 0; _i < t2; ++_i) {
  84152. value = t1[_i];
  84153. if (typeof value == "string")
  84154. for (t3 = value.length, i = 0; i < t3; ++i) {
  84155. codeUnit = C.JSString_methods._codeUnitAt$1(value, i);
  84156. if (codeUnit === 39)
  84157. return 34;
  84158. if (codeUnit === 34)
  84159. containsDoubleQuote = true;
  84160. }
  84161. }
  84162. return containsDoubleQuote ? 39 : 34;
  84163. },
  84164. toString$0: function(_) {
  84165. return this.asInterpolation$0().toString$0(0);
  84166. },
  84167. $isExpression0: 1,
  84168. $isAstNode0: 1
  84169. };
  84170. D.closure123.prototype = {
  84171. call$1: function($arguments) {
  84172. var string = J.$index$asx($arguments, 0).assertString$1("string");
  84173. if (!string.hasQuotes)
  84174. return string;
  84175. return new D.SassString0(string.text, false);
  84176. },
  84177. $signature: 16
  84178. };
  84179. D.closure122.prototype = {
  84180. call$1: function($arguments) {
  84181. var string = J.$index$asx($arguments, 0).assertString$1("string");
  84182. if (string.hasQuotes)
  84183. return string;
  84184. return new D.SassString0(string.text, true);
  84185. },
  84186. $signature: 16
  84187. };
  84188. D.closure118.prototype = {
  84189. call$1: function($arguments) {
  84190. return T.SassNumber$0(J.$index$asx($arguments, 0).assertString$1("string").get$sassLength(), null);
  84191. },
  84192. $signature: 10
  84193. };
  84194. D.closure117.prototype = {
  84195. call$1: function($arguments) {
  84196. var indexInt, codeUnitIndex, _s5_ = "index",
  84197. t1 = J.getInterceptor$asx($arguments),
  84198. string = t1.$index($arguments, 0).assertString$1("string"),
  84199. insert = t1.$index($arguments, 1).assertString$1("insert"),
  84200. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  84201. index.assertNoUnits$1(_s5_);
  84202. indexInt = index.assertInt$1(_s5_);
  84203. if (indexInt < 0)
  84204. indexInt = string.get$sassLength() + indexInt + 2;
  84205. t1 = string.text;
  84206. codeUnitIndex = B.codepointIndexToCodeUnitIndex0(t1, D._codepointForIndex0(indexInt, string.get$sassLength(), false));
  84207. return new D.SassString0(J.replaceRange$3$asx(t1, codeUnitIndex, codeUnitIndex, insert.text), string.hasQuotes);
  84208. },
  84209. $signature: 16
  84210. };
  84211. D.closure116.prototype = {
  84212. call$1: function($arguments) {
  84213. var t1 = J.getInterceptor$asx($arguments),
  84214. t2 = t1.$index($arguments, 0).assertString$1("string").text,
  84215. codeUnitIndex = J.indexOf$1$asx(t2, t1.$index($arguments, 1).assertString$1("substring").text);
  84216. if (codeUnitIndex === -1)
  84217. return C.C_SassNull;
  84218. return T.SassNumber$0(B.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex) + 1, null);
  84219. },
  84220. $signature: 3
  84221. };
  84222. D.closure115.prototype = {
  84223. call$1: function($arguments) {
  84224. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  84225. t1 = J.getInterceptor$asx($arguments),
  84226. string = t1.$index($arguments, 0).assertString$1("string"),
  84227. start = t1.$index($arguments, 1).assertNumber$1("start-at"),
  84228. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  84229. start.assertNoUnits$1("start");
  84230. end.assertNoUnits$1("end");
  84231. lengthInCodepoints = string.get$sassLength();
  84232. endInt = end.assertInt$0();
  84233. if (endInt === 0)
  84234. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  84235. startCodepoint = D._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
  84236. endCodepoint = D._codepointForIndex0(endInt, lengthInCodepoints, true);
  84237. if (endCodepoint === lengthInCodepoints)
  84238. --endCodepoint;
  84239. if (endCodepoint < startCodepoint)
  84240. return string.hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  84241. t1 = string.text;
  84242. return new D.SassString0(J.substring$2$s(t1, B.codepointIndexToCodeUnitIndex0(t1, startCodepoint), B.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string.hasQuotes);
  84243. },
  84244. $signature: 16
  84245. };
  84246. D.closure121.prototype = {
  84247. call$1: function($arguments) {
  84248. var t1, t2, t3, i, t4, t5,
  84249. string = J.$index$asx($arguments, 0).assertString$1("string");
  84250. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  84251. t5 = t3._codeUnitAt$1(t1, i);
  84252. t4 += H.Primitives_stringFromCharCode(t5 >= 97 && t5 <= 122 ? t5 & 4294967263 : t5);
  84253. }
  84254. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  84255. },
  84256. $signature: 16
  84257. };
  84258. D.closure120.prototype = {
  84259. call$1: function($arguments) {
  84260. var t1, t2, t3, i, t4, t5,
  84261. string = J.$index$asx($arguments, 0).assertString$1("string");
  84262. for (t1 = string.text, t2 = t1.length, t3 = J.getInterceptor$s(t1), i = 0, t4 = ""; i < t2; ++i) {
  84263. t5 = t3._codeUnitAt$1(t1, i);
  84264. t4 += H.Primitives_stringFromCharCode(t5 >= 65 && t5 <= 90 ? t5 | 32 : t5);
  84265. }
  84266. return new D.SassString0(t4.charCodeAt(0) == 0 ? t4 : t4, string.hasQuotes);
  84267. },
  84268. $signature: 16
  84269. };
  84270. D.closure119.prototype = {
  84271. call$1: function($arguments) {
  84272. var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
  84273. $._previousUniqueId0 = t1;
  84274. if (t1 > Math.pow(36, 6))
  84275. $._previousUniqueId0 = C.JSInt_methods.$mod($.$get$_previousUniqueId0(), H._asIntS(Math.pow(36, 6)));
  84276. return new D.SassString0("u" + C.JSString_methods.padLeft$2(J.toRadixString$1$n($.$get$_previousUniqueId0(), 36), 6, "0"), false);
  84277. },
  84278. $signature: 16
  84279. };
  84280. D._NodeSassString.prototype = {};
  84281. D.closure228.prototype = {
  84282. call$3: function(thisArg, value, dartValue) {
  84283. J.set$dartValue$x(thisArg, dartValue == null ? new D.SassString0(value, false) : dartValue);
  84284. },
  84285. call$2: function(thisArg, value) {
  84286. return this.call$3(thisArg, value, null);
  84287. },
  84288. "call*": "call$3",
  84289. $requiredArgCount: 2,
  84290. $defaultValues: function() {
  84291. return [null];
  84292. },
  84293. $signature: 429
  84294. };
  84295. D.closure229.prototype = {
  84296. call$1: function(thisArg) {
  84297. return J.get$dartValue$x(thisArg).text;
  84298. },
  84299. $signature: 204
  84300. };
  84301. D.closure230.prototype = {
  84302. call$2: function(thisArg, value) {
  84303. J.set$dartValue$x(thisArg, new D.SassString0(value, false));
  84304. },
  84305. "call*": "call$2",
  84306. $requiredArgCount: 2,
  84307. $signature: 431
  84308. };
  84309. D.closure231.prototype = {
  84310. call$1: function(thisArg) {
  84311. return J.toString$0$(J.get$dartValue$x(thisArg));
  84312. },
  84313. $signature: 204
  84314. };
  84315. D.SassString0.prototype = {
  84316. get$sassLength: function() {
  84317. var t1 = this._string$_sassLength;
  84318. if (t1 == null) {
  84319. t1 = this.text;
  84320. t1.toString;
  84321. t1 = new P.Runes(t1);
  84322. t1 = this._string$_sassLength = t1.get$length(t1);
  84323. }
  84324. return t1;
  84325. },
  84326. get$isSpecialNumber: function() {
  84327. var t1, t2;
  84328. if (this.hasQuotes)
  84329. return false;
  84330. t1 = this.text;
  84331. if (t1.length < 6)
  84332. return false;
  84333. t2 = J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32;
  84334. if (t2 === 99) {
  84335. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  84336. if (t2 === 108) {
  84337. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 97)
  84338. return false;
  84339. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 109)
  84340. return false;
  84341. if ((C.JSString_methods._codeUnitAt$1(t1, 4) | 32) !== 112)
  84342. return false;
  84343. return C.JSString_methods._codeUnitAt$1(t1, 5) === 40;
  84344. } else if (t2 === 97) {
  84345. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 108)
  84346. return false;
  84347. if ((C.JSString_methods._codeUnitAt$1(t1, 3) | 32) !== 99)
  84348. return false;
  84349. return C.JSString_methods._codeUnitAt$1(t1, 4) === 40;
  84350. } else
  84351. return false;
  84352. } else if (t2 === 118) {
  84353. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 97)
  84354. return false;
  84355. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 114)
  84356. return false;
  84357. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  84358. } else if (t2 === 101) {
  84359. if ((C.JSString_methods._codeUnitAt$1(t1, 1) | 32) !== 110)
  84360. return false;
  84361. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 118)
  84362. return false;
  84363. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  84364. } else if (t2 === 109) {
  84365. t2 = C.JSString_methods._codeUnitAt$1(t1, 1) | 32;
  84366. if (t2 === 97) {
  84367. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 120)
  84368. return false;
  84369. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  84370. } else if (t2 === 105) {
  84371. if ((C.JSString_methods._codeUnitAt$1(t1, 2) | 32) !== 110)
  84372. return false;
  84373. return C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  84374. } else
  84375. return false;
  84376. } else
  84377. return false;
  84378. },
  84379. get$isVar: function() {
  84380. if (this.hasQuotes)
  84381. return false;
  84382. var t1 = this.text;
  84383. if (t1.length < 8)
  84384. return false;
  84385. return (J.getInterceptor$s(t1)._codeUnitAt$1(t1, 0) | 32) === 118 && (C.JSString_methods._codeUnitAt$1(t1, 1) | 32) === 97 && (C.JSString_methods._codeUnitAt$1(t1, 2) | 32) === 114 && C.JSString_methods._codeUnitAt$1(t1, 3) === 40;
  84386. },
  84387. get$isBlank: function() {
  84388. return !this.hasQuotes && this.text.length === 0;
  84389. },
  84390. accept$1$1: function(visitor) {
  84391. var t1 = visitor._serialize0$_quote && this.hasQuotes,
  84392. t2 = this.text;
  84393. if (t1)
  84394. visitor._serialize0$_visitQuotedString$1(t2);
  84395. else
  84396. visitor._serialize0$_visitUnquotedString$1(t2);
  84397. return null;
  84398. },
  84399. accept$1: function(visitor) {
  84400. return this.accept$1$1(visitor, type$.dynamic);
  84401. },
  84402. assertString$1: function($name) {
  84403. return this;
  84404. },
  84405. plus$1: function(other) {
  84406. var t1 = this.text,
  84407. t2 = this.hasQuotes;
  84408. if (other instanceof D.SassString0)
  84409. return new D.SassString0(J.$add$ansx(t1, other.text), t2);
  84410. else {
  84411. other.toString;
  84412. return new D.SassString0(J.$add$ansx(t1, N.serializeValue(other, false, true)), t2);
  84413. }
  84414. },
  84415. $eq: function(_, other) {
  84416. if (other == null)
  84417. return false;
  84418. return other instanceof D.SassString0 && this.text == other.text;
  84419. },
  84420. get$hashCode: function(_) {
  84421. return J.get$hashCode$(this.text);
  84422. }
  84423. };
  84424. X.ModifiableCssStyleRule0.prototype = {
  84425. accept$1$1: function(visitor) {
  84426. return visitor.visitCssStyleRule$1(this);
  84427. },
  84428. accept$1: function(visitor) {
  84429. return this.accept$1$1(visitor, type$.dynamic);
  84430. },
  84431. copyWithoutChildren$0: function() {
  84432. return X.ModifiableCssStyleRule$0(this.selector, this.span, this.originalSelector);
  84433. },
  84434. $isCssStyleRule0: 1,
  84435. get$span: function() {
  84436. return this.span;
  84437. }
  84438. };
  84439. X.StyleRule0.prototype = {
  84440. accept$1$1: function(visitor) {
  84441. return visitor.visitStyleRule$1(this);
  84442. },
  84443. accept$1: function(visitor) {
  84444. return this.accept$1$1(visitor, type$.dynamic);
  84445. },
  84446. toString$0: function(_) {
  84447. var t1 = this.children;
  84448. return this.selector.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  84449. },
  84450. get$span: function() {
  84451. return this.span;
  84452. }
  84453. };
  84454. V.CssStylesheet0.prototype = {
  84455. get$isGroupEnd: function() {
  84456. return false;
  84457. },
  84458. get$isChildless: function() {
  84459. return false;
  84460. },
  84461. accept$1$1: function(visitor) {
  84462. return visitor.visitCssStylesheet$1(this);
  84463. },
  84464. accept$1: function(visitor) {
  84465. return this.accept$1$1(visitor, type$.dynamic);
  84466. },
  84467. get$children: function(receiver) {
  84468. return this.children;
  84469. },
  84470. get$span: function() {
  84471. return this.span;
  84472. }
  84473. };
  84474. V.ModifiableCssStylesheet0.prototype = {
  84475. accept$1$1: function(visitor) {
  84476. return visitor.visitCssStylesheet$1(this);
  84477. },
  84478. accept$1: function(visitor) {
  84479. return this.accept$1$1(visitor, type$.dynamic);
  84480. },
  84481. copyWithoutChildren$0: function() {
  84482. return V.ModifiableCssStylesheet$0(this.span);
  84483. },
  84484. $isCssStylesheet0: 1,
  84485. get$span: function() {
  84486. return this.span;
  84487. }
  84488. };
  84489. V.StylesheetParser0.prototype = {
  84490. parse$0: function() {
  84491. return this.wrapSpanFormatException$1(new V.StylesheetParser_parse_closure0(this));
  84492. },
  84493. parseArgumentDeclaration$0: function() {
  84494. return this._stylesheet0$_parseSingleProduction$1$1(new V.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.legacy_ArgumentDeclaration_2);
  84495. },
  84496. _stylesheet0$_parseSingleProduction$1$1: function(production, $T) {
  84497. return this.wrapSpanFormatException$1(new V.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
  84498. },
  84499. parseSignature$0: function() {
  84500. return this.wrapSpanFormatException$1(new V.StylesheetParser_parseSignature_closure(this));
  84501. },
  84502. _stylesheet0$_statement$1$root: function(root) {
  84503. var t2, _this = this,
  84504. t1 = _this.scanner;
  84505. switch (t1.peekChar$0()) {
  84506. case 64:
  84507. return _this.atRule$2$root(new V.StylesheetParser__statement_closure0(_this), root);
  84508. case 43:
  84509. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  84510. return _this._stylesheet0$_styleRule$0();
  84511. _this._stylesheet0$_isUseAllowed = false;
  84512. t2 = t1._string_scanner$_position;
  84513. t1.readChar$0();
  84514. return _this._stylesheet0$_includeRule$1(new S._SpanScannerState(t1, t2));
  84515. case 61:
  84516. if (!_this.get$indented())
  84517. return _this._stylesheet0$_styleRule$0();
  84518. _this._stylesheet0$_isUseAllowed = false;
  84519. t2 = t1._string_scanner$_position;
  84520. t1.readChar$0();
  84521. _this.whitespace$0();
  84522. return _this._stylesheet0$_mixinRule$1(new S._SpanScannerState(t1, t2));
  84523. case 125:
  84524. t1.error$2$length(0, 'unmatched "}".', 1);
  84525. break;
  84526. default:
  84527. return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
  84528. }
  84529. },
  84530. _stylesheet0$_statement$0: function() {
  84531. return this._stylesheet0$_statement$1$root(false);
  84532. },
  84533. variableDeclarationWithoutNamespace$2: function(namespace, start) {
  84534. var precedingComment, t1, $name, t2, value, flagStart, guarded, global, flag, endPosition, t3, t4, t5, declaration, _this = this, _box_0 = {};
  84535. _box_0.start = start;
  84536. precedingComment = _this.lastSilentComment;
  84537. _this.lastSilentComment = null;
  84538. if (start == null) {
  84539. t1 = _this.scanner;
  84540. _box_0.start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84541. }
  84542. $name = _this.variableName$0();
  84543. t1 = namespace != null;
  84544. if (t1)
  84545. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_box_0, _this));
  84546. if (_this.get$plainCss())
  84547. _this.error$2(0, string$.Sass_v, _this.scanner.spanFrom$1(_box_0.start));
  84548. _this.whitespace$0();
  84549. t2 = _this.scanner;
  84550. t2.expectChar$1(58);
  84551. _this.whitespace$0();
  84552. value = _this.expression$0();
  84553. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  84554. for (guarded = false, global = false; t2.scanChar$1(33);) {
  84555. flag = _this.identifier$0();
  84556. if (flag === "default")
  84557. guarded = true;
  84558. else if (flag === "global") {
  84559. if (t1) {
  84560. endPosition = t2._string_scanner$_position;
  84561. t3 = t2._sourceFile;
  84562. t4 = flagStart.position;
  84563. t5 = new Y._FileSpan(t3, t4, endPosition);
  84564. t5._FileSpan$3(t3, t4, endPosition);
  84565. _this.error$2(0, string$.x21globa, t5);
  84566. }
  84567. global = true;
  84568. } else {
  84569. endPosition = t2._string_scanner$_position;
  84570. t3 = t2._sourceFile;
  84571. t4 = flagStart.position;
  84572. t5 = new Y._FileSpan(t3, t4, endPosition);
  84573. t5._FileSpan$3(t3, t4, endPosition);
  84574. _this.error$2(0, "Invalid flag name.", t5);
  84575. }
  84576. _this.whitespace$0();
  84577. flagStart = new S._SpanScannerState(t2, t2._string_scanner$_position);
  84578. }
  84579. _this.expectStatementSeparator$1("variable declaration");
  84580. declaration = Z.VariableDeclaration$0($name, value, t2.spanFrom$1(_box_0.start), precedingComment, global, guarded, namespace);
  84581. if (global)
  84582. _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new V.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
  84583. return declaration;
  84584. },
  84585. variableDeclarationWithoutNamespace$0: function() {
  84586. return this.variableDeclarationWithoutNamespace$2(null, null);
  84587. },
  84588. _stylesheet0$_variableDeclarationOrStyleRule$0: function() {
  84589. var t1, t2, variableOrInterpolation, t3, _this = this;
  84590. if (_this.get$plainCss())
  84591. return _this._stylesheet0$_styleRule$0();
  84592. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  84593. return _this._stylesheet0$_styleRule$0();
  84594. if (!_this.lookingAtIdentifier$0())
  84595. return _this._stylesheet0$_styleRule$0();
  84596. t1 = _this.scanner;
  84597. t2 = t1._string_scanner$_position;
  84598. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  84599. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  84600. return variableOrInterpolation;
  84601. else {
  84602. t3 = new Z.InterpolationBuffer0(new P.StringBuffer(""), []);
  84603. t3.addInterpolation$1(type$.legacy_Interpolation_2._as(variableOrInterpolation));
  84604. return _this._stylesheet0$_styleRule$2(t3, new S._SpanScannerState(t1, t2));
  84605. }
  84606. },
  84607. _stylesheet0$_declarationOrStyleRule$0: function() {
  84608. var t1, t2, declarationOrBuffer, _this = this;
  84609. if (_this.get$plainCss() && _this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inUnknownAtRule)
  84610. return _this._stylesheet0$_propertyOrVariableDeclaration$0();
  84611. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  84612. return _this._stylesheet0$_styleRule$0();
  84613. t1 = _this.scanner;
  84614. t2 = t1._string_scanner$_position;
  84615. declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
  84616. return type$.legacy_Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.legacy_InterpolationBuffer_2._as(declarationOrBuffer), new S._SpanScannerState(t1, t2));
  84617. },
  84618. _stylesheet0$_declarationOrBuffer$0: function() {
  84619. var midBuffer, couldBeSelector, beforeDeclaration, additional, t3, startsWithPunctuation, variableOrInterpolation, t4, $name, postColonWhitespace, t5, value, exception, _this = this, t1 = {},
  84620. t2 = _this.scanner,
  84621. start = new S._SpanScannerState(t2, t2._string_scanner$_position),
  84622. nameBuffer = new Z.InterpolationBuffer0(new P.StringBuffer(""), []),
  84623. first = t2.peekChar$0();
  84624. if (first !== 58)
  84625. if (first !== 42)
  84626. if (first !== 46)
  84627. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  84628. else
  84629. t3 = true;
  84630. else
  84631. t3 = true;
  84632. else
  84633. t3 = true;
  84634. if (t3) {
  84635. t3 = t2.readChar$0();
  84636. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(t3);
  84637. t3 = _this.rawText$1(_this.get$whitespace());
  84638. nameBuffer._interpolation_buffer0$_text._contents += t3;
  84639. startsWithPunctuation = true;
  84640. } else
  84641. startsWithPunctuation = false;
  84642. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  84643. return nameBuffer;
  84644. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  84645. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  84646. return variableOrInterpolation;
  84647. else
  84648. nameBuffer.addInterpolation$1(type$.legacy_Interpolation_2._as(variableOrInterpolation));
  84649. _this._stylesheet0$_isUseAllowed = false;
  84650. if (t2.matches$1("/*")) {
  84651. t3 = _this.rawText$1(_this.get$loudComment());
  84652. nameBuffer._interpolation_buffer0$_text._contents += t3;
  84653. }
  84654. midBuffer = new P.StringBuffer("");
  84655. t3 = _this.get$whitespace();
  84656. midBuffer._contents += _this.rawText$1(t3);
  84657. t4 = t2._string_scanner$_position;
  84658. if (!t2.scanChar$1(58)) {
  84659. if (midBuffer._contents.length !== 0)
  84660. nameBuffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(32);
  84661. return nameBuffer;
  84662. }
  84663. midBuffer._contents += H.Primitives_stringFromCharCode(58);
  84664. $name = nameBuffer.interpolation$1(t2.spanFrom$2(start, new S._SpanScannerState(t2, t4)));
  84665. if (C.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  84666. t1 = _this._stylesheet0$_interpolatedDeclarationValue$0();
  84667. _this.expectStatementSeparator$1("custom property");
  84668. return L.Declaration$0($name, t2.spanFrom$1(start), null, new D.StringExpression0(t1, false));
  84669. }
  84670. if (t2.scanChar$1(58)) {
  84671. t1 = nameBuffer;
  84672. t2 = t1._interpolation_buffer0$_text;
  84673. t2._contents += H.S(midBuffer);
  84674. t2._contents += H.Primitives_stringFromCharCode(58);
  84675. return t1;
  84676. } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  84677. t1 = nameBuffer;
  84678. t1._interpolation_buffer0$_text._contents += H.S(midBuffer);
  84679. return t1;
  84680. }
  84681. postColonWhitespace = _this.rawText$1(t3);
  84682. if (_this.lookingAtChildren$0())
  84683. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure1($name));
  84684. midBuffer._contents += postColonWhitespace;
  84685. couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
  84686. beforeDeclaration = new S._SpanScannerState(t2, t2._string_scanner$_position);
  84687. t1.value = null;
  84688. try {
  84689. if (_this.lookingAtChildren$0()) {
  84690. t3 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Object);
  84691. t4 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  84692. t5 = t4.offset;
  84693. value = new D.StringExpression0(X.Interpolation$0(t3, Y._FileSpan$(t4.file, t5, t5)), true);
  84694. } else
  84695. value = _this.expression$0();
  84696. t3 = t1.value = value;
  84697. if (_this.lookingAtChildren$0()) {
  84698. if (couldBeSelector)
  84699. _this.expectStatementSeparator$0();
  84700. } else if (!_this.atEndOfStatement$0())
  84701. _this.expectStatementSeparator$0();
  84702. } catch (exception) {
  84703. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  84704. if (!couldBeSelector)
  84705. throw exception;
  84706. t2.set$state(beforeDeclaration);
  84707. additional = _this.almostAnyValue$0();
  84708. if (!_this.get$indented() && t2.peekChar$0() === 59)
  84709. throw exception;
  84710. nameBuffer._interpolation_buffer0$_text._contents += H.S(midBuffer);
  84711. nameBuffer.addInterpolation$1(additional);
  84712. return nameBuffer;
  84713. } else
  84714. throw exception;
  84715. }
  84716. if (_this.lookingAtChildren$0())
  84717. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__declarationOrBuffer_closure2(t1, $name));
  84718. else {
  84719. _this.expectStatementSeparator$0();
  84720. return L.Declaration$0($name, t2.spanFrom$1(start), null, t3);
  84721. }
  84722. },
  84723. _stylesheet0$_variableDeclarationOrInterpolation$0: function() {
  84724. var t1, start, identifier, t2, buffer, _this = this;
  84725. if (!_this.lookingAtIdentifier$0())
  84726. return _this.interpolatedIdentifier$0();
  84727. t1 = _this.scanner;
  84728. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84729. identifier = _this.identifier$0();
  84730. if (t1.matches$1(".$")) {
  84731. t1.readChar$0();
  84732. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  84733. } else {
  84734. t2 = new P.StringBuffer("");
  84735. buffer = new Z.InterpolationBuffer0(t2, []);
  84736. t2._contents = identifier;
  84737. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  84738. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84739. return buffer.interpolation$1(t1.spanFrom$1(start));
  84740. }
  84741. },
  84742. _stylesheet0$_styleRule$2: function(buffer, start) {
  84743. var t2, interpolation, t3, wasInStyleRule, _this = this, t1 = {};
  84744. t1.start = start;
  84745. _this._stylesheet0$_isUseAllowed = false;
  84746. if (start == null) {
  84747. t2 = _this.scanner;
  84748. t2 = t1.start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  84749. } else
  84750. t2 = start;
  84751. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  84752. if (buffer != null) {
  84753. buffer.addInterpolation$1(interpolation);
  84754. t3 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(t2));
  84755. } else
  84756. t3 = interpolation;
  84757. if (t3.contents.length === 0)
  84758. _this.scanner.error$1(0, 'expected "}".');
  84759. wasInStyleRule = _this._stylesheet0$_inStyleRule;
  84760. _this._stylesheet0$_inStyleRule = true;
  84761. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), t2, new V.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule));
  84762. },
  84763. _stylesheet0$_styleRule$0: function() {
  84764. return this._stylesheet0$_styleRule$2(null, null);
  84765. },
  84766. _stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties: function(parseCustomProperties) {
  84767. var first, t3, nameBuffer, variableOrInterpolation, $name, value, _this = this,
  84768. _s48_ = string$.Nested,
  84769. t1 = {},
  84770. t2 = _this.scanner,
  84771. start = new S._SpanScannerState(t2, t2._string_scanner$_position);
  84772. t1.name = null;
  84773. first = t2.peekChar$0();
  84774. if (first !== 58)
  84775. if (first !== 42)
  84776. if (first !== 46)
  84777. t3 = first === 35 && t2.peekChar$1(1) !== 123;
  84778. else
  84779. t3 = true;
  84780. else
  84781. t3 = true;
  84782. else
  84783. t3 = true;
  84784. if (t3) {
  84785. t3 = new P.StringBuffer("");
  84786. nameBuffer = new Z.InterpolationBuffer0(t3, []);
  84787. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  84788. t3._contents += _this.rawText$1(_this.get$whitespace());
  84789. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  84790. t3 = t1.name = nameBuffer.interpolation$1(t2.spanFrom$1(start));
  84791. } else if (!_this.get$plainCss()) {
  84792. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  84793. if (variableOrInterpolation instanceof Z.VariableDeclaration0)
  84794. return variableOrInterpolation;
  84795. else {
  84796. type$.legacy_Interpolation_2._as(variableOrInterpolation);
  84797. t1.name = variableOrInterpolation;
  84798. }
  84799. t3 = variableOrInterpolation;
  84800. } else {
  84801. $name = _this.interpolatedIdentifier$0();
  84802. t1.name = $name;
  84803. t3 = $name;
  84804. }
  84805. _this.whitespace$0();
  84806. t2.expectChar$1(58);
  84807. if (parseCustomProperties && C.JSString_methods.startsWith$1(t3.get$initialPlain(), "--")) {
  84808. t1 = _this._stylesheet0$_interpolatedDeclarationValue$0();
  84809. _this.expectStatementSeparator$1("custom property");
  84810. return L.Declaration$0(t3, t2.spanFrom$1(start), null, new D.StringExpression0(t1, false));
  84811. }
  84812. _this.whitespace$0();
  84813. if (_this.lookingAtChildren$0()) {
  84814. if (_this.get$plainCss())
  84815. t2.error$1(0, _s48_);
  84816. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure1(t1));
  84817. }
  84818. value = _this.expression$0();
  84819. if (_this.lookingAtChildren$0()) {
  84820. if (_this.get$plainCss())
  84821. t2.error$1(0, _s48_);
  84822. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new V.StylesheetParser__propertyOrVariableDeclaration_closure2(t1, value));
  84823. } else {
  84824. _this.expectStatementSeparator$0();
  84825. return L.Declaration$0(t3, t2.spanFrom$1(start), null, value);
  84826. }
  84827. },
  84828. _stylesheet0$_propertyOrVariableDeclaration$0: function() {
  84829. return this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(true);
  84830. },
  84831. _stylesheet0$_declarationChild$0: function() {
  84832. if (this.scanner.peekChar$0() === 64)
  84833. return this._stylesheet0$_declarationAtRule$0();
  84834. return this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(false);
  84835. },
  84836. atRule$2$root: function(child, root) {
  84837. var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
  84838. _s9_ = "@use rule",
  84839. t1 = _this.scanner,
  84840. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84841. t1.expectChar$2$name(64, "@-rule");
  84842. $name = _this.interpolatedIdentifier$0();
  84843. _this.whitespace$0();
  84844. wasUseAllowed = _this._stylesheet0$_isUseAllowed;
  84845. _this._stylesheet0$_isUseAllowed = false;
  84846. switch ($name.get$asPlain()) {
  84847. case "at-root":
  84848. return _this._stylesheet0$_atRootRule$1(start);
  84849. case "charset":
  84850. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  84851. if (!root)
  84852. _this._stylesheet0$_disallowedAtRule$1(start);
  84853. _this.string$0();
  84854. return null;
  84855. case "content":
  84856. return _this._stylesheet0$_contentRule$1(start);
  84857. case "debug":
  84858. return _this._stylesheet0$_debugRule$1(start);
  84859. case "each":
  84860. return _this._stylesheet0$_eachRule$2(start, child);
  84861. case "else":
  84862. return _this._stylesheet0$_disallowedAtRule$1(start);
  84863. case "error":
  84864. return _this._stylesheet0$_errorRule$1(start);
  84865. case "extend":
  84866. if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
  84867. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  84868. value = _this.almostAnyValue$0();
  84869. optional = t1.scanChar$1(33);
  84870. if (optional)
  84871. _this.expectIdentifier$1("optional");
  84872. _this.expectStatementSeparator$1("@extend rule");
  84873. return new X.ExtendRule0(value, optional, t1.spanFrom$1(start));
  84874. case "for":
  84875. return _this._stylesheet0$_forRule$2(start, child);
  84876. case "forward":
  84877. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  84878. if (!root)
  84879. _this._stylesheet0$_disallowedAtRule$1(start);
  84880. return _this._stylesheet0$_forwardRule$1(start);
  84881. case "function":
  84882. return _this._stylesheet0$_functionRule$1(start);
  84883. case "if":
  84884. return _this._stylesheet0$_ifRule$2(start, child);
  84885. case "import":
  84886. return _this._stylesheet0$_importRule$1(start);
  84887. case "include":
  84888. return _this._stylesheet0$_includeRule$1(start);
  84889. case "media":
  84890. return _this.mediaRule$1(start);
  84891. case "mixin":
  84892. return _this._stylesheet0$_mixinRule$1(start);
  84893. case "-moz-document":
  84894. return _this.mozDocumentRule$2(start, $name);
  84895. case "return":
  84896. return _this._stylesheet0$_disallowedAtRule$1(start);
  84897. case "supports":
  84898. return _this.supportsRule$1(start);
  84899. case "use":
  84900. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  84901. if (!root)
  84902. _this._stylesheet0$_disallowedAtRule$1(start);
  84903. url = _this._stylesheet0$_urlString$0();
  84904. _this.whitespace$0();
  84905. namespace = _this._stylesheet0$_useNamespace$2(url, start);
  84906. _this.whitespace$0();
  84907. configuration = _this._stylesheet0$_configuration$0();
  84908. _this.expectStatementSeparator$1(_s9_);
  84909. span = t1.spanFrom$1(start);
  84910. if (!_this._stylesheet0$_isUseAllowed)
  84911. _this.error$2(0, string$.x40use_r, span);
  84912. _this.expectStatementSeparator$1(_s9_);
  84913. t1 = new T.UseRule0(url, namespace, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2), span);
  84914. t1.UseRule$4$configuration0(url, namespace, span, configuration);
  84915. return t1;
  84916. case "warn":
  84917. return _this._stylesheet0$_warnRule$1(start);
  84918. case "while":
  84919. return _this._stylesheet0$_whileRule$2(start, child);
  84920. default:
  84921. return _this.unknownAtRule$2(start, $name);
  84922. }
  84923. },
  84924. _stylesheet0$_declarationAtRule$0: function() {
  84925. var _this = this,
  84926. t1 = _this.scanner,
  84927. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84928. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  84929. case "content":
  84930. return _this._stylesheet0$_contentRule$1(start);
  84931. case "debug":
  84932. return _this._stylesheet0$_debugRule$1(start);
  84933. case "each":
  84934. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
  84935. case "else":
  84936. return _this._stylesheet0$_disallowedAtRule$1(start);
  84937. case "error":
  84938. return _this._stylesheet0$_errorRule$1(start);
  84939. case "for":
  84940. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationAtRule());
  84941. case "if":
  84942. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
  84943. case "include":
  84944. return _this._stylesheet0$_includeRule$1(start);
  84945. case "warn":
  84946. return _this._stylesheet0$_warnRule$1(start);
  84947. case "while":
  84948. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
  84949. default:
  84950. return _this._stylesheet0$_disallowedAtRule$1(start);
  84951. }
  84952. },
  84953. _stylesheet0$_functionChild$0: function() {
  84954. var state, variableDeclarationError, statement, t2, namespace, exception, t3, start, value, _this = this,
  84955. t1 = _this.scanner;
  84956. if (t1.peekChar$0() !== 64) {
  84957. t2 = t1._string_scanner$_position;
  84958. state = new S._SpanScannerState(t1, t2);
  84959. try {
  84960. namespace = _this.identifier$0();
  84961. t1.expectChar$1(46);
  84962. t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new S._SpanScannerState(t1, t2));
  84963. return t2;
  84964. } catch (exception) {
  84965. t2 = H.unwrapException(exception);
  84966. t3 = type$.legacy_SourceSpanFormatException;
  84967. if (t3._is(t2)) {
  84968. variableDeclarationError = t2;
  84969. t1.set$state(state);
  84970. statement = null;
  84971. try {
  84972. statement = _this._stylesheet0$_declarationOrStyleRule$0();
  84973. } catch (exception) {
  84974. if (t3._is(H.unwrapException(exception)))
  84975. throw H.wrapException(variableDeclarationError);
  84976. else
  84977. throw exception;
  84978. }
  84979. _this.error$2(0, "@function rules may not contain " + (statement instanceof X.StyleRule0 ? "style rules" : "declarations") + ".", statement.get$span());
  84980. } else
  84981. throw exception;
  84982. }
  84983. }
  84984. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  84985. switch (_this._stylesheet0$_plainAtRuleName$0()) {
  84986. case "debug":
  84987. return _this._stylesheet0$_debugRule$1(start);
  84988. case "each":
  84989. return _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
  84990. case "else":
  84991. return _this._stylesheet0$_disallowedAtRule$1(start);
  84992. case "error":
  84993. return _this._stylesheet0$_errorRule$1(start);
  84994. case "for":
  84995. return _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
  84996. case "if":
  84997. return _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
  84998. case "return":
  84999. value = _this.expression$0();
  85000. _this.expectStatementSeparator$1("@return rule");
  85001. return new B.ReturnRule0(value, t1.spanFrom$1(start));
  85002. case "warn":
  85003. return _this._stylesheet0$_warnRule$1(start);
  85004. case "while":
  85005. return _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
  85006. default:
  85007. return _this._stylesheet0$_disallowedAtRule$1(start);
  85008. }
  85009. },
  85010. _stylesheet0$_plainAtRuleName$0: function() {
  85011. this.scanner.expectChar$2$name(64, "@-rule");
  85012. var $name = this.identifier$0();
  85013. this.whitespace$0();
  85014. return $name;
  85015. },
  85016. _stylesheet0$_atRootRule$1: function(start) {
  85017. var query, _this = this,
  85018. t1 = _this.scanner;
  85019. if (t1.peekChar$0() === 40) {
  85020. query = _this._stylesheet0$_atRootQuery$0();
  85021. _this.whitespace$0();
  85022. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure1(query));
  85023. } else if (_this.lookingAtChildren$0())
  85024. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__atRootRule_closure2());
  85025. else
  85026. return V.AtRootRule$0(H.setRuntimeTypeInfo([_this._stylesheet0$_styleRule$0()], type$.JSArray_legacy_Statement_2), t1.spanFrom$1(start), null);
  85027. },
  85028. _stylesheet0$_atRootQuery$0: function() {
  85029. var interpolation, t2, t3, t4, buffer, t5, _this = this,
  85030. t1 = _this.scanner;
  85031. if (t1.peekChar$0() === 35) {
  85032. interpolation = _this.singleInterpolation$0();
  85033. return X.Interpolation$0(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  85034. }
  85035. t2 = t1._string_scanner$_position;
  85036. t3 = new P.StringBuffer("");
  85037. t4 = [];
  85038. buffer = new Z.InterpolationBuffer0(t3, t4);
  85039. t1.expectChar$1(40);
  85040. t3._contents += H.Primitives_stringFromCharCode(40);
  85041. _this.whitespace$0();
  85042. t5 = _this.expression$0();
  85043. buffer._interpolation_buffer0$_flushText$0();
  85044. t4.push(t5);
  85045. if (t1.scanChar$1(58)) {
  85046. _this.whitespace$0();
  85047. t3._contents += H.Primitives_stringFromCharCode(58);
  85048. t3._contents += H.Primitives_stringFromCharCode(32);
  85049. t5 = _this.expression$0();
  85050. buffer._interpolation_buffer0$_flushText$0();
  85051. t4.push(t5);
  85052. }
  85053. t1.expectChar$1(41);
  85054. _this.whitespace$0();
  85055. t3._contents += H.Primitives_stringFromCharCode(41);
  85056. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  85057. },
  85058. _stylesheet0$_contentRule$1: function(start) {
  85059. var t1, $arguments, t2, t3, _this = this;
  85060. if (!_this._stylesheet0$_inMixin)
  85061. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  85062. _this.whitespace$0();
  85063. t1 = _this.scanner;
  85064. if (t1.peekChar$0() === 40)
  85065. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  85066. else {
  85067. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  85068. t3 = t2.offset;
  85069. $arguments = X.ArgumentInvocation$empty0(Y._FileSpan$(t2.file, t3, t3));
  85070. }
  85071. _this._stylesheet0$_mixinHasContent = true;
  85072. _this.expectStatementSeparator$1("@content rule");
  85073. return new Q.ContentRule0(t1.spanFrom$1(start), $arguments);
  85074. },
  85075. _stylesheet0$_debugRule$1: function(start) {
  85076. var value = this.expression$0();
  85077. this.expectStatementSeparator$1("@debug rule");
  85078. return new Q.DebugRule0(value, this.scanner.spanFrom$1(start));
  85079. },
  85080. _stylesheet0$_eachRule$2: function(start, child) {
  85081. var variables, t1, _this = this,
  85082. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  85083. _this._stylesheet0$_inControlDirective = true;
  85084. variables = H.setRuntimeTypeInfo([_this.variableName$0()], type$.JSArray_legacy_String);
  85085. _this.whitespace$0();
  85086. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  85087. _this.whitespace$0();
  85088. t1.expectChar$1(36);
  85089. variables.push(_this.identifier$1$normalize(true));
  85090. _this.whitespace$0();
  85091. }
  85092. _this.expectIdentifier$1("in");
  85093. _this.whitespace$0();
  85094. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this.expression$0()));
  85095. },
  85096. _stylesheet0$_errorRule$1: function(start) {
  85097. var value = this.expression$0();
  85098. this.expectStatementSeparator$1("@error rule");
  85099. return new D.ErrorRule0(value, this.scanner.spanFrom$1(start));
  85100. },
  85101. _stylesheet0$_functionRule$1: function(start) {
  85102. var $name, $arguments, _this = this,
  85103. precedingComment = _this.lastSilentComment;
  85104. _this.lastSilentComment = null;
  85105. $name = _this.identifier$1$normalize(true);
  85106. _this.whitespace$0();
  85107. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  85108. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  85109. _this.error$2(0, string$.Mixinscf, _this.scanner.spanFrom$1(start));
  85110. else if (_this._stylesheet0$_inControlDirective)
  85111. _this.error$2(0, string$.Functi, _this.scanner.spanFrom$1(start));
  85112. switch (B.unvendor0($name)) {
  85113. case "calc":
  85114. case "element":
  85115. case "expression":
  85116. case "url":
  85117. case "and":
  85118. case "or":
  85119. case "not":
  85120. case "clamp":
  85121. _this.error$2(0, "Invalid function name.", _this.scanner.spanFrom$1(start));
  85122. break;
  85123. }
  85124. _this.whitespace$0();
  85125. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new V.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
  85126. },
  85127. _stylesheet0$_forRule$2: function(start, child) {
  85128. var variable, from, _this = this, t1 = {},
  85129. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  85130. _this._stylesheet0$_inControlDirective = true;
  85131. variable = _this.variableName$0();
  85132. _this.whitespace$0();
  85133. _this.expectIdentifier$1("from");
  85134. _this.whitespace$0();
  85135. t1.exclusive = null;
  85136. from = _this.expression$1$until(new V.StylesheetParser__forRule_closure1(t1, _this));
  85137. if (t1.exclusive == null)
  85138. _this.scanner.error$1(0, 'Expected "to" or "through".');
  85139. _this.whitespace$0();
  85140. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this.expression$0()));
  85141. },
  85142. _stylesheet0$_forwardRule$1: function(start) {
  85143. var prefix, members, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  85144. url = _this._stylesheet0$_urlString$0();
  85145. _this.whitespace$0();
  85146. if (_this.scanIdentifier$1("as")) {
  85147. _this.whitespace$0();
  85148. prefix = _this.identifier$1$normalize(true);
  85149. _this.scanner.expectChar$1(42);
  85150. _this.whitespace$0();
  85151. } else
  85152. prefix = _null;
  85153. if (_this.scanIdentifier$1("show")) {
  85154. members = _this._stylesheet0$_memberList$0();
  85155. shownMixinsAndFunctions = members.item1;
  85156. shownVariables = members.item2;
  85157. hiddenVariables = _null;
  85158. hiddenMixinsAndFunctions = hiddenVariables;
  85159. } else {
  85160. if (_this.scanIdentifier$1("hide")) {
  85161. members = _this._stylesheet0$_memberList$0();
  85162. hiddenMixinsAndFunctions = members.item1;
  85163. hiddenVariables = members.item2;
  85164. } else {
  85165. hiddenVariables = _null;
  85166. hiddenMixinsAndFunctions = hiddenVariables;
  85167. }
  85168. shownVariables = _null;
  85169. shownMixinsAndFunctions = shownVariables;
  85170. }
  85171. configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
  85172. _this.expectStatementSeparator$1("@forward rule");
  85173. span = _this.scanner.spanFrom$1(start);
  85174. if (!_this._stylesheet0$_isUseAllowed)
  85175. _this.error$2(0, string$.x40forwa, span);
  85176. if (shownMixinsAndFunctions != null) {
  85177. t1 = type$.legacy_String;
  85178. t2 = P.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  85179. t3 = type$.UnmodifiableSetView_legacy_String;
  85180. t1 = P.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  85181. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2);
  85182. return new L.ForwardRule0(url, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), _null, _null, prefix, t4, span);
  85183. } else if (hiddenMixinsAndFunctions != null) {
  85184. t1 = type$.legacy_String;
  85185. t2 = P.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  85186. t3 = type$.UnmodifiableSetView_legacy_String;
  85187. t1 = P.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  85188. t4 = configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2);
  85189. return new L.ForwardRule0(url, _null, _null, new L.UnmodifiableSetView(t2, t3), new L.UnmodifiableSetView(t1, t3), prefix, t4, span);
  85190. } else
  85191. return new L.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? C.List_empty18 : P.List_List$unmodifiable(configuration, type$.legacy_ConfiguredVariable_2), span);
  85192. },
  85193. _stylesheet0$_memberList$0: function() {
  85194. var _this = this,
  85195. t1 = type$.legacy_String,
  85196. identifiers = P.LinkedHashSet_LinkedHashSet$_empty(t1),
  85197. variables = P.LinkedHashSet_LinkedHashSet$_empty(t1);
  85198. t1 = _this.scanner;
  85199. do {
  85200. _this.whitespace$0();
  85201. _this.withErrorMessage$2(string$.Expect, new V.StylesheetParser__memberList_closure0(_this, variables, identifiers));
  85202. _this.whitespace$0();
  85203. } while (t1.scanChar$1(44));
  85204. return new S.Tuple2(identifiers, variables, type$.Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String);
  85205. },
  85206. _stylesheet0$_ifRule$2: function(start, child) {
  85207. var condition, children, clauses, lastClause, span, _this = this,
  85208. ifIndentation = _this.get$currentIndentation(),
  85209. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  85210. _this._stylesheet0$_inControlDirective = true;
  85211. condition = _this.expression$0();
  85212. children = _this.children$1(0, child);
  85213. _this.whitespaceWithoutComments$0();
  85214. clauses = H.setRuntimeTypeInfo([V.IfClause$0(condition, children)], type$.JSArray_legacy_IfClause_2);
  85215. while (true) {
  85216. if (!_this.scanElse$1(ifIndentation)) {
  85217. lastClause = null;
  85218. break;
  85219. }
  85220. _this.whitespace$0();
  85221. if (_this.scanIdentifier$1("if")) {
  85222. _this.whitespace$0();
  85223. clauses.push(V.IfClause$0(_this.expression$0(), _this.children$1(0, child)));
  85224. } else {
  85225. lastClause = V.IfClause$last0(_this.children$1(0, child));
  85226. break;
  85227. }
  85228. }
  85229. _this._stylesheet0$_inControlDirective = wasInControlDirective;
  85230. span = _this.scanner.spanFrom$1(start);
  85231. _this.whitespaceWithoutComments$0();
  85232. return new V.IfRule0(P.List_List$unmodifiable(clauses, type$.legacy_IfClause_2), lastClause, span);
  85233. },
  85234. _stylesheet0$_importRule$1: function(start) {
  85235. var argument, _this = this,
  85236. imports = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Import_2),
  85237. t1 = _this.scanner;
  85238. do {
  85239. _this.whitespace$0();
  85240. argument = _this.importArgument$0();
  85241. if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && argument instanceof B.DynamicImport0)
  85242. _this._stylesheet0$_disallowedAtRule$1(start);
  85243. imports.push(argument);
  85244. _this.whitespace$0();
  85245. } while (t1.scanChar$1(44));
  85246. _this.expectStatementSeparator$1("@import rule");
  85247. t1 = t1.spanFrom$1(start);
  85248. return new B.ImportRule0(P.List_List$unmodifiable(imports, type$.legacy_Import_2), t1);
  85249. },
  85250. importArgument$0: function() {
  85251. var url, urlSpan, innerError, queries, t2, t3, t4, exception, _this = this, _null = null,
  85252. t1 = _this.scanner,
  85253. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  85254. next = t1.peekChar$0();
  85255. if (next === 117 || next === 85) {
  85256. url = _this.dynamicUrl$0();
  85257. _this.whitespace$0();
  85258. queries = _this.tryImportQueries$0();
  85259. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([url], type$.JSArray_legacy_Object), t1.spanFrom$1(start));
  85260. t1 = t1.spanFrom$1(start);
  85261. t3 = queries == null;
  85262. t4 = t3 ? _null : queries.item1;
  85263. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  85264. }
  85265. url = _this.string$0();
  85266. urlSpan = t1.spanFrom$1(start);
  85267. _this.whitespace$0();
  85268. queries = _this.tryImportQueries$0();
  85269. if (_this.isPlainImportUrl$1(url) || queries != null) {
  85270. t2 = urlSpan;
  85271. t2 = X.Interpolation$0(H.setRuntimeTypeInfo([P.String_String$fromCharCodes(C.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null)], type$.JSArray_legacy_Object), urlSpan);
  85272. t1 = t1.spanFrom$1(start);
  85273. t3 = queries == null;
  85274. t4 = t3 ? _null : queries.item1;
  85275. return new Q.StaticImport0(t2, t4, t3 ? _null : queries.item2, t1);
  85276. } else
  85277. try {
  85278. t1 = _this.parseImportUrl$1(url);
  85279. return new B.DynamicImport0(t1, urlSpan);
  85280. } catch (exception) {
  85281. t1 = H.unwrapException(exception);
  85282. if (type$.legacy_FormatException._is(t1)) {
  85283. innerError = t1;
  85284. _this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), urlSpan);
  85285. } else
  85286. throw exception;
  85287. }
  85288. },
  85289. parseImportUrl$1: function(url) {
  85290. var t1 = $.$get$windows();
  85291. if (t1.style.rootLength$1(url) > 0)
  85292. return t1.toUri$1(url).toString$0(0);
  85293. P.Uri_parse(url);
  85294. return url;
  85295. },
  85296. isPlainImportUrl$1: function(url) {
  85297. var first;
  85298. if (url.length < 5)
  85299. return false;
  85300. if (C.JSString_methods.endsWith$1(url, ".css"))
  85301. return true;
  85302. first = C.JSString_methods._codeUnitAt$1(url, 0);
  85303. if (first === 47)
  85304. return C.JSString_methods._codeUnitAt$1(url, 1) === 47;
  85305. if (first !== 104)
  85306. return false;
  85307. return C.JSString_methods.startsWith$1(url, "http://") || C.JSString_methods.startsWith$1(url, "https://");
  85308. },
  85309. tryImportQueries$0: function() {
  85310. var t1, start, supports, $name, media, _this = this;
  85311. if (_this.scanIdentifier$1("supports")) {
  85312. t1 = _this.scanner;
  85313. t1.expectChar$1(40);
  85314. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  85315. if (_this.scanIdentifier$1("not")) {
  85316. _this.whitespace$0();
  85317. supports = new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(start));
  85318. } else if (t1.peekChar$0() === 40)
  85319. supports = _this._stylesheet0$_supportsCondition$0();
  85320. else {
  85321. $name = _this.expression$0();
  85322. t1.expectChar$1(58);
  85323. _this.whitespace$0();
  85324. supports = new L.SupportsDeclaration0($name, _this.expression$0(), t1.spanFrom$1(start));
  85325. }
  85326. t1.expectChar$1(41);
  85327. _this.whitespace$0();
  85328. } else
  85329. supports = null;
  85330. media = _this._stylesheet0$_lookingAtInterpolatedIdentifier$0() || _this.scanner.peekChar$0() === 40 ? _this._stylesheet0$_mediaQueryList$0() : null;
  85331. if (supports == null && media == null)
  85332. return null;
  85333. return new S.Tuple2(supports, media, type$.Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation_2);
  85334. },
  85335. _stylesheet0$_includeRule$1: function(start) {
  85336. var name0, namespace, $arguments, t3, t4, wasInContentBlock, $content, _this = this, _null = null, t1 = {},
  85337. $name = _this.identifier$0(),
  85338. t2 = _this.scanner;
  85339. if (t2.scanChar$1(46)) {
  85340. name0 = _this._stylesheet0$_publicIdentifier$0();
  85341. namespace = $name;
  85342. $name = name0;
  85343. } else {
  85344. $name = H.stringReplaceAllUnchecked($name, "_", "-");
  85345. namespace = _null;
  85346. }
  85347. _this.whitespace$0();
  85348. if (t2.peekChar$0() === 40)
  85349. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  85350. else {
  85351. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  85352. t4 = t3.offset;
  85353. $arguments = X.ArgumentInvocation$empty0(Y._FileSpan$(t3.file, t4, t4));
  85354. }
  85355. _this.whitespace$0();
  85356. t1.contentArguments = null;
  85357. if (_this.scanIdentifier$1("using")) {
  85358. _this.whitespace$0();
  85359. t3 = t1.contentArguments = _this._stylesheet0$_argumentDeclaration$0();
  85360. _this.whitespace$0();
  85361. } else
  85362. t3 = _null;
  85363. t3 = t3 == null;
  85364. if (!t3 || _this.lookingAtChildren$0()) {
  85365. if (t3) {
  85366. t3 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  85367. t4 = t3.offset;
  85368. t1.contentArguments = new B.ArgumentDeclaration0(C.List_empty20, _null, Y._FileSpan$(t3.file, t4, t4));
  85369. }
  85370. wasInContentBlock = _this._stylesheet0$_inContentBlock;
  85371. _this._stylesheet0$_inContentBlock = true;
  85372. $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__includeRule_closure0(t1));
  85373. _this._stylesheet0$_inContentBlock = wasInContentBlock;
  85374. } else {
  85375. _this.expectStatementSeparator$0();
  85376. $content = _null;
  85377. }
  85378. t1 = t2.spanFrom$2(start, start);
  85379. return new A.IncludeRule0(namespace, $name, $arguments, $content, t1.expand$1(0, ($content == null ? $arguments : $content).get$span()));
  85380. },
  85381. mediaRule$1: function(start) {
  85382. return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
  85383. },
  85384. _stylesheet0$_mixinRule$1: function(start) {
  85385. var $name, t1, $arguments, t2, t3, _this = this,
  85386. precedingComment = _this.lastSilentComment;
  85387. _this.lastSilentComment = null;
  85388. $name = _this.identifier$1$normalize(true);
  85389. _this.whitespace$0();
  85390. t1 = _this.scanner;
  85391. if (t1.peekChar$0() === 40)
  85392. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  85393. else {
  85394. t2 = Y.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  85395. t3 = t2.offset;
  85396. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t2.file, t3, t3));
  85397. }
  85398. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  85399. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  85400. else if (_this._stylesheet0$_inControlDirective)
  85401. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  85402. _this.whitespace$0();
  85403. _this._stylesheet0$_inMixin = true;
  85404. _this._stylesheet0$_mixinHasContent = false;
  85405. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
  85406. },
  85407. mozDocumentRule$2: function(start, $name) {
  85408. var t5, t6, identifier, contents, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {},
  85409. t1 = _this.scanner,
  85410. t2 = t1._string_scanner$_position,
  85411. t3 = new P.StringBuffer(""),
  85412. t4 = [],
  85413. buffer = new Z.InterpolationBuffer0(t3, t4);
  85414. _box_0.needsDeprecationWarning = false;
  85415. for (t5 = _this.get$whitespace(); true;) {
  85416. if (t1.peekChar$0() === 35) {
  85417. t6 = _this.singleInterpolation$0();
  85418. buffer._interpolation_buffer0$_flushText$0();
  85419. t4.push(t6);
  85420. _box_0.needsDeprecationWarning = true;
  85421. } else {
  85422. t6 = t1._string_scanner$_position;
  85423. identifier = _this.identifier$0();
  85424. switch (identifier) {
  85425. case "url":
  85426. case "url-prefix":
  85427. case "domain":
  85428. contents = _this._stylesheet0$_tryUrlContents$2$name(new S._SpanScannerState(t1, t6), identifier);
  85429. if (contents != null)
  85430. buffer.addInterpolation$1(contents);
  85431. else {
  85432. t1.expectChar$1(40);
  85433. _this.whitespace$0();
  85434. argument = _this.interpolatedString$0();
  85435. t1.expectChar$1(41);
  85436. t3._contents += identifier;
  85437. t3._contents += H.Primitives_stringFromCharCode(40);
  85438. buffer.addInterpolation$1(argument.asInterpolation$0());
  85439. t3._contents += H.Primitives_stringFromCharCode(41);
  85440. }
  85441. t6 = t3._contents;
  85442. trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
  85443. if (!C.JSString_methods.endsWith$1(trailing, "url-prefix()") && !C.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !C.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  85444. _box_0.needsDeprecationWarning = true;
  85445. break;
  85446. case "regexp":
  85447. t3._contents += "regexp(";
  85448. t1.expectChar$1(40);
  85449. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  85450. t1.expectChar$1(41);
  85451. t3._contents += H.Primitives_stringFromCharCode(41);
  85452. _box_0.needsDeprecationWarning = true;
  85453. break;
  85454. default:
  85455. endPosition = t1._string_scanner$_position;
  85456. t7 = t1._sourceFile;
  85457. t8 = new Y._FileSpan(t7, t6, endPosition);
  85458. t8._FileSpan$3(t7, t6, endPosition);
  85459. _this.error$2(0, "Invalid function name.", t8);
  85460. }
  85461. }
  85462. _this.whitespace$0();
  85463. if (!t1.scanChar$1(44))
  85464. break;
  85465. t3._contents += H.Primitives_stringFromCharCode(44);
  85466. start0 = t1._string_scanner$_position;
  85467. t5.call$0();
  85468. end = t1._string_scanner$_position;
  85469. t3._contents += J.substring$2$s(t1.string, start0, end);
  85470. }
  85471. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)))));
  85472. },
  85473. supportsRule$1: function(start) {
  85474. var _this = this,
  85475. condition = _this._stylesheet0$_supportsCondition$0();
  85476. _this.whitespace$0();
  85477. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_supportsRule_closure0(condition));
  85478. },
  85479. _stylesheet0$_useNamespace$2: function(url, start) {
  85480. var namespace, basename, dot, t1, exception, _this = this;
  85481. if (_this.scanIdentifier$1("as")) {
  85482. _this.whitespace$0();
  85483. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  85484. }
  85485. basename = url.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(url.get$pathSegments());
  85486. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  85487. t1 = C.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  85488. namespace = C.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  85489. try {
  85490. t1 = S.SpanScanner$(namespace, null);
  85491. t1 = new G.Parser1(t1, _this.logger)._parser$_parseIdentifier$0();
  85492. return t1;
  85493. } catch (exception) {
  85494. if (H.unwrapException(exception) instanceof E.SassFormatException0)
  85495. _this.error$2(0, 'Invalid Sass identifier "' + H.S(namespace) + '"', _this.scanner.spanFrom$1(start));
  85496. else
  85497. throw exception;
  85498. }
  85499. },
  85500. _stylesheet0$_configuration$1$allowGuarded: function(allowGuarded) {
  85501. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
  85502. if (!_this.scanIdentifier$1("with"))
  85503. return null;
  85504. variableNames = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  85505. configuration = H.setRuntimeTypeInfo([], type$.JSArray_legacy_ConfiguredVariable_2);
  85506. _this.whitespace$0();
  85507. t1 = _this.scanner;
  85508. t1.expectChar$1(40);
  85509. for (; true;) {
  85510. _this.whitespace$0();
  85511. t2 = t1._string_scanner$_position;
  85512. t1.expectChar$1(36);
  85513. $name = _this.identifier$1$normalize(true);
  85514. _this.whitespace$0();
  85515. t1.expectChar$1(58);
  85516. _this.whitespace$0();
  85517. expression = _this._stylesheet0$_expressionUntilComma$0();
  85518. t3 = t1._string_scanner$_position;
  85519. if (allowGuarded && t1.scanChar$1(33))
  85520. if (_this.identifier$0() === "default")
  85521. guarded = true;
  85522. else {
  85523. endPosition = t1._string_scanner$_position;
  85524. t4 = t1._sourceFile;
  85525. t5 = new Y._FileSpan(t4, t3, endPosition);
  85526. t5._FileSpan$3(t4, t3, endPosition);
  85527. _this.error$2(0, "Invalid flag name.", t5);
  85528. guarded = false;
  85529. }
  85530. else
  85531. guarded = false;
  85532. endPosition = t1._string_scanner$_position;
  85533. t3 = t1._sourceFile;
  85534. span = new Y._FileSpan(t3, t2, endPosition);
  85535. span._FileSpan$3(t3, t2, endPosition);
  85536. if (variableNames.contains$1(0, $name))
  85537. _this.error$2(0, string$.The_sa, span);
  85538. variableNames.add$1(0, $name);
  85539. configuration.push(new Z.ConfiguredVariable0($name, expression, guarded, span));
  85540. if (!t1.scanChar$1(44))
  85541. break;
  85542. _this.whitespace$0();
  85543. if (!_this._stylesheet0$_lookingAtExpression$0())
  85544. break;
  85545. }
  85546. t1.expectChar$1(41);
  85547. return configuration;
  85548. },
  85549. _stylesheet0$_configuration$0: function() {
  85550. return this._stylesheet0$_configuration$1$allowGuarded(false);
  85551. },
  85552. _stylesheet0$_warnRule$1: function(start) {
  85553. var value = this.expression$0();
  85554. this.expectStatementSeparator$1("@warn rule");
  85555. return new Y.WarnRule0(value, this.scanner.spanFrom$1(start));
  85556. },
  85557. _stylesheet0$_whileRule$2: function(start, child) {
  85558. var _this = this,
  85559. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  85560. _this._stylesheet0$_inControlDirective = true;
  85561. return _this._stylesheet0$_withChildren$3(child, start, new V.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this.expression$0()));
  85562. },
  85563. unknownAtRule$2: function(start, $name) {
  85564. var t2, t3, rule, _this = this, t1 = {},
  85565. wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
  85566. _this._stylesheet0$_inUnknownAtRule = true;
  85567. t1.value = null;
  85568. t2 = _this.scanner;
  85569. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this.almostAnyValue$0() : null;
  85570. if (_this.lookingAtChildren$0())
  85571. rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new V.StylesheetParser_unknownAtRule_closure0(t1, $name));
  85572. else {
  85573. _this.expectStatementSeparator$0();
  85574. rule = U.AtRule$0($name, t2.spanFrom$1(start), null, t3);
  85575. }
  85576. _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
  85577. return rule;
  85578. },
  85579. _stylesheet0$_disallowedAtRule$1: function(start) {
  85580. this.almostAnyValue$0();
  85581. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  85582. },
  85583. _stylesheet0$_argumentDeclaration$0: function() {
  85584. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
  85585. t1 = _this.scanner,
  85586. t2 = t1._string_scanner$_position;
  85587. t1.expectChar$1(40);
  85588. _this.whitespace$0();
  85589. $arguments = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Argument_2);
  85590. named = P.LinkedHashSet_LinkedHashSet$_empty(type$.legacy_String);
  85591. while (true) {
  85592. if (!(t1.peekChar$0() === 36)) {
  85593. restArgument = null;
  85594. break;
  85595. }
  85596. t3 = t1._string_scanner$_position;
  85597. t1.expectChar$1(36);
  85598. $name = _this.identifier$1$normalize(true);
  85599. _this.whitespace$0();
  85600. if (t1.scanChar$1(58)) {
  85601. _this.whitespace$0();
  85602. defaultValue = _this._stylesheet0$_expressionUntilComma$0();
  85603. } else {
  85604. if (t1.scanChar$1(46)) {
  85605. t1.expectChar$1(46);
  85606. t1.expectChar$1(46);
  85607. _this.whitespace$0();
  85608. restArgument = $name;
  85609. break;
  85610. }
  85611. defaultValue = null;
  85612. }
  85613. endPosition = t1._string_scanner$_position;
  85614. t4 = t1._sourceFile;
  85615. t5 = new Y._FileSpan(t4, t3, endPosition);
  85616. t5._FileSpan$3(t4, t3, endPosition);
  85617. $arguments.push(new Z.Argument0($name, defaultValue, t5));
  85618. if (!named.add$1(0, $name))
  85619. _this.error$2(0, "Duplicate argument.", C.JSArray_methods.get$last($arguments).span);
  85620. if (!t1.scanChar$1(44)) {
  85621. restArgument = null;
  85622. break;
  85623. }
  85624. _this.whitespace$0();
  85625. }
  85626. t1.expectChar$1(41);
  85627. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  85628. return new B.ArgumentDeclaration0(P.List_List$unmodifiable($arguments, type$.legacy_Argument_2), restArgument, t1);
  85629. },
  85630. _stylesheet0$_argumentInvocation$1$mixin: function(mixin) {
  85631. var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, _this = this,
  85632. t1 = _this.scanner,
  85633. t2 = t1._string_scanner$_position;
  85634. t1.expectChar$1(40);
  85635. _this.whitespace$0();
  85636. positional = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  85637. t3 = type$.legacy_String;
  85638. t4 = type$.legacy_Expression_2;
  85639. named = P.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  85640. t5 = !mixin;
  85641. rest = null;
  85642. while (true) {
  85643. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  85644. keywordRest = null;
  85645. break;
  85646. }
  85647. expression = _this._stylesheet0$_expressionUntilComma$1$singleEquals(t5);
  85648. _this.whitespace$0();
  85649. if (expression instanceof S.VariableExpression0 && t1.scanChar$1(58)) {
  85650. _this.whitespace$0();
  85651. t6 = expression.name;
  85652. if (named.containsKey$1(t6))
  85653. _this.error$2(0, "Duplicate argument.", expression.span);
  85654. named.$indexSet(0, t6, _this._stylesheet0$_expressionUntilComma$1$singleEquals(t5));
  85655. } else if (t1.scanChar$1(46)) {
  85656. t1.expectChar$1(46);
  85657. t1.expectChar$1(46);
  85658. if (rest != null) {
  85659. _this.whitespace$0();
  85660. keywordRest = expression;
  85661. break;
  85662. }
  85663. rest = expression;
  85664. } else if (named.get$isNotEmpty(named))
  85665. _this.error$2(0, string$.Positi, expression.get$span());
  85666. else
  85667. positional.push(expression);
  85668. _this.whitespace$0();
  85669. if (!t1.scanChar$1(44)) {
  85670. keywordRest = null;
  85671. break;
  85672. }
  85673. _this.whitespace$0();
  85674. }
  85675. t1.expectChar$1(41);
  85676. t1 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  85677. return new X.ArgumentInvocation0(P.List_List$unmodifiable(positional, t4), H.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  85678. },
  85679. _stylesheet0$_argumentInvocation$0: function() {
  85680. return this._stylesheet0$_argumentInvocation$1$mixin(false);
  85681. },
  85682. expression$3$bracketList$singleEquals$until: function(bracketList, singleEquals, until) {
  85683. var t2, beforeBracket, t3, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, first, next, t4, _this = this,
  85684. _s20_ = "Expected expression.",
  85685. _box_0 = {},
  85686. t1 = until != null;
  85687. if (t1 && until.call$0())
  85688. _this.scanner.error$1(0, _s20_);
  85689. if (bracketList) {
  85690. t2 = _this.scanner;
  85691. beforeBracket = new S._SpanScannerState(t2, t2._string_scanner$_position);
  85692. t2.expectChar$1(91);
  85693. _this.whitespace$0();
  85694. if (t2.scanChar$1(93))
  85695. return D.ListExpression$0(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2), C.ListSeparator_undecided0, true, t2.spanFrom$1(beforeBracket));
  85696. } else
  85697. beforeBracket = null;
  85698. t2 = _this.scanner;
  85699. t3 = t2._string_scanner$_position;
  85700. wasInParentheses = _this._stylesheet0$_inParentheses;
  85701. _box_0.operands = _box_0.operators = _box_0.spaceExpressions = _box_0.commaExpressions = null;
  85702. _box_0.allowSlash = _this.lookingAtNumber$0();
  85703. _box_0.singleExpression = _this._stylesheet0$_singleExpression$0();
  85704. resetState = new V.StylesheetParser_expression_resetState0(_box_0, _this, new S._SpanScannerState(t2, t3));
  85705. resolveOneOperation = new V.StylesheetParser_expression_resolveOneOperation0(_box_0, _this);
  85706. resolveOperations = new V.StylesheetParser_expression_resolveOperations0(_box_0, resolveOneOperation);
  85707. addSingleExpression = new V.StylesheetParser_expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
  85708. addOperator = new V.StylesheetParser_expression_addOperator0(_box_0, _this, resolveOneOperation);
  85709. resolveSpaceExpressions = new V.StylesheetParser_expression_resolveSpaceExpressions0(_box_0, resolveOperations);
  85710. $label0$0:
  85711. for (t3 = type$.JSArray_legacy_Expression_2; true;) {
  85712. _this.whitespace$0();
  85713. if (t1 && until.call$0())
  85714. break $label0$0;
  85715. first = t2.peekChar$0();
  85716. switch (first) {
  85717. case 40:
  85718. addSingleExpression.call$1(_this._stylesheet0$_parentheses$0());
  85719. break;
  85720. case 91:
  85721. addSingleExpression.call$1(_this.expression$1$bracketList(true));
  85722. break;
  85723. case 36:
  85724. addSingleExpression.call$1(_this._stylesheet0$_variable$0());
  85725. break;
  85726. case 38:
  85727. addSingleExpression.call$1(_this._stylesheet0$_selector$0());
  85728. break;
  85729. case 39:
  85730. case 34:
  85731. addSingleExpression.call$1(_this.interpolatedString$0());
  85732. break;
  85733. case 35:
  85734. addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
  85735. break;
  85736. case 61:
  85737. t2.readChar$0();
  85738. if (singleEquals && t2.peekChar$0() !== 61)
  85739. addOperator.call$1(C.BinaryOperator_kjl0);
  85740. else {
  85741. t2.expectChar$1(61);
  85742. addOperator.call$1(C.BinaryOperator_YlX0);
  85743. }
  85744. break;
  85745. case 33:
  85746. next = t2.peekChar$1(1);
  85747. if (next === 61) {
  85748. t2.readChar$0();
  85749. t2.readChar$0();
  85750. addOperator.call$1(C.BinaryOperator_i5H0);
  85751. } else {
  85752. if (next != null)
  85753. if ((next | 32) !== 105)
  85754. t4 = next === 32 || next === 9 || next === 10 || next === 13 || next === 12;
  85755. else
  85756. t4 = true;
  85757. else
  85758. t4 = true;
  85759. if (t4)
  85760. addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
  85761. else
  85762. break $label0$0;
  85763. }
  85764. break;
  85765. case 60:
  85766. t2.readChar$0();
  85767. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_33h0 : C.BinaryOperator_8qt0);
  85768. break;
  85769. case 62:
  85770. t2.readChar$0();
  85771. addOperator.call$1(t2.scanChar$1(61) ? C.BinaryOperator_1da0 : C.BinaryOperator_AcR1);
  85772. break;
  85773. case 42:
  85774. t2.readChar$0();
  85775. addOperator.call$1(C.BinaryOperator_O1M0);
  85776. break;
  85777. case 43:
  85778. if (_box_0.singleExpression == null)
  85779. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  85780. else {
  85781. t2.readChar$0();
  85782. addOperator.call$1(C.BinaryOperator_AcR2);
  85783. }
  85784. break;
  85785. case 45:
  85786. next = t2.peekChar$1(1);
  85787. if (next != null && next >= 48 && next <= 57 || next === 46)
  85788. if (_box_0.singleExpression != null) {
  85789. t4 = t2.peekChar$1(-1);
  85790. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  85791. } else
  85792. t4 = true;
  85793. else
  85794. t4 = false;
  85795. if (t4)
  85796. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  85797. else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  85798. addSingleExpression.call$1(_this.identifierLike$0());
  85799. else if (_box_0.singleExpression == null)
  85800. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  85801. else {
  85802. t2.readChar$0();
  85803. addOperator.call$1(C.BinaryOperator_iyO0);
  85804. }
  85805. break;
  85806. case 47:
  85807. if (_box_0.singleExpression == null)
  85808. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  85809. else {
  85810. t2.readChar$0();
  85811. addOperator.call$1(C.BinaryOperator_RTB0);
  85812. }
  85813. break;
  85814. case 37:
  85815. t2.readChar$0();
  85816. addOperator.call$1(C.BinaryOperator_2ad0);
  85817. break;
  85818. case 48:
  85819. case 49:
  85820. case 50:
  85821. case 51:
  85822. case 52:
  85823. case 53:
  85824. case 54:
  85825. case 55:
  85826. case 56:
  85827. case 57:
  85828. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  85829. break;
  85830. case 46:
  85831. if (t2.peekChar$1(1) === 46)
  85832. break $label0$0;
  85833. addSingleExpression.call$2$number(_this._stylesheet0$_number$0(), true);
  85834. break;
  85835. case 97:
  85836. if (!_this.get$plainCss() && _this.scanIdentifier$1("and"))
  85837. addOperator.call$1(C.BinaryOperator_and_and_20);
  85838. else
  85839. addSingleExpression.call$1(_this.identifierLike$0());
  85840. break;
  85841. case 111:
  85842. if (!_this.get$plainCss() && _this.scanIdentifier$1("or"))
  85843. addOperator.call$1(C.BinaryOperator_or_or_10);
  85844. else
  85845. addSingleExpression.call$1(_this.identifierLike$0());
  85846. break;
  85847. case 117:
  85848. case 85:
  85849. if (t2.peekChar$1(1) === 43)
  85850. addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
  85851. else
  85852. addSingleExpression.call$1(_this.identifierLike$0());
  85853. break;
  85854. case 98:
  85855. case 99:
  85856. case 100:
  85857. case 101:
  85858. case 102:
  85859. case 103:
  85860. case 104:
  85861. case 105:
  85862. case 106:
  85863. case 107:
  85864. case 108:
  85865. case 109:
  85866. case 110:
  85867. case 112:
  85868. case 113:
  85869. case 114:
  85870. case 115:
  85871. case 116:
  85872. case 118:
  85873. case 119:
  85874. case 120:
  85875. case 121:
  85876. case 122:
  85877. case 65:
  85878. case 66:
  85879. case 67:
  85880. case 68:
  85881. case 69:
  85882. case 70:
  85883. case 71:
  85884. case 72:
  85885. case 73:
  85886. case 74:
  85887. case 75:
  85888. case 76:
  85889. case 77:
  85890. case 78:
  85891. case 79:
  85892. case 80:
  85893. case 81:
  85894. case 82:
  85895. case 83:
  85896. case 84:
  85897. case 86:
  85898. case 87:
  85899. case 88:
  85900. case 89:
  85901. case 90:
  85902. case 95:
  85903. case 92:
  85904. addSingleExpression.call$1(_this.identifierLike$0());
  85905. break;
  85906. case 44:
  85907. if (_this._stylesheet0$_inParentheses) {
  85908. _this._stylesheet0$_inParentheses = false;
  85909. if (_box_0.allowSlash) {
  85910. resetState.call$0();
  85911. break;
  85912. }
  85913. }
  85914. if (_box_0.commaExpressions == null)
  85915. _box_0.commaExpressions = H.setRuntimeTypeInfo([], t3);
  85916. if (_box_0.singleExpression == null)
  85917. t2.error$1(0, _s20_);
  85918. resolveSpaceExpressions.call$0();
  85919. _box_0.commaExpressions.push(_box_0.singleExpression);
  85920. t2.readChar$0();
  85921. _box_0.allowSlash = true;
  85922. _box_0.singleExpression = null;
  85923. break;
  85924. default:
  85925. if (first != null && first >= 128) {
  85926. addSingleExpression.call$1(_this.identifierLike$0());
  85927. break;
  85928. } else
  85929. break $label0$0;
  85930. }
  85931. }
  85932. if (bracketList)
  85933. t2.expectChar$1(93);
  85934. if (_box_0.commaExpressions != null) {
  85935. resolveSpaceExpressions.call$0();
  85936. _this._stylesheet0$_inParentheses = wasInParentheses;
  85937. t1 = _box_0.singleExpression;
  85938. if (t1 != null)
  85939. _box_0.commaExpressions.push(t1);
  85940. t1 = _box_0.commaExpressions;
  85941. return D.ListExpression$0(t1, C.ListSeparator_comma0, bracketList, bracketList ? t2.spanFrom$1(beforeBracket) : null);
  85942. } else if (bracketList && _box_0.spaceExpressions != null) {
  85943. resolveOperations.call$0();
  85944. t1 = _box_0.spaceExpressions;
  85945. t1.push(_box_0.singleExpression);
  85946. return D.ListExpression$0(t1, C.ListSeparator_space0, true, t2.spanFrom$1(beforeBracket));
  85947. } else {
  85948. resolveSpaceExpressions.call$0();
  85949. if (bracketList)
  85950. _box_0.singleExpression = D.ListExpression$0(H.setRuntimeTypeInfo([_box_0.singleExpression], t3), C.ListSeparator_undecided0, true, t2.spanFrom$1(beforeBracket));
  85951. return _box_0.singleExpression;
  85952. }
  85953. },
  85954. expression$2$singleEquals$until: function(singleEquals, until) {
  85955. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  85956. },
  85957. expression$1$bracketList: function(bracketList) {
  85958. return this.expression$3$bracketList$singleEquals$until(bracketList, false, null);
  85959. },
  85960. expression$0: function() {
  85961. return this.expression$3$bracketList$singleEquals$until(false, false, null);
  85962. },
  85963. expression$1$singleEquals: function(singleEquals) {
  85964. return this.expression$3$bracketList$singleEquals$until(false, singleEquals, null);
  85965. },
  85966. expression$1$until: function(until) {
  85967. return this.expression$3$bracketList$singleEquals$until(false, false, until);
  85968. },
  85969. _stylesheet0$_expressionUntilComma$1$singleEquals: function(singleEquals) {
  85970. return this.expression$2$singleEquals$until(singleEquals, new V.StylesheetParser__expressionUntilComma_closure0(this));
  85971. },
  85972. _stylesheet0$_expressionUntilComma$0: function() {
  85973. return this._stylesheet0$_expressionUntilComma$1$singleEquals(false);
  85974. },
  85975. _stylesheet0$_singleExpression$0: function() {
  85976. var next, _this = this,
  85977. t1 = _this.scanner,
  85978. first = t1.peekChar$0();
  85979. switch (first) {
  85980. case 40:
  85981. return _this._stylesheet0$_parentheses$0();
  85982. case 47:
  85983. return _this._stylesheet0$_unaryOperation$0();
  85984. case 46:
  85985. return _this._stylesheet0$_number$0();
  85986. case 91:
  85987. return _this.expression$1$bracketList(true);
  85988. case 36:
  85989. return _this._stylesheet0$_variable$0();
  85990. case 38:
  85991. return _this._stylesheet0$_selector$0();
  85992. case 39:
  85993. case 34:
  85994. return _this.interpolatedString$0();
  85995. case 35:
  85996. return _this._stylesheet0$_hashExpression$0();
  85997. case 43:
  85998. next = t1.peekChar$1(1);
  85999. return T.isDigit0(next) || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
  86000. case 45:
  86001. return _this._stylesheet0$_minusExpression$0();
  86002. case 33:
  86003. return _this._stylesheet0$_importantExpression$0();
  86004. case 117:
  86005. case 85:
  86006. if (t1.peekChar$1(1) === 43)
  86007. return _this._stylesheet0$_unicodeRange$0();
  86008. else
  86009. return _this.identifierLike$0();
  86010. case 48:
  86011. case 49:
  86012. case 50:
  86013. case 51:
  86014. case 52:
  86015. case 53:
  86016. case 54:
  86017. case 55:
  86018. case 56:
  86019. case 57:
  86020. return _this._stylesheet0$_number$0();
  86021. case 97:
  86022. case 98:
  86023. case 99:
  86024. case 100:
  86025. case 101:
  86026. case 102:
  86027. case 103:
  86028. case 104:
  86029. case 105:
  86030. case 106:
  86031. case 107:
  86032. case 108:
  86033. case 109:
  86034. case 110:
  86035. case 111:
  86036. case 112:
  86037. case 113:
  86038. case 114:
  86039. case 115:
  86040. case 116:
  86041. case 118:
  86042. case 119:
  86043. case 120:
  86044. case 121:
  86045. case 122:
  86046. case 65:
  86047. case 66:
  86048. case 67:
  86049. case 68:
  86050. case 69:
  86051. case 70:
  86052. case 71:
  86053. case 72:
  86054. case 73:
  86055. case 74:
  86056. case 75:
  86057. case 76:
  86058. case 77:
  86059. case 78:
  86060. case 79:
  86061. case 80:
  86062. case 81:
  86063. case 82:
  86064. case 83:
  86065. case 84:
  86066. case 86:
  86067. case 87:
  86068. case 88:
  86069. case 89:
  86070. case 90:
  86071. case 95:
  86072. case 92:
  86073. return _this.identifierLike$0();
  86074. default:
  86075. if (first != null && first >= 128)
  86076. return _this.identifierLike$0();
  86077. t1.error$1(0, "Expected expression.");
  86078. }
  86079. },
  86080. _stylesheet0$_parentheses$0: function() {
  86081. var wasInParentheses, start, first, expressions, t1, _this = this;
  86082. if (_this.get$plainCss())
  86083. _this.scanner.error$2$length(0, "Parentheses aren't allowed in plain CSS.", 1);
  86084. wasInParentheses = _this._stylesheet0$_inParentheses;
  86085. _this._stylesheet0$_inParentheses = true;
  86086. try {
  86087. t1 = _this.scanner;
  86088. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  86089. t1.expectChar$1(40);
  86090. _this.whitespace$0();
  86091. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  86092. t1.expectChar$1(41);
  86093. t1 = D.ListExpression$0(H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2), C.ListSeparator_undecided0, false, t1.spanFrom$1(start));
  86094. return t1;
  86095. }
  86096. first = _this._stylesheet0$_expressionUntilComma$0();
  86097. if (t1.scanChar$1(58)) {
  86098. _this.whitespace$0();
  86099. t1 = _this._stylesheet0$_map$2(first, start);
  86100. return t1;
  86101. }
  86102. if (!t1.scanChar$1(44)) {
  86103. t1.expectChar$1(41);
  86104. t1 = t1.spanFrom$1(start);
  86105. return new T.ParenthesizedExpression0(first, t1);
  86106. }
  86107. _this.whitespace$0();
  86108. expressions = H.setRuntimeTypeInfo([first], type$.JSArray_legacy_Expression_2);
  86109. for (; true;) {
  86110. if (!_this._stylesheet0$_lookingAtExpression$0())
  86111. break;
  86112. J.add$1$ax(expressions, _this._stylesheet0$_expressionUntilComma$0());
  86113. if (!t1.scanChar$1(44))
  86114. break;
  86115. _this.whitespace$0();
  86116. }
  86117. t1.expectChar$1(41);
  86118. t1 = D.ListExpression$0(expressions, C.ListSeparator_comma0, false, t1.spanFrom$1(start));
  86119. return t1;
  86120. } finally {
  86121. _this._stylesheet0$_inParentheses = wasInParentheses;
  86122. }
  86123. },
  86124. _stylesheet0$_map$2: function(first, start) {
  86125. var t2, key, _this = this,
  86126. t1 = type$.Tuple2_of_legacy_Expression_and_legacy_Expression_2,
  86127. pairs = H.setRuntimeTypeInfo([new S.Tuple2(first, _this._stylesheet0$_expressionUntilComma$0(), t1)], type$.JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2);
  86128. for (t2 = _this.scanner; t2.scanChar$1(44);) {
  86129. _this.whitespace$0();
  86130. if (!_this._stylesheet0$_lookingAtExpression$0())
  86131. break;
  86132. key = _this._stylesheet0$_expressionUntilComma$0();
  86133. t2.expectChar$1(58);
  86134. _this.whitespace$0();
  86135. pairs.push(new S.Tuple2(key, _this._stylesheet0$_expressionUntilComma$0(), t1));
  86136. }
  86137. t2.expectChar$1(41);
  86138. t1 = t2.spanFrom$1(start);
  86139. return new A.MapExpression0(P.List_List$unmodifiable(pairs, type$.legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2), t1);
  86140. },
  86141. _stylesheet0$_hashExpression$0: function() {
  86142. var start, first, t2, identifier, buffer, _this = this,
  86143. t1 = _this.scanner;
  86144. if (t1.peekChar$1(1) === 123)
  86145. return _this.identifierLike$0();
  86146. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  86147. t1.expectChar$1(35);
  86148. first = t1.peekChar$0();
  86149. if (first != null && T.isDigit0(first))
  86150. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  86151. t2 = t1._string_scanner$_position;
  86152. identifier = _this.interpolatedIdentifier$0();
  86153. if (_this._stylesheet0$_isHexColor$1(identifier)) {
  86154. t1.set$state(new S._SpanScannerState(t1, t2));
  86155. return new K.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start));
  86156. }
  86157. t2 = new P.StringBuffer("");
  86158. buffer = new Z.InterpolationBuffer0(t2, []);
  86159. t2._contents += H.Primitives_stringFromCharCode(35);
  86160. buffer.addInterpolation$1(identifier);
  86161. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  86162. },
  86163. _stylesheet0$_hexColorContents$1: function(start) {
  86164. var red, green, blue, alpha, digit4, t2, t3, _this = this,
  86165. digit1 = _this._stylesheet0$_hexDigit$0(),
  86166. digit2 = _this._stylesheet0$_hexDigit$0(),
  86167. digit3 = _this._stylesheet0$_hexDigit$0(),
  86168. t1 = _this.scanner;
  86169. if (!T.isHex0(t1.peekChar$0())) {
  86170. red = (digit1 << 4 >>> 0) + digit1;
  86171. green = (digit2 << 4 >>> 0) + digit2;
  86172. blue = (digit3 << 4 >>> 0) + digit3;
  86173. alpha = 1;
  86174. } else {
  86175. digit4 = _this._stylesheet0$_hexDigit$0();
  86176. t2 = digit1 << 4 >>> 0;
  86177. t3 = digit3 << 4 >>> 0;
  86178. if (!T.isHex0(t1.peekChar$0())) {
  86179. red = t2 + digit1;
  86180. green = (digit2 << 4 >>> 0) + digit2;
  86181. blue = t3 + digit3;
  86182. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  86183. } else {
  86184. red = t2 + digit2;
  86185. green = t3 + digit4;
  86186. blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
  86187. alpha = T.isHex0(t1.peekChar$0()) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : 1;
  86188. }
  86189. }
  86190. return K.SassColor$rgb0(red, green, blue, alpha, t1.spanFrom$1(start));
  86191. },
  86192. _stylesheet0$_isHexColor$1: function(interpolation) {
  86193. var t1,
  86194. plain = interpolation.get$asPlain();
  86195. if (plain == null)
  86196. return false;
  86197. t1 = plain.length;
  86198. if (t1 !== 3 && t1 !== 4 && t1 !== 6 && t1 !== 8)
  86199. return false;
  86200. t1 = new H.CodeUnits(plain);
  86201. return t1.every$1(t1, T.character0__isHex$closure());
  86202. },
  86203. _stylesheet0$_hexDigit$0: function() {
  86204. var t1 = this.scanner,
  86205. char = t1.peekChar$0();
  86206. if (char == null || !T.isHex0(char))
  86207. t1.error$1(0, "Expected hex digit.");
  86208. return T.asHex0(t1.readChar$0());
  86209. },
  86210. _stylesheet0$_minusExpression$0: function() {
  86211. var _this = this,
  86212. next = _this.scanner.peekChar$1(1);
  86213. if (T.isDigit0(next) || next === 46)
  86214. return _this._stylesheet0$_number$0();
  86215. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  86216. return _this.identifierLike$0();
  86217. return _this._stylesheet0$_unaryOperation$0();
  86218. },
  86219. _stylesheet0$_importantExpression$0: function() {
  86220. var t1 = this.scanner,
  86221. t2 = t1._string_scanner$_position;
  86222. t1.readChar$0();
  86223. this.whitespace$0();
  86224. this.expectIdentifier$1("important");
  86225. t2 = t1.spanFrom$1(new S._SpanScannerState(t1, t2));
  86226. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo(["!important"], type$.JSArray_legacy_Object), t2), false);
  86227. },
  86228. _stylesheet0$_unaryOperation$0: function() {
  86229. var _this = this,
  86230. t1 = _this.scanner,
  86231. t2 = t1._string_scanner$_position,
  86232. operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
  86233. if (operator == null)
  86234. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  86235. else if (_this.get$plainCss() && operator !== C.UnaryOperator_zDx0)
  86236. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  86237. _this.whitespace$0();
  86238. return new X.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  86239. },
  86240. _stylesheet0$_unaryOperatorFor$1: function(character) {
  86241. switch (character) {
  86242. case 43:
  86243. return C.UnaryOperator_j2w0;
  86244. case 45:
  86245. return C.UnaryOperator_U4G0;
  86246. case 47:
  86247. return C.UnaryOperator_zDx0;
  86248. default:
  86249. return null;
  86250. }
  86251. },
  86252. _stylesheet0$_number$0: function() {
  86253. var number, t4, unit, t5, _this = this,
  86254. t1 = _this.scanner,
  86255. t2 = t1._string_scanner$_position,
  86256. first = t1.peekChar$0(),
  86257. t3 = first === 45,
  86258. sign = t3 ? -1 : 1;
  86259. if (first === 43 || t3)
  86260. t1.readChar$0();
  86261. number = t1.peekChar$0() === 46 ? 0 : _this.naturalNumber$0();
  86262. t3 = _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2);
  86263. t4 = _this._stylesheet0$_tryExponent$0();
  86264. if (t1.scanChar$1(37))
  86265. unit = "%";
  86266. else {
  86267. if (_this.lookingAtIdentifier$0())
  86268. t5 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  86269. else
  86270. t5 = false;
  86271. unit = t5 ? _this.identifier$1$unit(true) : null;
  86272. }
  86273. return new T.NumberExpression0(sign * ((number + t3) * t4), unit, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  86274. },
  86275. _stylesheet0$_tryDecimal$1$allowTrailingDot: function(allowTrailingDot) {
  86276. var t2,
  86277. t1 = this.scanner,
  86278. start = t1._string_scanner$_position;
  86279. if (t1.peekChar$0() !== 46)
  86280. return 0;
  86281. if (!T.isDigit0(t1.peekChar$1(1))) {
  86282. if (allowTrailingDot)
  86283. return 0;
  86284. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  86285. }
  86286. t1.readChar$0();
  86287. while (true) {
  86288. t2 = t1.peekChar$0();
  86289. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  86290. break;
  86291. t1.readChar$0();
  86292. }
  86293. return P.double_parse(t1.substring$1(0, start));
  86294. },
  86295. _stylesheet0$_tryExponent$0: function() {
  86296. var next, t2, exponentSign, exponent,
  86297. t1 = this.scanner,
  86298. first = t1.peekChar$0();
  86299. if (first !== 101 && first !== 69)
  86300. return 1;
  86301. next = t1.peekChar$1(1);
  86302. if (!T.isDigit0(next) && next !== 45 && next !== 43)
  86303. return 1;
  86304. t1.readChar$0();
  86305. t2 = next === 45;
  86306. exponentSign = t2 ? -1 : 1;
  86307. if (next === 43 || t2)
  86308. t1.readChar$0();
  86309. if (!T.isDigit0(t1.peekChar$0()))
  86310. t1.error$1(0, "Expected digit.");
  86311. exponent = 0;
  86312. while (true) {
  86313. t2 = t1.peekChar$0();
  86314. if (!(t2 != null && t2 >= 48 && t2 <= 57))
  86315. break;
  86316. exponent = exponent * 10 + (t1.readChar$0() - 48);
  86317. }
  86318. return Math.pow(10, exponentSign * exponent);
  86319. },
  86320. _stylesheet0$_unicodeRange$0: function() {
  86321. var i, t2, j, _this = this,
  86322. t1 = _this.scanner,
  86323. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  86324. _this.expectIdentChar$1(117);
  86325. t1.expectChar$1(43);
  86326. for (i = 0; i < 6; ++i)
  86327. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure1()))
  86328. break;
  86329. if (t1.scanChar$1(63)) {
  86330. ++i;
  86331. for (; i < 6; ++i)
  86332. if (!t1.scanChar$1(63))
  86333. break;
  86334. t2 = t1.substring$1(0, start.position);
  86335. t1 = t1.spanFrom$1(start);
  86336. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  86337. }
  86338. if (i === 0)
  86339. t1.error$1(0, 'Expected hex digit or "?".');
  86340. if (t1.scanChar$1(45)) {
  86341. for (j = 0; j < 6; ++j)
  86342. if (!_this.scanCharIf$1(new V.StylesheetParser__unicodeRange_closure2()))
  86343. break;
  86344. if (j === 0)
  86345. t1.error$1(0, "Expected hex digit.");
  86346. }
  86347. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  86348. t1.error$1(0, "Expected end of identifier.");
  86349. t2 = t1.substring$1(0, start.position);
  86350. t1 = t1.spanFrom$1(start);
  86351. return new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([t2], type$.JSArray_legacy_Object), t1), false);
  86352. },
  86353. _stylesheet0$_variable$0: function() {
  86354. var _this = this,
  86355. t1 = _this.scanner,
  86356. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  86357. $name = _this.variableName$0();
  86358. if (_this.get$plainCss())
  86359. _this.error$2(0, string$.Sass_v, t1.spanFrom$1(start));
  86360. return new S.VariableExpression0(null, $name, t1.spanFrom$1(start));
  86361. },
  86362. _stylesheet0$_selector$0: function() {
  86363. var t1, start, _this = this;
  86364. if (_this.get$plainCss())
  86365. _this.scanner.error$2$length(0, string$.The_pa, 1);
  86366. t1 = _this.scanner;
  86367. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  86368. t1.expectChar$1(38);
  86369. if (t1.scanChar$1(38)) {
  86370. _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
  86371. t1.set$position(t1._string_scanner$_position - 1);
  86372. }
  86373. return new T.SelectorExpression0(t1.spanFrom$1(start));
  86374. },
  86375. interpolatedString$0: function() {
  86376. var t3, t4, buffer, next, second, t5,
  86377. t1 = this.scanner,
  86378. t2 = t1._string_scanner$_position,
  86379. quote = t1.readChar$0();
  86380. if (quote !== 39 && quote !== 34)
  86381. t1.error$2$position(0, "Expected string.", t2);
  86382. t3 = new P.StringBuffer("");
  86383. t4 = [];
  86384. buffer = new Z.InterpolationBuffer0(t3, t4);
  86385. for (; true;) {
  86386. next = t1.peekChar$0();
  86387. if (next === quote) {
  86388. t1.readChar$0();
  86389. break;
  86390. } else if (next == null || next === 10 || next === 13 || next === 12)
  86391. t1.error$1(0, "Expected " + H.Primitives_stringFromCharCode(quote) + ".");
  86392. else if (next === 92) {
  86393. second = t1.peekChar$1(1);
  86394. if (second === 10 || second === 13 || second === 12) {
  86395. t1.readChar$0();
  86396. t1.readChar$0();
  86397. if (second === 13)
  86398. t1.scanChar$1(10);
  86399. } else
  86400. t3._contents += H.Primitives_stringFromCharCode(this.escapeCharacter$0());
  86401. } else if (next === 35)
  86402. if (t1.peekChar$1(1) === 123) {
  86403. t5 = this.singleInterpolation$0();
  86404. buffer._interpolation_buffer0$_flushText$0();
  86405. t4.push(t5);
  86406. } else
  86407. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86408. else
  86409. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86410. }
  86411. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2))), true);
  86412. },
  86413. identifierLike$0: function() {
  86414. var invocation, lower, color, specialFunction, $name, _this = this,
  86415. t1 = _this.scanner,
  86416. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  86417. identifier = _this.interpolatedIdentifier$0(),
  86418. plain = identifier.get$asPlain(),
  86419. t2 = plain == null;
  86420. if (!t2) {
  86421. if (plain === "if") {
  86422. invocation = _this._stylesheet0$_argumentInvocation$0();
  86423. return new L.IfExpression0(invocation, B.spanForList0(H.setRuntimeTypeInfo([identifier, invocation], type$.JSArray_legacy_AstNode_2)));
  86424. } else if (plain === "not") {
  86425. _this.whitespace$0();
  86426. return new X.UnaryOperationExpression0(C.UnaryOperator_not_not0, _this._stylesheet0$_singleExpression$0(), identifier.span);
  86427. }
  86428. lower = plain.toLowerCase();
  86429. if (t1.peekChar$0() !== 40) {
  86430. switch (plain) {
  86431. case "false":
  86432. return new Z.BooleanExpression0(false, identifier.span);
  86433. case "null":
  86434. return new O.NullExpression0(identifier.span);
  86435. case "true":
  86436. return new Z.BooleanExpression0(true, identifier.span);
  86437. }
  86438. color = $.$get$colorsByName0().$index(0, lower);
  86439. if (color != null)
  86440. return new K.ColorExpression0(K.SassColor$rgb0(color.get$red(), color.get$green(), color.get$blue(), color.alpha, identifier.span));
  86441. }
  86442. specialFunction = _this.trySpecialFunction$2(lower, start);
  86443. if (specialFunction != null)
  86444. return specialFunction;
  86445. }
  86446. switch (t1.peekChar$0()) {
  86447. case 46:
  86448. if (t1.peekChar$1(1) === 46)
  86449. return new D.StringExpression0(identifier, false);
  86450. t1.readChar$0();
  86451. if (t2)
  86452. _this.error$2(0, string$.Interpn, identifier.span);
  86453. if (t1.peekChar$0() === 36) {
  86454. $name = _this.variableName$0();
  86455. _this._stylesheet0$_assertPublic$2($name, new V.StylesheetParser_identifierLike_closure0(_this, start));
  86456. return new S.VariableExpression0(plain, $name, t1.spanFrom$1(start));
  86457. }
  86458. t2 = t1._string_scanner$_position;
  86459. return new F.FunctionExpression0(plain, X.Interpolation$0(H.setRuntimeTypeInfo([_this._stylesheet0$_publicIdentifier$0()], type$.JSArray_legacy_Object), t1.spanFrom$1(new S._SpanScannerState(t1, t2))), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  86460. case 40:
  86461. return new F.FunctionExpression0(null, identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  86462. default:
  86463. return new D.StringExpression0(identifier, false);
  86464. }
  86465. },
  86466. trySpecialFunction$2: function($name, start) {
  86467. var t1, buffer, t2, t3, next, contents, _this = this, _null = null;
  86468. switch (B.unvendor0($name)) {
  86469. case "calc":
  86470. case "element":
  86471. case "expression":
  86472. if (!_this.scanner.scanChar$1(40))
  86473. return _null;
  86474. t1 = new P.StringBuffer("");
  86475. buffer = new Z.InterpolationBuffer0(t1, []);
  86476. t1._contents = $name;
  86477. t1._contents += H.Primitives_stringFromCharCode(40);
  86478. break;
  86479. case "min":
  86480. case "max":
  86481. t1 = _this.scanner;
  86482. t2 = t1._string_scanner$_position;
  86483. if (!t1.scanChar$1(40))
  86484. return _null;
  86485. _this.whitespace$0();
  86486. t3 = new P.StringBuffer("");
  86487. buffer = new Z.InterpolationBuffer0(t3, []);
  86488. t3._contents = $name;
  86489. t3._contents += H.Primitives_stringFromCharCode(40);
  86490. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer)) {
  86491. t1.set$state(new S._SpanScannerState(t1, t2));
  86492. return _null;
  86493. }
  86494. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  86495. case "progid":
  86496. t1 = _this.scanner;
  86497. if (!t1.scanChar$1(58))
  86498. return _null;
  86499. t2 = new P.StringBuffer("");
  86500. buffer = new Z.InterpolationBuffer0(t2, []);
  86501. t2._contents = $name;
  86502. t2._contents += H.Primitives_stringFromCharCode(58);
  86503. next = t1.peekChar$0();
  86504. while (true) {
  86505. if (next != null) {
  86506. if (!(next >= 97 && next <= 122))
  86507. t3 = next >= 65 && next <= 90;
  86508. else
  86509. t3 = true;
  86510. t3 = t3 || next === 46;
  86511. } else
  86512. t3 = false;
  86513. if (!t3)
  86514. break;
  86515. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86516. next = t1.peekChar$0();
  86517. }
  86518. t1.expectChar$1(40);
  86519. t2._contents += H.Primitives_stringFromCharCode(40);
  86520. break;
  86521. case "url":
  86522. contents = _this._stylesheet0$_tryUrlContents$1(start);
  86523. return contents == null ? _null : new D.StringExpression0(contents, false);
  86524. case "clamp":
  86525. if ($name !== "clamp")
  86526. return _null;
  86527. if (!_this.scanner.scanChar$1(40))
  86528. return _null;
  86529. t1 = new P.StringBuffer("");
  86530. buffer = new Z.InterpolationBuffer0(t1, []);
  86531. t1._contents = $name;
  86532. t1._contents += H.Primitives_stringFromCharCode(40);
  86533. break;
  86534. default:
  86535. return _null;
  86536. }
  86537. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true));
  86538. t1 = _this.scanner;
  86539. t1.expectChar$1(41);
  86540. buffer._interpolation_buffer0$_text._contents += H.Primitives_stringFromCharCode(41);
  86541. return new D.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  86542. },
  86543. _stylesheet0$_tryMinMaxContents$2$allowComma: function(buffer, allowComma) {
  86544. var t1, t2, t3, t4, start, end, exception, t5, _this = this;
  86545. for (t1 = _this.scanner, t2 = buffer._interpolation_buffer0$_text, t3 = !allowComma, t4 = _this.get$_stylesheet0$_number(); true;) {
  86546. switch (t1.peekChar$0()) {
  86547. case 45:
  86548. case 43:
  86549. case 48:
  86550. case 49:
  86551. case 50:
  86552. case 51:
  86553. case 52:
  86554. case 53:
  86555. case 54:
  86556. case 55:
  86557. case 56:
  86558. case 57:
  86559. try {
  86560. start = t1._string_scanner$_position;
  86561. t4.call$0();
  86562. end = t1._string_scanner$_position;
  86563. t2._contents += J.substring$2$s(t1.string, start, end);
  86564. } catch (exception) {
  86565. if (type$.legacy_FormatException._is(H.unwrapException(exception)))
  86566. return false;
  86567. else
  86568. throw exception;
  86569. }
  86570. break;
  86571. case 35:
  86572. if (t1.peekChar$1(1) !== 123)
  86573. return false;
  86574. t5 = _this.singleInterpolation$0();
  86575. buffer._interpolation_buffer0$_flushText$0();
  86576. buffer._interpolation_buffer0$_contents.push(t5);
  86577. break;
  86578. case 99:
  86579. case 67:
  86580. switch (t1.peekChar$1(1)) {
  86581. case 97:
  86582. case 65:
  86583. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "calc"))
  86584. return false;
  86585. break;
  86586. case 108:
  86587. case 76:
  86588. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "clamp"))
  86589. return false;
  86590. break;
  86591. }
  86592. break;
  86593. case 101:
  86594. case 69:
  86595. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "env"))
  86596. return false;
  86597. break;
  86598. case 118:
  86599. case 86:
  86600. if (!_this._stylesheet0$_tryMinMaxFunction$2(buffer, "var"))
  86601. return false;
  86602. break;
  86603. case 40:
  86604. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86605. if (!_this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, false))
  86606. return false;
  86607. break;
  86608. case 109:
  86609. case 77:
  86610. t1.readChar$0();
  86611. if (_this.scanIdentChar$1(105)) {
  86612. if (!_this.scanIdentChar$1(110))
  86613. return false;
  86614. t2._contents += "min(";
  86615. } else if (_this.scanIdentChar$1(97)) {
  86616. if (!_this.scanIdentChar$1(120))
  86617. return false;
  86618. t2._contents += "max(";
  86619. } else
  86620. return false;
  86621. if (!t1.scanChar$1(40))
  86622. return false;
  86623. if (!_this._stylesheet0$_tryMinMaxContents$1(buffer))
  86624. return false;
  86625. break;
  86626. default:
  86627. return false;
  86628. }
  86629. _this.whitespace$0();
  86630. switch (t1.peekChar$0()) {
  86631. case 41:
  86632. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86633. return true;
  86634. case 43:
  86635. case 45:
  86636. case 42:
  86637. case 47:
  86638. t2._contents += H.Primitives_stringFromCharCode(32);
  86639. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86640. t2._contents += H.Primitives_stringFromCharCode(32);
  86641. break;
  86642. case 44:
  86643. if (t3)
  86644. return false;
  86645. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86646. t2._contents += H.Primitives_stringFromCharCode(32);
  86647. break;
  86648. default:
  86649. return false;
  86650. }
  86651. _this.whitespace$0();
  86652. }
  86653. },
  86654. _stylesheet0$_tryMinMaxContents$1: function(buffer) {
  86655. return this._stylesheet0$_tryMinMaxContents$2$allowComma(buffer, true);
  86656. },
  86657. _stylesheet0$_tryMinMaxFunction$2: function(buffer, $name) {
  86658. var t1, t2;
  86659. if (!this.scanIdentifier$1($name))
  86660. return false;
  86661. t1 = this.scanner;
  86662. if (!t1.scanChar$1(40))
  86663. return false;
  86664. t2 = buffer._interpolation_buffer0$_text;
  86665. t2._contents += $name;
  86666. t2._contents += H.Primitives_stringFromCharCode(40);
  86667. buffer.addInterpolation$1(this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true));
  86668. t2._contents += H.Primitives_stringFromCharCode(41);
  86669. if (!t1.scanChar$1(41))
  86670. return false;
  86671. return true;
  86672. },
  86673. _stylesheet0$_tryUrlContents$2$name: function(start, $name) {
  86674. var t3, t4, buffer, next, t5, endPosition, _this = this,
  86675. t1 = _this.scanner,
  86676. t2 = t1._string_scanner$_position;
  86677. if (!t1.scanChar$1(40))
  86678. return null;
  86679. _this.whitespaceWithoutComments$0();
  86680. t3 = new P.StringBuffer("");
  86681. t4 = [];
  86682. buffer = new Z.InterpolationBuffer0(t3, t4);
  86683. t3._contents = $name == null ? "url" : $name;
  86684. t3._contents += H.Primitives_stringFromCharCode(40);
  86685. for (; true;) {
  86686. next = t1.peekChar$0();
  86687. if (next == null)
  86688. break;
  86689. else {
  86690. if (next !== 33)
  86691. if (next !== 37)
  86692. if (next !== 38)
  86693. t5 = next >= 42 && next <= 126 || next >= 128;
  86694. else
  86695. t5 = true;
  86696. else
  86697. t5 = true;
  86698. else
  86699. t5 = true;
  86700. if (t5)
  86701. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86702. else if (next === 92)
  86703. t3._contents += H.S(_this.escape$0());
  86704. else if (next === 35)
  86705. if (t1.peekChar$1(1) === 123) {
  86706. t5 = _this.singleInterpolation$0();
  86707. buffer._interpolation_buffer0$_flushText$0();
  86708. t4.push(t5);
  86709. } else
  86710. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86711. else if (next === 32 || next === 9 || next === 10 || next === 13 || next === 12) {
  86712. _this.whitespaceWithoutComments$0();
  86713. if (t1.peekChar$0() !== 41)
  86714. break;
  86715. } else if (next === 41) {
  86716. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86717. endPosition = t1._string_scanner$_position;
  86718. t2 = t1._sourceFile;
  86719. t3 = start.position;
  86720. t1 = new Y._FileSpan(t2, t3, endPosition);
  86721. t1._FileSpan$3(t2, t3, endPosition);
  86722. return buffer.interpolation$1(t1);
  86723. } else
  86724. break;
  86725. }
  86726. }
  86727. t1.set$state(new S._SpanScannerState(t1, t2));
  86728. return null;
  86729. },
  86730. _stylesheet0$_tryUrlContents$1: function(start) {
  86731. return this._stylesheet0$_tryUrlContents$2$name(start, null);
  86732. },
  86733. dynamicUrl$0: function() {
  86734. var contents, _this = this,
  86735. t1 = _this.scanner,
  86736. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  86737. _this.expectIdentifier$1("url");
  86738. contents = _this._stylesheet0$_tryUrlContents$1(start);
  86739. if (contents != null)
  86740. return new D.StringExpression0(contents, false);
  86741. return new F.FunctionExpression0(null, X.Interpolation$0(H.setRuntimeTypeInfo(["url"], type$.JSArray_legacy_Object), t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  86742. },
  86743. almostAnyValue$1$omitComments: function(omitComments) {
  86744. var t4, t5, next, commentStart, end, t6, contents, _this = this,
  86745. t1 = _this.scanner,
  86746. t2 = t1._string_scanner$_position,
  86747. t3 = new P.StringBuffer(""),
  86748. buffer = new Z.InterpolationBuffer0(t3, []);
  86749. $label0$1:
  86750. for (t4 = t1.string, t5 = !omitComments; true;) {
  86751. next = t1.peekChar$0();
  86752. switch (next) {
  86753. case 92:
  86754. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86755. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86756. break;
  86757. case 34:
  86758. case 39:
  86759. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  86760. break;
  86761. case 47:
  86762. commentStart = t1._string_scanner$_position;
  86763. if (_this.scanComment$0()) {
  86764. if (t5) {
  86765. end = t1._string_scanner$_position;
  86766. t3._contents += J.substring$2$s(t4, commentStart, end);
  86767. }
  86768. } else
  86769. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86770. break;
  86771. case 35:
  86772. if (t1.peekChar$1(1) === 123)
  86773. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  86774. else
  86775. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86776. break;
  86777. case 13:
  86778. case 10:
  86779. case 12:
  86780. if (_this.get$indented())
  86781. break $label0$1;
  86782. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86783. break;
  86784. case 33:
  86785. case 59:
  86786. case 123:
  86787. case 125:
  86788. break $label0$1;
  86789. case 117:
  86790. case 85:
  86791. t6 = t1._string_scanner$_position;
  86792. if (!_this.scanIdentifier$1("url")) {
  86793. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86794. break;
  86795. }
  86796. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t6));
  86797. if (contents == null) {
  86798. if (t6 < 0 || t6 > t4.length)
  86799. H.throwExpression(P.ArgumentError$("Invalid position " + t6));
  86800. t1._string_scanner$_position = t6;
  86801. t1._lastMatch = null;
  86802. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86803. } else
  86804. buffer.addInterpolation$1(contents);
  86805. break;
  86806. default:
  86807. if (next == null)
  86808. break $label0$1;
  86809. if (_this.lookingAtIdentifier$0())
  86810. t3._contents += _this.identifier$0();
  86811. else
  86812. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86813. break;
  86814. }
  86815. }
  86816. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  86817. },
  86818. almostAnyValue$0: function() {
  86819. return this.almostAnyValue$1$omitComments(false);
  86820. },
  86821. _stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon: function(allowColon, allowEmpty, allowSemicolon) {
  86822. var t4, t5, t6, wroteNewline, next, t7, start, end, contents, _this = this,
  86823. t1 = _this.scanner,
  86824. t2 = t1._string_scanner$_position,
  86825. t3 = new P.StringBuffer(""),
  86826. buffer = new Z.InterpolationBuffer0(t3, []),
  86827. brackets = H.setRuntimeTypeInfo([], type$.JSArray_legacy_int);
  86828. $label0$1:
  86829. for (t4 = t1.string, t5 = !allowColon, t6 = !allowSemicolon, wroteNewline = false; true;) {
  86830. next = t1.peekChar$0();
  86831. switch (next) {
  86832. case 92:
  86833. t3._contents += H.S(_this.escape$1$identifierStart(true));
  86834. wroteNewline = false;
  86835. break;
  86836. case 34:
  86837. case 39:
  86838. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  86839. wroteNewline = false;
  86840. break;
  86841. case 47:
  86842. if (t1.peekChar$1(1) === 42) {
  86843. t7 = _this.get$loudComment();
  86844. start = t1._string_scanner$_position;
  86845. t7.call$0();
  86846. end = t1._string_scanner$_position;
  86847. t3._contents += J.substring$2$s(t4, start, end);
  86848. } else
  86849. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86850. wroteNewline = false;
  86851. break;
  86852. case 35:
  86853. if (t1.peekChar$1(1) === 123)
  86854. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  86855. else
  86856. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86857. wroteNewline = false;
  86858. break;
  86859. case 32:
  86860. case 9:
  86861. if (!wroteNewline) {
  86862. t7 = t1.peekChar$1(1);
  86863. t7 = !(t7 === 32 || t7 === 9 || t7 === 10 || t7 === 13 || t7 === 12);
  86864. } else
  86865. t7 = true;
  86866. if (t7)
  86867. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86868. else
  86869. t1.readChar$0();
  86870. break;
  86871. case 10:
  86872. case 13:
  86873. case 12:
  86874. if (_this.get$indented())
  86875. break $label0$1;
  86876. t7 = t1.peekChar$1(-1);
  86877. if (!(t7 === 10 || t7 === 13 || t7 === 12))
  86878. t3._contents += "\n";
  86879. t1.readChar$0();
  86880. wroteNewline = true;
  86881. break;
  86882. case 40:
  86883. case 123:
  86884. case 91:
  86885. t3._contents += H.Primitives_stringFromCharCode(next);
  86886. brackets.push(T.opposite0(t1.readChar$0()));
  86887. wroteNewline = false;
  86888. break;
  86889. case 41:
  86890. case 125:
  86891. case 93:
  86892. if (brackets.length === 0)
  86893. break $label0$1;
  86894. t3._contents += H.Primitives_stringFromCharCode(next);
  86895. t1.expectChar$1(brackets.pop());
  86896. wroteNewline = false;
  86897. break;
  86898. case 59:
  86899. if (t6 && brackets.length === 0)
  86900. break $label0$1;
  86901. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86902. wroteNewline = false;
  86903. break;
  86904. case 58:
  86905. if (t5 && brackets.length === 0)
  86906. break $label0$1;
  86907. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86908. wroteNewline = false;
  86909. break;
  86910. case 117:
  86911. case 85:
  86912. t7 = t1._string_scanner$_position;
  86913. if (!_this.scanIdentifier$1("url")) {
  86914. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86915. wroteNewline = false;
  86916. break;
  86917. }
  86918. contents = _this._stylesheet0$_tryUrlContents$1(new S._SpanScannerState(t1, t7));
  86919. if (contents == null) {
  86920. if (t7 < 0 || t7 > t4.length)
  86921. H.throwExpression(P.ArgumentError$("Invalid position " + t7));
  86922. t1._string_scanner$_position = t7;
  86923. t1._lastMatch = null;
  86924. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86925. } else
  86926. buffer.addInterpolation$1(contents);
  86927. wroteNewline = false;
  86928. break;
  86929. default:
  86930. if (next == null)
  86931. break $label0$1;
  86932. if (_this.lookingAtIdentifier$0())
  86933. t3._contents += _this.identifier$0();
  86934. else
  86935. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86936. wroteNewline = false;
  86937. break;
  86938. }
  86939. }
  86940. if (brackets.length !== 0)
  86941. t1.expectChar$1(C.JSArray_methods.get$last(brackets));
  86942. if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
  86943. t1.error$1(0, "Expected token.");
  86944. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  86945. },
  86946. _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty: function(allowEmpty) {
  86947. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, false);
  86948. },
  86949. _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon: function(allowEmpty, allowSemicolon) {
  86950. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, allowEmpty, allowSemicolon);
  86951. },
  86952. _stylesheet0$_interpolatedDeclarationValue$0: function() {
  86953. return this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(true, false, false);
  86954. },
  86955. interpolatedIdentifier$0: function() {
  86956. var first, _this = this,
  86957. _s20_ = "Expected identifier.",
  86958. t1 = _this.scanner,
  86959. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  86960. t2 = new P.StringBuffer(""),
  86961. t3 = [],
  86962. buffer = new Z.InterpolationBuffer0(t2, t3);
  86963. if (t1.scanChar$1(45)) {
  86964. t2._contents += H.Primitives_stringFromCharCode(45);
  86965. if (t1.scanChar$1(45)) {
  86966. t2._contents += H.Primitives_stringFromCharCode(45);
  86967. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  86968. return buffer.interpolation$1(t1.spanFrom$1(start));
  86969. }
  86970. }
  86971. first = t1.peekChar$0();
  86972. if (first == null)
  86973. t1.error$1(0, _s20_);
  86974. else if (first === 95 || T.isAlphabetic1(first) || first >= 128)
  86975. t2._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  86976. else if (first === 92)
  86977. t2._contents += H.S(_this.escape$1$identifierStart(true));
  86978. else if (first === 35 && t1.peekChar$1(1) === 123) {
  86979. t2 = _this.singleInterpolation$0();
  86980. buffer._interpolation_buffer0$_flushText$0();
  86981. t3.push(t2);
  86982. } else
  86983. t1.error$1(0, _s20_);
  86984. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  86985. return buffer.interpolation$1(t1.spanFrom$1(start));
  86986. },
  86987. _stylesheet0$_interpolatedIdentifierBody$1: function(buffer) {
  86988. var t1, t2, t3, next, t4;
  86989. for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
  86990. next = t2.peekChar$0();
  86991. if (next == null)
  86992. break;
  86993. else {
  86994. if (next !== 95)
  86995. if (next !== 45) {
  86996. if (!(next >= 97 && next <= 122))
  86997. t4 = next >= 65 && next <= 90;
  86998. else
  86999. t4 = true;
  87000. if (!t4)
  87001. t4 = next >= 48 && next <= 57;
  87002. else
  87003. t4 = true;
  87004. t4 = t4 || next >= 128;
  87005. } else
  87006. t4 = true;
  87007. else
  87008. t4 = true;
  87009. if (t4)
  87010. t3._contents += H.Primitives_stringFromCharCode(t2.readChar$0());
  87011. else if (next === 92)
  87012. t3._contents += H.S(this.escape$0());
  87013. else if (next === 35 && t2.peekChar$1(1) === 123) {
  87014. t4 = this.singleInterpolation$0();
  87015. buffer._interpolation_buffer0$_flushText$0();
  87016. t1.push(t4);
  87017. } else
  87018. break;
  87019. }
  87020. }
  87021. },
  87022. singleInterpolation$0: function() {
  87023. var contents, _this = this,
  87024. t1 = _this.scanner,
  87025. t2 = t1._string_scanner$_position;
  87026. t1.expect$1("#{");
  87027. _this.whitespace$0();
  87028. contents = _this.expression$0();
  87029. t1.expectChar$1(125);
  87030. if (_this.get$plainCss())
  87031. _this.error$2(0, string$.Interpp, t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  87032. return contents;
  87033. },
  87034. _stylesheet0$_mediaQueryList$0: function() {
  87035. var t1 = this.scanner,
  87036. t2 = t1._string_scanner$_position,
  87037. t3 = new P.StringBuffer(""),
  87038. buffer = new Z.InterpolationBuffer0(t3, []);
  87039. for (; true;) {
  87040. this.whitespace$0();
  87041. this._stylesheet0$_mediaQuery$1(buffer);
  87042. if (!t1.scanChar$1(44))
  87043. break;
  87044. t3._contents += H.Primitives_stringFromCharCode(44);
  87045. t3._contents += H.Primitives_stringFromCharCode(32);
  87046. }
  87047. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  87048. },
  87049. _stylesheet0$_mediaQuery$1: function(buffer) {
  87050. var t1, identifier, _this = this;
  87051. if (_this.scanner.peekChar$0() !== 40) {
  87052. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  87053. _this.whitespace$0();
  87054. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  87055. return;
  87056. t1 = buffer._interpolation_buffer0$_text;
  87057. t1._contents += H.Primitives_stringFromCharCode(32);
  87058. identifier = _this.interpolatedIdentifier$0();
  87059. _this.whitespace$0();
  87060. if (B.equalsIgnoreCase0(identifier.get$asPlain(), "and"))
  87061. t1._contents += " and ";
  87062. else {
  87063. buffer.addInterpolation$1(identifier);
  87064. if (_this.scanIdentifier$1("and")) {
  87065. _this.whitespace$0();
  87066. t1._contents += " and ";
  87067. } else
  87068. return;
  87069. }
  87070. }
  87071. for (t1 = buffer._interpolation_buffer0$_text; true;) {
  87072. _this.whitespace$0();
  87073. buffer.addInterpolation$1(_this._stylesheet0$_mediaFeature$0());
  87074. _this.whitespace$0();
  87075. if (!_this.scanIdentifier$1("and"))
  87076. break;
  87077. t1._contents += " and ";
  87078. }
  87079. },
  87080. _stylesheet0$_mediaFeature$0: function() {
  87081. var interpolation, t2, t3, t4, buffer, t5, next, isAngle, _this = this,
  87082. t1 = _this.scanner;
  87083. if (t1.peekChar$0() === 35) {
  87084. interpolation = _this.singleInterpolation$0();
  87085. return X.Interpolation$0(H.setRuntimeTypeInfo([interpolation], type$.JSArray_legacy_Object), interpolation.get$span());
  87086. }
  87087. t2 = t1._string_scanner$_position;
  87088. t3 = new P.StringBuffer("");
  87089. t4 = [];
  87090. buffer = new Z.InterpolationBuffer0(t3, t4);
  87091. t1.expectChar$1(40);
  87092. t3._contents += H.Primitives_stringFromCharCode(40);
  87093. _this.whitespace$0();
  87094. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  87095. buffer._interpolation_buffer0$_flushText$0();
  87096. t4.push(t5);
  87097. if (t1.scanChar$1(58)) {
  87098. _this.whitespace$0();
  87099. t3._contents += H.Primitives_stringFromCharCode(58);
  87100. t3._contents += H.Primitives_stringFromCharCode(32);
  87101. t5 = _this.expression$0();
  87102. buffer._interpolation_buffer0$_flushText$0();
  87103. t4.push(t5);
  87104. } else {
  87105. next = t1.peekChar$0();
  87106. isAngle = next === 60 || next === 62;
  87107. if (isAngle || next === 61) {
  87108. t3._contents += H.Primitives_stringFromCharCode(32);
  87109. t3._contents += H.Primitives_stringFromCharCode(t1.readChar$0());
  87110. if (isAngle && t1.scanChar$1(61))
  87111. t3._contents += H.Primitives_stringFromCharCode(61);
  87112. t3._contents += H.Primitives_stringFromCharCode(32);
  87113. _this.whitespace$0();
  87114. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  87115. buffer._interpolation_buffer0$_flushText$0();
  87116. t4.push(t5);
  87117. if (isAngle && t1.scanChar$1(next)) {
  87118. t3._contents += H.Primitives_stringFromCharCode(32);
  87119. t3._contents += H.Primitives_stringFromCharCode(next);
  87120. if (t1.scanChar$1(61))
  87121. t3._contents += H.Primitives_stringFromCharCode(61);
  87122. t3._contents += H.Primitives_stringFromCharCode(32);
  87123. _this.whitespace$0();
  87124. t5 = _this._stylesheet0$_expressionUntilComparison$0();
  87125. buffer._interpolation_buffer0$_flushText$0();
  87126. t4.push(t5);
  87127. }
  87128. }
  87129. }
  87130. t1.expectChar$1(41);
  87131. _this.whitespace$0();
  87132. t3._contents += H.Primitives_stringFromCharCode(41);
  87133. return buffer.interpolation$1(t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  87134. },
  87135. _stylesheet0$_expressionUntilComparison$0: function() {
  87136. return this.expression$1$until(new V.StylesheetParser__expressionUntilComparison_closure0(this));
  87137. },
  87138. _stylesheet0$_supportsCondition$0: function() {
  87139. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  87140. t1 = _this.scanner,
  87141. t2 = t1._string_scanner$_position;
  87142. if (_this.scanIdentifier$1("not")) {
  87143. _this.whitespace$0();
  87144. return new M.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new S._SpanScannerState(t1, t2)));
  87145. }
  87146. condition = _this._stylesheet0$_supportsConditionInParens$0();
  87147. _this.whitespace$0();
  87148. for (operator = null; _this.lookingAtIdentifier$0();) {
  87149. if (operator != null)
  87150. _this.expectIdentifier$1(operator);
  87151. else if (_this.scanIdentifier$1("or"))
  87152. operator = "or";
  87153. else {
  87154. _this.expectIdentifier$1("and");
  87155. operator = "and";
  87156. }
  87157. _this.whitespace$0();
  87158. right = _this._stylesheet0$_supportsConditionInParens$0();
  87159. endPosition = t1._string_scanner$_position;
  87160. t3 = t1._sourceFile;
  87161. t4 = new Y._FileSpan(t3, t2, endPosition);
  87162. t4._FileSpan$3(t3, t2, endPosition);
  87163. condition = new U.SupportsOperation0(condition, right, operator, t4);
  87164. lowerOperator = operator.toLowerCase();
  87165. if (lowerOperator !== "and" && lowerOperator !== "or")
  87166. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  87167. _this.whitespace$0();
  87168. }
  87169. return condition;
  87170. },
  87171. _stylesheet0$_supportsConditionInParens$0: function() {
  87172. var $name, nameStart, wasInParentheses, identifier, operation, contents, identifier0, t2, $arguments, condition, exception, value, _this = this,
  87173. t1 = _this.scanner,
  87174. start = new S._SpanScannerState(t1, t1._string_scanner$_position);
  87175. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  87176. identifier0 = _this.interpolatedIdentifier$0();
  87177. t2 = identifier0.get$asPlain();
  87178. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  87179. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  87180. if (t1.scanChar$1(40)) {
  87181. $arguments = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  87182. t1.expectChar$1(41);
  87183. return new F.SupportsFunction0(identifier0, $arguments, t1.spanFrom$1(start));
  87184. } else {
  87185. t2 = identifier0.contents;
  87186. if (t2.length !== 1 || !type$.legacy_Expression_2._is(C.JSArray_methods.get$first(t2)))
  87187. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  87188. else
  87189. return new X.SupportsInterpolation0(type$.legacy_Expression_2._as(C.JSArray_methods.get$first(t2)), t1.spanFrom$1(start));
  87190. }
  87191. }
  87192. t1.expectChar$1(40);
  87193. _this.whitespace$0();
  87194. if (_this.scanIdentifier$1("not")) {
  87195. _this.whitespace$0();
  87196. condition = _this._stylesheet0$_supportsConditionInParens$0();
  87197. t1.expectChar$1(41);
  87198. return new M.SupportsNegation0(condition, t1.spanFrom$1(start));
  87199. } else if (t1.peekChar$0() === 40) {
  87200. condition = _this._stylesheet0$_supportsCondition$0();
  87201. t1.expectChar$1(41);
  87202. return condition;
  87203. }
  87204. $name = null;
  87205. nameStart = new S._SpanScannerState(t1, t1._string_scanner$_position);
  87206. wasInParentheses = _this._stylesheet0$_inParentheses;
  87207. try {
  87208. $name = _this.expression$0();
  87209. t1.expectChar$1(58);
  87210. } catch (exception) {
  87211. if (type$.legacy_FormatException._is(H.unwrapException(exception))) {
  87212. t1.set$state(nameStart);
  87213. _this._stylesheet0$_inParentheses = wasInParentheses;
  87214. identifier = _this.interpolatedIdentifier$0();
  87215. operation = _this._stylesheet0$_trySupportsOperation$2(identifier, nameStart);
  87216. if (operation != null) {
  87217. t1.expectChar$1(41);
  87218. return operation;
  87219. }
  87220. t2 = new Z.InterpolationBuffer0(new P.StringBuffer(""), []);
  87221. t2.addInterpolation$1(identifier);
  87222. t2.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  87223. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  87224. if (t1.peekChar$0() === 58)
  87225. throw exception;
  87226. t1.expectChar$1(41);
  87227. return new Y.SupportsAnything0(contents, t1.spanFrom$1(start));
  87228. } else
  87229. throw exception;
  87230. }
  87231. _this.whitespace$0();
  87232. value = _this.expression$0();
  87233. t1.expectChar$1(41);
  87234. return new L.SupportsDeclaration0($name, value, t1.spanFrom$1(start));
  87235. },
  87236. _stylesheet0$_trySupportsOperation$2: function(interpolation, start) {
  87237. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  87238. t1 = interpolation.contents;
  87239. if (t1.length !== 1)
  87240. return _null;
  87241. expression = C.JSArray_methods.get$first(t1);
  87242. if (!type$.legacy_Expression_2._is(expression))
  87243. return _null;
  87244. t1 = _this.scanner;
  87245. beforeWhitespace = new S._SpanScannerState(t1, t1._string_scanner$_position);
  87246. _this.whitespace$0();
  87247. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  87248. if (operator != null)
  87249. _this.expectIdentifier$1(operator);
  87250. else if (_this.scanIdentifier$1("and"))
  87251. operator = "and";
  87252. else {
  87253. if (!_this.scanIdentifier$1("or")) {
  87254. if (beforeWhitespace._scanner !== t1)
  87255. H.throwExpression(P.ArgumentError$(string$.The_gi));
  87256. t2 = beforeWhitespace.position;
  87257. if (t2 < 0 || t2 > t1.string.length)
  87258. H.throwExpression(P.ArgumentError$("Invalid position " + t2));
  87259. t1._string_scanner$_position = t2;
  87260. return t1._lastMatch = null;
  87261. }
  87262. operator = "or";
  87263. }
  87264. _this.whitespace$0();
  87265. right = _this._stylesheet0$_supportsConditionInParens$0();
  87266. t4 = operation == null ? new X.SupportsInterpolation0(expression, t3) : operation;
  87267. endPosition = t1._string_scanner$_position;
  87268. t5 = t1._sourceFile;
  87269. t6 = new Y._FileSpan(t5, t2, endPosition);
  87270. t6._FileSpan$3(t5, t2, endPosition);
  87271. operation = new U.SupportsOperation0(t4, right, operator, t6);
  87272. lowerOperator = operator.toLowerCase();
  87273. if (lowerOperator !== "and" && lowerOperator !== "or")
  87274. H.throwExpression(P.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  87275. _this.whitespace$0();
  87276. }
  87277. return operation;
  87278. },
  87279. _stylesheet0$_lookingAtInterpolatedIdentifier$0: function() {
  87280. var second,
  87281. t1 = this.scanner,
  87282. first = t1.peekChar$0();
  87283. if (first == null)
  87284. return false;
  87285. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || first === 92)
  87286. return true;
  87287. if (first === 35)
  87288. return t1.peekChar$1(1) === 123;
  87289. if (first !== 45)
  87290. return false;
  87291. second = t1.peekChar$1(1);
  87292. if (second == null)
  87293. return false;
  87294. if (second === 35)
  87295. return t1.peekChar$1(2) === 123;
  87296. return second === 95 || T.isAlphabetic1(second) || second >= 128 || second === 92 || second === 45;
  87297. },
  87298. _stylesheet0$_lookingAtInterpolatedIdentifierBody$0: function() {
  87299. var t1 = this.scanner,
  87300. first = t1.peekChar$0();
  87301. if (first == null)
  87302. return false;
  87303. if (first === 95 || T.isAlphabetic1(first) || first >= 128 || T.isDigit0(first) || first === 45 || first === 92)
  87304. return true;
  87305. return first === 35 && t1.peekChar$1(1) === 123;
  87306. },
  87307. _stylesheet0$_lookingAtExpression$0: function() {
  87308. var next,
  87309. t1 = this.scanner,
  87310. character = t1.peekChar$0();
  87311. if (character == null)
  87312. return false;
  87313. if (character === 46)
  87314. return t1.peekChar$1(1) !== 46;
  87315. if (character === 33) {
  87316. next = t1.peekChar$1(1);
  87317. if (next != null)
  87318. if ((next | 32) !== 105)
  87319. t1 = next === 32 || next === 9 || T.isNewline0(next);
  87320. else
  87321. t1 = true;
  87322. else
  87323. t1 = true;
  87324. return t1;
  87325. }
  87326. if (character !== 40)
  87327. if (character !== 47)
  87328. if (character !== 91)
  87329. if (character !== 39)
  87330. if (character !== 34)
  87331. if (character !== 35)
  87332. if (character !== 43)
  87333. if (character !== 45)
  87334. if (character !== 92)
  87335. if (character !== 36)
  87336. if (character !== 38)
  87337. t1 = character === 95 || T.isAlphabetic1(character) || character >= 128 || T.isDigit0(character);
  87338. else
  87339. t1 = true;
  87340. else
  87341. t1 = true;
  87342. else
  87343. t1 = true;
  87344. else
  87345. t1 = true;
  87346. else
  87347. t1 = true;
  87348. else
  87349. t1 = true;
  87350. else
  87351. t1 = true;
  87352. else
  87353. t1 = true;
  87354. else
  87355. t1 = true;
  87356. else
  87357. t1 = true;
  87358. else
  87359. t1 = true;
  87360. return t1;
  87361. },
  87362. _stylesheet0$_withChildren$1$3: function(child, start, create) {
  87363. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  87364. this.whitespaceWithoutComments$0();
  87365. return result;
  87366. },
  87367. _stylesheet0$_withChildren$3: function(child, start, create) {
  87368. return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
  87369. },
  87370. _stylesheet0$_urlString$0: function() {
  87371. var innerError, t2, exception,
  87372. t1 = this.scanner,
  87373. start = new S._SpanScannerState(t1, t1._string_scanner$_position),
  87374. url = this.string$0();
  87375. try {
  87376. t2 = P.Uri_parse(url);
  87377. return t2;
  87378. } catch (exception) {
  87379. t2 = H.unwrapException(exception);
  87380. if (type$.legacy_FormatException._is(t2)) {
  87381. innerError = t2;
  87382. this.error$2(0, "Invalid URL: " + H.S(J.get$message$x(innerError)), t1.spanFrom$1(start));
  87383. } else
  87384. throw exception;
  87385. }
  87386. },
  87387. _stylesheet0$_publicIdentifier$0: function() {
  87388. var _this = this,
  87389. t1 = _this.scanner,
  87390. t2 = t1._string_scanner$_position,
  87391. result = _this.identifier$1$normalize(true);
  87392. _this._stylesheet0$_assertPublic$2(result, new V.StylesheetParser__publicIdentifier_closure0(_this, new S._SpanScannerState(t1, t2)));
  87393. return result;
  87394. },
  87395. _stylesheet0$_assertPublic$2: function(identifier, span) {
  87396. if (!T.isPrivate0(identifier))
  87397. return;
  87398. this.error$2(0, string$.Privat, span.call$0());
  87399. },
  87400. get$plainCss: function() {
  87401. return false;
  87402. }
  87403. };
  87404. V.StylesheetParser_parse_closure0.prototype = {
  87405. call$0: function() {
  87406. var statements, t4,
  87407. t1 = this.$this,
  87408. t2 = t1.scanner,
  87409. t3 = t2._string_scanner$_position;
  87410. t2.scanChar$1(65279);
  87411. statements = t1.statements$1(new V.StylesheetParser_parse__closure1(t1));
  87412. t2.expectDone$0();
  87413. t4 = t1._stylesheet0$_globalVariables;
  87414. t4 = t4.get$values(t4);
  87415. C.JSArray_methods.addAll$1(statements, H.MappedIterable_MappedIterable(t4, new V.StylesheetParser_parse__closure2(), H._instanceType(t4)._eval$1("Iterable.E"), type$.legacy_Statement_2));
  87416. return V.Stylesheet$0(statements, t2.spanFrom$1(new S._SpanScannerState(t2, t3)), t1.get$plainCss());
  87417. },
  87418. $signature: 127
  87419. };
  87420. V.StylesheetParser_parse__closure1.prototype = {
  87421. call$0: function() {
  87422. return this.$this._stylesheet0$_statement$1$root(true);
  87423. },
  87424. $signature: 52
  87425. };
  87426. V.StylesheetParser_parse__closure2.prototype = {
  87427. call$1: function(declaration) {
  87428. return Z.VariableDeclaration$0(declaration.name, new O.NullExpression0(declaration.expression.get$span()), declaration.span, null, false, true, null);
  87429. },
  87430. $signature: 435
  87431. };
  87432. V.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
  87433. call$0: function() {
  87434. var $arguments,
  87435. t1 = this.$this,
  87436. t2 = t1.scanner;
  87437. t2.expectChar$2$name(64, "@-rule");
  87438. t1.identifier$0();
  87439. t1.whitespace$0();
  87440. t1.identifier$0();
  87441. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  87442. t1.whitespace$0();
  87443. t2.expectChar$1(123);
  87444. return $arguments;
  87445. },
  87446. $signature: 436
  87447. };
  87448. V.StylesheetParser__parseSingleProduction_closure0.prototype = {
  87449. call$0: function() {
  87450. var result = this.production.call$0();
  87451. this.$this.scanner.expectDone$0();
  87452. return result;
  87453. },
  87454. $signature: function() {
  87455. return this.T._eval$1("0*()");
  87456. }
  87457. };
  87458. V.StylesheetParser_parseSignature_closure.prototype = {
  87459. call$0: function() {
  87460. var t2, $arguments, t3,
  87461. t1 = this.$this,
  87462. $name = t1.identifier$0();
  87463. t1.whitespace$0();
  87464. t2 = t1.scanner;
  87465. if (t2.peekChar$0() === 40)
  87466. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  87467. else {
  87468. t1 = Y.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  87469. t3 = t1.offset;
  87470. $arguments = new B.ArgumentDeclaration0(C.List_empty20, null, Y._FileSpan$(t1.file, t3, t3));
  87471. }
  87472. t2.expectDone$0();
  87473. return new S.Tuple2($name, $arguments, type$.Tuple2_of_legacy_String_and_legacy_ArgumentDeclaration);
  87474. },
  87475. $signature: 437
  87476. };
  87477. V.StylesheetParser__statement_closure0.prototype = {
  87478. call$0: function() {
  87479. return this.$this._stylesheet0$_statement$0();
  87480. },
  87481. $signature: 52
  87482. };
  87483. V.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
  87484. call$0: function() {
  87485. return this.$this.scanner.spanFrom$1(this._box_0.start);
  87486. },
  87487. $signature: 33
  87488. };
  87489. V.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
  87490. call$0: function() {
  87491. return this.declaration;
  87492. },
  87493. $signature: 438
  87494. };
  87495. V.StylesheetParser__declarationOrBuffer_closure1.prototype = {
  87496. call$2: function(children, span) {
  87497. return L.Declaration$0(this.name, span, children, null);
  87498. },
  87499. $signature: 69
  87500. };
  87501. V.StylesheetParser__declarationOrBuffer_closure2.prototype = {
  87502. call$2: function(children, span) {
  87503. return L.Declaration$0(this.name, span, children, this._box_0.value);
  87504. },
  87505. $signature: 69
  87506. };
  87507. V.StylesheetParser__styleRule_closure0.prototype = {
  87508. call$2: function(children, span) {
  87509. var t2, _this = this,
  87510. t1 = _this.$this;
  87511. if (t1.get$indented() && children.length === 0)
  87512. t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
  87513. t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
  87514. t2 = _this._box_0;
  87515. return X.StyleRule$0(t2.interpolation, children, t1.scanner.spanFrom$1(t2.start));
  87516. },
  87517. $signature: 440
  87518. };
  87519. V.StylesheetParser__propertyOrVariableDeclaration_closure1.prototype = {
  87520. call$2: function(children, span) {
  87521. return L.Declaration$0(this._box_0.name, span, children, null);
  87522. },
  87523. $signature: 69
  87524. };
  87525. V.StylesheetParser__propertyOrVariableDeclaration_closure2.prototype = {
  87526. call$2: function(children, span) {
  87527. return L.Declaration$0(this._box_0.name, span, children, this.value);
  87528. },
  87529. $signature: 69
  87530. };
  87531. V.StylesheetParser__atRootRule_closure1.prototype = {
  87532. call$2: function(children, span) {
  87533. return V.AtRootRule$0(children, span, this.query);
  87534. },
  87535. $signature: 206
  87536. };
  87537. V.StylesheetParser__atRootRule_closure2.prototype = {
  87538. call$2: function(children, span) {
  87539. return V.AtRootRule$0(children, span, null);
  87540. },
  87541. $signature: 206
  87542. };
  87543. V.StylesheetParser__eachRule_closure0.prototype = {
  87544. call$2: function(children, span) {
  87545. var _this = this;
  87546. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  87547. return V.EachRule$0(_this.variables, _this.list, children, span);
  87548. },
  87549. $signature: 442
  87550. };
  87551. V.StylesheetParser__functionRule_closure0.prototype = {
  87552. call$2: function(children, span) {
  87553. return M.FunctionRule$0(this.name, this.$arguments, children, span, this.precedingComment);
  87554. },
  87555. $signature: 443
  87556. };
  87557. V.StylesheetParser__forRule_closure1.prototype = {
  87558. call$0: function() {
  87559. var t1 = this.$this;
  87560. if (!t1.lookingAtIdentifier$0())
  87561. return false;
  87562. if (t1.scanIdentifier$1("to"))
  87563. return this._box_0.exclusive = true;
  87564. else if (t1.scanIdentifier$1("through")) {
  87565. this._box_0.exclusive = false;
  87566. return true;
  87567. } else
  87568. return false;
  87569. },
  87570. $signature: 36
  87571. };
  87572. V.StylesheetParser__forRule_closure2.prototype = {
  87573. call$2: function(children, span) {
  87574. var _this = this;
  87575. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  87576. return B.ForRule$0(_this.variable, _this.from, _this.to, children, span, _this._box_0.exclusive);
  87577. },
  87578. $signature: 444
  87579. };
  87580. V.StylesheetParser__memberList_closure0.prototype = {
  87581. call$0: function() {
  87582. var t1 = this.$this;
  87583. if (t1.scanner.peekChar$0() === 36)
  87584. this.variables.add$1(0, t1.variableName$0());
  87585. else
  87586. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  87587. },
  87588. $signature: 0
  87589. };
  87590. V.StylesheetParser__includeRule_closure0.prototype = {
  87591. call$2: function(children, span) {
  87592. return Y.ContentBlock$0(this._box_0.contentArguments, children, span);
  87593. },
  87594. $signature: 445
  87595. };
  87596. V.StylesheetParser_mediaRule_closure0.prototype = {
  87597. call$2: function(children, span) {
  87598. return G.MediaRule$0(this.query, children, span);
  87599. },
  87600. $signature: 446
  87601. };
  87602. V.StylesheetParser__mixinRule_closure0.prototype = {
  87603. call$2: function(children, span) {
  87604. var _this = this,
  87605. t1 = _this.$this,
  87606. hadContent = t1._stylesheet0$_mixinHasContent;
  87607. t1._stylesheet0$_inMixin = false;
  87608. t1._stylesheet0$_mixinHasContent = null;
  87609. return T.MixinRule$0(_this.name, _this.$arguments, children, span, _this.precedingComment, hadContent);
  87610. },
  87611. $signature: 447
  87612. };
  87613. V.StylesheetParser_mozDocumentRule_closure0.prototype = {
  87614. call$2: function(children, span) {
  87615. var _this = this;
  87616. if (_this._box_0.needsDeprecationWarning)
  87617. _this.$this.logger.warn$3$deprecation$span(0, string$.x40_moz_, true, span);
  87618. return U.AtRule$0(_this.name, span, children, _this.value);
  87619. },
  87620. $signature: 203
  87621. };
  87622. V.StylesheetParser_supportsRule_closure0.prototype = {
  87623. call$2: function(children, span) {
  87624. return B.SupportsRule$0(this.condition, children, span);
  87625. },
  87626. $signature: 449
  87627. };
  87628. V.StylesheetParser__whileRule_closure0.prototype = {
  87629. call$2: function(children, span) {
  87630. this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
  87631. return G.WhileRule$0(this.condition, children, span);
  87632. },
  87633. $signature: 450
  87634. };
  87635. V.StylesheetParser_unknownAtRule_closure0.prototype = {
  87636. call$2: function(children, span) {
  87637. return U.AtRule$0(this.name, span, children, this._box_0.value);
  87638. },
  87639. $signature: 203
  87640. };
  87641. V.StylesheetParser_expression_resetState0.prototype = {
  87642. call$0: function() {
  87643. var t2,
  87644. t1 = this._box_0;
  87645. t1.operands = t1.operators = t1.spaceExpressions = t1.commaExpressions = null;
  87646. t2 = this.$this;
  87647. t2.scanner.set$state(this.start);
  87648. t1.allowSlash = t2.lookingAtNumber$0();
  87649. t1.singleExpression = t2._stylesheet0$_singleExpression$0();
  87650. },
  87651. $signature: 1
  87652. };
  87653. V.StylesheetParser_expression_resolveOneOperation0.prototype = {
  87654. call$0: function() {
  87655. var t2, t3,
  87656. t1 = this._box_0,
  87657. operator = t1.operators.pop();
  87658. if (operator !== C.BinaryOperator_RTB0)
  87659. t1.allowSlash = false;
  87660. t2 = t1.allowSlash && !this.$this._stylesheet0$_inParentheses;
  87661. t3 = t1.operands;
  87662. if (t2)
  87663. t1.singleExpression = new V.BinaryOperationExpression0(C.BinaryOperator_RTB0, t3.pop(), t1.singleExpression, true);
  87664. else
  87665. t1.singleExpression = new V.BinaryOperationExpression0(operator, t3.pop(), t1.singleExpression, false);
  87666. },
  87667. $signature: 1
  87668. };
  87669. V.StylesheetParser_expression_resolveOperations0.prototype = {
  87670. call$0: function() {
  87671. var t2,
  87672. t1 = this._box_0;
  87673. if (t1.operators == null)
  87674. return;
  87675. for (t2 = this.resolveOneOperation; t1.operators.length !== 0;)
  87676. t2.call$0();
  87677. },
  87678. $signature: 1
  87679. };
  87680. V.StylesheetParser_expression_addSingleExpression0.prototype = {
  87681. call$2$number: function(expression, number) {
  87682. var t2, _this = this,
  87683. t1 = _this._box_0;
  87684. if (t1.singleExpression != null) {
  87685. t2 = _this.$this;
  87686. if (t2._stylesheet0$_inParentheses) {
  87687. t2._stylesheet0$_inParentheses = false;
  87688. if (t1.allowSlash) {
  87689. _this.resetState.call$0();
  87690. return;
  87691. }
  87692. }
  87693. if (t1.spaceExpressions == null)
  87694. t1.spaceExpressions = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  87695. _this.resolveOperations.call$0();
  87696. t1.spaceExpressions.push(t1.singleExpression);
  87697. t1.allowSlash = number;
  87698. } else if (!number)
  87699. t1.allowSlash = false;
  87700. t1.singleExpression = expression;
  87701. },
  87702. call$1: function(expression) {
  87703. return this.call$2$number(expression, false);
  87704. },
  87705. $signature: 451
  87706. };
  87707. V.StylesheetParser_expression_addOperator0.prototype = {
  87708. call$1: function(operator) {
  87709. var t2, t3, t4, t5, singleExpression,
  87710. t1 = this.$this;
  87711. if (t1.get$plainCss() && operator !== C.BinaryOperator_RTB0 && operator !== C.BinaryOperator_kjl0) {
  87712. t2 = t1.scanner;
  87713. t3 = operator.operator.length;
  87714. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  87715. }
  87716. t2 = this._box_0;
  87717. t2.allowSlash = t2.allowSlash && operator === C.BinaryOperator_RTB0;
  87718. if (t2.operators == null)
  87719. t2.operators = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BinaryOperator_2);
  87720. if (t2.operands == null)
  87721. t2.operands = H.setRuntimeTypeInfo([], type$.JSArray_legacy_Expression_2);
  87722. t3 = this.resolveOneOperation;
  87723. t4 = operator.precedence;
  87724. while (true) {
  87725. t5 = t2.operators;
  87726. if (!(t5.length !== 0 && C.JSArray_methods.get$last(t5).precedence >= t4))
  87727. break;
  87728. t3.call$0();
  87729. }
  87730. t2.operators.push(operator);
  87731. t2.operands.push(t2.singleExpression);
  87732. t1.whitespace$0();
  87733. t2.allowSlash = t2.allowSlash && t1.lookingAtNumber$0();
  87734. singleExpression = t1._stylesheet0$_singleExpression$0();
  87735. t2.singleExpression = singleExpression;
  87736. t2.allowSlash = t2.allowSlash && singleExpression instanceof T.NumberExpression0;
  87737. },
  87738. $signature: 452
  87739. };
  87740. V.StylesheetParser_expression_resolveSpaceExpressions0.prototype = {
  87741. call$0: function() {
  87742. var t1, t2;
  87743. this.resolveOperations.call$0();
  87744. t1 = this._box_0;
  87745. t2 = t1.spaceExpressions;
  87746. if (t2 != null) {
  87747. t2.push(t1.singleExpression);
  87748. t1.singleExpression = D.ListExpression$0(t1.spaceExpressions, C.ListSeparator_space0, false, null);
  87749. t1.spaceExpressions = null;
  87750. }
  87751. },
  87752. $signature: 1
  87753. };
  87754. V.StylesheetParser__expressionUntilComma_closure0.prototype = {
  87755. call$0: function() {
  87756. return this.$this.scanner.peekChar$0() === 44;
  87757. },
  87758. $signature: 36
  87759. };
  87760. V.StylesheetParser__unicodeRange_closure1.prototype = {
  87761. call$1: function(char) {
  87762. return char != null && T.isHex0(char);
  87763. },
  87764. $signature: 24
  87765. };
  87766. V.StylesheetParser__unicodeRange_closure2.prototype = {
  87767. call$1: function(char) {
  87768. return char != null && T.isHex0(char);
  87769. },
  87770. $signature: 24
  87771. };
  87772. V.StylesheetParser_identifierLike_closure0.prototype = {
  87773. call$0: function() {
  87774. return this.$this.scanner.spanFrom$1(this.start);
  87775. },
  87776. $signature: 33
  87777. };
  87778. V.StylesheetParser__expressionUntilComparison_closure0.prototype = {
  87779. call$0: function() {
  87780. var t1 = this.$this.scanner,
  87781. next = t1.peekChar$0();
  87782. if (next === 61)
  87783. return t1.peekChar$1(1) !== 61;
  87784. return next === 60 || next === 62;
  87785. },
  87786. $signature: 36
  87787. };
  87788. V.StylesheetParser__publicIdentifier_closure0.prototype = {
  87789. call$0: function() {
  87790. return this.$this.scanner.spanFrom$1(this.start);
  87791. },
  87792. $signature: 33
  87793. };
  87794. V.Stylesheet0.prototype = {
  87795. Stylesheet$3$plainCss0: function(children, span, plainCss) {
  87796. var t1, t2, t3, t4, _i, child;
  87797. for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
  87798. child = t1[_i];
  87799. if (child instanceof T.UseRule0)
  87800. t4.push(child);
  87801. else if (child instanceof L.ForwardRule0)
  87802. t3.push(child);
  87803. else if (!(child instanceof B.SilentComment0) && !(child instanceof L.LoudComment0) && !(child instanceof Z.VariableDeclaration0))
  87804. break;
  87805. }
  87806. },
  87807. accept$1$1: function(visitor) {
  87808. return visitor.visitStylesheet$1(this);
  87809. },
  87810. accept$1: function(visitor) {
  87811. return this.accept$1$1(visitor, type$.dynamic);
  87812. },
  87813. toString$0: function(_) {
  87814. var t1 = this.children;
  87815. return (t1 && C.JSArray_methods).join$1(t1, " ");
  87816. },
  87817. get$span: function() {
  87818. return this.span;
  87819. }
  87820. };
  87821. B.ModifiableCssSupportsRule0.prototype = {
  87822. accept$1$1: function(visitor) {
  87823. return visitor.visitCssSupportsRule$1(this);
  87824. },
  87825. accept$1: function(visitor) {
  87826. return this.accept$1$1(visitor, type$.dynamic);
  87827. },
  87828. copyWithoutChildren$0: function() {
  87829. return B.ModifiableCssSupportsRule$0(this.condition, this.span);
  87830. },
  87831. $isCssSupportsRule0: 1,
  87832. get$span: function() {
  87833. return this.span;
  87834. }
  87835. };
  87836. B.SupportsRule0.prototype = {
  87837. accept$1$1: function(visitor) {
  87838. return visitor.visitSupportsRule$1(this);
  87839. },
  87840. accept$1: function(visitor) {
  87841. return this.accept$1$1(visitor, type$.dynamic);
  87842. },
  87843. toString$0: function(_) {
  87844. var t1 = this.children;
  87845. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  87846. },
  87847. get$span: function() {
  87848. return this.span;
  87849. }
  87850. };
  87851. M.Syntax0.prototype = {
  87852. toString$0: function(_) {
  87853. return this._syntax0$_name;
  87854. }
  87855. };
  87856. F.TypeSelector0.prototype = {
  87857. get$minSpecificity: function() {
  87858. return 1;
  87859. },
  87860. accept$1$1: function(visitor) {
  87861. visitor._buffer.write$1(0, this.name);
  87862. return null;
  87863. },
  87864. accept$1: function(visitor) {
  87865. return this.accept$1$1(visitor, type$.dynamic);
  87866. },
  87867. addSuffix$1: function(suffix) {
  87868. var t1 = this.name;
  87869. return new F.TypeSelector0(new D.QualifiedName0(t1.name + suffix, t1.namespace));
  87870. },
  87871. unify$1: function(compound) {
  87872. var unified, t1, t2, cur, _i;
  87873. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  87874. unified = Y.unifyUniversalAndElement0(this, C.JSArray_methods.get$first(compound));
  87875. if (unified == null)
  87876. return null;
  87877. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  87878. t1.push(unified);
  87879. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  87880. cur = t2.__internal$_current;
  87881. t1.push(cur);
  87882. }
  87883. return t1;
  87884. } else {
  87885. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  87886. t1.push(this);
  87887. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  87888. t1.push(compound[_i]);
  87889. return t1;
  87890. }
  87891. },
  87892. $eq: function(_, other) {
  87893. if (other == null)
  87894. return false;
  87895. return other instanceof F.TypeSelector0 && other.name.$eq(0, this.name);
  87896. },
  87897. get$hashCode: function(_) {
  87898. var t1 = this.name;
  87899. return C.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  87900. }
  87901. };
  87902. G.Types.prototype = {};
  87903. X.UnaryOperationExpression0.prototype = {
  87904. accept$1$1: function(visitor) {
  87905. return visitor.visitUnaryOperationExpression$1(this);
  87906. },
  87907. accept$1: function(visitor) {
  87908. return this.accept$1$1(visitor, type$.dynamic);
  87909. },
  87910. toString$0: function(_) {
  87911. var t1 = this.operator,
  87912. t2 = t1.operator;
  87913. t1 = t1 === C.UnaryOperator_not_not0 ? t2 + H.Primitives_stringFromCharCode(32) : t2;
  87914. t1 += H.S(this.operand);
  87915. return t1.charCodeAt(0) == 0 ? t1 : t1;
  87916. },
  87917. $isExpression0: 1,
  87918. $isAstNode0: 1,
  87919. get$span: function() {
  87920. return this.span;
  87921. }
  87922. };
  87923. X.UnaryOperator0.prototype = {
  87924. toString$0: function(_) {
  87925. return this.name;
  87926. }
  87927. };
  87928. N.UniversalSelector0.prototype = {
  87929. get$minSpecificity: function() {
  87930. return 0;
  87931. },
  87932. accept$1$1: function(visitor) {
  87933. var t2,
  87934. t1 = this.namespace;
  87935. if (t1 != null) {
  87936. t2 = visitor._buffer;
  87937. t2.write$1(0, t1);
  87938. t2.writeCharCode$1(124);
  87939. }
  87940. visitor._buffer.writeCharCode$1(42);
  87941. return null;
  87942. },
  87943. accept$1: function(visitor) {
  87944. return this.accept$1$1(visitor, type$.dynamic);
  87945. },
  87946. unify$1: function(compound) {
  87947. var unified, t1, t2, cur, _i, _this = this;
  87948. if (C.JSArray_methods.get$first(compound) instanceof N.UniversalSelector0 || C.JSArray_methods.get$first(compound) instanceof F.TypeSelector0) {
  87949. unified = Y.unifyUniversalAndElement0(_this, C.JSArray_methods.get$first(compound));
  87950. if (unified == null)
  87951. return null;
  87952. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  87953. t1.push(unified);
  87954. for (t2 = H.SubListIterable$(compound, 1, null, H._arrayInstanceType(compound)._precomputed1), t2 = new H.ListIterator(t2, t2.get$length(t2)); t2.moveNext$0();) {
  87955. cur = t2.__internal$_current;
  87956. t1.push(cur);
  87957. }
  87958. return t1;
  87959. }
  87960. t1 = _this.namespace;
  87961. if (t1 != null && t1 !== "*") {
  87962. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_SimpleSelector_2);
  87963. t1.push(_this);
  87964. for (t2 = compound.length, _i = 0; _i < compound.length; compound.length === t2 || (0, H.throwConcurrentModificationError)(compound), ++_i)
  87965. t1.push(compound[_i]);
  87966. return t1;
  87967. }
  87968. if (compound.length !== 0)
  87969. return compound;
  87970. return H.setRuntimeTypeInfo([_this], type$.JSArray_legacy_SimpleSelector_2);
  87971. },
  87972. $eq: function(_, other) {
  87973. if (other == null)
  87974. return false;
  87975. return other instanceof N.UniversalSelector0 && other.namespace == this.namespace;
  87976. },
  87977. get$hashCode: function(_) {
  87978. return J.get$hashCode$(this.namespace);
  87979. }
  87980. };
  87981. R.UnprefixedMapView0.prototype = {
  87982. get$keys: function(_) {
  87983. return new R._UnprefixedKeys0(this);
  87984. },
  87985. $index: function(_, key) {
  87986. return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  87987. },
  87988. containsKey$1: function(key) {
  87989. return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(J.$add$ansx(this._unprefixed_map_view0$_prefix, key));
  87990. },
  87991. remove$1: function(_, key) {
  87992. return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, J.$add$ansx(this._unprefixed_map_view0$_prefix, key)) : null;
  87993. }
  87994. };
  87995. R._UnprefixedKeys0.prototype = {
  87996. get$iterator: function(_) {
  87997. var t1 = this._unprefixed_map_view0$_view._unprefixed_map_view0$_map;
  87998. t1 = J.where$1$ax(t1.get$keys(t1), new R._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new R._UnprefixedKeys_iterator_closure2(this), type$.legacy_String);
  87999. return t1.get$iterator(t1);
  88000. },
  88001. contains$1: function(_, key) {
  88002. return this._unprefixed_map_view0$_view.containsKey$1(key);
  88003. }
  88004. };
  88005. R._UnprefixedKeys_iterator_closure1.prototype = {
  88006. call$1: function(key) {
  88007. return J.startsWith$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
  88008. },
  88009. $signature: 5
  88010. };
  88011. R._UnprefixedKeys_iterator_closure2.prototype = {
  88012. call$1: function(key) {
  88013. return J.substring$1$s(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
  88014. },
  88015. $signature: 6
  88016. };
  88017. T.UseRule0.prototype = {
  88018. UseRule$4$configuration0: function(url, namespace, span, configuration) {
  88019. var t1, t2, _i, variable;
  88020. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  88021. variable = t1[_i];
  88022. if (variable.isGuarded)
  88023. throw H.wrapException(P.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  88024. }
  88025. },
  88026. accept$1$1: function(visitor) {
  88027. return visitor.visitUseRule$1(this);
  88028. },
  88029. accept$1: function(visitor) {
  88030. return this.accept$1$1(visitor, type$.dynamic);
  88031. },
  88032. toString$0: function(_) {
  88033. var t1 = this.url,
  88034. t2 = "@use " + H.S(new D.StringExpression0(X.Interpolation$0(H.setRuntimeTypeInfo([J.toString$0$(t1)], type$.JSArray_legacy_Object), null), true).asInterpolation$1$static(true).get$asPlain()),
  88035. basename = t1.get$pathSegments().length === 0 ? "" : C.JSArray_methods.get$last(t1.get$pathSegments()),
  88036. dot = J.getInterceptor$asx(basename).indexOf$1(basename, ".");
  88037. t1 = this.namespace;
  88038. if (t1 !== C.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  88039. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  88040. else
  88041. t1 = t2;
  88042. t2 = this.configuration;
  88043. t1 = (t2.length !== 0 ? t1 + (" with (" + C.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  88044. return t1.charCodeAt(0) == 0 ? t1 : t1;
  88045. },
  88046. $isAstNode0: 1,
  88047. $isStatement0: 1,
  88048. get$span: function() {
  88049. return this.span;
  88050. }
  88051. };
  88052. E.UserDefinedCallable0.prototype = {
  88053. get$name: function(_) {
  88054. return this.declaration.name;
  88055. },
  88056. $isAsyncCallable0: 1,
  88057. $isCallable0: 1
  88058. };
  88059. B.resolveImportPath_closure1.prototype = {
  88060. call$0: function() {
  88061. return B._exactlyOne0(B._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  88062. },
  88063. $signature: 17
  88064. };
  88065. B.resolveImportPath_closure2.prototype = {
  88066. call$0: function() {
  88067. return B._exactlyOne0(B._tryPathWithExtensions0(H.S(this.path) + ".import"));
  88068. },
  88069. $signature: 17
  88070. };
  88071. B._tryPathAsDirectory_closure0.prototype = {
  88072. call$0: function() {
  88073. return B._exactlyOne0(B._tryPathWithExtensions0(D.join(this.path, "index.import", null)));
  88074. },
  88075. $signature: 17
  88076. };
  88077. B._exactlyOne_closure0.prototype = {
  88078. call$1: function(path) {
  88079. var t1 = $.$get$context();
  88080. return C.JSString_methods.$add(" ", t1.prettyUri$1(t1.toUri$1(path)));
  88081. },
  88082. $signature: 6
  88083. };
  88084. B.forwardToString_closure.prototype = {
  88085. call$1: function(thisArg) {
  88086. return J.toString$0$(thisArg);
  88087. },
  88088. $signature: 41
  88089. };
  88090. B.createClass_closure.prototype = {
  88091. call$2: function($name, body) {
  88092. this.$prototype[$name] = P.allowInteropCaptureThis(body);
  88093. },
  88094. $signature: 453
  88095. };
  88096. B._PropertyDescriptor0.prototype = {};
  88097. B.indent_closure0.prototype = {
  88098. call$1: function(line) {
  88099. return C.JSString_methods.$add(C.JSString_methods.$mul(" ", this.indentation), line);
  88100. },
  88101. $signature: 6
  88102. };
  88103. B.flattenVertically_closure1.prototype = {
  88104. call$1: function(inner) {
  88105. return Q.QueueList_QueueList$from(inner, this.T._eval$1("0*"));
  88106. },
  88107. $signature: function() {
  88108. return this.T._eval$1("QueueList<0*>*(Iterable<0*>*)");
  88109. }
  88110. };
  88111. B.flattenVertically_closure2.prototype = {
  88112. call$1: function(queue) {
  88113. this.result.push(queue.removeFirst$0());
  88114. return queue.get$length(queue) === 0;
  88115. },
  88116. $signature: function() {
  88117. return this.T._eval$1("bool*(QueueList<0*>*)");
  88118. }
  88119. };
  88120. B.longestCommonSubsequence_closure2.prototype = {
  88121. call$2: function(element1, element2) {
  88122. return J.$eq$(element1, element2) ? element1 : null;
  88123. },
  88124. $signature: function() {
  88125. return this.T._eval$1("0*(0*,0*)");
  88126. }
  88127. };
  88128. B.longestCommonSubsequence_closure3.prototype = {
  88129. call$1: function(_) {
  88130. return P.List_List$filled(J.get$length$asx(this.list2) + 1, 0, false, type$.legacy_int);
  88131. },
  88132. $signature: 208
  88133. };
  88134. B.longestCommonSubsequence_closure4.prototype = {
  88135. call$1: function(_) {
  88136. var t1 = new Array(J.get$length$asx(this.list2));
  88137. t1.fixed$length = Array;
  88138. return H.setRuntimeTypeInfo(t1, this.T._eval$1("JSArray<0*>"));
  88139. },
  88140. $signature: function() {
  88141. return this.T._eval$1("List<0*>*(int*)");
  88142. }
  88143. };
  88144. B.longestCommonSubsequence_backtrack0.prototype = {
  88145. call$2: function(i, j) {
  88146. var selection, t1, _this = this;
  88147. if (i === -1 || j === -1)
  88148. return H.setRuntimeTypeInfo([], _this.T._eval$1("JSArray<0*>"));
  88149. selection = J.$index$asx(_this.selections[i], j);
  88150. if (selection != null) {
  88151. t1 = _this.call$2(i - 1, j - 1);
  88152. J.add$1$ax(t1, selection);
  88153. return t1;
  88154. }
  88155. t1 = _this.lengths;
  88156. return J.$index$asx(t1[i + 1], j) > J.$index$asx(t1[i], j + 1) ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  88157. },
  88158. $signature: function() {
  88159. return this.T._eval$1("List<0*>*(int*,int*)");
  88160. }
  88161. };
  88162. B.mapAddAll2_closure0.prototype = {
  88163. call$2: function(key, inner) {
  88164. var t1 = this.destination;
  88165. if (t1.containsKey$1(key))
  88166. t1.$index(0, key).addAll$1(0, inner);
  88167. else
  88168. t1.$indexSet(0, key, inner);
  88169. },
  88170. $signature: function() {
  88171. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("Null(1*,Map<2*,3*>*)");
  88172. }
  88173. };
  88174. F.CssValue0.prototype = {
  88175. toString$0: function(_) {
  88176. return J.toString$0$(this.value);
  88177. },
  88178. $isAstNode0: 1,
  88179. get$value: function(receiver) {
  88180. return this.value;
  88181. },
  88182. get$span: function() {
  88183. return this.span;
  88184. }
  88185. };
  88186. F.ValueExpression0.prototype = {
  88187. accept$1$1: function(visitor) {
  88188. return visitor.visitValueExpression$1(this);
  88189. },
  88190. accept$1: function(visitor) {
  88191. return this.accept$1$1(visitor, type$.dynamic);
  88192. },
  88193. toString$0: function(_) {
  88194. return J.toString$0$(this.value);
  88195. },
  88196. $isExpression0: 1,
  88197. $isAstNode0: 1,
  88198. get$span: function() {
  88199. return this.span;
  88200. }
  88201. };
  88202. F.ModifiableCssValue0.prototype = {
  88203. toString$0: function(_) {
  88204. return J.toString$0$(this.value);
  88205. },
  88206. $isAstNode0: 1,
  88207. $isCssValue0: 1,
  88208. get$value: function(receiver) {
  88209. return this.value;
  88210. },
  88211. get$span: function() {
  88212. return this.span;
  88213. }
  88214. };
  88215. F.Value0.prototype = {
  88216. get$isTruthy: function() {
  88217. return true;
  88218. },
  88219. get$separator: function() {
  88220. return C.ListSeparator_undecided0;
  88221. },
  88222. get$hasBrackets: function() {
  88223. return false;
  88224. },
  88225. get$asList: function() {
  88226. return H.setRuntimeTypeInfo([this], type$.JSArray_legacy_Value_2);
  88227. },
  88228. get$lengthAsList: function() {
  88229. return 1;
  88230. },
  88231. get$isBlank: function() {
  88232. return false;
  88233. },
  88234. get$isSpecialNumber: function() {
  88235. return false;
  88236. },
  88237. get$isVar: function() {
  88238. return false;
  88239. },
  88240. get$realNull: function() {
  88241. return this;
  88242. },
  88243. sassIndexToListIndex$2: function(sassIndex, $name) {
  88244. var _this = this,
  88245. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  88246. if (index === 0)
  88247. throw H.wrapException(_this._value0$_exception$2("List index may not be 0.", $name));
  88248. if (Math.abs(index) > _this.get$lengthAsList())
  88249. throw H.wrapException(_this._value0$_exception$2("Invalid index " + sassIndex.toString$0(0) + " for a list with " + _this.get$lengthAsList() + " elements.", $name));
  88250. return index < 0 ? _this.get$lengthAsList() + index : index - 1;
  88251. },
  88252. assertColor$1: function($name) {
  88253. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a color.", $name));
  88254. },
  88255. assertFunction$1: function($name) {
  88256. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a function reference.", $name));
  88257. },
  88258. assertMap$1: function($name) {
  88259. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a map.", $name));
  88260. },
  88261. tryMap$0: function() {
  88262. return null;
  88263. },
  88264. assertNumber$1: function($name) {
  88265. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a number.", $name));
  88266. },
  88267. assertNumber$0: function() {
  88268. return this.assertNumber$1(null);
  88269. },
  88270. assertString$1: function($name) {
  88271. return H.throwExpression(this._value0$_exception$2(this.toString$0(0) + " is not a string.", $name));
  88272. },
  88273. assertSelector$2$allowParent$name: function(allowParent, $name) {
  88274. var error, t1, exception,
  88275. string = this._value0$_selectorString$1($name);
  88276. try {
  88277. t1 = D.SelectorList_SelectorList$parse0(string, allowParent, true, null);
  88278. return t1;
  88279. } catch (exception) {
  88280. t1 = H.unwrapException(exception);
  88281. if (t1 instanceof E.SassFormatException0) {
  88282. error = t1;
  88283. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  88284. } else
  88285. throw exception;
  88286. }
  88287. },
  88288. assertSelector$1$name: function($name) {
  88289. return this.assertSelector$2$allowParent$name(false, $name);
  88290. },
  88291. assertSelector$0: function() {
  88292. return this.assertSelector$2$allowParent$name(false, null);
  88293. },
  88294. assertSelector$1$allowParent: function(allowParent) {
  88295. return this.assertSelector$2$allowParent$name(allowParent, null);
  88296. },
  88297. assertCompoundSelector$1$name: function($name) {
  88298. var error, t1, exception,
  88299. allowParent = false,
  88300. string = this._value0$_selectorString$1($name);
  88301. try {
  88302. t1 = T.SelectorParser$0(string, allowParent, true, null, null).parseCompoundSelector$0();
  88303. return t1;
  88304. } catch (exception) {
  88305. t1 = H.unwrapException(exception);
  88306. if (t1 instanceof E.SassFormatException0) {
  88307. error = t1;
  88308. throw H.wrapException(this._value0$_exception$2(C.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", ""), $name));
  88309. } else
  88310. throw exception;
  88311. }
  88312. },
  88313. _value0$_selectorString$1: function($name) {
  88314. var string = this._value0$_selectorStringOrNull$0();
  88315. if (string != null)
  88316. return string;
  88317. throw H.wrapException(this._value0$_exception$2(this.toString$0(0) + string$.x20is_no, $name));
  88318. },
  88319. _value0$_selectorString$0: function() {
  88320. return this._value0$_selectorString$1(null);
  88321. },
  88322. _value0$_selectorStringOrNull$0: function() {
  88323. var t1, t2, result, t3, _i, complex, string, compound, _this = this, _null = null;
  88324. if (_this instanceof D.SassString0)
  88325. return _this.text;
  88326. if (!(_this instanceof D.SassList0))
  88327. return _null;
  88328. t1 = _this._list1$_contents;
  88329. t2 = t1.length;
  88330. if (t2 === 0)
  88331. return _null;
  88332. result = H.setRuntimeTypeInfo([], type$.JSArray_legacy_String);
  88333. t3 = _this.separator === C.ListSeparator_comma0;
  88334. if (t3)
  88335. for (_i = 0; _i < t2; ++_i) {
  88336. complex = t1[_i];
  88337. if (complex instanceof D.SassString0)
  88338. result.push(complex.text);
  88339. else if (complex instanceof D.SassList0 && complex.separator === C.ListSeparator_space0) {
  88340. string = complex._value0$_selectorString$0();
  88341. result.push(string);
  88342. } else
  88343. return _null;
  88344. }
  88345. else
  88346. for (_i = 0; _i < t2; ++_i) {
  88347. compound = t1[_i];
  88348. if (compound instanceof D.SassString0)
  88349. result.push(compound.text);
  88350. else
  88351. return _null;
  88352. }
  88353. return C.JSArray_methods.join$1(result, t3 ? ", " : " ");
  88354. },
  88355. changeListContents$2$separator: function(contents, separator) {
  88356. var t1 = separator == null ? this.get$separator() : separator,
  88357. t2 = this.get$hasBrackets();
  88358. return D.SassList$0(contents, t1, t2);
  88359. },
  88360. changeListContents$1: function(contents) {
  88361. return this.changeListContents$2$separator(contents, null);
  88362. },
  88363. greaterThan$1: function(other) {
  88364. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + H.S(other) + '".'));
  88365. },
  88366. greaterThanOrEquals$1: function(other) {
  88367. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + H.S(other) + '".'));
  88368. },
  88369. lessThan$1: function(other) {
  88370. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + H.S(other) + '".'));
  88371. },
  88372. lessThanOrEquals$1: function(other) {
  88373. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + H.S(other) + '".'));
  88374. },
  88375. times$1: function(other) {
  88376. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + H.S(other) + '".'));
  88377. },
  88378. modulo$1: function(other) {
  88379. return H.throwExpression(E.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + H.S(other) + '".'));
  88380. },
  88381. plus$1: function(other) {
  88382. var t1;
  88383. if (other instanceof D.SassString0)
  88384. return new D.SassString0(C.JSString_methods.$add(N.serializeValue(this, false, true), other.text), other.hasQuotes);
  88385. else {
  88386. t1 = N.serializeValue(this, false, true);
  88387. other.toString;
  88388. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  88389. }
  88390. },
  88391. minus$1: function(other) {
  88392. var t1 = N.serializeValue(this, false, true) + "-";
  88393. other.toString;
  88394. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  88395. },
  88396. dividedBy$1: function(other) {
  88397. var t1 = N.serializeValue(this, false, true) + "/";
  88398. other.toString;
  88399. return new D.SassString0(t1 + N.serializeValue(other, false, true), false);
  88400. },
  88401. unaryPlus$0: function() {
  88402. return new D.SassString0("+" + N.serializeValue(this, false, true), false);
  88403. },
  88404. unaryMinus$0: function() {
  88405. return new D.SassString0("-" + N.serializeValue(this, false, true), false);
  88406. },
  88407. unaryNot$0: function() {
  88408. return C.SassBoolean_false;
  88409. },
  88410. withoutSlash$0: function() {
  88411. return this;
  88412. },
  88413. toString$0: function(_) {
  88414. return N.serializeValue(this, true, true);
  88415. },
  88416. _value0$_exception$2: function(message, $name) {
  88417. return new E.SassScriptException0($name == null ? message : "$" + $name + ": " + message);
  88418. }
  88419. };
  88420. S.VariableExpression0.prototype = {
  88421. accept$1$1: function(visitor) {
  88422. return visitor.visitVariableExpression$1(this);
  88423. },
  88424. accept$1: function(visitor) {
  88425. return this.accept$1$1(visitor, type$.dynamic);
  88426. },
  88427. toString$0: function(_) {
  88428. var t1 = this.namespace;
  88429. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  88430. t1 += this.name;
  88431. return t1.charCodeAt(0) == 0 ? t1 : t1;
  88432. },
  88433. $isExpression0: 1,
  88434. $isAstNode0: 1,
  88435. get$span: function() {
  88436. return this.span;
  88437. }
  88438. };
  88439. Z.VariableDeclaration0.prototype = {
  88440. accept$1$1: function(visitor) {
  88441. return visitor.visitVariableDeclaration$1(this);
  88442. },
  88443. accept$1: function(visitor) {
  88444. return this.accept$1$1(visitor, type$.dynamic);
  88445. },
  88446. toString$0: function(_) {
  88447. var t1 = this.namespace;
  88448. t1 = t1 != null ? "$" + (t1 + ".") : "$";
  88449. t1 += this.name + ": " + H.S(this.expression) + ";";
  88450. return t1.charCodeAt(0) == 0 ? t1 : t1;
  88451. },
  88452. $isAstNode0: 1,
  88453. $isStatement0: 1,
  88454. get$span: function() {
  88455. return this.span;
  88456. }
  88457. };
  88458. N.withWarnCallback_closure0.prototype = {
  88459. call$0: function() {
  88460. return this.callback.call$0();
  88461. },
  88462. "call*": "call$0",
  88463. $requiredArgCount: 0,
  88464. $signature: function() {
  88465. return this.T._eval$1("0*()");
  88466. }
  88467. };
  88468. Y.WarnRule0.prototype = {
  88469. accept$1$1: function(visitor) {
  88470. return visitor.visitWarnRule$1(this);
  88471. },
  88472. accept$1: function(visitor) {
  88473. return this.accept$1$1(visitor, type$.dynamic);
  88474. },
  88475. toString$0: function(_) {
  88476. return "@warn " + H.S(this.expression) + ";";
  88477. },
  88478. $isAstNode0: 1,
  88479. $isStatement0: 1,
  88480. get$span: function() {
  88481. return this.span;
  88482. }
  88483. };
  88484. G.WhileRule0.prototype = {
  88485. accept$1$1: function(visitor) {
  88486. return visitor.visitWhileRule$1(this);
  88487. },
  88488. accept$1: function(visitor) {
  88489. return this.accept$1$1(visitor, type$.dynamic);
  88490. },
  88491. toString$0: function(_) {
  88492. var t1 = this.children;
  88493. return "@while " + H.S(this.condition) + " {" + (t1 && C.JSArray_methods).join$1(t1, " ") + "}";
  88494. },
  88495. get$span: function() {
  88496. return this.span;
  88497. }
  88498. };
  88499. (function aliases() {
  88500. var _ = J.Interceptor.prototype;
  88501. _.super$Interceptor$noSuchMethod = _.noSuchMethod$1;
  88502. _ = J.JavaScriptObject.prototype;
  88503. _.super$JavaScriptObject$toString = _.toString$0;
  88504. _ = H.JsLinkedHashMap.prototype;
  88505. _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
  88506. _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
  88507. _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
  88508. _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
  88509. _ = P._BroadcastStreamController.prototype;
  88510. _.super$_BroadcastStreamController$_addEventError = _._addEventError$0;
  88511. _ = P._BufferingStreamSubscription.prototype;
  88512. _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
  88513. _.super$_BufferingStreamSubscription$_addError = _._addError$2;
  88514. _ = P.ListMixin.prototype;
  88515. _.super$ListMixin$setRange = _.setRange$4;
  88516. _ = P.Iterable.prototype;
  88517. _.super$Iterable$where = _.where$1;
  88518. _.super$Iterable$skipWhile = _.skipWhile$1;
  88519. _ = B.ModifiableCssParentNode.prototype;
  88520. _.super$ModifiableCssParentNode$addChild = _.addChild$1;
  88521. _ = M.SimpleSelector.prototype;
  88522. _.super$SimpleSelector$addSuffix = _.addSuffix$1;
  88523. _.super$SimpleSelector$unify = _.unify$1;
  88524. _ = G.Parser.prototype;
  88525. _.super$Parser$silentComment = _.silentComment$0;
  88526. _ = V.StylesheetParser.prototype;
  88527. _.super$StylesheetParser$importArgument = _.importArgument$0;
  88528. _ = F.Value.prototype;
  88529. _.super$Value$assertMap = _.assertMap$1;
  88530. _.super$Value$plus = _.plus$1;
  88531. _.super$Value$minus = _.minus$1;
  88532. _.super$Value$dividedBy = _.dividedBy$1;
  88533. _ = Y.SourceSpanMixin.prototype;
  88534. _.super$SourceSpanMixin$compareTo = _.compareTo$1;
  88535. _.super$SourceSpanMixin$$eq = _.$eq;
  88536. _ = X.StringScanner.prototype;
  88537. _.super$StringScanner$readChar = _.readChar$0;
  88538. _.super$StringScanner$scanChar = _.scanChar$1;
  88539. _.super$StringScanner$scan = _.scan$1;
  88540. _.super$StringScanner$matches = _.matches$1;
  88541. _ = B.ModifiableCssParentNode0.prototype;
  88542. _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
  88543. _ = G.Parser1.prototype;
  88544. _.super$Parser$silentComment0 = _.silentComment$0;
  88545. _ = M.SimpleSelector0.prototype;
  88546. _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
  88547. _.super$SimpleSelector$unify0 = _.unify$1;
  88548. _ = V.StylesheetParser0.prototype;
  88549. _.super$StylesheetParser$importArgument0 = _.importArgument$0;
  88550. _ = F.Value0.prototype;
  88551. _.super$Value$assertMap0 = _.assertMap$1;
  88552. _.super$Value$plus0 = _.plus$1;
  88553. _.super$Value$minus0 = _.minus$1;
  88554. _.super$Value$dividedBy0 = _.dividedBy$1;
  88555. })();
  88556. (function installTearOffs() {
  88557. var _static_2 = hunkHelpers._static_2,
  88558. _instance_1_i = hunkHelpers._instance_1i,
  88559. _instance_1_u = hunkHelpers._instance_1u,
  88560. _static_1 = hunkHelpers._static_1,
  88561. _static_0 = hunkHelpers._static_0,
  88562. _static = hunkHelpers.installStaticTearOff,
  88563. _instance_0_u = hunkHelpers._instance_0u,
  88564. _instance = hunkHelpers.installInstanceTearOff,
  88565. _instance_2_u = hunkHelpers._instance_2u,
  88566. _instance_0_i = hunkHelpers._instance_0i;
  88567. _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 167);
  88568. _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 26);
  88569. _instance_1_i(H._CastIterableBase.prototype, "get$contains", "contains$1", 26);
  88570. _instance_1_u(H.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 26);
  88571. _instance_1_u(H.ConstantProtoMap.prototype, "get$containsKey", "containsKey$1", 26);
  88572. _instance_1_u(H.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 26);
  88573. _static_1(P, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 124);
  88574. _static_1(P, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 124);
  88575. _static_1(P, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 124);
  88576. _static_0(P, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 1);
  88577. _static_1(P, "async___nullDataHandler$closure", "_nullDataHandler", 214);
  88578. _static_2(P, "async___nullErrorHandler$closure", "_nullErrorHandler", 56);
  88579. _static_0(P, "async___nullDoneHandler$closure", "_nullDoneHandler", 1);
  88580. _static(P, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 456, 0);
  88581. _static(P, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
  88582. return P._rootRun($self, $parent, zone, f, type$.dynamic);
  88583. }], 457, 1);
  88584. _static(P, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
  88585. return P._rootRunUnary($self, $parent, zone, f, arg, type$.dynamic, type$.dynamic);
  88586. }], 458, 1);
  88587. _static(P, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
  88588. return P._rootRunBinary($self, $parent, zone, f, arg1, arg2, type$.dynamic, type$.dynamic, type$.dynamic);
  88589. }], 459, 1);
  88590. _static(P, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
  88591. return P._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
  88592. }], 460, 0);
  88593. _static(P, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
  88594. return P._rootRegisterUnaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic);
  88595. }], 461, 0);
  88596. _static(P, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
  88597. return P._rootRegisterBinaryCallback($self, $parent, zone, f, type$.dynamic, type$.dynamic, type$.dynamic);
  88598. }], 462, 0);
  88599. _static(P, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 463, 0);
  88600. _static(P, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 464, 0);
  88601. _static(P, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 465, 0);
  88602. _static(P, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 466, 0);
  88603. _static(P, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 467, 0);
  88604. _static_1(P, "async___printToZone$closure", "_printToZone", 468);
  88605. _static(P, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 469, 0);
  88606. var _;
  88607. _instance_0_u(_ = P._BroadcastSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  88608. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  88609. _instance(P._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
  88610. return [null];
  88611. }, ["call$1", "call$0"], ["complete$1", "complete$0"], 298, 0);
  88612. _instance_2_u(P._Future.prototype, "get$_completeError", "_completeError$2", 56);
  88613. _instance_1_i(_ = P._StreamController.prototype, "get$add", "add$1", 63);
  88614. _instance(_, "get$addError", 0, 1, function() {
  88615. return [null];
  88616. }, ["call$2", "call$1"], ["addError$2", "addError$1"], 289, 0);
  88617. _instance_0_i(_, "get$close", "close$0", 285);
  88618. _instance_1_u(_, "get$_async$_add", "_async$_add$1", 63);
  88619. _instance_2_u(_, "get$_addError", "_addError$2", 56);
  88620. _instance_0_u(_, "get$_close", "_close$0", 1);
  88621. _instance_0_u(_ = P._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  88622. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  88623. _instance(_ = P._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 154, 0);
  88624. _instance_0_i(_, "get$resume", "resume$0", 1);
  88625. _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 1);
  88626. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  88627. _instance(_ = P._DoneStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 154, 0);
  88628. _instance_0_i(_, "get$resume", "resume$0", 1);
  88629. _instance_0_u(_, "get$_sendDone", "_sendDone$0", 1);
  88630. _instance_1_u(_ = P._StreamIterator.prototype, "get$_onData", "_onData$1", 63);
  88631. _instance_2_u(_, "get$_onError", "_onError$2", 56);
  88632. _instance_0_u(_, "get$_onDone", "_onDone$0", 1);
  88633. _instance_0_u(_ = P._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 1);
  88634. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 1);
  88635. _instance_1_u(_, "get$_handleData", "_handleData$1", 63);
  88636. _instance_2_u(_, "get$_handleError", "_handleError$2", 283);
  88637. _instance_0_u(_, "get$_handleDone", "_handleDone$0", 1);
  88638. _static_2(P, "collection___defaultEquals$closure", "_defaultEquals", 148);
  88639. _static_1(P, "collection___defaultHashCode$closure", "_defaultHashCode", 174);
  88640. _static_2(P, "collection_ListMixin__compareAny$closure", "ListMixin__compareAny", 167);
  88641. _instance_1_u(P._HashMap.prototype, "get$containsKey", "containsKey$1", 26);
  88642. _instance_1_u(P._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 26);
  88643. _instance(_ = P._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 278, 0);
  88644. _instance_1_i(_, "get$contains", "contains$1", 26);
  88645. _instance(P._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 274, 0);
  88646. _instance_1_u(P.MapMixin.prototype, "get$containsKey", "containsKey$1", 26);
  88647. _instance_1_u(P.MapView.prototype, "get$containsKey", "containsKey$1", 26);
  88648. _instance(_ = P._UnmodifiableSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 266, 0);
  88649. _instance_1_i(_, "get$contains", "contains$1", 26);
  88650. _static_1(P, "convert___defaultToEncodable$closure", "_defaultToEncodable", 43);
  88651. _static_1(P, "core__identityHashCode$closure", "identityHashCode", 174);
  88652. _static_2(P, "core__identical$closure", "identical", 148);
  88653. _static_1(P, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 198);
  88654. _instance_1_i(P.Iterable.prototype, "get$contains", "contains$1", 26);
  88655. _static(P, "math__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
  88656. return P.max(a, b, type$.num);
  88657. }], 472, 1);
  88658. _instance_1_u(_ = Y.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 49);
  88659. _instance(_, "get$setError", 0, 1, function() {
  88660. return [null];
  88661. }, ["call$2", "call$1"], ["setError$2", "setError$1"], 296, 0);
  88662. _instance_0_u(_ = L.StreamGroup.prototype, "get$_onListen", "_onListen$0", 1);
  88663. _instance_0_u(_, "get$_onPause", "_onPause$0", 1);
  88664. _instance_0_u(_, "get$_onResume", "_onResume$0", 1);
  88665. _instance_0_u(_, "get$_onCancel", "_onCancel$0", 139);
  88666. _instance_1_i(O.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 23);
  88667. _instance_1_i(M._DelegatingIterableBase.prototype, "get$contains", "contains$1", 23);
  88668. _instance_1_i(M.MapKeySet.prototype, "get$contains", "contains$1", 23);
  88669. _instance_1_u(B.ModifiableCssNode.prototype, "get$_node0$_isInvisible", "_node0$_isInvisible$1", 7);
  88670. _instance_1_u(D.SelectorList.prototype, "get$_complexContainsParentSelector", "_complexContainsParentSelector$1", 14);
  88671. _static_1(Y, "functions___isUnique$closure", "_isUnique", 18);
  88672. _static_1(K, "color___opacify$closure", "_opacify", 25);
  88673. _static_1(K, "color___transparentize$closure", "_transparentize", 25);
  88674. _instance_0_u(_ = G.Parser.prototype, "get$whitespace", "whitespace$0", 1);
  88675. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  88676. _instance_0_u(_, "get$string", "string$0", 17);
  88677. _instance_0_u(U.SassParser.prototype, "get$loudComment", "loudComment$0", 1);
  88678. _instance(_ = V.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 262, 0);
  88679. _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 57);
  88680. _instance_0_u(_, "get$_declarationAtRule", "_declarationAtRule$0", 57);
  88681. _instance_0_u(_, "get$_functionChild", "_functionChild$0", 57);
  88682. _instance(_, "get$expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$singleEquals", "call$1$until"], ["expression$3$bracketList$singleEquals$until", "expression$0", "expression$2$singleEquals$until", "expression$1$bracketList", "expression$1$singleEquals", "expression$1$until"], 261, 0);
  88683. _instance_0_u(_, "get$_number", "_number$0", 259);
  88684. _instance_1_u(K.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 23);
  88685. _instance_1_u(Z.MergedMapView.prototype, "get$containsKey", "containsKey$1", 23);
  88686. _instance_1_i(N.NoSourceMapBuffer0.prototype, "get$write", "write$1", 49);
  88687. _instance_1_u(F.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 23);
  88688. _instance_1_u(U.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 23);
  88689. _instance_1_i(D.SourceMapBuffer0.prototype, "get$write", "write$1", 49);
  88690. _instance_1_u(R.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 23);
  88691. _static_1(B, "utils__isPublic$closure", "isPublic", 5);
  88692. _instance_1_u(_ = N._SerializeVisitor0.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 243);
  88693. _instance_1_u(_, "get$_isInvisible", "_isInvisible$1", 7);
  88694. _instance(Y.SourceFile.prototype, "get$span", 0, 1, null, ["call$2", "call$1"], ["span$2", "span$1"], 248, 0);
  88695. _instance(Y.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
  88696. return {color: null};
  88697. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 255, 0);
  88698. _static(L, "from_handlers__StreamTransformer__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["_StreamTransformer__defaultHandleError", function(error, stackTrace, sink) {
  88699. return L._StreamTransformer__defaultHandleError(error, stackTrace, sink, type$.dynamic);
  88700. }], 473, 0);
  88701. _static(R, "rate_limit___collectToList$closure", 2, null, ["call$1$2", "call$2"], ["_collectToList", function(element, soFar) {
  88702. return R._collectToList(element, soFar, type$.dynamic);
  88703. }], 474, 0);
  88704. _static_1(K, "color1___opacify$closure", "_opacify0", 29);
  88705. _static_1(K, "color1___transparentize$closure", "_transparentize0", 29);
  88706. _static_1(Y, "functions0___isUnique$closure", "_isUnique0", 19);
  88707. _instance_1_u(K.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 23);
  88708. _instance_1_u(D.SelectorList0.prototype, "get$_list2$_complexContainsParentSelector", "_list2$_complexContainsParentSelector$1", 13);
  88709. _instance_1_u(Z.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 23);
  88710. _instance_1_i(N.NoSourceMapBuffer.prototype, "get$write", "write$1", 49);
  88711. _instance_1_u(B.ModifiableCssNode0.prototype, "get$_node2$_isInvisible", "_node2$_isInvisible$1", 8);
  88712. _static_2(B, "node___render$closure", "_render", 475);
  88713. _static_1(B, "node___renderSync$closure", "_renderSync", 476);
  88714. _instance_0_u(_ = G.Parser1.prototype, "get$whitespace", "whitespace$0", 1);
  88715. _instance_0_u(_, "get$loudComment", "loudComment$0", 1);
  88716. _instance_0_u(_, "get$string", "string$0", 17);
  88717. _instance_1_u(F.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 23);
  88718. _instance_1_u(U.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 23);
  88719. _static_1(U, "sass__main$closure", "main", 477);
  88720. _instance_0_u(U.SassParser0.prototype, "get$loudComment", "loudComment$0", 1);
  88721. _instance_1_u(_ = N._SerializeVisitor.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 427);
  88722. _instance_1_u(_, "get$_serialize0$_isInvisible", "_serialize0$_isInvisible$1", 8);
  88723. _instance_1_i(D.SourceMapBuffer.prototype, "get$write", "write$1", 49);
  88724. _instance(_ = V.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 432, 0);
  88725. _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 52);
  88726. _instance_0_u(_, "get$_stylesheet0$_declarationAtRule", "_stylesheet0$_declarationAtRule$0", 52);
  88727. _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 52);
  88728. _instance_0_u(_, "get$_stylesheet0$_number", "_stylesheet0$_number$0", 434);
  88729. _instance_1_u(R.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 23);
  88730. _static_1(B, "utils0__isPublic$closure", "isPublic0", 5);
  88731. _static_1(D, "path__dirname$closure", "dirname", 6);
  88732. _static_1(T, "character__isWhitespace$closure", "isWhitespace", 24);
  88733. _static_1(T, "character__isNewline$closure", "isNewline", 24);
  88734. _static_1(T, "character__isHex$closure", "isHex", 24);
  88735. _static_2(T, "number0__fuzzyEquals$closure", "fuzzyEquals", 34);
  88736. _static_2(T, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 34);
  88737. _static_2(T, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 34);
  88738. _static_2(T, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 34);
  88739. _static_2(T, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 34);
  88740. _static_1(T, "number0__fuzzyRound$closure", "fuzzyRound", 39);
  88741. _static_1(T, "character0__isWhitespace$closure", "isWhitespace0", 24);
  88742. _static_1(T, "character0__isNewline$closure", "isNewline0", 24);
  88743. _static_1(T, "character0__isHex$closure", "isHex0", 24);
  88744. _static_2(T, "number2__fuzzyEquals$closure", "fuzzyEquals0", 34);
  88745. _static_2(T, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 34);
  88746. _static_2(T, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 34);
  88747. _static_2(T, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 34);
  88748. _static_2(T, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 34);
  88749. _static_1(T, "number2__fuzzyRound$closure", "fuzzyRound0", 39);
  88750. _static_1(F, "value1__wrapValue$closure", "wrapValue", 319);
  88751. })();
  88752. (function inheritance() {
  88753. var _mixin = hunkHelpers.mixin,
  88754. _inherit = hunkHelpers.inherit,
  88755. _inheritMany = hunkHelpers.inheritMany;
  88756. _inherit(P.Object, null);
  88757. _inheritMany(P.Object, [H.JS_CONST, J.Interceptor, J.ArrayIterator, P.Iterable, H.CastIterator, H.Closure, P.Error, P._ListBase_Object_ListMixin, H.ListIterator, P.Iterator, H.ExpandIterator, H.EmptyIterator, H.FollowedByIterator, H.WhereTypeIterator, H.FixedLengthListMixin, H.UnmodifiableListMixin, H.Symbol, P.MapView, H.ConstantMap, H.JSInvocationMirror, H.TypeErrorDecoder, H.NullThrownFromJavaScriptException, H.ExceptionAndStackTrace, H._StackTrace, H._Required, P.MapMixin, H.LinkedHashMapCell, H.LinkedHashMapKeyIterator, H.JSSyntaxRegExp, H._MatchImplementation, H._AllMatchesIterator, H.StringMatch, H._StringAllMatchesIterator, H.Rti, H._FunctionParameters, H._Type, P._TimerImpl, P._AsyncAwaitCompleter, P._AsyncStarStreamController, P._IterationMarker, P._SyncStarIterator, P.Stream, P._BufferingStreamSubscription, P._BroadcastStreamController, P._Completer, P._FutureListener, P._Future, P._AsyncCallbackEntry, P.StreamTransformerBase, P._StreamController, P._SyncStreamControllerDispatch, P._AsyncStreamControllerDispatch, P._AddStreamState, P._DelayedEvent, P._DelayedDone, P._PendingEvents, P._DoneStreamSubscription, P._StreamIterator, P.AsyncError, P._ZoneFunction, P._RunNullaryZoneFunction, P._RunUnaryZoneFunction, P._RunBinaryZoneFunction, P._RegisterNullaryZoneFunction, P._RegisterUnaryZoneFunction, P._RegisterBinaryZoneFunction, P._ZoneSpecification, P._ZoneDelegate, P._Zone, P._HashMapKeyIterator, P._SetBase, P._LinkedHashSetCell, P._LinkedHashSetIterator, P.ListMixin, P._MapBaseValueIterator, P._UnmodifiableMapMixin, P._ListQueueIterator, P.Codec, P._Base64Encoder, P.ChunkedConversionSink, P._JsonStringifier, P.StringConversionSinkMixin, P._Utf8Encoder, P._Utf8Decoder, P.DateTime, P.Duration, P.OutOfMemoryError, P.StackOverflowError, P._Exception, P.FormatException, P.MapEntry, P.Null, P._StringStackTrace, P.RuneIterator, P.StringBuffer, P._Uri, P.UriData, P._SimpleUri, P._JSRandom, N.ArgParser, V.ArgResults, G.Option, G.OptionType, G.Parser0, G.Usage, V.ErrorResult, F.ValueResult, Y.StreamCompleter, L.StreamGroup, L._StreamGroupState, G.StreamQueue, G._NextRequest, Q.Repl, B.ReplAdapter, U.DefaultEquality, U.IterableEquality, U.ListEquality, U._MapEntry, U.MapEquality, Q._QueueList_Object_ListMixin, M._DelegatingIterableBase, L.UnmodifiableSetMixin, M.Context, M._PathDirection, M._PathRelation, O.Style, X.ParsedPath, X.PathException, F.CssMediaQuery, F._SingletonCssMediaQueryMergeResult, F.MediaQuerySuccessfulMergeResult, B.AstNode, F.ModifiableCssValue, F.CssValue, B._FakeAstNode, Z.Argument, B.ArgumentDeclaration, X.ArgumentInvocation, V.AtRootQuery, Z.ConfiguredVariable, V.BinaryOperationExpression, V.BinaryOperator, Z.BooleanExpression, K.ColorExpression, F.FunctionExpression, L.IfExpression, D.ListExpression, A.MapExpression, O.NullExpression, T.NumberExpression, T.ParenthesizedExpression, T.SelectorExpression, D.StringExpression, X.UnaryOperationExpression, X.UnaryOperator, F.ValueExpression, S.VariableExpression, B.DynamicImport, Q.StaticImport, X.Interpolation, M.ParentStatement, Q.ContentRule, Q.DebugRule, D.ErrorRule, X.ExtendRule, L.ForwardRule, V.IfRule, V.IfClause, B.ImportRule, A.IncludeRule, L.LoudComment, B.ReturnRule, B.SilentComment, T.UseRule, Z.VariableDeclaration, Y.WarnRule, Y.SupportsAnything, L.SupportsDeclaration, F.SupportsFunction, X.SupportsInterpolation, M.SupportsNegation, U.SupportsOperation, T.Selector, N.AttributeOperator, S.Combinator, D.QualifiedName, X.CompileResult, Q.AsyncEnvironment, Q._EnvironmentModule0, O.AsyncImportCache, S.AsyncBuiltInCallable, Q.BuiltInCallable, L.PlainCssCallable, E.UserDefinedCallable, A.Configuration, Z.ConfiguredValue, O.Environment, O._EnvironmentModule, G.SourceSpanException, E.SassScriptException, B.ExecutableOptions, B.UsageException, A._Watcher, T.EmptyExtender, F.Extender, S.Extension, L.ExtendMode, R.ImportCache, B.AsyncImporter, E.ImporterResult, Z.InterpolationBuffer, B.FileSystemException, B.Stderr, F._QuietLogger, S.StderrLogger, T.TrackingLogger, Q.BuiltInModule, R.ForwardedModuleView, B.ShadowedModuleView, G.Parser, M.StylesheetGraph, M.StylesheetNode, M.Syntax, G.FixedLengthListBuilder, U.MultiDirWatcher, N.NoSourceMapBuffer0, D.SourceMapBuffer0, F.Value, D.ListSeparator, E._EvaluateVisitor0, E._ImportedCssVisitor0, E.EvaluateResult, E._ArgumentResults0, V._CloneCssVisitor, R.Evaluator, R._EvaluateVisitor, R._ImportedCssVisitor, R._ArgumentResults, D.RecursiveStatementVisitor, N._SerializeVisitor0, N.OutputStyle, N.LineFeed, N.SerializeResult, L.Entry, T.Mapping, T.TargetLineEntry, T.TargetEntry, Y.SourceFile, D.SourceLocationMixin, Y.SourceSpanMixin, U.Highlighter, U._Highlight, U._Line, V.SourceLocation, U.Chain, A.Frame, T.LazyTrace, Y.Trace, N.UnparsedFrame, X.StringScanner, S._SpanScannerState, A.AsciiGlyphSet, K.UnicodeGlyphSet, S.Tuple2, S.Tuple3, E.WatchEvent, E.ChangeType, Y.SupportsAnything0, Z.Argument0, B.ArgumentDeclaration0, X.ArgumentInvocation0, F.Value0, B.AsyncImporter0, S.AsyncBuiltInCallable0, X.CompileResult0, Q.AsyncEnvironment0, Q._EnvironmentModule2, E._EvaluateVisitor2, E._ImportedCssVisitor2, E.EvaluateResult0, E._ArgumentResults2, O.AsyncImportCache0, G.Parser1, V.AtRootQuery0, M.ParentStatement0, B.AstNode0, T.Selector0, N.AttributeOperator0, V.BinaryOperationExpression0, V.BinaryOperator0, Z.BooleanExpression0, Q.BuiltInCallable0, Q.BuiltInModule0, V._CloneCssVisitor0, K.ColorExpression0, S.Combinator0, A.Configuration0, Z.ConfiguredValue0, Z.ConfiguredVariable0, Q.ContentRule0, Q.DebugRule0, L.SupportsDeclaration0, B.DynamicImport0, T.EmptyExtender0, O.Environment0, O._EnvironmentModule1, D.ErrorRule0, R._EvaluateVisitor1, R._ImportedCssVisitor1, R._ArgumentResults1, E.SassScriptException0, X.ExtendRule0, F.Extender0, S.Extension0, G.FixedLengthListBuilder0, L.ForwardRule0, R.ForwardedModuleView0, F.FunctionExpression0, F.SupportsFunction0, L.IfExpression0, V.IfRule0, V.IfClause0, F.NodeImporter, R.ImportCache0, B.ImportRule0, A.IncludeRule0, X.Interpolation0, X.SupportsInterpolation0, Z.InterpolationBuffer0, D.ListExpression0, D.ListSeparator0, L.LoudComment0, A.MapExpression0, F.CssMediaQuery0, F._SingletonCssMediaQueryMergeResult0, F.MediaQuerySuccessfulMergeResult0, L.ExtendMode0, M.SupportsNegation0, N.NoSourceMapBuffer, B._FakeAstNode0, B.FileSystemException0, B.Stderr0, O.NullExpression0, T.NumberExpression0, U.SupportsOperation0, T.ParenthesizedExpression0, L.PlainCssCallable0, D.QualifiedName0, E.ImporterResult0, B.ReturnRule0, T.SelectorExpression0, N._SerializeVisitor, N.OutputStyle0, N.LineFeed0, N.SerializeResult0, B.ShadowedModuleView0, B.SilentComment0, D.SourceMapBuffer, Q.StaticImport0, S.StderrLogger0, D.StringExpression0, M.Syntax0, X.UnaryOperationExpression0, X.UnaryOperator0, T.UseRule0, E.UserDefinedCallable0, F.CssValue0, F.ValueExpression0, F.ModifiableCssValue0, S.VariableExpression0, Z.VariableDeclaration0, Y.WarnRule0]);
  88758. _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JSArray, J.JSNumber, J.JSString, H.NativeTypedData]);
  88759. _inheritMany(J.JavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, B.Stdin, B.Stdout, B.ReadlineModule, B.ReadlineOptions, B.ReadlineInterface, V.BufferModule, V.BufferConstants, V.Buffer, F.ConsoleModule, F.Console, F.EventEmitter, D.FS, D.FSConstants, D.FSWatcher, D.ReadStream, D.ReadStreamOptions, D.WriteStream, D.WriteStreamOptions, D.Stats, E.Promise, E.Date, E.JsError, E.Atomics, Y.Modules, Y.Module1, Y.Net, Y.Socket, Y.NetAddress, Y.NetServer, X.NodeJsError, X.Process, X.CPUUsage, X.Release, D.StreamModule, D.Readable, D.Writable, D.Duplex, D.Transform, D.WritableOptions, D.ReadableOptions, L.Immediate, L.Timeout, N.TTY, M.Util, Y.Chokidar, Y.ChokidarOptions, Y.ChokidarWatcher, F.JSFunction, F.NodeImporterResult, B._PropertyDescriptor, Y.Chokidar0, Y.ChokidarOptions0, Y.ChokidarWatcher0, K._NodeSassColor, D.Exports, E.FiberClass, E.Fiber, F.JSFunction0, F.NodeImporterResult0, D._NodeSassList, A._NodeSassMap, T._NodeSassNumber, Z.RenderContext, L.RenderContextOptions, R.RenderOptions, U.RenderResult, U.RenderResultStats, R._Exports, D._NodeSassString, G.Types, B._PropertyDescriptor0]);
  88760. _inherit(J.JSUnmodifiableArray, J.JSArray);
  88761. _inheritMany(J.JSNumber, [J.JSInt, J.JSDouble]);
  88762. _inheritMany(P.Iterable, [H._CastIterableBase, H.EfficientLengthIterable, H.MappedIterable, H.WhereIterable, H.ExpandIterable, H.TakeIterable, H.SkipIterable, H.SkipWhileIterable, H.FollowedByIterable, H.WhereTypeIterable, H._ConstantMapKeyIterable, P.IterableBase, H._StringAllMatchesIterable, P.Runes]);
  88763. _inheritMany(H._CastIterableBase, [H.CastIterable, H.__CastListBase__CastIterableBase_ListMixin, H.CastSet, H.CastQueue]);
  88764. _inherit(H._EfficientLengthCastIterable, H.CastIterable);
  88765. _inherit(H._CastListBase, H.__CastListBase__CastIterableBase_ListMixin);
  88766. _inheritMany(H.Closure, [H._CastListBase_sort_closure, H.ConstantStringMap_values_closure, H.Instantiation, H.Primitives_functionNoSuchMethod_closure, H.TearOffClosure, H.JsLinkedHashMap_values_closure, H.JsLinkedHashMap_addAll_closure, H.initHooks_closure, H.initHooks_closure0, H.initHooks_closure1, P._AsyncRun__initializeScheduleImmediate_internalCallback, P._AsyncRun__initializeScheduleImmediate_closure, P._AsyncRun__scheduleImmediateJsOverride_internalCallback, P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, P._TimerImpl_internalCallback, P._TimerImpl$periodic_closure, P._awaitOnObject_closure, P._awaitOnObject_closure0, P._wrapJsFunctionForAsync_closure, P._asyncStarHelper_closure, P._asyncStarHelper_closure0, P._AsyncStarStreamController__resumeBody, P._AsyncStarStreamController__resumeBody_closure, P._AsyncStarStreamController_closure0, P._AsyncStarStreamController_closure1, P._AsyncStarStreamController_closure, P._AsyncStarStreamController__closure, P._SyncBroadcastStreamController__sendData_closure, P._SyncBroadcastStreamController__sendError_closure, P._SyncBroadcastStreamController__sendDone_closure, P.Future_wait__error_set, P.Future_wait__stackTrace_set, P.Future_wait__error_get, P.Future_wait__stackTrace_get, P.Future_wait_handleError, P.Future_wait_closure, P._Future__addListener_closure, P._Future__prependListeners_closure, P._Future__chainForeignFuture_closure, P._Future__chainForeignFuture_closure0, P._Future__chainForeignFuture_closure1, P._Future__asyncCompleteWithValue_closure, P._Future__chainFuture_closure, P._Future__asyncCompleteError_closure, P._Future__propagateToListeners_handleWhenCompleteCallback, P._Future__propagateToListeners_handleWhenCompleteCallback_closure, P._Future__propagateToListeners_handleValueCallback, P._Future__propagateToListeners_handleError, P.Stream_Stream$fromFuture_closure, P.Stream_Stream$fromFuture_closure0, P.Stream_length_closure, P.Stream_length_closure0, P._StreamController__subscribe_closure, P._StreamController__recordCancel_complete, P._AddStreamState_cancel_closure, P._BufferingStreamSubscription__sendError_sendError, P._BufferingStreamSubscription__sendDone_sendDone, P._PendingEvents_schedule_closure, P._CustomZone_bindCallback_closure, P._CustomZone_bindUnaryCallback_closure, P._CustomZone_bindCallbackGuarded_closure, P._rootHandleUncaughtError_closure, P._RootZone_bindCallback_closure, P._RootZone_bindCallbackGuarded_closure, P._HashMap_values_closure, P._HashMap_addAll_closure, P._LinkedCustomHashMap_closure, P.HashMap_HashMap$from_closure, P.LinkedHashMap_LinkedHashMap$from_closure, P.MapBase_mapToString_closure, P.MapMixin_entries_closure, P.Utf8Decoder_closure, P.Utf8Decoder_closure0, P._JsonStringifier_writeMap_closure, P.NoSuchMethodError_toString_closure, P.Duration_toString_sixDigits, P.Duration_toString_twoDigits, P.Uri__parseIPv4Address_error, P.Uri_parseIPv6Address_error, P.Uri_parseIPv6Address_parseHex, P._Uri__makePath_closure, P._createTables_closure, P._createTables_build, P._createTables_setChars, P._createTables_setRange, N.ArgParser_findByAbbreviation_closure, N.ArgParser_findByAbbreviation_closure0, G.Parser_parse_closure, G.Parser_setOption_closure, G.Usage_generate_closure, G.Usage_buildAllowedList_closure, L.StreamGroup_add_closure, L.StreamGroup_add_closure0, L.StreamGroup__onListen_closure, L.StreamGroup__onCancel_closure, L.StreamGroup__onCancel_closure0, L.StreamGroup__listenToStream_closure, G.StreamQueue__ensureListening_closure, G.StreamQueue__ensureListening_closure1, G.StreamQueue__ensureListening_closure0, Q.closure113, B.ReplAdapter_runAsync_closure, B.defaultCompare_closure, M.futureToPromise_closure, M.Context_join_closure, M.Context_joinAll_closure, M.Context_split_closure, M._validateArgList_closure, X.ParsedPath_normalize_closure, X.ParsedPath__splitExtension_closure, X.ParsedPath__splitExtension_closure0, K.PathMap__create_closure, K.PathMap__create_closure0, K.PathMap__create_closure1, L.WindowsStyle_absolutePathToUri_closure, B.ArgumentDeclaration_verify_closure, B.ArgumentDeclaration_verify_closure0, D.ListExpression_toString_closure, A.MapExpression_toString_closure, X.Interpolation_toString_closure, V.EachRule_toString_closure, V.IfRule_toString_closure, V.IfClause$__closure, V.IfClause$___closure, M.ParentStatement_closure, M.ParentStatement__closure, S.ComplexSelector_isInvisible_closure, X.CompoundSelector_isInvisible_closure, N.IDSelector_unify_closure, D.SelectorList_isInvisible_closure, D.SelectorList_asSassList_closure, D.SelectorList_asSassList__closure, D.SelectorList_unify_closure, D.SelectorList_unify__closure, D.SelectorList_unify___closure, D.SelectorList_resolveParentSelectors_closure, D.SelectorList_resolveParentSelectors__closure, D.SelectorList_resolveParentSelectors__closure0, D.SelectorList__complexContainsParentSelector_closure, D.SelectorList__complexContainsParentSelector__closure, D.SelectorList__resolveParentSelectorsCompound_closure, D.SelectorList__resolveParentSelectorsCompound_closure0, D.SelectorList__resolveParentSelectorsCompound_closure1, X._compileStylesheet_closure0, Q.AsyncEnvironment_importForwards_closure, Q.AsyncEnvironment_importForwards_closure0, Q.AsyncEnvironment_importForwards_closure1, Q.AsyncEnvironment_importForwards_closure2, Q.AsyncEnvironment__getVariableFromGlobalModule_closure, Q.AsyncEnvironment_setVariable_closure, Q.AsyncEnvironment_setVariable_closure0, Q.AsyncEnvironment_setVariable_closure1, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure, Q.AsyncEnvironment__getMixinFromGlobalModule_closure, Q._EnvironmentModule__EnvironmentModule_closure5, Q._EnvironmentModule__EnvironmentModule_closure6, Q._EnvironmentModule__EnvironmentModule_closure7, Q._EnvironmentModule__EnvironmentModule_closure8, Q._EnvironmentModule__EnvironmentModule_closure9, Q._EnvironmentModule__EnvironmentModule_closure10, O.AsyncImportCache_canonicalize_closure, O.AsyncImportCache__canonicalize_closure, O.AsyncImportCache_importCanonical_closure, O.AsyncImportCache_humanize_closure, O.AsyncImportCache_humanize_closure0, O.AsyncImportCache_humanize_closure1, S.AsyncBuiltInCallable$mixin_closure, Q.BuiltInCallable$mixin_closure, U._compileStylesheet_closure, O.Environment_importForwards_closure, O.Environment_importForwards_closure0, O.Environment_importForwards_closure1, O.Environment_importForwards_closure2, O.Environment__getVariableFromGlobalModule_closure, O.Environment_setVariable_closure, O.Environment_setVariable_closure0, O.Environment_setVariable_closure1, O.Environment__getFunctionFromGlobalModule_closure, O.Environment__getMixinFromGlobalModule_closure, O._EnvironmentModule__EnvironmentModule_closure, O._EnvironmentModule__EnvironmentModule_closure0, O._EnvironmentModule__EnvironmentModule_closure1, O._EnvironmentModule__EnvironmentModule_closure2, O._EnvironmentModule__EnvironmentModule_closure3, O._EnvironmentModule__EnvironmentModule_closure4, D._writeSourceMap_closure, B.ExecutableOptions_closure, B.ExecutableOptions_emitErrorCss_closure, A.watch_closure, A._Watcher__debounceEvents_closure, A._Watcher__debounceEvents__closure, F.Extender_extensionsWhereTarget_closure, F.Extender__registerSelector_closure, F.Extender_addExtension_closure, F.Extender_addExtension_closure0, F.Extender_addExtension_closure1, F.Extender__extendExistingExtensions_closure, F.Extender__extendExistingExtensions_closure0, F.Extender_addExtensions_closure, F.Extender_addExtensions__closure, F.Extender_addExtensions___closure, F.Extender_addExtensions___closure0, F.Extender__extendList_closure, F.Extender__extendComplex_closure, F.Extender__extendComplex_closure0, F.Extender__extendComplex__closure, F.Extender__extendComplex__closure0, F.Extender__extendComplex___closure, F.Extender__extendCompound_closure, F.Extender__extendCompound_closure0, F.Extender__extendCompound__closure, F.Extender__extendCompound__closure0, F.Extender__extendCompound_closure1, F.Extender__extendCompound_closure2, F.Extender__extendCompound_closure3, F.Extender__extendCompound_closure4, F.Extender__extendSimple_withoutPseudo, F.Extender__extendSimple_closure, F.Extender__extendPseudo_closure, F.Extender__extendPseudo_closure0, F.Extender__extendPseudo_closure1, F.Extender__extendPseudo_closure2, F.Extender__extendPseudo_closure3, F.Extender__trim_closure, F.Extender__trim_closure0, F.Extender_clone_closure, Y.unifyComplex_closure, Y._weaveParents_closure, Y._weaveParents_closure0, Y._weaveParents_closure1, Y._weaveParents__closure1, Y._weaveParents_closure2, Y._weaveParents_closure3, Y._weaveParents__closure0, Y._weaveParents_closure4, Y._weaveParents_closure5, Y._weaveParents__closure, Y._mustUnify_closure, Y._mustUnify__closure, Y.paths_closure, Y.paths__closure, Y.paths___closure, Y._hasRoot_closure, Y.listIsSuperselector_closure, Y.listIsSuperselector__closure, Y._simpleIsSuperselectorOfCompound_closure, Y._simpleIsSuperselectorOfCompound__closure, Y._selectorPseudoIsSuperselector_closure, Y._selectorPseudoIsSuperselector_closure0, Y._selectorPseudoIsSuperselector_closure1, Y._selectorPseudoIsSuperselector_closure2, Y._selectorPseudoIsSuperselector_closure3, Y._selectorPseudoIsSuperselector__closure, Y._selectorPseudoIsSuperselector___closure, Y._selectorPseudoIsSuperselector___closure0, Y._selectorPseudoIsSuperselector_closure4, Y._selectorPseudoIsSuperselector_closure5, Y._selectorPseudosNamed_closure, Y.closure, K.closure44, K.closure45, K.closure46, K.closure47, K.closure48, K.closure49, K.closure50, K.closure51, K.closure52, K.closure53, K.closure54, K.closure55, K.closure56, K.closure57, K.closure58, K.closure59, K.closure60, K.closure61, K.closure62, K.closure63, K.closure64, K.closure65, K.closure66, K.closure67, K.closure68, K.closure69, K._closure8, K.closure70, K.closure99, K.closure100, K.closure101, K.closure102, K.closure103, K.closure104, K.closure105, K.closure106, K._closure13, K.closure107, K.closure82, K.closure81, K.closure80, K.closure79, K.closure78, K.closure77, K.closure76, K.closure75, K.closure73, K.closure72, K.closure71, K.closure74, K.closure_hexString, K._updateComponents_getParam, K._updateComponents_closure, K._updateComponents_updateValue, K._updateComponents_updateRgb, K._functionString_closure, K._removedColorFunction_closure, K._removeUnits_closure, K._removeUnits_closure0, K._parseChannels_closure, D.closure43, D.closure42, D.closure41, D.closure40, D.closure39, D.closure38, D._closure5, D._closure6, D._closure7, D.closure37, D.closure35, D.closure36, A.closure34, A.closure97, A._closure12, A.closure98, A._closure11, A.closure32, A.closure33, A._closure4, A.closure96, A.closure95, A._closure10, A.closure30, A.closure31, A.closure29, A.closure28, A.closure27, A._modify__modifyNestedMap, A._deepMergeImpl__ensureMutable, A._deepMergeImpl_closure, K.closure25, K.closure90, K.closure24, K.closure23, K.closure22, K.closure26, K.closure88, K._closure9, K.closure87, K.closure86, K.closure84, K.closure94, K.closure93, K.closure92, K.closure91, K.closure89, K.closure85, K.closure83, K.closure18, K.closure17, K.closure19, K.closure21, K.closure20, K._numberFunction_closure, Q.closure108, Q.closure109, Q.closure110, Q.closure111, T.closure13, T._closure1, T._closure2, T.closure12, T._closure, T._closure0, T.__closure, T.closure11, T.closure10, T.closure9, T.closure16, T.closure15, T._closure3, T.closure14, D.closure8, D.closure7, D.closure3, D.closure2, D.closure1, D.closure0, D.closure6, D.closure5, D.closure4, R.ImportCache_canonicalize_closure, R.ImportCache__canonicalize_closure, R.ImportCache_importCanonical_closure, R.ImportCache_humanize_closure, R.ImportCache_humanize_closure0, R.ImportCache_humanize_closure1, B.resolveImportPath_closure, B.resolveImportPath_closure0, B._tryPathAsDirectory_closure, B._exactlyOne_closure, F._realCasePath_closure, B._readFile_closure, B.writeFile_closure, B.deleteFile_closure, B.readStdin_closure, B.readStdin_closure0, B.readStdin_closure1, B.readStdin_closure2, B.fileExists_closure, B.dirExists_closure, B.ensureDir_closure, B.listDir_closure, B.listDir__closure, B.listDir__closure0, B.listDir_closure_list, B.listDir__list_closure, B.modificationTime_closure, B.watchDir_closure, B.watchDir_closure0, B.watchDir_closure1, B.watchDir_closure2, B.watchDir_closure3, B.watchDir__closure, V.AtRootQueryParser_parse_closure, Q.closure112, E.KeyframeSelectorParser_parse_closure, F.MediaQueryParser_parse_closure, G.Parser__parseIdentifier_closure, G.Parser_scanIdentChar_matches, U.SassParser_children_closure, T.SelectorParser_parse_closure, T.SelectorParser_parseCompoundSelector_closure, V.StylesheetParser_parse_closure, V.StylesheetParser_parse__closure, V.StylesheetParser_parse__closure0, V.StylesheetParser_parseArgumentDeclaration_closure, V.StylesheetParser_parseVariableDeclaration_closure, V.StylesheetParser_parseUseRule_closure, V.StylesheetParser__parseSingleProduction_closure, V.StylesheetParser__statement_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure, V.StylesheetParser_variableDeclarationWithoutNamespace_closure0, V.StylesheetParser__declarationOrBuffer_closure, V.StylesheetParser__declarationOrBuffer_closure0, V.StylesheetParser__styleRule_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure, V.StylesheetParser__propertyOrVariableDeclaration_closure0, V.StylesheetParser__atRootRule_closure, V.StylesheetParser__atRootRule_closure0, V.StylesheetParser__eachRule_closure, V.StylesheetParser__functionRule_closure, V.StylesheetParser__forRule_closure, V.StylesheetParser__forRule_closure0, V.StylesheetParser__memberList_closure, V.StylesheetParser__includeRule_closure, V.StylesheetParser_mediaRule_closure, V.StylesheetParser__mixinRule_closure, V.StylesheetParser_mozDocumentRule_closure, V.StylesheetParser_supportsRule_closure, V.StylesheetParser__whileRule_closure, V.StylesheetParser_unknownAtRule_closure, V.StylesheetParser_expression_resetState, V.StylesheetParser_expression_resolveOneOperation, V.StylesheetParser_expression_resolveOperations, V.StylesheetParser_expression_addSingleExpression, V.StylesheetParser_expression_addOperator, V.StylesheetParser_expression_resolveSpaceExpressions, V.StylesheetParser__expressionUntilComma_closure, V.StylesheetParser__unicodeRange_closure, V.StylesheetParser__unicodeRange_closure0, V.StylesheetParser_identifierLike_closure, V.StylesheetParser__expressionUntilComparison_closure, V.StylesheetParser__publicIdentifier_closure, M.StylesheetGraph_modifiedSince_transitiveModificationTime, M.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, M.StylesheetGraph__add_closure, M.StylesheetGraph_addCanonical_closure, M.StylesheetGraph_reload_closure, M.StylesheetGraph__recanonicalizeImportsForNode_closure, M.StylesheetGraph__nodeFor_closure, M.StylesheetGraph__nodeFor_closure0, F._PrefixedKeys_iterator_closure, D.SourceMapBuffer__addEntry_closure, D.SourceMapBuffer_buildSourceMap_closure, R._UnprefixedKeys_iterator_closure, R._UnprefixedKeys_iterator_closure0, B.indent_closure, B.flattenVertically_closure, B.flattenVertically_closure0, B.longestCommonSubsequence_closure, B.longestCommonSubsequence_closure0, B.longestCommonSubsequence_closure1, B.longestCommonSubsequence_backtrack, B.mapAddAll2_closure, K.SassColor_SassColor$hwb_toRgb, D.SassList_isBlank_closure, A.SassMap_asList_closure, T.SassNumber__coerceOrConvertValue__compatibilityException, T.SassNumber__coerceOrConvertValue_closure, T.SassNumber__coerceOrConvertValue_closure0, T.SassNumber__coerceOrConvertValue_closure1, T.SassNumber__coerceOrConvertValue_closure2, T.SassNumber_modulo_closure, T.SassNumber_plus_closure, T.SassNumber_minus_closure, T.SassNumber__multiplyUnits_closure, T.SassNumber__multiplyUnits_closure0, T.SassNumber__multiplyUnits_closure1, T.SassNumber__multiplyUnits_closure2, T.SassNumber__areAnyConvertible_closure, T.SassNumber__canonicalMultiplier_closure, E._EvaluateVisitor_closure9, E._EvaluateVisitor_closure10, E._EvaluateVisitor_closure11, E._EvaluateVisitor_closure12, E._EvaluateVisitor_closure13, E._EvaluateVisitor_closure14, E._EvaluateVisitor_closure15, E._EvaluateVisitor_closure16, E._EvaluateVisitor__closure4, E._EvaluateVisitor_closure17, E._EvaluateVisitor_closure18, E._EvaluateVisitor__closure2, E._EvaluateVisitor__closure3, E._EvaluateVisitor_run_closure0, E._EvaluateVisitor__withWarnCallback_closure0, E._EvaluateVisitor__loadModule_closure1, E._EvaluateVisitor__loadModule_closure2, E._EvaluateVisitor__execute_closure0, E._EvaluateVisitor__combineCss_closure2, E._EvaluateVisitor__combineCss_closure3, E._EvaluateVisitor__combineCss_closure4, E._EvaluateVisitor__extendModules_closure1, E._EvaluateVisitor__extendModules_closure2, E._EvaluateVisitor__topologicalModules_visitModule0, E._EvaluateVisitor_visitAtRootRule_closure2, E._EvaluateVisitor_visitAtRootRule_closure3, E._EvaluateVisitor_visitAtRootRule_closure4, E._EvaluateVisitor__scopeForAtRoot_closure5, E._EvaluateVisitor__scopeForAtRoot_closure6, E._EvaluateVisitor__scopeForAtRoot_closure7, E._EvaluateVisitor__scopeForAtRoot__closure0, E._EvaluateVisitor__scopeForAtRoot_closure8, E._EvaluateVisitor__scopeForAtRoot_closure9, E._EvaluateVisitor__scopeForAtRoot_closure10, E._EvaluateVisitor_visitContentRule_closure0, E._EvaluateVisitor_visitDeclaration_closure0, E._EvaluateVisitor_visitEachRule_closure2, E._EvaluateVisitor_visitEachRule_closure3, E._EvaluateVisitor_visitEachRule_closure4, E._EvaluateVisitor_visitEachRule__closure0, E._EvaluateVisitor_visitEachRule___closure0, E._EvaluateVisitor_visitExtendRule_closure0, E._EvaluateVisitor_visitAtRule_closure1, E._EvaluateVisitor_visitAtRule__closure0, E._EvaluateVisitor_visitAtRule_closure2, E._EvaluateVisitor_visitForRule_closure4, E._EvaluateVisitor_visitForRule_closure5, E._EvaluateVisitor_visitForRule_closure6, E._EvaluateVisitor_visitForRule_closure7, E._EvaluateVisitor_visitForRule_closure8, E._EvaluateVisitor_visitForRule__closure0, E._EvaluateVisitor_visitForwardRule_closure1, E._EvaluateVisitor_visitForwardRule_closure2, E._EvaluateVisitor__assertConfigurationIsEmpty_closure0, E._EvaluateVisitor_visitIfRule_closure0, E._EvaluateVisitor_visitIfRule__closure0, E._EvaluateVisitor__visitDynamicImport_closure0, E._EvaluateVisitor__visitDynamicImport__closure0, E._EvaluateVisitor_visitIncludeRule_closure2, E._EvaluateVisitor_visitIncludeRule_closure3, E._EvaluateVisitor_visitIncludeRule_closure4, E._EvaluateVisitor_visitIncludeRule__closure0, E._EvaluateVisitor_visitIncludeRule___closure0, E._EvaluateVisitor_visitIncludeRule____closure0, E._EvaluateVisitor_visitMediaRule_closure1, E._EvaluateVisitor_visitMediaRule__closure0, E._EvaluateVisitor_visitMediaRule___closure0, E._EvaluateVisitor_visitMediaRule_closure2, E._EvaluateVisitor__visitMediaQueries_closure0, E._EvaluateVisitor_visitStyleRule_closure6, E._EvaluateVisitor_visitStyleRule_closure7, E._EvaluateVisitor_visitStyleRule_closure8, E._EvaluateVisitor_visitStyleRule_closure9, E._EvaluateVisitor_visitStyleRule_closure10, E._EvaluateVisitor_visitStyleRule_closure11, E._EvaluateVisitor_visitStyleRule__closure0, E._EvaluateVisitor_visitStyleRule_closure12, E._EvaluateVisitor_visitSupportsRule_closure1, E._EvaluateVisitor_visitSupportsRule__closure0, E._EvaluateVisitor_visitSupportsRule_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure2, E._EvaluateVisitor_visitVariableDeclaration_closure3, E._EvaluateVisitor_visitVariableDeclaration_closure4, E._EvaluateVisitor_visitUseRule_closure0, E._EvaluateVisitor_visitWarnRule_closure0, E._EvaluateVisitor_visitWhileRule_closure0, E._EvaluateVisitor_visitWhileRule__closure0, E._EvaluateVisitor_visitBinaryOperationExpression_closure0, E._EvaluateVisitor_visitVariableExpression_closure0, E._EvaluateVisitor_visitListExpression_closure0, E._EvaluateVisitor_visitFunctionExpression_closure1, E._EvaluateVisitor_visitFunctionExpression_closure2, E._EvaluateVisitor__runUserDefinedCallable_closure0, E._EvaluateVisitor__runUserDefinedCallable__closure0, E._EvaluateVisitor__runUserDefinedCallable___closure0, E._EvaluateVisitor__runUserDefinedCallable____closure0, E._EvaluateVisitor__runFunctionCallable_closure0, E._EvaluateVisitor__runBuiltInCallable_closure1, E._EvaluateVisitor__runBuiltInCallable_closure2, E._EvaluateVisitor__evaluateArguments_closure0, E._EvaluateVisitor__evaluateMacroArguments_closure3, E._EvaluateVisitor__evaluateMacroArguments_closure4, E._EvaluateVisitor__evaluateMacroArguments_closure5, E._EvaluateVisitor__evaluateMacroArguments_closure6, E._EvaluateVisitor__addRestMap_closure1, E._EvaluateVisitor__addRestMap_closure2, E._EvaluateVisitor__verifyArguments_closure0, E._EvaluateVisitor_visitStringExpression_closure0, E._EvaluateVisitor_visitCssAtRule_closure1, E._EvaluateVisitor_visitCssAtRule_closure2, E._EvaluateVisitor_visitCssKeyframeBlock_closure1, E._EvaluateVisitor_visitCssKeyframeBlock_closure2, E._EvaluateVisitor_visitCssMediaRule_closure1, E._EvaluateVisitor_visitCssMediaRule__closure0, E._EvaluateVisitor_visitCssMediaRule___closure0, E._EvaluateVisitor_visitCssMediaRule_closure2, E._EvaluateVisitor_visitCssStyleRule_closure1, E._EvaluateVisitor_visitCssStyleRule__closure0, E._EvaluateVisitor_visitCssStyleRule_closure2, E._EvaluateVisitor_visitCssSupportsRule_closure1, E._EvaluateVisitor_visitCssSupportsRule__closure0, E._EvaluateVisitor_visitCssSupportsRule_closure2, E._EvaluateVisitor__performInterpolation_closure0, E._EvaluateVisitor__serialize_closure0, E._EvaluateVisitor__stackTrace_closure0, E._ImportedCssVisitor_visitCssAtRule_closure0, E._ImportedCssVisitor_visitCssMediaRule_closure0, E._ImportedCssVisitor_visitCssStyleRule_closure0, E._ImportedCssVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor_closure, R._EvaluateVisitor_closure0, R._EvaluateVisitor_closure1, R._EvaluateVisitor_closure2, R._EvaluateVisitor_closure3, R._EvaluateVisitor_closure4, R._EvaluateVisitor_closure5, R._EvaluateVisitor_closure6, R._EvaluateVisitor__closure1, R._EvaluateVisitor_closure7, R._EvaluateVisitor_closure8, R._EvaluateVisitor__closure, R._EvaluateVisitor__closure0, R._EvaluateVisitor_run_closure, R._EvaluateVisitor_runExpression_closure, R._EvaluateVisitor_runExpression__closure, R._EvaluateVisitor_runStatement_closure, R._EvaluateVisitor_runStatement__closure, R._EvaluateVisitor__withWarnCallback_closure, R._EvaluateVisitor__loadModule_closure, R._EvaluateVisitor__loadModule_closure0, R._EvaluateVisitor__execute_closure, R._EvaluateVisitor__combineCss_closure, R._EvaluateVisitor__combineCss_closure0, R._EvaluateVisitor__combineCss_closure1, R._EvaluateVisitor__extendModules_closure, R._EvaluateVisitor__extendModules_closure0, R._EvaluateVisitor__topologicalModules_visitModule, R._EvaluateVisitor_visitAtRootRule_closure, R._EvaluateVisitor_visitAtRootRule_closure0, R._EvaluateVisitor_visitAtRootRule_closure1, R._EvaluateVisitor__scopeForAtRoot_closure, R._EvaluateVisitor__scopeForAtRoot_closure0, R._EvaluateVisitor__scopeForAtRoot_closure1, R._EvaluateVisitor__scopeForAtRoot__closure, R._EvaluateVisitor__scopeForAtRoot_closure2, R._EvaluateVisitor__scopeForAtRoot_closure3, R._EvaluateVisitor__scopeForAtRoot_closure4, R._EvaluateVisitor_visitContentRule_closure, R._EvaluateVisitor_visitDeclaration_closure, R._EvaluateVisitor_visitEachRule_closure, R._EvaluateVisitor_visitEachRule_closure0, R._EvaluateVisitor_visitEachRule_closure1, R._EvaluateVisitor_visitEachRule__closure, R._EvaluateVisitor_visitEachRule___closure, R._EvaluateVisitor_visitExtendRule_closure, R._EvaluateVisitor_visitAtRule_closure, R._EvaluateVisitor_visitAtRule__closure, R._EvaluateVisitor_visitAtRule_closure0, R._EvaluateVisitor_visitForRule_closure, R._EvaluateVisitor_visitForRule_closure0, R._EvaluateVisitor_visitForRule_closure1, R._EvaluateVisitor_visitForRule_closure2, R._EvaluateVisitor_visitForRule_closure3, R._EvaluateVisitor_visitForRule__closure, R._EvaluateVisitor_visitForwardRule_closure, R._EvaluateVisitor_visitForwardRule_closure0, R._EvaluateVisitor__assertConfigurationIsEmpty_closure, R._EvaluateVisitor_visitIfRule_closure, R._EvaluateVisitor_visitIfRule__closure, R._EvaluateVisitor__visitDynamicImport_closure, R._EvaluateVisitor__visitDynamicImport__closure, R._EvaluateVisitor_visitIncludeRule_closure, R._EvaluateVisitor_visitIncludeRule_closure0, R._EvaluateVisitor_visitIncludeRule_closure1, R._EvaluateVisitor_visitIncludeRule__closure, R._EvaluateVisitor_visitIncludeRule___closure, R._EvaluateVisitor_visitIncludeRule____closure, R._EvaluateVisitor_visitMediaRule_closure, R._EvaluateVisitor_visitMediaRule__closure, R._EvaluateVisitor_visitMediaRule___closure, R._EvaluateVisitor_visitMediaRule_closure0, R._EvaluateVisitor__visitMediaQueries_closure, R._EvaluateVisitor_visitStyleRule_closure, R._EvaluateVisitor_visitStyleRule_closure0, R._EvaluateVisitor_visitStyleRule_closure1, R._EvaluateVisitor_visitStyleRule_closure2, R._EvaluateVisitor_visitStyleRule_closure3, R._EvaluateVisitor_visitStyleRule_closure4, R._EvaluateVisitor_visitStyleRule__closure, R._EvaluateVisitor_visitStyleRule_closure5, R._EvaluateVisitor_visitSupportsRule_closure, R._EvaluateVisitor_visitSupportsRule__closure, R._EvaluateVisitor_visitSupportsRule_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure, R._EvaluateVisitor_visitVariableDeclaration_closure0, R._EvaluateVisitor_visitVariableDeclaration_closure1, R._EvaluateVisitor_visitUseRule_closure, R._EvaluateVisitor_visitWarnRule_closure, R._EvaluateVisitor_visitWhileRule_closure, R._EvaluateVisitor_visitWhileRule__closure, R._EvaluateVisitor_visitBinaryOperationExpression_closure, R._EvaluateVisitor_visitVariableExpression_closure, R._EvaluateVisitor_visitListExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure, R._EvaluateVisitor_visitFunctionExpression_closure0, R._EvaluateVisitor__runUserDefinedCallable_closure, R._EvaluateVisitor__runUserDefinedCallable__closure, R._EvaluateVisitor__runUserDefinedCallable___closure, R._EvaluateVisitor__runUserDefinedCallable____closure, R._EvaluateVisitor__runFunctionCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure, R._EvaluateVisitor__runBuiltInCallable_closure0, R._EvaluateVisitor__evaluateArguments_closure, R._EvaluateVisitor__evaluateMacroArguments_closure, R._EvaluateVisitor__evaluateMacroArguments_closure0, R._EvaluateVisitor__evaluateMacroArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure2, R._EvaluateVisitor__addRestMap_closure, R._EvaluateVisitor__addRestMap_closure0, R._EvaluateVisitor__verifyArguments_closure, R._EvaluateVisitor_visitStringExpression_closure, R._EvaluateVisitor_visitCssAtRule_closure, R._EvaluateVisitor_visitCssAtRule_closure0, R._EvaluateVisitor_visitCssKeyframeBlock_closure, R._EvaluateVisitor_visitCssKeyframeBlock_closure0, R._EvaluateVisitor_visitCssMediaRule_closure, R._EvaluateVisitor_visitCssMediaRule__closure, R._EvaluateVisitor_visitCssMediaRule___closure, R._EvaluateVisitor_visitCssMediaRule_closure0, R._EvaluateVisitor_visitCssStyleRule_closure, R._EvaluateVisitor_visitCssStyleRule__closure, R._EvaluateVisitor_visitCssStyleRule_closure0, R._EvaluateVisitor_visitCssSupportsRule_closure, R._EvaluateVisitor_visitCssSupportsRule__closure, R._EvaluateVisitor_visitCssSupportsRule_closure0, R._EvaluateVisitor__performInterpolation_closure, R._EvaluateVisitor__serialize_closure, R._EvaluateVisitor__stackTrace_closure, R._ImportedCssVisitor_visitCssAtRule_closure, R._ImportedCssVisitor_visitCssMediaRule_closure, R._ImportedCssVisitor_visitCssStyleRule_closure, R._ImportedCssVisitor_visitCssSupportsRule_closure, N.serialize_closure, N._SerializeVisitor_visitCssComment_closure, N._SerializeVisitor_visitCssAtRule_closure, N._SerializeVisitor_visitCssMediaRule_closure, N._SerializeVisitor_visitCssImport_closure, N._SerializeVisitor_visitCssImport__closure, N._SerializeVisitor_visitCssKeyframeBlock_closure, N._SerializeVisitor_visitCssStyleRule_closure, N._SerializeVisitor_visitCssSupportsRule_closure, N._SerializeVisitor_visitCssDeclaration_closure, N._SerializeVisitor_visitCssDeclaration_closure0, N._SerializeVisitor_visitList_closure, N._SerializeVisitor_visitList_closure0, N._SerializeVisitor_visitList_closure1, N._SerializeVisitor_visitMap_closure, N._SerializeVisitor_visitSelectorList_closure, N._SerializeVisitor__write_closure, N._SerializeVisitor__visitChildren_closure, N.withWarnCallback_closure, T.SingleMapping_SingleMapping$fromEntries_closure, T.SingleMapping_SingleMapping$fromEntries_closure0, T.SingleMapping_SingleMapping$fromEntries_closure1, T.SingleMapping_toJson_closure, T.SingleMapping_toJson_closure0, U.Highlighter_closure, U.Highlighter$__closure, U.Highlighter$___closure, U.Highlighter$__closure0, U.Highlighter__collateLines_closure, U.Highlighter__collateLines_closure0, U.Highlighter__collateLines_closure1, U.Highlighter__collateLines__closure, U.Highlighter_highlight_closure, U.Highlighter_highlight_closure0, U.Highlighter__writeFileStart_closure, U.Highlighter__writeMultilineHighlights_closure, U.Highlighter__writeMultilineHighlights_closure0, U.Highlighter__writeMultilineHighlights_closure1, U.Highlighter__writeMultilineHighlights_closure2, U.Highlighter__writeMultilineHighlights__closure, U.Highlighter__writeMultilineHighlights__closure0, U.Highlighter__writeHighlightedText_closure, U.Highlighter__writeIndicator_closure, U.Highlighter__writeIndicator_closure0, U.Highlighter__writeIndicator_closure1, U.Highlighter__writeSidebar_closure, U._Highlight_closure, U.Chain_Chain$parse_closure, U.Chain_Chain$parse_closure0, U.Chain_Chain$parse_closure1, U.Chain_toTrace_closure, U.Chain_toString_closure0, U.Chain_toString__closure0, U.Chain_toString_closure, U.Chain_toString__closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$parseV8_closure_parseLocation, A.Frame_Frame$_parseFirefoxEval_closure, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, T.LazyTrace_terse_closure, Y.Trace_Trace$from_closure, Y.Trace__parseVM_closure, Y.Trace__parseVM_closure0, Y.Trace$parseV8_closure, Y.Trace$parseV8_closure0, Y.Trace$parseJSCore_closure, Y.Trace$parseJSCore_closure0, Y.Trace$parseFirefox_closure, Y.Trace$parseFirefox_closure0, Y.Trace$parseFriendly_closure, Y.Trace$parseFriendly_closure0, Y.Trace_terse_closure, Y.Trace_foldFrames_closure, Y.Trace_foldFrames_closure0, Y.Trace_toString_closure0, Y.Trace_toString_closure, L._StreamTransformer_bind_closure, L._StreamTransformer_bind__closure, L._StreamTransformer_bind__closure1, L._StreamTransformer_bind__closure0, L._StreamTransformer_bind__closure2, R._debounceAggregate_closure, R._debounceAggregate__closure, R._debounceAggregate_closure0, B.ArgumentDeclaration_verify_closure1, B.ArgumentDeclaration_verify_closure2, S.AsyncBuiltInCallable$mixin_closure0, X._compileStylesheet_closure2, Q.AsyncEnvironment_importForwards_closure3, Q.AsyncEnvironment_importForwards_closure4, Q.AsyncEnvironment_importForwards_closure5, Q.AsyncEnvironment_importForwards_closure6, Q.AsyncEnvironment__getVariableFromGlobalModule_closure0, Q.AsyncEnvironment_setVariable_closure2, Q.AsyncEnvironment_setVariable_closure3, Q.AsyncEnvironment_setVariable_closure4, Q.AsyncEnvironment__getFunctionFromGlobalModule_closure0, Q.AsyncEnvironment__getMixinFromGlobalModule_closure0, Q._EnvironmentModule__EnvironmentModule_closure17, Q._EnvironmentModule__EnvironmentModule_closure18, Q._EnvironmentModule__EnvironmentModule_closure19, Q._EnvironmentModule__EnvironmentModule_closure20, Q._EnvironmentModule__EnvironmentModule_closure21, Q._EnvironmentModule__EnvironmentModule_closure22, E._EvaluateVisitor_closure29, E._EvaluateVisitor_closure30, E._EvaluateVisitor_closure31, E._EvaluateVisitor_closure32, E._EvaluateVisitor_closure33, E._EvaluateVisitor_closure34, E._EvaluateVisitor_closure35, E._EvaluateVisitor_closure36, E._EvaluateVisitor__closure10, E._EvaluateVisitor_closure37, E._EvaluateVisitor_closure38, E._EvaluateVisitor__closure8, E._EvaluateVisitor__closure9, E._EvaluateVisitor_run_closure2, E._EvaluateVisitor__withWarnCallback_closure2, E._EvaluateVisitor__loadModule_closure5, E._EvaluateVisitor__loadModule_closure6, E._EvaluateVisitor__execute_closure2, E._EvaluateVisitor__combineCss_closure8, E._EvaluateVisitor__combineCss_closure9, E._EvaluateVisitor__combineCss_closure10, E._EvaluateVisitor__extendModules_closure5, E._EvaluateVisitor__extendModules_closure6, E._EvaluateVisitor__topologicalModules_visitModule2, E._EvaluateVisitor_visitAtRootRule_closure8, E._EvaluateVisitor_visitAtRootRule_closure9, E._EvaluateVisitor_visitAtRootRule_closure10, E._EvaluateVisitor__scopeForAtRoot_closure17, E._EvaluateVisitor__scopeForAtRoot_closure18, E._EvaluateVisitor__scopeForAtRoot_closure19, E._EvaluateVisitor__scopeForAtRoot__closure2, E._EvaluateVisitor__scopeForAtRoot_closure20, E._EvaluateVisitor__scopeForAtRoot_closure21, E._EvaluateVisitor__scopeForAtRoot_closure22, E._EvaluateVisitor_visitContentRule_closure2, E._EvaluateVisitor_visitDeclaration_closure2, E._EvaluateVisitor_visitEachRule_closure8, E._EvaluateVisitor_visitEachRule_closure9, E._EvaluateVisitor_visitEachRule_closure10, E._EvaluateVisitor_visitEachRule__closure2, E._EvaluateVisitor_visitEachRule___closure2, E._EvaluateVisitor_visitExtendRule_closure2, E._EvaluateVisitor_visitAtRule_closure5, E._EvaluateVisitor_visitAtRule__closure2, E._EvaluateVisitor_visitAtRule_closure6, E._EvaluateVisitor_visitForRule_closure14, E._EvaluateVisitor_visitForRule_closure15, E._EvaluateVisitor_visitForRule_closure16, E._EvaluateVisitor_visitForRule_closure17, E._EvaluateVisitor_visitForRule_closure18, E._EvaluateVisitor_visitForRule__closure2, E._EvaluateVisitor_visitForwardRule_closure5, E._EvaluateVisitor_visitForwardRule_closure6, E._EvaluateVisitor__assertConfigurationIsEmpty_closure2, E._EvaluateVisitor_visitIfRule_closure2, E._EvaluateVisitor_visitIfRule__closure2, E._EvaluateVisitor__visitDynamicImport_closure2, E._EvaluateVisitor__visitDynamicImport__closure2, E._EvaluateVisitor_visitIncludeRule_closure8, E._EvaluateVisitor_visitIncludeRule_closure9, E._EvaluateVisitor_visitIncludeRule_closure10, E._EvaluateVisitor_visitIncludeRule__closure2, E._EvaluateVisitor_visitIncludeRule___closure2, E._EvaluateVisitor_visitIncludeRule____closure2, E._EvaluateVisitor_visitMediaRule_closure5, E._EvaluateVisitor_visitMediaRule__closure2, E._EvaluateVisitor_visitMediaRule___closure2, E._EvaluateVisitor_visitMediaRule_closure6, E._EvaluateVisitor__visitMediaQueries_closure2, E._EvaluateVisitor_visitStyleRule_closure20, E._EvaluateVisitor_visitStyleRule_closure21, E._EvaluateVisitor_visitStyleRule_closure22, E._EvaluateVisitor_visitStyleRule_closure23, E._EvaluateVisitor_visitStyleRule_closure24, E._EvaluateVisitor_visitStyleRule_closure25, E._EvaluateVisitor_visitStyleRule__closure2, E._EvaluateVisitor_visitStyleRule_closure26, E._EvaluateVisitor_visitSupportsRule_closure5, E._EvaluateVisitor_visitSupportsRule__closure2, E._EvaluateVisitor_visitSupportsRule_closure6, E._EvaluateVisitor_visitVariableDeclaration_closure8, E._EvaluateVisitor_visitVariableDeclaration_closure9, E._EvaluateVisitor_visitVariableDeclaration_closure10, E._EvaluateVisitor_visitUseRule_closure2, E._EvaluateVisitor_visitWarnRule_closure2, E._EvaluateVisitor_visitWhileRule_closure2, E._EvaluateVisitor_visitWhileRule__closure2, E._EvaluateVisitor_visitBinaryOperationExpression_closure2, E._EvaluateVisitor_visitVariableExpression_closure2, E._EvaluateVisitor_visitListExpression_closure2, E._EvaluateVisitor_visitFunctionExpression_closure5, E._EvaluateVisitor_visitFunctionExpression_closure6, E._EvaluateVisitor__runUserDefinedCallable_closure2, E._EvaluateVisitor__runUserDefinedCallable__closure2, E._EvaluateVisitor__runUserDefinedCallable___closure2, E._EvaluateVisitor__runUserDefinedCallable____closure2, E._EvaluateVisitor__runFunctionCallable_closure2, E._EvaluateVisitor__runBuiltInCallable_closure5, E._EvaluateVisitor__runBuiltInCallable_closure6, E._EvaluateVisitor__evaluateArguments_closure2, E._EvaluateVisitor__evaluateMacroArguments_closure11, E._EvaluateVisitor__evaluateMacroArguments_closure12, E._EvaluateVisitor__evaluateMacroArguments_closure13, E._EvaluateVisitor__evaluateMacroArguments_closure14, E._EvaluateVisitor__addRestMap_closure5, E._EvaluateVisitor__addRestMap_closure6, E._EvaluateVisitor__verifyArguments_closure2, E._EvaluateVisitor_visitStringExpression_closure2, E._EvaluateVisitor_visitCssAtRule_closure5, E._EvaluateVisitor_visitCssAtRule_closure6, E._EvaluateVisitor_visitCssKeyframeBlock_closure5, E._EvaluateVisitor_visitCssKeyframeBlock_closure6, E._EvaluateVisitor_visitCssMediaRule_closure5, E._EvaluateVisitor_visitCssMediaRule__closure2, E._EvaluateVisitor_visitCssMediaRule___closure2, E._EvaluateVisitor_visitCssMediaRule_closure6, E._EvaluateVisitor_visitCssStyleRule_closure5, E._EvaluateVisitor_visitCssStyleRule__closure2, E._EvaluateVisitor_visitCssStyleRule_closure6, E._EvaluateVisitor_visitCssSupportsRule_closure5, E._EvaluateVisitor_visitCssSupportsRule__closure2, E._EvaluateVisitor_visitCssSupportsRule_closure6, E._EvaluateVisitor__performInterpolation_closure2, E._EvaluateVisitor__serialize_closure2, E._EvaluateVisitor__stackTrace_closure2, E._ImportedCssVisitor_visitCssAtRule_closure2, E._ImportedCssVisitor_visitCssMediaRule_closure2, E._ImportedCssVisitor_visitCssStyleRule_closure2, E._ImportedCssVisitor_visitCssSupportsRule_closure2, O.AsyncImportCache_canonicalize_closure0, O.AsyncImportCache__canonicalize_closure0, O.AsyncImportCache_importCanonical_closure0, O.AsyncImportCache_humanize_closure2, O.AsyncImportCache_humanize_closure3, O.AsyncImportCache_humanize_closure4, V.AtRootQueryParser_parse_closure0, Z.closure263, Z._closure34, Z._closure35, Q.BuiltInCallable$mixin_closure0, K.closure159, K.closure160, K.closure161, K.closure162, K.closure163, K.closure164, K.closure165, K.closure166, K.closure167, K.closure168, K.closure169, K.closure170, K.closure171, K.closure172, K.closure173, K.closure174, K.closure175, K.closure176, K.closure177, K.closure178, K.closure179, K.closure180, K.closure181, K.closure182, K.closure183, K.closure184, K._closure23, K.closure185, K.closure214, K.closure215, K.closure216, K.closure217, K.closure218, K.closure219, K.closure220, K.closure221, K._closure28, K.closure222, K.closure197, K.closure196, K.closure195, K.closure194, K.closure193, K.closure192, K.closure191, K.closure190, K.closure188, K.closure187, K.closure186, K.closure189, K.closure_hexString0, K._updateComponents_getParam0, K._updateComponents_closure0, K._updateComponents_updateValue0, K._updateComponents_updateRgb0, K._functionString_closure0, K._removedColorFunction_closure0, K._removeUnits_closure1, K._removeUnits_closure2, K._parseChannels_closure0, K.closure253, K.closure254, K.closure255, K.closure256, K.closure257, K.closure258, K.closure259, K.closure260, K.closure261, K.closure262, K.SassColor_SassColor$hwb_toRgb0, U._compileStylesheet_closure1, S.ComplexSelector_isInvisible_closure0, X.CompoundSelector_isInvisible_closure0, Q.closure227, V.EachRule_toString_closure0, O.Environment_importForwards_closure3, O.Environment_importForwards_closure4, O.Environment_importForwards_closure5, O.Environment_importForwards_closure6, O.Environment__getVariableFromGlobalModule_closure0, O.Environment_setVariable_closure2, O.Environment_setVariable_closure3, O.Environment_setVariable_closure4, O.Environment__getFunctionFromGlobalModule_closure0, O.Environment__getMixinFromGlobalModule_closure0, O._EnvironmentModule__EnvironmentModule_closure11, O._EnvironmentModule__EnvironmentModule_closure12, O._EnvironmentModule__EnvironmentModule_closure13, O._EnvironmentModule__EnvironmentModule_closure14, O._EnvironmentModule__EnvironmentModule_closure15, O._EnvironmentModule__EnvironmentModule_closure16, R._EvaluateVisitor_closure19, R._EvaluateVisitor_closure20, R._EvaluateVisitor_closure21, R._EvaluateVisitor_closure22, R._EvaluateVisitor_closure23, R._EvaluateVisitor_closure24, R._EvaluateVisitor_closure25, R._EvaluateVisitor_closure26, R._EvaluateVisitor__closure7, R._EvaluateVisitor_closure27, R._EvaluateVisitor_closure28, R._EvaluateVisitor__closure5, R._EvaluateVisitor__closure6, R._EvaluateVisitor_run_closure1, R._EvaluateVisitor__withWarnCallback_closure1, R._EvaluateVisitor__loadModule_closure3, R._EvaluateVisitor__loadModule_closure4, R._EvaluateVisitor__execute_closure1, R._EvaluateVisitor__combineCss_closure5, R._EvaluateVisitor__combineCss_closure6, R._EvaluateVisitor__combineCss_closure7, R._EvaluateVisitor__extendModules_closure3, R._EvaluateVisitor__extendModules_closure4, R._EvaluateVisitor__topologicalModules_visitModule1, R._EvaluateVisitor_visitAtRootRule_closure5, R._EvaluateVisitor_visitAtRootRule_closure6, R._EvaluateVisitor_visitAtRootRule_closure7, R._EvaluateVisitor__scopeForAtRoot_closure11, R._EvaluateVisitor__scopeForAtRoot_closure12, R._EvaluateVisitor__scopeForAtRoot_closure13, R._EvaluateVisitor__scopeForAtRoot__closure1, R._EvaluateVisitor__scopeForAtRoot_closure14, R._EvaluateVisitor__scopeForAtRoot_closure15, R._EvaluateVisitor__scopeForAtRoot_closure16, R._EvaluateVisitor_visitContentRule_closure1, R._EvaluateVisitor_visitDeclaration_closure1, R._EvaluateVisitor_visitEachRule_closure5, R._EvaluateVisitor_visitEachRule_closure6, R._EvaluateVisitor_visitEachRule_closure7, R._EvaluateVisitor_visitEachRule__closure1, R._EvaluateVisitor_visitEachRule___closure1, R._EvaluateVisitor_visitExtendRule_closure1, R._EvaluateVisitor_visitAtRule_closure3, R._EvaluateVisitor_visitAtRule__closure1, R._EvaluateVisitor_visitAtRule_closure4, R._EvaluateVisitor_visitForRule_closure9, R._EvaluateVisitor_visitForRule_closure10, R._EvaluateVisitor_visitForRule_closure11, R._EvaluateVisitor_visitForRule_closure12, R._EvaluateVisitor_visitForRule_closure13, R._EvaluateVisitor_visitForRule__closure1, R._EvaluateVisitor_visitForwardRule_closure3, R._EvaluateVisitor_visitForwardRule_closure4, R._EvaluateVisitor__assertConfigurationIsEmpty_closure1, R._EvaluateVisitor_visitIfRule_closure1, R._EvaluateVisitor_visitIfRule__closure1, R._EvaluateVisitor__visitDynamicImport_closure1, R._EvaluateVisitor__visitDynamicImport__closure1, R._EvaluateVisitor_visitIncludeRule_closure5, R._EvaluateVisitor_visitIncludeRule_closure6, R._EvaluateVisitor_visitIncludeRule_closure7, R._EvaluateVisitor_visitIncludeRule__closure1, R._EvaluateVisitor_visitIncludeRule___closure1, R._EvaluateVisitor_visitIncludeRule____closure1, R._EvaluateVisitor_visitMediaRule_closure3, R._EvaluateVisitor_visitMediaRule__closure1, R._EvaluateVisitor_visitMediaRule___closure1, R._EvaluateVisitor_visitMediaRule_closure4, R._EvaluateVisitor__visitMediaQueries_closure1, R._EvaluateVisitor_visitStyleRule_closure13, R._EvaluateVisitor_visitStyleRule_closure14, R._EvaluateVisitor_visitStyleRule_closure15, R._EvaluateVisitor_visitStyleRule_closure16, R._EvaluateVisitor_visitStyleRule_closure17, R._EvaluateVisitor_visitStyleRule_closure18, R._EvaluateVisitor_visitStyleRule__closure1, R._EvaluateVisitor_visitStyleRule_closure19, R._EvaluateVisitor_visitSupportsRule_closure3, R._EvaluateVisitor_visitSupportsRule__closure1, R._EvaluateVisitor_visitSupportsRule_closure4, R._EvaluateVisitor_visitVariableDeclaration_closure5, R._EvaluateVisitor_visitVariableDeclaration_closure6, R._EvaluateVisitor_visitVariableDeclaration_closure7, R._EvaluateVisitor_visitUseRule_closure1, R._EvaluateVisitor_visitWarnRule_closure1, R._EvaluateVisitor_visitWhileRule_closure1, R._EvaluateVisitor_visitWhileRule__closure1, R._EvaluateVisitor_visitBinaryOperationExpression_closure1, R._EvaluateVisitor_visitVariableExpression_closure1, R._EvaluateVisitor_visitListExpression_closure1, R._EvaluateVisitor_visitFunctionExpression_closure3, R._EvaluateVisitor_visitFunctionExpression_closure4, R._EvaluateVisitor__runUserDefinedCallable_closure1, R._EvaluateVisitor__runUserDefinedCallable__closure1, R._EvaluateVisitor__runUserDefinedCallable___closure1, R._EvaluateVisitor__runUserDefinedCallable____closure1, R._EvaluateVisitor__runFunctionCallable_closure1, R._EvaluateVisitor__runBuiltInCallable_closure3, R._EvaluateVisitor__runBuiltInCallable_closure4, R._EvaluateVisitor__evaluateArguments_closure1, R._EvaluateVisitor__evaluateMacroArguments_closure7, R._EvaluateVisitor__evaluateMacroArguments_closure8, R._EvaluateVisitor__evaluateMacroArguments_closure9, R._EvaluateVisitor__evaluateMacroArguments_closure10, R._EvaluateVisitor__addRestMap_closure3, R._EvaluateVisitor__addRestMap_closure4, R._EvaluateVisitor__verifyArguments_closure1, R._EvaluateVisitor_visitStringExpression_closure1, R._EvaluateVisitor_visitCssAtRule_closure3, R._EvaluateVisitor_visitCssAtRule_closure4, R._EvaluateVisitor_visitCssKeyframeBlock_closure3, R._EvaluateVisitor_visitCssKeyframeBlock_closure4, R._EvaluateVisitor_visitCssMediaRule_closure3, R._EvaluateVisitor_visitCssMediaRule__closure1, R._EvaluateVisitor_visitCssMediaRule___closure1, R._EvaluateVisitor_visitCssMediaRule_closure4, R._EvaluateVisitor_visitCssStyleRule_closure3, R._EvaluateVisitor_visitCssStyleRule__closure1, R._EvaluateVisitor_visitCssStyleRule_closure4, R._EvaluateVisitor_visitCssSupportsRule_closure3, R._EvaluateVisitor_visitCssSupportsRule__closure1, R._EvaluateVisitor_visitCssSupportsRule_closure4, R._EvaluateVisitor__performInterpolation_closure1, R._EvaluateVisitor__serialize_closure1, R._EvaluateVisitor__stackTrace_closure1, R._ImportedCssVisitor_visitCssAtRule_closure1, R._ImportedCssVisitor_visitCssMediaRule_closure1, R._ImportedCssVisitor_visitCssStyleRule_closure1, R._ImportedCssVisitor_visitCssSupportsRule_closure1, F.Extender_extensionsWhereTarget_closure0, F.Extender__registerSelector_closure0, F.Extender_addExtension_closure2, F.Extender_addExtension_closure3, F.Extender_addExtension_closure4, F.Extender__extendExistingExtensions_closure1, F.Extender__extendExistingExtensions_closure2, F.Extender_addExtensions_closure0, F.Extender_addExtensions__closure0, F.Extender_addExtensions___closure1, F.Extender_addExtensions___closure2, F.Extender__extendList_closure0, F.Extender__extendComplex_closure1, F.Extender__extendComplex_closure2, F.Extender__extendComplex__closure1, F.Extender__extendComplex__closure2, F.Extender__extendComplex___closure0, F.Extender__extendCompound_closure5, F.Extender__extendCompound_closure6, F.Extender__extendCompound__closure1, F.Extender__extendCompound__closure2, F.Extender__extendCompound_closure7, F.Extender__extendCompound_closure8, F.Extender__extendCompound_closure9, F.Extender__extendCompound_closure10, F.Extender__extendSimple_withoutPseudo0, F.Extender__extendSimple_closure0, F.Extender__extendPseudo_closure4, F.Extender__extendPseudo_closure5, F.Extender__extendPseudo_closure6, F.Extender__extendPseudo_closure7, F.Extender__extendPseudo_closure8, F.Extender__trim_closure1, F.Extender__trim_closure2, F.Extender_clone_closure0, Y.unifyComplex_closure0, Y._weaveParents_closure6, Y._weaveParents_closure7, Y._weaveParents_closure8, Y._weaveParents__closure4, Y._weaveParents_closure9, Y._weaveParents_closure10, Y._weaveParents__closure3, Y._weaveParents_closure11, Y._weaveParents_closure12, Y._weaveParents__closure2, Y._mustUnify_closure0, Y._mustUnify__closure0, Y.paths_closure0, Y.paths__closure0, Y.paths___closure0, Y._hasRoot_closure0, Y.listIsSuperselector_closure0, Y.listIsSuperselector__closure0, Y._simpleIsSuperselectorOfCompound_closure0, Y._simpleIsSuperselectorOfCompound__closure0, Y._selectorPseudoIsSuperselector_closure6, Y._selectorPseudoIsSuperselector_closure7, Y._selectorPseudoIsSuperselector_closure8, Y._selectorPseudoIsSuperselector_closure9, Y._selectorPseudoIsSuperselector_closure10, Y._selectorPseudoIsSuperselector__closure0, Y._selectorPseudoIsSuperselector___closure1, Y._selectorPseudoIsSuperselector___closure2, Y._selectorPseudoIsSuperselector_closure11, Y._selectorPseudoIsSuperselector_closure12, Y._selectorPseudosNamed_closure0, Y.closure114, N.IDSelector_unify_closure0, V.IfRule_toString_closure0, V.IfClause$__closure0, V.IfClause$___closure0, F.NodeImporter__tryPath_closure, R.ImportCache_canonicalize_closure0, R.ImportCache__canonicalize_closure0, R.ImportCache_importCanonical_closure0, R.ImportCache_humanize_closure2, R.ImportCache_humanize_closure3, R.ImportCache_humanize_closure4, X.Interpolation_toString_closure0, F._realCasePath_closure0, E.KeyframeSelectorParser_parse_closure0, D.ListExpression_toString_closure0, D.closure158, D.closure157, D.closure156, D.closure155, D.closure154, D.closure153, D._closure20, D._closure21, D._closure22, D.closure152, D.closure150, D.closure151, D.SelectorList_isInvisible_closure0, D.SelectorList_asSassList_closure0, D.SelectorList_asSassList__closure0, D.SelectorList_unify_closure0, D.SelectorList_unify__closure0, D.SelectorList_unify___closure0, D.SelectorList_resolveParentSelectors_closure0, D.SelectorList_resolveParentSelectors__closure1, D.SelectorList_resolveParentSelectors__closure2, D.SelectorList__complexContainsParentSelector_closure0, D.SelectorList__complexContainsParentSelector__closure0, D.SelectorList__resolveParentSelectorsCompound_closure2, D.SelectorList__resolveParentSelectorsCompound_closure3, D.SelectorList__resolveParentSelectorsCompound_closure4, D.closure246, D._closure33, D.closure247, D.closure248, D.closure249, D.closure250, D.closure251, D.closure252, D.SassList_isBlank_closure0, A.MapExpression_toString_closure0, A.closure149, A.closure212, A._closure27, A.closure213, A._closure26, A.closure147, A.closure148, A._closure19, A.closure211, A.closure210, A._closure25, A.closure145, A.closure146, A.closure144, A.closure143, A.closure142, A._modify__modifyNestedMap0, A._deepMergeImpl__ensureMutable0, A._deepMergeImpl_closure0, A.closure239, A._closure31, A._closure32, A.closure240, A.closure241, A.closure242, A.closure243, A.closure244, A.closure245, A.SassMap_asList_closure0, K.closure140, K.closure205, K.closure139, K.closure138, K.closure137, K.closure141, K.closure203, K._closure24, K.closure202, K.closure201, K.closure199, K.closure209, K.closure208, K.closure207, K.closure206, K.closure204, K.closure200, K.closure198, K.closure133, K.closure132, K.closure134, K.closure136, K.closure135, K._numberFunction_closure0, F.MediaQueryParser_parse_closure0, Q.closure223, Q.closure224, Q.closure225, Q.closure226, B._readFile_closure0, B.fileExists_closure0, B.dirExists_closure0, B.listDir_closure0, B.listDir__closure1, B.listDir__closure2, B.listDir_closure_list0, B.listDir__list_closure0, B._render_closure, B._render_closure0, B._render_closure1, B._parseFunctions_closure, B._parseFunctions__closure, B._parseFunctions___closure0, B._parseFunctions____closure, B._parseFunctions__closure0, B._parseFunctions__closure1, B._parseFunctions___closure, B._parseImporter_closure, B._parseImporter__closure, B._parseImporter___closure, B._parseImporter____closure, O.closure238, O._closure29, O._closure30, T.closure232, T.closure233, T.closure234, T.closure235, T.closure236, T.closure237, T._parseNumber_closure, T._parseNumber_closure0, T.SassNumber__coerceOrConvertValue__compatibilityException0, T.SassNumber__coerceOrConvertValue_closure3, T.SassNumber__coerceOrConvertValue_closure4, T.SassNumber__coerceOrConvertValue_closure5, T.SassNumber__coerceOrConvertValue_closure6, T.SassNumber_modulo_closure0, T.SassNumber_plus_closure0, T.SassNumber_minus_closure0, T.SassNumber__multiplyUnits_closure3, T.SassNumber__multiplyUnits_closure4, T.SassNumber__multiplyUnits_closure5, T.SassNumber__multiplyUnits_closure6, T.SassNumber__areAnyConvertible_closure0, T.SassNumber__canonicalMultiplier_closure0, M.ParentStatement_closure0, M.ParentStatement__closure0, G.Parser__parseIdentifier_closure0, G.Parser_scanIdentChar_matches0, F._PrefixedKeys_iterator_closure0, U.main_printError, U.main_closure, U.SassParser_children_closure0, R._wrapMain_closure, R._wrapMain_closure0, T.closure128, T._closure16, T._closure17, T.closure127, T._closure14, T._closure15, T.__closure0, T.closure126, T.closure125, T.closure124, T.closure131, T.closure130, T._closure18, T.closure129, T.SelectorParser_parse_closure0, T.SelectorParser_parseCompoundSelector_closure0, N.serialize_closure0, N._SerializeVisitor_visitCssComment_closure0, N._SerializeVisitor_visitCssAtRule_closure0, N._SerializeVisitor_visitCssMediaRule_closure0, N._SerializeVisitor_visitCssImport_closure0, N._SerializeVisitor_visitCssImport__closure0, N._SerializeVisitor_visitCssKeyframeBlock_closure0, N._SerializeVisitor_visitCssStyleRule_closure0, N._SerializeVisitor_visitCssSupportsRule_closure0, N._SerializeVisitor_visitCssDeclaration_closure1, N._SerializeVisitor_visitCssDeclaration_closure2, N._SerializeVisitor_visitList_closure2, N._SerializeVisitor_visitList_closure3, N._SerializeVisitor_visitList_closure4, N._SerializeVisitor_visitMap_closure0, N._SerializeVisitor_visitSelectorList_closure0, N._SerializeVisitor__write_closure0, N._SerializeVisitor__visitChildren_closure0, D.SourceMapBuffer__addEntry_closure0, D.SourceMapBuffer_buildSourceMap_closure0, D.closure123, D.closure122, D.closure118, D.closure117, D.closure116, D.closure115, D.closure121, D.closure120, D.closure119, D.closure228, D.closure229, D.closure230, D.closure231, V.StylesheetParser_parse_closure0, V.StylesheetParser_parse__closure1, V.StylesheetParser_parse__closure2, V.StylesheetParser_parseArgumentDeclaration_closure0, V.StylesheetParser__parseSingleProduction_closure0, V.StylesheetParser_parseSignature_closure, V.StylesheetParser__statement_closure0, V.StylesheetParser_variableDeclarationWithoutNamespace_closure1, V.StylesheetParser_variableDeclarationWithoutNamespace_closure2, V.StylesheetParser__declarationOrBuffer_closure1, V.StylesheetParser__declarationOrBuffer_closure2, V.StylesheetParser__styleRule_closure0, V.StylesheetParser__propertyOrVariableDeclaration_closure1, V.StylesheetParser__propertyOrVariableDeclaration_closure2, V.StylesheetParser__atRootRule_closure1, V.StylesheetParser__atRootRule_closure2, V.StylesheetParser__eachRule_closure0, V.StylesheetParser__functionRule_closure0, V.StylesheetParser__forRule_closure1, V.StylesheetParser__forRule_closure2, V.StylesheetParser__memberList_closure0, V.StylesheetParser__includeRule_closure0, V.StylesheetParser_mediaRule_closure0, V.StylesheetParser__mixinRule_closure0, V.StylesheetParser_mozDocumentRule_closure0, V.StylesheetParser_supportsRule_closure0, V.StylesheetParser__whileRule_closure0, V.StylesheetParser_unknownAtRule_closure0, V.StylesheetParser_expression_resetState0, V.StylesheetParser_expression_resolveOneOperation0, V.StylesheetParser_expression_resolveOperations0, V.StylesheetParser_expression_addSingleExpression0, V.StylesheetParser_expression_addOperator0, V.StylesheetParser_expression_resolveSpaceExpressions0, V.StylesheetParser__expressionUntilComma_closure0, V.StylesheetParser__unicodeRange_closure1, V.StylesheetParser__unicodeRange_closure2, V.StylesheetParser_identifierLike_closure0, V.StylesheetParser__expressionUntilComparison_closure0, V.StylesheetParser__publicIdentifier_closure0, R._UnprefixedKeys_iterator_closure1, R._UnprefixedKeys_iterator_closure2, B.resolveImportPath_closure1, B.resolveImportPath_closure2, B._tryPathAsDirectory_closure0, B._exactlyOne_closure0, B.forwardToString_closure, B.createClass_closure, B.indent_closure0, B.flattenVertically_closure1, B.flattenVertically_closure2, B.longestCommonSubsequence_closure2, B.longestCommonSubsequence_closure3, B.longestCommonSubsequence_closure4, B.longestCommonSubsequence_backtrack0, B.mapAddAll2_closure0, N.withWarnCallback_closure0]);
  88767. _inherit(H.CastList, H._CastListBase);
  88768. _inheritMany(P.Error, [H.LateInitializationErrorImpl, P.TypeError, H.JsNoSuchMethodError, H.UnknownJsTypeError, H.RuntimeError, H._Error, P.JsonUnsupportedObjectError, P.AssertionError, P.NullThrownError, P.ArgumentError, P.NoSuchMethodError, P.UnsupportedError, P.UnimplementedError, P.StateError, P.ConcurrentModificationError, P.CyclicInitializationError]);
  88769. _inherit(P.ListBase, P._ListBase_Object_ListMixin);
  88770. _inherit(H.UnmodifiableListBase, P.ListBase);
  88771. _inheritMany(H.UnmodifiableListBase, [H.CodeUnits, P.UnmodifiableListView]);
  88772. _inheritMany(H.EfficientLengthIterable, [H.ListIterable, H.EmptyIterable, H.LinkedHashMapKeyIterable, P._HashMapKeyIterable, P._MapBaseValueIterable]);
  88773. _inheritMany(H.ListIterable, [H.SubListIterable, H.MappedListIterable, H.ReversedListIterable, P.ListQueue, P._GeneratorIterable]);
  88774. _inherit(H.EfficientLengthMappedIterable, H.MappedIterable);
  88775. _inheritMany(P.Iterator, [H.MappedIterator, H.WhereIterator, H.TakeIterator, H.SkipIterator, H.SkipWhileIterator]);
  88776. _inherit(H.EfficientLengthTakeIterable, H.TakeIterable);
  88777. _inherit(H.EfficientLengthSkipIterable, H.SkipIterable);
  88778. _inherit(H.EfficientLengthFollowedByIterable, H.FollowedByIterable);
  88779. _inheritMany(P.MapView, [P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, K.PathMap]);
  88780. _inherit(P.UnmodifiableMapView, P._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
  88781. _inherit(H.ConstantMapView, P.UnmodifiableMapView);
  88782. _inherit(H.ConstantStringMap, H.ConstantMap);
  88783. _inherit(H.ConstantProtoMap, H.ConstantStringMap);
  88784. _inherit(H.Instantiation1, H.Instantiation);
  88785. _inherit(H.NullError, P.TypeError);
  88786. _inheritMany(H.TearOffClosure, [H.StaticClosure, H.BoundClosure]);
  88787. _inherit(P.MapBase, P.MapMixin);
  88788. _inheritMany(P.MapBase, [H.JsLinkedHashMap, P._HashMap, P.UnmodifiableMapBase, Z.MergedMapView, Z.MergedMapView0]);
  88789. _inheritMany(P.IterableBase, [H._AllMatchesIterable, P._SyncStarIterable, O.EmptyUnmodifiableSet, F._PrefixedKeys, R._UnprefixedKeys, F._PrefixedKeys0, R._UnprefixedKeys0]);
  88790. _inherit(H.NativeTypedArray, H.NativeTypedData);
  88791. _inheritMany(H.NativeTypedArray, [H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
  88792. _inherit(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
  88793. _inherit(H.NativeTypedArrayOfDouble, H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
  88794. _inherit(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
  88795. _inherit(H.NativeTypedArrayOfInt, H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
  88796. _inheritMany(H.NativeTypedArrayOfDouble, [H.NativeFloat32List, H.NativeFloat64List]);
  88797. _inheritMany(H.NativeTypedArrayOfInt, [H.NativeInt16List, H.NativeInt32List, H.NativeInt8List, H.NativeUint16List, H.NativeUint32List, H.NativeUint8ClampedList, H.NativeUint8List]);
  88798. _inherit(H._TypeError, H._Error);
  88799. _inheritMany(P.Stream, [P._StreamImpl, P._ForwardingStream, Y._CompleterStream]);
  88800. _inherit(P._ControllerStream, P._StreamImpl);
  88801. _inherit(P._BroadcastStream, P._ControllerStream);
  88802. _inheritMany(P._BufferingStreamSubscription, [P._ControllerSubscription, P._ForwardingStreamSubscription]);
  88803. _inherit(P._BroadcastSubscription, P._ControllerSubscription);
  88804. _inherit(P._SyncBroadcastStreamController, P._BroadcastStreamController);
  88805. _inherit(P._AsyncCompleter, P._Completer);
  88806. _inheritMany(P._StreamController, [P._AsyncStreamController, P._SyncStreamController]);
  88807. _inherit(P._StreamControllerAddStreamState, P._AddStreamState);
  88808. _inheritMany(P._DelayedEvent, [P._DelayedData, P._DelayedError]);
  88809. _inherit(P._StreamImplEvents, P._PendingEvents);
  88810. _inherit(P._ExpandStream, P._ForwardingStream);
  88811. _inheritMany(P._Zone, [P._CustomZone, P._RootZone]);
  88812. _inheritMany(H.JsLinkedHashMap, [P._LinkedIdentityHashMap, P._LinkedCustomHashMap]);
  88813. _inheritMany(P._SetBase, [P._LinkedHashSet, P._UnmodifiableSet]);
  88814. _inherit(P._LinkedIdentityHashSet, P._LinkedHashSet);
  88815. _inheritMany(P.Codec, [P.Encoding, P.Base64Codec, P.JsonCodec]);
  88816. _inheritMany(P.Encoding, [P.AsciiCodec, P.Utf8Codec]);
  88817. _inheritMany(P.StreamTransformerBase, [P.Converter, L._StreamTransformer]);
  88818. _inheritMany(P.Converter, [P._UnicodeSubsetEncoder, P.Base64Encoder, P.JsonEncoder, P.Utf8Encoder, P.Utf8Decoder]);
  88819. _inherit(P.AsciiEncoder, P._UnicodeSubsetEncoder);
  88820. _inherit(P._BufferCachingBase64Encoder, P._Base64Encoder);
  88821. _inherit(P.ByteConversionSink, P.ChunkedConversionSink);
  88822. _inheritMany(P.ByteConversionSink, [P.ByteConversionSinkBase, P._Utf8StringSinkAdapter, P._Utf8ConversionSink]);
  88823. _inherit(P._Base64EncoderSink, P.ByteConversionSinkBase);
  88824. _inheritMany(P._Base64EncoderSink, [P._AsciiBase64EncoderSink, P._Utf8Base64EncoderSink]);
  88825. _inherit(P.JsonCyclicError, P.JsonUnsupportedObjectError);
  88826. _inherit(P._JsonStringStringifier, P._JsonStringifier);
  88827. _inherit(P.StringConversionSinkBase, P.StringConversionSinkMixin);
  88828. _inheritMany(P.StringConversionSinkBase, [P._StringSinkConversionSink, P._StringAdapterSink]);
  88829. _inherit(P._StringCallbackSink, P._StringSinkConversionSink);
  88830. _inheritMany(P.ArgumentError, [P.RangeError, P.IndexError]);
  88831. _inherit(P._DataUri, P._Uri);
  88832. _inherit(Z.ArgParserException, P.FormatException);
  88833. _inherit(Q.QueueList, Q._QueueList_Object_ListMixin);
  88834. _inherit(Q._CastQueueList, Q.QueueList);
  88835. _inheritMany(M._DelegatingIterableBase, [M.DelegatingIterable, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
  88836. _inherit(M.DelegatingSet, M.DelegatingIterable);
  88837. _inherit(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, M.DelegatingSet);
  88838. _inherit(L.UnmodifiableSetView, L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
  88839. _inherit(M.MapKeySet, M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
  88840. _inheritMany(X.NodeJsError, [X.JsAssertionError, X.JsRangeError, X.JsReferenceError, X.JsSyntaxError, X.JsTypeError, X.JsSystemError]);
  88841. _inheritMany(Y.Socket, [N.TTYReadStream, N.TTYWriteStream]);
  88842. _inherit(B.InternalStyle, O.Style);
  88843. _inheritMany(B.InternalStyle, [E.PosixStyle, F.UrlStyle, L.WindowsStyle]);
  88844. _inherit(B.CssNode, B.AstNode);
  88845. _inheritMany(B.CssNode, [B.ModifiableCssNode, B.CssParentNode]);
  88846. _inheritMany(B.ModifiableCssNode, [B.ModifiableCssParentNode, R.ModifiableCssComment, L.ModifiableCssDeclaration, F.ModifiableCssImport]);
  88847. _inheritMany(B.ModifiableCssParentNode, [U.ModifiableCssAtRule, U.ModifiableCssKeyframeBlock, G.ModifiableCssMediaRule, X.ModifiableCssStyleRule, V.ModifiableCssStylesheet, B.ModifiableCssSupportsRule]);
  88848. _inherit(V.CssStylesheet, B.CssParentNode);
  88849. _inheritMany(M.ParentStatement, [V.AtRootRule, U.AtRule, M.CallableDeclaration, L.Declaration, V.EachRule, B.ForRule, G.MediaRule, X.StyleRule, V.Stylesheet, B.SupportsRule, G.WhileRule]);
  88850. _inheritMany(M.CallableDeclaration, [Y.ContentBlock, M.FunctionRule, T.MixinRule]);
  88851. _inheritMany(T.Selector, [M.SimpleSelector, S.ComplexSelector, X.CompoundSelector, D.SelectorList]);
  88852. _inheritMany(M.SimpleSelector, [N.AttributeSelector, X.ClassSelector, N.IDSelector, M.ParentSelector, N.PlaceholderSelector, D.PseudoSelector, F.TypeSelector, N.UniversalSelector]);
  88853. _inheritMany(G.SourceSpanException, [E.SassException, G.SourceSpanFormatException, E.SassException0]);
  88854. _inheritMany(E.SassException, [E.MultiSpanSassException, E.SassRuntimeException, E.SassFormatException]);
  88855. _inherit(E.MultiSpanSassRuntimeException, E.MultiSpanSassException);
  88856. _inherit(E.MultiSpanSassScriptException, E.SassScriptException);
  88857. _inherit(A.MergedExtension, S.Extension);
  88858. _inherit(M.Importer, B.AsyncImporter);
  88859. _inherit(F.FilesystemImporter, M.Importer);
  88860. _inheritMany(G.Parser, [V.AtRootQueryParser, V.StylesheetParser, E.KeyframeSelectorParser, F.MediaQueryParser, T.SelectorParser]);
  88861. _inheritMany(V.StylesheetParser, [L.ScssParser, U.SassParser]);
  88862. _inherit(Q.CssParser, L.ScssParser);
  88863. _inheritMany(P.UnmodifiableMapBase, [K.LimitedMapView, F.PrefixedMapView, U.PublicMemberMapView, R.UnprefixedMapView, K.LimitedMapView0, F.PrefixedMapView0, U.PublicMemberMapView0, R.UnprefixedMapView0]);
  88864. _inheritMany(F.Value, [D.SassList, Z.SassBoolean, K.SassColor, F.SassFunction, A.SassMap, O.SassNull, T.SassNumber, D.SassString]);
  88865. _inherit(D.SassArgumentList, D.SassList);
  88866. _inherit(F._FindDependenciesVisitor, D.RecursiveStatementVisitor);
  88867. _inherit(T.SingleMapping, T.Mapping);
  88868. _inherit(Y.FileLocation, D.SourceLocationMixin);
  88869. _inheritMany(Y.SourceSpanMixin, [Y._FileSpan, V.SourceSpanBase]);
  88870. _inherit(X.SourceSpanWithContext, V.SourceSpanBase);
  88871. _inherit(E.StringScannerException, G.SourceSpanFormatException);
  88872. _inheritMany(X.StringScanner, [Z.LineScanner, S.SpanScanner]);
  88873. _inheritMany(F.Value0, [D.SassList0, Z.SassBoolean0, K.SassColor0, F.SassFunction0, A.SassMap0, O.SassNull0, T.SassNumber0, D.SassString0]);
  88874. _inherit(D.SassArgumentList0, D.SassList0);
  88875. _inheritMany(G.Parser1, [V.AtRootQueryParser0, V.StylesheetParser0, E.KeyframeSelectorParser0, F.MediaQueryParser0, T.SelectorParser0]);
  88876. _inheritMany(M.ParentStatement0, [V.AtRootRule0, U.AtRule0, M.CallableDeclaration0, L.Declaration0, V.EachRule0, B.ForRule0, G.MediaRule0, X.StyleRule0, V.Stylesheet0, B.SupportsRule0, G.WhileRule0]);
  88877. _inherit(B.CssNode0, B.AstNode0);
  88878. _inheritMany(B.CssNode0, [B.ModifiableCssNode0, B.CssParentNode0]);
  88879. _inheritMany(B.ModifiableCssNode0, [B.ModifiableCssParentNode0, R.ModifiableCssComment0, L.ModifiableCssDeclaration0, F.ModifiableCssImport0]);
  88880. _inheritMany(B.ModifiableCssParentNode0, [U.ModifiableCssAtRule0, U.ModifiableCssKeyframeBlock0, G.ModifiableCssMediaRule0, X.ModifiableCssStyleRule0, V.ModifiableCssStylesheet0, B.ModifiableCssSupportsRule0]);
  88881. _inheritMany(T.Selector0, [M.SimpleSelector0, S.ComplexSelector0, X.CompoundSelector0, D.SelectorList0]);
  88882. _inheritMany(M.SimpleSelector0, [N.AttributeSelector0, X.ClassSelector0, N.IDSelector0, M.ParentSelector0, N.PlaceholderSelector0, D.PseudoSelector0, F.TypeSelector0, N.UniversalSelector0]);
  88883. _inheritMany(M.CallableDeclaration0, [Y.ContentBlock0, M.FunctionRule0, T.MixinRule0]);
  88884. _inheritMany(V.StylesheetParser0, [L.ScssParser0, U.SassParser0]);
  88885. _inherit(Q.CssParser0, L.ScssParser0);
  88886. _inheritMany(E.SassException0, [E.MultiSpanSassException0, E.SassRuntimeException0, E.SassFormatException0]);
  88887. _inherit(E.MultiSpanSassRuntimeException0, E.MultiSpanSassException0);
  88888. _inherit(E.MultiSpanSassScriptException0, E.SassScriptException0);
  88889. _inherit(M.Importer0, B.AsyncImporter0);
  88890. _inherit(F.FilesystemImporter0, M.Importer0);
  88891. _inherit(A.MergedExtension0, S.Extension0);
  88892. _inherit(V.CssStylesheet0, B.CssParentNode0);
  88893. _mixin(H.UnmodifiableListBase, H.UnmodifiableListMixin);
  88894. _mixin(H.__CastListBase__CastIterableBase_ListMixin, P.ListMixin);
  88895. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, P.ListMixin);
  88896. _mixin(H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  88897. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, P.ListMixin);
  88898. _mixin(H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, H.FixedLengthListMixin);
  88899. _mixin(P._AsyncStreamController, P._AsyncStreamControllerDispatch);
  88900. _mixin(P._SyncStreamController, P._SyncStreamControllerDispatch);
  88901. _mixin(P.UnmodifiableMapBase, P._UnmodifiableMapMixin);
  88902. _mixin(P._ListBase_Object_ListMixin, P.ListMixin);
  88903. _mixin(P._UnmodifiableMapView_MapView__UnmodifiableMapMixin, P._UnmodifiableMapMixin);
  88904. _mixin(Q._QueueList_Object_ListMixin, P.ListMixin);
  88905. _mixin(L._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  88906. _mixin(M._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, L.UnmodifiableSetMixin);
  88907. })();
  88908. var init = {
  88909. typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
  88910. mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List"},
  88911. mangledNames: {},
  88912. getTypeFromName: getGlobalFromName,
  88913. metadata: [],
  88914. types: ["Null()", "~()", "Future<Null>*()", "Value0*(List<Value0*>*)", "Value*(List<Value*>*)", "bool*(String*)", "String*(String*)", "bool*(CssNode*)", "bool*(CssNode0*)", "SassNumber*(List<Value*>*)", "SassNumber0*(List<Value0*>*)", "int*()", "Value*()", "bool*(ComplexSelector0*)", "bool*(ComplexSelector*)", "SassString*(List<Value*>*)", "SassString0*(List<Value0*>*)", "String*()", "bool*(SimpleSelector*)", "bool*(SimpleSelector0*)", "SassBoolean0*(List<Value0*>*)", "Value0*()", "SassBoolean*(List<Value*>*)", "bool*(Object*)", "bool*(int*)", "SassColor*(List<Value*>*)", "bool(Object?)", "SassList0*(List<Value0*>*)", "SassList*(List<Value*>*)", "SassColor0*(List<Value0*>*)", "Future<Value*>*()", "Future<Value0*>*()", "Future<Null>*(Future<~>*()*)", "FileSpan*()", "bool*(num*,num*)", "Null(~()*)", "bool*()", "SassMap*(List<Value*>*)", "SassMap0*(List<Value0*>*)", "int*(num*)", "List<String*>*()", "String*(Object*)", "SelectorList*()", "@(@)", "SelectorList0*()", "Null(Value0*,Value0*)", "Null(Value*,Value*)", "ValueExpression*(Value*)", "ValueExpression0*(Value0*)", "~(Object*)", "num*(num*,num*)", "bool*(PseudoSelector*)", "Statement0*()", "bool*(Value*)", "Frame*(String*)", "bool*(Value0*)", "~(Object,StackTrace)", "Statement*()", "bool*(PseudoSelector0*)", "Stylesheet*()", "Frame*()", "Value*(Statement*)", "ComplexSelector*(List<ComplexSelectorComponent*>*)", "~(Object?)", "Value*(Value*)", "Null([Object*])", "@()", "Declaration*(List<Statement*>*,FileSpan*)", "~(Value*)", "Declaration0*(List<Statement0*>*,FileSpan*)", "Value0*(Statement0*)", "ComplexSelector0*(List<ComplexSelectorComponent0*>*)", "~(String*,bool*)", "Value0*(Value0*)", "Null(_NodeSassColor*,num*)", "Null(String*,Value0*)", "Future<Value0*>*(Statement0*)", "~(Value0*)", "Future<String*>*(@)", "Null(String*,Value*)", "Future<Value*>*(Statement*)", "Null(List<Value*>*)", "ComplexSelector*(ComplexSelector*)", "String*(int*)", "Map<ComplexSelector0*,Extension0*>*()", "Map<ComplexSelector*,Extension*>*()", "Null(Module0<Callable0*>*)", "Null(Value0*)", "Iterable<String*>*(Module<AsyncCallable*>*)", "Callable0*()", "bool*(ComplexSelectorComponent*)", "Iterable<String*>*(Module0<Callable0*>*)", "bool*(ComplexSelectorComponent0*)", "bool*(Module<AsyncCallable*>*)", "int*(_NodeSassColor*)", "Null([@])", "List<ComplexSelectorComponent*>*(List<ComplexSelectorComponent*>*)", "Null(List<Value0*>*)", "ComplexSelector0*(ComplexSelector0*)", "List<CssMediaQuery0*>*()", "Null(Module0<AsyncCallable0*>*)", "bool*(Module0<Callable0*>*)", "Iterable<ComplexSelector*>*(ComplexSelector*)", "Null(@,@)", "AtRootQuery0*()", "AsyncCallable*()", "String*(@)", "AsyncCallable0*()", "Tuple3<Importer*,Uri*,Uri*>*()", "Null(@)", "bool*(Module0<AsyncCallable0*>*)", "Iterable<String*>*(Module0<AsyncCallable0*>*)", "AtRootQuery*()", "List<CssMediaQuery*>*()", "bool*(_Highlight*)", "Null(Value*)", "Null(Module<Callable*>*)", "Callable*()", "Iterable<String*>*(Module<Callable*>*)", "Iterable<ComplexSelector0*>*(ComplexSelector0*)", "Null(Module<AsyncCallable*>*)", "bool*(Module<Callable*>*)", "List<ComplexSelectorComponent0*>*(List<ComplexSelectorComponent0*>*)", "SourceFile*()", "~(~())", "Future<Null>*(List<Value*>*)", "SelectorList0*(Value0*)", "Stylesheet0*()", "Module<Callable*>*(Module<Callable*>*)", "Null([@])*()", "Iterable<ComplexSelectorComponent*>*(List<List<ComplexSelectorComponent*>*>*)", "bool*(Queue<@>*)", "Frame*(Tuple2<String*,AstNode0*>*)", "Null(@,StackTrace*)", "Callable*(Module<Callable*>*)", "bool*(Import0*)", "Null(String*,ConfiguredValue0*)", "bool*(Statement0*)", "Future<SassNumber0*>*()", "Future<@>*()", "Map<String*,Callable*>*(Module<Callable*>*)", "num*(String*,num*{assertPercent:bool*,checkPercent:bool*})", "num*(num*,num*,num*)", "int*(int*,num*)", "Object*(@)", "Iterable<ComplexSelectorComponent0*>*(List<List<ComplexSelectorComponent0*>*>*)", "bool*(ModifiableCssParentNode0*)", "Module<AsyncCallable*>*(Module<AsyncCallable*>*)", "bool(Object?,Object?)", "AsyncCallable*(Module<AsyncCallable*>*)", "List<Extender0*>*()", "bool*(@)", "~(Module0<AsyncCallable0*>*)", "String*(_NodeSassNumber*)", "~([Future<~>?])", "num*(num*)", "Future<Value0*>*(List<Value0*>*)", "SelectorList*(Value*)", "SelectorList*(SelectorList*,SelectorList*)", "List<Extension0*>*()", "Object*()", "Uri*()", "SassFunction0*(List<Value0*>*)", "Map<String*,AsyncCallable*>*(Module<AsyncCallable*>*)", "List<Extension*>*()", "~(Module<AsyncCallable*>*)", "AsyncCallable0*(Module0<AsyncCallable0*>*)", "int(@,@)", "Module0<AsyncCallable0*>*(Module0<AsyncCallable0*>*)", "Iterable<String*>*()", "Iterable<String*>*(String*)", "Iterable<String*>*(@)", "DateTime*()", "~(String*[~])", "int(Object?)", "SassNumber0*()", "Future<Null>*(List<Value0*>*)", "Null(_NodeSassMap*,int*,Object*)", "Null(Object?,Object?)", "bool*(Frame*)", "Trace*()", "~(Uint8List,String,int)", "bool*(Statement*)", "String*(Frame*)", "int*(Frame*)", "Trace*(String*)", "Uri*/*()", "VariableDeclaration*()", "~(Module0<Callable0*>*)", "Object*(_NodeSassMap*,int*)", "bool*(Import*)", "SassNumber*()", "AtRootRule*(List<Statement*>*,FileSpan*)", "~(Module<Callable*>*)", "SassNull0*(int*)", "Frame*(Tuple2<String*,AstNode*>*)", "Map<String*,Callable0*>*(Module0<Callable0*>*)", "Callable0*(Module0<Callable0*>*)", "String(String)", "AtRule*(List<Statement*>*,FileSpan*)", "Null(String*,ConfiguredValue*)", "Module0<Callable0*>*(Module0<Callable0*>*)", "Future<SassNumber*>*()", "AtRule0*(List<Statement0*>*,FileSpan*)", "String*(_NodeSassString*)", "bool*(ModifiableCssParentNode*)", "AtRootRule0*(List<Statement0*>*,FileSpan*)", "Entry*(Entry*)", "List<int*>*(int*)", "List<Extender*>*()", "String(int)", "num*(num*,String*)", "SassFunction*(List<Value*>*)", "SelectorList0*(SelectorList0*,SelectorList0*)", "~(@)", "Map<String*,AsyncCallable0*>*(Module0<AsyncCallable0*>*)", "Future<EvaluateResult*>*()", "Future<Value*>*(List<Value*>*)", "~(String,int)", "SassScriptException*()", "~(String[@])", "Null(Uri*,StylesheetNode*)", "DateTime*(StylesheetNode*)", "int(int,int)", "Future<Value*>*(Value*)", "~(BinaryOperator*)", "~(Expression*{number:bool*})", "WhileRule*(List<Statement*>*,FileSpan*)", "SupportsRule*(List<Statement*>*,FileSpan*)", "MixinRule*(List<Statement*>*,FileSpan*)", "Future<Value*>*(Expression*)", "MediaRule*(List<Statement*>*,FileSpan*)", "Uint8List(int)", "ContentBlock*(List<Statement*>*,FileSpan*)", "ForRule*(List<Statement*>*,FileSpan*)", "FunctionRule*(List<Statement*>*,FileSpan*)", "EachRule*(List<Statement*>*,FileSpan*)", "EvaluateResult*()", "Uint8List(@,@)", "SassString*(SimpleSelector*)", "StyleRule*(List<Statement*>*,FileSpan*)", "Null(Symbol0,@)", "Value*(Expression*)", "~(CssMediaQuery*)", "UseRule*()", "SourceFile*(int*)", "String*(SourceFile*)", "@(String*,@)", "FileSpan*(int*[int*])", "int*(_Line*)", "ArgumentDeclaration*()", "Uri*(_Line*)", "int*(_Highlight*,_Highlight*)", "List<_Line*>*(List<_Highlight*>*)", "SourceSpanWithContext*()", "String*(String*{color:@})", "VariableDeclaration*(VariableDeclaration*)", "List<Frame*>*(Trace*)", "int*(Trace*)", "NumberExpression*()", "String*(Trace*)", "Expression*({bracketList:bool*,singleEquals:bool*,until:bool*()*})", "Statement*({root:bool*})", "Frame*(String*,String*)", "CompoundSelector*()", "bool*(Option*)", "Set<0^>()<Object?>", "Frame*(Frame*)", "Future<~>*()", "String*(Argument0*)", "String*(BuiltInCallable*)", "~(String*)", "List<Module0<AsyncCallable0*>*>*(int*)", "Value0*(Module0<AsyncCallable0*>*)", "Set<0^>()<Object?>", "Null(String*)", "Map<String*,Value0*>*(Module0<AsyncCallable0*>*)", "Map<String*,AstNode0*>*(Module0<AsyncCallable0*>*)", "Set<0^>()<Object?>", "Uri*(Tuple3<Importer*,Uri*,Uri*>*)", "Null(String*,Option*)", "bool*(Tuple3<Importer*,Uri*,Uri*>*)", "bool(@)", "~(@,StackTrace)", "SassNumber*(Value*)", "Future<@>()", "SassMap*(SassMap*[Value*])", "Future<EvaluateResult0*>*()", "SassMap*(Value*)", "~(Object[StackTrace?])", "bool*(List<Value*>*)", "List<Value*>*(Value*)", "String*(Value*)", "Null(~())", "Future<Value0*>*(Value0*)", "_Future<@>(@)", "~(@[StackTrace*])", "Null(Object,StackTrace)", "~([Object?])", "@(String)", "StackTrace()", "Object()", "bool*(Future<~>*)", "Future<Value0*>*(Expression0*)", "Iterable<ComplexSelectorComponent*>*(Iterable<ComplexSelectorComponent*>*)", "List<ComplexSelectorComponent*>*(List<Iterable<ComplexSelectorComponent*>*>*)", "bool*(List<Iterable<ComplexSelectorComponent*>*>*)", "Future<Tuple3<AsyncImporter0*,Uri*,Uri*>*>*()", "Future<Stylesheet0*>*()", "bool*(Tuple3<AsyncImporter0*,Uri*,Uri*>*)", "Uri*(Tuple3<AsyncImporter0*,Uri*,Uri*>*)", "bool*(Queue<List<ComplexSelectorComponent*>*>*)", "List<ComplexSelectorComponent*>*(List<ComplexSelectorComponent*>*,List<ComplexSelectorComponent*>*)", "Null(String,@)", "Null(SimpleSelector*,Set<ModifiableCssValue<SelectorList*>*>*)", "@(@,String)", "Null(Function*,Function*)", "PseudoSelector*(ComplexSelector*)", "String*(Value0*)", "Object*(Value0*)", "List<ComplexSelector*>*(ComplexSelector*)", "num*(_NodeSassColor*)", "List<Extension*>*(PseudoSelector*)", "String*(_NodeSassColor*)", "List<Extension*>*(SimpleSelector*)", "String*(BuiltInCallable0*)", "List<ComplexSelector*>*(List<ComplexSelector*>*)", "List<Module0<Callable0*>*>*(int*)", "Value0*(Module0<Callable0*>*)", "bool*(List<ComplexSelector*>*)", "List<SimpleSelector*>*(Extension*)", "Map<String*,Value0*>*(Module0<Callable0*>*)", "Map<String*,AstNode0*>*(Module0<Callable0*>*)", "List<ComplexSelector*>*(List<Extension*>*)", "ComplexSelector*(Extension*)", "List<ComplexSelectorComponent*>*(ComplexSelector*)", "Iterable<ComplexSelector*>*(List<ComplexSelector*>*)", "EvaluateResult0*()", "List<ComplexSelector*>*(ComplexSelectorComponent*)", "Extension*()", "Null(ComplexSelector*,Extension*)", "Null(SimpleSelector*,Map<ComplexSelector*,Extension*>*)", "Value0*(Expression0*)", "bool*(Extension0*)", "Set<ModifiableCssValue0<SelectorList0*>*>*()", "Set<ModifiableCssValue<SelectorList*>*>*()", "bool*(Extension*)", "Null(SimpleSelector0*,Map<ComplexSelector0*,Extension0*>*)", "Null(ComplexSelector0*,Extension0*)", "Extension0*()", "WatchEvent*(String*)", "List<ComplexSelector0*>*(ComplexSelectorComponent0*)", "Iterable<ComplexSelector0*>*(List<ComplexSelector0*>*)", "List<ComplexSelectorComponent0*>*(ComplexSelector0*)", "Iterable<WatchEvent*>*(List<WatchEvent*>*)", "ComplexSelector0*(Extension0*)", "List<ComplexSelector0*>*(List<Extension0*>*)", "List<SimpleSelector0*>*(Extension0*)", "bool*(List<ComplexSelector0*>*)", "List<ComplexSelector0*>*(List<ComplexSelector0*>*)", "List<Extension0*>*(SimpleSelector0*)", "List<Extension0*>*(PseudoSelector0*)", "List<ComplexSelector0*>*(ComplexSelector0*)", "PseudoSelector0*(ComplexSelector0*)", "Null(SimpleSelector0*,Set<ModifiableCssValue0<SelectorList0*>*>*)", "Future<~>*(String*)", "List<ComplexSelectorComponent0*>*(List<ComplexSelectorComponent0*>*,List<ComplexSelectorComponent0*>*)", "bool*(Queue<List<ComplexSelectorComponent0*>*>*)", "ArgParser*()", "bool*(List<Iterable<ComplexSelectorComponent0*>*>*)", "List<ComplexSelectorComponent0*>*(List<Iterable<ComplexSelectorComponent0*>*>*)", "Iterable<ComplexSelectorComponent0*>*(Iterable<ComplexSelectorComponent0*>*)", "bool*(String*,String*)", "String*(IfClause0*)", "Map<String*,AstNode*>*(Module<Callable*>*)", "Map<String*,Value*>*(Module<Callable*>*)", "Tuple3<Importer0*,Uri*,Uri*>*()", "Value*(Module<Callable*>*)", "bool*(Tuple3<Importer0*,Uri*,Uri*>*)", "Uri*(Tuple3<Importer0*,Uri*,Uri*>*)", "String*(Expression0*)", "int*(String*)", "List<Value0*>*(Value0*)", "bool*(List<Value0*>*)", "SassList0*(ComplexSelector0*)", "SassString0*(ComplexSelectorComponent0*)", "List<Module<Callable*>*>*(int*)", "Uri*(Tuple3<AsyncImporter*,Uri*,Uri*>*)", "SimpleSelector0*(SimpleSelector0*)", "Null(_NodeSassList*,int*[bool*,SassList0*])", "bool*(Tuple3<AsyncImporter*,Uri*,Uri*>*)", "Object*(_NodeSassList*,int*)", "Null(_NodeSassList*,int*,Object*)", "bool*(_NodeSassList*)", "Null(_NodeSassList*,bool*)", "int*(_NodeSassList*)", "String*(_NodeSassList*)", "String*(Tuple2<Expression0*,Expression0*>*)", "SassMap0*(Value0*)", "SassMap0*(SassMap0*[Value0*])", "Null(_NodeSassMap*,int*[SassMap0*])", "SassNumber0*(int*)", "Future<Stylesheet*>*()", "int*(_NodeSassMap*)", "Future<Tuple3<AsyncImporter*,Uri*,Uri*>*>*()", "String*(_NodeSassMap*)", "SassNumber0*(Value0*)", "Null(RenderResult*)", "Null(Object*,StackTrace*)", "Null(Object*,Object*)", "Map<String*,AstNode*>*(Module<AsyncCallable*>*)", "~([Object*])", "JSFunction0*(JSFunction0*)", "Object*(Object*,String*,String*[Object*])", "Null(Object*)", "Null(_NodeSassNumber*,num*[String*,SassNumber0*])", "num*(_NodeSassNumber*)", "Null(_NodeSassNumber*,num*)", "Map<String*,Value*>*(Module<AsyncCallable*>*)", "Null(_NodeSassNumber*,String*)", "SassScriptException0*()", "~(String*,StackTrace*)", "@(StackTrace)", "Value*(Module<AsyncCallable*>*)", "List<Module<AsyncCallable*>*>*(int*)", "SassString0*(SimpleSelector0*)", "CompoundSelector0*()", "~(CssMediaQuery0*)", "SimpleSelector*(SimpleSelector*)", "Null(_NodeSassString*,String*[SassString0*])", "SassString*(ComplexSelectorComponent*)", "Null(_NodeSassString*,String*)", "Statement0*({root:bool*})", "Null(@,StackTrace)", "NumberExpression0*()", "VariableDeclaration0*(VariableDeclaration0*)", "ArgumentDeclaration0*()", "Tuple2<String*,ArgumentDeclaration0*>*()", "VariableDeclaration0*()", "SassList*(ComplexSelector*)", "StyleRule0*(List<Statement0*>*,FileSpan*)", "@(Object)", "EachRule0*(List<Statement0*>*,FileSpan*)", "FunctionRule0*(List<Statement0*>*,FileSpan*)", "ForRule0*(List<Statement0*>*,FileSpan*)", "ContentBlock0*(List<Statement0*>*,FileSpan*)", "MediaRule0*(List<Statement0*>*,FileSpan*)", "MixinRule0*(List<Statement0*>*,FileSpan*)", "_Future<@>?()", "SupportsRule0*(List<Statement0*>*,FileSpan*)", "WhileRule0*(List<Statement0*>*,FileSpan*)", "~(Expression0*{number:bool*})", "~(BinaryOperator0*)", "Null(String*,Function*)", "String*(IfClause*)", "Null(int,@)", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())<Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)<Object?Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)<Object?Object?Object?>", "0^()(Zone,ZoneDelegate,Zone,0^())<Object?>", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))<Object?Object?>", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))<Object?Object?Object?>", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "~(String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map<Object?,Object?>?)", "String*(Tuple2<Expression*,Expression*>*)", "String*(Expression*)", "0^(0^,0^)<num>", "~(Object*,StackTrace*,EventSink<0^*>*)<Object*>", "List<0^*>*(0^*,List<0^*>*)<Object*>", "~(RenderOptions*,~(JsError*,RenderResult*)*)", "RenderResult*(RenderOptions*)", "Future<~>*(List<String*>*)", "String*(Argument*)", "Null(_NodeSassColor*,num*[num*,num*,num*,SassColor0*])"],
  88915. interceptorsByTag: null,
  88916. leafTags: null,
  88917. arrayRti: typeof Symbol == "function" && typeof Symbol() == "symbol" ? Symbol("$ti") : "$ti"
  88918. };
  88919. H._Universe_addRules(init.typeUniverse, JSON.parse('{"_Exports":"JavaScriptObject","Util":"JavaScriptObject","NodeJsError":"JavaScriptObject","JsAssertionError":"JavaScriptObject","JsRangeError":"JavaScriptObject","JsReferenceError":"JavaScriptObject","JsSyntaxError":"JavaScriptObject","JsTypeError":"JavaScriptObject","JsSystemError":"JavaScriptObject","JsError":"JavaScriptObject","Promise":"JavaScriptObject","Date":"JavaScriptObject","Atomics":"JavaScriptObject","Exports":"JavaScriptObject","JSFunction0":"JavaScriptObject","RenderContext":"JavaScriptObject","RenderContextOptions":"JavaScriptObject","RenderOptions":"JavaScriptObject","RenderResult":"JavaScriptObject","RenderResultStats":"JavaScriptObject","Types":"JavaScriptObject","_PropertyDescriptor0":"JavaScriptObject","ConsoleModule":"JavaScriptObject","Console":"JavaScriptObject","Modules":"JavaScriptObject","Module1":"JavaScriptObject","Process":"JavaScriptObject","EventEmitter":"JavaScriptObject","Readable":"JavaScriptObject","Writable":"JavaScriptObject","NetServer":"JavaScriptObject","FSWatcher":"JavaScriptObject","Duplex":"JavaScriptObject","ReadStream":"JavaScriptObject","WriteStream":"JavaScriptObject","Transform":"JavaScriptObject","Socket":"JavaScriptObject","TTYReadStream":"JavaScriptObject","TTYWriteStream":"JavaScriptObject","CPUUsage":"JavaScriptObject","Release":"JavaScriptObject","BufferModule":"JavaScriptObject","BufferConstants":"JavaScriptObject","Buffer":"JavaScriptObject","Immediate":"JavaScriptObject","Timeout":"JavaScriptObject","FiberClass":"JavaScriptObject","Fiber":"JavaScriptObject","_NodeSassColor":"JavaScriptObject","_NodeSassList":"JavaScriptObject","_NodeSassMap":"JavaScriptObject","_NodeSassNumber":"JavaScriptObject","_NodeSassString":"JavaScriptObject","StreamModule":"JavaScriptObject","WritableOptions":"JavaScriptObject","ReadableOptions":"JavaScriptObject","Net":"JavaScriptObject","NetAddress":"JavaScriptObject","TTY":"JavaScriptObject","FS":"JavaScriptObject","FSConstants":"JavaScriptObject","ReadStreamOptions":"JavaScriptObject","WriteStreamOptions":"JavaScriptObject","Stats":"JavaScriptObject","Chokidar":"JavaScriptObject","ChokidarOptions":"JavaScriptObject","ChokidarWatcher":"JavaScriptObject","Chokidar0":"JavaScriptObject","ChokidarOptions0":"JavaScriptObject","ChokidarWatcher0":"JavaScriptObject","NodeImporterResult0":"JavaScriptObject","Stdin":"JavaScriptObject","Stdout":"JavaScriptObject","ReadlineModule":"JavaScriptObject","ReadlineOptions":"JavaScriptObject","ReadlineInterface":"JavaScriptObject","JSFunction":"JavaScriptObject","NodeImporterResult":"JavaScriptObject","_PropertyDescriptor":"JavaScriptObject","PlainJavaScriptObject":"JavaScriptObject","UnknownJavaScriptObject":"JavaScriptObject","JavaScriptFunction":"JavaScriptObject","JSBool":{"bool":[]},"JSNull":{"Null":[]},"JavaScriptObject":{"Function":[],"JsError":[],"JsSystemError":[],"_NodeSassColor":[],"JSFunction0":[],"NodeImporterResult0":[],"_NodeSassList":[],"_NodeSassMap":[],"_NodeSassNumber":[],"RenderOptions":[],"RenderResult":[],"_NodeSassString":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"]},"JSDouble":{"double":[],"num":[],"Comparable":["num"]},"JSString":{"String":[],"Comparable":["String"]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListMixin":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2","ListMixin.E":"2"},"CastSet":{"Set":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastQueue":{"Queue":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"LateInitializationErrorImpl":{"Error":[]},"CodeUnits":{"ListMixin":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipWhileIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"FollowedByIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthFollowedByIterable":{"FollowedByIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"ConstantProtoMap":{"ConstantStringMap":["1","2"],"ConstantMap":["1","2"],"Map":["1","2"]},"_ConstantMapKeyIterable":{"Iterable":["1"],"Iterable.E":"1"},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"]},"NativeTypedArrayOfDouble":{"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListMixin":["double"],"JavaScriptIndexingBehavior":["double"],"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"ListMixin.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListMixin":["int"],"Uint8List":[],"JavaScriptIndexingBehavior":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListMixin.E":"int"},"_Error":{"Error":[]},"_TypeError":{"Error":[]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_BroadcastStream":{"_ControllerStream":["1"],"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_BroadcastSubscription":{"_ControllerSubscription":["1"],"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_BroadcastStreamController":{"EventSink":["1"]},"_SyncBroadcastStreamController":{"_BroadcastStreamController":["1"],"EventSink":["1"]},"_AsyncCompleter":{"_Completer":["1"]},"_Future":{"Future":["1"]},"_StreamController":{"EventSink":["1"]},"_AsyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_SyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_DoneStreamSubscription":{"StreamSubscription":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_BufferingStreamSubscription.T":"2"},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"AsyncError":{"Error":[]},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_HashMap":{"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedIdentityHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapMixin":["1","2"],"Map":["1","2"],"MapMixin.K":"1","MapMixin.V":"2"},"_LinkedHashSet":{"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableListView":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListMixin.E":"1"},"IterableBase":{"Iterable":["1"]},"ListBase":{"ListMixin":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"MapMixin":{"Map":["1","2"]},"UnmodifiableMapBase":{"MapMixin":["1","2"],"Map":["1","2"]},"_MapBaseValueIterable":{"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"ListQueue":{"ListIterable":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_UnmodifiableSet":{"_SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"AsciiCodec":{"Codec":["String","List<int>"]},"_UnicodeSubsetEncoder":{"Converter":["String","List<int>"]},"AsciiEncoder":{"Converter":["String","List<int>"]},"Base64Codec":{"Codec":["List<int>","String"]},"Base64Encoder":{"Converter":["List<int>","String"]},"Encoding":{"Codec":["String","List<int>"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"]},"JsonEncoder":{"Converter":["Object?","String"]},"StringConversionSinkBase":{"StringConversionSink":[]},"StringConversionSinkMixin":{"StringConversionSink":[]},"_StringSinkConversionSink":{"StringConversionSink":[]},"_StringCallbackSink":{"StringConversionSink":[]},"_StringAdapterSink":{"StringConversionSink":[]},"Utf8Codec":{"Codec":["String","List<int>"]},"Utf8Encoder":{"Converter":["String","List<int>"]},"Utf8Decoder":{"Converter":["List<int>","String"]},"double":{"num":[],"Comparable":["num"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"]},"DateTime":{"Comparable":["DateTime"]},"Duration":{"Comparable":["Duration"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"NullThrownError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"RangeError":[],"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"CyclicInitializationError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_StringStackTrace":{"StackTrace":[]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"Uri":[]},"_SimpleUri":{"Uri":[]},"_DataUri":{"Uri":[]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["Null"]},"ValueResult":{"Result":["1*"]},"_CompleterStream":{"Stream":["1*"],"Stream.T":"1*"},"_NextRequest":{"_EventRequest":["1*"]},"EmptyUnmodifiableSet":{"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"],"Iterable.E":"1*"},"QueueList":{"ListMixin":["1*"],"List":["1*"],"Queue":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"],"ListMixin.E":"1*","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2*"],"ListMixin":["2*"],"List":["2*"],"Queue":["2*"],"EfficientLengthIterable":["2*"],"Iterable":["2*"],"ListMixin.E":"2*","QueueList.E":"2*"},"UnmodifiableSetView":{"DelegatingSet":["1*"],"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"],"DelegatingSet.E":"1*"},"_DelegatingIterableBase":{"Iterable":["1*"]},"DelegatingIterable":{"Iterable":["1*"]},"DelegatingSet":{"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"],"DelegatingSet.E":"1"},"MapKeySet":{"Set":["1*"],"EfficientLengthIterable":["1*"],"Iterable":["1*"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String*","1*"]},"ModifiableCssAtRule":{"ModifiableCssParentNode":[],"CssAtRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssComment":{"ModifiableCssNode":[],"CssComment":[],"CssNode":[],"AstNode":[]},"ModifiableCssDeclaration":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssImport":{"ModifiableCssNode":[],"CssImport":[],"CssNode":[],"AstNode":[]},"ModifiableCssKeyframeBlock":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssMediaRule":{"ModifiableCssParentNode":[],"CssMediaRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssNode":{"CssNode":[],"AstNode":[]},"ModifiableCssParentNode":{"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStyleRule":{"ModifiableCssParentNode":[],"CssStyleRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStylesheet":{"ModifiableCssParentNode":[],"CssStylesheet":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssSupportsRule":{"ModifiableCssParentNode":[],"CssSupportsRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssValue":{"CssValue":["1*"],"AstNode":[]},"CssNode":{"AstNode":[]},"CssParentNode":{"CssNode":[],"AstNode":[]},"CssStylesheet":{"CssParentNode":[],"CssNode":[],"AstNode":[]},"CssValue":{"AstNode":[]},"_FakeAstNode":{"AstNode":[]},"Argument":{"AstNode":[]},"ArgumentDeclaration":{"AstNode":[]},"ArgumentInvocation":{"AstNode":[]},"ConfiguredVariable":{"AstNode":[]},"BinaryOperationExpression":{"Expression":[],"AstNode":[]},"BooleanExpression":{"Expression":[],"AstNode":[]},"ColorExpression":{"Expression":[],"AstNode":[]},"FunctionExpression":{"Expression":[],"AstNode":[]},"IfExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"AstNode":[]},"AtRootRule":{"Statement":[],"AstNode":[]},"AtRule":{"Statement":[],"AstNode":[]},"CallableDeclaration":{"Statement":[],"AstNode":[]},"ContentBlock":{"Statement":[],"AstNode":[]},"ContentRule":{"Statement":[],"AstNode":[]},"DebugRule":{"Statement":[],"AstNode":[]},"Declaration":{"Statement":[],"AstNode":[]},"EachRule":{"Statement":[],"AstNode":[]},"ErrorRule":{"Statement":[],"AstNode":[]},"ExtendRule":{"Statement":[],"AstNode":[]},"ForRule":{"Statement":[],"AstNode":[]},"ForwardRule":{"Statement":[],"AstNode":[]},"FunctionRule":{"Statement":[],"AstNode":[]},"IfRule":{"Statement":[],"AstNode":[]},"ImportRule":{"Statement":[],"AstNode":[]},"IncludeRule":{"Statement":[],"AstNode":[]},"LoudComment":{"Statement":[],"AstNode":[]},"MediaRule":{"Statement":[],"AstNode":[]},"MixinRule":{"Statement":[],"AstNode":[]},"ParentStatement":{"Statement":[],"AstNode":[]},"ReturnRule":{"Statement":[],"AstNode":[]},"SilentComment":{"Statement":[],"AstNode":[]},"StyleRule":{"Statement":[],"AstNode":[]},"Stylesheet":{"Statement":[],"AstNode":[]},"SupportsRule":{"Statement":[],"AstNode":[]},"UseRule":{"Statement":[],"AstNode":[]},"VariableDeclaration":{"Statement":[],"AstNode":[]},"WarnRule":{"Statement":[],"AstNode":[]},"WhileRule":{"Statement":[],"AstNode":[]},"SupportsAnything":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsFunction":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[]},"ClassSelector":{"SimpleSelector":[]},"Combinator":{"ComplexSelectorComponent":[]},"CompoundSelector":{"ComplexSelectorComponent":[]},"IDSelector":{"SimpleSelector":[]},"ParentSelector":{"SimpleSelector":[]},"PlaceholderSelector":{"SimpleSelector":[]},"PseudoSelector":{"SimpleSelector":[]},"TypeSelector":{"SimpleSelector":[]},"UniversalSelector":{"SimpleSelector":[]},"_EnvironmentModule0":{"Module":["AsyncCallable*"]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"Callable":[],"AsyncBuiltInCallable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable":[],"AsyncCallable":[]},"_EnvironmentModule":{"Module":["Callable*"]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"SassRuntimeException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtender":{"Extender":[]},"MergedExtension":{"Extension":[]},"Importer":{"AsyncImporter":[]},"FilesystemImporter":{"Importer":[],"AsyncImporter":[]},"BuiltInModule":{"Module":["1*"]},"ForwardedModuleView":{"Module":["1*"]},"ShadowedModuleView":{"Module":["1*"]},"LimitedMapView":{"MapMixin":["1*","2*"],"Map":["1*","2*"],"MapMixin.K":"1*","MapMixin.V":"2*"},"MergedMapView":{"MapMixin":["1*","2*"],"Map":["1*","2*"],"MapMixin.K":"1*","MapMixin.V":"2*"},"NoSourceMapBuffer0":{"StringBuffer":[]},"PrefixedMapView":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"_PrefixedKeys":{"Iterable":["String*"],"Iterable.E":"String*"},"PublicMemberMapView":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"SourceMapBuffer0":{"StringBuffer":[]},"UnprefixedMapView":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"_UnprefixedKeys":{"Iterable":["String*"],"Iterable.E":"String*"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassColor":{"Value":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"SassNull":{"Value":[]},"SassNumber":{"Value":[]},"SassString":{"Value":[]},"Entry":{"Comparable":["Entry*"]},"FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan*"]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation*"]},"_FileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan*"]},"SourceLocation":{"Comparable":["SourceLocation*"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation*"]},"SourceSpan":{"Comparable":["SourceSpan*"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan*"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan*"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan*"]},"Chain":{"StackTrace":[]},"LazyTrace":{"Trace":[],"StackTrace":[]},"Trace":{"StackTrace":[]},"UnparsedFrame":{"Frame":[]},"StringScannerException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"SupportsAnything0":{"AstNode0":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module0":["AsyncCallable0*"]},"AtRootRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"CssAtRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[]},"BinaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"Callable0":[],"AsyncBuiltInCallable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module0":["1*"]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"Combinator0":{"ComplexSelectorComponent0":[]},"CompoundSelector0":{"ComplexSelectorComponent0":[]},"ConfiguredVariable0":{"AstNode0":[]},"ContentBlock0":{"Statement0":[],"AstNode0":[]},"ContentRule0":{"Statement0":[],"AstNode0":[]},"DebugRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssDeclaration0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"Declaration0":{"Statement0":[],"AstNode0":[]},"SupportsDeclaration0":{"AstNode0":[]},"DynamicImport0":{"Import0":[],"AstNode0":[]},"EachRule0":{"Statement0":[],"AstNode0":[]},"EmptyExtender0":{"Extender0":[]},"_EnvironmentModule1":{"Module0":["Callable0*"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"SassRuntimeException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module0":["1*"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SupportsFunction0":{"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssImport0":[],"CssNode0":[],"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"AstNode0":[]},"Interpolation0":{"AstNode0":[]},"SupportsInterpolation0":{"AstNode0":[]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LimitedMapView0":{"MapMixin":["1*","2*"],"Map":["1*","2*"],"MapMixin.K":"1*","MapMixin.V":"2*"},"ListExpression0":{"Expression0":[],"AstNode0":[]},"SassList0":{"Value0":[]},"LoudComment0":{"Statement0":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"CssMediaRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapMixin":["1*","2*"],"Map":["1*","2*"],"MapMixin.K":"1*","MapMixin.V":"2*"},"MixinRule0":{"Statement0":[],"AstNode0":[]},"SupportsNegation0":{"AstNode0":[]},"NoSourceMapBuffer":{"StringBuffer":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"NullExpression0":{"Expression0":[],"AstNode0":[]},"SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"SupportsOperation0":{"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[]},"ParentStatement0":{"Statement0":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"AstNode0":[]},"PlaceholderSelector0":{"SimpleSelector0":[]},"PlainCssCallable0":{"Callable0":[],"AsyncCallable0":[]},"PrefixedMapView0":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"_PrefixedKeys0":{"Iterable":["String*"],"Iterable.E":"String*"},"PseudoSelector0":{"SimpleSelector0":[]},"PublicMemberMapView0":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"ReturnRule0":{"Statement0":[],"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"AstNode0":[]},"ShadowedModuleView0":{"Module0":["1*"]},"SilentComment0":{"Statement0":[],"AstNode0":[]},"SourceMapBuffer":{"StringBuffer":[]},"StaticImport0":{"Import0":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"CssStyleRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"CssSupportsRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"TypeSelector0":{"SimpleSelector0":[]},"UnaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"UniversalSelector0":{"SimpleSelector0":[]},"UnprefixedMapView0":{"MapMixin":["String*","1*"],"Map":["String*","1*"],"MapMixin.K":"String*","MapMixin.V":"1*"},"_UnprefixedKeys0":{"Iterable":["String*"],"Iterable.E":"String*"},"UseRule0":{"Statement0":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable0":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssValue0":{"CssValue0":["1*"],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"AstNode0":[]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Expression":{"AstNode":[]},"Import":{"AstNode":[]},"SassNode":{"AstNode":[]},"Statement":{"AstNode":[]},"SupportsCondition":{"AstNode":[]},"Callable":{"AsyncCallable":[]},"Callable0":{"AsyncCallable0":[]},"Expression0":{"AstNode0":[]},"Import0":{"AstNode0":[]},"SassNode0":{"AstNode0":[]},"Statement0":{"AstNode0":[]},"SupportsCondition0":{"AstNode0":[]}}'));
  88920. H._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"ArrayIterator":1,"ListIterator":1,"MappedIterator":2,"WhereIterator":1,"ExpandIterator":2,"TakeIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"EventSink":1,"_SyncStarIterator":1,"StreamTransformerBase":2,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamImplEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"Queue":1,"_HashMapKeyIterator":1,"_LinkedHashSetIterator":1,"IterableBase":1,"ListBase":1,"MapBase":2,"UnmodifiableMapBase":2,"_MapBaseValueIterator":2,"_UnmodifiableMapMixin":2,"MapView":2,"_ListQueueIterator":1,"_ListBase_Object_ListMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"ChunkedConversionSink":1,"_StringSinkConversionSink":1,"Iterator":1,"_EventRequest":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"MapEquality":2,"_QueueList_Object_ListMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"DelegatingIterable":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"RecursiveStatementVisitor":1}'));
  88921. var string$ = {
  88922. x0a_BUG_: "\n\nBUG: This should include a source span!",
  88923. x0aYou_m: "\nYou may not @extend the same selector from within different media queries.",
  88924. x20in_in: " in interpolation here.\nIt may end up represented as ",
  88925. x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.",
  88926. x20is_av: " is available from multiple global modules.",
  88927. x20is_no: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.",
  88928. x20must_: " must not be greater than the number of characters in the file, ",
  88929. x20was_a: ' was already loaded, so it can\'t be configured using "with".',
  88930. x20was_n: " was not declared with !default in the @used module.",
  88931. x20was_p: " was passed both by position and by name.",
  88932. x21globa: "!global isn't allowed for variables in other modules.",
  88933. x22x26__ma: '"&" may only used at the beginning of a compound selector.',
  88934. x22x29__If: "\").\nIf you really want to use the color value here, use '",
  88935. x22packa: '"package:" URLs aren\'t supported on this platform.',
  88936. x24css_a: "$css and $module may not both be passed at once.",
  88937. x24list1: "$list1, $list2, $separator: auto, $bracketed: auto",
  88938. x24selec: "$selectors: At least one selector must be passed.",
  88939. x24separ: '$separator: Must be "space", "comma", or "auto".',
  88940. x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(",
  88941. x29__Mor: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#",
  88942. x2c_whici: ", which is currently (incorrectly) converted to ",
  88943. x2c_whicw: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "',
  88944. x2e_Rela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.\n",
  88945. x3a_Passn: ": Passing a number without unit % is deprecated.\n\nTo preserve current behavior: $",
  88946. x3a_Passu: ": Passing a unit other than deg is deprecated.\n",
  88947. x3a_Passu_: ": Passing a unit other than deg is deprecated.\n\n",
  88948. x3d_____: "===== asynchronous gap ===========================\n",
  88949. x40_moz_: "@-moz-document is deprecated and support will be removed from Sass in a future\nrelase. For details, see http://bit.ly/moz-document.\n",
  88950. x40conte: "@content is only allowed within mixin declarations.",
  88951. x40elsei: '@elseif is deprecated and will not be supported in future Sass versions.\nUse "@else if" instead.',
  88952. x40exten: "@extend may only be used within style rules.",
  88953. x40forwa: "@forward rules must be written before any other rules.",
  88954. x40funct: "@function if($condition, $if-true, $if-false) {",
  88955. x40use_r: "@use rules must be written before any other rules.",
  88956. A_list: "A list with more than one element must have an explicit separator.",
  88957. ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  88958. As_of_C: "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Consider adding `",
  88959. As_of_S: "As of Dart Sass 2.0.0, !global assignments won't be able to\ndeclare new variables. Since this assignment is at the root of the stylesheet,\nthe !global flag is unnecessary and can safely be removed.",
  88960. At_rul: "At-rules may not be used within nested declarations.",
  88961. Broadc: "Broadcast stream controllers do not support pause callbacks",
  88962. Cannoteff: "Cannot extract a file path from a URI with a fragment component",
  88963. Cannotefq: "Cannot extract a file path from a URI with a query component",
  88964. Cannoten: "Cannot extract a non-Windows file path from a file URI with an authority",
  88965. Cannotf: "Cannot fire new event. Controller is already firing an event",
  88966. Could_: 'Could not find an option with short name "-',
  88967. Custom: "Custom functions may not return Dart's null.",
  88968. Declarm: "Declarations may only be used within style rules.",
  88969. Declarw: 'Declarations whose names begin with "--" must have StringExpression values (was `',
  88970. Either: "Either options.data or options.file must be set.",
  88971. Entrie: "Entries may not be removed from MergedMapView.",
  88972. Evalua: "Evaluation handles @include and its content block together.",
  88973. Expect: "Expected variable, mixin, or function name",
  88974. Functi: "Functions may not be declared in control directives.",
  88975. HSL_pa: "HSL parameters may not be passed along with HWB parameters.",
  88976. If_par: "If parsedAsCustomProperty is true, value must contain a SassString (was `",
  88977. In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.',
  88978. Indent: "Indenting at the beginning of the document is illegal.",
  88979. Interpn: "Interpolation isn't allowed in namespaces.",
  88980. Interpp: "Interpolation isn't allowed in plain CSS.",
  88981. It_s_n: "It's not clear which file to import. Found:\n",
  88982. May_on: "May only contains Strings or Expressions.",
  88983. Media_: "Media rules may not be used within nested declarations.",
  88984. Mixinsb: "Mixins may not be declared in control directives.",
  88985. Mixinscf: "Mixins may not contain function declarations.",
  88986. Mixinscm: "Mixins may not contain mixin declarations.",
  88987. Module: "Module loop: this module is already being loaded.",
  88988. Nested: "Nested declarations aren't allowed in plain CSS.",
  88989. New_en: "New entries may not be added to MergedMapView.",
  88990. NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.",
  88991. Only_oa: "Only one argument may be passed to the plain-CSS invert() function.",
  88992. Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.",
  88993. Other_: "Other modules' members can't be defined with !global.",
  88994. Passinng: "Passing a number to color.grayscale() is deprecated.\n\nRecommendation: ",
  88995. Passinni: "Passing a number to color.invert() is deprecated.\n\nRecommendation: ",
  88996. Passinno: "Passing a number to color.opacity() is deprecated.\n\nRecommendation: ",
  88997. Passins: "Passing a string to call() is deprecated and will be illegal\nin Dart Sass 2.0.0. Use call(get-function(",
  88998. Placeh: "Placeholder selectors aren't allowed here.",
  88999. Plain_: "Plain CSS functions don't support keyword arguments.",
  89000. Positi: "Positional arguments must come before keyword arguments.",
  89001. Privat: "Private members can't be accessed from outside their modules.",
  89002. RGB_pa: "RGB parameters may not be passed along with ",
  89003. Sass_v: "Sass variables aren't allowed in plain CSS.",
  89004. Silent: "Silent comments aren't allowed in plain CSS.",
  89005. Soon__: "Soon, it will instead be correctly converted to ",
  89006. Style_: "Style rules may not be used within nested declarations.",
  89007. Suppor: "Supports rules may not be used within nested declarations.",
  89008. The_Ex: "The Extender and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.",
  89009. The_gi: "The given LineScannerState was not returned by this LineScanner.",
  89010. The_pa: "The parent selector isn't allowed in plain CSS.",
  89011. The_sa: "The same variable may only be configured once.",
  89012. The_ta: 'The target selector was not found.\nUse "@extend ',
  89013. There_: "There's already a module with namespace \"",
  89014. This_d: 'This declaration has no argument named "$',
  89015. This_f: "This function isn't allowed in plain CSS.",
  89016. This_ma: 'This module and the new module both define a variable named "$',
  89017. This_mw: 'This module was already loaded, so it can\'t be configured using "with".',
  89018. This_s: "This selector doesn't have any properties and won't be rendered.",
  89019. This_v: "This variable was not declared with !default in the @used module.",
  89020. Top_le: 'Top-level selectors may not contain the parent selector "&".',
  89021. Using_: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ",
  89022. Variab_: "Variable keyword argument map must have string keys.\n",
  89023. Variabs: "Variable keyword arguments must be a map (was ",
  89024. You_ma: "You may not @extend selectors across media queries.",
  89025. You_pr: "You probably don't mean to use the color value ",
  89026. x60_inst: "` instead.\nSee http://bit.ly/ExtendCompound for details.\n",
  89027. addExt: "addExtensions() can't be called for a const Extender.",
  89028. compou: "compound selectors may no longer be extended.\nConsider `@extend ",
  89029. conten: "content-exists() may only be called within a mixin.",
  89030. must_b: "must be a UniversalSelector or a TypeSelector",
  89031. parsed: 'parsedAsCustomProperty must be false if name doesn\'t begin with "--".',
  89032. semico: "semicolons aren't allowed in the indented syntax.",
  89033. warn__: "warn() may only be called within a custom function or importer callback."
  89034. };
  89035. var type$ = (function rtii() {
  89036. var findType = H.findType;
  89037. return {
  89038. $env_1_1_legacy_String: findType("@<String*>"),
  89039. Comparable_dynamic: findType("Comparable<@>"),
  89040. ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
  89041. ConstantStringMap_of_legacy_String_and_legacy_num: findType("ConstantStringMap<String*,num*>"),
  89042. CssValue_legacy_List_legacy_String: findType("CssValue<List<String*>*>"),
  89043. CssValue_legacy_List_legacy_String_2: findType("CssValue0<List<String*>*>"),
  89044. CssValue_legacy_String: findType("CssValue<String*>"),
  89045. CssValue_legacy_String_2: findType("CssValue0<String*>"),
  89046. CssValue_legacy_Value: findType("CssValue<Value*>"),
  89047. CssValue_legacy_Value_2: findType("CssValue0<Value0*>"),
  89048. EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
  89049. Error: findType("Error"),
  89050. FixedLengthListBuilder_legacy_ModifiableCssNode: findType("FixedLengthListBuilder<ModifiableCssNode*>"),
  89051. FixedLengthListBuilder_legacy_ModifiableCssNode_2: findType("FixedLengthListBuilder0<ModifiableCssNode0*>"),
  89052. Function: findType("Function"),
  89053. Future_dynamic: findType("Future<@>"),
  89054. Future_void: findType("Future<~>"),
  89055. JSArray_String: findType("JSArray<String>"),
  89056. JSArray_dynamic: findType("JSArray<@>"),
  89057. JSArray_int: findType("JSArray<int>"),
  89058. JSArray_legacy_Argument: findType("JSArray<Argument*>"),
  89059. JSArray_legacy_Argument_2: findType("JSArray<Argument0*>"),
  89060. JSArray_legacy_AstNode: findType("JSArray<AstNode*>"),
  89061. JSArray_legacy_AstNode_2: findType("JSArray<AstNode0*>"),
  89062. JSArray_legacy_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable*>"),
  89063. JSArray_legacy_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0*>"),
  89064. JSArray_legacy_AsyncCallable: findType("JSArray<AsyncCallable0*>"),
  89065. JSArray_legacy_AsyncCallable_2: findType("JSArray<AsyncCallable*>"),
  89066. JSArray_legacy_AsyncImporter: findType("JSArray<AsyncImporter*>"),
  89067. JSArray_legacy_BinaryOperator: findType("JSArray<BinaryOperator*>"),
  89068. JSArray_legacy_BinaryOperator_2: findType("JSArray<BinaryOperator0*>"),
  89069. JSArray_legacy_BuiltInCallable: findType("JSArray<BuiltInCallable*>"),
  89070. JSArray_legacy_BuiltInCallable_2: findType("JSArray<BuiltInCallable0*>"),
  89071. JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable: findType("JSArray<BuiltInModule<AsyncBuiltInCallable*>*>"),
  89072. JSArray_legacy_BuiltInModule_legacy_AsyncBuiltInCallable_2: findType("JSArray<BuiltInModule0<AsyncBuiltInCallable0*>*>"),
  89073. JSArray_legacy_BuiltInModule_legacy_BuiltInCallable: findType("JSArray<BuiltInModule<BuiltInCallable*>*>"),
  89074. JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2: findType("JSArray<BuiltInModule0<BuiltInCallable0*>*>"),
  89075. JSArray_legacy_Callable: findType("JSArray<Callable*>"),
  89076. JSArray_legacy_Callable_2: findType("JSArray<Callable0*>"),
  89077. JSArray_legacy_Combinator: findType("JSArray<Combinator*>"),
  89078. JSArray_legacy_Combinator_2: findType("JSArray<Combinator0*>"),
  89079. JSArray_legacy_ComplexSelector: findType("JSArray<ComplexSelector*>"),
  89080. JSArray_legacy_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent*>"),
  89081. JSArray_legacy_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0*>"),
  89082. JSArray_legacy_ComplexSelector_2: findType("JSArray<ComplexSelector0*>"),
  89083. JSArray_legacy_CompoundSelector: findType("JSArray<CompoundSelector*>"),
  89084. JSArray_legacy_CompoundSelector_2: findType("JSArray<CompoundSelector0*>"),
  89085. JSArray_legacy_ConfiguredVariable: findType("JSArray<ConfiguredVariable*>"),
  89086. JSArray_legacy_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0*>"),
  89087. JSArray_legacy_CssMediaQuery: findType("JSArray<CssMediaQuery*>"),
  89088. JSArray_legacy_CssMediaQuery_2: findType("JSArray<CssMediaQuery0*>"),
  89089. JSArray_legacy_CssNode: findType("JSArray<CssNode*>"),
  89090. JSArray_legacy_CssNode_2: findType("JSArray<CssNode0*>"),
  89091. JSArray_legacy_Entry: findType("JSArray<Entry*>"),
  89092. JSArray_legacy_Expression: findType("JSArray<Expression*>"),
  89093. JSArray_legacy_Expression_2: findType("JSArray<Expression0*>"),
  89094. JSArray_legacy_Extender: findType("JSArray<Extender*>"),
  89095. JSArray_legacy_Extender_2: findType("JSArray<Extender0*>"),
  89096. JSArray_legacy_Extension: findType("JSArray<Extension*>"),
  89097. JSArray_legacy_Extension_2: findType("JSArray<Extension0*>"),
  89098. JSArray_legacy_ForwardRule: findType("JSArray<ForwardRule*>"),
  89099. JSArray_legacy_ForwardRule_2: findType("JSArray<ForwardRule0*>"),
  89100. JSArray_legacy_Frame: findType("JSArray<Frame*>"),
  89101. JSArray_legacy_IfClause: findType("JSArray<IfClause*>"),
  89102. JSArray_legacy_IfClause_2: findType("JSArray<IfClause0*>"),
  89103. JSArray_legacy_Import: findType("JSArray<Import*>"),
  89104. JSArray_legacy_Import_2: findType("JSArray<Import0*>"),
  89105. JSArray_legacy_Importer: findType("JSArray<Importer*>"),
  89106. JSArray_legacy_Iterable_legacy_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent*>*>"),
  89107. JSArray_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0*>*>"),
  89108. JSArray_legacy_JSFunction: findType("JSArray<JSFunction0*>"),
  89109. JSArray_legacy_List_legacy_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent*>*>"),
  89110. JSArray_legacy_List_legacy_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0*>*>"),
  89111. JSArray_legacy_List_legacy_Extension: findType("JSArray<List<Extension*>*>"),
  89112. JSArray_legacy_List_legacy_Extension_2: findType("JSArray<List<Extension0*>*>"),
  89113. JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent*>*>*>"),
  89114. JSArray_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0*>*>*>"),
  89115. JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode: findType("JSArray<Map<String*,AstNode*>*>"),
  89116. JSArray_legacy_Map_of_legacy_String_and_legacy_AstNode_2: findType("JSArray<Map<String*,AstNode0*>*>"),
  89117. JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable: findType("JSArray<Map<String*,AsyncCallable*>*>"),
  89118. JSArray_legacy_Map_of_legacy_String_and_legacy_AsyncCallable_2: findType("JSArray<Map<String*,AsyncCallable0*>*>"),
  89119. JSArray_legacy_Map_of_legacy_String_and_legacy_Callable: findType("JSArray<Map<String*,Callable*>*>"),
  89120. JSArray_legacy_Map_of_legacy_String_and_legacy_Callable_2: findType("JSArray<Map<String*,Callable0*>*>"),
  89121. JSArray_legacy_Map_of_legacy_String_and_legacy_Value: findType("JSArray<Map<String*,Value*>*>"),
  89122. JSArray_legacy_Map_of_legacy_String_and_legacy_Value_2: findType("JSArray<Map<String*,Value0*>*>"),
  89123. JSArray_legacy_ModifiableCssImport: findType("JSArray<ModifiableCssImport*>"),
  89124. JSArray_legacy_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0*>"),
  89125. JSArray_legacy_ModifiableCssNode: findType("JSArray<ModifiableCssNode*>"),
  89126. JSArray_legacy_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0*>"),
  89127. JSArray_legacy_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode*>"),
  89128. JSArray_legacy_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0*>"),
  89129. JSArray_legacy_Module_legacy_AsyncCallable: findType("JSArray<Module<AsyncCallable*>*>"),
  89130. JSArray_legacy_Module_legacy_AsyncCallable_2: findType("JSArray<Module0<AsyncCallable0*>*>"),
  89131. JSArray_legacy_Module_legacy_Callable: findType("JSArray<Module<Callable*>*>"),
  89132. JSArray_legacy_Module_legacy_Callable_2: findType("JSArray<Module0<Callable0*>*>"),
  89133. JSArray_legacy_Object: findType("JSArray<Object*>"),
  89134. JSArray_legacy_PseudoSelector: findType("JSArray<PseudoSelector*>"),
  89135. JSArray_legacy_PseudoSelector_2: findType("JSArray<PseudoSelector0*>"),
  89136. JSArray_legacy_SassList: findType("JSArray<SassList*>"),
  89137. JSArray_legacy_SassList_2: findType("JSArray<SassList0*>"),
  89138. JSArray_legacy_SimpleSelector: findType("JSArray<SimpleSelector*>"),
  89139. JSArray_legacy_SimpleSelector_2: findType("JSArray<SimpleSelector0*>"),
  89140. JSArray_legacy_Statement: findType("JSArray<Statement*>"),
  89141. JSArray_legacy_Statement_2: findType("JSArray<Statement0*>"),
  89142. JSArray_legacy_String: findType("JSArray<String*>"),
  89143. JSArray_legacy_StylesheetNode: findType("JSArray<StylesheetNode*>"),
  89144. JSArray_legacy_TargetEntry: findType("JSArray<TargetEntry*>"),
  89145. JSArray_legacy_TargetLineEntry: findType("JSArray<TargetLineEntry*>"),
  89146. JSArray_legacy_Trace: findType("JSArray<Trace*>"),
  89147. JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value: findType("JSArray<Tuple2<ArgumentDeclaration*,Value*(List<Value*>*)*>*>"),
  89148. JSArray_legacy_Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2: findType("JSArray<Tuple2<ArgumentDeclaration0*,Value0*(List<Value0*>*)*>*>"),
  89149. JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression: findType("JSArray<Tuple2<Expression*,Expression*>*>"),
  89150. JSArray_legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("JSArray<Tuple2<Expression0*,Expression0*>*>"),
  89151. JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode: findType("JSArray<Tuple2<String*,AstNode*>*>"),
  89152. JSArray_legacy_Tuple2_of_legacy_String_and_legacy_AstNode_2: findType("JSArray<Tuple2<String*,AstNode0*>*>"),
  89153. JSArray_legacy_Uri: findType("JSArray<Uri*>"),
  89154. JSArray_legacy_UseRule: findType("JSArray<UseRule*>"),
  89155. JSArray_legacy_UseRule_2: findType("JSArray<UseRule0*>"),
  89156. JSArray_legacy_Value: findType("JSArray<Value*>"),
  89157. JSArray_legacy_Value_2: findType("JSArray<Value0*>"),
  89158. JSArray_legacy__Highlight: findType("JSArray<_Highlight*>"),
  89159. JSArray_legacy__Line: findType("JSArray<_Line*>"),
  89160. JSArray_legacy_bool: findType("JSArray<bool*>"),
  89161. JSArray_legacy_int: findType("JSArray<int*>"),
  89162. JSNull: findType("JSNull"),
  89163. JavaScriptFunction: findType("JavaScriptFunction"),
  89164. JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
  89165. JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
  89166. LimitedMapView_of_legacy_String_and_legacy_ConfiguredValue: findType("LimitedMapView<String*,ConfiguredValue*>"),
  89167. LimitedMapView_of_legacy_String_and_legacy_ConfiguredValue_2: findType("LimitedMapView0<String*,ConfiguredValue0*>"),
  89168. List_dynamic: findType("List<@>"),
  89169. MapKeySet_legacy_Object: findType("MapKeySet<Object*>"),
  89170. MapKeySet_legacy_SimpleSelector: findType("MapKeySet<SimpleSelector*>"),
  89171. MapKeySet_legacy_SimpleSelector_2: findType("MapKeySet<SimpleSelector0*>"),
  89172. MapKeySet_legacy_String: findType("MapKeySet<String*>"),
  89173. Map_dynamic_dynamic: findType("Map<@,@>"),
  89174. MappedIterable_of_String_and_legacy_Frame: findType("MappedIterable<String,Frame*>"),
  89175. MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
  89176. MappedListIterable_of_String_and_legacy_String: findType("MappedListIterable<String,String*>"),
  89177. MappedListIterable_of_String_and_legacy_Trace: findType("MappedListIterable<String,Trace*>"),
  89178. MappedListIterable_of_legacy_Frame_and_legacy_Frame: findType("MappedListIterable<Frame*,Frame*>"),
  89179. MappedListIterable_of_legacy_String_and_legacy_Future_void: findType("MappedListIterable<String*,Future<~>*>"),
  89180. ModifiableCssValue_legacy_SelectorList: findType("ModifiableCssValue<SelectorList*>"),
  89181. ModifiableCssValue_legacy_SelectorList_2: findType("ModifiableCssValue0<SelectorList0*>"),
  89182. NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
  89183. NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
  89184. NativeUint8List: findType("NativeUint8List"),
  89185. Null: findType("Null"),
  89186. Object: findType("Object"),
  89187. PathMap_legacy_ChangeType: findType("PathMap<ChangeType*>"),
  89188. PathMap_legacy_String: findType("PathMap<String*>"),
  89189. ReversedListIterable_legacy_Combinator: findType("ReversedListIterable<Combinator*>"),
  89190. ReversedListIterable_legacy_Combinator_2: findType("ReversedListIterable<Combinator0*>"),
  89191. ReversedListIterable_legacy_Frame: findType("ReversedListIterable<Frame*>"),
  89192. StackTrace: findType("StackTrace"),
  89193. StreamCompleter_legacy_WatchEvent: findType("StreamCompleter<WatchEvent*>"),
  89194. StreamGroup_legacy_WatchEvent: findType("StreamGroup<WatchEvent*>"),
  89195. StreamQueue_legacy_String: findType("StreamQueue<String*>"),
  89196. String: findType("String"),
  89197. StringBuffer: findType("StringBuffer"),
  89198. StringConversionSink: findType("StringConversionSink"),
  89199. Timer: findType("Timer"),
  89200. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value: findType("Tuple2<ArgumentDeclaration*,Value*/*(List<Value*>*)*>"),
  89201. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_FutureOr_legacy_Value_Function_legacy_List_legacy_Value_2: findType("Tuple2<ArgumentDeclaration0*,Value0*/*(List<Value0*>*)*>"),
  89202. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value: findType("Tuple2<ArgumentDeclaration*,Value*(List<Value*>*)*>"),
  89203. Tuple2_of_legacy_ArgumentDeclaration_and_legacy_legacy_Value_Function_legacy_List_legacy_Value_2: findType("Tuple2<ArgumentDeclaration0*,Value0*(List<Value0*>*)*>"),
  89204. Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet: findType("Tuple2<AsyncImporter*,Stylesheet*>"),
  89205. Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2: findType("Tuple2<AsyncImporter0*,Stylesheet0*>"),
  89206. Tuple2_of_legacy_Expression_and_legacy_Expression: findType("Tuple2<Expression*,Expression*>"),
  89207. Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("Tuple2<Expression0*,Expression0*>"),
  89208. Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList: findType("Tuple2<Extender*,Map<CssValue<SelectorList*>*,ModifiableCssValue<SelectorList*>*>*>"),
  89209. Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2: findType("Tuple2<Extender0*,Map<CssValue0<SelectorList0*>*,ModifiableCssValue0<SelectorList0*>*>*>"),
  89210. Tuple2_of_legacy_Importer_and_legacy_Stylesheet: findType("Tuple2<Importer*,Stylesheet*>"),
  89211. Tuple2_of_legacy_Importer_and_legacy_Stylesheet_2: findType("Tuple2<Importer0*,Stylesheet0*>"),
  89212. Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression: findType("Tuple2<List<Expression*>*,Map<String*,Expression*>*>"),
  89213. Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2: findType("Tuple2<List<Expression0*>*,Map<String*,Expression0*>*>"),
  89214. Tuple2_of_legacy_List_legacy_Uri_and_legacy_List_legacy_Uri: findType("Tuple2<List<Uri*>*,List<Uri*>*>"),
  89215. Tuple2_of_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode_and_legacy_Map_of_legacy_Uri_and_legacy_StylesheetNode: findType("Tuple2<Map<Uri*,StylesheetNode*>*,Map<Uri*,StylesheetNode*>*>"),
  89216. Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender: findType("Tuple2<ModifiableCssStylesheet*,Extender*>"),
  89217. Tuple2_of_legacy_ModifiableCssStylesheet_and_legacy_Extender_2: findType("Tuple2<ModifiableCssStylesheet0*,Extender0*>"),
  89218. Tuple2_of_legacy_SassNumber_and_legacy_SassNumber: findType("Tuple2<SassNumber*,SassNumber*>"),
  89219. Tuple2_of_legacy_SassNumber_and_legacy_SassNumber_2: findType("Tuple2<SassNumber0*,SassNumber0*>"),
  89220. Tuple2_of_legacy_Set_legacy_String_and_legacy_Set_legacy_String: findType("Tuple2<Set<String*>*,Set<String*>*>"),
  89221. Tuple2_of_legacy_String_and_legacy_ArgumentDeclaration: findType("Tuple2<String*,ArgumentDeclaration0*>"),
  89222. Tuple2_of_legacy_String_and_legacy_AstNode: findType("Tuple2<String*,AstNode*>"),
  89223. Tuple2_of_legacy_String_and_legacy_AstNode_2: findType("Tuple2<String*,AstNode0*>"),
  89224. Tuple2_of_legacy_String_and_legacy_String: findType("Tuple2<String*,String*>"),
  89225. Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation: findType("Tuple2<SupportsCondition*,Interpolation*>"),
  89226. Tuple2_of_legacy_SupportsCondition_and_legacy_Interpolation_2: findType("Tuple2<SupportsCondition0*,Interpolation0*>"),
  89227. Tuple2_of_legacy_Uri_and_legacy_bool: findType("Tuple2<Uri*,bool*>"),
  89228. Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<AsyncImporter*,Uri*,Uri*>"),
  89229. Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<AsyncImporter0*,Uri*,Uri*>"),
  89230. Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<Importer*,Uri*,Uri*>"),
  89231. Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<Importer0*,Uri*,Uri*>"),
  89232. Uint8List: findType("Uint8List"),
  89233. UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
  89234. UnmodifiableListView_legacy_CssNode: findType("UnmodifiableListView<CssNode*>"),
  89235. UnmodifiableListView_legacy_CssNode_2: findType("UnmodifiableListView<CssNode0*>"),
  89236. UnmodifiableListView_legacy_ForwardRule: findType("UnmodifiableListView<ForwardRule*>"),
  89237. UnmodifiableListView_legacy_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0*>"),
  89238. UnmodifiableListView_legacy_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode*>"),
  89239. UnmodifiableListView_legacy_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0*>"),
  89240. UnmodifiableListView_legacy_String: findType("UnmodifiableListView<String*>"),
  89241. UnmodifiableListView_legacy_UseRule: findType("UnmodifiableListView<UseRule*>"),
  89242. UnmodifiableListView_legacy_UseRule_2: findType("UnmodifiableListView<UseRule0*>"),
  89243. UnmodifiableMapView_of_legacy_String_and_legacy_ArgParser: findType("UnmodifiableMapView<String*,ArgParser*>"),
  89244. UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue: findType("UnmodifiableMapView<String*,ConfiguredValue*>"),
  89245. UnmodifiableMapView_of_legacy_String_and_legacy_ConfiguredValue_2: findType("UnmodifiableMapView<String*,ConfiguredValue0*>"),
  89246. UnmodifiableMapView_of_legacy_String_and_legacy_Option: findType("UnmodifiableMapView<String*,Option*>"),
  89247. UnmodifiableMapView_of_legacy_String_and_legacy_SourceFile: findType("UnmodifiableMapView<String*,SourceFile*>"),
  89248. UnmodifiableMapView_of_legacy_String_and_legacy_String: findType("UnmodifiableMapView<String*,String*>"),
  89249. UnmodifiableMapView_of_legacy_String_and_legacy_Value: findType("UnmodifiableMapView<String*,Value*>"),
  89250. UnmodifiableMapView_of_legacy_String_and_legacy_Value_2: findType("UnmodifiableMapView<String*,Value0*>"),
  89251. UnmodifiableMapView_of_legacy_Uri_and_legacy_StylesheetNode: findType("UnmodifiableMapView<Uri*,StylesheetNode*>"),
  89252. UnmodifiableSetView_legacy_String: findType("UnmodifiableSetView<String*>"),
  89253. UnmodifiableSetView_legacy_StylesheetNode: findType("UnmodifiableSetView<StylesheetNode*>"),
  89254. UnprefixedMapView_legacy_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue*>"),
  89255. UnprefixedMapView_legacy_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0*>"),
  89256. Uri: findType("Uri"),
  89257. UserDefinedCallable_legacy_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment*>"),
  89258. UserDefinedCallable_legacy_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0*>"),
  89259. UserDefinedCallable_legacy_Environment: findType("UserDefinedCallable<Environment*>"),
  89260. UserDefinedCallable_legacy_Environment_2: findType("UserDefinedCallable0<Environment0*>"),
  89261. WhereIterable_String: findType("WhereIterable<String>"),
  89262. WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent*>*>*>"),
  89263. WhereIterable_legacy_List_legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0*>*>*>"),
  89264. WhereIterable_legacy_String: findType("WhereIterable<String*>"),
  89265. WhereTypeIterable_legacy_PseudoSelector: findType("WhereTypeIterable<PseudoSelector*>"),
  89266. WhereTypeIterable_legacy_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0*>"),
  89267. _AsyncCompleter_legacy_Object: findType("_AsyncCompleter<Object*>"),
  89268. _AsyncCompleter_legacy_Stream_legacy_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent*>*>"),
  89269. _AsyncCompleter_legacy_String: findType("_AsyncCompleter<String*>"),
  89270. _CompleterStream_legacy_WatchEvent: findType("_CompleterStream<WatchEvent*>"),
  89271. _Future_bool: findType("_Future<bool>"),
  89272. _Future_dynamic: findType("_Future<@>"),
  89273. _Future_int: findType("_Future<int>"),
  89274. _Future_legacy_Object: findType("_Future<Object*>"),
  89275. _Future_legacy_Stream_legacy_WatchEvent: findType("_Future<Stream<WatchEvent*>*>"),
  89276. _Future_legacy_String: findType("_Future<String*>"),
  89277. _Future_void: findType("_Future<~>"),
  89278. _LinkedIdentityHashSet_legacy_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector*>"),
  89279. _LinkedIdentityHashSet_legacy_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0*>"),
  89280. _LinkedIdentityHashSet_legacy_Extension: findType("_LinkedIdentityHashSet<Extension*>"),
  89281. _LinkedIdentityHashSet_legacy_Extension_2: findType("_LinkedIdentityHashSet<Extension0*>"),
  89282. bool: findType("bool"),
  89283. double: findType("double"),
  89284. dynamic: findType("@"),
  89285. dynamic_Function_Object: findType("@(Object)"),
  89286. dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
  89287. int: findType("int"),
  89288. legacy_ArgParser: findType("ArgParser*"),
  89289. legacy_Argument: findType("Argument*"),
  89290. legacy_ArgumentDeclaration: findType("ArgumentDeclaration*"),
  89291. legacy_ArgumentDeclaration_2: findType("ArgumentDeclaration0*"),
  89292. legacy_Argument_2: findType("Argument0*"),
  89293. legacy_AstNode: findType("AstNode*"),
  89294. legacy_AstNode_2: findType("AstNode0*"),
  89295. legacy_AsyncBuiltInCallable: findType("AsyncBuiltInCallable*"),
  89296. legacy_AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0*"),
  89297. legacy_AsyncCallable: findType("AsyncCallable*"),
  89298. legacy_AsyncCallable_2: findType("AsyncCallable0*"),
  89299. legacy_BuiltInCallable: findType("BuiltInCallable*"),
  89300. legacy_BuiltInCallable_2: findType("BuiltInCallable0*"),
  89301. legacy_Callable: findType("Callable*"),
  89302. legacy_Callable_2: findType("Callable0*"),
  89303. legacy_ChangeType: findType("ChangeType*"),
  89304. legacy_Combinator: findType("Combinator*"),
  89305. legacy_Combinator_2: findType("Combinator0*"),
  89306. legacy_Comparable_dynamic: findType("Comparable<@>*"),
  89307. legacy_CompileResult: findType("CompileResult*"),
  89308. legacy_CompileResult_2: findType("CompileResult0*"),
  89309. legacy_ComplexSelector: findType("ComplexSelector*"),
  89310. legacy_ComplexSelectorComponent: findType("ComplexSelectorComponent*"),
  89311. legacy_ComplexSelectorComponent_2: findType("ComplexSelectorComponent0*"),
  89312. legacy_ComplexSelector_2: findType("ComplexSelector0*"),
  89313. legacy_CompoundSelector: findType("CompoundSelector*"),
  89314. legacy_CompoundSelector_2: findType("CompoundSelector0*"),
  89315. legacy_Configuration: findType("Configuration*"),
  89316. legacy_Configuration_2: findType("Configuration0*"),
  89317. legacy_ConfiguredValue: findType("ConfiguredValue*"),
  89318. legacy_ConfiguredValue_2: findType("ConfiguredValue0*"),
  89319. legacy_ConfiguredVariable: findType("ConfiguredVariable*"),
  89320. legacy_ConfiguredVariable_2: findType("ConfiguredVariable0*"),
  89321. legacy_CssAtRule: findType("CssAtRule*"),
  89322. legacy_CssAtRule_2: findType("CssAtRule0*"),
  89323. legacy_CssComment: findType("CssComment*"),
  89324. legacy_CssComment_2: findType("CssComment0*"),
  89325. legacy_CssImport: findType("CssImport*"),
  89326. legacy_CssImport_2: findType("CssImport0*"),
  89327. legacy_CssMediaQuery: findType("CssMediaQuery*"),
  89328. legacy_CssMediaQuery_2: findType("CssMediaQuery0*"),
  89329. legacy_CssMediaRule: findType("CssMediaRule*"),
  89330. legacy_CssMediaRule_2: findType("CssMediaRule0*"),
  89331. legacy_CssParentNode: findType("CssParentNode*"),
  89332. legacy_CssParentNode_2: findType("CssParentNode0*"),
  89333. legacy_CssStyleRule: findType("CssStyleRule*"),
  89334. legacy_CssStyleRule_2: findType("CssStyleRule0*"),
  89335. legacy_CssStylesheet: findType("CssStylesheet*"),
  89336. legacy_CssStylesheet_2: findType("CssStylesheet0*"),
  89337. legacy_CssSupportsRule: findType("CssSupportsRule*"),
  89338. legacy_CssSupportsRule_2: findType("CssSupportsRule0*"),
  89339. legacy_CssValue_legacy_SelectorList: findType("CssValue<SelectorList*>*"),
  89340. legacy_CssValue_legacy_SelectorList_2: findType("CssValue0<SelectorList0*>*"),
  89341. legacy_CssValue_legacy_String: findType("CssValue<String*>*"),
  89342. legacy_CssValue_legacy_String_2: findType("CssValue0<String*>*"),
  89343. legacy_DateTime: findType("DateTime*"),
  89344. legacy_EvaluateResult: findType("EvaluateResult*"),
  89345. legacy_EvaluateResult_2: findType("EvaluateResult0*"),
  89346. legacy_Exception: findType("Exception*"),
  89347. legacy_Expression: findType("Expression*"),
  89348. legacy_Expression_2: findType("Expression0*"),
  89349. legacy_Extension: findType("Extension*"),
  89350. legacy_Extension_2: findType("Extension0*"),
  89351. legacy_FileLocation: findType("FileLocation*"),
  89352. legacy_FileSpan: findType("FileSpan*"),
  89353. legacy_FormatException: findType("FormatException*"),
  89354. legacy_Frame: findType("Frame*"),
  89355. legacy_Function: findType("Function*"),
  89356. legacy_FutureOr_legacy_EvaluateResult: findType("EvaluateResult*/*"),
  89357. legacy_FutureOr_legacy_EvaluateResult_2: findType("EvaluateResult0*/*"),
  89358. legacy_Future_dynamic: findType("Future<@>*"),
  89359. legacy_Future_void: findType("Future<~>*"),
  89360. legacy_IfClause: findType("IfClause*"),
  89361. legacy_IfClause_2: findType("IfClause0*"),
  89362. legacy_Import: findType("Import*"),
  89363. legacy_Import_2: findType("Import0*"),
  89364. legacy_ImporterResult: findType("ImporterResult0*"),
  89365. legacy_ImporterResult_2: findType("ImporterResult*"),
  89366. legacy_Interpolation: findType("Interpolation*"),
  89367. legacy_InterpolationBuffer: findType("InterpolationBuffer*"),
  89368. legacy_InterpolationBuffer_2: findType("InterpolationBuffer0*"),
  89369. legacy_Interpolation_2: findType("Interpolation0*"),
  89370. legacy_Iterable_legacy_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent*>*"),
  89371. legacy_Iterable_legacy_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0*>*"),
  89372. legacy_JSFunction: findType("JSFunction0*"),
  89373. legacy_JsError: findType("JsError*"),
  89374. legacy_JsSystemError: findType("JsSystemError*"),
  89375. legacy_List_dynamic: findType("List<@>*"),
  89376. legacy_List_legacy_ComplexSelector: findType("List<ComplexSelector*>*"),
  89377. legacy_List_legacy_ComplexSelectorComponent: findType("List<ComplexSelectorComponent*>*"),
  89378. legacy_List_legacy_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0*>*"),
  89379. legacy_List_legacy_ComplexSelector_2: findType("List<ComplexSelector0*>*"),
  89380. legacy_List_legacy_CssMediaQuery: findType("List<CssMediaQuery*>*"),
  89381. legacy_List_legacy_CssMediaQuery_2: findType("List<CssMediaQuery0*>*"),
  89382. legacy_List_legacy_Extender: findType("List<Extender*>*"),
  89383. legacy_List_legacy_Extender_2: findType("List<Extender0*>*"),
  89384. legacy_List_legacy_Extension: findType("List<Extension*>*"),
  89385. legacy_List_legacy_Extension_2: findType("List<Extension0*>*"),
  89386. legacy_List_legacy_List_legacy_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent*>*>*"),
  89387. legacy_List_legacy_List_legacy_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0*>*>*"),
  89388. legacy_List_legacy_Module_legacy_AsyncCallable: findType("List<Module<AsyncCallable*>*>*"),
  89389. legacy_List_legacy_Module_legacy_AsyncCallable_2: findType("List<Module0<AsyncCallable0*>*>*"),
  89390. legacy_List_legacy_Module_legacy_Callable: findType("List<Module<Callable*>*>*"),
  89391. legacy_List_legacy_Module_legacy_Callable_2: findType("List<Module0<Callable0*>*>*"),
  89392. legacy_List_legacy_Object: findType("List<Object*>*"),
  89393. legacy_List_legacy_String: findType("List<String*>*"),
  89394. legacy_List_legacy_Value: findType("List<Value*>*"),
  89395. legacy_List_legacy_Value_2: findType("List<Value0*>*"),
  89396. legacy_List_legacy_WatchEvent: findType("List<WatchEvent*>*"),
  89397. legacy_List_legacy_int: findType("List<int*>*"),
  89398. legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension: findType("Map<ComplexSelector*,Extension*>*"),
  89399. legacy_Map_of_legacy_ComplexSelector_and_legacy_Extension_2: findType("Map<ComplexSelector0*,Extension0*>*"),
  89400. legacy_MediaQuerySuccessfulMergeResult: findType("MediaQuerySuccessfulMergeResult*"),
  89401. legacy_MediaQuerySuccessfulMergeResult_2: findType("MediaQuerySuccessfulMergeResult0*"),
  89402. legacy_MixinRule: findType("MixinRule*"),
  89403. legacy_MixinRule_2: findType("MixinRule0*"),
  89404. legacy_ModifiableCssAtRule: findType("ModifiableCssAtRule*"),
  89405. legacy_ModifiableCssAtRule_2: findType("ModifiableCssAtRule0*"),
  89406. legacy_ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock*"),
  89407. legacy_ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0*"),
  89408. legacy_ModifiableCssMediaRule: findType("ModifiableCssMediaRule*"),
  89409. legacy_ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0*"),
  89410. legacy_ModifiableCssParentNode: findType("ModifiableCssParentNode*"),
  89411. legacy_ModifiableCssParentNode_2: findType("ModifiableCssParentNode0*"),
  89412. legacy_ModifiableCssStyleRule: findType("ModifiableCssStyleRule*"),
  89413. legacy_ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0*"),
  89414. legacy_ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule*"),
  89415. legacy_ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0*"),
  89416. legacy_ModifiableCssValue_legacy_SelectorList: findType("ModifiableCssValue<SelectorList*>*"),
  89417. legacy_ModifiableCssValue_legacy_SelectorList_2: findType("ModifiableCssValue0<SelectorList0*>*"),
  89418. legacy_Module_legacy_AsyncCallable: findType("Module<AsyncCallable*>*"),
  89419. legacy_Module_legacy_AsyncCallable_2: findType("Module0<AsyncCallable0*>*"),
  89420. legacy_Module_legacy_Callable: findType("Module<Callable*>*"),
  89421. legacy_Module_legacy_Callable_2: findType("Module0<Callable0*>*"),
  89422. legacy_Never: findType("0&*"),
  89423. legacy_NodeImporterResult: findType("NodeImporterResult0*"),
  89424. legacy_Object: findType("Object*"),
  89425. legacy_Option: findType("Option*"),
  89426. legacy_ParentSelector: findType("ParentSelector*"),
  89427. legacy_ParentSelector_2: findType("ParentSelector0*"),
  89428. legacy_PseudoSelector: findType("PseudoSelector*"),
  89429. legacy_PseudoSelector_2: findType("PseudoSelector0*"),
  89430. legacy_RangeError: findType("RangeError*"),
  89431. legacy_RenderResult: findType("RenderResult*"),
  89432. legacy_Result_legacy_String: findType("Result<String*>*"),
  89433. legacy_SassArgumentList: findType("SassArgumentList*"),
  89434. legacy_SassArgumentList_2: findType("SassArgumentList0*"),
  89435. legacy_SassBoolean: findType("SassBoolean*"),
  89436. legacy_SassBoolean_2: findType("SassBoolean0*"),
  89437. legacy_SassColor: findType("SassColor*"),
  89438. legacy_SassColor_2: findType("SassColor0*"),
  89439. legacy_SassList: findType("SassList*"),
  89440. legacy_SassList_2: findType("SassList0*"),
  89441. legacy_SassMap: findType("SassMap*"),
  89442. legacy_SassMap_2: findType("SassMap0*"),
  89443. legacy_SassNull: findType("SassNull*"),
  89444. legacy_SassNull_2: findType("SassNull0*"),
  89445. legacy_SassNumber: findType("SassNumber*"),
  89446. legacy_SassNumber_2: findType("SassNumber0*"),
  89447. legacy_SassRuntimeException: findType("SassRuntimeException*"),
  89448. legacy_SassRuntimeException_2: findType("SassRuntimeException0*"),
  89449. legacy_SassString: findType("SassString*"),
  89450. legacy_SassString_2: findType("SassString0*"),
  89451. legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList: findType("Set<ModifiableCssValue<SelectorList*>*>*"),
  89452. legacy_Set_legacy_ModifiableCssValue_legacy_SelectorList_2: findType("Set<ModifiableCssValue0<SelectorList0*>*>*"),
  89453. legacy_SimpleSelector: findType("SimpleSelector*"),
  89454. legacy_SimpleSelector_2: findType("SimpleSelector0*"),
  89455. legacy_SourceFile: findType("SourceFile*"),
  89456. legacy_SourceLocation: findType("SourceLocation*"),
  89457. legacy_SourceSpan: findType("SourceSpan*"),
  89458. legacy_SourceSpanFormatException: findType("SourceSpanFormatException*"),
  89459. legacy_SourceSpanWithContext: findType("SourceSpanWithContext*"),
  89460. legacy_Statement: findType("Statement*"),
  89461. legacy_Statement_2: findType("Statement0*"),
  89462. legacy_StaticImport: findType("StaticImport*"),
  89463. legacy_StaticImport_2: findType("StaticImport0*"),
  89464. legacy_StreamSubscription_legacy_WatchEvent: findType("StreamSubscription<WatchEvent*>*"),
  89465. legacy_Stream_legacy_WatchEvent: findType("Stream<WatchEvent*>*"),
  89466. legacy_String: findType("String*"),
  89467. legacy_Stylesheet: findType("Stylesheet0*"),
  89468. legacy_StylesheetNode: findType("StylesheetNode*"),
  89469. legacy_Stylesheet_2: findType("Stylesheet*"),
  89470. legacy_Trace: findType("Trace*"),
  89471. legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet: findType("Tuple2<AsyncImporter*,Stylesheet*>*"),
  89472. legacy_Tuple2_of_legacy_AsyncImporter_and_legacy_Stylesheet_2: findType("Tuple2<AsyncImporter0*,Stylesheet0*>*"),
  89473. legacy_Tuple2_of_legacy_Expression_and_legacy_Expression: findType("Tuple2<Expression*,Expression*>*"),
  89474. legacy_Tuple2_of_legacy_Expression_and_legacy_Expression_2: findType("Tuple2<Expression0*,Expression0*>*"),
  89475. legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression: findType("Tuple2<List<Expression*>*,Map<String*,Expression*>*>*"),
  89476. legacy_Tuple2_of_legacy_List_legacy_Expression_and_legacy_Map_of_legacy_String_and_legacy_Expression_2: findType("Tuple2<List<Expression0*>*,Map<String*,Expression0*>*>*"),
  89477. legacy_Tuple2_of_legacy_String_and_legacy_String: findType("Tuple2<String*,String*>*"),
  89478. legacy_Tuple2_of_legacy_Uri_and_legacy_bool: findType("Tuple2<Uri*,bool*>*"),
  89479. legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<AsyncImporter0*,Uri*,Uri*>*"),
  89480. legacy_Tuple3_of_legacy_AsyncImporter_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<AsyncImporter*,Uri*,Uri*>*"),
  89481. legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri: findType("Tuple3<Importer*,Uri*,Uri*>*"),
  89482. legacy_Tuple3_of_legacy_Importer_and_legacy_Uri_and_legacy_Uri_2: findType("Tuple3<Importer0*,Uri*,Uri*>*"),
  89483. legacy_Uri: findType("Uri*"),
  89484. legacy_UseRule: findType("UseRule*"),
  89485. legacy_UserDefinedCallable_legacy_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment*>*"),
  89486. legacy_UserDefinedCallable_legacy_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0*>*"),
  89487. legacy_UserDefinedCallable_legacy_Environment: findType("UserDefinedCallable<Environment*>*"),
  89488. legacy_UserDefinedCallable_legacy_Environment_2: findType("UserDefinedCallable0<Environment0*>*"),
  89489. legacy_Value: findType("Value*"),
  89490. legacy_Value_2: findType("Value0*"),
  89491. legacy_VariableDeclaration: findType("VariableDeclaration*"),
  89492. legacy_VariableDeclaration_2: findType("VariableDeclaration0*"),
  89493. legacy_WatchEvent: findType("WatchEvent*"),
  89494. legacy__ArgumentResults: findType("_ArgumentResults0*"),
  89495. legacy__ArgumentResults_2: findType("_ArgumentResults2*"),
  89496. legacy__EventRequest_dynamic: findType("_EventRequest<@>*"),
  89497. legacy__Highlight: findType("_Highlight*"),
  89498. legacy__MapEntry: findType("_MapEntry*"),
  89499. legacy_bool: findType("bool*"),
  89500. legacy_int: findType("int*"),
  89501. legacy_legacy_Object_Function: findType("Object*()*"),
  89502. legacy_legacy_Value_Function_legacy_List_legacy_Value: findType("Value*(List<Value*>*)*"),
  89503. legacy_legacy_Value_Function_legacy_List_legacy_Value_2: findType("Value0*(List<Value0*>*)*"),
  89504. nullable_Future_Null: findType("Future<Null>?"),
  89505. nullable_Object: findType("Object?"),
  89506. num: findType("num"),
  89507. void: findType("~"),
  89508. void_Function_Object: findType("~(Object)"),
  89509. void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
  89510. };
  89511. })();
  89512. (function constants() {
  89513. var makeConstList = hunkHelpers.makeConstList;
  89514. C.Interceptor_methods = J.Interceptor.prototype;
  89515. C.JSArray_methods = J.JSArray.prototype;
  89516. C.JSBool_methods = J.JSBool.prototype;
  89517. C.JSDouble_methods = J.JSDouble.prototype;
  89518. C.JSInt_methods = J.JSInt.prototype;
  89519. C.JSNull_methods = J.JSNull.prototype;
  89520. C.JSNumber_methods = J.JSNumber.prototype;
  89521. C.JSString_methods = J.JSString.prototype;
  89522. C.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
  89523. C.NativeUint32List_methods = H.NativeUint32List.prototype;
  89524. C.NativeUint8List_methods = H.NativeUint8List.prototype;
  89525. C.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
  89526. C.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
  89527. C.AsciiEncoder_127 = new P.AsciiEncoder(127);
  89528. C.C_EmptyUnmodifiableSet1 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<String*>"));
  89529. C.AtRootQuery_UsS = new V.AtRootQuery(false, C.C_EmptyUnmodifiableSet1, false, true);
  89530. C.AtRootQuery_UsS0 = new V.AtRootQuery0(false, C.C_EmptyUnmodifiableSet1, false, true);
  89531. C.AttributeOperator_4L5 = new N.AttributeOperator("^=");
  89532. C.AttributeOperator_4L50 = new N.AttributeOperator0("^=");
  89533. C.AttributeOperator_AuK = new N.AttributeOperator("|=");
  89534. C.AttributeOperator_AuK0 = new N.AttributeOperator0("|=");
  89535. C.AttributeOperator_fz1 = new N.AttributeOperator("~=");
  89536. C.AttributeOperator_fz10 = new N.AttributeOperator0("~=");
  89537. C.AttributeOperator_gqZ = new N.AttributeOperator("*=");
  89538. C.AttributeOperator_gqZ0 = new N.AttributeOperator0("*=");
  89539. C.AttributeOperator_mOX = new N.AttributeOperator("$=");
  89540. C.AttributeOperator_mOX0 = new N.AttributeOperator0("$=");
  89541. C.AttributeOperator_sEs = new N.AttributeOperator("=");
  89542. C.AttributeOperator_sEs0 = new N.AttributeOperator0("=");
  89543. C.BinaryOperator_1da = new V.BinaryOperator("greater than or equals", ">=", 4);
  89544. C.BinaryOperator_1da0 = new V.BinaryOperator0("greater than or equals", ">=", 4);
  89545. C.BinaryOperator_2ad = new V.BinaryOperator("modulo", "%", 6);
  89546. C.BinaryOperator_2ad0 = new V.BinaryOperator0("modulo", "%", 6);
  89547. C.BinaryOperator_33h = new V.BinaryOperator("less than or equals", "<=", 4);
  89548. C.BinaryOperator_33h0 = new V.BinaryOperator0("less than or equals", "<=", 4);
  89549. C.BinaryOperator_8qt = new V.BinaryOperator("less than", "<", 4);
  89550. C.BinaryOperator_8qt0 = new V.BinaryOperator0("less than", "<", 4);
  89551. C.BinaryOperator_AcR = new V.BinaryOperator("greater than", ">", 4);
  89552. C.BinaryOperator_AcR0 = new V.BinaryOperator("plus", "+", 5);
  89553. C.BinaryOperator_AcR1 = new V.BinaryOperator0("greater than", ">", 4);
  89554. C.BinaryOperator_AcR2 = new V.BinaryOperator0("plus", "+", 5);
  89555. C.BinaryOperator_O1M = new V.BinaryOperator("times", "*", 6);
  89556. C.BinaryOperator_O1M0 = new V.BinaryOperator0("times", "*", 6);
  89557. C.BinaryOperator_RTB = new V.BinaryOperator("divided by", "/", 6);
  89558. C.BinaryOperator_RTB0 = new V.BinaryOperator0("divided by", "/", 6);
  89559. C.BinaryOperator_YlX = new V.BinaryOperator("equals", "==", 3);
  89560. C.BinaryOperator_YlX0 = new V.BinaryOperator0("equals", "==", 3);
  89561. C.BinaryOperator_and_and_2 = new V.BinaryOperator("and", "and", 2);
  89562. C.BinaryOperator_and_and_20 = new V.BinaryOperator0("and", "and", 2);
  89563. C.BinaryOperator_i5H = new V.BinaryOperator("not equals", "!=", 3);
  89564. C.BinaryOperator_i5H0 = new V.BinaryOperator0("not equals", "!=", 3);
  89565. C.BinaryOperator_iyO = new V.BinaryOperator("minus", "-", 5);
  89566. C.BinaryOperator_iyO0 = new V.BinaryOperator0("minus", "-", 5);
  89567. C.BinaryOperator_kjl = new V.BinaryOperator("single equals", "=", 0);
  89568. C.BinaryOperator_kjl0 = new V.BinaryOperator0("single equals", "=", 0);
  89569. C.BinaryOperator_or_or_1 = new V.BinaryOperator("or", "or", 1);
  89570. C.BinaryOperator_or_or_10 = new V.BinaryOperator0("or", "or", 1);
  89571. C.C_AsciiCodec = new P.AsciiCodec();
  89572. C.C_AsciiGlyphSet = new A.AsciiGlyphSet();
  89573. C.C_Base64Encoder = new P.Base64Encoder();
  89574. C.C_Base64Codec = new P.Base64Codec();
  89575. C.C_DefaultEquality = new U.DefaultEquality();
  89576. C.C_EmptyExtender = new T.EmptyExtender();
  89577. C.C_EmptyExtender0 = new T.EmptyExtender0();
  89578. C.C_EmptyIterator = new H.EmptyIterator();
  89579. C.C_EmptyUnmodifiableSet = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector*>"));
  89580. C.C_EmptyUnmodifiableSet0 = new O.EmptyUnmodifiableSet(H.findType("EmptyUnmodifiableSet<SimpleSelector0*>"));
  89581. C.C_IterableEquality = new U.IterableEquality();
  89582. C.C_JS_CONST = function getTagFallback(o) {
  89583. var s = Object.prototype.toString.call(o);
  89584. return s.substring(8, s.length - 1);
  89585. };
  89586. C.C_JS_CONST0 = function() {
  89587. var toStringFunction = Object.prototype.toString;
  89588. function getTag(o) {
  89589. var s = toStringFunction.call(o);
  89590. return s.substring(8, s.length - 1);
  89591. }
  89592. function getUnknownTag(object, tag) {
  89593. if (/^HTML[A-Z].*Element$/.test(tag)) {
  89594. var name = toStringFunction.call(object);
  89595. if (name == "[object Object]") return null;
  89596. return "HTMLElement";
  89597. }
  89598. }
  89599. function getUnknownTagGenericBrowser(object, tag) {
  89600. if (self.HTMLElement && object instanceof HTMLElement) return "HTMLElement";
  89601. return getUnknownTag(object, tag);
  89602. }
  89603. function prototypeForTag(tag) {
  89604. if (typeof window == "undefined") return null;
  89605. if (typeof window[tag] == "undefined") return null;
  89606. var constructor = window[tag];
  89607. if (typeof constructor != "function") return null;
  89608. return constructor.prototype;
  89609. }
  89610. function discriminator(tag) { return null; }
  89611. var isBrowser = typeof navigator == "object";
  89612. return {
  89613. getTag: getTag,
  89614. getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
  89615. prototypeForTag: prototypeForTag,
  89616. discriminator: discriminator };
  89617. };
  89618. C.C_JS_CONST6 = function(getTagFallback) {
  89619. return function(hooks) {
  89620. if (typeof navigator != "object") return hooks;
  89621. var ua = navigator.userAgent;
  89622. if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
  89623. if (ua.indexOf("Chrome") >= 0) {
  89624. function confirm(p) {
  89625. return typeof window == "object" && window[p] && window[p].name == p;
  89626. }
  89627. if (confirm("Window") && confirm("HTMLElement")) return hooks;
  89628. }
  89629. hooks.getTag = getTagFallback;
  89630. };
  89631. };
  89632. C.C_JS_CONST1 = function(hooks) {
  89633. if (typeof dartExperimentalFixupGetTag != "function") return hooks;
  89634. hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
  89635. };
  89636. C.C_JS_CONST2 = function(hooks) {
  89637. var getTag = hooks.getTag;
  89638. var prototypeForTag = hooks.prototypeForTag;
  89639. function getTagFixed(o) {
  89640. var tag = getTag(o);
  89641. if (tag == "Document") {
  89642. if (!!o.xmlVersion) return "!Document";
  89643. return "!HTMLDocument";
  89644. }
  89645. return tag;
  89646. }
  89647. function prototypeForTagFixed(tag) {
  89648. if (tag == "Document") return null;
  89649. return prototypeForTag(tag);
  89650. }
  89651. hooks.getTag = getTagFixed;
  89652. hooks.prototypeForTag = prototypeForTagFixed;
  89653. };
  89654. C.C_JS_CONST5 = function(hooks) {
  89655. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  89656. if (userAgent.indexOf("Firefox") == -1) return hooks;
  89657. var getTag = hooks.getTag;
  89658. var quickMap = {
  89659. "BeforeUnloadEvent": "Event",
  89660. "DataTransfer": "Clipboard",
  89661. "GeoGeolocation": "Geolocation",
  89662. "Location": "!Location",
  89663. "WorkerMessageEvent": "MessageEvent",
  89664. "XMLDocument": "!Document"};
  89665. function getTagFirefox(o) {
  89666. var tag = getTag(o);
  89667. return quickMap[tag] || tag;
  89668. }
  89669. hooks.getTag = getTagFirefox;
  89670. };
  89671. C.C_JS_CONST4 = function(hooks) {
  89672. var userAgent = typeof navigator == "object" ? navigator.userAgent : "";
  89673. if (userAgent.indexOf("Trident/") == -1) return hooks;
  89674. var getTag = hooks.getTag;
  89675. var quickMap = {
  89676. "BeforeUnloadEvent": "Event",
  89677. "DataTransfer": "Clipboard",
  89678. "HTMLDDElement": "HTMLElement",
  89679. "HTMLDTElement": "HTMLElement",
  89680. "HTMLPhraseElement": "HTMLElement",
  89681. "Position": "Geoposition"
  89682. };
  89683. function getTagIE(o) {
  89684. var tag = getTag(o);
  89685. var newTag = quickMap[tag];
  89686. if (newTag) return newTag;
  89687. if (tag == "Object") {
  89688. if (window.DataView && (o instanceof window.DataView)) return "DataView";
  89689. }
  89690. return tag;
  89691. }
  89692. function prototypeForTagIE(tag) {
  89693. var constructor = window[tag];
  89694. if (constructor == null) return null;
  89695. return constructor.prototype;
  89696. }
  89697. hooks.getTag = getTagIE;
  89698. hooks.prototypeForTag = prototypeForTagIE;
  89699. };
  89700. C.C_JS_CONST3 = function(hooks) { return hooks; }
  89701. ;
  89702. C.C_JsonCodec = new P.JsonCodec();
  89703. C.C_LineFeed = new N.LineFeed();
  89704. C.C_ListEquality = new U.ListEquality();
  89705. C.C_MapEquality = new U.MapEquality();
  89706. C.C_OutOfMemoryError = new P.OutOfMemoryError();
  89707. C.C_SassNull0 = new O.SassNull();
  89708. C.C_SassNull = new O.SassNull0();
  89709. C.C_StderrLogger = new S.StderrLogger0();
  89710. C.C_UnicodeGlyphSet = new K.UnicodeGlyphSet();
  89711. C.C_Utf8Codec = new P.Utf8Codec();
  89712. C.C_Utf8Encoder = new P.Utf8Encoder();
  89713. C.C__DelayedDone = new P._DelayedDone();
  89714. C.C__JSRandom = new P._JSRandom();
  89715. C.C__Required = new H._Required();
  89716. C.C__RootZone = new P._RootZone();
  89717. C.ChangeType_add = new E.ChangeType("add");
  89718. C.ChangeType_modify = new E.ChangeType("modify");
  89719. C.ChangeType_remove = new E.ChangeType("remove");
  89720. C.Combinator_CzM = new S.Combinator("~");
  89721. C.Combinator_CzM0 = new S.Combinator0("~");
  89722. C.Combinator_sgq = new S.Combinator(">");
  89723. C.Combinator_sgq0 = new S.Combinator0(">");
  89724. C.Combinator_uzg = new S.Combinator("+");
  89725. C.Combinator_uzg0 = new S.Combinator0("+");
  89726. C.List_empty = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_String);
  89727. C.Map_empty12 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,ConfiguredValue*>"));
  89728. C.Configuration_Map_empty_null_true = new A.Configuration(C.Map_empty12, null, true);
  89729. C.Map_empty13 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,ConfiguredValue0*>"));
  89730. C.Configuration_Map_empty_null_true0 = new A.Configuration0(C.Map_empty13, null, true);
  89731. C.Duration_0 = new P.Duration(0);
  89732. C.ExtendMode_allTargets = new L.ExtendMode("allTargets");
  89733. C.ExtendMode_allTargets0 = new L.ExtendMode0("allTargets");
  89734. C.ExtendMode_normal = new L.ExtendMode("normal");
  89735. C.ExtendMode_normal0 = new L.ExtendMode0("normal");
  89736. C.ExtendMode_replace = new L.ExtendMode("replace");
  89737. C.ExtendMode_replace0 = new L.ExtendMode0("replace");
  89738. C.JsonEncoder_null = new P.JsonEncoder(null);
  89739. C.LineFeed_D6m = new N.LineFeed0("lf", "\n");
  89740. C.LineFeed_Mss = new N.LineFeed0("crlf", "\r\n");
  89741. C.LineFeed_a1Y = new N.LineFeed0("lfcr", "\n\r");
  89742. C.LineFeed_kMT = new N.LineFeed0("cr", "\r");
  89743. C.ListSeparator_comma = new D.ListSeparator("comma");
  89744. C.ListSeparator_comma0 = new D.ListSeparator0("comma");
  89745. C.ListSeparator_space = new D.ListSeparator("space");
  89746. C.ListSeparator_space0 = new D.ListSeparator0("space");
  89747. C.ListSeparator_undecided = new D.ListSeparator("undecided");
  89748. C.ListSeparator_undecided0 = new D.ListSeparator0("undecided");
  89749. C.List_2Vk = H.setRuntimeTypeInfo(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_legacy_int);
  89750. C.List_CVk = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89751. C.List_JYB = H.setRuntimeTypeInfo(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_legacy_int);
  89752. C.List_empty9 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Null>"));
  89753. C.List_empty22 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_dynamic);
  89754. C.List_empty8 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Argument);
  89755. C.List_empty20 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Argument_2);
  89756. C.List_empty21 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_AsyncCallable);
  89757. C.List_empty23 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<AsyncImporter0*>"));
  89758. C.List_empty4 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ComplexSelector);
  89759. C.List_empty15 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ComplexSelector_2);
  89760. C.List_empty6 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ConfiguredVariable);
  89761. C.List_empty18 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_ConfiguredVariable_2);
  89762. C.List_empty0 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_CssNode);
  89763. C.List_empty12 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_CssNode_2);
  89764. C.List_empty7 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Expression);
  89765. C.List_empty19 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Expression_2);
  89766. C.List_empty2 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Extension);
  89767. C.List_empty13 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Extension_2);
  89768. C.List_empty10 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Importer);
  89769. C.List_empty17 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Importer0*>"));
  89770. C.List_empty3 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module<Null>*>"));
  89771. C.List_empty14 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Module0<Null>*>"));
  89772. C.List_empty11 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Statement);
  89773. C.List_empty5 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Value);
  89774. C.List_empty16 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Value_2);
  89775. C.List_empty1 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_int);
  89776. C.List_gRj = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89777. C.List_nxB = H.setRuntimeTypeInfo(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89778. C.List_qFt = H.setRuntimeTypeInfo(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_legacy_int);
  89779. C.List_qNA = H.setRuntimeTypeInfo(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89780. C.List_qg40 = H.setRuntimeTypeInfo(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89781. C.List_qg4 = H.setRuntimeTypeInfo(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_legacy_int);
  89782. C.List_K2O = H.setRuntimeTypeInfo(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px", "deg", "grad", "rad", "turn", "s", "ms", "Hz", "kHz", "dpi", "dpcm", "dppx"]), type$.JSArray_legacy_String);
  89783. C.List_aha = H.setRuntimeTypeInfo(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px"]), type$.JSArray_legacy_String);
  89784. C.Map_ahsJO = new H.ConstantStringMap(7, {in: 1, cm: 0.39370078740157477, pc: 0.16666666666666666, mm: 0.03937007874015748, q: 0.00984251968503937, pt: 0.013888888888888888, px: 0.010416666666666666}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89785. C.Map_ahM6L = new H.ConstantStringMap(7, {in: 2.54, cm: 1, pc: 0.42333333333333334, mm: 0.1, q: 0.025, pt: 0.035277777777777776, px: 0.026458333333333334}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89786. C.Map_ahNsa = new H.ConstantStringMap(7, {in: 6, cm: 2.3622047244094486, pc: 1, mm: 0.2362204724409449, q: 0.05905511811023623, pt: 0.08333333333333333, px: 0.0625}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89787. C.Map_ahPSt = new H.ConstantStringMap(7, {in: 25.4, cm: 10, pc: 4.233333333333333, mm: 1, q: 0.25, pt: 0.35277777777777775, px: 0.26458333333333334}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89788. C.Map_ahgya = new H.ConstantStringMap(7, {in: 101.6, cm: 40, pc: 16.933333333333334, mm: 4, q: 1, pt: 1.411111111111111, px: 1.0583333333333333}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89789. C.Map_ahGvh = new H.ConstantStringMap(7, {in: 72, cm: 28.346456692913385, pc: 12, mm: 2.834645669291339, q: 0.7086614173228347, pt: 1, px: 0.75}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89790. C.Map_ahkuc = new H.ConstantStringMap(7, {in: 96, cm: 37.79527559055118, pc: 16, mm: 3.7795275590551185, q: 0.9448818897637796, pt: 1.3333333333333333, px: 1}, C.List_aha, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89791. C.List_deg_grad_rad_turn = H.setRuntimeTypeInfo(makeConstList(["deg", "grad", "rad", "turn"]), type$.JSArray_legacy_String);
  89792. C.Map_EGyvr = new H.ConstantStringMap(4, {deg: 1, grad: 0.9, rad: 57.29577951308232, turn: 360}, C.List_deg_grad_rad_turn, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89793. C.Map_EGfqB = new H.ConstantStringMap(4, {deg: 1.1111111111111112, grad: 1, rad: 63.66197723675813, turn: 400}, C.List_deg_grad_rad_turn, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89794. C.Map_EGswR = new H.ConstantStringMap(4, {deg: 0.017453292519943295, grad: 0.015707963267948967, rad: 1, turn: 6.283185307179586}, C.List_deg_grad_rad_turn, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89795. C.Map_EGY2F = new H.ConstantStringMap(4, {deg: 0.002777777777777778, grad: 0.0025, rad: 0.15915494309189535, turn: 1}, C.List_deg_grad_rad_turn, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89796. C.List_s_ms = H.setRuntimeTypeInfo(makeConstList(["s", "ms"]), type$.JSArray_legacy_String);
  89797. C.Map_ma2bi = new H.ConstantStringMap(2, {s: 1, ms: 0.001}, C.List_s_ms, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89798. C.Map_maDht = new H.ConstantStringMap(2, {s: 1000, ms: 1}, C.List_s_ms, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89799. C.List_Hz_kHz = H.setRuntimeTypeInfo(makeConstList(["Hz", "kHz"]), type$.JSArray_legacy_String);
  89800. C.Map_0IpUe = new H.ConstantStringMap(2, {Hz: 1, kHz: 1000}, C.List_Hz_kHz, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89801. C.Map_0IVs0 = new H.ConstantStringMap(2, {Hz: 0.001, kHz: 1}, C.List_Hz_kHz, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89802. C.List_dpi_dpcm_dppx = H.setRuntimeTypeInfo(makeConstList(["dpi", "dpcm", "dppx"]), type$.JSArray_legacy_String);
  89803. C.Map_H2OWd = new H.ConstantStringMap(3, {dpi: 1, dpcm: 2.54, dppx: 96}, C.List_dpi_dpcm_dppx, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89804. C.Map_H24em = new H.ConstantStringMap(3, {dpi: 0.39370078740157477, dpcm: 1, dppx: 37.79527559055118}, C.List_dpi_dpcm_dppx, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89805. C.Map_H25Om = new H.ConstantStringMap(3, {dpi: 0.010416666666666666, dpcm: 0.026458333333333334, dppx: 1}, C.List_dpi_dpcm_dppx, type$.ConstantStringMap_of_legacy_String_and_legacy_num);
  89806. C.Map_K2BWj = new H.ConstantStringMap(18, {in: C.Map_ahsJO, cm: C.Map_ahM6L, pc: C.Map_ahNsa, mm: C.Map_ahPSt, q: C.Map_ahgya, pt: C.Map_ahGvh, px: C.Map_ahkuc, deg: C.Map_EGyvr, grad: C.Map_EGfqB, rad: C.Map_EGswR, turn: C.Map_EGY2F, s: C.Map_ma2bi, ms: C.Map_maDht, Hz: C.Map_0IpUe, kHz: C.Map_0IVs0, dpi: C.Map_H2OWd, dpcm: C.Map_H24em, dppx: C.Map_H25Om}, C.List_K2O, H.findType("ConstantStringMap<String*,Map<String*,num*>*>"));
  89807. C.List_U8g = H.setRuntimeTypeInfo(makeConstList(["length", "angle", "time", "frequency", "pixel density"]), type$.JSArray_legacy_String);
  89808. C.Map_U8AHF = new H.ConstantStringMap(5, {length: C.List_aha, angle: C.List_deg_grad_rad_turn, time: C.List_s_ms, frequency: C.List_Hz_kHz, "pixel density": C.List_dpi_dpcm_dppx}, C.List_U8g, H.findType("ConstantStringMap<String*,List<String*>*>"));
  89809. C.Map_empty1 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,AstNode*>"));
  89810. C.Map_empty7 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,AstNode0*>"));
  89811. C.Map_empty3 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Expression*>"));
  89812. C.Map_empty9 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Expression0*>"));
  89813. C.Map_empty4 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module<AsyncCallable*>*>"));
  89814. C.Map_empty0 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module<Callable*>*>"));
  89815. C.Map_empty11 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module0<AsyncCallable0*>*>"));
  89816. C.Map_empty6 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Module0<Callable0*>*>"));
  89817. C.Map_empty = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,SourceFile*>"));
  89818. C.Map_empty5 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,String*>"));
  89819. C.Map_empty2 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Value*>"));
  89820. C.Map_empty8 = new H.ConstantStringMap(0, {}, C.List_empty, H.findType("ConstantStringMap<String*,Value0*>"));
  89821. C.List_empty24 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<Symbol0*>"));
  89822. C.Map_empty10 = new H.ConstantStringMap(0, {}, C.List_empty24, H.findType("ConstantStringMap<Symbol0*,@>"));
  89823. C.OptionType_YwU = new G.OptionType("OptionType.single");
  89824. C.OptionType_nMZ = new G.OptionType("OptionType.flag");
  89825. C.OptionType_qyr = new G.OptionType("OptionType.multiple");
  89826. C.OutputStyle_compressed = new N.OutputStyle("compressed");
  89827. C.OutputStyle_compressed0 = new N.OutputStyle0("compressed");
  89828. C.OutputStyle_expanded0 = new N.OutputStyle("expanded");
  89829. C.OutputStyle_expanded = new N.OutputStyle0("expanded");
  89830. C.SassBoolean_false0 = new Z.SassBoolean(false);
  89831. C.SassBoolean_false = new Z.SassBoolean0(false);
  89832. C.SassBoolean_true0 = new Z.SassBoolean(true);
  89833. C.SassBoolean_true = new Z.SassBoolean0(true);
  89834. C.SassList_lmy = new D.SassList(C.List_empty5, C.ListSeparator_comma, false);
  89835. C.SassList_lmy0 = new D.SassList0(C.List_empty16, C.ListSeparator_comma0, false);
  89836. C.Map_empty14 = new H.ConstantStringMap(0, {}, C.List_empty5, H.findType("ConstantStringMap<Value*,Value*>"));
  89837. C.SassMap_Map_empty = new A.SassMap(C.Map_empty14);
  89838. C.Map_empty15 = new H.ConstantStringMap(0, {}, C.List_empty16, H.findType("ConstantStringMap<Value0*,Value0*>"));
  89839. C.SassMap_Map_empty0 = new A.SassMap0(C.Map_empty15);
  89840. C.List_empty25 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_AsyncCallable);
  89841. C.Map_empty16 = new H.ConstantStringMap(0, {}, C.List_empty25, H.findType("ConstantStringMap<Module<AsyncCallable*>*,Null>"));
  89842. C.Set_empty0 = new P._UnmodifiableSet(C.Map_empty16, H.findType("_UnmodifiableSet<Module<AsyncCallable*>*>"));
  89843. C.List_empty26 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_Callable);
  89844. C.Map_empty17 = new H.ConstantStringMap(0, {}, C.List_empty26, H.findType("ConstantStringMap<Module<Callable*>*,Null>"));
  89845. C.Set_empty = new P._UnmodifiableSet(C.Map_empty17, H.findType("_UnmodifiableSet<Module<Callable*>*>"));
  89846. C.List_empty27 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_AsyncCallable_2);
  89847. C.Map_empty18 = new H.ConstantStringMap(0, {}, C.List_empty27, H.findType("ConstantStringMap<Module0<AsyncCallable0*>*,Null>"));
  89848. C.Set_empty3 = new P._UnmodifiableSet(C.Map_empty18, H.findType("_UnmodifiableSet<Module0<AsyncCallable0*>*>"));
  89849. C.List_empty28 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_Module_legacy_Callable_2);
  89850. C.Map_empty19 = new H.ConstantStringMap(0, {}, C.List_empty28, H.findType("ConstantStringMap<Module0<Callable0*>*,Null>"));
  89851. C.Set_empty2 = new P._UnmodifiableSet(C.Map_empty19, H.findType("_UnmodifiableSet<Module0<Callable0*>*>"));
  89852. C.List_empty29 = H.setRuntimeTypeInfo(makeConstList([]), type$.JSArray_legacy_StylesheetNode);
  89853. C.Map_empty20 = new H.ConstantStringMap(0, {}, C.List_empty29, H.findType("ConstantStringMap<StylesheetNode*,Null>"));
  89854. C.Set_empty1 = new P._UnmodifiableSet(C.Map_empty20, H.findType("_UnmodifiableSet<StylesheetNode*>"));
  89855. C.StderrLogger_false = new S.StderrLogger(false);
  89856. C.Symbol__warn = new H.Symbol("_warn");
  89857. C.Symbol_call = new H.Symbol("call");
  89858. C.Syntax_CSS = new M.Syntax("CSS");
  89859. C.Syntax_CSS0 = new M.Syntax0("CSS");
  89860. C.Syntax_SCSS = new M.Syntax("SCSS");
  89861. C.Syntax_SCSS0 = new M.Syntax0("SCSS");
  89862. C.Syntax_Sass = new M.Syntax("Sass");
  89863. C.Syntax_Sass0 = new M.Syntax0("Sass");
  89864. C.List_empty30 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue<SelectorList*>*>"));
  89865. C.Map_empty21 = new H.ConstantStringMap(0, {}, C.List_empty30, H.findType("ConstantStringMap<CssValue<SelectorList*>*,ModifiableCssValue<SelectorList*>*>"));
  89866. C.Tuple2_EmptyExtender_Map_empty = new S.Tuple2(C.C_EmptyExtender, C.Map_empty21, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList);
  89867. C.List_empty31 = H.setRuntimeTypeInfo(makeConstList([]), H.findType("JSArray<CssValue0<SelectorList0*>*>"));
  89868. C.Map_empty22 = new H.ConstantStringMap(0, {}, C.List_empty31, H.findType("ConstantStringMap<CssValue0<SelectorList0*>*,ModifiableCssValue0<SelectorList0*>*>"));
  89869. C.Tuple2_EmptyExtender_Map_empty0 = new S.Tuple2(C.C_EmptyExtender0, C.Map_empty22, type$.Tuple2_of_legacy_Extender_and_legacy_Map_of_legacy_CssValue_legacy_SelectorList_and_legacy_ModifiableCssValue_legacy_SelectorList_2);
  89870. C.Type_Null_Yyn = H.typeLiteral("Null");
  89871. C.UnaryOperator_U4G = new X.UnaryOperator("minus", "-");
  89872. C.UnaryOperator_U4G0 = new X.UnaryOperator0("minus", "-");
  89873. C.UnaryOperator_j2w = new X.UnaryOperator("plus", "+");
  89874. C.UnaryOperator_j2w0 = new X.UnaryOperator0("plus", "+");
  89875. C.UnaryOperator_not_not = new X.UnaryOperator("not", "not");
  89876. C.UnaryOperator_not_not0 = new X.UnaryOperator0("not", "not");
  89877. C.UnaryOperator_zDx = new X.UnaryOperator("divide", "/");
  89878. C.UnaryOperator_zDx0 = new X.UnaryOperator0("divide", "/");
  89879. C.Utf8Decoder_false = new P.Utf8Decoder(false);
  89880. C._IterationMarker_null_2 = new P._IterationMarker(null, 2);
  89881. C._PathDirection_8Gl = new M._PathDirection("at root");
  89882. C._PathDirection_988 = new M._PathDirection("below root");
  89883. C._PathDirection_FIw = new M._PathDirection("reaches root");
  89884. C._PathDirection_ZGD = new M._PathDirection("above root");
  89885. C._PathRelation_different = new M._PathRelation("different");
  89886. C._PathRelation_equal = new M._PathRelation("equal");
  89887. C._PathRelation_inconclusive = new M._PathRelation("inconclusive");
  89888. C._PathRelation_within = new M._PathRelation("within");
  89889. C._RegisterBinaryZoneFunction_kGu = new P._RegisterBinaryZoneFunction(C.C__RootZone, P.async___rootRegisterBinaryCallback$closure());
  89890. C._RegisterNullaryZoneFunction__RootZone__rootRegisterCallback = new P._RegisterNullaryZoneFunction(C.C__RootZone, P.async___rootRegisterCallback$closure());
  89891. C._RegisterUnaryZoneFunction_Bqo = new P._RegisterUnaryZoneFunction(C.C__RootZone, P.async___rootRegisterUnaryCallback$closure());
  89892. C._RunBinaryZoneFunction__RootZone__rootRunBinary = new P._RunBinaryZoneFunction(C.C__RootZone, P.async___rootRunBinary$closure());
  89893. C._RunNullaryZoneFunction__RootZone__rootRun = new P._RunNullaryZoneFunction(C.C__RootZone, P.async___rootRun$closure());
  89894. C._RunUnaryZoneFunction__RootZone__rootRunUnary = new P._RunUnaryZoneFunction(C.C__RootZone, P.async___rootRunUnary$closure());
  89895. C._SingletonCssMediaQueryMergeResult_empty = new F._SingletonCssMediaQueryMergeResult("empty");
  89896. C._SingletonCssMediaQueryMergeResult_empty0 = new F._SingletonCssMediaQueryMergeResult0("empty");
  89897. C._SingletonCssMediaQueryMergeResult_unrepresentable = new F._SingletonCssMediaQueryMergeResult("unrepresentable");
  89898. C._SingletonCssMediaQueryMergeResult_unrepresentable0 = new F._SingletonCssMediaQueryMergeResult0("unrepresentable");
  89899. C._StreamGroupState_canceled = new L._StreamGroupState("canceled");
  89900. C._StreamGroupState_dormant = new L._StreamGroupState("dormant");
  89901. C._StreamGroupState_listening = new L._StreamGroupState("listening");
  89902. C._StreamGroupState_paused = new L._StreamGroupState("paused");
  89903. C._StringStackTrace_3uE = new P._StringStackTrace("");
  89904. C._ZoneFunction_3bB = new P._ZoneFunction(C.C__RootZone, P.async___rootCreatePeriodicTimer$closure());
  89905. C._ZoneFunction_NMc = new P._ZoneFunction(C.C__RootZone, P.async___rootHandleUncaughtError$closure());
  89906. C._ZoneFunction__RootZone__rootCreateTimer = new P._ZoneFunction(C.C__RootZone, P.async___rootCreateTimer$closure());
  89907. C._ZoneFunction__RootZone__rootErrorCallback = new P._ZoneFunction(C.C__RootZone, P.async___rootErrorCallback$closure());
  89908. C._ZoneFunction__RootZone__rootFork = new P._ZoneFunction(C.C__RootZone, P.async___rootFork$closure());
  89909. C._ZoneFunction__RootZone__rootPrint = new P._ZoneFunction(C.C__RootZone, P.async___rootPrint$closure());
  89910. C._ZoneFunction__RootZone__rootScheduleMicrotask = new P._ZoneFunction(C.C__RootZone, P.async___rootScheduleMicrotask$closure());
  89911. C._ZoneSpecification_ALf = new P._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
  89912. })();
  89913. (function staticFields() {
  89914. $._JS_INTEROP_INTERCEPTOR_TAG = null;
  89915. $.printToZone = null;
  89916. $.Closure_functionCounter = 0;
  89917. $.BoundClosure_selfFieldNameCache = null;
  89918. $.BoundClosure_receiverFieldNameCache = null;
  89919. $.getTagFunction = null;
  89920. $.alternateTagFunction = null;
  89921. $.prototypeForTagFunction = null;
  89922. $.dispatchRecordsForInstanceTags = null;
  89923. $.interceptorsForUncacheableTags = null;
  89924. $.initNativeDispatchFlag = null;
  89925. $._nextCallback = null;
  89926. $._lastCallback = null;
  89927. $._lastPriorityCallback = null;
  89928. $._isInCallbackLoop = false;
  89929. $.Zone__current = C.C__RootZone;
  89930. $._RootZone__rootDelegate = null;
  89931. $._toStringVisiting = H.setRuntimeTypeInfo([], H.findType("JSArray<Object>"));
  89932. $._fs = null;
  89933. $._currentUriBase = null;
  89934. $._current = null;
  89935. $._subselectorPseudos = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.legacy_String);
  89936. $._features = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.legacy_String);
  89937. $._inImportRule = false;
  89938. $._selectorPseudoClasses = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.legacy_String);
  89939. $._selectorPseudoElements = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.legacy_String);
  89940. $._glyphs = C.C_UnicodeGlyphSet;
  89941. $._subselectorPseudos0 = P.LinkedHashSet_LinkedHashSet$_literal(["matches", "any", "nth-child", "nth-last-child"], type$.legacy_String);
  89942. $._features0 = P.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.legacy_String);
  89943. $._selectorPseudoClasses0 = P.LinkedHashSet_LinkedHashSet$_literal(["not", "matches", "current", "any", "has", "host", "host-context"], type$.legacy_String);
  89944. $._selectorPseudoElements0 = P.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.legacy_String);
  89945. $._inImportRule0 = false;
  89946. })();
  89947. (function lazyInitializers() {
  89948. var _lazy = hunkHelpers.lazy,
  89949. _lazyOld = hunkHelpers.lazyOld;
  89950. _lazy($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", function() {
  89951. return H.getIsolateAffinityTag("_$dart_dartClosure");
  89952. });
  89953. _lazy($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", function() {
  89954. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({
  89955. toString: function() {
  89956. return "$receiver$";
  89957. }
  89958. }));
  89959. });
  89960. _lazy($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", function() {
  89961. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
  89962. toString: function() {
  89963. return "$receiver$";
  89964. }
  89965. }));
  89966. });
  89967. _lazy($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", function() {
  89968. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null));
  89969. });
  89970. _lazy($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", function() {
  89971. return H.TypeErrorDecoder_extractPattern(function() {
  89972. var $argumentsExpr$ = '$arguments$';
  89973. try {
  89974. null.$method$($argumentsExpr$);
  89975. } catch (e) {
  89976. return e.message;
  89977. }
  89978. }());
  89979. });
  89980. _lazy($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", function() {
  89981. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0));
  89982. });
  89983. _lazy($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
  89984. return H.TypeErrorDecoder_extractPattern(function() {
  89985. var $argumentsExpr$ = '$arguments$';
  89986. try {
  89987. (void 0).$method$($argumentsExpr$);
  89988. } catch (e) {
  89989. return e.message;
  89990. }
  89991. }());
  89992. });
  89993. _lazy($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", function() {
  89994. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null));
  89995. });
  89996. _lazy($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
  89997. return H.TypeErrorDecoder_extractPattern(function() {
  89998. try {
  89999. null.$method$;
  90000. } catch (e) {
  90001. return e.message;
  90002. }
  90003. }());
  90004. });
  90005. _lazy($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", function() {
  90006. return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0));
  90007. });
  90008. _lazy($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
  90009. return H.TypeErrorDecoder_extractPattern(function() {
  90010. try {
  90011. (void 0).$method$;
  90012. } catch (e) {
  90013. return e.message;
  90014. }
  90015. }());
  90016. });
  90017. _lazy($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", function() {
  90018. return P._AsyncRun__initializeScheduleImmediate();
  90019. });
  90020. _lazy($, "Future__nullFuture", "$get$Future__nullFuture", function() {
  90021. return P._Future$zoneValue(null, C.C__RootZone, type$.Null);
  90022. });
  90023. _lazy($, "Future__falseFuture", "$get$Future__falseFuture", function() {
  90024. return P._Future$zoneValue(false, C.C__RootZone, type$.bool);
  90025. });
  90026. _lazy($, "_RootZone__rootMap", "$get$_RootZone__rootMap", function() {
  90027. var t1 = type$.dynamic;
  90028. return P.HashMap_HashMap(t1, t1);
  90029. });
  90030. _lazy($, "Utf8Decoder__decoder", "$get$Utf8Decoder__decoder", function() {
  90031. return new P.Utf8Decoder_closure().call$0();
  90032. });
  90033. _lazy($, "Utf8Decoder__decoderNonfatal", "$get$Utf8Decoder__decoderNonfatal", function() {
  90034. return new P.Utf8Decoder_closure0().call$0();
  90035. });
  90036. _lazy($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", function() {
  90037. return H.NativeInt8List__create1(H._ensureNativeList(H.setRuntimeTypeInfo([-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -2, -2, -2, -2, -2, 62, -2, 62, -2, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -1, -2, -2, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, 63, -2, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -2, -2, -2, -2, -2], type$.JSArray_int)));
  90038. });
  90039. _lazy($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", function() {
  90040. return typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
  90041. });
  90042. _lazy($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", function() {
  90043. return P.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false);
  90044. });
  90045. _lazy($, "_hasErrorStackProperty", "$get$_hasErrorStackProperty", function() {
  90046. return new Error().stack != void 0;
  90047. });
  90048. _lazy($, "_scannerTables", "$get$_scannerTables", function() {
  90049. return P._createTables();
  90050. });
  90051. _lazyOld($, "Option__invalidChars", "$get$Option__invalidChars", function() {
  90052. return P.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false);
  90053. });
  90054. _lazyOld($, "alwaysValid", "$get$alwaysValid", function() {
  90055. return new Q.closure113();
  90056. });
  90057. _lazyOld($, "readline", "$get$readline", function() {
  90058. return self.readline;
  90059. });
  90060. _lazyOld($, "windows", "$get$windows", function() {
  90061. return M.Context_Context($.$get$Style_windows());
  90062. });
  90063. _lazyOld($, "url", "$get$url", function() {
  90064. return M.Context_Context($.$get$Style_url());
  90065. });
  90066. _lazyOld($, "context", "$get$context", function() {
  90067. return new M.Context($.$get$Style_platform(), null);
  90068. });
  90069. _lazyOld($, "Style_posix", "$get$Style_posix", function() {
  90070. return new E.PosixStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("[^/]$", false), P.RegExp_RegExp("^/", false));
  90071. });
  90072. _lazyOld($, "Style_windows", "$get$Style_windows", function() {
  90073. return new L.WindowsStyle(P.RegExp_RegExp("[/\\\\]", false), P.RegExp_RegExp("[^/\\\\]$", false), P.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), P.RegExp_RegExp("^[/\\\\](?![/\\\\])", false));
  90074. });
  90075. _lazyOld($, "Style_url", "$get$Style_url", function() {
  90076. return new F.UrlStyle(P.RegExp_RegExp("/", false), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), P.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), P.RegExp_RegExp("^/", false));
  90077. });
  90078. _lazyOld($, "Style_platform", "$get$Style_platform", function() {
  90079. return O.Style__getPlatformStyle();
  90080. });
  90081. _lazyOld($, "IfExpression_declaration", "$get$IfExpression_declaration", function() {
  90082. return B.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40funct, null);
  90083. });
  90084. _lazyOld($, "colorsByName", "$get$colorsByName", function() {
  90085. var _null = null;
  90086. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb(245, 245, 245, _null, _null), "white", K.SassColor$rgb(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb(245, 222, 179, _null, _null), "violet", K.SassColor$rgb(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb(216, 191, 216, _null, _null), "teal", K.SassColor$rgb(0, 128, 128, _null, _null), "tan", K.SassColor$rgb(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb(0, 255, 127, _null, _null), "snow", K.SassColor$rgb(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb(135, 206, 235, _null, _null), "silver", K.SassColor$rgb(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb(188, 143, 143, _null, _null), "red", K.SassColor$rgb(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb(102, 51, 153, _null, _null), "purple", K.SassColor$rgb(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb(176, 224, 230, _null, _null), "plum", K.SassColor$rgb(221, 160, 221, _null, _null), "pink", K.SassColor$rgb(255, 192, 203, _null, _null), "peru", K.SassColor$rgb(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb(255, 69, 0, _null, _null), "orange", K.SassColor$rgb(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb(107, 142, 35, _null, _null), "olive", K.SassColor$rgb(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb(253, 245, 230, _null, _null), "navy", K.SassColor$rgb(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb(255, 0, 255, _null, _null), "linen", K.SassColor$rgb(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb(50, 205, 50, _null, _null), "lime", K.SassColor$rgb(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb(240, 255, 240, _null, _null), "grey", K.SassColor$rgb(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb(173, 255, 47, _null, _null), "green", K.SassColor$rgb(0, 128, 0, _null, _null), "gray", K.SassColor$rgb(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb(218, 165, 32, _null, _null), "gold", K.SassColor$rgb(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb(100, 149, 237, _null, _null), "coral", K.SassColor$rgb(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb(222, 184, 135, _null, _null), "brown", K.SassColor$rgb(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb(138, 43, 226, _null, _null), "blue", K.SassColor$rgb(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb(255, 235, 205, _null, _null), "black", K.SassColor$rgb(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb(255, 228, 196, _null, _null), "beige", K.SassColor$rgb(245, 245, 220, _null, _null), "azure", K.SassColor$rgb(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb(240, 248, 255, _null, _null)], type$.legacy_String, type$.legacy_SassColor);
  90087. });
  90088. _lazyOld($, "namesByColor", "$get$namesByColor", function() {
  90089. var t2, t3,
  90090. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SassColor, type$.legacy_String);
  90091. for (t2 = $.$get$colorsByName(), t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  90092. t3 = t2.get$current(t2);
  90093. t1.$indexSet(0, t3.value, t3.key);
  90094. }
  90095. return t1;
  90096. });
  90097. _lazyOld($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", function() {
  90098. return B.isWindows() ? "=" : "\u2501";
  90099. });
  90100. _lazyOld($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", function() {
  90101. return new B.ExecutableOptions_closure().call$0();
  90102. });
  90103. _lazyOld($, "globalFunctions", "$get$globalFunctions", function() {
  90104. var t2,
  90105. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInCallable);
  90106. for (t2 = $.$get$global0(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90107. t1.push(t2.get$current(t2));
  90108. for (t2 = $.$get$global1(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90109. t1.push(t2.get$current(t2));
  90110. for (t2 = $.$get$global2(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90111. t1.push(t2.get$current(t2));
  90112. for (t2 = $.$get$global3(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90113. t1.push(t2.get$current(t2));
  90114. for (t2 = $.$get$global4(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90115. t1.push(t2.get$current(t2));
  90116. for (t2 = $.$get$global5(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90117. t1.push(t2.get$current(t2));
  90118. for (t2 = $.$get$global(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90119. t1.push(t2.get$current(t2));
  90120. t1.push(Q.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new Y.closure(), null));
  90121. return P.UnmodifiableListView$(t1, type$.legacy_BuiltInCallable);
  90122. });
  90123. _lazyOld($, "coreModules", "$get$coreModules", function() {
  90124. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable), H.findType("BuiltInModule<BuiltInCallable*>*"));
  90125. });
  90126. _lazyOld($, "_microsoftFilterStart", "$get$_microsoftFilterStart", function() {
  90127. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  90128. });
  90129. _lazyOld($, "global", "$get$global0", function() {
  90130. var _s27_ = "$red, $green, $blue, $alpha",
  90131. _s19_ = "$red, $green, $blue",
  90132. _s37_ = "$hue, $saturation, $lightness, $alpha",
  90133. _s29_ = "$hue, $saturation, $lightness",
  90134. _s17_ = "$hue, $saturation",
  90135. _s15_ = "$color, $amount",
  90136. t1 = type$.legacy_String,
  90137. t2 = type$.legacy_legacy_Value_Function_legacy_List_legacy_Value;
  90138. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), Q.BuiltInCallable$overloadedFunction("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure44(), _s19_, new K.closure45(), "$color, $alpha", new K.closure46(), "$channels", new K.closure47()], t1, t2)), Q.BuiltInCallable$overloadedFunction("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure48(), _s19_, new K.closure49(), "$color, $alpha", new K.closure50(), "$channels", new K.closure51()], t1, t2)), K._function4("invert", "$color, $weight: 100%", new K.closure52()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), Q.BuiltInCallable$overloadedFunction("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure53(), _s29_, new K.closure54(), _s17_, new K.closure55(), "$channels", new K.closure56()], t1, t2)), Q.BuiltInCallable$overloadedFunction("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure57(), _s29_, new K.closure58(), _s17_, new K.closure59(), "$channels", new K.closure60()], t1, t2)), K._function4("grayscale", "$color", new K.closure61()), K._function4("adjust-hue", "$color, $degrees", new K.closure62()), K._function4("lighten", _s15_, new K.closure63()), K._function4("darken", _s15_, new K.closure64()), Q.BuiltInCallable$overloadedFunction("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure65(), "$color, $amount", new K.closure66()], t1, t2)), K._function4("desaturate", _s15_, new K.closure67()), K._function4("opacify", _s15_, K.color___opacify$closure()), K._function4("fade-in", _s15_, K.color___opacify$closure()), K._function4("transparentize", _s15_, K.color___transparentize$closure()), K._function4("fade-out", _s15_, K.color___transparentize$closure()), Q.BuiltInCallable$overloadedFunction("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure68(), "$args...", new K.closure69()], t1, t2)), K._function4("opacity", "$color", new K.closure70()), $.$get$_ieHexStr(), $.$get$_adjust().withName$1("adjust-color"), $.$get$_scale().withName$1("scale-color"), $.$get$_change().withName$1("change-color")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90139. });
  90140. _lazyOld($, "module", "$get$module", function() {
  90141. var _s9_ = "lightness",
  90142. _s10_ = "saturation",
  90143. _s6_ = "$color", _s5_ = "alpha",
  90144. t1 = type$.legacy_String,
  90145. t2 = type$.legacy_legacy_Value_Function_legacy_List_legacy_Value;
  90146. return Q.BuiltInModule$("color", H.setRuntimeTypeInfo([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), K._function4("invert", "$color, $weight: 100%", new K.closure99()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), K._removedColorFunction("adjust-hue", "hue", false), K._removedColorFunction("lighten", _s9_, false), K._removedColorFunction("darken", _s9_, true), K._removedColorFunction("saturate", _s10_, false), K._removedColorFunction("desaturate", _s10_, true), K._function4("grayscale", _s6_, new K.closure100()), Q.BuiltInCallable$overloadedFunction("hwb", P.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new K.closure101(), "$channels", new K.closure102()], t1, t2)), K._function4("whiteness", _s6_, new K.closure103()), K._function4("blackness", _s6_, new K.closure104()), K._removedColorFunction("opacify", _s5_, false), K._removedColorFunction("fade-in", _s5_, false), K._removedColorFunction("transparentize", _s5_, true), K._removedColorFunction("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure105(), "$args...", new K.closure106()], t1, t2)), K._function4("opacity", _s6_, new K.closure107()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  90147. });
  90148. _lazyOld($, "_red", "$get$_red", function() {
  90149. return K._function4("red", "$color", new K.closure82());
  90150. });
  90151. _lazyOld($, "_green", "$get$_green", function() {
  90152. return K._function4("green", "$color", new K.closure81());
  90153. });
  90154. _lazyOld($, "_blue", "$get$_blue", function() {
  90155. return K._function4("blue", "$color", new K.closure80());
  90156. });
  90157. _lazyOld($, "_mix", "$get$_mix", function() {
  90158. return K._function4("mix", "$color1, $color2, $weight: 50%", new K.closure79());
  90159. });
  90160. _lazyOld($, "_hue", "$get$_hue", function() {
  90161. return K._function4("hue", "$color", new K.closure78());
  90162. });
  90163. _lazyOld($, "_saturation", "$get$_saturation", function() {
  90164. return K._function4("saturation", "$color", new K.closure77());
  90165. });
  90166. _lazyOld($, "_lightness", "$get$_lightness", function() {
  90167. return K._function4("lightness", "$color", new K.closure76());
  90168. });
  90169. _lazyOld($, "_complement", "$get$_complement", function() {
  90170. return K._function4("complement", "$color", new K.closure75());
  90171. });
  90172. _lazyOld($, "_adjust", "$get$_adjust", function() {
  90173. return K._function4("adjust", "$color, $kwargs...", new K.closure73());
  90174. });
  90175. _lazyOld($, "_scale", "$get$_scale", function() {
  90176. return K._function4("scale", "$color, $kwargs...", new K.closure72());
  90177. });
  90178. _lazyOld($, "_change", "$get$_change", function() {
  90179. return K._function4("change", "$color, $kwargs...", new K.closure71());
  90180. });
  90181. _lazyOld($, "_ieHexStr", "$get$_ieHexStr", function() {
  90182. return K._function4("ie-hex-str", "$color", new K.closure74());
  90183. });
  90184. _lazyOld($, "global0", "$get$global1", function() {
  90185. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator().withName$1("list-separator")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90186. });
  90187. _lazyOld($, "module0", "$get$module0", function() {
  90188. return Q.BuiltInModule$("list", H.setRuntimeTypeInfo([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  90189. });
  90190. _lazyOld($, "_length", "$get$_length0", function() {
  90191. return D._function3("length", "$list", new D.closure43());
  90192. });
  90193. _lazyOld($, "_nth", "$get$_nth", function() {
  90194. return D._function3("nth", "$list, $n", new D.closure42());
  90195. });
  90196. _lazyOld($, "_setNth", "$get$_setNth", function() {
  90197. return D._function3("set-nth", "$list, $n, $value", new D.closure41());
  90198. });
  90199. _lazyOld($, "_join", "$get$_join", function() {
  90200. return D._function3("join", string$.x24list1, new D.closure40());
  90201. });
  90202. _lazyOld($, "_append", "$get$_append0", function() {
  90203. return D._function3("append", "$list, $val, $separator: auto", new D.closure39());
  90204. });
  90205. _lazyOld($, "_zip", "$get$_zip", function() {
  90206. return D._function3("zip", "$lists...", new D.closure38());
  90207. });
  90208. _lazyOld($, "_index", "$get$_index0", function() {
  90209. return D._function3("index", "$list, $value", new D.closure37());
  90210. });
  90211. _lazyOld($, "_separator", "$get$_separator", function() {
  90212. return D._function3("separator", "$list", new D.closure35());
  90213. });
  90214. _lazyOld($, "_isBracketed", "$get$_isBracketed", function() {
  90215. return D._function3("is-bracketed", "$list", new D.closure36());
  90216. });
  90217. _lazyOld($, "global1", "$get$global2", function() {
  90218. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_get().withName$1("map-get"), $.$get$_merge().withName$1("map-merge"), $.$get$_remove().withName$1("map-remove"), $.$get$_keys().withName$1("map-keys"), $.$get$_values().withName$1("map-values"), $.$get$_hasKey().withName$1("map-has-key")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90219. });
  90220. _lazyOld($, "module1", "$get$module1", function() {
  90221. return Q.BuiltInModule$("map", H.setRuntimeTypeInfo([$.$get$_get(), $.$get$_set(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey(), $.$get$_deepMerge(), $.$get$_deepRemove()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  90222. });
  90223. _lazyOld($, "_get", "$get$_get", function() {
  90224. return A._function2("get", "$map, $key, $keys...", new A.closure34());
  90225. });
  90226. _lazyOld($, "_set", "$get$_set", function() {
  90227. return Q.BuiltInCallable$overloadedFunction("set", P.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A.closure97(), "$map, $args...", new A.closure98()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value));
  90228. });
  90229. _lazyOld($, "_merge", "$get$_merge", function() {
  90230. return Q.BuiltInCallable$overloadedFunction("merge", P.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A.closure32(), "$map1, $args...", new A.closure33()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value));
  90231. });
  90232. _lazyOld($, "_deepMerge", "$get$_deepMerge", function() {
  90233. return A._function2("deep-merge", "$map1, $map2", new A.closure96());
  90234. });
  90235. _lazyOld($, "_deepRemove", "$get$_deepRemove", function() {
  90236. return A._function2("deep-remove", "$map, $key, $keys...", new A.closure95());
  90237. });
  90238. _lazyOld($, "_remove", "$get$_remove", function() {
  90239. return Q.BuiltInCallable$overloadedFunction("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure30(), "$map, $key, $keys...", new A.closure31()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value));
  90240. });
  90241. _lazyOld($, "_keys", "$get$_keys", function() {
  90242. return A._function2("keys", "$map", new A.closure29());
  90243. });
  90244. _lazyOld($, "_values", "$get$_values", function() {
  90245. return A._function2("values", "$map", new A.closure28());
  90246. });
  90247. _lazyOld($, "_hasKey", "$get$_hasKey", function() {
  90248. return A._function2("has-key", "$map, $key, $keys...", new A.closure27());
  90249. });
  90250. _lazyOld($, "global2", "$get$global3", function() {
  90251. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_abs(), $.$get$_ceil(), $.$get$_floor(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_unit(), $.$get$_compatible().withName$1("comparable"), $.$get$_isUnitless().withName$1("unitless")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90252. });
  90253. _lazyOld($, "module2", "$get$module2", function() {
  90254. return Q.BuiltInModule$("math", H.setRuntimeTypeInfo([$.$get$_abs(), $.$get$_acos(), $.$get$_asin(), $.$get$_atan(), $.$get$_atan2(), $.$get$_ceil(), $.$get$_clamp(), $.$get$_cos(), $.$get$_compatible(), $.$get$_floor(), $.$get$_hypot(), $.$get$_isUnitless(), $.$get$_log(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_pow(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_sin(), $.$get$_sqrt(), $.$get$_tan(), $.$get$_unit()], type$.JSArray_legacy_BuiltInCallable), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$(2.718281828459045, null), "pi", T.SassNumber$(3.141592653589793, null)], type$.legacy_String, type$.legacy_Value), type$.legacy_BuiltInCallable);
  90255. });
  90256. _lazyOld($, "_ceil", "$get$_ceil", function() {
  90257. return K._numberFunction("ceil", new K.closure25());
  90258. });
  90259. _lazyOld($, "_clamp", "$get$_clamp", function() {
  90260. return K._function1("clamp", "$min, $number, $max", new K.closure90());
  90261. });
  90262. _lazyOld($, "_floor", "$get$_floor", function() {
  90263. return K._numberFunction("floor", new K.closure24());
  90264. });
  90265. _lazyOld($, "_max", "$get$_max", function() {
  90266. return K._function1("max", "$numbers...", new K.closure23());
  90267. });
  90268. _lazyOld($, "_min", "$get$_min", function() {
  90269. return K._function1("min", "$numbers...", new K.closure22());
  90270. });
  90271. _lazyOld($, "_round", "$get$_round", function() {
  90272. return K._numberFunction("round", T.number0__fuzzyRound$closure());
  90273. });
  90274. _lazyOld($, "_abs", "$get$_abs", function() {
  90275. return K._numberFunction("abs", new K.closure26());
  90276. });
  90277. _lazyOld($, "_hypot", "$get$_hypot", function() {
  90278. return K._function1("hypot", "$numbers...", new K.closure88());
  90279. });
  90280. _lazyOld($, "_log", "$get$_log", function() {
  90281. return K._function1("log", "$number, $base: null", new K.closure87());
  90282. });
  90283. _lazyOld($, "_pow", "$get$_pow", function() {
  90284. return K._function1("pow", "$base, $exponent", new K.closure86());
  90285. });
  90286. _lazyOld($, "_sqrt", "$get$_sqrt", function() {
  90287. return K._function1("sqrt", "$number", new K.closure84());
  90288. });
  90289. _lazyOld($, "_acos", "$get$_acos", function() {
  90290. return K._function1("acos", "$number", new K.closure94());
  90291. });
  90292. _lazyOld($, "_asin", "$get$_asin", function() {
  90293. return K._function1("asin", "$number", new K.closure93());
  90294. });
  90295. _lazyOld($, "_atan", "$get$_atan", function() {
  90296. return K._function1("atan", "$number", new K.closure92());
  90297. });
  90298. _lazyOld($, "_atan2", "$get$_atan2", function() {
  90299. return K._function1("atan2", "$y, $x", new K.closure91());
  90300. });
  90301. _lazyOld($, "_cos", "$get$_cos", function() {
  90302. return K._function1("cos", "$number", new K.closure89());
  90303. });
  90304. _lazyOld($, "_sin", "$get$_sin", function() {
  90305. return K._function1("sin", "$number", new K.closure85());
  90306. });
  90307. _lazyOld($, "_tan", "$get$_tan", function() {
  90308. return K._function1("tan", "$number", new K.closure83());
  90309. });
  90310. _lazyOld($, "_compatible", "$get$_compatible", function() {
  90311. return K._function1("compatible", "$number1, $number2", new K.closure18());
  90312. });
  90313. _lazyOld($, "_isUnitless", "$get$_isUnitless", function() {
  90314. return K._function1("is-unitless", "$number", new K.closure17());
  90315. });
  90316. _lazyOld($, "_unit", "$get$_unit", function() {
  90317. return K._function1("unit", "$number", new K.closure19());
  90318. });
  90319. _lazyOld($, "_percentage", "$get$_percentage", function() {
  90320. return K._function1("percentage", "$number", new K.closure21());
  90321. });
  90322. _lazyOld($, "_random", "$get$_random0", function() {
  90323. return P.Random_Random();
  90324. });
  90325. _lazyOld($, "_randomFunction", "$get$_randomFunction", function() {
  90326. return K._function1("random", "$limit: null", new K.closure20());
  90327. });
  90328. _lazyOld($, "global3", "$get$global", function() {
  90329. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function5("feature-exists", "$feature", new Q.closure108()), Q._function5("inspect", "$value", new Q.closure109()), Q._function5("type-of", "$value", new Q.closure110()), Q._function5("keywords", "$args", new Q.closure111())], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90330. });
  90331. _lazyOld($, "global4", "$get$global4", function() {
  90332. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse().withName$1("selector-parse"), $.$get$_nest().withName$1("selector-nest"), $.$get$_append().withName$1("selector-append"), $.$get$_extend().withName$1("selector-extend"), $.$get$_replace().withName$1("selector-replace"), $.$get$_unify().withName$1("selector-unify")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90333. });
  90334. _lazyOld($, "module3", "$get$module3", function() {
  90335. return Q.BuiltInModule$("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  90336. });
  90337. _lazyOld($, "_nest", "$get$_nest", function() {
  90338. return T._function0("nest", "$selectors...", new T.closure13());
  90339. });
  90340. _lazyOld($, "_append0", "$get$_append", function() {
  90341. return T._function0("append", "$selectors...", new T.closure12());
  90342. });
  90343. _lazyOld($, "_extend", "$get$_extend", function() {
  90344. return T._function0("extend", "$selector, $extendee, $extender", new T.closure11());
  90345. });
  90346. _lazyOld($, "_replace", "$get$_replace", function() {
  90347. return T._function0("replace", "$selector, $original, $replacement", new T.closure10());
  90348. });
  90349. _lazyOld($, "_unify", "$get$_unify", function() {
  90350. return T._function0("unify", "$selector1, $selector2", new T.closure9());
  90351. });
  90352. _lazyOld($, "_isSuperselector", "$get$_isSuperselector", function() {
  90353. return T._function0("is-superselector", "$super, $sub", new T.closure16());
  90354. });
  90355. _lazyOld($, "_simpleSelectors", "$get$_simpleSelectors", function() {
  90356. return T._function0("simple-selectors", "$selector", new T.closure15());
  90357. });
  90358. _lazyOld($, "_parse", "$get$_parse", function() {
  90359. return T._function0("parse", "$selector", new T.closure14());
  90360. });
  90361. _lazyOld($, "_random0", "$get$_random", function() {
  90362. return P.Random_Random();
  90363. });
  90364. _lazyOld($, "_previousUniqueId", "$get$_previousUniqueId", function() {
  90365. return $.$get$_random().nextInt$1(H._asIntS(P.pow(36, 6)));
  90366. });
  90367. _lazyOld($, "global5", "$get$global5", function() {
  90368. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_uniqueId(), $.$get$_length().withName$1("str-length"), $.$get$_insert().withName$1("str-insert"), $.$get$_index().withName$1("str-index"), $.$get$_slice().withName$1("str-slice")], type$.JSArray_legacy_BuiltInCallable), type$.legacy_BuiltInCallable);
  90369. });
  90370. _lazyOld($, "module4", "$get$module4", function() {
  90371. return Q.BuiltInModule$("string", H.setRuntimeTypeInfo([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId()], type$.JSArray_legacy_BuiltInCallable), null, null, type$.legacy_BuiltInCallable);
  90372. });
  90373. _lazyOld($, "_unquote", "$get$_unquote", function() {
  90374. return D._function("unquote", "$string", new D.closure8());
  90375. });
  90376. _lazyOld($, "_quote", "$get$_quote", function() {
  90377. return D._function("quote", "$string", new D.closure7());
  90378. });
  90379. _lazyOld($, "_length0", "$get$_length", function() {
  90380. return D._function("length", "$string", new D.closure3());
  90381. });
  90382. _lazyOld($, "_insert", "$get$_insert", function() {
  90383. return D._function("insert", "$string, $insert, $index", new D.closure2());
  90384. });
  90385. _lazyOld($, "_index0", "$get$_index", function() {
  90386. return D._function("index", "$string, $substring", new D.closure1());
  90387. });
  90388. _lazyOld($, "_slice", "$get$_slice", function() {
  90389. return D._function("slice", "$string, $start-at, $end-at: -1", new D.closure0());
  90390. });
  90391. _lazyOld($, "_toUpperCase", "$get$_toUpperCase", function() {
  90392. return D._function("to-upper-case", "$string", new D.closure6());
  90393. });
  90394. _lazyOld($, "_toLowerCase", "$get$_toLowerCase", function() {
  90395. return D._function("to-lower-case", "$string", new D.closure5());
  90396. });
  90397. _lazyOld($, "_uniqueId", "$get$_uniqueId", function() {
  90398. return D._function("unique-id", "", new D.closure4());
  90399. });
  90400. _lazyOld($, "stderr", "$get$stderr", function() {
  90401. return new B.Stderr(J.get$stderr$x(self.process));
  90402. });
  90403. _lazyOld($, "Logger_quiet", "$get$Logger_quiet", function() {
  90404. return new F._QuietLogger();
  90405. });
  90406. _lazyOld($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", function() {
  90407. var t1 = $.$get$globalFunctions();
  90408. t1 = t1.map$1$1(t1, new Q.closure112(), type$.legacy_String).toSet$0(0);
  90409. t1.add$1(0, "if");
  90410. t1.remove$1(0, "rgb");
  90411. t1.remove$1(0, "rgba");
  90412. t1.remove$1(0, "hsl");
  90413. t1.remove$1(0, "hsla");
  90414. t1.remove$1(0, "grayscale");
  90415. t1.remove$1(0, "invert");
  90416. t1.remove$1(0, "alpha");
  90417. t1.remove$1(0, "opacity");
  90418. t1.remove$1(0, "saturate");
  90419. return t1;
  90420. });
  90421. _lazyOld($, "epsilon", "$get$epsilon", function() {
  90422. return P.pow(10, -11);
  90423. });
  90424. _lazyOld($, "_inverseEpsilon", "$get$_inverseEpsilon", function() {
  90425. return 1 / $.$get$epsilon();
  90426. });
  90427. _lazyOld($, "_noSourceUrl", "$get$_noSourceUrl", function() {
  90428. return P.Uri_parse("-");
  90429. });
  90430. _lazyOld($, "_typesByUnit", "$get$_typesByUnit", function() {
  90431. var t2, t3, t4,
  90432. t1 = type$.legacy_String;
  90433. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  90434. for (t2 = C.Map_U8AHF.get$entries(C.Map_U8AHF), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  90435. t3 = t2.get$current(t2);
  90436. for (t4 = J.get$iterator$ax(t3.value), t3 = t3.key; t4.moveNext$0();)
  90437. t1.$indexSet(0, t4.get$current(t4), t3);
  90438. }
  90439. return t1;
  90440. });
  90441. _lazyOld($, "_emptyQuoted", "$get$_emptyQuoted", function() {
  90442. return D.SassString$("", true);
  90443. });
  90444. _lazyOld($, "_emptyUnquoted", "$get$_emptyUnquoted", function() {
  90445. return D.SassString$("", false);
  90446. });
  90447. _lazyOld($, "MAX_INT32", "$get$MAX_INT32", function() {
  90448. return P.pow(2, 31) - 1;
  90449. });
  90450. _lazyOld($, "MIN_INT32", "$get$MIN_INT32", function() {
  90451. return -P.pow(2, 31);
  90452. });
  90453. _lazyOld($, "_vmFrame", "$get$_vmFrame", function() {
  90454. return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false);
  90455. });
  90456. _lazyOld($, "_v8Frame", "$get$_v8Frame", function() {
  90457. return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false);
  90458. });
  90459. _lazyOld($, "_v8UrlLocation", "$get$_v8UrlLocation", function() {
  90460. return P.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false);
  90461. });
  90462. _lazyOld($, "_v8EvalLocation", "$get$_v8EvalLocation", function() {
  90463. return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false);
  90464. });
  90465. _lazyOld($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", function() {
  90466. return P.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false);
  90467. });
  90468. _lazyOld($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", function() {
  90469. return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false);
  90470. });
  90471. _lazyOld($, "_friendlyFrame", "$get$_friendlyFrame", function() {
  90472. return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false);
  90473. });
  90474. _lazyOld($, "_asyncBody", "$get$_asyncBody", function() {
  90475. return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false);
  90476. });
  90477. _lazyOld($, "_initialDot", "$get$_initialDot", function() {
  90478. return P.RegExp_RegExp("^\\.", false);
  90479. });
  90480. _lazyOld($, "Frame__uriRegExp", "$get$Frame__uriRegExp", function() {
  90481. return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false);
  90482. });
  90483. _lazyOld($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", function() {
  90484. return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false);
  90485. });
  90486. _lazyOld($, "_terseRegExp", "$get$_terseRegExp", function() {
  90487. return P.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false);
  90488. });
  90489. _lazyOld($, "_v8Trace", "$get$_v8Trace", function() {
  90490. return P.RegExp_RegExp("\\n ?at ", false);
  90491. });
  90492. _lazyOld($, "_v8TraceLine", "$get$_v8TraceLine", function() {
  90493. return P.RegExp_RegExp(" ?at ", false);
  90494. });
  90495. _lazyOld($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", function() {
  90496. return P.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false);
  90497. });
  90498. _lazyOld($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", function() {
  90499. return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true);
  90500. });
  90501. _lazyOld($, "_friendlyTrace", "$get$_friendlyTrace", function() {
  90502. return P.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true);
  90503. });
  90504. _lazyOld($, "vmChainGap", "$get$vmChainGap", function() {
  90505. return P.RegExp_RegExp("^<asynchronous suspension>\\n?$", true);
  90506. });
  90507. _lazyOld($, "_newlineRegExp", "$get$_newlineRegExp", function() {
  90508. return P.RegExp_RegExp("\\r\\n?|\\n", false);
  90509. });
  90510. _lazyOld($, "booleanConstructor", "$get$booleanConstructor", function() {
  90511. return new Z.closure263().call$0();
  90512. });
  90513. _lazyOld($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", function() {
  90514. return P.RegExp_RegExp("^[a-zA-Z]+\\s*=", false);
  90515. });
  90516. _lazyOld($, "global6", "$get$global7", function() {
  90517. var _s27_ = "$red, $green, $blue, $alpha",
  90518. _s19_ = "$red, $green, $blue",
  90519. _s37_ = "$hue, $saturation, $lightness, $alpha",
  90520. _s29_ = "$hue, $saturation, $lightness",
  90521. _s17_ = "$hue, $saturation",
  90522. _s15_ = "$color, $amount",
  90523. t1 = type$.legacy_String,
  90524. t2 = type$.legacy_legacy_Value_Function_legacy_List_legacy_Value_2;
  90525. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), Q.BuiltInCallable$overloadedFunction0("rgb", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure159(), _s19_, new K.closure160(), "$color, $alpha", new K.closure161(), "$channels", new K.closure162()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("rgba", P.LinkedHashMap_LinkedHashMap$_literal([_s27_, new K.closure163(), _s19_, new K.closure164(), "$color, $alpha", new K.closure165(), "$channels", new K.closure166()], t1, t2)), K._function11("invert", "$color, $weight: 100%", new K.closure167()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), Q.BuiltInCallable$overloadedFunction0("hsl", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure168(), _s29_, new K.closure169(), _s17_, new K.closure170(), "$channels", new K.closure171()], t1, t2)), Q.BuiltInCallable$overloadedFunction0("hsla", P.LinkedHashMap_LinkedHashMap$_literal([_s37_, new K.closure172(), _s29_, new K.closure173(), _s17_, new K.closure174(), "$channels", new K.closure175()], t1, t2)), K._function11("grayscale", "$color", new K.closure176()), K._function11("adjust-hue", "$color, $degrees", new K.closure177()), K._function11("lighten", _s15_, new K.closure178()), K._function11("darken", _s15_, new K.closure179()), Q.BuiltInCallable$overloadedFunction0("saturate", P.LinkedHashMap_LinkedHashMap$_literal(["$amount", new K.closure180(), "$color, $amount", new K.closure181()], t1, t2)), K._function11("desaturate", _s15_, new K.closure182()), K._function11("opacify", _s15_, K.color1___opacify$closure()), K._function11("fade-in", _s15_, K.color1___opacify$closure()), K._function11("transparentize", _s15_, K.color1___transparentize$closure()), K._function11("fade-out", _s15_, K.color1___transparentize$closure()), Q.BuiltInCallable$overloadedFunction0("alpha", P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure183(), "$args...", new K.closure184()], t1, t2)), K._function11("opacity", "$color", new K.closure185()), $.$get$_ieHexStr0(), $.$get$_adjust0().withName$1("adjust-color"), $.$get$_scale0().withName$1("scale-color"), $.$get$_change0().withName$1("change-color")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90526. });
  90527. _lazyOld($, "module5", "$get$module5", function() {
  90528. var _s9_ = "lightness",
  90529. _s10_ = "saturation",
  90530. _s6_ = "$color", _s5_ = "alpha",
  90531. t1 = type$.legacy_String,
  90532. t2 = type$.legacy_legacy_Value_Function_legacy_List_legacy_Value_2;
  90533. return Q.BuiltInModule$0("color", H.setRuntimeTypeInfo([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), K._function11("invert", "$color, $weight: 100%", new K.closure214()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), K._removedColorFunction0("adjust-hue", "hue", false), K._removedColorFunction0("lighten", _s9_, false), K._removedColorFunction0("darken", _s9_, true), K._removedColorFunction0("saturate", _s10_, false), K._removedColorFunction0("desaturate", _s10_, true), K._function11("grayscale", _s6_, new K.closure215()), Q.BuiltInCallable$overloadedFunction0("hwb", P.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new K.closure216(), "$channels", new K.closure217()], t1, t2)), K._function11("whiteness", _s6_, new K.closure218()), K._function11("blackness", _s6_, new K.closure219()), K._removedColorFunction0("opacify", _s5_, false), K._removedColorFunction0("fade-in", _s5_, false), K._removedColorFunction0("transparentize", _s5_, true), K._removedColorFunction0("fade-out", _s5_, true), Q.BuiltInCallable$overloadedFunction0(_s5_, P.LinkedHashMap_LinkedHashMap$_literal(["$color", new K.closure220(), "$args...", new K.closure221()], t1, t2)), K._function11("opacity", _s6_, new K.closure222()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  90534. });
  90535. _lazyOld($, "_red0", "$get$_red0", function() {
  90536. return K._function11("red", "$color", new K.closure197());
  90537. });
  90538. _lazyOld($, "_green0", "$get$_green0", function() {
  90539. return K._function11("green", "$color", new K.closure196());
  90540. });
  90541. _lazyOld($, "_blue0", "$get$_blue0", function() {
  90542. return K._function11("blue", "$color", new K.closure195());
  90543. });
  90544. _lazyOld($, "_mix0", "$get$_mix0", function() {
  90545. return K._function11("mix", "$color1, $color2, $weight: 50%", new K.closure194());
  90546. });
  90547. _lazyOld($, "_hue0", "$get$_hue0", function() {
  90548. return K._function11("hue", "$color", new K.closure193());
  90549. });
  90550. _lazyOld($, "_saturation0", "$get$_saturation0", function() {
  90551. return K._function11("saturation", "$color", new K.closure192());
  90552. });
  90553. _lazyOld($, "_lightness0", "$get$_lightness0", function() {
  90554. return K._function11("lightness", "$color", new K.closure191());
  90555. });
  90556. _lazyOld($, "_complement0", "$get$_complement0", function() {
  90557. return K._function11("complement", "$color", new K.closure190());
  90558. });
  90559. _lazyOld($, "_adjust0", "$get$_adjust0", function() {
  90560. return K._function11("adjust", "$color, $kwargs...", new K.closure188());
  90561. });
  90562. _lazyOld($, "_scale0", "$get$_scale0", function() {
  90563. return K._function11("scale", "$color, $kwargs...", new K.closure187());
  90564. });
  90565. _lazyOld($, "_change0", "$get$_change0", function() {
  90566. return K._function11("change", "$color, $kwargs...", new K.closure186());
  90567. });
  90568. _lazyOld($, "_ieHexStr0", "$get$_ieHexStr0", function() {
  90569. return K._function11("ie-hex-str", "$color", new K.closure189());
  90570. });
  90571. _lazyOld($, "colorConstructor", "$get$colorConstructor", function() {
  90572. return B.createClass("SassColor", new K.closure253(), P.LinkedHashMap_LinkedHashMap$_literal(["getR", new K.closure254(), "getG", new K.closure255(), "getB", new K.closure256(), "getA", new K.closure257(), "setR", new K.closure258(), "setG", new K.closure259(), "setB", new K.closure260(), "setA", new K.closure261(), "toString", new K.closure262()], type$.legacy_String, type$.legacy_Function));
  90573. });
  90574. _lazyOld($, "colorsByName0", "$get$colorsByName0", function() {
  90575. var _null = null;
  90576. return P.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", K.SassColor$rgb0(154, 205, 50, _null, _null), "yellow", K.SassColor$rgb0(255, 255, 0, _null, _null), "whitesmoke", K.SassColor$rgb0(245, 245, 245, _null, _null), "white", K.SassColor$rgb0(255, 255, 255, _null, _null), "wheat", K.SassColor$rgb0(245, 222, 179, _null, _null), "violet", K.SassColor$rgb0(238, 130, 238, _null, _null), "turquoise", K.SassColor$rgb0(64, 224, 208, _null, _null), "transparent", K.SassColor$rgb0(0, 0, 0, 0, _null), "tomato", K.SassColor$rgb0(255, 99, 71, _null, _null), "thistle", K.SassColor$rgb0(216, 191, 216, _null, _null), "teal", K.SassColor$rgb0(0, 128, 128, _null, _null), "tan", K.SassColor$rgb0(210, 180, 140, _null, _null), "steelblue", K.SassColor$rgb0(70, 130, 180, _null, _null), "springgreen", K.SassColor$rgb0(0, 255, 127, _null, _null), "snow", K.SassColor$rgb0(255, 250, 250, _null, _null), "slategrey", K.SassColor$rgb0(112, 128, 144, _null, _null), "slategray", K.SassColor$rgb0(112, 128, 144, _null, _null), "slateblue", K.SassColor$rgb0(106, 90, 205, _null, _null), "skyblue", K.SassColor$rgb0(135, 206, 235, _null, _null), "silver", K.SassColor$rgb0(192, 192, 192, _null, _null), "sienna", K.SassColor$rgb0(160, 82, 45, _null, _null), "seashell", K.SassColor$rgb0(255, 245, 238, _null, _null), "seagreen", K.SassColor$rgb0(46, 139, 87, _null, _null), "sandybrown", K.SassColor$rgb0(244, 164, 96, _null, _null), "salmon", K.SassColor$rgb0(250, 128, 114, _null, _null), "saddlebrown", K.SassColor$rgb0(139, 69, 19, _null, _null), "royalblue", K.SassColor$rgb0(65, 105, 225, _null, _null), "rosybrown", K.SassColor$rgb0(188, 143, 143, _null, _null), "red", K.SassColor$rgb0(255, 0, 0, _null, _null), "rebeccapurple", K.SassColor$rgb0(102, 51, 153, _null, _null), "purple", K.SassColor$rgb0(128, 0, 128, _null, _null), "powderblue", K.SassColor$rgb0(176, 224, 230, _null, _null), "plum", K.SassColor$rgb0(221, 160, 221, _null, _null), "pink", K.SassColor$rgb0(255, 192, 203, _null, _null), "peru", K.SassColor$rgb0(205, 133, 63, _null, _null), "peachpuff", K.SassColor$rgb0(255, 218, 185, _null, _null), "papayawhip", K.SassColor$rgb0(255, 239, 213, _null, _null), "palevioletred", K.SassColor$rgb0(219, 112, 147, _null, _null), "paleturquoise", K.SassColor$rgb0(175, 238, 238, _null, _null), "palegreen", K.SassColor$rgb0(152, 251, 152, _null, _null), "palegoldenrod", K.SassColor$rgb0(238, 232, 170, _null, _null), "orchid", K.SassColor$rgb0(218, 112, 214, _null, _null), "orangered", K.SassColor$rgb0(255, 69, 0, _null, _null), "orange", K.SassColor$rgb0(255, 165, 0, _null, _null), "olivedrab", K.SassColor$rgb0(107, 142, 35, _null, _null), "olive", K.SassColor$rgb0(128, 128, 0, _null, _null), "oldlace", K.SassColor$rgb0(253, 245, 230, _null, _null), "navy", K.SassColor$rgb0(0, 0, 128, _null, _null), "navajowhite", K.SassColor$rgb0(255, 222, 173, _null, _null), "moccasin", K.SassColor$rgb0(255, 228, 181, _null, _null), "mistyrose", K.SassColor$rgb0(255, 228, 225, _null, _null), "mintcream", K.SassColor$rgb0(245, 255, 250, _null, _null), "midnightblue", K.SassColor$rgb0(25, 25, 112, _null, _null), "mediumvioletred", K.SassColor$rgb0(199, 21, 133, _null, _null), "mediumturquoise", K.SassColor$rgb0(72, 209, 204, _null, _null), "mediumspringgreen", K.SassColor$rgb0(0, 250, 154, _null, _null), "mediumslateblue", K.SassColor$rgb0(123, 104, 238, _null, _null), "mediumseagreen", K.SassColor$rgb0(60, 179, 113, _null, _null), "mediumpurple", K.SassColor$rgb0(147, 112, 219, _null, _null), "mediumorchid", K.SassColor$rgb0(186, 85, 211, _null, _null), "mediumblue", K.SassColor$rgb0(0, 0, 205, _null, _null), "mediumaquamarine", K.SassColor$rgb0(102, 205, 170, _null, _null), "maroon", K.SassColor$rgb0(128, 0, 0, _null, _null), "magenta", K.SassColor$rgb0(255, 0, 255, _null, _null), "linen", K.SassColor$rgb0(250, 240, 230, _null, _null), "limegreen", K.SassColor$rgb0(50, 205, 50, _null, _null), "lime", K.SassColor$rgb0(0, 255, 0, _null, _null), "lightyellow", K.SassColor$rgb0(255, 255, 224, _null, _null), "lightsteelblue", K.SassColor$rgb0(176, 196, 222, _null, _null), "lightslategrey", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightslategray", K.SassColor$rgb0(119, 136, 153, _null, _null), "lightskyblue", K.SassColor$rgb0(135, 206, 250, _null, _null), "lightseagreen", K.SassColor$rgb0(32, 178, 170, _null, _null), "lightsalmon", K.SassColor$rgb0(255, 160, 122, _null, _null), "lightpink", K.SassColor$rgb0(255, 182, 193, _null, _null), "lightgrey", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgreen", K.SassColor$rgb0(144, 238, 144, _null, _null), "lightgray", K.SassColor$rgb0(211, 211, 211, _null, _null), "lightgoldenrodyellow", K.SassColor$rgb0(250, 250, 210, _null, _null), "lightcyan", K.SassColor$rgb0(224, 255, 255, _null, _null), "lightcoral", K.SassColor$rgb0(240, 128, 128, _null, _null), "lightblue", K.SassColor$rgb0(173, 216, 230, _null, _null), "lemonchiffon", K.SassColor$rgb0(255, 250, 205, _null, _null), "lawngreen", K.SassColor$rgb0(124, 252, 0, _null, _null), "lavenderblush", K.SassColor$rgb0(255, 240, 245, _null, _null), "lavender", K.SassColor$rgb0(230, 230, 250, _null, _null), "khaki", K.SassColor$rgb0(240, 230, 140, _null, _null), "ivory", K.SassColor$rgb0(255, 255, 240, _null, _null), "indigo", K.SassColor$rgb0(75, 0, 130, _null, _null), "indianred", K.SassColor$rgb0(205, 92, 92, _null, _null), "hotpink", K.SassColor$rgb0(255, 105, 180, _null, _null), "honeydew", K.SassColor$rgb0(240, 255, 240, _null, _null), "grey", K.SassColor$rgb0(128, 128, 128, _null, _null), "greenyellow", K.SassColor$rgb0(173, 255, 47, _null, _null), "green", K.SassColor$rgb0(0, 128, 0, _null, _null), "gray", K.SassColor$rgb0(128, 128, 128, _null, _null), "goldenrod", K.SassColor$rgb0(218, 165, 32, _null, _null), "gold", K.SassColor$rgb0(255, 215, 0, _null, _null), "ghostwhite", K.SassColor$rgb0(248, 248, 255, _null, _null), "gainsboro", K.SassColor$rgb0(220, 220, 220, _null, _null), "fuchsia", K.SassColor$rgb0(255, 0, 255, _null, _null), "forestgreen", K.SassColor$rgb0(34, 139, 34, _null, _null), "floralwhite", K.SassColor$rgb0(255, 250, 240, _null, _null), "firebrick", K.SassColor$rgb0(178, 34, 34, _null, _null), "dodgerblue", K.SassColor$rgb0(30, 144, 255, _null, _null), "dimgrey", K.SassColor$rgb0(105, 105, 105, _null, _null), "dimgray", K.SassColor$rgb0(105, 105, 105, _null, _null), "deepskyblue", K.SassColor$rgb0(0, 191, 255, _null, _null), "deeppink", K.SassColor$rgb0(255, 20, 147, _null, _null), "darkviolet", K.SassColor$rgb0(148, 0, 211, _null, _null), "darkturquoise", K.SassColor$rgb0(0, 206, 209, _null, _null), "darkslategrey", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslategray", K.SassColor$rgb0(47, 79, 79, _null, _null), "darkslateblue", K.SassColor$rgb0(72, 61, 139, _null, _null), "darkseagreen", K.SassColor$rgb0(143, 188, 143, _null, _null), "darksalmon", K.SassColor$rgb0(233, 150, 122, _null, _null), "darkred", K.SassColor$rgb0(139, 0, 0, _null, _null), "darkorchid", K.SassColor$rgb0(153, 50, 204, _null, _null), "darkorange", K.SassColor$rgb0(255, 140, 0, _null, _null), "darkolivegreen", K.SassColor$rgb0(85, 107, 47, _null, _null), "darkmagenta", K.SassColor$rgb0(139, 0, 139, _null, _null), "darkkhaki", K.SassColor$rgb0(189, 183, 107, _null, _null), "darkgrey", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgreen", K.SassColor$rgb0(0, 100, 0, _null, _null), "darkgray", K.SassColor$rgb0(169, 169, 169, _null, _null), "darkgoldenrod", K.SassColor$rgb0(184, 134, 11, _null, _null), "darkcyan", K.SassColor$rgb0(0, 139, 139, _null, _null), "darkblue", K.SassColor$rgb0(0, 0, 139, _null, _null), "cyan", K.SassColor$rgb0(0, 255, 255, _null, _null), "crimson", K.SassColor$rgb0(220, 20, 60, _null, _null), "cornsilk", K.SassColor$rgb0(255, 248, 220, _null, _null), "cornflowerblue", K.SassColor$rgb0(100, 149, 237, _null, _null), "coral", K.SassColor$rgb0(255, 127, 80, _null, _null), "chocolate", K.SassColor$rgb0(210, 105, 30, _null, _null), "chartreuse", K.SassColor$rgb0(127, 255, 0, _null, _null), "cadetblue", K.SassColor$rgb0(95, 158, 160, _null, _null), "burlywood", K.SassColor$rgb0(222, 184, 135, _null, _null), "brown", K.SassColor$rgb0(165, 42, 42, _null, _null), "blueviolet", K.SassColor$rgb0(138, 43, 226, _null, _null), "blue", K.SassColor$rgb0(0, 0, 255, _null, _null), "blanchedalmond", K.SassColor$rgb0(255, 235, 205, _null, _null), "black", K.SassColor$rgb0(0, 0, 0, _null, _null), "bisque", K.SassColor$rgb0(255, 228, 196, _null, _null), "beige", K.SassColor$rgb0(245, 245, 220, _null, _null), "azure", K.SassColor$rgb0(240, 255, 255, _null, _null), "aquamarine", K.SassColor$rgb0(127, 255, 212, _null, _null), "aqua", K.SassColor$rgb0(0, 255, 255, _null, _null), "antiquewhite", K.SassColor$rgb0(250, 235, 215, _null, _null), "aliceblue", K.SassColor$rgb0(240, 248, 255, _null, _null)], type$.legacy_String, type$.legacy_SassColor_2);
  90577. });
  90578. _lazyOld($, "namesByColor0", "$get$namesByColor0", function() {
  90579. var t2, t3,
  90580. t1 = P.LinkedHashMap_LinkedHashMap$_empty(type$.legacy_SassColor_2, type$.legacy_String);
  90581. for (t2 = $.$get$colorsByName0(), t2 = t2.get$entries(t2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  90582. t3 = t2.get$current(t2);
  90583. t1.$indexSet(0, t3.value, t3.key);
  90584. }
  90585. return t1;
  90586. });
  90587. _lazyOld($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", function() {
  90588. var t1 = $.$get$globalFunctions0();
  90589. t1 = t1.map$1$1(t1, new Q.closure227(), type$.legacy_String).toSet$0(0);
  90590. t1.add$1(0, "if");
  90591. t1.remove$1(0, "rgb");
  90592. t1.remove$1(0, "rgba");
  90593. t1.remove$1(0, "hsl");
  90594. t1.remove$1(0, "hsla");
  90595. t1.remove$1(0, "grayscale");
  90596. t1.remove$1(0, "invert");
  90597. t1.remove$1(0, "alpha");
  90598. t1.remove$1(0, "opacity");
  90599. t1.remove$1(0, "saturate");
  90600. return t1;
  90601. });
  90602. _lazyOld($, "globalFunctions0", "$get$globalFunctions0", function() {
  90603. var t2,
  90604. t1 = H.setRuntimeTypeInfo([], type$.JSArray_legacy_BuiltInCallable_2);
  90605. for (t2 = $.$get$global7(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90606. t1.push(t2.get$current(t2));
  90607. for (t2 = $.$get$global8(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90608. t1.push(t2.get$current(t2));
  90609. for (t2 = $.$get$global9(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90610. t1.push(t2.get$current(t2));
  90611. for (t2 = $.$get$global10(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90612. t1.push(t2.get$current(t2));
  90613. for (t2 = $.$get$global11(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90614. t1.push(t2.get$current(t2));
  90615. for (t2 = $.$get$global12(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90616. t1.push(t2.get$current(t2));
  90617. for (t2 = $.$get$global6(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  90618. t1.push(t2.get$current(t2));
  90619. t1.push(Q.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new Y.closure114(), null));
  90620. return P.UnmodifiableListView$(t1, type$.legacy_BuiltInCallable_2);
  90621. });
  90622. _lazyOld($, "coreModules0", "$get$coreModules0", function() {
  90623. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], type$.JSArray_legacy_BuiltInModule_legacy_BuiltInCallable_2), H.findType("BuiltInModule0<BuiltInCallable0*>*"));
  90624. });
  90625. _lazyOld($, "IfExpression_declaration0", "$get$IfExpression_declaration0", function() {
  90626. return B.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40funct, null);
  90627. });
  90628. _lazyOld($, "global7", "$get$global8", function() {
  90629. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0().withName$1("list-separator")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90630. });
  90631. _lazyOld($, "module6", "$get$module6", function() {
  90632. return Q.BuiltInModule$0("list", H.setRuntimeTypeInfo([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  90633. });
  90634. _lazyOld($, "_length1", "$get$_length2", function() {
  90635. return D._function10("length", "$list", new D.closure158());
  90636. });
  90637. _lazyOld($, "_nth0", "$get$_nth0", function() {
  90638. return D._function10("nth", "$list, $n", new D.closure157());
  90639. });
  90640. _lazyOld($, "_setNth0", "$get$_setNth0", function() {
  90641. return D._function10("set-nth", "$list, $n, $value", new D.closure156());
  90642. });
  90643. _lazyOld($, "_join0", "$get$_join0", function() {
  90644. return D._function10("join", string$.x24list1, new D.closure155());
  90645. });
  90646. _lazyOld($, "_append1", "$get$_append2", function() {
  90647. return D._function10("append", "$list, $val, $separator: auto", new D.closure154());
  90648. });
  90649. _lazyOld($, "_zip0", "$get$_zip0", function() {
  90650. return D._function10("zip", "$lists...", new D.closure153());
  90651. });
  90652. _lazyOld($, "_index1", "$get$_index2", function() {
  90653. return D._function10("index", "$list, $value", new D.closure152());
  90654. });
  90655. _lazyOld($, "_separator0", "$get$_separator0", function() {
  90656. return D._function10("separator", "$list", new D.closure150());
  90657. });
  90658. _lazyOld($, "_isBracketed0", "$get$_isBracketed0", function() {
  90659. return D._function10("is-bracketed", "$list", new D.closure151());
  90660. });
  90661. _lazyOld($, "listConstructor", "$get$listConstructor", function() {
  90662. return B.createClass("SassList", new D.closure246(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure247(), "setValue", new D.closure248(), "getSeparator", new D.closure249(), "setSeparator", new D.closure250(), "getLength", new D.closure251(), "toString", new D.closure252()], type$.legacy_String, type$.legacy_Function));
  90663. });
  90664. _lazyOld($, "global8", "$get$global9", function() {
  90665. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_get0().withName$1("map-get"), $.$get$_merge0().withName$1("map-merge"), $.$get$_remove0().withName$1("map-remove"), $.$get$_keys0().withName$1("map-keys"), $.$get$_values0().withName$1("map-values"), $.$get$_hasKey0().withName$1("map-has-key")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90666. });
  90667. _lazyOld($, "module7", "$get$module7", function() {
  90668. return Q.BuiltInModule$0("map", H.setRuntimeTypeInfo([$.$get$_get0(), $.$get$_set0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0(), $.$get$_deepMerge0(), $.$get$_deepRemove0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  90669. });
  90670. _lazyOld($, "_get0", "$get$_get0", function() {
  90671. return A._function9("get", "$map, $key, $keys...", new A.closure149());
  90672. });
  90673. _lazyOld($, "_set0", "$get$_set0", function() {
  90674. return Q.BuiltInCallable$overloadedFunction0("set", P.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A.closure212(), "$map, $args...", new A.closure213()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  90675. });
  90676. _lazyOld($, "_merge0", "$get$_merge0", function() {
  90677. return Q.BuiltInCallable$overloadedFunction0("merge", P.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A.closure147(), "$map1, $args...", new A.closure148()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  90678. });
  90679. _lazyOld($, "_deepMerge0", "$get$_deepMerge0", function() {
  90680. return A._function9("deep-merge", "$map1, $map2", new A.closure211());
  90681. });
  90682. _lazyOld($, "_deepRemove0", "$get$_deepRemove0", function() {
  90683. return A._function9("deep-remove", "$map, $key, $keys...", new A.closure210());
  90684. });
  90685. _lazyOld($, "_remove0", "$get$_remove0", function() {
  90686. return Q.BuiltInCallable$overloadedFunction0("remove", P.LinkedHashMap_LinkedHashMap$_literal(["$map", new A.closure145(), "$map, $key, $keys...", new A.closure146()], type$.legacy_String, type$.legacy_legacy_Value_Function_legacy_List_legacy_Value_2));
  90687. });
  90688. _lazyOld($, "_keys0", "$get$_keys0", function() {
  90689. return A._function9("keys", "$map", new A.closure144());
  90690. });
  90691. _lazyOld($, "_values0", "$get$_values0", function() {
  90692. return A._function9("values", "$map", new A.closure143());
  90693. });
  90694. _lazyOld($, "_hasKey0", "$get$_hasKey0", function() {
  90695. return A._function9("has-key", "$map, $key, $keys...", new A.closure142());
  90696. });
  90697. _lazyOld($, "mapConstructor", "$get$mapConstructor", function() {
  90698. return B.createClass("SassMap", new A.closure239(), P.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.closure240(), "getValue", new A.closure241(), "getLength", new A.closure242(), "setKey", new A.closure243(), "setValue", new A.closure244(), "toString", new A.closure245()], type$.legacy_String, type$.legacy_Function));
  90699. });
  90700. _lazyOld($, "global9", "$get$global10", function() {
  90701. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_abs0(), $.$get$_ceil0(), $.$get$_floor0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_unit0(), $.$get$_compatible0().withName$1("comparable"), $.$get$_isUnitless0().withName$1("unitless")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90702. });
  90703. _lazyOld($, "module8", "$get$module8", function() {
  90704. return Q.BuiltInModule$0("math", H.setRuntimeTypeInfo([$.$get$_abs0(), $.$get$_acos0(), $.$get$_asin0(), $.$get$_atan0(), $.$get$_atan20(), $.$get$_ceil0(), $.$get$_clamp0(), $.$get$_cos0(), $.$get$_compatible0(), $.$get$_floor0(), $.$get$_hypot0(), $.$get$_isUnitless0(), $.$get$_log0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_pow0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_sin0(), $.$get$_sqrt0(), $.$get$_tan0(), $.$get$_unit0()], type$.JSArray_legacy_BuiltInCallable_2), null, P.LinkedHashMap_LinkedHashMap$_literal(["e", T.SassNumber$0(2.718281828459045, null), "pi", T.SassNumber$0(3.141592653589793, null)], type$.legacy_String, type$.legacy_Value_2), type$.legacy_BuiltInCallable_2);
  90705. });
  90706. _lazyOld($, "_ceil0", "$get$_ceil0", function() {
  90707. return K._numberFunction0("ceil", new K.closure140());
  90708. });
  90709. _lazyOld($, "_clamp0", "$get$_clamp0", function() {
  90710. return K._function8("clamp", "$min, $number, $max", new K.closure205());
  90711. });
  90712. _lazyOld($, "_floor0", "$get$_floor0", function() {
  90713. return K._numberFunction0("floor", new K.closure139());
  90714. });
  90715. _lazyOld($, "_max0", "$get$_max0", function() {
  90716. return K._function8("max", "$numbers...", new K.closure138());
  90717. });
  90718. _lazyOld($, "_min0", "$get$_min0", function() {
  90719. return K._function8("min", "$numbers...", new K.closure137());
  90720. });
  90721. _lazyOld($, "_round0", "$get$_round0", function() {
  90722. return K._numberFunction0("round", T.number2__fuzzyRound$closure());
  90723. });
  90724. _lazyOld($, "_abs0", "$get$_abs0", function() {
  90725. return K._numberFunction0("abs", new K.closure141());
  90726. });
  90727. _lazyOld($, "_hypot0", "$get$_hypot0", function() {
  90728. return K._function8("hypot", "$numbers...", new K.closure203());
  90729. });
  90730. _lazyOld($, "_log0", "$get$_log0", function() {
  90731. return K._function8("log", "$number, $base: null", new K.closure202());
  90732. });
  90733. _lazyOld($, "_pow0", "$get$_pow0", function() {
  90734. return K._function8("pow", "$base, $exponent", new K.closure201());
  90735. });
  90736. _lazyOld($, "_sqrt0", "$get$_sqrt0", function() {
  90737. return K._function8("sqrt", "$number", new K.closure199());
  90738. });
  90739. _lazyOld($, "_acos0", "$get$_acos0", function() {
  90740. return K._function8("acos", "$number", new K.closure209());
  90741. });
  90742. _lazyOld($, "_asin0", "$get$_asin0", function() {
  90743. return K._function8("asin", "$number", new K.closure208());
  90744. });
  90745. _lazyOld($, "_atan0", "$get$_atan0", function() {
  90746. return K._function8("atan", "$number", new K.closure207());
  90747. });
  90748. _lazyOld($, "_atan20", "$get$_atan20", function() {
  90749. return K._function8("atan2", "$y, $x", new K.closure206());
  90750. });
  90751. _lazyOld($, "_cos0", "$get$_cos0", function() {
  90752. return K._function8("cos", "$number", new K.closure204());
  90753. });
  90754. _lazyOld($, "_sin0", "$get$_sin0", function() {
  90755. return K._function8("sin", "$number", new K.closure200());
  90756. });
  90757. _lazyOld($, "_tan0", "$get$_tan0", function() {
  90758. return K._function8("tan", "$number", new K.closure198());
  90759. });
  90760. _lazyOld($, "_compatible0", "$get$_compatible0", function() {
  90761. return K._function8("compatible", "$number1, $number2", new K.closure133());
  90762. });
  90763. _lazyOld($, "_isUnitless0", "$get$_isUnitless0", function() {
  90764. return K._function8("is-unitless", "$number", new K.closure132());
  90765. });
  90766. _lazyOld($, "_unit0", "$get$_unit0", function() {
  90767. return K._function8("unit", "$number", new K.closure134());
  90768. });
  90769. _lazyOld($, "_percentage0", "$get$_percentage0", function() {
  90770. return K._function8("percentage", "$number", new K.closure136());
  90771. });
  90772. _lazyOld($, "_random1", "$get$_random2", function() {
  90773. return P.Random_Random();
  90774. });
  90775. _lazyOld($, "_randomFunction0", "$get$_randomFunction0", function() {
  90776. return K._function8("random", "$limit: null", new K.closure135());
  90777. });
  90778. _lazyOld($, "global10", "$get$global6", function() {
  90779. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([Q._function12("feature-exists", "$feature", new Q.closure223()), Q._function12("inspect", "$value", new Q.closure224()), Q._function12("type-of", "$value", new Q.closure225()), Q._function12("keywords", "$args", new Q.closure226())], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90780. });
  90781. _lazyOld($, "stderr0", "$get$stderr0", function() {
  90782. return new B.Stderr0(J.get$stderr$x(self.process));
  90783. });
  90784. _lazyOld($, "nullConstructor", "$get$nullConstructor", function() {
  90785. return new O.closure238().call$0();
  90786. });
  90787. _lazyOld($, "epsilon0", "$get$epsilon0", function() {
  90788. return P.pow(10, -11);
  90789. });
  90790. _lazyOld($, "_inverseEpsilon0", "$get$_inverseEpsilon0", function() {
  90791. return 1 / $.$get$epsilon0();
  90792. });
  90793. _lazyOld($, "numberConstructor", "$get$numberConstructor", function() {
  90794. return B.createClass("SassNumber", new T.closure232(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new T.closure233(), "setValue", new T.closure234(), "getUnit", new T.closure235(), "setUnit", new T.closure236(), "toString", new T.closure237()], type$.legacy_String, type$.legacy_Function));
  90795. });
  90796. _lazyOld($, "_typesByUnit0", "$get$_typesByUnit0", function() {
  90797. var t2, t3, t4,
  90798. t1 = type$.legacy_String;
  90799. t1 = P.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  90800. for (t2 = C.Map_U8AHF.get$entries(C.Map_U8AHF), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  90801. t3 = t2.get$current(t2);
  90802. for (t4 = J.get$iterator$ax(t3.value), t3 = t3.key; t4.moveNext$0();)
  90803. t1.$indexSet(0, t4.get$current(t4), t3);
  90804. }
  90805. return t1;
  90806. });
  90807. _lazyOld($, "global11", "$get$global11", function() {
  90808. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0().withName$1("selector-parse"), $.$get$_nest0().withName$1("selector-nest"), $.$get$_append1().withName$1("selector-append"), $.$get$_extend0().withName$1("selector-extend"), $.$get$_replace0().withName$1("selector-replace"), $.$get$_unify0().withName$1("selector-unify")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90809. });
  90810. _lazyOld($, "module9", "$get$module9", function() {
  90811. return Q.BuiltInModule$0("selector", H.setRuntimeTypeInfo([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  90812. });
  90813. _lazyOld($, "_nest0", "$get$_nest0", function() {
  90814. return T._function7("nest", "$selectors...", new T.closure128());
  90815. });
  90816. _lazyOld($, "_append2", "$get$_append1", function() {
  90817. return T._function7("append", "$selectors...", new T.closure127());
  90818. });
  90819. _lazyOld($, "_extend0", "$get$_extend0", function() {
  90820. return T._function7("extend", "$selector, $extendee, $extender", new T.closure126());
  90821. });
  90822. _lazyOld($, "_replace0", "$get$_replace0", function() {
  90823. return T._function7("replace", "$selector, $original, $replacement", new T.closure125());
  90824. });
  90825. _lazyOld($, "_unify0", "$get$_unify0", function() {
  90826. return T._function7("unify", "$selector1, $selector2", new T.closure124());
  90827. });
  90828. _lazyOld($, "_isSuperselector0", "$get$_isSuperselector0", function() {
  90829. return T._function7("is-superselector", "$super, $sub", new T.closure131());
  90830. });
  90831. _lazyOld($, "_simpleSelectors0", "$get$_simpleSelectors0", function() {
  90832. return T._function7("simple-selectors", "$selector", new T.closure130());
  90833. });
  90834. _lazyOld($, "_parse0", "$get$_parse0", function() {
  90835. return T._function7("parse", "$selector", new T.closure129());
  90836. });
  90837. _lazyOld($, "_random2", "$get$_random1", function() {
  90838. return P.Random_Random();
  90839. });
  90840. _lazyOld($, "_previousUniqueId0", "$get$_previousUniqueId0", function() {
  90841. return $.$get$_random1().nextInt$1(H._asIntS(P.pow(36, 6)));
  90842. });
  90843. _lazyOld($, "global12", "$get$global12", function() {
  90844. return P.UnmodifiableListView$(H.setRuntimeTypeInfo([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_uniqueId0(), $.$get$_length1().withName$1("str-length"), $.$get$_insert0().withName$1("str-insert"), $.$get$_index1().withName$1("str-index"), $.$get$_slice0().withName$1("str-slice")], type$.JSArray_legacy_BuiltInCallable_2), type$.legacy_BuiltInCallable_2);
  90845. });
  90846. _lazyOld($, "module10", "$get$module10", function() {
  90847. return Q.BuiltInModule$0("string", H.setRuntimeTypeInfo([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0()], type$.JSArray_legacy_BuiltInCallable_2), null, null, type$.legacy_BuiltInCallable_2);
  90848. });
  90849. _lazyOld($, "_unquote0", "$get$_unquote0", function() {
  90850. return D._function6("unquote", "$string", new D.closure123());
  90851. });
  90852. _lazyOld($, "_quote0", "$get$_quote0", function() {
  90853. return D._function6("quote", "$string", new D.closure122());
  90854. });
  90855. _lazyOld($, "_length2", "$get$_length1", function() {
  90856. return D._function6("length", "$string", new D.closure118());
  90857. });
  90858. _lazyOld($, "_insert0", "$get$_insert0", function() {
  90859. return D._function6("insert", "$string, $insert, $index", new D.closure117());
  90860. });
  90861. _lazyOld($, "_index2", "$get$_index1", function() {
  90862. return D._function6("index", "$string, $substring", new D.closure116());
  90863. });
  90864. _lazyOld($, "_slice0", "$get$_slice0", function() {
  90865. return D._function6("slice", "$string, $start-at, $end-at: -1", new D.closure115());
  90866. });
  90867. _lazyOld($, "_toUpperCase0", "$get$_toUpperCase0", function() {
  90868. return D._function6("to-upper-case", "$string", new D.closure121());
  90869. });
  90870. _lazyOld($, "_toLowerCase0", "$get$_toLowerCase0", function() {
  90871. return D._function6("to-lower-case", "$string", new D.closure120());
  90872. });
  90873. _lazyOld($, "_uniqueId0", "$get$_uniqueId0", function() {
  90874. return D._function6("unique-id", "", new D.closure119());
  90875. });
  90876. _lazyOld($, "stringConstructor", "$get$stringConstructor", function() {
  90877. return B.createClass("SassString", new D.closure228(), P.LinkedHashMap_LinkedHashMap$_literal(["getValue", new D.closure229(), "setValue", new D.closure230(), "toString", new D.closure231()], type$.legacy_String, type$.legacy_Function));
  90878. });
  90879. _lazyOld($, "_emptyQuoted0", "$get$_emptyQuoted0", function() {
  90880. return D.SassString$0("", true);
  90881. });
  90882. _lazyOld($, "_emptyUnquoted0", "$get$_emptyUnquoted0", function() {
  90883. return D.SassString$0("", false);
  90884. });
  90885. _lazyOld($, "_jsThrow", "$get$_jsThrow", function() {
  90886. return new self.Function("error", "throw error;");
  90887. });
  90888. _lazyOld($, "_isUndefined", "$get$_isUndefined", function() {
  90889. return new self.Function("value", "return value === undefined;");
  90890. });
  90891. _lazyOld($, "_jsInstanceOf", "$get$_jsInstanceOf", function() {
  90892. return new self.Function("value", "type", "return value instanceof type;");
  90893. });
  90894. _lazyOld($, "_noSourceUrl0", "$get$_noSourceUrl0", function() {
  90895. return P.Uri_parse("-");
  90896. });
  90897. })();
  90898. (function nativeSupport() {
  90899. !function() {
  90900. var intern = function(s) {
  90901. var o = {};
  90902. o[s] = 1;
  90903. return Object.keys(hunkHelpers.convertToFastObject(o))[0];
  90904. };
  90905. init.getIsolateTag = function(name) {
  90906. return intern("___dart_" + name + init.isolateTag);
  90907. };
  90908. var tableProperty = "___dart_isolate_tags_";
  90909. var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
  90910. var rootProperty = "_ZxYxX";
  90911. for (var i = 0;; i++) {
  90912. var property = intern(rootProperty + "_" + i + "_");
  90913. if (!(property in usedProperties)) {
  90914. usedProperties[property] = 1;
  90915. init.isolateTag = property;
  90916. break;
  90917. }
  90918. }
  90919. init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
  90920. }();
  90921. hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: J.Interceptor, DataView: H.NativeTypedData, ArrayBufferView: H.NativeTypedData, Float32Array: H.NativeFloat32List, Float64Array: H.NativeFloat64List, Int16Array: H.NativeInt16List, Int32Array: H.NativeInt32List, Int8Array: H.NativeInt8List, Uint16Array: H.NativeUint16List, Uint32Array: H.NativeUint32List, Uint8ClampedArray: H.NativeUint8ClampedList, CanvasPixelArray: H.NativeUint8ClampedList, Uint8Array: H.NativeUint8List});
  90922. hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, DataView: true, ArrayBufferView: false, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false});
  90923. H.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
  90924. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  90925. H._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  90926. H.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
  90927. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  90928. H._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  90929. H.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
  90930. })();
  90931. Function.prototype.call$2 = function(a, b) {
  90932. return this(a, b);
  90933. };
  90934. Function.prototype.call$1 = function(a) {
  90935. return this(a);
  90936. };
  90937. Function.prototype.call$0 = function() {
  90938. return this();
  90939. };
  90940. Function.prototype.call$3$1 = function(a) {
  90941. return this(a);
  90942. };
  90943. Function.prototype.call$2$1 = function(a) {
  90944. return this(a);
  90945. };
  90946. Function.prototype.call$1$1 = function(a) {
  90947. return this(a);
  90948. };
  90949. Function.prototype.call$3 = function(a, b, c) {
  90950. return this(a, b, c);
  90951. };
  90952. Function.prototype.call$4 = function(a, b, c, d) {
  90953. return this(a, b, c, d);
  90954. };
  90955. Function.prototype.call$3$3 = function(a, b, c) {
  90956. return this(a, b, c);
  90957. };
  90958. Function.prototype.call$2$2 = function(a, b) {
  90959. return this(a, b);
  90960. };
  90961. Function.prototype.call$6 = function(a, b, c, d, e, f) {
  90962. return this(a, b, c, d, e, f);
  90963. };
  90964. Function.prototype.call$5 = function(a, b, c, d, e) {
  90965. return this(a, b, c, d, e);
  90966. };
  90967. Function.prototype.call$1$3 = function(a, b, c) {
  90968. return this(a, b, c);
  90969. };
  90970. Function.prototype.call$2$3 = function(a, b, c) {
  90971. return this(a, b, c);
  90972. };
  90973. Function.prototype.call$1$2 = function(a, b) {
  90974. return this(a, b);
  90975. };
  90976. Function.prototype.call$1$0 = function() {
  90977. return this();
  90978. };
  90979. convertAllToFastObject(holders);
  90980. convertToFastObject($);
  90981. (function(callback) {
  90982. if (typeof document === "undefined") {
  90983. callback(null);
  90984. return;
  90985. }
  90986. if (typeof document.currentScript != 'undefined') {
  90987. callback(document.currentScript);
  90988. return;
  90989. }
  90990. var scripts = document.scripts;
  90991. function onLoad(event) {
  90992. for (var i = 0; i < scripts.length; ++i)
  90993. scripts[i].removeEventListener("load", onLoad, false);
  90994. callback(event.target);
  90995. }
  90996. for (var i = 0; i < scripts.length; ++i)
  90997. scripts[i].addEventListener("load", onLoad, false);
  90998. })(function(currentScript) {
  90999. init.currentScript = currentScript;
  91000. if (typeof dartMainRunner === "function")
  91001. dartMainRunner(R.main0, []);
  91002. else
  91003. R.main0([]);
  91004. });
  91005. })();