vendor.js 1.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook) {
  243. return function (data) {
  244. return hook(data) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook));
  256. } else {
  257. var res = hook(data);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  330. });
  331. } else {
  332. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  333. }
  334. }
  335. return api.apply(void 0, [options].concat(params));
  336. }
  337. var promiseInterceptor = {
  338. returnValue: function returnValue(res) {
  339. if (!isPromise(res)) {
  340. return res;
  341. }
  342. return new Promise(function (resolve, reject) {
  343. res.then(function (res) {
  344. if (res[0]) {
  345. reject(res[0]);
  346. } else {
  347. resolve(res[1]);
  348. }
  349. });
  350. });
  351. }
  352. };
  353. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  354. var CONTEXT_API_RE = /^create|Manager$/;
  355. // Context例外情况
  356. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  357. // 同步例外情况
  358. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  359. var CALLBACK_API_RE = /^on|^off/;
  360. function isContextApi(name) {
  361. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  362. }
  363. function isSyncApi(name) {
  364. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  365. }
  366. function isCallbackApi(name) {
  367. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  368. }
  369. function handlePromise(promise) {
  370. return promise.then(function (data) {
  371. return [null, data];
  372. }).catch(function (err) {
  373. return [err];
  374. });
  375. }
  376. function shouldPromise(name) {
  377. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  378. return false;
  379. }
  380. return true;
  381. }
  382. /* eslint-disable no-extend-native */
  383. if (!Promise.prototype.finally) {
  384. Promise.prototype.finally = function (callback) {
  385. var promise = this.constructor;
  386. return this.then(function (value) {
  387. return promise.resolve(callback()).then(function () {
  388. return value;
  389. });
  390. }, function (reason) {
  391. return promise.resolve(callback()).then(function () {
  392. throw reason;
  393. });
  394. });
  395. };
  396. }
  397. function promisify(name, api) {
  398. if (!shouldPromise(name) || !isFn(api)) {
  399. return api;
  400. }
  401. return function promiseApi() {
  402. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  403. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  404. params[_key2 - 1] = arguments[_key2];
  405. }
  406. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  407. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  408. }
  409. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  410. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  411. success: resolve,
  412. fail: reject
  413. })].concat(params));
  414. })));
  415. };
  416. }
  417. var EPS = 1e-4;
  418. var BASE_DEVICE_WIDTH = 750;
  419. var isIOS = false;
  420. var deviceWidth = 0;
  421. var deviceDPR = 0;
  422. function checkDeviceWidth() {
  423. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  424. platform = _wx$getSystemInfoSync.platform,
  425. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  426. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  427. deviceWidth = windowWidth;
  428. deviceDPR = pixelRatio;
  429. isIOS = platform === 'ios';
  430. }
  431. function upx2px(number, newDeviceWidth) {
  432. if (deviceWidth === 0) {
  433. checkDeviceWidth();
  434. }
  435. number = Number(number);
  436. if (number === 0) {
  437. return 0;
  438. }
  439. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  440. if (result < 0) {
  441. result = -result;
  442. }
  443. result = Math.floor(result + EPS);
  444. if (result === 0) {
  445. if (deviceDPR === 1 || !isIOS) {
  446. result = 1;
  447. } else {
  448. result = 0.5;
  449. }
  450. }
  451. return number < 0 ? -result : result;
  452. }
  453. var LOCALE_ZH_HANS = 'zh-Hans';
  454. var LOCALE_ZH_HANT = 'zh-Hant';
  455. var LOCALE_EN = 'en';
  456. var LOCALE_FR = 'fr';
  457. var LOCALE_ES = 'es';
  458. var messages = {};
  459. var locale;
  460. {
  461. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  462. }
  463. function initI18nMessages() {
  464. if (!isEnableLocale()) {
  465. return;
  466. }
  467. var localeKeys = Object.keys(__uniConfig.locales);
  468. if (localeKeys.length) {
  469. localeKeys.forEach(function (locale) {
  470. var curMessages = messages[locale];
  471. var userMessages = __uniConfig.locales[locale];
  472. if (curMessages) {
  473. Object.assign(curMessages, userMessages);
  474. } else {
  475. messages[locale] = userMessages;
  476. }
  477. });
  478. }
  479. }
  480. initI18nMessages();
  481. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  482. var t = i18n.t;
  483. var i18nMixin = i18n.mixin = {
  484. beforeCreate: function beforeCreate() {
  485. var _this = this;
  486. var unwatch = i18n.i18n.watchLocale(function () {
  487. _this.$forceUpdate();
  488. });
  489. this.$once('hook:beforeDestroy', function () {
  490. unwatch();
  491. });
  492. },
  493. methods: {
  494. $$t: function $$t(key, values) {
  495. return t(key, values);
  496. }
  497. }
  498. };
  499. var setLocale = i18n.setLocale;
  500. var getLocale = i18n.getLocale;
  501. function initAppLocale(Vue, appVm, locale) {
  502. var state = Vue.observable({
  503. locale: locale || i18n.getLocale()
  504. });
  505. var localeWatchers = [];
  506. appVm.$watchLocale = function (fn) {
  507. localeWatchers.push(fn);
  508. };
  509. Object.defineProperty(appVm, '$locale', {
  510. get: function get() {
  511. return state.locale;
  512. },
  513. set: function set(v) {
  514. state.locale = v;
  515. localeWatchers.forEach(function (watch) {
  516. return watch(v);
  517. });
  518. }
  519. });
  520. }
  521. function isEnableLocale() {
  522. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  523. }
  524. function include(str, parts) {
  525. return !!parts.find(function (part) {
  526. return str.indexOf(part) !== -1;
  527. });
  528. }
  529. function startsWith(str, parts) {
  530. return parts.find(function (part) {
  531. return str.indexOf(part) === 0;
  532. });
  533. }
  534. function normalizeLocale(locale, messages) {
  535. if (!locale) {
  536. return;
  537. }
  538. locale = locale.trim().replace(/_/g, '-');
  539. if (messages && messages[locale]) {
  540. return locale;
  541. }
  542. locale = locale.toLowerCase();
  543. if (locale === 'chinese') {
  544. // 支付宝
  545. return LOCALE_ZH_HANS;
  546. }
  547. if (locale.indexOf('zh') === 0) {
  548. if (locale.indexOf('-hans') > -1) {
  549. return LOCALE_ZH_HANS;
  550. }
  551. if (locale.indexOf('-hant') > -1) {
  552. return LOCALE_ZH_HANT;
  553. }
  554. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  555. return LOCALE_ZH_HANT;
  556. }
  557. return LOCALE_ZH_HANS;
  558. }
  559. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  560. if (lang) {
  561. return lang;
  562. }
  563. }
  564. // export function initI18n() {
  565. // const localeKeys = Object.keys(__uniConfig.locales || {})
  566. // if (localeKeys.length) {
  567. // localeKeys.forEach((locale) =>
  568. // i18n.add(locale, __uniConfig.locales[locale])
  569. // )
  570. // }
  571. // }
  572. function getLocale$1() {
  573. // 优先使用 $locale
  574. if (isFn(getApp)) {
  575. var app = getApp({
  576. allowDefault: true
  577. });
  578. if (app && app.$vm) {
  579. return app.$vm.$locale;
  580. }
  581. }
  582. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  583. }
  584. function setLocale$1(locale) {
  585. var app = isFn(getApp) ? getApp() : false;
  586. if (!app) {
  587. return false;
  588. }
  589. var oldLocale = app.$vm.$locale;
  590. if (oldLocale !== locale) {
  591. app.$vm.$locale = locale;
  592. onLocaleChangeCallbacks.forEach(function (fn) {
  593. return fn({
  594. locale: locale
  595. });
  596. });
  597. return true;
  598. }
  599. return false;
  600. }
  601. var onLocaleChangeCallbacks = [];
  602. function onLocaleChange(fn) {
  603. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  604. onLocaleChangeCallbacks.push(fn);
  605. }
  606. }
  607. if (typeof global !== 'undefined') {
  608. global.getLocale = getLocale$1;
  609. }
  610. var interceptors = {
  611. promiseInterceptor: promiseInterceptor
  612. };
  613. var baseApi = /*#__PURE__*/Object.freeze({
  614. __proto__: null,
  615. upx2px: upx2px,
  616. getLocale: getLocale$1,
  617. setLocale: setLocale$1,
  618. onLocaleChange: onLocaleChange,
  619. addInterceptor: addInterceptor,
  620. removeInterceptor: removeInterceptor,
  621. interceptors: interceptors
  622. });
  623. function findExistsPageIndex(url) {
  624. var pages = getCurrentPages();
  625. var len = pages.length;
  626. while (len--) {
  627. var page = pages[len];
  628. if (page.$page && page.$page.fullPath === url) {
  629. return len;
  630. }
  631. }
  632. return -1;
  633. }
  634. var redirectTo = {
  635. name: function name(fromArgs) {
  636. if (fromArgs.exists === 'back' && fromArgs.delta) {
  637. return 'navigateBack';
  638. }
  639. return 'redirectTo';
  640. },
  641. args: function args(fromArgs) {
  642. if (fromArgs.exists === 'back' && fromArgs.url) {
  643. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  644. if (existsPageIndex !== -1) {
  645. var delta = getCurrentPages().length - 1 - existsPageIndex;
  646. if (delta > 0) {
  647. fromArgs.delta = delta;
  648. }
  649. }
  650. }
  651. }
  652. };
  653. var previewImage = {
  654. args: function args(fromArgs) {
  655. var currentIndex = parseInt(fromArgs.current);
  656. if (isNaN(currentIndex)) {
  657. return;
  658. }
  659. var urls = fromArgs.urls;
  660. if (!Array.isArray(urls)) {
  661. return;
  662. }
  663. var len = urls.length;
  664. if (!len) {
  665. return;
  666. }
  667. if (currentIndex < 0) {
  668. currentIndex = 0;
  669. } else if (currentIndex >= len) {
  670. currentIndex = len - 1;
  671. }
  672. if (currentIndex > 0) {
  673. fromArgs.current = urls[currentIndex];
  674. fromArgs.urls = urls.filter(function (item, index) {
  675. return index < currentIndex ? item !== urls[currentIndex] : true;
  676. });
  677. } else {
  678. fromArgs.current = urls[0];
  679. }
  680. return {
  681. indicator: false,
  682. loop: false
  683. };
  684. }
  685. };
  686. var UUID_KEY = '__DC_STAT_UUID';
  687. var deviceId;
  688. function useDeviceId(result) {
  689. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  690. if (!deviceId) {
  691. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  692. wx.setStorage({
  693. key: UUID_KEY,
  694. data: deviceId
  695. });
  696. }
  697. result.deviceId = deviceId;
  698. }
  699. function addSafeAreaInsets(result) {
  700. if (result.safeArea) {
  701. var safeArea = result.safeArea;
  702. result.safeAreaInsets = {
  703. top: safeArea.top,
  704. left: safeArea.left,
  705. right: result.windowWidth - safeArea.right,
  706. bottom: result.screenHeight - safeArea.bottom
  707. };
  708. }
  709. }
  710. function populateParameters(result) {
  711. var _result$brand = result.brand,
  712. brand = _result$brand === void 0 ? '' : _result$brand,
  713. _result$model = result.model,
  714. model = _result$model === void 0 ? '' : _result$model,
  715. _result$system = result.system,
  716. system = _result$system === void 0 ? '' : _result$system,
  717. _result$language = result.language,
  718. language = _result$language === void 0 ? '' : _result$language,
  719. theme = result.theme,
  720. version = result.version,
  721. platform = result.platform,
  722. fontSizeSetting = result.fontSizeSetting,
  723. SDKVersion = result.SDKVersion,
  724. pixelRatio = result.pixelRatio,
  725. deviceOrientation = result.deviceOrientation;
  726. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  727. var extraParam = {};
  728. // osName osVersion
  729. var osName = '';
  730. var osVersion = '';
  731. {
  732. osName = system.split(' ')[0] || '';
  733. osVersion = system.split(' ')[1] || '';
  734. }
  735. var hostVersion = version;
  736. // deviceType
  737. var deviceType = getGetDeviceType(result, model);
  738. // deviceModel
  739. var deviceBrand = getDeviceBrand(brand);
  740. // hostName
  741. var _hostName = getHostName(result);
  742. // deviceOrientation
  743. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  744. // devicePixelRatio
  745. var _devicePixelRatio = pixelRatio;
  746. // SDKVersion
  747. var _SDKVersion = SDKVersion;
  748. // hostLanguage
  749. var hostLanguage = language.replace(/_/g, '-');
  750. // wx.getAccountInfoSync
  751. var parameters = {
  752. appId: "__UNI__2080341",
  753. appName: "自由天空",
  754. appVersion: "1.1.5",
  755. appVersionCode: "115",
  756. appLanguage: getAppLanguage(hostLanguage),
  757. uniCompileVersion: "3.7.3",
  758. uniRuntimeVersion: "3.7.3",
  759. uniPlatform: undefined || "mp-weixin",
  760. deviceBrand: deviceBrand,
  761. deviceModel: model,
  762. deviceType: deviceType,
  763. devicePixelRatio: _devicePixelRatio,
  764. deviceOrientation: _deviceOrientation,
  765. osName: osName.toLocaleLowerCase(),
  766. osVersion: osVersion,
  767. hostTheme: theme,
  768. hostVersion: hostVersion,
  769. hostLanguage: hostLanguage,
  770. hostName: _hostName,
  771. hostSDKVersion: _SDKVersion,
  772. hostFontSizeSetting: fontSizeSetting,
  773. windowTop: 0,
  774. windowBottom: 0,
  775. // TODO
  776. osLanguage: undefined,
  777. osTheme: undefined,
  778. ua: undefined,
  779. hostPackageName: undefined,
  780. browserName: undefined,
  781. browserVersion: undefined
  782. };
  783. Object.assign(result, parameters, extraParam);
  784. }
  785. function getGetDeviceType(result, model) {
  786. var deviceType = result.deviceType || 'phone';
  787. {
  788. var deviceTypeMaps = {
  789. ipad: 'pad',
  790. windows: 'pc',
  791. mac: 'pc'
  792. };
  793. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  794. var _model = model.toLocaleLowerCase();
  795. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  796. var _m = deviceTypeMapsKeys[index];
  797. if (_model.indexOf(_m) !== -1) {
  798. deviceType = deviceTypeMaps[_m];
  799. break;
  800. }
  801. }
  802. }
  803. return deviceType;
  804. }
  805. function getDeviceBrand(brand) {
  806. var deviceBrand = brand;
  807. if (deviceBrand) {
  808. deviceBrand = brand.toLocaleLowerCase();
  809. }
  810. return deviceBrand;
  811. }
  812. function getAppLanguage(defaultLanguage) {
  813. return getLocale$1 ? getLocale$1() : defaultLanguage;
  814. }
  815. function getHostName(result) {
  816. var _platform = 'WeChat';
  817. var _hostName = result.hostName || _platform; // mp-jd
  818. {
  819. if (result.environment) {
  820. _hostName = result.environment;
  821. } else if (result.host && result.host.env) {
  822. _hostName = result.host.env;
  823. }
  824. }
  825. return _hostName;
  826. }
  827. var getSystemInfo = {
  828. returnValue: function returnValue(result) {
  829. useDeviceId(result);
  830. addSafeAreaInsets(result);
  831. populateParameters(result);
  832. }
  833. };
  834. var showActionSheet = {
  835. args: function args(fromArgs) {
  836. if ((0, _typeof2.default)(fromArgs) === 'object') {
  837. fromArgs.alertText = fromArgs.title;
  838. }
  839. }
  840. };
  841. var getAppBaseInfo = {
  842. returnValue: function returnValue(result) {
  843. var _result = result,
  844. version = _result.version,
  845. language = _result.language,
  846. SDKVersion = _result.SDKVersion,
  847. theme = _result.theme;
  848. var _hostName = getHostName(result);
  849. var hostLanguage = language.replace('_', '-');
  850. result = sortObject(Object.assign(result, {
  851. appId: "__UNI__2080341",
  852. appName: "自由天空",
  853. appVersion: "1.1.5",
  854. appVersionCode: "115",
  855. appLanguage: getAppLanguage(hostLanguage),
  856. hostVersion: version,
  857. hostLanguage: hostLanguage,
  858. hostName: _hostName,
  859. hostSDKVersion: SDKVersion,
  860. hostTheme: theme
  861. }));
  862. }
  863. };
  864. var getDeviceInfo = {
  865. returnValue: function returnValue(result) {
  866. var _result2 = result,
  867. brand = _result2.brand,
  868. model = _result2.model;
  869. var deviceType = getGetDeviceType(result, model);
  870. var deviceBrand = getDeviceBrand(brand);
  871. useDeviceId(result);
  872. result = sortObject(Object.assign(result, {
  873. deviceType: deviceType,
  874. deviceBrand: deviceBrand,
  875. deviceModel: model
  876. }));
  877. }
  878. };
  879. var getWindowInfo = {
  880. returnValue: function returnValue(result) {
  881. addSafeAreaInsets(result);
  882. result = sortObject(Object.assign(result, {
  883. windowTop: 0,
  884. windowBottom: 0
  885. }));
  886. }
  887. };
  888. var getAppAuthorizeSetting = {
  889. returnValue: function returnValue(result) {
  890. var locationReducedAccuracy = result.locationReducedAccuracy;
  891. result.locationAccuracy = 'unsupported';
  892. if (locationReducedAccuracy === true) {
  893. result.locationAccuracy = 'reduced';
  894. } else if (locationReducedAccuracy === false) {
  895. result.locationAccuracy = 'full';
  896. }
  897. }
  898. };
  899. // import navigateTo from 'uni-helpers/navigate-to'
  900. var compressImage = {
  901. args: function args(fromArgs) {
  902. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  903. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  904. fromArgs.compressHeight = fromArgs.compressedHeight;
  905. }
  906. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  907. fromArgs.compressWidth = fromArgs.compressedWidth;
  908. }
  909. }
  910. };
  911. var protocols = {
  912. redirectTo: redirectTo,
  913. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  914. previewImage: previewImage,
  915. getSystemInfo: getSystemInfo,
  916. getSystemInfoSync: getSystemInfo,
  917. showActionSheet: showActionSheet,
  918. getAppBaseInfo: getAppBaseInfo,
  919. getDeviceInfo: getDeviceInfo,
  920. getWindowInfo: getWindowInfo,
  921. getAppAuthorizeSetting: getAppAuthorizeSetting,
  922. compressImage: compressImage
  923. };
  924. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  925. var canIUses = [];
  926. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  927. function processCallback(methodName, method, returnValue) {
  928. return function (res) {
  929. return method(processReturnValue(methodName, res, returnValue));
  930. };
  931. }
  932. function processArgs(methodName, fromArgs) {
  933. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  934. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  935. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  936. if (isPlainObject(fromArgs)) {
  937. // 一般 api 的参数解析
  938. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  939. if (isFn(argsOption)) {
  940. argsOption = argsOption(fromArgs, toArgs) || {};
  941. }
  942. for (var key in fromArgs) {
  943. if (hasOwn(argsOption, key)) {
  944. var keyOption = argsOption[key];
  945. if (isFn(keyOption)) {
  946. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  947. }
  948. if (!keyOption) {
  949. // 不支持的参数
  950. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  951. } else if (isStr(keyOption)) {
  952. // 重写参数 key
  953. toArgs[keyOption] = fromArgs[key];
  954. } else if (isPlainObject(keyOption)) {
  955. // {name:newName,value:value}可重新指定参数 key:value
  956. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  957. }
  958. } else if (CALLBACKS.indexOf(key) !== -1) {
  959. if (isFn(fromArgs[key])) {
  960. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  961. }
  962. } else {
  963. if (!keepFromArgs) {
  964. toArgs[key] = fromArgs[key];
  965. }
  966. }
  967. }
  968. return toArgs;
  969. } else if (isFn(fromArgs)) {
  970. fromArgs = processCallback(methodName, fromArgs, returnValue);
  971. }
  972. return fromArgs;
  973. }
  974. function processReturnValue(methodName, res, returnValue) {
  975. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  976. if (isFn(protocols.returnValue)) {
  977. // 处理通用 returnValue
  978. res = protocols.returnValue(methodName, res);
  979. }
  980. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  981. }
  982. function wrapper(methodName, method) {
  983. if (hasOwn(protocols, methodName)) {
  984. var protocol = protocols[methodName];
  985. if (!protocol) {
  986. // 暂不支持的 api
  987. return function () {
  988. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  989. };
  990. }
  991. return function (arg1, arg2) {
  992. // 目前 api 最多两个参数
  993. var options = protocol;
  994. if (isFn(protocol)) {
  995. options = protocol(arg1);
  996. }
  997. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  998. var args = [arg1];
  999. if (typeof arg2 !== 'undefined') {
  1000. args.push(arg2);
  1001. }
  1002. if (isFn(options.name)) {
  1003. methodName = options.name(arg1);
  1004. } else if (isStr(options.name)) {
  1005. methodName = options.name;
  1006. }
  1007. var returnValue = wx[methodName].apply(wx, args);
  1008. if (isSyncApi(methodName)) {
  1009. // 同步 api
  1010. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1011. }
  1012. return returnValue;
  1013. };
  1014. }
  1015. return method;
  1016. }
  1017. var todoApis = Object.create(null);
  1018. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1019. function createTodoApi(name) {
  1020. return function todoApi(_ref) {
  1021. var fail = _ref.fail,
  1022. complete = _ref.complete;
  1023. var res = {
  1024. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1025. };
  1026. isFn(fail) && fail(res);
  1027. isFn(complete) && complete(res);
  1028. };
  1029. }
  1030. TODOS.forEach(function (name) {
  1031. todoApis[name] = createTodoApi(name);
  1032. });
  1033. var providers = {
  1034. oauth: ['weixin'],
  1035. share: ['weixin'],
  1036. payment: ['wxpay'],
  1037. push: ['weixin']
  1038. };
  1039. function getProvider(_ref2) {
  1040. var service = _ref2.service,
  1041. success = _ref2.success,
  1042. fail = _ref2.fail,
  1043. complete = _ref2.complete;
  1044. var res = false;
  1045. if (providers[service]) {
  1046. res = {
  1047. errMsg: 'getProvider:ok',
  1048. service: service,
  1049. provider: providers[service]
  1050. };
  1051. isFn(success) && success(res);
  1052. } else {
  1053. res = {
  1054. errMsg: 'getProvider:fail service not found'
  1055. };
  1056. isFn(fail) && fail(res);
  1057. }
  1058. isFn(complete) && complete(res);
  1059. }
  1060. var extraApi = /*#__PURE__*/Object.freeze({
  1061. __proto__: null,
  1062. getProvider: getProvider
  1063. });
  1064. var getEmitter = function () {
  1065. var Emitter;
  1066. return function getUniEmitter() {
  1067. if (!Emitter) {
  1068. Emitter = new _vue.default();
  1069. }
  1070. return Emitter;
  1071. };
  1072. }();
  1073. function apply(ctx, method, args) {
  1074. return ctx[method].apply(ctx, args);
  1075. }
  1076. function $on() {
  1077. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1078. }
  1079. function $off() {
  1080. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1081. }
  1082. function $once() {
  1083. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1084. }
  1085. function $emit() {
  1086. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1087. }
  1088. var eventApi = /*#__PURE__*/Object.freeze({
  1089. __proto__: null,
  1090. $on: $on,
  1091. $off: $off,
  1092. $once: $once,
  1093. $emit: $emit
  1094. });
  1095. /**
  1096. * 框架内 try-catch
  1097. */
  1098. /**
  1099. * 开发者 try-catch
  1100. */
  1101. function tryCatch(fn) {
  1102. return function () {
  1103. try {
  1104. return fn.apply(fn, arguments);
  1105. } catch (e) {
  1106. // TODO
  1107. console.error(e);
  1108. }
  1109. };
  1110. }
  1111. function getApiCallbacks(params) {
  1112. var apiCallbacks = {};
  1113. for (var name in params) {
  1114. var param = params[name];
  1115. if (isFn(param)) {
  1116. apiCallbacks[name] = tryCatch(param);
  1117. delete params[name];
  1118. }
  1119. }
  1120. return apiCallbacks;
  1121. }
  1122. var cid;
  1123. var cidErrMsg;
  1124. var enabled;
  1125. function normalizePushMessage(message) {
  1126. try {
  1127. return JSON.parse(message);
  1128. } catch (e) {}
  1129. return message;
  1130. }
  1131. function invokePushCallback(args) {
  1132. if (args.type === 'enabled') {
  1133. enabled = true;
  1134. } else if (args.type === 'clientId') {
  1135. cid = args.cid;
  1136. cidErrMsg = args.errMsg;
  1137. invokeGetPushCidCallbacks(cid, args.errMsg);
  1138. } else if (args.type === 'pushMsg') {
  1139. var message = {
  1140. type: 'receive',
  1141. data: normalizePushMessage(args.message)
  1142. };
  1143. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1144. var callback = onPushMessageCallbacks[i];
  1145. callback(message);
  1146. // 该消息已被阻止
  1147. if (message.stopped) {
  1148. break;
  1149. }
  1150. }
  1151. } else if (args.type === 'click') {
  1152. onPushMessageCallbacks.forEach(function (callback) {
  1153. callback({
  1154. type: 'click',
  1155. data: normalizePushMessage(args.message)
  1156. });
  1157. });
  1158. }
  1159. }
  1160. var getPushCidCallbacks = [];
  1161. function invokeGetPushCidCallbacks(cid, errMsg) {
  1162. getPushCidCallbacks.forEach(function (callback) {
  1163. callback(cid, errMsg);
  1164. });
  1165. getPushCidCallbacks.length = 0;
  1166. }
  1167. function getPushClientId(args) {
  1168. if (!isPlainObject(args)) {
  1169. args = {};
  1170. }
  1171. var _getApiCallbacks = getApiCallbacks(args),
  1172. success = _getApiCallbacks.success,
  1173. fail = _getApiCallbacks.fail,
  1174. complete = _getApiCallbacks.complete;
  1175. var hasSuccess = isFn(success);
  1176. var hasFail = isFn(fail);
  1177. var hasComplete = isFn(complete);
  1178. Promise.resolve().then(function () {
  1179. if (typeof enabled === 'undefined') {
  1180. enabled = false;
  1181. cid = '';
  1182. cidErrMsg = 'uniPush is not enabled';
  1183. }
  1184. getPushCidCallbacks.push(function (cid, errMsg) {
  1185. var res;
  1186. if (cid) {
  1187. res = {
  1188. errMsg: 'getPushClientId:ok',
  1189. cid: cid
  1190. };
  1191. hasSuccess && success(res);
  1192. } else {
  1193. res = {
  1194. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1195. };
  1196. hasFail && fail(res);
  1197. }
  1198. hasComplete && complete(res);
  1199. });
  1200. if (typeof cid !== 'undefined') {
  1201. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1202. }
  1203. });
  1204. }
  1205. var onPushMessageCallbacks = [];
  1206. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1207. var onPushMessage = function onPushMessage(fn) {
  1208. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1209. onPushMessageCallbacks.push(fn);
  1210. }
  1211. };
  1212. var offPushMessage = function offPushMessage(fn) {
  1213. if (!fn) {
  1214. onPushMessageCallbacks.length = 0;
  1215. } else {
  1216. var index = onPushMessageCallbacks.indexOf(fn);
  1217. if (index > -1) {
  1218. onPushMessageCallbacks.splice(index, 1);
  1219. }
  1220. }
  1221. };
  1222. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1223. if (!baseInfo) {
  1224. baseInfo = wx.getSystemInfoSync();
  1225. }
  1226. var host = baseInfo ? baseInfo.host : null;
  1227. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1228. var api = /*#__PURE__*/Object.freeze({
  1229. __proto__: null,
  1230. shareVideoMessage: shareVideoMessage,
  1231. getPushClientId: getPushClientId,
  1232. onPushMessage: onPushMessage,
  1233. offPushMessage: offPushMessage,
  1234. invokePushCallback: invokePushCallback
  1235. });
  1236. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1237. function findVmByVueId(vm, vuePid) {
  1238. var $children = vm.$children;
  1239. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1240. for (var i = $children.length - 1; i >= 0; i--) {
  1241. var childVm = $children[i];
  1242. if (childVm.$scope._$vueId === vuePid) {
  1243. return childVm;
  1244. }
  1245. }
  1246. // 反向递归查找
  1247. var parentVm;
  1248. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1249. parentVm = findVmByVueId($children[_i], vuePid);
  1250. if (parentVm) {
  1251. return parentVm;
  1252. }
  1253. }
  1254. }
  1255. function initBehavior(options) {
  1256. return Behavior(options);
  1257. }
  1258. function isPage() {
  1259. return !!this.route;
  1260. }
  1261. function initRelation(detail) {
  1262. this.triggerEvent('__l', detail);
  1263. }
  1264. function selectAllComponents(mpInstance, selector, $refs) {
  1265. var components = mpInstance.selectAllComponents(selector) || [];
  1266. components.forEach(function (component) {
  1267. var ref = component.dataset.ref;
  1268. $refs[ref] = component.$vm || toSkip(component);
  1269. {
  1270. if (component.dataset.vueGeneric === 'scoped') {
  1271. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1272. selectAllComponents(scopedComponent, selector, $refs);
  1273. });
  1274. }
  1275. }
  1276. });
  1277. }
  1278. function syncRefs(refs, newRefs) {
  1279. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1280. var newKeys = Object.keys(newRefs);
  1281. newKeys.forEach(function (key) {
  1282. var oldValue = refs[key];
  1283. var newValue = newRefs[key];
  1284. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1285. return oldValue.includes(value);
  1286. })) {
  1287. return;
  1288. }
  1289. refs[key] = newValue;
  1290. oldKeys.delete(key);
  1291. });
  1292. oldKeys.forEach(function (key) {
  1293. delete refs[key];
  1294. });
  1295. return refs;
  1296. }
  1297. function initRefs(vm) {
  1298. var mpInstance = vm.$scope;
  1299. var refs = {};
  1300. Object.defineProperty(vm, '$refs', {
  1301. get: function get() {
  1302. var $refs = {};
  1303. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1304. // TODO 暂不考虑 for 中的 scoped
  1305. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1306. forComponents.forEach(function (component) {
  1307. var ref = component.dataset.ref;
  1308. if (!$refs[ref]) {
  1309. $refs[ref] = [];
  1310. }
  1311. $refs[ref].push(component.$vm || toSkip(component));
  1312. });
  1313. return syncRefs(refs, $refs);
  1314. }
  1315. });
  1316. }
  1317. function handleLink(event) {
  1318. var _ref3 = event.detail || event.value,
  1319. vuePid = _ref3.vuePid,
  1320. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1321. var parentVm;
  1322. if (vuePid) {
  1323. parentVm = findVmByVueId(this.$vm, vuePid);
  1324. }
  1325. if (!parentVm) {
  1326. parentVm = this.$vm;
  1327. }
  1328. vueOptions.parent = parentVm;
  1329. }
  1330. function markMPComponent(component) {
  1331. // 在 Vue 中标记为小程序组件
  1332. var IS_MP = '__v_isMPComponent';
  1333. Object.defineProperty(component, IS_MP, {
  1334. configurable: true,
  1335. enumerable: false,
  1336. value: true
  1337. });
  1338. return component;
  1339. }
  1340. function toSkip(obj) {
  1341. var OB = '__ob__';
  1342. var SKIP = '__v_skip';
  1343. if (isObject(obj) && Object.isExtensible(obj)) {
  1344. // 避免被 @vue/composition-api 观测
  1345. Object.defineProperty(obj, OB, {
  1346. configurable: true,
  1347. enumerable: false,
  1348. value: (0, _defineProperty2.default)({}, SKIP, true)
  1349. });
  1350. }
  1351. return obj;
  1352. }
  1353. var MPPage = Page;
  1354. var MPComponent = Component;
  1355. var customizeRE = /:/g;
  1356. var customize = cached(function (str) {
  1357. return camelize(str.replace(customizeRE, '-'));
  1358. });
  1359. function initTriggerEvent(mpInstance) {
  1360. var oldTriggerEvent = mpInstance.triggerEvent;
  1361. var newTriggerEvent = function newTriggerEvent(event) {
  1362. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1363. args[_key3 - 1] = arguments[_key3];
  1364. }
  1365. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1366. if (this.$vm || this.dataset && this.dataset.comType) {
  1367. event = customize(event);
  1368. } else {
  1369. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1370. var newEvent = customize(event);
  1371. if (newEvent !== event) {
  1372. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1373. }
  1374. }
  1375. return oldTriggerEvent.apply(this, [event].concat(args));
  1376. };
  1377. try {
  1378. // 京东小程序 triggerEvent 为只读
  1379. mpInstance.triggerEvent = newTriggerEvent;
  1380. } catch (error) {
  1381. mpInstance._triggerEvent = newTriggerEvent;
  1382. }
  1383. }
  1384. function initHook(name, options, isComponent) {
  1385. var oldHook = options[name];
  1386. options[name] = function () {
  1387. markMPComponent(this);
  1388. initTriggerEvent(this);
  1389. if (oldHook) {
  1390. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1391. args[_key4] = arguments[_key4];
  1392. }
  1393. return oldHook.apply(this, args);
  1394. }
  1395. };
  1396. }
  1397. if (!MPPage.__$wrappered) {
  1398. MPPage.__$wrappered = true;
  1399. Page = function Page() {
  1400. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1401. initHook('onLoad', options);
  1402. return MPPage(options);
  1403. };
  1404. Page.after = MPPage.after;
  1405. Component = function Component() {
  1406. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1407. initHook('created', options);
  1408. return MPComponent(options);
  1409. };
  1410. }
  1411. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1412. function initMocks(vm, mocks) {
  1413. var mpInstance = vm.$mp[vm.mpType];
  1414. mocks.forEach(function (mock) {
  1415. if (hasOwn(mpInstance, mock)) {
  1416. vm[mock] = mpInstance[mock];
  1417. }
  1418. });
  1419. }
  1420. function hasHook(hook, vueOptions) {
  1421. if (!vueOptions) {
  1422. return true;
  1423. }
  1424. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1425. return true;
  1426. }
  1427. vueOptions = vueOptions.default || vueOptions;
  1428. if (isFn(vueOptions)) {
  1429. if (isFn(vueOptions.extendOptions[hook])) {
  1430. return true;
  1431. }
  1432. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1433. return true;
  1434. }
  1435. return false;
  1436. }
  1437. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1438. return true;
  1439. }
  1440. var mixins = vueOptions.mixins;
  1441. if (Array.isArray(mixins)) {
  1442. return !!mixins.find(function (mixin) {
  1443. return hasHook(hook, mixin);
  1444. });
  1445. }
  1446. }
  1447. function initHooks(mpOptions, hooks, vueOptions) {
  1448. hooks.forEach(function (hook) {
  1449. if (hasHook(hook, vueOptions)) {
  1450. mpOptions[hook] = function (args) {
  1451. return this.$vm && this.$vm.__call_hook(hook, args);
  1452. };
  1453. }
  1454. });
  1455. }
  1456. function initUnknownHooks(mpOptions, vueOptions) {
  1457. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1458. findHooks(vueOptions).forEach(function (hook) {
  1459. return initHook$1(mpOptions, hook, excludes);
  1460. });
  1461. }
  1462. function findHooks(vueOptions) {
  1463. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1464. if (vueOptions) {
  1465. Object.keys(vueOptions).forEach(function (name) {
  1466. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1467. hooks.push(name);
  1468. }
  1469. });
  1470. }
  1471. return hooks;
  1472. }
  1473. function initHook$1(mpOptions, hook, excludes) {
  1474. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1475. mpOptions[hook] = function (args) {
  1476. return this.$vm && this.$vm.__call_hook(hook, args);
  1477. };
  1478. }
  1479. }
  1480. function initVueComponent(Vue, vueOptions) {
  1481. vueOptions = vueOptions.default || vueOptions;
  1482. var VueComponent;
  1483. if (isFn(vueOptions)) {
  1484. VueComponent = vueOptions;
  1485. } else {
  1486. VueComponent = Vue.extend(vueOptions);
  1487. }
  1488. vueOptions = VueComponent.options;
  1489. return [VueComponent, vueOptions];
  1490. }
  1491. function initSlots(vm, vueSlots) {
  1492. if (Array.isArray(vueSlots) && vueSlots.length) {
  1493. var $slots = Object.create(null);
  1494. vueSlots.forEach(function (slotName) {
  1495. $slots[slotName] = true;
  1496. });
  1497. vm.$scopedSlots = vm.$slots = $slots;
  1498. }
  1499. }
  1500. function initVueIds(vueIds, mpInstance) {
  1501. vueIds = (vueIds || '').split(',');
  1502. var len = vueIds.length;
  1503. if (len === 1) {
  1504. mpInstance._$vueId = vueIds[0];
  1505. } else if (len === 2) {
  1506. mpInstance._$vueId = vueIds[0];
  1507. mpInstance._$vuePid = vueIds[1];
  1508. }
  1509. }
  1510. function initData(vueOptions, context) {
  1511. var data = vueOptions.data || {};
  1512. var methods = vueOptions.methods || {};
  1513. if (typeof data === 'function') {
  1514. try {
  1515. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1516. } catch (e) {
  1517. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1518. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1519. }
  1520. }
  1521. } else {
  1522. try {
  1523. // 对 data 格式化
  1524. data = JSON.parse(JSON.stringify(data));
  1525. } catch (e) {}
  1526. }
  1527. if (!isPlainObject(data)) {
  1528. data = {};
  1529. }
  1530. Object.keys(methods).forEach(function (methodName) {
  1531. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1532. data[methodName] = methods[methodName];
  1533. }
  1534. });
  1535. return data;
  1536. }
  1537. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1538. function createObserver(name) {
  1539. return function observer(newVal, oldVal) {
  1540. if (this.$vm) {
  1541. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1542. }
  1543. };
  1544. }
  1545. function initBehaviors(vueOptions, initBehavior) {
  1546. var vueBehaviors = vueOptions.behaviors;
  1547. var vueExtends = vueOptions.extends;
  1548. var vueMixins = vueOptions.mixins;
  1549. var vueProps = vueOptions.props;
  1550. if (!vueProps) {
  1551. vueOptions.props = vueProps = [];
  1552. }
  1553. var behaviors = [];
  1554. if (Array.isArray(vueBehaviors)) {
  1555. vueBehaviors.forEach(function (behavior) {
  1556. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1557. if (behavior === 'uni://form-field') {
  1558. if (Array.isArray(vueProps)) {
  1559. vueProps.push('name');
  1560. vueProps.push('value');
  1561. } else {
  1562. vueProps.name = {
  1563. type: String,
  1564. default: ''
  1565. };
  1566. vueProps.value = {
  1567. type: [String, Number, Boolean, Array, Object, Date],
  1568. default: ''
  1569. };
  1570. }
  1571. }
  1572. });
  1573. }
  1574. if (isPlainObject(vueExtends) && vueExtends.props) {
  1575. behaviors.push(initBehavior({
  1576. properties: initProperties(vueExtends.props, true)
  1577. }));
  1578. }
  1579. if (Array.isArray(vueMixins)) {
  1580. vueMixins.forEach(function (vueMixin) {
  1581. if (isPlainObject(vueMixin) && vueMixin.props) {
  1582. behaviors.push(initBehavior({
  1583. properties: initProperties(vueMixin.props, true)
  1584. }));
  1585. }
  1586. });
  1587. }
  1588. return behaviors;
  1589. }
  1590. function parsePropType(key, type, defaultValue, file) {
  1591. // [String]=>String
  1592. if (Array.isArray(type) && type.length === 1) {
  1593. return type[0];
  1594. }
  1595. return type;
  1596. }
  1597. function initProperties(props) {
  1598. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1599. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1600. var options = arguments.length > 3 ? arguments[3] : undefined;
  1601. var properties = {};
  1602. if (!isBehavior) {
  1603. properties.vueId = {
  1604. type: String,
  1605. value: ''
  1606. };
  1607. {
  1608. if (options.virtualHost) {
  1609. properties.virtualHostStyle = {
  1610. type: null,
  1611. value: ''
  1612. };
  1613. properties.virtualHostClass = {
  1614. type: null,
  1615. value: ''
  1616. };
  1617. }
  1618. }
  1619. // scopedSlotsCompiler auto
  1620. properties.scopedSlotsCompiler = {
  1621. type: String,
  1622. value: ''
  1623. };
  1624. properties.vueSlots = {
  1625. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1626. type: null,
  1627. value: [],
  1628. observer: function observer(newVal, oldVal) {
  1629. var $slots = Object.create(null);
  1630. newVal.forEach(function (slotName) {
  1631. $slots[slotName] = true;
  1632. });
  1633. this.setData({
  1634. $slots: $slots
  1635. });
  1636. }
  1637. };
  1638. }
  1639. if (Array.isArray(props)) {
  1640. // ['title']
  1641. props.forEach(function (key) {
  1642. properties[key] = {
  1643. type: null,
  1644. observer: createObserver(key)
  1645. };
  1646. });
  1647. } else if (isPlainObject(props)) {
  1648. // {title:{type:String,default:''},content:String}
  1649. Object.keys(props).forEach(function (key) {
  1650. var opts = props[key];
  1651. if (isPlainObject(opts)) {
  1652. // title:{type:String,default:''}
  1653. var value = opts.default;
  1654. if (isFn(value)) {
  1655. value = value();
  1656. }
  1657. opts.type = parsePropType(key, opts.type);
  1658. properties[key] = {
  1659. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1660. value: value,
  1661. observer: createObserver(key)
  1662. };
  1663. } else {
  1664. // content:String
  1665. var type = parsePropType(key, opts);
  1666. properties[key] = {
  1667. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1668. observer: createObserver(key)
  1669. };
  1670. }
  1671. });
  1672. }
  1673. return properties;
  1674. }
  1675. function wrapper$1(event) {
  1676. // TODO 又得兼容 mpvue 的 mp 对象
  1677. try {
  1678. event.mp = JSON.parse(JSON.stringify(event));
  1679. } catch (e) {}
  1680. event.stopPropagation = noop;
  1681. event.preventDefault = noop;
  1682. event.target = event.target || {};
  1683. if (!hasOwn(event, 'detail')) {
  1684. event.detail = {};
  1685. }
  1686. if (hasOwn(event, 'markerId')) {
  1687. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1688. event.detail.markerId = event.markerId;
  1689. }
  1690. if (isPlainObject(event.detail)) {
  1691. event.target = Object.assign({}, event.target, event.detail);
  1692. }
  1693. return event;
  1694. }
  1695. function getExtraValue(vm, dataPathsArray) {
  1696. var context = vm;
  1697. dataPathsArray.forEach(function (dataPathArray) {
  1698. var dataPath = dataPathArray[0];
  1699. var value = dataPathArray[2];
  1700. if (dataPath || typeof value !== 'undefined') {
  1701. // ['','',index,'disable']
  1702. var propPath = dataPathArray[1];
  1703. var valuePath = dataPathArray[3];
  1704. var vFor;
  1705. if (Number.isInteger(dataPath)) {
  1706. vFor = dataPath;
  1707. } else if (!dataPath) {
  1708. vFor = context;
  1709. } else if (typeof dataPath === 'string' && dataPath) {
  1710. if (dataPath.indexOf('#s#') === 0) {
  1711. vFor = dataPath.substr(3);
  1712. } else {
  1713. vFor = vm.__get_value(dataPath, context);
  1714. }
  1715. }
  1716. if (Number.isInteger(vFor)) {
  1717. context = value;
  1718. } else if (!propPath) {
  1719. context = vFor[value];
  1720. } else {
  1721. if (Array.isArray(vFor)) {
  1722. context = vFor.find(function (vForItem) {
  1723. return vm.__get_value(propPath, vForItem) === value;
  1724. });
  1725. } else if (isPlainObject(vFor)) {
  1726. context = Object.keys(vFor).find(function (vForKey) {
  1727. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1728. });
  1729. } else {
  1730. console.error('v-for 暂不支持循环数据:', vFor);
  1731. }
  1732. }
  1733. if (valuePath) {
  1734. context = vm.__get_value(valuePath, context);
  1735. }
  1736. }
  1737. });
  1738. return context;
  1739. }
  1740. function processEventExtra(vm, extra, event, __args__) {
  1741. var extraObj = {};
  1742. if (Array.isArray(extra) && extra.length) {
  1743. /**
  1744. *[
  1745. * ['data.items', 'data.id', item.data.id],
  1746. * ['metas', 'id', meta.id]
  1747. *],
  1748. *[
  1749. * ['data.items', 'data.id', item.data.id],
  1750. * ['metas', 'id', meta.id]
  1751. *],
  1752. *'test'
  1753. */
  1754. extra.forEach(function (dataPath, index) {
  1755. if (typeof dataPath === 'string') {
  1756. if (!dataPath) {
  1757. // model,prop.sync
  1758. extraObj['$' + index] = vm;
  1759. } else {
  1760. if (dataPath === '$event') {
  1761. // $event
  1762. extraObj['$' + index] = event;
  1763. } else if (dataPath === 'arguments') {
  1764. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1765. } else if (dataPath.indexOf('$event.') === 0) {
  1766. // $event.target.value
  1767. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1768. } else {
  1769. extraObj['$' + index] = vm.__get_value(dataPath);
  1770. }
  1771. }
  1772. } else {
  1773. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1774. }
  1775. });
  1776. }
  1777. return extraObj;
  1778. }
  1779. function getObjByArray(arr) {
  1780. var obj = {};
  1781. for (var i = 1; i < arr.length; i++) {
  1782. var element = arr[i];
  1783. obj[element[0]] = element[1];
  1784. }
  1785. return obj;
  1786. }
  1787. function processEventArgs(vm, event) {
  1788. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1789. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1790. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1791. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1792. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1793. // fixed 用户直接触发 mpInstance.triggerEvent
  1794. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1795. if (isCustom) {
  1796. // 自定义事件
  1797. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1798. if (!args.length) {
  1799. // 无参数,直接传入 event 或 detail 数组
  1800. if (isCustomMPEvent) {
  1801. return [event];
  1802. }
  1803. return __args__;
  1804. }
  1805. }
  1806. var extraObj = processEventExtra(vm, extra, event, __args__);
  1807. var ret = [];
  1808. args.forEach(function (arg) {
  1809. if (arg === '$event') {
  1810. if (methodName === '__set_model' && !isCustom) {
  1811. // input v-model value
  1812. ret.push(event.target.value);
  1813. } else {
  1814. if (isCustom && !isCustomMPEvent) {
  1815. ret.push(__args__[0]);
  1816. } else {
  1817. // wxcomponent 组件或内置组件
  1818. ret.push(event);
  1819. }
  1820. }
  1821. } else {
  1822. if (Array.isArray(arg) && arg[0] === 'o') {
  1823. ret.push(getObjByArray(arg));
  1824. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1825. ret.push(extraObj[arg]);
  1826. } else {
  1827. ret.push(arg);
  1828. }
  1829. }
  1830. });
  1831. return ret;
  1832. }
  1833. var ONCE = '~';
  1834. var CUSTOM = '^';
  1835. function isMatchEventType(eventType, optType) {
  1836. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1837. }
  1838. function getContextVm(vm) {
  1839. var $parent = vm.$parent;
  1840. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1841. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1842. $parent = $parent.$parent;
  1843. }
  1844. return $parent && $parent.$parent;
  1845. }
  1846. function handleEvent(event) {
  1847. var _this2 = this;
  1848. event = wrapper$1(event);
  1849. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1850. var dataset = (event.currentTarget || event.target).dataset;
  1851. if (!dataset) {
  1852. return console.warn('事件信息不存在');
  1853. }
  1854. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1855. if (!eventOpts) {
  1856. return console.warn('事件信息不存在');
  1857. }
  1858. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1859. var eventType = event.type;
  1860. var ret = [];
  1861. eventOpts.forEach(function (eventOpt) {
  1862. var type = eventOpt[0];
  1863. var eventsArray = eventOpt[1];
  1864. var isCustom = type.charAt(0) === CUSTOM;
  1865. type = isCustom ? type.slice(1) : type;
  1866. var isOnce = type.charAt(0) === ONCE;
  1867. type = isOnce ? type.slice(1) : type;
  1868. if (eventsArray && isMatchEventType(eventType, type)) {
  1869. eventsArray.forEach(function (eventArray) {
  1870. var methodName = eventArray[0];
  1871. if (methodName) {
  1872. var handlerCtx = _this2.$vm;
  1873. if (handlerCtx.$options.generic) {
  1874. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1875. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1876. }
  1877. if (methodName === '$emit') {
  1878. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1879. return;
  1880. }
  1881. var handler = handlerCtx[methodName];
  1882. if (!isFn(handler)) {
  1883. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1884. var path = _this2.route || _this2.is;
  1885. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1886. }
  1887. if (isOnce) {
  1888. if (handler.once) {
  1889. return;
  1890. }
  1891. handler.once = true;
  1892. }
  1893. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1894. params = Array.isArray(params) ? params : [];
  1895. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1896. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1897. // eslint-disable-next-line no-sparse-arrays
  1898. params = params.concat([,,,,,,,,,, event]);
  1899. }
  1900. ret.push(handler.apply(handlerCtx, params));
  1901. }
  1902. });
  1903. }
  1904. });
  1905. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1906. return ret[0];
  1907. }
  1908. }
  1909. var eventChannels = {};
  1910. var eventChannelStack = [];
  1911. function getEventChannel(id) {
  1912. if (id) {
  1913. var eventChannel = eventChannels[id];
  1914. delete eventChannels[id];
  1915. return eventChannel;
  1916. }
  1917. return eventChannelStack.shift();
  1918. }
  1919. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1920. function initEventChannel() {
  1921. _vue.default.prototype.getOpenerEventChannel = function () {
  1922. // 微信小程序使用自身getOpenerEventChannel
  1923. {
  1924. return this.$scope.getOpenerEventChannel();
  1925. }
  1926. };
  1927. var callHook = _vue.default.prototype.__call_hook;
  1928. _vue.default.prototype.__call_hook = function (hook, args) {
  1929. if (hook === 'onLoad' && args && args.__id__) {
  1930. this.__eventChannel__ = getEventChannel(args.__id__);
  1931. delete args.__id__;
  1932. }
  1933. return callHook.call(this, hook, args);
  1934. };
  1935. }
  1936. function initScopedSlotsParams() {
  1937. var center = {};
  1938. var parents = {};
  1939. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1940. var has = center[vueId];
  1941. if (!has) {
  1942. parents[vueId] = this;
  1943. this.$on('hook:destroyed', function () {
  1944. delete parents[vueId];
  1945. });
  1946. }
  1947. return has;
  1948. };
  1949. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1950. var data = center[vueId];
  1951. if (data) {
  1952. var object = data[name] || {};
  1953. return key ? object[key] : object;
  1954. } else {
  1955. parents[vueId] = this;
  1956. this.$on('hook:destroyed', function () {
  1957. delete parents[vueId];
  1958. });
  1959. }
  1960. };
  1961. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1962. var vueIds = this.$options.propsData.vueId;
  1963. if (vueIds) {
  1964. var vueId = vueIds.split(',')[0];
  1965. var object = center[vueId] = center[vueId] || {};
  1966. object[name] = value;
  1967. if (parents[vueId]) {
  1968. parents[vueId].$forceUpdate();
  1969. }
  1970. }
  1971. };
  1972. _vue.default.mixin({
  1973. destroyed: function destroyed() {
  1974. var propsData = this.$options.propsData;
  1975. var vueId = propsData && propsData.vueId;
  1976. if (vueId) {
  1977. delete center[vueId];
  1978. delete parents[vueId];
  1979. }
  1980. }
  1981. });
  1982. }
  1983. function parseBaseApp(vm, _ref4) {
  1984. var mocks = _ref4.mocks,
  1985. initRefs = _ref4.initRefs;
  1986. initEventChannel();
  1987. {
  1988. initScopedSlotsParams();
  1989. }
  1990. if (vm.$options.store) {
  1991. _vue.default.prototype.$store = vm.$options.store;
  1992. }
  1993. uniIdMixin(_vue.default);
  1994. _vue.default.prototype.mpHost = "mp-weixin";
  1995. _vue.default.mixin({
  1996. beforeCreate: function beforeCreate() {
  1997. if (!this.$options.mpType) {
  1998. return;
  1999. }
  2000. this.mpType = this.$options.mpType;
  2001. this.$mp = (0, _defineProperty2.default)({
  2002. data: {}
  2003. }, this.mpType, this.$options.mpInstance);
  2004. this.$scope = this.$options.mpInstance;
  2005. delete this.$options.mpType;
  2006. delete this.$options.mpInstance;
  2007. if (this.mpType === 'page' && typeof getApp === 'function') {
  2008. // hack vue-i18n
  2009. var app = getApp();
  2010. if (app.$vm && app.$vm.$i18n) {
  2011. this._i18n = app.$vm.$i18n;
  2012. }
  2013. }
  2014. if (this.mpType !== 'app') {
  2015. initRefs(this);
  2016. initMocks(this, mocks);
  2017. }
  2018. }
  2019. });
  2020. var appOptions = {
  2021. onLaunch: function onLaunch(args) {
  2022. if (this.$vm) {
  2023. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2024. return;
  2025. }
  2026. {
  2027. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2028. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2029. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2030. }
  2031. }
  2032. this.$vm = vm;
  2033. this.$vm.$mp = {
  2034. app: this
  2035. };
  2036. this.$vm.$scope = this;
  2037. // vm 上也挂载 globalData
  2038. this.$vm.globalData = this.globalData;
  2039. this.$vm._isMounted = true;
  2040. this.$vm.__call_hook('mounted', args);
  2041. this.$vm.__call_hook('onLaunch', args);
  2042. }
  2043. };
  2044. // 兼容旧版本 globalData
  2045. appOptions.globalData = vm.$options.globalData || {};
  2046. // 将 methods 中的方法挂在 getApp() 中
  2047. var methods = vm.$options.methods;
  2048. if (methods) {
  2049. Object.keys(methods).forEach(function (name) {
  2050. appOptions[name] = methods[name];
  2051. });
  2052. }
  2053. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2054. initHooks(appOptions, hooks);
  2055. initUnknownHooks(appOptions, vm.$options);
  2056. return appOptions;
  2057. }
  2058. function parseApp(vm) {
  2059. return parseBaseApp(vm, {
  2060. mocks: mocks,
  2061. initRefs: initRefs
  2062. });
  2063. }
  2064. function createApp(vm) {
  2065. App(parseApp(vm));
  2066. return vm;
  2067. }
  2068. var encodeReserveRE = /[!'()*]/g;
  2069. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2070. return '%' + c.charCodeAt(0).toString(16);
  2071. };
  2072. var commaRE = /%2C/g;
  2073. // fixed encodeURIComponent which is more conformant to RFC3986:
  2074. // - escapes [!'()*]
  2075. // - preserve commas
  2076. var encode = function encode(str) {
  2077. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2078. };
  2079. function stringifyQuery(obj) {
  2080. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2081. var res = obj ? Object.keys(obj).map(function (key) {
  2082. var val = obj[key];
  2083. if (val === undefined) {
  2084. return '';
  2085. }
  2086. if (val === null) {
  2087. return encodeStr(key);
  2088. }
  2089. if (Array.isArray(val)) {
  2090. var result = [];
  2091. val.forEach(function (val2) {
  2092. if (val2 === undefined) {
  2093. return;
  2094. }
  2095. if (val2 === null) {
  2096. result.push(encodeStr(key));
  2097. } else {
  2098. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2099. }
  2100. });
  2101. return result.join('&');
  2102. }
  2103. return encodeStr(key) + '=' + encodeStr(val);
  2104. }).filter(function (x) {
  2105. return x.length > 0;
  2106. }).join('&') : null;
  2107. return res ? "?".concat(res) : '';
  2108. }
  2109. function parseBaseComponent(vueComponentOptions) {
  2110. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2111. isPage = _ref5.isPage,
  2112. initRelation = _ref5.initRelation;
  2113. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2114. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2115. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2116. VueComponent = _initVueComponent2[0],
  2117. vueOptions = _initVueComponent2[1];
  2118. var options = _objectSpread({
  2119. multipleSlots: true,
  2120. addGlobalClass: true
  2121. }, vueOptions.options || {});
  2122. {
  2123. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2124. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2125. Object.assign(options, vueOptions['mp-weixin'].options);
  2126. }
  2127. }
  2128. var componentOptions = {
  2129. options: options,
  2130. data: initData(vueOptions, _vue.default.prototype),
  2131. behaviors: initBehaviors(vueOptions, initBehavior),
  2132. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2133. lifetimes: {
  2134. attached: function attached() {
  2135. var properties = this.properties;
  2136. var options = {
  2137. mpType: isPage.call(this) ? 'page' : 'component',
  2138. mpInstance: this,
  2139. propsData: properties
  2140. };
  2141. initVueIds(properties.vueId, this);
  2142. // 处理父子关系
  2143. initRelation.call(this, {
  2144. vuePid: this._$vuePid,
  2145. vueOptions: options
  2146. });
  2147. // 初始化 vue 实例
  2148. this.$vm = new VueComponent(options);
  2149. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2150. initSlots(this.$vm, properties.vueSlots);
  2151. // 触发首次 setData
  2152. this.$vm.$mount();
  2153. },
  2154. ready: function ready() {
  2155. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2156. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2157. if (this.$vm) {
  2158. this.$vm._isMounted = true;
  2159. this.$vm.__call_hook('mounted');
  2160. this.$vm.__call_hook('onReady');
  2161. }
  2162. },
  2163. detached: function detached() {
  2164. this.$vm && this.$vm.$destroy();
  2165. }
  2166. },
  2167. pageLifetimes: {
  2168. show: function show(args) {
  2169. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2170. },
  2171. hide: function hide() {
  2172. this.$vm && this.$vm.__call_hook('onPageHide');
  2173. },
  2174. resize: function resize(size) {
  2175. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2176. }
  2177. },
  2178. methods: {
  2179. __l: handleLink,
  2180. __e: handleEvent
  2181. }
  2182. };
  2183. // externalClasses
  2184. if (vueOptions.externalClasses) {
  2185. componentOptions.externalClasses = vueOptions.externalClasses;
  2186. }
  2187. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2188. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2189. componentOptions.methods[callMethod] = function (args) {
  2190. return this.$vm[callMethod](args);
  2191. };
  2192. });
  2193. }
  2194. if (needVueOptions) {
  2195. return [componentOptions, vueOptions, VueComponent];
  2196. }
  2197. if (isPage) {
  2198. return componentOptions;
  2199. }
  2200. return [componentOptions, VueComponent];
  2201. }
  2202. function parseComponent(vueComponentOptions, needVueOptions) {
  2203. return parseBaseComponent(vueComponentOptions, {
  2204. isPage: isPage,
  2205. initRelation: initRelation
  2206. }, needVueOptions);
  2207. }
  2208. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2209. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2210. function parseBasePage(vuePageOptions) {
  2211. var _parseComponent = parseComponent(vuePageOptions, true),
  2212. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2213. pageOptions = _parseComponent2[0],
  2214. vueOptions = _parseComponent2[1];
  2215. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2216. pageOptions.methods.onLoad = function (query) {
  2217. this.options = query;
  2218. var copyQuery = Object.assign({}, query);
  2219. delete copyQuery.__id__;
  2220. this.$page = {
  2221. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2222. };
  2223. this.$vm.$mp.query = query; // 兼容 mpvue
  2224. this.$vm.__call_hook('onLoad', query);
  2225. };
  2226. {
  2227. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2228. }
  2229. return pageOptions;
  2230. }
  2231. function parsePage(vuePageOptions) {
  2232. return parseBasePage(vuePageOptions);
  2233. }
  2234. function createPage(vuePageOptions) {
  2235. {
  2236. return Component(parsePage(vuePageOptions));
  2237. }
  2238. }
  2239. function createComponent(vueOptions) {
  2240. {
  2241. return Component(parseComponent(vueOptions));
  2242. }
  2243. }
  2244. function createSubpackageApp(vm) {
  2245. var appOptions = parseApp(vm);
  2246. var app = getApp({
  2247. allowDefault: true
  2248. });
  2249. vm.$scope = app;
  2250. var globalData = app.globalData;
  2251. if (globalData) {
  2252. Object.keys(appOptions.globalData).forEach(function (name) {
  2253. if (!hasOwn(globalData, name)) {
  2254. globalData[name] = appOptions.globalData[name];
  2255. }
  2256. });
  2257. }
  2258. Object.keys(appOptions).forEach(function (name) {
  2259. if (!hasOwn(app, name)) {
  2260. app[name] = appOptions[name];
  2261. }
  2262. });
  2263. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2264. wx.onAppShow(function () {
  2265. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2266. args[_key5] = arguments[_key5];
  2267. }
  2268. vm.__call_hook('onShow', args);
  2269. });
  2270. }
  2271. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2272. wx.onAppHide(function () {
  2273. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2274. args[_key6] = arguments[_key6];
  2275. }
  2276. vm.__call_hook('onHide', args);
  2277. });
  2278. }
  2279. if (isFn(appOptions.onLaunch)) {
  2280. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2281. vm.__call_hook('onLaunch', args);
  2282. }
  2283. return vm;
  2284. }
  2285. function createPlugin(vm) {
  2286. var appOptions = parseApp(vm);
  2287. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2288. wx.onAppShow(function () {
  2289. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2290. args[_key7] = arguments[_key7];
  2291. }
  2292. vm.__call_hook('onShow', args);
  2293. });
  2294. }
  2295. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2296. wx.onAppHide(function () {
  2297. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2298. args[_key8] = arguments[_key8];
  2299. }
  2300. vm.__call_hook('onHide', args);
  2301. });
  2302. }
  2303. if (isFn(appOptions.onLaunch)) {
  2304. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2305. vm.__call_hook('onLaunch', args);
  2306. }
  2307. return vm;
  2308. }
  2309. todos.forEach(function (todoApi) {
  2310. protocols[todoApi] = false;
  2311. });
  2312. canIUses.forEach(function (canIUseApi) {
  2313. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2314. if (!wx.canIUse(apiName)) {
  2315. protocols[canIUseApi] = false;
  2316. }
  2317. });
  2318. var uni = {};
  2319. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2320. uni = new Proxy({}, {
  2321. get: function get(target, name) {
  2322. if (hasOwn(target, name)) {
  2323. return target[name];
  2324. }
  2325. if (baseApi[name]) {
  2326. return baseApi[name];
  2327. }
  2328. if (api[name]) {
  2329. return promisify(name, api[name]);
  2330. }
  2331. {
  2332. if (extraApi[name]) {
  2333. return promisify(name, extraApi[name]);
  2334. }
  2335. if (todoApis[name]) {
  2336. return promisify(name, todoApis[name]);
  2337. }
  2338. }
  2339. if (eventApi[name]) {
  2340. return eventApi[name];
  2341. }
  2342. return promisify(name, wrapper(name, wx[name]));
  2343. },
  2344. set: function set(target, name, value) {
  2345. target[name] = value;
  2346. return true;
  2347. }
  2348. });
  2349. } else {
  2350. Object.keys(baseApi).forEach(function (name) {
  2351. uni[name] = baseApi[name];
  2352. });
  2353. {
  2354. Object.keys(todoApis).forEach(function (name) {
  2355. uni[name] = promisify(name, todoApis[name]);
  2356. });
  2357. Object.keys(extraApi).forEach(function (name) {
  2358. uni[name] = promisify(name, todoApis[name]);
  2359. });
  2360. }
  2361. Object.keys(eventApi).forEach(function (name) {
  2362. uni[name] = eventApi[name];
  2363. });
  2364. Object.keys(api).forEach(function (name) {
  2365. uni[name] = promisify(name, api[name]);
  2366. });
  2367. Object.keys(wx).forEach(function (name) {
  2368. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2369. uni[name] = promisify(name, wrapper(name, wx[name]));
  2370. }
  2371. });
  2372. }
  2373. wx.createApp = createApp;
  2374. wx.createPage = createPage;
  2375. wx.createComponent = createComponent;
  2376. wx.createSubpackageApp = createSubpackageApp;
  2377. wx.createPlugin = createPlugin;
  2378. var uni$1 = uni;
  2379. var _default = uni$1;
  2380. exports.default = _default;
  2381. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2382. /***/ }),
  2383. /* 3 */
  2384. /*!***********************************!*\
  2385. !*** (webpack)/buildin/global.js ***!
  2386. \***********************************/
  2387. /*! no static exports found */
  2388. /***/ (function(module, exports) {
  2389. var g;
  2390. // This works in non-strict mode
  2391. g = (function() {
  2392. return this;
  2393. })();
  2394. try {
  2395. // This works if eval is allowed (see CSP)
  2396. g = g || new Function("return this")();
  2397. } catch (e) {
  2398. // This works if the window reference is available
  2399. if (typeof window === "object") g = window;
  2400. }
  2401. // g can still be undefined, but nothing to do about it...
  2402. // We return undefined, instead of nothing here, so it's
  2403. // easier to handle this case. if(!global) { ...}
  2404. module.exports = g;
  2405. /***/ }),
  2406. /* 4 */
  2407. /*!**********************************************************************!*\
  2408. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2409. \**********************************************************************/
  2410. /*! no static exports found */
  2411. /***/ (function(module, exports) {
  2412. function _interopRequireDefault(obj) {
  2413. return obj && obj.__esModule ? obj : {
  2414. "default": obj
  2415. };
  2416. }
  2417. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2418. /***/ }),
  2419. /* 5 */
  2420. /*!**************************************************************!*\
  2421. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2422. \**************************************************************/
  2423. /*! no static exports found */
  2424. /***/ (function(module, exports, __webpack_require__) {
  2425. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2426. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2427. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2428. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2429. function _slicedToArray(arr, i) {
  2430. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2431. }
  2432. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2433. /***/ }),
  2434. /* 6 */
  2435. /*!***************************************************************!*\
  2436. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2437. \***************************************************************/
  2438. /*! no static exports found */
  2439. /***/ (function(module, exports) {
  2440. function _arrayWithHoles(arr) {
  2441. if (Array.isArray(arr)) return arr;
  2442. }
  2443. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2444. /***/ }),
  2445. /* 7 */
  2446. /*!*********************************************************************!*\
  2447. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2448. \*********************************************************************/
  2449. /*! no static exports found */
  2450. /***/ (function(module, exports) {
  2451. function _iterableToArrayLimit(arr, i) {
  2452. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2453. if (null != _i) {
  2454. var _s,
  2455. _e,
  2456. _x,
  2457. _r,
  2458. _arr = [],
  2459. _n = !0,
  2460. _d = !1;
  2461. try {
  2462. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2463. if (Object(_i) !== _i) return;
  2464. _n = !1;
  2465. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2466. ;
  2467. }
  2468. } catch (err) {
  2469. _d = !0, _e = err;
  2470. } finally {
  2471. try {
  2472. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2473. } finally {
  2474. if (_d) throw _e;
  2475. }
  2476. }
  2477. return _arr;
  2478. }
  2479. }
  2480. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2481. /***/ }),
  2482. /* 8 */
  2483. /*!***************************************************************************!*\
  2484. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2485. \***************************************************************************/
  2486. /*! no static exports found */
  2487. /***/ (function(module, exports, __webpack_require__) {
  2488. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2489. function _unsupportedIterableToArray(o, minLen) {
  2490. if (!o) return;
  2491. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2492. var n = Object.prototype.toString.call(o).slice(8, -1);
  2493. if (n === "Object" && o.constructor) n = o.constructor.name;
  2494. if (n === "Map" || n === "Set") return Array.from(o);
  2495. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2496. }
  2497. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2498. /***/ }),
  2499. /* 9 */
  2500. /*!*****************************************************************!*\
  2501. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2502. \*****************************************************************/
  2503. /*! no static exports found */
  2504. /***/ (function(module, exports) {
  2505. function _arrayLikeToArray(arr, len) {
  2506. if (len == null || len > arr.length) len = arr.length;
  2507. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2508. arr2[i] = arr[i];
  2509. }
  2510. return arr2;
  2511. }
  2512. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2513. /***/ }),
  2514. /* 10 */
  2515. /*!****************************************************************!*\
  2516. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2517. \****************************************************************/
  2518. /*! no static exports found */
  2519. /***/ (function(module, exports) {
  2520. function _nonIterableRest() {
  2521. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2522. }
  2523. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2524. /***/ }),
  2525. /* 11 */
  2526. /*!***************************************************************!*\
  2527. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2528. \***************************************************************/
  2529. /*! no static exports found */
  2530. /***/ (function(module, exports, __webpack_require__) {
  2531. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2532. function _defineProperty(obj, key, value) {
  2533. key = toPropertyKey(key);
  2534. if (key in obj) {
  2535. Object.defineProperty(obj, key, {
  2536. value: value,
  2537. enumerable: true,
  2538. configurable: true,
  2539. writable: true
  2540. });
  2541. } else {
  2542. obj[key] = value;
  2543. }
  2544. return obj;
  2545. }
  2546. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2547. /***/ }),
  2548. /* 12 */
  2549. /*!**************************************************************!*\
  2550. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2551. \**************************************************************/
  2552. /*! no static exports found */
  2553. /***/ (function(module, exports, __webpack_require__) {
  2554. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2555. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2556. function _toPropertyKey(arg) {
  2557. var key = toPrimitive(arg, "string");
  2558. return _typeof(key) === "symbol" ? key : String(key);
  2559. }
  2560. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2561. /***/ }),
  2562. /* 13 */
  2563. /*!*******************************************************!*\
  2564. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2565. \*******************************************************/
  2566. /*! no static exports found */
  2567. /***/ (function(module, exports) {
  2568. function _typeof(obj) {
  2569. "@babel/helpers - typeof";
  2570. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2571. return typeof obj;
  2572. } : function (obj) {
  2573. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2574. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2575. }
  2576. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 14 */
  2579. /*!************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2581. \************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. function _toPrimitive(input, hint) {
  2586. if (_typeof(input) !== "object" || input === null) return input;
  2587. var prim = input[Symbol.toPrimitive];
  2588. if (prim !== undefined) {
  2589. var res = prim.call(input, hint || "default");
  2590. if (_typeof(res) !== "object") return res;
  2591. throw new TypeError("@@toPrimitive must return a primitive value.");
  2592. }
  2593. return (hint === "string" ? String : Number)(input);
  2594. }
  2595. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2596. /***/ }),
  2597. /* 15 */
  2598. /*!**********************************************************!*\
  2599. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2600. \**********************************************************/
  2601. /*! no static exports found */
  2602. /***/ (function(module, exports, __webpack_require__) {
  2603. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2604. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2605. function _construct(Parent, args, Class) {
  2606. if (isNativeReflectConstruct()) {
  2607. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2608. } else {
  2609. module.exports = _construct = function _construct(Parent, args, Class) {
  2610. var a = [null];
  2611. a.push.apply(a, args);
  2612. var Constructor = Function.bind.apply(Parent, a);
  2613. var instance = new Constructor();
  2614. if (Class) setPrototypeOf(instance, Class.prototype);
  2615. return instance;
  2616. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2617. }
  2618. return _construct.apply(null, arguments);
  2619. }
  2620. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 16 */
  2623. /*!***************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2625. \***************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports) {
  2628. function _setPrototypeOf(o, p) {
  2629. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2630. o.__proto__ = p;
  2631. return o;
  2632. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2633. return _setPrototypeOf(o, p);
  2634. }
  2635. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2636. /***/ }),
  2637. /* 17 */
  2638. /*!*************************************************************************!*\
  2639. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2640. \*************************************************************************/
  2641. /*! no static exports found */
  2642. /***/ (function(module, exports) {
  2643. function _isNativeReflectConstruct() {
  2644. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2645. if (Reflect.construct.sham) return false;
  2646. if (typeof Proxy === "function") return true;
  2647. try {
  2648. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2649. return true;
  2650. } catch (e) {
  2651. return false;
  2652. }
  2653. }
  2654. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. /***/ }),
  2656. /* 18 */
  2657. /*!******************************************************************!*\
  2658. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2659. \******************************************************************/
  2660. /*! no static exports found */
  2661. /***/ (function(module, exports, __webpack_require__) {
  2662. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2663. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2664. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2665. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2666. function _toConsumableArray(arr) {
  2667. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2668. }
  2669. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2670. /***/ }),
  2671. /* 19 */
  2672. /*!******************************************************************!*\
  2673. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2674. \******************************************************************/
  2675. /*! no static exports found */
  2676. /***/ (function(module, exports, __webpack_require__) {
  2677. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2678. function _arrayWithoutHoles(arr) {
  2679. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2680. }
  2681. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2682. /***/ }),
  2683. /* 20 */
  2684. /*!****************************************************************!*\
  2685. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2686. \****************************************************************/
  2687. /*! no static exports found */
  2688. /***/ (function(module, exports) {
  2689. function _iterableToArray(iter) {
  2690. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2691. }
  2692. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2693. /***/ }),
  2694. /* 21 */
  2695. /*!******************************************************************!*\
  2696. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2697. \******************************************************************/
  2698. /*! no static exports found */
  2699. /***/ (function(module, exports) {
  2700. function _nonIterableSpread() {
  2701. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2702. }
  2703. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2704. /***/ }),
  2705. /* 22 */
  2706. /*!*************************************************************!*\
  2707. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2708. \*************************************************************/
  2709. /*! no static exports found */
  2710. /***/ (function(module, exports, __webpack_require__) {
  2711. "use strict";
  2712. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2713. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2714. Object.defineProperty(exports, "__esModule", {
  2715. value: true
  2716. });
  2717. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2718. exports.compileI18nJsonStr = compileI18nJsonStr;
  2719. exports.hasI18nJson = hasI18nJson;
  2720. exports.initVueI18n = initVueI18n;
  2721. exports.isI18nStr = isI18nStr;
  2722. exports.isString = void 0;
  2723. exports.normalizeLocale = normalizeLocale;
  2724. exports.parseI18nJson = parseI18nJson;
  2725. exports.resolveLocale = resolveLocale;
  2726. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2727. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2728. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2729. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2730. var isArray = Array.isArray;
  2731. var isObject = function isObject(val) {
  2732. return val !== null && (0, _typeof2.default)(val) === 'object';
  2733. };
  2734. var defaultDelimiters = ['{', '}'];
  2735. var BaseFormatter = /*#__PURE__*/function () {
  2736. function BaseFormatter() {
  2737. (0, _classCallCheck2.default)(this, BaseFormatter);
  2738. this._caches = Object.create(null);
  2739. }
  2740. (0, _createClass2.default)(BaseFormatter, [{
  2741. key: "interpolate",
  2742. value: function interpolate(message, values) {
  2743. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2744. if (!values) {
  2745. return [message];
  2746. }
  2747. var tokens = this._caches[message];
  2748. if (!tokens) {
  2749. tokens = parse(message, delimiters);
  2750. this._caches[message] = tokens;
  2751. }
  2752. return compile(tokens, values);
  2753. }
  2754. }]);
  2755. return BaseFormatter;
  2756. }();
  2757. exports.Formatter = BaseFormatter;
  2758. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2759. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2760. function parse(format, _ref) {
  2761. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2762. startDelimiter = _ref2[0],
  2763. endDelimiter = _ref2[1];
  2764. var tokens = [];
  2765. var position = 0;
  2766. var text = '';
  2767. while (position < format.length) {
  2768. var char = format[position++];
  2769. if (char === startDelimiter) {
  2770. if (text) {
  2771. tokens.push({
  2772. type: 'text',
  2773. value: text
  2774. });
  2775. }
  2776. text = '';
  2777. var sub = '';
  2778. char = format[position++];
  2779. while (char !== undefined && char !== endDelimiter) {
  2780. sub += char;
  2781. char = format[position++];
  2782. }
  2783. var isClosed = char === endDelimiter;
  2784. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2785. tokens.push({
  2786. value: sub,
  2787. type: type
  2788. });
  2789. }
  2790. // else if (char === '%') {
  2791. // // when found rails i18n syntax, skip text capture
  2792. // if (format[position] !== '{') {
  2793. // text += char
  2794. // }
  2795. // }
  2796. else {
  2797. text += char;
  2798. }
  2799. }
  2800. text && tokens.push({
  2801. type: 'text',
  2802. value: text
  2803. });
  2804. return tokens;
  2805. }
  2806. function compile(tokens, values) {
  2807. var compiled = [];
  2808. var index = 0;
  2809. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2810. if (mode === 'unknown') {
  2811. return compiled;
  2812. }
  2813. while (index < tokens.length) {
  2814. var token = tokens[index];
  2815. switch (token.type) {
  2816. case 'text':
  2817. compiled.push(token.value);
  2818. break;
  2819. case 'list':
  2820. compiled.push(values[parseInt(token.value, 10)]);
  2821. break;
  2822. case 'named':
  2823. if (mode === 'named') {
  2824. compiled.push(values[token.value]);
  2825. } else {
  2826. if (true) {
  2827. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2828. }
  2829. }
  2830. break;
  2831. case 'unknown':
  2832. if (true) {
  2833. console.warn("Detect 'unknown' type of token!");
  2834. }
  2835. break;
  2836. }
  2837. index++;
  2838. }
  2839. return compiled;
  2840. }
  2841. var LOCALE_ZH_HANS = 'zh-Hans';
  2842. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2843. var LOCALE_ZH_HANT = 'zh-Hant';
  2844. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2845. var LOCALE_EN = 'en';
  2846. exports.LOCALE_EN = LOCALE_EN;
  2847. var LOCALE_FR = 'fr';
  2848. exports.LOCALE_FR = LOCALE_FR;
  2849. var LOCALE_ES = 'es';
  2850. exports.LOCALE_ES = LOCALE_ES;
  2851. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2852. var hasOwn = function hasOwn(val, key) {
  2853. return hasOwnProperty.call(val, key);
  2854. };
  2855. var defaultFormatter = new BaseFormatter();
  2856. function include(str, parts) {
  2857. return !!parts.find(function (part) {
  2858. return str.indexOf(part) !== -1;
  2859. });
  2860. }
  2861. function startsWith(str, parts) {
  2862. return parts.find(function (part) {
  2863. return str.indexOf(part) === 0;
  2864. });
  2865. }
  2866. function normalizeLocale(locale, messages) {
  2867. if (!locale) {
  2868. return;
  2869. }
  2870. locale = locale.trim().replace(/_/g, '-');
  2871. if (messages && messages[locale]) {
  2872. return locale;
  2873. }
  2874. locale = locale.toLowerCase();
  2875. if (locale.indexOf('zh') === 0) {
  2876. if (locale.indexOf('-hans') > -1) {
  2877. return LOCALE_ZH_HANS;
  2878. }
  2879. if (locale.indexOf('-hant') > -1) {
  2880. return LOCALE_ZH_HANT;
  2881. }
  2882. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2883. return LOCALE_ZH_HANT;
  2884. }
  2885. return LOCALE_ZH_HANS;
  2886. }
  2887. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  2888. if (lang) {
  2889. return lang;
  2890. }
  2891. }
  2892. var I18n = /*#__PURE__*/function () {
  2893. function I18n(_ref3) {
  2894. var locale = _ref3.locale,
  2895. fallbackLocale = _ref3.fallbackLocale,
  2896. messages = _ref3.messages,
  2897. watcher = _ref3.watcher,
  2898. formater = _ref3.formater;
  2899. (0, _classCallCheck2.default)(this, I18n);
  2900. this.locale = LOCALE_EN;
  2901. this.fallbackLocale = LOCALE_EN;
  2902. this.message = {};
  2903. this.messages = {};
  2904. this.watchers = [];
  2905. if (fallbackLocale) {
  2906. this.fallbackLocale = fallbackLocale;
  2907. }
  2908. this.formater = formater || defaultFormatter;
  2909. this.messages = messages || {};
  2910. this.setLocale(locale || LOCALE_EN);
  2911. if (watcher) {
  2912. this.watchLocale(watcher);
  2913. }
  2914. }
  2915. (0, _createClass2.default)(I18n, [{
  2916. key: "setLocale",
  2917. value: function setLocale(locale) {
  2918. var _this = this;
  2919. var oldLocale = this.locale;
  2920. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2921. if (!this.messages[this.locale]) {
  2922. // 可能初始化时不存在
  2923. this.messages[this.locale] = {};
  2924. }
  2925. this.message = this.messages[this.locale];
  2926. // 仅发生变化时,通知
  2927. if (oldLocale !== this.locale) {
  2928. this.watchers.forEach(function (watcher) {
  2929. watcher(_this.locale, oldLocale);
  2930. });
  2931. }
  2932. }
  2933. }, {
  2934. key: "getLocale",
  2935. value: function getLocale() {
  2936. return this.locale;
  2937. }
  2938. }, {
  2939. key: "watchLocale",
  2940. value: function watchLocale(fn) {
  2941. var _this2 = this;
  2942. var index = this.watchers.push(fn) - 1;
  2943. return function () {
  2944. _this2.watchers.splice(index, 1);
  2945. };
  2946. }
  2947. }, {
  2948. key: "add",
  2949. value: function add(locale, message) {
  2950. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2951. var curMessages = this.messages[locale];
  2952. if (curMessages) {
  2953. if (override) {
  2954. Object.assign(curMessages, message);
  2955. } else {
  2956. Object.keys(message).forEach(function (key) {
  2957. if (!hasOwn(curMessages, key)) {
  2958. curMessages[key] = message[key];
  2959. }
  2960. });
  2961. }
  2962. } else {
  2963. this.messages[locale] = message;
  2964. }
  2965. }
  2966. }, {
  2967. key: "f",
  2968. value: function f(message, values, delimiters) {
  2969. return this.formater.interpolate(message, values, delimiters).join('');
  2970. }
  2971. }, {
  2972. key: "t",
  2973. value: function t(key, locale, values) {
  2974. var message = this.message;
  2975. if (typeof locale === 'string') {
  2976. locale = normalizeLocale(locale, this.messages);
  2977. locale && (message = this.messages[locale]);
  2978. } else {
  2979. values = locale;
  2980. }
  2981. if (!hasOwn(message, key)) {
  2982. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  2983. return key;
  2984. }
  2985. return this.formater.interpolate(message[key], values).join('');
  2986. }
  2987. }]);
  2988. return I18n;
  2989. }();
  2990. exports.I18n = I18n;
  2991. function watchAppLocale(appVm, i18n) {
  2992. // 需要保证 watch 的触发在组件渲染之前
  2993. if (appVm.$watchLocale) {
  2994. // vue2
  2995. appVm.$watchLocale(function (newLocale) {
  2996. i18n.setLocale(newLocale);
  2997. });
  2998. } else {
  2999. appVm.$watch(function () {
  3000. return appVm.$locale;
  3001. }, function (newLocale) {
  3002. i18n.setLocale(newLocale);
  3003. });
  3004. }
  3005. }
  3006. function getDefaultLocale() {
  3007. if (typeof uni !== 'undefined' && uni.getLocale) {
  3008. return uni.getLocale();
  3009. }
  3010. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3011. if (typeof global !== 'undefined' && global.getLocale) {
  3012. return global.getLocale();
  3013. }
  3014. return LOCALE_EN;
  3015. }
  3016. function initVueI18n(locale) {
  3017. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3018. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3019. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3020. // 兼容旧版本入参
  3021. if (typeof locale !== 'string') {
  3022. var _ref4 = [messages, locale];
  3023. locale = _ref4[0];
  3024. messages = _ref4[1];
  3025. }
  3026. if (typeof locale !== 'string') {
  3027. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3028. locale = getDefaultLocale();
  3029. }
  3030. if (typeof fallbackLocale !== 'string') {
  3031. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3032. }
  3033. var i18n = new I18n({
  3034. locale: locale,
  3035. fallbackLocale: fallbackLocale,
  3036. messages: messages,
  3037. watcher: watcher
  3038. });
  3039. var _t = function t(key, values) {
  3040. if (typeof getApp !== 'function') {
  3041. // app view
  3042. /* eslint-disable no-func-assign */
  3043. _t = function t(key, values) {
  3044. return i18n.t(key, values);
  3045. };
  3046. } else {
  3047. var isWatchedAppLocale = false;
  3048. _t = function t(key, values) {
  3049. var appVm = getApp().$vm;
  3050. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3051. // options: {
  3052. // type: Array,
  3053. // default () {
  3054. // return [{
  3055. // icon: 'shop',
  3056. // text: t("uni-goods-nav.options.shop"),
  3057. // }, {
  3058. // icon: 'cart',
  3059. // text: t("uni-goods-nav.options.cart")
  3060. // }]
  3061. // }
  3062. // },
  3063. if (appVm) {
  3064. // 触发响应式
  3065. appVm.$locale;
  3066. if (!isWatchedAppLocale) {
  3067. isWatchedAppLocale = true;
  3068. watchAppLocale(appVm, i18n);
  3069. }
  3070. }
  3071. return i18n.t(key, values);
  3072. };
  3073. }
  3074. return _t(key, values);
  3075. };
  3076. return {
  3077. i18n: i18n,
  3078. f: function f(message, values, delimiters) {
  3079. return i18n.f(message, values, delimiters);
  3080. },
  3081. t: function t(key, values) {
  3082. return _t(key, values);
  3083. },
  3084. add: function add(locale, message) {
  3085. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3086. return i18n.add(locale, message, override);
  3087. },
  3088. watch: function watch(fn) {
  3089. return i18n.watchLocale(fn);
  3090. },
  3091. getLocale: function getLocale() {
  3092. return i18n.getLocale();
  3093. },
  3094. setLocale: function setLocale(newLocale) {
  3095. return i18n.setLocale(newLocale);
  3096. }
  3097. };
  3098. }
  3099. var isString = function isString(val) {
  3100. return typeof val === 'string';
  3101. };
  3102. exports.isString = isString;
  3103. var formater;
  3104. function hasI18nJson(jsonObj, delimiters) {
  3105. if (!formater) {
  3106. formater = new BaseFormatter();
  3107. }
  3108. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3109. var value = jsonObj[key];
  3110. if (isString(value)) {
  3111. if (isI18nStr(value, delimiters)) {
  3112. return true;
  3113. }
  3114. } else {
  3115. return hasI18nJson(value, delimiters);
  3116. }
  3117. });
  3118. }
  3119. function parseI18nJson(jsonObj, values, delimiters) {
  3120. if (!formater) {
  3121. formater = new BaseFormatter();
  3122. }
  3123. walkJsonObj(jsonObj, function (jsonObj, key) {
  3124. var value = jsonObj[key];
  3125. if (isString(value)) {
  3126. if (isI18nStr(value, delimiters)) {
  3127. jsonObj[key] = compileStr(value, values, delimiters);
  3128. }
  3129. } else {
  3130. parseI18nJson(value, values, delimiters);
  3131. }
  3132. });
  3133. return jsonObj;
  3134. }
  3135. function compileI18nJsonStr(jsonStr, _ref5) {
  3136. var locale = _ref5.locale,
  3137. locales = _ref5.locales,
  3138. delimiters = _ref5.delimiters;
  3139. if (!isI18nStr(jsonStr, delimiters)) {
  3140. return jsonStr;
  3141. }
  3142. if (!formater) {
  3143. formater = new BaseFormatter();
  3144. }
  3145. var localeValues = [];
  3146. Object.keys(locales).forEach(function (name) {
  3147. if (name !== locale) {
  3148. localeValues.push({
  3149. locale: name,
  3150. values: locales[name]
  3151. });
  3152. }
  3153. });
  3154. localeValues.unshift({
  3155. locale: locale,
  3156. values: locales[locale]
  3157. });
  3158. try {
  3159. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3160. } catch (e) {}
  3161. return jsonStr;
  3162. }
  3163. function isI18nStr(value, delimiters) {
  3164. return value.indexOf(delimiters[0]) > -1;
  3165. }
  3166. function compileStr(value, values, delimiters) {
  3167. return formater.interpolate(value, values, delimiters).join('');
  3168. }
  3169. function compileValue(jsonObj, key, localeValues, delimiters) {
  3170. var value = jsonObj[key];
  3171. if (isString(value)) {
  3172. // 存在国际化
  3173. if (isI18nStr(value, delimiters)) {
  3174. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3175. if (localeValues.length > 1) {
  3176. // 格式化国际化语言
  3177. var valueLocales = jsonObj[key + 'Locales'] = {};
  3178. localeValues.forEach(function (localValue) {
  3179. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3180. });
  3181. }
  3182. }
  3183. } else {
  3184. compileJsonObj(value, localeValues, delimiters);
  3185. }
  3186. }
  3187. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3188. walkJsonObj(jsonObj, function (jsonObj, key) {
  3189. compileValue(jsonObj, key, localeValues, delimiters);
  3190. });
  3191. return jsonObj;
  3192. }
  3193. function walkJsonObj(jsonObj, walk) {
  3194. if (isArray(jsonObj)) {
  3195. for (var i = 0; i < jsonObj.length; i++) {
  3196. if (walk(jsonObj, i)) {
  3197. return true;
  3198. }
  3199. }
  3200. } else if (isObject(jsonObj)) {
  3201. for (var key in jsonObj) {
  3202. if (walk(jsonObj, key)) {
  3203. return true;
  3204. }
  3205. }
  3206. }
  3207. return false;
  3208. }
  3209. function resolveLocale(locales) {
  3210. return function (locale) {
  3211. if (!locale) {
  3212. return locale;
  3213. }
  3214. locale = normalizeLocale(locale) || locale;
  3215. return resolveLocaleChain(locale).find(function (locale) {
  3216. return locales.indexOf(locale) > -1;
  3217. });
  3218. };
  3219. }
  3220. function resolveLocaleChain(locale) {
  3221. var chain = [];
  3222. var tokens = locale.split('-');
  3223. while (tokens.length) {
  3224. chain.push(tokens.join('-'));
  3225. tokens.pop();
  3226. }
  3227. return chain;
  3228. }
  3229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3230. /***/ }),
  3231. /* 23 */
  3232. /*!***************************************************************!*\
  3233. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3234. \***************************************************************/
  3235. /*! no static exports found */
  3236. /***/ (function(module, exports) {
  3237. function _classCallCheck(instance, Constructor) {
  3238. if (!(instance instanceof Constructor)) {
  3239. throw new TypeError("Cannot call a class as a function");
  3240. }
  3241. }
  3242. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3243. /***/ }),
  3244. /* 24 */
  3245. /*!************************************************************!*\
  3246. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3247. \************************************************************/
  3248. /*! no static exports found */
  3249. /***/ (function(module, exports, __webpack_require__) {
  3250. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3251. function _defineProperties(target, props) {
  3252. for (var i = 0; i < props.length; i++) {
  3253. var descriptor = props[i];
  3254. descriptor.enumerable = descriptor.enumerable || false;
  3255. descriptor.configurable = true;
  3256. if ("value" in descriptor) descriptor.writable = true;
  3257. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3258. }
  3259. }
  3260. function _createClass(Constructor, protoProps, staticProps) {
  3261. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3262. if (staticProps) _defineProperties(Constructor, staticProps);
  3263. Object.defineProperty(Constructor, "prototype", {
  3264. writable: false
  3265. });
  3266. return Constructor;
  3267. }
  3268. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 25 */
  3271. /*!******************************************************************************************!*\
  3272. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3273. \******************************************************************************************/
  3274. /*! exports provided: default */
  3275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3276. "use strict";
  3277. __webpack_require__.r(__webpack_exports__);
  3278. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3279. * Vue.js v2.6.11
  3280. * (c) 2014-2022 Evan You
  3281. * Released under the MIT License.
  3282. */
  3283. /* */
  3284. var emptyObject = Object.freeze({});
  3285. // These helpers produce better VM code in JS engines due to their
  3286. // explicitness and function inlining.
  3287. function isUndef (v) {
  3288. return v === undefined || v === null
  3289. }
  3290. function isDef (v) {
  3291. return v !== undefined && v !== null
  3292. }
  3293. function isTrue (v) {
  3294. return v === true
  3295. }
  3296. function isFalse (v) {
  3297. return v === false
  3298. }
  3299. /**
  3300. * Check if value is primitive.
  3301. */
  3302. function isPrimitive (value) {
  3303. return (
  3304. typeof value === 'string' ||
  3305. typeof value === 'number' ||
  3306. // $flow-disable-line
  3307. typeof value === 'symbol' ||
  3308. typeof value === 'boolean'
  3309. )
  3310. }
  3311. /**
  3312. * Quick object check - this is primarily used to tell
  3313. * Objects from primitive values when we know the value
  3314. * is a JSON-compliant type.
  3315. */
  3316. function isObject (obj) {
  3317. return obj !== null && typeof obj === 'object'
  3318. }
  3319. /**
  3320. * Get the raw type string of a value, e.g., [object Object].
  3321. */
  3322. var _toString = Object.prototype.toString;
  3323. function toRawType (value) {
  3324. return _toString.call(value).slice(8, -1)
  3325. }
  3326. /**
  3327. * Strict object type check. Only returns true
  3328. * for plain JavaScript objects.
  3329. */
  3330. function isPlainObject (obj) {
  3331. return _toString.call(obj) === '[object Object]'
  3332. }
  3333. function isRegExp (v) {
  3334. return _toString.call(v) === '[object RegExp]'
  3335. }
  3336. /**
  3337. * Check if val is a valid array index.
  3338. */
  3339. function isValidArrayIndex (val) {
  3340. var n = parseFloat(String(val));
  3341. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3342. }
  3343. function isPromise (val) {
  3344. return (
  3345. isDef(val) &&
  3346. typeof val.then === 'function' &&
  3347. typeof val.catch === 'function'
  3348. )
  3349. }
  3350. /**
  3351. * Convert a value to a string that is actually rendered.
  3352. */
  3353. function toString (val) {
  3354. return val == null
  3355. ? ''
  3356. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3357. ? JSON.stringify(val, null, 2)
  3358. : String(val)
  3359. }
  3360. /**
  3361. * Convert an input value to a number for persistence.
  3362. * If the conversion fails, return original string.
  3363. */
  3364. function toNumber (val) {
  3365. var n = parseFloat(val);
  3366. return isNaN(n) ? val : n
  3367. }
  3368. /**
  3369. * Make a map and return a function for checking if a key
  3370. * is in that map.
  3371. */
  3372. function makeMap (
  3373. str,
  3374. expectsLowerCase
  3375. ) {
  3376. var map = Object.create(null);
  3377. var list = str.split(',');
  3378. for (var i = 0; i < list.length; i++) {
  3379. map[list[i]] = true;
  3380. }
  3381. return expectsLowerCase
  3382. ? function (val) { return map[val.toLowerCase()]; }
  3383. : function (val) { return map[val]; }
  3384. }
  3385. /**
  3386. * Check if a tag is a built-in tag.
  3387. */
  3388. var isBuiltInTag = makeMap('slot,component', true);
  3389. /**
  3390. * Check if an attribute is a reserved attribute.
  3391. */
  3392. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3393. /**
  3394. * Remove an item from an array.
  3395. */
  3396. function remove (arr, item) {
  3397. if (arr.length) {
  3398. var index = arr.indexOf(item);
  3399. if (index > -1) {
  3400. return arr.splice(index, 1)
  3401. }
  3402. }
  3403. }
  3404. /**
  3405. * Check whether an object has the property.
  3406. */
  3407. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3408. function hasOwn (obj, key) {
  3409. return hasOwnProperty.call(obj, key)
  3410. }
  3411. /**
  3412. * Create a cached version of a pure function.
  3413. */
  3414. function cached (fn) {
  3415. var cache = Object.create(null);
  3416. return (function cachedFn (str) {
  3417. var hit = cache[str];
  3418. return hit || (cache[str] = fn(str))
  3419. })
  3420. }
  3421. /**
  3422. * Camelize a hyphen-delimited string.
  3423. */
  3424. var camelizeRE = /-(\w)/g;
  3425. var camelize = cached(function (str) {
  3426. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3427. });
  3428. /**
  3429. * Capitalize a string.
  3430. */
  3431. var capitalize = cached(function (str) {
  3432. return str.charAt(0).toUpperCase() + str.slice(1)
  3433. });
  3434. /**
  3435. * Hyphenate a camelCase string.
  3436. */
  3437. var hyphenateRE = /\B([A-Z])/g;
  3438. var hyphenate = cached(function (str) {
  3439. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3440. });
  3441. /**
  3442. * Simple bind polyfill for environments that do not support it,
  3443. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3444. * since native bind is now performant enough in most browsers.
  3445. * But removing it would mean breaking code that was able to run in
  3446. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3447. */
  3448. /* istanbul ignore next */
  3449. function polyfillBind (fn, ctx) {
  3450. function boundFn (a) {
  3451. var l = arguments.length;
  3452. return l
  3453. ? l > 1
  3454. ? fn.apply(ctx, arguments)
  3455. : fn.call(ctx, a)
  3456. : fn.call(ctx)
  3457. }
  3458. boundFn._length = fn.length;
  3459. return boundFn
  3460. }
  3461. function nativeBind (fn, ctx) {
  3462. return fn.bind(ctx)
  3463. }
  3464. var bind = Function.prototype.bind
  3465. ? nativeBind
  3466. : polyfillBind;
  3467. /**
  3468. * Convert an Array-like object to a real Array.
  3469. */
  3470. function toArray (list, start) {
  3471. start = start || 0;
  3472. var i = list.length - start;
  3473. var ret = new Array(i);
  3474. while (i--) {
  3475. ret[i] = list[i + start];
  3476. }
  3477. return ret
  3478. }
  3479. /**
  3480. * Mix properties into target object.
  3481. */
  3482. function extend (to, _from) {
  3483. for (var key in _from) {
  3484. to[key] = _from[key];
  3485. }
  3486. return to
  3487. }
  3488. /**
  3489. * Merge an Array of Objects into a single Object.
  3490. */
  3491. function toObject (arr) {
  3492. var res = {};
  3493. for (var i = 0; i < arr.length; i++) {
  3494. if (arr[i]) {
  3495. extend(res, arr[i]);
  3496. }
  3497. }
  3498. return res
  3499. }
  3500. /* eslint-disable no-unused-vars */
  3501. /**
  3502. * Perform no operation.
  3503. * Stubbing args to make Flow happy without leaving useless transpiled code
  3504. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3505. */
  3506. function noop (a, b, c) {}
  3507. /**
  3508. * Always return false.
  3509. */
  3510. var no = function (a, b, c) { return false; };
  3511. /* eslint-enable no-unused-vars */
  3512. /**
  3513. * Return the same value.
  3514. */
  3515. var identity = function (_) { return _; };
  3516. /**
  3517. * Check if two values are loosely equal - that is,
  3518. * if they are plain objects, do they have the same shape?
  3519. */
  3520. function looseEqual (a, b) {
  3521. if (a === b) { return true }
  3522. var isObjectA = isObject(a);
  3523. var isObjectB = isObject(b);
  3524. if (isObjectA && isObjectB) {
  3525. try {
  3526. var isArrayA = Array.isArray(a);
  3527. var isArrayB = Array.isArray(b);
  3528. if (isArrayA && isArrayB) {
  3529. return a.length === b.length && a.every(function (e, i) {
  3530. return looseEqual(e, b[i])
  3531. })
  3532. } else if (a instanceof Date && b instanceof Date) {
  3533. return a.getTime() === b.getTime()
  3534. } else if (!isArrayA && !isArrayB) {
  3535. var keysA = Object.keys(a);
  3536. var keysB = Object.keys(b);
  3537. return keysA.length === keysB.length && keysA.every(function (key) {
  3538. return looseEqual(a[key], b[key])
  3539. })
  3540. } else {
  3541. /* istanbul ignore next */
  3542. return false
  3543. }
  3544. } catch (e) {
  3545. /* istanbul ignore next */
  3546. return false
  3547. }
  3548. } else if (!isObjectA && !isObjectB) {
  3549. return String(a) === String(b)
  3550. } else {
  3551. return false
  3552. }
  3553. }
  3554. /**
  3555. * Return the first index at which a loosely equal value can be
  3556. * found in the array (if value is a plain object, the array must
  3557. * contain an object of the same shape), or -1 if it is not present.
  3558. */
  3559. function looseIndexOf (arr, val) {
  3560. for (var i = 0; i < arr.length; i++) {
  3561. if (looseEqual(arr[i], val)) { return i }
  3562. }
  3563. return -1
  3564. }
  3565. /**
  3566. * Ensure a function is called only once.
  3567. */
  3568. function once (fn) {
  3569. var called = false;
  3570. return function () {
  3571. if (!called) {
  3572. called = true;
  3573. fn.apply(this, arguments);
  3574. }
  3575. }
  3576. }
  3577. var ASSET_TYPES = [
  3578. 'component',
  3579. 'directive',
  3580. 'filter'
  3581. ];
  3582. var LIFECYCLE_HOOKS = [
  3583. 'beforeCreate',
  3584. 'created',
  3585. 'beforeMount',
  3586. 'mounted',
  3587. 'beforeUpdate',
  3588. 'updated',
  3589. 'beforeDestroy',
  3590. 'destroyed',
  3591. 'activated',
  3592. 'deactivated',
  3593. 'errorCaptured',
  3594. 'serverPrefetch'
  3595. ];
  3596. /* */
  3597. var config = ({
  3598. /**
  3599. * Option merge strategies (used in core/util/options)
  3600. */
  3601. // $flow-disable-line
  3602. optionMergeStrategies: Object.create(null),
  3603. /**
  3604. * Whether to suppress warnings.
  3605. */
  3606. silent: false,
  3607. /**
  3608. * Show production mode tip message on boot?
  3609. */
  3610. productionTip: "development" !== 'production',
  3611. /**
  3612. * Whether to enable devtools
  3613. */
  3614. devtools: "development" !== 'production',
  3615. /**
  3616. * Whether to record perf
  3617. */
  3618. performance: false,
  3619. /**
  3620. * Error handler for watcher errors
  3621. */
  3622. errorHandler: null,
  3623. /**
  3624. * Warn handler for watcher warns
  3625. */
  3626. warnHandler: null,
  3627. /**
  3628. * Ignore certain custom elements
  3629. */
  3630. ignoredElements: [],
  3631. /**
  3632. * Custom user key aliases for v-on
  3633. */
  3634. // $flow-disable-line
  3635. keyCodes: Object.create(null),
  3636. /**
  3637. * Check if a tag is reserved so that it cannot be registered as a
  3638. * component. This is platform-dependent and may be overwritten.
  3639. */
  3640. isReservedTag: no,
  3641. /**
  3642. * Check if an attribute is reserved so that it cannot be used as a component
  3643. * prop. This is platform-dependent and may be overwritten.
  3644. */
  3645. isReservedAttr: no,
  3646. /**
  3647. * Check if a tag is an unknown element.
  3648. * Platform-dependent.
  3649. */
  3650. isUnknownElement: no,
  3651. /**
  3652. * Get the namespace of an element
  3653. */
  3654. getTagNamespace: noop,
  3655. /**
  3656. * Parse the real tag name for the specific platform.
  3657. */
  3658. parsePlatformTagName: identity,
  3659. /**
  3660. * Check if an attribute must be bound using property, e.g. value
  3661. * Platform-dependent.
  3662. */
  3663. mustUseProp: no,
  3664. /**
  3665. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3666. * This will significantly reduce performance if set to false.
  3667. */
  3668. async: true,
  3669. /**
  3670. * Exposed for legacy reasons
  3671. */
  3672. _lifecycleHooks: LIFECYCLE_HOOKS
  3673. });
  3674. /* */
  3675. /**
  3676. * unicode letters used for parsing html tags, component names and property paths.
  3677. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3678. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3679. */
  3680. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3681. /**
  3682. * Check if a string starts with $ or _
  3683. */
  3684. function isReserved (str) {
  3685. var c = (str + '').charCodeAt(0);
  3686. return c === 0x24 || c === 0x5F
  3687. }
  3688. /**
  3689. * Define a property.
  3690. */
  3691. function def (obj, key, val, enumerable) {
  3692. Object.defineProperty(obj, key, {
  3693. value: val,
  3694. enumerable: !!enumerable,
  3695. writable: true,
  3696. configurable: true
  3697. });
  3698. }
  3699. /**
  3700. * Parse simple path.
  3701. */
  3702. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3703. function parsePath (path) {
  3704. if (bailRE.test(path)) {
  3705. return
  3706. }
  3707. var segments = path.split('.');
  3708. return function (obj) {
  3709. for (var i = 0; i < segments.length; i++) {
  3710. if (!obj) { return }
  3711. obj = obj[segments[i]];
  3712. }
  3713. return obj
  3714. }
  3715. }
  3716. /* */
  3717. // can we use __proto__?
  3718. var hasProto = '__proto__' in {};
  3719. // Browser environment sniffing
  3720. var inBrowser = typeof window !== 'undefined';
  3721. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3722. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3723. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3724. var isIE = UA && /msie|trident/.test(UA);
  3725. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3726. var isEdge = UA && UA.indexOf('edge/') > 0;
  3727. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3728. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3729. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3730. var isPhantomJS = UA && /phantomjs/.test(UA);
  3731. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3732. // Firefox has a "watch" function on Object.prototype...
  3733. var nativeWatch = ({}).watch;
  3734. if (inBrowser) {
  3735. try {
  3736. var opts = {};
  3737. Object.defineProperty(opts, 'passive', ({
  3738. get: function get () {
  3739. }
  3740. })); // https://github.com/facebook/flow/issues/285
  3741. window.addEventListener('test-passive', null, opts);
  3742. } catch (e) {}
  3743. }
  3744. // this needs to be lazy-evaled because vue may be required before
  3745. // vue-server-renderer can set VUE_ENV
  3746. var _isServer;
  3747. var isServerRendering = function () {
  3748. if (_isServer === undefined) {
  3749. /* istanbul ignore if */
  3750. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3751. // detect presence of vue-server-renderer and avoid
  3752. // Webpack shimming the process
  3753. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3754. } else {
  3755. _isServer = false;
  3756. }
  3757. }
  3758. return _isServer
  3759. };
  3760. // detect devtools
  3761. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3762. /* istanbul ignore next */
  3763. function isNative (Ctor) {
  3764. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3765. }
  3766. var hasSymbol =
  3767. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3768. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3769. var _Set;
  3770. /* istanbul ignore if */ // $flow-disable-line
  3771. if (typeof Set !== 'undefined' && isNative(Set)) {
  3772. // use native Set when available.
  3773. _Set = Set;
  3774. } else {
  3775. // a non-standard Set polyfill that only works with primitive keys.
  3776. _Set = /*@__PURE__*/(function () {
  3777. function Set () {
  3778. this.set = Object.create(null);
  3779. }
  3780. Set.prototype.has = function has (key) {
  3781. return this.set[key] === true
  3782. };
  3783. Set.prototype.add = function add (key) {
  3784. this.set[key] = true;
  3785. };
  3786. Set.prototype.clear = function clear () {
  3787. this.set = Object.create(null);
  3788. };
  3789. return Set;
  3790. }());
  3791. }
  3792. /* */
  3793. var warn = noop;
  3794. var tip = noop;
  3795. var generateComponentTrace = (noop); // work around flow check
  3796. var formatComponentName = (noop);
  3797. if (true) {
  3798. var hasConsole = typeof console !== 'undefined';
  3799. var classifyRE = /(?:^|[-_])(\w)/g;
  3800. var classify = function (str) { return str
  3801. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3802. .replace(/[-_]/g, ''); };
  3803. warn = function (msg, vm) {
  3804. var trace = vm ? generateComponentTrace(vm) : '';
  3805. if (config.warnHandler) {
  3806. config.warnHandler.call(null, msg, vm, trace);
  3807. } else if (hasConsole && (!config.silent)) {
  3808. console.error(("[Vue warn]: " + msg + trace));
  3809. }
  3810. };
  3811. tip = function (msg, vm) {
  3812. if (hasConsole && (!config.silent)) {
  3813. console.warn("[Vue tip]: " + msg + (
  3814. vm ? generateComponentTrace(vm) : ''
  3815. ));
  3816. }
  3817. };
  3818. formatComponentName = function (vm, includeFile) {
  3819. if (vm.$root === vm) {
  3820. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3821. return ('') + vm.$options.__file
  3822. }
  3823. return '<Root>'
  3824. }
  3825. var options = typeof vm === 'function' && vm.cid != null
  3826. ? vm.options
  3827. : vm._isVue
  3828. ? vm.$options || vm.constructor.options
  3829. : vm;
  3830. var name = options.name || options._componentTag;
  3831. var file = options.__file;
  3832. if (!name && file) {
  3833. var match = file.match(/([^/\\]+)\.vue$/);
  3834. name = match && match[1];
  3835. }
  3836. return (
  3837. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3838. (file && includeFile !== false ? (" at " + file) : '')
  3839. )
  3840. };
  3841. var repeat = function (str, n) {
  3842. var res = '';
  3843. while (n) {
  3844. if (n % 2 === 1) { res += str; }
  3845. if (n > 1) { str += str; }
  3846. n >>= 1;
  3847. }
  3848. return res
  3849. };
  3850. generateComponentTrace = function (vm) {
  3851. if (vm._isVue && vm.$parent) {
  3852. var tree = [];
  3853. var currentRecursiveSequence = 0;
  3854. while (vm && vm.$options.name !== 'PageBody') {
  3855. if (tree.length > 0) {
  3856. var last = tree[tree.length - 1];
  3857. if (last.constructor === vm.constructor) {
  3858. currentRecursiveSequence++;
  3859. vm = vm.$parent;
  3860. continue
  3861. } else if (currentRecursiveSequence > 0) {
  3862. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3863. currentRecursiveSequence = 0;
  3864. }
  3865. }
  3866. !vm.$options.isReserved && tree.push(vm);
  3867. vm = vm.$parent;
  3868. }
  3869. return '\n\nfound in\n\n' + tree
  3870. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3871. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3872. : formatComponentName(vm))); })
  3873. .join('\n')
  3874. } else {
  3875. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3876. }
  3877. };
  3878. }
  3879. /* */
  3880. var uid = 0;
  3881. /**
  3882. * A dep is an observable that can have multiple
  3883. * directives subscribing to it.
  3884. */
  3885. var Dep = function Dep () {
  3886. this.id = uid++;
  3887. this.subs = [];
  3888. };
  3889. Dep.prototype.addSub = function addSub (sub) {
  3890. this.subs.push(sub);
  3891. };
  3892. Dep.prototype.removeSub = function removeSub (sub) {
  3893. remove(this.subs, sub);
  3894. };
  3895. Dep.prototype.depend = function depend () {
  3896. if (Dep.SharedObject.target) {
  3897. Dep.SharedObject.target.addDep(this);
  3898. }
  3899. };
  3900. Dep.prototype.notify = function notify () {
  3901. // stabilize the subscriber list first
  3902. var subs = this.subs.slice();
  3903. if ( true && !config.async) {
  3904. // subs aren't sorted in scheduler if not running async
  3905. // we need to sort them now to make sure they fire in correct
  3906. // order
  3907. subs.sort(function (a, b) { return a.id - b.id; });
  3908. }
  3909. for (var i = 0, l = subs.length; i < l; i++) {
  3910. subs[i].update();
  3911. }
  3912. };
  3913. // The current target watcher being evaluated.
  3914. // This is globally unique because only one watcher
  3915. // can be evaluated at a time.
  3916. // fixed by xxxxxx (nvue shared vuex)
  3917. /* eslint-disable no-undef */
  3918. Dep.SharedObject = {};
  3919. Dep.SharedObject.target = null;
  3920. Dep.SharedObject.targetStack = [];
  3921. function pushTarget (target) {
  3922. Dep.SharedObject.targetStack.push(target);
  3923. Dep.SharedObject.target = target;
  3924. Dep.target = target;
  3925. }
  3926. function popTarget () {
  3927. Dep.SharedObject.targetStack.pop();
  3928. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3929. Dep.target = Dep.SharedObject.target;
  3930. }
  3931. /* */
  3932. var VNode = function VNode (
  3933. tag,
  3934. data,
  3935. children,
  3936. text,
  3937. elm,
  3938. context,
  3939. componentOptions,
  3940. asyncFactory
  3941. ) {
  3942. this.tag = tag;
  3943. this.data = data;
  3944. this.children = children;
  3945. this.text = text;
  3946. this.elm = elm;
  3947. this.ns = undefined;
  3948. this.context = context;
  3949. this.fnContext = undefined;
  3950. this.fnOptions = undefined;
  3951. this.fnScopeId = undefined;
  3952. this.key = data && data.key;
  3953. this.componentOptions = componentOptions;
  3954. this.componentInstance = undefined;
  3955. this.parent = undefined;
  3956. this.raw = false;
  3957. this.isStatic = false;
  3958. this.isRootInsert = true;
  3959. this.isComment = false;
  3960. this.isCloned = false;
  3961. this.isOnce = false;
  3962. this.asyncFactory = asyncFactory;
  3963. this.asyncMeta = undefined;
  3964. this.isAsyncPlaceholder = false;
  3965. };
  3966. var prototypeAccessors = { child: { configurable: true } };
  3967. // DEPRECATED: alias for componentInstance for backwards compat.
  3968. /* istanbul ignore next */
  3969. prototypeAccessors.child.get = function () {
  3970. return this.componentInstance
  3971. };
  3972. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3973. var createEmptyVNode = function (text) {
  3974. if ( text === void 0 ) text = '';
  3975. var node = new VNode();
  3976. node.text = text;
  3977. node.isComment = true;
  3978. return node
  3979. };
  3980. function createTextVNode (val) {
  3981. return new VNode(undefined, undefined, undefined, String(val))
  3982. }
  3983. // optimized shallow clone
  3984. // used for static nodes and slot nodes because they may be reused across
  3985. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3986. // on their elm reference.
  3987. function cloneVNode (vnode) {
  3988. var cloned = new VNode(
  3989. vnode.tag,
  3990. vnode.data,
  3991. // #7975
  3992. // clone children array to avoid mutating original in case of cloning
  3993. // a child.
  3994. vnode.children && vnode.children.slice(),
  3995. vnode.text,
  3996. vnode.elm,
  3997. vnode.context,
  3998. vnode.componentOptions,
  3999. vnode.asyncFactory
  4000. );
  4001. cloned.ns = vnode.ns;
  4002. cloned.isStatic = vnode.isStatic;
  4003. cloned.key = vnode.key;
  4004. cloned.isComment = vnode.isComment;
  4005. cloned.fnContext = vnode.fnContext;
  4006. cloned.fnOptions = vnode.fnOptions;
  4007. cloned.fnScopeId = vnode.fnScopeId;
  4008. cloned.asyncMeta = vnode.asyncMeta;
  4009. cloned.isCloned = true;
  4010. return cloned
  4011. }
  4012. /*
  4013. * not type checking this file because flow doesn't play well with
  4014. * dynamically accessing methods on Array prototype
  4015. */
  4016. var arrayProto = Array.prototype;
  4017. var arrayMethods = Object.create(arrayProto);
  4018. var methodsToPatch = [
  4019. 'push',
  4020. 'pop',
  4021. 'shift',
  4022. 'unshift',
  4023. 'splice',
  4024. 'sort',
  4025. 'reverse'
  4026. ];
  4027. /**
  4028. * Intercept mutating methods and emit events
  4029. */
  4030. methodsToPatch.forEach(function (method) {
  4031. // cache original method
  4032. var original = arrayProto[method];
  4033. def(arrayMethods, method, function mutator () {
  4034. var args = [], len = arguments.length;
  4035. while ( len-- ) args[ len ] = arguments[ len ];
  4036. var result = original.apply(this, args);
  4037. var ob = this.__ob__;
  4038. var inserted;
  4039. switch (method) {
  4040. case 'push':
  4041. case 'unshift':
  4042. inserted = args;
  4043. break
  4044. case 'splice':
  4045. inserted = args.slice(2);
  4046. break
  4047. }
  4048. if (inserted) { ob.observeArray(inserted); }
  4049. // notify change
  4050. ob.dep.notify();
  4051. return result
  4052. });
  4053. });
  4054. /* */
  4055. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4056. /**
  4057. * In some cases we may want to disable observation inside a component's
  4058. * update computation.
  4059. */
  4060. var shouldObserve = true;
  4061. function toggleObserving (value) {
  4062. shouldObserve = value;
  4063. }
  4064. /**
  4065. * Observer class that is attached to each observed
  4066. * object. Once attached, the observer converts the target
  4067. * object's property keys into getter/setters that
  4068. * collect dependencies and dispatch updates.
  4069. */
  4070. var Observer = function Observer (value) {
  4071. this.value = value;
  4072. this.dep = new Dep();
  4073. this.vmCount = 0;
  4074. def(value, '__ob__', this);
  4075. if (Array.isArray(value)) {
  4076. if (hasProto) {
  4077. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4078. if(value.push !== value.__proto__.push){
  4079. copyAugment(value, arrayMethods, arrayKeys);
  4080. } else {
  4081. protoAugment(value, arrayMethods);
  4082. }
  4083. }
  4084. } else {
  4085. copyAugment(value, arrayMethods, arrayKeys);
  4086. }
  4087. this.observeArray(value);
  4088. } else {
  4089. this.walk(value);
  4090. }
  4091. };
  4092. /**
  4093. * Walk through all properties and convert them into
  4094. * getter/setters. This method should only be called when
  4095. * value type is Object.
  4096. */
  4097. Observer.prototype.walk = function walk (obj) {
  4098. var keys = Object.keys(obj);
  4099. for (var i = 0; i < keys.length; i++) {
  4100. defineReactive$$1(obj, keys[i]);
  4101. }
  4102. };
  4103. /**
  4104. * Observe a list of Array items.
  4105. */
  4106. Observer.prototype.observeArray = function observeArray (items) {
  4107. for (var i = 0, l = items.length; i < l; i++) {
  4108. observe(items[i]);
  4109. }
  4110. };
  4111. // helpers
  4112. /**
  4113. * Augment a target Object or Array by intercepting
  4114. * the prototype chain using __proto__
  4115. */
  4116. function protoAugment (target, src) {
  4117. /* eslint-disable no-proto */
  4118. target.__proto__ = src;
  4119. /* eslint-enable no-proto */
  4120. }
  4121. /**
  4122. * Augment a target Object or Array by defining
  4123. * hidden properties.
  4124. */
  4125. /* istanbul ignore next */
  4126. function copyAugment (target, src, keys) {
  4127. for (var i = 0, l = keys.length; i < l; i++) {
  4128. var key = keys[i];
  4129. def(target, key, src[key]);
  4130. }
  4131. }
  4132. /**
  4133. * Attempt to create an observer instance for a value,
  4134. * returns the new observer if successfully observed,
  4135. * or the existing observer if the value already has one.
  4136. */
  4137. function observe (value, asRootData) {
  4138. if (!isObject(value) || value instanceof VNode) {
  4139. return
  4140. }
  4141. var ob;
  4142. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4143. ob = value.__ob__;
  4144. } else if (
  4145. shouldObserve &&
  4146. !isServerRendering() &&
  4147. (Array.isArray(value) || isPlainObject(value)) &&
  4148. Object.isExtensible(value) &&
  4149. !value._isVue &&
  4150. !value.__v_isMPComponent
  4151. ) {
  4152. ob = new Observer(value);
  4153. }
  4154. if (asRootData && ob) {
  4155. ob.vmCount++;
  4156. }
  4157. return ob
  4158. }
  4159. /**
  4160. * Define a reactive property on an Object.
  4161. */
  4162. function defineReactive$$1 (
  4163. obj,
  4164. key,
  4165. val,
  4166. customSetter,
  4167. shallow
  4168. ) {
  4169. var dep = new Dep();
  4170. var property = Object.getOwnPropertyDescriptor(obj, key);
  4171. if (property && property.configurable === false) {
  4172. return
  4173. }
  4174. // cater for pre-defined getter/setters
  4175. var getter = property && property.get;
  4176. var setter = property && property.set;
  4177. if ((!getter || setter) && arguments.length === 2) {
  4178. val = obj[key];
  4179. }
  4180. var childOb = !shallow && observe(val);
  4181. Object.defineProperty(obj, key, {
  4182. enumerable: true,
  4183. configurable: true,
  4184. get: function reactiveGetter () {
  4185. var value = getter ? getter.call(obj) : val;
  4186. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4187. dep.depend();
  4188. if (childOb) {
  4189. childOb.dep.depend();
  4190. if (Array.isArray(value)) {
  4191. dependArray(value);
  4192. }
  4193. }
  4194. }
  4195. return value
  4196. },
  4197. set: function reactiveSetter (newVal) {
  4198. var value = getter ? getter.call(obj) : val;
  4199. /* eslint-disable no-self-compare */
  4200. if (newVal === value || (newVal !== newVal && value !== value)) {
  4201. return
  4202. }
  4203. /* eslint-enable no-self-compare */
  4204. if ( true && customSetter) {
  4205. customSetter();
  4206. }
  4207. // #7981: for accessor properties without setter
  4208. if (getter && !setter) { return }
  4209. if (setter) {
  4210. setter.call(obj, newVal);
  4211. } else {
  4212. val = newVal;
  4213. }
  4214. childOb = !shallow && observe(newVal);
  4215. dep.notify();
  4216. }
  4217. });
  4218. }
  4219. /**
  4220. * Set a property on an object. Adds the new property and
  4221. * triggers change notification if the property doesn't
  4222. * already exist.
  4223. */
  4224. function set (target, key, val) {
  4225. if ( true &&
  4226. (isUndef(target) || isPrimitive(target))
  4227. ) {
  4228. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4229. }
  4230. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4231. target.length = Math.max(target.length, key);
  4232. target.splice(key, 1, val);
  4233. return val
  4234. }
  4235. if (key in target && !(key in Object.prototype)) {
  4236. target[key] = val;
  4237. return val
  4238. }
  4239. var ob = (target).__ob__;
  4240. if (target._isVue || (ob && ob.vmCount)) {
  4241. true && warn(
  4242. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4243. 'at runtime - declare it upfront in the data option.'
  4244. );
  4245. return val
  4246. }
  4247. if (!ob) {
  4248. target[key] = val;
  4249. return val
  4250. }
  4251. defineReactive$$1(ob.value, key, val);
  4252. ob.dep.notify();
  4253. return val
  4254. }
  4255. /**
  4256. * Delete a property and trigger change if necessary.
  4257. */
  4258. function del (target, key) {
  4259. if ( true &&
  4260. (isUndef(target) || isPrimitive(target))
  4261. ) {
  4262. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4263. }
  4264. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4265. target.splice(key, 1);
  4266. return
  4267. }
  4268. var ob = (target).__ob__;
  4269. if (target._isVue || (ob && ob.vmCount)) {
  4270. true && warn(
  4271. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4272. '- just set it to null.'
  4273. );
  4274. return
  4275. }
  4276. if (!hasOwn(target, key)) {
  4277. return
  4278. }
  4279. delete target[key];
  4280. if (!ob) {
  4281. return
  4282. }
  4283. ob.dep.notify();
  4284. }
  4285. /**
  4286. * Collect dependencies on array elements when the array is touched, since
  4287. * we cannot intercept array element access like property getters.
  4288. */
  4289. function dependArray (value) {
  4290. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4291. e = value[i];
  4292. e && e.__ob__ && e.__ob__.dep.depend();
  4293. if (Array.isArray(e)) {
  4294. dependArray(e);
  4295. }
  4296. }
  4297. }
  4298. /* */
  4299. /**
  4300. * Option overwriting strategies are functions that handle
  4301. * how to merge a parent option value and a child option
  4302. * value into the final value.
  4303. */
  4304. var strats = config.optionMergeStrategies;
  4305. /**
  4306. * Options with restrictions
  4307. */
  4308. if (true) {
  4309. strats.el = strats.propsData = function (parent, child, vm, key) {
  4310. if (!vm) {
  4311. warn(
  4312. "option \"" + key + "\" can only be used during instance " +
  4313. 'creation with the `new` keyword.'
  4314. );
  4315. }
  4316. return defaultStrat(parent, child)
  4317. };
  4318. }
  4319. /**
  4320. * Helper that recursively merges two data objects together.
  4321. */
  4322. function mergeData (to, from) {
  4323. if (!from) { return to }
  4324. var key, toVal, fromVal;
  4325. var keys = hasSymbol
  4326. ? Reflect.ownKeys(from)
  4327. : Object.keys(from);
  4328. for (var i = 0; i < keys.length; i++) {
  4329. key = keys[i];
  4330. // in case the object is already observed...
  4331. if (key === '__ob__') { continue }
  4332. toVal = to[key];
  4333. fromVal = from[key];
  4334. if (!hasOwn(to, key)) {
  4335. set(to, key, fromVal);
  4336. } else if (
  4337. toVal !== fromVal &&
  4338. isPlainObject(toVal) &&
  4339. isPlainObject(fromVal)
  4340. ) {
  4341. mergeData(toVal, fromVal);
  4342. }
  4343. }
  4344. return to
  4345. }
  4346. /**
  4347. * Data
  4348. */
  4349. function mergeDataOrFn (
  4350. parentVal,
  4351. childVal,
  4352. vm
  4353. ) {
  4354. if (!vm) {
  4355. // in a Vue.extend merge, both should be functions
  4356. if (!childVal) {
  4357. return parentVal
  4358. }
  4359. if (!parentVal) {
  4360. return childVal
  4361. }
  4362. // when parentVal & childVal are both present,
  4363. // we need to return a function that returns the
  4364. // merged result of both functions... no need to
  4365. // check if parentVal is a function here because
  4366. // it has to be a function to pass previous merges.
  4367. return function mergedDataFn () {
  4368. return mergeData(
  4369. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4370. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4371. )
  4372. }
  4373. } else {
  4374. return function mergedInstanceDataFn () {
  4375. // instance merge
  4376. var instanceData = typeof childVal === 'function'
  4377. ? childVal.call(vm, vm)
  4378. : childVal;
  4379. var defaultData = typeof parentVal === 'function'
  4380. ? parentVal.call(vm, vm)
  4381. : parentVal;
  4382. if (instanceData) {
  4383. return mergeData(instanceData, defaultData)
  4384. } else {
  4385. return defaultData
  4386. }
  4387. }
  4388. }
  4389. }
  4390. strats.data = function (
  4391. parentVal,
  4392. childVal,
  4393. vm
  4394. ) {
  4395. if (!vm) {
  4396. if (childVal && typeof childVal !== 'function') {
  4397. true && warn(
  4398. 'The "data" option should be a function ' +
  4399. 'that returns a per-instance value in component ' +
  4400. 'definitions.',
  4401. vm
  4402. );
  4403. return parentVal
  4404. }
  4405. return mergeDataOrFn(parentVal, childVal)
  4406. }
  4407. return mergeDataOrFn(parentVal, childVal, vm)
  4408. };
  4409. /**
  4410. * Hooks and props are merged as arrays.
  4411. */
  4412. function mergeHook (
  4413. parentVal,
  4414. childVal
  4415. ) {
  4416. var res = childVal
  4417. ? parentVal
  4418. ? parentVal.concat(childVal)
  4419. : Array.isArray(childVal)
  4420. ? childVal
  4421. : [childVal]
  4422. : parentVal;
  4423. return res
  4424. ? dedupeHooks(res)
  4425. : res
  4426. }
  4427. function dedupeHooks (hooks) {
  4428. var res = [];
  4429. for (var i = 0; i < hooks.length; i++) {
  4430. if (res.indexOf(hooks[i]) === -1) {
  4431. res.push(hooks[i]);
  4432. }
  4433. }
  4434. return res
  4435. }
  4436. LIFECYCLE_HOOKS.forEach(function (hook) {
  4437. strats[hook] = mergeHook;
  4438. });
  4439. /**
  4440. * Assets
  4441. *
  4442. * When a vm is present (instance creation), we need to do
  4443. * a three-way merge between constructor options, instance
  4444. * options and parent options.
  4445. */
  4446. function mergeAssets (
  4447. parentVal,
  4448. childVal,
  4449. vm,
  4450. key
  4451. ) {
  4452. var res = Object.create(parentVal || null);
  4453. if (childVal) {
  4454. true && assertObjectType(key, childVal, vm);
  4455. return extend(res, childVal)
  4456. } else {
  4457. return res
  4458. }
  4459. }
  4460. ASSET_TYPES.forEach(function (type) {
  4461. strats[type + 's'] = mergeAssets;
  4462. });
  4463. /**
  4464. * Watchers.
  4465. *
  4466. * Watchers hashes should not overwrite one
  4467. * another, so we merge them as arrays.
  4468. */
  4469. strats.watch = function (
  4470. parentVal,
  4471. childVal,
  4472. vm,
  4473. key
  4474. ) {
  4475. // work around Firefox's Object.prototype.watch...
  4476. if (parentVal === nativeWatch) { parentVal = undefined; }
  4477. if (childVal === nativeWatch) { childVal = undefined; }
  4478. /* istanbul ignore if */
  4479. if (!childVal) { return Object.create(parentVal || null) }
  4480. if (true) {
  4481. assertObjectType(key, childVal, vm);
  4482. }
  4483. if (!parentVal) { return childVal }
  4484. var ret = {};
  4485. extend(ret, parentVal);
  4486. for (var key$1 in childVal) {
  4487. var parent = ret[key$1];
  4488. var child = childVal[key$1];
  4489. if (parent && !Array.isArray(parent)) {
  4490. parent = [parent];
  4491. }
  4492. ret[key$1] = parent
  4493. ? parent.concat(child)
  4494. : Array.isArray(child) ? child : [child];
  4495. }
  4496. return ret
  4497. };
  4498. /**
  4499. * Other object hashes.
  4500. */
  4501. strats.props =
  4502. strats.methods =
  4503. strats.inject =
  4504. strats.computed = function (
  4505. parentVal,
  4506. childVal,
  4507. vm,
  4508. key
  4509. ) {
  4510. if (childVal && "development" !== 'production') {
  4511. assertObjectType(key, childVal, vm);
  4512. }
  4513. if (!parentVal) { return childVal }
  4514. var ret = Object.create(null);
  4515. extend(ret, parentVal);
  4516. if (childVal) { extend(ret, childVal); }
  4517. return ret
  4518. };
  4519. strats.provide = mergeDataOrFn;
  4520. /**
  4521. * Default strategy.
  4522. */
  4523. var defaultStrat = function (parentVal, childVal) {
  4524. return childVal === undefined
  4525. ? parentVal
  4526. : childVal
  4527. };
  4528. /**
  4529. * Validate component names
  4530. */
  4531. function checkComponents (options) {
  4532. for (var key in options.components) {
  4533. validateComponentName(key);
  4534. }
  4535. }
  4536. function validateComponentName (name) {
  4537. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4538. warn(
  4539. 'Invalid component name: "' + name + '". Component names ' +
  4540. 'should conform to valid custom element name in html5 specification.'
  4541. );
  4542. }
  4543. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4544. warn(
  4545. 'Do not use built-in or reserved HTML elements as component ' +
  4546. 'id: ' + name
  4547. );
  4548. }
  4549. }
  4550. /**
  4551. * Ensure all props option syntax are normalized into the
  4552. * Object-based format.
  4553. */
  4554. function normalizeProps (options, vm) {
  4555. var props = options.props;
  4556. if (!props) { return }
  4557. var res = {};
  4558. var i, val, name;
  4559. if (Array.isArray(props)) {
  4560. i = props.length;
  4561. while (i--) {
  4562. val = props[i];
  4563. if (typeof val === 'string') {
  4564. name = camelize(val);
  4565. res[name] = { type: null };
  4566. } else if (true) {
  4567. warn('props must be strings when using array syntax.');
  4568. }
  4569. }
  4570. } else if (isPlainObject(props)) {
  4571. for (var key in props) {
  4572. val = props[key];
  4573. name = camelize(key);
  4574. res[name] = isPlainObject(val)
  4575. ? val
  4576. : { type: val };
  4577. }
  4578. } else if (true) {
  4579. warn(
  4580. "Invalid value for option \"props\": expected an Array or an Object, " +
  4581. "but got " + (toRawType(props)) + ".",
  4582. vm
  4583. );
  4584. }
  4585. options.props = res;
  4586. }
  4587. /**
  4588. * Normalize all injections into Object-based format
  4589. */
  4590. function normalizeInject (options, vm) {
  4591. var inject = options.inject;
  4592. if (!inject) { return }
  4593. var normalized = options.inject = {};
  4594. if (Array.isArray(inject)) {
  4595. for (var i = 0; i < inject.length; i++) {
  4596. normalized[inject[i]] = { from: inject[i] };
  4597. }
  4598. } else if (isPlainObject(inject)) {
  4599. for (var key in inject) {
  4600. var val = inject[key];
  4601. normalized[key] = isPlainObject(val)
  4602. ? extend({ from: key }, val)
  4603. : { from: val };
  4604. }
  4605. } else if (true) {
  4606. warn(
  4607. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4608. "but got " + (toRawType(inject)) + ".",
  4609. vm
  4610. );
  4611. }
  4612. }
  4613. /**
  4614. * Normalize raw function directives into object format.
  4615. */
  4616. function normalizeDirectives (options) {
  4617. var dirs = options.directives;
  4618. if (dirs) {
  4619. for (var key in dirs) {
  4620. var def$$1 = dirs[key];
  4621. if (typeof def$$1 === 'function') {
  4622. dirs[key] = { bind: def$$1, update: def$$1 };
  4623. }
  4624. }
  4625. }
  4626. }
  4627. function assertObjectType (name, value, vm) {
  4628. if (!isPlainObject(value)) {
  4629. warn(
  4630. "Invalid value for option \"" + name + "\": expected an Object, " +
  4631. "but got " + (toRawType(value)) + ".",
  4632. vm
  4633. );
  4634. }
  4635. }
  4636. /**
  4637. * Merge two option objects into a new one.
  4638. * Core utility used in both instantiation and inheritance.
  4639. */
  4640. function mergeOptions (
  4641. parent,
  4642. child,
  4643. vm
  4644. ) {
  4645. if (true) {
  4646. checkComponents(child);
  4647. }
  4648. if (typeof child === 'function') {
  4649. child = child.options;
  4650. }
  4651. normalizeProps(child, vm);
  4652. normalizeInject(child, vm);
  4653. normalizeDirectives(child);
  4654. // Apply extends and mixins on the child options,
  4655. // but only if it is a raw options object that isn't
  4656. // the result of another mergeOptions call.
  4657. // Only merged options has the _base property.
  4658. if (!child._base) {
  4659. if (child.extends) {
  4660. parent = mergeOptions(parent, child.extends, vm);
  4661. }
  4662. if (child.mixins) {
  4663. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4664. parent = mergeOptions(parent, child.mixins[i], vm);
  4665. }
  4666. }
  4667. }
  4668. var options = {};
  4669. var key;
  4670. for (key in parent) {
  4671. mergeField(key);
  4672. }
  4673. for (key in child) {
  4674. if (!hasOwn(parent, key)) {
  4675. mergeField(key);
  4676. }
  4677. }
  4678. function mergeField (key) {
  4679. var strat = strats[key] || defaultStrat;
  4680. options[key] = strat(parent[key], child[key], vm, key);
  4681. }
  4682. return options
  4683. }
  4684. /**
  4685. * Resolve an asset.
  4686. * This function is used because child instances need access
  4687. * to assets defined in its ancestor chain.
  4688. */
  4689. function resolveAsset (
  4690. options,
  4691. type,
  4692. id,
  4693. warnMissing
  4694. ) {
  4695. /* istanbul ignore if */
  4696. if (typeof id !== 'string') {
  4697. return
  4698. }
  4699. var assets = options[type];
  4700. // check local registration variations first
  4701. if (hasOwn(assets, id)) { return assets[id] }
  4702. var camelizedId = camelize(id);
  4703. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4704. var PascalCaseId = capitalize(camelizedId);
  4705. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4706. // fallback to prototype chain
  4707. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4708. if ( true && warnMissing && !res) {
  4709. warn(
  4710. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4711. options
  4712. );
  4713. }
  4714. return res
  4715. }
  4716. /* */
  4717. function validateProp (
  4718. key,
  4719. propOptions,
  4720. propsData,
  4721. vm
  4722. ) {
  4723. var prop = propOptions[key];
  4724. var absent = !hasOwn(propsData, key);
  4725. var value = propsData[key];
  4726. // boolean casting
  4727. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4728. if (booleanIndex > -1) {
  4729. if (absent && !hasOwn(prop, 'default')) {
  4730. value = false;
  4731. } else if (value === '' || value === hyphenate(key)) {
  4732. // only cast empty string / same name to boolean if
  4733. // boolean has higher priority
  4734. var stringIndex = getTypeIndex(String, prop.type);
  4735. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4736. value = true;
  4737. }
  4738. }
  4739. }
  4740. // check default value
  4741. if (value === undefined) {
  4742. value = getPropDefaultValue(vm, prop, key);
  4743. // since the default value is a fresh copy,
  4744. // make sure to observe it.
  4745. var prevShouldObserve = shouldObserve;
  4746. toggleObserving(true);
  4747. observe(value);
  4748. toggleObserving(prevShouldObserve);
  4749. }
  4750. if (
  4751. true
  4752. ) {
  4753. assertProp(prop, key, value, vm, absent);
  4754. }
  4755. return value
  4756. }
  4757. /**
  4758. * Get the default value of a prop.
  4759. */
  4760. function getPropDefaultValue (vm, prop, key) {
  4761. // no default, return undefined
  4762. if (!hasOwn(prop, 'default')) {
  4763. return undefined
  4764. }
  4765. var def = prop.default;
  4766. // warn against non-factory defaults for Object & Array
  4767. if ( true && isObject(def)) {
  4768. warn(
  4769. 'Invalid default value for prop "' + key + '": ' +
  4770. 'Props with type Object/Array must use a factory function ' +
  4771. 'to return the default value.',
  4772. vm
  4773. );
  4774. }
  4775. // the raw prop value was also undefined from previous render,
  4776. // return previous default value to avoid unnecessary watcher trigger
  4777. if (vm && vm.$options.propsData &&
  4778. vm.$options.propsData[key] === undefined &&
  4779. vm._props[key] !== undefined
  4780. ) {
  4781. return vm._props[key]
  4782. }
  4783. // call factory function for non-Function types
  4784. // a value is Function if its prototype is function even across different execution context
  4785. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4786. ? def.call(vm)
  4787. : def
  4788. }
  4789. /**
  4790. * Assert whether a prop is valid.
  4791. */
  4792. function assertProp (
  4793. prop,
  4794. name,
  4795. value,
  4796. vm,
  4797. absent
  4798. ) {
  4799. if (prop.required && absent) {
  4800. warn(
  4801. 'Missing required prop: "' + name + '"',
  4802. vm
  4803. );
  4804. return
  4805. }
  4806. if (value == null && !prop.required) {
  4807. return
  4808. }
  4809. var type = prop.type;
  4810. var valid = !type || type === true;
  4811. var expectedTypes = [];
  4812. if (type) {
  4813. if (!Array.isArray(type)) {
  4814. type = [type];
  4815. }
  4816. for (var i = 0; i < type.length && !valid; i++) {
  4817. var assertedType = assertType(value, type[i]);
  4818. expectedTypes.push(assertedType.expectedType || '');
  4819. valid = assertedType.valid;
  4820. }
  4821. }
  4822. if (!valid) {
  4823. warn(
  4824. getInvalidTypeMessage(name, value, expectedTypes),
  4825. vm
  4826. );
  4827. return
  4828. }
  4829. var validator = prop.validator;
  4830. if (validator) {
  4831. if (!validator(value)) {
  4832. warn(
  4833. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4834. vm
  4835. );
  4836. }
  4837. }
  4838. }
  4839. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4840. function assertType (value, type) {
  4841. var valid;
  4842. var expectedType = getType(type);
  4843. if (simpleCheckRE.test(expectedType)) {
  4844. var t = typeof value;
  4845. valid = t === expectedType.toLowerCase();
  4846. // for primitive wrapper objects
  4847. if (!valid && t === 'object') {
  4848. valid = value instanceof type;
  4849. }
  4850. } else if (expectedType === 'Object') {
  4851. valid = isPlainObject(value);
  4852. } else if (expectedType === 'Array') {
  4853. valid = Array.isArray(value);
  4854. } else {
  4855. valid = value instanceof type;
  4856. }
  4857. return {
  4858. valid: valid,
  4859. expectedType: expectedType
  4860. }
  4861. }
  4862. /**
  4863. * Use function string name to check built-in types,
  4864. * because a simple equality check will fail when running
  4865. * across different vms / iframes.
  4866. */
  4867. function getType (fn) {
  4868. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4869. return match ? match[1] : ''
  4870. }
  4871. function isSameType (a, b) {
  4872. return getType(a) === getType(b)
  4873. }
  4874. function getTypeIndex (type, expectedTypes) {
  4875. if (!Array.isArray(expectedTypes)) {
  4876. return isSameType(expectedTypes, type) ? 0 : -1
  4877. }
  4878. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4879. if (isSameType(expectedTypes[i], type)) {
  4880. return i
  4881. }
  4882. }
  4883. return -1
  4884. }
  4885. function getInvalidTypeMessage (name, value, expectedTypes) {
  4886. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4887. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4888. var expectedType = expectedTypes[0];
  4889. var receivedType = toRawType(value);
  4890. var expectedValue = styleValue(value, expectedType);
  4891. var receivedValue = styleValue(value, receivedType);
  4892. // check if we need to specify expected value
  4893. if (expectedTypes.length === 1 &&
  4894. isExplicable(expectedType) &&
  4895. !isBoolean(expectedType, receivedType)) {
  4896. message += " with value " + expectedValue;
  4897. }
  4898. message += ", got " + receivedType + " ";
  4899. // check if we need to specify received value
  4900. if (isExplicable(receivedType)) {
  4901. message += "with value " + receivedValue + ".";
  4902. }
  4903. return message
  4904. }
  4905. function styleValue (value, type) {
  4906. if (type === 'String') {
  4907. return ("\"" + value + "\"")
  4908. } else if (type === 'Number') {
  4909. return ("" + (Number(value)))
  4910. } else {
  4911. return ("" + value)
  4912. }
  4913. }
  4914. function isExplicable (value) {
  4915. var explicitTypes = ['string', 'number', 'boolean'];
  4916. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4917. }
  4918. function isBoolean () {
  4919. var args = [], len = arguments.length;
  4920. while ( len-- ) args[ len ] = arguments[ len ];
  4921. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4922. }
  4923. /* */
  4924. function handleError (err, vm, info) {
  4925. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4926. // See: https://github.com/vuejs/vuex/issues/1505
  4927. pushTarget();
  4928. try {
  4929. if (vm) {
  4930. var cur = vm;
  4931. while ((cur = cur.$parent)) {
  4932. var hooks = cur.$options.errorCaptured;
  4933. if (hooks) {
  4934. for (var i = 0; i < hooks.length; i++) {
  4935. try {
  4936. var capture = hooks[i].call(cur, err, vm, info) === false;
  4937. if (capture) { return }
  4938. } catch (e) {
  4939. globalHandleError(e, cur, 'errorCaptured hook');
  4940. }
  4941. }
  4942. }
  4943. }
  4944. }
  4945. globalHandleError(err, vm, info);
  4946. } finally {
  4947. popTarget();
  4948. }
  4949. }
  4950. function invokeWithErrorHandling (
  4951. handler,
  4952. context,
  4953. args,
  4954. vm,
  4955. info
  4956. ) {
  4957. var res;
  4958. try {
  4959. res = args ? handler.apply(context, args) : handler.call(context);
  4960. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4961. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4962. // issue #9511
  4963. // avoid catch triggering multiple times when nested calls
  4964. res._handled = true;
  4965. }
  4966. } catch (e) {
  4967. handleError(e, vm, info);
  4968. }
  4969. return res
  4970. }
  4971. function globalHandleError (err, vm, info) {
  4972. if (config.errorHandler) {
  4973. try {
  4974. return config.errorHandler.call(null, err, vm, info)
  4975. } catch (e) {
  4976. // if the user intentionally throws the original error in the handler,
  4977. // do not log it twice
  4978. if (e !== err) {
  4979. logError(e, null, 'config.errorHandler');
  4980. }
  4981. }
  4982. }
  4983. logError(err, vm, info);
  4984. }
  4985. function logError (err, vm, info) {
  4986. if (true) {
  4987. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4988. }
  4989. /* istanbul ignore else */
  4990. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4991. console.error(err);
  4992. } else {
  4993. throw err
  4994. }
  4995. }
  4996. /* */
  4997. var callbacks = [];
  4998. var pending = false;
  4999. function flushCallbacks () {
  5000. pending = false;
  5001. var copies = callbacks.slice(0);
  5002. callbacks.length = 0;
  5003. for (var i = 0; i < copies.length; i++) {
  5004. copies[i]();
  5005. }
  5006. }
  5007. // Here we have async deferring wrappers using microtasks.
  5008. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5009. // However, it has subtle problems when state is changed right before repaint
  5010. // (e.g. #6813, out-in transitions).
  5011. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5012. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5013. // So we now use microtasks everywhere, again.
  5014. // A major drawback of this tradeoff is that there are some scenarios
  5015. // where microtasks have too high a priority and fire in between supposedly
  5016. // sequential events (e.g. #4521, #6690, which have workarounds)
  5017. // or even between bubbling of the same event (#6566).
  5018. var timerFunc;
  5019. // The nextTick behavior leverages the microtask queue, which can be accessed
  5020. // via either native Promise.then or MutationObserver.
  5021. // MutationObserver has wider support, however it is seriously bugged in
  5022. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5023. // completely stops working after triggering a few times... so, if native
  5024. // Promise is available, we will use it:
  5025. /* istanbul ignore next, $flow-disable-line */
  5026. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5027. var p = Promise.resolve();
  5028. timerFunc = function () {
  5029. p.then(flushCallbacks);
  5030. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5031. // it can get stuck in a weird state where callbacks are pushed into the
  5032. // microtask queue but the queue isn't being flushed, until the browser
  5033. // needs to do some other work, e.g. handle a timer. Therefore we can
  5034. // "force" the microtask queue to be flushed by adding an empty timer.
  5035. if (isIOS) { setTimeout(noop); }
  5036. };
  5037. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5038. isNative(MutationObserver) ||
  5039. // PhantomJS and iOS 7.x
  5040. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5041. )) {
  5042. // Use MutationObserver where native Promise is not available,
  5043. // e.g. PhantomJS, iOS7, Android 4.4
  5044. // (#6466 MutationObserver is unreliable in IE11)
  5045. var counter = 1;
  5046. var observer = new MutationObserver(flushCallbacks);
  5047. var textNode = document.createTextNode(String(counter));
  5048. observer.observe(textNode, {
  5049. characterData: true
  5050. });
  5051. timerFunc = function () {
  5052. counter = (counter + 1) % 2;
  5053. textNode.data = String(counter);
  5054. };
  5055. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5056. // Fallback to setImmediate.
  5057. // Technically it leverages the (macro) task queue,
  5058. // but it is still a better choice than setTimeout.
  5059. timerFunc = function () {
  5060. setImmediate(flushCallbacks);
  5061. };
  5062. } else {
  5063. // Fallback to setTimeout.
  5064. timerFunc = function () {
  5065. setTimeout(flushCallbacks, 0);
  5066. };
  5067. }
  5068. function nextTick (cb, ctx) {
  5069. var _resolve;
  5070. callbacks.push(function () {
  5071. if (cb) {
  5072. try {
  5073. cb.call(ctx);
  5074. } catch (e) {
  5075. handleError(e, ctx, 'nextTick');
  5076. }
  5077. } else if (_resolve) {
  5078. _resolve(ctx);
  5079. }
  5080. });
  5081. if (!pending) {
  5082. pending = true;
  5083. timerFunc();
  5084. }
  5085. // $flow-disable-line
  5086. if (!cb && typeof Promise !== 'undefined') {
  5087. return new Promise(function (resolve) {
  5088. _resolve = resolve;
  5089. })
  5090. }
  5091. }
  5092. /* */
  5093. /* not type checking this file because flow doesn't play well with Proxy */
  5094. var initProxy;
  5095. if (true) {
  5096. var allowedGlobals = makeMap(
  5097. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5098. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5099. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5100. 'require' // for Webpack/Browserify
  5101. );
  5102. var warnNonPresent = function (target, key) {
  5103. warn(
  5104. "Property or method \"" + key + "\" is not defined on the instance but " +
  5105. 'referenced during render. Make sure that this property is reactive, ' +
  5106. 'either in the data option, or for class-based components, by ' +
  5107. 'initializing the property. ' +
  5108. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5109. target
  5110. );
  5111. };
  5112. var warnReservedPrefix = function (target, key) {
  5113. warn(
  5114. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5115. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5116. 'prevent conflicts with Vue internals. ' +
  5117. 'See: https://vuejs.org/v2/api/#data',
  5118. target
  5119. );
  5120. };
  5121. var hasProxy =
  5122. typeof Proxy !== 'undefined' && isNative(Proxy);
  5123. if (hasProxy) {
  5124. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5125. config.keyCodes = new Proxy(config.keyCodes, {
  5126. set: function set (target, key, value) {
  5127. if (isBuiltInModifier(key)) {
  5128. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5129. return false
  5130. } else {
  5131. target[key] = value;
  5132. return true
  5133. }
  5134. }
  5135. });
  5136. }
  5137. var hasHandler = {
  5138. has: function has (target, key) {
  5139. var has = key in target;
  5140. var isAllowed = allowedGlobals(key) ||
  5141. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5142. if (!has && !isAllowed) {
  5143. if (key in target.$data) { warnReservedPrefix(target, key); }
  5144. else { warnNonPresent(target, key); }
  5145. }
  5146. return has || !isAllowed
  5147. }
  5148. };
  5149. var getHandler = {
  5150. get: function get (target, key) {
  5151. if (typeof key === 'string' && !(key in target)) {
  5152. if (key in target.$data) { warnReservedPrefix(target, key); }
  5153. else { warnNonPresent(target, key); }
  5154. }
  5155. return target[key]
  5156. }
  5157. };
  5158. initProxy = function initProxy (vm) {
  5159. if (hasProxy) {
  5160. // determine which proxy handler to use
  5161. var options = vm.$options;
  5162. var handlers = options.render && options.render._withStripped
  5163. ? getHandler
  5164. : hasHandler;
  5165. vm._renderProxy = new Proxy(vm, handlers);
  5166. } else {
  5167. vm._renderProxy = vm;
  5168. }
  5169. };
  5170. }
  5171. /* */
  5172. var seenObjects = new _Set();
  5173. /**
  5174. * Recursively traverse an object to evoke all converted
  5175. * getters, so that every nested property inside the object
  5176. * is collected as a "deep" dependency.
  5177. */
  5178. function traverse (val) {
  5179. _traverse(val, seenObjects);
  5180. seenObjects.clear();
  5181. }
  5182. function _traverse (val, seen) {
  5183. var i, keys;
  5184. var isA = Array.isArray(val);
  5185. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5186. return
  5187. }
  5188. if (val.__ob__) {
  5189. var depId = val.__ob__.dep.id;
  5190. if (seen.has(depId)) {
  5191. return
  5192. }
  5193. seen.add(depId);
  5194. }
  5195. if (isA) {
  5196. i = val.length;
  5197. while (i--) { _traverse(val[i], seen); }
  5198. } else {
  5199. keys = Object.keys(val);
  5200. i = keys.length;
  5201. while (i--) { _traverse(val[keys[i]], seen); }
  5202. }
  5203. }
  5204. var mark;
  5205. var measure;
  5206. if (true) {
  5207. var perf = inBrowser && window.performance;
  5208. /* istanbul ignore if */
  5209. if (
  5210. perf &&
  5211. perf.mark &&
  5212. perf.measure &&
  5213. perf.clearMarks &&
  5214. perf.clearMeasures
  5215. ) {
  5216. mark = function (tag) { return perf.mark(tag); };
  5217. measure = function (name, startTag, endTag) {
  5218. perf.measure(name, startTag, endTag);
  5219. perf.clearMarks(startTag);
  5220. perf.clearMarks(endTag);
  5221. // perf.clearMeasures(name)
  5222. };
  5223. }
  5224. }
  5225. /* */
  5226. var normalizeEvent = cached(function (name) {
  5227. var passive = name.charAt(0) === '&';
  5228. name = passive ? name.slice(1) : name;
  5229. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5230. name = once$$1 ? name.slice(1) : name;
  5231. var capture = name.charAt(0) === '!';
  5232. name = capture ? name.slice(1) : name;
  5233. return {
  5234. name: name,
  5235. once: once$$1,
  5236. capture: capture,
  5237. passive: passive
  5238. }
  5239. });
  5240. function createFnInvoker (fns, vm) {
  5241. function invoker () {
  5242. var arguments$1 = arguments;
  5243. var fns = invoker.fns;
  5244. if (Array.isArray(fns)) {
  5245. var cloned = fns.slice();
  5246. for (var i = 0; i < cloned.length; i++) {
  5247. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5248. }
  5249. } else {
  5250. // return handler return value for single handlers
  5251. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5252. }
  5253. }
  5254. invoker.fns = fns;
  5255. return invoker
  5256. }
  5257. function updateListeners (
  5258. on,
  5259. oldOn,
  5260. add,
  5261. remove$$1,
  5262. createOnceHandler,
  5263. vm
  5264. ) {
  5265. var name, def$$1, cur, old, event;
  5266. for (name in on) {
  5267. def$$1 = cur = on[name];
  5268. old = oldOn[name];
  5269. event = normalizeEvent(name);
  5270. if (isUndef(cur)) {
  5271. true && warn(
  5272. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5273. vm
  5274. );
  5275. } else if (isUndef(old)) {
  5276. if (isUndef(cur.fns)) {
  5277. cur = on[name] = createFnInvoker(cur, vm);
  5278. }
  5279. if (isTrue(event.once)) {
  5280. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5281. }
  5282. add(event.name, cur, event.capture, event.passive, event.params);
  5283. } else if (cur !== old) {
  5284. old.fns = cur;
  5285. on[name] = old;
  5286. }
  5287. }
  5288. for (name in oldOn) {
  5289. if (isUndef(on[name])) {
  5290. event = normalizeEvent(name);
  5291. remove$$1(event.name, oldOn[name], event.capture);
  5292. }
  5293. }
  5294. }
  5295. /* */
  5296. /* */
  5297. // fixed by xxxxxx (mp properties)
  5298. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5299. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5300. if (isUndef(propOptions)) {
  5301. return res
  5302. }
  5303. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5304. var attrs = data.attrs;
  5305. var props = data.props;
  5306. if (isDef(attrs) || isDef(props)) {
  5307. for (var key in propOptions) {
  5308. var altKey = hyphenate(key);
  5309. var result = checkProp(res, props, key, altKey, true) ||
  5310. checkProp(res, attrs, key, altKey, false);
  5311. // externalClass
  5312. if (
  5313. result &&
  5314. res[key] &&
  5315. externalClasses.indexOf(altKey) !== -1 &&
  5316. context[camelize(res[key])]
  5317. ) {
  5318. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5319. res[key] = context[camelize(res[key])];
  5320. }
  5321. }
  5322. }
  5323. return res
  5324. }
  5325. function extractPropsFromVNodeData (
  5326. data,
  5327. Ctor,
  5328. tag,
  5329. context// fixed by xxxxxx
  5330. ) {
  5331. // we are only extracting raw values here.
  5332. // validation and default values are handled in the child
  5333. // component itself.
  5334. var propOptions = Ctor.options.props;
  5335. if (isUndef(propOptions)) {
  5336. // fixed by xxxxxx
  5337. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5338. }
  5339. var res = {};
  5340. var attrs = data.attrs;
  5341. var props = data.props;
  5342. if (isDef(attrs) || isDef(props)) {
  5343. for (var key in propOptions) {
  5344. var altKey = hyphenate(key);
  5345. if (true) {
  5346. var keyInLowerCase = key.toLowerCase();
  5347. if (
  5348. key !== keyInLowerCase &&
  5349. attrs && hasOwn(attrs, keyInLowerCase)
  5350. ) {
  5351. tip(
  5352. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5353. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5354. " \"" + key + "\". " +
  5355. "Note that HTML attributes are case-insensitive and camelCased " +
  5356. "props need to use their kebab-case equivalents when using in-DOM " +
  5357. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5358. );
  5359. }
  5360. }
  5361. checkProp(res, props, key, altKey, true) ||
  5362. checkProp(res, attrs, key, altKey, false);
  5363. }
  5364. }
  5365. // fixed by xxxxxx
  5366. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5367. }
  5368. function checkProp (
  5369. res,
  5370. hash,
  5371. key,
  5372. altKey,
  5373. preserve
  5374. ) {
  5375. if (isDef(hash)) {
  5376. if (hasOwn(hash, key)) {
  5377. res[key] = hash[key];
  5378. if (!preserve) {
  5379. delete hash[key];
  5380. }
  5381. return true
  5382. } else if (hasOwn(hash, altKey)) {
  5383. res[key] = hash[altKey];
  5384. if (!preserve) {
  5385. delete hash[altKey];
  5386. }
  5387. return true
  5388. }
  5389. }
  5390. return false
  5391. }
  5392. /* */
  5393. // The template compiler attempts to minimize the need for normalization by
  5394. // statically analyzing the template at compile time.
  5395. //
  5396. // For plain HTML markup, normalization can be completely skipped because the
  5397. // generated render function is guaranteed to return Array<VNode>. There are
  5398. // two cases where extra normalization is needed:
  5399. // 1. When the children contains components - because a functional component
  5400. // may return an Array instead of a single root. In this case, just a simple
  5401. // normalization is needed - if any child is an Array, we flatten the whole
  5402. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5403. // because functional components already normalize their own children.
  5404. function simpleNormalizeChildren (children) {
  5405. for (var i = 0; i < children.length; i++) {
  5406. if (Array.isArray(children[i])) {
  5407. return Array.prototype.concat.apply([], children)
  5408. }
  5409. }
  5410. return children
  5411. }
  5412. // 2. When the children contains constructs that always generated nested Arrays,
  5413. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5414. // with hand-written render functions / JSX. In such cases a full normalization
  5415. // is needed to cater to all possible types of children values.
  5416. function normalizeChildren (children) {
  5417. return isPrimitive(children)
  5418. ? [createTextVNode(children)]
  5419. : Array.isArray(children)
  5420. ? normalizeArrayChildren(children)
  5421. : undefined
  5422. }
  5423. function isTextNode (node) {
  5424. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5425. }
  5426. function normalizeArrayChildren (children, nestedIndex) {
  5427. var res = [];
  5428. var i, c, lastIndex, last;
  5429. for (i = 0; i < children.length; i++) {
  5430. c = children[i];
  5431. if (isUndef(c) || typeof c === 'boolean') { continue }
  5432. lastIndex = res.length - 1;
  5433. last = res[lastIndex];
  5434. // nested
  5435. if (Array.isArray(c)) {
  5436. if (c.length > 0) {
  5437. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5438. // merge adjacent text nodes
  5439. if (isTextNode(c[0]) && isTextNode(last)) {
  5440. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5441. c.shift();
  5442. }
  5443. res.push.apply(res, c);
  5444. }
  5445. } else if (isPrimitive(c)) {
  5446. if (isTextNode(last)) {
  5447. // merge adjacent text nodes
  5448. // this is necessary for SSR hydration because text nodes are
  5449. // essentially merged when rendered to HTML strings
  5450. res[lastIndex] = createTextVNode(last.text + c);
  5451. } else if (c !== '') {
  5452. // convert primitive to vnode
  5453. res.push(createTextVNode(c));
  5454. }
  5455. } else {
  5456. if (isTextNode(c) && isTextNode(last)) {
  5457. // merge adjacent text nodes
  5458. res[lastIndex] = createTextVNode(last.text + c.text);
  5459. } else {
  5460. // default key for nested array children (likely generated by v-for)
  5461. if (isTrue(children._isVList) &&
  5462. isDef(c.tag) &&
  5463. isUndef(c.key) &&
  5464. isDef(nestedIndex)) {
  5465. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5466. }
  5467. res.push(c);
  5468. }
  5469. }
  5470. }
  5471. return res
  5472. }
  5473. /* */
  5474. function initProvide (vm) {
  5475. var provide = vm.$options.provide;
  5476. if (provide) {
  5477. vm._provided = typeof provide === 'function'
  5478. ? provide.call(vm)
  5479. : provide;
  5480. }
  5481. }
  5482. function initInjections (vm) {
  5483. var result = resolveInject(vm.$options.inject, vm);
  5484. if (result) {
  5485. toggleObserving(false);
  5486. Object.keys(result).forEach(function (key) {
  5487. /* istanbul ignore else */
  5488. if (true) {
  5489. defineReactive$$1(vm, key, result[key], function () {
  5490. warn(
  5491. "Avoid mutating an injected value directly since the changes will be " +
  5492. "overwritten whenever the provided component re-renders. " +
  5493. "injection being mutated: \"" + key + "\"",
  5494. vm
  5495. );
  5496. });
  5497. } else {}
  5498. });
  5499. toggleObserving(true);
  5500. }
  5501. }
  5502. function resolveInject (inject, vm) {
  5503. if (inject) {
  5504. // inject is :any because flow is not smart enough to figure out cached
  5505. var result = Object.create(null);
  5506. var keys = hasSymbol
  5507. ? Reflect.ownKeys(inject)
  5508. : Object.keys(inject);
  5509. for (var i = 0; i < keys.length; i++) {
  5510. var key = keys[i];
  5511. // #6574 in case the inject object is observed...
  5512. if (key === '__ob__') { continue }
  5513. var provideKey = inject[key].from;
  5514. var source = vm;
  5515. while (source) {
  5516. if (source._provided && hasOwn(source._provided, provideKey)) {
  5517. result[key] = source._provided[provideKey];
  5518. break
  5519. }
  5520. source = source.$parent;
  5521. }
  5522. if (!source) {
  5523. if ('default' in inject[key]) {
  5524. var provideDefault = inject[key].default;
  5525. result[key] = typeof provideDefault === 'function'
  5526. ? provideDefault.call(vm)
  5527. : provideDefault;
  5528. } else if (true) {
  5529. warn(("Injection \"" + key + "\" not found"), vm);
  5530. }
  5531. }
  5532. }
  5533. return result
  5534. }
  5535. }
  5536. /* */
  5537. /**
  5538. * Runtime helper for resolving raw children VNodes into a slot object.
  5539. */
  5540. function resolveSlots (
  5541. children,
  5542. context
  5543. ) {
  5544. if (!children || !children.length) {
  5545. return {}
  5546. }
  5547. var slots = {};
  5548. for (var i = 0, l = children.length; i < l; i++) {
  5549. var child = children[i];
  5550. var data = child.data;
  5551. // remove slot attribute if the node is resolved as a Vue slot node
  5552. if (data && data.attrs && data.attrs.slot) {
  5553. delete data.attrs.slot;
  5554. }
  5555. // named slots should only be respected if the vnode was rendered in the
  5556. // same context.
  5557. if ((child.context === context || child.fnContext === context) &&
  5558. data && data.slot != null
  5559. ) {
  5560. var name = data.slot;
  5561. var slot = (slots[name] || (slots[name] = []));
  5562. if (child.tag === 'template') {
  5563. slot.push.apply(slot, child.children || []);
  5564. } else {
  5565. slot.push(child);
  5566. }
  5567. } else {
  5568. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5569. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5570. (slots['page'] || (slots['page'] = [])).push(child);
  5571. }else{
  5572. (slots.default || (slots.default = [])).push(child);
  5573. }
  5574. }
  5575. }
  5576. // ignore slots that contains only whitespace
  5577. for (var name$1 in slots) {
  5578. if (slots[name$1].every(isWhitespace)) {
  5579. delete slots[name$1];
  5580. }
  5581. }
  5582. return slots
  5583. }
  5584. function isWhitespace (node) {
  5585. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5586. }
  5587. /* */
  5588. function normalizeScopedSlots (
  5589. slots,
  5590. normalSlots,
  5591. prevSlots
  5592. ) {
  5593. var res;
  5594. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5595. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5596. var key = slots && slots.$key;
  5597. if (!slots) {
  5598. res = {};
  5599. } else if (slots._normalized) {
  5600. // fast path 1: child component re-render only, parent did not change
  5601. return slots._normalized
  5602. } else if (
  5603. isStable &&
  5604. prevSlots &&
  5605. prevSlots !== emptyObject &&
  5606. key === prevSlots.$key &&
  5607. !hasNormalSlots &&
  5608. !prevSlots.$hasNormal
  5609. ) {
  5610. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5611. // only need to normalize once
  5612. return prevSlots
  5613. } else {
  5614. res = {};
  5615. for (var key$1 in slots) {
  5616. if (slots[key$1] && key$1[0] !== '$') {
  5617. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5618. }
  5619. }
  5620. }
  5621. // expose normal slots on scopedSlots
  5622. for (var key$2 in normalSlots) {
  5623. if (!(key$2 in res)) {
  5624. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5625. }
  5626. }
  5627. // avoriaz seems to mock a non-extensible $scopedSlots object
  5628. // and when that is passed down this would cause an error
  5629. if (slots && Object.isExtensible(slots)) {
  5630. (slots)._normalized = res;
  5631. }
  5632. def(res, '$stable', isStable);
  5633. def(res, '$key', key);
  5634. def(res, '$hasNormal', hasNormalSlots);
  5635. return res
  5636. }
  5637. function normalizeScopedSlot(normalSlots, key, fn) {
  5638. var normalized = function () {
  5639. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5640. res = res && typeof res === 'object' && !Array.isArray(res)
  5641. ? [res] // single vnode
  5642. : normalizeChildren(res);
  5643. return res && (
  5644. res.length === 0 ||
  5645. (res.length === 1 && res[0].isComment) // #9658
  5646. ) ? undefined
  5647. : res
  5648. };
  5649. // this is a slot using the new v-slot syntax without scope. although it is
  5650. // compiled as a scoped slot, render fn users would expect it to be present
  5651. // on this.$slots because the usage is semantically a normal slot.
  5652. if (fn.proxy) {
  5653. Object.defineProperty(normalSlots, key, {
  5654. get: normalized,
  5655. enumerable: true,
  5656. configurable: true
  5657. });
  5658. }
  5659. return normalized
  5660. }
  5661. function proxyNormalSlot(slots, key) {
  5662. return function () { return slots[key]; }
  5663. }
  5664. /* */
  5665. /**
  5666. * Runtime helper for rendering v-for lists.
  5667. */
  5668. function renderList (
  5669. val,
  5670. render
  5671. ) {
  5672. var ret, i, l, keys, key;
  5673. if (Array.isArray(val) || typeof val === 'string') {
  5674. ret = new Array(val.length);
  5675. for (i = 0, l = val.length; i < l; i++) {
  5676. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5677. }
  5678. } else if (typeof val === 'number') {
  5679. ret = new Array(val);
  5680. for (i = 0; i < val; i++) {
  5681. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5682. }
  5683. } else if (isObject(val)) {
  5684. if (hasSymbol && val[Symbol.iterator]) {
  5685. ret = [];
  5686. var iterator = val[Symbol.iterator]();
  5687. var result = iterator.next();
  5688. while (!result.done) {
  5689. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5690. result = iterator.next();
  5691. }
  5692. } else {
  5693. keys = Object.keys(val);
  5694. ret = new Array(keys.length);
  5695. for (i = 0, l = keys.length; i < l; i++) {
  5696. key = keys[i];
  5697. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5698. }
  5699. }
  5700. }
  5701. if (!isDef(ret)) {
  5702. ret = [];
  5703. }
  5704. (ret)._isVList = true;
  5705. return ret
  5706. }
  5707. /* */
  5708. /**
  5709. * Runtime helper for rendering <slot>
  5710. */
  5711. function renderSlot (
  5712. name,
  5713. fallback,
  5714. props,
  5715. bindObject
  5716. ) {
  5717. var scopedSlotFn = this.$scopedSlots[name];
  5718. var nodes;
  5719. if (scopedSlotFn) { // scoped slot
  5720. props = props || {};
  5721. if (bindObject) {
  5722. if ( true && !isObject(bindObject)) {
  5723. warn(
  5724. 'slot v-bind without argument expects an Object',
  5725. this
  5726. );
  5727. }
  5728. props = extend(extend({}, bindObject), props);
  5729. }
  5730. // fixed by xxxxxx app-plus scopedSlot
  5731. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5732. } else {
  5733. nodes = this.$slots[name] || fallback;
  5734. }
  5735. var target = props && props.slot;
  5736. if (target) {
  5737. return this.$createElement('template', { slot: target }, nodes)
  5738. } else {
  5739. return nodes
  5740. }
  5741. }
  5742. /* */
  5743. /**
  5744. * Runtime helper for resolving filters
  5745. */
  5746. function resolveFilter (id) {
  5747. return resolveAsset(this.$options, 'filters', id, true) || identity
  5748. }
  5749. /* */
  5750. function isKeyNotMatch (expect, actual) {
  5751. if (Array.isArray(expect)) {
  5752. return expect.indexOf(actual) === -1
  5753. } else {
  5754. return expect !== actual
  5755. }
  5756. }
  5757. /**
  5758. * Runtime helper for checking keyCodes from config.
  5759. * exposed as Vue.prototype._k
  5760. * passing in eventKeyName as last argument separately for backwards compat
  5761. */
  5762. function checkKeyCodes (
  5763. eventKeyCode,
  5764. key,
  5765. builtInKeyCode,
  5766. eventKeyName,
  5767. builtInKeyName
  5768. ) {
  5769. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5770. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5771. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5772. } else if (mappedKeyCode) {
  5773. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5774. } else if (eventKeyName) {
  5775. return hyphenate(eventKeyName) !== key
  5776. }
  5777. }
  5778. /* */
  5779. /**
  5780. * Runtime helper for merging v-bind="object" into a VNode's data.
  5781. */
  5782. function bindObjectProps (
  5783. data,
  5784. tag,
  5785. value,
  5786. asProp,
  5787. isSync
  5788. ) {
  5789. if (value) {
  5790. if (!isObject(value)) {
  5791. true && warn(
  5792. 'v-bind without argument expects an Object or Array value',
  5793. this
  5794. );
  5795. } else {
  5796. if (Array.isArray(value)) {
  5797. value = toObject(value);
  5798. }
  5799. var hash;
  5800. var loop = function ( key ) {
  5801. if (
  5802. key === 'class' ||
  5803. key === 'style' ||
  5804. isReservedAttribute(key)
  5805. ) {
  5806. hash = data;
  5807. } else {
  5808. var type = data.attrs && data.attrs.type;
  5809. hash = asProp || config.mustUseProp(tag, type, key)
  5810. ? data.domProps || (data.domProps = {})
  5811. : data.attrs || (data.attrs = {});
  5812. }
  5813. var camelizedKey = camelize(key);
  5814. var hyphenatedKey = hyphenate(key);
  5815. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5816. hash[key] = value[key];
  5817. if (isSync) {
  5818. var on = data.on || (data.on = {});
  5819. on[("update:" + key)] = function ($event) {
  5820. value[key] = $event;
  5821. };
  5822. }
  5823. }
  5824. };
  5825. for (var key in value) loop( key );
  5826. }
  5827. }
  5828. return data
  5829. }
  5830. /* */
  5831. /**
  5832. * Runtime helper for rendering static trees.
  5833. */
  5834. function renderStatic (
  5835. index,
  5836. isInFor
  5837. ) {
  5838. var cached = this._staticTrees || (this._staticTrees = []);
  5839. var tree = cached[index];
  5840. // if has already-rendered static tree and not inside v-for,
  5841. // we can reuse the same tree.
  5842. if (tree && !isInFor) {
  5843. return tree
  5844. }
  5845. // otherwise, render a fresh tree.
  5846. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5847. this._renderProxy,
  5848. null,
  5849. this // for render fns generated for functional component templates
  5850. );
  5851. markStatic(tree, ("__static__" + index), false);
  5852. return tree
  5853. }
  5854. /**
  5855. * Runtime helper for v-once.
  5856. * Effectively it means marking the node as static with a unique key.
  5857. */
  5858. function markOnce (
  5859. tree,
  5860. index,
  5861. key
  5862. ) {
  5863. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5864. return tree
  5865. }
  5866. function markStatic (
  5867. tree,
  5868. key,
  5869. isOnce
  5870. ) {
  5871. if (Array.isArray(tree)) {
  5872. for (var i = 0; i < tree.length; i++) {
  5873. if (tree[i] && typeof tree[i] !== 'string') {
  5874. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5875. }
  5876. }
  5877. } else {
  5878. markStaticNode(tree, key, isOnce);
  5879. }
  5880. }
  5881. function markStaticNode (node, key, isOnce) {
  5882. node.isStatic = true;
  5883. node.key = key;
  5884. node.isOnce = isOnce;
  5885. }
  5886. /* */
  5887. function bindObjectListeners (data, value) {
  5888. if (value) {
  5889. if (!isPlainObject(value)) {
  5890. true && warn(
  5891. 'v-on without argument expects an Object value',
  5892. this
  5893. );
  5894. } else {
  5895. var on = data.on = data.on ? extend({}, data.on) : {};
  5896. for (var key in value) {
  5897. var existing = on[key];
  5898. var ours = value[key];
  5899. on[key] = existing ? [].concat(existing, ours) : ours;
  5900. }
  5901. }
  5902. }
  5903. return data
  5904. }
  5905. /* */
  5906. function resolveScopedSlots (
  5907. fns, // see flow/vnode
  5908. res,
  5909. // the following are added in 2.6
  5910. hasDynamicKeys,
  5911. contentHashKey
  5912. ) {
  5913. res = res || { $stable: !hasDynamicKeys };
  5914. for (var i = 0; i < fns.length; i++) {
  5915. var slot = fns[i];
  5916. if (Array.isArray(slot)) {
  5917. resolveScopedSlots(slot, res, hasDynamicKeys);
  5918. } else if (slot) {
  5919. // marker for reverse proxying v-slot without scope on this.$slots
  5920. if (slot.proxy) {
  5921. slot.fn.proxy = true;
  5922. }
  5923. res[slot.key] = slot.fn;
  5924. }
  5925. }
  5926. if (contentHashKey) {
  5927. (res).$key = contentHashKey;
  5928. }
  5929. return res
  5930. }
  5931. /* */
  5932. function bindDynamicKeys (baseObj, values) {
  5933. for (var i = 0; i < values.length; i += 2) {
  5934. var key = values[i];
  5935. if (typeof key === 'string' && key) {
  5936. baseObj[values[i]] = values[i + 1];
  5937. } else if ( true && key !== '' && key !== null) {
  5938. // null is a special value for explicitly removing a binding
  5939. warn(
  5940. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5941. this
  5942. );
  5943. }
  5944. }
  5945. return baseObj
  5946. }
  5947. // helper to dynamically append modifier runtime markers to event names.
  5948. // ensure only append when value is already string, otherwise it will be cast
  5949. // to string and cause the type check to miss.
  5950. function prependModifier (value, symbol) {
  5951. return typeof value === 'string' ? symbol + value : value
  5952. }
  5953. /* */
  5954. function installRenderHelpers (target) {
  5955. target._o = markOnce;
  5956. target._n = toNumber;
  5957. target._s = toString;
  5958. target._l = renderList;
  5959. target._t = renderSlot;
  5960. target._q = looseEqual;
  5961. target._i = looseIndexOf;
  5962. target._m = renderStatic;
  5963. target._f = resolveFilter;
  5964. target._k = checkKeyCodes;
  5965. target._b = bindObjectProps;
  5966. target._v = createTextVNode;
  5967. target._e = createEmptyVNode;
  5968. target._u = resolveScopedSlots;
  5969. target._g = bindObjectListeners;
  5970. target._d = bindDynamicKeys;
  5971. target._p = prependModifier;
  5972. }
  5973. /* */
  5974. function FunctionalRenderContext (
  5975. data,
  5976. props,
  5977. children,
  5978. parent,
  5979. Ctor
  5980. ) {
  5981. var this$1 = this;
  5982. var options = Ctor.options;
  5983. // ensure the createElement function in functional components
  5984. // gets a unique context - this is necessary for correct named slot check
  5985. var contextVm;
  5986. if (hasOwn(parent, '_uid')) {
  5987. contextVm = Object.create(parent);
  5988. // $flow-disable-line
  5989. contextVm._original = parent;
  5990. } else {
  5991. // the context vm passed in is a functional context as well.
  5992. // in this case we want to make sure we are able to get a hold to the
  5993. // real context instance.
  5994. contextVm = parent;
  5995. // $flow-disable-line
  5996. parent = parent._original;
  5997. }
  5998. var isCompiled = isTrue(options._compiled);
  5999. var needNormalization = !isCompiled;
  6000. this.data = data;
  6001. this.props = props;
  6002. this.children = children;
  6003. this.parent = parent;
  6004. this.listeners = data.on || emptyObject;
  6005. this.injections = resolveInject(options.inject, parent);
  6006. this.slots = function () {
  6007. if (!this$1.$slots) {
  6008. normalizeScopedSlots(
  6009. data.scopedSlots,
  6010. this$1.$slots = resolveSlots(children, parent)
  6011. );
  6012. }
  6013. return this$1.$slots
  6014. };
  6015. Object.defineProperty(this, 'scopedSlots', ({
  6016. enumerable: true,
  6017. get: function get () {
  6018. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6019. }
  6020. }));
  6021. // support for compiled functional template
  6022. if (isCompiled) {
  6023. // exposing $options for renderStatic()
  6024. this.$options = options;
  6025. // pre-resolve slots for renderSlot()
  6026. this.$slots = this.slots();
  6027. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6028. }
  6029. if (options._scopeId) {
  6030. this._c = function (a, b, c, d) {
  6031. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6032. if (vnode && !Array.isArray(vnode)) {
  6033. vnode.fnScopeId = options._scopeId;
  6034. vnode.fnContext = parent;
  6035. }
  6036. return vnode
  6037. };
  6038. } else {
  6039. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6040. }
  6041. }
  6042. installRenderHelpers(FunctionalRenderContext.prototype);
  6043. function createFunctionalComponent (
  6044. Ctor,
  6045. propsData,
  6046. data,
  6047. contextVm,
  6048. children
  6049. ) {
  6050. var options = Ctor.options;
  6051. var props = {};
  6052. var propOptions = options.props;
  6053. if (isDef(propOptions)) {
  6054. for (var key in propOptions) {
  6055. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6056. }
  6057. } else {
  6058. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6059. if (isDef(data.props)) { mergeProps(props, data.props); }
  6060. }
  6061. var renderContext = new FunctionalRenderContext(
  6062. data,
  6063. props,
  6064. children,
  6065. contextVm,
  6066. Ctor
  6067. );
  6068. var vnode = options.render.call(null, renderContext._c, renderContext);
  6069. if (vnode instanceof VNode) {
  6070. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6071. } else if (Array.isArray(vnode)) {
  6072. var vnodes = normalizeChildren(vnode) || [];
  6073. var res = new Array(vnodes.length);
  6074. for (var i = 0; i < vnodes.length; i++) {
  6075. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6076. }
  6077. return res
  6078. }
  6079. }
  6080. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6081. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6082. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6083. // that should not be matched to match.
  6084. var clone = cloneVNode(vnode);
  6085. clone.fnContext = contextVm;
  6086. clone.fnOptions = options;
  6087. if (true) {
  6088. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6089. }
  6090. if (data.slot) {
  6091. (clone.data || (clone.data = {})).slot = data.slot;
  6092. }
  6093. return clone
  6094. }
  6095. function mergeProps (to, from) {
  6096. for (var key in from) {
  6097. to[camelize(key)] = from[key];
  6098. }
  6099. }
  6100. /* */
  6101. /* */
  6102. /* */
  6103. /* */
  6104. // inline hooks to be invoked on component VNodes during patch
  6105. var componentVNodeHooks = {
  6106. init: function init (vnode, hydrating) {
  6107. if (
  6108. vnode.componentInstance &&
  6109. !vnode.componentInstance._isDestroyed &&
  6110. vnode.data.keepAlive
  6111. ) {
  6112. // kept-alive components, treat as a patch
  6113. var mountedNode = vnode; // work around flow
  6114. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6115. } else {
  6116. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6117. vnode,
  6118. activeInstance
  6119. );
  6120. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6121. }
  6122. },
  6123. prepatch: function prepatch (oldVnode, vnode) {
  6124. var options = vnode.componentOptions;
  6125. var child = vnode.componentInstance = oldVnode.componentInstance;
  6126. updateChildComponent(
  6127. child,
  6128. options.propsData, // updated props
  6129. options.listeners, // updated listeners
  6130. vnode, // new parent vnode
  6131. options.children // new children
  6132. );
  6133. },
  6134. insert: function insert (vnode) {
  6135. var context = vnode.context;
  6136. var componentInstance = vnode.componentInstance;
  6137. if (!componentInstance._isMounted) {
  6138. callHook(componentInstance, 'onServiceCreated');
  6139. callHook(componentInstance, 'onServiceAttached');
  6140. componentInstance._isMounted = true;
  6141. callHook(componentInstance, 'mounted');
  6142. }
  6143. if (vnode.data.keepAlive) {
  6144. if (context._isMounted) {
  6145. // vue-router#1212
  6146. // During updates, a kept-alive component's child components may
  6147. // change, so directly walking the tree here may call activated hooks
  6148. // on incorrect children. Instead we push them into a queue which will
  6149. // be processed after the whole patch process ended.
  6150. queueActivatedComponent(componentInstance);
  6151. } else {
  6152. activateChildComponent(componentInstance, true /* direct */);
  6153. }
  6154. }
  6155. },
  6156. destroy: function destroy (vnode) {
  6157. var componentInstance = vnode.componentInstance;
  6158. if (!componentInstance._isDestroyed) {
  6159. if (!vnode.data.keepAlive) {
  6160. componentInstance.$destroy();
  6161. } else {
  6162. deactivateChildComponent(componentInstance, true /* direct */);
  6163. }
  6164. }
  6165. }
  6166. };
  6167. var hooksToMerge = Object.keys(componentVNodeHooks);
  6168. function createComponent (
  6169. Ctor,
  6170. data,
  6171. context,
  6172. children,
  6173. tag
  6174. ) {
  6175. if (isUndef(Ctor)) {
  6176. return
  6177. }
  6178. var baseCtor = context.$options._base;
  6179. // plain options object: turn it into a constructor
  6180. if (isObject(Ctor)) {
  6181. Ctor = baseCtor.extend(Ctor);
  6182. }
  6183. // if at this stage it's not a constructor or an async component factory,
  6184. // reject.
  6185. if (typeof Ctor !== 'function') {
  6186. if (true) {
  6187. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6188. }
  6189. return
  6190. }
  6191. // async component
  6192. var asyncFactory;
  6193. if (isUndef(Ctor.cid)) {
  6194. asyncFactory = Ctor;
  6195. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6196. if (Ctor === undefined) {
  6197. // return a placeholder node for async component, which is rendered
  6198. // as a comment node but preserves all the raw information for the node.
  6199. // the information will be used for async server-rendering and hydration.
  6200. return createAsyncPlaceholder(
  6201. asyncFactory,
  6202. data,
  6203. context,
  6204. children,
  6205. tag
  6206. )
  6207. }
  6208. }
  6209. data = data || {};
  6210. // resolve constructor options in case global mixins are applied after
  6211. // component constructor creation
  6212. resolveConstructorOptions(Ctor);
  6213. // transform component v-model data into props & events
  6214. if (isDef(data.model)) {
  6215. transformModel(Ctor.options, data);
  6216. }
  6217. // extract props
  6218. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6219. // functional component
  6220. if (isTrue(Ctor.options.functional)) {
  6221. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6222. }
  6223. // extract listeners, since these needs to be treated as
  6224. // child component listeners instead of DOM listeners
  6225. var listeners = data.on;
  6226. // replace with listeners with .native modifier
  6227. // so it gets processed during parent component patch.
  6228. data.on = data.nativeOn;
  6229. if (isTrue(Ctor.options.abstract)) {
  6230. // abstract components do not keep anything
  6231. // other than props & listeners & slot
  6232. // work around flow
  6233. var slot = data.slot;
  6234. data = {};
  6235. if (slot) {
  6236. data.slot = slot;
  6237. }
  6238. }
  6239. // install component management hooks onto the placeholder node
  6240. installComponentHooks(data);
  6241. // return a placeholder vnode
  6242. var name = Ctor.options.name || tag;
  6243. var vnode = new VNode(
  6244. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6245. data, undefined, undefined, undefined, context,
  6246. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6247. asyncFactory
  6248. );
  6249. return vnode
  6250. }
  6251. function createComponentInstanceForVnode (
  6252. vnode, // we know it's MountedComponentVNode but flow doesn't
  6253. parent // activeInstance in lifecycle state
  6254. ) {
  6255. var options = {
  6256. _isComponent: true,
  6257. _parentVnode: vnode,
  6258. parent: parent
  6259. };
  6260. // check inline-template render functions
  6261. var inlineTemplate = vnode.data.inlineTemplate;
  6262. if (isDef(inlineTemplate)) {
  6263. options.render = inlineTemplate.render;
  6264. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6265. }
  6266. return new vnode.componentOptions.Ctor(options)
  6267. }
  6268. function installComponentHooks (data) {
  6269. var hooks = data.hook || (data.hook = {});
  6270. for (var i = 0; i < hooksToMerge.length; i++) {
  6271. var key = hooksToMerge[i];
  6272. var existing = hooks[key];
  6273. var toMerge = componentVNodeHooks[key];
  6274. if (existing !== toMerge && !(existing && existing._merged)) {
  6275. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6276. }
  6277. }
  6278. }
  6279. function mergeHook$1 (f1, f2) {
  6280. var merged = function (a, b) {
  6281. // flow complains about extra args which is why we use any
  6282. f1(a, b);
  6283. f2(a, b);
  6284. };
  6285. merged._merged = true;
  6286. return merged
  6287. }
  6288. // transform component v-model info (value and callback) into
  6289. // prop and event handler respectively.
  6290. function transformModel (options, data) {
  6291. var prop = (options.model && options.model.prop) || 'value';
  6292. var event = (options.model && options.model.event) || 'input'
  6293. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6294. var on = data.on || (data.on = {});
  6295. var existing = on[event];
  6296. var callback = data.model.callback;
  6297. if (isDef(existing)) {
  6298. if (
  6299. Array.isArray(existing)
  6300. ? existing.indexOf(callback) === -1
  6301. : existing !== callback
  6302. ) {
  6303. on[event] = [callback].concat(existing);
  6304. }
  6305. } else {
  6306. on[event] = callback;
  6307. }
  6308. }
  6309. /* */
  6310. var SIMPLE_NORMALIZE = 1;
  6311. var ALWAYS_NORMALIZE = 2;
  6312. // wrapper function for providing a more flexible interface
  6313. // without getting yelled at by flow
  6314. function createElement (
  6315. context,
  6316. tag,
  6317. data,
  6318. children,
  6319. normalizationType,
  6320. alwaysNormalize
  6321. ) {
  6322. if (Array.isArray(data) || isPrimitive(data)) {
  6323. normalizationType = children;
  6324. children = data;
  6325. data = undefined;
  6326. }
  6327. if (isTrue(alwaysNormalize)) {
  6328. normalizationType = ALWAYS_NORMALIZE;
  6329. }
  6330. return _createElement(context, tag, data, children, normalizationType)
  6331. }
  6332. function _createElement (
  6333. context,
  6334. tag,
  6335. data,
  6336. children,
  6337. normalizationType
  6338. ) {
  6339. if (isDef(data) && isDef((data).__ob__)) {
  6340. true && warn(
  6341. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6342. 'Always create fresh vnode data objects in each render!',
  6343. context
  6344. );
  6345. return createEmptyVNode()
  6346. }
  6347. // object syntax in v-bind
  6348. if (isDef(data) && isDef(data.is)) {
  6349. tag = data.is;
  6350. }
  6351. if (!tag) {
  6352. // in case of component :is set to falsy value
  6353. return createEmptyVNode()
  6354. }
  6355. // warn against non-primitive key
  6356. if ( true &&
  6357. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6358. ) {
  6359. {
  6360. warn(
  6361. 'Avoid using non-primitive value as key, ' +
  6362. 'use string/number value instead.',
  6363. context
  6364. );
  6365. }
  6366. }
  6367. // support single function children as default scoped slot
  6368. if (Array.isArray(children) &&
  6369. typeof children[0] === 'function'
  6370. ) {
  6371. data = data || {};
  6372. data.scopedSlots = { default: children[0] };
  6373. children.length = 0;
  6374. }
  6375. if (normalizationType === ALWAYS_NORMALIZE) {
  6376. children = normalizeChildren(children);
  6377. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6378. children = simpleNormalizeChildren(children);
  6379. }
  6380. var vnode, ns;
  6381. if (typeof tag === 'string') {
  6382. var Ctor;
  6383. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6384. if (config.isReservedTag(tag)) {
  6385. // platform built-in elements
  6386. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6387. warn(
  6388. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6389. context
  6390. );
  6391. }
  6392. vnode = new VNode(
  6393. config.parsePlatformTagName(tag), data, children,
  6394. undefined, undefined, context
  6395. );
  6396. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6397. // component
  6398. vnode = createComponent(Ctor, data, context, children, tag);
  6399. } else {
  6400. // unknown or unlisted namespaced elements
  6401. // check at runtime because it may get assigned a namespace when its
  6402. // parent normalizes children
  6403. vnode = new VNode(
  6404. tag, data, children,
  6405. undefined, undefined, context
  6406. );
  6407. }
  6408. } else {
  6409. // direct component options / constructor
  6410. vnode = createComponent(tag, data, context, children);
  6411. }
  6412. if (Array.isArray(vnode)) {
  6413. return vnode
  6414. } else if (isDef(vnode)) {
  6415. if (isDef(ns)) { applyNS(vnode, ns); }
  6416. if (isDef(data)) { registerDeepBindings(data); }
  6417. return vnode
  6418. } else {
  6419. return createEmptyVNode()
  6420. }
  6421. }
  6422. function applyNS (vnode, ns, force) {
  6423. vnode.ns = ns;
  6424. if (vnode.tag === 'foreignObject') {
  6425. // use default namespace inside foreignObject
  6426. ns = undefined;
  6427. force = true;
  6428. }
  6429. if (isDef(vnode.children)) {
  6430. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6431. var child = vnode.children[i];
  6432. if (isDef(child.tag) && (
  6433. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6434. applyNS(child, ns, force);
  6435. }
  6436. }
  6437. }
  6438. }
  6439. // ref #5318
  6440. // necessary to ensure parent re-render when deep bindings like :style and
  6441. // :class are used on slot nodes
  6442. function registerDeepBindings (data) {
  6443. if (isObject(data.style)) {
  6444. traverse(data.style);
  6445. }
  6446. if (isObject(data.class)) {
  6447. traverse(data.class);
  6448. }
  6449. }
  6450. /* */
  6451. function initRender (vm) {
  6452. vm._vnode = null; // the root of the child tree
  6453. vm._staticTrees = null; // v-once cached trees
  6454. var options = vm.$options;
  6455. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6456. var renderContext = parentVnode && parentVnode.context;
  6457. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6458. vm.$scopedSlots = emptyObject;
  6459. // bind the createElement fn to this instance
  6460. // so that we get proper render context inside it.
  6461. // args order: tag, data, children, normalizationType, alwaysNormalize
  6462. // internal version is used by render functions compiled from templates
  6463. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6464. // normalization is always applied for the public version, used in
  6465. // user-written render functions.
  6466. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6467. // $attrs & $listeners are exposed for easier HOC creation.
  6468. // they need to be reactive so that HOCs using them are always updated
  6469. var parentData = parentVnode && parentVnode.data;
  6470. /* istanbul ignore else */
  6471. if (true) {
  6472. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6473. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6474. }, true);
  6475. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6476. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6477. }, true);
  6478. } else {}
  6479. }
  6480. var currentRenderingInstance = null;
  6481. function renderMixin (Vue) {
  6482. // install runtime convenience helpers
  6483. installRenderHelpers(Vue.prototype);
  6484. Vue.prototype.$nextTick = function (fn) {
  6485. return nextTick(fn, this)
  6486. };
  6487. Vue.prototype._render = function () {
  6488. var vm = this;
  6489. var ref = vm.$options;
  6490. var render = ref.render;
  6491. var _parentVnode = ref._parentVnode;
  6492. if (_parentVnode) {
  6493. vm.$scopedSlots = normalizeScopedSlots(
  6494. _parentVnode.data.scopedSlots,
  6495. vm.$slots,
  6496. vm.$scopedSlots
  6497. );
  6498. }
  6499. // set parent vnode. this allows render functions to have access
  6500. // to the data on the placeholder node.
  6501. vm.$vnode = _parentVnode;
  6502. // render self
  6503. var vnode;
  6504. try {
  6505. // There's no need to maintain a stack because all render fns are called
  6506. // separately from one another. Nested component's render fns are called
  6507. // when parent component is patched.
  6508. currentRenderingInstance = vm;
  6509. vnode = render.call(vm._renderProxy, vm.$createElement);
  6510. } catch (e) {
  6511. handleError(e, vm, "render");
  6512. // return error render result,
  6513. // or previous vnode to prevent render error causing blank component
  6514. /* istanbul ignore else */
  6515. if ( true && vm.$options.renderError) {
  6516. try {
  6517. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6518. } catch (e) {
  6519. handleError(e, vm, "renderError");
  6520. vnode = vm._vnode;
  6521. }
  6522. } else {
  6523. vnode = vm._vnode;
  6524. }
  6525. } finally {
  6526. currentRenderingInstance = null;
  6527. }
  6528. // if the returned array contains only a single node, allow it
  6529. if (Array.isArray(vnode) && vnode.length === 1) {
  6530. vnode = vnode[0];
  6531. }
  6532. // return empty vnode in case the render function errored out
  6533. if (!(vnode instanceof VNode)) {
  6534. if ( true && Array.isArray(vnode)) {
  6535. warn(
  6536. 'Multiple root nodes returned from render function. Render function ' +
  6537. 'should return a single root node.',
  6538. vm
  6539. );
  6540. }
  6541. vnode = createEmptyVNode();
  6542. }
  6543. // set parent
  6544. vnode.parent = _parentVnode;
  6545. return vnode
  6546. };
  6547. }
  6548. /* */
  6549. function ensureCtor (comp, base) {
  6550. if (
  6551. comp.__esModule ||
  6552. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6553. ) {
  6554. comp = comp.default;
  6555. }
  6556. return isObject(comp)
  6557. ? base.extend(comp)
  6558. : comp
  6559. }
  6560. function createAsyncPlaceholder (
  6561. factory,
  6562. data,
  6563. context,
  6564. children,
  6565. tag
  6566. ) {
  6567. var node = createEmptyVNode();
  6568. node.asyncFactory = factory;
  6569. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6570. return node
  6571. }
  6572. function resolveAsyncComponent (
  6573. factory,
  6574. baseCtor
  6575. ) {
  6576. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6577. return factory.errorComp
  6578. }
  6579. if (isDef(factory.resolved)) {
  6580. return factory.resolved
  6581. }
  6582. var owner = currentRenderingInstance;
  6583. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6584. // already pending
  6585. factory.owners.push(owner);
  6586. }
  6587. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6588. return factory.loadingComp
  6589. }
  6590. if (owner && !isDef(factory.owners)) {
  6591. var owners = factory.owners = [owner];
  6592. var sync = true;
  6593. var timerLoading = null;
  6594. var timerTimeout = null
  6595. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6596. var forceRender = function (renderCompleted) {
  6597. for (var i = 0, l = owners.length; i < l; i++) {
  6598. (owners[i]).$forceUpdate();
  6599. }
  6600. if (renderCompleted) {
  6601. owners.length = 0;
  6602. if (timerLoading !== null) {
  6603. clearTimeout(timerLoading);
  6604. timerLoading = null;
  6605. }
  6606. if (timerTimeout !== null) {
  6607. clearTimeout(timerTimeout);
  6608. timerTimeout = null;
  6609. }
  6610. }
  6611. };
  6612. var resolve = once(function (res) {
  6613. // cache resolved
  6614. factory.resolved = ensureCtor(res, baseCtor);
  6615. // invoke callbacks only if this is not a synchronous resolve
  6616. // (async resolves are shimmed as synchronous during SSR)
  6617. if (!sync) {
  6618. forceRender(true);
  6619. } else {
  6620. owners.length = 0;
  6621. }
  6622. });
  6623. var reject = once(function (reason) {
  6624. true && warn(
  6625. "Failed to resolve async component: " + (String(factory)) +
  6626. (reason ? ("\nReason: " + reason) : '')
  6627. );
  6628. if (isDef(factory.errorComp)) {
  6629. factory.error = true;
  6630. forceRender(true);
  6631. }
  6632. });
  6633. var res = factory(resolve, reject);
  6634. if (isObject(res)) {
  6635. if (isPromise(res)) {
  6636. // () => Promise
  6637. if (isUndef(factory.resolved)) {
  6638. res.then(resolve, reject);
  6639. }
  6640. } else if (isPromise(res.component)) {
  6641. res.component.then(resolve, reject);
  6642. if (isDef(res.error)) {
  6643. factory.errorComp = ensureCtor(res.error, baseCtor);
  6644. }
  6645. if (isDef(res.loading)) {
  6646. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6647. if (res.delay === 0) {
  6648. factory.loading = true;
  6649. } else {
  6650. timerLoading = setTimeout(function () {
  6651. timerLoading = null;
  6652. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6653. factory.loading = true;
  6654. forceRender(false);
  6655. }
  6656. }, res.delay || 200);
  6657. }
  6658. }
  6659. if (isDef(res.timeout)) {
  6660. timerTimeout = setTimeout(function () {
  6661. timerTimeout = null;
  6662. if (isUndef(factory.resolved)) {
  6663. reject(
  6664. true
  6665. ? ("timeout (" + (res.timeout) + "ms)")
  6666. : undefined
  6667. );
  6668. }
  6669. }, res.timeout);
  6670. }
  6671. }
  6672. }
  6673. sync = false;
  6674. // return in case resolved synchronously
  6675. return factory.loading
  6676. ? factory.loadingComp
  6677. : factory.resolved
  6678. }
  6679. }
  6680. /* */
  6681. function isAsyncPlaceholder (node) {
  6682. return node.isComment && node.asyncFactory
  6683. }
  6684. /* */
  6685. function getFirstComponentChild (children) {
  6686. if (Array.isArray(children)) {
  6687. for (var i = 0; i < children.length; i++) {
  6688. var c = children[i];
  6689. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6690. return c
  6691. }
  6692. }
  6693. }
  6694. }
  6695. /* */
  6696. /* */
  6697. function initEvents (vm) {
  6698. vm._events = Object.create(null);
  6699. vm._hasHookEvent = false;
  6700. // init parent attached events
  6701. var listeners = vm.$options._parentListeners;
  6702. if (listeners) {
  6703. updateComponentListeners(vm, listeners);
  6704. }
  6705. }
  6706. var target;
  6707. function add (event, fn) {
  6708. target.$on(event, fn);
  6709. }
  6710. function remove$1 (event, fn) {
  6711. target.$off(event, fn);
  6712. }
  6713. function createOnceHandler (event, fn) {
  6714. var _target = target;
  6715. return function onceHandler () {
  6716. var res = fn.apply(null, arguments);
  6717. if (res !== null) {
  6718. _target.$off(event, onceHandler);
  6719. }
  6720. }
  6721. }
  6722. function updateComponentListeners (
  6723. vm,
  6724. listeners,
  6725. oldListeners
  6726. ) {
  6727. target = vm;
  6728. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6729. target = undefined;
  6730. }
  6731. function eventsMixin (Vue) {
  6732. var hookRE = /^hook:/;
  6733. Vue.prototype.$on = function (event, fn) {
  6734. var vm = this;
  6735. if (Array.isArray(event)) {
  6736. for (var i = 0, l = event.length; i < l; i++) {
  6737. vm.$on(event[i], fn);
  6738. }
  6739. } else {
  6740. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6741. // optimize hook:event cost by using a boolean flag marked at registration
  6742. // instead of a hash lookup
  6743. if (hookRE.test(event)) {
  6744. vm._hasHookEvent = true;
  6745. }
  6746. }
  6747. return vm
  6748. };
  6749. Vue.prototype.$once = function (event, fn) {
  6750. var vm = this;
  6751. function on () {
  6752. vm.$off(event, on);
  6753. fn.apply(vm, arguments);
  6754. }
  6755. on.fn = fn;
  6756. vm.$on(event, on);
  6757. return vm
  6758. };
  6759. Vue.prototype.$off = function (event, fn) {
  6760. var vm = this;
  6761. // all
  6762. if (!arguments.length) {
  6763. vm._events = Object.create(null);
  6764. return vm
  6765. }
  6766. // array of events
  6767. if (Array.isArray(event)) {
  6768. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6769. vm.$off(event[i$1], fn);
  6770. }
  6771. return vm
  6772. }
  6773. // specific event
  6774. var cbs = vm._events[event];
  6775. if (!cbs) {
  6776. return vm
  6777. }
  6778. if (!fn) {
  6779. vm._events[event] = null;
  6780. return vm
  6781. }
  6782. // specific handler
  6783. var cb;
  6784. var i = cbs.length;
  6785. while (i--) {
  6786. cb = cbs[i];
  6787. if (cb === fn || cb.fn === fn) {
  6788. cbs.splice(i, 1);
  6789. break
  6790. }
  6791. }
  6792. return vm
  6793. };
  6794. Vue.prototype.$emit = function (event) {
  6795. var vm = this;
  6796. if (true) {
  6797. var lowerCaseEvent = event.toLowerCase();
  6798. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6799. tip(
  6800. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6801. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6802. "Note that HTML attributes are case-insensitive and you cannot use " +
  6803. "v-on to listen to camelCase events when using in-DOM templates. " +
  6804. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6805. );
  6806. }
  6807. }
  6808. var cbs = vm._events[event];
  6809. if (cbs) {
  6810. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6811. var args = toArray(arguments, 1);
  6812. var info = "event handler for \"" + event + "\"";
  6813. for (var i = 0, l = cbs.length; i < l; i++) {
  6814. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6815. }
  6816. }
  6817. return vm
  6818. };
  6819. }
  6820. /* */
  6821. var activeInstance = null;
  6822. var isUpdatingChildComponent = false;
  6823. function setActiveInstance(vm) {
  6824. var prevActiveInstance = activeInstance;
  6825. activeInstance = vm;
  6826. return function () {
  6827. activeInstance = prevActiveInstance;
  6828. }
  6829. }
  6830. function initLifecycle (vm) {
  6831. var options = vm.$options;
  6832. // locate first non-abstract parent
  6833. var parent = options.parent;
  6834. if (parent && !options.abstract) {
  6835. while (parent.$options.abstract && parent.$parent) {
  6836. parent = parent.$parent;
  6837. }
  6838. parent.$children.push(vm);
  6839. }
  6840. vm.$parent = parent;
  6841. vm.$root = parent ? parent.$root : vm;
  6842. vm.$children = [];
  6843. vm.$refs = {};
  6844. vm._watcher = null;
  6845. vm._inactive = null;
  6846. vm._directInactive = false;
  6847. vm._isMounted = false;
  6848. vm._isDestroyed = false;
  6849. vm._isBeingDestroyed = false;
  6850. }
  6851. function lifecycleMixin (Vue) {
  6852. Vue.prototype._update = function (vnode, hydrating) {
  6853. var vm = this;
  6854. var prevEl = vm.$el;
  6855. var prevVnode = vm._vnode;
  6856. var restoreActiveInstance = setActiveInstance(vm);
  6857. vm._vnode = vnode;
  6858. // Vue.prototype.__patch__ is injected in entry points
  6859. // based on the rendering backend used.
  6860. if (!prevVnode) {
  6861. // initial render
  6862. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6863. } else {
  6864. // updates
  6865. vm.$el = vm.__patch__(prevVnode, vnode);
  6866. }
  6867. restoreActiveInstance();
  6868. // update __vue__ reference
  6869. if (prevEl) {
  6870. prevEl.__vue__ = null;
  6871. }
  6872. if (vm.$el) {
  6873. vm.$el.__vue__ = vm;
  6874. }
  6875. // if parent is an HOC, update its $el as well
  6876. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6877. vm.$parent.$el = vm.$el;
  6878. }
  6879. // updated hook is called by the scheduler to ensure that children are
  6880. // updated in a parent's updated hook.
  6881. };
  6882. Vue.prototype.$forceUpdate = function () {
  6883. var vm = this;
  6884. if (vm._watcher) {
  6885. vm._watcher.update();
  6886. }
  6887. };
  6888. Vue.prototype.$destroy = function () {
  6889. var vm = this;
  6890. if (vm._isBeingDestroyed) {
  6891. return
  6892. }
  6893. callHook(vm, 'beforeDestroy');
  6894. vm._isBeingDestroyed = true;
  6895. // remove self from parent
  6896. var parent = vm.$parent;
  6897. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6898. remove(parent.$children, vm);
  6899. }
  6900. // teardown watchers
  6901. if (vm._watcher) {
  6902. vm._watcher.teardown();
  6903. }
  6904. var i = vm._watchers.length;
  6905. while (i--) {
  6906. vm._watchers[i].teardown();
  6907. }
  6908. // remove reference from data ob
  6909. // frozen object may not have observer.
  6910. if (vm._data.__ob__) {
  6911. vm._data.__ob__.vmCount--;
  6912. }
  6913. // call the last hook...
  6914. vm._isDestroyed = true;
  6915. // invoke destroy hooks on current rendered tree
  6916. vm.__patch__(vm._vnode, null);
  6917. // fire destroyed hook
  6918. callHook(vm, 'destroyed');
  6919. // turn off all instance listeners.
  6920. vm.$off();
  6921. // remove __vue__ reference
  6922. if (vm.$el) {
  6923. vm.$el.__vue__ = null;
  6924. }
  6925. // release circular reference (#6759)
  6926. if (vm.$vnode) {
  6927. vm.$vnode.parent = null;
  6928. }
  6929. };
  6930. }
  6931. function updateChildComponent (
  6932. vm,
  6933. propsData,
  6934. listeners,
  6935. parentVnode,
  6936. renderChildren
  6937. ) {
  6938. if (true) {
  6939. isUpdatingChildComponent = true;
  6940. }
  6941. // determine whether component has slot children
  6942. // we need to do this before overwriting $options._renderChildren.
  6943. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6944. // dynamic slot names). Static scoped slots compiled from template has the
  6945. // "$stable" marker.
  6946. var newScopedSlots = parentVnode.data.scopedSlots;
  6947. var oldScopedSlots = vm.$scopedSlots;
  6948. var hasDynamicScopedSlot = !!(
  6949. (newScopedSlots && !newScopedSlots.$stable) ||
  6950. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6951. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6952. );
  6953. // Any static slot children from the parent may have changed during parent's
  6954. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6955. // update is necessary to ensure correctness.
  6956. var needsForceUpdate = !!(
  6957. renderChildren || // has new static slots
  6958. vm.$options._renderChildren || // has old static slots
  6959. hasDynamicScopedSlot
  6960. );
  6961. vm.$options._parentVnode = parentVnode;
  6962. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6963. if (vm._vnode) { // update child tree's parent
  6964. vm._vnode.parent = parentVnode;
  6965. }
  6966. vm.$options._renderChildren = renderChildren;
  6967. // update $attrs and $listeners hash
  6968. // these are also reactive so they may trigger child update if the child
  6969. // used them during render
  6970. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6971. vm.$listeners = listeners || emptyObject;
  6972. // update props
  6973. if (propsData && vm.$options.props) {
  6974. toggleObserving(false);
  6975. var props = vm._props;
  6976. var propKeys = vm.$options._propKeys || [];
  6977. for (var i = 0; i < propKeys.length; i++) {
  6978. var key = propKeys[i];
  6979. var propOptions = vm.$options.props; // wtf flow?
  6980. props[key] = validateProp(key, propOptions, propsData, vm);
  6981. }
  6982. toggleObserving(true);
  6983. // keep a copy of raw propsData
  6984. vm.$options.propsData = propsData;
  6985. }
  6986. // fixed by xxxxxx update properties(mp runtime)
  6987. vm._$updateProperties && vm._$updateProperties(vm);
  6988. // update listeners
  6989. listeners = listeners || emptyObject;
  6990. var oldListeners = vm.$options._parentListeners;
  6991. vm.$options._parentListeners = listeners;
  6992. updateComponentListeners(vm, listeners, oldListeners);
  6993. // resolve slots + force update if has children
  6994. if (needsForceUpdate) {
  6995. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6996. vm.$forceUpdate();
  6997. }
  6998. if (true) {
  6999. isUpdatingChildComponent = false;
  7000. }
  7001. }
  7002. function isInInactiveTree (vm) {
  7003. while (vm && (vm = vm.$parent)) {
  7004. if (vm._inactive) { return true }
  7005. }
  7006. return false
  7007. }
  7008. function activateChildComponent (vm, direct) {
  7009. if (direct) {
  7010. vm._directInactive = false;
  7011. if (isInInactiveTree(vm)) {
  7012. return
  7013. }
  7014. } else if (vm._directInactive) {
  7015. return
  7016. }
  7017. if (vm._inactive || vm._inactive === null) {
  7018. vm._inactive = false;
  7019. for (var i = 0; i < vm.$children.length; i++) {
  7020. activateChildComponent(vm.$children[i]);
  7021. }
  7022. callHook(vm, 'activated');
  7023. }
  7024. }
  7025. function deactivateChildComponent (vm, direct) {
  7026. if (direct) {
  7027. vm._directInactive = true;
  7028. if (isInInactiveTree(vm)) {
  7029. return
  7030. }
  7031. }
  7032. if (!vm._inactive) {
  7033. vm._inactive = true;
  7034. for (var i = 0; i < vm.$children.length; i++) {
  7035. deactivateChildComponent(vm.$children[i]);
  7036. }
  7037. callHook(vm, 'deactivated');
  7038. }
  7039. }
  7040. function callHook (vm, hook) {
  7041. // #7573 disable dep collection when invoking lifecycle hooks
  7042. pushTarget();
  7043. var handlers = vm.$options[hook];
  7044. var info = hook + " hook";
  7045. if (handlers) {
  7046. for (var i = 0, j = handlers.length; i < j; i++) {
  7047. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7048. }
  7049. }
  7050. if (vm._hasHookEvent) {
  7051. vm.$emit('hook:' + hook);
  7052. }
  7053. popTarget();
  7054. }
  7055. /* */
  7056. var MAX_UPDATE_COUNT = 100;
  7057. var queue = [];
  7058. var activatedChildren = [];
  7059. var has = {};
  7060. var circular = {};
  7061. var waiting = false;
  7062. var flushing = false;
  7063. var index = 0;
  7064. /**
  7065. * Reset the scheduler's state.
  7066. */
  7067. function resetSchedulerState () {
  7068. index = queue.length = activatedChildren.length = 0;
  7069. has = {};
  7070. if (true) {
  7071. circular = {};
  7072. }
  7073. waiting = flushing = false;
  7074. }
  7075. // Async edge case #6566 requires saving the timestamp when event listeners are
  7076. // attached. However, calling performance.now() has a perf overhead especially
  7077. // if the page has thousands of event listeners. Instead, we take a timestamp
  7078. // every time the scheduler flushes and use that for all event listeners
  7079. // attached during that flush.
  7080. var currentFlushTimestamp = 0;
  7081. // Async edge case fix requires storing an event listener's attach timestamp.
  7082. var getNow = Date.now;
  7083. // Determine what event timestamp the browser is using. Annoyingly, the
  7084. // timestamp can either be hi-res (relative to page load) or low-res
  7085. // (relative to UNIX epoch), so in order to compare time we have to use the
  7086. // same timestamp type when saving the flush timestamp.
  7087. // All IE versions use low-res event timestamps, and have problematic clock
  7088. // implementations (#9632)
  7089. if (inBrowser && !isIE) {
  7090. var performance = window.performance;
  7091. if (
  7092. performance &&
  7093. typeof performance.now === 'function' &&
  7094. getNow() > document.createEvent('Event').timeStamp
  7095. ) {
  7096. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7097. // smaller than it, it means the event is using a hi-res timestamp,
  7098. // and we need to use the hi-res version for event listener timestamps as
  7099. // well.
  7100. getNow = function () { return performance.now(); };
  7101. }
  7102. }
  7103. /**
  7104. * Flush both queues and run the watchers.
  7105. */
  7106. function flushSchedulerQueue () {
  7107. currentFlushTimestamp = getNow();
  7108. flushing = true;
  7109. var watcher, id;
  7110. // Sort queue before flush.
  7111. // This ensures that:
  7112. // 1. Components are updated from parent to child. (because parent is always
  7113. // created before the child)
  7114. // 2. A component's user watchers are run before its render watcher (because
  7115. // user watchers are created before the render watcher)
  7116. // 3. If a component is destroyed during a parent component's watcher run,
  7117. // its watchers can be skipped.
  7118. queue.sort(function (a, b) { return a.id - b.id; });
  7119. // do not cache length because more watchers might be pushed
  7120. // as we run existing watchers
  7121. for (index = 0; index < queue.length; index++) {
  7122. watcher = queue[index];
  7123. if (watcher.before) {
  7124. watcher.before();
  7125. }
  7126. id = watcher.id;
  7127. has[id] = null;
  7128. watcher.run();
  7129. // in dev build, check and stop circular updates.
  7130. if ( true && has[id] != null) {
  7131. circular[id] = (circular[id] || 0) + 1;
  7132. if (circular[id] > MAX_UPDATE_COUNT) {
  7133. warn(
  7134. 'You may have an infinite update loop ' + (
  7135. watcher.user
  7136. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7137. : "in a component render function."
  7138. ),
  7139. watcher.vm
  7140. );
  7141. break
  7142. }
  7143. }
  7144. }
  7145. // keep copies of post queues before resetting state
  7146. var activatedQueue = activatedChildren.slice();
  7147. var updatedQueue = queue.slice();
  7148. resetSchedulerState();
  7149. // call component updated and activated hooks
  7150. callActivatedHooks(activatedQueue);
  7151. callUpdatedHooks(updatedQueue);
  7152. // devtool hook
  7153. /* istanbul ignore if */
  7154. if (devtools && config.devtools) {
  7155. devtools.emit('flush');
  7156. }
  7157. }
  7158. function callUpdatedHooks (queue) {
  7159. var i = queue.length;
  7160. while (i--) {
  7161. var watcher = queue[i];
  7162. var vm = watcher.vm;
  7163. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7164. callHook(vm, 'updated');
  7165. }
  7166. }
  7167. }
  7168. /**
  7169. * Queue a kept-alive component that was activated during patch.
  7170. * The queue will be processed after the entire tree has been patched.
  7171. */
  7172. function queueActivatedComponent (vm) {
  7173. // setting _inactive to false here so that a render function can
  7174. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7175. vm._inactive = false;
  7176. activatedChildren.push(vm);
  7177. }
  7178. function callActivatedHooks (queue) {
  7179. for (var i = 0; i < queue.length; i++) {
  7180. queue[i]._inactive = true;
  7181. activateChildComponent(queue[i], true /* true */);
  7182. }
  7183. }
  7184. /**
  7185. * Push a watcher into the watcher queue.
  7186. * Jobs with duplicate IDs will be skipped unless it's
  7187. * pushed when the queue is being flushed.
  7188. */
  7189. function queueWatcher (watcher) {
  7190. var id = watcher.id;
  7191. if (has[id] == null) {
  7192. has[id] = true;
  7193. if (!flushing) {
  7194. queue.push(watcher);
  7195. } else {
  7196. // if already flushing, splice the watcher based on its id
  7197. // if already past its id, it will be run next immediately.
  7198. var i = queue.length - 1;
  7199. while (i > index && queue[i].id > watcher.id) {
  7200. i--;
  7201. }
  7202. queue.splice(i + 1, 0, watcher);
  7203. }
  7204. // queue the flush
  7205. if (!waiting) {
  7206. waiting = true;
  7207. if ( true && !config.async) {
  7208. flushSchedulerQueue();
  7209. return
  7210. }
  7211. nextTick(flushSchedulerQueue);
  7212. }
  7213. }
  7214. }
  7215. /* */
  7216. var uid$2 = 0;
  7217. /**
  7218. * A watcher parses an expression, collects dependencies,
  7219. * and fires callback when the expression value changes.
  7220. * This is used for both the $watch() api and directives.
  7221. */
  7222. var Watcher = function Watcher (
  7223. vm,
  7224. expOrFn,
  7225. cb,
  7226. options,
  7227. isRenderWatcher
  7228. ) {
  7229. this.vm = vm;
  7230. if (isRenderWatcher) {
  7231. vm._watcher = this;
  7232. }
  7233. vm._watchers.push(this);
  7234. // options
  7235. if (options) {
  7236. this.deep = !!options.deep;
  7237. this.user = !!options.user;
  7238. this.lazy = !!options.lazy;
  7239. this.sync = !!options.sync;
  7240. this.before = options.before;
  7241. } else {
  7242. this.deep = this.user = this.lazy = this.sync = false;
  7243. }
  7244. this.cb = cb;
  7245. this.id = ++uid$2; // uid for batching
  7246. this.active = true;
  7247. this.dirty = this.lazy; // for lazy watchers
  7248. this.deps = [];
  7249. this.newDeps = [];
  7250. this.depIds = new _Set();
  7251. this.newDepIds = new _Set();
  7252. this.expression = true
  7253. ? expOrFn.toString()
  7254. : undefined;
  7255. // parse expression for getter
  7256. if (typeof expOrFn === 'function') {
  7257. this.getter = expOrFn;
  7258. } else {
  7259. this.getter = parsePath(expOrFn);
  7260. if (!this.getter) {
  7261. this.getter = noop;
  7262. true && warn(
  7263. "Failed watching path: \"" + expOrFn + "\" " +
  7264. 'Watcher only accepts simple dot-delimited paths. ' +
  7265. 'For full control, use a function instead.',
  7266. vm
  7267. );
  7268. }
  7269. }
  7270. this.value = this.lazy
  7271. ? undefined
  7272. : this.get();
  7273. };
  7274. /**
  7275. * Evaluate the getter, and re-collect dependencies.
  7276. */
  7277. Watcher.prototype.get = function get () {
  7278. pushTarget(this);
  7279. var value;
  7280. var vm = this.vm;
  7281. try {
  7282. value = this.getter.call(vm, vm);
  7283. } catch (e) {
  7284. if (this.user) {
  7285. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7286. } else {
  7287. throw e
  7288. }
  7289. } finally {
  7290. // "touch" every property so they are all tracked as
  7291. // dependencies for deep watching
  7292. if (this.deep) {
  7293. traverse(value);
  7294. }
  7295. popTarget();
  7296. this.cleanupDeps();
  7297. }
  7298. return value
  7299. };
  7300. /**
  7301. * Add a dependency to this directive.
  7302. */
  7303. Watcher.prototype.addDep = function addDep (dep) {
  7304. var id = dep.id;
  7305. if (!this.newDepIds.has(id)) {
  7306. this.newDepIds.add(id);
  7307. this.newDeps.push(dep);
  7308. if (!this.depIds.has(id)) {
  7309. dep.addSub(this);
  7310. }
  7311. }
  7312. };
  7313. /**
  7314. * Clean up for dependency collection.
  7315. */
  7316. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7317. var i = this.deps.length;
  7318. while (i--) {
  7319. var dep = this.deps[i];
  7320. if (!this.newDepIds.has(dep.id)) {
  7321. dep.removeSub(this);
  7322. }
  7323. }
  7324. var tmp = this.depIds;
  7325. this.depIds = this.newDepIds;
  7326. this.newDepIds = tmp;
  7327. this.newDepIds.clear();
  7328. tmp = this.deps;
  7329. this.deps = this.newDeps;
  7330. this.newDeps = tmp;
  7331. this.newDeps.length = 0;
  7332. };
  7333. /**
  7334. * Subscriber interface.
  7335. * Will be called when a dependency changes.
  7336. */
  7337. Watcher.prototype.update = function update () {
  7338. /* istanbul ignore else */
  7339. if (this.lazy) {
  7340. this.dirty = true;
  7341. } else if (this.sync) {
  7342. this.run();
  7343. } else {
  7344. queueWatcher(this);
  7345. }
  7346. };
  7347. /**
  7348. * Scheduler job interface.
  7349. * Will be called by the scheduler.
  7350. */
  7351. Watcher.prototype.run = function run () {
  7352. if (this.active) {
  7353. var value = this.get();
  7354. if (
  7355. value !== this.value ||
  7356. // Deep watchers and watchers on Object/Arrays should fire even
  7357. // when the value is the same, because the value may
  7358. // have mutated.
  7359. isObject(value) ||
  7360. this.deep
  7361. ) {
  7362. // set new value
  7363. var oldValue = this.value;
  7364. this.value = value;
  7365. if (this.user) {
  7366. try {
  7367. this.cb.call(this.vm, value, oldValue);
  7368. } catch (e) {
  7369. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7370. }
  7371. } else {
  7372. this.cb.call(this.vm, value, oldValue);
  7373. }
  7374. }
  7375. }
  7376. };
  7377. /**
  7378. * Evaluate the value of the watcher.
  7379. * This only gets called for lazy watchers.
  7380. */
  7381. Watcher.prototype.evaluate = function evaluate () {
  7382. this.value = this.get();
  7383. this.dirty = false;
  7384. };
  7385. /**
  7386. * Depend on all deps collected by this watcher.
  7387. */
  7388. Watcher.prototype.depend = function depend () {
  7389. var i = this.deps.length;
  7390. while (i--) {
  7391. this.deps[i].depend();
  7392. }
  7393. };
  7394. /**
  7395. * Remove self from all dependencies' subscriber list.
  7396. */
  7397. Watcher.prototype.teardown = function teardown () {
  7398. if (this.active) {
  7399. // remove self from vm's watcher list
  7400. // this is a somewhat expensive operation so we skip it
  7401. // if the vm is being destroyed.
  7402. if (!this.vm._isBeingDestroyed) {
  7403. remove(this.vm._watchers, this);
  7404. }
  7405. var i = this.deps.length;
  7406. while (i--) {
  7407. this.deps[i].removeSub(this);
  7408. }
  7409. this.active = false;
  7410. }
  7411. };
  7412. /* */
  7413. var sharedPropertyDefinition = {
  7414. enumerable: true,
  7415. configurable: true,
  7416. get: noop,
  7417. set: noop
  7418. };
  7419. function proxy (target, sourceKey, key) {
  7420. sharedPropertyDefinition.get = function proxyGetter () {
  7421. return this[sourceKey][key]
  7422. };
  7423. sharedPropertyDefinition.set = function proxySetter (val) {
  7424. this[sourceKey][key] = val;
  7425. };
  7426. Object.defineProperty(target, key, sharedPropertyDefinition);
  7427. }
  7428. function initState (vm) {
  7429. vm._watchers = [];
  7430. var opts = vm.$options;
  7431. if (opts.props) { initProps(vm, opts.props); }
  7432. if (opts.methods) { initMethods(vm, opts.methods); }
  7433. if (opts.data) {
  7434. initData(vm);
  7435. } else {
  7436. observe(vm._data = {}, true /* asRootData */);
  7437. }
  7438. if (opts.computed) { initComputed(vm, opts.computed); }
  7439. if (opts.watch && opts.watch !== nativeWatch) {
  7440. initWatch(vm, opts.watch);
  7441. }
  7442. }
  7443. function initProps (vm, propsOptions) {
  7444. var propsData = vm.$options.propsData || {};
  7445. var props = vm._props = {};
  7446. // cache prop keys so that future props updates can iterate using Array
  7447. // instead of dynamic object key enumeration.
  7448. var keys = vm.$options._propKeys = [];
  7449. var isRoot = !vm.$parent;
  7450. // root instance props should be converted
  7451. if (!isRoot) {
  7452. toggleObserving(false);
  7453. }
  7454. var loop = function ( key ) {
  7455. keys.push(key);
  7456. var value = validateProp(key, propsOptions, propsData, vm);
  7457. /* istanbul ignore else */
  7458. if (true) {
  7459. var hyphenatedKey = hyphenate(key);
  7460. if (isReservedAttribute(hyphenatedKey) ||
  7461. config.isReservedAttr(hyphenatedKey)) {
  7462. warn(
  7463. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7464. vm
  7465. );
  7466. }
  7467. defineReactive$$1(props, key, value, function () {
  7468. if (!isRoot && !isUpdatingChildComponent) {
  7469. {
  7470. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7471. return
  7472. }
  7473. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7474. if(
  7475. key === 'value' &&
  7476. Array.isArray(vm.$options.behaviors) &&
  7477. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7478. ){
  7479. return
  7480. }
  7481. if(vm._getFormData){
  7482. return
  7483. }
  7484. var $parent = vm.$parent;
  7485. while($parent){
  7486. if($parent.__next_tick_pending){
  7487. return
  7488. }
  7489. $parent = $parent.$parent;
  7490. }
  7491. }
  7492. warn(
  7493. "Avoid mutating a prop directly since the value will be " +
  7494. "overwritten whenever the parent component re-renders. " +
  7495. "Instead, use a data or computed property based on the prop's " +
  7496. "value. Prop being mutated: \"" + key + "\"",
  7497. vm
  7498. );
  7499. }
  7500. });
  7501. } else {}
  7502. // static props are already proxied on the component's prototype
  7503. // during Vue.extend(). We only need to proxy props defined at
  7504. // instantiation here.
  7505. if (!(key in vm)) {
  7506. proxy(vm, "_props", key);
  7507. }
  7508. };
  7509. for (var key in propsOptions) loop( key );
  7510. toggleObserving(true);
  7511. }
  7512. function initData (vm) {
  7513. var data = vm.$options.data;
  7514. data = vm._data = typeof data === 'function'
  7515. ? getData(data, vm)
  7516. : data || {};
  7517. if (!isPlainObject(data)) {
  7518. data = {};
  7519. true && warn(
  7520. 'data functions should return an object:\n' +
  7521. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7522. vm
  7523. );
  7524. }
  7525. // proxy data on instance
  7526. var keys = Object.keys(data);
  7527. var props = vm.$options.props;
  7528. var methods = vm.$options.methods;
  7529. var i = keys.length;
  7530. while (i--) {
  7531. var key = keys[i];
  7532. if (true) {
  7533. if (methods && hasOwn(methods, key)) {
  7534. warn(
  7535. ("Method \"" + key + "\" has already been defined as a data property."),
  7536. vm
  7537. );
  7538. }
  7539. }
  7540. if (props && hasOwn(props, key)) {
  7541. true && warn(
  7542. "The data property \"" + key + "\" is already declared as a prop. " +
  7543. "Use prop default value instead.",
  7544. vm
  7545. );
  7546. } else if (!isReserved(key)) {
  7547. proxy(vm, "_data", key);
  7548. }
  7549. }
  7550. // observe data
  7551. observe(data, true /* asRootData */);
  7552. }
  7553. function getData (data, vm) {
  7554. // #7573 disable dep collection when invoking data getters
  7555. pushTarget();
  7556. try {
  7557. return data.call(vm, vm)
  7558. } catch (e) {
  7559. handleError(e, vm, "data()");
  7560. return {}
  7561. } finally {
  7562. popTarget();
  7563. }
  7564. }
  7565. var computedWatcherOptions = { lazy: true };
  7566. function initComputed (vm, computed) {
  7567. // $flow-disable-line
  7568. var watchers = vm._computedWatchers = Object.create(null);
  7569. // computed properties are just getters during SSR
  7570. var isSSR = isServerRendering();
  7571. for (var key in computed) {
  7572. var userDef = computed[key];
  7573. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7574. if ( true && getter == null) {
  7575. warn(
  7576. ("Getter is missing for computed property \"" + key + "\"."),
  7577. vm
  7578. );
  7579. }
  7580. if (!isSSR) {
  7581. // create internal watcher for the computed property.
  7582. watchers[key] = new Watcher(
  7583. vm,
  7584. getter || noop,
  7585. noop,
  7586. computedWatcherOptions
  7587. );
  7588. }
  7589. // component-defined computed properties are already defined on the
  7590. // component prototype. We only need to define computed properties defined
  7591. // at instantiation here.
  7592. if (!(key in vm)) {
  7593. defineComputed(vm, key, userDef);
  7594. } else if (true) {
  7595. if (key in vm.$data) {
  7596. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7597. } else if (vm.$options.props && key in vm.$options.props) {
  7598. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7599. }
  7600. }
  7601. }
  7602. }
  7603. function defineComputed (
  7604. target,
  7605. key,
  7606. userDef
  7607. ) {
  7608. var shouldCache = !isServerRendering();
  7609. if (typeof userDef === 'function') {
  7610. sharedPropertyDefinition.get = shouldCache
  7611. ? createComputedGetter(key)
  7612. : createGetterInvoker(userDef);
  7613. sharedPropertyDefinition.set = noop;
  7614. } else {
  7615. sharedPropertyDefinition.get = userDef.get
  7616. ? shouldCache && userDef.cache !== false
  7617. ? createComputedGetter(key)
  7618. : createGetterInvoker(userDef.get)
  7619. : noop;
  7620. sharedPropertyDefinition.set = userDef.set || noop;
  7621. }
  7622. if ( true &&
  7623. sharedPropertyDefinition.set === noop) {
  7624. sharedPropertyDefinition.set = function () {
  7625. warn(
  7626. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7627. this
  7628. );
  7629. };
  7630. }
  7631. Object.defineProperty(target, key, sharedPropertyDefinition);
  7632. }
  7633. function createComputedGetter (key) {
  7634. return function computedGetter () {
  7635. var watcher = this._computedWatchers && this._computedWatchers[key];
  7636. if (watcher) {
  7637. if (watcher.dirty) {
  7638. watcher.evaluate();
  7639. }
  7640. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7641. watcher.depend();
  7642. }
  7643. return watcher.value
  7644. }
  7645. }
  7646. }
  7647. function createGetterInvoker(fn) {
  7648. return function computedGetter () {
  7649. return fn.call(this, this)
  7650. }
  7651. }
  7652. function initMethods (vm, methods) {
  7653. var props = vm.$options.props;
  7654. for (var key in methods) {
  7655. if (true) {
  7656. if (typeof methods[key] !== 'function') {
  7657. warn(
  7658. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7659. "Did you reference the function correctly?",
  7660. vm
  7661. );
  7662. }
  7663. if (props && hasOwn(props, key)) {
  7664. warn(
  7665. ("Method \"" + key + "\" has already been defined as a prop."),
  7666. vm
  7667. );
  7668. }
  7669. if ((key in vm) && isReserved(key)) {
  7670. warn(
  7671. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7672. "Avoid defining component methods that start with _ or $."
  7673. );
  7674. }
  7675. }
  7676. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7677. }
  7678. }
  7679. function initWatch (vm, watch) {
  7680. for (var key in watch) {
  7681. var handler = watch[key];
  7682. if (Array.isArray(handler)) {
  7683. for (var i = 0; i < handler.length; i++) {
  7684. createWatcher(vm, key, handler[i]);
  7685. }
  7686. } else {
  7687. createWatcher(vm, key, handler);
  7688. }
  7689. }
  7690. }
  7691. function createWatcher (
  7692. vm,
  7693. expOrFn,
  7694. handler,
  7695. options
  7696. ) {
  7697. if (isPlainObject(handler)) {
  7698. options = handler;
  7699. handler = handler.handler;
  7700. }
  7701. if (typeof handler === 'string') {
  7702. handler = vm[handler];
  7703. }
  7704. return vm.$watch(expOrFn, handler, options)
  7705. }
  7706. function stateMixin (Vue) {
  7707. // flow somehow has problems with directly declared definition object
  7708. // when using Object.defineProperty, so we have to procedurally build up
  7709. // the object here.
  7710. var dataDef = {};
  7711. dataDef.get = function () { return this._data };
  7712. var propsDef = {};
  7713. propsDef.get = function () { return this._props };
  7714. if (true) {
  7715. dataDef.set = function () {
  7716. warn(
  7717. 'Avoid replacing instance root $data. ' +
  7718. 'Use nested data properties instead.',
  7719. this
  7720. );
  7721. };
  7722. propsDef.set = function () {
  7723. warn("$props is readonly.", this);
  7724. };
  7725. }
  7726. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7727. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7728. Vue.prototype.$set = set;
  7729. Vue.prototype.$delete = del;
  7730. Vue.prototype.$watch = function (
  7731. expOrFn,
  7732. cb,
  7733. options
  7734. ) {
  7735. var vm = this;
  7736. if (isPlainObject(cb)) {
  7737. return createWatcher(vm, expOrFn, cb, options)
  7738. }
  7739. options = options || {};
  7740. options.user = true;
  7741. var watcher = new Watcher(vm, expOrFn, cb, options);
  7742. if (options.immediate) {
  7743. try {
  7744. cb.call(vm, watcher.value);
  7745. } catch (error) {
  7746. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7747. }
  7748. }
  7749. return function unwatchFn () {
  7750. watcher.teardown();
  7751. }
  7752. };
  7753. }
  7754. /* */
  7755. var uid$3 = 0;
  7756. function initMixin (Vue) {
  7757. Vue.prototype._init = function (options) {
  7758. var vm = this;
  7759. // a uid
  7760. vm._uid = uid$3++;
  7761. var startTag, endTag;
  7762. /* istanbul ignore if */
  7763. if ( true && config.performance && mark) {
  7764. startTag = "vue-perf-start:" + (vm._uid);
  7765. endTag = "vue-perf-end:" + (vm._uid);
  7766. mark(startTag);
  7767. }
  7768. // a flag to avoid this being observed
  7769. vm._isVue = true;
  7770. // merge options
  7771. if (options && options._isComponent) {
  7772. // optimize internal component instantiation
  7773. // since dynamic options merging is pretty slow, and none of the
  7774. // internal component options needs special treatment.
  7775. initInternalComponent(vm, options);
  7776. } else {
  7777. vm.$options = mergeOptions(
  7778. resolveConstructorOptions(vm.constructor),
  7779. options || {},
  7780. vm
  7781. );
  7782. }
  7783. /* istanbul ignore else */
  7784. if (true) {
  7785. initProxy(vm);
  7786. } else {}
  7787. // expose real self
  7788. vm._self = vm;
  7789. initLifecycle(vm);
  7790. initEvents(vm);
  7791. initRender(vm);
  7792. callHook(vm, 'beforeCreate');
  7793. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7794. initState(vm);
  7795. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7796. !vm._$fallback && callHook(vm, 'created');
  7797. /* istanbul ignore if */
  7798. if ( true && config.performance && mark) {
  7799. vm._name = formatComponentName(vm, false);
  7800. mark(endTag);
  7801. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7802. }
  7803. if (vm.$options.el) {
  7804. vm.$mount(vm.$options.el);
  7805. }
  7806. };
  7807. }
  7808. function initInternalComponent (vm, options) {
  7809. var opts = vm.$options = Object.create(vm.constructor.options);
  7810. // doing this because it's faster than dynamic enumeration.
  7811. var parentVnode = options._parentVnode;
  7812. opts.parent = options.parent;
  7813. opts._parentVnode = parentVnode;
  7814. var vnodeComponentOptions = parentVnode.componentOptions;
  7815. opts.propsData = vnodeComponentOptions.propsData;
  7816. opts._parentListeners = vnodeComponentOptions.listeners;
  7817. opts._renderChildren = vnodeComponentOptions.children;
  7818. opts._componentTag = vnodeComponentOptions.tag;
  7819. if (options.render) {
  7820. opts.render = options.render;
  7821. opts.staticRenderFns = options.staticRenderFns;
  7822. }
  7823. }
  7824. function resolveConstructorOptions (Ctor) {
  7825. var options = Ctor.options;
  7826. if (Ctor.super) {
  7827. var superOptions = resolveConstructorOptions(Ctor.super);
  7828. var cachedSuperOptions = Ctor.superOptions;
  7829. if (superOptions !== cachedSuperOptions) {
  7830. // super option changed,
  7831. // need to resolve new options.
  7832. Ctor.superOptions = superOptions;
  7833. // check if there are any late-modified/attached options (#4976)
  7834. var modifiedOptions = resolveModifiedOptions(Ctor);
  7835. // update base extend options
  7836. if (modifiedOptions) {
  7837. extend(Ctor.extendOptions, modifiedOptions);
  7838. }
  7839. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7840. if (options.name) {
  7841. options.components[options.name] = Ctor;
  7842. }
  7843. }
  7844. }
  7845. return options
  7846. }
  7847. function resolveModifiedOptions (Ctor) {
  7848. var modified;
  7849. var latest = Ctor.options;
  7850. var sealed = Ctor.sealedOptions;
  7851. for (var key in latest) {
  7852. if (latest[key] !== sealed[key]) {
  7853. if (!modified) { modified = {}; }
  7854. modified[key] = latest[key];
  7855. }
  7856. }
  7857. return modified
  7858. }
  7859. function Vue (options) {
  7860. if ( true &&
  7861. !(this instanceof Vue)
  7862. ) {
  7863. warn('Vue is a constructor and should be called with the `new` keyword');
  7864. }
  7865. this._init(options);
  7866. }
  7867. initMixin(Vue);
  7868. stateMixin(Vue);
  7869. eventsMixin(Vue);
  7870. lifecycleMixin(Vue);
  7871. renderMixin(Vue);
  7872. /* */
  7873. function initUse (Vue) {
  7874. Vue.use = function (plugin) {
  7875. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7876. if (installedPlugins.indexOf(plugin) > -1) {
  7877. return this
  7878. }
  7879. // additional parameters
  7880. var args = toArray(arguments, 1);
  7881. args.unshift(this);
  7882. if (typeof plugin.install === 'function') {
  7883. plugin.install.apply(plugin, args);
  7884. } else if (typeof plugin === 'function') {
  7885. plugin.apply(null, args);
  7886. }
  7887. installedPlugins.push(plugin);
  7888. return this
  7889. };
  7890. }
  7891. /* */
  7892. function initMixin$1 (Vue) {
  7893. Vue.mixin = function (mixin) {
  7894. this.options = mergeOptions(this.options, mixin);
  7895. return this
  7896. };
  7897. }
  7898. /* */
  7899. function initExtend (Vue) {
  7900. /**
  7901. * Each instance constructor, including Vue, has a unique
  7902. * cid. This enables us to create wrapped "child
  7903. * constructors" for prototypal inheritance and cache them.
  7904. */
  7905. Vue.cid = 0;
  7906. var cid = 1;
  7907. /**
  7908. * Class inheritance
  7909. */
  7910. Vue.extend = function (extendOptions) {
  7911. extendOptions = extendOptions || {};
  7912. var Super = this;
  7913. var SuperId = Super.cid;
  7914. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7915. if (cachedCtors[SuperId]) {
  7916. return cachedCtors[SuperId]
  7917. }
  7918. var name = extendOptions.name || Super.options.name;
  7919. if ( true && name) {
  7920. validateComponentName(name);
  7921. }
  7922. var Sub = function VueComponent (options) {
  7923. this._init(options);
  7924. };
  7925. Sub.prototype = Object.create(Super.prototype);
  7926. Sub.prototype.constructor = Sub;
  7927. Sub.cid = cid++;
  7928. Sub.options = mergeOptions(
  7929. Super.options,
  7930. extendOptions
  7931. );
  7932. Sub['super'] = Super;
  7933. // For props and computed properties, we define the proxy getters on
  7934. // the Vue instances at extension time, on the extended prototype. This
  7935. // avoids Object.defineProperty calls for each instance created.
  7936. if (Sub.options.props) {
  7937. initProps$1(Sub);
  7938. }
  7939. if (Sub.options.computed) {
  7940. initComputed$1(Sub);
  7941. }
  7942. // allow further extension/mixin/plugin usage
  7943. Sub.extend = Super.extend;
  7944. Sub.mixin = Super.mixin;
  7945. Sub.use = Super.use;
  7946. // create asset registers, so extended classes
  7947. // can have their private assets too.
  7948. ASSET_TYPES.forEach(function (type) {
  7949. Sub[type] = Super[type];
  7950. });
  7951. // enable recursive self-lookup
  7952. if (name) {
  7953. Sub.options.components[name] = Sub;
  7954. }
  7955. // keep a reference to the super options at extension time.
  7956. // later at instantiation we can check if Super's options have
  7957. // been updated.
  7958. Sub.superOptions = Super.options;
  7959. Sub.extendOptions = extendOptions;
  7960. Sub.sealedOptions = extend({}, Sub.options);
  7961. // cache constructor
  7962. cachedCtors[SuperId] = Sub;
  7963. return Sub
  7964. };
  7965. }
  7966. function initProps$1 (Comp) {
  7967. var props = Comp.options.props;
  7968. for (var key in props) {
  7969. proxy(Comp.prototype, "_props", key);
  7970. }
  7971. }
  7972. function initComputed$1 (Comp) {
  7973. var computed = Comp.options.computed;
  7974. for (var key in computed) {
  7975. defineComputed(Comp.prototype, key, computed[key]);
  7976. }
  7977. }
  7978. /* */
  7979. function initAssetRegisters (Vue) {
  7980. /**
  7981. * Create asset registration methods.
  7982. */
  7983. ASSET_TYPES.forEach(function (type) {
  7984. Vue[type] = function (
  7985. id,
  7986. definition
  7987. ) {
  7988. if (!definition) {
  7989. return this.options[type + 's'][id]
  7990. } else {
  7991. /* istanbul ignore if */
  7992. if ( true && type === 'component') {
  7993. validateComponentName(id);
  7994. }
  7995. if (type === 'component' && isPlainObject(definition)) {
  7996. definition.name = definition.name || id;
  7997. definition = this.options._base.extend(definition);
  7998. }
  7999. if (type === 'directive' && typeof definition === 'function') {
  8000. definition = { bind: definition, update: definition };
  8001. }
  8002. this.options[type + 's'][id] = definition;
  8003. return definition
  8004. }
  8005. };
  8006. });
  8007. }
  8008. /* */
  8009. function getComponentName (opts) {
  8010. return opts && (opts.Ctor.options.name || opts.tag)
  8011. }
  8012. function matches (pattern, name) {
  8013. if (Array.isArray(pattern)) {
  8014. return pattern.indexOf(name) > -1
  8015. } else if (typeof pattern === 'string') {
  8016. return pattern.split(',').indexOf(name) > -1
  8017. } else if (isRegExp(pattern)) {
  8018. return pattern.test(name)
  8019. }
  8020. /* istanbul ignore next */
  8021. return false
  8022. }
  8023. function pruneCache (keepAliveInstance, filter) {
  8024. var cache = keepAliveInstance.cache;
  8025. var keys = keepAliveInstance.keys;
  8026. var _vnode = keepAliveInstance._vnode;
  8027. for (var key in cache) {
  8028. var cachedNode = cache[key];
  8029. if (cachedNode) {
  8030. var name = getComponentName(cachedNode.componentOptions);
  8031. if (name && !filter(name)) {
  8032. pruneCacheEntry(cache, key, keys, _vnode);
  8033. }
  8034. }
  8035. }
  8036. }
  8037. function pruneCacheEntry (
  8038. cache,
  8039. key,
  8040. keys,
  8041. current
  8042. ) {
  8043. var cached$$1 = cache[key];
  8044. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8045. cached$$1.componentInstance.$destroy();
  8046. }
  8047. cache[key] = null;
  8048. remove(keys, key);
  8049. }
  8050. var patternTypes = [String, RegExp, Array];
  8051. var KeepAlive = {
  8052. name: 'keep-alive',
  8053. abstract: true,
  8054. props: {
  8055. include: patternTypes,
  8056. exclude: patternTypes,
  8057. max: [String, Number]
  8058. },
  8059. created: function created () {
  8060. this.cache = Object.create(null);
  8061. this.keys = [];
  8062. },
  8063. destroyed: function destroyed () {
  8064. for (var key in this.cache) {
  8065. pruneCacheEntry(this.cache, key, this.keys);
  8066. }
  8067. },
  8068. mounted: function mounted () {
  8069. var this$1 = this;
  8070. this.$watch('include', function (val) {
  8071. pruneCache(this$1, function (name) { return matches(val, name); });
  8072. });
  8073. this.$watch('exclude', function (val) {
  8074. pruneCache(this$1, function (name) { return !matches(val, name); });
  8075. });
  8076. },
  8077. render: function render () {
  8078. var slot = this.$slots.default;
  8079. var vnode = getFirstComponentChild(slot);
  8080. var componentOptions = vnode && vnode.componentOptions;
  8081. if (componentOptions) {
  8082. // check pattern
  8083. var name = getComponentName(componentOptions);
  8084. var ref = this;
  8085. var include = ref.include;
  8086. var exclude = ref.exclude;
  8087. if (
  8088. // not included
  8089. (include && (!name || !matches(include, name))) ||
  8090. // excluded
  8091. (exclude && name && matches(exclude, name))
  8092. ) {
  8093. return vnode
  8094. }
  8095. var ref$1 = this;
  8096. var cache = ref$1.cache;
  8097. var keys = ref$1.keys;
  8098. var key = vnode.key == null
  8099. // same constructor may get registered as different local components
  8100. // so cid alone is not enough (#3269)
  8101. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8102. : vnode.key;
  8103. if (cache[key]) {
  8104. vnode.componentInstance = cache[key].componentInstance;
  8105. // make current key freshest
  8106. remove(keys, key);
  8107. keys.push(key);
  8108. } else {
  8109. cache[key] = vnode;
  8110. keys.push(key);
  8111. // prune oldest entry
  8112. if (this.max && keys.length > parseInt(this.max)) {
  8113. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8114. }
  8115. }
  8116. vnode.data.keepAlive = true;
  8117. }
  8118. return vnode || (slot && slot[0])
  8119. }
  8120. };
  8121. var builtInComponents = {
  8122. KeepAlive: KeepAlive
  8123. };
  8124. /* */
  8125. function initGlobalAPI (Vue) {
  8126. // config
  8127. var configDef = {};
  8128. configDef.get = function () { return config; };
  8129. if (true) {
  8130. configDef.set = function () {
  8131. warn(
  8132. 'Do not replace the Vue.config object, set individual fields instead.'
  8133. );
  8134. };
  8135. }
  8136. Object.defineProperty(Vue, 'config', configDef);
  8137. // exposed util methods.
  8138. // NOTE: these are not considered part of the public API - avoid relying on
  8139. // them unless you are aware of the risk.
  8140. Vue.util = {
  8141. warn: warn,
  8142. extend: extend,
  8143. mergeOptions: mergeOptions,
  8144. defineReactive: defineReactive$$1
  8145. };
  8146. Vue.set = set;
  8147. Vue.delete = del;
  8148. Vue.nextTick = nextTick;
  8149. // 2.6 explicit observable API
  8150. Vue.observable = function (obj) {
  8151. observe(obj);
  8152. return obj
  8153. };
  8154. Vue.options = Object.create(null);
  8155. ASSET_TYPES.forEach(function (type) {
  8156. Vue.options[type + 's'] = Object.create(null);
  8157. });
  8158. // this is used to identify the "base" constructor to extend all plain-object
  8159. // components with in Weex's multi-instance scenarios.
  8160. Vue.options._base = Vue;
  8161. extend(Vue.options.components, builtInComponents);
  8162. initUse(Vue);
  8163. initMixin$1(Vue);
  8164. initExtend(Vue);
  8165. initAssetRegisters(Vue);
  8166. }
  8167. initGlobalAPI(Vue);
  8168. Object.defineProperty(Vue.prototype, '$isServer', {
  8169. get: isServerRendering
  8170. });
  8171. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8172. get: function get () {
  8173. /* istanbul ignore next */
  8174. return this.$vnode && this.$vnode.ssrContext
  8175. }
  8176. });
  8177. // expose FunctionalRenderContext for ssr runtime helper installation
  8178. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8179. value: FunctionalRenderContext
  8180. });
  8181. Vue.version = '2.6.11';
  8182. /**
  8183. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8184. */
  8185. var ARRAYTYPE = '[object Array]';
  8186. var OBJECTTYPE = '[object Object]';
  8187. var NULLTYPE = '[object Null]';
  8188. var UNDEFINEDTYPE = '[object Undefined]';
  8189. // const FUNCTIONTYPE = '[object Function]'
  8190. function diff(current, pre) {
  8191. var result = {};
  8192. syncKeys(current, pre);
  8193. _diff(current, pre, '', result);
  8194. return result
  8195. }
  8196. function syncKeys(current, pre) {
  8197. if (current === pre) { return }
  8198. var rootCurrentType = type(current);
  8199. var rootPreType = type(pre);
  8200. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8201. if(Object.keys(current).length >= Object.keys(pre).length){
  8202. for (var key in pre) {
  8203. var currentValue = current[key];
  8204. if (currentValue === undefined) {
  8205. current[key] = null;
  8206. } else {
  8207. syncKeys(currentValue, pre[key]);
  8208. }
  8209. }
  8210. }
  8211. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8212. if (current.length >= pre.length) {
  8213. pre.forEach(function (item, index) {
  8214. syncKeys(current[index], item);
  8215. });
  8216. }
  8217. }
  8218. }
  8219. function nullOrUndefined(currentType, preType) {
  8220. if(
  8221. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8222. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8223. ) {
  8224. return false
  8225. }
  8226. return true
  8227. }
  8228. function _diff(current, pre, path, result) {
  8229. if (current === pre) { return }
  8230. var rootCurrentType = type(current);
  8231. var rootPreType = type(pre);
  8232. if (rootCurrentType == OBJECTTYPE) {
  8233. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8234. setResult(result, path, current);
  8235. } else {
  8236. var loop = function ( key ) {
  8237. var currentValue = current[key];
  8238. var preValue = pre[key];
  8239. var currentType = type(currentValue);
  8240. var preType = type(preValue);
  8241. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8242. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8243. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8244. }
  8245. } else if (currentType == ARRAYTYPE) {
  8246. if (preType != ARRAYTYPE) {
  8247. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8248. } else {
  8249. if (currentValue.length < preValue.length) {
  8250. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8251. } else {
  8252. currentValue.forEach(function (item, index) {
  8253. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8254. });
  8255. }
  8256. }
  8257. } else if (currentType == OBJECTTYPE) {
  8258. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8259. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8260. } else {
  8261. for (var subKey in currentValue) {
  8262. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8263. }
  8264. }
  8265. }
  8266. };
  8267. for (var key in current) loop( key );
  8268. }
  8269. } else if (rootCurrentType == ARRAYTYPE) {
  8270. if (rootPreType != ARRAYTYPE) {
  8271. setResult(result, path, current);
  8272. } else {
  8273. if (current.length < pre.length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. current.forEach(function (item, index) {
  8277. _diff(item, pre[index], path + '[' + index + ']', result);
  8278. });
  8279. }
  8280. }
  8281. } else {
  8282. setResult(result, path, current);
  8283. }
  8284. }
  8285. function setResult(result, k, v) {
  8286. // if (type(v) != FUNCTIONTYPE) {
  8287. result[k] = v;
  8288. // }
  8289. }
  8290. function type(obj) {
  8291. return Object.prototype.toString.call(obj)
  8292. }
  8293. /* */
  8294. function flushCallbacks$1(vm) {
  8295. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8296. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8297. var mpInstance = vm.$scope;
  8298. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8299. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8300. }
  8301. var copies = vm.__next_tick_callbacks.slice(0);
  8302. vm.__next_tick_callbacks.length = 0;
  8303. for (var i = 0; i < copies.length; i++) {
  8304. copies[i]();
  8305. }
  8306. }
  8307. }
  8308. function hasRenderWatcher(vm) {
  8309. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8310. }
  8311. function nextTick$1(vm, cb) {
  8312. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8313. //2.nextTick 之前存在 render watcher
  8314. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8315. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8316. var mpInstance = vm.$scope;
  8317. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8318. ']:nextVueTick');
  8319. }
  8320. return nextTick(cb, vm)
  8321. }else{
  8322. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8323. var mpInstance$1 = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8325. ']:nextMPTick');
  8326. }
  8327. }
  8328. var _resolve;
  8329. if (!vm.__next_tick_callbacks) {
  8330. vm.__next_tick_callbacks = [];
  8331. }
  8332. vm.__next_tick_callbacks.push(function () {
  8333. if (cb) {
  8334. try {
  8335. cb.call(vm);
  8336. } catch (e) {
  8337. handleError(e, vm, 'nextTick');
  8338. }
  8339. } else if (_resolve) {
  8340. _resolve(vm);
  8341. }
  8342. });
  8343. // $flow-disable-line
  8344. if (!cb && typeof Promise !== 'undefined') {
  8345. return new Promise(function (resolve) {
  8346. _resolve = resolve;
  8347. })
  8348. }
  8349. }
  8350. /* */
  8351. function clearInstance(key, value) {
  8352. // 简易去除 Vue 和小程序组件实例
  8353. if (value) {
  8354. if (value._isVue || value.__v_isMPComponent) {
  8355. return {}
  8356. }
  8357. }
  8358. return value
  8359. }
  8360. function cloneWithData(vm) {
  8361. // 确保当前 vm 所有数据被同步
  8362. var ret = Object.create(null);
  8363. var dataKeys = [].concat(
  8364. Object.keys(vm._data || {}),
  8365. Object.keys(vm._computedWatchers || {}));
  8366. dataKeys.reduce(function(ret, key) {
  8367. ret[key] = vm[key];
  8368. return ret
  8369. }, ret);
  8370. // vue-composition-api
  8371. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8372. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8373. if (rawBindings) {
  8374. Object.keys(rawBindings).forEach(function (key) {
  8375. ret[key] = vm[key];
  8376. });
  8377. }
  8378. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8379. Object.assign(ret, vm.$mp.data || {});
  8380. if (
  8381. Array.isArray(vm.$options.behaviors) &&
  8382. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8383. ) { //form-field
  8384. ret['name'] = vm.name;
  8385. ret['value'] = vm.value;
  8386. }
  8387. return JSON.parse(JSON.stringify(ret, clearInstance))
  8388. }
  8389. var patch = function(oldVnode, vnode) {
  8390. var this$1 = this;
  8391. if (vnode === null) { //destroy
  8392. return
  8393. }
  8394. if (this.mpType === 'page' || this.mpType === 'component') {
  8395. var mpInstance = this.$scope;
  8396. var data = Object.create(null);
  8397. try {
  8398. data = cloneWithData(this);
  8399. } catch (err) {
  8400. console.error(err);
  8401. }
  8402. data.__webviewId__ = mpInstance.data.__webviewId__;
  8403. var mpData = Object.create(null);
  8404. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8405. mpData[key] = mpInstance.data[key];
  8406. });
  8407. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8408. if (Object.keys(diffData).length) {
  8409. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"自由天空","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8410. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8411. ']差量更新',
  8412. JSON.stringify(diffData));
  8413. }
  8414. this.__next_tick_pending = true;
  8415. mpInstance.setData(diffData, function () {
  8416. this$1.__next_tick_pending = false;
  8417. flushCallbacks$1(this$1);
  8418. });
  8419. } else {
  8420. flushCallbacks$1(this);
  8421. }
  8422. }
  8423. };
  8424. /* */
  8425. function createEmptyRender() {
  8426. }
  8427. function mountComponent$1(
  8428. vm,
  8429. el,
  8430. hydrating
  8431. ) {
  8432. if (!vm.mpType) {//main.js 中的 new Vue
  8433. return vm
  8434. }
  8435. if (vm.mpType === 'app') {
  8436. vm.$options.render = createEmptyRender;
  8437. }
  8438. if (!vm.$options.render) {
  8439. vm.$options.render = createEmptyRender;
  8440. if (true) {
  8441. /* istanbul ignore if */
  8442. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8443. vm.$options.el || el) {
  8444. warn(
  8445. 'You are using the runtime-only build of Vue where the template ' +
  8446. 'compiler is not available. Either pre-compile the templates into ' +
  8447. 'render functions, or use the compiler-included build.',
  8448. vm
  8449. );
  8450. } else {
  8451. warn(
  8452. 'Failed to mount component: template or render function not defined.',
  8453. vm
  8454. );
  8455. }
  8456. }
  8457. }
  8458. !vm._$fallback && callHook(vm, 'beforeMount');
  8459. var updateComponent = function () {
  8460. vm._update(vm._render(), hydrating);
  8461. };
  8462. // we set this to vm._watcher inside the watcher's constructor
  8463. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8464. // component's mounted hook), which relies on vm._watcher being already defined
  8465. new Watcher(vm, updateComponent, noop, {
  8466. before: function before() {
  8467. if (vm._isMounted && !vm._isDestroyed) {
  8468. callHook(vm, 'beforeUpdate');
  8469. }
  8470. }
  8471. }, true /* isRenderWatcher */);
  8472. hydrating = false;
  8473. return vm
  8474. }
  8475. /* */
  8476. function renderClass (
  8477. staticClass,
  8478. dynamicClass
  8479. ) {
  8480. if (isDef(staticClass) || isDef(dynamicClass)) {
  8481. return concat(staticClass, stringifyClass(dynamicClass))
  8482. }
  8483. /* istanbul ignore next */
  8484. return ''
  8485. }
  8486. function concat (a, b) {
  8487. return a ? b ? (a + ' ' + b) : a : (b || '')
  8488. }
  8489. function stringifyClass (value) {
  8490. if (Array.isArray(value)) {
  8491. return stringifyArray(value)
  8492. }
  8493. if (isObject(value)) {
  8494. return stringifyObject(value)
  8495. }
  8496. if (typeof value === 'string') {
  8497. return value
  8498. }
  8499. /* istanbul ignore next */
  8500. return ''
  8501. }
  8502. function stringifyArray (value) {
  8503. var res = '';
  8504. var stringified;
  8505. for (var i = 0, l = value.length; i < l; i++) {
  8506. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8507. if (res) { res += ' '; }
  8508. res += stringified;
  8509. }
  8510. }
  8511. return res
  8512. }
  8513. function stringifyObject (value) {
  8514. var res = '';
  8515. for (var key in value) {
  8516. if (value[key]) {
  8517. if (res) { res += ' '; }
  8518. res += key;
  8519. }
  8520. }
  8521. return res
  8522. }
  8523. /* */
  8524. var parseStyleText = cached(function (cssText) {
  8525. var res = {};
  8526. var listDelimiter = /;(?![^(]*\))/g;
  8527. var propertyDelimiter = /:(.+)/;
  8528. cssText.split(listDelimiter).forEach(function (item) {
  8529. if (item) {
  8530. var tmp = item.split(propertyDelimiter);
  8531. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8532. }
  8533. });
  8534. return res
  8535. });
  8536. // normalize possible array / string values into Object
  8537. function normalizeStyleBinding (bindingStyle) {
  8538. if (Array.isArray(bindingStyle)) {
  8539. return toObject(bindingStyle)
  8540. }
  8541. if (typeof bindingStyle === 'string') {
  8542. return parseStyleText(bindingStyle)
  8543. }
  8544. return bindingStyle
  8545. }
  8546. /* */
  8547. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8548. function getTarget(obj, path) {
  8549. var parts = path.split('.');
  8550. var key = parts[0];
  8551. if (key.indexOf('__$n') === 0) { //number index
  8552. key = parseInt(key.replace('__$n', ''));
  8553. }
  8554. if (parts.length === 1) {
  8555. return obj[key]
  8556. }
  8557. return getTarget(obj[key], parts.slice(1).join('.'))
  8558. }
  8559. function internalMixin(Vue) {
  8560. Vue.config.errorHandler = function(err, vm, info) {
  8561. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8562. console.error(err);
  8563. /* eslint-disable no-undef */
  8564. var app = typeof getApp === 'function' && getApp();
  8565. if (app && app.onError) {
  8566. app.onError(err);
  8567. }
  8568. };
  8569. var oldEmit = Vue.prototype.$emit;
  8570. Vue.prototype.$emit = function(event) {
  8571. if (this.$scope && event) {
  8572. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8573. if (triggerEvent) {
  8574. try {
  8575. triggerEvent.call(this.$scope, event, {
  8576. __args__: toArray(arguments, 1)
  8577. });
  8578. } catch (error) {
  8579. }
  8580. }
  8581. }
  8582. return oldEmit.apply(this, arguments)
  8583. };
  8584. Vue.prototype.$nextTick = function(fn) {
  8585. return nextTick$1(this, fn)
  8586. };
  8587. MP_METHODS.forEach(function (method) {
  8588. Vue.prototype[method] = function(args) {
  8589. if (this.$scope && this.$scope[method]) {
  8590. return this.$scope[method](args)
  8591. }
  8592. // mp-alipay
  8593. if (typeof my === 'undefined') {
  8594. return
  8595. }
  8596. if (method === 'createSelectorQuery') {
  8597. /* eslint-disable no-undef */
  8598. return my.createSelectorQuery(args)
  8599. } else if (method === 'createIntersectionObserver') {
  8600. /* eslint-disable no-undef */
  8601. return my.createIntersectionObserver(args)
  8602. }
  8603. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8604. };
  8605. });
  8606. Vue.prototype.__init_provide = initProvide;
  8607. Vue.prototype.__init_injections = initInjections;
  8608. Vue.prototype.__call_hook = function(hook, args) {
  8609. var vm = this;
  8610. // #7573 disable dep collection when invoking lifecycle hooks
  8611. pushTarget();
  8612. var handlers = vm.$options[hook];
  8613. var info = hook + " hook";
  8614. var ret;
  8615. if (handlers) {
  8616. for (var i = 0, j = handlers.length; i < j; i++) {
  8617. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8618. }
  8619. }
  8620. if (vm._hasHookEvent) {
  8621. vm.$emit('hook:' + hook, args);
  8622. }
  8623. popTarget();
  8624. return ret
  8625. };
  8626. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8627. if (Array.isArray(modifiers)) {
  8628. if (modifiers.indexOf('trim') !== -1) {
  8629. value = value.trim();
  8630. }
  8631. if (modifiers.indexOf('number') !== -1) {
  8632. value = this._n(value);
  8633. }
  8634. }
  8635. if (!target) {
  8636. target = this;
  8637. }
  8638. // 解决动态属性添加
  8639. Vue.set(target, key, value);
  8640. };
  8641. Vue.prototype.__set_sync = function(target, key, value) {
  8642. if (!target) {
  8643. target = this;
  8644. }
  8645. // 解决动态属性添加
  8646. Vue.set(target, key, value);
  8647. };
  8648. Vue.prototype.__get_orig = function(item) {
  8649. if (isPlainObject(item)) {
  8650. return item['$orig'] || item
  8651. }
  8652. return item
  8653. };
  8654. Vue.prototype.__get_value = function(dataPath, target) {
  8655. return getTarget(target || this, dataPath)
  8656. };
  8657. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8658. return renderClass(staticClass, dynamicClass)
  8659. };
  8660. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8661. if (!dynamicStyle && !staticStyle) {
  8662. return ''
  8663. }
  8664. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8665. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8666. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8667. };
  8668. Vue.prototype.__map = function(val, iteratee) {
  8669. //TODO 暂不考虑 string
  8670. var ret, i, l, keys, key;
  8671. if (Array.isArray(val)) {
  8672. ret = new Array(val.length);
  8673. for (i = 0, l = val.length; i < l; i++) {
  8674. ret[i] = iteratee(val[i], i);
  8675. }
  8676. return ret
  8677. } else if (isObject(val)) {
  8678. keys = Object.keys(val);
  8679. ret = Object.create(null);
  8680. for (i = 0, l = keys.length; i < l; i++) {
  8681. key = keys[i];
  8682. ret[key] = iteratee(val[key], key, i);
  8683. }
  8684. return ret
  8685. } else if (typeof val === 'number') {
  8686. ret = new Array(val);
  8687. for (i = 0, l = val; i < l; i++) {
  8688. // 第一个参数暂时仍和小程序一致
  8689. ret[i] = iteratee(i, i);
  8690. }
  8691. return ret
  8692. }
  8693. return []
  8694. };
  8695. }
  8696. /* */
  8697. var LIFECYCLE_HOOKS$1 = [
  8698. //App
  8699. 'onLaunch',
  8700. 'onShow',
  8701. 'onHide',
  8702. 'onUniNViewMessage',
  8703. 'onPageNotFound',
  8704. 'onThemeChange',
  8705. 'onError',
  8706. 'onUnhandledRejection',
  8707. //Page
  8708. 'onInit',
  8709. 'onLoad',
  8710. // 'onShow',
  8711. 'onReady',
  8712. // 'onHide',
  8713. 'onUnload',
  8714. 'onPullDownRefresh',
  8715. 'onReachBottom',
  8716. 'onTabItemTap',
  8717. 'onAddToFavorites',
  8718. 'onShareTimeline',
  8719. 'onShareAppMessage',
  8720. 'onResize',
  8721. 'onPageScroll',
  8722. 'onNavigationBarButtonTap',
  8723. 'onBackPress',
  8724. 'onNavigationBarSearchInputChanged',
  8725. 'onNavigationBarSearchInputConfirmed',
  8726. 'onNavigationBarSearchInputClicked',
  8727. //Component
  8728. // 'onReady', // 兼容旧版本,应该移除该事件
  8729. 'onPageShow',
  8730. 'onPageHide',
  8731. 'onPageResize',
  8732. 'onUploadDouyinVideo'
  8733. ];
  8734. function lifecycleMixin$1(Vue) {
  8735. //fixed vue-class-component
  8736. var oldExtend = Vue.extend;
  8737. Vue.extend = function(extendOptions) {
  8738. extendOptions = extendOptions || {};
  8739. var methods = extendOptions.methods;
  8740. if (methods) {
  8741. Object.keys(methods).forEach(function (methodName) {
  8742. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8743. extendOptions[methodName] = methods[methodName];
  8744. delete methods[methodName];
  8745. }
  8746. });
  8747. }
  8748. return oldExtend.call(this, extendOptions)
  8749. };
  8750. var strategies = Vue.config.optionMergeStrategies;
  8751. var mergeHook = strategies.created;
  8752. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8753. strategies[hook] = mergeHook;
  8754. });
  8755. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8756. }
  8757. /* */
  8758. // install platform patch function
  8759. Vue.prototype.__patch__ = patch;
  8760. // public mount method
  8761. Vue.prototype.$mount = function(
  8762. el ,
  8763. hydrating
  8764. ) {
  8765. return mountComponent$1(this, el, hydrating)
  8766. };
  8767. lifecycleMixin$1(Vue);
  8768. internalMixin(Vue);
  8769. /* */
  8770. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8772. /***/ }),
  8773. /* 26 */
  8774. /*!*****************************************!*\
  8775. !*** D:/project/项目模板/uniapp/pages.json ***!
  8776. \*****************************************/
  8777. /*! no static exports found */
  8778. /***/ (function(module, exports) {
  8779. /***/ }),
  8780. /* 27 */,
  8781. /* 28 */,
  8782. /* 29 */,
  8783. /* 30 */,
  8784. /* 31 */,
  8785. /* 32 */
  8786. /*!**********************************************************************************************************!*\
  8787. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8788. \**********************************************************************************************************/
  8789. /*! exports provided: default */
  8790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8791. "use strict";
  8792. __webpack_require__.r(__webpack_exports__);
  8793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8794. /* globals __VUE_SSR_CONTEXT__ */
  8795. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8796. // This module is a runtime utility for cleaner component module output and will
  8797. // be included in the final webpack user bundle.
  8798. function normalizeComponent (
  8799. scriptExports,
  8800. render,
  8801. staticRenderFns,
  8802. functionalTemplate,
  8803. injectStyles,
  8804. scopeId,
  8805. moduleIdentifier, /* server only */
  8806. shadowMode, /* vue-cli only */
  8807. components, // fixed by xxxxxx auto components
  8808. renderjs // fixed by xxxxxx renderjs
  8809. ) {
  8810. // Vue.extend constructor export interop
  8811. var options = typeof scriptExports === 'function'
  8812. ? scriptExports.options
  8813. : scriptExports
  8814. // fixed by xxxxxx auto components
  8815. if (components) {
  8816. if (!options.components) {
  8817. options.components = {}
  8818. }
  8819. var hasOwn = Object.prototype.hasOwnProperty
  8820. for (var name in components) {
  8821. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8822. options.components[name] = components[name]
  8823. }
  8824. }
  8825. }
  8826. // fixed by xxxxxx renderjs
  8827. if (renderjs) {
  8828. if(typeof renderjs.beforeCreate === 'function'){
  8829. renderjs.beforeCreate = [renderjs.beforeCreate]
  8830. }
  8831. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8832. this[renderjs.__module] = this
  8833. });
  8834. (options.mixins || (options.mixins = [])).push(renderjs)
  8835. }
  8836. // render functions
  8837. if (render) {
  8838. options.render = render
  8839. options.staticRenderFns = staticRenderFns
  8840. options._compiled = true
  8841. }
  8842. // functional template
  8843. if (functionalTemplate) {
  8844. options.functional = true
  8845. }
  8846. // scopedId
  8847. if (scopeId) {
  8848. options._scopeId = 'data-v-' + scopeId
  8849. }
  8850. var hook
  8851. if (moduleIdentifier) { // server build
  8852. hook = function (context) {
  8853. // 2.3 injection
  8854. context =
  8855. context || // cached call
  8856. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8857. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8858. // 2.2 with runInNewContext: true
  8859. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8860. context = __VUE_SSR_CONTEXT__
  8861. }
  8862. // inject component styles
  8863. if (injectStyles) {
  8864. injectStyles.call(this, context)
  8865. }
  8866. // register component module identifier for async chunk inferrence
  8867. if (context && context._registeredComponents) {
  8868. context._registeredComponents.add(moduleIdentifier)
  8869. }
  8870. }
  8871. // used by ssr in case component is cached and beforeCreate
  8872. // never gets called
  8873. options._ssrRegister = hook
  8874. } else if (injectStyles) {
  8875. hook = shadowMode
  8876. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8877. : injectStyles
  8878. }
  8879. if (hook) {
  8880. if (options.functional) {
  8881. // for template-only hot-reload because in that case the render fn doesn't
  8882. // go through the normalizer
  8883. options._injectStyles = hook
  8884. // register for functioal component in vue file
  8885. var originalRender = options.render
  8886. options.render = function renderWithStyleInjection (h, context) {
  8887. hook.call(context)
  8888. return originalRender(h, context)
  8889. }
  8890. } else {
  8891. // inject component registration as beforeCreate hook
  8892. var existing = options.beforeCreate
  8893. options.beforeCreate = existing
  8894. ? [].concat(existing, hook)
  8895. : [hook]
  8896. }
  8897. }
  8898. return {
  8899. exports: scriptExports,
  8900. options: options
  8901. }
  8902. }
  8903. /***/ }),
  8904. /* 33 */
  8905. /*!***********************************************!*\
  8906. !*** D:/project/项目模板/uniapp/common/config.js ***!
  8907. \***********************************************/
  8908. /*! no static exports found */
  8909. /***/ (function(module, exports, __webpack_require__) {
  8910. "use strict";
  8911. /* WEBPACK VAR INJECTION */(function(uni) {
  8912. Object.defineProperty(exports, "__esModule", {
  8913. value: true
  8914. });
  8915. exports.default = void 0;
  8916. var _default = {
  8917. // 接口地址
  8918. serverUrl: "https://broadcast.waityou24.cn",
  8919. //https://broadcast.waityou24.cn http://www.freeskyghw.cn http://192.168.1.144:10102
  8920. fileserverUrl: 'https://broadcast.waityou24.cn',
  8921. wechatUrl: "https://broadcast.waityou24.cn",
  8922. // 设备信息
  8923. system: uni.getSystemInfoSync(),
  8924. // app下载地址
  8925. app_url: 'https://broadcast.waityou24.cn/files/projectadmin/zytk.apk',
  8926. // 节目类型
  8927. pro_type: [
  8928. //
  8929. {
  8930. dict_label: '电视节目',
  8931. dict_value: '0'
  8932. }, {
  8933. dict_label: '电影节目',
  8934. dict_value: '1'
  8935. }]
  8936. // video:标签说明
  8937. // src--视频
  8938. // poster--封面
  8939. // title--全屏顶部标题
  8940. // controls--默认播放控件true
  8941. // show-fullscreen-btn--是否显示全屏按钮true
  8942. // show-play-btn-是否显示底部控制栏播放按钮true
  8943. // show-center-play-btn--是否显示视频中间按钮
  8944. // enable-progress-gesture--是否开启控制进度的手势true
  8945. // show-mute-btn--是否开启静音false
  8946. // enable-play-gesture--是否开启播放手势,双击播放/暂停false
  8947. // vslide-gesture(page-gesture)--非全屏开启亮度/音量false
  8948. // vslide-gesture-in-fullscreen--全屏开启亮度/音量true
  8949. };
  8950. exports.default = _default;
  8951. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  8952. /***/ }),
  8953. /* 34 */
  8954. /*!********************************************!*\
  8955. !*** D:/project/项目模板/uniapp/common/api.js ***!
  8956. \********************************************/
  8957. /*! no static exports found */
  8958. /***/ (function(module, exports, __webpack_require__) {
  8959. "use strict";
  8960. /* WEBPACK VAR INJECTION */(function(uni) {
  8961. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8962. Object.defineProperty(exports, "__esModule", {
  8963. value: true
  8964. });
  8965. exports.requestFile = exports.requestBase = void 0;
  8966. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  8967. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  8968. var _config = _interopRequireDefault(__webpack_require__(/*! ../common/config */ 33));
  8969. var getDomain = function getDomain(uri, type) {
  8970. var serverUrl = _config.default.serverUrl,
  8971. fileserverUrl = _config.default.fileserverUrl,
  8972. wechatUrl = _config.default.wechatUrl;
  8973. // 自定义
  8974. if (uri.includes("http")) return uri;
  8975. // 微信
  8976. if (uri.startsWith("/wechat/api")) return wechatUrl + uri;
  8977. // 地址前缀
  8978. else if (type) return serverUrl + "/projectadmin/".concat(type, "/api/") + uri;
  8979. // 常规
  8980. return serverUrl + "/projectadmin/api/" + uri;
  8981. };
  8982. // 常规请求
  8983. var requestBase = /*#__PURE__*/function () {
  8984. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(uri) {
  8985. var method,
  8986. data,
  8987. type,
  8988. baseUrl,
  8989. header,
  8990. token,
  8991. _args = arguments;
  8992. return _regenerator.default.wrap(function _callee$(_context) {
  8993. while (1) {
  8994. switch (_context.prev = _context.next) {
  8995. case 0:
  8996. method = _args.length > 1 && _args[1] !== undefined ? _args[1] : "GET";
  8997. data = _args.length > 2 ? _args[2] : undefined;
  8998. type = _args.length > 3 ? _args[3] : undefined;
  8999. // 请求地址
  9000. baseUrl = getDomain(uri, type); // 请求头
  9001. header = {}; // 用户信息
  9002. token = "";
  9003. if (token) header.token = token;
  9004. return _context.abrupt("return", new Promise(function (resolve, reject) {
  9005. uni.request({
  9006. url: baseUrl,
  9007. method: method,
  9008. data: data,
  9009. header: header,
  9010. success: function success(res) {
  9011. return toResolve(resolve, res);
  9012. },
  9013. fail: function fail(err) {
  9014. console.log(err);
  9015. }
  9016. });
  9017. }));
  9018. case 8:
  9019. case "end":
  9020. return _context.stop();
  9021. }
  9022. }
  9023. }, _callee);
  9024. }));
  9025. return function requestBase(_x) {
  9026. return _ref.apply(this, arguments);
  9027. };
  9028. }();
  9029. // 图片请求
  9030. exports.requestBase = requestBase;
  9031. var requestFile = function requestFile(uri, method, data, type) {
  9032. // 请求地址
  9033. // let baseUrl = getDomain(uri, type);
  9034. return new Promise(function (resolve, reject) {
  9035. uni.uploadFile({
  9036. url: "".concat(_config.default.fileserverUrl, "/").concat(uri),
  9037. filePath: data,
  9038. name: 'file',
  9039. formData: {},
  9040. success: function success(res) {
  9041. return toResolve(resolve, res);
  9042. },
  9043. error: function error(e) {
  9044. return toReject(reject, e);
  9045. }
  9046. });
  9047. });
  9048. };
  9049. exports.requestFile = requestFile;
  9050. var toResolve = function toResolve(resolve, result) {
  9051. if (result.statusCode === 200) resolve(result.data);
  9052. };
  9053. var toReject = function toReject(reject, result) {
  9054. reject(result);
  9055. };
  9056. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9057. /***/ }),
  9058. /* 35 */
  9059. /*!************************************************************************************************!*\
  9060. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  9061. \************************************************************************************************/
  9062. /*! no static exports found */
  9063. /***/ (function(module, exports, __webpack_require__) {
  9064. // TODO(Babel 8): Remove this file.
  9065. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 36)();
  9066. module.exports = runtime;
  9067. /***/ }),
  9068. /* 36 */
  9069. /*!*******************************************************************!*\
  9070. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  9071. \*******************************************************************/
  9072. /*! no static exports found */
  9073. /***/ (function(module, exports, __webpack_require__) {
  9074. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  9075. function _regeneratorRuntime() {
  9076. "use strict";
  9077. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  9078. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  9079. return exports;
  9080. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9081. var exports = {},
  9082. Op = Object.prototype,
  9083. hasOwn = Op.hasOwnProperty,
  9084. defineProperty = Object.defineProperty || function (obj, key, desc) {
  9085. obj[key] = desc.value;
  9086. },
  9087. $Symbol = "function" == typeof Symbol ? Symbol : {},
  9088. iteratorSymbol = $Symbol.iterator || "@@iterator",
  9089. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  9090. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  9091. function define(obj, key, value) {
  9092. return Object.defineProperty(obj, key, {
  9093. value: value,
  9094. enumerable: !0,
  9095. configurable: !0,
  9096. writable: !0
  9097. }), obj[key];
  9098. }
  9099. try {
  9100. define({}, "");
  9101. } catch (err) {
  9102. define = function define(obj, key, value) {
  9103. return obj[key] = value;
  9104. };
  9105. }
  9106. function wrap(innerFn, outerFn, self, tryLocsList) {
  9107. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  9108. generator = Object.create(protoGenerator.prototype),
  9109. context = new Context(tryLocsList || []);
  9110. return defineProperty(generator, "_invoke", {
  9111. value: makeInvokeMethod(innerFn, self, context)
  9112. }), generator;
  9113. }
  9114. function tryCatch(fn, obj, arg) {
  9115. try {
  9116. return {
  9117. type: "normal",
  9118. arg: fn.call(obj, arg)
  9119. };
  9120. } catch (err) {
  9121. return {
  9122. type: "throw",
  9123. arg: err
  9124. };
  9125. }
  9126. }
  9127. exports.wrap = wrap;
  9128. var ContinueSentinel = {};
  9129. function Generator() {}
  9130. function GeneratorFunction() {}
  9131. function GeneratorFunctionPrototype() {}
  9132. var IteratorPrototype = {};
  9133. define(IteratorPrototype, iteratorSymbol, function () {
  9134. return this;
  9135. });
  9136. var getProto = Object.getPrototypeOf,
  9137. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  9138. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  9139. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  9140. function defineIteratorMethods(prototype) {
  9141. ["next", "throw", "return"].forEach(function (method) {
  9142. define(prototype, method, function (arg) {
  9143. return this._invoke(method, arg);
  9144. });
  9145. });
  9146. }
  9147. function AsyncIterator(generator, PromiseImpl) {
  9148. function invoke(method, arg, resolve, reject) {
  9149. var record = tryCatch(generator[method], generator, arg);
  9150. if ("throw" !== record.type) {
  9151. var result = record.arg,
  9152. value = result.value;
  9153. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  9154. invoke("next", value, resolve, reject);
  9155. }, function (err) {
  9156. invoke("throw", err, resolve, reject);
  9157. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  9158. result.value = unwrapped, resolve(result);
  9159. }, function (error) {
  9160. return invoke("throw", error, resolve, reject);
  9161. });
  9162. }
  9163. reject(record.arg);
  9164. }
  9165. var previousPromise;
  9166. defineProperty(this, "_invoke", {
  9167. value: function value(method, arg) {
  9168. function callInvokeWithMethodAndArg() {
  9169. return new PromiseImpl(function (resolve, reject) {
  9170. invoke(method, arg, resolve, reject);
  9171. });
  9172. }
  9173. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  9174. }
  9175. });
  9176. }
  9177. function makeInvokeMethod(innerFn, self, context) {
  9178. var state = "suspendedStart";
  9179. return function (method, arg) {
  9180. if ("executing" === state) throw new Error("Generator is already running");
  9181. if ("completed" === state) {
  9182. if ("throw" === method) throw arg;
  9183. return doneResult();
  9184. }
  9185. for (context.method = method, context.arg = arg;;) {
  9186. var delegate = context.delegate;
  9187. if (delegate) {
  9188. var delegateResult = maybeInvokeDelegate(delegate, context);
  9189. if (delegateResult) {
  9190. if (delegateResult === ContinueSentinel) continue;
  9191. return delegateResult;
  9192. }
  9193. }
  9194. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  9195. if ("suspendedStart" === state) throw state = "completed", context.arg;
  9196. context.dispatchException(context.arg);
  9197. } else "return" === context.method && context.abrupt("return", context.arg);
  9198. state = "executing";
  9199. var record = tryCatch(innerFn, self, context);
  9200. if ("normal" === record.type) {
  9201. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  9202. return {
  9203. value: record.arg,
  9204. done: context.done
  9205. };
  9206. }
  9207. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  9208. }
  9209. };
  9210. }
  9211. function maybeInvokeDelegate(delegate, context) {
  9212. var methodName = context.method,
  9213. method = delegate.iterator[methodName];
  9214. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  9215. var record = tryCatch(method, delegate.iterator, context.arg);
  9216. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  9217. var info = record.arg;
  9218. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  9219. }
  9220. function pushTryEntry(locs) {
  9221. var entry = {
  9222. tryLoc: locs[0]
  9223. };
  9224. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  9225. }
  9226. function resetTryEntry(entry) {
  9227. var record = entry.completion || {};
  9228. record.type = "normal", delete record.arg, entry.completion = record;
  9229. }
  9230. function Context(tryLocsList) {
  9231. this.tryEntries = [{
  9232. tryLoc: "root"
  9233. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  9234. }
  9235. function values(iterable) {
  9236. if (iterable) {
  9237. var iteratorMethod = iterable[iteratorSymbol];
  9238. if (iteratorMethod) return iteratorMethod.call(iterable);
  9239. if ("function" == typeof iterable.next) return iterable;
  9240. if (!isNaN(iterable.length)) {
  9241. var i = -1,
  9242. next = function next() {
  9243. for (; ++i < iterable.length;) {
  9244. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  9245. }
  9246. return next.value = undefined, next.done = !0, next;
  9247. };
  9248. return next.next = next;
  9249. }
  9250. }
  9251. return {
  9252. next: doneResult
  9253. };
  9254. }
  9255. function doneResult() {
  9256. return {
  9257. value: undefined,
  9258. done: !0
  9259. };
  9260. }
  9261. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  9262. value: GeneratorFunctionPrototype,
  9263. configurable: !0
  9264. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  9265. value: GeneratorFunction,
  9266. configurable: !0
  9267. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  9268. var ctor = "function" == typeof genFun && genFun.constructor;
  9269. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  9270. }, exports.mark = function (genFun) {
  9271. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  9272. }, exports.awrap = function (arg) {
  9273. return {
  9274. __await: arg
  9275. };
  9276. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  9277. return this;
  9278. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  9279. void 0 === PromiseImpl && (PromiseImpl = Promise);
  9280. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  9281. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  9282. return result.done ? result.value : iter.next();
  9283. });
  9284. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  9285. return this;
  9286. }), define(Gp, "toString", function () {
  9287. return "[object Generator]";
  9288. }), exports.keys = function (val) {
  9289. var object = Object(val),
  9290. keys = [];
  9291. for (var key in object) {
  9292. keys.push(key);
  9293. }
  9294. return keys.reverse(), function next() {
  9295. for (; keys.length;) {
  9296. var key = keys.pop();
  9297. if (key in object) return next.value = key, next.done = !1, next;
  9298. }
  9299. return next.done = !0, next;
  9300. };
  9301. }, exports.values = values, Context.prototype = {
  9302. constructor: Context,
  9303. reset: function reset(skipTempReset) {
  9304. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  9305. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  9306. }
  9307. },
  9308. stop: function stop() {
  9309. this.done = !0;
  9310. var rootRecord = this.tryEntries[0].completion;
  9311. if ("throw" === rootRecord.type) throw rootRecord.arg;
  9312. return this.rval;
  9313. },
  9314. dispatchException: function dispatchException(exception) {
  9315. if (this.done) throw exception;
  9316. var context = this;
  9317. function handle(loc, caught) {
  9318. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  9319. }
  9320. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9321. var entry = this.tryEntries[i],
  9322. record = entry.completion;
  9323. if ("root" === entry.tryLoc) return handle("end");
  9324. if (entry.tryLoc <= this.prev) {
  9325. var hasCatch = hasOwn.call(entry, "catchLoc"),
  9326. hasFinally = hasOwn.call(entry, "finallyLoc");
  9327. if (hasCatch && hasFinally) {
  9328. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9329. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9330. } else if (hasCatch) {
  9331. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9332. } else {
  9333. if (!hasFinally) throw new Error("try statement without catch or finally");
  9334. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9335. }
  9336. }
  9337. }
  9338. },
  9339. abrupt: function abrupt(type, arg) {
  9340. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9341. var entry = this.tryEntries[i];
  9342. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  9343. var finallyEntry = entry;
  9344. break;
  9345. }
  9346. }
  9347. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  9348. var record = finallyEntry ? finallyEntry.completion : {};
  9349. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  9350. },
  9351. complete: function complete(record, afterLoc) {
  9352. if ("throw" === record.type) throw record.arg;
  9353. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  9354. },
  9355. finish: function finish(finallyLoc) {
  9356. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9357. var entry = this.tryEntries[i];
  9358. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  9359. }
  9360. },
  9361. "catch": function _catch(tryLoc) {
  9362. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9363. var entry = this.tryEntries[i];
  9364. if (entry.tryLoc === tryLoc) {
  9365. var record = entry.completion;
  9366. if ("throw" === record.type) {
  9367. var thrown = record.arg;
  9368. resetTryEntry(entry);
  9369. }
  9370. return thrown;
  9371. }
  9372. }
  9373. throw new Error("illegal catch attempt");
  9374. },
  9375. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  9376. return this.delegate = {
  9377. iterator: values(iterable),
  9378. resultName: resultName,
  9379. nextLoc: nextLoc
  9380. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  9381. }
  9382. }, exports;
  9383. }
  9384. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9385. /***/ }),
  9386. /* 37 */
  9387. /*!*****************************************************************!*\
  9388. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  9389. \*****************************************************************/
  9390. /*! no static exports found */
  9391. /***/ (function(module, exports) {
  9392. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  9393. try {
  9394. var info = gen[key](arg);
  9395. var value = info.value;
  9396. } catch (error) {
  9397. reject(error);
  9398. return;
  9399. }
  9400. if (info.done) {
  9401. resolve(value);
  9402. } else {
  9403. Promise.resolve(value).then(_next, _throw);
  9404. }
  9405. }
  9406. function _asyncToGenerator(fn) {
  9407. return function () {
  9408. var self = this,
  9409. args = arguments;
  9410. return new Promise(function (resolve, reject) {
  9411. var gen = fn.apply(self, args);
  9412. function _next(value) {
  9413. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  9414. }
  9415. function _throw(err) {
  9416. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  9417. }
  9418. _next(undefined);
  9419. });
  9420. };
  9421. }
  9422. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9423. /***/ }),
  9424. /* 38 */
  9425. /*!**************************************************!*\
  9426. !*** D:/project/项目模板/uniapp/common/weapp-jwt.js ***!
  9427. \**************************************************/
  9428. /*! no static exports found */
  9429. /***/ (function(module, exports, __webpack_require__) {
  9430. "use strict";
  9431. Object.defineProperty(exports, "__esModule", {
  9432. value: true
  9433. });
  9434. var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  9435. var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
  9436. exports.weBtoa = function (string) {
  9437. string = String(string);
  9438. var bitmap,
  9439. a,
  9440. b,
  9441. c,
  9442. result = "",
  9443. i = 0,
  9444. rest = string.length % 3;
  9445. for (; i < string.length;) {
  9446. if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string.charCodeAt(i++)) > 255) throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");
  9447. bitmap = a << 16 | b << 8 | c;
  9448. result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63) + b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
  9449. }
  9450. return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
  9451. };
  9452. exports.weAtob = function (string) {
  9453. string = String(string).replace(/[\t\n\f\r ]+/g, "");
  9454. if (!b64re.test(string)) throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  9455. string += "==".slice(2 - (string.length & 3));
  9456. var bitmap,
  9457. result = "",
  9458. r1,
  9459. r2,
  9460. i = 0;
  9461. for (; i < string.length;) {
  9462. bitmap = b64.indexOf(string.charAt(i++)) << 18 | b64.indexOf(string.charAt(i++)) << 12 | (r1 = b64.indexOf(string.charAt(i++))) << 6 | (r2 = b64.indexOf(string.charAt(i++)));
  9463. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  9464. }
  9465. return result;
  9466. };
  9467. function b64DecodeUnicode(str) {
  9468. return decodeURIComponent(exports.weAtob(str).replace(/(.)/g, function (p) {
  9469. var code = p.charCodeAt(0).toString(16).toUpperCase();
  9470. if (code.length < 2) {
  9471. code = "0" + code;
  9472. }
  9473. return "%" + code;
  9474. }));
  9475. }
  9476. function base64_url_decode(str) {
  9477. var output = str.replace(/-/g, "+").replace(/_/g, "/");
  9478. switch (output.length % 4) {
  9479. case 0:
  9480. break;
  9481. case 2:
  9482. output += "==";
  9483. break;
  9484. case 3:
  9485. output += "=";
  9486. break;
  9487. default:
  9488. throw "Illegal base64url string!";
  9489. }
  9490. try {
  9491. return b64DecodeUnicode(output);
  9492. } catch (err) {
  9493. return exports.weAtob(output);
  9494. }
  9495. }
  9496. function weappJwtDecode(token, options) {
  9497. if (typeof token !== "string") {
  9498. throw "Invalid token specified";
  9499. }
  9500. options = options || {};
  9501. var pos = options.header === true ? 0 : 1;
  9502. try {
  9503. return JSON.parse(base64_url_decode(token.split(".")[pos]));
  9504. } catch (e) {
  9505. throw "Invalid token specified: " + e.message;
  9506. }
  9507. }
  9508. exports.default = weappJwtDecode;
  9509. /***/ }),
  9510. /* 39 */
  9511. /*!************************************************************!*\
  9512. !*** D:/project/项目模板/uniapp/node_modules/moment/moment.js ***!
  9513. \************************************************************/
  9514. /*! no static exports found */
  9515. /***/ (function(module, exports, __webpack_require__) {
  9516. /* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var require;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9517. //! moment.js
  9518. //! version : 2.29.4
  9519. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  9520. //! license : MIT
  9521. //! momentjs.com
  9522. ;
  9523. (function (global, factory) {
  9524. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  9525. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  9526. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  9527. __WEBPACK_AMD_DEFINE_FACTORY__),
  9528. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  9529. })(this, function () {
  9530. 'use strict';
  9531. var hookCallback;
  9532. function hooks() {
  9533. return hookCallback.apply(null, arguments);
  9534. }
  9535. // This is done to register the method called with moment()
  9536. // without creating circular dependencies.
  9537. function setHookCallback(callback) {
  9538. hookCallback = callback;
  9539. }
  9540. function isArray(input) {
  9541. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  9542. }
  9543. function isObject(input) {
  9544. // IE8 will treat undefined and null as object if it wasn't for
  9545. // input != null
  9546. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  9547. }
  9548. function hasOwnProp(a, b) {
  9549. return Object.prototype.hasOwnProperty.call(a, b);
  9550. }
  9551. function isObjectEmpty(obj) {
  9552. if (Object.getOwnPropertyNames) {
  9553. return Object.getOwnPropertyNames(obj).length === 0;
  9554. } else {
  9555. var k;
  9556. for (k in obj) {
  9557. if (hasOwnProp(obj, k)) {
  9558. return false;
  9559. }
  9560. }
  9561. return true;
  9562. }
  9563. }
  9564. function isUndefined(input) {
  9565. return input === void 0;
  9566. }
  9567. function isNumber(input) {
  9568. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  9569. }
  9570. function isDate(input) {
  9571. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  9572. }
  9573. function map(arr, fn) {
  9574. var res = [],
  9575. i,
  9576. arrLen = arr.length;
  9577. for (i = 0; i < arrLen; ++i) {
  9578. res.push(fn(arr[i], i));
  9579. }
  9580. return res;
  9581. }
  9582. function extend(a, b) {
  9583. for (var i in b) {
  9584. if (hasOwnProp(b, i)) {
  9585. a[i] = b[i];
  9586. }
  9587. }
  9588. if (hasOwnProp(b, 'toString')) {
  9589. a.toString = b.toString;
  9590. }
  9591. if (hasOwnProp(b, 'valueOf')) {
  9592. a.valueOf = b.valueOf;
  9593. }
  9594. return a;
  9595. }
  9596. function createUTC(input, format, locale, strict) {
  9597. return createLocalOrUTC(input, format, locale, strict, true).utc();
  9598. }
  9599. function defaultParsingFlags() {
  9600. // We need to deep clone this object.
  9601. return {
  9602. empty: false,
  9603. unusedTokens: [],
  9604. unusedInput: [],
  9605. overflow: -2,
  9606. charsLeftOver: 0,
  9607. nullInput: false,
  9608. invalidEra: null,
  9609. invalidMonth: null,
  9610. invalidFormat: false,
  9611. userInvalidated: false,
  9612. iso: false,
  9613. parsedDateParts: [],
  9614. era: null,
  9615. meridiem: null,
  9616. rfc2822: false,
  9617. weekdayMismatch: false
  9618. };
  9619. }
  9620. function getParsingFlags(m) {
  9621. if (m._pf == null) {
  9622. m._pf = defaultParsingFlags();
  9623. }
  9624. return m._pf;
  9625. }
  9626. var some;
  9627. if (Array.prototype.some) {
  9628. some = Array.prototype.some;
  9629. } else {
  9630. some = function some(fun) {
  9631. var t = Object(this),
  9632. len = t.length >>> 0,
  9633. i;
  9634. for (i = 0; i < len; i++) {
  9635. if (i in t && fun.call(this, t[i], i, t)) {
  9636. return true;
  9637. }
  9638. }
  9639. return false;
  9640. };
  9641. }
  9642. function isValid(m) {
  9643. if (m._isValid == null) {
  9644. var flags = getParsingFlags(m),
  9645. parsedParts = some.call(flags.parsedDateParts, function (i) {
  9646. return i != null;
  9647. }),
  9648. isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
  9649. if (m._strict) {
  9650. isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;
  9651. }
  9652. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  9653. m._isValid = isNowValid;
  9654. } else {
  9655. return isNowValid;
  9656. }
  9657. }
  9658. return m._isValid;
  9659. }
  9660. function createInvalid(flags) {
  9661. var m = createUTC(NaN);
  9662. if (flags != null) {
  9663. extend(getParsingFlags(m), flags);
  9664. } else {
  9665. getParsingFlags(m).userInvalidated = true;
  9666. }
  9667. return m;
  9668. }
  9669. // Plugins that add properties should also add the key here (null value),
  9670. // so we can properly clone ourselves.
  9671. var momentProperties = hooks.momentProperties = [],
  9672. updateInProgress = false;
  9673. function copyConfig(to, from) {
  9674. var i,
  9675. prop,
  9676. val,
  9677. momentPropertiesLen = momentProperties.length;
  9678. if (!isUndefined(from._isAMomentObject)) {
  9679. to._isAMomentObject = from._isAMomentObject;
  9680. }
  9681. if (!isUndefined(from._i)) {
  9682. to._i = from._i;
  9683. }
  9684. if (!isUndefined(from._f)) {
  9685. to._f = from._f;
  9686. }
  9687. if (!isUndefined(from._l)) {
  9688. to._l = from._l;
  9689. }
  9690. if (!isUndefined(from._strict)) {
  9691. to._strict = from._strict;
  9692. }
  9693. if (!isUndefined(from._tzm)) {
  9694. to._tzm = from._tzm;
  9695. }
  9696. if (!isUndefined(from._isUTC)) {
  9697. to._isUTC = from._isUTC;
  9698. }
  9699. if (!isUndefined(from._offset)) {
  9700. to._offset = from._offset;
  9701. }
  9702. if (!isUndefined(from._pf)) {
  9703. to._pf = getParsingFlags(from);
  9704. }
  9705. if (!isUndefined(from._locale)) {
  9706. to._locale = from._locale;
  9707. }
  9708. if (momentPropertiesLen > 0) {
  9709. for (i = 0; i < momentPropertiesLen; i++) {
  9710. prop = momentProperties[i];
  9711. val = from[prop];
  9712. if (!isUndefined(val)) {
  9713. to[prop] = val;
  9714. }
  9715. }
  9716. }
  9717. return to;
  9718. }
  9719. // Moment prototype object
  9720. function Moment(config) {
  9721. copyConfig(this, config);
  9722. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  9723. if (!this.isValid()) {
  9724. this._d = new Date(NaN);
  9725. }
  9726. // Prevent infinite loop in case updateOffset creates new moment
  9727. // objects.
  9728. if (updateInProgress === false) {
  9729. updateInProgress = true;
  9730. hooks.updateOffset(this);
  9731. updateInProgress = false;
  9732. }
  9733. }
  9734. function isMoment(obj) {
  9735. return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
  9736. }
  9737. function warn(msg) {
  9738. if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
  9739. console.warn('Deprecation warning: ' + msg);
  9740. }
  9741. }
  9742. function deprecate(msg, fn) {
  9743. var firstTime = true;
  9744. return extend(function () {
  9745. if (hooks.deprecationHandler != null) {
  9746. hooks.deprecationHandler(null, msg);
  9747. }
  9748. if (firstTime) {
  9749. var args = [],
  9750. arg,
  9751. i,
  9752. key,
  9753. argLen = arguments.length;
  9754. for (i = 0; i < argLen; i++) {
  9755. arg = '';
  9756. if (_typeof(arguments[i]) === 'object') {
  9757. arg += '\n[' + i + '] ';
  9758. for (key in arguments[0]) {
  9759. if (hasOwnProp(arguments[0], key)) {
  9760. arg += key + ': ' + arguments[0][key] + ', ';
  9761. }
  9762. }
  9763. arg = arg.slice(0, -2); // Remove trailing comma and space
  9764. } else {
  9765. arg = arguments[i];
  9766. }
  9767. args.push(arg);
  9768. }
  9769. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack);
  9770. firstTime = false;
  9771. }
  9772. return fn.apply(this, arguments);
  9773. }, fn);
  9774. }
  9775. var deprecations = {};
  9776. function deprecateSimple(name, msg) {
  9777. if (hooks.deprecationHandler != null) {
  9778. hooks.deprecationHandler(name, msg);
  9779. }
  9780. if (!deprecations[name]) {
  9781. warn(msg);
  9782. deprecations[name] = true;
  9783. }
  9784. }
  9785. hooks.suppressDeprecationWarnings = false;
  9786. hooks.deprecationHandler = null;
  9787. function isFunction(input) {
  9788. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  9789. }
  9790. function set(config) {
  9791. var prop, i;
  9792. for (i in config) {
  9793. if (hasOwnProp(config, i)) {
  9794. prop = config[i];
  9795. if (isFunction(prop)) {
  9796. this[i] = prop;
  9797. } else {
  9798. this['_' + i] = prop;
  9799. }
  9800. }
  9801. }
  9802. this._config = config;
  9803. // Lenient ordinal parsing accepts just a number in addition to
  9804. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  9805. // TODO: Remove "ordinalParse" fallback in next major release.
  9806. this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source);
  9807. }
  9808. function mergeConfigs(parentConfig, childConfig) {
  9809. var res = extend({}, parentConfig),
  9810. prop;
  9811. for (prop in childConfig) {
  9812. if (hasOwnProp(childConfig, prop)) {
  9813. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  9814. res[prop] = {};
  9815. extend(res[prop], parentConfig[prop]);
  9816. extend(res[prop], childConfig[prop]);
  9817. } else if (childConfig[prop] != null) {
  9818. res[prop] = childConfig[prop];
  9819. } else {
  9820. delete res[prop];
  9821. }
  9822. }
  9823. }
  9824. for (prop in parentConfig) {
  9825. if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
  9826. // make sure changes to properties don't modify parent config
  9827. res[prop] = extend({}, res[prop]);
  9828. }
  9829. }
  9830. return res;
  9831. }
  9832. function Locale(config) {
  9833. if (config != null) {
  9834. this.set(config);
  9835. }
  9836. }
  9837. var keys;
  9838. if (Object.keys) {
  9839. keys = Object.keys;
  9840. } else {
  9841. keys = function keys(obj) {
  9842. var i,
  9843. res = [];
  9844. for (i in obj) {
  9845. if (hasOwnProp(obj, i)) {
  9846. res.push(i);
  9847. }
  9848. }
  9849. return res;
  9850. };
  9851. }
  9852. var defaultCalendar = {
  9853. sameDay: '[Today at] LT',
  9854. nextDay: '[Tomorrow at] LT',
  9855. nextWeek: 'dddd [at] LT',
  9856. lastDay: '[Yesterday at] LT',
  9857. lastWeek: '[Last] dddd [at] LT',
  9858. sameElse: 'L'
  9859. };
  9860. function calendar(key, mom, now) {
  9861. var output = this._calendar[key] || this._calendar['sameElse'];
  9862. return isFunction(output) ? output.call(mom, now) : output;
  9863. }
  9864. function zeroFill(number, targetLength, forceSign) {
  9865. var absNumber = '' + Math.abs(number),
  9866. zerosToFill = targetLength - absNumber.length,
  9867. sign = number >= 0;
  9868. return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  9869. }
  9870. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  9871. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  9872. formatFunctions = {},
  9873. formatTokenFunctions = {};
  9874. // token: 'M'
  9875. // padded: ['MM', 2]
  9876. // ordinal: 'Mo'
  9877. // callback: function () { this.month() + 1 }
  9878. function addFormatToken(token, padded, ordinal, callback) {
  9879. var func = callback;
  9880. if (typeof callback === 'string') {
  9881. func = function func() {
  9882. return this[callback]();
  9883. };
  9884. }
  9885. if (token) {
  9886. formatTokenFunctions[token] = func;
  9887. }
  9888. if (padded) {
  9889. formatTokenFunctions[padded[0]] = function () {
  9890. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  9891. };
  9892. }
  9893. if (ordinal) {
  9894. formatTokenFunctions[ordinal] = function () {
  9895. return this.localeData().ordinal(func.apply(this, arguments), token);
  9896. };
  9897. }
  9898. }
  9899. function removeFormattingTokens(input) {
  9900. if (input.match(/\[[\s\S]/)) {
  9901. return input.replace(/^\[|\]$/g, '');
  9902. }
  9903. return input.replace(/\\/g, '');
  9904. }
  9905. function makeFormatFunction(format) {
  9906. var array = format.match(formattingTokens),
  9907. i,
  9908. length;
  9909. for (i = 0, length = array.length; i < length; i++) {
  9910. if (formatTokenFunctions[array[i]]) {
  9911. array[i] = formatTokenFunctions[array[i]];
  9912. } else {
  9913. array[i] = removeFormattingTokens(array[i]);
  9914. }
  9915. }
  9916. return function (mom) {
  9917. var output = '',
  9918. i;
  9919. for (i = 0; i < length; i++) {
  9920. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  9921. }
  9922. return output;
  9923. };
  9924. }
  9925. // format date using native date object
  9926. function formatMoment(m, format) {
  9927. if (!m.isValid()) {
  9928. return m.localeData().invalidDate();
  9929. }
  9930. format = expandFormat(format, m.localeData());
  9931. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  9932. return formatFunctions[format](m);
  9933. }
  9934. function expandFormat(format, locale) {
  9935. var i = 5;
  9936. function replaceLongDateFormatTokens(input) {
  9937. return locale.longDateFormat(input) || input;
  9938. }
  9939. localFormattingTokens.lastIndex = 0;
  9940. while (i >= 0 && localFormattingTokens.test(format)) {
  9941. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  9942. localFormattingTokens.lastIndex = 0;
  9943. i -= 1;
  9944. }
  9945. return format;
  9946. }
  9947. var defaultLongDateFormat = {
  9948. LTS: 'h:mm:ss A',
  9949. LT: 'h:mm A',
  9950. L: 'MM/DD/YYYY',
  9951. LL: 'MMMM D, YYYY',
  9952. LLL: 'MMMM D, YYYY h:mm A',
  9953. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  9954. };
  9955. function longDateFormat(key) {
  9956. var format = this._longDateFormat[key],
  9957. formatUpper = this._longDateFormat[key.toUpperCase()];
  9958. if (format || !formatUpper) {
  9959. return format;
  9960. }
  9961. this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function (tok) {
  9962. if (tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd') {
  9963. return tok.slice(1);
  9964. }
  9965. return tok;
  9966. }).join('');
  9967. return this._longDateFormat[key];
  9968. }
  9969. var defaultInvalidDate = 'Invalid date';
  9970. function invalidDate() {
  9971. return this._invalidDate;
  9972. }
  9973. var defaultOrdinal = '%d',
  9974. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  9975. function ordinal(number) {
  9976. return this._ordinal.replace('%d', number);
  9977. }
  9978. var defaultRelativeTime = {
  9979. future: 'in %s',
  9980. past: '%s ago',
  9981. s: 'a few seconds',
  9982. ss: '%d seconds',
  9983. m: 'a minute',
  9984. mm: '%d minutes',
  9985. h: 'an hour',
  9986. hh: '%d hours',
  9987. d: 'a day',
  9988. dd: '%d days',
  9989. w: 'a week',
  9990. ww: '%d weeks',
  9991. M: 'a month',
  9992. MM: '%d months',
  9993. y: 'a year',
  9994. yy: '%d years'
  9995. };
  9996. function relativeTime(number, withoutSuffix, string, isFuture) {
  9997. var output = this._relativeTime[string];
  9998. return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
  9999. }
  10000. function pastFuture(diff, output) {
  10001. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  10002. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  10003. }
  10004. var aliases = {};
  10005. function addUnitAlias(unit, shorthand) {
  10006. var lowerCase = unit.toLowerCase();
  10007. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  10008. }
  10009. function normalizeUnits(units) {
  10010. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  10011. }
  10012. function normalizeObjectUnits(inputObject) {
  10013. var normalizedInput = {},
  10014. normalizedProp,
  10015. prop;
  10016. for (prop in inputObject) {
  10017. if (hasOwnProp(inputObject, prop)) {
  10018. normalizedProp = normalizeUnits(prop);
  10019. if (normalizedProp) {
  10020. normalizedInput[normalizedProp] = inputObject[prop];
  10021. }
  10022. }
  10023. }
  10024. return normalizedInput;
  10025. }
  10026. var priorities = {};
  10027. function addUnitPriority(unit, priority) {
  10028. priorities[unit] = priority;
  10029. }
  10030. function getPrioritizedUnits(unitsObj) {
  10031. var units = [],
  10032. u;
  10033. for (u in unitsObj) {
  10034. if (hasOwnProp(unitsObj, u)) {
  10035. units.push({
  10036. unit: u,
  10037. priority: priorities[u]
  10038. });
  10039. }
  10040. }
  10041. units.sort(function (a, b) {
  10042. return a.priority - b.priority;
  10043. });
  10044. return units;
  10045. }
  10046. function isLeapYear(year) {
  10047. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  10048. }
  10049. function absFloor(number) {
  10050. if (number < 0) {
  10051. // -0 -> 0
  10052. return Math.ceil(number) || 0;
  10053. } else {
  10054. return Math.floor(number);
  10055. }
  10056. }
  10057. function toInt(argumentForCoercion) {
  10058. var coercedNumber = +argumentForCoercion,
  10059. value = 0;
  10060. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  10061. value = absFloor(coercedNumber);
  10062. }
  10063. return value;
  10064. }
  10065. function makeGetSet(unit, keepTime) {
  10066. return function (value) {
  10067. if (value != null) {
  10068. set$1(this, unit, value);
  10069. hooks.updateOffset(this, keepTime);
  10070. return this;
  10071. } else {
  10072. return get(this, unit);
  10073. }
  10074. };
  10075. }
  10076. function get(mom, unit) {
  10077. return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  10078. }
  10079. function set$1(mom, unit, value) {
  10080. if (mom.isValid() && !isNaN(value)) {
  10081. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  10082. value = toInt(value);
  10083. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  10084. } else {
  10085. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  10086. }
  10087. }
  10088. }
  10089. // MOMENTS
  10090. function stringGet(units) {
  10091. units = normalizeUnits(units);
  10092. if (isFunction(this[units])) {
  10093. return this[units]();
  10094. }
  10095. return this;
  10096. }
  10097. function stringSet(units, value) {
  10098. if (_typeof(units) === 'object') {
  10099. units = normalizeObjectUnits(units);
  10100. var prioritized = getPrioritizedUnits(units),
  10101. i,
  10102. prioritizedLen = prioritized.length;
  10103. for (i = 0; i < prioritizedLen; i++) {
  10104. this[prioritized[i].unit](units[prioritized[i].unit]);
  10105. }
  10106. } else {
  10107. units = normalizeUnits(units);
  10108. if (isFunction(this[units])) {
  10109. return this[units](value);
  10110. }
  10111. }
  10112. return this;
  10113. }
  10114. var match1 = /\d/,
  10115. // 0 - 9
  10116. match2 = /\d\d/,
  10117. // 00 - 99
  10118. match3 = /\d{3}/,
  10119. // 000 - 999
  10120. match4 = /\d{4}/,
  10121. // 0000 - 9999
  10122. match6 = /[+-]?\d{6}/,
  10123. // -999999 - 999999
  10124. match1to2 = /\d\d?/,
  10125. // 0 - 99
  10126. match3to4 = /\d\d\d\d?/,
  10127. // 999 - 9999
  10128. match5to6 = /\d\d\d\d\d\d?/,
  10129. // 99999 - 999999
  10130. match1to3 = /\d{1,3}/,
  10131. // 0 - 999
  10132. match1to4 = /\d{1,4}/,
  10133. // 0 - 9999
  10134. match1to6 = /[+-]?\d{1,6}/,
  10135. // -999999 - 999999
  10136. matchUnsigned = /\d+/,
  10137. // 0 - inf
  10138. matchSigned = /[+-]?\d+/,
  10139. // -inf - inf
  10140. matchOffset = /Z|[+-]\d\d:?\d\d/gi,
  10141. // +00:00 -00:00 +0000 -0000 or Z
  10142. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi,
  10143. // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  10144. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/,
  10145. // 123456789 123456789.123
  10146. // any word (or two) characters or numbers including two/three word month in arabic.
  10147. // includes scottish gaelic two word and hyphenated months
  10148. matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  10149. regexes;
  10150. regexes = {};
  10151. function addRegexToken(token, regex, strictRegex) {
  10152. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  10153. return isStrict && strictRegex ? strictRegex : regex;
  10154. };
  10155. }
  10156. function getParseRegexForToken(token, config) {
  10157. if (!hasOwnProp(regexes, token)) {
  10158. return new RegExp(unescapeFormat(token));
  10159. }
  10160. return regexes[token](config._strict, config._locale);
  10161. }
  10162. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  10163. function unescapeFormat(s) {
  10164. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  10165. return p1 || p2 || p3 || p4;
  10166. }));
  10167. }
  10168. function regexEscape(s) {
  10169. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  10170. }
  10171. var tokens = {};
  10172. function addParseToken(token, callback) {
  10173. var i,
  10174. func = callback,
  10175. tokenLen;
  10176. if (typeof token === 'string') {
  10177. token = [token];
  10178. }
  10179. if (isNumber(callback)) {
  10180. func = function func(input, array) {
  10181. array[callback] = toInt(input);
  10182. };
  10183. }
  10184. tokenLen = token.length;
  10185. for (i = 0; i < tokenLen; i++) {
  10186. tokens[token[i]] = func;
  10187. }
  10188. }
  10189. function addWeekParseToken(token, callback) {
  10190. addParseToken(token, function (input, array, config, token) {
  10191. config._w = config._w || {};
  10192. callback(input, config._w, config, token);
  10193. });
  10194. }
  10195. function addTimeToArrayFromToken(token, input, config) {
  10196. if (input != null && hasOwnProp(tokens, token)) {
  10197. tokens[token](input, config._a, config, token);
  10198. }
  10199. }
  10200. var YEAR = 0,
  10201. MONTH = 1,
  10202. DATE = 2,
  10203. HOUR = 3,
  10204. MINUTE = 4,
  10205. SECOND = 5,
  10206. MILLISECOND = 6,
  10207. WEEK = 7,
  10208. WEEKDAY = 8;
  10209. function mod(n, x) {
  10210. return (n % x + x) % x;
  10211. }
  10212. var indexOf;
  10213. if (Array.prototype.indexOf) {
  10214. indexOf = Array.prototype.indexOf;
  10215. } else {
  10216. indexOf = function indexOf(o) {
  10217. // I know
  10218. var i;
  10219. for (i = 0; i < this.length; ++i) {
  10220. if (this[i] === o) {
  10221. return i;
  10222. }
  10223. }
  10224. return -1;
  10225. };
  10226. }
  10227. function daysInMonth(year, month) {
  10228. if (isNaN(year) || isNaN(month)) {
  10229. return NaN;
  10230. }
  10231. var modMonth = mod(month, 12);
  10232. year += (month - modMonth) / 12;
  10233. return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
  10234. }
  10235. // FORMATTING
  10236. addFormatToken('M', ['MM', 2], 'Mo', function () {
  10237. return this.month() + 1;
  10238. });
  10239. addFormatToken('MMM', 0, 0, function (format) {
  10240. return this.localeData().monthsShort(this, format);
  10241. });
  10242. addFormatToken('MMMM', 0, 0, function (format) {
  10243. return this.localeData().months(this, format);
  10244. });
  10245. // ALIASES
  10246. addUnitAlias('month', 'M');
  10247. // PRIORITY
  10248. addUnitPriority('month', 8);
  10249. // PARSING
  10250. addRegexToken('M', match1to2);
  10251. addRegexToken('MM', match1to2, match2);
  10252. addRegexToken('MMM', function (isStrict, locale) {
  10253. return locale.monthsShortRegex(isStrict);
  10254. });
  10255. addRegexToken('MMMM', function (isStrict, locale) {
  10256. return locale.monthsRegex(isStrict);
  10257. });
  10258. addParseToken(['M', 'MM'], function (input, array) {
  10259. array[MONTH] = toInt(input) - 1;
  10260. });
  10261. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  10262. var month = config._locale.monthsParse(input, token, config._strict);
  10263. // if we didn't find a month name, mark the date as invalid.
  10264. if (month != null) {
  10265. array[MONTH] = month;
  10266. } else {
  10267. getParsingFlags(config).invalidMonth = input;
  10268. }
  10269. });
  10270. // LOCALES
  10271. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  10272. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  10273. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  10274. defaultMonthsShortRegex = matchWord,
  10275. defaultMonthsRegex = matchWord;
  10276. function localeMonths(m, format) {
  10277. if (!m) {
  10278. return isArray(this._months) ? this._months : this._months['standalone'];
  10279. }
  10280. return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  10281. }
  10282. function localeMonthsShort(m, format) {
  10283. if (!m) {
  10284. return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];
  10285. }
  10286. return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  10287. }
  10288. function handleStrictParse(monthName, format, strict) {
  10289. var i,
  10290. ii,
  10291. mom,
  10292. llc = monthName.toLocaleLowerCase();
  10293. if (!this._monthsParse) {
  10294. // this is not used
  10295. this._monthsParse = [];
  10296. this._longMonthsParse = [];
  10297. this._shortMonthsParse = [];
  10298. for (i = 0; i < 12; ++i) {
  10299. mom = createUTC([2000, i]);
  10300. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  10301. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  10302. }
  10303. }
  10304. if (strict) {
  10305. if (format === 'MMM') {
  10306. ii = indexOf.call(this._shortMonthsParse, llc);
  10307. return ii !== -1 ? ii : null;
  10308. } else {
  10309. ii = indexOf.call(this._longMonthsParse, llc);
  10310. return ii !== -1 ? ii : null;
  10311. }
  10312. } else {
  10313. if (format === 'MMM') {
  10314. ii = indexOf.call(this._shortMonthsParse, llc);
  10315. if (ii !== -1) {
  10316. return ii;
  10317. }
  10318. ii = indexOf.call(this._longMonthsParse, llc);
  10319. return ii !== -1 ? ii : null;
  10320. } else {
  10321. ii = indexOf.call(this._longMonthsParse, llc);
  10322. if (ii !== -1) {
  10323. return ii;
  10324. }
  10325. ii = indexOf.call(this._shortMonthsParse, llc);
  10326. return ii !== -1 ? ii : null;
  10327. }
  10328. }
  10329. }
  10330. function localeMonthsParse(monthName, format, strict) {
  10331. var i, mom, regex;
  10332. if (this._monthsParseExact) {
  10333. return handleStrictParse.call(this, monthName, format, strict);
  10334. }
  10335. if (!this._monthsParse) {
  10336. this._monthsParse = [];
  10337. this._longMonthsParse = [];
  10338. this._shortMonthsParse = [];
  10339. }
  10340. // TODO: add sorting
  10341. // Sorting makes sure if one month (or abbr) is a prefix of another
  10342. // see sorting in computeMonthsParse
  10343. for (i = 0; i < 12; i++) {
  10344. // make the regex if we don't have it already
  10345. mom = createUTC([2000, i]);
  10346. if (strict && !this._longMonthsParse[i]) {
  10347. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  10348. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  10349. }
  10350. if (!strict && !this._monthsParse[i]) {
  10351. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  10352. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10353. }
  10354. // test the regex
  10355. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  10356. return i;
  10357. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  10358. return i;
  10359. } else if (!strict && this._monthsParse[i].test(monthName)) {
  10360. return i;
  10361. }
  10362. }
  10363. }
  10364. // MOMENTS
  10365. function setMonth(mom, value) {
  10366. var dayOfMonth;
  10367. if (!mom.isValid()) {
  10368. // No op
  10369. return mom;
  10370. }
  10371. if (typeof value === 'string') {
  10372. if (/^\d+$/.test(value)) {
  10373. value = toInt(value);
  10374. } else {
  10375. value = mom.localeData().monthsParse(value);
  10376. // TODO: Another silent failure?
  10377. if (!isNumber(value)) {
  10378. return mom;
  10379. }
  10380. }
  10381. }
  10382. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  10383. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  10384. return mom;
  10385. }
  10386. function getSetMonth(value) {
  10387. if (value != null) {
  10388. setMonth(this, value);
  10389. hooks.updateOffset(this, true);
  10390. return this;
  10391. } else {
  10392. return get(this, 'Month');
  10393. }
  10394. }
  10395. function getDaysInMonth() {
  10396. return daysInMonth(this.year(), this.month());
  10397. }
  10398. function monthsShortRegex(isStrict) {
  10399. if (this._monthsParseExact) {
  10400. if (!hasOwnProp(this, '_monthsRegex')) {
  10401. computeMonthsParse.call(this);
  10402. }
  10403. if (isStrict) {
  10404. return this._monthsShortStrictRegex;
  10405. } else {
  10406. return this._monthsShortRegex;
  10407. }
  10408. } else {
  10409. if (!hasOwnProp(this, '_monthsShortRegex')) {
  10410. this._monthsShortRegex = defaultMonthsShortRegex;
  10411. }
  10412. return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
  10413. }
  10414. }
  10415. function monthsRegex(isStrict) {
  10416. if (this._monthsParseExact) {
  10417. if (!hasOwnProp(this, '_monthsRegex')) {
  10418. computeMonthsParse.call(this);
  10419. }
  10420. if (isStrict) {
  10421. return this._monthsStrictRegex;
  10422. } else {
  10423. return this._monthsRegex;
  10424. }
  10425. } else {
  10426. if (!hasOwnProp(this, '_monthsRegex')) {
  10427. this._monthsRegex = defaultMonthsRegex;
  10428. }
  10429. return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
  10430. }
  10431. }
  10432. function computeMonthsParse() {
  10433. function cmpLenRev(a, b) {
  10434. return b.length - a.length;
  10435. }
  10436. var shortPieces = [],
  10437. longPieces = [],
  10438. mixedPieces = [],
  10439. i,
  10440. mom;
  10441. for (i = 0; i < 12; i++) {
  10442. // make the regex if we don't have it already
  10443. mom = createUTC([2000, i]);
  10444. shortPieces.push(this.monthsShort(mom, ''));
  10445. longPieces.push(this.months(mom, ''));
  10446. mixedPieces.push(this.months(mom, ''));
  10447. mixedPieces.push(this.monthsShort(mom, ''));
  10448. }
  10449. // Sorting makes sure if one month (or abbr) is a prefix of another it
  10450. // will match the longer piece.
  10451. shortPieces.sort(cmpLenRev);
  10452. longPieces.sort(cmpLenRev);
  10453. mixedPieces.sort(cmpLenRev);
  10454. for (i = 0; i < 12; i++) {
  10455. shortPieces[i] = regexEscape(shortPieces[i]);
  10456. longPieces[i] = regexEscape(longPieces[i]);
  10457. }
  10458. for (i = 0; i < 24; i++) {
  10459. mixedPieces[i] = regexEscape(mixedPieces[i]);
  10460. }
  10461. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10462. this._monthsShortRegex = this._monthsRegex;
  10463. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  10464. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  10465. }
  10466. // FORMATTING
  10467. addFormatToken('Y', 0, 0, function () {
  10468. var y = this.year();
  10469. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  10470. });
  10471. addFormatToken(0, ['YY', 2], 0, function () {
  10472. return this.year() % 100;
  10473. });
  10474. addFormatToken(0, ['YYYY', 4], 0, 'year');
  10475. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  10476. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  10477. // ALIASES
  10478. addUnitAlias('year', 'y');
  10479. // PRIORITIES
  10480. addUnitPriority('year', 1);
  10481. // PARSING
  10482. addRegexToken('Y', matchSigned);
  10483. addRegexToken('YY', match1to2, match2);
  10484. addRegexToken('YYYY', match1to4, match4);
  10485. addRegexToken('YYYYY', match1to6, match6);
  10486. addRegexToken('YYYYYY', match1to6, match6);
  10487. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  10488. addParseToken('YYYY', function (input, array) {
  10489. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  10490. });
  10491. addParseToken('YY', function (input, array) {
  10492. array[YEAR] = hooks.parseTwoDigitYear(input);
  10493. });
  10494. addParseToken('Y', function (input, array) {
  10495. array[YEAR] = parseInt(input, 10);
  10496. });
  10497. // HELPERS
  10498. function daysInYear(year) {
  10499. return isLeapYear(year) ? 366 : 365;
  10500. }
  10501. // HOOKS
  10502. hooks.parseTwoDigitYear = function (input) {
  10503. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  10504. };
  10505. // MOMENTS
  10506. var getSetYear = makeGetSet('FullYear', true);
  10507. function getIsLeapYear() {
  10508. return isLeapYear(this.year());
  10509. }
  10510. function createDate(y, m, d, h, M, s, ms) {
  10511. // can't just apply() to create a date:
  10512. // https://stackoverflow.com/q/181348
  10513. var date;
  10514. // the date constructor remaps years 0-99 to 1900-1999
  10515. if (y < 100 && y >= 0) {
  10516. // preserve leap years using a full 400 year cycle, then reset
  10517. date = new Date(y + 400, m, d, h, M, s, ms);
  10518. if (isFinite(date.getFullYear())) {
  10519. date.setFullYear(y);
  10520. }
  10521. } else {
  10522. date = new Date(y, m, d, h, M, s, ms);
  10523. }
  10524. return date;
  10525. }
  10526. function createUTCDate(y) {
  10527. var date, args;
  10528. // the Date.UTC function remaps years 0-99 to 1900-1999
  10529. if (y < 100 && y >= 0) {
  10530. args = Array.prototype.slice.call(arguments);
  10531. // preserve leap years using a full 400 year cycle, then reset
  10532. args[0] = y + 400;
  10533. date = new Date(Date.UTC.apply(null, args));
  10534. if (isFinite(date.getUTCFullYear())) {
  10535. date.setUTCFullYear(y);
  10536. }
  10537. } else {
  10538. date = new Date(Date.UTC.apply(null, arguments));
  10539. }
  10540. return date;
  10541. }
  10542. // start-of-first-week - start-of-year
  10543. function firstWeekOffset(year, dow, doy) {
  10544. var
  10545. // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  10546. fwd = 7 + dow - doy,
  10547. // first-week day local weekday -- which local weekday is fwd
  10548. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  10549. return -fwdlw + fwd - 1;
  10550. }
  10551. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  10552. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  10553. var localWeekday = (7 + weekday - dow) % 7,
  10554. weekOffset = firstWeekOffset(year, dow, doy),
  10555. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  10556. resYear,
  10557. resDayOfYear;
  10558. if (dayOfYear <= 0) {
  10559. resYear = year - 1;
  10560. resDayOfYear = daysInYear(resYear) + dayOfYear;
  10561. } else if (dayOfYear > daysInYear(year)) {
  10562. resYear = year + 1;
  10563. resDayOfYear = dayOfYear - daysInYear(year);
  10564. } else {
  10565. resYear = year;
  10566. resDayOfYear = dayOfYear;
  10567. }
  10568. return {
  10569. year: resYear,
  10570. dayOfYear: resDayOfYear
  10571. };
  10572. }
  10573. function weekOfYear(mom, dow, doy) {
  10574. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  10575. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  10576. resWeek,
  10577. resYear;
  10578. if (week < 1) {
  10579. resYear = mom.year() - 1;
  10580. resWeek = week + weeksInYear(resYear, dow, doy);
  10581. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  10582. resWeek = week - weeksInYear(mom.year(), dow, doy);
  10583. resYear = mom.year() + 1;
  10584. } else {
  10585. resYear = mom.year();
  10586. resWeek = week;
  10587. }
  10588. return {
  10589. week: resWeek,
  10590. year: resYear
  10591. };
  10592. }
  10593. function weeksInYear(year, dow, doy) {
  10594. var weekOffset = firstWeekOffset(year, dow, doy),
  10595. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  10596. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  10597. }
  10598. // FORMATTING
  10599. addFormatToken('w', ['ww', 2], 'wo', 'week');
  10600. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  10601. // ALIASES
  10602. addUnitAlias('week', 'w');
  10603. addUnitAlias('isoWeek', 'W');
  10604. // PRIORITIES
  10605. addUnitPriority('week', 5);
  10606. addUnitPriority('isoWeek', 5);
  10607. // PARSING
  10608. addRegexToken('w', match1to2);
  10609. addRegexToken('ww', match1to2, match2);
  10610. addRegexToken('W', match1to2);
  10611. addRegexToken('WW', match1to2, match2);
  10612. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  10613. week[token.substr(0, 1)] = toInt(input);
  10614. });
  10615. // HELPERS
  10616. // LOCALES
  10617. function localeWeek(mom) {
  10618. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  10619. }
  10620. var defaultLocaleWeek = {
  10621. dow: 0,
  10622. // Sunday is the first day of the week.
  10623. doy: 6 // The week that contains Jan 6th is the first week of the year.
  10624. };
  10625. function localeFirstDayOfWeek() {
  10626. return this._week.dow;
  10627. }
  10628. function localeFirstDayOfYear() {
  10629. return this._week.doy;
  10630. }
  10631. // MOMENTS
  10632. function getSetWeek(input) {
  10633. var week = this.localeData().week(this);
  10634. return input == null ? week : this.add((input - week) * 7, 'd');
  10635. }
  10636. function getSetISOWeek(input) {
  10637. var week = weekOfYear(this, 1, 4).week;
  10638. return input == null ? week : this.add((input - week) * 7, 'd');
  10639. }
  10640. // FORMATTING
  10641. addFormatToken('d', 0, 'do', 'day');
  10642. addFormatToken('dd', 0, 0, function (format) {
  10643. return this.localeData().weekdaysMin(this, format);
  10644. });
  10645. addFormatToken('ddd', 0, 0, function (format) {
  10646. return this.localeData().weekdaysShort(this, format);
  10647. });
  10648. addFormatToken('dddd', 0, 0, function (format) {
  10649. return this.localeData().weekdays(this, format);
  10650. });
  10651. addFormatToken('e', 0, 0, 'weekday');
  10652. addFormatToken('E', 0, 0, 'isoWeekday');
  10653. // ALIASES
  10654. addUnitAlias('day', 'd');
  10655. addUnitAlias('weekday', 'e');
  10656. addUnitAlias('isoWeekday', 'E');
  10657. // PRIORITY
  10658. addUnitPriority('day', 11);
  10659. addUnitPriority('weekday', 11);
  10660. addUnitPriority('isoWeekday', 11);
  10661. // PARSING
  10662. addRegexToken('d', match1to2);
  10663. addRegexToken('e', match1to2);
  10664. addRegexToken('E', match1to2);
  10665. addRegexToken('dd', function (isStrict, locale) {
  10666. return locale.weekdaysMinRegex(isStrict);
  10667. });
  10668. addRegexToken('ddd', function (isStrict, locale) {
  10669. return locale.weekdaysShortRegex(isStrict);
  10670. });
  10671. addRegexToken('dddd', function (isStrict, locale) {
  10672. return locale.weekdaysRegex(isStrict);
  10673. });
  10674. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  10675. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  10676. // if we didn't get a weekday name, mark the date as invalid
  10677. if (weekday != null) {
  10678. week.d = weekday;
  10679. } else {
  10680. getParsingFlags(config).invalidWeekday = input;
  10681. }
  10682. });
  10683. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  10684. week[token] = toInt(input);
  10685. });
  10686. // HELPERS
  10687. function parseWeekday(input, locale) {
  10688. if (typeof input !== 'string') {
  10689. return input;
  10690. }
  10691. if (!isNaN(input)) {
  10692. return parseInt(input, 10);
  10693. }
  10694. input = locale.weekdaysParse(input);
  10695. if (typeof input === 'number') {
  10696. return input;
  10697. }
  10698. return null;
  10699. }
  10700. function parseIsoWeekday(input, locale) {
  10701. if (typeof input === 'string') {
  10702. return locale.weekdaysParse(input) % 7 || 7;
  10703. }
  10704. return isNaN(input) ? null : input;
  10705. }
  10706. // LOCALES
  10707. function shiftWeekdays(ws, n) {
  10708. return ws.slice(n, 7).concat(ws.slice(0, n));
  10709. }
  10710. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  10711. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  10712. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  10713. defaultWeekdaysRegex = matchWord,
  10714. defaultWeekdaysShortRegex = matchWord,
  10715. defaultWeekdaysMinRegex = matchWord;
  10716. function localeWeekdays(m, format) {
  10717. var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];
  10718. return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
  10719. }
  10720. function localeWeekdaysShort(m) {
  10721. return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  10722. }
  10723. function localeWeekdaysMin(m) {
  10724. return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  10725. }
  10726. function handleStrictParse$1(weekdayName, format, strict) {
  10727. var i,
  10728. ii,
  10729. mom,
  10730. llc = weekdayName.toLocaleLowerCase();
  10731. if (!this._weekdaysParse) {
  10732. this._weekdaysParse = [];
  10733. this._shortWeekdaysParse = [];
  10734. this._minWeekdaysParse = [];
  10735. for (i = 0; i < 7; ++i) {
  10736. mom = createUTC([2000, 1]).day(i);
  10737. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  10738. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  10739. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  10740. }
  10741. }
  10742. if (strict) {
  10743. if (format === 'dddd') {
  10744. ii = indexOf.call(this._weekdaysParse, llc);
  10745. return ii !== -1 ? ii : null;
  10746. } else if (format === 'ddd') {
  10747. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10748. return ii !== -1 ? ii : null;
  10749. } else {
  10750. ii = indexOf.call(this._minWeekdaysParse, llc);
  10751. return ii !== -1 ? ii : null;
  10752. }
  10753. } else {
  10754. if (format === 'dddd') {
  10755. ii = indexOf.call(this._weekdaysParse, llc);
  10756. if (ii !== -1) {
  10757. return ii;
  10758. }
  10759. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10760. if (ii !== -1) {
  10761. return ii;
  10762. }
  10763. ii = indexOf.call(this._minWeekdaysParse, llc);
  10764. return ii !== -1 ? ii : null;
  10765. } else if (format === 'ddd') {
  10766. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10767. if (ii !== -1) {
  10768. return ii;
  10769. }
  10770. ii = indexOf.call(this._weekdaysParse, llc);
  10771. if (ii !== -1) {
  10772. return ii;
  10773. }
  10774. ii = indexOf.call(this._minWeekdaysParse, llc);
  10775. return ii !== -1 ? ii : null;
  10776. } else {
  10777. ii = indexOf.call(this._minWeekdaysParse, llc);
  10778. if (ii !== -1) {
  10779. return ii;
  10780. }
  10781. ii = indexOf.call(this._weekdaysParse, llc);
  10782. if (ii !== -1) {
  10783. return ii;
  10784. }
  10785. ii = indexOf.call(this._shortWeekdaysParse, llc);
  10786. return ii !== -1 ? ii : null;
  10787. }
  10788. }
  10789. }
  10790. function localeWeekdaysParse(weekdayName, format, strict) {
  10791. var i, mom, regex;
  10792. if (this._weekdaysParseExact) {
  10793. return handleStrictParse$1.call(this, weekdayName, format, strict);
  10794. }
  10795. if (!this._weekdaysParse) {
  10796. this._weekdaysParse = [];
  10797. this._minWeekdaysParse = [];
  10798. this._shortWeekdaysParse = [];
  10799. this._fullWeekdaysParse = [];
  10800. }
  10801. for (i = 0; i < 7; i++) {
  10802. // make the regex if we don't have it already
  10803. mom = createUTC([2000, 1]).day(i);
  10804. if (strict && !this._fullWeekdaysParse[i]) {
  10805. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
  10806. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
  10807. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
  10808. }
  10809. if (!this._weekdaysParse[i]) {
  10810. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  10811. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  10812. }
  10813. // test the regex
  10814. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  10815. return i;
  10816. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  10817. return i;
  10818. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  10819. return i;
  10820. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  10821. return i;
  10822. }
  10823. }
  10824. }
  10825. // MOMENTS
  10826. function getSetDayOfWeek(input) {
  10827. if (!this.isValid()) {
  10828. return input != null ? this : NaN;
  10829. }
  10830. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  10831. if (input != null) {
  10832. input = parseWeekday(input, this.localeData());
  10833. return this.add(input - day, 'd');
  10834. } else {
  10835. return day;
  10836. }
  10837. }
  10838. function getSetLocaleDayOfWeek(input) {
  10839. if (!this.isValid()) {
  10840. return input != null ? this : NaN;
  10841. }
  10842. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  10843. return input == null ? weekday : this.add(input - weekday, 'd');
  10844. }
  10845. function getSetISODayOfWeek(input) {
  10846. if (!this.isValid()) {
  10847. return input != null ? this : NaN;
  10848. }
  10849. // behaves the same as moment#day except
  10850. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  10851. // as a setter, sunday should belong to the previous week.
  10852. if (input != null) {
  10853. var weekday = parseIsoWeekday(input, this.localeData());
  10854. return this.day(this.day() % 7 ? weekday : weekday - 7);
  10855. } else {
  10856. return this.day() || 7;
  10857. }
  10858. }
  10859. function weekdaysRegex(isStrict) {
  10860. if (this._weekdaysParseExact) {
  10861. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10862. computeWeekdaysParse.call(this);
  10863. }
  10864. if (isStrict) {
  10865. return this._weekdaysStrictRegex;
  10866. } else {
  10867. return this._weekdaysRegex;
  10868. }
  10869. } else {
  10870. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10871. this._weekdaysRegex = defaultWeekdaysRegex;
  10872. }
  10873. return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
  10874. }
  10875. }
  10876. function weekdaysShortRegex(isStrict) {
  10877. if (this._weekdaysParseExact) {
  10878. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10879. computeWeekdaysParse.call(this);
  10880. }
  10881. if (isStrict) {
  10882. return this._weekdaysShortStrictRegex;
  10883. } else {
  10884. return this._weekdaysShortRegex;
  10885. }
  10886. } else {
  10887. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  10888. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  10889. }
  10890. return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  10891. }
  10892. }
  10893. function weekdaysMinRegex(isStrict) {
  10894. if (this._weekdaysParseExact) {
  10895. if (!hasOwnProp(this, '_weekdaysRegex')) {
  10896. computeWeekdaysParse.call(this);
  10897. }
  10898. if (isStrict) {
  10899. return this._weekdaysMinStrictRegex;
  10900. } else {
  10901. return this._weekdaysMinRegex;
  10902. }
  10903. } else {
  10904. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  10905. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  10906. }
  10907. return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  10908. }
  10909. }
  10910. function computeWeekdaysParse() {
  10911. function cmpLenRev(a, b) {
  10912. return b.length - a.length;
  10913. }
  10914. var minPieces = [],
  10915. shortPieces = [],
  10916. longPieces = [],
  10917. mixedPieces = [],
  10918. i,
  10919. mom,
  10920. minp,
  10921. shortp,
  10922. longp;
  10923. for (i = 0; i < 7; i++) {
  10924. // make the regex if we don't have it already
  10925. mom = createUTC([2000, 1]).day(i);
  10926. minp = regexEscape(this.weekdaysMin(mom, ''));
  10927. shortp = regexEscape(this.weekdaysShort(mom, ''));
  10928. longp = regexEscape(this.weekdays(mom, ''));
  10929. minPieces.push(minp);
  10930. shortPieces.push(shortp);
  10931. longPieces.push(longp);
  10932. mixedPieces.push(minp);
  10933. mixedPieces.push(shortp);
  10934. mixedPieces.push(longp);
  10935. }
  10936. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  10937. // will match the longer piece.
  10938. minPieces.sort(cmpLenRev);
  10939. shortPieces.sort(cmpLenRev);
  10940. longPieces.sort(cmpLenRev);
  10941. mixedPieces.sort(cmpLenRev);
  10942. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  10943. this._weekdaysShortRegex = this._weekdaysRegex;
  10944. this._weekdaysMinRegex = this._weekdaysRegex;
  10945. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  10946. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  10947. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  10948. }
  10949. // FORMATTING
  10950. function hFormat() {
  10951. return this.hours() % 12 || 12;
  10952. }
  10953. function kFormat() {
  10954. return this.hours() || 24;
  10955. }
  10956. addFormatToken('H', ['HH', 2], 0, 'hour');
  10957. addFormatToken('h', ['hh', 2], 0, hFormat);
  10958. addFormatToken('k', ['kk', 2], 0, kFormat);
  10959. addFormatToken('hmm', 0, 0, function () {
  10960. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  10961. });
  10962. addFormatToken('hmmss', 0, 0, function () {
  10963. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  10964. });
  10965. addFormatToken('Hmm', 0, 0, function () {
  10966. return '' + this.hours() + zeroFill(this.minutes(), 2);
  10967. });
  10968. addFormatToken('Hmmss', 0, 0, function () {
  10969. return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
  10970. });
  10971. function meridiem(token, lowercase) {
  10972. addFormatToken(token, 0, 0, function () {
  10973. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  10974. });
  10975. }
  10976. meridiem('a', true);
  10977. meridiem('A', false);
  10978. // ALIASES
  10979. addUnitAlias('hour', 'h');
  10980. // PRIORITY
  10981. addUnitPriority('hour', 13);
  10982. // PARSING
  10983. function matchMeridiem(isStrict, locale) {
  10984. return locale._meridiemParse;
  10985. }
  10986. addRegexToken('a', matchMeridiem);
  10987. addRegexToken('A', matchMeridiem);
  10988. addRegexToken('H', match1to2);
  10989. addRegexToken('h', match1to2);
  10990. addRegexToken('k', match1to2);
  10991. addRegexToken('HH', match1to2, match2);
  10992. addRegexToken('hh', match1to2, match2);
  10993. addRegexToken('kk', match1to2, match2);
  10994. addRegexToken('hmm', match3to4);
  10995. addRegexToken('hmmss', match5to6);
  10996. addRegexToken('Hmm', match3to4);
  10997. addRegexToken('Hmmss', match5to6);
  10998. addParseToken(['H', 'HH'], HOUR);
  10999. addParseToken(['k', 'kk'], function (input, array, config) {
  11000. var kInput = toInt(input);
  11001. array[HOUR] = kInput === 24 ? 0 : kInput;
  11002. });
  11003. addParseToken(['a', 'A'], function (input, array, config) {
  11004. config._isPm = config._locale.isPM(input);
  11005. config._meridiem = input;
  11006. });
  11007. addParseToken(['h', 'hh'], function (input, array, config) {
  11008. array[HOUR] = toInt(input);
  11009. getParsingFlags(config).bigHour = true;
  11010. });
  11011. addParseToken('hmm', function (input, array, config) {
  11012. var pos = input.length - 2;
  11013. array[HOUR] = toInt(input.substr(0, pos));
  11014. array[MINUTE] = toInt(input.substr(pos));
  11015. getParsingFlags(config).bigHour = true;
  11016. });
  11017. addParseToken('hmmss', function (input, array, config) {
  11018. var pos1 = input.length - 4,
  11019. pos2 = input.length - 2;
  11020. array[HOUR] = toInt(input.substr(0, pos1));
  11021. array[MINUTE] = toInt(input.substr(pos1, 2));
  11022. array[SECOND] = toInt(input.substr(pos2));
  11023. getParsingFlags(config).bigHour = true;
  11024. });
  11025. addParseToken('Hmm', function (input, array, config) {
  11026. var pos = input.length - 2;
  11027. array[HOUR] = toInt(input.substr(0, pos));
  11028. array[MINUTE] = toInt(input.substr(pos));
  11029. });
  11030. addParseToken('Hmmss', function (input, array, config) {
  11031. var pos1 = input.length - 4,
  11032. pos2 = input.length - 2;
  11033. array[HOUR] = toInt(input.substr(0, pos1));
  11034. array[MINUTE] = toInt(input.substr(pos1, 2));
  11035. array[SECOND] = toInt(input.substr(pos2));
  11036. });
  11037. // LOCALES
  11038. function localeIsPM(input) {
  11039. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  11040. // Using charAt should be more compatible.
  11041. return (input + '').toLowerCase().charAt(0) === 'p';
  11042. }
  11043. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  11044. // Setting the hour should keep the time, because the user explicitly
  11045. // specified which hour they want. So trying to maintain the same hour (in
  11046. // a new timezone) makes sense. Adding/subtracting hours does not follow
  11047. // this rule.
  11048. getSetHour = makeGetSet('Hours', true);
  11049. function localeMeridiem(hours, minutes, isLower) {
  11050. if (hours > 11) {
  11051. return isLower ? 'pm' : 'PM';
  11052. } else {
  11053. return isLower ? 'am' : 'AM';
  11054. }
  11055. }
  11056. var baseConfig = {
  11057. calendar: defaultCalendar,
  11058. longDateFormat: defaultLongDateFormat,
  11059. invalidDate: defaultInvalidDate,
  11060. ordinal: defaultOrdinal,
  11061. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  11062. relativeTime: defaultRelativeTime,
  11063. months: defaultLocaleMonths,
  11064. monthsShort: defaultLocaleMonthsShort,
  11065. week: defaultLocaleWeek,
  11066. weekdays: defaultLocaleWeekdays,
  11067. weekdaysMin: defaultLocaleWeekdaysMin,
  11068. weekdaysShort: defaultLocaleWeekdaysShort,
  11069. meridiemParse: defaultLocaleMeridiemParse
  11070. };
  11071. // internal storage for locale config files
  11072. var locales = {},
  11073. localeFamilies = {},
  11074. globalLocale;
  11075. function commonPrefix(arr1, arr2) {
  11076. var i,
  11077. minl = Math.min(arr1.length, arr2.length);
  11078. for (i = 0; i < minl; i += 1) {
  11079. if (arr1[i] !== arr2[i]) {
  11080. return i;
  11081. }
  11082. }
  11083. return minl;
  11084. }
  11085. function normalizeLocale(key) {
  11086. return key ? key.toLowerCase().replace('_', '-') : key;
  11087. }
  11088. // pick the locale from the array
  11089. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  11090. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  11091. function chooseLocale(names) {
  11092. var i = 0,
  11093. j,
  11094. next,
  11095. locale,
  11096. split;
  11097. while (i < names.length) {
  11098. split = normalizeLocale(names[i]).split('-');
  11099. j = split.length;
  11100. next = normalizeLocale(names[i + 1]);
  11101. next = next ? next.split('-') : null;
  11102. while (j > 0) {
  11103. locale = loadLocale(split.slice(0, j).join('-'));
  11104. if (locale) {
  11105. return locale;
  11106. }
  11107. if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
  11108. //the next array item is better than a shallower substring of this one
  11109. break;
  11110. }
  11111. j--;
  11112. }
  11113. i++;
  11114. }
  11115. return globalLocale;
  11116. }
  11117. function isLocaleNameSane(name) {
  11118. // Prevent names that look like filesystem paths, i.e contain '/' or '\'
  11119. return name.match('^[^/\\\\]*$') != null;
  11120. }
  11121. function loadLocale(name) {
  11122. var oldLocale = null,
  11123. aliasedRequire;
  11124. // TODO: Find a better way to register and load all the locales in Node
  11125. if (locales[name] === undefined && typeof module !== 'undefined' && module && module.exports && isLocaleNameSane(name)) {
  11126. try {
  11127. oldLocale = globalLocale._abbr;
  11128. aliasedRequire = require;
  11129. __webpack_require__(41)("./" + name);
  11130. getSetGlobalLocale(oldLocale);
  11131. } catch (e) {
  11132. // mark as not found to avoid repeating expensive file require call causing high CPU
  11133. // when trying to find en-US, en_US, en-us for every format call
  11134. locales[name] = null; // null means not found
  11135. }
  11136. }
  11137. return locales[name];
  11138. }
  11139. // This function will load locale and then set the global locale. If
  11140. // no arguments are passed in, it will simply return the current global
  11141. // locale key.
  11142. function getSetGlobalLocale(key, values) {
  11143. var data;
  11144. if (key) {
  11145. if (isUndefined(values)) {
  11146. data = getLocale(key);
  11147. } else {
  11148. data = defineLocale(key, values);
  11149. }
  11150. if (data) {
  11151. // moment.duration._locale = moment._locale = data;
  11152. globalLocale = data;
  11153. } else {
  11154. if (typeof console !== 'undefined' && console.warn) {
  11155. //warn user if arguments are passed but the locale could not be set
  11156. console.warn('Locale ' + key + ' not found. Did you forget to load it?');
  11157. }
  11158. }
  11159. }
  11160. return globalLocale._abbr;
  11161. }
  11162. function defineLocale(name, config) {
  11163. if (config !== null) {
  11164. var locale,
  11165. parentConfig = baseConfig;
  11166. config.abbr = name;
  11167. if (locales[name] != null) {
  11168. deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  11169. parentConfig = locales[name]._config;
  11170. } else if (config.parentLocale != null) {
  11171. if (locales[config.parentLocale] != null) {
  11172. parentConfig = locales[config.parentLocale]._config;
  11173. } else {
  11174. locale = loadLocale(config.parentLocale);
  11175. if (locale != null) {
  11176. parentConfig = locale._config;
  11177. } else {
  11178. if (!localeFamilies[config.parentLocale]) {
  11179. localeFamilies[config.parentLocale] = [];
  11180. }
  11181. localeFamilies[config.parentLocale].push({
  11182. name: name,
  11183. config: config
  11184. });
  11185. return null;
  11186. }
  11187. }
  11188. }
  11189. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  11190. if (localeFamilies[name]) {
  11191. localeFamilies[name].forEach(function (x) {
  11192. defineLocale(x.name, x.config);
  11193. });
  11194. }
  11195. // backwards compat for now: also set the locale
  11196. // make sure we set the locale AFTER all child locales have been
  11197. // created, so we won't end up with the child locale set.
  11198. getSetGlobalLocale(name);
  11199. return locales[name];
  11200. } else {
  11201. // useful for testing
  11202. delete locales[name];
  11203. return null;
  11204. }
  11205. }
  11206. function updateLocale(name, config) {
  11207. if (config != null) {
  11208. var locale,
  11209. tmpLocale,
  11210. parentConfig = baseConfig;
  11211. if (locales[name] != null && locales[name].parentLocale != null) {
  11212. // Update existing child locale in-place to avoid memory-leaks
  11213. locales[name].set(mergeConfigs(locales[name]._config, config));
  11214. } else {
  11215. // MERGE
  11216. tmpLocale = loadLocale(name);
  11217. if (tmpLocale != null) {
  11218. parentConfig = tmpLocale._config;
  11219. }
  11220. config = mergeConfigs(parentConfig, config);
  11221. if (tmpLocale == null) {
  11222. // updateLocale is called for creating a new locale
  11223. // Set abbr so it will have a name (getters return
  11224. // undefined otherwise).
  11225. config.abbr = name;
  11226. }
  11227. locale = new Locale(config);
  11228. locale.parentLocale = locales[name];
  11229. locales[name] = locale;
  11230. }
  11231. // backwards compat for now: also set the locale
  11232. getSetGlobalLocale(name);
  11233. } else {
  11234. // pass null for config to unupdate, useful for tests
  11235. if (locales[name] != null) {
  11236. if (locales[name].parentLocale != null) {
  11237. locales[name] = locales[name].parentLocale;
  11238. if (name === getSetGlobalLocale()) {
  11239. getSetGlobalLocale(name);
  11240. }
  11241. } else if (locales[name] != null) {
  11242. delete locales[name];
  11243. }
  11244. }
  11245. }
  11246. return locales[name];
  11247. }
  11248. // returns locale data
  11249. function getLocale(key) {
  11250. var locale;
  11251. if (key && key._locale && key._locale._abbr) {
  11252. key = key._locale._abbr;
  11253. }
  11254. if (!key) {
  11255. return globalLocale;
  11256. }
  11257. if (!isArray(key)) {
  11258. //short-circuit everything else
  11259. locale = loadLocale(key);
  11260. if (locale) {
  11261. return locale;
  11262. }
  11263. key = [key];
  11264. }
  11265. return chooseLocale(key);
  11266. }
  11267. function listLocales() {
  11268. return keys(locales);
  11269. }
  11270. function checkOverflow(m) {
  11271. var overflow,
  11272. a = m._a;
  11273. if (a && getParsingFlags(m).overflow === -2) {
  11274. overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
  11275. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  11276. overflow = DATE;
  11277. }
  11278. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  11279. overflow = WEEK;
  11280. }
  11281. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  11282. overflow = WEEKDAY;
  11283. }
  11284. getParsingFlags(m).overflow = overflow;
  11285. }
  11286. return m;
  11287. }
  11288. // iso 8601 regex
  11289. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  11290. var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11291. basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  11292. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  11293. isoDates = [['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false]],
  11294. // iso time formats and regexes
  11295. isoTimes = [['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/]],
  11296. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  11297. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  11298. rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  11299. obsOffsets = {
  11300. UT: 0,
  11301. GMT: 0,
  11302. EDT: -4 * 60,
  11303. EST: -5 * 60,
  11304. CDT: -5 * 60,
  11305. CST: -6 * 60,
  11306. MDT: -6 * 60,
  11307. MST: -7 * 60,
  11308. PDT: -7 * 60,
  11309. PST: -8 * 60
  11310. };
  11311. // date from iso format
  11312. function configFromISO(config) {
  11313. var i,
  11314. l,
  11315. string = config._i,
  11316. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  11317. allowTime,
  11318. dateFormat,
  11319. timeFormat,
  11320. tzFormat,
  11321. isoDatesLen = isoDates.length,
  11322. isoTimesLen = isoTimes.length;
  11323. if (match) {
  11324. getParsingFlags(config).iso = true;
  11325. for (i = 0, l = isoDatesLen; i < l; i++) {
  11326. if (isoDates[i][1].exec(match[1])) {
  11327. dateFormat = isoDates[i][0];
  11328. allowTime = isoDates[i][2] !== false;
  11329. break;
  11330. }
  11331. }
  11332. if (dateFormat == null) {
  11333. config._isValid = false;
  11334. return;
  11335. }
  11336. if (match[3]) {
  11337. for (i = 0, l = isoTimesLen; i < l; i++) {
  11338. if (isoTimes[i][1].exec(match[3])) {
  11339. // match[2] should be 'T' or space
  11340. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  11341. break;
  11342. }
  11343. }
  11344. if (timeFormat == null) {
  11345. config._isValid = false;
  11346. return;
  11347. }
  11348. }
  11349. if (!allowTime && timeFormat != null) {
  11350. config._isValid = false;
  11351. return;
  11352. }
  11353. if (match[4]) {
  11354. if (tzRegex.exec(match[4])) {
  11355. tzFormat = 'Z';
  11356. } else {
  11357. config._isValid = false;
  11358. return;
  11359. }
  11360. }
  11361. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  11362. configFromStringAndFormat(config);
  11363. } else {
  11364. config._isValid = false;
  11365. }
  11366. }
  11367. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  11368. var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];
  11369. if (secondStr) {
  11370. result.push(parseInt(secondStr, 10));
  11371. }
  11372. return result;
  11373. }
  11374. function untruncateYear(yearStr) {
  11375. var year = parseInt(yearStr, 10);
  11376. if (year <= 49) {
  11377. return 2000 + year;
  11378. } else if (year <= 999) {
  11379. return 1900 + year;
  11380. }
  11381. return year;
  11382. }
  11383. function preprocessRFC2822(s) {
  11384. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  11385. return s.replace(/\([^()]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  11386. }
  11387. function checkWeekday(weekdayStr, parsedInput, config) {
  11388. if (weekdayStr) {
  11389. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  11390. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  11391. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  11392. if (weekdayProvided !== weekdayActual) {
  11393. getParsingFlags(config).weekdayMismatch = true;
  11394. config._isValid = false;
  11395. return false;
  11396. }
  11397. }
  11398. return true;
  11399. }
  11400. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  11401. if (obsOffset) {
  11402. return obsOffsets[obsOffset];
  11403. } else if (militaryOffset) {
  11404. // the only allowed military tz is Z
  11405. return 0;
  11406. } else {
  11407. var hm = parseInt(numOffset, 10),
  11408. m = hm % 100,
  11409. h = (hm - m) / 100;
  11410. return h * 60 + m;
  11411. }
  11412. }
  11413. // date and time from ref 2822 format
  11414. function configFromRFC2822(config) {
  11415. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  11416. parsedArray;
  11417. if (match) {
  11418. parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  11419. if (!checkWeekday(match[1], parsedArray, config)) {
  11420. return;
  11421. }
  11422. config._a = parsedArray;
  11423. config._tzm = calculateOffset(match[8], match[9], match[10]);
  11424. config._d = createUTCDate.apply(null, config._a);
  11425. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11426. getParsingFlags(config).rfc2822 = true;
  11427. } else {
  11428. config._isValid = false;
  11429. }
  11430. }
  11431. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  11432. function configFromString(config) {
  11433. var matched = aspNetJsonRegex.exec(config._i);
  11434. if (matched !== null) {
  11435. config._d = new Date(+matched[1]);
  11436. return;
  11437. }
  11438. configFromISO(config);
  11439. if (config._isValid === false) {
  11440. delete config._isValid;
  11441. } else {
  11442. return;
  11443. }
  11444. configFromRFC2822(config);
  11445. if (config._isValid === false) {
  11446. delete config._isValid;
  11447. } else {
  11448. return;
  11449. }
  11450. if (config._strict) {
  11451. config._isValid = false;
  11452. } else {
  11453. // Final attempt, use Input Fallback
  11454. hooks.createFromInputFallback(config);
  11455. }
  11456. }
  11457. hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {
  11458. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  11459. });
  11460. // Pick the first defined of two or three arguments.
  11461. function defaults(a, b, c) {
  11462. if (a != null) {
  11463. return a;
  11464. }
  11465. if (b != null) {
  11466. return b;
  11467. }
  11468. return c;
  11469. }
  11470. function currentDateArray(config) {
  11471. // hooks is actually the exported moment object
  11472. var nowValue = new Date(hooks.now());
  11473. if (config._useUTC) {
  11474. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  11475. }
  11476. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  11477. }
  11478. // convert an array to a date.
  11479. // the array should mirror the parameters below
  11480. // note: all values past the year are optional and will default to the lowest possible value.
  11481. // [year, month, day , hour, minute, second, millisecond]
  11482. function configFromArray(config) {
  11483. var i,
  11484. date,
  11485. input = [],
  11486. currentDate,
  11487. expectedWeekday,
  11488. yearToUse;
  11489. if (config._d) {
  11490. return;
  11491. }
  11492. currentDate = currentDateArray(config);
  11493. //compute day of the year from weeks and weekdays
  11494. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  11495. dayOfYearFromWeekInfo(config);
  11496. }
  11497. //if the day of the year is set, figure out what it is
  11498. if (config._dayOfYear != null) {
  11499. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  11500. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  11501. getParsingFlags(config)._overflowDayOfYear = true;
  11502. }
  11503. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  11504. config._a[MONTH] = date.getUTCMonth();
  11505. config._a[DATE] = date.getUTCDate();
  11506. }
  11507. // Default to current date.
  11508. // * if no year, month, day of month are given, default to today
  11509. // * if day of month is given, default month and year
  11510. // * if month is given, default only year
  11511. // * if year is given, don't default anything
  11512. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  11513. config._a[i] = input[i] = currentDate[i];
  11514. }
  11515. // Zero out whatever was not defaulted, including time
  11516. for (; i < 7; i++) {
  11517. config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
  11518. }
  11519. // Check for 24:00:00.000
  11520. if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
  11521. config._nextDay = true;
  11522. config._a[HOUR] = 0;
  11523. }
  11524. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  11525. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  11526. // Apply timezone offset from input. The actual utcOffset can be changed
  11527. // with parseZone.
  11528. if (config._tzm != null) {
  11529. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  11530. }
  11531. if (config._nextDay) {
  11532. config._a[HOUR] = 24;
  11533. }
  11534. // check for mismatching day of week
  11535. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  11536. getParsingFlags(config).weekdayMismatch = true;
  11537. }
  11538. }
  11539. function dayOfYearFromWeekInfo(config) {
  11540. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  11541. w = config._w;
  11542. if (w.GG != null || w.W != null || w.E != null) {
  11543. dow = 1;
  11544. doy = 4;
  11545. // TODO: We need to take the current isoWeekYear, but that depends on
  11546. // how we interpret now (local, utc, fixed offset). So create
  11547. // a now version of current config (take local/utc/offset flags, and
  11548. // create now).
  11549. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  11550. week = defaults(w.W, 1);
  11551. weekday = defaults(w.E, 1);
  11552. if (weekday < 1 || weekday > 7) {
  11553. weekdayOverflow = true;
  11554. }
  11555. } else {
  11556. dow = config._locale._week.dow;
  11557. doy = config._locale._week.doy;
  11558. curWeek = weekOfYear(createLocal(), dow, doy);
  11559. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  11560. // Default to current week.
  11561. week = defaults(w.w, curWeek.week);
  11562. if (w.d != null) {
  11563. // weekday -- low day numbers are considered next week
  11564. weekday = w.d;
  11565. if (weekday < 0 || weekday > 6) {
  11566. weekdayOverflow = true;
  11567. }
  11568. } else if (w.e != null) {
  11569. // local weekday -- counting starts from beginning of week
  11570. weekday = w.e + dow;
  11571. if (w.e < 0 || w.e > 6) {
  11572. weekdayOverflow = true;
  11573. }
  11574. } else {
  11575. // default to beginning of week
  11576. weekday = dow;
  11577. }
  11578. }
  11579. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  11580. getParsingFlags(config)._overflowWeeks = true;
  11581. } else if (weekdayOverflow != null) {
  11582. getParsingFlags(config)._overflowWeekday = true;
  11583. } else {
  11584. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  11585. config._a[YEAR] = temp.year;
  11586. config._dayOfYear = temp.dayOfYear;
  11587. }
  11588. }
  11589. // constant that refers to the ISO standard
  11590. hooks.ISO_8601 = function () {};
  11591. // constant that refers to the RFC 2822 form
  11592. hooks.RFC_2822 = function () {};
  11593. // date from string and format string
  11594. function configFromStringAndFormat(config) {
  11595. // TODO: Move this to another part of the creation flow to prevent circular deps
  11596. if (config._f === hooks.ISO_8601) {
  11597. configFromISO(config);
  11598. return;
  11599. }
  11600. if (config._f === hooks.RFC_2822) {
  11601. configFromRFC2822(config);
  11602. return;
  11603. }
  11604. config._a = [];
  11605. getParsingFlags(config).empty = true;
  11606. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  11607. var string = '' + config._i,
  11608. i,
  11609. parsedInput,
  11610. tokens,
  11611. token,
  11612. skipped,
  11613. stringLength = string.length,
  11614. totalParsedInputLength = 0,
  11615. era,
  11616. tokenLen;
  11617. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  11618. tokenLen = tokens.length;
  11619. for (i = 0; i < tokenLen; i++) {
  11620. token = tokens[i];
  11621. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  11622. if (parsedInput) {
  11623. skipped = string.substr(0, string.indexOf(parsedInput));
  11624. if (skipped.length > 0) {
  11625. getParsingFlags(config).unusedInput.push(skipped);
  11626. }
  11627. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  11628. totalParsedInputLength += parsedInput.length;
  11629. }
  11630. // don't parse if it's not a known token
  11631. if (formatTokenFunctions[token]) {
  11632. if (parsedInput) {
  11633. getParsingFlags(config).empty = false;
  11634. } else {
  11635. getParsingFlags(config).unusedTokens.push(token);
  11636. }
  11637. addTimeToArrayFromToken(token, parsedInput, config);
  11638. } else if (config._strict && !parsedInput) {
  11639. getParsingFlags(config).unusedTokens.push(token);
  11640. }
  11641. }
  11642. // add remaining unparsed input length to the string
  11643. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  11644. if (string.length > 0) {
  11645. getParsingFlags(config).unusedInput.push(string);
  11646. }
  11647. // clear _12h flag if hour is <= 12
  11648. if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
  11649. getParsingFlags(config).bigHour = undefined;
  11650. }
  11651. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  11652. getParsingFlags(config).meridiem = config._meridiem;
  11653. // handle meridiem
  11654. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  11655. // handle era
  11656. era = getParsingFlags(config).era;
  11657. if (era !== null) {
  11658. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  11659. }
  11660. configFromArray(config);
  11661. checkOverflow(config);
  11662. }
  11663. function meridiemFixWrap(locale, hour, meridiem) {
  11664. var isPm;
  11665. if (meridiem == null) {
  11666. // nothing to do
  11667. return hour;
  11668. }
  11669. if (locale.meridiemHour != null) {
  11670. return locale.meridiemHour(hour, meridiem);
  11671. } else if (locale.isPM != null) {
  11672. // Fallback
  11673. isPm = locale.isPM(meridiem);
  11674. if (isPm && hour < 12) {
  11675. hour += 12;
  11676. }
  11677. if (!isPm && hour === 12) {
  11678. hour = 0;
  11679. }
  11680. return hour;
  11681. } else {
  11682. // this is not supposed to happen
  11683. return hour;
  11684. }
  11685. }
  11686. // date from string and array of format strings
  11687. function configFromStringAndArray(config) {
  11688. var tempConfig,
  11689. bestMoment,
  11690. scoreToBeat,
  11691. i,
  11692. currentScore,
  11693. validFormatFound,
  11694. bestFormatIsValid = false,
  11695. configfLen = config._f.length;
  11696. if (configfLen === 0) {
  11697. getParsingFlags(config).invalidFormat = true;
  11698. config._d = new Date(NaN);
  11699. return;
  11700. }
  11701. for (i = 0; i < configfLen; i++) {
  11702. currentScore = 0;
  11703. validFormatFound = false;
  11704. tempConfig = copyConfig({}, config);
  11705. if (config._useUTC != null) {
  11706. tempConfig._useUTC = config._useUTC;
  11707. }
  11708. tempConfig._f = config._f[i];
  11709. configFromStringAndFormat(tempConfig);
  11710. if (isValid(tempConfig)) {
  11711. validFormatFound = true;
  11712. }
  11713. // if there is any input that was not parsed add a penalty for that format
  11714. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  11715. //or tokens
  11716. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  11717. getParsingFlags(tempConfig).score = currentScore;
  11718. if (!bestFormatIsValid) {
  11719. if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
  11720. scoreToBeat = currentScore;
  11721. bestMoment = tempConfig;
  11722. if (validFormatFound) {
  11723. bestFormatIsValid = true;
  11724. }
  11725. }
  11726. } else {
  11727. if (currentScore < scoreToBeat) {
  11728. scoreToBeat = currentScore;
  11729. bestMoment = tempConfig;
  11730. }
  11731. }
  11732. }
  11733. extend(config, bestMoment || tempConfig);
  11734. }
  11735. function configFromObject(config) {
  11736. if (config._d) {
  11737. return;
  11738. }
  11739. var i = normalizeObjectUnits(config._i),
  11740. dayOrDate = i.day === undefined ? i.date : i.day;
  11741. config._a = map([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  11742. return obj && parseInt(obj, 10);
  11743. });
  11744. configFromArray(config);
  11745. }
  11746. function createFromConfig(config) {
  11747. var res = new Moment(checkOverflow(prepareConfig(config)));
  11748. if (res._nextDay) {
  11749. // Adding is smart enough around DST
  11750. res.add(1, 'd');
  11751. res._nextDay = undefined;
  11752. }
  11753. return res;
  11754. }
  11755. function prepareConfig(config) {
  11756. var input = config._i,
  11757. format = config._f;
  11758. config._locale = config._locale || getLocale(config._l);
  11759. if (input === null || format === undefined && input === '') {
  11760. return createInvalid({
  11761. nullInput: true
  11762. });
  11763. }
  11764. if (typeof input === 'string') {
  11765. config._i = input = config._locale.preparse(input);
  11766. }
  11767. if (isMoment(input)) {
  11768. return new Moment(checkOverflow(input));
  11769. } else if (isDate(input)) {
  11770. config._d = input;
  11771. } else if (isArray(format)) {
  11772. configFromStringAndArray(config);
  11773. } else if (format) {
  11774. configFromStringAndFormat(config);
  11775. } else {
  11776. configFromInput(config);
  11777. }
  11778. if (!isValid(config)) {
  11779. config._d = null;
  11780. }
  11781. return config;
  11782. }
  11783. function configFromInput(config) {
  11784. var input = config._i;
  11785. if (isUndefined(input)) {
  11786. config._d = new Date(hooks.now());
  11787. } else if (isDate(input)) {
  11788. config._d = new Date(input.valueOf());
  11789. } else if (typeof input === 'string') {
  11790. configFromString(config);
  11791. } else if (isArray(input)) {
  11792. config._a = map(input.slice(0), function (obj) {
  11793. return parseInt(obj, 10);
  11794. });
  11795. configFromArray(config);
  11796. } else if (isObject(input)) {
  11797. configFromObject(config);
  11798. } else if (isNumber(input)) {
  11799. // from milliseconds
  11800. config._d = new Date(input);
  11801. } else {
  11802. hooks.createFromInputFallback(config);
  11803. }
  11804. }
  11805. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  11806. var c = {};
  11807. if (format === true || format === false) {
  11808. strict = format;
  11809. format = undefined;
  11810. }
  11811. if (locale === true || locale === false) {
  11812. strict = locale;
  11813. locale = undefined;
  11814. }
  11815. if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {
  11816. input = undefined;
  11817. }
  11818. // object construction must be done this way.
  11819. // https://github.com/moment/moment/issues/1423
  11820. c._isAMomentObject = true;
  11821. c._useUTC = c._isUTC = isUTC;
  11822. c._l = locale;
  11823. c._i = input;
  11824. c._f = format;
  11825. c._strict = strict;
  11826. return createFromConfig(c);
  11827. }
  11828. function createLocal(input, format, locale, strict) {
  11829. return createLocalOrUTC(input, format, locale, strict, false);
  11830. }
  11831. var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  11832. var other = createLocal.apply(null, arguments);
  11833. if (this.isValid() && other.isValid()) {
  11834. return other < this ? this : other;
  11835. } else {
  11836. return createInvalid();
  11837. }
  11838. }),
  11839. prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
  11840. var other = createLocal.apply(null, arguments);
  11841. if (this.isValid() && other.isValid()) {
  11842. return other > this ? this : other;
  11843. } else {
  11844. return createInvalid();
  11845. }
  11846. });
  11847. // Pick a moment m from moments so that m[fn](other) is true for all
  11848. // other. This relies on the function fn to be transitive.
  11849. //
  11850. // moments should either be an array of moment objects or an array, whose
  11851. // first element is an array of moment objects.
  11852. function pickBy(fn, moments) {
  11853. var res, i;
  11854. if (moments.length === 1 && isArray(moments[0])) {
  11855. moments = moments[0];
  11856. }
  11857. if (!moments.length) {
  11858. return createLocal();
  11859. }
  11860. res = moments[0];
  11861. for (i = 1; i < moments.length; ++i) {
  11862. if (!moments[i].isValid() || moments[i][fn](res)) {
  11863. res = moments[i];
  11864. }
  11865. }
  11866. return res;
  11867. }
  11868. // TODO: Use [].sort instead?
  11869. function min() {
  11870. var args = [].slice.call(arguments, 0);
  11871. return pickBy('isBefore', args);
  11872. }
  11873. function max() {
  11874. var args = [].slice.call(arguments, 0);
  11875. return pickBy('isAfter', args);
  11876. }
  11877. var now = function now() {
  11878. return Date.now ? Date.now() : +new Date();
  11879. };
  11880. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  11881. function isDurationValid(m) {
  11882. var key,
  11883. unitHasDecimal = false,
  11884. i,
  11885. orderLen = ordering.length;
  11886. for (key in m) {
  11887. if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  11888. return false;
  11889. }
  11890. }
  11891. for (i = 0; i < orderLen; ++i) {
  11892. if (m[ordering[i]]) {
  11893. if (unitHasDecimal) {
  11894. return false; // only allow non-integers for smallest unit
  11895. }
  11896. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  11897. unitHasDecimal = true;
  11898. }
  11899. }
  11900. }
  11901. return true;
  11902. }
  11903. function isValid$1() {
  11904. return this._isValid;
  11905. }
  11906. function createInvalid$1() {
  11907. return createDuration(NaN);
  11908. }
  11909. function Duration(duration) {
  11910. var normalizedInput = normalizeObjectUnits(duration),
  11911. years = normalizedInput.year || 0,
  11912. quarters = normalizedInput.quarter || 0,
  11913. months = normalizedInput.month || 0,
  11914. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  11915. days = normalizedInput.day || 0,
  11916. hours = normalizedInput.hour || 0,
  11917. minutes = normalizedInput.minute || 0,
  11918. seconds = normalizedInput.second || 0,
  11919. milliseconds = normalizedInput.millisecond || 0;
  11920. this._isValid = isDurationValid(normalizedInput);
  11921. // representation for dateAddRemove
  11922. this._milliseconds = +milliseconds + seconds * 1e3 +
  11923. // 1000
  11924. minutes * 6e4 +
  11925. // 1000 * 60
  11926. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  11927. // Because of dateAddRemove treats 24 hours as different from a
  11928. // day when working around DST, we need to store them separately
  11929. this._days = +days + weeks * 7;
  11930. // It is impossible to translate months into days without knowing
  11931. // which months you are are talking about, so we have to store
  11932. // it separately.
  11933. this._months = +months + quarters * 3 + years * 12;
  11934. this._data = {};
  11935. this._locale = getLocale();
  11936. this._bubble();
  11937. }
  11938. function isDuration(obj) {
  11939. return obj instanceof Duration;
  11940. }
  11941. function absRound(number) {
  11942. if (number < 0) {
  11943. return Math.round(-1 * number) * -1;
  11944. } else {
  11945. return Math.round(number);
  11946. }
  11947. }
  11948. // compare two arrays, return the number of differences
  11949. function compareArrays(array1, array2, dontConvert) {
  11950. var len = Math.min(array1.length, array2.length),
  11951. lengthDiff = Math.abs(array1.length - array2.length),
  11952. diffs = 0,
  11953. i;
  11954. for (i = 0; i < len; i++) {
  11955. if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
  11956. diffs++;
  11957. }
  11958. }
  11959. return diffs + lengthDiff;
  11960. }
  11961. // FORMATTING
  11962. function offset(token, separator) {
  11963. addFormatToken(token, 0, 0, function () {
  11964. var offset = this.utcOffset(),
  11965. sign = '+';
  11966. if (offset < 0) {
  11967. offset = -offset;
  11968. sign = '-';
  11969. }
  11970. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
  11971. });
  11972. }
  11973. offset('Z', ':');
  11974. offset('ZZ', '');
  11975. // PARSING
  11976. addRegexToken('Z', matchShortOffset);
  11977. addRegexToken('ZZ', matchShortOffset);
  11978. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  11979. config._useUTC = true;
  11980. config._tzm = offsetFromString(matchShortOffset, input);
  11981. });
  11982. // HELPERS
  11983. // timezone chunker
  11984. // '+10:00' > ['10', '00']
  11985. // '-1530' > ['-15', '30']
  11986. var chunkOffset = /([\+\-]|\d\d)/gi;
  11987. function offsetFromString(matcher, string) {
  11988. var matches = (string || '').match(matcher),
  11989. chunk,
  11990. parts,
  11991. minutes;
  11992. if (matches === null) {
  11993. return null;
  11994. }
  11995. chunk = matches[matches.length - 1] || [];
  11996. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  11997. minutes = +(parts[1] * 60) + toInt(parts[2]);
  11998. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  11999. }
  12000. // Return a moment from input, that is local/utc/zone equivalent to model.
  12001. function cloneWithOffset(input, model) {
  12002. var res, diff;
  12003. if (model._isUTC) {
  12004. res = model.clone();
  12005. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  12006. // Use low-level api, because this fn is low-level api.
  12007. res._d.setTime(res._d.valueOf() + diff);
  12008. hooks.updateOffset(res, false);
  12009. return res;
  12010. } else {
  12011. return createLocal(input).local();
  12012. }
  12013. }
  12014. function getDateOffset(m) {
  12015. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  12016. // https://github.com/moment/moment/pull/1871
  12017. return -Math.round(m._d.getTimezoneOffset());
  12018. }
  12019. // HOOKS
  12020. // This function will be called whenever a moment is mutated.
  12021. // It is intended to keep the offset in sync with the timezone.
  12022. hooks.updateOffset = function () {};
  12023. // MOMENTS
  12024. // keepLocalTime = true means only change the timezone, without
  12025. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  12026. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  12027. // +0200, so we adjust the time as needed, to be valid.
  12028. //
  12029. // Keeping the time actually adds/subtracts (one hour)
  12030. // from the actual represented time. That is why we call updateOffset
  12031. // a second time. In case it wants us to change the offset again
  12032. // _changeInProgress == true case, then we have to adjust, because
  12033. // there is no such time in the given timezone.
  12034. function getSetOffset(input, keepLocalTime, keepMinutes) {
  12035. var offset = this._offset || 0,
  12036. localAdjust;
  12037. if (!this.isValid()) {
  12038. return input != null ? this : NaN;
  12039. }
  12040. if (input != null) {
  12041. if (typeof input === 'string') {
  12042. input = offsetFromString(matchShortOffset, input);
  12043. if (input === null) {
  12044. return this;
  12045. }
  12046. } else if (Math.abs(input) < 16 && !keepMinutes) {
  12047. input = input * 60;
  12048. }
  12049. if (!this._isUTC && keepLocalTime) {
  12050. localAdjust = getDateOffset(this);
  12051. }
  12052. this._offset = input;
  12053. this._isUTC = true;
  12054. if (localAdjust != null) {
  12055. this.add(localAdjust, 'm');
  12056. }
  12057. if (offset !== input) {
  12058. if (!keepLocalTime || this._changeInProgress) {
  12059. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  12060. } else if (!this._changeInProgress) {
  12061. this._changeInProgress = true;
  12062. hooks.updateOffset(this, true);
  12063. this._changeInProgress = null;
  12064. }
  12065. }
  12066. return this;
  12067. } else {
  12068. return this._isUTC ? offset : getDateOffset(this);
  12069. }
  12070. }
  12071. function getSetZone(input, keepLocalTime) {
  12072. if (input != null) {
  12073. if (typeof input !== 'string') {
  12074. input = -input;
  12075. }
  12076. this.utcOffset(input, keepLocalTime);
  12077. return this;
  12078. } else {
  12079. return -this.utcOffset();
  12080. }
  12081. }
  12082. function setOffsetToUTC(keepLocalTime) {
  12083. return this.utcOffset(0, keepLocalTime);
  12084. }
  12085. function setOffsetToLocal(keepLocalTime) {
  12086. if (this._isUTC) {
  12087. this.utcOffset(0, keepLocalTime);
  12088. this._isUTC = false;
  12089. if (keepLocalTime) {
  12090. this.subtract(getDateOffset(this), 'm');
  12091. }
  12092. }
  12093. return this;
  12094. }
  12095. function setOffsetToParsedOffset() {
  12096. if (this._tzm != null) {
  12097. this.utcOffset(this._tzm, false, true);
  12098. } else if (typeof this._i === 'string') {
  12099. var tZone = offsetFromString(matchOffset, this._i);
  12100. if (tZone != null) {
  12101. this.utcOffset(tZone);
  12102. } else {
  12103. this.utcOffset(0, true);
  12104. }
  12105. }
  12106. return this;
  12107. }
  12108. function hasAlignedHourOffset(input) {
  12109. if (!this.isValid()) {
  12110. return false;
  12111. }
  12112. input = input ? createLocal(input).utcOffset() : 0;
  12113. return (this.utcOffset() - input) % 60 === 0;
  12114. }
  12115. function isDaylightSavingTime() {
  12116. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
  12117. }
  12118. function isDaylightSavingTimeShifted() {
  12119. if (!isUndefined(this._isDSTShifted)) {
  12120. return this._isDSTShifted;
  12121. }
  12122. var c = {},
  12123. other;
  12124. copyConfig(c, this);
  12125. c = prepareConfig(c);
  12126. if (c._a) {
  12127. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  12128. this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  12129. } else {
  12130. this._isDSTShifted = false;
  12131. }
  12132. return this._isDSTShifted;
  12133. }
  12134. function isLocal() {
  12135. return this.isValid() ? !this._isUTC : false;
  12136. }
  12137. function isUtcOffset() {
  12138. return this.isValid() ? this._isUTC : false;
  12139. }
  12140. function isUtc() {
  12141. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  12142. }
  12143. // ASP.NET json date format regex
  12144. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  12145. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  12146. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  12147. // and further modified to allow for strings containing both week and day
  12148. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  12149. function createDuration(input, key) {
  12150. var duration = input,
  12151. // matching against regexp is expensive, do it on demand
  12152. match = null,
  12153. sign,
  12154. ret,
  12155. diffRes;
  12156. if (isDuration(input)) {
  12157. duration = {
  12158. ms: input._milliseconds,
  12159. d: input._days,
  12160. M: input._months
  12161. };
  12162. } else if (isNumber(input) || !isNaN(+input)) {
  12163. duration = {};
  12164. if (key) {
  12165. duration[key] = +input;
  12166. } else {
  12167. duration.milliseconds = +input;
  12168. }
  12169. } else if (match = aspNetRegex.exec(input)) {
  12170. sign = match[1] === '-' ? -1 : 1;
  12171. duration = {
  12172. y: 0,
  12173. d: toInt(match[DATE]) * sign,
  12174. h: toInt(match[HOUR]) * sign,
  12175. m: toInt(match[MINUTE]) * sign,
  12176. s: toInt(match[SECOND]) * sign,
  12177. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  12178. };
  12179. } else if (match = isoRegex.exec(input)) {
  12180. sign = match[1] === '-' ? -1 : 1;
  12181. duration = {
  12182. y: parseIso(match[2], sign),
  12183. M: parseIso(match[3], sign),
  12184. w: parseIso(match[4], sign),
  12185. d: parseIso(match[5], sign),
  12186. h: parseIso(match[6], sign),
  12187. m: parseIso(match[7], sign),
  12188. s: parseIso(match[8], sign)
  12189. };
  12190. } else if (duration == null) {
  12191. // checks for null or undefined
  12192. duration = {};
  12193. } else if (_typeof(duration) === 'object' && ('from' in duration || 'to' in duration)) {
  12194. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  12195. duration = {};
  12196. duration.ms = diffRes.milliseconds;
  12197. duration.M = diffRes.months;
  12198. }
  12199. ret = new Duration(duration);
  12200. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  12201. ret._locale = input._locale;
  12202. }
  12203. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  12204. ret._isValid = input._isValid;
  12205. }
  12206. return ret;
  12207. }
  12208. createDuration.fn = Duration.prototype;
  12209. createDuration.invalid = createInvalid$1;
  12210. function parseIso(inp, sign) {
  12211. // We'd normally use ~~inp for this, but unfortunately it also
  12212. // converts floats to ints.
  12213. // inp may be undefined, so careful calling replace on it.
  12214. var res = inp && parseFloat(inp.replace(',', '.'));
  12215. // apply sign while we're at it
  12216. return (isNaN(res) ? 0 : res) * sign;
  12217. }
  12218. function positiveMomentsDifference(base, other) {
  12219. var res = {};
  12220. res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
  12221. if (base.clone().add(res.months, 'M').isAfter(other)) {
  12222. --res.months;
  12223. }
  12224. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  12225. return res;
  12226. }
  12227. function momentsDifference(base, other) {
  12228. var res;
  12229. if (!(base.isValid() && other.isValid())) {
  12230. return {
  12231. milliseconds: 0,
  12232. months: 0
  12233. };
  12234. }
  12235. other = cloneWithOffset(other, base);
  12236. if (base.isBefore(other)) {
  12237. res = positiveMomentsDifference(base, other);
  12238. } else {
  12239. res = positiveMomentsDifference(other, base);
  12240. res.milliseconds = -res.milliseconds;
  12241. res.months = -res.months;
  12242. }
  12243. return res;
  12244. }
  12245. // TODO: remove 'name' arg after deprecation is removed
  12246. function createAdder(direction, name) {
  12247. return function (val, period) {
  12248. var dur, tmp;
  12249. //invert the arguments, but complain about it
  12250. if (period !== null && !isNaN(+period)) {
  12251. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  12252. tmp = val;
  12253. val = period;
  12254. period = tmp;
  12255. }
  12256. dur = createDuration(val, period);
  12257. addSubtract(this, dur, direction);
  12258. return this;
  12259. };
  12260. }
  12261. function addSubtract(mom, duration, isAdding, updateOffset) {
  12262. var milliseconds = duration._milliseconds,
  12263. days = absRound(duration._days),
  12264. months = absRound(duration._months);
  12265. if (!mom.isValid()) {
  12266. // No op
  12267. return;
  12268. }
  12269. updateOffset = updateOffset == null ? true : updateOffset;
  12270. if (months) {
  12271. setMonth(mom, get(mom, 'Month') + months * isAdding);
  12272. }
  12273. if (days) {
  12274. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  12275. }
  12276. if (milliseconds) {
  12277. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  12278. }
  12279. if (updateOffset) {
  12280. hooks.updateOffset(mom, days || months);
  12281. }
  12282. }
  12283. var add = createAdder(1, 'add'),
  12284. subtract = createAdder(-1, 'subtract');
  12285. function isString(input) {
  12286. return typeof input === 'string' || input instanceof String;
  12287. }
  12288. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  12289. function isMomentInput(input) {
  12290. return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;
  12291. }
  12292. function isMomentInputObject(input) {
  12293. var objectTest = isObject(input) && !isObjectEmpty(input),
  12294. propertyTest = false,
  12295. properties = ['years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms'],
  12296. i,
  12297. property,
  12298. propertyLen = properties.length;
  12299. for (i = 0; i < propertyLen; i += 1) {
  12300. property = properties[i];
  12301. propertyTest = propertyTest || hasOwnProp(input, property);
  12302. }
  12303. return objectTest && propertyTest;
  12304. }
  12305. function isNumberOrStringArray(input) {
  12306. var arrayTest = isArray(input),
  12307. dataTypeTest = false;
  12308. if (arrayTest) {
  12309. dataTypeTest = input.filter(function (item) {
  12310. return !isNumber(item) && isString(input);
  12311. }).length === 0;
  12312. }
  12313. return arrayTest && dataTypeTest;
  12314. }
  12315. function isCalendarSpec(input) {
  12316. var objectTest = isObject(input) && !isObjectEmpty(input),
  12317. propertyTest = false,
  12318. properties = ['sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse'],
  12319. i,
  12320. property;
  12321. for (i = 0; i < properties.length; i += 1) {
  12322. property = properties[i];
  12323. propertyTest = propertyTest || hasOwnProp(input, property);
  12324. }
  12325. return objectTest && propertyTest;
  12326. }
  12327. function getCalendarFormat(myMoment, now) {
  12328. var diff = myMoment.diff(now, 'days', true);
  12329. return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';
  12330. }
  12331. function calendar$1(time, formats) {
  12332. // Support for single parameter, formats only overload to the calendar function
  12333. if (arguments.length === 1) {
  12334. if (!arguments[0]) {
  12335. time = undefined;
  12336. formats = undefined;
  12337. } else if (isMomentInput(arguments[0])) {
  12338. time = arguments[0];
  12339. formats = undefined;
  12340. } else if (isCalendarSpec(arguments[0])) {
  12341. formats = arguments[0];
  12342. time = undefined;
  12343. }
  12344. }
  12345. // We want to compare the start of today, vs this.
  12346. // Getting start-of-today depends on whether we're local/utc/offset or not.
  12347. var now = time || createLocal(),
  12348. sod = cloneWithOffset(now, this).startOf('day'),
  12349. format = hooks.calendarFormat(this, sod) || 'sameElse',
  12350. output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  12351. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  12352. }
  12353. function clone() {
  12354. return new Moment(this);
  12355. }
  12356. function isAfter(input, units) {
  12357. var localInput = isMoment(input) ? input : createLocal(input);
  12358. if (!(this.isValid() && localInput.isValid())) {
  12359. return false;
  12360. }
  12361. units = normalizeUnits(units) || 'millisecond';
  12362. if (units === 'millisecond') {
  12363. return this.valueOf() > localInput.valueOf();
  12364. } else {
  12365. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  12366. }
  12367. }
  12368. function isBefore(input, units) {
  12369. var localInput = isMoment(input) ? input : createLocal(input);
  12370. if (!(this.isValid() && localInput.isValid())) {
  12371. return false;
  12372. }
  12373. units = normalizeUnits(units) || 'millisecond';
  12374. if (units === 'millisecond') {
  12375. return this.valueOf() < localInput.valueOf();
  12376. } else {
  12377. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  12378. }
  12379. }
  12380. function isBetween(from, to, units, inclusivity) {
  12381. var localFrom = isMoment(from) ? from : createLocal(from),
  12382. localTo = isMoment(to) ? to : createLocal(to);
  12383. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  12384. return false;
  12385. }
  12386. inclusivity = inclusivity || '()';
  12387. return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
  12388. }
  12389. function isSame(input, units) {
  12390. var localInput = isMoment(input) ? input : createLocal(input),
  12391. inputMs;
  12392. if (!(this.isValid() && localInput.isValid())) {
  12393. return false;
  12394. }
  12395. units = normalizeUnits(units) || 'millisecond';
  12396. if (units === 'millisecond') {
  12397. return this.valueOf() === localInput.valueOf();
  12398. } else {
  12399. inputMs = localInput.valueOf();
  12400. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  12401. }
  12402. }
  12403. function isSameOrAfter(input, units) {
  12404. return this.isSame(input, units) || this.isAfter(input, units);
  12405. }
  12406. function isSameOrBefore(input, units) {
  12407. return this.isSame(input, units) || this.isBefore(input, units);
  12408. }
  12409. function diff(input, units, asFloat) {
  12410. var that, zoneDelta, output;
  12411. if (!this.isValid()) {
  12412. return NaN;
  12413. }
  12414. that = cloneWithOffset(input, this);
  12415. if (!that.isValid()) {
  12416. return NaN;
  12417. }
  12418. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  12419. units = normalizeUnits(units);
  12420. switch (units) {
  12421. case 'year':
  12422. output = monthDiff(this, that) / 12;
  12423. break;
  12424. case 'month':
  12425. output = monthDiff(this, that);
  12426. break;
  12427. case 'quarter':
  12428. output = monthDiff(this, that) / 3;
  12429. break;
  12430. case 'second':
  12431. output = (this - that) / 1e3;
  12432. break;
  12433. // 1000
  12434. case 'minute':
  12435. output = (this - that) / 6e4;
  12436. break;
  12437. // 1000 * 60
  12438. case 'hour':
  12439. output = (this - that) / 36e5;
  12440. break;
  12441. // 1000 * 60 * 60
  12442. case 'day':
  12443. output = (this - that - zoneDelta) / 864e5;
  12444. break;
  12445. // 1000 * 60 * 60 * 24, negate dst
  12446. case 'week':
  12447. output = (this - that - zoneDelta) / 6048e5;
  12448. break;
  12449. // 1000 * 60 * 60 * 24 * 7, negate dst
  12450. default:
  12451. output = this - that;
  12452. }
  12453. return asFloat ? output : absFloor(output);
  12454. }
  12455. function monthDiff(a, b) {
  12456. if (a.date() < b.date()) {
  12457. // end-of-month calculations work correct when the start month has more
  12458. // days than the end month.
  12459. return -monthDiff(b, a);
  12460. }
  12461. // difference in months
  12462. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  12463. // b is in (anchor - 1 month, anchor + 1 month)
  12464. anchor = a.clone().add(wholeMonthDiff, 'months'),
  12465. anchor2,
  12466. adjust;
  12467. if (b - anchor < 0) {
  12468. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  12469. // linear across the month
  12470. adjust = (b - anchor) / (anchor - anchor2);
  12471. } else {
  12472. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  12473. // linear across the month
  12474. adjust = (b - anchor) / (anchor2 - anchor);
  12475. }
  12476. //check for negative zero, return zero if negative zero
  12477. return -(wholeMonthDiff + adjust) || 0;
  12478. }
  12479. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  12480. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  12481. function toString() {
  12482. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  12483. }
  12484. function toISOString(keepOffset) {
  12485. if (!this.isValid()) {
  12486. return null;
  12487. }
  12488. var utc = keepOffset !== true,
  12489. m = utc ? this.clone().utc() : this;
  12490. if (m.year() < 0 || m.year() > 9999) {
  12491. return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12492. }
  12493. if (isFunction(Date.prototype.toISOString)) {
  12494. // native implementation is ~50x faster, use it when we can
  12495. if (utc) {
  12496. return this.toDate().toISOString();
  12497. } else {
  12498. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
  12499. }
  12500. }
  12501. return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
  12502. }
  12503. /**
  12504. * Return a human readable representation of a moment that can
  12505. * also be evaluated to get a new moment which is the same
  12506. *
  12507. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  12508. */
  12509. function inspect() {
  12510. if (!this.isValid()) {
  12511. return 'moment.invalid(/* ' + this._i + ' */)';
  12512. }
  12513. var func = 'moment',
  12514. zone = '',
  12515. prefix,
  12516. year,
  12517. datetime,
  12518. suffix;
  12519. if (!this.isLocal()) {
  12520. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  12521. zone = 'Z';
  12522. }
  12523. prefix = '[' + func + '("]';
  12524. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  12525. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  12526. suffix = zone + '[")]';
  12527. return this.format(prefix + year + datetime + suffix);
  12528. }
  12529. function format(inputString) {
  12530. if (!inputString) {
  12531. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  12532. }
  12533. var output = formatMoment(this, inputString);
  12534. return this.localeData().postformat(output);
  12535. }
  12536. function from(time, withoutSuffix) {
  12537. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  12538. return createDuration({
  12539. to: this,
  12540. from: time
  12541. }).locale(this.locale()).humanize(!withoutSuffix);
  12542. } else {
  12543. return this.localeData().invalidDate();
  12544. }
  12545. }
  12546. function fromNow(withoutSuffix) {
  12547. return this.from(createLocal(), withoutSuffix);
  12548. }
  12549. function to(time, withoutSuffix) {
  12550. if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
  12551. return createDuration({
  12552. from: this,
  12553. to: time
  12554. }).locale(this.locale()).humanize(!withoutSuffix);
  12555. } else {
  12556. return this.localeData().invalidDate();
  12557. }
  12558. }
  12559. function toNow(withoutSuffix) {
  12560. return this.to(createLocal(), withoutSuffix);
  12561. }
  12562. // If passed a locale key, it will set the locale for this
  12563. // instance. Otherwise, it will return the locale configuration
  12564. // variables for this instance.
  12565. function locale(key) {
  12566. var newLocaleData;
  12567. if (key === undefined) {
  12568. return this._locale._abbr;
  12569. } else {
  12570. newLocaleData = getLocale(key);
  12571. if (newLocaleData != null) {
  12572. this._locale = newLocaleData;
  12573. }
  12574. return this;
  12575. }
  12576. }
  12577. var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {
  12578. if (key === undefined) {
  12579. return this.localeData();
  12580. } else {
  12581. return this.locale(key);
  12582. }
  12583. });
  12584. function localeData() {
  12585. return this._locale;
  12586. }
  12587. var MS_PER_SECOND = 1000,
  12588. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  12589. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  12590. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  12591. // actual modulo - handles negative numbers (for dates before 1970):
  12592. function mod$1(dividend, divisor) {
  12593. return (dividend % divisor + divisor) % divisor;
  12594. }
  12595. function localStartOfDate(y, m, d) {
  12596. // the date constructor remaps years 0-99 to 1900-1999
  12597. if (y < 100 && y >= 0) {
  12598. // preserve leap years using a full 400 year cycle, then reset
  12599. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  12600. } else {
  12601. return new Date(y, m, d).valueOf();
  12602. }
  12603. }
  12604. function utcStartOfDate(y, m, d) {
  12605. // Date.UTC remaps years 0-99 to 1900-1999
  12606. if (y < 100 && y >= 0) {
  12607. // preserve leap years using a full 400 year cycle, then reset
  12608. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  12609. } else {
  12610. return Date.UTC(y, m, d);
  12611. }
  12612. }
  12613. function startOf(units) {
  12614. var time, startOfDate;
  12615. units = normalizeUnits(units);
  12616. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12617. return this;
  12618. }
  12619. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12620. switch (units) {
  12621. case 'year':
  12622. time = startOfDate(this.year(), 0, 1);
  12623. break;
  12624. case 'quarter':
  12625. time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
  12626. break;
  12627. case 'month':
  12628. time = startOfDate(this.year(), this.month(), 1);
  12629. break;
  12630. case 'week':
  12631. time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
  12632. break;
  12633. case 'isoWeek':
  12634. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  12635. break;
  12636. case 'day':
  12637. case 'date':
  12638. time = startOfDate(this.year(), this.month(), this.date());
  12639. break;
  12640. case 'hour':
  12641. time = this._d.valueOf();
  12642. time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
  12643. break;
  12644. case 'minute':
  12645. time = this._d.valueOf();
  12646. time -= mod$1(time, MS_PER_MINUTE);
  12647. break;
  12648. case 'second':
  12649. time = this._d.valueOf();
  12650. time -= mod$1(time, MS_PER_SECOND);
  12651. break;
  12652. }
  12653. this._d.setTime(time);
  12654. hooks.updateOffset(this, true);
  12655. return this;
  12656. }
  12657. function endOf(units) {
  12658. var time, startOfDate;
  12659. units = normalizeUnits(units);
  12660. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  12661. return this;
  12662. }
  12663. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  12664. switch (units) {
  12665. case 'year':
  12666. time = startOfDate(this.year() + 1, 0, 1) - 1;
  12667. break;
  12668. case 'quarter':
  12669. time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  12670. break;
  12671. case 'month':
  12672. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  12673. break;
  12674. case 'week':
  12675. time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  12676. break;
  12677. case 'isoWeek':
  12678. time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
  12679. break;
  12680. case 'day':
  12681. case 'date':
  12682. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  12683. break;
  12684. case 'hour':
  12685. time = this._d.valueOf();
  12686. time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
  12687. break;
  12688. case 'minute':
  12689. time = this._d.valueOf();
  12690. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  12691. break;
  12692. case 'second':
  12693. time = this._d.valueOf();
  12694. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  12695. break;
  12696. }
  12697. this._d.setTime(time);
  12698. hooks.updateOffset(this, true);
  12699. return this;
  12700. }
  12701. function valueOf() {
  12702. return this._d.valueOf() - (this._offset || 0) * 60000;
  12703. }
  12704. function unix() {
  12705. return Math.floor(this.valueOf() / 1000);
  12706. }
  12707. function toDate() {
  12708. return new Date(this.valueOf());
  12709. }
  12710. function toArray() {
  12711. var m = this;
  12712. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  12713. }
  12714. function toObject() {
  12715. var m = this;
  12716. return {
  12717. years: m.year(),
  12718. months: m.month(),
  12719. date: m.date(),
  12720. hours: m.hours(),
  12721. minutes: m.minutes(),
  12722. seconds: m.seconds(),
  12723. milliseconds: m.milliseconds()
  12724. };
  12725. }
  12726. function toJSON() {
  12727. // new Date(NaN).toJSON() === null
  12728. return this.isValid() ? this.toISOString() : null;
  12729. }
  12730. function isValid$2() {
  12731. return isValid(this);
  12732. }
  12733. function parsingFlags() {
  12734. return extend({}, getParsingFlags(this));
  12735. }
  12736. function invalidAt() {
  12737. return getParsingFlags(this).overflow;
  12738. }
  12739. function creationData() {
  12740. return {
  12741. input: this._i,
  12742. format: this._f,
  12743. locale: this._locale,
  12744. isUTC: this._isUTC,
  12745. strict: this._strict
  12746. };
  12747. }
  12748. addFormatToken('N', 0, 0, 'eraAbbr');
  12749. addFormatToken('NN', 0, 0, 'eraAbbr');
  12750. addFormatToken('NNN', 0, 0, 'eraAbbr');
  12751. addFormatToken('NNNN', 0, 0, 'eraName');
  12752. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  12753. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  12754. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  12755. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  12756. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  12757. addRegexToken('N', matchEraAbbr);
  12758. addRegexToken('NN', matchEraAbbr);
  12759. addRegexToken('NNN', matchEraAbbr);
  12760. addRegexToken('NNNN', matchEraName);
  12761. addRegexToken('NNNNN', matchEraNarrow);
  12762. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (input, array, config, token) {
  12763. var era = config._locale.erasParse(input, token, config._strict);
  12764. if (era) {
  12765. getParsingFlags(config).era = era;
  12766. } else {
  12767. getParsingFlags(config).invalidEra = input;
  12768. }
  12769. });
  12770. addRegexToken('y', matchUnsigned);
  12771. addRegexToken('yy', matchUnsigned);
  12772. addRegexToken('yyy', matchUnsigned);
  12773. addRegexToken('yyyy', matchUnsigned);
  12774. addRegexToken('yo', matchEraYearOrdinal);
  12775. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  12776. addParseToken(['yo'], function (input, array, config, token) {
  12777. var match;
  12778. if (config._locale._eraYearOrdinalRegex) {
  12779. match = input.match(config._locale._eraYearOrdinalRegex);
  12780. }
  12781. if (config._locale.eraYearOrdinalParse) {
  12782. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  12783. } else {
  12784. array[YEAR] = parseInt(input, 10);
  12785. }
  12786. });
  12787. function localeEras(m, format) {
  12788. var i,
  12789. l,
  12790. date,
  12791. eras = this._eras || getLocale('en')._eras;
  12792. for (i = 0, l = eras.length; i < l; ++i) {
  12793. switch (_typeof(eras[i].since)) {
  12794. case 'string':
  12795. // truncate time
  12796. date = hooks(eras[i].since).startOf('day');
  12797. eras[i].since = date.valueOf();
  12798. break;
  12799. }
  12800. switch (_typeof(eras[i].until)) {
  12801. case 'undefined':
  12802. eras[i].until = +Infinity;
  12803. break;
  12804. case 'string':
  12805. // truncate time
  12806. date = hooks(eras[i].until).startOf('day').valueOf();
  12807. eras[i].until = date.valueOf();
  12808. break;
  12809. }
  12810. }
  12811. return eras;
  12812. }
  12813. function localeErasParse(eraName, format, strict) {
  12814. var i,
  12815. l,
  12816. eras = this.eras(),
  12817. name,
  12818. abbr,
  12819. narrow;
  12820. eraName = eraName.toUpperCase();
  12821. for (i = 0, l = eras.length; i < l; ++i) {
  12822. name = eras[i].name.toUpperCase();
  12823. abbr = eras[i].abbr.toUpperCase();
  12824. narrow = eras[i].narrow.toUpperCase();
  12825. if (strict) {
  12826. switch (format) {
  12827. case 'N':
  12828. case 'NN':
  12829. case 'NNN':
  12830. if (abbr === eraName) {
  12831. return eras[i];
  12832. }
  12833. break;
  12834. case 'NNNN':
  12835. if (name === eraName) {
  12836. return eras[i];
  12837. }
  12838. break;
  12839. case 'NNNNN':
  12840. if (narrow === eraName) {
  12841. return eras[i];
  12842. }
  12843. break;
  12844. }
  12845. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  12846. return eras[i];
  12847. }
  12848. }
  12849. }
  12850. function localeErasConvertYear(era, year) {
  12851. var dir = era.since <= era.until ? +1 : -1;
  12852. if (year === undefined) {
  12853. return hooks(era.since).year();
  12854. } else {
  12855. return hooks(era.since).year() + (year - era.offset) * dir;
  12856. }
  12857. }
  12858. function getEraName() {
  12859. var i,
  12860. l,
  12861. val,
  12862. eras = this.localeData().eras();
  12863. for (i = 0, l = eras.length; i < l; ++i) {
  12864. // truncate time
  12865. val = this.clone().startOf('day').valueOf();
  12866. if (eras[i].since <= val && val <= eras[i].until) {
  12867. return eras[i].name;
  12868. }
  12869. if (eras[i].until <= val && val <= eras[i].since) {
  12870. return eras[i].name;
  12871. }
  12872. }
  12873. return '';
  12874. }
  12875. function getEraNarrow() {
  12876. var i,
  12877. l,
  12878. val,
  12879. eras = this.localeData().eras();
  12880. for (i = 0, l = eras.length; i < l; ++i) {
  12881. // truncate time
  12882. val = this.clone().startOf('day').valueOf();
  12883. if (eras[i].since <= val && val <= eras[i].until) {
  12884. return eras[i].narrow;
  12885. }
  12886. if (eras[i].until <= val && val <= eras[i].since) {
  12887. return eras[i].narrow;
  12888. }
  12889. }
  12890. return '';
  12891. }
  12892. function getEraAbbr() {
  12893. var i,
  12894. l,
  12895. val,
  12896. eras = this.localeData().eras();
  12897. for (i = 0, l = eras.length; i < l; ++i) {
  12898. // truncate time
  12899. val = this.clone().startOf('day').valueOf();
  12900. if (eras[i].since <= val && val <= eras[i].until) {
  12901. return eras[i].abbr;
  12902. }
  12903. if (eras[i].until <= val && val <= eras[i].since) {
  12904. return eras[i].abbr;
  12905. }
  12906. }
  12907. return '';
  12908. }
  12909. function getEraYear() {
  12910. var i,
  12911. l,
  12912. dir,
  12913. val,
  12914. eras = this.localeData().eras();
  12915. for (i = 0, l = eras.length; i < l; ++i) {
  12916. dir = eras[i].since <= eras[i].until ? +1 : -1;
  12917. // truncate time
  12918. val = this.clone().startOf('day').valueOf();
  12919. if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
  12920. return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
  12921. }
  12922. }
  12923. return this.year();
  12924. }
  12925. function erasNameRegex(isStrict) {
  12926. if (!hasOwnProp(this, '_erasNameRegex')) {
  12927. computeErasParse.call(this);
  12928. }
  12929. return isStrict ? this._erasNameRegex : this._erasRegex;
  12930. }
  12931. function erasAbbrRegex(isStrict) {
  12932. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  12933. computeErasParse.call(this);
  12934. }
  12935. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  12936. }
  12937. function erasNarrowRegex(isStrict) {
  12938. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  12939. computeErasParse.call(this);
  12940. }
  12941. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  12942. }
  12943. function matchEraAbbr(isStrict, locale) {
  12944. return locale.erasAbbrRegex(isStrict);
  12945. }
  12946. function matchEraName(isStrict, locale) {
  12947. return locale.erasNameRegex(isStrict);
  12948. }
  12949. function matchEraNarrow(isStrict, locale) {
  12950. return locale.erasNarrowRegex(isStrict);
  12951. }
  12952. function matchEraYearOrdinal(isStrict, locale) {
  12953. return locale._eraYearOrdinalRegex || matchUnsigned;
  12954. }
  12955. function computeErasParse() {
  12956. var abbrPieces = [],
  12957. namePieces = [],
  12958. narrowPieces = [],
  12959. mixedPieces = [],
  12960. i,
  12961. l,
  12962. eras = this.eras();
  12963. for (i = 0, l = eras.length; i < l; ++i) {
  12964. namePieces.push(regexEscape(eras[i].name));
  12965. abbrPieces.push(regexEscape(eras[i].abbr));
  12966. narrowPieces.push(regexEscape(eras[i].narrow));
  12967. mixedPieces.push(regexEscape(eras[i].name));
  12968. mixedPieces.push(regexEscape(eras[i].abbr));
  12969. mixedPieces.push(regexEscape(eras[i].narrow));
  12970. }
  12971. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  12972. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  12973. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  12974. this._erasNarrowRegex = new RegExp('^(' + narrowPieces.join('|') + ')', 'i');
  12975. }
  12976. // FORMATTING
  12977. addFormatToken(0, ['gg', 2], 0, function () {
  12978. return this.weekYear() % 100;
  12979. });
  12980. addFormatToken(0, ['GG', 2], 0, function () {
  12981. return this.isoWeekYear() % 100;
  12982. });
  12983. function addWeekYearFormatToken(token, getter) {
  12984. addFormatToken(0, [token, token.length], 0, getter);
  12985. }
  12986. addWeekYearFormatToken('gggg', 'weekYear');
  12987. addWeekYearFormatToken('ggggg', 'weekYear');
  12988. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  12989. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  12990. // ALIASES
  12991. addUnitAlias('weekYear', 'gg');
  12992. addUnitAlias('isoWeekYear', 'GG');
  12993. // PRIORITY
  12994. addUnitPriority('weekYear', 1);
  12995. addUnitPriority('isoWeekYear', 1);
  12996. // PARSING
  12997. addRegexToken('G', matchSigned);
  12998. addRegexToken('g', matchSigned);
  12999. addRegexToken('GG', match1to2, match2);
  13000. addRegexToken('gg', match1to2, match2);
  13001. addRegexToken('GGGG', match1to4, match4);
  13002. addRegexToken('gggg', match1to4, match4);
  13003. addRegexToken('GGGGG', match1to6, match6);
  13004. addRegexToken('ggggg', match1to6, match6);
  13005. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  13006. week[token.substr(0, 2)] = toInt(input);
  13007. });
  13008. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  13009. week[token] = hooks.parseTwoDigitYear(input);
  13010. });
  13011. // MOMENTS
  13012. function getSetWeekYear(input) {
  13013. return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
  13014. }
  13015. function getSetISOWeekYear(input) {
  13016. return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
  13017. }
  13018. function getISOWeeksInYear() {
  13019. return weeksInYear(this.year(), 1, 4);
  13020. }
  13021. function getISOWeeksInISOWeekYear() {
  13022. return weeksInYear(this.isoWeekYear(), 1, 4);
  13023. }
  13024. function getWeeksInYear() {
  13025. var weekInfo = this.localeData()._week;
  13026. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  13027. }
  13028. function getWeeksInWeekYear() {
  13029. var weekInfo = this.localeData()._week;
  13030. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  13031. }
  13032. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  13033. var weeksTarget;
  13034. if (input == null) {
  13035. return weekOfYear(this, dow, doy).year;
  13036. } else {
  13037. weeksTarget = weeksInYear(input, dow, doy);
  13038. if (week > weeksTarget) {
  13039. week = weeksTarget;
  13040. }
  13041. return setWeekAll.call(this, input, week, weekday, dow, doy);
  13042. }
  13043. }
  13044. function setWeekAll(weekYear, week, weekday, dow, doy) {
  13045. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  13046. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  13047. this.year(date.getUTCFullYear());
  13048. this.month(date.getUTCMonth());
  13049. this.date(date.getUTCDate());
  13050. return this;
  13051. }
  13052. // FORMATTING
  13053. addFormatToken('Q', 0, 'Qo', 'quarter');
  13054. // ALIASES
  13055. addUnitAlias('quarter', 'Q');
  13056. // PRIORITY
  13057. addUnitPriority('quarter', 7);
  13058. // PARSING
  13059. addRegexToken('Q', match1);
  13060. addParseToken('Q', function (input, array) {
  13061. array[MONTH] = (toInt(input) - 1) * 3;
  13062. });
  13063. // MOMENTS
  13064. function getSetQuarter(input) {
  13065. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  13066. }
  13067. // FORMATTING
  13068. addFormatToken('D', ['DD', 2], 'Do', 'date');
  13069. // ALIASES
  13070. addUnitAlias('date', 'D');
  13071. // PRIORITY
  13072. addUnitPriority('date', 9);
  13073. // PARSING
  13074. addRegexToken('D', match1to2);
  13075. addRegexToken('DD', match1to2, match2);
  13076. addRegexToken('Do', function (isStrict, locale) {
  13077. // TODO: Remove "ordinalParse" fallback in next major release.
  13078. return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
  13079. });
  13080. addParseToken(['D', 'DD'], DATE);
  13081. addParseToken('Do', function (input, array) {
  13082. array[DATE] = toInt(input.match(match1to2)[0]);
  13083. });
  13084. // MOMENTS
  13085. var getSetDayOfMonth = makeGetSet('Date', true);
  13086. // FORMATTING
  13087. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  13088. // ALIASES
  13089. addUnitAlias('dayOfYear', 'DDD');
  13090. // PRIORITY
  13091. addUnitPriority('dayOfYear', 4);
  13092. // PARSING
  13093. addRegexToken('DDD', match1to3);
  13094. addRegexToken('DDDD', match3);
  13095. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  13096. config._dayOfYear = toInt(input);
  13097. });
  13098. // HELPERS
  13099. // MOMENTS
  13100. function getSetDayOfYear(input) {
  13101. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  13102. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  13103. }
  13104. // FORMATTING
  13105. addFormatToken('m', ['mm', 2], 0, 'minute');
  13106. // ALIASES
  13107. addUnitAlias('minute', 'm');
  13108. // PRIORITY
  13109. addUnitPriority('minute', 14);
  13110. // PARSING
  13111. addRegexToken('m', match1to2);
  13112. addRegexToken('mm', match1to2, match2);
  13113. addParseToken(['m', 'mm'], MINUTE);
  13114. // MOMENTS
  13115. var getSetMinute = makeGetSet('Minutes', false);
  13116. // FORMATTING
  13117. addFormatToken('s', ['ss', 2], 0, 'second');
  13118. // ALIASES
  13119. addUnitAlias('second', 's');
  13120. // PRIORITY
  13121. addUnitPriority('second', 15);
  13122. // PARSING
  13123. addRegexToken('s', match1to2);
  13124. addRegexToken('ss', match1to2, match2);
  13125. addParseToken(['s', 'ss'], SECOND);
  13126. // MOMENTS
  13127. var getSetSecond = makeGetSet('Seconds', false);
  13128. // FORMATTING
  13129. addFormatToken('S', 0, 0, function () {
  13130. return ~~(this.millisecond() / 100);
  13131. });
  13132. addFormatToken(0, ['SS', 2], 0, function () {
  13133. return ~~(this.millisecond() / 10);
  13134. });
  13135. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  13136. addFormatToken(0, ['SSSS', 4], 0, function () {
  13137. return this.millisecond() * 10;
  13138. });
  13139. addFormatToken(0, ['SSSSS', 5], 0, function () {
  13140. return this.millisecond() * 100;
  13141. });
  13142. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  13143. return this.millisecond() * 1000;
  13144. });
  13145. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  13146. return this.millisecond() * 10000;
  13147. });
  13148. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  13149. return this.millisecond() * 100000;
  13150. });
  13151. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  13152. return this.millisecond() * 1000000;
  13153. });
  13154. // ALIASES
  13155. addUnitAlias('millisecond', 'ms');
  13156. // PRIORITY
  13157. addUnitPriority('millisecond', 16);
  13158. // PARSING
  13159. addRegexToken('S', match1to3, match1);
  13160. addRegexToken('SS', match1to3, match2);
  13161. addRegexToken('SSS', match1to3, match3);
  13162. var token, getSetMillisecond;
  13163. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  13164. addRegexToken(token, matchUnsigned);
  13165. }
  13166. function parseMs(input, array) {
  13167. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  13168. }
  13169. for (token = 'S'; token.length <= 9; token += 'S') {
  13170. addParseToken(token, parseMs);
  13171. }
  13172. getSetMillisecond = makeGetSet('Milliseconds', false);
  13173. // FORMATTING
  13174. addFormatToken('z', 0, 0, 'zoneAbbr');
  13175. addFormatToken('zz', 0, 0, 'zoneName');
  13176. // MOMENTS
  13177. function getZoneAbbr() {
  13178. return this._isUTC ? 'UTC' : '';
  13179. }
  13180. function getZoneName() {
  13181. return this._isUTC ? 'Coordinated Universal Time' : '';
  13182. }
  13183. var proto = Moment.prototype;
  13184. proto.add = add;
  13185. proto.calendar = calendar$1;
  13186. proto.clone = clone;
  13187. proto.diff = diff;
  13188. proto.endOf = endOf;
  13189. proto.format = format;
  13190. proto.from = from;
  13191. proto.fromNow = fromNow;
  13192. proto.to = to;
  13193. proto.toNow = toNow;
  13194. proto.get = stringGet;
  13195. proto.invalidAt = invalidAt;
  13196. proto.isAfter = isAfter;
  13197. proto.isBefore = isBefore;
  13198. proto.isBetween = isBetween;
  13199. proto.isSame = isSame;
  13200. proto.isSameOrAfter = isSameOrAfter;
  13201. proto.isSameOrBefore = isSameOrBefore;
  13202. proto.isValid = isValid$2;
  13203. proto.lang = lang;
  13204. proto.locale = locale;
  13205. proto.localeData = localeData;
  13206. proto.max = prototypeMax;
  13207. proto.min = prototypeMin;
  13208. proto.parsingFlags = parsingFlags;
  13209. proto.set = stringSet;
  13210. proto.startOf = startOf;
  13211. proto.subtract = subtract;
  13212. proto.toArray = toArray;
  13213. proto.toObject = toObject;
  13214. proto.toDate = toDate;
  13215. proto.toISOString = toISOString;
  13216. proto.inspect = inspect;
  13217. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  13218. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  13219. return 'Moment<' + this.format() + '>';
  13220. };
  13221. }
  13222. proto.toJSON = toJSON;
  13223. proto.toString = toString;
  13224. proto.unix = unix;
  13225. proto.valueOf = valueOf;
  13226. proto.creationData = creationData;
  13227. proto.eraName = getEraName;
  13228. proto.eraNarrow = getEraNarrow;
  13229. proto.eraAbbr = getEraAbbr;
  13230. proto.eraYear = getEraYear;
  13231. proto.year = getSetYear;
  13232. proto.isLeapYear = getIsLeapYear;
  13233. proto.weekYear = getSetWeekYear;
  13234. proto.isoWeekYear = getSetISOWeekYear;
  13235. proto.quarter = proto.quarters = getSetQuarter;
  13236. proto.month = getSetMonth;
  13237. proto.daysInMonth = getDaysInMonth;
  13238. proto.week = proto.weeks = getSetWeek;
  13239. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  13240. proto.weeksInYear = getWeeksInYear;
  13241. proto.weeksInWeekYear = getWeeksInWeekYear;
  13242. proto.isoWeeksInYear = getISOWeeksInYear;
  13243. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  13244. proto.date = getSetDayOfMonth;
  13245. proto.day = proto.days = getSetDayOfWeek;
  13246. proto.weekday = getSetLocaleDayOfWeek;
  13247. proto.isoWeekday = getSetISODayOfWeek;
  13248. proto.dayOfYear = getSetDayOfYear;
  13249. proto.hour = proto.hours = getSetHour;
  13250. proto.minute = proto.minutes = getSetMinute;
  13251. proto.second = proto.seconds = getSetSecond;
  13252. proto.millisecond = proto.milliseconds = getSetMillisecond;
  13253. proto.utcOffset = getSetOffset;
  13254. proto.utc = setOffsetToUTC;
  13255. proto.local = setOffsetToLocal;
  13256. proto.parseZone = setOffsetToParsedOffset;
  13257. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  13258. proto.isDST = isDaylightSavingTime;
  13259. proto.isLocal = isLocal;
  13260. proto.isUtcOffset = isUtcOffset;
  13261. proto.isUtc = isUtc;
  13262. proto.isUTC = isUtc;
  13263. proto.zoneAbbr = getZoneAbbr;
  13264. proto.zoneName = getZoneName;
  13265. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  13266. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  13267. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  13268. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  13269. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  13270. function createUnix(input) {
  13271. return createLocal(input * 1000);
  13272. }
  13273. function createInZone() {
  13274. return createLocal.apply(null, arguments).parseZone();
  13275. }
  13276. function preParsePostFormat(string) {
  13277. return string;
  13278. }
  13279. var proto$1 = Locale.prototype;
  13280. proto$1.calendar = calendar;
  13281. proto$1.longDateFormat = longDateFormat;
  13282. proto$1.invalidDate = invalidDate;
  13283. proto$1.ordinal = ordinal;
  13284. proto$1.preparse = preParsePostFormat;
  13285. proto$1.postformat = preParsePostFormat;
  13286. proto$1.relativeTime = relativeTime;
  13287. proto$1.pastFuture = pastFuture;
  13288. proto$1.set = set;
  13289. proto$1.eras = localeEras;
  13290. proto$1.erasParse = localeErasParse;
  13291. proto$1.erasConvertYear = localeErasConvertYear;
  13292. proto$1.erasAbbrRegex = erasAbbrRegex;
  13293. proto$1.erasNameRegex = erasNameRegex;
  13294. proto$1.erasNarrowRegex = erasNarrowRegex;
  13295. proto$1.months = localeMonths;
  13296. proto$1.monthsShort = localeMonthsShort;
  13297. proto$1.monthsParse = localeMonthsParse;
  13298. proto$1.monthsRegex = monthsRegex;
  13299. proto$1.monthsShortRegex = monthsShortRegex;
  13300. proto$1.week = localeWeek;
  13301. proto$1.firstDayOfYear = localeFirstDayOfYear;
  13302. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  13303. proto$1.weekdays = localeWeekdays;
  13304. proto$1.weekdaysMin = localeWeekdaysMin;
  13305. proto$1.weekdaysShort = localeWeekdaysShort;
  13306. proto$1.weekdaysParse = localeWeekdaysParse;
  13307. proto$1.weekdaysRegex = weekdaysRegex;
  13308. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  13309. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  13310. proto$1.isPM = localeIsPM;
  13311. proto$1.meridiem = localeMeridiem;
  13312. function get$1(format, index, field, setter) {
  13313. var locale = getLocale(),
  13314. utc = createUTC().set(setter, index);
  13315. return locale[field](utc, format);
  13316. }
  13317. function listMonthsImpl(format, index, field) {
  13318. if (isNumber(format)) {
  13319. index = format;
  13320. format = undefined;
  13321. }
  13322. format = format || '';
  13323. if (index != null) {
  13324. return get$1(format, index, field, 'month');
  13325. }
  13326. var i,
  13327. out = [];
  13328. for (i = 0; i < 12; i++) {
  13329. out[i] = get$1(format, i, field, 'month');
  13330. }
  13331. return out;
  13332. }
  13333. // ()
  13334. // (5)
  13335. // (fmt, 5)
  13336. // (fmt)
  13337. // (true)
  13338. // (true, 5)
  13339. // (true, fmt, 5)
  13340. // (true, fmt)
  13341. function listWeekdaysImpl(localeSorted, format, index, field) {
  13342. if (typeof localeSorted === 'boolean') {
  13343. if (isNumber(format)) {
  13344. index = format;
  13345. format = undefined;
  13346. }
  13347. format = format || '';
  13348. } else {
  13349. format = localeSorted;
  13350. index = format;
  13351. localeSorted = false;
  13352. if (isNumber(format)) {
  13353. index = format;
  13354. format = undefined;
  13355. }
  13356. format = format || '';
  13357. }
  13358. var locale = getLocale(),
  13359. shift = localeSorted ? locale._week.dow : 0,
  13360. i,
  13361. out = [];
  13362. if (index != null) {
  13363. return get$1(format, (index + shift) % 7, field, 'day');
  13364. }
  13365. for (i = 0; i < 7; i++) {
  13366. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  13367. }
  13368. return out;
  13369. }
  13370. function listMonths(format, index) {
  13371. return listMonthsImpl(format, index, 'months');
  13372. }
  13373. function listMonthsShort(format, index) {
  13374. return listMonthsImpl(format, index, 'monthsShort');
  13375. }
  13376. function listWeekdays(localeSorted, format, index) {
  13377. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  13378. }
  13379. function listWeekdaysShort(localeSorted, format, index) {
  13380. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  13381. }
  13382. function listWeekdaysMin(localeSorted, format, index) {
  13383. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  13384. }
  13385. getSetGlobalLocale('en', {
  13386. eras: [{
  13387. since: '0001-01-01',
  13388. until: +Infinity,
  13389. offset: 1,
  13390. name: 'Anno Domini',
  13391. narrow: 'AD',
  13392. abbr: 'AD'
  13393. }, {
  13394. since: '0000-12-31',
  13395. until: -Infinity,
  13396. offset: 1,
  13397. name: 'Before Christ',
  13398. narrow: 'BC',
  13399. abbr: 'BC'
  13400. }],
  13401. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  13402. ordinal: function ordinal(number) {
  13403. var b = number % 10,
  13404. output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  13405. return number + output;
  13406. }
  13407. });
  13408. // Side effect imports
  13409. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  13410. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  13411. var mathAbs = Math.abs;
  13412. function abs() {
  13413. var data = this._data;
  13414. this._milliseconds = mathAbs(this._milliseconds);
  13415. this._days = mathAbs(this._days);
  13416. this._months = mathAbs(this._months);
  13417. data.milliseconds = mathAbs(data.milliseconds);
  13418. data.seconds = mathAbs(data.seconds);
  13419. data.minutes = mathAbs(data.minutes);
  13420. data.hours = mathAbs(data.hours);
  13421. data.months = mathAbs(data.months);
  13422. data.years = mathAbs(data.years);
  13423. return this;
  13424. }
  13425. function addSubtract$1(duration, input, value, direction) {
  13426. var other = createDuration(input, value);
  13427. duration._milliseconds += direction * other._milliseconds;
  13428. duration._days += direction * other._days;
  13429. duration._months += direction * other._months;
  13430. return duration._bubble();
  13431. }
  13432. // supports only 2.0-style add(1, 's') or add(duration)
  13433. function add$1(input, value) {
  13434. return addSubtract$1(this, input, value, 1);
  13435. }
  13436. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  13437. function subtract$1(input, value) {
  13438. return addSubtract$1(this, input, value, -1);
  13439. }
  13440. function absCeil(number) {
  13441. if (number < 0) {
  13442. return Math.floor(number);
  13443. } else {
  13444. return Math.ceil(number);
  13445. }
  13446. }
  13447. function bubble() {
  13448. var milliseconds = this._milliseconds,
  13449. days = this._days,
  13450. months = this._months,
  13451. data = this._data,
  13452. seconds,
  13453. minutes,
  13454. hours,
  13455. years,
  13456. monthsFromDays;
  13457. // if we have a mix of positive and negative values, bubble down first
  13458. // check: https://github.com/moment/moment/issues/2166
  13459. if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
  13460. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  13461. days = 0;
  13462. months = 0;
  13463. }
  13464. // The following code bubbles up values, see the tests for
  13465. // examples of what that means.
  13466. data.milliseconds = milliseconds % 1000;
  13467. seconds = absFloor(milliseconds / 1000);
  13468. data.seconds = seconds % 60;
  13469. minutes = absFloor(seconds / 60);
  13470. data.minutes = minutes % 60;
  13471. hours = absFloor(minutes / 60);
  13472. data.hours = hours % 24;
  13473. days += absFloor(hours / 24);
  13474. // convert days to months
  13475. monthsFromDays = absFloor(daysToMonths(days));
  13476. months += monthsFromDays;
  13477. days -= absCeil(monthsToDays(monthsFromDays));
  13478. // 12 months -> 1 year
  13479. years = absFloor(months / 12);
  13480. months %= 12;
  13481. data.days = days;
  13482. data.months = months;
  13483. data.years = years;
  13484. return this;
  13485. }
  13486. function daysToMonths(days) {
  13487. // 400 years have 146097 days (taking into account leap year rules)
  13488. // 400 years have 12 months === 4800
  13489. return days * 4800 / 146097;
  13490. }
  13491. function monthsToDays(months) {
  13492. // the reverse of daysToMonths
  13493. return months * 146097 / 4800;
  13494. }
  13495. function as(units) {
  13496. if (!this.isValid()) {
  13497. return NaN;
  13498. }
  13499. var days,
  13500. months,
  13501. milliseconds = this._milliseconds;
  13502. units = normalizeUnits(units);
  13503. if (units === 'month' || units === 'quarter' || units === 'year') {
  13504. days = this._days + milliseconds / 864e5;
  13505. months = this._months + daysToMonths(days);
  13506. switch (units) {
  13507. case 'month':
  13508. return months;
  13509. case 'quarter':
  13510. return months / 3;
  13511. case 'year':
  13512. return months / 12;
  13513. }
  13514. } else {
  13515. // handle milliseconds separately because of floating point math errors (issue #1867)
  13516. days = this._days + Math.round(monthsToDays(this._months));
  13517. switch (units) {
  13518. case 'week':
  13519. return days / 7 + milliseconds / 6048e5;
  13520. case 'day':
  13521. return days + milliseconds / 864e5;
  13522. case 'hour':
  13523. return days * 24 + milliseconds / 36e5;
  13524. case 'minute':
  13525. return days * 1440 + milliseconds / 6e4;
  13526. case 'second':
  13527. return days * 86400 + milliseconds / 1000;
  13528. // Math.floor prevents floating point math errors here
  13529. case 'millisecond':
  13530. return Math.floor(days * 864e5) + milliseconds;
  13531. default:
  13532. throw new Error('Unknown unit ' + units);
  13533. }
  13534. }
  13535. }
  13536. // TODO: Use this.as('ms')?
  13537. function valueOf$1() {
  13538. if (!this.isValid()) {
  13539. return NaN;
  13540. }
  13541. return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
  13542. }
  13543. function makeAs(alias) {
  13544. return function () {
  13545. return this.as(alias);
  13546. };
  13547. }
  13548. var asMilliseconds = makeAs('ms'),
  13549. asSeconds = makeAs('s'),
  13550. asMinutes = makeAs('m'),
  13551. asHours = makeAs('h'),
  13552. asDays = makeAs('d'),
  13553. asWeeks = makeAs('w'),
  13554. asMonths = makeAs('M'),
  13555. asQuarters = makeAs('Q'),
  13556. asYears = makeAs('y');
  13557. function clone$1() {
  13558. return createDuration(this);
  13559. }
  13560. function get$2(units) {
  13561. units = normalizeUnits(units);
  13562. return this.isValid() ? this[units + 's']() : NaN;
  13563. }
  13564. function makeGetter(name) {
  13565. return function () {
  13566. return this.isValid() ? this._data[name] : NaN;
  13567. };
  13568. }
  13569. var milliseconds = makeGetter('milliseconds'),
  13570. seconds = makeGetter('seconds'),
  13571. minutes = makeGetter('minutes'),
  13572. hours = makeGetter('hours'),
  13573. days = makeGetter('days'),
  13574. months = makeGetter('months'),
  13575. years = makeGetter('years');
  13576. function weeks() {
  13577. return absFloor(this.days() / 7);
  13578. }
  13579. var round = Math.round,
  13580. thresholds = {
  13581. ss: 44,
  13582. // a few seconds to seconds
  13583. s: 45,
  13584. // seconds to minute
  13585. m: 45,
  13586. // minutes to hour
  13587. h: 22,
  13588. // hours to day
  13589. d: 26,
  13590. // days to month/week
  13591. w: null,
  13592. // weeks to month
  13593. M: 11 // months to year
  13594. };
  13595. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  13596. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  13597. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  13598. }
  13599. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  13600. var duration = createDuration(posNegDuration).abs(),
  13601. seconds = round(duration.as('s')),
  13602. minutes = round(duration.as('m')),
  13603. hours = round(duration.as('h')),
  13604. days = round(duration.as('d')),
  13605. months = round(duration.as('M')),
  13606. weeks = round(duration.as('w')),
  13607. years = round(duration.as('y')),
  13608. a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days];
  13609. if (thresholds.w != null) {
  13610. a = a || weeks <= 1 && ['w'] || weeks < thresholds.w && ['ww', weeks];
  13611. }
  13612. a = a || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];
  13613. a[2] = withoutSuffix;
  13614. a[3] = +posNegDuration > 0;
  13615. a[4] = locale;
  13616. return substituteTimeAgo.apply(null, a);
  13617. }
  13618. // This function allows you to set the rounding function for relative time strings
  13619. function getSetRelativeTimeRounding(roundingFunction) {
  13620. if (roundingFunction === undefined) {
  13621. return round;
  13622. }
  13623. if (typeof roundingFunction === 'function') {
  13624. round = roundingFunction;
  13625. return true;
  13626. }
  13627. return false;
  13628. }
  13629. // This function allows you to set a threshold for relative time strings
  13630. function getSetRelativeTimeThreshold(threshold, limit) {
  13631. if (thresholds[threshold] === undefined) {
  13632. return false;
  13633. }
  13634. if (limit === undefined) {
  13635. return thresholds[threshold];
  13636. }
  13637. thresholds[threshold] = limit;
  13638. if (threshold === 's') {
  13639. thresholds.ss = limit - 1;
  13640. }
  13641. return true;
  13642. }
  13643. function humanize(argWithSuffix, argThresholds) {
  13644. if (!this.isValid()) {
  13645. return this.localeData().invalidDate();
  13646. }
  13647. var withSuffix = false,
  13648. th = thresholds,
  13649. locale,
  13650. output;
  13651. if (_typeof(argWithSuffix) === 'object') {
  13652. argThresholds = argWithSuffix;
  13653. argWithSuffix = false;
  13654. }
  13655. if (typeof argWithSuffix === 'boolean') {
  13656. withSuffix = argWithSuffix;
  13657. }
  13658. if (_typeof(argThresholds) === 'object') {
  13659. th = Object.assign({}, thresholds, argThresholds);
  13660. if (argThresholds.s != null && argThresholds.ss == null) {
  13661. th.ss = argThresholds.s - 1;
  13662. }
  13663. }
  13664. locale = this.localeData();
  13665. output = relativeTime$1(this, !withSuffix, th, locale);
  13666. if (withSuffix) {
  13667. output = locale.pastFuture(+this, output);
  13668. }
  13669. return locale.postformat(output);
  13670. }
  13671. var abs$1 = Math.abs;
  13672. function sign(x) {
  13673. return (x > 0) - (x < 0) || +x;
  13674. }
  13675. function toISOString$1() {
  13676. // for ISO strings we do not use the normal bubbling rules:
  13677. // * milliseconds bubble up until they become hours
  13678. // * days do not bubble at all
  13679. // * months bubble up until they become years
  13680. // This is because there is no context-free conversion between hours and days
  13681. // (think of clock changes)
  13682. // and also not between days and months (28-31 days per month)
  13683. if (!this.isValid()) {
  13684. return this.localeData().invalidDate();
  13685. }
  13686. var seconds = abs$1(this._milliseconds) / 1000,
  13687. days = abs$1(this._days),
  13688. months = abs$1(this._months),
  13689. minutes,
  13690. hours,
  13691. years,
  13692. s,
  13693. total = this.asSeconds(),
  13694. totalSign,
  13695. ymSign,
  13696. daysSign,
  13697. hmsSign;
  13698. if (!total) {
  13699. // this is the same as C#'s (Noda) and python (isodate)...
  13700. // but not other JS (goog.date)
  13701. return 'P0D';
  13702. }
  13703. // 3600 seconds -> 60 minutes -> 1 hour
  13704. minutes = absFloor(seconds / 60);
  13705. hours = absFloor(minutes / 60);
  13706. seconds %= 60;
  13707. minutes %= 60;
  13708. // 12 months -> 1 year
  13709. years = absFloor(months / 12);
  13710. months %= 12;
  13711. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  13712. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  13713. totalSign = total < 0 ? '-' : '';
  13714. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  13715. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  13716. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  13717. return totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '');
  13718. }
  13719. var proto$2 = Duration.prototype;
  13720. proto$2.isValid = isValid$1;
  13721. proto$2.abs = abs;
  13722. proto$2.add = add$1;
  13723. proto$2.subtract = subtract$1;
  13724. proto$2.as = as;
  13725. proto$2.asMilliseconds = asMilliseconds;
  13726. proto$2.asSeconds = asSeconds;
  13727. proto$2.asMinutes = asMinutes;
  13728. proto$2.asHours = asHours;
  13729. proto$2.asDays = asDays;
  13730. proto$2.asWeeks = asWeeks;
  13731. proto$2.asMonths = asMonths;
  13732. proto$2.asQuarters = asQuarters;
  13733. proto$2.asYears = asYears;
  13734. proto$2.valueOf = valueOf$1;
  13735. proto$2._bubble = bubble;
  13736. proto$2.clone = clone$1;
  13737. proto$2.get = get$2;
  13738. proto$2.milliseconds = milliseconds;
  13739. proto$2.seconds = seconds;
  13740. proto$2.minutes = minutes;
  13741. proto$2.hours = hours;
  13742. proto$2.days = days;
  13743. proto$2.weeks = weeks;
  13744. proto$2.months = months;
  13745. proto$2.years = years;
  13746. proto$2.humanize = humanize;
  13747. proto$2.toISOString = toISOString$1;
  13748. proto$2.toString = toISOString$1;
  13749. proto$2.toJSON = toISOString$1;
  13750. proto$2.locale = locale;
  13751. proto$2.localeData = localeData;
  13752. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  13753. proto$2.lang = lang;
  13754. // FORMATTING
  13755. addFormatToken('X', 0, 0, 'unix');
  13756. addFormatToken('x', 0, 0, 'valueOf');
  13757. // PARSING
  13758. addRegexToken('x', matchSigned);
  13759. addRegexToken('X', matchTimestamp);
  13760. addParseToken('X', function (input, array, config) {
  13761. config._d = new Date(parseFloat(input) * 1000);
  13762. });
  13763. addParseToken('x', function (input, array, config) {
  13764. config._d = new Date(toInt(input));
  13765. });
  13766. //! moment.js
  13767. hooks.version = '2.29.4';
  13768. setHookCallback(createLocal);
  13769. hooks.fn = proto;
  13770. hooks.min = min;
  13771. hooks.max = max;
  13772. hooks.now = now;
  13773. hooks.utc = createUTC;
  13774. hooks.unix = createUnix;
  13775. hooks.months = listMonths;
  13776. hooks.isDate = isDate;
  13777. hooks.locale = getSetGlobalLocale;
  13778. hooks.invalid = createInvalid;
  13779. hooks.duration = createDuration;
  13780. hooks.isMoment = isMoment;
  13781. hooks.weekdays = listWeekdays;
  13782. hooks.parseZone = createInZone;
  13783. hooks.localeData = getLocale;
  13784. hooks.isDuration = isDuration;
  13785. hooks.monthsShort = listMonthsShort;
  13786. hooks.weekdaysMin = listWeekdaysMin;
  13787. hooks.defineLocale = defineLocale;
  13788. hooks.updateLocale = updateLocale;
  13789. hooks.locales = listLocales;
  13790. hooks.weekdaysShort = listWeekdaysShort;
  13791. hooks.normalizeUnits = normalizeUnits;
  13792. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  13793. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  13794. hooks.calendarFormat = getCalendarFormat;
  13795. hooks.prototype = proto;
  13796. // currently HTML5 input type only supports 24-hour formats
  13797. hooks.HTML5_FMT = {
  13798. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
  13799. // <input type="datetime-local" />
  13800. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
  13801. // <input type="datetime-local" step="1" />
  13802. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
  13803. // <input type="datetime-local" step="0.001" />
  13804. DATE: 'YYYY-MM-DD',
  13805. // <input type="date" />
  13806. TIME: 'HH:mm',
  13807. // <input type="time" />
  13808. TIME_SECONDS: 'HH:mm:ss',
  13809. // <input type="time" step="1" />
  13810. TIME_MS: 'HH:mm:ss.SSS',
  13811. // <input type="time" step="0.001" />
  13812. WEEK: 'GGGG-[W]WW',
  13813. // <input type="week" />
  13814. MONTH: 'YYYY-MM' // <input type="month" />
  13815. };
  13816. return hooks;
  13817. });
  13818. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../软件/HBuilderX.3.4.14.20220607/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 40)(module)))
  13819. /***/ }),
  13820. /* 40 */
  13821. /*!***********************************!*\
  13822. !*** (webpack)/buildin/module.js ***!
  13823. \***********************************/
  13824. /*! no static exports found */
  13825. /***/ (function(module, exports) {
  13826. module.exports = function(module) {
  13827. if (!module.webpackPolyfill) {
  13828. module.deprecate = function() {};
  13829. module.paths = [];
  13830. // module.parent = undefined by default
  13831. if (!module.children) module.children = [];
  13832. Object.defineProperty(module, "loaded", {
  13833. enumerable: true,
  13834. get: function() {
  13835. return module.l;
  13836. }
  13837. });
  13838. Object.defineProperty(module, "id", {
  13839. enumerable: true,
  13840. get: function() {
  13841. return module.i;
  13842. }
  13843. });
  13844. module.webpackPolyfill = 1;
  13845. }
  13846. return module;
  13847. };
  13848. /***/ }),
  13849. /* 41 */
  13850. /*!***********************************************************************!*\
  13851. !*** D:/project/项目模板/uniapp/node_modules/moment/locale sync ^\.\/.*$ ***!
  13852. \***********************************************************************/
  13853. /*! no static exports found */
  13854. /***/ (function(module, exports, __webpack_require__) {
  13855. var map = {
  13856. "./af": 42,
  13857. "./af.js": 42,
  13858. "./ar": 43,
  13859. "./ar-dz": 44,
  13860. "./ar-dz.js": 44,
  13861. "./ar-kw": 45,
  13862. "./ar-kw.js": 45,
  13863. "./ar-ly": 46,
  13864. "./ar-ly.js": 46,
  13865. "./ar-ma": 47,
  13866. "./ar-ma.js": 47,
  13867. "./ar-sa": 48,
  13868. "./ar-sa.js": 48,
  13869. "./ar-tn": 49,
  13870. "./ar-tn.js": 49,
  13871. "./ar.js": 43,
  13872. "./az": 50,
  13873. "./az.js": 50,
  13874. "./be": 51,
  13875. "./be.js": 51,
  13876. "./bg": 52,
  13877. "./bg.js": 52,
  13878. "./bm": 53,
  13879. "./bm.js": 53,
  13880. "./bn": 54,
  13881. "./bn-bd": 55,
  13882. "./bn-bd.js": 55,
  13883. "./bn.js": 54,
  13884. "./bo": 56,
  13885. "./bo.js": 56,
  13886. "./br": 57,
  13887. "./br.js": 57,
  13888. "./bs": 58,
  13889. "./bs.js": 58,
  13890. "./ca": 59,
  13891. "./ca.js": 59,
  13892. "./cs": 60,
  13893. "./cs.js": 60,
  13894. "./cv": 61,
  13895. "./cv.js": 61,
  13896. "./cy": 62,
  13897. "./cy.js": 62,
  13898. "./da": 63,
  13899. "./da.js": 63,
  13900. "./de": 64,
  13901. "./de-at": 65,
  13902. "./de-at.js": 65,
  13903. "./de-ch": 66,
  13904. "./de-ch.js": 66,
  13905. "./de.js": 64,
  13906. "./dv": 67,
  13907. "./dv.js": 67,
  13908. "./el": 68,
  13909. "./el.js": 68,
  13910. "./en-au": 69,
  13911. "./en-au.js": 69,
  13912. "./en-ca": 70,
  13913. "./en-ca.js": 70,
  13914. "./en-gb": 71,
  13915. "./en-gb.js": 71,
  13916. "./en-ie": 72,
  13917. "./en-ie.js": 72,
  13918. "./en-il": 73,
  13919. "./en-il.js": 73,
  13920. "./en-in": 74,
  13921. "./en-in.js": 74,
  13922. "./en-nz": 75,
  13923. "./en-nz.js": 75,
  13924. "./en-sg": 76,
  13925. "./en-sg.js": 76,
  13926. "./eo": 77,
  13927. "./eo.js": 77,
  13928. "./es": 78,
  13929. "./es-do": 79,
  13930. "./es-do.js": 79,
  13931. "./es-mx": 80,
  13932. "./es-mx.js": 80,
  13933. "./es-us": 81,
  13934. "./es-us.js": 81,
  13935. "./es.js": 78,
  13936. "./et": 82,
  13937. "./et.js": 82,
  13938. "./eu": 83,
  13939. "./eu.js": 83,
  13940. "./fa": 84,
  13941. "./fa.js": 84,
  13942. "./fi": 85,
  13943. "./fi.js": 85,
  13944. "./fil": 86,
  13945. "./fil.js": 86,
  13946. "./fo": 87,
  13947. "./fo.js": 87,
  13948. "./fr": 88,
  13949. "./fr-ca": 89,
  13950. "./fr-ca.js": 89,
  13951. "./fr-ch": 90,
  13952. "./fr-ch.js": 90,
  13953. "./fr.js": 88,
  13954. "./fy": 91,
  13955. "./fy.js": 91,
  13956. "./ga": 92,
  13957. "./ga.js": 92,
  13958. "./gd": 93,
  13959. "./gd.js": 93,
  13960. "./gl": 94,
  13961. "./gl.js": 94,
  13962. "./gom-deva": 95,
  13963. "./gom-deva.js": 95,
  13964. "./gom-latn": 96,
  13965. "./gom-latn.js": 96,
  13966. "./gu": 97,
  13967. "./gu.js": 97,
  13968. "./he": 98,
  13969. "./he.js": 98,
  13970. "./hi": 99,
  13971. "./hi.js": 99,
  13972. "./hr": 100,
  13973. "./hr.js": 100,
  13974. "./hu": 101,
  13975. "./hu.js": 101,
  13976. "./hy-am": 102,
  13977. "./hy-am.js": 102,
  13978. "./id": 103,
  13979. "./id.js": 103,
  13980. "./is": 104,
  13981. "./is.js": 104,
  13982. "./it": 105,
  13983. "./it-ch": 106,
  13984. "./it-ch.js": 106,
  13985. "./it.js": 105,
  13986. "./ja": 107,
  13987. "./ja.js": 107,
  13988. "./jv": 108,
  13989. "./jv.js": 108,
  13990. "./ka": 109,
  13991. "./ka.js": 109,
  13992. "./kk": 110,
  13993. "./kk.js": 110,
  13994. "./km": 111,
  13995. "./km.js": 111,
  13996. "./kn": 112,
  13997. "./kn.js": 112,
  13998. "./ko": 113,
  13999. "./ko.js": 113,
  14000. "./ku": 114,
  14001. "./ku.js": 114,
  14002. "./ky": 115,
  14003. "./ky.js": 115,
  14004. "./lb": 116,
  14005. "./lb.js": 116,
  14006. "./lo": 117,
  14007. "./lo.js": 117,
  14008. "./lt": 118,
  14009. "./lt.js": 118,
  14010. "./lv": 119,
  14011. "./lv.js": 119,
  14012. "./me": 120,
  14013. "./me.js": 120,
  14014. "./mi": 121,
  14015. "./mi.js": 121,
  14016. "./mk": 122,
  14017. "./mk.js": 122,
  14018. "./ml": 123,
  14019. "./ml.js": 123,
  14020. "./mn": 124,
  14021. "./mn.js": 124,
  14022. "./mr": 125,
  14023. "./mr.js": 125,
  14024. "./ms": 126,
  14025. "./ms-my": 127,
  14026. "./ms-my.js": 127,
  14027. "./ms.js": 126,
  14028. "./mt": 128,
  14029. "./mt.js": 128,
  14030. "./my": 129,
  14031. "./my.js": 129,
  14032. "./nb": 130,
  14033. "./nb.js": 130,
  14034. "./ne": 131,
  14035. "./ne.js": 131,
  14036. "./nl": 132,
  14037. "./nl-be": 133,
  14038. "./nl-be.js": 133,
  14039. "./nl.js": 132,
  14040. "./nn": 134,
  14041. "./nn.js": 134,
  14042. "./oc-lnc": 135,
  14043. "./oc-lnc.js": 135,
  14044. "./pa-in": 136,
  14045. "./pa-in.js": 136,
  14046. "./pl": 137,
  14047. "./pl.js": 137,
  14048. "./pt": 138,
  14049. "./pt-br": 139,
  14050. "./pt-br.js": 139,
  14051. "./pt.js": 138,
  14052. "./ro": 140,
  14053. "./ro.js": 140,
  14054. "./ru": 141,
  14055. "./ru.js": 141,
  14056. "./sd": 142,
  14057. "./sd.js": 142,
  14058. "./se": 143,
  14059. "./se.js": 143,
  14060. "./si": 144,
  14061. "./si.js": 144,
  14062. "./sk": 145,
  14063. "./sk.js": 145,
  14064. "./sl": 146,
  14065. "./sl.js": 146,
  14066. "./sq": 147,
  14067. "./sq.js": 147,
  14068. "./sr": 148,
  14069. "./sr-cyrl": 149,
  14070. "./sr-cyrl.js": 149,
  14071. "./sr.js": 148,
  14072. "./ss": 150,
  14073. "./ss.js": 150,
  14074. "./sv": 151,
  14075. "./sv.js": 151,
  14076. "./sw": 152,
  14077. "./sw.js": 152,
  14078. "./ta": 153,
  14079. "./ta.js": 153,
  14080. "./te": 154,
  14081. "./te.js": 154,
  14082. "./tet": 155,
  14083. "./tet.js": 155,
  14084. "./tg": 156,
  14085. "./tg.js": 156,
  14086. "./th": 157,
  14087. "./th.js": 157,
  14088. "./tk": 158,
  14089. "./tk.js": 158,
  14090. "./tl-ph": 159,
  14091. "./tl-ph.js": 159,
  14092. "./tlh": 160,
  14093. "./tlh.js": 160,
  14094. "./tr": 161,
  14095. "./tr.js": 161,
  14096. "./tzl": 162,
  14097. "./tzl.js": 162,
  14098. "./tzm": 163,
  14099. "./tzm-latn": 164,
  14100. "./tzm-latn.js": 164,
  14101. "./tzm.js": 163,
  14102. "./ug-cn": 165,
  14103. "./ug-cn.js": 165,
  14104. "./uk": 166,
  14105. "./uk.js": 166,
  14106. "./ur": 167,
  14107. "./ur.js": 167,
  14108. "./uz": 168,
  14109. "./uz-latn": 169,
  14110. "./uz-latn.js": 169,
  14111. "./uz.js": 168,
  14112. "./vi": 170,
  14113. "./vi.js": 170,
  14114. "./x-pseudo": 171,
  14115. "./x-pseudo.js": 171,
  14116. "./yo": 172,
  14117. "./yo.js": 172,
  14118. "./zh-cn": 173,
  14119. "./zh-cn.js": 173,
  14120. "./zh-hk": 174,
  14121. "./zh-hk.js": 174,
  14122. "./zh-mo": 175,
  14123. "./zh-mo.js": 175,
  14124. "./zh-tw": 176,
  14125. "./zh-tw.js": 176
  14126. };
  14127. function webpackContext(req) {
  14128. var id = webpackContextResolve(req);
  14129. return __webpack_require__(id);
  14130. }
  14131. function webpackContextResolve(req) {
  14132. if(!__webpack_require__.o(map, req)) {
  14133. var e = new Error("Cannot find module '" + req + "'");
  14134. e.code = 'MODULE_NOT_FOUND';
  14135. throw e;
  14136. }
  14137. return map[req];
  14138. }
  14139. webpackContext.keys = function webpackContextKeys() {
  14140. return Object.keys(map);
  14141. };
  14142. webpackContext.resolve = webpackContextResolve;
  14143. module.exports = webpackContext;
  14144. webpackContext.id = 41;
  14145. /***/ }),
  14146. /* 42 */
  14147. /*!***************************************************************!*\
  14148. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/af.js ***!
  14149. \***************************************************************/
  14150. /*! no static exports found */
  14151. /***/ (function(module, exports, __webpack_require__) {
  14152. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14153. //! moment.js locale configuration
  14154. //! locale : Afrikaans [af]
  14155. //! author : Werner Mollentze : https://github.com/wernerm
  14156. ;
  14157. (function (global, factory) {
  14158. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14159. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14160. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14161. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14162. })(this, function (moment) {
  14163. 'use strict';
  14164. //! moment.js locale configuration
  14165. var af = moment.defineLocale('af', {
  14166. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  14167. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  14168. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  14169. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  14170. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  14171. meridiemParse: /vm|nm/i,
  14172. isPM: function isPM(input) {
  14173. return /^nm$/i.test(input);
  14174. },
  14175. meridiem: function meridiem(hours, minutes, isLower) {
  14176. if (hours < 12) {
  14177. return isLower ? 'vm' : 'VM';
  14178. } else {
  14179. return isLower ? 'nm' : 'NM';
  14180. }
  14181. },
  14182. longDateFormat: {
  14183. LT: 'HH:mm',
  14184. LTS: 'HH:mm:ss',
  14185. L: 'DD/MM/YYYY',
  14186. LL: 'D MMMM YYYY',
  14187. LLL: 'D MMMM YYYY HH:mm',
  14188. LLLL: 'dddd, D MMMM YYYY HH:mm'
  14189. },
  14190. calendar: {
  14191. sameDay: '[Vandag om] LT',
  14192. nextDay: '[Môre om] LT',
  14193. nextWeek: 'dddd [om] LT',
  14194. lastDay: '[Gister om] LT',
  14195. lastWeek: '[Laas] dddd [om] LT',
  14196. sameElse: 'L'
  14197. },
  14198. relativeTime: {
  14199. future: 'oor %s',
  14200. past: '%s gelede',
  14201. s: "'n paar sekondes",
  14202. ss: '%d sekondes',
  14203. m: "'n minuut",
  14204. mm: '%d minute',
  14205. h: "'n uur",
  14206. hh: '%d ure',
  14207. d: "'n dag",
  14208. dd: '%d dae',
  14209. M: "'n maand",
  14210. MM: '%d maande',
  14211. y: "'n jaar",
  14212. yy: '%d jaar'
  14213. },
  14214. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  14215. ordinal: function ordinal(number) {
  14216. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  14217. },
  14218. week: {
  14219. dow: 1,
  14220. // Maandag is die eerste dag van die week.
  14221. doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  14222. }
  14223. });
  14224. return af;
  14225. });
  14226. /***/ }),
  14227. /* 43 */
  14228. /*!***************************************************************!*\
  14229. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar.js ***!
  14230. \***************************************************************/
  14231. /*! no static exports found */
  14232. /***/ (function(module, exports, __webpack_require__) {
  14233. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14234. //! moment.js locale configuration
  14235. //! locale : Arabic [ar]
  14236. //! author : Abdel Said: https://github.com/abdelsaid
  14237. //! author : Ahmed Elkhatib
  14238. //! author : forabi https://github.com/forabi
  14239. ;
  14240. (function (global, factory) {
  14241. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14242. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14243. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14244. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14245. })(this, function (moment) {
  14246. 'use strict';
  14247. //! moment.js locale configuration
  14248. var symbolMap = {
  14249. 1: '١',
  14250. 2: '٢',
  14251. 3: '٣',
  14252. 4: '٤',
  14253. 5: '٥',
  14254. 6: '٦',
  14255. 7: '٧',
  14256. 8: '٨',
  14257. 9: '٩',
  14258. 0: '٠'
  14259. },
  14260. numberMap = {
  14261. '١': '1',
  14262. '٢': '2',
  14263. '٣': '3',
  14264. '٤': '4',
  14265. '٥': '5',
  14266. '٦': '6',
  14267. '٧': '7',
  14268. '٨': '8',
  14269. '٩': '9',
  14270. '٠': '0'
  14271. },
  14272. pluralForm = function pluralForm(n) {
  14273. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14274. },
  14275. plurals = {
  14276. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14277. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14278. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14279. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14280. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14281. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14282. },
  14283. pluralize = function pluralize(u) {
  14284. return function (number, withoutSuffix, string, isFuture) {
  14285. var f = pluralForm(number),
  14286. str = plurals[u][pluralForm(number)];
  14287. if (f === 2) {
  14288. str = str[withoutSuffix ? 0 : 1];
  14289. }
  14290. return str.replace(/%d/i, number);
  14291. };
  14292. },
  14293. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14294. var ar = moment.defineLocale('ar', {
  14295. months: months,
  14296. monthsShort: months,
  14297. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14298. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14299. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14300. weekdaysParseExact: true,
  14301. longDateFormat: {
  14302. LT: 'HH:mm',
  14303. LTS: 'HH:mm:ss',
  14304. L: "D/\u200FM/\u200FYYYY",
  14305. LL: 'D MMMM YYYY',
  14306. LLL: 'D MMMM YYYY HH:mm',
  14307. LLLL: 'dddd D MMMM YYYY HH:mm'
  14308. },
  14309. meridiemParse: /ص|م/,
  14310. isPM: function isPM(input) {
  14311. return 'م' === input;
  14312. },
  14313. meridiem: function meridiem(hour, minute, isLower) {
  14314. if (hour < 12) {
  14315. return 'ص';
  14316. } else {
  14317. return 'م';
  14318. }
  14319. },
  14320. calendar: {
  14321. sameDay: '[اليوم عند الساعة] LT',
  14322. nextDay: '[غدًا عند الساعة] LT',
  14323. nextWeek: 'dddd [عند الساعة] LT',
  14324. lastDay: '[أمس عند الساعة] LT',
  14325. lastWeek: 'dddd [عند الساعة] LT',
  14326. sameElse: 'L'
  14327. },
  14328. relativeTime: {
  14329. future: 'بعد %s',
  14330. past: 'منذ %s',
  14331. s: pluralize('s'),
  14332. ss: pluralize('s'),
  14333. m: pluralize('m'),
  14334. mm: pluralize('m'),
  14335. h: pluralize('h'),
  14336. hh: pluralize('h'),
  14337. d: pluralize('d'),
  14338. dd: pluralize('d'),
  14339. M: pluralize('M'),
  14340. MM: pluralize('M'),
  14341. y: pluralize('y'),
  14342. yy: pluralize('y')
  14343. },
  14344. preparse: function preparse(string) {
  14345. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  14346. return numberMap[match];
  14347. }).replace(/،/g, ',');
  14348. },
  14349. postformat: function postformat(string) {
  14350. return string.replace(/\d/g, function (match) {
  14351. return symbolMap[match];
  14352. }).replace(/,/g, '،');
  14353. },
  14354. week: {
  14355. dow: 6,
  14356. // Saturday is the first day of the week.
  14357. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14358. }
  14359. });
  14360. return ar;
  14361. });
  14362. /***/ }),
  14363. /* 44 */
  14364. /*!******************************************************************!*\
  14365. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-dz.js ***!
  14366. \******************************************************************/
  14367. /*! no static exports found */
  14368. /***/ (function(module, exports, __webpack_require__) {
  14369. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14370. //! moment.js locale configuration
  14371. //! locale : Arabic (Algeria) [ar-dz]
  14372. //! author : Amine Roukh: https://github.com/Amine27
  14373. //! author : Abdel Said: https://github.com/abdelsaid
  14374. //! author : Ahmed Elkhatib
  14375. //! author : forabi https://github.com/forabi
  14376. //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
  14377. ;
  14378. (function (global, factory) {
  14379. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14380. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14381. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14382. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14383. })(this, function (moment) {
  14384. 'use strict';
  14385. //! moment.js locale configuration
  14386. var pluralForm = function pluralForm(n) {
  14387. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14388. },
  14389. plurals = {
  14390. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14391. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14392. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14393. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14394. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14395. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14396. },
  14397. pluralize = function pluralize(u) {
  14398. return function (number, withoutSuffix, string, isFuture) {
  14399. var f = pluralForm(number),
  14400. str = plurals[u][pluralForm(number)];
  14401. if (f === 2) {
  14402. str = str[withoutSuffix ? 0 : 1];
  14403. }
  14404. return str.replace(/%d/i, number);
  14405. };
  14406. },
  14407. months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14408. var arDz = moment.defineLocale('ar-dz', {
  14409. months: months,
  14410. monthsShort: months,
  14411. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14412. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14413. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14414. weekdaysParseExact: true,
  14415. longDateFormat: {
  14416. LT: 'HH:mm',
  14417. LTS: 'HH:mm:ss',
  14418. L: "D/\u200FM/\u200FYYYY",
  14419. LL: 'D MMMM YYYY',
  14420. LLL: 'D MMMM YYYY HH:mm',
  14421. LLLL: 'dddd D MMMM YYYY HH:mm'
  14422. },
  14423. meridiemParse: /ص|م/,
  14424. isPM: function isPM(input) {
  14425. return 'م' === input;
  14426. },
  14427. meridiem: function meridiem(hour, minute, isLower) {
  14428. if (hour < 12) {
  14429. return 'ص';
  14430. } else {
  14431. return 'م';
  14432. }
  14433. },
  14434. calendar: {
  14435. sameDay: '[اليوم عند الساعة] LT',
  14436. nextDay: '[غدًا عند الساعة] LT',
  14437. nextWeek: 'dddd [عند الساعة] LT',
  14438. lastDay: '[أمس عند الساعة] LT',
  14439. lastWeek: 'dddd [عند الساعة] LT',
  14440. sameElse: 'L'
  14441. },
  14442. relativeTime: {
  14443. future: 'بعد %s',
  14444. past: 'منذ %s',
  14445. s: pluralize('s'),
  14446. ss: pluralize('s'),
  14447. m: pluralize('m'),
  14448. mm: pluralize('m'),
  14449. h: pluralize('h'),
  14450. hh: pluralize('h'),
  14451. d: pluralize('d'),
  14452. dd: pluralize('d'),
  14453. M: pluralize('M'),
  14454. MM: pluralize('M'),
  14455. y: pluralize('y'),
  14456. yy: pluralize('y')
  14457. },
  14458. postformat: function postformat(string) {
  14459. return string.replace(/,/g, '،');
  14460. },
  14461. week: {
  14462. dow: 0,
  14463. // Sunday is the first day of the week.
  14464. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14465. }
  14466. });
  14467. return arDz;
  14468. });
  14469. /***/ }),
  14470. /* 45 */
  14471. /*!******************************************************************!*\
  14472. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-kw.js ***!
  14473. \******************************************************************/
  14474. /*! no static exports found */
  14475. /***/ (function(module, exports, __webpack_require__) {
  14476. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14477. //! moment.js locale configuration
  14478. //! locale : Arabic (Kuwait) [ar-kw]
  14479. //! author : Nusret Parlak: https://github.com/nusretparlak
  14480. ;
  14481. (function (global, factory) {
  14482. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14483. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14484. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14485. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14486. })(this, function (moment) {
  14487. 'use strict';
  14488. //! moment.js locale configuration
  14489. var arKw = moment.defineLocale('ar-kw', {
  14490. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14491. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14492. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14493. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  14494. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14495. weekdaysParseExact: true,
  14496. longDateFormat: {
  14497. LT: 'HH:mm',
  14498. LTS: 'HH:mm:ss',
  14499. L: 'DD/MM/YYYY',
  14500. LL: 'D MMMM YYYY',
  14501. LLL: 'D MMMM YYYY HH:mm',
  14502. LLLL: 'dddd D MMMM YYYY HH:mm'
  14503. },
  14504. calendar: {
  14505. sameDay: '[اليوم على الساعة] LT',
  14506. nextDay: '[غدا على الساعة] LT',
  14507. nextWeek: 'dddd [على الساعة] LT',
  14508. lastDay: '[أمس على الساعة] LT',
  14509. lastWeek: 'dddd [على الساعة] LT',
  14510. sameElse: 'L'
  14511. },
  14512. relativeTime: {
  14513. future: 'في %s',
  14514. past: 'منذ %s',
  14515. s: 'ثوان',
  14516. ss: '%d ثانية',
  14517. m: 'دقيقة',
  14518. mm: '%d دقائق',
  14519. h: 'ساعة',
  14520. hh: '%d ساعات',
  14521. d: 'يوم',
  14522. dd: '%d أيام',
  14523. M: 'شهر',
  14524. MM: '%d أشهر',
  14525. y: 'سنة',
  14526. yy: '%d سنوات'
  14527. },
  14528. week: {
  14529. dow: 0,
  14530. // Sunday is the first day of the week.
  14531. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14532. }
  14533. });
  14534. return arKw;
  14535. });
  14536. /***/ }),
  14537. /* 46 */
  14538. /*!******************************************************************!*\
  14539. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-ly.js ***!
  14540. \******************************************************************/
  14541. /*! no static exports found */
  14542. /***/ (function(module, exports, __webpack_require__) {
  14543. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14544. //! moment.js locale configuration
  14545. //! locale : Arabic (Libya) [ar-ly]
  14546. //! author : Ali Hmer: https://github.com/kikoanis
  14547. ;
  14548. (function (global, factory) {
  14549. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14550. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14551. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14552. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14553. })(this, function (moment) {
  14554. 'use strict';
  14555. //! moment.js locale configuration
  14556. var symbolMap = {
  14557. 1: '1',
  14558. 2: '2',
  14559. 3: '3',
  14560. 4: '4',
  14561. 5: '5',
  14562. 6: '6',
  14563. 7: '7',
  14564. 8: '8',
  14565. 9: '9',
  14566. 0: '0'
  14567. },
  14568. pluralForm = function pluralForm(n) {
  14569. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  14570. },
  14571. plurals = {
  14572. s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  14573. m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  14574. h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  14575. d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  14576. M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  14577. y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  14578. },
  14579. pluralize = function pluralize(u) {
  14580. return function (number, withoutSuffix, string, isFuture) {
  14581. var f = pluralForm(number),
  14582. str = plurals[u][pluralForm(number)];
  14583. if (f === 2) {
  14584. str = str[withoutSuffix ? 0 : 1];
  14585. }
  14586. return str.replace(/%d/i, number);
  14587. };
  14588. },
  14589. months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];
  14590. var arLy = moment.defineLocale('ar-ly', {
  14591. months: months,
  14592. monthsShort: months,
  14593. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14594. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14595. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14596. weekdaysParseExact: true,
  14597. longDateFormat: {
  14598. LT: 'HH:mm',
  14599. LTS: 'HH:mm:ss',
  14600. L: "D/\u200FM/\u200FYYYY",
  14601. LL: 'D MMMM YYYY',
  14602. LLL: 'D MMMM YYYY HH:mm',
  14603. LLLL: 'dddd D MMMM YYYY HH:mm'
  14604. },
  14605. meridiemParse: /ص|م/,
  14606. isPM: function isPM(input) {
  14607. return 'م' === input;
  14608. },
  14609. meridiem: function meridiem(hour, minute, isLower) {
  14610. if (hour < 12) {
  14611. return 'ص';
  14612. } else {
  14613. return 'م';
  14614. }
  14615. },
  14616. calendar: {
  14617. sameDay: '[اليوم عند الساعة] LT',
  14618. nextDay: '[غدًا عند الساعة] LT',
  14619. nextWeek: 'dddd [عند الساعة] LT',
  14620. lastDay: '[أمس عند الساعة] LT',
  14621. lastWeek: 'dddd [عند الساعة] LT',
  14622. sameElse: 'L'
  14623. },
  14624. relativeTime: {
  14625. future: 'بعد %s',
  14626. past: 'منذ %s',
  14627. s: pluralize('s'),
  14628. ss: pluralize('s'),
  14629. m: pluralize('m'),
  14630. mm: pluralize('m'),
  14631. h: pluralize('h'),
  14632. hh: pluralize('h'),
  14633. d: pluralize('d'),
  14634. dd: pluralize('d'),
  14635. M: pluralize('M'),
  14636. MM: pluralize('M'),
  14637. y: pluralize('y'),
  14638. yy: pluralize('y')
  14639. },
  14640. preparse: function preparse(string) {
  14641. return string.replace(/،/g, ',');
  14642. },
  14643. postformat: function postformat(string) {
  14644. return string.replace(/\d/g, function (match) {
  14645. return symbolMap[match];
  14646. }).replace(/,/g, '،');
  14647. },
  14648. week: {
  14649. dow: 6,
  14650. // Saturday is the first day of the week.
  14651. doy: 12 // The week that contains Jan 12th is the first week of the year.
  14652. }
  14653. });
  14654. return arLy;
  14655. });
  14656. /***/ }),
  14657. /* 47 */
  14658. /*!******************************************************************!*\
  14659. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-ma.js ***!
  14660. \******************************************************************/
  14661. /*! no static exports found */
  14662. /***/ (function(module, exports, __webpack_require__) {
  14663. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14664. //! moment.js locale configuration
  14665. //! locale : Arabic (Morocco) [ar-ma]
  14666. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  14667. //! author : Abdel Said : https://github.com/abdelsaid
  14668. ;
  14669. (function (global, factory) {
  14670. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14671. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14672. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14673. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14674. })(this, function (moment) {
  14675. 'use strict';
  14676. //! moment.js locale configuration
  14677. var arMa = moment.defineLocale('ar-ma', {
  14678. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14679. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  14680. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14681. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  14682. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14683. weekdaysParseExact: true,
  14684. longDateFormat: {
  14685. LT: 'HH:mm',
  14686. LTS: 'HH:mm:ss',
  14687. L: 'DD/MM/YYYY',
  14688. LL: 'D MMMM YYYY',
  14689. LLL: 'D MMMM YYYY HH:mm',
  14690. LLLL: 'dddd D MMMM YYYY HH:mm'
  14691. },
  14692. calendar: {
  14693. sameDay: '[اليوم على الساعة] LT',
  14694. nextDay: '[غدا على الساعة] LT',
  14695. nextWeek: 'dddd [على الساعة] LT',
  14696. lastDay: '[أمس على الساعة] LT',
  14697. lastWeek: 'dddd [على الساعة] LT',
  14698. sameElse: 'L'
  14699. },
  14700. relativeTime: {
  14701. future: 'في %s',
  14702. past: 'منذ %s',
  14703. s: 'ثوان',
  14704. ss: '%d ثانية',
  14705. m: 'دقيقة',
  14706. mm: '%d دقائق',
  14707. h: 'ساعة',
  14708. hh: '%d ساعات',
  14709. d: 'يوم',
  14710. dd: '%d أيام',
  14711. M: 'شهر',
  14712. MM: '%d أشهر',
  14713. y: 'سنة',
  14714. yy: '%d سنوات'
  14715. },
  14716. week: {
  14717. dow: 1,
  14718. // Monday is the first day of the week.
  14719. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14720. }
  14721. });
  14722. return arMa;
  14723. });
  14724. /***/ }),
  14725. /* 48 */
  14726. /*!******************************************************************!*\
  14727. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-sa.js ***!
  14728. \******************************************************************/
  14729. /*! no static exports found */
  14730. /***/ (function(module, exports, __webpack_require__) {
  14731. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14732. //! moment.js locale configuration
  14733. //! locale : Arabic (Saudi Arabia) [ar-sa]
  14734. //! author : Suhail Alkowaileet : https://github.com/xsoh
  14735. ;
  14736. (function (global, factory) {
  14737. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14738. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14739. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14740. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14741. })(this, function (moment) {
  14742. 'use strict';
  14743. //! moment.js locale configuration
  14744. var symbolMap = {
  14745. 1: '١',
  14746. 2: '٢',
  14747. 3: '٣',
  14748. 4: '٤',
  14749. 5: '٥',
  14750. 6: '٦',
  14751. 7: '٧',
  14752. 8: '٨',
  14753. 9: '٩',
  14754. 0: '٠'
  14755. },
  14756. numberMap = {
  14757. '١': '1',
  14758. '٢': '2',
  14759. '٣': '3',
  14760. '٤': '4',
  14761. '٥': '5',
  14762. '٦': '6',
  14763. '٧': '7',
  14764. '٨': '8',
  14765. '٩': '9',
  14766. '٠': '0'
  14767. };
  14768. var arSa = moment.defineLocale('ar-sa', {
  14769. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14770. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14771. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14772. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14773. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14774. weekdaysParseExact: true,
  14775. longDateFormat: {
  14776. LT: 'HH:mm',
  14777. LTS: 'HH:mm:ss',
  14778. L: 'DD/MM/YYYY',
  14779. LL: 'D MMMM YYYY',
  14780. LLL: 'D MMMM YYYY HH:mm',
  14781. LLLL: 'dddd D MMMM YYYY HH:mm'
  14782. },
  14783. meridiemParse: /ص|م/,
  14784. isPM: function isPM(input) {
  14785. return 'م' === input;
  14786. },
  14787. meridiem: function meridiem(hour, minute, isLower) {
  14788. if (hour < 12) {
  14789. return 'ص';
  14790. } else {
  14791. return 'م';
  14792. }
  14793. },
  14794. calendar: {
  14795. sameDay: '[اليوم على الساعة] LT',
  14796. nextDay: '[غدا على الساعة] LT',
  14797. nextWeek: 'dddd [على الساعة] LT',
  14798. lastDay: '[أمس على الساعة] LT',
  14799. lastWeek: 'dddd [على الساعة] LT',
  14800. sameElse: 'L'
  14801. },
  14802. relativeTime: {
  14803. future: 'في %s',
  14804. past: 'منذ %s',
  14805. s: 'ثوان',
  14806. ss: '%d ثانية',
  14807. m: 'دقيقة',
  14808. mm: '%d دقائق',
  14809. h: 'ساعة',
  14810. hh: '%d ساعات',
  14811. d: 'يوم',
  14812. dd: '%d أيام',
  14813. M: 'شهر',
  14814. MM: '%d أشهر',
  14815. y: 'سنة',
  14816. yy: '%d سنوات'
  14817. },
  14818. preparse: function preparse(string) {
  14819. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  14820. return numberMap[match];
  14821. }).replace(/،/g, ',');
  14822. },
  14823. postformat: function postformat(string) {
  14824. return string.replace(/\d/g, function (match) {
  14825. return symbolMap[match];
  14826. }).replace(/,/g, '،');
  14827. },
  14828. week: {
  14829. dow: 0,
  14830. // Sunday is the first day of the week.
  14831. doy: 6 // The week that contains Jan 6th is the first week of the year.
  14832. }
  14833. });
  14834. return arSa;
  14835. });
  14836. /***/ }),
  14837. /* 49 */
  14838. /*!******************************************************************!*\
  14839. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ar-tn.js ***!
  14840. \******************************************************************/
  14841. /*! no static exports found */
  14842. /***/ (function(module, exports, __webpack_require__) {
  14843. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14844. //! moment.js locale configuration
  14845. //! locale : Arabic (Tunisia) [ar-tn]
  14846. //! author : Nader Toukabri : https://github.com/naderio
  14847. ;
  14848. (function (global, factory) {
  14849. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14850. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14851. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14852. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14853. })(this, function (moment) {
  14854. 'use strict';
  14855. //! moment.js locale configuration
  14856. var arTn = moment.defineLocale('ar-tn', {
  14857. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14858. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  14859. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  14860. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  14861. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  14862. weekdaysParseExact: true,
  14863. longDateFormat: {
  14864. LT: 'HH:mm',
  14865. LTS: 'HH:mm:ss',
  14866. L: 'DD/MM/YYYY',
  14867. LL: 'D MMMM YYYY',
  14868. LLL: 'D MMMM YYYY HH:mm',
  14869. LLLL: 'dddd D MMMM YYYY HH:mm'
  14870. },
  14871. calendar: {
  14872. sameDay: '[اليوم على الساعة] LT',
  14873. nextDay: '[غدا على الساعة] LT',
  14874. nextWeek: 'dddd [على الساعة] LT',
  14875. lastDay: '[أمس على الساعة] LT',
  14876. lastWeek: 'dddd [على الساعة] LT',
  14877. sameElse: 'L'
  14878. },
  14879. relativeTime: {
  14880. future: 'في %s',
  14881. past: 'منذ %s',
  14882. s: 'ثوان',
  14883. ss: '%d ثانية',
  14884. m: 'دقيقة',
  14885. mm: '%d دقائق',
  14886. h: 'ساعة',
  14887. hh: '%d ساعات',
  14888. d: 'يوم',
  14889. dd: '%d أيام',
  14890. M: 'شهر',
  14891. MM: '%d أشهر',
  14892. y: 'سنة',
  14893. yy: '%d سنوات'
  14894. },
  14895. week: {
  14896. dow: 1,
  14897. // Monday is the first day of the week.
  14898. doy: 4 // The week that contains Jan 4th is the first week of the year.
  14899. }
  14900. });
  14901. return arTn;
  14902. });
  14903. /***/ }),
  14904. /* 50 */
  14905. /*!***************************************************************!*\
  14906. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/az.js ***!
  14907. \***************************************************************/
  14908. /*! no static exports found */
  14909. /***/ (function(module, exports, __webpack_require__) {
  14910. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  14911. //! moment.js locale configuration
  14912. //! locale : Azerbaijani [az]
  14913. //! author : topchiyev : https://github.com/topchiyev
  14914. ;
  14915. (function (global, factory) {
  14916. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  14917. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  14918. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  14919. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  14920. })(this, function (moment) {
  14921. 'use strict';
  14922. //! moment.js locale configuration
  14923. var suffixes = {
  14924. 1: '-inci',
  14925. 5: '-inci',
  14926. 8: '-inci',
  14927. 70: '-inci',
  14928. 80: '-inci',
  14929. 2: '-nci',
  14930. 7: '-nci',
  14931. 20: '-nci',
  14932. 50: '-nci',
  14933. 3: '-üncü',
  14934. 4: '-üncü',
  14935. 100: '-üncü',
  14936. 6: '-ncı',
  14937. 9: '-uncu',
  14938. 10: '-uncu',
  14939. 30: '-uncu',
  14940. 60: '-ıncı',
  14941. 90: '-ıncı'
  14942. };
  14943. var az = moment.defineLocale('az', {
  14944. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  14945. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  14946. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  14947. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  14948. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  14949. weekdaysParseExact: true,
  14950. longDateFormat: {
  14951. LT: 'HH:mm',
  14952. LTS: 'HH:mm:ss',
  14953. L: 'DD.MM.YYYY',
  14954. LL: 'D MMMM YYYY',
  14955. LLL: 'D MMMM YYYY HH:mm',
  14956. LLLL: 'dddd, D MMMM YYYY HH:mm'
  14957. },
  14958. calendar: {
  14959. sameDay: '[bugün saat] LT',
  14960. nextDay: '[sabah saat] LT',
  14961. nextWeek: '[gələn həftə] dddd [saat] LT',
  14962. lastDay: '[dünən] LT',
  14963. lastWeek: '[keçən həftə] dddd [saat] LT',
  14964. sameElse: 'L'
  14965. },
  14966. relativeTime: {
  14967. future: '%s sonra',
  14968. past: '%s əvvəl',
  14969. s: 'bir neçə saniyə',
  14970. ss: '%d saniyə',
  14971. m: 'bir dəqiqə',
  14972. mm: '%d dəqiqə',
  14973. h: 'bir saat',
  14974. hh: '%d saat',
  14975. d: 'bir gün',
  14976. dd: '%d gün',
  14977. M: 'bir ay',
  14978. MM: '%d ay',
  14979. y: 'bir il',
  14980. yy: '%d il'
  14981. },
  14982. meridiemParse: /gecə|səhər|gündüz|axşam/,
  14983. isPM: function isPM(input) {
  14984. return /^(gündüz|axşam)$/.test(input);
  14985. },
  14986. meridiem: function meridiem(hour, minute, isLower) {
  14987. if (hour < 4) {
  14988. return 'gecə';
  14989. } else if (hour < 12) {
  14990. return 'səhər';
  14991. } else if (hour < 17) {
  14992. return 'gündüz';
  14993. } else {
  14994. return 'axşam';
  14995. }
  14996. },
  14997. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  14998. ordinal: function ordinal(number) {
  14999. if (number === 0) {
  15000. // special case for zero
  15001. return number + '-ıncı';
  15002. }
  15003. var a = number % 10,
  15004. b = number % 100 - a,
  15005. c = number >= 100 ? 100 : null;
  15006. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  15007. },
  15008. week: {
  15009. dow: 1,
  15010. // Monday is the first day of the week.
  15011. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15012. }
  15013. });
  15014. return az;
  15015. });
  15016. /***/ }),
  15017. /* 51 */
  15018. /*!***************************************************************!*\
  15019. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/be.js ***!
  15020. \***************************************************************/
  15021. /*! no static exports found */
  15022. /***/ (function(module, exports, __webpack_require__) {
  15023. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15024. //! moment.js locale configuration
  15025. //! locale : Belarusian [be]
  15026. //! author : Dmitry Demidov : https://github.com/demidov91
  15027. //! author: Praleska: http://praleska.pro/
  15028. //! Author : Menelion Elensúle : https://github.com/Oire
  15029. ;
  15030. (function (global, factory) {
  15031. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15032. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15033. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15034. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15035. })(this, function (moment) {
  15036. 'use strict';
  15037. //! moment.js locale configuration
  15038. function plural(word, num) {
  15039. var forms = word.split('_');
  15040. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  15041. }
  15042. function relativeTimeWithPlural(number, withoutSuffix, key) {
  15043. var format = {
  15044. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  15045. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  15046. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  15047. dd: 'дзень_дні_дзён',
  15048. MM: 'месяц_месяцы_месяцаў',
  15049. yy: 'год_гады_гадоў'
  15050. };
  15051. if (key === 'm') {
  15052. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  15053. } else if (key === 'h') {
  15054. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  15055. } else {
  15056. return number + ' ' + plural(format[key], +number);
  15057. }
  15058. }
  15059. var be = moment.defineLocale('be', {
  15060. months: {
  15061. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  15062. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  15063. },
  15064. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  15065. weekdays: {
  15066. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  15067. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  15068. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
  15069. },
  15070. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15071. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  15072. longDateFormat: {
  15073. LT: 'HH:mm',
  15074. LTS: 'HH:mm:ss',
  15075. L: 'DD.MM.YYYY',
  15076. LL: 'D MMMM YYYY г.',
  15077. LLL: 'D MMMM YYYY г., HH:mm',
  15078. LLLL: 'dddd, D MMMM YYYY г., HH:mm'
  15079. },
  15080. calendar: {
  15081. sameDay: '[Сёння ў] LT',
  15082. nextDay: '[Заўтра ў] LT',
  15083. lastDay: '[Учора ў] LT',
  15084. nextWeek: function nextWeek() {
  15085. return '[У] dddd [ў] LT';
  15086. },
  15087. lastWeek: function lastWeek() {
  15088. switch (this.day()) {
  15089. case 0:
  15090. case 3:
  15091. case 5:
  15092. case 6:
  15093. return '[У мінулую] dddd [ў] LT';
  15094. case 1:
  15095. case 2:
  15096. case 4:
  15097. return '[У мінулы] dddd [ў] LT';
  15098. }
  15099. },
  15100. sameElse: 'L'
  15101. },
  15102. relativeTime: {
  15103. future: 'праз %s',
  15104. past: '%s таму',
  15105. s: 'некалькі секунд',
  15106. m: relativeTimeWithPlural,
  15107. mm: relativeTimeWithPlural,
  15108. h: relativeTimeWithPlural,
  15109. hh: relativeTimeWithPlural,
  15110. d: 'дзень',
  15111. dd: relativeTimeWithPlural,
  15112. M: 'месяц',
  15113. MM: relativeTimeWithPlural,
  15114. y: 'год',
  15115. yy: relativeTimeWithPlural
  15116. },
  15117. meridiemParse: /ночы|раніцы|дня|вечара/,
  15118. isPM: function isPM(input) {
  15119. return /^(дня|вечара)$/.test(input);
  15120. },
  15121. meridiem: function meridiem(hour, minute, isLower) {
  15122. if (hour < 4) {
  15123. return 'ночы';
  15124. } else if (hour < 12) {
  15125. return 'раніцы';
  15126. } else if (hour < 17) {
  15127. return 'дня';
  15128. } else {
  15129. return 'вечара';
  15130. }
  15131. },
  15132. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  15133. ordinal: function ordinal(number, period) {
  15134. switch (period) {
  15135. case 'M':
  15136. case 'd':
  15137. case 'DDD':
  15138. case 'w':
  15139. case 'W':
  15140. return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';
  15141. case 'D':
  15142. return number + '-га';
  15143. default:
  15144. return number;
  15145. }
  15146. },
  15147. week: {
  15148. dow: 1,
  15149. // Monday is the first day of the week.
  15150. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15151. }
  15152. });
  15153. return be;
  15154. });
  15155. /***/ }),
  15156. /* 52 */
  15157. /*!***************************************************************!*\
  15158. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bg.js ***!
  15159. \***************************************************************/
  15160. /*! no static exports found */
  15161. /***/ (function(module, exports, __webpack_require__) {
  15162. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15163. //! moment.js locale configuration
  15164. //! locale : Bulgarian [bg]
  15165. //! author : Krasen Borisov : https://github.com/kraz
  15166. ;
  15167. (function (global, factory) {
  15168. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15169. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15170. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15171. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15172. })(this, function (moment) {
  15173. 'use strict';
  15174. //! moment.js locale configuration
  15175. var bg = moment.defineLocale('bg', {
  15176. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  15177. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  15178. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  15179. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  15180. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15181. longDateFormat: {
  15182. LT: 'H:mm',
  15183. LTS: 'H:mm:ss',
  15184. L: 'D.MM.YYYY',
  15185. LL: 'D MMMM YYYY',
  15186. LLL: 'D MMMM YYYY H:mm',
  15187. LLLL: 'dddd, D MMMM YYYY H:mm'
  15188. },
  15189. calendar: {
  15190. sameDay: '[Днес в] LT',
  15191. nextDay: '[Утре в] LT',
  15192. nextWeek: 'dddd [в] LT',
  15193. lastDay: '[Вчера в] LT',
  15194. lastWeek: function lastWeek() {
  15195. switch (this.day()) {
  15196. case 0:
  15197. case 3:
  15198. case 6:
  15199. return '[Миналата] dddd [в] LT';
  15200. case 1:
  15201. case 2:
  15202. case 4:
  15203. case 5:
  15204. return '[Миналия] dddd [в] LT';
  15205. }
  15206. },
  15207. sameElse: 'L'
  15208. },
  15209. relativeTime: {
  15210. future: 'след %s',
  15211. past: 'преди %s',
  15212. s: 'няколко секунди',
  15213. ss: '%d секунди',
  15214. m: 'минута',
  15215. mm: '%d минути',
  15216. h: 'час',
  15217. hh: '%d часа',
  15218. d: 'ден',
  15219. dd: '%d дена',
  15220. w: 'седмица',
  15221. ww: '%d седмици',
  15222. M: 'месец',
  15223. MM: '%d месеца',
  15224. y: 'година',
  15225. yy: '%d години'
  15226. },
  15227. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  15228. ordinal: function ordinal(number) {
  15229. var lastDigit = number % 10,
  15230. last2Digits = number % 100;
  15231. if (number === 0) {
  15232. return number + '-ев';
  15233. } else if (last2Digits === 0) {
  15234. return number + '-ен';
  15235. } else if (last2Digits > 10 && last2Digits < 20) {
  15236. return number + '-ти';
  15237. } else if (lastDigit === 1) {
  15238. return number + '-ви';
  15239. } else if (lastDigit === 2) {
  15240. return number + '-ри';
  15241. } else if (lastDigit === 7 || lastDigit === 8) {
  15242. return number + '-ми';
  15243. } else {
  15244. return number + '-ти';
  15245. }
  15246. },
  15247. week: {
  15248. dow: 1,
  15249. // Monday is the first day of the week.
  15250. doy: 7 // The week that contains Jan 7th is the first week of the year.
  15251. }
  15252. });
  15253. return bg;
  15254. });
  15255. /***/ }),
  15256. /* 53 */
  15257. /*!***************************************************************!*\
  15258. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bm.js ***!
  15259. \***************************************************************/
  15260. /*! no static exports found */
  15261. /***/ (function(module, exports, __webpack_require__) {
  15262. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15263. //! moment.js locale configuration
  15264. //! locale : Bambara [bm]
  15265. //! author : Estelle Comment : https://github.com/estellecomment
  15266. ;
  15267. (function (global, factory) {
  15268. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15269. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15270. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15271. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15272. })(this, function (moment) {
  15273. 'use strict';
  15274. //! moment.js locale configuration
  15275. var bm = moment.defineLocale('bm', {
  15276. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  15277. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  15278. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  15279. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  15280. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  15281. longDateFormat: {
  15282. LT: 'HH:mm',
  15283. LTS: 'HH:mm:ss',
  15284. L: 'DD/MM/YYYY',
  15285. LL: 'MMMM [tile] D [san] YYYY',
  15286. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  15287. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  15288. },
  15289. calendar: {
  15290. sameDay: '[Bi lɛrɛ] LT',
  15291. nextDay: '[Sini lɛrɛ] LT',
  15292. nextWeek: 'dddd [don lɛrɛ] LT',
  15293. lastDay: '[Kunu lɛrɛ] LT',
  15294. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  15295. sameElse: 'L'
  15296. },
  15297. relativeTime: {
  15298. future: '%s kɔnɔ',
  15299. past: 'a bɛ %s bɔ',
  15300. s: 'sanga dama dama',
  15301. ss: 'sekondi %d',
  15302. m: 'miniti kelen',
  15303. mm: 'miniti %d',
  15304. h: 'lɛrɛ kelen',
  15305. hh: 'lɛrɛ %d',
  15306. d: 'tile kelen',
  15307. dd: 'tile %d',
  15308. M: 'kalo kelen',
  15309. MM: 'kalo %d',
  15310. y: 'san kelen',
  15311. yy: 'san %d'
  15312. },
  15313. week: {
  15314. dow: 1,
  15315. // Monday is the first day of the week.
  15316. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15317. }
  15318. });
  15319. return bm;
  15320. });
  15321. /***/ }),
  15322. /* 54 */
  15323. /*!***************************************************************!*\
  15324. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bn.js ***!
  15325. \***************************************************************/
  15326. /*! no static exports found */
  15327. /***/ (function(module, exports, __webpack_require__) {
  15328. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15329. //! moment.js locale configuration
  15330. //! locale : Bengali [bn]
  15331. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  15332. ;
  15333. (function (global, factory) {
  15334. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15335. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15336. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15337. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15338. })(this, function (moment) {
  15339. 'use strict';
  15340. //! moment.js locale configuration
  15341. var symbolMap = {
  15342. 1: '১',
  15343. 2: '২',
  15344. 3: '৩',
  15345. 4: '৪',
  15346. 5: '৫',
  15347. 6: '৬',
  15348. 7: '৭',
  15349. 8: '৮',
  15350. 9: '৯',
  15351. 0: '০'
  15352. },
  15353. numberMap = {
  15354. '১': '1',
  15355. '২': '2',
  15356. '৩': '3',
  15357. '৪': '4',
  15358. '৫': '5',
  15359. '৬': '6',
  15360. '৭': '7',
  15361. '৮': '8',
  15362. '৯': '9',
  15363. '০': '0'
  15364. };
  15365. var bn = moment.defineLocale('bn', {
  15366. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  15367. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  15368. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  15369. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15370. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15371. longDateFormat: {
  15372. LT: 'A h:mm সময়',
  15373. LTS: 'A h:mm:ss সময়',
  15374. L: 'DD/MM/YYYY',
  15375. LL: 'D MMMM YYYY',
  15376. LLL: 'D MMMM YYYY, A h:mm সময়',
  15377. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  15378. },
  15379. calendar: {
  15380. sameDay: '[আজ] LT',
  15381. nextDay: '[আগামীকাল] LT',
  15382. nextWeek: 'dddd, LT',
  15383. lastDay: '[গতকাল] LT',
  15384. lastWeek: '[গত] dddd, LT',
  15385. sameElse: 'L'
  15386. },
  15387. relativeTime: {
  15388. future: '%s পরে',
  15389. past: '%s আগে',
  15390. s: 'কয়েক সেকেন্ড',
  15391. ss: '%d সেকেন্ড',
  15392. m: 'এক মিনিট',
  15393. mm: '%d মিনিট',
  15394. h: 'এক ঘন্টা',
  15395. hh: '%d ঘন্টা',
  15396. d: 'এক দিন',
  15397. dd: '%d দিন',
  15398. M: 'এক মাস',
  15399. MM: '%d মাস',
  15400. y: 'এক বছর',
  15401. yy: '%d বছর'
  15402. },
  15403. preparse: function preparse(string) {
  15404. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15405. return numberMap[match];
  15406. });
  15407. },
  15408. postformat: function postformat(string) {
  15409. return string.replace(/\d/g, function (match) {
  15410. return symbolMap[match];
  15411. });
  15412. },
  15413. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  15414. meridiemHour: function meridiemHour(hour, meridiem) {
  15415. if (hour === 12) {
  15416. hour = 0;
  15417. }
  15418. if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {
  15419. return hour + 12;
  15420. } else {
  15421. return hour;
  15422. }
  15423. },
  15424. meridiem: function meridiem(hour, minute, isLower) {
  15425. if (hour < 4) {
  15426. return 'রাত';
  15427. } else if (hour < 10) {
  15428. return 'সকাল';
  15429. } else if (hour < 17) {
  15430. return 'দুপুর';
  15431. } else if (hour < 20) {
  15432. return 'বিকাল';
  15433. } else {
  15434. return 'রাত';
  15435. }
  15436. },
  15437. week: {
  15438. dow: 0,
  15439. // Sunday is the first day of the week.
  15440. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15441. }
  15442. });
  15443. return bn;
  15444. });
  15445. /***/ }),
  15446. /* 55 */
  15447. /*!******************************************************************!*\
  15448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bn-bd.js ***!
  15449. \******************************************************************/
  15450. /*! no static exports found */
  15451. /***/ (function(module, exports, __webpack_require__) {
  15452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15453. //! moment.js locale configuration
  15454. //! locale : Bengali (Bangladesh) [bn-bd]
  15455. //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
  15456. ;
  15457. (function (global, factory) {
  15458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15462. })(this, function (moment) {
  15463. 'use strict';
  15464. //! moment.js locale configuration
  15465. var symbolMap = {
  15466. 1: '১',
  15467. 2: '২',
  15468. 3: '৩',
  15469. 4: '৪',
  15470. 5: '৫',
  15471. 6: '৬',
  15472. 7: '৭',
  15473. 8: '৮',
  15474. 9: '৯',
  15475. 0: '০'
  15476. },
  15477. numberMap = {
  15478. '১': '1',
  15479. '২': '2',
  15480. '৩': '3',
  15481. '৪': '4',
  15482. '৫': '5',
  15483. '৬': '6',
  15484. '৭': '7',
  15485. '৮': '8',
  15486. '৯': '9',
  15487. '০': '0'
  15488. };
  15489. var bnBd = moment.defineLocale('bn-bd', {
  15490. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  15491. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  15492. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  15493. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  15494. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  15495. longDateFormat: {
  15496. LT: 'A h:mm সময়',
  15497. LTS: 'A h:mm:ss সময়',
  15498. L: 'DD/MM/YYYY',
  15499. LL: 'D MMMM YYYY',
  15500. LLL: 'D MMMM YYYY, A h:mm সময়',
  15501. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
  15502. },
  15503. calendar: {
  15504. sameDay: '[আজ] LT',
  15505. nextDay: '[আগামীকাল] LT',
  15506. nextWeek: 'dddd, LT',
  15507. lastDay: '[গতকাল] LT',
  15508. lastWeek: '[গত] dddd, LT',
  15509. sameElse: 'L'
  15510. },
  15511. relativeTime: {
  15512. future: '%s পরে',
  15513. past: '%s আগে',
  15514. s: 'কয়েক সেকেন্ড',
  15515. ss: '%d সেকেন্ড',
  15516. m: 'এক মিনিট',
  15517. mm: '%d মিনিট',
  15518. h: 'এক ঘন্টা',
  15519. hh: '%d ঘন্টা',
  15520. d: 'এক দিন',
  15521. dd: '%d দিন',
  15522. M: 'এক মাস',
  15523. MM: '%d মাস',
  15524. y: 'এক বছর',
  15525. yy: '%d বছর'
  15526. },
  15527. preparse: function preparse(string) {
  15528. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  15529. return numberMap[match];
  15530. });
  15531. },
  15532. postformat: function postformat(string) {
  15533. return string.replace(/\d/g, function (match) {
  15534. return symbolMap[match];
  15535. });
  15536. },
  15537. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  15538. meridiemHour: function meridiemHour(hour, meridiem) {
  15539. if (hour === 12) {
  15540. hour = 0;
  15541. }
  15542. if (meridiem === 'রাত') {
  15543. return hour < 4 ? hour : hour + 12;
  15544. } else if (meridiem === 'ভোর') {
  15545. return hour;
  15546. } else if (meridiem === 'সকাল') {
  15547. return hour;
  15548. } else if (meridiem === 'দুপুর') {
  15549. return hour >= 3 ? hour : hour + 12;
  15550. } else if (meridiem === 'বিকাল') {
  15551. return hour + 12;
  15552. } else if (meridiem === 'সন্ধ্যা') {
  15553. return hour + 12;
  15554. }
  15555. },
  15556. meridiem: function meridiem(hour, minute, isLower) {
  15557. if (hour < 4) {
  15558. return 'রাত';
  15559. } else if (hour < 6) {
  15560. return 'ভোর';
  15561. } else if (hour < 12) {
  15562. return 'সকাল';
  15563. } else if (hour < 15) {
  15564. return 'দুপুর';
  15565. } else if (hour < 18) {
  15566. return 'বিকাল';
  15567. } else if (hour < 20) {
  15568. return 'সন্ধ্যা';
  15569. } else {
  15570. return 'রাত';
  15571. }
  15572. },
  15573. week: {
  15574. dow: 0,
  15575. // Sunday is the first day of the week.
  15576. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15577. }
  15578. });
  15579. return bnBd;
  15580. });
  15581. /***/ }),
  15582. /* 56 */
  15583. /*!***************************************************************!*\
  15584. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bo.js ***!
  15585. \***************************************************************/
  15586. /*! no static exports found */
  15587. /***/ (function(module, exports, __webpack_require__) {
  15588. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15589. //! moment.js locale configuration
  15590. //! locale : Tibetan [bo]
  15591. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  15592. ;
  15593. (function (global, factory) {
  15594. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15595. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15596. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15597. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15598. })(this, function (moment) {
  15599. 'use strict';
  15600. //! moment.js locale configuration
  15601. var symbolMap = {
  15602. 1: '༡',
  15603. 2: '༢',
  15604. 3: '༣',
  15605. 4: '༤',
  15606. 5: '༥',
  15607. 6: '༦',
  15608. 7: '༧',
  15609. 8: '༨',
  15610. 9: '༩',
  15611. 0: '༠'
  15612. },
  15613. numberMap = {
  15614. '༡': '1',
  15615. '༢': '2',
  15616. '༣': '3',
  15617. '༤': '4',
  15618. '༥': '5',
  15619. '༦': '6',
  15620. '༧': '7',
  15621. '༨': '8',
  15622. '༩': '9',
  15623. '༠': '0'
  15624. };
  15625. var bo = moment.defineLocale('bo', {
  15626. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  15627. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),
  15628. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  15629. monthsParseExact: true,
  15630. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  15631. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  15632. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  15633. longDateFormat: {
  15634. LT: 'A h:mm',
  15635. LTS: 'A h:mm:ss',
  15636. L: 'DD/MM/YYYY',
  15637. LL: 'D MMMM YYYY',
  15638. LLL: 'D MMMM YYYY, A h:mm',
  15639. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  15640. },
  15641. calendar: {
  15642. sameDay: '[དི་རིང] LT',
  15643. nextDay: '[སང་ཉིན] LT',
  15644. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  15645. lastDay: '[ཁ་སང] LT',
  15646. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  15647. sameElse: 'L'
  15648. },
  15649. relativeTime: {
  15650. future: '%s ལ་',
  15651. past: '%s སྔན་ལ',
  15652. s: 'ལམ་སང',
  15653. ss: '%d སྐར་ཆ།',
  15654. m: 'སྐར་མ་གཅིག',
  15655. mm: '%d སྐར་མ',
  15656. h: 'ཆུ་ཚོད་གཅིག',
  15657. hh: '%d ཆུ་ཚོད',
  15658. d: 'ཉིན་གཅིག',
  15659. dd: '%d ཉིན་',
  15660. M: 'ཟླ་བ་གཅིག',
  15661. MM: '%d ཟླ་བ',
  15662. y: 'ལོ་གཅིག',
  15663. yy: '%d ལོ'
  15664. },
  15665. preparse: function preparse(string) {
  15666. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  15667. return numberMap[match];
  15668. });
  15669. },
  15670. postformat: function postformat(string) {
  15671. return string.replace(/\d/g, function (match) {
  15672. return symbolMap[match];
  15673. });
  15674. },
  15675. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  15676. meridiemHour: function meridiemHour(hour, meridiem) {
  15677. if (hour === 12) {
  15678. hour = 0;
  15679. }
  15680. if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {
  15681. return hour + 12;
  15682. } else {
  15683. return hour;
  15684. }
  15685. },
  15686. meridiem: function meridiem(hour, minute, isLower) {
  15687. if (hour < 4) {
  15688. return 'མཚན་མོ';
  15689. } else if (hour < 10) {
  15690. return 'ཞོགས་ཀས';
  15691. } else if (hour < 17) {
  15692. return 'ཉིན་གུང';
  15693. } else if (hour < 20) {
  15694. return 'དགོང་དག';
  15695. } else {
  15696. return 'མཚན་མོ';
  15697. }
  15698. },
  15699. week: {
  15700. dow: 0,
  15701. // Sunday is the first day of the week.
  15702. doy: 6 // The week that contains Jan 6th is the first week of the year.
  15703. }
  15704. });
  15705. return bo;
  15706. });
  15707. /***/ }),
  15708. /* 57 */
  15709. /*!***************************************************************!*\
  15710. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/br.js ***!
  15711. \***************************************************************/
  15712. /*! no static exports found */
  15713. /***/ (function(module, exports, __webpack_require__) {
  15714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15715. //! moment.js locale configuration
  15716. //! locale : Breton [br]
  15717. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  15718. ;
  15719. (function (global, factory) {
  15720. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15721. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15722. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15723. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15724. })(this, function (moment) {
  15725. 'use strict';
  15726. //! moment.js locale configuration
  15727. function relativeTimeWithMutation(number, withoutSuffix, key) {
  15728. var format = {
  15729. mm: 'munutenn',
  15730. MM: 'miz',
  15731. dd: 'devezh'
  15732. };
  15733. return number + ' ' + mutation(format[key], number);
  15734. }
  15735. function specialMutationForYears(number) {
  15736. switch (lastNumber(number)) {
  15737. case 1:
  15738. case 3:
  15739. case 4:
  15740. case 5:
  15741. case 9:
  15742. return number + ' bloaz';
  15743. default:
  15744. return number + ' vloaz';
  15745. }
  15746. }
  15747. function lastNumber(number) {
  15748. if (number > 9) {
  15749. return lastNumber(number % 10);
  15750. }
  15751. return number;
  15752. }
  15753. function mutation(text, number) {
  15754. if (number === 2) {
  15755. return softMutation(text);
  15756. }
  15757. return text;
  15758. }
  15759. function softMutation(text) {
  15760. var mutationTable = {
  15761. m: 'v',
  15762. b: 'v',
  15763. d: 'z'
  15764. };
  15765. if (mutationTable[text.charAt(0)] === undefined) {
  15766. return text;
  15767. }
  15768. return mutationTable[text.charAt(0)] + text.substring(1);
  15769. }
  15770. var monthsParse = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],
  15771. monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  15772. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  15773. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  15774. fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
  15775. shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
  15776. minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
  15777. var br = moment.defineLocale('br', {
  15778. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  15779. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  15780. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  15781. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  15782. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  15783. weekdaysParse: minWeekdaysParse,
  15784. fullWeekdaysParse: fullWeekdaysParse,
  15785. shortWeekdaysParse: shortWeekdaysParse,
  15786. minWeekdaysParse: minWeekdaysParse,
  15787. monthsRegex: monthsRegex,
  15788. monthsShortRegex: monthsRegex,
  15789. monthsStrictRegex: monthsStrictRegex,
  15790. monthsShortStrictRegex: monthsShortStrictRegex,
  15791. monthsParse: monthsParse,
  15792. longMonthsParse: monthsParse,
  15793. shortMonthsParse: monthsParse,
  15794. longDateFormat: {
  15795. LT: 'HH:mm',
  15796. LTS: 'HH:mm:ss',
  15797. L: 'DD/MM/YYYY',
  15798. LL: 'D [a viz] MMMM YYYY',
  15799. LLL: 'D [a viz] MMMM YYYY HH:mm',
  15800. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'
  15801. },
  15802. calendar: {
  15803. sameDay: '[Hiziv da] LT',
  15804. nextDay: '[Warcʼhoazh da] LT',
  15805. nextWeek: 'dddd [da] LT',
  15806. lastDay: '[Decʼh da] LT',
  15807. lastWeek: 'dddd [paset da] LT',
  15808. sameElse: 'L'
  15809. },
  15810. relativeTime: {
  15811. future: 'a-benn %s',
  15812. past: '%s ʼzo',
  15813. s: 'un nebeud segondennoù',
  15814. ss: '%d eilenn',
  15815. m: 'ur vunutenn',
  15816. mm: relativeTimeWithMutation,
  15817. h: 'un eur',
  15818. hh: '%d eur',
  15819. d: 'un devezh',
  15820. dd: relativeTimeWithMutation,
  15821. M: 'ur miz',
  15822. MM: relativeTimeWithMutation,
  15823. y: 'ur bloaz',
  15824. yy: specialMutationForYears
  15825. },
  15826. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  15827. ordinal: function ordinal(number) {
  15828. var output = number === 1 ? 'añ' : 'vet';
  15829. return number + output;
  15830. },
  15831. week: {
  15832. dow: 1,
  15833. // Monday is the first day of the week.
  15834. doy: 4 // The week that contains Jan 4th is the first week of the year.
  15835. },
  15836. meridiemParse: /a.m.|g.m./,
  15837. // goude merenn | a-raok merenn
  15838. isPM: function isPM(token) {
  15839. return token === 'g.m.';
  15840. },
  15841. meridiem: function meridiem(hour, minute, isLower) {
  15842. return hour < 12 ? 'a.m.' : 'g.m.';
  15843. }
  15844. });
  15845. return br;
  15846. });
  15847. /***/ }),
  15848. /* 58 */
  15849. /*!***************************************************************!*\
  15850. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/bs.js ***!
  15851. \***************************************************************/
  15852. /*! no static exports found */
  15853. /***/ (function(module, exports, __webpack_require__) {
  15854. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  15855. //! moment.js locale configuration
  15856. //! locale : Bosnian [bs]
  15857. //! author : Nedim Cholich : https://github.com/frontyard
  15858. //! based on (hr) translation by Bojan Marković
  15859. ;
  15860. (function (global, factory) {
  15861. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  15862. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  15863. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  15864. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  15865. })(this, function (moment) {
  15866. 'use strict';
  15867. //! moment.js locale configuration
  15868. function translate(number, withoutSuffix, key) {
  15869. var result = number + ' ';
  15870. switch (key) {
  15871. case 'ss':
  15872. if (number === 1) {
  15873. result += 'sekunda';
  15874. } else if (number === 2 || number === 3 || number === 4) {
  15875. result += 'sekunde';
  15876. } else {
  15877. result += 'sekundi';
  15878. }
  15879. return result;
  15880. case 'm':
  15881. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  15882. case 'mm':
  15883. if (number === 1) {
  15884. result += 'minuta';
  15885. } else if (number === 2 || number === 3 || number === 4) {
  15886. result += 'minute';
  15887. } else {
  15888. result += 'minuta';
  15889. }
  15890. return result;
  15891. case 'h':
  15892. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  15893. case 'hh':
  15894. if (number === 1) {
  15895. result += 'sat';
  15896. } else if (number === 2 || number === 3 || number === 4) {
  15897. result += 'sata';
  15898. } else {
  15899. result += 'sati';
  15900. }
  15901. return result;
  15902. case 'dd':
  15903. if (number === 1) {
  15904. result += 'dan';
  15905. } else {
  15906. result += 'dana';
  15907. }
  15908. return result;
  15909. case 'MM':
  15910. if (number === 1) {
  15911. result += 'mjesec';
  15912. } else if (number === 2 || number === 3 || number === 4) {
  15913. result += 'mjeseca';
  15914. } else {
  15915. result += 'mjeseci';
  15916. }
  15917. return result;
  15918. case 'yy':
  15919. if (number === 1) {
  15920. result += 'godina';
  15921. } else if (number === 2 || number === 3 || number === 4) {
  15922. result += 'godine';
  15923. } else {
  15924. result += 'godina';
  15925. }
  15926. return result;
  15927. }
  15928. }
  15929. var bs = moment.defineLocale('bs', {
  15930. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  15931. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  15932. monthsParseExact: true,
  15933. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  15934. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  15935. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  15936. weekdaysParseExact: true,
  15937. longDateFormat: {
  15938. LT: 'H:mm',
  15939. LTS: 'H:mm:ss',
  15940. L: 'DD.MM.YYYY',
  15941. LL: 'D. MMMM YYYY',
  15942. LLL: 'D. MMMM YYYY H:mm',
  15943. LLLL: 'dddd, D. MMMM YYYY H:mm'
  15944. },
  15945. calendar: {
  15946. sameDay: '[danas u] LT',
  15947. nextDay: '[sutra u] LT',
  15948. nextWeek: function nextWeek() {
  15949. switch (this.day()) {
  15950. case 0:
  15951. return '[u] [nedjelju] [u] LT';
  15952. case 3:
  15953. return '[u] [srijedu] [u] LT';
  15954. case 6:
  15955. return '[u] [subotu] [u] LT';
  15956. case 1:
  15957. case 2:
  15958. case 4:
  15959. case 5:
  15960. return '[u] dddd [u] LT';
  15961. }
  15962. },
  15963. lastDay: '[jučer u] LT',
  15964. lastWeek: function lastWeek() {
  15965. switch (this.day()) {
  15966. case 0:
  15967. case 3:
  15968. return '[prošlu] dddd [u] LT';
  15969. case 6:
  15970. return '[prošle] [subote] [u] LT';
  15971. case 1:
  15972. case 2:
  15973. case 4:
  15974. case 5:
  15975. return '[prošli] dddd [u] LT';
  15976. }
  15977. },
  15978. sameElse: 'L'
  15979. },
  15980. relativeTime: {
  15981. future: 'za %s',
  15982. past: 'prije %s',
  15983. s: 'par sekundi',
  15984. ss: translate,
  15985. m: translate,
  15986. mm: translate,
  15987. h: translate,
  15988. hh: translate,
  15989. d: 'dan',
  15990. dd: translate,
  15991. M: 'mjesec',
  15992. MM: translate,
  15993. y: 'godinu',
  15994. yy: translate
  15995. },
  15996. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15997. ordinal: '%d.',
  15998. week: {
  15999. dow: 1,
  16000. // Monday is the first day of the week.
  16001. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16002. }
  16003. });
  16004. return bs;
  16005. });
  16006. /***/ }),
  16007. /* 59 */
  16008. /*!***************************************************************!*\
  16009. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ca.js ***!
  16010. \***************************************************************/
  16011. /*! no static exports found */
  16012. /***/ (function(module, exports, __webpack_require__) {
  16013. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16014. //! moment.js locale configuration
  16015. //! locale : Catalan [ca]
  16016. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  16017. ;
  16018. (function (global, factory) {
  16019. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16020. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16021. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16022. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16023. })(this, function (moment) {
  16024. 'use strict';
  16025. //! moment.js locale configuration
  16026. var ca = moment.defineLocale('ca', {
  16027. months: {
  16028. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  16029. format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split('_'),
  16030. isFormat: /D[oD]?(\s)+MMMM/
  16031. },
  16032. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  16033. monthsParseExact: true,
  16034. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  16035. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  16036. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  16037. weekdaysParseExact: true,
  16038. longDateFormat: {
  16039. LT: 'H:mm',
  16040. LTS: 'H:mm:ss',
  16041. L: 'DD/MM/YYYY',
  16042. LL: 'D MMMM [de] YYYY',
  16043. ll: 'D MMM YYYY',
  16044. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  16045. lll: 'D MMM YYYY, H:mm',
  16046. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  16047. llll: 'ddd D MMM YYYY, H:mm'
  16048. },
  16049. calendar: {
  16050. sameDay: function sameDay() {
  16051. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16052. },
  16053. nextDay: function nextDay() {
  16054. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16055. },
  16056. nextWeek: function nextWeek() {
  16057. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16058. },
  16059. lastDay: function lastDay() {
  16060. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16061. },
  16062. lastWeek: function lastWeek() {
  16063. return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  16064. },
  16065. sameElse: 'L'
  16066. },
  16067. relativeTime: {
  16068. future: "d'aquí %s",
  16069. past: 'fa %s',
  16070. s: 'uns segons',
  16071. ss: '%d segons',
  16072. m: 'un minut',
  16073. mm: '%d minuts',
  16074. h: 'una hora',
  16075. hh: '%d hores',
  16076. d: 'un dia',
  16077. dd: '%d dies',
  16078. M: 'un mes',
  16079. MM: '%d mesos',
  16080. y: 'un any',
  16081. yy: '%d anys'
  16082. },
  16083. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  16084. ordinal: function ordinal(number, period) {
  16085. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  16086. if (period === 'w' || period === 'W') {
  16087. output = 'a';
  16088. }
  16089. return number + output;
  16090. },
  16091. week: {
  16092. dow: 1,
  16093. // Monday is the first day of the week.
  16094. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16095. }
  16096. });
  16097. return ca;
  16098. });
  16099. /***/ }),
  16100. /* 60 */
  16101. /*!***************************************************************!*\
  16102. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cs.js ***!
  16103. \***************************************************************/
  16104. /*! no static exports found */
  16105. /***/ (function(module, exports, __webpack_require__) {
  16106. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16107. //! moment.js locale configuration
  16108. //! locale : Czech [cs]
  16109. //! author : petrbela : https://github.com/petrbela
  16110. ;
  16111. (function (global, factory) {
  16112. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16113. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16114. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16115. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16116. })(this, function (moment) {
  16117. 'use strict';
  16118. //! moment.js locale configuration
  16119. var months = {
  16120. format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  16121. standalone: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split('_')
  16122. },
  16123. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  16124. monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],
  16125. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16126. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16127. monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  16128. function plural(n) {
  16129. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  16130. }
  16131. function translate(number, withoutSuffix, key, isFuture) {
  16132. var result = number + ' ';
  16133. switch (key) {
  16134. case 's':
  16135. // a few seconds / in a few seconds / a few seconds ago
  16136. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  16137. case 'ss':
  16138. // 9 seconds / in 9 seconds / 9 seconds ago
  16139. if (withoutSuffix || isFuture) {
  16140. return result + (plural(number) ? 'sekundy' : 'sekund');
  16141. } else {
  16142. return result + 'sekundami';
  16143. }
  16144. case 'm':
  16145. // a minute / in a minute / a minute ago
  16146. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  16147. case 'mm':
  16148. // 9 minutes / in 9 minutes / 9 minutes ago
  16149. if (withoutSuffix || isFuture) {
  16150. return result + (plural(number) ? 'minuty' : 'minut');
  16151. } else {
  16152. return result + 'minutami';
  16153. }
  16154. case 'h':
  16155. // an hour / in an hour / an hour ago
  16156. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  16157. case 'hh':
  16158. // 9 hours / in 9 hours / 9 hours ago
  16159. if (withoutSuffix || isFuture) {
  16160. return result + (plural(number) ? 'hodiny' : 'hodin');
  16161. } else {
  16162. return result + 'hodinami';
  16163. }
  16164. case 'd':
  16165. // a day / in a day / a day ago
  16166. return withoutSuffix || isFuture ? 'den' : 'dnem';
  16167. case 'dd':
  16168. // 9 days / in 9 days / 9 days ago
  16169. if (withoutSuffix || isFuture) {
  16170. return result + (plural(number) ? 'dny' : 'dní');
  16171. } else {
  16172. return result + 'dny';
  16173. }
  16174. case 'M':
  16175. // a month / in a month / a month ago
  16176. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  16177. case 'MM':
  16178. // 9 months / in 9 months / 9 months ago
  16179. if (withoutSuffix || isFuture) {
  16180. return result + (plural(number) ? 'měsíce' : 'měsíců');
  16181. } else {
  16182. return result + 'měsíci';
  16183. }
  16184. case 'y':
  16185. // a year / in a year / a year ago
  16186. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  16187. case 'yy':
  16188. // 9 years / in 9 years / 9 years ago
  16189. if (withoutSuffix || isFuture) {
  16190. return result + (plural(number) ? 'roky' : 'let');
  16191. } else {
  16192. return result + 'lety';
  16193. }
  16194. }
  16195. }
  16196. var cs = moment.defineLocale('cs', {
  16197. months: months,
  16198. monthsShort: monthsShort,
  16199. monthsRegex: monthsRegex,
  16200. monthsShortRegex: monthsRegex,
  16201. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  16202. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  16203. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  16204. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  16205. monthsParse: monthsParse,
  16206. longMonthsParse: monthsParse,
  16207. shortMonthsParse: monthsParse,
  16208. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  16209. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  16210. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  16211. longDateFormat: {
  16212. LT: 'H:mm',
  16213. LTS: 'H:mm:ss',
  16214. L: 'DD.MM.YYYY',
  16215. LL: 'D. MMMM YYYY',
  16216. LLL: 'D. MMMM YYYY H:mm',
  16217. LLLL: 'dddd D. MMMM YYYY H:mm',
  16218. l: 'D. M. YYYY'
  16219. },
  16220. calendar: {
  16221. sameDay: '[dnes v] LT',
  16222. nextDay: '[zítra v] LT',
  16223. nextWeek: function nextWeek() {
  16224. switch (this.day()) {
  16225. case 0:
  16226. return '[v neděli v] LT';
  16227. case 1:
  16228. case 2:
  16229. return '[v] dddd [v] LT';
  16230. case 3:
  16231. return '[ve středu v] LT';
  16232. case 4:
  16233. return '[ve čtvrtek v] LT';
  16234. case 5:
  16235. return '[v pátek v] LT';
  16236. case 6:
  16237. return '[v sobotu v] LT';
  16238. }
  16239. },
  16240. lastDay: '[včera v] LT',
  16241. lastWeek: function lastWeek() {
  16242. switch (this.day()) {
  16243. case 0:
  16244. return '[minulou neděli v] LT';
  16245. case 1:
  16246. case 2:
  16247. return '[minulé] dddd [v] LT';
  16248. case 3:
  16249. return '[minulou středu v] LT';
  16250. case 4:
  16251. case 5:
  16252. return '[minulý] dddd [v] LT';
  16253. case 6:
  16254. return '[minulou sobotu v] LT';
  16255. }
  16256. },
  16257. sameElse: 'L'
  16258. },
  16259. relativeTime: {
  16260. future: 'za %s',
  16261. past: 'před %s',
  16262. s: translate,
  16263. ss: translate,
  16264. m: translate,
  16265. mm: translate,
  16266. h: translate,
  16267. hh: translate,
  16268. d: translate,
  16269. dd: translate,
  16270. M: translate,
  16271. MM: translate,
  16272. y: translate,
  16273. yy: translate
  16274. },
  16275. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16276. ordinal: '%d.',
  16277. week: {
  16278. dow: 1,
  16279. // Monday is the first day of the week.
  16280. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16281. }
  16282. });
  16283. return cs;
  16284. });
  16285. /***/ }),
  16286. /* 61 */
  16287. /*!***************************************************************!*\
  16288. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cv.js ***!
  16289. \***************************************************************/
  16290. /*! no static exports found */
  16291. /***/ (function(module, exports, __webpack_require__) {
  16292. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16293. //! moment.js locale configuration
  16294. //! locale : Chuvash [cv]
  16295. //! author : Anatoly Mironov : https://github.com/mirontoli
  16296. ;
  16297. (function (global, factory) {
  16298. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16299. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16300. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16301. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16302. })(this, function (moment) {
  16303. 'use strict';
  16304. //! moment.js locale configuration
  16305. var cv = moment.defineLocale('cv', {
  16306. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  16307. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  16308. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  16309. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  16310. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  16311. longDateFormat: {
  16312. LT: 'HH:mm',
  16313. LTS: 'HH:mm:ss',
  16314. L: 'DD-MM-YYYY',
  16315. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  16316. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  16317. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  16318. },
  16319. calendar: {
  16320. sameDay: '[Паян] LT [сехетре]',
  16321. nextDay: '[Ыран] LT [сехетре]',
  16322. lastDay: '[Ӗнер] LT [сехетре]',
  16323. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  16324. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  16325. sameElse: 'L'
  16326. },
  16327. relativeTime: {
  16328. future: function future(output) {
  16329. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  16330. return output + affix;
  16331. },
  16332. past: '%s каялла',
  16333. s: 'пӗр-ик ҫеккунт',
  16334. ss: '%d ҫеккунт',
  16335. m: 'пӗр минут',
  16336. mm: '%d минут',
  16337. h: 'пӗр сехет',
  16338. hh: '%d сехет',
  16339. d: 'пӗр кун',
  16340. dd: '%d кун',
  16341. M: 'пӗр уйӑх',
  16342. MM: '%d уйӑх',
  16343. y: 'пӗр ҫул',
  16344. yy: '%d ҫул'
  16345. },
  16346. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  16347. ordinal: '%d-мӗш',
  16348. week: {
  16349. dow: 1,
  16350. // Monday is the first day of the week.
  16351. doy: 7 // The week that contains Jan 7th is the first week of the year.
  16352. }
  16353. });
  16354. return cv;
  16355. });
  16356. /***/ }),
  16357. /* 62 */
  16358. /*!***************************************************************!*\
  16359. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/cy.js ***!
  16360. \***************************************************************/
  16361. /*! no static exports found */
  16362. /***/ (function(module, exports, __webpack_require__) {
  16363. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16364. //! moment.js locale configuration
  16365. //! locale : Welsh [cy]
  16366. //! author : Robert Allen : https://github.com/robgallen
  16367. //! author : https://github.com/ryangreaves
  16368. ;
  16369. (function (global, factory) {
  16370. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16371. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16372. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16373. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16374. })(this, function (moment) {
  16375. 'use strict';
  16376. //! moment.js locale configuration
  16377. var cy = moment.defineLocale('cy', {
  16378. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  16379. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  16380. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  16381. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  16382. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  16383. weekdaysParseExact: true,
  16384. // time formats are the same as en-gb
  16385. longDateFormat: {
  16386. LT: 'HH:mm',
  16387. LTS: 'HH:mm:ss',
  16388. L: 'DD/MM/YYYY',
  16389. LL: 'D MMMM YYYY',
  16390. LLL: 'D MMMM YYYY HH:mm',
  16391. LLLL: 'dddd, D MMMM YYYY HH:mm'
  16392. },
  16393. calendar: {
  16394. sameDay: '[Heddiw am] LT',
  16395. nextDay: '[Yfory am] LT',
  16396. nextWeek: 'dddd [am] LT',
  16397. lastDay: '[Ddoe am] LT',
  16398. lastWeek: 'dddd [diwethaf am] LT',
  16399. sameElse: 'L'
  16400. },
  16401. relativeTime: {
  16402. future: 'mewn %s',
  16403. past: '%s yn ôl',
  16404. s: 'ychydig eiliadau',
  16405. ss: '%d eiliad',
  16406. m: 'munud',
  16407. mm: '%d munud',
  16408. h: 'awr',
  16409. hh: '%d awr',
  16410. d: 'diwrnod',
  16411. dd: '%d diwrnod',
  16412. M: 'mis',
  16413. MM: '%d mis',
  16414. y: 'blwyddyn',
  16415. yy: '%d flynedd'
  16416. },
  16417. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  16418. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  16419. ordinal: function ordinal(number) {
  16420. var b = number,
  16421. output = '',
  16422. lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed',
  16423. // 1af to 10fed
  16424. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  16425. ];
  16426. if (b > 20) {
  16427. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  16428. output = 'fed'; // not 30ain, 70ain or 90ain
  16429. } else {
  16430. output = 'ain';
  16431. }
  16432. } else if (b > 0) {
  16433. output = lookup[b];
  16434. }
  16435. return number + output;
  16436. },
  16437. week: {
  16438. dow: 1,
  16439. // Monday is the first day of the week.
  16440. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16441. }
  16442. });
  16443. return cy;
  16444. });
  16445. /***/ }),
  16446. /* 63 */
  16447. /*!***************************************************************!*\
  16448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/da.js ***!
  16449. \***************************************************************/
  16450. /*! no static exports found */
  16451. /***/ (function(module, exports, __webpack_require__) {
  16452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16453. //! moment.js locale configuration
  16454. //! locale : Danish [da]
  16455. //! author : Ulrik Nielsen : https://github.com/mrbase
  16456. ;
  16457. (function (global, factory) {
  16458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16462. })(this, function (moment) {
  16463. 'use strict';
  16464. //! moment.js locale configuration
  16465. var da = moment.defineLocale('da', {
  16466. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  16467. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  16468. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  16469. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  16470. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  16471. longDateFormat: {
  16472. LT: 'HH:mm',
  16473. LTS: 'HH:mm:ss',
  16474. L: 'DD.MM.YYYY',
  16475. LL: 'D. MMMM YYYY',
  16476. LLL: 'D. MMMM YYYY HH:mm',
  16477. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  16478. },
  16479. calendar: {
  16480. sameDay: '[i dag kl.] LT',
  16481. nextDay: '[i morgen kl.] LT',
  16482. nextWeek: 'på dddd [kl.] LT',
  16483. lastDay: '[i går kl.] LT',
  16484. lastWeek: '[i] dddd[s kl.] LT',
  16485. sameElse: 'L'
  16486. },
  16487. relativeTime: {
  16488. future: 'om %s',
  16489. past: '%s siden',
  16490. s: 'få sekunder',
  16491. ss: '%d sekunder',
  16492. m: 'et minut',
  16493. mm: '%d minutter',
  16494. h: 'en time',
  16495. hh: '%d timer',
  16496. d: 'en dag',
  16497. dd: '%d dage',
  16498. M: 'en måned',
  16499. MM: '%d måneder',
  16500. y: 'et år',
  16501. yy: '%d år'
  16502. },
  16503. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16504. ordinal: '%d.',
  16505. week: {
  16506. dow: 1,
  16507. // Monday is the first day of the week.
  16508. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16509. }
  16510. });
  16511. return da;
  16512. });
  16513. /***/ }),
  16514. /* 64 */
  16515. /*!***************************************************************!*\
  16516. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de.js ***!
  16517. \***************************************************************/
  16518. /*! no static exports found */
  16519. /***/ (function(module, exports, __webpack_require__) {
  16520. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16521. //! moment.js locale configuration
  16522. //! locale : German [de]
  16523. //! author : lluchs : https://github.com/lluchs
  16524. //! author: Menelion Elensúle: https://github.com/Oire
  16525. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16526. ;
  16527. (function (global, factory) {
  16528. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16529. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16530. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16531. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16532. })(this, function (moment) {
  16533. 'use strict';
  16534. //! moment.js locale configuration
  16535. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16536. var format = {
  16537. m: ['eine Minute', 'einer Minute'],
  16538. h: ['eine Stunde', 'einer Stunde'],
  16539. d: ['ein Tag', 'einem Tag'],
  16540. dd: [number + ' Tage', number + ' Tagen'],
  16541. w: ['eine Woche', 'einer Woche'],
  16542. M: ['ein Monat', 'einem Monat'],
  16543. MM: [number + ' Monate', number + ' Monaten'],
  16544. y: ['ein Jahr', 'einem Jahr'],
  16545. yy: [number + ' Jahre', number + ' Jahren']
  16546. };
  16547. return withoutSuffix ? format[key][0] : format[key][1];
  16548. }
  16549. var de = moment.defineLocale('de', {
  16550. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16551. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16552. monthsParseExact: true,
  16553. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16554. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16555. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16556. weekdaysParseExact: true,
  16557. longDateFormat: {
  16558. LT: 'HH:mm',
  16559. LTS: 'HH:mm:ss',
  16560. L: 'DD.MM.YYYY',
  16561. LL: 'D. MMMM YYYY',
  16562. LLL: 'D. MMMM YYYY HH:mm',
  16563. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16564. },
  16565. calendar: {
  16566. sameDay: '[heute um] LT [Uhr]',
  16567. sameElse: 'L',
  16568. nextDay: '[morgen um] LT [Uhr]',
  16569. nextWeek: 'dddd [um] LT [Uhr]',
  16570. lastDay: '[gestern um] LT [Uhr]',
  16571. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16572. },
  16573. relativeTime: {
  16574. future: 'in %s',
  16575. past: 'vor %s',
  16576. s: 'ein paar Sekunden',
  16577. ss: '%d Sekunden',
  16578. m: processRelativeTime,
  16579. mm: '%d Minuten',
  16580. h: processRelativeTime,
  16581. hh: '%d Stunden',
  16582. d: processRelativeTime,
  16583. dd: processRelativeTime,
  16584. w: processRelativeTime,
  16585. ww: '%d Wochen',
  16586. M: processRelativeTime,
  16587. MM: processRelativeTime,
  16588. y: processRelativeTime,
  16589. yy: processRelativeTime
  16590. },
  16591. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16592. ordinal: '%d.',
  16593. week: {
  16594. dow: 1,
  16595. // Monday is the first day of the week.
  16596. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16597. }
  16598. });
  16599. return de;
  16600. });
  16601. /***/ }),
  16602. /* 65 */
  16603. /*!******************************************************************!*\
  16604. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de-at.js ***!
  16605. \******************************************************************/
  16606. /*! no static exports found */
  16607. /***/ (function(module, exports, __webpack_require__) {
  16608. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16609. //! moment.js locale configuration
  16610. //! locale : German (Austria) [de-at]
  16611. //! author : lluchs : https://github.com/lluchs
  16612. //! author: Menelion Elensúle: https://github.com/Oire
  16613. //! author : Martin Groller : https://github.com/MadMG
  16614. //! author : Mikolaj Dadela : https://github.com/mik01aj
  16615. ;
  16616. (function (global, factory) {
  16617. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16618. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16619. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16620. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16621. })(this, function (moment) {
  16622. 'use strict';
  16623. //! moment.js locale configuration
  16624. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16625. var format = {
  16626. m: ['eine Minute', 'einer Minute'],
  16627. h: ['eine Stunde', 'einer Stunde'],
  16628. d: ['ein Tag', 'einem Tag'],
  16629. dd: [number + ' Tage', number + ' Tagen'],
  16630. w: ['eine Woche', 'einer Woche'],
  16631. M: ['ein Monat', 'einem Monat'],
  16632. MM: [number + ' Monate', number + ' Monaten'],
  16633. y: ['ein Jahr', 'einem Jahr'],
  16634. yy: [number + ' Jahre', number + ' Jahren']
  16635. };
  16636. return withoutSuffix ? format[key][0] : format[key][1];
  16637. }
  16638. var deAt = moment.defineLocale('de-at', {
  16639. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16640. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16641. monthsParseExact: true,
  16642. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16643. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  16644. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16645. weekdaysParseExact: true,
  16646. longDateFormat: {
  16647. LT: 'HH:mm',
  16648. LTS: 'HH:mm:ss',
  16649. L: 'DD.MM.YYYY',
  16650. LL: 'D. MMMM YYYY',
  16651. LLL: 'D. MMMM YYYY HH:mm',
  16652. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16653. },
  16654. calendar: {
  16655. sameDay: '[heute um] LT [Uhr]',
  16656. sameElse: 'L',
  16657. nextDay: '[morgen um] LT [Uhr]',
  16658. nextWeek: 'dddd [um] LT [Uhr]',
  16659. lastDay: '[gestern um] LT [Uhr]',
  16660. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16661. },
  16662. relativeTime: {
  16663. future: 'in %s',
  16664. past: 'vor %s',
  16665. s: 'ein paar Sekunden',
  16666. ss: '%d Sekunden',
  16667. m: processRelativeTime,
  16668. mm: '%d Minuten',
  16669. h: processRelativeTime,
  16670. hh: '%d Stunden',
  16671. d: processRelativeTime,
  16672. dd: processRelativeTime,
  16673. w: processRelativeTime,
  16674. ww: '%d Wochen',
  16675. M: processRelativeTime,
  16676. MM: processRelativeTime,
  16677. y: processRelativeTime,
  16678. yy: processRelativeTime
  16679. },
  16680. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16681. ordinal: '%d.',
  16682. week: {
  16683. dow: 1,
  16684. // Monday is the first day of the week.
  16685. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16686. }
  16687. });
  16688. return deAt;
  16689. });
  16690. /***/ }),
  16691. /* 66 */
  16692. /*!******************************************************************!*\
  16693. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/de-ch.js ***!
  16694. \******************************************************************/
  16695. /*! no static exports found */
  16696. /***/ (function(module, exports, __webpack_require__) {
  16697. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16698. //! moment.js locale configuration
  16699. //! locale : German (Switzerland) [de-ch]
  16700. //! author : sschueller : https://github.com/sschueller
  16701. ;
  16702. (function (global, factory) {
  16703. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16704. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16705. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16706. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16707. })(this, function (moment) {
  16708. 'use strict';
  16709. //! moment.js locale configuration
  16710. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  16711. var format = {
  16712. m: ['eine Minute', 'einer Minute'],
  16713. h: ['eine Stunde', 'einer Stunde'],
  16714. d: ['ein Tag', 'einem Tag'],
  16715. dd: [number + ' Tage', number + ' Tagen'],
  16716. w: ['eine Woche', 'einer Woche'],
  16717. M: ['ein Monat', 'einem Monat'],
  16718. MM: [number + ' Monate', number + ' Monaten'],
  16719. y: ['ein Jahr', 'einem Jahr'],
  16720. yy: [number + ' Jahre', number + ' Jahren']
  16721. };
  16722. return withoutSuffix ? format[key][0] : format[key][1];
  16723. }
  16724. var deCh = moment.defineLocale('de-ch', {
  16725. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  16726. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  16727. monthsParseExact: true,
  16728. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  16729. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16730. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  16731. weekdaysParseExact: true,
  16732. longDateFormat: {
  16733. LT: 'HH:mm',
  16734. LTS: 'HH:mm:ss',
  16735. L: 'DD.MM.YYYY',
  16736. LL: 'D. MMMM YYYY',
  16737. LLL: 'D. MMMM YYYY HH:mm',
  16738. LLLL: 'dddd, D. MMMM YYYY HH:mm'
  16739. },
  16740. calendar: {
  16741. sameDay: '[heute um] LT [Uhr]',
  16742. sameElse: 'L',
  16743. nextDay: '[morgen um] LT [Uhr]',
  16744. nextWeek: 'dddd [um] LT [Uhr]',
  16745. lastDay: '[gestern um] LT [Uhr]',
  16746. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  16747. },
  16748. relativeTime: {
  16749. future: 'in %s',
  16750. past: 'vor %s',
  16751. s: 'ein paar Sekunden',
  16752. ss: '%d Sekunden',
  16753. m: processRelativeTime,
  16754. mm: '%d Minuten',
  16755. h: processRelativeTime,
  16756. hh: '%d Stunden',
  16757. d: processRelativeTime,
  16758. dd: processRelativeTime,
  16759. w: processRelativeTime,
  16760. ww: '%d Wochen',
  16761. M: processRelativeTime,
  16762. MM: processRelativeTime,
  16763. y: processRelativeTime,
  16764. yy: processRelativeTime
  16765. },
  16766. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16767. ordinal: '%d.',
  16768. week: {
  16769. dow: 1,
  16770. // Monday is the first day of the week.
  16771. doy: 4 // The week that contains Jan 4th is the first week of the year.
  16772. }
  16773. });
  16774. return deCh;
  16775. });
  16776. /***/ }),
  16777. /* 67 */
  16778. /*!***************************************************************!*\
  16779. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/dv.js ***!
  16780. \***************************************************************/
  16781. /*! no static exports found */
  16782. /***/ (function(module, exports, __webpack_require__) {
  16783. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16784. //! moment.js locale configuration
  16785. //! locale : Maldivian [dv]
  16786. //! author : Jawish Hameed : https://github.com/jawish
  16787. ;
  16788. (function (global, factory) {
  16789. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16790. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16791. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16792. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16793. })(this, function (moment) {
  16794. 'use strict';
  16795. //! moment.js locale configuration
  16796. var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],
  16797. weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];
  16798. var dv = moment.defineLocale('dv', {
  16799. months: months,
  16800. monthsShort: months,
  16801. weekdays: weekdays,
  16802. weekdaysShort: weekdays,
  16803. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  16804. longDateFormat: {
  16805. LT: 'HH:mm',
  16806. LTS: 'HH:mm:ss',
  16807. L: 'D/M/YYYY',
  16808. LL: 'D MMMM YYYY',
  16809. LLL: 'D MMMM YYYY HH:mm',
  16810. LLLL: 'dddd D MMMM YYYY HH:mm'
  16811. },
  16812. meridiemParse: /މކ|މފ/,
  16813. isPM: function isPM(input) {
  16814. return 'މފ' === input;
  16815. },
  16816. meridiem: function meridiem(hour, minute, isLower) {
  16817. if (hour < 12) {
  16818. return 'މކ';
  16819. } else {
  16820. return 'މފ';
  16821. }
  16822. },
  16823. calendar: {
  16824. sameDay: '[މިއަދު] LT',
  16825. nextDay: '[މާދަމާ] LT',
  16826. nextWeek: 'dddd LT',
  16827. lastDay: '[އިއްޔެ] LT',
  16828. lastWeek: '[ފާއިތުވި] dddd LT',
  16829. sameElse: 'L'
  16830. },
  16831. relativeTime: {
  16832. future: 'ތެރޭގައި %s',
  16833. past: 'ކުރިން %s',
  16834. s: 'ސިކުންތުކޮޅެއް',
  16835. ss: 'd% ސިކުންތު',
  16836. m: 'މިނިޓެއް',
  16837. mm: 'މިނިޓު %d',
  16838. h: 'ގަޑިއިރެއް',
  16839. hh: 'ގަޑިއިރު %d',
  16840. d: 'ދުވަހެއް',
  16841. dd: 'ދުވަސް %d',
  16842. M: 'މަހެއް',
  16843. MM: 'މަސް %d',
  16844. y: 'އަހަރެއް',
  16845. yy: 'އަހަރު %d'
  16846. },
  16847. preparse: function preparse(string) {
  16848. return string.replace(/،/g, ',');
  16849. },
  16850. postformat: function postformat(string) {
  16851. return string.replace(/,/g, '،');
  16852. },
  16853. week: {
  16854. dow: 7,
  16855. // Sunday is the first day of the week.
  16856. doy: 12 // The week that contains Jan 12th is the first week of the year.
  16857. }
  16858. });
  16859. return dv;
  16860. });
  16861. /***/ }),
  16862. /* 68 */
  16863. /*!***************************************************************!*\
  16864. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/el.js ***!
  16865. \***************************************************************/
  16866. /*! no static exports found */
  16867. /***/ (function(module, exports, __webpack_require__) {
  16868. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16869. //! moment.js locale configuration
  16870. //! locale : Greek [el]
  16871. //! author : Aggelos Karalias : https://github.com/mehiel
  16872. ;
  16873. (function (global, factory) {
  16874. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16875. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16876. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16877. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16878. })(this, function (moment) {
  16879. 'use strict';
  16880. //! moment.js locale configuration
  16881. function isFunction(input) {
  16882. return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  16883. }
  16884. var el = moment.defineLocale('el', {
  16885. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  16886. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  16887. months: function months(momentToFormat, format) {
  16888. if (!momentToFormat) {
  16889. return this._monthsNominativeEl;
  16890. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {
  16891. // if there is a day number before 'MMMM'
  16892. return this._monthsGenitiveEl[momentToFormat.month()];
  16893. } else {
  16894. return this._monthsNominativeEl[momentToFormat.month()];
  16895. }
  16896. },
  16897. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  16898. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  16899. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  16900. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  16901. meridiem: function meridiem(hours, minutes, isLower) {
  16902. if (hours > 11) {
  16903. return isLower ? 'μμ' : 'ΜΜ';
  16904. } else {
  16905. return isLower ? 'πμ' : 'ΠΜ';
  16906. }
  16907. },
  16908. isPM: function isPM(input) {
  16909. return (input + '').toLowerCase()[0] === 'μ';
  16910. },
  16911. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  16912. longDateFormat: {
  16913. LT: 'h:mm A',
  16914. LTS: 'h:mm:ss A',
  16915. L: 'DD/MM/YYYY',
  16916. LL: 'D MMMM YYYY',
  16917. LLL: 'D MMMM YYYY h:mm A',
  16918. LLLL: 'dddd, D MMMM YYYY h:mm A'
  16919. },
  16920. calendarEl: {
  16921. sameDay: '[Σήμερα {}] LT',
  16922. nextDay: '[Αύριο {}] LT',
  16923. nextWeek: 'dddd [{}] LT',
  16924. lastDay: '[Χθες {}] LT',
  16925. lastWeek: function lastWeek() {
  16926. switch (this.day()) {
  16927. case 6:
  16928. return '[το προηγούμενο] dddd [{}] LT';
  16929. default:
  16930. return '[την προηγούμενη] dddd [{}] LT';
  16931. }
  16932. },
  16933. sameElse: 'L'
  16934. },
  16935. calendar: function calendar(key, mom) {
  16936. var output = this._calendarEl[key],
  16937. hours = mom && mom.hours();
  16938. if (isFunction(output)) {
  16939. output = output.apply(mom);
  16940. }
  16941. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  16942. },
  16943. relativeTime: {
  16944. future: 'σε %s',
  16945. past: '%s πριν',
  16946. s: 'λίγα δευτερόλεπτα',
  16947. ss: '%d δευτερόλεπτα',
  16948. m: 'ένα λεπτό',
  16949. mm: '%d λεπτά',
  16950. h: 'μία ώρα',
  16951. hh: '%d ώρες',
  16952. d: 'μία μέρα',
  16953. dd: '%d μέρες',
  16954. M: 'ένας μήνας',
  16955. MM: '%d μήνες',
  16956. y: 'ένας χρόνος',
  16957. yy: '%d χρόνια'
  16958. },
  16959. dayOfMonthOrdinalParse: /\d{1,2}η/,
  16960. ordinal: '%dη',
  16961. week: {
  16962. dow: 1,
  16963. // Monday is the first day of the week.
  16964. doy: 4 // The week that contains Jan 4st is the first week of the year.
  16965. }
  16966. });
  16967. return el;
  16968. });
  16969. /***/ }),
  16970. /* 69 */
  16971. /*!******************************************************************!*\
  16972. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-au.js ***!
  16973. \******************************************************************/
  16974. /*! no static exports found */
  16975. /***/ (function(module, exports, __webpack_require__) {
  16976. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  16977. //! moment.js locale configuration
  16978. //! locale : English (Australia) [en-au]
  16979. //! author : Jared Morse : https://github.com/jarcoal
  16980. ;
  16981. (function (global, factory) {
  16982. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  16983. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  16984. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  16985. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  16986. })(this, function (moment) {
  16987. 'use strict';
  16988. //! moment.js locale configuration
  16989. var enAu = moment.defineLocale('en-au', {
  16990. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  16991. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  16992. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  16993. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  16994. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  16995. longDateFormat: {
  16996. LT: 'h:mm A',
  16997. LTS: 'h:mm:ss A',
  16998. L: 'DD/MM/YYYY',
  16999. LL: 'D MMMM YYYY',
  17000. LLL: 'D MMMM YYYY h:mm A',
  17001. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17002. },
  17003. calendar: {
  17004. sameDay: '[Today at] LT',
  17005. nextDay: '[Tomorrow at] LT',
  17006. nextWeek: 'dddd [at] LT',
  17007. lastDay: '[Yesterday at] LT',
  17008. lastWeek: '[Last] dddd [at] LT',
  17009. sameElse: 'L'
  17010. },
  17011. relativeTime: {
  17012. future: 'in %s',
  17013. past: '%s ago',
  17014. s: 'a few seconds',
  17015. ss: '%d seconds',
  17016. m: 'a minute',
  17017. mm: '%d minutes',
  17018. h: 'an hour',
  17019. hh: '%d hours',
  17020. d: 'a day',
  17021. dd: '%d days',
  17022. M: 'a month',
  17023. MM: '%d months',
  17024. y: 'a year',
  17025. yy: '%d years'
  17026. },
  17027. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17028. ordinal: function ordinal(number) {
  17029. var b = number % 10,
  17030. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17031. return number + output;
  17032. },
  17033. week: {
  17034. dow: 0,
  17035. // Sunday is the first day of the week.
  17036. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17037. }
  17038. });
  17039. return enAu;
  17040. });
  17041. /***/ }),
  17042. /* 70 */
  17043. /*!******************************************************************!*\
  17044. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-ca.js ***!
  17045. \******************************************************************/
  17046. /*! no static exports found */
  17047. /***/ (function(module, exports, __webpack_require__) {
  17048. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17049. //! moment.js locale configuration
  17050. //! locale : English (Canada) [en-ca]
  17051. //! author : Jonathan Abourbih : https://github.com/jonbca
  17052. ;
  17053. (function (global, factory) {
  17054. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17055. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17056. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17057. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17058. })(this, function (moment) {
  17059. 'use strict';
  17060. //! moment.js locale configuration
  17061. var enCa = moment.defineLocale('en-ca', {
  17062. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17063. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17064. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17065. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17066. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17067. longDateFormat: {
  17068. LT: 'h:mm A',
  17069. LTS: 'h:mm:ss A',
  17070. L: 'YYYY-MM-DD',
  17071. LL: 'MMMM D, YYYY',
  17072. LLL: 'MMMM D, YYYY h:mm A',
  17073. LLLL: 'dddd, MMMM D, YYYY h:mm A'
  17074. },
  17075. calendar: {
  17076. sameDay: '[Today at] LT',
  17077. nextDay: '[Tomorrow at] LT',
  17078. nextWeek: 'dddd [at] LT',
  17079. lastDay: '[Yesterday at] LT',
  17080. lastWeek: '[Last] dddd [at] LT',
  17081. sameElse: 'L'
  17082. },
  17083. relativeTime: {
  17084. future: 'in %s',
  17085. past: '%s ago',
  17086. s: 'a few seconds',
  17087. ss: '%d seconds',
  17088. m: 'a minute',
  17089. mm: '%d minutes',
  17090. h: 'an hour',
  17091. hh: '%d hours',
  17092. d: 'a day',
  17093. dd: '%d days',
  17094. M: 'a month',
  17095. MM: '%d months',
  17096. y: 'a year',
  17097. yy: '%d years'
  17098. },
  17099. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17100. ordinal: function ordinal(number) {
  17101. var b = number % 10,
  17102. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17103. return number + output;
  17104. }
  17105. });
  17106. return enCa;
  17107. });
  17108. /***/ }),
  17109. /* 71 */
  17110. /*!******************************************************************!*\
  17111. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-gb.js ***!
  17112. \******************************************************************/
  17113. /*! no static exports found */
  17114. /***/ (function(module, exports, __webpack_require__) {
  17115. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17116. //! moment.js locale configuration
  17117. //! locale : English (United Kingdom) [en-gb]
  17118. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17119. ;
  17120. (function (global, factory) {
  17121. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17122. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17123. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17124. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17125. })(this, function (moment) {
  17126. 'use strict';
  17127. //! moment.js locale configuration
  17128. var enGb = moment.defineLocale('en-gb', {
  17129. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17130. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17131. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17132. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17133. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17134. longDateFormat: {
  17135. LT: 'HH:mm',
  17136. LTS: 'HH:mm:ss',
  17137. L: 'DD/MM/YYYY',
  17138. LL: 'D MMMM YYYY',
  17139. LLL: 'D MMMM YYYY HH:mm',
  17140. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17141. },
  17142. calendar: {
  17143. sameDay: '[Today at] LT',
  17144. nextDay: '[Tomorrow at] LT',
  17145. nextWeek: 'dddd [at] LT',
  17146. lastDay: '[Yesterday at] LT',
  17147. lastWeek: '[Last] dddd [at] LT',
  17148. sameElse: 'L'
  17149. },
  17150. relativeTime: {
  17151. future: 'in %s',
  17152. past: '%s ago',
  17153. s: 'a few seconds',
  17154. ss: '%d seconds',
  17155. m: 'a minute',
  17156. mm: '%d minutes',
  17157. h: 'an hour',
  17158. hh: '%d hours',
  17159. d: 'a day',
  17160. dd: '%d days',
  17161. M: 'a month',
  17162. MM: '%d months',
  17163. y: 'a year',
  17164. yy: '%d years'
  17165. },
  17166. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17167. ordinal: function ordinal(number) {
  17168. var b = number % 10,
  17169. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17170. return number + output;
  17171. },
  17172. week: {
  17173. dow: 1,
  17174. // Monday is the first day of the week.
  17175. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17176. }
  17177. });
  17178. return enGb;
  17179. });
  17180. /***/ }),
  17181. /* 72 */
  17182. /*!******************************************************************!*\
  17183. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-ie.js ***!
  17184. \******************************************************************/
  17185. /*! no static exports found */
  17186. /***/ (function(module, exports, __webpack_require__) {
  17187. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17188. //! moment.js locale configuration
  17189. //! locale : English (Ireland) [en-ie]
  17190. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  17191. ;
  17192. (function (global, factory) {
  17193. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17194. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17195. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17196. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17197. })(this, function (moment) {
  17198. 'use strict';
  17199. //! moment.js locale configuration
  17200. var enIe = moment.defineLocale('en-ie', {
  17201. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17202. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17203. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17204. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17205. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17206. longDateFormat: {
  17207. LT: 'HH:mm',
  17208. LTS: 'HH:mm:ss',
  17209. L: 'DD/MM/YYYY',
  17210. LL: 'D MMMM YYYY',
  17211. LLL: 'D MMMM YYYY HH:mm',
  17212. LLLL: 'dddd D MMMM YYYY HH:mm'
  17213. },
  17214. calendar: {
  17215. sameDay: '[Today at] LT',
  17216. nextDay: '[Tomorrow at] LT',
  17217. nextWeek: 'dddd [at] LT',
  17218. lastDay: '[Yesterday at] LT',
  17219. lastWeek: '[Last] dddd [at] LT',
  17220. sameElse: 'L'
  17221. },
  17222. relativeTime: {
  17223. future: 'in %s',
  17224. past: '%s ago',
  17225. s: 'a few seconds',
  17226. ss: '%d seconds',
  17227. m: 'a minute',
  17228. mm: '%d minutes',
  17229. h: 'an hour',
  17230. hh: '%d hours',
  17231. d: 'a day',
  17232. dd: '%d days',
  17233. M: 'a month',
  17234. MM: '%d months',
  17235. y: 'a year',
  17236. yy: '%d years'
  17237. },
  17238. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17239. ordinal: function ordinal(number) {
  17240. var b = number % 10,
  17241. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17242. return number + output;
  17243. },
  17244. week: {
  17245. dow: 1,
  17246. // Monday is the first day of the week.
  17247. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17248. }
  17249. });
  17250. return enIe;
  17251. });
  17252. /***/ }),
  17253. /* 73 */
  17254. /*!******************************************************************!*\
  17255. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-il.js ***!
  17256. \******************************************************************/
  17257. /*! no static exports found */
  17258. /***/ (function(module, exports, __webpack_require__) {
  17259. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17260. //! moment.js locale configuration
  17261. //! locale : English (Israel) [en-il]
  17262. //! author : Chris Gedrim : https://github.com/chrisgedrim
  17263. ;
  17264. (function (global, factory) {
  17265. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17266. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17267. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17268. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17269. })(this, function (moment) {
  17270. 'use strict';
  17271. //! moment.js locale configuration
  17272. var enIl = moment.defineLocale('en-il', {
  17273. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17274. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17275. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17276. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17277. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17278. longDateFormat: {
  17279. LT: 'HH:mm',
  17280. LTS: 'HH:mm:ss',
  17281. L: 'DD/MM/YYYY',
  17282. LL: 'D MMMM YYYY',
  17283. LLL: 'D MMMM YYYY HH:mm',
  17284. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17285. },
  17286. calendar: {
  17287. sameDay: '[Today at] LT',
  17288. nextDay: '[Tomorrow at] LT',
  17289. nextWeek: 'dddd [at] LT',
  17290. lastDay: '[Yesterday at] LT',
  17291. lastWeek: '[Last] dddd [at] LT',
  17292. sameElse: 'L'
  17293. },
  17294. relativeTime: {
  17295. future: 'in %s',
  17296. past: '%s ago',
  17297. s: 'a few seconds',
  17298. ss: '%d seconds',
  17299. m: 'a minute',
  17300. mm: '%d minutes',
  17301. h: 'an hour',
  17302. hh: '%d hours',
  17303. d: 'a day',
  17304. dd: '%d days',
  17305. M: 'a month',
  17306. MM: '%d months',
  17307. y: 'a year',
  17308. yy: '%d years'
  17309. },
  17310. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17311. ordinal: function ordinal(number) {
  17312. var b = number % 10,
  17313. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17314. return number + output;
  17315. }
  17316. });
  17317. return enIl;
  17318. });
  17319. /***/ }),
  17320. /* 74 */
  17321. /*!******************************************************************!*\
  17322. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-in.js ***!
  17323. \******************************************************************/
  17324. /*! no static exports found */
  17325. /***/ (function(module, exports, __webpack_require__) {
  17326. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17327. //! moment.js locale configuration
  17328. //! locale : English (India) [en-in]
  17329. //! author : Jatin Agrawal : https://github.com/jatinag22
  17330. ;
  17331. (function (global, factory) {
  17332. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17333. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17334. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17335. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17336. })(this, function (moment) {
  17337. 'use strict';
  17338. //! moment.js locale configuration
  17339. var enIn = moment.defineLocale('en-in', {
  17340. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17341. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17342. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17343. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17344. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17345. longDateFormat: {
  17346. LT: 'h:mm A',
  17347. LTS: 'h:mm:ss A',
  17348. L: 'DD/MM/YYYY',
  17349. LL: 'D MMMM YYYY',
  17350. LLL: 'D MMMM YYYY h:mm A',
  17351. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17352. },
  17353. calendar: {
  17354. sameDay: '[Today at] LT',
  17355. nextDay: '[Tomorrow at] LT',
  17356. nextWeek: 'dddd [at] LT',
  17357. lastDay: '[Yesterday at] LT',
  17358. lastWeek: '[Last] dddd [at] LT',
  17359. sameElse: 'L'
  17360. },
  17361. relativeTime: {
  17362. future: 'in %s',
  17363. past: '%s ago',
  17364. s: 'a few seconds',
  17365. ss: '%d seconds',
  17366. m: 'a minute',
  17367. mm: '%d minutes',
  17368. h: 'an hour',
  17369. hh: '%d hours',
  17370. d: 'a day',
  17371. dd: '%d days',
  17372. M: 'a month',
  17373. MM: '%d months',
  17374. y: 'a year',
  17375. yy: '%d years'
  17376. },
  17377. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17378. ordinal: function ordinal(number) {
  17379. var b = number % 10,
  17380. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17381. return number + output;
  17382. },
  17383. week: {
  17384. dow: 0,
  17385. // Sunday is the first day of the week.
  17386. doy: 6 // The week that contains Jan 1st is the first week of the year.
  17387. }
  17388. });
  17389. return enIn;
  17390. });
  17391. /***/ }),
  17392. /* 75 */
  17393. /*!******************************************************************!*\
  17394. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-nz.js ***!
  17395. \******************************************************************/
  17396. /*! no static exports found */
  17397. /***/ (function(module, exports, __webpack_require__) {
  17398. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17399. //! moment.js locale configuration
  17400. //! locale : English (New Zealand) [en-nz]
  17401. //! author : Luke McGregor : https://github.com/lukemcgregor
  17402. ;
  17403. (function (global, factory) {
  17404. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17405. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17406. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17407. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17408. })(this, function (moment) {
  17409. 'use strict';
  17410. //! moment.js locale configuration
  17411. var enNz = moment.defineLocale('en-nz', {
  17412. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17413. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17414. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17415. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17416. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17417. longDateFormat: {
  17418. LT: 'h:mm A',
  17419. LTS: 'h:mm:ss A',
  17420. L: 'DD/MM/YYYY',
  17421. LL: 'D MMMM YYYY',
  17422. LLL: 'D MMMM YYYY h:mm A',
  17423. LLLL: 'dddd, D MMMM YYYY h:mm A'
  17424. },
  17425. calendar: {
  17426. sameDay: '[Today at] LT',
  17427. nextDay: '[Tomorrow at] LT',
  17428. nextWeek: 'dddd [at] LT',
  17429. lastDay: '[Yesterday at] LT',
  17430. lastWeek: '[Last] dddd [at] LT',
  17431. sameElse: 'L'
  17432. },
  17433. relativeTime: {
  17434. future: 'in %s',
  17435. past: '%s ago',
  17436. s: 'a few seconds',
  17437. ss: '%d seconds',
  17438. m: 'a minute',
  17439. mm: '%d minutes',
  17440. h: 'an hour',
  17441. hh: '%d hours',
  17442. d: 'a day',
  17443. dd: '%d days',
  17444. M: 'a month',
  17445. MM: '%d months',
  17446. y: 'a year',
  17447. yy: '%d years'
  17448. },
  17449. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17450. ordinal: function ordinal(number) {
  17451. var b = number % 10,
  17452. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17453. return number + output;
  17454. },
  17455. week: {
  17456. dow: 1,
  17457. // Monday is the first day of the week.
  17458. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17459. }
  17460. });
  17461. return enNz;
  17462. });
  17463. /***/ }),
  17464. /* 76 */
  17465. /*!******************************************************************!*\
  17466. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/en-sg.js ***!
  17467. \******************************************************************/
  17468. /*! no static exports found */
  17469. /***/ (function(module, exports, __webpack_require__) {
  17470. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17471. //! moment.js locale configuration
  17472. //! locale : English (Singapore) [en-sg]
  17473. //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
  17474. ;
  17475. (function (global, factory) {
  17476. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17477. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17478. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17479. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17480. })(this, function (moment) {
  17481. 'use strict';
  17482. //! moment.js locale configuration
  17483. var enSg = moment.defineLocale('en-sg', {
  17484. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  17485. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  17486. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  17487. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  17488. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  17489. longDateFormat: {
  17490. LT: 'HH:mm',
  17491. LTS: 'HH:mm:ss',
  17492. L: 'DD/MM/YYYY',
  17493. LL: 'D MMMM YYYY',
  17494. LLL: 'D MMMM YYYY HH:mm',
  17495. LLLL: 'dddd, D MMMM YYYY HH:mm'
  17496. },
  17497. calendar: {
  17498. sameDay: '[Today at] LT',
  17499. nextDay: '[Tomorrow at] LT',
  17500. nextWeek: 'dddd [at] LT',
  17501. lastDay: '[Yesterday at] LT',
  17502. lastWeek: '[Last] dddd [at] LT',
  17503. sameElse: 'L'
  17504. },
  17505. relativeTime: {
  17506. future: 'in %s',
  17507. past: '%s ago',
  17508. s: 'a few seconds',
  17509. ss: '%d seconds',
  17510. m: 'a minute',
  17511. mm: '%d minutes',
  17512. h: 'an hour',
  17513. hh: '%d hours',
  17514. d: 'a day',
  17515. dd: '%d days',
  17516. M: 'a month',
  17517. MM: '%d months',
  17518. y: 'a year',
  17519. yy: '%d years'
  17520. },
  17521. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17522. ordinal: function ordinal(number) {
  17523. var b = number % 10,
  17524. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  17525. return number + output;
  17526. },
  17527. week: {
  17528. dow: 1,
  17529. // Monday is the first day of the week.
  17530. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17531. }
  17532. });
  17533. return enSg;
  17534. });
  17535. /***/ }),
  17536. /* 77 */
  17537. /*!***************************************************************!*\
  17538. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/eo.js ***!
  17539. \***************************************************************/
  17540. /*! no static exports found */
  17541. /***/ (function(module, exports, __webpack_require__) {
  17542. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17543. //! moment.js locale configuration
  17544. //! locale : Esperanto [eo]
  17545. //! author : Colin Dean : https://github.com/colindean
  17546. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  17547. //! comment : miestasmia corrected the translation by colindean
  17548. //! comment : Vivakvo corrected the translation by colindean and miestasmia
  17549. ;
  17550. (function (global, factory) {
  17551. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17552. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17553. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17554. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17555. })(this, function (moment) {
  17556. 'use strict';
  17557. //! moment.js locale configuration
  17558. var eo = moment.defineLocale('eo', {
  17559. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  17560. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  17561. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  17562. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  17563. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  17564. longDateFormat: {
  17565. LT: 'HH:mm',
  17566. LTS: 'HH:mm:ss',
  17567. L: 'YYYY-MM-DD',
  17568. LL: '[la] D[-an de] MMMM, YYYY',
  17569. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  17570. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  17571. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'
  17572. },
  17573. meridiemParse: /[ap]\.t\.m/i,
  17574. isPM: function isPM(input) {
  17575. return input.charAt(0).toLowerCase() === 'p';
  17576. },
  17577. meridiem: function meridiem(hours, minutes, isLower) {
  17578. if (hours > 11) {
  17579. return isLower ? 'p.t.m.' : 'P.T.M.';
  17580. } else {
  17581. return isLower ? 'a.t.m.' : 'A.T.M.';
  17582. }
  17583. },
  17584. calendar: {
  17585. sameDay: '[Hodiaŭ je] LT',
  17586. nextDay: '[Morgaŭ je] LT',
  17587. nextWeek: 'dddd[n je] LT',
  17588. lastDay: '[Hieraŭ je] LT',
  17589. lastWeek: '[pasintan] dddd[n je] LT',
  17590. sameElse: 'L'
  17591. },
  17592. relativeTime: {
  17593. future: 'post %s',
  17594. past: 'antaŭ %s',
  17595. s: 'kelkaj sekundoj',
  17596. ss: '%d sekundoj',
  17597. m: 'unu minuto',
  17598. mm: '%d minutoj',
  17599. h: 'unu horo',
  17600. hh: '%d horoj',
  17601. d: 'unu tago',
  17602. //ne 'diurno', ĉar estas uzita por proksimumo
  17603. dd: '%d tagoj',
  17604. M: 'unu monato',
  17605. MM: '%d monatoj',
  17606. y: 'unu jaro',
  17607. yy: '%d jaroj'
  17608. },
  17609. dayOfMonthOrdinalParse: /\d{1,2}a/,
  17610. ordinal: '%da',
  17611. week: {
  17612. dow: 1,
  17613. // Monday is the first day of the week.
  17614. doy: 7 // The week that contains Jan 7th is the first week of the year.
  17615. }
  17616. });
  17617. return eo;
  17618. });
  17619. /***/ }),
  17620. /* 78 */
  17621. /*!***************************************************************!*\
  17622. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es.js ***!
  17623. \***************************************************************/
  17624. /*! no static exports found */
  17625. /***/ (function(module, exports, __webpack_require__) {
  17626. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17627. //! moment.js locale configuration
  17628. //! locale : Spanish [es]
  17629. //! author : Julio Napurí : https://github.com/julionc
  17630. ;
  17631. (function (global, factory) {
  17632. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17633. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17634. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17635. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17636. })(this, function (moment) {
  17637. 'use strict';
  17638. //! moment.js locale configuration
  17639. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17640. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17641. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17642. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17643. var es = moment.defineLocale('es', {
  17644. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17645. monthsShort: function monthsShort(m, format) {
  17646. if (!m) {
  17647. return monthsShortDot;
  17648. } else if (/-MMM-/.test(format)) {
  17649. return _monthsShort[m.month()];
  17650. } else {
  17651. return monthsShortDot[m.month()];
  17652. }
  17653. },
  17654. monthsRegex: monthsRegex,
  17655. monthsShortRegex: monthsRegex,
  17656. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17657. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17658. monthsParse: monthsParse,
  17659. longMonthsParse: monthsParse,
  17660. shortMonthsParse: monthsParse,
  17661. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17662. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17663. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17664. weekdaysParseExact: true,
  17665. longDateFormat: {
  17666. LT: 'H:mm',
  17667. LTS: 'H:mm:ss',
  17668. L: 'DD/MM/YYYY',
  17669. LL: 'D [de] MMMM [de] YYYY',
  17670. LLL: 'D [de] MMMM [de] YYYY H:mm',
  17671. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  17672. },
  17673. calendar: {
  17674. sameDay: function sameDay() {
  17675. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17676. },
  17677. nextDay: function nextDay() {
  17678. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17679. },
  17680. nextWeek: function nextWeek() {
  17681. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17682. },
  17683. lastDay: function lastDay() {
  17684. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17685. },
  17686. lastWeek: function lastWeek() {
  17687. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17688. },
  17689. sameElse: 'L'
  17690. },
  17691. relativeTime: {
  17692. future: 'en %s',
  17693. past: 'hace %s',
  17694. s: 'unos segundos',
  17695. ss: '%d segundos',
  17696. m: 'un minuto',
  17697. mm: '%d minutos',
  17698. h: 'una hora',
  17699. hh: '%d horas',
  17700. d: 'un día',
  17701. dd: '%d días',
  17702. w: 'una semana',
  17703. ww: '%d semanas',
  17704. M: 'un mes',
  17705. MM: '%d meses',
  17706. y: 'un año',
  17707. yy: '%d años'
  17708. },
  17709. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17710. ordinal: '%dº',
  17711. week: {
  17712. dow: 1,
  17713. // Monday is the first day of the week.
  17714. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17715. },
  17716. invalidDate: 'Fecha inválida'
  17717. });
  17718. return es;
  17719. });
  17720. /***/ }),
  17721. /* 79 */
  17722. /*!******************************************************************!*\
  17723. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-do.js ***!
  17724. \******************************************************************/
  17725. /*! no static exports found */
  17726. /***/ (function(module, exports, __webpack_require__) {
  17727. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17728. //! moment.js locale configuration
  17729. //! locale : Spanish (Dominican Republic) [es-do]
  17730. ;
  17731. (function (global, factory) {
  17732. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17733. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17734. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17735. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17736. })(this, function (moment) {
  17737. 'use strict';
  17738. //! moment.js locale configuration
  17739. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17740. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17741. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17742. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17743. var esDo = moment.defineLocale('es-do', {
  17744. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17745. monthsShort: function monthsShort(m, format) {
  17746. if (!m) {
  17747. return monthsShortDot;
  17748. } else if (/-MMM-/.test(format)) {
  17749. return _monthsShort[m.month()];
  17750. } else {
  17751. return monthsShortDot[m.month()];
  17752. }
  17753. },
  17754. monthsRegex: monthsRegex,
  17755. monthsShortRegex: monthsRegex,
  17756. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17757. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17758. monthsParse: monthsParse,
  17759. longMonthsParse: monthsParse,
  17760. shortMonthsParse: monthsParse,
  17761. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17762. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17763. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17764. weekdaysParseExact: true,
  17765. longDateFormat: {
  17766. LT: 'h:mm A',
  17767. LTS: 'h:mm:ss A',
  17768. L: 'DD/MM/YYYY',
  17769. LL: 'D [de] MMMM [de] YYYY',
  17770. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  17771. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  17772. },
  17773. calendar: {
  17774. sameDay: function sameDay() {
  17775. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17776. },
  17777. nextDay: function nextDay() {
  17778. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17779. },
  17780. nextWeek: function nextWeek() {
  17781. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17782. },
  17783. lastDay: function lastDay() {
  17784. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17785. },
  17786. lastWeek: function lastWeek() {
  17787. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17788. },
  17789. sameElse: 'L'
  17790. },
  17791. relativeTime: {
  17792. future: 'en %s',
  17793. past: 'hace %s',
  17794. s: 'unos segundos',
  17795. ss: '%d segundos',
  17796. m: 'un minuto',
  17797. mm: '%d minutos',
  17798. h: 'una hora',
  17799. hh: '%d horas',
  17800. d: 'un día',
  17801. dd: '%d días',
  17802. w: 'una semana',
  17803. ww: '%d semanas',
  17804. M: 'un mes',
  17805. MM: '%d meses',
  17806. y: 'un año',
  17807. yy: '%d años'
  17808. },
  17809. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17810. ordinal: '%dº',
  17811. week: {
  17812. dow: 1,
  17813. // Monday is the first day of the week.
  17814. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17815. }
  17816. });
  17817. return esDo;
  17818. });
  17819. /***/ }),
  17820. /* 80 */
  17821. /*!******************************************************************!*\
  17822. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-mx.js ***!
  17823. \******************************************************************/
  17824. /*! no static exports found */
  17825. /***/ (function(module, exports, __webpack_require__) {
  17826. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17827. //! moment.js locale configuration
  17828. //! locale : Spanish (Mexico) [es-mx]
  17829. //! author : JC Franco : https://github.com/jcfranco
  17830. ;
  17831. (function (global, factory) {
  17832. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17833. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17834. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17835. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17836. })(this, function (moment) {
  17837. 'use strict';
  17838. //! moment.js locale configuration
  17839. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17840. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17841. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17842. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17843. var esMx = moment.defineLocale('es-mx', {
  17844. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17845. monthsShort: function monthsShort(m, format) {
  17846. if (!m) {
  17847. return monthsShortDot;
  17848. } else if (/-MMM-/.test(format)) {
  17849. return _monthsShort[m.month()];
  17850. } else {
  17851. return monthsShortDot[m.month()];
  17852. }
  17853. },
  17854. monthsRegex: monthsRegex,
  17855. monthsShortRegex: monthsRegex,
  17856. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17857. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17858. monthsParse: monthsParse,
  17859. longMonthsParse: monthsParse,
  17860. shortMonthsParse: monthsParse,
  17861. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17862. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17863. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17864. weekdaysParseExact: true,
  17865. longDateFormat: {
  17866. LT: 'H:mm',
  17867. LTS: 'H:mm:ss',
  17868. L: 'DD/MM/YYYY',
  17869. LL: 'D [de] MMMM [de] YYYY',
  17870. LLL: 'D [de] MMMM [de] YYYY H:mm',
  17871. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  17872. },
  17873. calendar: {
  17874. sameDay: function sameDay() {
  17875. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17876. },
  17877. nextDay: function nextDay() {
  17878. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17879. },
  17880. nextWeek: function nextWeek() {
  17881. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17882. },
  17883. lastDay: function lastDay() {
  17884. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17885. },
  17886. lastWeek: function lastWeek() {
  17887. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17888. },
  17889. sameElse: 'L'
  17890. },
  17891. relativeTime: {
  17892. future: 'en %s',
  17893. past: 'hace %s',
  17894. s: 'unos segundos',
  17895. ss: '%d segundos',
  17896. m: 'un minuto',
  17897. mm: '%d minutos',
  17898. h: 'una hora',
  17899. hh: '%d horas',
  17900. d: 'un día',
  17901. dd: '%d días',
  17902. w: 'una semana',
  17903. ww: '%d semanas',
  17904. M: 'un mes',
  17905. MM: '%d meses',
  17906. y: 'un año',
  17907. yy: '%d años'
  17908. },
  17909. dayOfMonthOrdinalParse: /\d{1,2}º/,
  17910. ordinal: '%dº',
  17911. week: {
  17912. dow: 0,
  17913. // Sunday is the first day of the week.
  17914. doy: 4 // The week that contains Jan 4th is the first week of the year.
  17915. },
  17916. invalidDate: 'Fecha inválida'
  17917. });
  17918. return esMx;
  17919. });
  17920. /***/ }),
  17921. /* 81 */
  17922. /*!******************************************************************!*\
  17923. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/es-us.js ***!
  17924. \******************************************************************/
  17925. /*! no static exports found */
  17926. /***/ (function(module, exports, __webpack_require__) {
  17927. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  17928. //! moment.js locale configuration
  17929. //! locale : Spanish (United States) [es-us]
  17930. //! author : bustta : https://github.com/bustta
  17931. //! author : chrisrodz : https://github.com/chrisrodz
  17932. ;
  17933. (function (global, factory) {
  17934. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  17935. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  17936. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  17937. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  17938. })(this, function (moment) {
  17939. 'use strict';
  17940. //! moment.js locale configuration
  17941. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  17942. _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  17943. monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
  17944. monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  17945. var esUs = moment.defineLocale('es-us', {
  17946. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  17947. monthsShort: function monthsShort(m, format) {
  17948. if (!m) {
  17949. return monthsShortDot;
  17950. } else if (/-MMM-/.test(format)) {
  17951. return _monthsShort[m.month()];
  17952. } else {
  17953. return monthsShortDot[m.month()];
  17954. }
  17955. },
  17956. monthsRegex: monthsRegex,
  17957. monthsShortRegex: monthsRegex,
  17958. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  17959. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  17960. monthsParse: monthsParse,
  17961. longMonthsParse: monthsParse,
  17962. shortMonthsParse: monthsParse,
  17963. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  17964. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  17965. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  17966. weekdaysParseExact: true,
  17967. longDateFormat: {
  17968. LT: 'h:mm A',
  17969. LTS: 'h:mm:ss A',
  17970. L: 'MM/DD/YYYY',
  17971. LL: 'D [de] MMMM [de] YYYY',
  17972. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  17973. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
  17974. },
  17975. calendar: {
  17976. sameDay: function sameDay() {
  17977. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17978. },
  17979. nextDay: function nextDay() {
  17980. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17981. },
  17982. nextWeek: function nextWeek() {
  17983. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17984. },
  17985. lastDay: function lastDay() {
  17986. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17987. },
  17988. lastWeek: function lastWeek() {
  17989. return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  17990. },
  17991. sameElse: 'L'
  17992. },
  17993. relativeTime: {
  17994. future: 'en %s',
  17995. past: 'hace %s',
  17996. s: 'unos segundos',
  17997. ss: '%d segundos',
  17998. m: 'un minuto',
  17999. mm: '%d minutos',
  18000. h: 'una hora',
  18001. hh: '%d horas',
  18002. d: 'un día',
  18003. dd: '%d días',
  18004. w: 'una semana',
  18005. ww: '%d semanas',
  18006. M: 'un mes',
  18007. MM: '%d meses',
  18008. y: 'un año',
  18009. yy: '%d años'
  18010. },
  18011. dayOfMonthOrdinalParse: /\d{1,2}º/,
  18012. ordinal: '%dº',
  18013. week: {
  18014. dow: 0,
  18015. // Sunday is the first day of the week.
  18016. doy: 6 // The week that contains Jan 6th is the first week of the year.
  18017. }
  18018. });
  18019. return esUs;
  18020. });
  18021. /***/ }),
  18022. /* 82 */
  18023. /*!***************************************************************!*\
  18024. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/et.js ***!
  18025. \***************************************************************/
  18026. /*! no static exports found */
  18027. /***/ (function(module, exports, __webpack_require__) {
  18028. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18029. //! moment.js locale configuration
  18030. //! locale : Estonian [et]
  18031. //! author : Henry Kehlmann : https://github.com/madhenry
  18032. //! improvements : Illimar Tambek : https://github.com/ragulka
  18033. ;
  18034. (function (global, factory) {
  18035. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18036. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18037. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18038. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18039. })(this, function (moment) {
  18040. 'use strict';
  18041. //! moment.js locale configuration
  18042. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  18043. var format = {
  18044. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  18045. ss: [number + 'sekundi', number + 'sekundit'],
  18046. m: ['ühe minuti', 'üks minut'],
  18047. mm: [number + ' minuti', number + ' minutit'],
  18048. h: ['ühe tunni', 'tund aega', 'üks tund'],
  18049. hh: [number + ' tunni', number + ' tundi'],
  18050. d: ['ühe päeva', 'üks päev'],
  18051. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  18052. MM: [number + ' kuu', number + ' kuud'],
  18053. y: ['ühe aasta', 'aasta', 'üks aasta'],
  18054. yy: [number + ' aasta', number + ' aastat']
  18055. };
  18056. if (withoutSuffix) {
  18057. return format[key][2] ? format[key][2] : format[key][1];
  18058. }
  18059. return isFuture ? format[key][0] : format[key][1];
  18060. }
  18061. var et = moment.defineLocale('et', {
  18062. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  18063. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  18064. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  18065. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  18066. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  18067. longDateFormat: {
  18068. LT: 'H:mm',
  18069. LTS: 'H:mm:ss',
  18070. L: 'DD.MM.YYYY',
  18071. LL: 'D. MMMM YYYY',
  18072. LLL: 'D. MMMM YYYY H:mm',
  18073. LLLL: 'dddd, D. MMMM YYYY H:mm'
  18074. },
  18075. calendar: {
  18076. sameDay: '[Täna,] LT',
  18077. nextDay: '[Homme,] LT',
  18078. nextWeek: '[Järgmine] dddd LT',
  18079. lastDay: '[Eile,] LT',
  18080. lastWeek: '[Eelmine] dddd LT',
  18081. sameElse: 'L'
  18082. },
  18083. relativeTime: {
  18084. future: '%s pärast',
  18085. past: '%s tagasi',
  18086. s: processRelativeTime,
  18087. ss: processRelativeTime,
  18088. m: processRelativeTime,
  18089. mm: processRelativeTime,
  18090. h: processRelativeTime,
  18091. hh: processRelativeTime,
  18092. d: processRelativeTime,
  18093. dd: '%d päeva',
  18094. M: processRelativeTime,
  18095. MM: processRelativeTime,
  18096. y: processRelativeTime,
  18097. yy: processRelativeTime
  18098. },
  18099. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18100. ordinal: '%d.',
  18101. week: {
  18102. dow: 1,
  18103. // Monday is the first day of the week.
  18104. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18105. }
  18106. });
  18107. return et;
  18108. });
  18109. /***/ }),
  18110. /* 83 */
  18111. /*!***************************************************************!*\
  18112. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/eu.js ***!
  18113. \***************************************************************/
  18114. /*! no static exports found */
  18115. /***/ (function(module, exports, __webpack_require__) {
  18116. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18117. //! moment.js locale configuration
  18118. //! locale : Basque [eu]
  18119. //! author : Eneko Illarramendi : https://github.com/eillarra
  18120. ;
  18121. (function (global, factory) {
  18122. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18123. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18124. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18125. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18126. })(this, function (moment) {
  18127. 'use strict';
  18128. //! moment.js locale configuration
  18129. var eu = moment.defineLocale('eu', {
  18130. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  18131. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  18132. monthsParseExact: true,
  18133. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  18134. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  18135. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  18136. weekdaysParseExact: true,
  18137. longDateFormat: {
  18138. LT: 'HH:mm',
  18139. LTS: 'HH:mm:ss',
  18140. L: 'YYYY-MM-DD',
  18141. LL: 'YYYY[ko] MMMM[ren] D[a]',
  18142. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  18143. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  18144. l: 'YYYY-M-D',
  18145. ll: 'YYYY[ko] MMM D[a]',
  18146. lll: 'YYYY[ko] MMM D[a] HH:mm',
  18147. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
  18148. },
  18149. calendar: {
  18150. sameDay: '[gaur] LT[etan]',
  18151. nextDay: '[bihar] LT[etan]',
  18152. nextWeek: 'dddd LT[etan]',
  18153. lastDay: '[atzo] LT[etan]',
  18154. lastWeek: '[aurreko] dddd LT[etan]',
  18155. sameElse: 'L'
  18156. },
  18157. relativeTime: {
  18158. future: '%s barru',
  18159. past: 'duela %s',
  18160. s: 'segundo batzuk',
  18161. ss: '%d segundo',
  18162. m: 'minutu bat',
  18163. mm: '%d minutu',
  18164. h: 'ordu bat',
  18165. hh: '%d ordu',
  18166. d: 'egun bat',
  18167. dd: '%d egun',
  18168. M: 'hilabete bat',
  18169. MM: '%d hilabete',
  18170. y: 'urte bat',
  18171. yy: '%d urte'
  18172. },
  18173. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18174. ordinal: '%d.',
  18175. week: {
  18176. dow: 1,
  18177. // Monday is the first day of the week.
  18178. doy: 7 // The week that contains Jan 7th is the first week of the year.
  18179. }
  18180. });
  18181. return eu;
  18182. });
  18183. /***/ }),
  18184. /* 84 */
  18185. /*!***************************************************************!*\
  18186. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fa.js ***!
  18187. \***************************************************************/
  18188. /*! no static exports found */
  18189. /***/ (function(module, exports, __webpack_require__) {
  18190. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18191. //! moment.js locale configuration
  18192. //! locale : Persian [fa]
  18193. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  18194. ;
  18195. (function (global, factory) {
  18196. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18197. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18198. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18199. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18200. })(this, function (moment) {
  18201. 'use strict';
  18202. //! moment.js locale configuration
  18203. var symbolMap = {
  18204. 1: '۱',
  18205. 2: '۲',
  18206. 3: '۳',
  18207. 4: '۴',
  18208. 5: '۵',
  18209. 6: '۶',
  18210. 7: '۷',
  18211. 8: '۸',
  18212. 9: '۹',
  18213. 0: '۰'
  18214. },
  18215. numberMap = {
  18216. '۱': '1',
  18217. '۲': '2',
  18218. '۳': '3',
  18219. '۴': '4',
  18220. '۵': '5',
  18221. '۶': '6',
  18222. '۷': '7',
  18223. '۸': '8',
  18224. '۹': '9',
  18225. '۰': '0'
  18226. };
  18227. var fa = moment.defineLocale('fa', {
  18228. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  18229. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  18230. weekdays: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  18231. weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
  18232. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  18233. weekdaysParseExact: true,
  18234. longDateFormat: {
  18235. LT: 'HH:mm',
  18236. LTS: 'HH:mm:ss',
  18237. L: 'DD/MM/YYYY',
  18238. LL: 'D MMMM YYYY',
  18239. LLL: 'D MMMM YYYY HH:mm',
  18240. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18241. },
  18242. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  18243. isPM: function isPM(input) {
  18244. return /بعد از ظهر/.test(input);
  18245. },
  18246. meridiem: function meridiem(hour, minute, isLower) {
  18247. if (hour < 12) {
  18248. return 'قبل از ظهر';
  18249. } else {
  18250. return 'بعد از ظهر';
  18251. }
  18252. },
  18253. calendar: {
  18254. sameDay: '[امروز ساعت] LT',
  18255. nextDay: '[فردا ساعت] LT',
  18256. nextWeek: 'dddd [ساعت] LT',
  18257. lastDay: '[دیروز ساعت] LT',
  18258. lastWeek: 'dddd [پیش] [ساعت] LT',
  18259. sameElse: 'L'
  18260. },
  18261. relativeTime: {
  18262. future: 'در %s',
  18263. past: '%s پیش',
  18264. s: 'چند ثانیه',
  18265. ss: '%d ثانیه',
  18266. m: 'یک دقیقه',
  18267. mm: '%d دقیقه',
  18268. h: 'یک ساعت',
  18269. hh: '%d ساعت',
  18270. d: 'یک روز',
  18271. dd: '%d روز',
  18272. M: 'یک ماه',
  18273. MM: '%d ماه',
  18274. y: 'یک سال',
  18275. yy: '%d سال'
  18276. },
  18277. preparse: function preparse(string) {
  18278. return string.replace(/[۰-۹]/g, function (match) {
  18279. return numberMap[match];
  18280. }).replace(/،/g, ',');
  18281. },
  18282. postformat: function postformat(string) {
  18283. return string.replace(/\d/g, function (match) {
  18284. return symbolMap[match];
  18285. }).replace(/,/g, '،');
  18286. },
  18287. dayOfMonthOrdinalParse: /\d{1,2}م/,
  18288. ordinal: '%dم',
  18289. week: {
  18290. dow: 6,
  18291. // Saturday is the first day of the week.
  18292. doy: 12 // The week that contains Jan 12th is the first week of the year.
  18293. }
  18294. });
  18295. return fa;
  18296. });
  18297. /***/ }),
  18298. /* 85 */
  18299. /*!***************************************************************!*\
  18300. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fi.js ***!
  18301. \***************************************************************/
  18302. /*! no static exports found */
  18303. /***/ (function(module, exports, __webpack_require__) {
  18304. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18305. //! moment.js locale configuration
  18306. //! locale : Finnish [fi]
  18307. //! author : Tarmo Aidantausta : https://github.com/bleadof
  18308. ;
  18309. (function (global, factory) {
  18310. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18311. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18312. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18313. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18314. })(this, function (moment) {
  18315. 'use strict';
  18316. //! moment.js locale configuration
  18317. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  18318. numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];
  18319. function translate(number, withoutSuffix, key, isFuture) {
  18320. var result = '';
  18321. switch (key) {
  18322. case 's':
  18323. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  18324. case 'ss':
  18325. result = isFuture ? 'sekunnin' : 'sekuntia';
  18326. break;
  18327. case 'm':
  18328. return isFuture ? 'minuutin' : 'minuutti';
  18329. case 'mm':
  18330. result = isFuture ? 'minuutin' : 'minuuttia';
  18331. break;
  18332. case 'h':
  18333. return isFuture ? 'tunnin' : 'tunti';
  18334. case 'hh':
  18335. result = isFuture ? 'tunnin' : 'tuntia';
  18336. break;
  18337. case 'd':
  18338. return isFuture ? 'päivän' : 'päivä';
  18339. case 'dd':
  18340. result = isFuture ? 'päivän' : 'päivää';
  18341. break;
  18342. case 'M':
  18343. return isFuture ? 'kuukauden' : 'kuukausi';
  18344. case 'MM':
  18345. result = isFuture ? 'kuukauden' : 'kuukautta';
  18346. break;
  18347. case 'y':
  18348. return isFuture ? 'vuoden' : 'vuosi';
  18349. case 'yy':
  18350. result = isFuture ? 'vuoden' : 'vuotta';
  18351. break;
  18352. }
  18353. result = verbalNumber(number, isFuture) + ' ' + result;
  18354. return result;
  18355. }
  18356. function verbalNumber(number, isFuture) {
  18357. return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;
  18358. }
  18359. var fi = moment.defineLocale('fi', {
  18360. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  18361. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  18362. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  18363. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18364. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  18365. longDateFormat: {
  18366. LT: 'HH.mm',
  18367. LTS: 'HH.mm.ss',
  18368. L: 'DD.MM.YYYY',
  18369. LL: 'Do MMMM[ta] YYYY',
  18370. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  18371. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  18372. l: 'D.M.YYYY',
  18373. ll: 'Do MMM YYYY',
  18374. lll: 'Do MMM YYYY, [klo] HH.mm',
  18375. llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
  18376. },
  18377. calendar: {
  18378. sameDay: '[tänään] [klo] LT',
  18379. nextDay: '[huomenna] [klo] LT',
  18380. nextWeek: 'dddd [klo] LT',
  18381. lastDay: '[eilen] [klo] LT',
  18382. lastWeek: '[viime] dddd[na] [klo] LT',
  18383. sameElse: 'L'
  18384. },
  18385. relativeTime: {
  18386. future: '%s päästä',
  18387. past: '%s sitten',
  18388. s: translate,
  18389. ss: translate,
  18390. m: translate,
  18391. mm: translate,
  18392. h: translate,
  18393. hh: translate,
  18394. d: translate,
  18395. dd: translate,
  18396. M: translate,
  18397. MM: translate,
  18398. y: translate,
  18399. yy: translate
  18400. },
  18401. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18402. ordinal: '%d.',
  18403. week: {
  18404. dow: 1,
  18405. // Monday is the first day of the week.
  18406. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18407. }
  18408. });
  18409. return fi;
  18410. });
  18411. /***/ }),
  18412. /* 86 */
  18413. /*!****************************************************************!*\
  18414. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fil.js ***!
  18415. \****************************************************************/
  18416. /*! no static exports found */
  18417. /***/ (function(module, exports, __webpack_require__) {
  18418. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18419. //! moment.js locale configuration
  18420. //! locale : Filipino [fil]
  18421. //! author : Dan Hagman : https://github.com/hagmandan
  18422. //! author : Matthew Co : https://github.com/matthewdeeco
  18423. ;
  18424. (function (global, factory) {
  18425. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18426. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18427. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18428. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18429. })(this, function (moment) {
  18430. 'use strict';
  18431. //! moment.js locale configuration
  18432. var fil = moment.defineLocale('fil', {
  18433. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  18434. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  18435. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  18436. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  18437. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  18438. longDateFormat: {
  18439. LT: 'HH:mm',
  18440. LTS: 'HH:mm:ss',
  18441. L: 'MM/D/YYYY',
  18442. LL: 'MMMM D, YYYY',
  18443. LLL: 'MMMM D, YYYY HH:mm',
  18444. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  18445. },
  18446. calendar: {
  18447. sameDay: 'LT [ngayong araw]',
  18448. nextDay: '[Bukas ng] LT',
  18449. nextWeek: 'LT [sa susunod na] dddd',
  18450. lastDay: 'LT [kahapon]',
  18451. lastWeek: 'LT [noong nakaraang] dddd',
  18452. sameElse: 'L'
  18453. },
  18454. relativeTime: {
  18455. future: 'sa loob ng %s',
  18456. past: '%s ang nakalipas',
  18457. s: 'ilang segundo',
  18458. ss: '%d segundo',
  18459. m: 'isang minuto',
  18460. mm: '%d minuto',
  18461. h: 'isang oras',
  18462. hh: '%d oras',
  18463. d: 'isang araw',
  18464. dd: '%d araw',
  18465. M: 'isang buwan',
  18466. MM: '%d buwan',
  18467. y: 'isang taon',
  18468. yy: '%d taon'
  18469. },
  18470. dayOfMonthOrdinalParse: /\d{1,2}/,
  18471. ordinal: function ordinal(number) {
  18472. return number;
  18473. },
  18474. week: {
  18475. dow: 1,
  18476. // Monday is the first day of the week.
  18477. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18478. }
  18479. });
  18480. return fil;
  18481. });
  18482. /***/ }),
  18483. /* 87 */
  18484. /*!***************************************************************!*\
  18485. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fo.js ***!
  18486. \***************************************************************/
  18487. /*! no static exports found */
  18488. /***/ (function(module, exports, __webpack_require__) {
  18489. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18490. //! moment.js locale configuration
  18491. //! locale : Faroese [fo]
  18492. //! author : Ragnar Johannesen : https://github.com/ragnar123
  18493. //! author : Kristian Sakarisson : https://github.com/sakarisson
  18494. ;
  18495. (function (global, factory) {
  18496. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18497. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18498. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18499. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18500. })(this, function (moment) {
  18501. 'use strict';
  18502. //! moment.js locale configuration
  18503. var fo = moment.defineLocale('fo', {
  18504. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  18505. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  18506. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  18507. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  18508. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  18509. longDateFormat: {
  18510. LT: 'HH:mm',
  18511. LTS: 'HH:mm:ss',
  18512. L: 'DD/MM/YYYY',
  18513. LL: 'D MMMM YYYY',
  18514. LLL: 'D MMMM YYYY HH:mm',
  18515. LLLL: 'dddd D. MMMM, YYYY HH:mm'
  18516. },
  18517. calendar: {
  18518. sameDay: '[Í dag kl.] LT',
  18519. nextDay: '[Í morgin kl.] LT',
  18520. nextWeek: 'dddd [kl.] LT',
  18521. lastDay: '[Í gjár kl.] LT',
  18522. lastWeek: '[síðstu] dddd [kl] LT',
  18523. sameElse: 'L'
  18524. },
  18525. relativeTime: {
  18526. future: 'um %s',
  18527. past: '%s síðani',
  18528. s: 'fá sekund',
  18529. ss: '%d sekundir',
  18530. m: 'ein minuttur',
  18531. mm: '%d minuttir',
  18532. h: 'ein tími',
  18533. hh: '%d tímar',
  18534. d: 'ein dagur',
  18535. dd: '%d dagar',
  18536. M: 'ein mánaður',
  18537. MM: '%d mánaðir',
  18538. y: 'eitt ár',
  18539. yy: '%d ár'
  18540. },
  18541. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18542. ordinal: '%d.',
  18543. week: {
  18544. dow: 1,
  18545. // Monday is the first day of the week.
  18546. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18547. }
  18548. });
  18549. return fo;
  18550. });
  18551. /***/ }),
  18552. /* 88 */
  18553. /*!***************************************************************!*\
  18554. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr.js ***!
  18555. \***************************************************************/
  18556. /*! no static exports found */
  18557. /***/ (function(module, exports, __webpack_require__) {
  18558. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18559. //! moment.js locale configuration
  18560. //! locale : French [fr]
  18561. //! author : John Fischer : https://github.com/jfroffice
  18562. ;
  18563. (function (global, factory) {
  18564. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18565. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18566. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18567. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18568. })(this, function (moment) {
  18569. 'use strict';
  18570. //! moment.js locale configuration
  18571. var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18572. monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  18573. monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  18574. monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];
  18575. var fr = moment.defineLocale('fr', {
  18576. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18577. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18578. monthsRegex: monthsRegex,
  18579. monthsShortRegex: monthsRegex,
  18580. monthsStrictRegex: monthsStrictRegex,
  18581. monthsShortStrictRegex: monthsShortStrictRegex,
  18582. monthsParse: monthsParse,
  18583. longMonthsParse: monthsParse,
  18584. shortMonthsParse: monthsParse,
  18585. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18586. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18587. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18588. weekdaysParseExact: true,
  18589. longDateFormat: {
  18590. LT: 'HH:mm',
  18591. LTS: 'HH:mm:ss',
  18592. L: 'DD/MM/YYYY',
  18593. LL: 'D MMMM YYYY',
  18594. LLL: 'D MMMM YYYY HH:mm',
  18595. LLLL: 'dddd D MMMM YYYY HH:mm'
  18596. },
  18597. calendar: {
  18598. sameDay: '[Aujourd’hui à] LT',
  18599. nextDay: '[Demain à] LT',
  18600. nextWeek: 'dddd [à] LT',
  18601. lastDay: '[Hier à] LT',
  18602. lastWeek: 'dddd [dernier à] LT',
  18603. sameElse: 'L'
  18604. },
  18605. relativeTime: {
  18606. future: 'dans %s',
  18607. past: 'il y a %s',
  18608. s: 'quelques secondes',
  18609. ss: '%d secondes',
  18610. m: 'une minute',
  18611. mm: '%d minutes',
  18612. h: 'une heure',
  18613. hh: '%d heures',
  18614. d: 'un jour',
  18615. dd: '%d jours',
  18616. w: 'une semaine',
  18617. ww: '%d semaines',
  18618. M: 'un mois',
  18619. MM: '%d mois',
  18620. y: 'un an',
  18621. yy: '%d ans'
  18622. },
  18623. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  18624. ordinal: function ordinal(number, period) {
  18625. switch (period) {
  18626. // TODO: Return 'e' when day of month > 1. Move this case inside
  18627. // block for masculine words below.
  18628. // See https://github.com/moment/moment/issues/3375
  18629. case 'D':
  18630. return number + (number === 1 ? 'er' : '');
  18631. // Words with masculine grammatical gender: mois, trimestre, jour
  18632. default:
  18633. case 'M':
  18634. case 'Q':
  18635. case 'DDD':
  18636. case 'd':
  18637. return number + (number === 1 ? 'er' : 'e');
  18638. // Words with feminine grammatical gender: semaine
  18639. case 'w':
  18640. case 'W':
  18641. return number + (number === 1 ? 're' : 'e');
  18642. }
  18643. },
  18644. week: {
  18645. dow: 1,
  18646. // Monday is the first day of the week.
  18647. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18648. }
  18649. });
  18650. return fr;
  18651. });
  18652. /***/ }),
  18653. /* 89 */
  18654. /*!******************************************************************!*\
  18655. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr-ca.js ***!
  18656. \******************************************************************/
  18657. /*! no static exports found */
  18658. /***/ (function(module, exports, __webpack_require__) {
  18659. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18660. //! moment.js locale configuration
  18661. //! locale : French (Canada) [fr-ca]
  18662. //! author : Jonathan Abourbih : https://github.com/jonbca
  18663. ;
  18664. (function (global, factory) {
  18665. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18666. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18667. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18668. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18669. })(this, function (moment) {
  18670. 'use strict';
  18671. //! moment.js locale configuration
  18672. var frCa = moment.defineLocale('fr-ca', {
  18673. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18674. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18675. monthsParseExact: true,
  18676. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18677. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18678. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18679. weekdaysParseExact: true,
  18680. longDateFormat: {
  18681. LT: 'HH:mm',
  18682. LTS: 'HH:mm:ss',
  18683. L: 'YYYY-MM-DD',
  18684. LL: 'D MMMM YYYY',
  18685. LLL: 'D MMMM YYYY HH:mm',
  18686. LLLL: 'dddd D MMMM YYYY HH:mm'
  18687. },
  18688. calendar: {
  18689. sameDay: '[Aujourd’hui à] LT',
  18690. nextDay: '[Demain à] LT',
  18691. nextWeek: 'dddd [à] LT',
  18692. lastDay: '[Hier à] LT',
  18693. lastWeek: 'dddd [dernier à] LT',
  18694. sameElse: 'L'
  18695. },
  18696. relativeTime: {
  18697. future: 'dans %s',
  18698. past: 'il y a %s',
  18699. s: 'quelques secondes',
  18700. ss: '%d secondes',
  18701. m: 'une minute',
  18702. mm: '%d minutes',
  18703. h: 'une heure',
  18704. hh: '%d heures',
  18705. d: 'un jour',
  18706. dd: '%d jours',
  18707. M: 'un mois',
  18708. MM: '%d mois',
  18709. y: 'un an',
  18710. yy: '%d ans'
  18711. },
  18712. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  18713. ordinal: function ordinal(number, period) {
  18714. switch (period) {
  18715. // Words with masculine grammatical gender: mois, trimestre, jour
  18716. default:
  18717. case 'M':
  18718. case 'Q':
  18719. case 'D':
  18720. case 'DDD':
  18721. case 'd':
  18722. return number + (number === 1 ? 'er' : 'e');
  18723. // Words with feminine grammatical gender: semaine
  18724. case 'w':
  18725. case 'W':
  18726. return number + (number === 1 ? 're' : 'e');
  18727. }
  18728. }
  18729. });
  18730. return frCa;
  18731. });
  18732. /***/ }),
  18733. /* 90 */
  18734. /*!******************************************************************!*\
  18735. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fr-ch.js ***!
  18736. \******************************************************************/
  18737. /*! no static exports found */
  18738. /***/ (function(module, exports, __webpack_require__) {
  18739. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18740. //! moment.js locale configuration
  18741. //! locale : French (Switzerland) [fr-ch]
  18742. //! author : Gaspard Bucher : https://github.com/gaspard
  18743. ;
  18744. (function (global, factory) {
  18745. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18746. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18747. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18748. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18749. })(this, function (moment) {
  18750. 'use strict';
  18751. //! moment.js locale configuration
  18752. var frCh = moment.defineLocale('fr-ch', {
  18753. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  18754. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  18755. monthsParseExact: true,
  18756. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  18757. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  18758. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  18759. weekdaysParseExact: true,
  18760. longDateFormat: {
  18761. LT: 'HH:mm',
  18762. LTS: 'HH:mm:ss',
  18763. L: 'DD.MM.YYYY',
  18764. LL: 'D MMMM YYYY',
  18765. LLL: 'D MMMM YYYY HH:mm',
  18766. LLLL: 'dddd D MMMM YYYY HH:mm'
  18767. },
  18768. calendar: {
  18769. sameDay: '[Aujourd’hui à] LT',
  18770. nextDay: '[Demain à] LT',
  18771. nextWeek: 'dddd [à] LT',
  18772. lastDay: '[Hier à] LT',
  18773. lastWeek: 'dddd [dernier à] LT',
  18774. sameElse: 'L'
  18775. },
  18776. relativeTime: {
  18777. future: 'dans %s',
  18778. past: 'il y a %s',
  18779. s: 'quelques secondes',
  18780. ss: '%d secondes',
  18781. m: 'une minute',
  18782. mm: '%d minutes',
  18783. h: 'une heure',
  18784. hh: '%d heures',
  18785. d: 'un jour',
  18786. dd: '%d jours',
  18787. M: 'un mois',
  18788. MM: '%d mois',
  18789. y: 'un an',
  18790. yy: '%d ans'
  18791. },
  18792. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  18793. ordinal: function ordinal(number, period) {
  18794. switch (period) {
  18795. // Words with masculine grammatical gender: mois, trimestre, jour
  18796. default:
  18797. case 'M':
  18798. case 'Q':
  18799. case 'D':
  18800. case 'DDD':
  18801. case 'd':
  18802. return number + (number === 1 ? 'er' : 'e');
  18803. // Words with feminine grammatical gender: semaine
  18804. case 'w':
  18805. case 'W':
  18806. return number + (number === 1 ? 're' : 'e');
  18807. }
  18808. },
  18809. week: {
  18810. dow: 1,
  18811. // Monday is the first day of the week.
  18812. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18813. }
  18814. });
  18815. return frCh;
  18816. });
  18817. /***/ }),
  18818. /* 91 */
  18819. /*!***************************************************************!*\
  18820. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/fy.js ***!
  18821. \***************************************************************/
  18822. /*! no static exports found */
  18823. /***/ (function(module, exports, __webpack_require__) {
  18824. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18825. //! moment.js locale configuration
  18826. //! locale : Frisian [fy]
  18827. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  18828. ;
  18829. (function (global, factory) {
  18830. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18831. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18832. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18833. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18834. })(this, function (moment) {
  18835. 'use strict';
  18836. //! moment.js locale configuration
  18837. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  18838. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  18839. var fy = moment.defineLocale('fy', {
  18840. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  18841. monthsShort: function monthsShort(m, format) {
  18842. if (!m) {
  18843. return monthsShortWithDots;
  18844. } else if (/-MMM-/.test(format)) {
  18845. return monthsShortWithoutDots[m.month()];
  18846. } else {
  18847. return monthsShortWithDots[m.month()];
  18848. }
  18849. },
  18850. monthsParseExact: true,
  18851. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  18852. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  18853. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  18854. weekdaysParseExact: true,
  18855. longDateFormat: {
  18856. LT: 'HH:mm',
  18857. LTS: 'HH:mm:ss',
  18858. L: 'DD-MM-YYYY',
  18859. LL: 'D MMMM YYYY',
  18860. LLL: 'D MMMM YYYY HH:mm',
  18861. LLLL: 'dddd D MMMM YYYY HH:mm'
  18862. },
  18863. calendar: {
  18864. sameDay: '[hjoed om] LT',
  18865. nextDay: '[moarn om] LT',
  18866. nextWeek: 'dddd [om] LT',
  18867. lastDay: '[juster om] LT',
  18868. lastWeek: '[ôfrûne] dddd [om] LT',
  18869. sameElse: 'L'
  18870. },
  18871. relativeTime: {
  18872. future: 'oer %s',
  18873. past: '%s lyn',
  18874. s: 'in pear sekonden',
  18875. ss: '%d sekonden',
  18876. m: 'ien minút',
  18877. mm: '%d minuten',
  18878. h: 'ien oere',
  18879. hh: '%d oeren',
  18880. d: 'ien dei',
  18881. dd: '%d dagen',
  18882. M: 'ien moanne',
  18883. MM: '%d moannen',
  18884. y: 'ien jier',
  18885. yy: '%d jierren'
  18886. },
  18887. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  18888. ordinal: function ordinal(number) {
  18889. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  18890. },
  18891. week: {
  18892. dow: 1,
  18893. // Monday is the first day of the week.
  18894. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18895. }
  18896. });
  18897. return fy;
  18898. });
  18899. /***/ }),
  18900. /* 92 */
  18901. /*!***************************************************************!*\
  18902. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ga.js ***!
  18903. \***************************************************************/
  18904. /*! no static exports found */
  18905. /***/ (function(module, exports, __webpack_require__) {
  18906. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18907. //! moment.js locale configuration
  18908. //! locale : Irish or Irish Gaelic [ga]
  18909. //! author : André Silva : https://github.com/askpt
  18910. ;
  18911. (function (global, factory) {
  18912. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18913. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18914. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18915. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18916. })(this, function (moment) {
  18917. 'use strict';
  18918. //! moment.js locale configuration
  18919. var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],
  18920. monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],
  18921. weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],
  18922. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  18923. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  18924. var ga = moment.defineLocale('ga', {
  18925. months: months,
  18926. monthsShort: monthsShort,
  18927. monthsParseExact: true,
  18928. weekdays: weekdays,
  18929. weekdaysShort: weekdaysShort,
  18930. weekdaysMin: weekdaysMin,
  18931. longDateFormat: {
  18932. LT: 'HH:mm',
  18933. LTS: 'HH:mm:ss',
  18934. L: 'DD/MM/YYYY',
  18935. LL: 'D MMMM YYYY',
  18936. LLL: 'D MMMM YYYY HH:mm',
  18937. LLLL: 'dddd, D MMMM YYYY HH:mm'
  18938. },
  18939. calendar: {
  18940. sameDay: '[Inniu ag] LT',
  18941. nextDay: '[Amárach ag] LT',
  18942. nextWeek: 'dddd [ag] LT',
  18943. lastDay: '[Inné ag] LT',
  18944. lastWeek: 'dddd [seo caite] [ag] LT',
  18945. sameElse: 'L'
  18946. },
  18947. relativeTime: {
  18948. future: 'i %s',
  18949. past: '%s ó shin',
  18950. s: 'cúpla soicind',
  18951. ss: '%d soicind',
  18952. m: 'nóiméad',
  18953. mm: '%d nóiméad',
  18954. h: 'uair an chloig',
  18955. hh: '%d uair an chloig',
  18956. d: 'lá',
  18957. dd: '%d lá',
  18958. M: 'mí',
  18959. MM: '%d míonna',
  18960. y: 'bliain',
  18961. yy: '%d bliain'
  18962. },
  18963. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  18964. ordinal: function ordinal(number) {
  18965. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  18966. return number + output;
  18967. },
  18968. week: {
  18969. dow: 1,
  18970. // Monday is the first day of the week.
  18971. doy: 4 // The week that contains Jan 4th is the first week of the year.
  18972. }
  18973. });
  18974. return ga;
  18975. });
  18976. /***/ }),
  18977. /* 93 */
  18978. /*!***************************************************************!*\
  18979. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gd.js ***!
  18980. \***************************************************************/
  18981. /*! no static exports found */
  18982. /***/ (function(module, exports, __webpack_require__) {
  18983. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18984. //! moment.js locale configuration
  18985. //! locale : Scottish Gaelic [gd]
  18986. //! author : Jon Ashdown : https://github.com/jonashdown
  18987. ;
  18988. (function (global, factory) {
  18989. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  18990. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  18991. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  18992. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  18993. })(this, function (moment) {
  18994. 'use strict';
  18995. //! moment.js locale configuration
  18996. var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],
  18997. monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],
  18998. weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],
  18999. weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  19000. weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  19001. var gd = moment.defineLocale('gd', {
  19002. months: months,
  19003. monthsShort: monthsShort,
  19004. monthsParseExact: true,
  19005. weekdays: weekdays,
  19006. weekdaysShort: weekdaysShort,
  19007. weekdaysMin: weekdaysMin,
  19008. longDateFormat: {
  19009. LT: 'HH:mm',
  19010. LTS: 'HH:mm:ss',
  19011. L: 'DD/MM/YYYY',
  19012. LL: 'D MMMM YYYY',
  19013. LLL: 'D MMMM YYYY HH:mm',
  19014. LLLL: 'dddd, D MMMM YYYY HH:mm'
  19015. },
  19016. calendar: {
  19017. sameDay: '[An-diugh aig] LT',
  19018. nextDay: '[A-màireach aig] LT',
  19019. nextWeek: 'dddd [aig] LT',
  19020. lastDay: '[An-dè aig] LT',
  19021. lastWeek: 'dddd [seo chaidh] [aig] LT',
  19022. sameElse: 'L'
  19023. },
  19024. relativeTime: {
  19025. future: 'ann an %s',
  19026. past: 'bho chionn %s',
  19027. s: 'beagan diogan',
  19028. ss: '%d diogan',
  19029. m: 'mionaid',
  19030. mm: '%d mionaidean',
  19031. h: 'uair',
  19032. hh: '%d uairean',
  19033. d: 'latha',
  19034. dd: '%d latha',
  19035. M: 'mìos',
  19036. MM: '%d mìosan',
  19037. y: 'bliadhna',
  19038. yy: '%d bliadhna'
  19039. },
  19040. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  19041. ordinal: function ordinal(number) {
  19042. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  19043. return number + output;
  19044. },
  19045. week: {
  19046. dow: 1,
  19047. // Monday is the first day of the week.
  19048. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19049. }
  19050. });
  19051. return gd;
  19052. });
  19053. /***/ }),
  19054. /* 94 */
  19055. /*!***************************************************************!*\
  19056. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gl.js ***!
  19057. \***************************************************************/
  19058. /*! no static exports found */
  19059. /***/ (function(module, exports, __webpack_require__) {
  19060. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19061. //! moment.js locale configuration
  19062. //! locale : Galician [gl]
  19063. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  19064. ;
  19065. (function (global, factory) {
  19066. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19067. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19068. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19069. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19070. })(this, function (moment) {
  19071. 'use strict';
  19072. //! moment.js locale configuration
  19073. var gl = moment.defineLocale('gl', {
  19074. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  19075. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  19076. monthsParseExact: true,
  19077. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  19078. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  19079. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  19080. weekdaysParseExact: true,
  19081. longDateFormat: {
  19082. LT: 'H:mm',
  19083. LTS: 'H:mm:ss',
  19084. L: 'DD/MM/YYYY',
  19085. LL: 'D [de] MMMM [de] YYYY',
  19086. LLL: 'D [de] MMMM [de] YYYY H:mm',
  19087. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
  19088. },
  19089. calendar: {
  19090. sameDay: function sameDay() {
  19091. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19092. },
  19093. nextDay: function nextDay() {
  19094. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  19095. },
  19096. nextWeek: function nextWeek() {
  19097. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  19098. },
  19099. lastDay: function lastDay() {
  19100. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  19101. },
  19102. lastWeek: function lastWeek() {
  19103. return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  19104. },
  19105. sameElse: 'L'
  19106. },
  19107. relativeTime: {
  19108. future: function future(str) {
  19109. if (str.indexOf('un') === 0) {
  19110. return 'n' + str;
  19111. }
  19112. return 'en ' + str;
  19113. },
  19114. past: 'hai %s',
  19115. s: 'uns segundos',
  19116. ss: '%d segundos',
  19117. m: 'un minuto',
  19118. mm: '%d minutos',
  19119. h: 'unha hora',
  19120. hh: '%d horas',
  19121. d: 'un día',
  19122. dd: '%d días',
  19123. M: 'un mes',
  19124. MM: '%d meses',
  19125. y: 'un ano',
  19126. yy: '%d anos'
  19127. },
  19128. dayOfMonthOrdinalParse: /\d{1,2}º/,
  19129. ordinal: '%dº',
  19130. week: {
  19131. dow: 1,
  19132. // Monday is the first day of the week.
  19133. doy: 4 // The week that contains Jan 4th is the first week of the year.
  19134. }
  19135. });
  19136. return gl;
  19137. });
  19138. /***/ }),
  19139. /* 95 */
  19140. /*!*********************************************************************!*\
  19141. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gom-deva.js ***!
  19142. \*********************************************************************/
  19143. /*! no static exports found */
  19144. /***/ (function(module, exports, __webpack_require__) {
  19145. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19146. //! moment.js locale configuration
  19147. //! locale : Konkani Devanagari script [gom-deva]
  19148. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19149. ;
  19150. (function (global, factory) {
  19151. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19152. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19153. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19154. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19155. })(this, function (moment) {
  19156. 'use strict';
  19157. //! moment.js locale configuration
  19158. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19159. var format = {
  19160. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  19161. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  19162. m: ['एका मिणटान', 'एक मिनूट'],
  19163. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  19164. h: ['एका वरान', 'एक वर'],
  19165. hh: [number + ' वरांनी', number + ' वरां'],
  19166. d: ['एका दिसान', 'एक दीस'],
  19167. dd: [number + ' दिसांनी', number + ' दीस'],
  19168. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  19169. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  19170. y: ['एका वर्सान', 'एक वर्स'],
  19171. yy: [number + ' वर्सांनी', number + ' वर्सां']
  19172. };
  19173. return isFuture ? format[key][0] : format[key][1];
  19174. }
  19175. var gomDeva = moment.defineLocale('gom-deva', {
  19176. months: {
  19177. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  19178. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),
  19179. isFormat: /MMMM(\s)+D[oD]?/
  19180. },
  19181. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  19182. monthsParseExact: true,
  19183. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  19184. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  19185. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  19186. weekdaysParseExact: true,
  19187. longDateFormat: {
  19188. LT: 'A h:mm [वाजतां]',
  19189. LTS: 'A h:mm:ss [वाजतां]',
  19190. L: 'DD-MM-YYYY',
  19191. LL: 'D MMMM YYYY',
  19192. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  19193. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  19194. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'
  19195. },
  19196. calendar: {
  19197. sameDay: '[आयज] LT',
  19198. nextDay: '[फाल्यां] LT',
  19199. nextWeek: '[फुडलो] dddd[,] LT',
  19200. lastDay: '[काल] LT',
  19201. lastWeek: '[फाटलो] dddd[,] LT',
  19202. sameElse: 'L'
  19203. },
  19204. relativeTime: {
  19205. future: '%s',
  19206. past: '%s आदीं',
  19207. s: processRelativeTime,
  19208. ss: processRelativeTime,
  19209. m: processRelativeTime,
  19210. mm: processRelativeTime,
  19211. h: processRelativeTime,
  19212. hh: processRelativeTime,
  19213. d: processRelativeTime,
  19214. dd: processRelativeTime,
  19215. M: processRelativeTime,
  19216. MM: processRelativeTime,
  19217. y: processRelativeTime,
  19218. yy: processRelativeTime
  19219. },
  19220. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  19221. ordinal: function ordinal(number, period) {
  19222. switch (period) {
  19223. // the ordinal 'वेर' only applies to day of the month
  19224. case 'D':
  19225. return number + 'वेर';
  19226. default:
  19227. case 'M':
  19228. case 'Q':
  19229. case 'DDD':
  19230. case 'd':
  19231. case 'w':
  19232. case 'W':
  19233. return number;
  19234. }
  19235. },
  19236. week: {
  19237. dow: 0,
  19238. // Sunday is the first day of the week
  19239. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19240. },
  19241. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  19242. meridiemHour: function meridiemHour(hour, meridiem) {
  19243. if (hour === 12) {
  19244. hour = 0;
  19245. }
  19246. if (meridiem === 'राती') {
  19247. return hour < 4 ? hour : hour + 12;
  19248. } else if (meridiem === 'सकाळीं') {
  19249. return hour;
  19250. } else if (meridiem === 'दनपारां') {
  19251. return hour > 12 ? hour : hour + 12;
  19252. } else if (meridiem === 'सांजे') {
  19253. return hour + 12;
  19254. }
  19255. },
  19256. meridiem: function meridiem(hour, minute, isLower) {
  19257. if (hour < 4) {
  19258. return 'राती';
  19259. } else if (hour < 12) {
  19260. return 'सकाळीं';
  19261. } else if (hour < 16) {
  19262. return 'दनपारां';
  19263. } else if (hour < 20) {
  19264. return 'सांजे';
  19265. } else {
  19266. return 'राती';
  19267. }
  19268. }
  19269. });
  19270. return gomDeva;
  19271. });
  19272. /***/ }),
  19273. /* 96 */
  19274. /*!*********************************************************************!*\
  19275. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gom-latn.js ***!
  19276. \*********************************************************************/
  19277. /*! no static exports found */
  19278. /***/ (function(module, exports, __webpack_require__) {
  19279. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19280. //! moment.js locale configuration
  19281. //! locale : Konkani Latin script [gom-latn]
  19282. //! author : The Discoverer : https://github.com/WikiDiscoverer
  19283. ;
  19284. (function (global, factory) {
  19285. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19286. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19287. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19288. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19289. })(this, function (moment) {
  19290. 'use strict';
  19291. //! moment.js locale configuration
  19292. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  19293. var format = {
  19294. s: ['thoddea sekondamni', 'thodde sekond'],
  19295. ss: [number + ' sekondamni', number + ' sekond'],
  19296. m: ['eka mintan', 'ek minut'],
  19297. mm: [number + ' mintamni', number + ' mintam'],
  19298. h: ['eka voran', 'ek vor'],
  19299. hh: [number + ' voramni', number + ' voram'],
  19300. d: ['eka disan', 'ek dis'],
  19301. dd: [number + ' disamni', number + ' dis'],
  19302. M: ['eka mhoinean', 'ek mhoino'],
  19303. MM: [number + ' mhoineamni', number + ' mhoine'],
  19304. y: ['eka vorsan', 'ek voros'],
  19305. yy: [number + ' vorsamni', number + ' vorsam']
  19306. };
  19307. return isFuture ? format[key][0] : format[key][1];
  19308. }
  19309. var gomLatn = moment.defineLocale('gom-latn', {
  19310. months: {
  19311. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  19312. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),
  19313. isFormat: /MMMM(\s)+D[oD]?/
  19314. },
  19315. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  19316. monthsParseExact: true,
  19317. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  19318. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  19319. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  19320. weekdaysParseExact: true,
  19321. longDateFormat: {
  19322. LT: 'A h:mm [vazta]',
  19323. LTS: 'A h:mm:ss [vazta]',
  19324. L: 'DD-MM-YYYY',
  19325. LL: 'D MMMM YYYY',
  19326. LLL: 'D MMMM YYYY A h:mm [vazta]',
  19327. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  19328. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  19329. },
  19330. calendar: {
  19331. sameDay: '[Aiz] LT',
  19332. nextDay: '[Faleam] LT',
  19333. nextWeek: '[Fuddlo] dddd[,] LT',
  19334. lastDay: '[Kal] LT',
  19335. lastWeek: '[Fattlo] dddd[,] LT',
  19336. sameElse: 'L'
  19337. },
  19338. relativeTime: {
  19339. future: '%s',
  19340. past: '%s adim',
  19341. s: processRelativeTime,
  19342. ss: processRelativeTime,
  19343. m: processRelativeTime,
  19344. mm: processRelativeTime,
  19345. h: processRelativeTime,
  19346. hh: processRelativeTime,
  19347. d: processRelativeTime,
  19348. dd: processRelativeTime,
  19349. M: processRelativeTime,
  19350. MM: processRelativeTime,
  19351. y: processRelativeTime,
  19352. yy: processRelativeTime
  19353. },
  19354. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  19355. ordinal: function ordinal(number, period) {
  19356. switch (period) {
  19357. // the ordinal 'er' only applies to day of the month
  19358. case 'D':
  19359. return number + 'er';
  19360. default:
  19361. case 'M':
  19362. case 'Q':
  19363. case 'DDD':
  19364. case 'd':
  19365. case 'w':
  19366. case 'W':
  19367. return number;
  19368. }
  19369. },
  19370. week: {
  19371. dow: 0,
  19372. // Sunday is the first day of the week
  19373. doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  19374. },
  19375. meridiemParse: /rati|sokallim|donparam|sanje/,
  19376. meridiemHour: function meridiemHour(hour, meridiem) {
  19377. if (hour === 12) {
  19378. hour = 0;
  19379. }
  19380. if (meridiem === 'rati') {
  19381. return hour < 4 ? hour : hour + 12;
  19382. } else if (meridiem === 'sokallim') {
  19383. return hour;
  19384. } else if (meridiem === 'donparam') {
  19385. return hour > 12 ? hour : hour + 12;
  19386. } else if (meridiem === 'sanje') {
  19387. return hour + 12;
  19388. }
  19389. },
  19390. meridiem: function meridiem(hour, minute, isLower) {
  19391. if (hour < 4) {
  19392. return 'rati';
  19393. } else if (hour < 12) {
  19394. return 'sokallim';
  19395. } else if (hour < 16) {
  19396. return 'donparam';
  19397. } else if (hour < 20) {
  19398. return 'sanje';
  19399. } else {
  19400. return 'rati';
  19401. }
  19402. }
  19403. });
  19404. return gomLatn;
  19405. });
  19406. /***/ }),
  19407. /* 97 */
  19408. /*!***************************************************************!*\
  19409. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/gu.js ***!
  19410. \***************************************************************/
  19411. /*! no static exports found */
  19412. /***/ (function(module, exports, __webpack_require__) {
  19413. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19414. //! moment.js locale configuration
  19415. //! locale : Gujarati [gu]
  19416. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  19417. ;
  19418. (function (global, factory) {
  19419. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19420. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19421. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19422. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19423. })(this, function (moment) {
  19424. 'use strict';
  19425. //! moment.js locale configuration
  19426. var symbolMap = {
  19427. 1: '૧',
  19428. 2: '૨',
  19429. 3: '૩',
  19430. 4: '૪',
  19431. 5: '૫',
  19432. 6: '૬',
  19433. 7: '૭',
  19434. 8: '૮',
  19435. 9: '૯',
  19436. 0: '૦'
  19437. },
  19438. numberMap = {
  19439. '૧': '1',
  19440. '૨': '2',
  19441. '૩': '3',
  19442. '૪': '4',
  19443. '૫': '5',
  19444. '૬': '6',
  19445. '૭': '7',
  19446. '૮': '8',
  19447. '૯': '9',
  19448. '૦': '0'
  19449. };
  19450. var gu = moment.defineLocale('gu', {
  19451. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  19452. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  19453. monthsParseExact: true,
  19454. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  19455. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  19456. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  19457. longDateFormat: {
  19458. LT: 'A h:mm વાગ્યે',
  19459. LTS: 'A h:mm:ss વાગ્યે',
  19460. L: 'DD/MM/YYYY',
  19461. LL: 'D MMMM YYYY',
  19462. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  19463. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  19464. },
  19465. calendar: {
  19466. sameDay: '[આજ] LT',
  19467. nextDay: '[કાલે] LT',
  19468. nextWeek: 'dddd, LT',
  19469. lastDay: '[ગઇકાલે] LT',
  19470. lastWeek: '[પાછલા] dddd, LT',
  19471. sameElse: 'L'
  19472. },
  19473. relativeTime: {
  19474. future: '%s મા',
  19475. past: '%s પહેલા',
  19476. s: 'અમુક પળો',
  19477. ss: '%d સેકંડ',
  19478. m: 'એક મિનિટ',
  19479. mm: '%d મિનિટ',
  19480. h: 'એક કલાક',
  19481. hh: '%d કલાક',
  19482. d: 'એક દિવસ',
  19483. dd: '%d દિવસ',
  19484. M: 'એક મહિનો',
  19485. MM: '%d મહિનો',
  19486. y: 'એક વર્ષ',
  19487. yy: '%d વર્ષ'
  19488. },
  19489. preparse: function preparse(string) {
  19490. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  19491. return numberMap[match];
  19492. });
  19493. },
  19494. postformat: function postformat(string) {
  19495. return string.replace(/\d/g, function (match) {
  19496. return symbolMap[match];
  19497. });
  19498. },
  19499. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  19500. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  19501. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  19502. meridiemHour: function meridiemHour(hour, meridiem) {
  19503. if (hour === 12) {
  19504. hour = 0;
  19505. }
  19506. if (meridiem === 'રાત') {
  19507. return hour < 4 ? hour : hour + 12;
  19508. } else if (meridiem === 'સવાર') {
  19509. return hour;
  19510. } else if (meridiem === 'બપોર') {
  19511. return hour >= 10 ? hour : hour + 12;
  19512. } else if (meridiem === 'સાંજ') {
  19513. return hour + 12;
  19514. }
  19515. },
  19516. meridiem: function meridiem(hour, minute, isLower) {
  19517. if (hour < 4) {
  19518. return 'રાત';
  19519. } else if (hour < 10) {
  19520. return 'સવાર';
  19521. } else if (hour < 17) {
  19522. return 'બપોર';
  19523. } else if (hour < 20) {
  19524. return 'સાંજ';
  19525. } else {
  19526. return 'રાત';
  19527. }
  19528. },
  19529. week: {
  19530. dow: 0,
  19531. // Sunday is the first day of the week.
  19532. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19533. }
  19534. });
  19535. return gu;
  19536. });
  19537. /***/ }),
  19538. /* 98 */
  19539. /*!***************************************************************!*\
  19540. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/he.js ***!
  19541. \***************************************************************/
  19542. /*! no static exports found */
  19543. /***/ (function(module, exports, __webpack_require__) {
  19544. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19545. //! moment.js locale configuration
  19546. //! locale : Hebrew [he]
  19547. //! author : Tomer Cohen : https://github.com/tomer
  19548. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  19549. //! author : Tal Ater : https://github.com/TalAter
  19550. ;
  19551. (function (global, factory) {
  19552. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19553. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19554. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19555. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19556. })(this, function (moment) {
  19557. 'use strict';
  19558. //! moment.js locale configuration
  19559. var he = moment.defineLocale('he', {
  19560. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  19561. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  19562. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  19563. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  19564. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  19565. longDateFormat: {
  19566. LT: 'HH:mm',
  19567. LTS: 'HH:mm:ss',
  19568. L: 'DD/MM/YYYY',
  19569. LL: 'D [ב]MMMM YYYY',
  19570. LLL: 'D [ב]MMMM YYYY HH:mm',
  19571. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  19572. l: 'D/M/YYYY',
  19573. ll: 'D MMM YYYY',
  19574. lll: 'D MMM YYYY HH:mm',
  19575. llll: 'ddd, D MMM YYYY HH:mm'
  19576. },
  19577. calendar: {
  19578. sameDay: '[היום ב־]LT',
  19579. nextDay: '[מחר ב־]LT',
  19580. nextWeek: 'dddd [בשעה] LT',
  19581. lastDay: '[אתמול ב־]LT',
  19582. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  19583. sameElse: 'L'
  19584. },
  19585. relativeTime: {
  19586. future: 'בעוד %s',
  19587. past: 'לפני %s',
  19588. s: 'מספר שניות',
  19589. ss: '%d שניות',
  19590. m: 'דקה',
  19591. mm: '%d דקות',
  19592. h: 'שעה',
  19593. hh: function hh(number) {
  19594. if (number === 2) {
  19595. return 'שעתיים';
  19596. }
  19597. return number + ' שעות';
  19598. },
  19599. d: 'יום',
  19600. dd: function dd(number) {
  19601. if (number === 2) {
  19602. return 'יומיים';
  19603. }
  19604. return number + ' ימים';
  19605. },
  19606. M: 'חודש',
  19607. MM: function MM(number) {
  19608. if (number === 2) {
  19609. return 'חודשיים';
  19610. }
  19611. return number + ' חודשים';
  19612. },
  19613. y: 'שנה',
  19614. yy: function yy(number) {
  19615. if (number === 2) {
  19616. return 'שנתיים';
  19617. } else if (number % 10 === 0 && number !== 10) {
  19618. return number + ' שנה';
  19619. }
  19620. return number + ' שנים';
  19621. }
  19622. },
  19623. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  19624. isPM: function isPM(input) {
  19625. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  19626. },
  19627. meridiem: function meridiem(hour, minute, isLower) {
  19628. if (hour < 5) {
  19629. return 'לפנות בוקר';
  19630. } else if (hour < 10) {
  19631. return 'בבוקר';
  19632. } else if (hour < 12) {
  19633. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  19634. } else if (hour < 18) {
  19635. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  19636. } else {
  19637. return 'בערב';
  19638. }
  19639. }
  19640. });
  19641. return he;
  19642. });
  19643. /***/ }),
  19644. /* 99 */
  19645. /*!***************************************************************!*\
  19646. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hi.js ***!
  19647. \***************************************************************/
  19648. /*! no static exports found */
  19649. /***/ (function(module, exports, __webpack_require__) {
  19650. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19651. //! moment.js locale configuration
  19652. //! locale : Hindi [hi]
  19653. //! author : Mayank Singhal : https://github.com/mayanksinghal
  19654. ;
  19655. (function (global, factory) {
  19656. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19657. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19658. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19659. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19660. })(this, function (moment) {
  19661. 'use strict';
  19662. //! moment.js locale configuration
  19663. var symbolMap = {
  19664. 1: '१',
  19665. 2: '२',
  19666. 3: '३',
  19667. 4: '४',
  19668. 5: '५',
  19669. 6: '६',
  19670. 7: '७',
  19671. 8: '८',
  19672. 9: '९',
  19673. 0: '०'
  19674. },
  19675. numberMap = {
  19676. '१': '1',
  19677. '२': '2',
  19678. '३': '3',
  19679. '४': '4',
  19680. '५': '5',
  19681. '६': '6',
  19682. '७': '7',
  19683. '८': '8',
  19684. '९': '9',
  19685. '०': '0'
  19686. },
  19687. monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],
  19688. shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];
  19689. var hi = moment.defineLocale('hi', {
  19690. months: {
  19691. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  19692. standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')
  19693. },
  19694. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  19695. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  19696. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  19697. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  19698. longDateFormat: {
  19699. LT: 'A h:mm बजे',
  19700. LTS: 'A h:mm:ss बजे',
  19701. L: 'DD/MM/YYYY',
  19702. LL: 'D MMMM YYYY',
  19703. LLL: 'D MMMM YYYY, A h:mm बजे',
  19704. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
  19705. },
  19706. monthsParse: monthsParse,
  19707. longMonthsParse: monthsParse,
  19708. shortMonthsParse: shortMonthsParse,
  19709. monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  19710. monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  19711. monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  19712. monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  19713. calendar: {
  19714. sameDay: '[आज] LT',
  19715. nextDay: '[कल] LT',
  19716. nextWeek: 'dddd, LT',
  19717. lastDay: '[कल] LT',
  19718. lastWeek: '[पिछले] dddd, LT',
  19719. sameElse: 'L'
  19720. },
  19721. relativeTime: {
  19722. future: '%s में',
  19723. past: '%s पहले',
  19724. s: 'कुछ ही क्षण',
  19725. ss: '%d सेकंड',
  19726. m: 'एक मिनट',
  19727. mm: '%d मिनट',
  19728. h: 'एक घंटा',
  19729. hh: '%d घंटे',
  19730. d: 'एक दिन',
  19731. dd: '%d दिन',
  19732. M: 'एक महीने',
  19733. MM: '%d महीने',
  19734. y: 'एक वर्ष',
  19735. yy: '%d वर्ष'
  19736. },
  19737. preparse: function preparse(string) {
  19738. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  19739. return numberMap[match];
  19740. });
  19741. },
  19742. postformat: function postformat(string) {
  19743. return string.replace(/\d/g, function (match) {
  19744. return symbolMap[match];
  19745. });
  19746. },
  19747. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  19748. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  19749. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  19750. meridiemHour: function meridiemHour(hour, meridiem) {
  19751. if (hour === 12) {
  19752. hour = 0;
  19753. }
  19754. if (meridiem === 'रात') {
  19755. return hour < 4 ? hour : hour + 12;
  19756. } else if (meridiem === 'सुबह') {
  19757. return hour;
  19758. } else if (meridiem === 'दोपहर') {
  19759. return hour >= 10 ? hour : hour + 12;
  19760. } else if (meridiem === 'शाम') {
  19761. return hour + 12;
  19762. }
  19763. },
  19764. meridiem: function meridiem(hour, minute, isLower) {
  19765. if (hour < 4) {
  19766. return 'रात';
  19767. } else if (hour < 10) {
  19768. return 'सुबह';
  19769. } else if (hour < 17) {
  19770. return 'दोपहर';
  19771. } else if (hour < 20) {
  19772. return 'शाम';
  19773. } else {
  19774. return 'रात';
  19775. }
  19776. },
  19777. week: {
  19778. dow: 0,
  19779. // Sunday is the first day of the week.
  19780. doy: 6 // The week that contains Jan 6th is the first week of the year.
  19781. }
  19782. });
  19783. return hi;
  19784. });
  19785. /***/ }),
  19786. /* 100 */
  19787. /*!***************************************************************!*\
  19788. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hr.js ***!
  19789. \***************************************************************/
  19790. /*! no static exports found */
  19791. /***/ (function(module, exports, __webpack_require__) {
  19792. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19793. //! moment.js locale configuration
  19794. //! locale : Croatian [hr]
  19795. //! author : Bojan Marković : https://github.com/bmarkovic
  19796. ;
  19797. (function (global, factory) {
  19798. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19799. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19800. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19801. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19802. })(this, function (moment) {
  19803. 'use strict';
  19804. //! moment.js locale configuration
  19805. function translate(number, withoutSuffix, key) {
  19806. var result = number + ' ';
  19807. switch (key) {
  19808. case 'ss':
  19809. if (number === 1) {
  19810. result += 'sekunda';
  19811. } else if (number === 2 || number === 3 || number === 4) {
  19812. result += 'sekunde';
  19813. } else {
  19814. result += 'sekundi';
  19815. }
  19816. return result;
  19817. case 'm':
  19818. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  19819. case 'mm':
  19820. if (number === 1) {
  19821. result += 'minuta';
  19822. } else if (number === 2 || number === 3 || number === 4) {
  19823. result += 'minute';
  19824. } else {
  19825. result += 'minuta';
  19826. }
  19827. return result;
  19828. case 'h':
  19829. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  19830. case 'hh':
  19831. if (number === 1) {
  19832. result += 'sat';
  19833. } else if (number === 2 || number === 3 || number === 4) {
  19834. result += 'sata';
  19835. } else {
  19836. result += 'sati';
  19837. }
  19838. return result;
  19839. case 'dd':
  19840. if (number === 1) {
  19841. result += 'dan';
  19842. } else {
  19843. result += 'dana';
  19844. }
  19845. return result;
  19846. case 'MM':
  19847. if (number === 1) {
  19848. result += 'mjesec';
  19849. } else if (number === 2 || number === 3 || number === 4) {
  19850. result += 'mjeseca';
  19851. } else {
  19852. result += 'mjeseci';
  19853. }
  19854. return result;
  19855. case 'yy':
  19856. if (number === 1) {
  19857. result += 'godina';
  19858. } else if (number === 2 || number === 3 || number === 4) {
  19859. result += 'godine';
  19860. } else {
  19861. result += 'godina';
  19862. }
  19863. return result;
  19864. }
  19865. }
  19866. var hr = moment.defineLocale('hr', {
  19867. months: {
  19868. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  19869. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  19870. },
  19871. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  19872. monthsParseExact: true,
  19873. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  19874. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  19875. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  19876. weekdaysParseExact: true,
  19877. longDateFormat: {
  19878. LT: 'H:mm',
  19879. LTS: 'H:mm:ss',
  19880. L: 'DD.MM.YYYY',
  19881. LL: 'Do MMMM YYYY',
  19882. LLL: 'Do MMMM YYYY H:mm',
  19883. LLLL: 'dddd, Do MMMM YYYY H:mm'
  19884. },
  19885. calendar: {
  19886. sameDay: '[danas u] LT',
  19887. nextDay: '[sutra u] LT',
  19888. nextWeek: function nextWeek() {
  19889. switch (this.day()) {
  19890. case 0:
  19891. return '[u] [nedjelju] [u] LT';
  19892. case 3:
  19893. return '[u] [srijedu] [u] LT';
  19894. case 6:
  19895. return '[u] [subotu] [u] LT';
  19896. case 1:
  19897. case 2:
  19898. case 4:
  19899. case 5:
  19900. return '[u] dddd [u] LT';
  19901. }
  19902. },
  19903. lastDay: '[jučer u] LT',
  19904. lastWeek: function lastWeek() {
  19905. switch (this.day()) {
  19906. case 0:
  19907. return '[prošlu] [nedjelju] [u] LT';
  19908. case 3:
  19909. return '[prošlu] [srijedu] [u] LT';
  19910. case 6:
  19911. return '[prošle] [subote] [u] LT';
  19912. case 1:
  19913. case 2:
  19914. case 4:
  19915. case 5:
  19916. return '[prošli] dddd [u] LT';
  19917. }
  19918. },
  19919. sameElse: 'L'
  19920. },
  19921. relativeTime: {
  19922. future: 'za %s',
  19923. past: 'prije %s',
  19924. s: 'par sekundi',
  19925. ss: translate,
  19926. m: translate,
  19927. mm: translate,
  19928. h: translate,
  19929. hh: translate,
  19930. d: 'dan',
  19931. dd: translate,
  19932. M: 'mjesec',
  19933. MM: translate,
  19934. y: 'godinu',
  19935. yy: translate
  19936. },
  19937. dayOfMonthOrdinalParse: /\d{1,2}\./,
  19938. ordinal: '%d.',
  19939. week: {
  19940. dow: 1,
  19941. // Monday is the first day of the week.
  19942. doy: 7 // The week that contains Jan 7th is the first week of the year.
  19943. }
  19944. });
  19945. return hr;
  19946. });
  19947. /***/ }),
  19948. /* 101 */
  19949. /*!***************************************************************!*\
  19950. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hu.js ***!
  19951. \***************************************************************/
  19952. /*! no static exports found */
  19953. /***/ (function(module, exports, __webpack_require__) {
  19954. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19955. //! moment.js locale configuration
  19956. //! locale : Hungarian [hu]
  19957. //! author : Adam Brunner : https://github.com/adambrunner
  19958. //! author : Peter Viszt : https://github.com/passatgt
  19959. ;
  19960. (function (global, factory) {
  19961. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19962. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19963. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19964. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19965. })(this, function (moment) {
  19966. 'use strict';
  19967. //! moment.js locale configuration
  19968. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  19969. function translate(number, withoutSuffix, key, isFuture) {
  19970. var num = number;
  19971. switch (key) {
  19972. case 's':
  19973. return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';
  19974. case 'ss':
  19975. return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';
  19976. case 'm':
  19977. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  19978. case 'mm':
  19979. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  19980. case 'h':
  19981. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  19982. case 'hh':
  19983. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  19984. case 'd':
  19985. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  19986. case 'dd':
  19987. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  19988. case 'M':
  19989. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  19990. case 'MM':
  19991. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  19992. case 'y':
  19993. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  19994. case 'yy':
  19995. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  19996. }
  19997. return '';
  19998. }
  19999. function week(isFuture) {
  20000. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  20001. }
  20002. var hu = moment.defineLocale('hu', {
  20003. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  20004. monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),
  20005. monthsParseExact: true,
  20006. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  20007. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  20008. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  20009. longDateFormat: {
  20010. LT: 'H:mm',
  20011. LTS: 'H:mm:ss',
  20012. L: 'YYYY.MM.DD.',
  20013. LL: 'YYYY. MMMM D.',
  20014. LLL: 'YYYY. MMMM D. H:mm',
  20015. LLLL: 'YYYY. MMMM D., dddd H:mm'
  20016. },
  20017. meridiemParse: /de|du/i,
  20018. isPM: function isPM(input) {
  20019. return input.charAt(1).toLowerCase() === 'u';
  20020. },
  20021. meridiem: function meridiem(hours, minutes, isLower) {
  20022. if (hours < 12) {
  20023. return isLower === true ? 'de' : 'DE';
  20024. } else {
  20025. return isLower === true ? 'du' : 'DU';
  20026. }
  20027. },
  20028. calendar: {
  20029. sameDay: '[ma] LT[-kor]',
  20030. nextDay: '[holnap] LT[-kor]',
  20031. nextWeek: function nextWeek() {
  20032. return week.call(this, true);
  20033. },
  20034. lastDay: '[tegnap] LT[-kor]',
  20035. lastWeek: function lastWeek() {
  20036. return week.call(this, false);
  20037. },
  20038. sameElse: 'L'
  20039. },
  20040. relativeTime: {
  20041. future: '%s múlva',
  20042. past: '%s',
  20043. s: translate,
  20044. ss: translate,
  20045. m: translate,
  20046. mm: translate,
  20047. h: translate,
  20048. hh: translate,
  20049. d: translate,
  20050. dd: translate,
  20051. M: translate,
  20052. MM: translate,
  20053. y: translate,
  20054. yy: translate
  20055. },
  20056. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20057. ordinal: '%d.',
  20058. week: {
  20059. dow: 1,
  20060. // Monday is the first day of the week.
  20061. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20062. }
  20063. });
  20064. return hu;
  20065. });
  20066. /***/ }),
  20067. /* 102 */
  20068. /*!******************************************************************!*\
  20069. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/hy-am.js ***!
  20070. \******************************************************************/
  20071. /*! no static exports found */
  20072. /***/ (function(module, exports, __webpack_require__) {
  20073. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20074. //! moment.js locale configuration
  20075. //! locale : Armenian [hy-am]
  20076. //! author : Armendarabyan : https://github.com/armendarabyan
  20077. ;
  20078. (function (global, factory) {
  20079. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20080. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20081. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20082. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20083. })(this, function (moment) {
  20084. 'use strict';
  20085. //! moment.js locale configuration
  20086. var hyAm = moment.defineLocale('hy-am', {
  20087. months: {
  20088. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  20089. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  20090. },
  20091. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  20092. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  20093. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20094. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  20095. longDateFormat: {
  20096. LT: 'HH:mm',
  20097. LTS: 'HH:mm:ss',
  20098. L: 'DD.MM.YYYY',
  20099. LL: 'D MMMM YYYY թ.',
  20100. LLL: 'D MMMM YYYY թ., HH:mm',
  20101. LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
  20102. },
  20103. calendar: {
  20104. sameDay: '[այսօր] LT',
  20105. nextDay: '[վաղը] LT',
  20106. lastDay: '[երեկ] LT',
  20107. nextWeek: function nextWeek() {
  20108. return 'dddd [օրը ժամը] LT';
  20109. },
  20110. lastWeek: function lastWeek() {
  20111. return '[անցած] dddd [օրը ժամը] LT';
  20112. },
  20113. sameElse: 'L'
  20114. },
  20115. relativeTime: {
  20116. future: '%s հետո',
  20117. past: '%s առաջ',
  20118. s: 'մի քանի վայրկյան',
  20119. ss: '%d վայրկյան',
  20120. m: 'րոպե',
  20121. mm: '%d րոպե',
  20122. h: 'ժամ',
  20123. hh: '%d ժամ',
  20124. d: 'օր',
  20125. dd: '%d օր',
  20126. M: 'ամիս',
  20127. MM: '%d ամիս',
  20128. y: 'տարի',
  20129. yy: '%d տարի'
  20130. },
  20131. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  20132. isPM: function isPM(input) {
  20133. return /^(ցերեկվա|երեկոյան)$/.test(input);
  20134. },
  20135. meridiem: function meridiem(hour) {
  20136. if (hour < 4) {
  20137. return 'գիշերվա';
  20138. } else if (hour < 12) {
  20139. return 'առավոտվա';
  20140. } else if (hour < 17) {
  20141. return 'ցերեկվա';
  20142. } else {
  20143. return 'երեկոյան';
  20144. }
  20145. },
  20146. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  20147. ordinal: function ordinal(number, period) {
  20148. switch (period) {
  20149. case 'DDD':
  20150. case 'w':
  20151. case 'W':
  20152. case 'DDDo':
  20153. if (number === 1) {
  20154. return number + '-ին';
  20155. }
  20156. return number + '-րդ';
  20157. default:
  20158. return number;
  20159. }
  20160. },
  20161. week: {
  20162. dow: 1,
  20163. // Monday is the first day of the week.
  20164. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20165. }
  20166. });
  20167. return hyAm;
  20168. });
  20169. /***/ }),
  20170. /* 103 */
  20171. /*!***************************************************************!*\
  20172. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/id.js ***!
  20173. \***************************************************************/
  20174. /*! no static exports found */
  20175. /***/ (function(module, exports, __webpack_require__) {
  20176. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20177. //! moment.js locale configuration
  20178. //! locale : Indonesian [id]
  20179. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  20180. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  20181. ;
  20182. (function (global, factory) {
  20183. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20184. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20185. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20186. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20187. })(this, function (moment) {
  20188. 'use strict';
  20189. //! moment.js locale configuration
  20190. var id = moment.defineLocale('id', {
  20191. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  20192. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  20193. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  20194. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  20195. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  20196. longDateFormat: {
  20197. LT: 'HH.mm',
  20198. LTS: 'HH.mm.ss',
  20199. L: 'DD/MM/YYYY',
  20200. LL: 'D MMMM YYYY',
  20201. LLL: 'D MMMM YYYY [pukul] HH.mm',
  20202. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  20203. },
  20204. meridiemParse: /pagi|siang|sore|malam/,
  20205. meridiemHour: function meridiemHour(hour, meridiem) {
  20206. if (hour === 12) {
  20207. hour = 0;
  20208. }
  20209. if (meridiem === 'pagi') {
  20210. return hour;
  20211. } else if (meridiem === 'siang') {
  20212. return hour >= 11 ? hour : hour + 12;
  20213. } else if (meridiem === 'sore' || meridiem === 'malam') {
  20214. return hour + 12;
  20215. }
  20216. },
  20217. meridiem: function meridiem(hours, minutes, isLower) {
  20218. if (hours < 11) {
  20219. return 'pagi';
  20220. } else if (hours < 15) {
  20221. return 'siang';
  20222. } else if (hours < 19) {
  20223. return 'sore';
  20224. } else {
  20225. return 'malam';
  20226. }
  20227. },
  20228. calendar: {
  20229. sameDay: '[Hari ini pukul] LT',
  20230. nextDay: '[Besok pukul] LT',
  20231. nextWeek: 'dddd [pukul] LT',
  20232. lastDay: '[Kemarin pukul] LT',
  20233. lastWeek: 'dddd [lalu pukul] LT',
  20234. sameElse: 'L'
  20235. },
  20236. relativeTime: {
  20237. future: 'dalam %s',
  20238. past: '%s yang lalu',
  20239. s: 'beberapa detik',
  20240. ss: '%d detik',
  20241. m: 'semenit',
  20242. mm: '%d menit',
  20243. h: 'sejam',
  20244. hh: '%d jam',
  20245. d: 'sehari',
  20246. dd: '%d hari',
  20247. M: 'sebulan',
  20248. MM: '%d bulan',
  20249. y: 'setahun',
  20250. yy: '%d tahun'
  20251. },
  20252. week: {
  20253. dow: 0,
  20254. // Sunday is the first day of the week.
  20255. doy: 6 // The week that contains Jan 6th is the first week of the year.
  20256. }
  20257. });
  20258. return id;
  20259. });
  20260. /***/ }),
  20261. /* 104 */
  20262. /*!***************************************************************!*\
  20263. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/is.js ***!
  20264. \***************************************************************/
  20265. /*! no static exports found */
  20266. /***/ (function(module, exports, __webpack_require__) {
  20267. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20268. //! moment.js locale configuration
  20269. //! locale : Icelandic [is]
  20270. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  20271. ;
  20272. (function (global, factory) {
  20273. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20274. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20275. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20276. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20277. })(this, function (moment) {
  20278. 'use strict';
  20279. //! moment.js locale configuration
  20280. function plural(n) {
  20281. if (n % 100 === 11) {
  20282. return true;
  20283. } else if (n % 10 === 1) {
  20284. return false;
  20285. }
  20286. return true;
  20287. }
  20288. function translate(number, withoutSuffix, key, isFuture) {
  20289. var result = number + ' ';
  20290. switch (key) {
  20291. case 's':
  20292. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  20293. case 'ss':
  20294. if (plural(number)) {
  20295. return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
  20296. }
  20297. return result + 'sekúnda';
  20298. case 'm':
  20299. return withoutSuffix ? 'mínúta' : 'mínútu';
  20300. case 'mm':
  20301. if (plural(number)) {
  20302. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  20303. } else if (withoutSuffix) {
  20304. return result + 'mínúta';
  20305. }
  20306. return result + 'mínútu';
  20307. case 'hh':
  20308. if (plural(number)) {
  20309. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  20310. }
  20311. return result + 'klukkustund';
  20312. case 'd':
  20313. if (withoutSuffix) {
  20314. return 'dagur';
  20315. }
  20316. return isFuture ? 'dag' : 'degi';
  20317. case 'dd':
  20318. if (plural(number)) {
  20319. if (withoutSuffix) {
  20320. return result + 'dagar';
  20321. }
  20322. return result + (isFuture ? 'daga' : 'dögum');
  20323. } else if (withoutSuffix) {
  20324. return result + 'dagur';
  20325. }
  20326. return result + (isFuture ? 'dag' : 'degi');
  20327. case 'M':
  20328. if (withoutSuffix) {
  20329. return 'mánuður';
  20330. }
  20331. return isFuture ? 'mánuð' : 'mánuði';
  20332. case 'MM':
  20333. if (plural(number)) {
  20334. if (withoutSuffix) {
  20335. return result + 'mánuðir';
  20336. }
  20337. return result + (isFuture ? 'mánuði' : 'mánuðum');
  20338. } else if (withoutSuffix) {
  20339. return result + 'mánuður';
  20340. }
  20341. return result + (isFuture ? 'mánuð' : 'mánuði');
  20342. case 'y':
  20343. return withoutSuffix || isFuture ? 'ár' : 'ári';
  20344. case 'yy':
  20345. if (plural(number)) {
  20346. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  20347. }
  20348. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  20349. }
  20350. }
  20351. var is = moment.defineLocale('is', {
  20352. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  20353. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  20354. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  20355. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  20356. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  20357. longDateFormat: {
  20358. LT: 'H:mm',
  20359. LTS: 'H:mm:ss',
  20360. L: 'DD.MM.YYYY',
  20361. LL: 'D. MMMM YYYY',
  20362. LLL: 'D. MMMM YYYY [kl.] H:mm',
  20363. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
  20364. },
  20365. calendar: {
  20366. sameDay: '[í dag kl.] LT',
  20367. nextDay: '[á morgun kl.] LT',
  20368. nextWeek: 'dddd [kl.] LT',
  20369. lastDay: '[í gær kl.] LT',
  20370. lastWeek: '[síðasta] dddd [kl.] LT',
  20371. sameElse: 'L'
  20372. },
  20373. relativeTime: {
  20374. future: 'eftir %s',
  20375. past: 'fyrir %s síðan',
  20376. s: translate,
  20377. ss: translate,
  20378. m: translate,
  20379. mm: translate,
  20380. h: 'klukkustund',
  20381. hh: translate,
  20382. d: translate,
  20383. dd: translate,
  20384. M: translate,
  20385. MM: translate,
  20386. y: translate,
  20387. yy: translate
  20388. },
  20389. dayOfMonthOrdinalParse: /\d{1,2}\./,
  20390. ordinal: '%d.',
  20391. week: {
  20392. dow: 1,
  20393. // Monday is the first day of the week.
  20394. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20395. }
  20396. });
  20397. return is;
  20398. });
  20399. /***/ }),
  20400. /* 105 */
  20401. /*!***************************************************************!*\
  20402. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/it.js ***!
  20403. \***************************************************************/
  20404. /*! no static exports found */
  20405. /***/ (function(module, exports, __webpack_require__) {
  20406. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20407. //! moment.js locale configuration
  20408. //! locale : Italian [it]
  20409. //! author : Lorenzo : https://github.com/aliem
  20410. //! author: Mattia Larentis: https://github.com/nostalgiaz
  20411. //! author: Marco : https://github.com/Manfre98
  20412. ;
  20413. (function (global, factory) {
  20414. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20415. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20416. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20417. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20418. })(this, function (moment) {
  20419. 'use strict';
  20420. //! moment.js locale configuration
  20421. var it = moment.defineLocale('it', {
  20422. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  20423. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20424. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  20425. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20426. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20427. longDateFormat: {
  20428. LT: 'HH:mm',
  20429. LTS: 'HH:mm:ss',
  20430. L: 'DD/MM/YYYY',
  20431. LL: 'D MMMM YYYY',
  20432. LLL: 'D MMMM YYYY HH:mm',
  20433. LLLL: 'dddd D MMMM YYYY HH:mm'
  20434. },
  20435. calendar: {
  20436. sameDay: function sameDay() {
  20437. return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20438. },
  20439. nextDay: function nextDay() {
  20440. return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20441. },
  20442. nextWeek: function nextWeek() {
  20443. return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20444. },
  20445. lastDay: function lastDay() {
  20446. return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20447. },
  20448. lastWeek: function lastWeek() {
  20449. switch (this.day()) {
  20450. case 0:
  20451. return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20452. default:
  20453. return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
  20454. }
  20455. },
  20456. sameElse: 'L'
  20457. },
  20458. relativeTime: {
  20459. future: 'tra %s',
  20460. past: '%s fa',
  20461. s: 'alcuni secondi',
  20462. ss: '%d secondi',
  20463. m: 'un minuto',
  20464. mm: '%d minuti',
  20465. h: "un'ora",
  20466. hh: '%d ore',
  20467. d: 'un giorno',
  20468. dd: '%d giorni',
  20469. w: 'una settimana',
  20470. ww: '%d settimane',
  20471. M: 'un mese',
  20472. MM: '%d mesi',
  20473. y: 'un anno',
  20474. yy: '%d anni'
  20475. },
  20476. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20477. ordinal: '%dº',
  20478. week: {
  20479. dow: 1,
  20480. // Monday is the first day of the week.
  20481. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20482. }
  20483. });
  20484. return it;
  20485. });
  20486. /***/ }),
  20487. /* 106 */
  20488. /*!******************************************************************!*\
  20489. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/it-ch.js ***!
  20490. \******************************************************************/
  20491. /*! no static exports found */
  20492. /***/ (function(module, exports, __webpack_require__) {
  20493. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20494. //! moment.js locale configuration
  20495. //! locale : Italian (Switzerland) [it-ch]
  20496. //! author : xfh : https://github.com/xfh
  20497. ;
  20498. (function (global, factory) {
  20499. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20500. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20501. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20502. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20503. })(this, function (moment) {
  20504. 'use strict';
  20505. //! moment.js locale configuration
  20506. var itCh = moment.defineLocale('it-ch', {
  20507. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  20508. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  20509. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  20510. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  20511. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  20512. longDateFormat: {
  20513. LT: 'HH:mm',
  20514. LTS: 'HH:mm:ss',
  20515. L: 'DD.MM.YYYY',
  20516. LL: 'D MMMM YYYY',
  20517. LLL: 'D MMMM YYYY HH:mm',
  20518. LLLL: 'dddd D MMMM YYYY HH:mm'
  20519. },
  20520. calendar: {
  20521. sameDay: '[Oggi alle] LT',
  20522. nextDay: '[Domani alle] LT',
  20523. nextWeek: 'dddd [alle] LT',
  20524. lastDay: '[Ieri alle] LT',
  20525. lastWeek: function lastWeek() {
  20526. switch (this.day()) {
  20527. case 0:
  20528. return '[la scorsa] dddd [alle] LT';
  20529. default:
  20530. return '[lo scorso] dddd [alle] LT';
  20531. }
  20532. },
  20533. sameElse: 'L'
  20534. },
  20535. relativeTime: {
  20536. future: function future(s) {
  20537. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  20538. },
  20539. past: '%s fa',
  20540. s: 'alcuni secondi',
  20541. ss: '%d secondi',
  20542. m: 'un minuto',
  20543. mm: '%d minuti',
  20544. h: "un'ora",
  20545. hh: '%d ore',
  20546. d: 'un giorno',
  20547. dd: '%d giorni',
  20548. M: 'un mese',
  20549. MM: '%d mesi',
  20550. y: 'un anno',
  20551. yy: '%d anni'
  20552. },
  20553. dayOfMonthOrdinalParse: /\d{1,2}º/,
  20554. ordinal: '%dº',
  20555. week: {
  20556. dow: 1,
  20557. // Monday is the first day of the week.
  20558. doy: 4 // The week that contains Jan 4th is the first week of the year.
  20559. }
  20560. });
  20561. return itCh;
  20562. });
  20563. /***/ }),
  20564. /* 107 */
  20565. /*!***************************************************************!*\
  20566. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ja.js ***!
  20567. \***************************************************************/
  20568. /*! no static exports found */
  20569. /***/ (function(module, exports, __webpack_require__) {
  20570. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20571. //! moment.js locale configuration
  20572. //! locale : Japanese [ja]
  20573. //! author : LI Long : https://github.com/baryon
  20574. ;
  20575. (function (global, factory) {
  20576. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20577. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20578. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20579. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20580. })(this, function (moment) {
  20581. 'use strict';
  20582. //! moment.js locale configuration
  20583. var ja = moment.defineLocale('ja', {
  20584. eras: [{
  20585. since: '2019-05-01',
  20586. offset: 1,
  20587. name: '令和',
  20588. narrow: '㋿',
  20589. abbr: 'R'
  20590. }, {
  20591. since: '1989-01-08',
  20592. until: '2019-04-30',
  20593. offset: 1,
  20594. name: '平成',
  20595. narrow: '㍻',
  20596. abbr: 'H'
  20597. }, {
  20598. since: '1926-12-25',
  20599. until: '1989-01-07',
  20600. offset: 1,
  20601. name: '昭和',
  20602. narrow: '㍼',
  20603. abbr: 'S'
  20604. }, {
  20605. since: '1912-07-30',
  20606. until: '1926-12-24',
  20607. offset: 1,
  20608. name: '大正',
  20609. narrow: '㍽',
  20610. abbr: 'T'
  20611. }, {
  20612. since: '1873-01-01',
  20613. until: '1912-07-29',
  20614. offset: 6,
  20615. name: '明治',
  20616. narrow: '㍾',
  20617. abbr: 'M'
  20618. }, {
  20619. since: '0001-01-01',
  20620. until: '1873-12-31',
  20621. offset: 1,
  20622. name: '西暦',
  20623. narrow: 'AD',
  20624. abbr: 'AD'
  20625. }, {
  20626. since: '0000-12-31',
  20627. until: -Infinity,
  20628. offset: 1,
  20629. name: '紀元前',
  20630. narrow: 'BC',
  20631. abbr: 'BC'
  20632. }],
  20633. eraYearOrdinalRegex: /(元|\d+)年/,
  20634. eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
  20635. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  20636. },
  20637. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  20638. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  20639. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  20640. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  20641. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  20642. longDateFormat: {
  20643. LT: 'HH:mm',
  20644. LTS: 'HH:mm:ss',
  20645. L: 'YYYY/MM/DD',
  20646. LL: 'YYYY年M月D日',
  20647. LLL: 'YYYY年M月D日 HH:mm',
  20648. LLLL: 'YYYY年M月D日 dddd HH:mm',
  20649. l: 'YYYY/MM/DD',
  20650. ll: 'YYYY年M月D日',
  20651. lll: 'YYYY年M月D日 HH:mm',
  20652. llll: 'YYYY年M月D日(ddd) HH:mm'
  20653. },
  20654. meridiemParse: /午前|午後/i,
  20655. isPM: function isPM(input) {
  20656. return input === '午後';
  20657. },
  20658. meridiem: function meridiem(hour, minute, isLower) {
  20659. if (hour < 12) {
  20660. return '午前';
  20661. } else {
  20662. return '午後';
  20663. }
  20664. },
  20665. calendar: {
  20666. sameDay: '[今日] LT',
  20667. nextDay: '[明日] LT',
  20668. nextWeek: function nextWeek(now) {
  20669. if (now.week() !== this.week()) {
  20670. return '[来週]dddd LT';
  20671. } else {
  20672. return 'dddd LT';
  20673. }
  20674. },
  20675. lastDay: '[昨日] LT',
  20676. lastWeek: function lastWeek(now) {
  20677. if (this.week() !== now.week()) {
  20678. return '[先週]dddd LT';
  20679. } else {
  20680. return 'dddd LT';
  20681. }
  20682. },
  20683. sameElse: 'L'
  20684. },
  20685. dayOfMonthOrdinalParse: /\d{1,2}日/,
  20686. ordinal: function ordinal(number, period) {
  20687. switch (period) {
  20688. case 'y':
  20689. return number === 1 ? '元年' : number + '年';
  20690. case 'd':
  20691. case 'D':
  20692. case 'DDD':
  20693. return number + '日';
  20694. default:
  20695. return number;
  20696. }
  20697. },
  20698. relativeTime: {
  20699. future: '%s後',
  20700. past: '%s前',
  20701. s: '数秒',
  20702. ss: '%d秒',
  20703. m: '1分',
  20704. mm: '%d分',
  20705. h: '1時間',
  20706. hh: '%d時間',
  20707. d: '1日',
  20708. dd: '%d日',
  20709. M: '1ヶ月',
  20710. MM: '%dヶ月',
  20711. y: '1年',
  20712. yy: '%d年'
  20713. }
  20714. });
  20715. return ja;
  20716. });
  20717. /***/ }),
  20718. /* 108 */
  20719. /*!***************************************************************!*\
  20720. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/jv.js ***!
  20721. \***************************************************************/
  20722. /*! no static exports found */
  20723. /***/ (function(module, exports, __webpack_require__) {
  20724. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20725. //! moment.js locale configuration
  20726. //! locale : Javanese [jv]
  20727. //! author : Rony Lantip : https://github.com/lantip
  20728. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  20729. ;
  20730. (function (global, factory) {
  20731. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20732. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20733. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20734. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20735. })(this, function (moment) {
  20736. 'use strict';
  20737. //! moment.js locale configuration
  20738. var jv = moment.defineLocale('jv', {
  20739. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  20740. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  20741. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  20742. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  20743. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  20744. longDateFormat: {
  20745. LT: 'HH.mm',
  20746. LTS: 'HH.mm.ss',
  20747. L: 'DD/MM/YYYY',
  20748. LL: 'D MMMM YYYY',
  20749. LLL: 'D MMMM YYYY [pukul] HH.mm',
  20750. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  20751. },
  20752. meridiemParse: /enjing|siyang|sonten|ndalu/,
  20753. meridiemHour: function meridiemHour(hour, meridiem) {
  20754. if (hour === 12) {
  20755. hour = 0;
  20756. }
  20757. if (meridiem === 'enjing') {
  20758. return hour;
  20759. } else if (meridiem === 'siyang') {
  20760. return hour >= 11 ? hour : hour + 12;
  20761. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  20762. return hour + 12;
  20763. }
  20764. },
  20765. meridiem: function meridiem(hours, minutes, isLower) {
  20766. if (hours < 11) {
  20767. return 'enjing';
  20768. } else if (hours < 15) {
  20769. return 'siyang';
  20770. } else if (hours < 19) {
  20771. return 'sonten';
  20772. } else {
  20773. return 'ndalu';
  20774. }
  20775. },
  20776. calendar: {
  20777. sameDay: '[Dinten puniko pukul] LT',
  20778. nextDay: '[Mbenjang pukul] LT',
  20779. nextWeek: 'dddd [pukul] LT',
  20780. lastDay: '[Kala wingi pukul] LT',
  20781. lastWeek: 'dddd [kepengker pukul] LT',
  20782. sameElse: 'L'
  20783. },
  20784. relativeTime: {
  20785. future: 'wonten ing %s',
  20786. past: '%s ingkang kepengker',
  20787. s: 'sawetawis detik',
  20788. ss: '%d detik',
  20789. m: 'setunggal menit',
  20790. mm: '%d menit',
  20791. h: 'setunggal jam',
  20792. hh: '%d jam',
  20793. d: 'sedinten',
  20794. dd: '%d dinten',
  20795. M: 'sewulan',
  20796. MM: '%d wulan',
  20797. y: 'setaun',
  20798. yy: '%d taun'
  20799. },
  20800. week: {
  20801. dow: 1,
  20802. // Monday is the first day of the week.
  20803. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20804. }
  20805. });
  20806. return jv;
  20807. });
  20808. /***/ }),
  20809. /* 109 */
  20810. /*!***************************************************************!*\
  20811. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ka.js ***!
  20812. \***************************************************************/
  20813. /*! no static exports found */
  20814. /***/ (function(module, exports, __webpack_require__) {
  20815. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20816. //! moment.js locale configuration
  20817. //! locale : Georgian [ka]
  20818. //! author : Irakli Janiashvili : https://github.com/IrakliJani
  20819. ;
  20820. (function (global, factory) {
  20821. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20822. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20823. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20824. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20825. })(this, function (moment) {
  20826. 'use strict';
  20827. //! moment.js locale configuration
  20828. var ka = moment.defineLocale('ka', {
  20829. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  20830. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  20831. weekdays: {
  20832. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  20833. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  20834. isFormat: /(წინა|შემდეგ)/
  20835. },
  20836. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  20837. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  20838. longDateFormat: {
  20839. LT: 'HH:mm',
  20840. LTS: 'HH:mm:ss',
  20841. L: 'DD/MM/YYYY',
  20842. LL: 'D MMMM YYYY',
  20843. LLL: 'D MMMM YYYY HH:mm',
  20844. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20845. },
  20846. calendar: {
  20847. sameDay: '[დღეს] LT[-ზე]',
  20848. nextDay: '[ხვალ] LT[-ზე]',
  20849. lastDay: '[გუშინ] LT[-ზე]',
  20850. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  20851. lastWeek: '[წინა] dddd LT-ზე',
  20852. sameElse: 'L'
  20853. },
  20854. relativeTime: {
  20855. future: function future(s) {
  20856. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {
  20857. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  20858. });
  20859. },
  20860. past: function past(s) {
  20861. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  20862. return s.replace(/(ი|ე)$/, 'ის წინ');
  20863. }
  20864. if (/წელი/.test(s)) {
  20865. return s.replace(/წელი$/, 'წლის წინ');
  20866. }
  20867. return s;
  20868. },
  20869. s: 'რამდენიმე წამი',
  20870. ss: '%d წამი',
  20871. m: 'წუთი',
  20872. mm: '%d წუთი',
  20873. h: 'საათი',
  20874. hh: '%d საათი',
  20875. d: 'დღე',
  20876. dd: '%d დღე',
  20877. M: 'თვე',
  20878. MM: '%d თვე',
  20879. y: 'წელი',
  20880. yy: '%d წელი'
  20881. },
  20882. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  20883. ordinal: function ordinal(number) {
  20884. if (number === 0) {
  20885. return number;
  20886. }
  20887. if (number === 1) {
  20888. return number + '-ლი';
  20889. }
  20890. if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {
  20891. return 'მე-' + number;
  20892. }
  20893. return number + '-ე';
  20894. },
  20895. week: {
  20896. dow: 1,
  20897. doy: 7
  20898. }
  20899. });
  20900. return ka;
  20901. });
  20902. /***/ }),
  20903. /* 110 */
  20904. /*!***************************************************************!*\
  20905. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/kk.js ***!
  20906. \***************************************************************/
  20907. /*! no static exports found */
  20908. /***/ (function(module, exports, __webpack_require__) {
  20909. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  20910. //! moment.js locale configuration
  20911. //! locale : Kazakh [kk]
  20912. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  20913. ;
  20914. (function (global, factory) {
  20915. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  20916. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  20917. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  20918. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  20919. })(this, function (moment) {
  20920. 'use strict';
  20921. //! moment.js locale configuration
  20922. var suffixes = {
  20923. 0: '-ші',
  20924. 1: '-ші',
  20925. 2: '-ші',
  20926. 3: '-ші',
  20927. 4: '-ші',
  20928. 5: '-ші',
  20929. 6: '-шы',
  20930. 7: '-ші',
  20931. 8: '-ші',
  20932. 9: '-шы',
  20933. 10: '-шы',
  20934. 20: '-шы',
  20935. 30: '-шы',
  20936. 40: '-шы',
  20937. 50: '-ші',
  20938. 60: '-шы',
  20939. 70: '-ші',
  20940. 80: '-ші',
  20941. 90: '-шы',
  20942. 100: '-ші'
  20943. };
  20944. var kk = moment.defineLocale('kk', {
  20945. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  20946. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  20947. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  20948. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  20949. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  20950. longDateFormat: {
  20951. LT: 'HH:mm',
  20952. LTS: 'HH:mm:ss',
  20953. L: 'DD.MM.YYYY',
  20954. LL: 'D MMMM YYYY',
  20955. LLL: 'D MMMM YYYY HH:mm',
  20956. LLLL: 'dddd, D MMMM YYYY HH:mm'
  20957. },
  20958. calendar: {
  20959. sameDay: '[Бүгін сағат] LT',
  20960. nextDay: '[Ертең сағат] LT',
  20961. nextWeek: 'dddd [сағат] LT',
  20962. lastDay: '[Кеше сағат] LT',
  20963. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  20964. sameElse: 'L'
  20965. },
  20966. relativeTime: {
  20967. future: '%s ішінде',
  20968. past: '%s бұрын',
  20969. s: 'бірнеше секунд',
  20970. ss: '%d секунд',
  20971. m: 'бір минут',
  20972. mm: '%d минут',
  20973. h: 'бір сағат',
  20974. hh: '%d сағат',
  20975. d: 'бір күн',
  20976. dd: '%d күн',
  20977. M: 'бір ай',
  20978. MM: '%d ай',
  20979. y: 'бір жыл',
  20980. yy: '%d жыл'
  20981. },
  20982. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  20983. ordinal: function ordinal(number) {
  20984. var a = number % 10,
  20985. b = number >= 100 ? 100 : null;
  20986. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  20987. },
  20988. week: {
  20989. dow: 1,
  20990. // Monday is the first day of the week.
  20991. doy: 7 // The week that contains Jan 7th is the first week of the year.
  20992. }
  20993. });
  20994. return kk;
  20995. });
  20996. /***/ }),
  20997. /* 111 */
  20998. /*!***************************************************************!*\
  20999. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/km.js ***!
  21000. \***************************************************************/
  21001. /*! no static exports found */
  21002. /***/ (function(module, exports, __webpack_require__) {
  21003. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21004. //! moment.js locale configuration
  21005. //! locale : Cambodian [km]
  21006. //! author : Kruy Vanna : https://github.com/kruyvanna
  21007. ;
  21008. (function (global, factory) {
  21009. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21010. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21011. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21012. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21013. })(this, function (moment) {
  21014. 'use strict';
  21015. //! moment.js locale configuration
  21016. var symbolMap = {
  21017. 1: '១',
  21018. 2: '២',
  21019. 3: '៣',
  21020. 4: '៤',
  21021. 5: '៥',
  21022. 6: '៦',
  21023. 7: '៧',
  21024. 8: '៨',
  21025. 9: '៩',
  21026. 0: '០'
  21027. },
  21028. numberMap = {
  21029. '១': '1',
  21030. '២': '2',
  21031. '៣': '3',
  21032. '៤': '4',
  21033. '៥': '5',
  21034. '៦': '6',
  21035. '៧': '7',
  21036. '៨': '8',
  21037. '៩': '9',
  21038. '០': '0'
  21039. };
  21040. var km = moment.defineLocale('km', {
  21041. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  21042. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  21043. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  21044. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21045. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  21046. weekdaysParseExact: true,
  21047. longDateFormat: {
  21048. LT: 'HH:mm',
  21049. LTS: 'HH:mm:ss',
  21050. L: 'DD/MM/YYYY',
  21051. LL: 'D MMMM YYYY',
  21052. LLL: 'D MMMM YYYY HH:mm',
  21053. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21054. },
  21055. meridiemParse: /ព្រឹក|ល្ងាច/,
  21056. isPM: function isPM(input) {
  21057. return input === 'ល្ងាច';
  21058. },
  21059. meridiem: function meridiem(hour, minute, isLower) {
  21060. if (hour < 12) {
  21061. return 'ព្រឹក';
  21062. } else {
  21063. return 'ល្ងាច';
  21064. }
  21065. },
  21066. calendar: {
  21067. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  21068. nextDay: '[ស្អែក ម៉ោង] LT',
  21069. nextWeek: 'dddd [ម៉ោង] LT',
  21070. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  21071. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  21072. sameElse: 'L'
  21073. },
  21074. relativeTime: {
  21075. future: '%sទៀត',
  21076. past: '%sមុន',
  21077. s: 'ប៉ុន្មានវិនាទី',
  21078. ss: '%d វិនាទី',
  21079. m: 'មួយនាទី',
  21080. mm: '%d នាទី',
  21081. h: 'មួយម៉ោង',
  21082. hh: '%d ម៉ោង',
  21083. d: 'មួយថ្ងៃ',
  21084. dd: '%d ថ្ងៃ',
  21085. M: 'មួយខែ',
  21086. MM: '%d ខែ',
  21087. y: 'មួយឆ្នាំ',
  21088. yy: '%d ឆ្នាំ'
  21089. },
  21090. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  21091. ordinal: 'ទី%d',
  21092. preparse: function preparse(string) {
  21093. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  21094. return numberMap[match];
  21095. });
  21096. },
  21097. postformat: function postformat(string) {
  21098. return string.replace(/\d/g, function (match) {
  21099. return symbolMap[match];
  21100. });
  21101. },
  21102. week: {
  21103. dow: 1,
  21104. // Monday is the first day of the week.
  21105. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21106. }
  21107. });
  21108. return km;
  21109. });
  21110. /***/ }),
  21111. /* 112 */
  21112. /*!***************************************************************!*\
  21113. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/kn.js ***!
  21114. \***************************************************************/
  21115. /*! no static exports found */
  21116. /***/ (function(module, exports, __webpack_require__) {
  21117. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21118. //! moment.js locale configuration
  21119. //! locale : Kannada [kn]
  21120. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  21121. ;
  21122. (function (global, factory) {
  21123. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21124. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21125. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21126. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21127. })(this, function (moment) {
  21128. 'use strict';
  21129. //! moment.js locale configuration
  21130. var symbolMap = {
  21131. 1: '೧',
  21132. 2: '೨',
  21133. 3: '೩',
  21134. 4: '೪',
  21135. 5: '೫',
  21136. 6: '೬',
  21137. 7: '೭',
  21138. 8: '೮',
  21139. 9: '೯',
  21140. 0: '೦'
  21141. },
  21142. numberMap = {
  21143. '೧': '1',
  21144. '೨': '2',
  21145. '೩': '3',
  21146. '೪': '4',
  21147. '೫': '5',
  21148. '೬': '6',
  21149. '೭': '7',
  21150. '೮': '8',
  21151. '೯': '9',
  21152. '೦': '0'
  21153. };
  21154. var kn = moment.defineLocale('kn', {
  21155. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  21156. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
  21157. monthsParseExact: true,
  21158. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  21159. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  21160. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  21161. longDateFormat: {
  21162. LT: 'A h:mm',
  21163. LTS: 'A h:mm:ss',
  21164. L: 'DD/MM/YYYY',
  21165. LL: 'D MMMM YYYY',
  21166. LLL: 'D MMMM YYYY, A h:mm',
  21167. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  21168. },
  21169. calendar: {
  21170. sameDay: '[ಇಂದು] LT',
  21171. nextDay: '[ನಾಳೆ] LT',
  21172. nextWeek: 'dddd, LT',
  21173. lastDay: '[ನಿನ್ನೆ] LT',
  21174. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  21175. sameElse: 'L'
  21176. },
  21177. relativeTime: {
  21178. future: '%s ನಂತರ',
  21179. past: '%s ಹಿಂದೆ',
  21180. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  21181. ss: '%d ಸೆಕೆಂಡುಗಳು',
  21182. m: 'ಒಂದು ನಿಮಿಷ',
  21183. mm: '%d ನಿಮಿಷ',
  21184. h: 'ಒಂದು ಗಂಟೆ',
  21185. hh: '%d ಗಂಟೆ',
  21186. d: 'ಒಂದು ದಿನ',
  21187. dd: '%d ದಿನ',
  21188. M: 'ಒಂದು ತಿಂಗಳು',
  21189. MM: '%d ತಿಂಗಳು',
  21190. y: 'ಒಂದು ವರ್ಷ',
  21191. yy: '%d ವರ್ಷ'
  21192. },
  21193. preparse: function preparse(string) {
  21194. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  21195. return numberMap[match];
  21196. });
  21197. },
  21198. postformat: function postformat(string) {
  21199. return string.replace(/\d/g, function (match) {
  21200. return symbolMap[match];
  21201. });
  21202. },
  21203. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  21204. meridiemHour: function meridiemHour(hour, meridiem) {
  21205. if (hour === 12) {
  21206. hour = 0;
  21207. }
  21208. if (meridiem === 'ರಾತ್ರಿ') {
  21209. return hour < 4 ? hour : hour + 12;
  21210. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  21211. return hour;
  21212. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  21213. return hour >= 10 ? hour : hour + 12;
  21214. } else if (meridiem === 'ಸಂಜೆ') {
  21215. return hour + 12;
  21216. }
  21217. },
  21218. meridiem: function meridiem(hour, minute, isLower) {
  21219. if (hour < 4) {
  21220. return 'ರಾತ್ರಿ';
  21221. } else if (hour < 10) {
  21222. return 'ಬೆಳಿಗ್ಗೆ';
  21223. } else if (hour < 17) {
  21224. return 'ಮಧ್ಯಾಹ್ನ';
  21225. } else if (hour < 20) {
  21226. return 'ಸಂಜೆ';
  21227. } else {
  21228. return 'ರಾತ್ರಿ';
  21229. }
  21230. },
  21231. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  21232. ordinal: function ordinal(number) {
  21233. return number + 'ನೇ';
  21234. },
  21235. week: {
  21236. dow: 0,
  21237. // Sunday is the first day of the week.
  21238. doy: 6 // The week that contains Jan 6th is the first week of the year.
  21239. }
  21240. });
  21241. return kn;
  21242. });
  21243. /***/ }),
  21244. /* 113 */
  21245. /*!***************************************************************!*\
  21246. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ko.js ***!
  21247. \***************************************************************/
  21248. /*! no static exports found */
  21249. /***/ (function(module, exports, __webpack_require__) {
  21250. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21251. //! moment.js locale configuration
  21252. //! locale : Korean [ko]
  21253. //! author : Kyungwook, Park : https://github.com/kyungw00k
  21254. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  21255. ;
  21256. (function (global, factory) {
  21257. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21258. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21259. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21260. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21261. })(this, function (moment) {
  21262. 'use strict';
  21263. //! moment.js locale configuration
  21264. var ko = moment.defineLocale('ko', {
  21265. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  21266. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  21267. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  21268. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  21269. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  21270. longDateFormat: {
  21271. LT: 'A h:mm',
  21272. LTS: 'A h:mm:ss',
  21273. L: 'YYYY.MM.DD.',
  21274. LL: 'YYYY년 MMMM D일',
  21275. LLL: 'YYYY년 MMMM D일 A h:mm',
  21276. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  21277. l: 'YYYY.MM.DD.',
  21278. ll: 'YYYY년 MMMM D일',
  21279. lll: 'YYYY년 MMMM D일 A h:mm',
  21280. llll: 'YYYY년 MMMM D일 dddd A h:mm'
  21281. },
  21282. calendar: {
  21283. sameDay: '오늘 LT',
  21284. nextDay: '내일 LT',
  21285. nextWeek: 'dddd LT',
  21286. lastDay: '어제 LT',
  21287. lastWeek: '지난주 dddd LT',
  21288. sameElse: 'L'
  21289. },
  21290. relativeTime: {
  21291. future: '%s 후',
  21292. past: '%s 전',
  21293. s: '몇 초',
  21294. ss: '%d초',
  21295. m: '1분',
  21296. mm: '%d분',
  21297. h: '한 시간',
  21298. hh: '%d시간',
  21299. d: '하루',
  21300. dd: '%d일',
  21301. M: '한 달',
  21302. MM: '%d달',
  21303. y: '일 년',
  21304. yy: '%d년'
  21305. },
  21306. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  21307. ordinal: function ordinal(number, period) {
  21308. switch (period) {
  21309. case 'd':
  21310. case 'D':
  21311. case 'DDD':
  21312. return number + '일';
  21313. case 'M':
  21314. return number + '월';
  21315. case 'w':
  21316. case 'W':
  21317. return number + '주';
  21318. default:
  21319. return number;
  21320. }
  21321. },
  21322. meridiemParse: /오전|오후/,
  21323. isPM: function isPM(token) {
  21324. return token === '오후';
  21325. },
  21326. meridiem: function meridiem(hour, minute, isUpper) {
  21327. return hour < 12 ? '오전' : '오후';
  21328. }
  21329. });
  21330. return ko;
  21331. });
  21332. /***/ }),
  21333. /* 114 */
  21334. /*!***************************************************************!*\
  21335. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ku.js ***!
  21336. \***************************************************************/
  21337. /*! no static exports found */
  21338. /***/ (function(module, exports, __webpack_require__) {
  21339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21340. //! moment.js locale configuration
  21341. //! locale : Kurdish [ku]
  21342. //! author : Shahram Mebashar : https://github.com/ShahramMebashar
  21343. ;
  21344. (function (global, factory) {
  21345. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21346. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21347. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21348. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21349. })(this, function (moment) {
  21350. 'use strict';
  21351. //! moment.js locale configuration
  21352. var symbolMap = {
  21353. 1: '١',
  21354. 2: '٢',
  21355. 3: '٣',
  21356. 4: '٤',
  21357. 5: '٥',
  21358. 6: '٦',
  21359. 7: '٧',
  21360. 8: '٨',
  21361. 9: '٩',
  21362. 0: '٠'
  21363. },
  21364. numberMap = {
  21365. '١': '1',
  21366. '٢': '2',
  21367. '٣': '3',
  21368. '٤': '4',
  21369. '٥': '5',
  21370. '٦': '6',
  21371. '٧': '7',
  21372. '٨': '8',
  21373. '٩': '9',
  21374. '٠': '0'
  21375. },
  21376. months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];
  21377. var ku = moment.defineLocale('ku', {
  21378. months: months,
  21379. monthsShort: months,
  21380. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
  21381. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  21382. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  21383. weekdaysParseExact: true,
  21384. longDateFormat: {
  21385. LT: 'HH:mm',
  21386. LTS: 'HH:mm:ss',
  21387. L: 'DD/MM/YYYY',
  21388. LL: 'D MMMM YYYY',
  21389. LLL: 'D MMMM YYYY HH:mm',
  21390. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21391. },
  21392. meridiemParse: /ئێواره‌|به‌یانی/,
  21393. isPM: function isPM(input) {
  21394. return /ئێواره‌/.test(input);
  21395. },
  21396. meridiem: function meridiem(hour, minute, isLower) {
  21397. if (hour < 12) {
  21398. return 'به‌یانی';
  21399. } else {
  21400. return 'ئێواره‌';
  21401. }
  21402. },
  21403. calendar: {
  21404. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  21405. nextDay: '[به‌یانی كاتژمێر] LT',
  21406. nextWeek: 'dddd [كاتژمێر] LT',
  21407. lastDay: '[دوێنێ كاتژمێر] LT',
  21408. lastWeek: 'dddd [كاتژمێر] LT',
  21409. sameElse: 'L'
  21410. },
  21411. relativeTime: {
  21412. future: 'له‌ %s',
  21413. past: '%s',
  21414. s: 'چه‌ند چركه‌یه‌ك',
  21415. ss: 'چركه‌ %d',
  21416. m: 'یه‌ك خوله‌ك',
  21417. mm: '%d خوله‌ك',
  21418. h: 'یه‌ك كاتژمێر',
  21419. hh: '%d كاتژمێر',
  21420. d: 'یه‌ك ڕۆژ',
  21421. dd: '%d ڕۆژ',
  21422. M: 'یه‌ك مانگ',
  21423. MM: '%d مانگ',
  21424. y: 'یه‌ك ساڵ',
  21425. yy: '%d ساڵ'
  21426. },
  21427. preparse: function preparse(string) {
  21428. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  21429. return numberMap[match];
  21430. }).replace(/،/g, ',');
  21431. },
  21432. postformat: function postformat(string) {
  21433. return string.replace(/\d/g, function (match) {
  21434. return symbolMap[match];
  21435. }).replace(/,/g, '،');
  21436. },
  21437. week: {
  21438. dow: 6,
  21439. // Saturday is the first day of the week.
  21440. doy: 12 // The week that contains Jan 12th is the first week of the year.
  21441. }
  21442. });
  21443. return ku;
  21444. });
  21445. /***/ }),
  21446. /* 115 */
  21447. /*!***************************************************************!*\
  21448. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ky.js ***!
  21449. \***************************************************************/
  21450. /*! no static exports found */
  21451. /***/ (function(module, exports, __webpack_require__) {
  21452. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21453. //! moment.js locale configuration
  21454. //! locale : Kyrgyz [ky]
  21455. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  21456. ;
  21457. (function (global, factory) {
  21458. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21459. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21460. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21461. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21462. })(this, function (moment) {
  21463. 'use strict';
  21464. //! moment.js locale configuration
  21465. var suffixes = {
  21466. 0: '-чү',
  21467. 1: '-чи',
  21468. 2: '-чи',
  21469. 3: '-чү',
  21470. 4: '-чү',
  21471. 5: '-чи',
  21472. 6: '-чы',
  21473. 7: '-чи',
  21474. 8: '-чи',
  21475. 9: '-чу',
  21476. 10: '-чу',
  21477. 20: '-чы',
  21478. 30: '-чу',
  21479. 40: '-чы',
  21480. 50: '-чү',
  21481. 60: '-чы',
  21482. 70: '-чи',
  21483. 80: '-чи',
  21484. 90: '-чу',
  21485. 100: '-чү'
  21486. };
  21487. var ky = moment.defineLocale('ky', {
  21488. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  21489. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  21490. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  21491. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  21492. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  21493. longDateFormat: {
  21494. LT: 'HH:mm',
  21495. LTS: 'HH:mm:ss',
  21496. L: 'DD.MM.YYYY',
  21497. LL: 'D MMMM YYYY',
  21498. LLL: 'D MMMM YYYY HH:mm',
  21499. LLLL: 'dddd, D MMMM YYYY HH:mm'
  21500. },
  21501. calendar: {
  21502. sameDay: '[Бүгүн саат] LT',
  21503. nextDay: '[Эртең саат] LT',
  21504. nextWeek: 'dddd [саат] LT',
  21505. lastDay: '[Кечээ саат] LT',
  21506. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  21507. sameElse: 'L'
  21508. },
  21509. relativeTime: {
  21510. future: '%s ичинде',
  21511. past: '%s мурун',
  21512. s: 'бирнече секунд',
  21513. ss: '%d секунд',
  21514. m: 'бир мүнөт',
  21515. mm: '%d мүнөт',
  21516. h: 'бир саат',
  21517. hh: '%d саат',
  21518. d: 'бир күн',
  21519. dd: '%d күн',
  21520. M: 'бир ай',
  21521. MM: '%d ай',
  21522. y: 'бир жыл',
  21523. yy: '%d жыл'
  21524. },
  21525. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  21526. ordinal: function ordinal(number) {
  21527. var a = number % 10,
  21528. b = number >= 100 ? 100 : null;
  21529. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  21530. },
  21531. week: {
  21532. dow: 1,
  21533. // Monday is the first day of the week.
  21534. doy: 7 // The week that contains Jan 7th is the first week of the year.
  21535. }
  21536. });
  21537. return ky;
  21538. });
  21539. /***/ }),
  21540. /* 116 */
  21541. /*!***************************************************************!*\
  21542. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lb.js ***!
  21543. \***************************************************************/
  21544. /*! no static exports found */
  21545. /***/ (function(module, exports, __webpack_require__) {
  21546. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21547. //! moment.js locale configuration
  21548. //! locale : Luxembourgish [lb]
  21549. //! author : mweimerskirch : https://github.com/mweimerskirch
  21550. //! author : David Raison : https://github.com/kwisatz
  21551. ;
  21552. (function (global, factory) {
  21553. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21554. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21555. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21556. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21557. })(this, function (moment) {
  21558. 'use strict';
  21559. //! moment.js locale configuration
  21560. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  21561. var format = {
  21562. m: ['eng Minutt', 'enger Minutt'],
  21563. h: ['eng Stonn', 'enger Stonn'],
  21564. d: ['een Dag', 'engem Dag'],
  21565. M: ['ee Mount', 'engem Mount'],
  21566. y: ['ee Joer', 'engem Joer']
  21567. };
  21568. return withoutSuffix ? format[key][0] : format[key][1];
  21569. }
  21570. function processFutureTime(string) {
  21571. var number = string.substr(0, string.indexOf(' '));
  21572. if (eifelerRegelAppliesToNumber(number)) {
  21573. return 'a ' + string;
  21574. }
  21575. return 'an ' + string;
  21576. }
  21577. function processPastTime(string) {
  21578. var number = string.substr(0, string.indexOf(' '));
  21579. if (eifelerRegelAppliesToNumber(number)) {
  21580. return 'viru ' + string;
  21581. }
  21582. return 'virun ' + string;
  21583. }
  21584. /**
  21585. * Returns true if the word before the given number loses the '-n' ending.
  21586. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  21587. *
  21588. * @param number {integer}
  21589. * @returns {boolean}
  21590. */
  21591. function eifelerRegelAppliesToNumber(number) {
  21592. number = parseInt(number, 10);
  21593. if (isNaN(number)) {
  21594. return false;
  21595. }
  21596. if (number < 0) {
  21597. // Negative Number --> always true
  21598. return true;
  21599. } else if (number < 10) {
  21600. // Only 1 digit
  21601. if (4 <= number && number <= 7) {
  21602. return true;
  21603. }
  21604. return false;
  21605. } else if (number < 100) {
  21606. // 2 digits
  21607. var lastDigit = number % 10,
  21608. firstDigit = number / 10;
  21609. if (lastDigit === 0) {
  21610. return eifelerRegelAppliesToNumber(firstDigit);
  21611. }
  21612. return eifelerRegelAppliesToNumber(lastDigit);
  21613. } else if (number < 10000) {
  21614. // 3 or 4 digits --> recursively check first digit
  21615. while (number >= 10) {
  21616. number = number / 10;
  21617. }
  21618. return eifelerRegelAppliesToNumber(number);
  21619. } else {
  21620. // Anything larger than 4 digits: recursively check first n-3 digits
  21621. number = number / 1000;
  21622. return eifelerRegelAppliesToNumber(number);
  21623. }
  21624. }
  21625. var lb = moment.defineLocale('lb', {
  21626. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  21627. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  21628. monthsParseExact: true,
  21629. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  21630. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  21631. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  21632. weekdaysParseExact: true,
  21633. longDateFormat: {
  21634. LT: 'H:mm [Auer]',
  21635. LTS: 'H:mm:ss [Auer]',
  21636. L: 'DD.MM.YYYY',
  21637. LL: 'D. MMMM YYYY',
  21638. LLL: 'D. MMMM YYYY H:mm [Auer]',
  21639. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  21640. },
  21641. calendar: {
  21642. sameDay: '[Haut um] LT',
  21643. sameElse: 'L',
  21644. nextDay: '[Muer um] LT',
  21645. nextWeek: 'dddd [um] LT',
  21646. lastDay: '[Gëschter um] LT',
  21647. lastWeek: function lastWeek() {
  21648. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  21649. switch (this.day()) {
  21650. case 2:
  21651. case 4:
  21652. return '[Leschten] dddd [um] LT';
  21653. default:
  21654. return '[Leschte] dddd [um] LT';
  21655. }
  21656. }
  21657. },
  21658. relativeTime: {
  21659. future: processFutureTime,
  21660. past: processPastTime,
  21661. s: 'e puer Sekonnen',
  21662. ss: '%d Sekonnen',
  21663. m: processRelativeTime,
  21664. mm: '%d Minutten',
  21665. h: processRelativeTime,
  21666. hh: '%d Stonnen',
  21667. d: processRelativeTime,
  21668. dd: '%d Deeg',
  21669. M: processRelativeTime,
  21670. MM: '%d Méint',
  21671. y: processRelativeTime,
  21672. yy: '%d Joer'
  21673. },
  21674. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21675. ordinal: '%d.',
  21676. week: {
  21677. dow: 1,
  21678. // Monday is the first day of the week.
  21679. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21680. }
  21681. });
  21682. return lb;
  21683. });
  21684. /***/ }),
  21685. /* 117 */
  21686. /*!***************************************************************!*\
  21687. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lo.js ***!
  21688. \***************************************************************/
  21689. /*! no static exports found */
  21690. /***/ (function(module, exports, __webpack_require__) {
  21691. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21692. //! moment.js locale configuration
  21693. //! locale : Lao [lo]
  21694. //! author : Ryan Hart : https://github.com/ryanhart2
  21695. ;
  21696. (function (global, factory) {
  21697. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21698. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21699. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21700. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21701. })(this, function (moment) {
  21702. 'use strict';
  21703. //! moment.js locale configuration
  21704. var lo = moment.defineLocale('lo', {
  21705. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  21706. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  21707. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21708. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  21709. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  21710. weekdaysParseExact: true,
  21711. longDateFormat: {
  21712. LT: 'HH:mm',
  21713. LTS: 'HH:mm:ss',
  21714. L: 'DD/MM/YYYY',
  21715. LL: 'D MMMM YYYY',
  21716. LLL: 'D MMMM YYYY HH:mm',
  21717. LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
  21718. },
  21719. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  21720. isPM: function isPM(input) {
  21721. return input === 'ຕອນແລງ';
  21722. },
  21723. meridiem: function meridiem(hour, minute, isLower) {
  21724. if (hour < 12) {
  21725. return 'ຕອນເຊົ້າ';
  21726. } else {
  21727. return 'ຕອນແລງ';
  21728. }
  21729. },
  21730. calendar: {
  21731. sameDay: '[ມື້ນີ້ເວລາ] LT',
  21732. nextDay: '[ມື້ອື່ນເວລາ] LT',
  21733. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  21734. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  21735. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  21736. sameElse: 'L'
  21737. },
  21738. relativeTime: {
  21739. future: 'ອີກ %s',
  21740. past: '%sຜ່ານມາ',
  21741. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  21742. ss: '%d ວິນາທີ',
  21743. m: '1 ນາທີ',
  21744. mm: '%d ນາທີ',
  21745. h: '1 ຊົ່ວໂມງ',
  21746. hh: '%d ຊົ່ວໂມງ',
  21747. d: '1 ມື້',
  21748. dd: '%d ມື້',
  21749. M: '1 ເດືອນ',
  21750. MM: '%d ເດືອນ',
  21751. y: '1 ປີ',
  21752. yy: '%d ປີ'
  21753. },
  21754. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  21755. ordinal: function ordinal(number) {
  21756. return 'ທີ່' + number;
  21757. }
  21758. });
  21759. return lo;
  21760. });
  21761. /***/ }),
  21762. /* 118 */
  21763. /*!***************************************************************!*\
  21764. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lt.js ***!
  21765. \***************************************************************/
  21766. /*! no static exports found */
  21767. /***/ (function(module, exports, __webpack_require__) {
  21768. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21769. //! moment.js locale configuration
  21770. //! locale : Lithuanian [lt]
  21771. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  21772. ;
  21773. (function (global, factory) {
  21774. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21775. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21776. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21777. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21778. })(this, function (moment) {
  21779. 'use strict';
  21780. //! moment.js locale configuration
  21781. var units = {
  21782. ss: 'sekundė_sekundžių_sekundes',
  21783. m: 'minutė_minutės_minutę',
  21784. mm: 'minutės_minučių_minutes',
  21785. h: 'valanda_valandos_valandą',
  21786. hh: 'valandos_valandų_valandas',
  21787. d: 'diena_dienos_dieną',
  21788. dd: 'dienos_dienų_dienas',
  21789. M: 'mėnuo_mėnesio_mėnesį',
  21790. MM: 'mėnesiai_mėnesių_mėnesius',
  21791. y: 'metai_metų_metus',
  21792. yy: 'metai_metų_metus'
  21793. };
  21794. function translateSeconds(number, withoutSuffix, key, isFuture) {
  21795. if (withoutSuffix) {
  21796. return 'kelios sekundės';
  21797. } else {
  21798. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  21799. }
  21800. }
  21801. function translateSingular(number, withoutSuffix, key, isFuture) {
  21802. return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
  21803. }
  21804. function special(number) {
  21805. return number % 10 === 0 || number > 10 && number < 20;
  21806. }
  21807. function forms(key) {
  21808. return units[key].split('_');
  21809. }
  21810. function translate(number, withoutSuffix, key, isFuture) {
  21811. var result = number + ' ';
  21812. if (number === 1) {
  21813. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  21814. } else if (withoutSuffix) {
  21815. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  21816. } else {
  21817. if (isFuture) {
  21818. return result + forms(key)[1];
  21819. } else {
  21820. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  21821. }
  21822. }
  21823. }
  21824. var lt = moment.defineLocale('lt', {
  21825. months: {
  21826. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  21827. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  21828. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  21829. },
  21830. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  21831. weekdays: {
  21832. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  21833. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  21834. isFormat: /dddd HH:mm/
  21835. },
  21836. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  21837. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  21838. weekdaysParseExact: true,
  21839. longDateFormat: {
  21840. LT: 'HH:mm',
  21841. LTS: 'HH:mm:ss',
  21842. L: 'YYYY-MM-DD',
  21843. LL: 'YYYY [m.] MMMM D [d.]',
  21844. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  21845. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  21846. l: 'YYYY-MM-DD',
  21847. ll: 'YYYY [m.] MMMM D [d.]',
  21848. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  21849. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  21850. },
  21851. calendar: {
  21852. sameDay: '[Šiandien] LT',
  21853. nextDay: '[Rytoj] LT',
  21854. nextWeek: 'dddd LT',
  21855. lastDay: '[Vakar] LT',
  21856. lastWeek: '[Praėjusį] dddd LT',
  21857. sameElse: 'L'
  21858. },
  21859. relativeTime: {
  21860. future: 'po %s',
  21861. past: 'prieš %s',
  21862. s: translateSeconds,
  21863. ss: translate,
  21864. m: translateSingular,
  21865. mm: translate,
  21866. h: translateSingular,
  21867. hh: translate,
  21868. d: translateSingular,
  21869. dd: translate,
  21870. M: translateSingular,
  21871. MM: translate,
  21872. y: translateSingular,
  21873. yy: translate
  21874. },
  21875. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  21876. ordinal: function ordinal(number) {
  21877. return number + '-oji';
  21878. },
  21879. week: {
  21880. dow: 1,
  21881. // Monday is the first day of the week.
  21882. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21883. }
  21884. });
  21885. return lt;
  21886. });
  21887. /***/ }),
  21888. /* 119 */
  21889. /*!***************************************************************!*\
  21890. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/lv.js ***!
  21891. \***************************************************************/
  21892. /*! no static exports found */
  21893. /***/ (function(module, exports, __webpack_require__) {
  21894. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  21895. //! moment.js locale configuration
  21896. //! locale : Latvian [lv]
  21897. //! author : Kristaps Karlsons : https://github.com/skakri
  21898. //! author : Jānis Elmeris : https://github.com/JanisE
  21899. ;
  21900. (function (global, factory) {
  21901. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  21902. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  21903. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  21904. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  21905. })(this, function (moment) {
  21906. 'use strict';
  21907. //! moment.js locale configuration
  21908. var units = {
  21909. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  21910. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  21911. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  21912. h: 'stundas_stundām_stunda_stundas'.split('_'),
  21913. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  21914. d: 'dienas_dienām_diena_dienas'.split('_'),
  21915. dd: 'dienas_dienām_diena_dienas'.split('_'),
  21916. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  21917. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  21918. y: 'gada_gadiem_gads_gadi'.split('_'),
  21919. yy: 'gada_gadiem_gads_gadi'.split('_')
  21920. };
  21921. /**
  21922. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  21923. */
  21924. function format(forms, number, withoutSuffix) {
  21925. if (withoutSuffix) {
  21926. // E.g. "21 minūte", "3 minūtes".
  21927. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  21928. } else {
  21929. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  21930. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  21931. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  21932. }
  21933. }
  21934. function relativeTimeWithPlural(number, withoutSuffix, key) {
  21935. return number + ' ' + format(units[key], number, withoutSuffix);
  21936. }
  21937. function relativeTimeWithSingular(number, withoutSuffix, key) {
  21938. return format(units[key], number, withoutSuffix);
  21939. }
  21940. function relativeSeconds(number, withoutSuffix) {
  21941. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  21942. }
  21943. var lv = moment.defineLocale('lv', {
  21944. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  21945. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  21946. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  21947. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  21948. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  21949. weekdaysParseExact: true,
  21950. longDateFormat: {
  21951. LT: 'HH:mm',
  21952. LTS: 'HH:mm:ss',
  21953. L: 'DD.MM.YYYY.',
  21954. LL: 'YYYY. [gada] D. MMMM',
  21955. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  21956. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  21957. },
  21958. calendar: {
  21959. sameDay: '[Šodien pulksten] LT',
  21960. nextDay: '[Rīt pulksten] LT',
  21961. nextWeek: 'dddd [pulksten] LT',
  21962. lastDay: '[Vakar pulksten] LT',
  21963. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  21964. sameElse: 'L'
  21965. },
  21966. relativeTime: {
  21967. future: 'pēc %s',
  21968. past: 'pirms %s',
  21969. s: relativeSeconds,
  21970. ss: relativeTimeWithPlural,
  21971. m: relativeTimeWithSingular,
  21972. mm: relativeTimeWithPlural,
  21973. h: relativeTimeWithSingular,
  21974. hh: relativeTimeWithPlural,
  21975. d: relativeTimeWithSingular,
  21976. dd: relativeTimeWithPlural,
  21977. M: relativeTimeWithSingular,
  21978. MM: relativeTimeWithPlural,
  21979. y: relativeTimeWithSingular,
  21980. yy: relativeTimeWithPlural
  21981. },
  21982. dayOfMonthOrdinalParse: /\d{1,2}\./,
  21983. ordinal: '%d.',
  21984. week: {
  21985. dow: 1,
  21986. // Monday is the first day of the week.
  21987. doy: 4 // The week that contains Jan 4th is the first week of the year.
  21988. }
  21989. });
  21990. return lv;
  21991. });
  21992. /***/ }),
  21993. /* 120 */
  21994. /*!***************************************************************!*\
  21995. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/me.js ***!
  21996. \***************************************************************/
  21997. /*! no static exports found */
  21998. /***/ (function(module, exports, __webpack_require__) {
  21999. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22000. //! moment.js locale configuration
  22001. //! locale : Montenegrin [me]
  22002. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  22003. ;
  22004. (function (global, factory) {
  22005. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22006. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22007. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22008. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22009. })(this, function (moment) {
  22010. 'use strict';
  22011. //! moment.js locale configuration
  22012. var translator = {
  22013. words: {
  22014. //Different grammatical cases
  22015. ss: ['sekund', 'sekunda', 'sekundi'],
  22016. m: ['jedan minut', 'jednog minuta'],
  22017. mm: ['minut', 'minuta', 'minuta'],
  22018. h: ['jedan sat', 'jednog sata'],
  22019. hh: ['sat', 'sata', 'sati'],
  22020. dd: ['dan', 'dana', 'dana'],
  22021. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  22022. yy: ['godina', 'godine', 'godina']
  22023. },
  22024. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  22025. return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
  22026. },
  22027. translate: function translate(number, withoutSuffix, key) {
  22028. var wordKey = translator.words[key];
  22029. if (key.length === 1) {
  22030. return withoutSuffix ? wordKey[0] : wordKey[1];
  22031. } else {
  22032. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  22033. }
  22034. }
  22035. };
  22036. var me = moment.defineLocale('me', {
  22037. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  22038. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  22039. monthsParseExact: true,
  22040. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  22041. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  22042. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  22043. weekdaysParseExact: true,
  22044. longDateFormat: {
  22045. LT: 'H:mm',
  22046. LTS: 'H:mm:ss',
  22047. L: 'DD.MM.YYYY',
  22048. LL: 'D. MMMM YYYY',
  22049. LLL: 'D. MMMM YYYY H:mm',
  22050. LLLL: 'dddd, D. MMMM YYYY H:mm'
  22051. },
  22052. calendar: {
  22053. sameDay: '[danas u] LT',
  22054. nextDay: '[sjutra u] LT',
  22055. nextWeek: function nextWeek() {
  22056. switch (this.day()) {
  22057. case 0:
  22058. return '[u] [nedjelju] [u] LT';
  22059. case 3:
  22060. return '[u] [srijedu] [u] LT';
  22061. case 6:
  22062. return '[u] [subotu] [u] LT';
  22063. case 1:
  22064. case 2:
  22065. case 4:
  22066. case 5:
  22067. return '[u] dddd [u] LT';
  22068. }
  22069. },
  22070. lastDay: '[juče u] LT',
  22071. lastWeek: function lastWeek() {
  22072. var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  22073. return lastWeekDays[this.day()];
  22074. },
  22075. sameElse: 'L'
  22076. },
  22077. relativeTime: {
  22078. future: 'za %s',
  22079. past: 'prije %s',
  22080. s: 'nekoliko sekundi',
  22081. ss: translator.translate,
  22082. m: translator.translate,
  22083. mm: translator.translate,
  22084. h: translator.translate,
  22085. hh: translator.translate,
  22086. d: 'dan',
  22087. dd: translator.translate,
  22088. M: 'mjesec',
  22089. MM: translator.translate,
  22090. y: 'godinu',
  22091. yy: translator.translate
  22092. },
  22093. dayOfMonthOrdinalParse: /\d{1,2}\./,
  22094. ordinal: '%d.',
  22095. week: {
  22096. dow: 1,
  22097. // Monday is the first day of the week.
  22098. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22099. }
  22100. });
  22101. return me;
  22102. });
  22103. /***/ }),
  22104. /* 121 */
  22105. /*!***************************************************************!*\
  22106. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mi.js ***!
  22107. \***************************************************************/
  22108. /*! no static exports found */
  22109. /***/ (function(module, exports, __webpack_require__) {
  22110. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22111. //! moment.js locale configuration
  22112. //! locale : Maori [mi]
  22113. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  22114. ;
  22115. (function (global, factory) {
  22116. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22117. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22118. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22119. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22120. })(this, function (moment) {
  22121. 'use strict';
  22122. //! moment.js locale configuration
  22123. var mi = moment.defineLocale('mi', {
  22124. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
  22125. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  22126. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22127. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22128. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  22129. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  22130. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  22131. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22132. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  22133. longDateFormat: {
  22134. LT: 'HH:mm',
  22135. LTS: 'HH:mm:ss',
  22136. L: 'DD/MM/YYYY',
  22137. LL: 'D MMMM YYYY',
  22138. LLL: 'D MMMM YYYY [i] HH:mm',
  22139. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  22140. },
  22141. calendar: {
  22142. sameDay: '[i teie mahana, i] LT',
  22143. nextDay: '[apopo i] LT',
  22144. nextWeek: 'dddd [i] LT',
  22145. lastDay: '[inanahi i] LT',
  22146. lastWeek: 'dddd [whakamutunga i] LT',
  22147. sameElse: 'L'
  22148. },
  22149. relativeTime: {
  22150. future: 'i roto i %s',
  22151. past: '%s i mua',
  22152. s: 'te hēkona ruarua',
  22153. ss: '%d hēkona',
  22154. m: 'he meneti',
  22155. mm: '%d meneti',
  22156. h: 'te haora',
  22157. hh: '%d haora',
  22158. d: 'he ra',
  22159. dd: '%d ra',
  22160. M: 'he marama',
  22161. MM: '%d marama',
  22162. y: 'he tau',
  22163. yy: '%d tau'
  22164. },
  22165. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22166. ordinal: '%dº',
  22167. week: {
  22168. dow: 1,
  22169. // Monday is the first day of the week.
  22170. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22171. }
  22172. });
  22173. return mi;
  22174. });
  22175. /***/ }),
  22176. /* 122 */
  22177. /*!***************************************************************!*\
  22178. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mk.js ***!
  22179. \***************************************************************/
  22180. /*! no static exports found */
  22181. /***/ (function(module, exports, __webpack_require__) {
  22182. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22183. //! moment.js locale configuration
  22184. //! locale : Macedonian [mk]
  22185. //! author : Borislav Mickov : https://github.com/B0k0
  22186. //! author : Sashko Todorov : https://github.com/bkyceh
  22187. ;
  22188. (function (global, factory) {
  22189. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22190. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22191. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22192. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22193. })(this, function (moment) {
  22194. 'use strict';
  22195. //! moment.js locale configuration
  22196. var mk = moment.defineLocale('mk', {
  22197. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  22198. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  22199. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  22200. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  22201. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  22202. longDateFormat: {
  22203. LT: 'H:mm',
  22204. LTS: 'H:mm:ss',
  22205. L: 'D.MM.YYYY',
  22206. LL: 'D MMMM YYYY',
  22207. LLL: 'D MMMM YYYY H:mm',
  22208. LLLL: 'dddd, D MMMM YYYY H:mm'
  22209. },
  22210. calendar: {
  22211. sameDay: '[Денес во] LT',
  22212. nextDay: '[Утре во] LT',
  22213. nextWeek: '[Во] dddd [во] LT',
  22214. lastDay: '[Вчера во] LT',
  22215. lastWeek: function lastWeek() {
  22216. switch (this.day()) {
  22217. case 0:
  22218. case 3:
  22219. case 6:
  22220. return '[Изминатата] dddd [во] LT';
  22221. case 1:
  22222. case 2:
  22223. case 4:
  22224. case 5:
  22225. return '[Изминатиот] dddd [во] LT';
  22226. }
  22227. },
  22228. sameElse: 'L'
  22229. },
  22230. relativeTime: {
  22231. future: 'за %s',
  22232. past: 'пред %s',
  22233. s: 'неколку секунди',
  22234. ss: '%d секунди',
  22235. m: 'една минута',
  22236. mm: '%d минути',
  22237. h: 'еден час',
  22238. hh: '%d часа',
  22239. d: 'еден ден',
  22240. dd: '%d дена',
  22241. M: 'еден месец',
  22242. MM: '%d месеци',
  22243. y: 'една година',
  22244. yy: '%d години'
  22245. },
  22246. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  22247. ordinal: function ordinal(number) {
  22248. var lastDigit = number % 10,
  22249. last2Digits = number % 100;
  22250. if (number === 0) {
  22251. return number + '-ев';
  22252. } else if (last2Digits === 0) {
  22253. return number + '-ен';
  22254. } else if (last2Digits > 10 && last2Digits < 20) {
  22255. return number + '-ти';
  22256. } else if (lastDigit === 1) {
  22257. return number + '-ви';
  22258. } else if (lastDigit === 2) {
  22259. return number + '-ри';
  22260. } else if (lastDigit === 7 || lastDigit === 8) {
  22261. return number + '-ми';
  22262. } else {
  22263. return number + '-ти';
  22264. }
  22265. },
  22266. week: {
  22267. dow: 1,
  22268. // Monday is the first day of the week.
  22269. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22270. }
  22271. });
  22272. return mk;
  22273. });
  22274. /***/ }),
  22275. /* 123 */
  22276. /*!***************************************************************!*\
  22277. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ml.js ***!
  22278. \***************************************************************/
  22279. /*! no static exports found */
  22280. /***/ (function(module, exports, __webpack_require__) {
  22281. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22282. //! moment.js locale configuration
  22283. //! locale : Malayalam [ml]
  22284. //! author : Floyd Pink : https://github.com/floydpink
  22285. ;
  22286. (function (global, factory) {
  22287. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22288. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22289. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22290. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22291. })(this, function (moment) {
  22292. 'use strict';
  22293. //! moment.js locale configuration
  22294. var ml = moment.defineLocale('ml', {
  22295. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  22296. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  22297. monthsParseExact: true,
  22298. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  22299. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  22300. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  22301. longDateFormat: {
  22302. LT: 'A h:mm -നു',
  22303. LTS: 'A h:mm:ss -നു',
  22304. L: 'DD/MM/YYYY',
  22305. LL: 'D MMMM YYYY',
  22306. LLL: 'D MMMM YYYY, A h:mm -നു',
  22307. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
  22308. },
  22309. calendar: {
  22310. sameDay: '[ഇന്ന്] LT',
  22311. nextDay: '[നാളെ] LT',
  22312. nextWeek: 'dddd, LT',
  22313. lastDay: '[ഇന്നലെ] LT',
  22314. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  22315. sameElse: 'L'
  22316. },
  22317. relativeTime: {
  22318. future: '%s കഴിഞ്ഞ്',
  22319. past: '%s മുൻപ്',
  22320. s: 'അൽപ നിമിഷങ്ങൾ',
  22321. ss: '%d സെക്കൻഡ്',
  22322. m: 'ഒരു മിനിറ്റ്',
  22323. mm: '%d മിനിറ്റ്',
  22324. h: 'ഒരു മണിക്കൂർ',
  22325. hh: '%d മണിക്കൂർ',
  22326. d: 'ഒരു ദിവസം',
  22327. dd: '%d ദിവസം',
  22328. M: 'ഒരു മാസം',
  22329. MM: '%d മാസം',
  22330. y: 'ഒരു വർഷം',
  22331. yy: '%d വർഷം'
  22332. },
  22333. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  22334. meridiemHour: function meridiemHour(hour, meridiem) {
  22335. if (hour === 12) {
  22336. hour = 0;
  22337. }
  22338. if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {
  22339. return hour + 12;
  22340. } else {
  22341. return hour;
  22342. }
  22343. },
  22344. meridiem: function meridiem(hour, minute, isLower) {
  22345. if (hour < 4) {
  22346. return 'രാത്രി';
  22347. } else if (hour < 12) {
  22348. return 'രാവിലെ';
  22349. } else if (hour < 17) {
  22350. return 'ഉച്ച കഴിഞ്ഞ്';
  22351. } else if (hour < 20) {
  22352. return 'വൈകുന്നേരം';
  22353. } else {
  22354. return 'രാത്രി';
  22355. }
  22356. }
  22357. });
  22358. return ml;
  22359. });
  22360. /***/ }),
  22361. /* 124 */
  22362. /*!***************************************************************!*\
  22363. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mn.js ***!
  22364. \***************************************************************/
  22365. /*! no static exports found */
  22366. /***/ (function(module, exports, __webpack_require__) {
  22367. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22368. //! moment.js locale configuration
  22369. //! locale : Mongolian [mn]
  22370. //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
  22371. ;
  22372. (function (global, factory) {
  22373. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22374. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22375. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22376. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22377. })(this, function (moment) {
  22378. 'use strict';
  22379. //! moment.js locale configuration
  22380. function translate(number, withoutSuffix, key, isFuture) {
  22381. switch (key) {
  22382. case 's':
  22383. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  22384. case 'ss':
  22385. return number + (withoutSuffix ? ' секунд' : ' секундын');
  22386. case 'm':
  22387. case 'mm':
  22388. return number + (withoutSuffix ? ' минут' : ' минутын');
  22389. case 'h':
  22390. case 'hh':
  22391. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  22392. case 'd':
  22393. case 'dd':
  22394. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  22395. case 'M':
  22396. case 'MM':
  22397. return number + (withoutSuffix ? ' сар' : ' сарын');
  22398. case 'y':
  22399. case 'yy':
  22400. return number + (withoutSuffix ? ' жил' : ' жилийн');
  22401. default:
  22402. return number;
  22403. }
  22404. }
  22405. var mn = moment.defineLocale('mn', {
  22406. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
  22407. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
  22408. monthsParseExact: true,
  22409. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  22410. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  22411. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  22412. weekdaysParseExact: true,
  22413. longDateFormat: {
  22414. LT: 'HH:mm',
  22415. LTS: 'HH:mm:ss',
  22416. L: 'YYYY-MM-DD',
  22417. LL: 'YYYY оны MMMMын D',
  22418. LLL: 'YYYY оны MMMMын D HH:mm',
  22419. LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
  22420. },
  22421. meridiemParse: /ҮӨ|ҮХ/i,
  22422. isPM: function isPM(input) {
  22423. return input === 'ҮХ';
  22424. },
  22425. meridiem: function meridiem(hour, minute, isLower) {
  22426. if (hour < 12) {
  22427. return 'ҮӨ';
  22428. } else {
  22429. return 'ҮХ';
  22430. }
  22431. },
  22432. calendar: {
  22433. sameDay: '[Өнөөдөр] LT',
  22434. nextDay: '[Маргааш] LT',
  22435. nextWeek: '[Ирэх] dddd LT',
  22436. lastDay: '[Өчигдөр] LT',
  22437. lastWeek: '[Өнгөрсөн] dddd LT',
  22438. sameElse: 'L'
  22439. },
  22440. relativeTime: {
  22441. future: '%s дараа',
  22442. past: '%s өмнө',
  22443. s: translate,
  22444. ss: translate,
  22445. m: translate,
  22446. mm: translate,
  22447. h: translate,
  22448. hh: translate,
  22449. d: translate,
  22450. dd: translate,
  22451. M: translate,
  22452. MM: translate,
  22453. y: translate,
  22454. yy: translate
  22455. },
  22456. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  22457. ordinal: function ordinal(number, period) {
  22458. switch (period) {
  22459. case 'd':
  22460. case 'D':
  22461. case 'DDD':
  22462. return number + ' өдөр';
  22463. default:
  22464. return number;
  22465. }
  22466. }
  22467. });
  22468. return mn;
  22469. });
  22470. /***/ }),
  22471. /* 125 */
  22472. /*!***************************************************************!*\
  22473. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mr.js ***!
  22474. \***************************************************************/
  22475. /*! no static exports found */
  22476. /***/ (function(module, exports, __webpack_require__) {
  22477. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22478. //! moment.js locale configuration
  22479. //! locale : Marathi [mr]
  22480. //! author : Harshad Kale : https://github.com/kalehv
  22481. //! author : Vivek Athalye : https://github.com/vnathalye
  22482. ;
  22483. (function (global, factory) {
  22484. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22485. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22486. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22487. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22488. })(this, function (moment) {
  22489. 'use strict';
  22490. //! moment.js locale configuration
  22491. var symbolMap = {
  22492. 1: '१',
  22493. 2: '२',
  22494. 3: '३',
  22495. 4: '४',
  22496. 5: '५',
  22497. 6: '६',
  22498. 7: '७',
  22499. 8: '८',
  22500. 9: '९',
  22501. 0: '०'
  22502. },
  22503. numberMap = {
  22504. '१': '1',
  22505. '२': '2',
  22506. '३': '3',
  22507. '४': '4',
  22508. '५': '5',
  22509. '६': '6',
  22510. '७': '7',
  22511. '८': '8',
  22512. '९': '9',
  22513. '०': '0'
  22514. };
  22515. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  22516. var output = '';
  22517. if (withoutSuffix) {
  22518. switch (string) {
  22519. case 's':
  22520. output = 'काही सेकंद';
  22521. break;
  22522. case 'ss':
  22523. output = '%d सेकंद';
  22524. break;
  22525. case 'm':
  22526. output = 'एक मिनिट';
  22527. break;
  22528. case 'mm':
  22529. output = '%d मिनिटे';
  22530. break;
  22531. case 'h':
  22532. output = 'एक तास';
  22533. break;
  22534. case 'hh':
  22535. output = '%d तास';
  22536. break;
  22537. case 'd':
  22538. output = 'एक दिवस';
  22539. break;
  22540. case 'dd':
  22541. output = '%d दिवस';
  22542. break;
  22543. case 'M':
  22544. output = 'एक महिना';
  22545. break;
  22546. case 'MM':
  22547. output = '%d महिने';
  22548. break;
  22549. case 'y':
  22550. output = 'एक वर्ष';
  22551. break;
  22552. case 'yy':
  22553. output = '%d वर्षे';
  22554. break;
  22555. }
  22556. } else {
  22557. switch (string) {
  22558. case 's':
  22559. output = 'काही सेकंदां';
  22560. break;
  22561. case 'ss':
  22562. output = '%d सेकंदां';
  22563. break;
  22564. case 'm':
  22565. output = 'एका मिनिटा';
  22566. break;
  22567. case 'mm':
  22568. output = '%d मिनिटां';
  22569. break;
  22570. case 'h':
  22571. output = 'एका तासा';
  22572. break;
  22573. case 'hh':
  22574. output = '%d तासां';
  22575. break;
  22576. case 'd':
  22577. output = 'एका दिवसा';
  22578. break;
  22579. case 'dd':
  22580. output = '%d दिवसां';
  22581. break;
  22582. case 'M':
  22583. output = 'एका महिन्या';
  22584. break;
  22585. case 'MM':
  22586. output = '%d महिन्यां';
  22587. break;
  22588. case 'y':
  22589. output = 'एका वर्षा';
  22590. break;
  22591. case 'yy':
  22592. output = '%d वर्षां';
  22593. break;
  22594. }
  22595. }
  22596. return output.replace(/%d/i, number);
  22597. }
  22598. var mr = moment.defineLocale('mr', {
  22599. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  22600. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  22601. monthsParseExact: true,
  22602. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  22603. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  22604. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  22605. longDateFormat: {
  22606. LT: 'A h:mm वाजता',
  22607. LTS: 'A h:mm:ss वाजता',
  22608. L: 'DD/MM/YYYY',
  22609. LL: 'D MMMM YYYY',
  22610. LLL: 'D MMMM YYYY, A h:mm वाजता',
  22611. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
  22612. },
  22613. calendar: {
  22614. sameDay: '[आज] LT',
  22615. nextDay: '[उद्या] LT',
  22616. nextWeek: 'dddd, LT',
  22617. lastDay: '[काल] LT',
  22618. lastWeek: '[मागील] dddd, LT',
  22619. sameElse: 'L'
  22620. },
  22621. relativeTime: {
  22622. future: '%sमध्ये',
  22623. past: '%sपूर्वी',
  22624. s: relativeTimeMr,
  22625. ss: relativeTimeMr,
  22626. m: relativeTimeMr,
  22627. mm: relativeTimeMr,
  22628. h: relativeTimeMr,
  22629. hh: relativeTimeMr,
  22630. d: relativeTimeMr,
  22631. dd: relativeTimeMr,
  22632. M: relativeTimeMr,
  22633. MM: relativeTimeMr,
  22634. y: relativeTimeMr,
  22635. yy: relativeTimeMr
  22636. },
  22637. preparse: function preparse(string) {
  22638. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  22639. return numberMap[match];
  22640. });
  22641. },
  22642. postformat: function postformat(string) {
  22643. return string.replace(/\d/g, function (match) {
  22644. return symbolMap[match];
  22645. });
  22646. },
  22647. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  22648. meridiemHour: function meridiemHour(hour, meridiem) {
  22649. if (hour === 12) {
  22650. hour = 0;
  22651. }
  22652. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  22653. return hour;
  22654. } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {
  22655. return hour >= 12 ? hour : hour + 12;
  22656. }
  22657. },
  22658. meridiem: function meridiem(hour, minute, isLower) {
  22659. if (hour >= 0 && hour < 6) {
  22660. return 'पहाटे';
  22661. } else if (hour < 12) {
  22662. return 'सकाळी';
  22663. } else if (hour < 17) {
  22664. return 'दुपारी';
  22665. } else if (hour < 20) {
  22666. return 'सायंकाळी';
  22667. } else {
  22668. return 'रात्री';
  22669. }
  22670. },
  22671. week: {
  22672. dow: 0,
  22673. // Sunday is the first day of the week.
  22674. doy: 6 // The week that contains Jan 6th is the first week of the year.
  22675. }
  22676. });
  22677. return mr;
  22678. });
  22679. /***/ }),
  22680. /* 126 */
  22681. /*!***************************************************************!*\
  22682. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ms.js ***!
  22683. \***************************************************************/
  22684. /*! no static exports found */
  22685. /***/ (function(module, exports, __webpack_require__) {
  22686. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22687. //! moment.js locale configuration
  22688. //! locale : Malay [ms]
  22689. //! author : Weldan Jamili : https://github.com/weldan
  22690. ;
  22691. (function (global, factory) {
  22692. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22693. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22694. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22695. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22696. })(this, function (moment) {
  22697. 'use strict';
  22698. //! moment.js locale configuration
  22699. var ms = moment.defineLocale('ms', {
  22700. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  22701. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  22702. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  22703. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  22704. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  22705. longDateFormat: {
  22706. LT: 'HH.mm',
  22707. LTS: 'HH.mm.ss',
  22708. L: 'DD/MM/YYYY',
  22709. LL: 'D MMMM YYYY',
  22710. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22711. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  22712. },
  22713. meridiemParse: /pagi|tengahari|petang|malam/,
  22714. meridiemHour: function meridiemHour(hour, meridiem) {
  22715. if (hour === 12) {
  22716. hour = 0;
  22717. }
  22718. if (meridiem === 'pagi') {
  22719. return hour;
  22720. } else if (meridiem === 'tengahari') {
  22721. return hour >= 11 ? hour : hour + 12;
  22722. } else if (meridiem === 'petang' || meridiem === 'malam') {
  22723. return hour + 12;
  22724. }
  22725. },
  22726. meridiem: function meridiem(hours, minutes, isLower) {
  22727. if (hours < 11) {
  22728. return 'pagi';
  22729. } else if (hours < 15) {
  22730. return 'tengahari';
  22731. } else if (hours < 19) {
  22732. return 'petang';
  22733. } else {
  22734. return 'malam';
  22735. }
  22736. },
  22737. calendar: {
  22738. sameDay: '[Hari ini pukul] LT',
  22739. nextDay: '[Esok pukul] LT',
  22740. nextWeek: 'dddd [pukul] LT',
  22741. lastDay: '[Kelmarin pukul] LT',
  22742. lastWeek: 'dddd [lepas pukul] LT',
  22743. sameElse: 'L'
  22744. },
  22745. relativeTime: {
  22746. future: 'dalam %s',
  22747. past: '%s yang lepas',
  22748. s: 'beberapa saat',
  22749. ss: '%d saat',
  22750. m: 'seminit',
  22751. mm: '%d minit',
  22752. h: 'sejam',
  22753. hh: '%d jam',
  22754. d: 'sehari',
  22755. dd: '%d hari',
  22756. M: 'sebulan',
  22757. MM: '%d bulan',
  22758. y: 'setahun',
  22759. yy: '%d tahun'
  22760. },
  22761. week: {
  22762. dow: 1,
  22763. // Monday is the first day of the week.
  22764. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22765. }
  22766. });
  22767. return ms;
  22768. });
  22769. /***/ }),
  22770. /* 127 */
  22771. /*!******************************************************************!*\
  22772. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ms-my.js ***!
  22773. \******************************************************************/
  22774. /*! no static exports found */
  22775. /***/ (function(module, exports, __webpack_require__) {
  22776. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22777. //! moment.js locale configuration
  22778. //! locale : Malay [ms-my]
  22779. //! note : DEPRECATED, the correct one is [ms]
  22780. //! author : Weldan Jamili : https://github.com/weldan
  22781. ;
  22782. (function (global, factory) {
  22783. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22784. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22785. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22786. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22787. })(this, function (moment) {
  22788. 'use strict';
  22789. //! moment.js locale configuration
  22790. var msMy = moment.defineLocale('ms-my', {
  22791. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  22792. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  22793. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  22794. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  22795. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  22796. longDateFormat: {
  22797. LT: 'HH.mm',
  22798. LTS: 'HH.mm.ss',
  22799. L: 'DD/MM/YYYY',
  22800. LL: 'D MMMM YYYY',
  22801. LLL: 'D MMMM YYYY [pukul] HH.mm',
  22802. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
  22803. },
  22804. meridiemParse: /pagi|tengahari|petang|malam/,
  22805. meridiemHour: function meridiemHour(hour, meridiem) {
  22806. if (hour === 12) {
  22807. hour = 0;
  22808. }
  22809. if (meridiem === 'pagi') {
  22810. return hour;
  22811. } else if (meridiem === 'tengahari') {
  22812. return hour >= 11 ? hour : hour + 12;
  22813. } else if (meridiem === 'petang' || meridiem === 'malam') {
  22814. return hour + 12;
  22815. }
  22816. },
  22817. meridiem: function meridiem(hours, minutes, isLower) {
  22818. if (hours < 11) {
  22819. return 'pagi';
  22820. } else if (hours < 15) {
  22821. return 'tengahari';
  22822. } else if (hours < 19) {
  22823. return 'petang';
  22824. } else {
  22825. return 'malam';
  22826. }
  22827. },
  22828. calendar: {
  22829. sameDay: '[Hari ini pukul] LT',
  22830. nextDay: '[Esok pukul] LT',
  22831. nextWeek: 'dddd [pukul] LT',
  22832. lastDay: '[Kelmarin pukul] LT',
  22833. lastWeek: 'dddd [lepas pukul] LT',
  22834. sameElse: 'L'
  22835. },
  22836. relativeTime: {
  22837. future: 'dalam %s',
  22838. past: '%s yang lepas',
  22839. s: 'beberapa saat',
  22840. ss: '%d saat',
  22841. m: 'seminit',
  22842. mm: '%d minit',
  22843. h: 'sejam',
  22844. hh: '%d jam',
  22845. d: 'sehari',
  22846. dd: '%d hari',
  22847. M: 'sebulan',
  22848. MM: '%d bulan',
  22849. y: 'setahun',
  22850. yy: '%d tahun'
  22851. },
  22852. week: {
  22853. dow: 1,
  22854. // Monday is the first day of the week.
  22855. doy: 7 // The week that contains Jan 7th is the first week of the year.
  22856. }
  22857. });
  22858. return msMy;
  22859. });
  22860. /***/ }),
  22861. /* 128 */
  22862. /*!***************************************************************!*\
  22863. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/mt.js ***!
  22864. \***************************************************************/
  22865. /*! no static exports found */
  22866. /***/ (function(module, exports, __webpack_require__) {
  22867. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22868. //! moment.js locale configuration
  22869. //! locale : Maltese (Malta) [mt]
  22870. //! author : Alessandro Maruccia : https://github.com/alesma
  22871. ;
  22872. (function (global, factory) {
  22873. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22874. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22875. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22876. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22877. })(this, function (moment) {
  22878. 'use strict';
  22879. //! moment.js locale configuration
  22880. var mt = moment.defineLocale('mt', {
  22881. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
  22882. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  22883. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
  22884. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  22885. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  22886. longDateFormat: {
  22887. LT: 'HH:mm',
  22888. LTS: 'HH:mm:ss',
  22889. L: 'DD/MM/YYYY',
  22890. LL: 'D MMMM YYYY',
  22891. LLL: 'D MMMM YYYY HH:mm',
  22892. LLLL: 'dddd, D MMMM YYYY HH:mm'
  22893. },
  22894. calendar: {
  22895. sameDay: '[Illum fil-]LT',
  22896. nextDay: '[Għada fil-]LT',
  22897. nextWeek: 'dddd [fil-]LT',
  22898. lastDay: '[Il-bieraħ fil-]LT',
  22899. lastWeek: 'dddd [li għadda] [fil-]LT',
  22900. sameElse: 'L'
  22901. },
  22902. relativeTime: {
  22903. future: 'f’ %s',
  22904. past: '%s ilu',
  22905. s: 'ftit sekondi',
  22906. ss: '%d sekondi',
  22907. m: 'minuta',
  22908. mm: '%d minuti',
  22909. h: 'siegħa',
  22910. hh: '%d siegħat',
  22911. d: 'ġurnata',
  22912. dd: '%d ġranet',
  22913. M: 'xahar',
  22914. MM: '%d xhur',
  22915. y: 'sena',
  22916. yy: '%d sni'
  22917. },
  22918. dayOfMonthOrdinalParse: /\d{1,2}º/,
  22919. ordinal: '%dº',
  22920. week: {
  22921. dow: 1,
  22922. // Monday is the first day of the week.
  22923. doy: 4 // The week that contains Jan 4th is the first week of the year.
  22924. }
  22925. });
  22926. return mt;
  22927. });
  22928. /***/ }),
  22929. /* 129 */
  22930. /*!***************************************************************!*\
  22931. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/my.js ***!
  22932. \***************************************************************/
  22933. /*! no static exports found */
  22934. /***/ (function(module, exports, __webpack_require__) {
  22935. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  22936. //! moment.js locale configuration
  22937. //! locale : Burmese [my]
  22938. //! author : Squar team, mysquar.com
  22939. //! author : David Rossellat : https://github.com/gholadr
  22940. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  22941. ;
  22942. (function (global, factory) {
  22943. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  22944. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  22945. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  22946. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  22947. })(this, function (moment) {
  22948. 'use strict';
  22949. //! moment.js locale configuration
  22950. var symbolMap = {
  22951. 1: '၁',
  22952. 2: '၂',
  22953. 3: '၃',
  22954. 4: '၄',
  22955. 5: '၅',
  22956. 6: '၆',
  22957. 7: '၇',
  22958. 8: '၈',
  22959. 9: '၉',
  22960. 0: '၀'
  22961. },
  22962. numberMap = {
  22963. '၁': '1',
  22964. '၂': '2',
  22965. '၃': '3',
  22966. '၄': '4',
  22967. '၅': '5',
  22968. '၆': '6',
  22969. '၇': '7',
  22970. '၈': '8',
  22971. '၉': '9',
  22972. '၀': '0'
  22973. };
  22974. var my = moment.defineLocale('my', {
  22975. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  22976. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  22977. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  22978. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  22979. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  22980. longDateFormat: {
  22981. LT: 'HH:mm',
  22982. LTS: 'HH:mm:ss',
  22983. L: 'DD/MM/YYYY',
  22984. LL: 'D MMMM YYYY',
  22985. LLL: 'D MMMM YYYY HH:mm',
  22986. LLLL: 'dddd D MMMM YYYY HH:mm'
  22987. },
  22988. calendar: {
  22989. sameDay: '[ယနေ.] LT [မှာ]',
  22990. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  22991. nextWeek: 'dddd LT [မှာ]',
  22992. lastDay: '[မနေ.က] LT [မှာ]',
  22993. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  22994. sameElse: 'L'
  22995. },
  22996. relativeTime: {
  22997. future: 'လာမည့် %s မှာ',
  22998. past: 'လွန်ခဲ့သော %s က',
  22999. s: 'စက္ကန်.အနည်းငယ်',
  23000. ss: '%d စက္ကန့်',
  23001. m: 'တစ်မိနစ်',
  23002. mm: '%d မိနစ်',
  23003. h: 'တစ်နာရီ',
  23004. hh: '%d နာရီ',
  23005. d: 'တစ်ရက်',
  23006. dd: '%d ရက်',
  23007. M: 'တစ်လ',
  23008. MM: '%d လ',
  23009. y: 'တစ်နှစ်',
  23010. yy: '%d နှစ်'
  23011. },
  23012. preparse: function preparse(string) {
  23013. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  23014. return numberMap[match];
  23015. });
  23016. },
  23017. postformat: function postformat(string) {
  23018. return string.replace(/\d/g, function (match) {
  23019. return symbolMap[match];
  23020. });
  23021. },
  23022. week: {
  23023. dow: 1,
  23024. // Monday is the first day of the week.
  23025. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23026. }
  23027. });
  23028. return my;
  23029. });
  23030. /***/ }),
  23031. /* 130 */
  23032. /*!***************************************************************!*\
  23033. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nb.js ***!
  23034. \***************************************************************/
  23035. /*! no static exports found */
  23036. /***/ (function(module, exports, __webpack_require__) {
  23037. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23038. //! moment.js locale configuration
  23039. //! locale : Norwegian Bokmål [nb]
  23040. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  23041. //! Sigurd Gartmann : https://github.com/sigurdga
  23042. //! Stephen Ramthun : https://github.com/stephenramthun
  23043. ;
  23044. (function (global, factory) {
  23045. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23046. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23047. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23048. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23049. })(this, function (moment) {
  23050. 'use strict';
  23051. //! moment.js locale configuration
  23052. var nb = moment.defineLocale('nb', {
  23053. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  23054. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23055. monthsParseExact: true,
  23056. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  23057. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  23058. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  23059. weekdaysParseExact: true,
  23060. longDateFormat: {
  23061. LT: 'HH:mm',
  23062. LTS: 'HH:mm:ss',
  23063. L: 'DD.MM.YYYY',
  23064. LL: 'D. MMMM YYYY',
  23065. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  23066. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  23067. },
  23068. calendar: {
  23069. sameDay: '[i dag kl.] LT',
  23070. nextDay: '[i morgen kl.] LT',
  23071. nextWeek: 'dddd [kl.] LT',
  23072. lastDay: '[i går kl.] LT',
  23073. lastWeek: '[forrige] dddd [kl.] LT',
  23074. sameElse: 'L'
  23075. },
  23076. relativeTime: {
  23077. future: 'om %s',
  23078. past: '%s siden',
  23079. s: 'noen sekunder',
  23080. ss: '%d sekunder',
  23081. m: 'ett minutt',
  23082. mm: '%d minutter',
  23083. h: 'en time',
  23084. hh: '%d timer',
  23085. d: 'en dag',
  23086. dd: '%d dager',
  23087. w: 'en uke',
  23088. ww: '%d uker',
  23089. M: 'en måned',
  23090. MM: '%d måneder',
  23091. y: 'ett år',
  23092. yy: '%d år'
  23093. },
  23094. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23095. ordinal: '%d.',
  23096. week: {
  23097. dow: 1,
  23098. // Monday is the first day of the week.
  23099. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23100. }
  23101. });
  23102. return nb;
  23103. });
  23104. /***/ }),
  23105. /* 131 */
  23106. /*!***************************************************************!*\
  23107. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ne.js ***!
  23108. \***************************************************************/
  23109. /*! no static exports found */
  23110. /***/ (function(module, exports, __webpack_require__) {
  23111. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23112. //! moment.js locale configuration
  23113. //! locale : Nepalese [ne]
  23114. //! author : suvash : https://github.com/suvash
  23115. ;
  23116. (function (global, factory) {
  23117. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23118. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23119. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23120. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23121. })(this, function (moment) {
  23122. 'use strict';
  23123. //! moment.js locale configuration
  23124. var symbolMap = {
  23125. 1: '१',
  23126. 2: '२',
  23127. 3: '३',
  23128. 4: '४',
  23129. 5: '५',
  23130. 6: '६',
  23131. 7: '७',
  23132. 8: '८',
  23133. 9: '९',
  23134. 0: '०'
  23135. },
  23136. numberMap = {
  23137. '१': '1',
  23138. '२': '2',
  23139. '३': '3',
  23140. '४': '4',
  23141. '५': '5',
  23142. '६': '6',
  23143. '७': '7',
  23144. '८': '8',
  23145. '९': '9',
  23146. '०': '0'
  23147. };
  23148. var ne = moment.defineLocale('ne', {
  23149. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  23150. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  23151. monthsParseExact: true,
  23152. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  23153. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  23154. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  23155. weekdaysParseExact: true,
  23156. longDateFormat: {
  23157. LT: 'Aको h:mm बजे',
  23158. LTS: 'Aको h:mm:ss बजे',
  23159. L: 'DD/MM/YYYY',
  23160. LL: 'D MMMM YYYY',
  23161. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  23162. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
  23163. },
  23164. preparse: function preparse(string) {
  23165. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  23166. return numberMap[match];
  23167. });
  23168. },
  23169. postformat: function postformat(string) {
  23170. return string.replace(/\d/g, function (match) {
  23171. return symbolMap[match];
  23172. });
  23173. },
  23174. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  23175. meridiemHour: function meridiemHour(hour, meridiem) {
  23176. if (hour === 12) {
  23177. hour = 0;
  23178. }
  23179. if (meridiem === 'राति') {
  23180. return hour < 4 ? hour : hour + 12;
  23181. } else if (meridiem === 'बिहान') {
  23182. return hour;
  23183. } else if (meridiem === 'दिउँसो') {
  23184. return hour >= 10 ? hour : hour + 12;
  23185. } else if (meridiem === 'साँझ') {
  23186. return hour + 12;
  23187. }
  23188. },
  23189. meridiem: function meridiem(hour, minute, isLower) {
  23190. if (hour < 3) {
  23191. return 'राति';
  23192. } else if (hour < 12) {
  23193. return 'बिहान';
  23194. } else if (hour < 16) {
  23195. return 'दिउँसो';
  23196. } else if (hour < 20) {
  23197. return 'साँझ';
  23198. } else {
  23199. return 'राति';
  23200. }
  23201. },
  23202. calendar: {
  23203. sameDay: '[आज] LT',
  23204. nextDay: '[भोलि] LT',
  23205. nextWeek: '[आउँदो] dddd[,] LT',
  23206. lastDay: '[हिजो] LT',
  23207. lastWeek: '[गएको] dddd[,] LT',
  23208. sameElse: 'L'
  23209. },
  23210. relativeTime: {
  23211. future: '%sमा',
  23212. past: '%s अगाडि',
  23213. s: 'केही क्षण',
  23214. ss: '%d सेकेण्ड',
  23215. m: 'एक मिनेट',
  23216. mm: '%d मिनेट',
  23217. h: 'एक घण्टा',
  23218. hh: '%d घण्टा',
  23219. d: 'एक दिन',
  23220. dd: '%d दिन',
  23221. M: 'एक महिना',
  23222. MM: '%d महिना',
  23223. y: 'एक बर्ष',
  23224. yy: '%d बर्ष'
  23225. },
  23226. week: {
  23227. dow: 0,
  23228. // Sunday is the first day of the week.
  23229. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23230. }
  23231. });
  23232. return ne;
  23233. });
  23234. /***/ }),
  23235. /* 132 */
  23236. /*!***************************************************************!*\
  23237. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nl.js ***!
  23238. \***************************************************************/
  23239. /*! no static exports found */
  23240. /***/ (function(module, exports, __webpack_require__) {
  23241. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23242. //! moment.js locale configuration
  23243. //! locale : Dutch [nl]
  23244. //! author : Joris Röling : https://github.com/jorisroling
  23245. //! author : Jacob Middag : https://github.com/middagj
  23246. ;
  23247. (function (global, factory) {
  23248. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23249. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23250. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23251. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23252. })(this, function (moment) {
  23253. 'use strict';
  23254. //! moment.js locale configuration
  23255. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23256. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23257. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  23258. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23259. var nl = moment.defineLocale('nl', {
  23260. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  23261. monthsShort: function monthsShort(m, format) {
  23262. if (!m) {
  23263. return monthsShortWithDots;
  23264. } else if (/-MMM-/.test(format)) {
  23265. return monthsShortWithoutDots[m.month()];
  23266. } else {
  23267. return monthsShortWithDots[m.month()];
  23268. }
  23269. },
  23270. monthsRegex: monthsRegex,
  23271. monthsShortRegex: monthsRegex,
  23272. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23273. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23274. monthsParse: monthsParse,
  23275. longMonthsParse: monthsParse,
  23276. shortMonthsParse: monthsParse,
  23277. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23278. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23279. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23280. weekdaysParseExact: true,
  23281. longDateFormat: {
  23282. LT: 'HH:mm',
  23283. LTS: 'HH:mm:ss',
  23284. L: 'DD-MM-YYYY',
  23285. LL: 'D MMMM YYYY',
  23286. LLL: 'D MMMM YYYY HH:mm',
  23287. LLLL: 'dddd D MMMM YYYY HH:mm'
  23288. },
  23289. calendar: {
  23290. sameDay: '[vandaag om] LT',
  23291. nextDay: '[morgen om] LT',
  23292. nextWeek: 'dddd [om] LT',
  23293. lastDay: '[gisteren om] LT',
  23294. lastWeek: '[afgelopen] dddd [om] LT',
  23295. sameElse: 'L'
  23296. },
  23297. relativeTime: {
  23298. future: 'over %s',
  23299. past: '%s geleden',
  23300. s: 'een paar seconden',
  23301. ss: '%d seconden',
  23302. m: 'één minuut',
  23303. mm: '%d minuten',
  23304. h: 'één uur',
  23305. hh: '%d uur',
  23306. d: 'één dag',
  23307. dd: '%d dagen',
  23308. w: 'één week',
  23309. ww: '%d weken',
  23310. M: 'één maand',
  23311. MM: '%d maanden',
  23312. y: 'één jaar',
  23313. yy: '%d jaar'
  23314. },
  23315. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23316. ordinal: function ordinal(number) {
  23317. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  23318. },
  23319. week: {
  23320. dow: 1,
  23321. // Monday is the first day of the week.
  23322. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23323. }
  23324. });
  23325. return nl;
  23326. });
  23327. /***/ }),
  23328. /* 133 */
  23329. /*!******************************************************************!*\
  23330. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nl-be.js ***!
  23331. \******************************************************************/
  23332. /*! no static exports found */
  23333. /***/ (function(module, exports, __webpack_require__) {
  23334. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23335. //! moment.js locale configuration
  23336. //! locale : Dutch (Belgium) [nl-be]
  23337. //! author : Joris Röling : https://github.com/jorisroling
  23338. //! author : Jacob Middag : https://github.com/middagj
  23339. ;
  23340. (function (global, factory) {
  23341. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23342. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23343. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23344. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23345. })(this, function (moment) {
  23346. 'use strict';
  23347. //! moment.js locale configuration
  23348. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  23349. monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  23350. monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
  23351. monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  23352. var nlBe = moment.defineLocale('nl-be', {
  23353. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  23354. monthsShort: function monthsShort(m, format) {
  23355. if (!m) {
  23356. return monthsShortWithDots;
  23357. } else if (/-MMM-/.test(format)) {
  23358. return monthsShortWithoutDots[m.month()];
  23359. } else {
  23360. return monthsShortWithDots[m.month()];
  23361. }
  23362. },
  23363. monthsRegex: monthsRegex,
  23364. monthsShortRegex: monthsRegex,
  23365. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  23366. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  23367. monthsParse: monthsParse,
  23368. longMonthsParse: monthsParse,
  23369. shortMonthsParse: monthsParse,
  23370. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  23371. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  23372. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  23373. weekdaysParseExact: true,
  23374. longDateFormat: {
  23375. LT: 'HH:mm',
  23376. LTS: 'HH:mm:ss',
  23377. L: 'DD/MM/YYYY',
  23378. LL: 'D MMMM YYYY',
  23379. LLL: 'D MMMM YYYY HH:mm',
  23380. LLLL: 'dddd D MMMM YYYY HH:mm'
  23381. },
  23382. calendar: {
  23383. sameDay: '[vandaag om] LT',
  23384. nextDay: '[morgen om] LT',
  23385. nextWeek: 'dddd [om] LT',
  23386. lastDay: '[gisteren om] LT',
  23387. lastWeek: '[afgelopen] dddd [om] LT',
  23388. sameElse: 'L'
  23389. },
  23390. relativeTime: {
  23391. future: 'over %s',
  23392. past: '%s geleden',
  23393. s: 'een paar seconden',
  23394. ss: '%d seconden',
  23395. m: 'één minuut',
  23396. mm: '%d minuten',
  23397. h: 'één uur',
  23398. hh: '%d uur',
  23399. d: 'één dag',
  23400. dd: '%d dagen',
  23401. M: 'één maand',
  23402. MM: '%d maanden',
  23403. y: 'één jaar',
  23404. yy: '%d jaar'
  23405. },
  23406. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  23407. ordinal: function ordinal(number) {
  23408. return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
  23409. },
  23410. week: {
  23411. dow: 1,
  23412. // Monday is the first day of the week.
  23413. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23414. }
  23415. });
  23416. return nlBe;
  23417. });
  23418. /***/ }),
  23419. /* 134 */
  23420. /*!***************************************************************!*\
  23421. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/nn.js ***!
  23422. \***************************************************************/
  23423. /*! no static exports found */
  23424. /***/ (function(module, exports, __webpack_require__) {
  23425. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23426. //! moment.js locale configuration
  23427. //! locale : Nynorsk [nn]
  23428. //! authors : https://github.com/mechuwind
  23429. //! Stephen Ramthun : https://github.com/stephenramthun
  23430. ;
  23431. (function (global, factory) {
  23432. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23433. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23434. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23435. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23436. })(this, function (moment) {
  23437. 'use strict';
  23438. //! moment.js locale configuration
  23439. var nn = moment.defineLocale('nn', {
  23440. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  23441. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  23442. monthsParseExact: true,
  23443. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  23444. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  23445. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  23446. weekdaysParseExact: true,
  23447. longDateFormat: {
  23448. LT: 'HH:mm',
  23449. LTS: 'HH:mm:ss',
  23450. L: 'DD.MM.YYYY',
  23451. LL: 'D. MMMM YYYY',
  23452. LLL: 'D. MMMM YYYY [kl.] H:mm',
  23453. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
  23454. },
  23455. calendar: {
  23456. sameDay: '[I dag klokka] LT',
  23457. nextDay: '[I morgon klokka] LT',
  23458. nextWeek: 'dddd [klokka] LT',
  23459. lastDay: '[I går klokka] LT',
  23460. lastWeek: '[Føregåande] dddd [klokka] LT',
  23461. sameElse: 'L'
  23462. },
  23463. relativeTime: {
  23464. future: 'om %s',
  23465. past: '%s sidan',
  23466. s: 'nokre sekund',
  23467. ss: '%d sekund',
  23468. m: 'eit minutt',
  23469. mm: '%d minutt',
  23470. h: 'ein time',
  23471. hh: '%d timar',
  23472. d: 'ein dag',
  23473. dd: '%d dagar',
  23474. w: 'ei veke',
  23475. ww: '%d veker',
  23476. M: 'ein månad',
  23477. MM: '%d månader',
  23478. y: 'eit år',
  23479. yy: '%d år'
  23480. },
  23481. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23482. ordinal: '%d.',
  23483. week: {
  23484. dow: 1,
  23485. // Monday is the first day of the week.
  23486. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23487. }
  23488. });
  23489. return nn;
  23490. });
  23491. /***/ }),
  23492. /* 135 */
  23493. /*!*******************************************************************!*\
  23494. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/oc-lnc.js ***!
  23495. \*******************************************************************/
  23496. /*! no static exports found */
  23497. /***/ (function(module, exports, __webpack_require__) {
  23498. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23499. //! moment.js locale configuration
  23500. //! locale : Occitan, lengadocian dialecte [oc-lnc]
  23501. //! author : Quentin PAGÈS : https://github.com/Quenty31
  23502. ;
  23503. (function (global, factory) {
  23504. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23505. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23506. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23507. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23508. })(this, function (moment) {
  23509. 'use strict';
  23510. //! moment.js locale configuration
  23511. var ocLnc = moment.defineLocale('oc-lnc', {
  23512. months: {
  23513. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
  23514. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split('_'),
  23515. isFormat: /D[oD]?(\s)+MMMM/
  23516. },
  23517. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),
  23518. monthsParseExact: true,
  23519. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
  23520. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  23521. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  23522. weekdaysParseExact: true,
  23523. longDateFormat: {
  23524. LT: 'H:mm',
  23525. LTS: 'H:mm:ss',
  23526. L: 'DD/MM/YYYY',
  23527. LL: 'D MMMM [de] YYYY',
  23528. ll: 'D MMM YYYY',
  23529. LLL: 'D MMMM [de] YYYY [a] H:mm',
  23530. lll: 'D MMM YYYY, H:mm',
  23531. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  23532. llll: 'ddd D MMM YYYY, H:mm'
  23533. },
  23534. calendar: {
  23535. sameDay: '[uèi a] LT',
  23536. nextDay: '[deman a] LT',
  23537. nextWeek: 'dddd [a] LT',
  23538. lastDay: '[ièr a] LT',
  23539. lastWeek: 'dddd [passat a] LT',
  23540. sameElse: 'L'
  23541. },
  23542. relativeTime: {
  23543. future: "d'aquí %s",
  23544. past: 'fa %s',
  23545. s: 'unas segondas',
  23546. ss: '%d segondas',
  23547. m: 'una minuta',
  23548. mm: '%d minutas',
  23549. h: 'una ora',
  23550. hh: '%d oras',
  23551. d: 'un jorn',
  23552. dd: '%d jorns',
  23553. M: 'un mes',
  23554. MM: '%d meses',
  23555. y: 'un an',
  23556. yy: '%d ans'
  23557. },
  23558. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  23559. ordinal: function ordinal(number, period) {
  23560. var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';
  23561. if (period === 'w' || period === 'W') {
  23562. output = 'a';
  23563. }
  23564. return number + output;
  23565. },
  23566. week: {
  23567. dow: 1,
  23568. // Monday is the first day of the week.
  23569. doy: 4
  23570. }
  23571. });
  23572. return ocLnc;
  23573. });
  23574. /***/ }),
  23575. /* 136 */
  23576. /*!******************************************************************!*\
  23577. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pa-in.js ***!
  23578. \******************************************************************/
  23579. /*! no static exports found */
  23580. /***/ (function(module, exports, __webpack_require__) {
  23581. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23582. //! moment.js locale configuration
  23583. //! locale : Punjabi (India) [pa-in]
  23584. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  23585. ;
  23586. (function (global, factory) {
  23587. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23588. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23589. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23590. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23591. })(this, function (moment) {
  23592. 'use strict';
  23593. //! moment.js locale configuration
  23594. var symbolMap = {
  23595. 1: '੧',
  23596. 2: '੨',
  23597. 3: '੩',
  23598. 4: '੪',
  23599. 5: '੫',
  23600. 6: '੬',
  23601. 7: '੭',
  23602. 8: '੮',
  23603. 9: '੯',
  23604. 0: '੦'
  23605. },
  23606. numberMap = {
  23607. '੧': '1',
  23608. '੨': '2',
  23609. '੩': '3',
  23610. '੪': '4',
  23611. '੫': '5',
  23612. '੬': '6',
  23613. '੭': '7',
  23614. '੮': '8',
  23615. '੯': '9',
  23616. '੦': '0'
  23617. };
  23618. var paIn = moment.defineLocale('pa-in', {
  23619. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  23620. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  23621. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  23622. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  23623. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23624. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  23625. longDateFormat: {
  23626. LT: 'A h:mm ਵਜੇ',
  23627. LTS: 'A h:mm:ss ਵਜੇ',
  23628. L: 'DD/MM/YYYY',
  23629. LL: 'D MMMM YYYY',
  23630. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  23631. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  23632. },
  23633. calendar: {
  23634. sameDay: '[ਅਜ] LT',
  23635. nextDay: '[ਕਲ] LT',
  23636. nextWeek: '[ਅਗਲਾ] dddd, LT',
  23637. lastDay: '[ਕਲ] LT',
  23638. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  23639. sameElse: 'L'
  23640. },
  23641. relativeTime: {
  23642. future: '%s ਵਿੱਚ',
  23643. past: '%s ਪਿਛਲੇ',
  23644. s: 'ਕੁਝ ਸਕਿੰਟ',
  23645. ss: '%d ਸਕਿੰਟ',
  23646. m: 'ਇਕ ਮਿੰਟ',
  23647. mm: '%d ਮਿੰਟ',
  23648. h: 'ਇੱਕ ਘੰਟਾ',
  23649. hh: '%d ਘੰਟੇ',
  23650. d: 'ਇੱਕ ਦਿਨ',
  23651. dd: '%d ਦਿਨ',
  23652. M: 'ਇੱਕ ਮਹੀਨਾ',
  23653. MM: '%d ਮਹੀਨੇ',
  23654. y: 'ਇੱਕ ਸਾਲ',
  23655. yy: '%d ਸਾਲ'
  23656. },
  23657. preparse: function preparse(string) {
  23658. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  23659. return numberMap[match];
  23660. });
  23661. },
  23662. postformat: function postformat(string) {
  23663. return string.replace(/\d/g, function (match) {
  23664. return symbolMap[match];
  23665. });
  23666. },
  23667. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  23668. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  23669. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  23670. meridiemHour: function meridiemHour(hour, meridiem) {
  23671. if (hour === 12) {
  23672. hour = 0;
  23673. }
  23674. if (meridiem === 'ਰਾਤ') {
  23675. return hour < 4 ? hour : hour + 12;
  23676. } else if (meridiem === 'ਸਵੇਰ') {
  23677. return hour;
  23678. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  23679. return hour >= 10 ? hour : hour + 12;
  23680. } else if (meridiem === 'ਸ਼ਾਮ') {
  23681. return hour + 12;
  23682. }
  23683. },
  23684. meridiem: function meridiem(hour, minute, isLower) {
  23685. if (hour < 4) {
  23686. return 'ਰਾਤ';
  23687. } else if (hour < 10) {
  23688. return 'ਸਵੇਰ';
  23689. } else if (hour < 17) {
  23690. return 'ਦੁਪਹਿਰ';
  23691. } else if (hour < 20) {
  23692. return 'ਸ਼ਾਮ';
  23693. } else {
  23694. return 'ਰਾਤ';
  23695. }
  23696. },
  23697. week: {
  23698. dow: 0,
  23699. // Sunday is the first day of the week.
  23700. doy: 6 // The week that contains Jan 6th is the first week of the year.
  23701. }
  23702. });
  23703. return paIn;
  23704. });
  23705. /***/ }),
  23706. /* 137 */
  23707. /*!***************************************************************!*\
  23708. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pl.js ***!
  23709. \***************************************************************/
  23710. /*! no static exports found */
  23711. /***/ (function(module, exports, __webpack_require__) {
  23712. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23713. //! moment.js locale configuration
  23714. //! locale : Polish [pl]
  23715. //! author : Rafal Hirsz : https://github.com/evoL
  23716. ;
  23717. (function (global, factory) {
  23718. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23719. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23720. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23721. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23722. })(this, function (moment) {
  23723. 'use strict';
  23724. //! moment.js locale configuration
  23725. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  23726. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),
  23727. monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];
  23728. function plural(n) {
  23729. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  23730. }
  23731. function translate(number, withoutSuffix, key) {
  23732. var result = number + ' ';
  23733. switch (key) {
  23734. case 'ss':
  23735. return result + (plural(number) ? 'sekundy' : 'sekund');
  23736. case 'm':
  23737. return withoutSuffix ? 'minuta' : 'minutę';
  23738. case 'mm':
  23739. return result + (plural(number) ? 'minuty' : 'minut');
  23740. case 'h':
  23741. return withoutSuffix ? 'godzina' : 'godzinę';
  23742. case 'hh':
  23743. return result + (plural(number) ? 'godziny' : 'godzin');
  23744. case 'ww':
  23745. return result + (plural(number) ? 'tygodnie' : 'tygodni');
  23746. case 'MM':
  23747. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  23748. case 'yy':
  23749. return result + (plural(number) ? 'lata' : 'lat');
  23750. }
  23751. }
  23752. var pl = moment.defineLocale('pl', {
  23753. months: function months(momentToFormat, format) {
  23754. if (!momentToFormat) {
  23755. return monthsNominative;
  23756. } else if (/D MMMM/.test(format)) {
  23757. return monthsSubjective[momentToFormat.month()];
  23758. } else {
  23759. return monthsNominative[momentToFormat.month()];
  23760. }
  23761. },
  23762. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  23763. monthsParse: monthsParse,
  23764. longMonthsParse: monthsParse,
  23765. shortMonthsParse: monthsParse,
  23766. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  23767. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  23768. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  23769. longDateFormat: {
  23770. LT: 'HH:mm',
  23771. LTS: 'HH:mm:ss',
  23772. L: 'DD.MM.YYYY',
  23773. LL: 'D MMMM YYYY',
  23774. LLL: 'D MMMM YYYY HH:mm',
  23775. LLLL: 'dddd, D MMMM YYYY HH:mm'
  23776. },
  23777. calendar: {
  23778. sameDay: '[Dziś o] LT',
  23779. nextDay: '[Jutro o] LT',
  23780. nextWeek: function nextWeek() {
  23781. switch (this.day()) {
  23782. case 0:
  23783. return '[W niedzielę o] LT';
  23784. case 2:
  23785. return '[We wtorek o] LT';
  23786. case 3:
  23787. return '[W środę o] LT';
  23788. case 6:
  23789. return '[W sobotę o] LT';
  23790. default:
  23791. return '[W] dddd [o] LT';
  23792. }
  23793. },
  23794. lastDay: '[Wczoraj o] LT',
  23795. lastWeek: function lastWeek() {
  23796. switch (this.day()) {
  23797. case 0:
  23798. return '[W zeszłą niedzielę o] LT';
  23799. case 3:
  23800. return '[W zeszłą środę o] LT';
  23801. case 6:
  23802. return '[W zeszłą sobotę o] LT';
  23803. default:
  23804. return '[W zeszły] dddd [o] LT';
  23805. }
  23806. },
  23807. sameElse: 'L'
  23808. },
  23809. relativeTime: {
  23810. future: 'za %s',
  23811. past: '%s temu',
  23812. s: 'kilka sekund',
  23813. ss: translate,
  23814. m: translate,
  23815. mm: translate,
  23816. h: translate,
  23817. hh: translate,
  23818. d: '1 dzień',
  23819. dd: '%d dni',
  23820. w: 'tydzień',
  23821. ww: translate,
  23822. M: 'miesiąc',
  23823. MM: translate,
  23824. y: 'rok',
  23825. yy: translate
  23826. },
  23827. dayOfMonthOrdinalParse: /\d{1,2}\./,
  23828. ordinal: '%d.',
  23829. week: {
  23830. dow: 1,
  23831. // Monday is the first day of the week.
  23832. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23833. }
  23834. });
  23835. return pl;
  23836. });
  23837. /***/ }),
  23838. /* 138 */
  23839. /*!***************************************************************!*\
  23840. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pt.js ***!
  23841. \***************************************************************/
  23842. /*! no static exports found */
  23843. /***/ (function(module, exports, __webpack_require__) {
  23844. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23845. //! moment.js locale configuration
  23846. //! locale : Portuguese [pt]
  23847. //! author : Jefferson : https://github.com/jalex79
  23848. ;
  23849. (function (global, factory) {
  23850. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23851. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23852. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23853. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23854. })(this, function (moment) {
  23855. 'use strict';
  23856. //! moment.js locale configuration
  23857. var pt = moment.defineLocale('pt', {
  23858. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  23859. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  23860. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  23861. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  23862. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  23863. weekdaysParseExact: true,
  23864. longDateFormat: {
  23865. LT: 'HH:mm',
  23866. LTS: 'HH:mm:ss',
  23867. L: 'DD/MM/YYYY',
  23868. LL: 'D [de] MMMM [de] YYYY',
  23869. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  23870. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
  23871. },
  23872. calendar: {
  23873. sameDay: '[Hoje às] LT',
  23874. nextDay: '[Amanhã às] LT',
  23875. nextWeek: 'dddd [às] LT',
  23876. lastDay: '[Ontem às] LT',
  23877. lastWeek: function lastWeek() {
  23878. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  23879. : '[Última] dddd [às] LT'; // Monday - Friday
  23880. },
  23881. sameElse: 'L'
  23882. },
  23883. relativeTime: {
  23884. future: 'em %s',
  23885. past: 'há %s',
  23886. s: 'segundos',
  23887. ss: '%d segundos',
  23888. m: 'um minuto',
  23889. mm: '%d minutos',
  23890. h: 'uma hora',
  23891. hh: '%d horas',
  23892. d: 'um dia',
  23893. dd: '%d dias',
  23894. w: 'uma semana',
  23895. ww: '%d semanas',
  23896. M: 'um mês',
  23897. MM: '%d meses',
  23898. y: 'um ano',
  23899. yy: '%d anos'
  23900. },
  23901. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23902. ordinal: '%dº',
  23903. week: {
  23904. dow: 1,
  23905. // Monday is the first day of the week.
  23906. doy: 4 // The week that contains Jan 4th is the first week of the year.
  23907. }
  23908. });
  23909. return pt;
  23910. });
  23911. /***/ }),
  23912. /* 139 */
  23913. /*!******************************************************************!*\
  23914. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/pt-br.js ***!
  23915. \******************************************************************/
  23916. /*! no static exports found */
  23917. /***/ (function(module, exports, __webpack_require__) {
  23918. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23919. //! moment.js locale configuration
  23920. //! locale : Portuguese (Brazil) [pt-br]
  23921. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  23922. ;
  23923. (function (global, factory) {
  23924. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23925. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23926. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23927. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23928. })(this, function (moment) {
  23929. 'use strict';
  23930. //! moment.js locale configuration
  23931. var ptBr = moment.defineLocale('pt-br', {
  23932. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  23933. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  23934. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
  23935. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  23936. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  23937. weekdaysParseExact: true,
  23938. longDateFormat: {
  23939. LT: 'HH:mm',
  23940. LTS: 'HH:mm:ss',
  23941. L: 'DD/MM/YYYY',
  23942. LL: 'D [de] MMMM [de] YYYY',
  23943. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  23944. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  23945. },
  23946. calendar: {
  23947. sameDay: '[Hoje às] LT',
  23948. nextDay: '[Amanhã às] LT',
  23949. nextWeek: 'dddd [às] LT',
  23950. lastDay: '[Ontem às] LT',
  23951. lastWeek: function lastWeek() {
  23952. return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
  23953. : '[Última] dddd [às] LT'; // Monday - Friday
  23954. },
  23955. sameElse: 'L'
  23956. },
  23957. relativeTime: {
  23958. future: 'em %s',
  23959. past: 'há %s',
  23960. s: 'poucos segundos',
  23961. ss: '%d segundos',
  23962. m: 'um minuto',
  23963. mm: '%d minutos',
  23964. h: 'uma hora',
  23965. hh: '%d horas',
  23966. d: 'um dia',
  23967. dd: '%d dias',
  23968. M: 'um mês',
  23969. MM: '%d meses',
  23970. y: 'um ano',
  23971. yy: '%d anos'
  23972. },
  23973. dayOfMonthOrdinalParse: /\d{1,2}º/,
  23974. ordinal: '%dº',
  23975. invalidDate: 'Data inválida'
  23976. });
  23977. return ptBr;
  23978. });
  23979. /***/ }),
  23980. /* 140 */
  23981. /*!***************************************************************!*\
  23982. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ro.js ***!
  23983. \***************************************************************/
  23984. /*! no static exports found */
  23985. /***/ (function(module, exports, __webpack_require__) {
  23986. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  23987. //! moment.js locale configuration
  23988. //! locale : Romanian [ro]
  23989. //! author : Vlad Gurdiga : https://github.com/gurdiga
  23990. //! author : Valentin Agachi : https://github.com/avaly
  23991. //! author : Emanuel Cepoi : https://github.com/cepem
  23992. ;
  23993. (function (global, factory) {
  23994. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23995. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23996. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23997. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  23998. })(this, function (moment) {
  23999. 'use strict';
  24000. //! moment.js locale configuration
  24001. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24002. var format = {
  24003. ss: 'secunde',
  24004. mm: 'minute',
  24005. hh: 'ore',
  24006. dd: 'zile',
  24007. ww: 'săptămâni',
  24008. MM: 'luni',
  24009. yy: 'ani'
  24010. },
  24011. separator = ' ';
  24012. if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
  24013. separator = ' de ';
  24014. }
  24015. return number + separator + format[key];
  24016. }
  24017. var ro = moment.defineLocale('ro', {
  24018. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  24019. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  24020. monthsParseExact: true,
  24021. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  24022. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  24023. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  24024. longDateFormat: {
  24025. LT: 'H:mm',
  24026. LTS: 'H:mm:ss',
  24027. L: 'DD.MM.YYYY',
  24028. LL: 'D MMMM YYYY',
  24029. LLL: 'D MMMM YYYY H:mm',
  24030. LLLL: 'dddd, D MMMM YYYY H:mm'
  24031. },
  24032. calendar: {
  24033. sameDay: '[azi la] LT',
  24034. nextDay: '[mâine la] LT',
  24035. nextWeek: 'dddd [la] LT',
  24036. lastDay: '[ieri la] LT',
  24037. lastWeek: '[fosta] dddd [la] LT',
  24038. sameElse: 'L'
  24039. },
  24040. relativeTime: {
  24041. future: 'peste %s',
  24042. past: '%s în urmă',
  24043. s: 'câteva secunde',
  24044. ss: relativeTimeWithPlural,
  24045. m: 'un minut',
  24046. mm: relativeTimeWithPlural,
  24047. h: 'o oră',
  24048. hh: relativeTimeWithPlural,
  24049. d: 'o zi',
  24050. dd: relativeTimeWithPlural,
  24051. w: 'o săptămână',
  24052. ww: relativeTimeWithPlural,
  24053. M: 'o lună',
  24054. MM: relativeTimeWithPlural,
  24055. y: 'un an',
  24056. yy: relativeTimeWithPlural
  24057. },
  24058. week: {
  24059. dow: 1,
  24060. // Monday is the first day of the week.
  24061. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24062. }
  24063. });
  24064. return ro;
  24065. });
  24066. /***/ }),
  24067. /* 141 */
  24068. /*!***************************************************************!*\
  24069. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ru.js ***!
  24070. \***************************************************************/
  24071. /*! no static exports found */
  24072. /***/ (function(module, exports, __webpack_require__) {
  24073. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24074. //! moment.js locale configuration
  24075. //! locale : Russian [ru]
  24076. //! author : Viktorminator : https://github.com/Viktorminator
  24077. //! author : Menelion Elensúle : https://github.com/Oire
  24078. //! author : Коренберг Марк : https://github.com/socketpair
  24079. ;
  24080. (function (global, factory) {
  24081. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24082. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24083. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24084. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24085. })(this, function (moment) {
  24086. 'use strict';
  24087. //! moment.js locale configuration
  24088. function plural(word, num) {
  24089. var forms = word.split('_');
  24090. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  24091. }
  24092. function relativeTimeWithPlural(number, withoutSuffix, key) {
  24093. var format = {
  24094. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  24095. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  24096. hh: 'час_часа_часов',
  24097. dd: 'день_дня_дней',
  24098. ww: 'неделя_недели_недель',
  24099. MM: 'месяц_месяца_месяцев',
  24100. yy: 'год_года_лет'
  24101. };
  24102. if (key === 'm') {
  24103. return withoutSuffix ? 'минута' : 'минуту';
  24104. } else {
  24105. return number + ' ' + plural(format[key], +number);
  24106. }
  24107. }
  24108. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  24109. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  24110. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  24111. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  24112. var ru = moment.defineLocale('ru', {
  24113. months: {
  24114. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  24115. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  24116. },
  24117. monthsShort: {
  24118. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  24119. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  24120. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  24121. },
  24122. weekdays: {
  24123. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  24124. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  24125. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
  24126. },
  24127. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24128. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  24129. monthsParse: monthsParse,
  24130. longMonthsParse: monthsParse,
  24131. shortMonthsParse: monthsParse,
  24132. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  24133. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24134. // копия предыдущего
  24135. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  24136. // полные названия с падежами
  24137. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  24138. // Выражение, которое соответствует только сокращённым формам
  24139. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  24140. longDateFormat: {
  24141. LT: 'H:mm',
  24142. LTS: 'H:mm:ss',
  24143. L: 'DD.MM.YYYY',
  24144. LL: 'D MMMM YYYY г.',
  24145. LLL: 'D MMMM YYYY г., H:mm',
  24146. LLLL: 'dddd, D MMMM YYYY г., H:mm'
  24147. },
  24148. calendar: {
  24149. sameDay: '[Сегодня, в] LT',
  24150. nextDay: '[Завтра, в] LT',
  24151. lastDay: '[Вчера, в] LT',
  24152. nextWeek: function nextWeek(now) {
  24153. if (now.week() !== this.week()) {
  24154. switch (this.day()) {
  24155. case 0:
  24156. return '[В следующее] dddd, [в] LT';
  24157. case 1:
  24158. case 2:
  24159. case 4:
  24160. return '[В следующий] dddd, [в] LT';
  24161. case 3:
  24162. case 5:
  24163. case 6:
  24164. return '[В следующую] dddd, [в] LT';
  24165. }
  24166. } else {
  24167. if (this.day() === 2) {
  24168. return '[Во] dddd, [в] LT';
  24169. } else {
  24170. return '[В] dddd, [в] LT';
  24171. }
  24172. }
  24173. },
  24174. lastWeek: function lastWeek(now) {
  24175. if (now.week() !== this.week()) {
  24176. switch (this.day()) {
  24177. case 0:
  24178. return '[В прошлое] dddd, [в] LT';
  24179. case 1:
  24180. case 2:
  24181. case 4:
  24182. return '[В прошлый] dddd, [в] LT';
  24183. case 3:
  24184. case 5:
  24185. case 6:
  24186. return '[В прошлую] dddd, [в] LT';
  24187. }
  24188. } else {
  24189. if (this.day() === 2) {
  24190. return '[Во] dddd, [в] LT';
  24191. } else {
  24192. return '[В] dddd, [в] LT';
  24193. }
  24194. }
  24195. },
  24196. sameElse: 'L'
  24197. },
  24198. relativeTime: {
  24199. future: 'через %s',
  24200. past: '%s назад',
  24201. s: 'несколько секунд',
  24202. ss: relativeTimeWithPlural,
  24203. m: relativeTimeWithPlural,
  24204. mm: relativeTimeWithPlural,
  24205. h: 'час',
  24206. hh: relativeTimeWithPlural,
  24207. d: 'день',
  24208. dd: relativeTimeWithPlural,
  24209. w: 'неделя',
  24210. ww: relativeTimeWithPlural,
  24211. M: 'месяц',
  24212. MM: relativeTimeWithPlural,
  24213. y: 'год',
  24214. yy: relativeTimeWithPlural
  24215. },
  24216. meridiemParse: /ночи|утра|дня|вечера/i,
  24217. isPM: function isPM(input) {
  24218. return /^(дня|вечера)$/.test(input);
  24219. },
  24220. meridiem: function meridiem(hour, minute, isLower) {
  24221. if (hour < 4) {
  24222. return 'ночи';
  24223. } else if (hour < 12) {
  24224. return 'утра';
  24225. } else if (hour < 17) {
  24226. return 'дня';
  24227. } else {
  24228. return 'вечера';
  24229. }
  24230. },
  24231. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  24232. ordinal: function ordinal(number, period) {
  24233. switch (period) {
  24234. case 'M':
  24235. case 'd':
  24236. case 'DDD':
  24237. return number + '-й';
  24238. case 'D':
  24239. return number + '-го';
  24240. case 'w':
  24241. case 'W':
  24242. return number + '-я';
  24243. default:
  24244. return number;
  24245. }
  24246. },
  24247. week: {
  24248. dow: 1,
  24249. // Monday is the first day of the week.
  24250. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24251. }
  24252. });
  24253. return ru;
  24254. });
  24255. /***/ }),
  24256. /* 142 */
  24257. /*!***************************************************************!*\
  24258. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sd.js ***!
  24259. \***************************************************************/
  24260. /*! no static exports found */
  24261. /***/ (function(module, exports, __webpack_require__) {
  24262. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24263. //! moment.js locale configuration
  24264. //! locale : Sindhi [sd]
  24265. //! author : Narain Sagar : https://github.com/narainsagar
  24266. ;
  24267. (function (global, factory) {
  24268. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24269. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24270. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24271. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24272. })(this, function (moment) {
  24273. 'use strict';
  24274. //! moment.js locale configuration
  24275. var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],
  24276. days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  24277. var sd = moment.defineLocale('sd', {
  24278. months: months,
  24279. monthsShort: months,
  24280. weekdays: days,
  24281. weekdaysShort: days,
  24282. weekdaysMin: days,
  24283. longDateFormat: {
  24284. LT: 'HH:mm',
  24285. LTS: 'HH:mm:ss',
  24286. L: 'DD/MM/YYYY',
  24287. LL: 'D MMMM YYYY',
  24288. LLL: 'D MMMM YYYY HH:mm',
  24289. LLLL: 'dddd، D MMMM YYYY HH:mm'
  24290. },
  24291. meridiemParse: /صبح|شام/,
  24292. isPM: function isPM(input) {
  24293. return 'شام' === input;
  24294. },
  24295. meridiem: function meridiem(hour, minute, isLower) {
  24296. if (hour < 12) {
  24297. return 'صبح';
  24298. }
  24299. return 'شام';
  24300. },
  24301. calendar: {
  24302. sameDay: '[اڄ] LT',
  24303. nextDay: '[سڀاڻي] LT',
  24304. nextWeek: 'dddd [اڳين هفتي تي] LT',
  24305. lastDay: '[ڪالهه] LT',
  24306. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  24307. sameElse: 'L'
  24308. },
  24309. relativeTime: {
  24310. future: '%s پوء',
  24311. past: '%s اڳ',
  24312. s: 'چند سيڪنڊ',
  24313. ss: '%d سيڪنڊ',
  24314. m: 'هڪ منٽ',
  24315. mm: '%d منٽ',
  24316. h: 'هڪ ڪلاڪ',
  24317. hh: '%d ڪلاڪ',
  24318. d: 'هڪ ڏينهن',
  24319. dd: '%d ڏينهن',
  24320. M: 'هڪ مهينو',
  24321. MM: '%d مهينا',
  24322. y: 'هڪ سال',
  24323. yy: '%d سال'
  24324. },
  24325. preparse: function preparse(string) {
  24326. return string.replace(/،/g, ',');
  24327. },
  24328. postformat: function postformat(string) {
  24329. return string.replace(/,/g, '،');
  24330. },
  24331. week: {
  24332. dow: 1,
  24333. // Monday is the first day of the week.
  24334. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24335. }
  24336. });
  24337. return sd;
  24338. });
  24339. /***/ }),
  24340. /* 143 */
  24341. /*!***************************************************************!*\
  24342. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/se.js ***!
  24343. \***************************************************************/
  24344. /*! no static exports found */
  24345. /***/ (function(module, exports, __webpack_require__) {
  24346. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24347. //! moment.js locale configuration
  24348. //! locale : Northern Sami [se]
  24349. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  24350. ;
  24351. (function (global, factory) {
  24352. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24353. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24354. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24355. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24356. })(this, function (moment) {
  24357. 'use strict';
  24358. //! moment.js locale configuration
  24359. var se = moment.defineLocale('se', {
  24360. months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
  24361. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  24362. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  24363. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  24364. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  24365. longDateFormat: {
  24366. LT: 'HH:mm',
  24367. LTS: 'HH:mm:ss',
  24368. L: 'DD.MM.YYYY',
  24369. LL: 'MMMM D. [b.] YYYY',
  24370. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  24371. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  24372. },
  24373. calendar: {
  24374. sameDay: '[otne ti] LT',
  24375. nextDay: '[ihttin ti] LT',
  24376. nextWeek: 'dddd [ti] LT',
  24377. lastDay: '[ikte ti] LT',
  24378. lastWeek: '[ovddit] dddd [ti] LT',
  24379. sameElse: 'L'
  24380. },
  24381. relativeTime: {
  24382. future: '%s geažes',
  24383. past: 'maŋit %s',
  24384. s: 'moadde sekunddat',
  24385. ss: '%d sekunddat',
  24386. m: 'okta minuhta',
  24387. mm: '%d minuhtat',
  24388. h: 'okta diimmu',
  24389. hh: '%d diimmut',
  24390. d: 'okta beaivi',
  24391. dd: '%d beaivvit',
  24392. M: 'okta mánnu',
  24393. MM: '%d mánut',
  24394. y: 'okta jahki',
  24395. yy: '%d jagit'
  24396. },
  24397. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24398. ordinal: '%d.',
  24399. week: {
  24400. dow: 1,
  24401. // Monday is the first day of the week.
  24402. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24403. }
  24404. });
  24405. return se;
  24406. });
  24407. /***/ }),
  24408. /* 144 */
  24409. /*!***************************************************************!*\
  24410. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/si.js ***!
  24411. \***************************************************************/
  24412. /*! no static exports found */
  24413. /***/ (function(module, exports, __webpack_require__) {
  24414. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24415. //! moment.js locale configuration
  24416. //! locale : Sinhalese [si]
  24417. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  24418. ;
  24419. (function (global, factory) {
  24420. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24421. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24422. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24423. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24424. })(this, function (moment) {
  24425. 'use strict';
  24426. //! moment.js locale configuration
  24427. /*jshint -W100*/
  24428. var si = moment.defineLocale('si', {
  24429. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  24430. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  24431. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  24432. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  24433. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  24434. weekdaysParseExact: true,
  24435. longDateFormat: {
  24436. LT: 'a h:mm',
  24437. LTS: 'a h:mm:ss',
  24438. L: 'YYYY/MM/DD',
  24439. LL: 'YYYY MMMM D',
  24440. LLL: 'YYYY MMMM D, a h:mm',
  24441. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  24442. },
  24443. calendar: {
  24444. sameDay: '[අද] LT[ට]',
  24445. nextDay: '[හෙට] LT[ට]',
  24446. nextWeek: 'dddd LT[ට]',
  24447. lastDay: '[ඊයේ] LT[ට]',
  24448. lastWeek: '[පසුගිය] dddd LT[ට]',
  24449. sameElse: 'L'
  24450. },
  24451. relativeTime: {
  24452. future: '%sකින්',
  24453. past: '%sකට පෙර',
  24454. s: 'තත්පර කිහිපය',
  24455. ss: 'තත්පර %d',
  24456. m: 'මිනිත්තුව',
  24457. mm: 'මිනිත්තු %d',
  24458. h: 'පැය',
  24459. hh: 'පැය %d',
  24460. d: 'දිනය',
  24461. dd: 'දින %d',
  24462. M: 'මාසය',
  24463. MM: 'මාස %d',
  24464. y: 'වසර',
  24465. yy: 'වසර %d'
  24466. },
  24467. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  24468. ordinal: function ordinal(number) {
  24469. return number + ' වැනි';
  24470. },
  24471. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  24472. isPM: function isPM(input) {
  24473. return input === 'ප.ව.' || input === 'පස් වරු';
  24474. },
  24475. meridiem: function meridiem(hours, minutes, isLower) {
  24476. if (hours > 11) {
  24477. return isLower ? 'ප.ව.' : 'පස් වරු';
  24478. } else {
  24479. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  24480. }
  24481. }
  24482. });
  24483. return si;
  24484. });
  24485. /***/ }),
  24486. /* 145 */
  24487. /*!***************************************************************!*\
  24488. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sk.js ***!
  24489. \***************************************************************/
  24490. /*! no static exports found */
  24491. /***/ (function(module, exports, __webpack_require__) {
  24492. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24493. //! moment.js locale configuration
  24494. //! locale : Slovak [sk]
  24495. //! author : Martin Minka : https://github.com/k2s
  24496. //! based on work of petrbela : https://github.com/petrbela
  24497. ;
  24498. (function (global, factory) {
  24499. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24500. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24501. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24502. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24503. })(this, function (moment) {
  24504. 'use strict';
  24505. //! moment.js locale configuration
  24506. var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  24507. monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  24508. function plural(n) {
  24509. return n > 1 && n < 5;
  24510. }
  24511. function translate(number, withoutSuffix, key, isFuture) {
  24512. var result = number + ' ';
  24513. switch (key) {
  24514. case 's':
  24515. // a few seconds / in a few seconds / a few seconds ago
  24516. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  24517. case 'ss':
  24518. // 9 seconds / in 9 seconds / 9 seconds ago
  24519. if (withoutSuffix || isFuture) {
  24520. return result + (plural(number) ? 'sekundy' : 'sekúnd');
  24521. } else {
  24522. return result + 'sekundami';
  24523. }
  24524. case 'm':
  24525. // a minute / in a minute / a minute ago
  24526. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  24527. case 'mm':
  24528. // 9 minutes / in 9 minutes / 9 minutes ago
  24529. if (withoutSuffix || isFuture) {
  24530. return result + (plural(number) ? 'minúty' : 'minút');
  24531. } else {
  24532. return result + 'minútami';
  24533. }
  24534. case 'h':
  24535. // an hour / in an hour / an hour ago
  24536. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  24537. case 'hh':
  24538. // 9 hours / in 9 hours / 9 hours ago
  24539. if (withoutSuffix || isFuture) {
  24540. return result + (plural(number) ? 'hodiny' : 'hodín');
  24541. } else {
  24542. return result + 'hodinami';
  24543. }
  24544. case 'd':
  24545. // a day / in a day / a day ago
  24546. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  24547. case 'dd':
  24548. // 9 days / in 9 days / 9 days ago
  24549. if (withoutSuffix || isFuture) {
  24550. return result + (plural(number) ? 'dni' : 'dní');
  24551. } else {
  24552. return result + 'dňami';
  24553. }
  24554. case 'M':
  24555. // a month / in a month / a month ago
  24556. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  24557. case 'MM':
  24558. // 9 months / in 9 months / 9 months ago
  24559. if (withoutSuffix || isFuture) {
  24560. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  24561. } else {
  24562. return result + 'mesiacmi';
  24563. }
  24564. case 'y':
  24565. // a year / in a year / a year ago
  24566. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  24567. case 'yy':
  24568. // 9 years / in 9 years / 9 years ago
  24569. if (withoutSuffix || isFuture) {
  24570. return result + (plural(number) ? 'roky' : 'rokov');
  24571. } else {
  24572. return result + 'rokmi';
  24573. }
  24574. }
  24575. }
  24576. var sk = moment.defineLocale('sk', {
  24577. months: months,
  24578. monthsShort: monthsShort,
  24579. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  24580. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  24581. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  24582. longDateFormat: {
  24583. LT: 'H:mm',
  24584. LTS: 'H:mm:ss',
  24585. L: 'DD.MM.YYYY',
  24586. LL: 'D. MMMM YYYY',
  24587. LLL: 'D. MMMM YYYY H:mm',
  24588. LLLL: 'dddd D. MMMM YYYY H:mm'
  24589. },
  24590. calendar: {
  24591. sameDay: '[dnes o] LT',
  24592. nextDay: '[zajtra o] LT',
  24593. nextWeek: function nextWeek() {
  24594. switch (this.day()) {
  24595. case 0:
  24596. return '[v nedeľu o] LT';
  24597. case 1:
  24598. case 2:
  24599. return '[v] dddd [o] LT';
  24600. case 3:
  24601. return '[v stredu o] LT';
  24602. case 4:
  24603. return '[vo štvrtok o] LT';
  24604. case 5:
  24605. return '[v piatok o] LT';
  24606. case 6:
  24607. return '[v sobotu o] LT';
  24608. }
  24609. },
  24610. lastDay: '[včera o] LT',
  24611. lastWeek: function lastWeek() {
  24612. switch (this.day()) {
  24613. case 0:
  24614. return '[minulú nedeľu o] LT';
  24615. case 1:
  24616. case 2:
  24617. return '[minulý] dddd [o] LT';
  24618. case 3:
  24619. return '[minulú stredu o] LT';
  24620. case 4:
  24621. case 5:
  24622. return '[minulý] dddd [o] LT';
  24623. case 6:
  24624. return '[minulú sobotu o] LT';
  24625. }
  24626. },
  24627. sameElse: 'L'
  24628. },
  24629. relativeTime: {
  24630. future: 'za %s',
  24631. past: 'pred %s',
  24632. s: translate,
  24633. ss: translate,
  24634. m: translate,
  24635. mm: translate,
  24636. h: translate,
  24637. hh: translate,
  24638. d: translate,
  24639. dd: translate,
  24640. M: translate,
  24641. MM: translate,
  24642. y: translate,
  24643. yy: translate
  24644. },
  24645. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24646. ordinal: '%d.',
  24647. week: {
  24648. dow: 1,
  24649. // Monday is the first day of the week.
  24650. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24651. }
  24652. });
  24653. return sk;
  24654. });
  24655. /***/ }),
  24656. /* 146 */
  24657. /*!***************************************************************!*\
  24658. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sl.js ***!
  24659. \***************************************************************/
  24660. /*! no static exports found */
  24661. /***/ (function(module, exports, __webpack_require__) {
  24662. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24663. //! moment.js locale configuration
  24664. //! locale : Slovenian [sl]
  24665. //! author : Robert Sedovšek : https://github.com/sedovsek
  24666. ;
  24667. (function (global, factory) {
  24668. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24669. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24670. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24671. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24672. })(this, function (moment) {
  24673. 'use strict';
  24674. //! moment.js locale configuration
  24675. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  24676. var result = number + ' ';
  24677. switch (key) {
  24678. case 's':
  24679. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  24680. case 'ss':
  24681. if (number === 1) {
  24682. result += withoutSuffix ? 'sekundo' : 'sekundi';
  24683. } else if (number === 2) {
  24684. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  24685. } else if (number < 5) {
  24686. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  24687. } else {
  24688. result += 'sekund';
  24689. }
  24690. return result;
  24691. case 'm':
  24692. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  24693. case 'mm':
  24694. if (number === 1) {
  24695. result += withoutSuffix ? 'minuta' : 'minuto';
  24696. } else if (number === 2) {
  24697. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  24698. } else if (number < 5) {
  24699. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  24700. } else {
  24701. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  24702. }
  24703. return result;
  24704. case 'h':
  24705. return withoutSuffix ? 'ena ura' : 'eno uro';
  24706. case 'hh':
  24707. if (number === 1) {
  24708. result += withoutSuffix ? 'ura' : 'uro';
  24709. } else if (number === 2) {
  24710. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  24711. } else if (number < 5) {
  24712. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  24713. } else {
  24714. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  24715. }
  24716. return result;
  24717. case 'd':
  24718. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  24719. case 'dd':
  24720. if (number === 1) {
  24721. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  24722. } else if (number === 2) {
  24723. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  24724. } else {
  24725. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  24726. }
  24727. return result;
  24728. case 'M':
  24729. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  24730. case 'MM':
  24731. if (number === 1) {
  24732. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  24733. } else if (number === 2) {
  24734. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  24735. } else if (number < 5) {
  24736. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  24737. } else {
  24738. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  24739. }
  24740. return result;
  24741. case 'y':
  24742. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  24743. case 'yy':
  24744. if (number === 1) {
  24745. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  24746. } else if (number === 2) {
  24747. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  24748. } else if (number < 5) {
  24749. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  24750. } else {
  24751. result += withoutSuffix || isFuture ? 'let' : 'leti';
  24752. }
  24753. return result;
  24754. }
  24755. }
  24756. var sl = moment.defineLocale('sl', {
  24757. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  24758. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  24759. monthsParseExact: true,
  24760. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  24761. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  24762. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  24763. weekdaysParseExact: true,
  24764. longDateFormat: {
  24765. LT: 'H:mm',
  24766. LTS: 'H:mm:ss',
  24767. L: 'DD. MM. YYYY',
  24768. LL: 'D. MMMM YYYY',
  24769. LLL: 'D. MMMM YYYY H:mm',
  24770. LLLL: 'dddd, D. MMMM YYYY H:mm'
  24771. },
  24772. calendar: {
  24773. sameDay: '[danes ob] LT',
  24774. nextDay: '[jutri ob] LT',
  24775. nextWeek: function nextWeek() {
  24776. switch (this.day()) {
  24777. case 0:
  24778. return '[v] [nedeljo] [ob] LT';
  24779. case 3:
  24780. return '[v] [sredo] [ob] LT';
  24781. case 6:
  24782. return '[v] [soboto] [ob] LT';
  24783. case 1:
  24784. case 2:
  24785. case 4:
  24786. case 5:
  24787. return '[v] dddd [ob] LT';
  24788. }
  24789. },
  24790. lastDay: '[včeraj ob] LT',
  24791. lastWeek: function lastWeek() {
  24792. switch (this.day()) {
  24793. case 0:
  24794. return '[prejšnjo] [nedeljo] [ob] LT';
  24795. case 3:
  24796. return '[prejšnjo] [sredo] [ob] LT';
  24797. case 6:
  24798. return '[prejšnjo] [soboto] [ob] LT';
  24799. case 1:
  24800. case 2:
  24801. case 4:
  24802. case 5:
  24803. return '[prejšnji] dddd [ob] LT';
  24804. }
  24805. },
  24806. sameElse: 'L'
  24807. },
  24808. relativeTime: {
  24809. future: 'čez %s',
  24810. past: 'pred %s',
  24811. s: processRelativeTime,
  24812. ss: processRelativeTime,
  24813. m: processRelativeTime,
  24814. mm: processRelativeTime,
  24815. h: processRelativeTime,
  24816. hh: processRelativeTime,
  24817. d: processRelativeTime,
  24818. dd: processRelativeTime,
  24819. M: processRelativeTime,
  24820. MM: processRelativeTime,
  24821. y: processRelativeTime,
  24822. yy: processRelativeTime
  24823. },
  24824. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24825. ordinal: '%d.',
  24826. week: {
  24827. dow: 1,
  24828. // Monday is the first day of the week.
  24829. doy: 7 // The week that contains Jan 7th is the first week of the year.
  24830. }
  24831. });
  24832. return sl;
  24833. });
  24834. /***/ }),
  24835. /* 147 */
  24836. /*!***************************************************************!*\
  24837. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sq.js ***!
  24838. \***************************************************************/
  24839. /*! no static exports found */
  24840. /***/ (function(module, exports, __webpack_require__) {
  24841. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24842. //! moment.js locale configuration
  24843. //! locale : Albanian [sq]
  24844. //! author : Flakërim Ismani : https://github.com/flakerimi
  24845. //! author : Menelion Elensúle : https://github.com/Oire
  24846. //! author : Oerd Cukalla : https://github.com/oerd
  24847. ;
  24848. (function (global, factory) {
  24849. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24850. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24851. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24852. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24853. })(this, function (moment) {
  24854. 'use strict';
  24855. //! moment.js locale configuration
  24856. var sq = moment.defineLocale('sq', {
  24857. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  24858. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  24859. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  24860. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  24861. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  24862. weekdaysParseExact: true,
  24863. meridiemParse: /PD|MD/,
  24864. isPM: function isPM(input) {
  24865. return input.charAt(0) === 'M';
  24866. },
  24867. meridiem: function meridiem(hours, minutes, isLower) {
  24868. return hours < 12 ? 'PD' : 'MD';
  24869. },
  24870. longDateFormat: {
  24871. LT: 'HH:mm',
  24872. LTS: 'HH:mm:ss',
  24873. L: 'DD/MM/YYYY',
  24874. LL: 'D MMMM YYYY',
  24875. LLL: 'D MMMM YYYY HH:mm',
  24876. LLLL: 'dddd, D MMMM YYYY HH:mm'
  24877. },
  24878. calendar: {
  24879. sameDay: '[Sot në] LT',
  24880. nextDay: '[Nesër në] LT',
  24881. nextWeek: 'dddd [në] LT',
  24882. lastDay: '[Dje në] LT',
  24883. lastWeek: 'dddd [e kaluar në] LT',
  24884. sameElse: 'L'
  24885. },
  24886. relativeTime: {
  24887. future: 'në %s',
  24888. past: '%s më parë',
  24889. s: 'disa sekonda',
  24890. ss: '%d sekonda',
  24891. m: 'një minutë',
  24892. mm: '%d minuta',
  24893. h: 'një orë',
  24894. hh: '%d orë',
  24895. d: 'një ditë',
  24896. dd: '%d ditë',
  24897. M: 'një muaj',
  24898. MM: '%d muaj',
  24899. y: 'një vit',
  24900. yy: '%d vite'
  24901. },
  24902. dayOfMonthOrdinalParse: /\d{1,2}\./,
  24903. ordinal: '%d.',
  24904. week: {
  24905. dow: 1,
  24906. // Monday is the first day of the week.
  24907. doy: 4 // The week that contains Jan 4th is the first week of the year.
  24908. }
  24909. });
  24910. return sq;
  24911. });
  24912. /***/ }),
  24913. /* 148 */
  24914. /*!***************************************************************!*\
  24915. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sr.js ***!
  24916. \***************************************************************/
  24917. /*! no static exports found */
  24918. /***/ (function(module, exports, __webpack_require__) {
  24919. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24920. //! moment.js locale configuration
  24921. //! locale : Serbian [sr]
  24922. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  24923. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  24924. ;
  24925. (function (global, factory) {
  24926. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  24927. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24928. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  24929. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24930. })(this, function (moment) {
  24931. 'use strict';
  24932. //! moment.js locale configuration
  24933. var translator = {
  24934. words: {
  24935. //Different grammatical cases
  24936. ss: ['sekunda', 'sekunde', 'sekundi'],
  24937. m: ['jedan minut', 'jednog minuta'],
  24938. mm: ['minut', 'minuta', 'minuta'],
  24939. h: ['jedan sat', 'jednog sata'],
  24940. hh: ['sat', 'sata', 'sati'],
  24941. d: ['jedan dan', 'jednog dana'],
  24942. dd: ['dan', 'dana', 'dana'],
  24943. M: ['jedan mesec', 'jednog meseca'],
  24944. MM: ['mesec', 'meseca', 'meseci'],
  24945. y: ['jednu godinu', 'jedne godine'],
  24946. yy: ['godinu', 'godine', 'godina']
  24947. },
  24948. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  24949. if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
  24950. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  24951. }
  24952. return wordKey[2];
  24953. },
  24954. translate: function translate(number, withoutSuffix, key, isFuture) {
  24955. var wordKey = translator.words[key],
  24956. word;
  24957. if (key.length === 1) {
  24958. // Nominativ
  24959. if (key === 'y' && withoutSuffix) return 'jedna godina';
  24960. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  24961. }
  24962. word = translator.correctGrammaticalCase(number, wordKey);
  24963. // Nominativ
  24964. if (key === 'yy' && withoutSuffix && word === 'godinu') {
  24965. return number + ' godina';
  24966. }
  24967. return number + ' ' + word;
  24968. }
  24969. };
  24970. var sr = moment.defineLocale('sr', {
  24971. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  24972. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  24973. monthsParseExact: true,
  24974. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  24975. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  24976. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  24977. weekdaysParseExact: true,
  24978. longDateFormat: {
  24979. LT: 'H:mm',
  24980. LTS: 'H:mm:ss',
  24981. L: 'D. M. YYYY.',
  24982. LL: 'D. MMMM YYYY.',
  24983. LLL: 'D. MMMM YYYY. H:mm',
  24984. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  24985. },
  24986. calendar: {
  24987. sameDay: '[danas u] LT',
  24988. nextDay: '[sutra u] LT',
  24989. nextWeek: function nextWeek() {
  24990. switch (this.day()) {
  24991. case 0:
  24992. return '[u] [nedelju] [u] LT';
  24993. case 3:
  24994. return '[u] [sredu] [u] LT';
  24995. case 6:
  24996. return '[u] [subotu] [u] LT';
  24997. case 1:
  24998. case 2:
  24999. case 4:
  25000. case 5:
  25001. return '[u] dddd [u] LT';
  25002. }
  25003. },
  25004. lastDay: '[juče u] LT',
  25005. lastWeek: function lastWeek() {
  25006. var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
  25007. return lastWeekDays[this.day()];
  25008. },
  25009. sameElse: 'L'
  25010. },
  25011. relativeTime: {
  25012. future: 'za %s',
  25013. past: 'pre %s',
  25014. s: 'nekoliko sekundi',
  25015. ss: translator.translate,
  25016. m: translator.translate,
  25017. mm: translator.translate,
  25018. h: translator.translate,
  25019. hh: translator.translate,
  25020. d: translator.translate,
  25021. dd: translator.translate,
  25022. M: translator.translate,
  25023. MM: translator.translate,
  25024. y: translator.translate,
  25025. yy: translator.translate
  25026. },
  25027. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25028. ordinal: '%d.',
  25029. week: {
  25030. dow: 1,
  25031. // Monday is the first day of the week.
  25032. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25033. }
  25034. });
  25035. return sr;
  25036. });
  25037. /***/ }),
  25038. /* 149 */
  25039. /*!********************************************************************!*\
  25040. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sr-cyrl.js ***!
  25041. \********************************************************************/
  25042. /*! no static exports found */
  25043. /***/ (function(module, exports, __webpack_require__) {
  25044. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25045. //! moment.js locale configuration
  25046. //! locale : Serbian Cyrillic [sr-cyrl]
  25047. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  25048. //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
  25049. ;
  25050. (function (global, factory) {
  25051. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25052. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25053. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25054. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25055. })(this, function (moment) {
  25056. 'use strict';
  25057. //! moment.js locale configuration
  25058. var translator = {
  25059. words: {
  25060. //Different grammatical cases
  25061. ss: ['секунда', 'секунде', 'секунди'],
  25062. m: ['један минут', 'једног минута'],
  25063. mm: ['минут', 'минута', 'минута'],
  25064. h: ['један сат', 'једног сата'],
  25065. hh: ['сат', 'сата', 'сати'],
  25066. d: ['један дан', 'једног дана'],
  25067. dd: ['дан', 'дана', 'дана'],
  25068. M: ['један месец', 'једног месеца'],
  25069. MM: ['месец', 'месеца', 'месеци'],
  25070. y: ['једну годину', 'једне године'],
  25071. yy: ['годину', 'године', 'година']
  25072. },
  25073. correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
  25074. if (number % 10 >= 1 && number % 10 <= 4 && (number % 100 < 10 || number % 100 >= 20)) {
  25075. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  25076. }
  25077. return wordKey[2];
  25078. },
  25079. translate: function translate(number, withoutSuffix, key, isFuture) {
  25080. var wordKey = translator.words[key],
  25081. word;
  25082. if (key.length === 1) {
  25083. // Nominativ
  25084. if (key === 'y' && withoutSuffix) return 'једна година';
  25085. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  25086. }
  25087. word = translator.correctGrammaticalCase(number, wordKey);
  25088. // Nominativ
  25089. if (key === 'yy' && withoutSuffix && word === 'годину') {
  25090. return number + ' година';
  25091. }
  25092. return number + ' ' + word;
  25093. }
  25094. };
  25095. var srCyrl = moment.defineLocale('sr-cyrl', {
  25096. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  25097. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  25098. monthsParseExact: true,
  25099. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  25100. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  25101. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  25102. weekdaysParseExact: true,
  25103. longDateFormat: {
  25104. LT: 'H:mm',
  25105. LTS: 'H:mm:ss',
  25106. L: 'D. M. YYYY.',
  25107. LL: 'D. MMMM YYYY.',
  25108. LLL: 'D. MMMM YYYY. H:mm',
  25109. LLLL: 'dddd, D. MMMM YYYY. H:mm'
  25110. },
  25111. calendar: {
  25112. sameDay: '[данас у] LT',
  25113. nextDay: '[сутра у] LT',
  25114. nextWeek: function nextWeek() {
  25115. switch (this.day()) {
  25116. case 0:
  25117. return '[у] [недељу] [у] LT';
  25118. case 3:
  25119. return '[у] [среду] [у] LT';
  25120. case 6:
  25121. return '[у] [суботу] [у] LT';
  25122. case 1:
  25123. case 2:
  25124. case 4:
  25125. case 5:
  25126. return '[у] dddd [у] LT';
  25127. }
  25128. },
  25129. lastDay: '[јуче у] LT',
  25130. lastWeek: function lastWeek() {
  25131. var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];
  25132. return lastWeekDays[this.day()];
  25133. },
  25134. sameElse: 'L'
  25135. },
  25136. relativeTime: {
  25137. future: 'за %s',
  25138. past: 'пре %s',
  25139. s: 'неколико секунди',
  25140. ss: translator.translate,
  25141. m: translator.translate,
  25142. mm: translator.translate,
  25143. h: translator.translate,
  25144. hh: translator.translate,
  25145. d: translator.translate,
  25146. dd: translator.translate,
  25147. M: translator.translate,
  25148. MM: translator.translate,
  25149. y: translator.translate,
  25150. yy: translator.translate
  25151. },
  25152. dayOfMonthOrdinalParse: /\d{1,2}\./,
  25153. ordinal: '%d.',
  25154. week: {
  25155. dow: 1,
  25156. // Monday is the first day of the week.
  25157. doy: 7 // The week that contains Jan 1st is the first week of the year.
  25158. }
  25159. });
  25160. return srCyrl;
  25161. });
  25162. /***/ }),
  25163. /* 150 */
  25164. /*!***************************************************************!*\
  25165. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ss.js ***!
  25166. \***************************************************************/
  25167. /*! no static exports found */
  25168. /***/ (function(module, exports, __webpack_require__) {
  25169. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25170. //! moment.js locale configuration
  25171. //! locale : siSwati [ss]
  25172. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  25173. ;
  25174. (function (global, factory) {
  25175. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25176. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25177. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25178. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25179. })(this, function (moment) {
  25180. 'use strict';
  25181. //! moment.js locale configuration
  25182. var ss = moment.defineLocale('ss', {
  25183. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  25184. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  25185. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  25186. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  25187. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  25188. weekdaysParseExact: true,
  25189. longDateFormat: {
  25190. LT: 'h:mm A',
  25191. LTS: 'h:mm:ss A',
  25192. L: 'DD/MM/YYYY',
  25193. LL: 'D MMMM YYYY',
  25194. LLL: 'D MMMM YYYY h:mm A',
  25195. LLLL: 'dddd, D MMMM YYYY h:mm A'
  25196. },
  25197. calendar: {
  25198. sameDay: '[Namuhla nga] LT',
  25199. nextDay: '[Kusasa nga] LT',
  25200. nextWeek: 'dddd [nga] LT',
  25201. lastDay: '[Itolo nga] LT',
  25202. lastWeek: 'dddd [leliphelile] [nga] LT',
  25203. sameElse: 'L'
  25204. },
  25205. relativeTime: {
  25206. future: 'nga %s',
  25207. past: 'wenteka nga %s',
  25208. s: 'emizuzwana lomcane',
  25209. ss: '%d mzuzwana',
  25210. m: 'umzuzu',
  25211. mm: '%d emizuzu',
  25212. h: 'lihora',
  25213. hh: '%d emahora',
  25214. d: 'lilanga',
  25215. dd: '%d emalanga',
  25216. M: 'inyanga',
  25217. MM: '%d tinyanga',
  25218. y: 'umnyaka',
  25219. yy: '%d iminyaka'
  25220. },
  25221. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  25222. meridiem: function meridiem(hours, minutes, isLower) {
  25223. if (hours < 11) {
  25224. return 'ekuseni';
  25225. } else if (hours < 15) {
  25226. return 'emini';
  25227. } else if (hours < 19) {
  25228. return 'entsambama';
  25229. } else {
  25230. return 'ebusuku';
  25231. }
  25232. },
  25233. meridiemHour: function meridiemHour(hour, meridiem) {
  25234. if (hour === 12) {
  25235. hour = 0;
  25236. }
  25237. if (meridiem === 'ekuseni') {
  25238. return hour;
  25239. } else if (meridiem === 'emini') {
  25240. return hour >= 11 ? hour : hour + 12;
  25241. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  25242. if (hour === 0) {
  25243. return 0;
  25244. }
  25245. return hour + 12;
  25246. }
  25247. },
  25248. dayOfMonthOrdinalParse: /\d{1,2}/,
  25249. ordinal: '%d',
  25250. week: {
  25251. dow: 1,
  25252. // Monday is the first day of the week.
  25253. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25254. }
  25255. });
  25256. return ss;
  25257. });
  25258. /***/ }),
  25259. /* 151 */
  25260. /*!***************************************************************!*\
  25261. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sv.js ***!
  25262. \***************************************************************/
  25263. /*! no static exports found */
  25264. /***/ (function(module, exports, __webpack_require__) {
  25265. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25266. //! moment.js locale configuration
  25267. //! locale : Swedish [sv]
  25268. //! author : Jens Alm : https://github.com/ulmus
  25269. ;
  25270. (function (global, factory) {
  25271. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25272. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25273. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25274. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25275. })(this, function (moment) {
  25276. 'use strict';
  25277. //! moment.js locale configuration
  25278. var sv = moment.defineLocale('sv', {
  25279. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  25280. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  25281. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  25282. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  25283. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  25284. longDateFormat: {
  25285. LT: 'HH:mm',
  25286. LTS: 'HH:mm:ss',
  25287. L: 'YYYY-MM-DD',
  25288. LL: 'D MMMM YYYY',
  25289. LLL: 'D MMMM YYYY [kl.] HH:mm',
  25290. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  25291. lll: 'D MMM YYYY HH:mm',
  25292. llll: 'ddd D MMM YYYY HH:mm'
  25293. },
  25294. calendar: {
  25295. sameDay: '[Idag] LT',
  25296. nextDay: '[Imorgon] LT',
  25297. lastDay: '[Igår] LT',
  25298. nextWeek: '[På] dddd LT',
  25299. lastWeek: '[I] dddd[s] LT',
  25300. sameElse: 'L'
  25301. },
  25302. relativeTime: {
  25303. future: 'om %s',
  25304. past: 'för %s sedan',
  25305. s: 'några sekunder',
  25306. ss: '%d sekunder',
  25307. m: 'en minut',
  25308. mm: '%d minuter',
  25309. h: 'en timme',
  25310. hh: '%d timmar',
  25311. d: 'en dag',
  25312. dd: '%d dagar',
  25313. M: 'en månad',
  25314. MM: '%d månader',
  25315. y: 'ett år',
  25316. yy: '%d år'
  25317. },
  25318. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  25319. ordinal: function ordinal(number) {
  25320. var b = number % 10,
  25321. output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';
  25322. return number + output;
  25323. },
  25324. week: {
  25325. dow: 1,
  25326. // Monday is the first day of the week.
  25327. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25328. }
  25329. });
  25330. return sv;
  25331. });
  25332. /***/ }),
  25333. /* 152 */
  25334. /*!***************************************************************!*\
  25335. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/sw.js ***!
  25336. \***************************************************************/
  25337. /*! no static exports found */
  25338. /***/ (function(module, exports, __webpack_require__) {
  25339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25340. //! moment.js locale configuration
  25341. //! locale : Swahili [sw]
  25342. //! author : Fahad Kassim : https://github.com/fadsel
  25343. ;
  25344. (function (global, factory) {
  25345. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25346. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25347. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25348. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25349. })(this, function (moment) {
  25350. 'use strict';
  25351. //! moment.js locale configuration
  25352. var sw = moment.defineLocale('sw', {
  25353. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  25354. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  25355. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  25356. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  25357. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  25358. weekdaysParseExact: true,
  25359. longDateFormat: {
  25360. LT: 'hh:mm A',
  25361. LTS: 'HH:mm:ss',
  25362. L: 'DD.MM.YYYY',
  25363. LL: 'D MMMM YYYY',
  25364. LLL: 'D MMMM YYYY HH:mm',
  25365. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25366. },
  25367. calendar: {
  25368. sameDay: '[leo saa] LT',
  25369. nextDay: '[kesho saa] LT',
  25370. nextWeek: '[wiki ijayo] dddd [saat] LT',
  25371. lastDay: '[jana] LT',
  25372. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  25373. sameElse: 'L'
  25374. },
  25375. relativeTime: {
  25376. future: '%s baadaye',
  25377. past: 'tokea %s',
  25378. s: 'hivi punde',
  25379. ss: 'sekunde %d',
  25380. m: 'dakika moja',
  25381. mm: 'dakika %d',
  25382. h: 'saa limoja',
  25383. hh: 'masaa %d',
  25384. d: 'siku moja',
  25385. dd: 'siku %d',
  25386. M: 'mwezi mmoja',
  25387. MM: 'miezi %d',
  25388. y: 'mwaka mmoja',
  25389. yy: 'miaka %d'
  25390. },
  25391. week: {
  25392. dow: 1,
  25393. // Monday is the first day of the week.
  25394. doy: 7 // The week that contains Jan 7th is the first week of the year.
  25395. }
  25396. });
  25397. return sw;
  25398. });
  25399. /***/ }),
  25400. /* 153 */
  25401. /*!***************************************************************!*\
  25402. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ta.js ***!
  25403. \***************************************************************/
  25404. /*! no static exports found */
  25405. /***/ (function(module, exports, __webpack_require__) {
  25406. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25407. //! moment.js locale configuration
  25408. //! locale : Tamil [ta]
  25409. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  25410. ;
  25411. (function (global, factory) {
  25412. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25413. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25414. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25415. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25416. })(this, function (moment) {
  25417. 'use strict';
  25418. //! moment.js locale configuration
  25419. var symbolMap = {
  25420. 1: '௧',
  25421. 2: '௨',
  25422. 3: '௩',
  25423. 4: '௪',
  25424. 5: '௫',
  25425. 6: '௬',
  25426. 7: '௭',
  25427. 8: '௮',
  25428. 9: '௯',
  25429. 0: '௦'
  25430. },
  25431. numberMap = {
  25432. '௧': '1',
  25433. '௨': '2',
  25434. '௩': '3',
  25435. '௪': '4',
  25436. '௫': '5',
  25437. '௬': '6',
  25438. '௭': '7',
  25439. '௮': '8',
  25440. '௯': '9',
  25441. '௦': '0'
  25442. };
  25443. var ta = moment.defineLocale('ta', {
  25444. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  25445. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  25446. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  25447. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  25448. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  25449. longDateFormat: {
  25450. LT: 'HH:mm',
  25451. LTS: 'HH:mm:ss',
  25452. L: 'DD/MM/YYYY',
  25453. LL: 'D MMMM YYYY',
  25454. LLL: 'D MMMM YYYY, HH:mm',
  25455. LLLL: 'dddd, D MMMM YYYY, HH:mm'
  25456. },
  25457. calendar: {
  25458. sameDay: '[இன்று] LT',
  25459. nextDay: '[நாளை] LT',
  25460. nextWeek: 'dddd, LT',
  25461. lastDay: '[நேற்று] LT',
  25462. lastWeek: '[கடந்த வாரம்] dddd, LT',
  25463. sameElse: 'L'
  25464. },
  25465. relativeTime: {
  25466. future: '%s இல்',
  25467. past: '%s முன்',
  25468. s: 'ஒரு சில விநாடிகள்',
  25469. ss: '%d விநாடிகள்',
  25470. m: 'ஒரு நிமிடம்',
  25471. mm: '%d நிமிடங்கள்',
  25472. h: 'ஒரு மணி நேரம்',
  25473. hh: '%d மணி நேரம்',
  25474. d: 'ஒரு நாள்',
  25475. dd: '%d நாட்கள்',
  25476. M: 'ஒரு மாதம்',
  25477. MM: '%d மாதங்கள்',
  25478. y: 'ஒரு வருடம்',
  25479. yy: '%d ஆண்டுகள்'
  25480. },
  25481. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  25482. ordinal: function ordinal(number) {
  25483. return number + 'வது';
  25484. },
  25485. preparse: function preparse(string) {
  25486. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  25487. return numberMap[match];
  25488. });
  25489. },
  25490. postformat: function postformat(string) {
  25491. return string.replace(/\d/g, function (match) {
  25492. return symbolMap[match];
  25493. });
  25494. },
  25495. // refer http://ta.wikipedia.org/s/1er1
  25496. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  25497. meridiem: function meridiem(hour, minute, isLower) {
  25498. if (hour < 2) {
  25499. return ' யாமம்';
  25500. } else if (hour < 6) {
  25501. return ' வைகறை'; // வைகறை
  25502. } else if (hour < 10) {
  25503. return ' காலை'; // காலை
  25504. } else if (hour < 14) {
  25505. return ' நண்பகல்'; // நண்பகல்
  25506. } else if (hour < 18) {
  25507. return ' எற்பாடு'; // எற்பாடு
  25508. } else if (hour < 22) {
  25509. return ' மாலை'; // மாலை
  25510. } else {
  25511. return ' யாமம்';
  25512. }
  25513. },
  25514. meridiemHour: function meridiemHour(hour, meridiem) {
  25515. if (hour === 12) {
  25516. hour = 0;
  25517. }
  25518. if (meridiem === 'யாமம்') {
  25519. return hour < 2 ? hour : hour + 12;
  25520. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  25521. return hour;
  25522. } else if (meridiem === 'நண்பகல்') {
  25523. return hour >= 10 ? hour : hour + 12;
  25524. } else {
  25525. return hour + 12;
  25526. }
  25527. },
  25528. week: {
  25529. dow: 0,
  25530. // Sunday is the first day of the week.
  25531. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25532. }
  25533. });
  25534. return ta;
  25535. });
  25536. /***/ }),
  25537. /* 154 */
  25538. /*!***************************************************************!*\
  25539. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/te.js ***!
  25540. \***************************************************************/
  25541. /*! no static exports found */
  25542. /***/ (function(module, exports, __webpack_require__) {
  25543. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25544. //! moment.js locale configuration
  25545. //! locale : Telugu [te]
  25546. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  25547. ;
  25548. (function (global, factory) {
  25549. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25550. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25551. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25552. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25553. })(this, function (moment) {
  25554. 'use strict';
  25555. //! moment.js locale configuration
  25556. var te = moment.defineLocale('te', {
  25557. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  25558. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  25559. monthsParseExact: true,
  25560. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  25561. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  25562. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  25563. longDateFormat: {
  25564. LT: 'A h:mm',
  25565. LTS: 'A h:mm:ss',
  25566. L: 'DD/MM/YYYY',
  25567. LL: 'D MMMM YYYY',
  25568. LLL: 'D MMMM YYYY, A h:mm',
  25569. LLLL: 'dddd, D MMMM YYYY, A h:mm'
  25570. },
  25571. calendar: {
  25572. sameDay: '[నేడు] LT',
  25573. nextDay: '[రేపు] LT',
  25574. nextWeek: 'dddd, LT',
  25575. lastDay: '[నిన్న] LT',
  25576. lastWeek: '[గత] dddd, LT',
  25577. sameElse: 'L'
  25578. },
  25579. relativeTime: {
  25580. future: '%s లో',
  25581. past: '%s క్రితం',
  25582. s: 'కొన్ని క్షణాలు',
  25583. ss: '%d సెకన్లు',
  25584. m: 'ఒక నిమిషం',
  25585. mm: '%d నిమిషాలు',
  25586. h: 'ఒక గంట',
  25587. hh: '%d గంటలు',
  25588. d: 'ఒక రోజు',
  25589. dd: '%d రోజులు',
  25590. M: 'ఒక నెల',
  25591. MM: '%d నెలలు',
  25592. y: 'ఒక సంవత్సరం',
  25593. yy: '%d సంవత్సరాలు'
  25594. },
  25595. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  25596. ordinal: '%dవ',
  25597. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  25598. meridiemHour: function meridiemHour(hour, meridiem) {
  25599. if (hour === 12) {
  25600. hour = 0;
  25601. }
  25602. if (meridiem === 'రాత్రి') {
  25603. return hour < 4 ? hour : hour + 12;
  25604. } else if (meridiem === 'ఉదయం') {
  25605. return hour;
  25606. } else if (meridiem === 'మధ్యాహ్నం') {
  25607. return hour >= 10 ? hour : hour + 12;
  25608. } else if (meridiem === 'సాయంత్రం') {
  25609. return hour + 12;
  25610. }
  25611. },
  25612. meridiem: function meridiem(hour, minute, isLower) {
  25613. if (hour < 4) {
  25614. return 'రాత్రి';
  25615. } else if (hour < 10) {
  25616. return 'ఉదయం';
  25617. } else if (hour < 17) {
  25618. return 'మధ్యాహ్నం';
  25619. } else if (hour < 20) {
  25620. return 'సాయంత్రం';
  25621. } else {
  25622. return 'రాత్రి';
  25623. }
  25624. },
  25625. week: {
  25626. dow: 0,
  25627. // Sunday is the first day of the week.
  25628. doy: 6 // The week that contains Jan 6th is the first week of the year.
  25629. }
  25630. });
  25631. return te;
  25632. });
  25633. /***/ }),
  25634. /* 155 */
  25635. /*!****************************************************************!*\
  25636. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tet.js ***!
  25637. \****************************************************************/
  25638. /*! no static exports found */
  25639. /***/ (function(module, exports, __webpack_require__) {
  25640. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25641. //! moment.js locale configuration
  25642. //! locale : Tetun Dili (East Timor) [tet]
  25643. //! author : Joshua Brooks : https://github.com/joshbrooks
  25644. //! author : Onorio De J. Afonso : https://github.com/marobo
  25645. //! author : Sonia Simoes : https://github.com/soniasimoes
  25646. ;
  25647. (function (global, factory) {
  25648. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25649. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25650. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25651. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25652. })(this, function (moment) {
  25653. 'use strict';
  25654. //! moment.js locale configuration
  25655. var tet = moment.defineLocale('tet', {
  25656. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  25657. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  25658. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  25659. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  25660. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  25661. longDateFormat: {
  25662. LT: 'HH:mm',
  25663. LTS: 'HH:mm:ss',
  25664. L: 'DD/MM/YYYY',
  25665. LL: 'D MMMM YYYY',
  25666. LLL: 'D MMMM YYYY HH:mm',
  25667. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25668. },
  25669. calendar: {
  25670. sameDay: '[Ohin iha] LT',
  25671. nextDay: '[Aban iha] LT',
  25672. nextWeek: 'dddd [iha] LT',
  25673. lastDay: '[Horiseik iha] LT',
  25674. lastWeek: 'dddd [semana kotuk] [iha] LT',
  25675. sameElse: 'L'
  25676. },
  25677. relativeTime: {
  25678. future: 'iha %s',
  25679. past: '%s liuba',
  25680. s: 'segundu balun',
  25681. ss: 'segundu %d',
  25682. m: 'minutu ida',
  25683. mm: 'minutu %d',
  25684. h: 'oras ida',
  25685. hh: 'oras %d',
  25686. d: 'loron ida',
  25687. dd: 'loron %d',
  25688. M: 'fulan ida',
  25689. MM: 'fulan %d',
  25690. y: 'tinan ida',
  25691. yy: 'tinan %d'
  25692. },
  25693. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  25694. ordinal: function ordinal(number) {
  25695. var b = number % 10,
  25696. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  25697. return number + output;
  25698. },
  25699. week: {
  25700. dow: 1,
  25701. // Monday is the first day of the week.
  25702. doy: 4 // The week that contains Jan 4th is the first week of the year.
  25703. }
  25704. });
  25705. return tet;
  25706. });
  25707. /***/ }),
  25708. /* 156 */
  25709. /*!***************************************************************!*\
  25710. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tg.js ***!
  25711. \***************************************************************/
  25712. /*! no static exports found */
  25713. /***/ (function(module, exports, __webpack_require__) {
  25714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25715. //! moment.js locale configuration
  25716. //! locale : Tajik [tg]
  25717. //! author : Orif N. Jr. : https://github.com/orif-jr
  25718. ;
  25719. (function (global, factory) {
  25720. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25721. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25722. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25723. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25724. })(this, function (moment) {
  25725. 'use strict';
  25726. //! moment.js locale configuration
  25727. var suffixes = {
  25728. 0: '-ум',
  25729. 1: '-ум',
  25730. 2: '-юм',
  25731. 3: '-юм',
  25732. 4: '-ум',
  25733. 5: '-ум',
  25734. 6: '-ум',
  25735. 7: '-ум',
  25736. 8: '-ум',
  25737. 9: '-ум',
  25738. 10: '-ум',
  25739. 12: '-ум',
  25740. 13: '-ум',
  25741. 20: '-ум',
  25742. 30: '-юм',
  25743. 40: '-ум',
  25744. 50: '-ум',
  25745. 60: '-ум',
  25746. 70: '-ум',
  25747. 80: '-ум',
  25748. 90: '-ум',
  25749. 100: '-ум'
  25750. };
  25751. var tg = moment.defineLocale('tg', {
  25752. months: {
  25753. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),
  25754. standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')
  25755. },
  25756. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  25757. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
  25758. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  25759. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  25760. longDateFormat: {
  25761. LT: 'HH:mm',
  25762. LTS: 'HH:mm:ss',
  25763. L: 'DD.MM.YYYY',
  25764. LL: 'D MMMM YYYY',
  25765. LLL: 'D MMMM YYYY HH:mm',
  25766. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25767. },
  25768. calendar: {
  25769. sameDay: '[Имрӯз соати] LT',
  25770. nextDay: '[Фардо соати] LT',
  25771. lastDay: '[Дирӯз соати] LT',
  25772. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  25773. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  25774. sameElse: 'L'
  25775. },
  25776. relativeTime: {
  25777. future: 'баъди %s',
  25778. past: '%s пеш',
  25779. s: 'якчанд сония',
  25780. m: 'як дақиқа',
  25781. mm: '%d дақиқа',
  25782. h: 'як соат',
  25783. hh: '%d соат',
  25784. d: 'як рӯз',
  25785. dd: '%d рӯз',
  25786. M: 'як моҳ',
  25787. MM: '%d моҳ',
  25788. y: 'як сол',
  25789. yy: '%d сол'
  25790. },
  25791. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  25792. meridiemHour: function meridiemHour(hour, meridiem) {
  25793. if (hour === 12) {
  25794. hour = 0;
  25795. }
  25796. if (meridiem === 'шаб') {
  25797. return hour < 4 ? hour : hour + 12;
  25798. } else if (meridiem === 'субҳ') {
  25799. return hour;
  25800. } else if (meridiem === 'рӯз') {
  25801. return hour >= 11 ? hour : hour + 12;
  25802. } else if (meridiem === 'бегоҳ') {
  25803. return hour + 12;
  25804. }
  25805. },
  25806. meridiem: function meridiem(hour, minute, isLower) {
  25807. if (hour < 4) {
  25808. return 'шаб';
  25809. } else if (hour < 11) {
  25810. return 'субҳ';
  25811. } else if (hour < 16) {
  25812. return 'рӯз';
  25813. } else if (hour < 19) {
  25814. return 'бегоҳ';
  25815. } else {
  25816. return 'шаб';
  25817. }
  25818. },
  25819. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  25820. ordinal: function ordinal(number) {
  25821. var a = number % 10,
  25822. b = number >= 100 ? 100 : null;
  25823. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  25824. },
  25825. week: {
  25826. dow: 1,
  25827. // Monday is the first day of the week.
  25828. doy: 7 // The week that contains Jan 1th is the first week of the year.
  25829. }
  25830. });
  25831. return tg;
  25832. });
  25833. /***/ }),
  25834. /* 157 */
  25835. /*!***************************************************************!*\
  25836. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/th.js ***!
  25837. \***************************************************************/
  25838. /*! no static exports found */
  25839. /***/ (function(module, exports, __webpack_require__) {
  25840. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25841. //! moment.js locale configuration
  25842. //! locale : Thai [th]
  25843. //! author : Kridsada Thanabulpong : https://github.com/sirn
  25844. ;
  25845. (function (global, factory) {
  25846. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25847. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25848. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25849. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25850. })(this, function (moment) {
  25851. 'use strict';
  25852. //! moment.js locale configuration
  25853. var th = moment.defineLocale('th', {
  25854. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  25855. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  25856. monthsParseExact: true,
  25857. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  25858. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
  25859. // yes, three characters difference
  25860. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  25861. weekdaysParseExact: true,
  25862. longDateFormat: {
  25863. LT: 'H:mm',
  25864. LTS: 'H:mm:ss',
  25865. L: 'DD/MM/YYYY',
  25866. LL: 'D MMMM YYYY',
  25867. LLL: 'D MMMM YYYY เวลา H:mm',
  25868. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
  25869. },
  25870. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  25871. isPM: function isPM(input) {
  25872. return input === 'หลังเที่ยง';
  25873. },
  25874. meridiem: function meridiem(hour, minute, isLower) {
  25875. if (hour < 12) {
  25876. return 'ก่อนเที่ยง';
  25877. } else {
  25878. return 'หลังเที่ยง';
  25879. }
  25880. },
  25881. calendar: {
  25882. sameDay: '[วันนี้ เวลา] LT',
  25883. nextDay: '[พรุ่งนี้ เวลา] LT',
  25884. nextWeek: 'dddd[หน้า เวลา] LT',
  25885. lastDay: '[เมื่อวานนี้ เวลา] LT',
  25886. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  25887. sameElse: 'L'
  25888. },
  25889. relativeTime: {
  25890. future: 'อีก %s',
  25891. past: '%sที่แล้ว',
  25892. s: 'ไม่กี่วินาที',
  25893. ss: '%d วินาที',
  25894. m: '1 นาที',
  25895. mm: '%d นาที',
  25896. h: '1 ชั่วโมง',
  25897. hh: '%d ชั่วโมง',
  25898. d: '1 วัน',
  25899. dd: '%d วัน',
  25900. w: '1 สัปดาห์',
  25901. ww: '%d สัปดาห์',
  25902. M: '1 เดือน',
  25903. MM: '%d เดือน',
  25904. y: '1 ปี',
  25905. yy: '%d ปี'
  25906. }
  25907. });
  25908. return th;
  25909. });
  25910. /***/ }),
  25911. /* 158 */
  25912. /*!***************************************************************!*\
  25913. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tk.js ***!
  25914. \***************************************************************/
  25915. /*! no static exports found */
  25916. /***/ (function(module, exports, __webpack_require__) {
  25917. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  25918. //! moment.js locale configuration
  25919. //! locale : Turkmen [tk]
  25920. //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
  25921. ;
  25922. (function (global, factory) {
  25923. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25924. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25925. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  25926. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  25927. })(this, function (moment) {
  25928. 'use strict';
  25929. //! moment.js locale configuration
  25930. var suffixes = {
  25931. 1: "'inji",
  25932. 5: "'inji",
  25933. 8: "'inji",
  25934. 70: "'inji",
  25935. 80: "'inji",
  25936. 2: "'nji",
  25937. 7: "'nji",
  25938. 20: "'nji",
  25939. 50: "'nji",
  25940. 3: "'ünji",
  25941. 4: "'ünji",
  25942. 100: "'ünji",
  25943. 6: "'njy",
  25944. 9: "'unjy",
  25945. 10: "'unjy",
  25946. 30: "'unjy",
  25947. 60: "'ynjy",
  25948. 90: "'ynjy"
  25949. };
  25950. var tk = moment.defineLocale('tk', {
  25951. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),
  25952. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  25953. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),
  25954. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  25955. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  25956. longDateFormat: {
  25957. LT: 'HH:mm',
  25958. LTS: 'HH:mm:ss',
  25959. L: 'DD.MM.YYYY',
  25960. LL: 'D MMMM YYYY',
  25961. LLL: 'D MMMM YYYY HH:mm',
  25962. LLLL: 'dddd, D MMMM YYYY HH:mm'
  25963. },
  25964. calendar: {
  25965. sameDay: '[bugün sagat] LT',
  25966. nextDay: '[ertir sagat] LT',
  25967. nextWeek: '[indiki] dddd [sagat] LT',
  25968. lastDay: '[düýn] LT',
  25969. lastWeek: '[geçen] dddd [sagat] LT',
  25970. sameElse: 'L'
  25971. },
  25972. relativeTime: {
  25973. future: '%s soň',
  25974. past: '%s öň',
  25975. s: 'birnäçe sekunt',
  25976. m: 'bir minut',
  25977. mm: '%d minut',
  25978. h: 'bir sagat',
  25979. hh: '%d sagat',
  25980. d: 'bir gün',
  25981. dd: '%d gün',
  25982. M: 'bir aý',
  25983. MM: '%d aý',
  25984. y: 'bir ýyl',
  25985. yy: '%d ýyl'
  25986. },
  25987. ordinal: function ordinal(number, period) {
  25988. switch (period) {
  25989. case 'd':
  25990. case 'D':
  25991. case 'Do':
  25992. case 'DD':
  25993. return number;
  25994. default:
  25995. if (number === 0) {
  25996. // special case for zero
  25997. return number + "'unjy";
  25998. }
  25999. var a = number % 10,
  26000. b = number % 100 - a,
  26001. c = number >= 100 ? 100 : null;
  26002. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  26003. }
  26004. },
  26005. week: {
  26006. dow: 1,
  26007. // Monday is the first day of the week.
  26008. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26009. }
  26010. });
  26011. return tk;
  26012. });
  26013. /***/ }),
  26014. /* 159 */
  26015. /*!******************************************************************!*\
  26016. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tl-ph.js ***!
  26017. \******************************************************************/
  26018. /*! no static exports found */
  26019. /***/ (function(module, exports, __webpack_require__) {
  26020. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26021. //! moment.js locale configuration
  26022. //! locale : Tagalog (Philippines) [tl-ph]
  26023. //! author : Dan Hagman : https://github.com/hagmandan
  26024. ;
  26025. (function (global, factory) {
  26026. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26027. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26028. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26029. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26030. })(this, function (moment) {
  26031. 'use strict';
  26032. //! moment.js locale configuration
  26033. var tlPh = moment.defineLocale('tl-ph', {
  26034. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  26035. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  26036. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  26037. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  26038. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  26039. longDateFormat: {
  26040. LT: 'HH:mm',
  26041. LTS: 'HH:mm:ss',
  26042. L: 'MM/D/YYYY',
  26043. LL: 'MMMM D, YYYY',
  26044. LLL: 'MMMM D, YYYY HH:mm',
  26045. LLLL: 'dddd, MMMM DD, YYYY HH:mm'
  26046. },
  26047. calendar: {
  26048. sameDay: 'LT [ngayong araw]',
  26049. nextDay: '[Bukas ng] LT',
  26050. nextWeek: 'LT [sa susunod na] dddd',
  26051. lastDay: 'LT [kahapon]',
  26052. lastWeek: 'LT [noong nakaraang] dddd',
  26053. sameElse: 'L'
  26054. },
  26055. relativeTime: {
  26056. future: 'sa loob ng %s',
  26057. past: '%s ang nakalipas',
  26058. s: 'ilang segundo',
  26059. ss: '%d segundo',
  26060. m: 'isang minuto',
  26061. mm: '%d minuto',
  26062. h: 'isang oras',
  26063. hh: '%d oras',
  26064. d: 'isang araw',
  26065. dd: '%d araw',
  26066. M: 'isang buwan',
  26067. MM: '%d buwan',
  26068. y: 'isang taon',
  26069. yy: '%d taon'
  26070. },
  26071. dayOfMonthOrdinalParse: /\d{1,2}/,
  26072. ordinal: function ordinal(number) {
  26073. return number;
  26074. },
  26075. week: {
  26076. dow: 1,
  26077. // Monday is the first day of the week.
  26078. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26079. }
  26080. });
  26081. return tlPh;
  26082. });
  26083. /***/ }),
  26084. /* 160 */
  26085. /*!****************************************************************!*\
  26086. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tlh.js ***!
  26087. \****************************************************************/
  26088. /*! no static exports found */
  26089. /***/ (function(module, exports, __webpack_require__) {
  26090. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26091. //! moment.js locale configuration
  26092. //! locale : Klingon [tlh]
  26093. //! author : Dominika Kruk : https://github.com/amaranthrose
  26094. ;
  26095. (function (global, factory) {
  26096. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26097. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26098. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26099. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26100. })(this, function (moment) {
  26101. 'use strict';
  26102. //! moment.js locale configuration
  26103. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  26104. function translateFuture(output) {
  26105. var time = output;
  26106. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';
  26107. return time;
  26108. }
  26109. function translatePast(output) {
  26110. var time = output;
  26111. time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';
  26112. return time;
  26113. }
  26114. function translate(number, withoutSuffix, string, isFuture) {
  26115. var numberNoun = numberAsNoun(number);
  26116. switch (string) {
  26117. case 'ss':
  26118. return numberNoun + ' lup';
  26119. case 'mm':
  26120. return numberNoun + ' tup';
  26121. case 'hh':
  26122. return numberNoun + ' rep';
  26123. case 'dd':
  26124. return numberNoun + ' jaj';
  26125. case 'MM':
  26126. return numberNoun + ' jar';
  26127. case 'yy':
  26128. return numberNoun + ' DIS';
  26129. }
  26130. }
  26131. function numberAsNoun(number) {
  26132. var hundred = Math.floor(number % 1000 / 100),
  26133. ten = Math.floor(number % 100 / 10),
  26134. one = number % 10,
  26135. word = '';
  26136. if (hundred > 0) {
  26137. word += numbersNouns[hundred] + 'vatlh';
  26138. }
  26139. if (ten > 0) {
  26140. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  26141. }
  26142. if (one > 0) {
  26143. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  26144. }
  26145. return word === '' ? 'pagh' : word;
  26146. }
  26147. var tlh = moment.defineLocale('tlh', {
  26148. months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
  26149. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
  26150. monthsParseExact: true,
  26151. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26152. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26153. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  26154. longDateFormat: {
  26155. LT: 'HH:mm',
  26156. LTS: 'HH:mm:ss',
  26157. L: 'DD.MM.YYYY',
  26158. LL: 'D MMMM YYYY',
  26159. LLL: 'D MMMM YYYY HH:mm',
  26160. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26161. },
  26162. calendar: {
  26163. sameDay: '[DaHjaj] LT',
  26164. nextDay: '[wa’leS] LT',
  26165. nextWeek: 'LLL',
  26166. lastDay: '[wa’Hu’] LT',
  26167. lastWeek: 'LLL',
  26168. sameElse: 'L'
  26169. },
  26170. relativeTime: {
  26171. future: translateFuture,
  26172. past: translatePast,
  26173. s: 'puS lup',
  26174. ss: translate,
  26175. m: 'wa’ tup',
  26176. mm: translate,
  26177. h: 'wa’ rep',
  26178. hh: translate,
  26179. d: 'wa’ jaj',
  26180. dd: translate,
  26181. M: 'wa’ jar',
  26182. MM: translate,
  26183. y: 'wa’ DIS',
  26184. yy: translate
  26185. },
  26186. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26187. ordinal: '%d.',
  26188. week: {
  26189. dow: 1,
  26190. // Monday is the first day of the week.
  26191. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26192. }
  26193. });
  26194. return tlh;
  26195. });
  26196. /***/ }),
  26197. /* 161 */
  26198. /*!***************************************************************!*\
  26199. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tr.js ***!
  26200. \***************************************************************/
  26201. /*! no static exports found */
  26202. /***/ (function(module, exports, __webpack_require__) {
  26203. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26204. //! moment.js locale configuration
  26205. //! locale : Turkish [tr]
  26206. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  26207. //! Burak Yiğit Kaya: https://github.com/BYK
  26208. ;
  26209. (function (global, factory) {
  26210. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26211. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26212. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26213. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26214. })(this, function (moment) {
  26215. 'use strict';
  26216. //! moment.js locale configuration
  26217. var suffixes = {
  26218. 1: "'inci",
  26219. 5: "'inci",
  26220. 8: "'inci",
  26221. 70: "'inci",
  26222. 80: "'inci",
  26223. 2: "'nci",
  26224. 7: "'nci",
  26225. 20: "'nci",
  26226. 50: "'nci",
  26227. 3: "'üncü",
  26228. 4: "'üncü",
  26229. 100: "'üncü",
  26230. 6: "'ncı",
  26231. 9: "'uncu",
  26232. 10: "'uncu",
  26233. 30: "'uncu",
  26234. 60: "'ıncı",
  26235. 90: "'ıncı"
  26236. };
  26237. var tr = moment.defineLocale('tr', {
  26238. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  26239. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  26240. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  26241. weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
  26242. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  26243. meridiem: function meridiem(hours, minutes, isLower) {
  26244. if (hours < 12) {
  26245. return isLower ? 'öö' : 'ÖÖ';
  26246. } else {
  26247. return isLower ? 'ös' : 'ÖS';
  26248. }
  26249. },
  26250. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  26251. isPM: function isPM(input) {
  26252. return input === 'ös' || input === 'ÖS';
  26253. },
  26254. longDateFormat: {
  26255. LT: 'HH:mm',
  26256. LTS: 'HH:mm:ss',
  26257. L: 'DD.MM.YYYY',
  26258. LL: 'D MMMM YYYY',
  26259. LLL: 'D MMMM YYYY HH:mm',
  26260. LLLL: 'dddd, D MMMM YYYY HH:mm'
  26261. },
  26262. calendar: {
  26263. sameDay: '[bugün saat] LT',
  26264. nextDay: '[yarın saat] LT',
  26265. nextWeek: '[gelecek] dddd [saat] LT',
  26266. lastDay: '[dün] LT',
  26267. lastWeek: '[geçen] dddd [saat] LT',
  26268. sameElse: 'L'
  26269. },
  26270. relativeTime: {
  26271. future: '%s sonra',
  26272. past: '%s önce',
  26273. s: 'birkaç saniye',
  26274. ss: '%d saniye',
  26275. m: 'bir dakika',
  26276. mm: '%d dakika',
  26277. h: 'bir saat',
  26278. hh: '%d saat',
  26279. d: 'bir gün',
  26280. dd: '%d gün',
  26281. w: 'bir hafta',
  26282. ww: '%d hafta',
  26283. M: 'bir ay',
  26284. MM: '%d ay',
  26285. y: 'bir yıl',
  26286. yy: '%d yıl'
  26287. },
  26288. ordinal: function ordinal(number, period) {
  26289. switch (period) {
  26290. case 'd':
  26291. case 'D':
  26292. case 'Do':
  26293. case 'DD':
  26294. return number;
  26295. default:
  26296. if (number === 0) {
  26297. // special case for zero
  26298. return number + "'ıncı";
  26299. }
  26300. var a = number % 10,
  26301. b = number % 100 - a,
  26302. c = number >= 100 ? 100 : null;
  26303. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  26304. }
  26305. },
  26306. week: {
  26307. dow: 1,
  26308. // Monday is the first day of the week.
  26309. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26310. }
  26311. });
  26312. return tr;
  26313. });
  26314. /***/ }),
  26315. /* 162 */
  26316. /*!****************************************************************!*\
  26317. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzl.js ***!
  26318. \****************************************************************/
  26319. /*! no static exports found */
  26320. /***/ (function(module, exports, __webpack_require__) {
  26321. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26322. //! moment.js locale configuration
  26323. //! locale : Talossan [tzl]
  26324. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  26325. //! author : Iustì Canun
  26326. ;
  26327. (function (global, factory) {
  26328. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26329. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26330. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26331. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26332. })(this, function (moment) {
  26333. 'use strict';
  26334. //! moment.js locale configuration
  26335. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  26336. // This is currently too difficult (maybe even impossible) to add.
  26337. var tzl = moment.defineLocale('tzl', {
  26338. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  26339. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  26340. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  26341. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  26342. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  26343. longDateFormat: {
  26344. LT: 'HH.mm',
  26345. LTS: 'HH.mm.ss',
  26346. L: 'DD.MM.YYYY',
  26347. LL: 'D. MMMM [dallas] YYYY',
  26348. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  26349. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  26350. },
  26351. meridiemParse: /d\'o|d\'a/i,
  26352. isPM: function isPM(input) {
  26353. return "d'o" === input.toLowerCase();
  26354. },
  26355. meridiem: function meridiem(hours, minutes, isLower) {
  26356. if (hours > 11) {
  26357. return isLower ? "d'o" : "D'O";
  26358. } else {
  26359. return isLower ? "d'a" : "D'A";
  26360. }
  26361. },
  26362. calendar: {
  26363. sameDay: '[oxhi à] LT',
  26364. nextDay: '[demà à] LT',
  26365. nextWeek: 'dddd [à] LT',
  26366. lastDay: '[ieiri à] LT',
  26367. lastWeek: '[sür el] dddd [lasteu à] LT',
  26368. sameElse: 'L'
  26369. },
  26370. relativeTime: {
  26371. future: 'osprei %s',
  26372. past: 'ja%s',
  26373. s: processRelativeTime,
  26374. ss: processRelativeTime,
  26375. m: processRelativeTime,
  26376. mm: processRelativeTime,
  26377. h: processRelativeTime,
  26378. hh: processRelativeTime,
  26379. d: processRelativeTime,
  26380. dd: processRelativeTime,
  26381. M: processRelativeTime,
  26382. MM: processRelativeTime,
  26383. y: processRelativeTime,
  26384. yy: processRelativeTime
  26385. },
  26386. dayOfMonthOrdinalParse: /\d{1,2}\./,
  26387. ordinal: '%d.',
  26388. week: {
  26389. dow: 1,
  26390. // Monday is the first day of the week.
  26391. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26392. }
  26393. });
  26394. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  26395. var format = {
  26396. s: ['viensas secunds', "'iensas secunds"],
  26397. ss: [number + ' secunds', '' + number + ' secunds'],
  26398. m: ["'n míut", "'iens míut"],
  26399. mm: [number + ' míuts', '' + number + ' míuts'],
  26400. h: ["'n þora", "'iensa þora"],
  26401. hh: [number + ' þoras', '' + number + ' þoras'],
  26402. d: ["'n ziua", "'iensa ziua"],
  26403. dd: [number + ' ziuas', '' + number + ' ziuas'],
  26404. M: ["'n mes", "'iens mes"],
  26405. MM: [number + ' mesen', '' + number + ' mesen'],
  26406. y: ["'n ar", "'iens ar"],
  26407. yy: [number + ' ars', '' + number + ' ars']
  26408. };
  26409. return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];
  26410. }
  26411. return tzl;
  26412. });
  26413. /***/ }),
  26414. /* 163 */
  26415. /*!****************************************************************!*\
  26416. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzm.js ***!
  26417. \****************************************************************/
  26418. /*! no static exports found */
  26419. /***/ (function(module, exports, __webpack_require__) {
  26420. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26421. //! moment.js locale configuration
  26422. //! locale : Central Atlas Tamazight [tzm]
  26423. //! author : Abdel Said : https://github.com/abdelsaid
  26424. ;
  26425. (function (global, factory) {
  26426. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26427. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26428. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26429. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26430. })(this, function (moment) {
  26431. 'use strict';
  26432. //! moment.js locale configuration
  26433. var tzm = moment.defineLocale('tzm', {
  26434. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  26435. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  26436. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26437. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26438. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  26439. longDateFormat: {
  26440. LT: 'HH:mm',
  26441. LTS: 'HH:mm:ss',
  26442. L: 'DD/MM/YYYY',
  26443. LL: 'D MMMM YYYY',
  26444. LLL: 'D MMMM YYYY HH:mm',
  26445. LLLL: 'dddd D MMMM YYYY HH:mm'
  26446. },
  26447. calendar: {
  26448. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  26449. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  26450. nextWeek: 'dddd [ⴴ] LT',
  26451. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  26452. lastWeek: 'dddd [ⴴ] LT',
  26453. sameElse: 'L'
  26454. },
  26455. relativeTime: {
  26456. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  26457. past: 'ⵢⴰⵏ %s',
  26458. s: 'ⵉⵎⵉⴽ',
  26459. ss: '%d ⵉⵎⵉⴽ',
  26460. m: 'ⵎⵉⵏⵓⴺ',
  26461. mm: '%d ⵎⵉⵏⵓⴺ',
  26462. h: 'ⵙⴰⵄⴰ',
  26463. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  26464. d: 'ⴰⵙⵙ',
  26465. dd: '%d oⵙⵙⴰⵏ',
  26466. M: 'ⴰⵢoⵓⵔ',
  26467. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  26468. y: 'ⴰⵙⴳⴰⵙ',
  26469. yy: '%d ⵉⵙⴳⴰⵙⵏ'
  26470. },
  26471. week: {
  26472. dow: 6,
  26473. // Saturday is the first day of the week.
  26474. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26475. }
  26476. });
  26477. return tzm;
  26478. });
  26479. /***/ }),
  26480. /* 164 */
  26481. /*!*********************************************************************!*\
  26482. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/tzm-latn.js ***!
  26483. \*********************************************************************/
  26484. /*! no static exports found */
  26485. /***/ (function(module, exports, __webpack_require__) {
  26486. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26487. //! moment.js locale configuration
  26488. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  26489. //! author : Abdel Said : https://github.com/abdelsaid
  26490. ;
  26491. (function (global, factory) {
  26492. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26493. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26494. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26495. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26496. })(this, function (moment) {
  26497. 'use strict';
  26498. //! moment.js locale configuration
  26499. var tzmLatn = moment.defineLocale('tzm-latn', {
  26500. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  26501. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  26502. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26503. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26504. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  26505. longDateFormat: {
  26506. LT: 'HH:mm',
  26507. LTS: 'HH:mm:ss',
  26508. L: 'DD/MM/YYYY',
  26509. LL: 'D MMMM YYYY',
  26510. LLL: 'D MMMM YYYY HH:mm',
  26511. LLLL: 'dddd D MMMM YYYY HH:mm'
  26512. },
  26513. calendar: {
  26514. sameDay: '[asdkh g] LT',
  26515. nextDay: '[aska g] LT',
  26516. nextWeek: 'dddd [g] LT',
  26517. lastDay: '[assant g] LT',
  26518. lastWeek: 'dddd [g] LT',
  26519. sameElse: 'L'
  26520. },
  26521. relativeTime: {
  26522. future: 'dadkh s yan %s',
  26523. past: 'yan %s',
  26524. s: 'imik',
  26525. ss: '%d imik',
  26526. m: 'minuḍ',
  26527. mm: '%d minuḍ',
  26528. h: 'saɛa',
  26529. hh: '%d tassaɛin',
  26530. d: 'ass',
  26531. dd: '%d ossan',
  26532. M: 'ayowr',
  26533. MM: '%d iyyirn',
  26534. y: 'asgas',
  26535. yy: '%d isgasn'
  26536. },
  26537. week: {
  26538. dow: 6,
  26539. // Saturday is the first day of the week.
  26540. doy: 12 // The week that contains Jan 12th is the first week of the year.
  26541. }
  26542. });
  26543. return tzmLatn;
  26544. });
  26545. /***/ }),
  26546. /* 165 */
  26547. /*!******************************************************************!*\
  26548. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ug-cn.js ***!
  26549. \******************************************************************/
  26550. /*! no static exports found */
  26551. /***/ (function(module, exports, __webpack_require__) {
  26552. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26553. //! moment.js locale configuration
  26554. //! locale : Uyghur (China) [ug-cn]
  26555. //! author: boyaq : https://github.com/boyaq
  26556. ;
  26557. (function (global, factory) {
  26558. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26559. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26560. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26561. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26562. })(this, function (moment) {
  26563. 'use strict';
  26564. //! moment.js locale configuration
  26565. var ugCn = moment.defineLocale('ug-cn', {
  26566. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  26567. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
  26568. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),
  26569. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26570. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  26571. longDateFormat: {
  26572. LT: 'HH:mm',
  26573. LTS: 'HH:mm:ss',
  26574. L: 'YYYY-MM-DD',
  26575. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  26576. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  26577. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
  26578. },
  26579. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  26580. meridiemHour: function meridiemHour(hour, meridiem) {
  26581. if (hour === 12) {
  26582. hour = 0;
  26583. }
  26584. if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {
  26585. return hour;
  26586. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  26587. return hour + 12;
  26588. } else {
  26589. return hour >= 11 ? hour : hour + 12;
  26590. }
  26591. },
  26592. meridiem: function meridiem(hour, minute, isLower) {
  26593. var hm = hour * 100 + minute;
  26594. if (hm < 600) {
  26595. return 'يېرىم كېچە';
  26596. } else if (hm < 900) {
  26597. return 'سەھەر';
  26598. } else if (hm < 1130) {
  26599. return 'چۈشتىن بۇرۇن';
  26600. } else if (hm < 1230) {
  26601. return 'چۈش';
  26602. } else if (hm < 1800) {
  26603. return 'چۈشتىن كېيىن';
  26604. } else {
  26605. return 'كەچ';
  26606. }
  26607. },
  26608. calendar: {
  26609. sameDay: '[بۈگۈن سائەت] LT',
  26610. nextDay: '[ئەتە سائەت] LT',
  26611. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  26612. lastDay: '[تۆنۈگۈن] LT',
  26613. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  26614. sameElse: 'L'
  26615. },
  26616. relativeTime: {
  26617. future: '%s كېيىن',
  26618. past: '%s بۇرۇن',
  26619. s: 'نەچچە سېكونت',
  26620. ss: '%d سېكونت',
  26621. m: 'بىر مىنۇت',
  26622. mm: '%d مىنۇت',
  26623. h: 'بىر سائەت',
  26624. hh: '%d سائەت',
  26625. d: 'بىر كۈن',
  26626. dd: '%d كۈن',
  26627. M: 'بىر ئاي',
  26628. MM: '%d ئاي',
  26629. y: 'بىر يىل',
  26630. yy: '%d يىل'
  26631. },
  26632. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  26633. ordinal: function ordinal(number, period) {
  26634. switch (period) {
  26635. case 'd':
  26636. case 'D':
  26637. case 'DDD':
  26638. return number + '-كۈنى';
  26639. case 'w':
  26640. case 'W':
  26641. return number + '-ھەپتە';
  26642. default:
  26643. return number;
  26644. }
  26645. },
  26646. preparse: function preparse(string) {
  26647. return string.replace(/،/g, ',');
  26648. },
  26649. postformat: function postformat(string) {
  26650. return string.replace(/,/g, '،');
  26651. },
  26652. week: {
  26653. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  26654. dow: 1,
  26655. // Monday is the first day of the week.
  26656. doy: 7 // The week that contains Jan 1st is the first week of the year.
  26657. }
  26658. });
  26659. return ugCn;
  26660. });
  26661. /***/ }),
  26662. /* 166 */
  26663. /*!***************************************************************!*\
  26664. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uk.js ***!
  26665. \***************************************************************/
  26666. /*! no static exports found */
  26667. /***/ (function(module, exports, __webpack_require__) {
  26668. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26669. //! moment.js locale configuration
  26670. //! locale : Ukrainian [uk]
  26671. //! author : zemlanin : https://github.com/zemlanin
  26672. //! Author : Menelion Elensúle : https://github.com/Oire
  26673. ;
  26674. (function (global, factory) {
  26675. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26676. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26677. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26678. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26679. })(this, function (moment) {
  26680. 'use strict';
  26681. //! moment.js locale configuration
  26682. function plural(word, num) {
  26683. var forms = word.split('_');
  26684. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
  26685. }
  26686. function relativeTimeWithPlural(number, withoutSuffix, key) {
  26687. var format = {
  26688. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  26689. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  26690. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  26691. dd: 'день_дні_днів',
  26692. MM: 'місяць_місяці_місяців',
  26693. yy: 'рік_роки_років'
  26694. };
  26695. if (key === 'm') {
  26696. return withoutSuffix ? 'хвилина' : 'хвилину';
  26697. } else if (key === 'h') {
  26698. return withoutSuffix ? 'година' : 'годину';
  26699. } else {
  26700. return number + ' ' + plural(format[key], +number);
  26701. }
  26702. }
  26703. function weekdaysCaseReplace(m, format) {
  26704. var weekdays = {
  26705. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  26706. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  26707. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  26708. },
  26709. nounCase;
  26710. if (m === true) {
  26711. return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
  26712. }
  26713. if (!m) {
  26714. return weekdays['nominative'];
  26715. }
  26716. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ? 'accusative' : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative';
  26717. return weekdays[nounCase][m.day()];
  26718. }
  26719. function processHoursFunction(str) {
  26720. return function () {
  26721. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  26722. };
  26723. }
  26724. var uk = moment.defineLocale('uk', {
  26725. months: {
  26726. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  26727. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  26728. },
  26729. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  26730. weekdays: weekdaysCaseReplace,
  26731. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26732. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  26733. longDateFormat: {
  26734. LT: 'HH:mm',
  26735. LTS: 'HH:mm:ss',
  26736. L: 'DD.MM.YYYY',
  26737. LL: 'D MMMM YYYY р.',
  26738. LLL: 'D MMMM YYYY р., HH:mm',
  26739. LLLL: 'dddd, D MMMM YYYY р., HH:mm'
  26740. },
  26741. calendar: {
  26742. sameDay: processHoursFunction('[Сьогодні '),
  26743. nextDay: processHoursFunction('[Завтра '),
  26744. lastDay: processHoursFunction('[Вчора '),
  26745. nextWeek: processHoursFunction('[У] dddd ['),
  26746. lastWeek: function lastWeek() {
  26747. switch (this.day()) {
  26748. case 0:
  26749. case 3:
  26750. case 5:
  26751. case 6:
  26752. return processHoursFunction('[Минулої] dddd [').call(this);
  26753. case 1:
  26754. case 2:
  26755. case 4:
  26756. return processHoursFunction('[Минулого] dddd [').call(this);
  26757. }
  26758. },
  26759. sameElse: 'L'
  26760. },
  26761. relativeTime: {
  26762. future: 'за %s',
  26763. past: '%s тому',
  26764. s: 'декілька секунд',
  26765. ss: relativeTimeWithPlural,
  26766. m: relativeTimeWithPlural,
  26767. mm: relativeTimeWithPlural,
  26768. h: 'годину',
  26769. hh: relativeTimeWithPlural,
  26770. d: 'день',
  26771. dd: relativeTimeWithPlural,
  26772. M: 'місяць',
  26773. MM: relativeTimeWithPlural,
  26774. y: 'рік',
  26775. yy: relativeTimeWithPlural
  26776. },
  26777. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  26778. meridiemParse: /ночі|ранку|дня|вечора/,
  26779. isPM: function isPM(input) {
  26780. return /^(дня|вечора)$/.test(input);
  26781. },
  26782. meridiem: function meridiem(hour, minute, isLower) {
  26783. if (hour < 4) {
  26784. return 'ночі';
  26785. } else if (hour < 12) {
  26786. return 'ранку';
  26787. } else if (hour < 17) {
  26788. return 'дня';
  26789. } else {
  26790. return 'вечора';
  26791. }
  26792. },
  26793. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  26794. ordinal: function ordinal(number, period) {
  26795. switch (period) {
  26796. case 'M':
  26797. case 'd':
  26798. case 'DDD':
  26799. case 'w':
  26800. case 'W':
  26801. return number + '-й';
  26802. case 'D':
  26803. return number + '-го';
  26804. default:
  26805. return number;
  26806. }
  26807. },
  26808. week: {
  26809. dow: 1,
  26810. // Monday is the first day of the week.
  26811. doy: 7 // The week that contains Jan 7th is the first week of the year.
  26812. }
  26813. });
  26814. return uk;
  26815. });
  26816. /***/ }),
  26817. /* 167 */
  26818. /*!***************************************************************!*\
  26819. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/ur.js ***!
  26820. \***************************************************************/
  26821. /*! no static exports found */
  26822. /***/ (function(module, exports, __webpack_require__) {
  26823. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26824. //! moment.js locale configuration
  26825. //! locale : Urdu [ur]
  26826. //! author : Sawood Alam : https://github.com/ibnesayeed
  26827. //! author : Zack : https://github.com/ZackVision
  26828. ;
  26829. (function (global, factory) {
  26830. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26831. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26832. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26833. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26834. })(this, function (moment) {
  26835. 'use strict';
  26836. //! moment.js locale configuration
  26837. var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],
  26838. days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  26839. var ur = moment.defineLocale('ur', {
  26840. months: months,
  26841. monthsShort: months,
  26842. weekdays: days,
  26843. weekdaysShort: days,
  26844. weekdaysMin: days,
  26845. longDateFormat: {
  26846. LT: 'HH:mm',
  26847. LTS: 'HH:mm:ss',
  26848. L: 'DD/MM/YYYY',
  26849. LL: 'D MMMM YYYY',
  26850. LLL: 'D MMMM YYYY HH:mm',
  26851. LLLL: 'dddd، D MMMM YYYY HH:mm'
  26852. },
  26853. meridiemParse: /صبح|شام/,
  26854. isPM: function isPM(input) {
  26855. return 'شام' === input;
  26856. },
  26857. meridiem: function meridiem(hour, minute, isLower) {
  26858. if (hour < 12) {
  26859. return 'صبح';
  26860. }
  26861. return 'شام';
  26862. },
  26863. calendar: {
  26864. sameDay: '[آج بوقت] LT',
  26865. nextDay: '[کل بوقت] LT',
  26866. nextWeek: 'dddd [بوقت] LT',
  26867. lastDay: '[گذشتہ روز بوقت] LT',
  26868. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  26869. sameElse: 'L'
  26870. },
  26871. relativeTime: {
  26872. future: '%s بعد',
  26873. past: '%s قبل',
  26874. s: 'چند سیکنڈ',
  26875. ss: '%d سیکنڈ',
  26876. m: 'ایک منٹ',
  26877. mm: '%d منٹ',
  26878. h: 'ایک گھنٹہ',
  26879. hh: '%d گھنٹے',
  26880. d: 'ایک دن',
  26881. dd: '%d دن',
  26882. M: 'ایک ماہ',
  26883. MM: '%d ماہ',
  26884. y: 'ایک سال',
  26885. yy: '%d سال'
  26886. },
  26887. preparse: function preparse(string) {
  26888. return string.replace(/،/g, ',');
  26889. },
  26890. postformat: function postformat(string) {
  26891. return string.replace(/,/g, '،');
  26892. },
  26893. week: {
  26894. dow: 1,
  26895. // Monday is the first day of the week.
  26896. doy: 4 // The week that contains Jan 4th is the first week of the year.
  26897. }
  26898. });
  26899. return ur;
  26900. });
  26901. /***/ }),
  26902. /* 168 */
  26903. /*!***************************************************************!*\
  26904. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uz.js ***!
  26905. \***************************************************************/
  26906. /*! no static exports found */
  26907. /***/ (function(module, exports, __webpack_require__) {
  26908. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26909. //! moment.js locale configuration
  26910. //! locale : Uzbek [uz]
  26911. //! author : Sardor Muminov : https://github.com/muminoff
  26912. ;
  26913. (function (global, factory) {
  26914. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26915. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26916. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26917. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26918. })(this, function (moment) {
  26919. 'use strict';
  26920. //! moment.js locale configuration
  26921. var uz = moment.defineLocale('uz', {
  26922. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  26923. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  26924. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  26925. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  26926. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  26927. longDateFormat: {
  26928. LT: 'HH:mm',
  26929. LTS: 'HH:mm:ss',
  26930. L: 'DD/MM/YYYY',
  26931. LL: 'D MMMM YYYY',
  26932. LLL: 'D MMMM YYYY HH:mm',
  26933. LLLL: 'D MMMM YYYY, dddd HH:mm'
  26934. },
  26935. calendar: {
  26936. sameDay: '[Бугун соат] LT [да]',
  26937. nextDay: '[Эртага] LT [да]',
  26938. nextWeek: 'dddd [куни соат] LT [да]',
  26939. lastDay: '[Кеча соат] LT [да]',
  26940. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  26941. sameElse: 'L'
  26942. },
  26943. relativeTime: {
  26944. future: 'Якин %s ичида',
  26945. past: 'Бир неча %s олдин',
  26946. s: 'фурсат',
  26947. ss: '%d фурсат',
  26948. m: 'бир дакика',
  26949. mm: '%d дакика',
  26950. h: 'бир соат',
  26951. hh: '%d соат',
  26952. d: 'бир кун',
  26953. dd: '%d кун',
  26954. M: 'бир ой',
  26955. MM: '%d ой',
  26956. y: 'бир йил',
  26957. yy: '%d йил'
  26958. },
  26959. week: {
  26960. dow: 1,
  26961. // Monday is the first day of the week.
  26962. doy: 7 // The week that contains Jan 4th is the first week of the year.
  26963. }
  26964. });
  26965. return uz;
  26966. });
  26967. /***/ }),
  26968. /* 169 */
  26969. /*!********************************************************************!*\
  26970. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/uz-latn.js ***!
  26971. \********************************************************************/
  26972. /*! no static exports found */
  26973. /***/ (function(module, exports, __webpack_require__) {
  26974. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26975. //! moment.js locale configuration
  26976. //! locale : Uzbek Latin [uz-latn]
  26977. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  26978. ;
  26979. (function (global, factory) {
  26980. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  26981. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26982. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26983. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26984. })(this, function (moment) {
  26985. 'use strict';
  26986. //! moment.js locale configuration
  26987. var uzLatn = moment.defineLocale('uz-latn', {
  26988. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  26989. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  26990. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  26991. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  26992. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  26993. longDateFormat: {
  26994. LT: 'HH:mm',
  26995. LTS: 'HH:mm:ss',
  26996. L: 'DD/MM/YYYY',
  26997. LL: 'D MMMM YYYY',
  26998. LLL: 'D MMMM YYYY HH:mm',
  26999. LLLL: 'D MMMM YYYY, dddd HH:mm'
  27000. },
  27001. calendar: {
  27002. sameDay: '[Bugun soat] LT [da]',
  27003. nextDay: '[Ertaga] LT [da]',
  27004. nextWeek: 'dddd [kuni soat] LT [da]',
  27005. lastDay: '[Kecha soat] LT [da]',
  27006. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  27007. sameElse: 'L'
  27008. },
  27009. relativeTime: {
  27010. future: 'Yaqin %s ichida',
  27011. past: 'Bir necha %s oldin',
  27012. s: 'soniya',
  27013. ss: '%d soniya',
  27014. m: 'bir daqiqa',
  27015. mm: '%d daqiqa',
  27016. h: 'bir soat',
  27017. hh: '%d soat',
  27018. d: 'bir kun',
  27019. dd: '%d kun',
  27020. M: 'bir oy',
  27021. MM: '%d oy',
  27022. y: 'bir yil',
  27023. yy: '%d yil'
  27024. },
  27025. week: {
  27026. dow: 1,
  27027. // Monday is the first day of the week.
  27028. doy: 7 // The week that contains Jan 7th is the first week of the year.
  27029. }
  27030. });
  27031. return uzLatn;
  27032. });
  27033. /***/ }),
  27034. /* 170 */
  27035. /*!***************************************************************!*\
  27036. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/vi.js ***!
  27037. \***************************************************************/
  27038. /*! no static exports found */
  27039. /***/ (function(module, exports, __webpack_require__) {
  27040. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27041. //! moment.js locale configuration
  27042. //! locale : Vietnamese [vi]
  27043. //! author : Bang Nguyen : https://github.com/bangnk
  27044. //! author : Chien Kira : https://github.com/chienkira
  27045. ;
  27046. (function (global, factory) {
  27047. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27048. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27049. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27050. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27051. })(this, function (moment) {
  27052. 'use strict';
  27053. //! moment.js locale configuration
  27054. var vi = moment.defineLocale('vi', {
  27055. months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  27056. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),
  27057. monthsParseExact: true,
  27058. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  27059. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27060. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  27061. weekdaysParseExact: true,
  27062. meridiemParse: /sa|ch/i,
  27063. isPM: function isPM(input) {
  27064. return /^ch$/i.test(input);
  27065. },
  27066. meridiem: function meridiem(hours, minutes, isLower) {
  27067. if (hours < 12) {
  27068. return isLower ? 'sa' : 'SA';
  27069. } else {
  27070. return isLower ? 'ch' : 'CH';
  27071. }
  27072. },
  27073. longDateFormat: {
  27074. LT: 'HH:mm',
  27075. LTS: 'HH:mm:ss',
  27076. L: 'DD/MM/YYYY',
  27077. LL: 'D MMMM [năm] YYYY',
  27078. LLL: 'D MMMM [năm] YYYY HH:mm',
  27079. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  27080. l: 'DD/M/YYYY',
  27081. ll: 'D MMM YYYY',
  27082. lll: 'D MMM YYYY HH:mm',
  27083. llll: 'ddd, D MMM YYYY HH:mm'
  27084. },
  27085. calendar: {
  27086. sameDay: '[Hôm nay lúc] LT',
  27087. nextDay: '[Ngày mai lúc] LT',
  27088. nextWeek: 'dddd [tuần tới lúc] LT',
  27089. lastDay: '[Hôm qua lúc] LT',
  27090. lastWeek: 'dddd [tuần trước lúc] LT',
  27091. sameElse: 'L'
  27092. },
  27093. relativeTime: {
  27094. future: '%s tới',
  27095. past: '%s trước',
  27096. s: 'vài giây',
  27097. ss: '%d giây',
  27098. m: 'một phút',
  27099. mm: '%d phút',
  27100. h: 'một giờ',
  27101. hh: '%d giờ',
  27102. d: 'một ngày',
  27103. dd: '%d ngày',
  27104. w: 'một tuần',
  27105. ww: '%d tuần',
  27106. M: 'một tháng',
  27107. MM: '%d tháng',
  27108. y: 'một năm',
  27109. yy: '%d năm'
  27110. },
  27111. dayOfMonthOrdinalParse: /\d{1,2}/,
  27112. ordinal: function ordinal(number) {
  27113. return number;
  27114. },
  27115. week: {
  27116. dow: 1,
  27117. // Monday is the first day of the week.
  27118. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27119. }
  27120. });
  27121. return vi;
  27122. });
  27123. /***/ }),
  27124. /* 171 */
  27125. /*!*********************************************************************!*\
  27126. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/x-pseudo.js ***!
  27127. \*********************************************************************/
  27128. /*! no static exports found */
  27129. /***/ (function(module, exports, __webpack_require__) {
  27130. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27131. //! moment.js locale configuration
  27132. //! locale : Pseudo [x-pseudo]
  27133. //! author : Andrew Hood : https://github.com/andrewhood125
  27134. ;
  27135. (function (global, factory) {
  27136. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27137. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27138. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27139. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27140. })(this, function (moment) {
  27141. 'use strict';
  27142. //! moment.js locale configuration
  27143. var xPseudo = moment.defineLocale('x-pseudo', {
  27144. months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
  27145. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  27146. monthsParseExact: true,
  27147. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  27148. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  27149. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  27150. weekdaysParseExact: true,
  27151. longDateFormat: {
  27152. LT: 'HH:mm',
  27153. L: 'DD/MM/YYYY',
  27154. LL: 'D MMMM YYYY',
  27155. LLL: 'D MMMM YYYY HH:mm',
  27156. LLLL: 'dddd, D MMMM YYYY HH:mm'
  27157. },
  27158. calendar: {
  27159. sameDay: '[T~ódá~ý át] LT',
  27160. nextDay: '[T~ómó~rró~w át] LT',
  27161. nextWeek: 'dddd [át] LT',
  27162. lastDay: '[Ý~ést~érdá~ý át] LT',
  27163. lastWeek: '[L~ást] dddd [át] LT',
  27164. sameElse: 'L'
  27165. },
  27166. relativeTime: {
  27167. future: 'í~ñ %s',
  27168. past: '%s á~gó',
  27169. s: 'á ~féw ~sécó~ñds',
  27170. ss: '%d s~écóñ~ds',
  27171. m: 'á ~míñ~úté',
  27172. mm: '%d m~íñú~tés',
  27173. h: 'á~ñ hó~úr',
  27174. hh: '%d h~óúrs',
  27175. d: 'á ~dáý',
  27176. dd: '%d d~áýs',
  27177. M: 'á ~móñ~th',
  27178. MM: '%d m~óñt~hs',
  27179. y: 'á ~ýéár',
  27180. yy: '%d ý~éárs'
  27181. },
  27182. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  27183. ordinal: function ordinal(number) {
  27184. var b = number % 10,
  27185. output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
  27186. return number + output;
  27187. },
  27188. week: {
  27189. dow: 1,
  27190. // Monday is the first day of the week.
  27191. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27192. }
  27193. });
  27194. return xPseudo;
  27195. });
  27196. /***/ }),
  27197. /* 172 */
  27198. /*!***************************************************************!*\
  27199. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/yo.js ***!
  27200. \***************************************************************/
  27201. /*! no static exports found */
  27202. /***/ (function(module, exports, __webpack_require__) {
  27203. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27204. //! moment.js locale configuration
  27205. //! locale : Yoruba Nigeria [yo]
  27206. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  27207. ;
  27208. (function (global, factory) {
  27209. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27210. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27211. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27212. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27213. })(this, function (moment) {
  27214. 'use strict';
  27215. //! moment.js locale configuration
  27216. var yo = moment.defineLocale('yo', {
  27217. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  27218. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  27219. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  27220. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  27221. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  27222. longDateFormat: {
  27223. LT: 'h:mm A',
  27224. LTS: 'h:mm:ss A',
  27225. L: 'DD/MM/YYYY',
  27226. LL: 'D MMMM YYYY',
  27227. LLL: 'D MMMM YYYY h:mm A',
  27228. LLLL: 'dddd, D MMMM YYYY h:mm A'
  27229. },
  27230. calendar: {
  27231. sameDay: '[Ònì ni] LT',
  27232. nextDay: '[Ọ̀la ni] LT',
  27233. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  27234. lastDay: '[Àna ni] LT',
  27235. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  27236. sameElse: 'L'
  27237. },
  27238. relativeTime: {
  27239. future: 'ní %s',
  27240. past: '%s kọjá',
  27241. s: 'ìsẹjú aayá die',
  27242. ss: 'aayá %d',
  27243. m: 'ìsẹjú kan',
  27244. mm: 'ìsẹjú %d',
  27245. h: 'wákati kan',
  27246. hh: 'wákati %d',
  27247. d: 'ọjọ́ kan',
  27248. dd: 'ọjọ́ %d',
  27249. M: 'osù kan',
  27250. MM: 'osù %d',
  27251. y: 'ọdún kan',
  27252. yy: 'ọdún %d'
  27253. },
  27254. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  27255. ordinal: 'ọjọ́ %d',
  27256. week: {
  27257. dow: 1,
  27258. // Monday is the first day of the week.
  27259. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27260. }
  27261. });
  27262. return yo;
  27263. });
  27264. /***/ }),
  27265. /* 173 */
  27266. /*!******************************************************************!*\
  27267. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-cn.js ***!
  27268. \******************************************************************/
  27269. /*! no static exports found */
  27270. /***/ (function(module, exports, __webpack_require__) {
  27271. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27272. //! moment.js locale configuration
  27273. //! locale : Chinese (China) [zh-cn]
  27274. //! author : suupic : https://github.com/suupic
  27275. //! author : Zeno Zeng : https://github.com/zenozeng
  27276. //! author : uu109 : https://github.com/uu109
  27277. ;
  27278. (function (global, factory) {
  27279. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27280. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27281. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27282. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27283. })(this, function (moment) {
  27284. 'use strict';
  27285. //! moment.js locale configuration
  27286. var zhCn = moment.defineLocale('zh-cn', {
  27287. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27288. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27289. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27290. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  27291. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27292. longDateFormat: {
  27293. LT: 'HH:mm',
  27294. LTS: 'HH:mm:ss',
  27295. L: 'YYYY/MM/DD',
  27296. LL: 'YYYY年M月D日',
  27297. LLL: 'YYYY年M月D日Ah点mm分',
  27298. LLLL: 'YYYY年M月D日ddddAh点mm分',
  27299. l: 'YYYY/M/D',
  27300. ll: 'YYYY年M月D日',
  27301. lll: 'YYYY年M月D日 HH:mm',
  27302. llll: 'YYYY年M月D日dddd HH:mm'
  27303. },
  27304. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27305. meridiemHour: function meridiemHour(hour, meridiem) {
  27306. if (hour === 12) {
  27307. hour = 0;
  27308. }
  27309. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27310. return hour;
  27311. } else if (meridiem === '下午' || meridiem === '晚上') {
  27312. return hour + 12;
  27313. } else {
  27314. // '中午'
  27315. return hour >= 11 ? hour : hour + 12;
  27316. }
  27317. },
  27318. meridiem: function meridiem(hour, minute, isLower) {
  27319. var hm = hour * 100 + minute;
  27320. if (hm < 600) {
  27321. return '凌晨';
  27322. } else if (hm < 900) {
  27323. return '早上';
  27324. } else if (hm < 1130) {
  27325. return '上午';
  27326. } else if (hm < 1230) {
  27327. return '中午';
  27328. } else if (hm < 1800) {
  27329. return '下午';
  27330. } else {
  27331. return '晚上';
  27332. }
  27333. },
  27334. calendar: {
  27335. sameDay: '[今天]LT',
  27336. nextDay: '[明天]LT',
  27337. nextWeek: function nextWeek(now) {
  27338. if (now.week() !== this.week()) {
  27339. return '[下]dddLT';
  27340. } else {
  27341. return '[本]dddLT';
  27342. }
  27343. },
  27344. lastDay: '[昨天]LT',
  27345. lastWeek: function lastWeek(now) {
  27346. if (this.week() !== now.week()) {
  27347. return '[上]dddLT';
  27348. } else {
  27349. return '[本]dddLT';
  27350. }
  27351. },
  27352. sameElse: 'L'
  27353. },
  27354. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  27355. ordinal: function ordinal(number, period) {
  27356. switch (period) {
  27357. case 'd':
  27358. case 'D':
  27359. case 'DDD':
  27360. return number + '日';
  27361. case 'M':
  27362. return number + '月';
  27363. case 'w':
  27364. case 'W':
  27365. return number + '周';
  27366. default:
  27367. return number;
  27368. }
  27369. },
  27370. relativeTime: {
  27371. future: '%s后',
  27372. past: '%s前',
  27373. s: '几秒',
  27374. ss: '%d 秒',
  27375. m: '1 分钟',
  27376. mm: '%d 分钟',
  27377. h: '1 小时',
  27378. hh: '%d 小时',
  27379. d: '1 天',
  27380. dd: '%d 天',
  27381. w: '1 周',
  27382. ww: '%d 周',
  27383. M: '1 个月',
  27384. MM: '%d 个月',
  27385. y: '1 年',
  27386. yy: '%d 年'
  27387. },
  27388. week: {
  27389. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  27390. dow: 1,
  27391. // Monday is the first day of the week.
  27392. doy: 4 // The week that contains Jan 4th is the first week of the year.
  27393. }
  27394. });
  27395. return zhCn;
  27396. });
  27397. /***/ }),
  27398. /* 174 */
  27399. /*!******************************************************************!*\
  27400. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-hk.js ***!
  27401. \******************************************************************/
  27402. /*! no static exports found */
  27403. /***/ (function(module, exports, __webpack_require__) {
  27404. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27405. //! moment.js locale configuration
  27406. //! locale : Chinese (Hong Kong) [zh-hk]
  27407. //! author : Ben : https://github.com/ben-lin
  27408. //! author : Chris Lam : https://github.com/hehachris
  27409. //! author : Konstantin : https://github.com/skfd
  27410. //! author : Anthony : https://github.com/anthonylau
  27411. ;
  27412. (function (global, factory) {
  27413. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27414. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27415. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27416. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27417. })(this, function (moment) {
  27418. 'use strict';
  27419. //! moment.js locale configuration
  27420. var zhHk = moment.defineLocale('zh-hk', {
  27421. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27422. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27423. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27424. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27425. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27426. longDateFormat: {
  27427. LT: 'HH:mm',
  27428. LTS: 'HH:mm:ss',
  27429. L: 'YYYY/MM/DD',
  27430. LL: 'YYYY年M月D日',
  27431. LLL: 'YYYY年M月D日 HH:mm',
  27432. LLLL: 'YYYY年M月D日dddd HH:mm',
  27433. l: 'YYYY/M/D',
  27434. ll: 'YYYY年M月D日',
  27435. lll: 'YYYY年M月D日 HH:mm',
  27436. llll: 'YYYY年M月D日dddd HH:mm'
  27437. },
  27438. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27439. meridiemHour: function meridiemHour(hour, meridiem) {
  27440. if (hour === 12) {
  27441. hour = 0;
  27442. }
  27443. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27444. return hour;
  27445. } else if (meridiem === '中午') {
  27446. return hour >= 11 ? hour : hour + 12;
  27447. } else if (meridiem === '下午' || meridiem === '晚上') {
  27448. return hour + 12;
  27449. }
  27450. },
  27451. meridiem: function meridiem(hour, minute, isLower) {
  27452. var hm = hour * 100 + minute;
  27453. if (hm < 600) {
  27454. return '凌晨';
  27455. } else if (hm < 900) {
  27456. return '早上';
  27457. } else if (hm < 1200) {
  27458. return '上午';
  27459. } else if (hm === 1200) {
  27460. return '中午';
  27461. } else if (hm < 1800) {
  27462. return '下午';
  27463. } else {
  27464. return '晚上';
  27465. }
  27466. },
  27467. calendar: {
  27468. sameDay: '[今天]LT',
  27469. nextDay: '[明天]LT',
  27470. nextWeek: '[下]ddddLT',
  27471. lastDay: '[昨天]LT',
  27472. lastWeek: '[上]ddddLT',
  27473. sameElse: 'L'
  27474. },
  27475. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27476. ordinal: function ordinal(number, period) {
  27477. switch (period) {
  27478. case 'd':
  27479. case 'D':
  27480. case 'DDD':
  27481. return number + '日';
  27482. case 'M':
  27483. return number + '月';
  27484. case 'w':
  27485. case 'W':
  27486. return number + '週';
  27487. default:
  27488. return number;
  27489. }
  27490. },
  27491. relativeTime: {
  27492. future: '%s後',
  27493. past: '%s前',
  27494. s: '幾秒',
  27495. ss: '%d 秒',
  27496. m: '1 分鐘',
  27497. mm: '%d 分鐘',
  27498. h: '1 小時',
  27499. hh: '%d 小時',
  27500. d: '1 天',
  27501. dd: '%d 天',
  27502. M: '1 個月',
  27503. MM: '%d 個月',
  27504. y: '1 年',
  27505. yy: '%d 年'
  27506. }
  27507. });
  27508. return zhHk;
  27509. });
  27510. /***/ }),
  27511. /* 175 */
  27512. /*!******************************************************************!*\
  27513. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-mo.js ***!
  27514. \******************************************************************/
  27515. /*! no static exports found */
  27516. /***/ (function(module, exports, __webpack_require__) {
  27517. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27518. //! moment.js locale configuration
  27519. //! locale : Chinese (Macau) [zh-mo]
  27520. //! author : Ben : https://github.com/ben-lin
  27521. //! author : Chris Lam : https://github.com/hehachris
  27522. //! author : Tan Yuanhong : https://github.com/le0tan
  27523. ;
  27524. (function (global, factory) {
  27525. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27526. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27527. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27528. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27529. })(this, function (moment) {
  27530. 'use strict';
  27531. //! moment.js locale configuration
  27532. var zhMo = moment.defineLocale('zh-mo', {
  27533. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27534. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27535. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27536. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27537. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27538. longDateFormat: {
  27539. LT: 'HH:mm',
  27540. LTS: 'HH:mm:ss',
  27541. L: 'DD/MM/YYYY',
  27542. LL: 'YYYY年M月D日',
  27543. LLL: 'YYYY年M月D日 HH:mm',
  27544. LLLL: 'YYYY年M月D日dddd HH:mm',
  27545. l: 'D/M/YYYY',
  27546. ll: 'YYYY年M月D日',
  27547. lll: 'YYYY年M月D日 HH:mm',
  27548. llll: 'YYYY年M月D日dddd HH:mm'
  27549. },
  27550. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27551. meridiemHour: function meridiemHour(hour, meridiem) {
  27552. if (hour === 12) {
  27553. hour = 0;
  27554. }
  27555. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27556. return hour;
  27557. } else if (meridiem === '中午') {
  27558. return hour >= 11 ? hour : hour + 12;
  27559. } else if (meridiem === '下午' || meridiem === '晚上') {
  27560. return hour + 12;
  27561. }
  27562. },
  27563. meridiem: function meridiem(hour, minute, isLower) {
  27564. var hm = hour * 100 + minute;
  27565. if (hm < 600) {
  27566. return '凌晨';
  27567. } else if (hm < 900) {
  27568. return '早上';
  27569. } else if (hm < 1130) {
  27570. return '上午';
  27571. } else if (hm < 1230) {
  27572. return '中午';
  27573. } else if (hm < 1800) {
  27574. return '下午';
  27575. } else {
  27576. return '晚上';
  27577. }
  27578. },
  27579. calendar: {
  27580. sameDay: '[今天] LT',
  27581. nextDay: '[明天] LT',
  27582. nextWeek: '[下]dddd LT',
  27583. lastDay: '[昨天] LT',
  27584. lastWeek: '[上]dddd LT',
  27585. sameElse: 'L'
  27586. },
  27587. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27588. ordinal: function ordinal(number, period) {
  27589. switch (period) {
  27590. case 'd':
  27591. case 'D':
  27592. case 'DDD':
  27593. return number + '日';
  27594. case 'M':
  27595. return number + '月';
  27596. case 'w':
  27597. case 'W':
  27598. return number + '週';
  27599. default:
  27600. return number;
  27601. }
  27602. },
  27603. relativeTime: {
  27604. future: '%s內',
  27605. past: '%s前',
  27606. s: '幾秒',
  27607. ss: '%d 秒',
  27608. m: '1 分鐘',
  27609. mm: '%d 分鐘',
  27610. h: '1 小時',
  27611. hh: '%d 小時',
  27612. d: '1 天',
  27613. dd: '%d 天',
  27614. M: '1 個月',
  27615. MM: '%d 個月',
  27616. y: '1 年',
  27617. yy: '%d 年'
  27618. }
  27619. });
  27620. return zhMo;
  27621. });
  27622. /***/ }),
  27623. /* 176 */
  27624. /*!******************************************************************!*\
  27625. !*** D:/project/项目模板/uniapp/node_modules/moment/locale/zh-tw.js ***!
  27626. \******************************************************************/
  27627. /*! no static exports found */
  27628. /***/ (function(module, exports, __webpack_require__) {
  27629. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  27630. //! moment.js locale configuration
  27631. //! locale : Chinese (Taiwan) [zh-tw]
  27632. //! author : Ben : https://github.com/ben-lin
  27633. //! author : Chris Lam : https://github.com/hehachris
  27634. ;
  27635. (function (global, factory) {
  27636. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' && "function" === 'function' ? factory(__webpack_require__(/*! ../moment */ 39)) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../moment */ 39)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27637. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27638. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27639. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  27640. })(this, function (moment) {
  27641. 'use strict';
  27642. //! moment.js locale configuration
  27643. var zhTw = moment.defineLocale('zh-tw', {
  27644. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  27645. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  27646. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  27647. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  27648. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  27649. longDateFormat: {
  27650. LT: 'HH:mm',
  27651. LTS: 'HH:mm:ss',
  27652. L: 'YYYY/MM/DD',
  27653. LL: 'YYYY年M月D日',
  27654. LLL: 'YYYY年M月D日 HH:mm',
  27655. LLLL: 'YYYY年M月D日dddd HH:mm',
  27656. l: 'YYYY/M/D',
  27657. ll: 'YYYY年M月D日',
  27658. lll: 'YYYY年M月D日 HH:mm',
  27659. llll: 'YYYY年M月D日dddd HH:mm'
  27660. },
  27661. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  27662. meridiemHour: function meridiemHour(hour, meridiem) {
  27663. if (hour === 12) {
  27664. hour = 0;
  27665. }
  27666. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  27667. return hour;
  27668. } else if (meridiem === '中午') {
  27669. return hour >= 11 ? hour : hour + 12;
  27670. } else if (meridiem === '下午' || meridiem === '晚上') {
  27671. return hour + 12;
  27672. }
  27673. },
  27674. meridiem: function meridiem(hour, minute, isLower) {
  27675. var hm = hour * 100 + minute;
  27676. if (hm < 600) {
  27677. return '凌晨';
  27678. } else if (hm < 900) {
  27679. return '早上';
  27680. } else if (hm < 1130) {
  27681. return '上午';
  27682. } else if (hm < 1230) {
  27683. return '中午';
  27684. } else if (hm < 1800) {
  27685. return '下午';
  27686. } else {
  27687. return '晚上';
  27688. }
  27689. },
  27690. calendar: {
  27691. sameDay: '[今天] LT',
  27692. nextDay: '[明天] LT',
  27693. nextWeek: '[下]dddd LT',
  27694. lastDay: '[昨天] LT',
  27695. lastWeek: '[上]dddd LT',
  27696. sameElse: 'L'
  27697. },
  27698. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  27699. ordinal: function ordinal(number, period) {
  27700. switch (period) {
  27701. case 'd':
  27702. case 'D':
  27703. case 'DDD':
  27704. return number + '日';
  27705. case 'M':
  27706. return number + '月';
  27707. case 'w':
  27708. case 'W':
  27709. return number + '週';
  27710. default:
  27711. return number;
  27712. }
  27713. },
  27714. relativeTime: {
  27715. future: '%s後',
  27716. past: '%s前',
  27717. s: '幾秒',
  27718. ss: '%d 秒',
  27719. m: '1 分鐘',
  27720. mm: '%d 分鐘',
  27721. h: '1 小時',
  27722. hh: '%d 小時',
  27723. d: '1 天',
  27724. dd: '%d 天',
  27725. M: '1 個月',
  27726. MM: '%d 個月',
  27727. y: '1 年',
  27728. yy: '%d 年'
  27729. }
  27730. });
  27731. return zhTw;
  27732. });
  27733. /***/ }),
  27734. /* 177 */,
  27735. /* 178 */,
  27736. /* 179 */,
  27737. /* 180 */,
  27738. /* 181 */,
  27739. /* 182 */,
  27740. /* 183 */,
  27741. /* 184 */,
  27742. /* 185 */,
  27743. /* 186 */,
  27744. /* 187 */,
  27745. /* 188 */,
  27746. /* 189 */,
  27747. /* 190 */,
  27748. /* 191 */,
  27749. /* 192 */,
  27750. /* 193 */,
  27751. /* 194 */,
  27752. /* 195 */,
  27753. /* 196 */,
  27754. /* 197 */,
  27755. /* 198 */,
  27756. /* 199 */,
  27757. /* 200 */,
  27758. /* 201 */,
  27759. /* 202 */,
  27760. /* 203 */,
  27761. /* 204 */,
  27762. /* 205 */,
  27763. /* 206 */,
  27764. /* 207 */,
  27765. /* 208 */,
  27766. /* 209 */,
  27767. /* 210 */,
  27768. /* 211 */,
  27769. /* 212 */,
  27770. /* 213 */,
  27771. /* 214 */,
  27772. /* 215 */,
  27773. /* 216 */,
  27774. /* 217 */,
  27775. /* 218 */,
  27776. /* 219 */,
  27777. /* 220 */,
  27778. /* 221 */,
  27779. /* 222 */,
  27780. /* 223 */,
  27781. /* 224 */,
  27782. /* 225 */,
  27783. /* 226 */,
  27784. /* 227 */,
  27785. /* 228 */,
  27786. /* 229 */,
  27787. /* 230 */,
  27788. /* 231 */,
  27789. /* 232 */,
  27790. /* 233 */,
  27791. /* 234 */,
  27792. /* 235 */,
  27793. /* 236 */,
  27794. /* 237 */,
  27795. /* 238 */,
  27796. /* 239 */,
  27797. /* 240 */,
  27798. /* 241 */,
  27799. /* 242 */,
  27800. /* 243 */,
  27801. /* 244 */,
  27802. /* 245 */,
  27803. /* 246 */,
  27804. /* 247 */,
  27805. /* 248 */,
  27806. /* 249 */,
  27807. /* 250 */,
  27808. /* 251 */,
  27809. /* 252 */,
  27810. /* 253 */,
  27811. /* 254 */,
  27812. /* 255 */,
  27813. /* 256 */,
  27814. /* 257 */,
  27815. /* 258 */,
  27816. /* 259 */,
  27817. /* 260 */,
  27818. /* 261 */,
  27819. /* 262 */,
  27820. /* 263 */,
  27821. /* 264 */,
  27822. /* 265 */,
  27823. /* 266 */,
  27824. /* 267 */,
  27825. /* 268 */,
  27826. /* 269 */,
  27827. /* 270 */,
  27828. /* 271 */,
  27829. /* 272 */,
  27830. /* 273 */,
  27831. /* 274 */,
  27832. /* 275 */,
  27833. /* 276 */,
  27834. /* 277 */,
  27835. /* 278 */,
  27836. /* 279 */,
  27837. /* 280 */,
  27838. /* 281 */,
  27839. /* 282 */,
  27840. /* 283 */,
  27841. /* 284 */,
  27842. /* 285 */,
  27843. /* 286 */,
  27844. /* 287 */,
  27845. /* 288 */,
  27846. /* 289 */,
  27847. /* 290 */,
  27848. /* 291 */,
  27849. /* 292 */,
  27850. /* 293 */,
  27851. /* 294 */,
  27852. /* 295 */,
  27853. /* 296 */,
  27854. /* 297 */,
  27855. /* 298 */,
  27856. /* 299 */,
  27857. /* 300 */,
  27858. /* 301 */,
  27859. /* 302 */,
  27860. /* 303 */,
  27861. /* 304 */,
  27862. /* 305 */,
  27863. /* 306 */,
  27864. /* 307 */,
  27865. /* 308 */,
  27866. /* 309 */,
  27867. /* 310 */,
  27868. /* 311 */,
  27869. /* 312 */,
  27870. /* 313 */,
  27871. /* 314 */,
  27872. /* 315 */
  27873. /*!**********************************************************************************!*\
  27874. !*** D:/project/项目模板/uniapp/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  27875. \**********************************************************************************/
  27876. /*! no static exports found */
  27877. /***/ (function(module, exports, __webpack_require__) {
  27878. "use strict";
  27879. Object.defineProperty(exports, "__esModule", {
  27880. value: true
  27881. });
  27882. exports.default = void 0;
  27883. var _default = {
  27884. "id": "2852637",
  27885. "name": "uniui图标库",
  27886. "font_family": "uniicons",
  27887. "css_prefix_text": "uniui-",
  27888. "description": "",
  27889. "glyphs": [{
  27890. "icon_id": "25027049",
  27891. "name": "yanse",
  27892. "font_class": "color",
  27893. "unicode": "e6cf",
  27894. "unicode_decimal": 59087
  27895. }, {
  27896. "icon_id": "25027048",
  27897. "name": "wallet",
  27898. "font_class": "wallet",
  27899. "unicode": "e6b1",
  27900. "unicode_decimal": 59057
  27901. }, {
  27902. "icon_id": "25015720",
  27903. "name": "settings-filled",
  27904. "font_class": "settings-filled",
  27905. "unicode": "e6ce",
  27906. "unicode_decimal": 59086
  27907. }, {
  27908. "icon_id": "25015434",
  27909. "name": "shimingrenzheng-filled",
  27910. "font_class": "auth-filled",
  27911. "unicode": "e6cc",
  27912. "unicode_decimal": 59084
  27913. }, {
  27914. "icon_id": "24934246",
  27915. "name": "shop-filled",
  27916. "font_class": "shop-filled",
  27917. "unicode": "e6cd",
  27918. "unicode_decimal": 59085
  27919. }, {
  27920. "icon_id": "24934159",
  27921. "name": "staff-filled-01",
  27922. "font_class": "staff-filled",
  27923. "unicode": "e6cb",
  27924. "unicode_decimal": 59083
  27925. }, {
  27926. "icon_id": "24932461",
  27927. "name": "VIP-filled",
  27928. "font_class": "vip-filled",
  27929. "unicode": "e6c6",
  27930. "unicode_decimal": 59078
  27931. }, {
  27932. "icon_id": "24932462",
  27933. "name": "plus_circle_fill",
  27934. "font_class": "plus-filled",
  27935. "unicode": "e6c7",
  27936. "unicode_decimal": 59079
  27937. }, {
  27938. "icon_id": "24932463",
  27939. "name": "folder_add-filled",
  27940. "font_class": "folder-add-filled",
  27941. "unicode": "e6c8",
  27942. "unicode_decimal": 59080
  27943. }, {
  27944. "icon_id": "24932464",
  27945. "name": "yanse-filled",
  27946. "font_class": "color-filled",
  27947. "unicode": "e6c9",
  27948. "unicode_decimal": 59081
  27949. }, {
  27950. "icon_id": "24932465",
  27951. "name": "tune-filled",
  27952. "font_class": "tune-filled",
  27953. "unicode": "e6ca",
  27954. "unicode_decimal": 59082
  27955. }, {
  27956. "icon_id": "24932455",
  27957. "name": "a-rilidaka-filled",
  27958. "font_class": "calendar-filled",
  27959. "unicode": "e6c0",
  27960. "unicode_decimal": 59072
  27961. }, {
  27962. "icon_id": "24932456",
  27963. "name": "notification-filled",
  27964. "font_class": "notification-filled",
  27965. "unicode": "e6c1",
  27966. "unicode_decimal": 59073
  27967. }, {
  27968. "icon_id": "24932457",
  27969. "name": "wallet-filled",
  27970. "font_class": "wallet-filled",
  27971. "unicode": "e6c2",
  27972. "unicode_decimal": 59074
  27973. }, {
  27974. "icon_id": "24932458",
  27975. "name": "paihangbang-filled",
  27976. "font_class": "medal-filled",
  27977. "unicode": "e6c3",
  27978. "unicode_decimal": 59075
  27979. }, {
  27980. "icon_id": "24932459",
  27981. "name": "gift-filled",
  27982. "font_class": "gift-filled",
  27983. "unicode": "e6c4",
  27984. "unicode_decimal": 59076
  27985. }, {
  27986. "icon_id": "24932460",
  27987. "name": "fire-filled",
  27988. "font_class": "fire-filled",
  27989. "unicode": "e6c5",
  27990. "unicode_decimal": 59077
  27991. }, {
  27992. "icon_id": "24928001",
  27993. "name": "refreshempty",
  27994. "font_class": "refreshempty",
  27995. "unicode": "e6bf",
  27996. "unicode_decimal": 59071
  27997. }, {
  27998. "icon_id": "24926853",
  27999. "name": "location-ellipse",
  28000. "font_class": "location-filled",
  28001. "unicode": "e6af",
  28002. "unicode_decimal": 59055
  28003. }, {
  28004. "icon_id": "24926735",
  28005. "name": "person-filled",
  28006. "font_class": "person-filled",
  28007. "unicode": "e69d",
  28008. "unicode_decimal": 59037
  28009. }, {
  28010. "icon_id": "24926703",
  28011. "name": "personadd-filled",
  28012. "font_class": "personadd-filled",
  28013. "unicode": "e698",
  28014. "unicode_decimal": 59032
  28015. }, {
  28016. "icon_id": "24923351",
  28017. "name": "back",
  28018. "font_class": "back",
  28019. "unicode": "e6b9",
  28020. "unicode_decimal": 59065
  28021. }, {
  28022. "icon_id": "24923352",
  28023. "name": "forward",
  28024. "font_class": "forward",
  28025. "unicode": "e6ba",
  28026. "unicode_decimal": 59066
  28027. }, {
  28028. "icon_id": "24923353",
  28029. "name": "arrowthinright",
  28030. "font_class": "arrow-right",
  28031. "unicode": "e6bb",
  28032. "unicode_decimal": 59067
  28033. }, {
  28034. "icon_id": "24923353",
  28035. "name": "arrowthinright",
  28036. "font_class": "arrowthinright",
  28037. "unicode": "e6bb",
  28038. "unicode_decimal": 59067
  28039. }, {
  28040. "icon_id": "24923354",
  28041. "name": "arrowthinleft",
  28042. "font_class": "arrow-left",
  28043. "unicode": "e6bc",
  28044. "unicode_decimal": 59068
  28045. }, {
  28046. "icon_id": "24923354",
  28047. "name": "arrowthinleft",
  28048. "font_class": "arrowthinleft",
  28049. "unicode": "e6bc",
  28050. "unicode_decimal": 59068
  28051. }, {
  28052. "icon_id": "24923355",
  28053. "name": "arrowthinup",
  28054. "font_class": "arrow-up",
  28055. "unicode": "e6bd",
  28056. "unicode_decimal": 59069
  28057. }, {
  28058. "icon_id": "24923355",
  28059. "name": "arrowthinup",
  28060. "font_class": "arrowthinup",
  28061. "unicode": "e6bd",
  28062. "unicode_decimal": 59069
  28063. }, {
  28064. "icon_id": "24923356",
  28065. "name": "arrowthindown",
  28066. "font_class": "arrow-down",
  28067. "unicode": "e6be",
  28068. "unicode_decimal": 59070
  28069. }, {
  28070. "icon_id": "24923356",
  28071. "name": "arrowthindown",
  28072. "font_class": "arrowthindown",
  28073. "unicode": "e6be",
  28074. "unicode_decimal": 59070
  28075. }, {
  28076. "icon_id": "24923349",
  28077. "name": "arrowdown",
  28078. "font_class": "bottom",
  28079. "unicode": "e6b8",
  28080. "unicode_decimal": 59064
  28081. }, {
  28082. "icon_id": "24923349",
  28083. "name": "arrowdown",
  28084. "font_class": "arrowdown",
  28085. "unicode": "e6b8",
  28086. "unicode_decimal": 59064
  28087. }, {
  28088. "icon_id": "24923346",
  28089. "name": "arrowright",
  28090. "font_class": "right",
  28091. "unicode": "e6b5",
  28092. "unicode_decimal": 59061
  28093. }, {
  28094. "icon_id": "24923346",
  28095. "name": "arrowright",
  28096. "font_class": "arrowright",
  28097. "unicode": "e6b5",
  28098. "unicode_decimal": 59061
  28099. }, {
  28100. "icon_id": "24923347",
  28101. "name": "arrowup",
  28102. "font_class": "top",
  28103. "unicode": "e6b6",
  28104. "unicode_decimal": 59062
  28105. }, {
  28106. "icon_id": "24923347",
  28107. "name": "arrowup",
  28108. "font_class": "arrowup",
  28109. "unicode": "e6b6",
  28110. "unicode_decimal": 59062
  28111. }, {
  28112. "icon_id": "24923348",
  28113. "name": "arrowleft",
  28114. "font_class": "left",
  28115. "unicode": "e6b7",
  28116. "unicode_decimal": 59063
  28117. }, {
  28118. "icon_id": "24923348",
  28119. "name": "arrowleft",
  28120. "font_class": "arrowleft",
  28121. "unicode": "e6b7",
  28122. "unicode_decimal": 59063
  28123. }, {
  28124. "icon_id": "24923334",
  28125. "name": "eye",
  28126. "font_class": "eye",
  28127. "unicode": "e651",
  28128. "unicode_decimal": 58961
  28129. }, {
  28130. "icon_id": "24923335",
  28131. "name": "eye-filled",
  28132. "font_class": "eye-filled",
  28133. "unicode": "e66a",
  28134. "unicode_decimal": 58986
  28135. }, {
  28136. "icon_id": "24923336",
  28137. "name": "eye-slash",
  28138. "font_class": "eye-slash",
  28139. "unicode": "e6b3",
  28140. "unicode_decimal": 59059
  28141. }, {
  28142. "icon_id": "24923337",
  28143. "name": "eye-slash-filled",
  28144. "font_class": "eye-slash-filled",
  28145. "unicode": "e6b4",
  28146. "unicode_decimal": 59060
  28147. }, {
  28148. "icon_id": "24923305",
  28149. "name": "info-filled",
  28150. "font_class": "info-filled",
  28151. "unicode": "e649",
  28152. "unicode_decimal": 58953
  28153. }, {
  28154. "icon_id": "24923299",
  28155. "name": "reload-01",
  28156. "font_class": "reload",
  28157. "unicode": "e6b2",
  28158. "unicode_decimal": 59058
  28159. }, {
  28160. "icon_id": "24923195",
  28161. "name": "mic_slash_fill",
  28162. "font_class": "micoff-filled",
  28163. "unicode": "e6b0",
  28164. "unicode_decimal": 59056
  28165. }, {
  28166. "icon_id": "24923165",
  28167. "name": "map-pin-ellipse",
  28168. "font_class": "map-pin-ellipse",
  28169. "unicode": "e6ac",
  28170. "unicode_decimal": 59052
  28171. }, {
  28172. "icon_id": "24923166",
  28173. "name": "map-pin",
  28174. "font_class": "map-pin",
  28175. "unicode": "e6ad",
  28176. "unicode_decimal": 59053
  28177. }, {
  28178. "icon_id": "24923167",
  28179. "name": "location",
  28180. "font_class": "location",
  28181. "unicode": "e6ae",
  28182. "unicode_decimal": 59054
  28183. }, {
  28184. "icon_id": "24923064",
  28185. "name": "starhalf",
  28186. "font_class": "starhalf",
  28187. "unicode": "e683",
  28188. "unicode_decimal": 59011
  28189. }, {
  28190. "icon_id": "24923065",
  28191. "name": "star",
  28192. "font_class": "star",
  28193. "unicode": "e688",
  28194. "unicode_decimal": 59016
  28195. }, {
  28196. "icon_id": "24923066",
  28197. "name": "star-filled",
  28198. "font_class": "star-filled",
  28199. "unicode": "e68f",
  28200. "unicode_decimal": 59023
  28201. }, {
  28202. "icon_id": "24899646",
  28203. "name": "a-rilidaka",
  28204. "font_class": "calendar",
  28205. "unicode": "e6a0",
  28206. "unicode_decimal": 59040
  28207. }, {
  28208. "icon_id": "24899647",
  28209. "name": "fire",
  28210. "font_class": "fire",
  28211. "unicode": "e6a1",
  28212. "unicode_decimal": 59041
  28213. }, {
  28214. "icon_id": "24899648",
  28215. "name": "paihangbang",
  28216. "font_class": "medal",
  28217. "unicode": "e6a2",
  28218. "unicode_decimal": 59042
  28219. }, {
  28220. "icon_id": "24899649",
  28221. "name": "font",
  28222. "font_class": "font",
  28223. "unicode": "e6a3",
  28224. "unicode_decimal": 59043
  28225. }, {
  28226. "icon_id": "24899650",
  28227. "name": "gift",
  28228. "font_class": "gift",
  28229. "unicode": "e6a4",
  28230. "unicode_decimal": 59044
  28231. }, {
  28232. "icon_id": "24899651",
  28233. "name": "link",
  28234. "font_class": "link",
  28235. "unicode": "e6a5",
  28236. "unicode_decimal": 59045
  28237. }, {
  28238. "icon_id": "24899652",
  28239. "name": "notification",
  28240. "font_class": "notification",
  28241. "unicode": "e6a6",
  28242. "unicode_decimal": 59046
  28243. }, {
  28244. "icon_id": "24899653",
  28245. "name": "staff",
  28246. "font_class": "staff",
  28247. "unicode": "e6a7",
  28248. "unicode_decimal": 59047
  28249. }, {
  28250. "icon_id": "24899654",
  28251. "name": "VIP",
  28252. "font_class": "vip",
  28253. "unicode": "e6a8",
  28254. "unicode_decimal": 59048
  28255. }, {
  28256. "icon_id": "24899655",
  28257. "name": "folder_add",
  28258. "font_class": "folder-add",
  28259. "unicode": "e6a9",
  28260. "unicode_decimal": 59049
  28261. }, {
  28262. "icon_id": "24899656",
  28263. "name": "tune",
  28264. "font_class": "tune",
  28265. "unicode": "e6aa",
  28266. "unicode_decimal": 59050
  28267. }, {
  28268. "icon_id": "24899657",
  28269. "name": "shimingrenzheng",
  28270. "font_class": "auth",
  28271. "unicode": "e6ab",
  28272. "unicode_decimal": 59051
  28273. }, {
  28274. "icon_id": "24899565",
  28275. "name": "person",
  28276. "font_class": "person",
  28277. "unicode": "e699",
  28278. "unicode_decimal": 59033
  28279. }, {
  28280. "icon_id": "24899566",
  28281. "name": "email-filled",
  28282. "font_class": "email-filled",
  28283. "unicode": "e69a",
  28284. "unicode_decimal": 59034
  28285. }, {
  28286. "icon_id": "24899567",
  28287. "name": "phone-filled",
  28288. "font_class": "phone-filled",
  28289. "unicode": "e69b",
  28290. "unicode_decimal": 59035
  28291. }, {
  28292. "icon_id": "24899568",
  28293. "name": "phone",
  28294. "font_class": "phone",
  28295. "unicode": "e69c",
  28296. "unicode_decimal": 59036
  28297. }, {
  28298. "icon_id": "24899570",
  28299. "name": "email",
  28300. "font_class": "email",
  28301. "unicode": "e69e",
  28302. "unicode_decimal": 59038
  28303. }, {
  28304. "icon_id": "24899571",
  28305. "name": "personadd",
  28306. "font_class": "personadd",
  28307. "unicode": "e69f",
  28308. "unicode_decimal": 59039
  28309. }, {
  28310. "icon_id": "24899558",
  28311. "name": "chatboxes-filled",
  28312. "font_class": "chatboxes-filled",
  28313. "unicode": "e692",
  28314. "unicode_decimal": 59026
  28315. }, {
  28316. "icon_id": "24899559",
  28317. "name": "contact",
  28318. "font_class": "contact",
  28319. "unicode": "e693",
  28320. "unicode_decimal": 59027
  28321. }, {
  28322. "icon_id": "24899560",
  28323. "name": "chatbubble-filled",
  28324. "font_class": "chatbubble-filled",
  28325. "unicode": "e694",
  28326. "unicode_decimal": 59028
  28327. }, {
  28328. "icon_id": "24899561",
  28329. "name": "contact-filled",
  28330. "font_class": "contact-filled",
  28331. "unicode": "e695",
  28332. "unicode_decimal": 59029
  28333. }, {
  28334. "icon_id": "24899562",
  28335. "name": "chatboxes",
  28336. "font_class": "chatboxes",
  28337. "unicode": "e696",
  28338. "unicode_decimal": 59030
  28339. }, {
  28340. "icon_id": "24899563",
  28341. "name": "chatbubble",
  28342. "font_class": "chatbubble",
  28343. "unicode": "e697",
  28344. "unicode_decimal": 59031
  28345. }, {
  28346. "icon_id": "24881290",
  28347. "name": "upload-filled",
  28348. "font_class": "upload-filled",
  28349. "unicode": "e68e",
  28350. "unicode_decimal": 59022
  28351. }, {
  28352. "icon_id": "24881292",
  28353. "name": "upload",
  28354. "font_class": "upload",
  28355. "unicode": "e690",
  28356. "unicode_decimal": 59024
  28357. }, {
  28358. "icon_id": "24881293",
  28359. "name": "weixin",
  28360. "font_class": "weixin",
  28361. "unicode": "e691",
  28362. "unicode_decimal": 59025
  28363. }, {
  28364. "icon_id": "24881274",
  28365. "name": "compose",
  28366. "font_class": "compose",
  28367. "unicode": "e67f",
  28368. "unicode_decimal": 59007
  28369. }, {
  28370. "icon_id": "24881275",
  28371. "name": "qq",
  28372. "font_class": "qq",
  28373. "unicode": "e680",
  28374. "unicode_decimal": 59008
  28375. }, {
  28376. "icon_id": "24881276",
  28377. "name": "download-filled",
  28378. "font_class": "download-filled",
  28379. "unicode": "e681",
  28380. "unicode_decimal": 59009
  28381. }, {
  28382. "icon_id": "24881277",
  28383. "name": "pengyouquan",
  28384. "font_class": "pyq",
  28385. "unicode": "e682",
  28386. "unicode_decimal": 59010
  28387. }, {
  28388. "icon_id": "24881279",
  28389. "name": "sound",
  28390. "font_class": "sound",
  28391. "unicode": "e684",
  28392. "unicode_decimal": 59012
  28393. }, {
  28394. "icon_id": "24881280",
  28395. "name": "trash-filled",
  28396. "font_class": "trash-filled",
  28397. "unicode": "e685",
  28398. "unicode_decimal": 59013
  28399. }, {
  28400. "icon_id": "24881281",
  28401. "name": "sound-filled",
  28402. "font_class": "sound-filled",
  28403. "unicode": "e686",
  28404. "unicode_decimal": 59014
  28405. }, {
  28406. "icon_id": "24881282",
  28407. "name": "trash",
  28408. "font_class": "trash",
  28409. "unicode": "e687",
  28410. "unicode_decimal": 59015
  28411. }, {
  28412. "icon_id": "24881284",
  28413. "name": "videocam-filled",
  28414. "font_class": "videocam-filled",
  28415. "unicode": "e689",
  28416. "unicode_decimal": 59017
  28417. }, {
  28418. "icon_id": "24881285",
  28419. "name": "spinner-cycle",
  28420. "font_class": "spinner-cycle",
  28421. "unicode": "e68a",
  28422. "unicode_decimal": 59018
  28423. }, {
  28424. "icon_id": "24881286",
  28425. "name": "weibo",
  28426. "font_class": "weibo",
  28427. "unicode": "e68b",
  28428. "unicode_decimal": 59019
  28429. }, {
  28430. "icon_id": "24881288",
  28431. "name": "videocam",
  28432. "font_class": "videocam",
  28433. "unicode": "e68c",
  28434. "unicode_decimal": 59020
  28435. }, {
  28436. "icon_id": "24881289",
  28437. "name": "download",
  28438. "font_class": "download",
  28439. "unicode": "e68d",
  28440. "unicode_decimal": 59021
  28441. }, {
  28442. "icon_id": "24879601",
  28443. "name": "help",
  28444. "font_class": "help",
  28445. "unicode": "e679",
  28446. "unicode_decimal": 59001
  28447. }, {
  28448. "icon_id": "24879602",
  28449. "name": "navigate-filled",
  28450. "font_class": "navigate-filled",
  28451. "unicode": "e67a",
  28452. "unicode_decimal": 59002
  28453. }, {
  28454. "icon_id": "24879603",
  28455. "name": "plusempty",
  28456. "font_class": "plusempty",
  28457. "unicode": "e67b",
  28458. "unicode_decimal": 59003
  28459. }, {
  28460. "icon_id": "24879604",
  28461. "name": "smallcircle",
  28462. "font_class": "smallcircle",
  28463. "unicode": "e67c",
  28464. "unicode_decimal": 59004
  28465. }, {
  28466. "icon_id": "24879605",
  28467. "name": "minus-filled",
  28468. "font_class": "minus-filled",
  28469. "unicode": "e67d",
  28470. "unicode_decimal": 59005
  28471. }, {
  28472. "icon_id": "24879606",
  28473. "name": "micoff",
  28474. "font_class": "micoff",
  28475. "unicode": "e67e",
  28476. "unicode_decimal": 59006
  28477. }, {
  28478. "icon_id": "24879588",
  28479. "name": "closeempty",
  28480. "font_class": "closeempty",
  28481. "unicode": "e66c",
  28482. "unicode_decimal": 58988
  28483. }, {
  28484. "icon_id": "24879589",
  28485. "name": "clear",
  28486. "font_class": "clear",
  28487. "unicode": "e66d",
  28488. "unicode_decimal": 58989
  28489. }, {
  28490. "icon_id": "24879590",
  28491. "name": "navigate",
  28492. "font_class": "navigate",
  28493. "unicode": "e66e",
  28494. "unicode_decimal": 58990
  28495. }, {
  28496. "icon_id": "24879591",
  28497. "name": "minus",
  28498. "font_class": "minus",
  28499. "unicode": "e66f",
  28500. "unicode_decimal": 58991
  28501. }, {
  28502. "icon_id": "24879592",
  28503. "name": "image",
  28504. "font_class": "image",
  28505. "unicode": "e670",
  28506. "unicode_decimal": 58992
  28507. }, {
  28508. "icon_id": "24879593",
  28509. "name": "mic",
  28510. "font_class": "mic",
  28511. "unicode": "e671",
  28512. "unicode_decimal": 58993
  28513. }, {
  28514. "icon_id": "24879594",
  28515. "name": "paperplane",
  28516. "font_class": "paperplane",
  28517. "unicode": "e672",
  28518. "unicode_decimal": 58994
  28519. }, {
  28520. "icon_id": "24879595",
  28521. "name": "close",
  28522. "font_class": "close",
  28523. "unicode": "e673",
  28524. "unicode_decimal": 58995
  28525. }, {
  28526. "icon_id": "24879596",
  28527. "name": "help-filled",
  28528. "font_class": "help-filled",
  28529. "unicode": "e674",
  28530. "unicode_decimal": 58996
  28531. }, {
  28532. "icon_id": "24879597",
  28533. "name": "plus-filled",
  28534. "font_class": "paperplane-filled",
  28535. "unicode": "e675",
  28536. "unicode_decimal": 58997
  28537. }, {
  28538. "icon_id": "24879598",
  28539. "name": "plus",
  28540. "font_class": "plus",
  28541. "unicode": "e676",
  28542. "unicode_decimal": 58998
  28543. }, {
  28544. "icon_id": "24879599",
  28545. "name": "mic-filled",
  28546. "font_class": "mic-filled",
  28547. "unicode": "e677",
  28548. "unicode_decimal": 58999
  28549. }, {
  28550. "icon_id": "24879600",
  28551. "name": "image-filled",
  28552. "font_class": "image-filled",
  28553. "unicode": "e678",
  28554. "unicode_decimal": 59000
  28555. }, {
  28556. "icon_id": "24855900",
  28557. "name": "locked-filled",
  28558. "font_class": "locked-filled",
  28559. "unicode": "e668",
  28560. "unicode_decimal": 58984
  28561. }, {
  28562. "icon_id": "24855901",
  28563. "name": "info",
  28564. "font_class": "info",
  28565. "unicode": "e669",
  28566. "unicode_decimal": 58985
  28567. }, {
  28568. "icon_id": "24855903",
  28569. "name": "locked",
  28570. "font_class": "locked",
  28571. "unicode": "e66b",
  28572. "unicode_decimal": 58987
  28573. }, {
  28574. "icon_id": "24855884",
  28575. "name": "camera-filled",
  28576. "font_class": "camera-filled",
  28577. "unicode": "e658",
  28578. "unicode_decimal": 58968
  28579. }, {
  28580. "icon_id": "24855885",
  28581. "name": "chat-filled",
  28582. "font_class": "chat-filled",
  28583. "unicode": "e659",
  28584. "unicode_decimal": 58969
  28585. }, {
  28586. "icon_id": "24855886",
  28587. "name": "camera",
  28588. "font_class": "camera",
  28589. "unicode": "e65a",
  28590. "unicode_decimal": 58970
  28591. }, {
  28592. "icon_id": "24855887",
  28593. "name": "circle",
  28594. "font_class": "circle",
  28595. "unicode": "e65b",
  28596. "unicode_decimal": 58971
  28597. }, {
  28598. "icon_id": "24855888",
  28599. "name": "checkmarkempty",
  28600. "font_class": "checkmarkempty",
  28601. "unicode": "e65c",
  28602. "unicode_decimal": 58972
  28603. }, {
  28604. "icon_id": "24855889",
  28605. "name": "chat",
  28606. "font_class": "chat",
  28607. "unicode": "e65d",
  28608. "unicode_decimal": 58973
  28609. }, {
  28610. "icon_id": "24855890",
  28611. "name": "circle-filled",
  28612. "font_class": "circle-filled",
  28613. "unicode": "e65e",
  28614. "unicode_decimal": 58974
  28615. }, {
  28616. "icon_id": "24855891",
  28617. "name": "flag",
  28618. "font_class": "flag",
  28619. "unicode": "e65f",
  28620. "unicode_decimal": 58975
  28621. }, {
  28622. "icon_id": "24855892",
  28623. "name": "flag-filled",
  28624. "font_class": "flag-filled",
  28625. "unicode": "e660",
  28626. "unicode_decimal": 58976
  28627. }, {
  28628. "icon_id": "24855893",
  28629. "name": "gear-filled",
  28630. "font_class": "gear-filled",
  28631. "unicode": "e661",
  28632. "unicode_decimal": 58977
  28633. }, {
  28634. "icon_id": "24855894",
  28635. "name": "home",
  28636. "font_class": "home",
  28637. "unicode": "e662",
  28638. "unicode_decimal": 58978
  28639. }, {
  28640. "icon_id": "24855895",
  28641. "name": "home-filled",
  28642. "font_class": "home-filled",
  28643. "unicode": "e663",
  28644. "unicode_decimal": 58979
  28645. }, {
  28646. "icon_id": "24855896",
  28647. "name": "gear",
  28648. "font_class": "gear",
  28649. "unicode": "e664",
  28650. "unicode_decimal": 58980
  28651. }, {
  28652. "icon_id": "24855897",
  28653. "name": "smallcircle-filled",
  28654. "font_class": "smallcircle-filled",
  28655. "unicode": "e665",
  28656. "unicode_decimal": 58981
  28657. }, {
  28658. "icon_id": "24855898",
  28659. "name": "map-filled",
  28660. "font_class": "map-filled",
  28661. "unicode": "e666",
  28662. "unicode_decimal": 58982
  28663. }, {
  28664. "icon_id": "24855899",
  28665. "name": "map",
  28666. "font_class": "map",
  28667. "unicode": "e667",
  28668. "unicode_decimal": 58983
  28669. }, {
  28670. "icon_id": "24855825",
  28671. "name": "refresh-filled",
  28672. "font_class": "refresh-filled",
  28673. "unicode": "e656",
  28674. "unicode_decimal": 58966
  28675. }, {
  28676. "icon_id": "24855826",
  28677. "name": "refresh",
  28678. "font_class": "refresh",
  28679. "unicode": "e657",
  28680. "unicode_decimal": 58967
  28681. }, {
  28682. "icon_id": "24855808",
  28683. "name": "cloud-upload",
  28684. "font_class": "cloud-upload",
  28685. "unicode": "e645",
  28686. "unicode_decimal": 58949
  28687. }, {
  28688. "icon_id": "24855809",
  28689. "name": "cloud-download-filled",
  28690. "font_class": "cloud-download-filled",
  28691. "unicode": "e646",
  28692. "unicode_decimal": 58950
  28693. }, {
  28694. "icon_id": "24855810",
  28695. "name": "cloud-download",
  28696. "font_class": "cloud-download",
  28697. "unicode": "e647",
  28698. "unicode_decimal": 58951
  28699. }, {
  28700. "icon_id": "24855811",
  28701. "name": "cloud-upload-filled",
  28702. "font_class": "cloud-upload-filled",
  28703. "unicode": "e648",
  28704. "unicode_decimal": 58952
  28705. }, {
  28706. "icon_id": "24855813",
  28707. "name": "redo",
  28708. "font_class": "redo",
  28709. "unicode": "e64a",
  28710. "unicode_decimal": 58954
  28711. }, {
  28712. "icon_id": "24855814",
  28713. "name": "images-filled",
  28714. "font_class": "images-filled",
  28715. "unicode": "e64b",
  28716. "unicode_decimal": 58955
  28717. }, {
  28718. "icon_id": "24855815",
  28719. "name": "undo-filled",
  28720. "font_class": "undo-filled",
  28721. "unicode": "e64c",
  28722. "unicode_decimal": 58956
  28723. }, {
  28724. "icon_id": "24855816",
  28725. "name": "more",
  28726. "font_class": "more",
  28727. "unicode": "e64d",
  28728. "unicode_decimal": 58957
  28729. }, {
  28730. "icon_id": "24855817",
  28731. "name": "more-filled",
  28732. "font_class": "more-filled",
  28733. "unicode": "e64e",
  28734. "unicode_decimal": 58958
  28735. }, {
  28736. "icon_id": "24855818",
  28737. "name": "undo",
  28738. "font_class": "undo",
  28739. "unicode": "e64f",
  28740. "unicode_decimal": 58959
  28741. }, {
  28742. "icon_id": "24855819",
  28743. "name": "images",
  28744. "font_class": "images",
  28745. "unicode": "e650",
  28746. "unicode_decimal": 58960
  28747. }, {
  28748. "icon_id": "24855821",
  28749. "name": "paperclip",
  28750. "font_class": "paperclip",
  28751. "unicode": "e652",
  28752. "unicode_decimal": 58962
  28753. }, {
  28754. "icon_id": "24855822",
  28755. "name": "settings",
  28756. "font_class": "settings",
  28757. "unicode": "e653",
  28758. "unicode_decimal": 58963
  28759. }, {
  28760. "icon_id": "24855823",
  28761. "name": "search",
  28762. "font_class": "search",
  28763. "unicode": "e654",
  28764. "unicode_decimal": 58964
  28765. }, {
  28766. "icon_id": "24855824",
  28767. "name": "redo-filled",
  28768. "font_class": "redo-filled",
  28769. "unicode": "e655",
  28770. "unicode_decimal": 58965
  28771. }, {
  28772. "icon_id": "24841702",
  28773. "name": "list",
  28774. "font_class": "list",
  28775. "unicode": "e644",
  28776. "unicode_decimal": 58948
  28777. }, {
  28778. "icon_id": "24841489",
  28779. "name": "mail-open-filled",
  28780. "font_class": "mail-open-filled",
  28781. "unicode": "e63a",
  28782. "unicode_decimal": 58938
  28783. }, {
  28784. "icon_id": "24841491",
  28785. "name": "hand-thumbsdown-filled",
  28786. "font_class": "hand-down-filled",
  28787. "unicode": "e63c",
  28788. "unicode_decimal": 58940
  28789. }, {
  28790. "icon_id": "24841492",
  28791. "name": "hand-thumbsdown",
  28792. "font_class": "hand-down",
  28793. "unicode": "e63d",
  28794. "unicode_decimal": 58941
  28795. }, {
  28796. "icon_id": "24841493",
  28797. "name": "hand-thumbsup-filled",
  28798. "font_class": "hand-up-filled",
  28799. "unicode": "e63e",
  28800. "unicode_decimal": 58942
  28801. }, {
  28802. "icon_id": "24841494",
  28803. "name": "hand-thumbsup",
  28804. "font_class": "hand-up",
  28805. "unicode": "e63f",
  28806. "unicode_decimal": 58943
  28807. }, {
  28808. "icon_id": "24841496",
  28809. "name": "heart-filled",
  28810. "font_class": "heart-filled",
  28811. "unicode": "e641",
  28812. "unicode_decimal": 58945
  28813. }, {
  28814. "icon_id": "24841498",
  28815. "name": "mail-open",
  28816. "font_class": "mail-open",
  28817. "unicode": "e643",
  28818. "unicode_decimal": 58947
  28819. }, {
  28820. "icon_id": "24841488",
  28821. "name": "heart",
  28822. "font_class": "heart",
  28823. "unicode": "e639",
  28824. "unicode_decimal": 58937
  28825. }, {
  28826. "icon_id": "24839963",
  28827. "name": "loop",
  28828. "font_class": "loop",
  28829. "unicode": "e633",
  28830. "unicode_decimal": 58931
  28831. }, {
  28832. "icon_id": "24839866",
  28833. "name": "pulldown",
  28834. "font_class": "pulldown",
  28835. "unicode": "e632",
  28836. "unicode_decimal": 58930
  28837. }, {
  28838. "icon_id": "24813798",
  28839. "name": "scan",
  28840. "font_class": "scan",
  28841. "unicode": "e62a",
  28842. "unicode_decimal": 58922
  28843. }, {
  28844. "icon_id": "24813786",
  28845. "name": "bars",
  28846. "font_class": "bars",
  28847. "unicode": "e627",
  28848. "unicode_decimal": 58919
  28849. }, {
  28850. "icon_id": "24813788",
  28851. "name": "cart-filled",
  28852. "font_class": "cart-filled",
  28853. "unicode": "e629",
  28854. "unicode_decimal": 58921
  28855. }, {
  28856. "icon_id": "24813790",
  28857. "name": "checkbox",
  28858. "font_class": "checkbox",
  28859. "unicode": "e62b",
  28860. "unicode_decimal": 58923
  28861. }, {
  28862. "icon_id": "24813791",
  28863. "name": "checkbox-filled",
  28864. "font_class": "checkbox-filled",
  28865. "unicode": "e62c",
  28866. "unicode_decimal": 58924
  28867. }, {
  28868. "icon_id": "24813794",
  28869. "name": "shop",
  28870. "font_class": "shop",
  28871. "unicode": "e62f",
  28872. "unicode_decimal": 58927
  28873. }, {
  28874. "icon_id": "24813795",
  28875. "name": "headphones",
  28876. "font_class": "headphones",
  28877. "unicode": "e630",
  28878. "unicode_decimal": 58928
  28879. }, {
  28880. "icon_id": "24813796",
  28881. "name": "cart",
  28882. "font_class": "cart",
  28883. "unicode": "e631",
  28884. "unicode_decimal": 58929
  28885. }]
  28886. };
  28887. exports.default = _default;
  28888. /***/ }),
  28889. /* 316 */,
  28890. /* 317 */,
  28891. /* 318 */,
  28892. /* 319 */,
  28893. /* 320 */,
  28894. /* 321 */,
  28895. /* 322 */,
  28896. /* 323 */,
  28897. /* 324 */,
  28898. /* 325 */,
  28899. /* 326 */,
  28900. /* 327 */,
  28901. /* 328 */,
  28902. /* 329 */,
  28903. /* 330 */
  28904. /*!*************************************************************************************!*\
  28905. !*** D:/project/项目模板/uniapp/uni_modules/uni-forms/components/uni-forms/validate.js ***!
  28906. \*************************************************************************************/
  28907. /*! no static exports found */
  28908. /***/ (function(module, exports, __webpack_require__) {
  28909. "use strict";
  28910. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28911. Object.defineProperty(exports, "__esModule", {
  28912. value: true
  28913. });
  28914. exports.default = void 0;
  28915. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  28916. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 331));
  28917. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 332));
  28918. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 334));
  28919. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  28920. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  28921. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  28922. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  28923. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  28924. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  28925. var pattern = {
  28926. email: /^\S+?@\S+?\.\S+?$/,
  28927. idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  28928. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i')
  28929. };
  28930. var FORMAT_MAPPING = {
  28931. "int": 'integer',
  28932. "bool": 'boolean',
  28933. "double": 'number',
  28934. "long": 'number',
  28935. "password": 'string'
  28936. // "fileurls": 'array'
  28937. };
  28938. function formatMessage(args) {
  28939. var resources = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  28940. var defaultMessage = ['label'];
  28941. defaultMessage.forEach(function (item) {
  28942. if (args[item] === undefined) {
  28943. args[item] = '';
  28944. }
  28945. });
  28946. var str = resources;
  28947. for (var key in args) {
  28948. var reg = new RegExp('{' + key + '}');
  28949. str = str.replace(reg, args[key]);
  28950. }
  28951. return str;
  28952. }
  28953. function isEmptyValue(value, type) {
  28954. if (value === undefined || value === null) {
  28955. return true;
  28956. }
  28957. if (typeof value === 'string' && !value) {
  28958. return true;
  28959. }
  28960. if (Array.isArray(value) && !value.length) {
  28961. return true;
  28962. }
  28963. if (type === 'object' && !Object.keys(value).length) {
  28964. return true;
  28965. }
  28966. return false;
  28967. }
  28968. var types = {
  28969. integer: function integer(value) {
  28970. return types.number(value) && parseInt(value, 10) === value;
  28971. },
  28972. string: function string(value) {
  28973. return typeof value === 'string';
  28974. },
  28975. number: function number(value) {
  28976. if (isNaN(value)) {
  28977. return false;
  28978. }
  28979. return typeof value === 'number';
  28980. },
  28981. "boolean": function boolean(value) {
  28982. return typeof value === 'boolean';
  28983. },
  28984. "float": function float(value) {
  28985. return types.number(value) && !types.integer(value);
  28986. },
  28987. array: function array(value) {
  28988. return Array.isArray(value);
  28989. },
  28990. object: function object(value) {
  28991. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  28992. },
  28993. date: function date(value) {
  28994. return value instanceof Date;
  28995. },
  28996. timestamp: function timestamp(value) {
  28997. if (!this.integer(value) || Math.abs(value).toString().length > 16) {
  28998. return false;
  28999. }
  29000. return true;
  29001. },
  29002. file: function file(value) {
  29003. return typeof value.url === 'string';
  29004. },
  29005. email: function email(value) {
  29006. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  29007. },
  29008. url: function url(value) {
  29009. return typeof value === 'string' && !!value.match(pattern.url);
  29010. },
  29011. pattern: function pattern(reg, value) {
  29012. try {
  29013. return new RegExp(reg).test(value);
  29014. } catch (e) {
  29015. return false;
  29016. }
  29017. },
  29018. method: function method(value) {
  29019. return typeof value === 'function';
  29020. },
  29021. idcard: function idcard(value) {
  29022. return typeof value === 'string' && !!value.match(pattern.idcard);
  29023. },
  29024. 'url-https': function urlHttps(value) {
  29025. return this.url(value) && value.startsWith('https://');
  29026. },
  29027. 'url-scheme': function urlScheme(value) {
  29028. return value.startsWith('://');
  29029. },
  29030. 'url-web': function urlWeb(value) {
  29031. return false;
  29032. }
  29033. };
  29034. var RuleValidator = /*#__PURE__*/function () {
  29035. function RuleValidator(message) {
  29036. (0, _classCallCheck2.default)(this, RuleValidator);
  29037. this._message = message;
  29038. }
  29039. (0, _createClass2.default)(RuleValidator, [{
  29040. key: "validateRule",
  29041. value: function () {
  29042. var _validateRule = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fieldKey, fieldValue, value, data, allData) {
  29043. var result, rules, hasRequired, message, i, rule, vt, now, resultExpr;
  29044. return _regenerator.default.wrap(function _callee$(_context) {
  29045. while (1) {
  29046. switch (_context.prev = _context.next) {
  29047. case 0:
  29048. result = null;
  29049. rules = fieldValue.rules;
  29050. hasRequired = rules.findIndex(function (item) {
  29051. return item.required;
  29052. });
  29053. if (!(hasRequired < 0)) {
  29054. _context.next = 8;
  29055. break;
  29056. }
  29057. if (!(value === null || value === undefined)) {
  29058. _context.next = 6;
  29059. break;
  29060. }
  29061. return _context.abrupt("return", result);
  29062. case 6:
  29063. if (!(typeof value === 'string' && !value.length)) {
  29064. _context.next = 8;
  29065. break;
  29066. }
  29067. return _context.abrupt("return", result);
  29068. case 8:
  29069. message = this._message;
  29070. if (!(rules === undefined)) {
  29071. _context.next = 11;
  29072. break;
  29073. }
  29074. return _context.abrupt("return", message['default']);
  29075. case 11:
  29076. i = 0;
  29077. case 12:
  29078. if (!(i < rules.length)) {
  29079. _context.next = 35;
  29080. break;
  29081. }
  29082. rule = rules[i];
  29083. vt = this._getValidateType(rule);
  29084. Object.assign(rule, {
  29085. label: fieldValue.label || "[\"".concat(fieldKey, "\"]")
  29086. });
  29087. if (!RuleValidatorHelper[vt]) {
  29088. _context.next = 20;
  29089. break;
  29090. }
  29091. result = RuleValidatorHelper[vt](rule, value, message);
  29092. if (!(result != null)) {
  29093. _context.next = 20;
  29094. break;
  29095. }
  29096. return _context.abrupt("break", 35);
  29097. case 20:
  29098. if (!rule.validateExpr) {
  29099. _context.next = 26;
  29100. break;
  29101. }
  29102. now = Date.now();
  29103. resultExpr = rule.validateExpr(value, allData, now);
  29104. if (!(resultExpr === false)) {
  29105. _context.next = 26;
  29106. break;
  29107. }
  29108. result = this._getMessage(rule, rule.errorMessage || this._message['default']);
  29109. return _context.abrupt("break", 35);
  29110. case 26:
  29111. if (!rule.validateFunction) {
  29112. _context.next = 32;
  29113. break;
  29114. }
  29115. _context.next = 29;
  29116. return this.validateFunction(rule, value, data, allData, vt);
  29117. case 29:
  29118. result = _context.sent;
  29119. if (!(result !== null)) {
  29120. _context.next = 32;
  29121. break;
  29122. }
  29123. return _context.abrupt("break", 35);
  29124. case 32:
  29125. i++;
  29126. _context.next = 12;
  29127. break;
  29128. case 35:
  29129. if (result !== null) {
  29130. result = message.TAG + result;
  29131. }
  29132. return _context.abrupt("return", result);
  29133. case 37:
  29134. case "end":
  29135. return _context.stop();
  29136. }
  29137. }
  29138. }, _callee, this);
  29139. }));
  29140. function validateRule(_x, _x2, _x3, _x4, _x5) {
  29141. return _validateRule.apply(this, arguments);
  29142. }
  29143. return validateRule;
  29144. }()
  29145. }, {
  29146. key: "validateFunction",
  29147. value: function () {
  29148. var _validateFunction = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(rule, value, data, allData, vt) {
  29149. var result, callbackMessage, res;
  29150. return _regenerator.default.wrap(function _callee2$(_context2) {
  29151. while (1) {
  29152. switch (_context2.prev = _context2.next) {
  29153. case 0:
  29154. result = null;
  29155. _context2.prev = 1;
  29156. callbackMessage = null;
  29157. _context2.next = 5;
  29158. return rule.validateFunction(rule, value, allData || data, function (message) {
  29159. callbackMessage = message;
  29160. });
  29161. case 5:
  29162. res = _context2.sent;
  29163. if (callbackMessage || typeof res === 'string' && res || res === false) {
  29164. result = this._getMessage(rule, callbackMessage || res, vt);
  29165. }
  29166. _context2.next = 12;
  29167. break;
  29168. case 9:
  29169. _context2.prev = 9;
  29170. _context2.t0 = _context2["catch"](1);
  29171. result = this._getMessage(rule, _context2.t0.message, vt);
  29172. case 12:
  29173. return _context2.abrupt("return", result);
  29174. case 13:
  29175. case "end":
  29176. return _context2.stop();
  29177. }
  29178. }
  29179. }, _callee2, this, [[1, 9]]);
  29180. }));
  29181. function validateFunction(_x6, _x7, _x8, _x9, _x10) {
  29182. return _validateFunction.apply(this, arguments);
  29183. }
  29184. return validateFunction;
  29185. }()
  29186. }, {
  29187. key: "_getMessage",
  29188. value: function _getMessage(rule, message, vt) {
  29189. return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default']);
  29190. }
  29191. }, {
  29192. key: "_getValidateType",
  29193. value: function _getValidateType(rule) {
  29194. var result = '';
  29195. if (rule.required) {
  29196. result = 'required';
  29197. } else if (rule.format) {
  29198. result = 'format';
  29199. } else if (rule.arrayType) {
  29200. result = 'arrayTypeFormat';
  29201. } else if (rule.range) {
  29202. result = 'range';
  29203. } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
  29204. result = 'rangeNumber';
  29205. } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
  29206. result = 'rangeLength';
  29207. } else if (rule.pattern) {
  29208. result = 'pattern';
  29209. } else if (rule.validateFunction) {
  29210. result = 'validateFunction';
  29211. }
  29212. return result;
  29213. }
  29214. }]);
  29215. return RuleValidator;
  29216. }();
  29217. var RuleValidatorHelper = {
  29218. required: function required(rule, value, message) {
  29219. if (rule.required && isEmptyValue(value, rule.format || (0, _typeof2.default)(value))) {
  29220. return formatMessage(rule, rule.errorMessage || message.required);
  29221. }
  29222. return null;
  29223. },
  29224. range: function range(rule, value, message) {
  29225. var range = rule.range,
  29226. errorMessage = rule.errorMessage;
  29227. var list = new Array(range.length);
  29228. for (var i = 0; i < range.length; i++) {
  29229. var item = range[i];
  29230. if (types.object(item) && item.value !== undefined) {
  29231. list[i] = item.value;
  29232. } else {
  29233. list[i] = item;
  29234. }
  29235. }
  29236. var result = false;
  29237. if (Array.isArray(value)) {
  29238. result = new Set(value.concat(list)).size === list.length;
  29239. } else {
  29240. if (list.indexOf(value) > -1) {
  29241. result = true;
  29242. }
  29243. }
  29244. if (!result) {
  29245. return formatMessage(rule, errorMessage || message['enum']);
  29246. }
  29247. return null;
  29248. },
  29249. rangeNumber: function rangeNumber(rule, value, message) {
  29250. if (!types.number(value)) {
  29251. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29252. }
  29253. var minimum = rule.minimum,
  29254. maximum = rule.maximum,
  29255. exclusiveMinimum = rule.exclusiveMinimum,
  29256. exclusiveMaximum = rule.exclusiveMaximum;
  29257. var min = exclusiveMinimum ? value <= minimum : value < minimum;
  29258. var max = exclusiveMaximum ? value >= maximum : value > maximum;
  29259. if (minimum !== undefined && min) {
  29260. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ? 'exclusiveMinimum' : 'minimum']);
  29261. } else if (maximum !== undefined && max) {
  29262. return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ? 'exclusiveMaximum' : 'maximum']);
  29263. } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
  29264. return formatMessage(rule, rule.errorMessage || message['number'].range);
  29265. }
  29266. return null;
  29267. },
  29268. rangeLength: function rangeLength(rule, value, message) {
  29269. if (!types.string(value) && !types.array(value)) {
  29270. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29271. }
  29272. var min = rule.minLength;
  29273. var max = rule.maxLength;
  29274. var val = value.length;
  29275. if (min !== undefined && val < min) {
  29276. return formatMessage(rule, rule.errorMessage || message['length'].minLength);
  29277. } else if (max !== undefined && val > max) {
  29278. return formatMessage(rule, rule.errorMessage || message['length'].maxLength);
  29279. } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
  29280. return formatMessage(rule, rule.errorMessage || message['length'].range);
  29281. }
  29282. return null;
  29283. },
  29284. pattern: function pattern(rule, value, message) {
  29285. if (!types['pattern'](rule.pattern, value)) {
  29286. return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
  29287. }
  29288. return null;
  29289. },
  29290. format: function format(rule, value, message) {
  29291. var customTypes = Object.keys(types);
  29292. var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : rule.format || rule.arrayType;
  29293. if (customTypes.indexOf(format) > -1) {
  29294. if (!types[format](value)) {
  29295. return formatMessage(rule, rule.errorMessage || message.typeError);
  29296. }
  29297. }
  29298. return null;
  29299. },
  29300. arrayTypeFormat: function arrayTypeFormat(rule, value, message) {
  29301. if (!Array.isArray(value)) {
  29302. return formatMessage(rule, rule.errorMessage || message.typeError);
  29303. }
  29304. for (var i = 0; i < value.length; i++) {
  29305. var element = value[i];
  29306. var formatResult = this.format(rule, element, message);
  29307. if (formatResult !== null) {
  29308. return formatResult;
  29309. }
  29310. }
  29311. return null;
  29312. }
  29313. };
  29314. var SchemaValidator = /*#__PURE__*/function (_RuleValidator) {
  29315. (0, _inherits2.default)(SchemaValidator, _RuleValidator);
  29316. var _super = _createSuper(SchemaValidator);
  29317. function SchemaValidator(schema, options) {
  29318. var _this;
  29319. (0, _classCallCheck2.default)(this, SchemaValidator);
  29320. _this = _super.call(this, SchemaValidator.message);
  29321. _this._schema = schema;
  29322. _this._options = options || null;
  29323. return _this;
  29324. }
  29325. (0, _createClass2.default)(SchemaValidator, [{
  29326. key: "updateSchema",
  29327. value: function updateSchema(schema) {
  29328. this._schema = schema;
  29329. }
  29330. }, {
  29331. key: "validate",
  29332. value: function () {
  29333. var _validate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data, allData) {
  29334. var result;
  29335. return _regenerator.default.wrap(function _callee3$(_context3) {
  29336. while (1) {
  29337. switch (_context3.prev = _context3.next) {
  29338. case 0:
  29339. result = this._checkFieldInSchema(data);
  29340. if (result) {
  29341. _context3.next = 5;
  29342. break;
  29343. }
  29344. _context3.next = 4;
  29345. return this.invokeValidate(data, false, allData);
  29346. case 4:
  29347. result = _context3.sent;
  29348. case 5:
  29349. return _context3.abrupt("return", result.length ? result[0] : null);
  29350. case 6:
  29351. case "end":
  29352. return _context3.stop();
  29353. }
  29354. }
  29355. }, _callee3, this);
  29356. }));
  29357. function validate(_x11, _x12) {
  29358. return _validate.apply(this, arguments);
  29359. }
  29360. return validate;
  29361. }()
  29362. }, {
  29363. key: "validateAll",
  29364. value: function () {
  29365. var _validateAll = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(data, allData) {
  29366. var result;
  29367. return _regenerator.default.wrap(function _callee4$(_context4) {
  29368. while (1) {
  29369. switch (_context4.prev = _context4.next) {
  29370. case 0:
  29371. result = this._checkFieldInSchema(data);
  29372. if (result) {
  29373. _context4.next = 5;
  29374. break;
  29375. }
  29376. _context4.next = 4;
  29377. return this.invokeValidate(data, true, allData);
  29378. case 4:
  29379. result = _context4.sent;
  29380. case 5:
  29381. return _context4.abrupt("return", result);
  29382. case 6:
  29383. case "end":
  29384. return _context4.stop();
  29385. }
  29386. }
  29387. }, _callee4, this);
  29388. }));
  29389. function validateAll(_x13, _x14) {
  29390. return _validateAll.apply(this, arguments);
  29391. }
  29392. return validateAll;
  29393. }()
  29394. }, {
  29395. key: "validateUpdate",
  29396. value: function () {
  29397. var _validateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(data, allData) {
  29398. var result;
  29399. return _regenerator.default.wrap(function _callee5$(_context5) {
  29400. while (1) {
  29401. switch (_context5.prev = _context5.next) {
  29402. case 0:
  29403. result = this._checkFieldInSchema(data);
  29404. if (result) {
  29405. _context5.next = 5;
  29406. break;
  29407. }
  29408. _context5.next = 4;
  29409. return this.invokeValidateUpdate(data, false, allData);
  29410. case 4:
  29411. result = _context5.sent;
  29412. case 5:
  29413. return _context5.abrupt("return", result.length ? result[0] : null);
  29414. case 6:
  29415. case "end":
  29416. return _context5.stop();
  29417. }
  29418. }
  29419. }, _callee5, this);
  29420. }));
  29421. function validateUpdate(_x15, _x16) {
  29422. return _validateUpdate.apply(this, arguments);
  29423. }
  29424. return validateUpdate;
  29425. }()
  29426. }, {
  29427. key: "invokeValidate",
  29428. value: function () {
  29429. var _invokeValidate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(data, all, allData) {
  29430. var result, schema, key, value, errorMessage;
  29431. return _regenerator.default.wrap(function _callee6$(_context6) {
  29432. while (1) {
  29433. switch (_context6.prev = _context6.next) {
  29434. case 0:
  29435. result = [];
  29436. schema = this._schema;
  29437. _context6.t0 = _regenerator.default.keys(schema);
  29438. case 3:
  29439. if ((_context6.t1 = _context6.t0()).done) {
  29440. _context6.next = 15;
  29441. break;
  29442. }
  29443. key = _context6.t1.value;
  29444. value = schema[key];
  29445. _context6.next = 8;
  29446. return this.validateRule(key, value, data[key], data, allData);
  29447. case 8:
  29448. errorMessage = _context6.sent;
  29449. if (!(errorMessage != null)) {
  29450. _context6.next = 13;
  29451. break;
  29452. }
  29453. result.push({
  29454. key: key,
  29455. errorMessage: errorMessage
  29456. });
  29457. if (all) {
  29458. _context6.next = 13;
  29459. break;
  29460. }
  29461. return _context6.abrupt("break", 15);
  29462. case 13:
  29463. _context6.next = 3;
  29464. break;
  29465. case 15:
  29466. return _context6.abrupt("return", result);
  29467. case 16:
  29468. case "end":
  29469. return _context6.stop();
  29470. }
  29471. }
  29472. }, _callee6, this);
  29473. }));
  29474. function invokeValidate(_x17, _x18, _x19) {
  29475. return _invokeValidate.apply(this, arguments);
  29476. }
  29477. return invokeValidate;
  29478. }()
  29479. }, {
  29480. key: "invokeValidateUpdate",
  29481. value: function () {
  29482. var _invokeValidateUpdate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(data, all, allData) {
  29483. var result, key, errorMessage;
  29484. return _regenerator.default.wrap(function _callee7$(_context7) {
  29485. while (1) {
  29486. switch (_context7.prev = _context7.next) {
  29487. case 0:
  29488. result = [];
  29489. _context7.t0 = _regenerator.default.keys(data);
  29490. case 2:
  29491. if ((_context7.t1 = _context7.t0()).done) {
  29492. _context7.next = 13;
  29493. break;
  29494. }
  29495. key = _context7.t1.value;
  29496. _context7.next = 6;
  29497. return this.validateRule(key, this._schema[key], data[key], data, allData);
  29498. case 6:
  29499. errorMessage = _context7.sent;
  29500. if (!(errorMessage != null)) {
  29501. _context7.next = 11;
  29502. break;
  29503. }
  29504. result.push({
  29505. key: key,
  29506. errorMessage: errorMessage
  29507. });
  29508. if (all) {
  29509. _context7.next = 11;
  29510. break;
  29511. }
  29512. return _context7.abrupt("break", 13);
  29513. case 11:
  29514. _context7.next = 2;
  29515. break;
  29516. case 13:
  29517. return _context7.abrupt("return", result);
  29518. case 14:
  29519. case "end":
  29520. return _context7.stop();
  29521. }
  29522. }
  29523. }, _callee7, this);
  29524. }));
  29525. function invokeValidateUpdate(_x20, _x21, _x22) {
  29526. return _invokeValidateUpdate.apply(this, arguments);
  29527. }
  29528. return invokeValidateUpdate;
  29529. }()
  29530. }, {
  29531. key: "_checkFieldInSchema",
  29532. value: function _checkFieldInSchema(data) {
  29533. var keys = Object.keys(data);
  29534. var keys2 = Object.keys(this._schema);
  29535. if (new Set(keys.concat(keys2)).size === keys2.length) {
  29536. return '';
  29537. }
  29538. var noExistFields = keys.filter(function (key) {
  29539. return keys2.indexOf(key) < 0;
  29540. });
  29541. var errorMessage = formatMessage({
  29542. field: JSON.stringify(noExistFields)
  29543. }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid']);
  29544. return [{
  29545. key: 'invalid',
  29546. errorMessage: errorMessage
  29547. }];
  29548. }
  29549. }]);
  29550. return SchemaValidator;
  29551. }(RuleValidator);
  29552. function Message() {
  29553. return {
  29554. TAG: "",
  29555. default: '验证错误',
  29556. defaultInvalid: '提交的字段{field}在数据库中并不存在',
  29557. validateFunction: '验证无效',
  29558. required: '{label}必填',
  29559. 'enum': '{label}超出范围',
  29560. timestamp: '{label}格式无效',
  29561. whitespace: '{label}不能为空',
  29562. typeError: '{label}类型无效',
  29563. date: {
  29564. format: '{label}日期{value}格式无效',
  29565. parse: '{label}日期无法解析,{value}无效',
  29566. invalid: '{label}日期{value}无效'
  29567. },
  29568. length: {
  29569. minLength: '{label}长度不能少于{minLength}',
  29570. maxLength: '{label}长度不能超过{maxLength}',
  29571. range: '{label}必须介于{minLength}和{maxLength}之间'
  29572. },
  29573. number: {
  29574. minimum: '{label}不能小于{minimum}',
  29575. maximum: '{label}不能大于{maximum}',
  29576. exclusiveMinimum: '{label}不能小于等于{minimum}',
  29577. exclusiveMaximum: '{label}不能大于等于{maximum}',
  29578. range: '{label}必须介于{minimum}and{maximum}之间'
  29579. },
  29580. pattern: {
  29581. mismatch: '{label}格式不匹配'
  29582. }
  29583. };
  29584. }
  29585. SchemaValidator.message = new Message();
  29586. var _default = SchemaValidator;
  29587. exports.default = _default;
  29588. /***/ }),
  29589. /* 331 */
  29590. /*!*********************************************************!*\
  29591. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  29592. \*********************************************************/
  29593. /*! no static exports found */
  29594. /***/ (function(module, exports, __webpack_require__) {
  29595. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  29596. function _inherits(subClass, superClass) {
  29597. if (typeof superClass !== "function" && superClass !== null) {
  29598. throw new TypeError("Super expression must either be null or a function");
  29599. }
  29600. subClass.prototype = Object.create(superClass && superClass.prototype, {
  29601. constructor: {
  29602. value: subClass,
  29603. writable: true,
  29604. configurable: true
  29605. }
  29606. });
  29607. Object.defineProperty(subClass, "prototype", {
  29608. writable: false
  29609. });
  29610. if (superClass) setPrototypeOf(subClass, superClass);
  29611. }
  29612. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29613. /***/ }),
  29614. /* 332 */
  29615. /*!**************************************************************************!*\
  29616. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  29617. \**************************************************************************/
  29618. /*! no static exports found */
  29619. /***/ (function(module, exports, __webpack_require__) {
  29620. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  29621. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 333);
  29622. function _possibleConstructorReturn(self, call) {
  29623. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  29624. return call;
  29625. } else if (call !== void 0) {
  29626. throw new TypeError("Derived constructors may only return object or undefined");
  29627. }
  29628. return assertThisInitialized(self);
  29629. }
  29630. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29631. /***/ }),
  29632. /* 333 */
  29633. /*!**********************************************************************!*\
  29634. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  29635. \**********************************************************************/
  29636. /*! no static exports found */
  29637. /***/ (function(module, exports) {
  29638. function _assertThisInitialized(self) {
  29639. if (self === void 0) {
  29640. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  29641. }
  29642. return self;
  29643. }
  29644. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29645. /***/ }),
  29646. /* 334 */
  29647. /*!***************************************************************!*\
  29648. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  29649. \***************************************************************/
  29650. /*! no static exports found */
  29651. /***/ (function(module, exports) {
  29652. function _getPrototypeOf(o) {
  29653. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  29654. return o.__proto__ || Object.getPrototypeOf(o);
  29655. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29656. return _getPrototypeOf(o);
  29657. }
  29658. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29659. /***/ }),
  29660. /* 335 */
  29661. /*!**********************************************************************************!*\
  29662. !*** D:/project/项目模板/uniapp/uni_modules/uni-forms/components/uni-forms/utils.js ***!
  29663. \**********************************************************************************/
  29664. /*! no static exports found */
  29665. /***/ (function(module, exports, __webpack_require__) {
  29666. "use strict";
  29667. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29668. Object.defineProperty(exports, "__esModule", {
  29669. value: true
  29670. });
  29671. exports.typeFilter = exports.type = exports.setDataValue = exports.realName = exports.rawData = exports.objSet = exports.objGet = exports.name2arr = exports.isRequiredField = exports.isRealName = exports.isNumber = exports.isEqual = exports.isBoolean = exports.getValue = exports.getDataValueType = exports.getDataValue = exports.deepCopy = void 0;
  29672. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  29673. /**
  29674. * 简单处理对象拷贝
  29675. * @param {Obejct} 被拷贝对象
  29676. * @@return {Object} 拷贝对象
  29677. */
  29678. var deepCopy = function deepCopy(val) {
  29679. return JSON.parse(JSON.stringify(val));
  29680. };
  29681. /**
  29682. * 过滤数字类型
  29683. * @param {String} format 数字类型
  29684. * @@return {Boolean} 返回是否为数字类型
  29685. */
  29686. exports.deepCopy = deepCopy;
  29687. var typeFilter = function typeFilter(format) {
  29688. return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
  29689. };
  29690. /**
  29691. * 把 value 转换成指定的类型,用于处理初始值,原因是初始值需要入库不能为 undefined
  29692. * @param {String} key 字段名
  29693. * @param {any} value 字段值
  29694. * @param {Object} rules 表单校验规则
  29695. */
  29696. exports.typeFilter = typeFilter;
  29697. var getValue = function getValue(key, value, rules) {
  29698. var isRuleNumType = rules.find(function (val) {
  29699. return val.format && typeFilter(val.format);
  29700. });
  29701. var isRuleBoolType = rules.find(function (val) {
  29702. return val.format && val.format === 'boolean' || val.format === 'bool';
  29703. });
  29704. // 输入类型为 number
  29705. if (!!isRuleNumType) {
  29706. if (!value && value !== 0) {
  29707. value = null;
  29708. } else {
  29709. value = isNumber(Number(value)) ? Number(value) : value;
  29710. }
  29711. }
  29712. // 输入类型为 boolean
  29713. if (!!isRuleBoolType) {
  29714. value = isBoolean(value) ? value : false;
  29715. }
  29716. return value;
  29717. };
  29718. /**
  29719. * 获取表单数据
  29720. * @param {String|Array} name 真实名称,需要使用 realName 获取
  29721. * @param {Object} data 原始数据
  29722. * @param {any} value 需要设置的值
  29723. */
  29724. exports.getValue = getValue;
  29725. var setDataValue = function setDataValue(field, formdata, value) {
  29726. formdata[field] = value;
  29727. return value || '';
  29728. };
  29729. /**
  29730. * 获取表单数据
  29731. * @param {String|Array} field 真实名称,需要使用 realName 获取
  29732. * @param {Object} data 原始数据
  29733. */
  29734. exports.setDataValue = setDataValue;
  29735. var getDataValue = function getDataValue(field, data) {
  29736. return objGet(data, field);
  29737. };
  29738. /**
  29739. * 获取表单类型
  29740. * @param {String|Array} field 真实名称,需要使用 realName 获取
  29741. */
  29742. exports.getDataValue = getDataValue;
  29743. var getDataValueType = function getDataValueType(field, data) {
  29744. var value = getDataValue(field, data);
  29745. return {
  29746. type: type(value),
  29747. value: value
  29748. };
  29749. };
  29750. /**
  29751. * 获取表单可用的真实name
  29752. * @param {String|Array} name 表单name
  29753. * @@return {String} 表单可用的真实name
  29754. */
  29755. exports.getDataValueType = getDataValueType;
  29756. var realName = function realName(name) {
  29757. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29758. var base_name = _basePath(name);
  29759. if ((0, _typeof2.default)(base_name) === 'object' && Array.isArray(base_name) && base_name.length > 1) {
  29760. var realname = base_name.reduce(function (a, b) {
  29761. return a += "#".concat(b);
  29762. }, '_formdata_');
  29763. return realname;
  29764. }
  29765. return base_name[0] || name;
  29766. };
  29767. /**
  29768. * 判断是否表单可用的真实name
  29769. * @param {String|Array} name 表单name
  29770. * @@return {String} 表单可用的真实name
  29771. */
  29772. exports.realName = realName;
  29773. var isRealName = function isRealName(name) {
  29774. var reg = /^_formdata_#*/;
  29775. return reg.test(name);
  29776. };
  29777. /**
  29778. * 获取表单数据的原始格式
  29779. * @@return {Object|Array} object 需要解析的数据
  29780. */
  29781. exports.isRealName = isRealName;
  29782. var rawData = function rawData() {
  29783. var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  29784. var name = arguments.length > 1 ? arguments[1] : undefined;
  29785. var newData = JSON.parse(JSON.stringify(object));
  29786. var formData = {};
  29787. for (var i in newData) {
  29788. var path = name2arr(i);
  29789. objSet(formData, path, newData[i]);
  29790. }
  29791. return formData;
  29792. };
  29793. /**
  29794. * 真实name还原为 array
  29795. * @param {*} name
  29796. */
  29797. exports.rawData = rawData;
  29798. var name2arr = function name2arr(name) {
  29799. var field = name.replace('_formdata_#', '');
  29800. field = field.split('#').map(function (v) {
  29801. return isNumber(v) ? Number(v) : v;
  29802. });
  29803. return field;
  29804. };
  29805. /**
  29806. * 对象中设置值
  29807. * @param {Object|Array} object 源数据
  29808. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  29809. * @param {String} value 需要设置的值
  29810. */
  29811. exports.name2arr = name2arr;
  29812. var objSet = function objSet(object, path, value) {
  29813. if ((0, _typeof2.default)(object) !== 'object') return object;
  29814. _basePath(path).reduce(function (o, k, i, _) {
  29815. if (i === _.length - 1) {
  29816. // 若遍历结束直接赋值
  29817. o[k] = value;
  29818. return null;
  29819. } else if (k in o) {
  29820. // 若存在对应路径,则返回找到的对象,进行下一次遍历
  29821. return o[k];
  29822. } else {
  29823. // 若不存在对应路径,则创建对应对象,若下一路径是数字,新对象赋值为空数组,否则赋值为空对象
  29824. o[k] = /^[0-9]{1,}$/.test(_[i + 1]) ? [] : {};
  29825. return o[k];
  29826. }
  29827. }, object);
  29828. // 返回object
  29829. return object;
  29830. };
  29831. // 处理 path, path有三种形式:'a[0].b.c'、'a.0.b.c' 和 ['a','0','b','c'],需要统一处理成数组,便于后续使用
  29832. exports.objSet = objSet;
  29833. function _basePath(path) {
  29834. // 若是数组,则直接返回
  29835. if (Array.isArray(path)) return path;
  29836. // 若有 '[',']',则替换成将 '[' 替换成 '.',去掉 ']'
  29837. return path.replace(/\[/g, '.').replace(/\]/g, '').split('.');
  29838. }
  29839. /**
  29840. * 从对象中获取值
  29841. * @param {Object|Array} object 源数据
  29842. * @param {String| Array} path 'a.b.c' 或 ['a',0,'b','c']
  29843. * @param {String} defaultVal 如果无法从调用链中获取值的默认值
  29844. */
  29845. var objGet = function objGet(object, path) {
  29846. var defaultVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'undefined';
  29847. // 先将path处理成统一格式
  29848. var newPath = _basePath(path);
  29849. // 递归处理,返回最后结果
  29850. var val = newPath.reduce(function (o, k) {
  29851. return (o || {})[k];
  29852. }, object);
  29853. return !val || val !== undefined ? val : defaultVal;
  29854. };
  29855. /**
  29856. * 是否为 number 类型
  29857. * @param {any} num 需要判断的值
  29858. * @return {Boolean} 是否为 number
  29859. */
  29860. exports.objGet = objGet;
  29861. var isNumber = function isNumber(num) {
  29862. return !isNaN(Number(num));
  29863. };
  29864. /**
  29865. * 是否为 boolean 类型
  29866. * @param {any} bool 需要判断的值
  29867. * @return {Boolean} 是否为 boolean
  29868. */
  29869. exports.isNumber = isNumber;
  29870. var isBoolean = function isBoolean(bool) {
  29871. return typeof bool === 'boolean';
  29872. };
  29873. /**
  29874. * 是否有必填字段
  29875. * @param {Object} rules 规则
  29876. * @return {Boolean} 是否有必填字段
  29877. */
  29878. exports.isBoolean = isBoolean;
  29879. var isRequiredField = function isRequiredField(rules) {
  29880. var isNoField = false;
  29881. for (var i = 0; i < rules.length; i++) {
  29882. var ruleData = rules[i];
  29883. if (ruleData.required) {
  29884. isNoField = true;
  29885. break;
  29886. }
  29887. }
  29888. return isNoField;
  29889. };
  29890. /**
  29891. * 获取数据类型
  29892. * @param {Any} obj 需要获取数据类型的值
  29893. */
  29894. exports.isRequiredField = isRequiredField;
  29895. var type = function type(obj) {
  29896. var class2type = {};
  29897. // 生成class2type映射
  29898. "Boolean Number String Function Array Date RegExp Object Error".split(" ").map(function (item, index) {
  29899. class2type["[object " + item + "]"] = item.toLowerCase();
  29900. });
  29901. if (obj == null) {
  29902. return obj + "";
  29903. }
  29904. return (0, _typeof2.default)(obj) === "object" || typeof obj === "function" ? class2type[Object.prototype.toString.call(obj)] || "object" : (0, _typeof2.default)(obj);
  29905. };
  29906. /**
  29907. * 判断两个值是否相等
  29908. * @param {any} a 值
  29909. * @param {any} b 值
  29910. * @return {Boolean} 是否相等
  29911. */
  29912. exports.type = type;
  29913. var isEqual = function isEqual(a, b) {
  29914. //如果a和b本来就全等
  29915. if (a === b) {
  29916. //判断是否为0和-0
  29917. return a !== 0 || 1 / a === 1 / b;
  29918. }
  29919. //判断是否为null和undefined
  29920. if (a == null || b == null) {
  29921. return a === b;
  29922. }
  29923. //接下来判断a和b的数据类型
  29924. var classNameA = toString.call(a),
  29925. classNameB = toString.call(b);
  29926. //如果数据类型不相等,则返回false
  29927. if (classNameA !== classNameB) {
  29928. return false;
  29929. }
  29930. //如果数据类型相等,再根据不同数据类型分别判断
  29931. switch (classNameA) {
  29932. case '[object RegExp]':
  29933. case '[object String]':
  29934. //进行字符串转换比较
  29935. return '' + a === '' + b;
  29936. case '[object Number]':
  29937. //进行数字转换比较,判断是否为NaN
  29938. if (+a !== +a) {
  29939. return +b !== +b;
  29940. }
  29941. //判断是否为0或-0
  29942. return +a === 0 ? 1 / +a === 1 / b : +a === +b;
  29943. case '[object Date]':
  29944. case '[object Boolean]':
  29945. return +a === +b;
  29946. }
  29947. //如果是对象类型
  29948. if (classNameA == '[object Object]') {
  29949. //获取a和b的属性长度
  29950. var propsA = Object.getOwnPropertyNames(a),
  29951. propsB = Object.getOwnPropertyNames(b);
  29952. if (propsA.length != propsB.length) {
  29953. return false;
  29954. }
  29955. for (var i = 0; i < propsA.length; i++) {
  29956. var propName = propsA[i];
  29957. //如果对应属性对应值不相等,则返回false
  29958. if (a[propName] !== b[propName]) {
  29959. return false;
  29960. }
  29961. }
  29962. return true;
  29963. }
  29964. //如果是数组类型
  29965. if (classNameA == '[object Array]') {
  29966. if (a.toString() == b.toString()) {
  29967. return true;
  29968. }
  29969. return false;
  29970. }
  29971. };
  29972. exports.isEqual = isEqual;
  29973. /***/ }),
  29974. /* 336 */,
  29975. /* 337 */,
  29976. /* 338 */,
  29977. /* 339 */,
  29978. /* 340 */,
  29979. /* 341 */,
  29980. /* 342 */,
  29981. /* 343 */,
  29982. /* 344 */,
  29983. /* 345 */,
  29984. /* 346 */,
  29985. /* 347 */,
  29986. /* 348 */,
  29987. /* 349 */,
  29988. /* 350 */,
  29989. /* 351 */,
  29990. /* 352 */,
  29991. /* 353 */,
  29992. /* 354 */,
  29993. /* 355 */,
  29994. /* 356 */,
  29995. /* 357 */
  29996. /*!************************************************************************************!*\
  29997. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  29998. \************************************************************************************/
  29999. /*! no static exports found */
  30000. /***/ (function(module, exports, __webpack_require__) {
  30001. "use strict";
  30002. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  30003. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30004. Object.defineProperty(exports, "__esModule", {
  30005. value: true
  30006. });
  30007. exports.default = void 0;
  30008. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 35));
  30009. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  30010. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30011. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  30012. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 37));
  30013. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  30014. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  30015. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  30016. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 331));
  30017. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 332));
  30018. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 334));
  30019. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 358));
  30020. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  30021. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 360));
  30022. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e33) { throw _e33; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e34) { didErr = true; err = _e34; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  30023. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  30024. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  30025. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  30026. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  30027. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  30028. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  30029. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  30030. function n(e) {
  30031. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  30032. }
  30033. function s(e, t, n) {
  30034. return e(n = {
  30035. path: t,
  30036. exports: {},
  30037. require: function require(e, t) {
  30038. return function () {
  30039. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  30040. }(null == t && n.path);
  30041. }
  30042. }, n.exports), n.exports;
  30043. }
  30044. var r = s(function (e, t) {
  30045. var n;
  30046. e.exports = (n = n || function (e, t) {
  30047. var n = Object.create || function () {
  30048. function e() {}
  30049. return function (t) {
  30050. var n;
  30051. return e.prototype = t, n = new e(), e.prototype = null, n;
  30052. };
  30053. }(),
  30054. s = {},
  30055. r = s.lib = {},
  30056. i = r.Base = {
  30057. extend: function extend(e) {
  30058. var t = n(this);
  30059. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  30060. t.$super.init.apply(this, arguments);
  30061. }), t.init.prototype = t, t.$super = this, t;
  30062. },
  30063. create: function create() {
  30064. var e = this.extend();
  30065. return e.init.apply(e, arguments), e;
  30066. },
  30067. init: function init() {},
  30068. mixIn: function mixIn(e) {
  30069. for (var t in e) {
  30070. e.hasOwnProperty(t) && (this[t] = e[t]);
  30071. }
  30072. e.hasOwnProperty("toString") && (this.toString = e.toString);
  30073. },
  30074. clone: function clone() {
  30075. return this.init.prototype.extend(this);
  30076. }
  30077. },
  30078. o = r.WordArray = i.extend({
  30079. init: function init(e, n) {
  30080. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  30081. },
  30082. toString: function toString(e) {
  30083. return (e || c).stringify(this);
  30084. },
  30085. concat: function concat(e) {
  30086. var t = this.words,
  30087. n = e.words,
  30088. s = this.sigBytes,
  30089. r = e.sigBytes;
  30090. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  30091. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  30092. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  30093. } else for (i = 0; i < r; i += 4) {
  30094. t[s + i >>> 2] = n[i >>> 2];
  30095. }
  30096. return this.sigBytes += r, this;
  30097. },
  30098. clamp: function clamp() {
  30099. var t = this.words,
  30100. n = this.sigBytes;
  30101. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  30102. },
  30103. clone: function clone() {
  30104. var e = i.clone.call(this);
  30105. return e.words = this.words.slice(0), e;
  30106. },
  30107. random: function random(t) {
  30108. for (var n, s = [], r = function r(t) {
  30109. t = t;
  30110. var n = 987654321,
  30111. s = 4294967295;
  30112. return function () {
  30113. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  30114. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  30115. };
  30116. }, i = 0; i < t; i += 4) {
  30117. var a = r(4294967296 * (n || e.random()));
  30118. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  30119. }
  30120. return new o.init(s, t);
  30121. }
  30122. }),
  30123. a = s.enc = {},
  30124. c = a.Hex = {
  30125. stringify: function stringify(e) {
  30126. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30127. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30128. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  30129. }
  30130. return s.join("");
  30131. },
  30132. parse: function parse(e) {
  30133. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  30134. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  30135. }
  30136. return new o.init(n, t / 2);
  30137. }
  30138. },
  30139. u = a.Latin1 = {
  30140. stringify: function stringify(e) {
  30141. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  30142. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  30143. s.push(String.fromCharCode(i));
  30144. }
  30145. return s.join("");
  30146. },
  30147. parse: function parse(e) {
  30148. for (var t = e.length, n = [], s = 0; s < t; s++) {
  30149. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  30150. }
  30151. return new o.init(n, t);
  30152. }
  30153. },
  30154. l = a.Utf8 = {
  30155. stringify: function stringify(e) {
  30156. try {
  30157. return decodeURIComponent(escape(u.stringify(e)));
  30158. } catch (e) {
  30159. throw new Error("Malformed UTF-8 data");
  30160. }
  30161. },
  30162. parse: function parse(e) {
  30163. return u.parse(unescape(encodeURIComponent(e)));
  30164. }
  30165. },
  30166. h = r.BufferedBlockAlgorithm = i.extend({
  30167. reset: function reset() {
  30168. this._data = new o.init(), this._nDataBytes = 0;
  30169. },
  30170. _append: function _append(e) {
  30171. "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  30172. },
  30173. _process: function _process(t) {
  30174. var n = this._data,
  30175. s = n.words,
  30176. r = n.sigBytes,
  30177. i = this.blockSize,
  30178. a = r / (4 * i),
  30179. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  30180. u = e.min(4 * c, r);
  30181. if (c) {
  30182. for (var l = 0; l < c; l += i) {
  30183. this._doProcessBlock(s, l);
  30184. }
  30185. var h = s.splice(0, c);
  30186. n.sigBytes -= u;
  30187. }
  30188. return new o.init(h, u);
  30189. },
  30190. clone: function clone() {
  30191. var e = i.clone.call(this);
  30192. return e._data = this._data.clone(), e;
  30193. },
  30194. _minBufferSize: 0
  30195. });
  30196. r.Hasher = h.extend({
  30197. cfg: i.extend(),
  30198. init: function init(e) {
  30199. this.cfg = this.cfg.extend(e), this.reset();
  30200. },
  30201. reset: function reset() {
  30202. h.reset.call(this), this._doReset();
  30203. },
  30204. update: function update(e) {
  30205. return this._append(e), this._process(), this;
  30206. },
  30207. finalize: function finalize(e) {
  30208. return e && this._append(e), this._doFinalize();
  30209. },
  30210. blockSize: 16,
  30211. _createHelper: function _createHelper(e) {
  30212. return function (t, n) {
  30213. return new e.init(n).finalize(t);
  30214. };
  30215. },
  30216. _createHmacHelper: function _createHmacHelper(e) {
  30217. return function (t, n) {
  30218. return new d.HMAC.init(e, n).finalize(t);
  30219. };
  30220. }
  30221. });
  30222. var d = s.algo = {};
  30223. return s;
  30224. }(Math), n);
  30225. }),
  30226. i = r,
  30227. o = (s(function (e, t) {
  30228. var n;
  30229. e.exports = (n = i, function (e) {
  30230. var t = n,
  30231. s = t.lib,
  30232. r = s.WordArray,
  30233. i = s.Hasher,
  30234. o = t.algo,
  30235. a = [];
  30236. !function () {
  30237. for (var t = 0; t < 64; t++) {
  30238. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  30239. }
  30240. }();
  30241. var c = o.MD5 = i.extend({
  30242. _doReset: function _doReset() {
  30243. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  30244. },
  30245. _doProcessBlock: function _doProcessBlock(e, t) {
  30246. for (var n = 0; n < 16; n++) {
  30247. var s = t + n,
  30248. r = e[s];
  30249. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  30250. }
  30251. var i = this._hash.words,
  30252. o = e[t + 0],
  30253. c = e[t + 1],
  30254. f = e[t + 2],
  30255. p = e[t + 3],
  30256. g = e[t + 4],
  30257. m = e[t + 5],
  30258. y = e[t + 6],
  30259. _ = e[t + 7],
  30260. w = e[t + 8],
  30261. v = e[t + 9],
  30262. S = e[t + 10],
  30263. k = e[t + 11],
  30264. I = e[t + 12],
  30265. b = e[t + 13],
  30266. T = e[t + 14],
  30267. A = e[t + 15],
  30268. C = i[0],
  30269. P = i[1],
  30270. E = i[2],
  30271. O = i[3];
  30272. C = u(C, P, E, O, o, 7, a[0]), O = u(O, C, P, E, c, 12, a[1]), E = u(E, O, C, P, f, 17, a[2]), P = u(P, E, O, C, p, 22, a[3]), C = u(C, P, E, O, g, 7, a[4]), O = u(O, C, P, E, m, 12, a[5]), E = u(E, O, C, P, y, 17, a[6]), P = u(P, E, O, C, _, 22, a[7]), C = u(C, P, E, O, w, 7, a[8]), O = u(O, C, P, E, v, 12, a[9]), E = u(E, O, C, P, S, 17, a[10]), P = u(P, E, O, C, k, 22, a[11]), C = u(C, P, E, O, I, 7, a[12]), O = u(O, C, P, E, b, 12, a[13]), E = u(E, O, C, P, T, 17, a[14]), C = l(C, P = u(P, E, O, C, A, 22, a[15]), E, O, c, 5, a[16]), O = l(O, C, P, E, y, 9, a[17]), E = l(E, O, C, P, k, 14, a[18]), P = l(P, E, O, C, o, 20, a[19]), C = l(C, P, E, O, m, 5, a[20]), O = l(O, C, P, E, S, 9, a[21]), E = l(E, O, C, P, A, 14, a[22]), P = l(P, E, O, C, g, 20, a[23]), C = l(C, P, E, O, v, 5, a[24]), O = l(O, C, P, E, T, 9, a[25]), E = l(E, O, C, P, p, 14, a[26]), P = l(P, E, O, C, w, 20, a[27]), C = l(C, P, E, O, b, 5, a[28]), O = l(O, C, P, E, f, 9, a[29]), E = l(E, O, C, P, _, 14, a[30]), C = h(C, P = l(P, E, O, C, I, 20, a[31]), E, O, m, 4, a[32]), O = h(O, C, P, E, w, 11, a[33]), E = h(E, O, C, P, k, 16, a[34]), P = h(P, E, O, C, T, 23, a[35]), C = h(C, P, E, O, c, 4, a[36]), O = h(O, C, P, E, g, 11, a[37]), E = h(E, O, C, P, _, 16, a[38]), P = h(P, E, O, C, S, 23, a[39]), C = h(C, P, E, O, b, 4, a[40]), O = h(O, C, P, E, o, 11, a[41]), E = h(E, O, C, P, p, 16, a[42]), P = h(P, E, O, C, y, 23, a[43]), C = h(C, P, E, O, v, 4, a[44]), O = h(O, C, P, E, I, 11, a[45]), E = h(E, O, C, P, A, 16, a[46]), C = d(C, P = h(P, E, O, C, f, 23, a[47]), E, O, o, 6, a[48]), O = d(O, C, P, E, _, 10, a[49]), E = d(E, O, C, P, T, 15, a[50]), P = d(P, E, O, C, m, 21, a[51]), C = d(C, P, E, O, I, 6, a[52]), O = d(O, C, P, E, p, 10, a[53]), E = d(E, O, C, P, S, 15, a[54]), P = d(P, E, O, C, c, 21, a[55]), C = d(C, P, E, O, w, 6, a[56]), O = d(O, C, P, E, A, 10, a[57]), E = d(E, O, C, P, y, 15, a[58]), P = d(P, E, O, C, b, 21, a[59]), C = d(C, P, E, O, g, 6, a[60]), O = d(O, C, P, E, k, 10, a[61]), E = d(E, O, C, P, f, 15, a[62]), P = d(P, E, O, C, v, 21, a[63]), i[0] = i[0] + C | 0, i[1] = i[1] + P | 0, i[2] = i[2] + E | 0, i[3] = i[3] + O | 0;
  30273. },
  30274. _doFinalize: function _doFinalize() {
  30275. var t = this._data,
  30276. n = t.words,
  30277. s = 8 * this._nDataBytes,
  30278. r = 8 * t.sigBytes;
  30279. n[r >>> 5] |= 128 << 24 - r % 32;
  30280. var i = e.floor(s / 4294967296),
  30281. o = s;
  30282. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  30283. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  30284. var l = c[u];
  30285. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
  30286. }
  30287. return a;
  30288. },
  30289. clone: function clone() {
  30290. var e = i.clone.call(this);
  30291. return e._hash = this._hash.clone(), e;
  30292. }
  30293. });
  30294. function u(e, t, n, s, r, i, o) {
  30295. var a = e + (t & n | ~t & s) + r + o;
  30296. return (a << i | a >>> 32 - i) + t;
  30297. }
  30298. function l(e, t, n, s, r, i, o) {
  30299. var a = e + (t & s | n & ~s) + r + o;
  30300. return (a << i | a >>> 32 - i) + t;
  30301. }
  30302. function h(e, t, n, s, r, i, o) {
  30303. var a = e + (t ^ n ^ s) + r + o;
  30304. return (a << i | a >>> 32 - i) + t;
  30305. }
  30306. function d(e, t, n, s, r, i, o) {
  30307. var a = e + (n ^ (t | ~s)) + r + o;
  30308. return (a << i | a >>> 32 - i) + t;
  30309. }
  30310. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  30311. }(Math), n.MD5);
  30312. }), s(function (e, t) {
  30313. var n;
  30314. e.exports = (n = i, void function () {
  30315. var e = n,
  30316. t = e.lib.Base,
  30317. s = e.enc.Utf8;
  30318. e.algo.HMAC = t.extend({
  30319. init: function init(e, t) {
  30320. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  30321. var n = e.blockSize,
  30322. r = 4 * n;
  30323. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  30324. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  30325. a[u] ^= 1549556828, c[u] ^= 909522486;
  30326. }
  30327. i.sigBytes = o.sigBytes = r, this.reset();
  30328. },
  30329. reset: function reset() {
  30330. var e = this._hasher;
  30331. e.reset(), e.update(this._iKey);
  30332. },
  30333. update: function update(e) {
  30334. return this._hasher.update(e), this;
  30335. },
  30336. finalize: function finalize(e) {
  30337. var t = this._hasher,
  30338. n = t.finalize(e);
  30339. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  30340. }
  30341. });
  30342. }());
  30343. }), s(function (e, t) {
  30344. e.exports = i.HmacMD5;
  30345. })),
  30346. a = s(function (e, t) {
  30347. e.exports = i.enc.Utf8;
  30348. }),
  30349. c = s(function (e, t) {
  30350. var n;
  30351. e.exports = (n = i, function () {
  30352. var e = n,
  30353. t = e.lib.WordArray;
  30354. function s(e, n, s) {
  30355. for (var r = [], i = 0, o = 0; o < n; o++) {
  30356. if (o % 4) {
  30357. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  30358. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  30359. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  30360. }
  30361. }
  30362. return t.create(r, i);
  30363. }
  30364. e.enc.Base64 = {
  30365. stringify: function stringify(e) {
  30366. var t = e.words,
  30367. n = e.sigBytes,
  30368. s = this._map;
  30369. e.clamp();
  30370. for (var r = [], i = 0; i < n; i += 3) {
  30371. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  30372. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  30373. }
  30374. }
  30375. var c = s.charAt(64);
  30376. if (c) for (; r.length % 4;) {
  30377. r.push(c);
  30378. }
  30379. return r.join("");
  30380. },
  30381. parse: function parse(e) {
  30382. var t = e.length,
  30383. n = this._map,
  30384. r = this._reverseMap;
  30385. if (!r) {
  30386. r = this._reverseMap = [];
  30387. for (var i = 0; i < n.length; i++) {
  30388. r[n.charCodeAt(i)] = i;
  30389. }
  30390. }
  30391. var o = n.charAt(64);
  30392. if (o) {
  30393. var a = e.indexOf(o);
  30394. -1 !== a && (t = a);
  30395. }
  30396. return s(e, t, r);
  30397. },
  30398. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  30399. };
  30400. }(), n.enc.Base64);
  30401. });
  30402. var u = "FUNCTION",
  30403. l = "OBJECT",
  30404. h = "CLIENT_DB";
  30405. function d(e) {
  30406. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  30407. }
  30408. function f(e) {
  30409. return "object" === d(e);
  30410. }
  30411. function p(e) {
  30412. return "function" == typeof e;
  30413. }
  30414. function g(e) {
  30415. return function () {
  30416. try {
  30417. return e.apply(e, arguments);
  30418. } catch (e) {
  30419. console.error(e);
  30420. }
  30421. };
  30422. }
  30423. function m(e) {
  30424. return e && "string" == typeof e ? JSON.parse(e) : e;
  30425. }
  30426. var y = "development" === "development",
  30427. _ = "mp-weixin",
  30428. w = "true" === undefined || !0 === undefined,
  30429. v = m([]),
  30430. S = "h5" === _ ? "web" : "app-plus" === _ ? "app" : _,
  30431. k = m(undefined),
  30432. I = m([]) || [],
  30433. b = true;
  30434. var T = "";
  30435. try {
  30436. {
  30437. var _e2 = __webpack_require__(/*! uni-stat-config */ 361).default || __webpack_require__(/*! uni-stat-config */ 361);
  30438. T = _e2.appid;
  30439. }
  30440. } catch (e) {}
  30441. var A = {};
  30442. function C(e) {
  30443. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  30444. var n, s;
  30445. return n = A, s = e, Object.prototype.hasOwnProperty.call(n, s) || (A[e] = t), A[e];
  30446. }
  30447. "app" === S && (A = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  30448. var P = ["invoke", "success", "fail", "complete"],
  30449. E = C("_globalUniCloudInterceptor");
  30450. function O(e, t) {
  30451. E[e] || (E[e] = {}), f(t) && Object.keys(t).forEach(function (n) {
  30452. P.indexOf(n) > -1 && function (e, t, n) {
  30453. var s = E[e][t];
  30454. s || (s = E[e][t] = []), -1 === s.indexOf(n) && p(n) && s.push(n);
  30455. }(e, n, t[n]);
  30456. });
  30457. }
  30458. function x(e, t) {
  30459. E[e] || (E[e] = {}), f(t) ? Object.keys(t).forEach(function (n) {
  30460. P.indexOf(n) > -1 && function (e, t, n) {
  30461. var s = E[e][t];
  30462. if (!s) return;
  30463. var r = s.indexOf(n);
  30464. r > -1 && s.splice(r, 1);
  30465. }(e, n, t[n]);
  30466. }) : delete E[e];
  30467. }
  30468. function U(e, t) {
  30469. return e && 0 !== e.length ? e.reduce(function (e, n) {
  30470. return e.then(function () {
  30471. return n(t);
  30472. });
  30473. }, Promise.resolve()) : Promise.resolve();
  30474. }
  30475. function R(e, t) {
  30476. return E[e] && E[e][t] || [];
  30477. }
  30478. function L(e) {
  30479. O("callObject", e);
  30480. }
  30481. var N = C("_globalUniCloudListener"),
  30482. D = "response",
  30483. F = "needLogin",
  30484. q = "refreshToken",
  30485. K = "clientdb",
  30486. j = "cloudfunction",
  30487. M = "cloudobject";
  30488. function B(e) {
  30489. return N[e] || (N[e] = []), N[e];
  30490. }
  30491. function $(e, t) {
  30492. var n = B(e);
  30493. n.includes(t) || n.push(t);
  30494. }
  30495. function W(e, t) {
  30496. var n = B(e),
  30497. s = n.indexOf(t);
  30498. -1 !== s && n.splice(s, 1);
  30499. }
  30500. function z(e, t) {
  30501. var n = B(e);
  30502. for (var _e3 = 0; _e3 < n.length; _e3++) {
  30503. (0, n[_e3])(t);
  30504. }
  30505. }
  30506. var J,
  30507. H = !1;
  30508. function G() {
  30509. return J || (J = new Promise(function (e) {
  30510. H && e(), function t() {
  30511. if ("function" == typeof getCurrentPages) {
  30512. var _t2 = getCurrentPages();
  30513. _t2 && _t2[0] && (H = !0, e());
  30514. }
  30515. H || setTimeout(function () {
  30516. t();
  30517. }, 30);
  30518. }();
  30519. }), J);
  30520. }
  30521. function V(e) {
  30522. var t = {};
  30523. for (var _n2 in e) {
  30524. var _s2 = e[_n2];
  30525. p(_s2) && (t[_n2] = g(_s2));
  30526. }
  30527. return t;
  30528. }
  30529. function Y(e, t) {
  30530. return t ? function (n) {
  30531. var _this = this;
  30532. var s = !1;
  30533. if ("callFunction" === t) {
  30534. var _e4 = n && n.type || u;
  30535. s = _e4 !== u;
  30536. }
  30537. var r = "callFunction" === t && !s;
  30538. var i;
  30539. i = this.isReady ? Promise.resolve() : this.initUniCloud, n = n || {};
  30540. var _V = V(n),
  30541. o = _V.success,
  30542. a = _V.fail,
  30543. c = _V.complete,
  30544. l = i.then(function () {
  30545. return s ? Promise.resolve() : U(R(t, "invoke"), n);
  30546. }).then(function () {
  30547. return e.call(_this, n);
  30548. }).then(function (e) {
  30549. return s ? Promise.resolve(e) : U(R(t, "success"), e).then(function () {
  30550. return U(R(t, "complete"), e);
  30551. }).then(function () {
  30552. return r && z(D, {
  30553. type: j,
  30554. content: e
  30555. }), Promise.resolve(e);
  30556. });
  30557. }, function (e) {
  30558. return s ? Promise.reject(e) : U(R(t, "fail"), e).then(function () {
  30559. return U(R(t, "complete"), e);
  30560. }).then(function () {
  30561. return z(D, {
  30562. type: j,
  30563. content: e
  30564. }), Promise.reject(e);
  30565. });
  30566. });
  30567. if (!(o || a || c)) return l;
  30568. l.then(function (e) {
  30569. o && o(e), c && c(e), r && z(D, {
  30570. type: j,
  30571. content: e
  30572. });
  30573. }, function (e) {
  30574. a && a(e), c && c(e), r && z(D, {
  30575. type: j,
  30576. content: e
  30577. });
  30578. });
  30579. } : function (t) {
  30580. t = t || {};
  30581. var _V2 = V(t),
  30582. n = _V2.success,
  30583. s = _V2.fail,
  30584. r = _V2.complete;
  30585. if (!(n || s || r)) return e.call(this, t);
  30586. e.call(this, t).then(function (e) {
  30587. n && n(e), r && r(e);
  30588. }, function (e) {
  30589. s && s(e), r && r(e);
  30590. });
  30591. };
  30592. }
  30593. var Q = /*#__PURE__*/function (_Error) {
  30594. (0, _inherits2.default)(Q, _Error);
  30595. var _super = _createSuper(Q);
  30596. function Q(e) {
  30597. var _this2;
  30598. (0, _classCallCheck2.default)(this, Q);
  30599. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  30600. return _this2;
  30601. }
  30602. (0, _createClass2.default)(Q, [{
  30603. key: "toJson",
  30604. value: function toJson() {
  30605. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  30606. if (!(e >= 10)) return e++, {
  30607. errCode: this.errCode,
  30608. errMsg: this.errMsg,
  30609. errSubject: this.errSubject,
  30610. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  30611. };
  30612. }
  30613. }]);
  30614. return Q;
  30615. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  30616. var X = {
  30617. request: function request(e) {
  30618. return uni.request(e);
  30619. },
  30620. uploadFile: function uploadFile(e) {
  30621. return uni.uploadFile(e);
  30622. },
  30623. setStorageSync: function setStorageSync(e, t) {
  30624. return uni.setStorageSync(e, t);
  30625. },
  30626. getStorageSync: function getStorageSync(e) {
  30627. return uni.getStorageSync(e);
  30628. },
  30629. removeStorageSync: function removeStorageSync(e) {
  30630. return uni.removeStorageSync(e);
  30631. },
  30632. clearStorageSync: function clearStorageSync() {
  30633. return uni.clearStorageSync();
  30634. }
  30635. };
  30636. function Z() {
  30637. return {
  30638. token: X.getStorageSync("uni_id_token") || X.getStorageSync("uniIdToken"),
  30639. tokenExpired: X.getStorageSync("uni_id_token_expired")
  30640. };
  30641. }
  30642. function ee() {
  30643. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30644. e = _ref.token,
  30645. t = _ref.tokenExpired;
  30646. e && X.setStorageSync("uni_id_token", e), t && X.setStorageSync("uni_id_token_expired", t);
  30647. }
  30648. function te() {
  30649. if (!y || "web" !== S) return;
  30650. uni.getStorageSync("__LAST_DCLOUD_APPID") !== T && (uni.setStorageSync("__LAST_DCLOUD_APPID", T), console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"), X.removeStorageSync("uni_id_token"), X.removeStorageSync("uniIdToken"), X.removeStorageSync("uni_id_token_expired"));
  30651. }
  30652. var ne, se;
  30653. function re() {
  30654. return ne || (ne = uni.getSystemInfoSync()), ne;
  30655. }
  30656. function ie() {
  30657. var e, t;
  30658. try {
  30659. if (uni.getLaunchOptionsSync) {
  30660. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  30661. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  30662. _n3 = _uni$getLaunchOptions.scene,
  30663. _s3 = _uni$getLaunchOptions.channel;
  30664. e = _s3, t = _n3;
  30665. }
  30666. } catch (e) {}
  30667. return {
  30668. channel: e,
  30669. scene: t
  30670. };
  30671. }
  30672. function oe() {
  30673. var e = uni.getLocale && uni.getLocale() || "en";
  30674. if (se) return _objectSpread(_objectSpread({}, se), {}, {
  30675. locale: e,
  30676. LOCALE: e
  30677. });
  30678. var t = re(),
  30679. n = t.deviceId,
  30680. s = t.osName,
  30681. r = t.uniPlatform,
  30682. i = t.appId,
  30683. o = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"];
  30684. for (var _e5 = 0; _e5 < o.length; _e5++) {
  30685. delete t[o[_e5]];
  30686. }
  30687. return se = _objectSpread(_objectSpread({
  30688. PLATFORM: r,
  30689. OS: s,
  30690. APPID: i,
  30691. DEVICEID: n
  30692. }, ie()), t), _objectSpread(_objectSpread({}, se), {}, {
  30693. locale: e,
  30694. LOCALE: e
  30695. });
  30696. }
  30697. var ae = {
  30698. sign: function sign(e, t) {
  30699. var n = "";
  30700. return Object.keys(e).sort().forEach(function (t) {
  30701. e[t] && (n = n + "&" + t + "=" + e[t]);
  30702. }), n = n.slice(1), o(n, t).toString();
  30703. },
  30704. wrappedRequest: function wrappedRequest(e, t) {
  30705. return new Promise(function (n, s) {
  30706. t(Object.assign(e, {
  30707. complete: function complete(e) {
  30708. e || (e = {}), y && "web" === S && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  30709. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  30710. if (!e.statusCode || e.statusCode >= 400) return s(new Q({
  30711. code: "SYS_ERR",
  30712. message: e.errMsg || "request:fail",
  30713. requestId: t
  30714. }));
  30715. var r = e.data;
  30716. if (r.error) return s(new Q({
  30717. code: r.error.code,
  30718. message: r.error.message,
  30719. requestId: t
  30720. }));
  30721. r.result = r.data, r.requestId = t, delete r.data, n(r);
  30722. }
  30723. }));
  30724. });
  30725. },
  30726. toBase64: function toBase64(e) {
  30727. return c.stringify(a.parse(e));
  30728. }
  30729. },
  30730. ce = {
  30731. "uniCloud.init.paramRequired": "{param} required",
  30732. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30733. };
  30734. var _e6 = (0, _uniI18n.initVueI18n)({
  30735. "zh-Hans": {
  30736. "uniCloud.init.paramRequired": "缺少参数:{param}",
  30737. "uniCloud.uploadFile.fileError": "filePath应为File对象"
  30738. },
  30739. "zh-Hant": {
  30740. "uniCloud.init.paramRequired": "缺少参数:{param}",
  30741. "uniCloud.uploadFile.fileError": "filePath应为File对象"
  30742. },
  30743. en: ce,
  30744. fr: {
  30745. "uniCloud.init.paramRequired": "{param} required",
  30746. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30747. },
  30748. es: {
  30749. "uniCloud.init.paramRequired": "{param} required",
  30750. "uniCloud.uploadFile.fileError": "filePath should be instance of File"
  30751. },
  30752. ja: ce
  30753. }, "zh-Hans"),
  30754. ue = _e6.t;
  30755. var le = /*#__PURE__*/function () {
  30756. function le(e) {
  30757. (0, _classCallCheck2.default)(this, le);
  30758. ["spaceId", "clientSecret"].forEach(function (t) {
  30759. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error(ue("uniCloud.init.paramRequired", {
  30760. param: t
  30761. }));
  30762. }), this.config = Object.assign({}, {
  30763. endpoint: "https://api.bspapp.com"
  30764. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = X, this._getAccessTokenPromise = null, this._getAccessTokenPromiseStatus = null;
  30765. }
  30766. (0, _createClass2.default)(le, [{
  30767. key: "hasAccessToken",
  30768. get: function get() {
  30769. return !!this.accessToken;
  30770. }
  30771. }, {
  30772. key: "setAccessToken",
  30773. value: function setAccessToken(e) {
  30774. this.accessToken = e;
  30775. }
  30776. }, {
  30777. key: "requestWrapped",
  30778. value: function requestWrapped(e) {
  30779. return ae.wrappedRequest(e, this.adapter.request);
  30780. }
  30781. }, {
  30782. key: "requestAuth",
  30783. value: function requestAuth(e) {
  30784. return this.requestWrapped(e);
  30785. }
  30786. }, {
  30787. key: "request",
  30788. value: function request(e, t) {
  30789. var _this3 = this;
  30790. return Promise.resolve().then(function () {
  30791. return _this3.hasAccessToken ? t ? _this3.requestWrapped(e) : _this3.requestWrapped(e).catch(function (t) {
  30792. return new Promise(function (e, n) {
  30793. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  30794. }).then(function () {
  30795. return _this3.getAccessToken();
  30796. }).then(function () {
  30797. var t = _this3.rebuildRequest(e);
  30798. return _this3.request(t, !0);
  30799. });
  30800. }) : _this3.getAccessToken().then(function () {
  30801. var t = _this3.rebuildRequest(e);
  30802. return _this3.request(t, !0);
  30803. });
  30804. });
  30805. }
  30806. }, {
  30807. key: "rebuildRequest",
  30808. value: function rebuildRequest(e) {
  30809. var t = Object.assign({}, e);
  30810. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = ae.sign(t.data, this.config.clientSecret), t;
  30811. }
  30812. }, {
  30813. key: "setupRequest",
  30814. value: function setupRequest(e, t) {
  30815. var n = Object.assign({}, e, {
  30816. spaceId: this.config.spaceId,
  30817. timestamp: Date.now()
  30818. }),
  30819. s = {
  30820. "Content-Type": "application/json"
  30821. };
  30822. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = ae.sign(n, this.config.clientSecret), {
  30823. url: this.config.requestUrl,
  30824. method: "POST",
  30825. data: n,
  30826. dataType: "json",
  30827. header: s
  30828. };
  30829. }
  30830. }, {
  30831. key: "getAccessToken",
  30832. value: function getAccessToken() {
  30833. var _this4 = this;
  30834. if ("pending" === this._getAccessTokenPromiseStatus) return this._getAccessTokenPromise;
  30835. this._getAccessTokenPromiseStatus = "pending";
  30836. return this._getAccessTokenPromise = this.requestAuth(this.setupRequest({
  30837. method: "serverless.auth.user.anonymousAuthorize",
  30838. params: "{}"
  30839. }, "auth")).then(function (e) {
  30840. return new Promise(function (t, n) {
  30841. e.result && e.result.accessToken ? (_this4.setAccessToken(e.result.accessToken), _this4._getAccessTokenPromiseStatus = "fulfilled", t(_this4.accessToken)) : (_this4._getAccessTokenPromiseStatus = "rejected", n(new Q({
  30842. code: "AUTH_FAILED",
  30843. message: "获取accessToken失败"
  30844. })));
  30845. });
  30846. }, function (e) {
  30847. return _this4._getAccessTokenPromiseStatus = "rejected", Promise.reject(e);
  30848. }), this._getAccessTokenPromise;
  30849. }
  30850. }, {
  30851. key: "authorize",
  30852. value: function authorize() {
  30853. this.getAccessToken();
  30854. }
  30855. }, {
  30856. key: "callFunction",
  30857. value: function callFunction(e) {
  30858. var t = {
  30859. method: "serverless.function.runtime.invoke",
  30860. params: JSON.stringify({
  30861. functionTarget: e.name,
  30862. functionArgs: e.data || {}
  30863. })
  30864. };
  30865. return this.request(this.setupRequest(t));
  30866. }
  30867. }, {
  30868. key: "getOSSUploadOptionsFromPath",
  30869. value: function getOSSUploadOptionsFromPath(e) {
  30870. var t = {
  30871. method: "serverless.file.resource.generateProximalSign",
  30872. params: JSON.stringify(e)
  30873. };
  30874. return this.request(this.setupRequest(t));
  30875. }
  30876. }, {
  30877. key: "uploadFileToOSS",
  30878. value: function uploadFileToOSS(_ref2) {
  30879. var _this5 = this;
  30880. var e = _ref2.url,
  30881. t = _ref2.formData,
  30882. n = _ref2.name,
  30883. s = _ref2.filePath,
  30884. r = _ref2.fileType,
  30885. i = _ref2.onUploadProgress;
  30886. return new Promise(function (o, a) {
  30887. var c = _this5.adapter.uploadFile({
  30888. url: e,
  30889. formData: t,
  30890. name: n,
  30891. filePath: s,
  30892. fileType: r,
  30893. header: {
  30894. "X-OSS-server-side-encrpytion": "AES256"
  30895. },
  30896. success: function success(e) {
  30897. e && e.statusCode < 400 ? o(e) : a(new Q({
  30898. code: "UPLOAD_FAILED",
  30899. message: "文件上传失败"
  30900. }));
  30901. },
  30902. fail: function fail(e) {
  30903. a(new Q({
  30904. code: e.code || "UPLOAD_FAILED",
  30905. message: e.message || e.errMsg || "文件上传失败"
  30906. }));
  30907. }
  30908. });
  30909. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  30910. i({
  30911. loaded: e.totalBytesSent,
  30912. total: e.totalBytesExpectedToSend
  30913. });
  30914. });
  30915. });
  30916. }
  30917. }, {
  30918. key: "reportOSSUpload",
  30919. value: function reportOSSUpload(e) {
  30920. var t = {
  30921. method: "serverless.file.resource.report",
  30922. params: JSON.stringify(e)
  30923. };
  30924. return this.request(this.setupRequest(t));
  30925. }
  30926. }, {
  30927. key: "uploadFile",
  30928. value: function () {
  30929. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref3) {
  30930. var e, t, _ref3$fileType, n, s, r, i, o, a, c, u, l, h, f, p, g, m, y, _e7, _;
  30931. return _regenerator.default.wrap(function _callee$(_context) {
  30932. while (1) {
  30933. switch (_context.prev = _context.next) {
  30934. case 0:
  30935. e = _ref3.filePath, t = _ref3.cloudPath, _ref3$fileType = _ref3.fileType, n = _ref3$fileType === void 0 ? "image" : _ref3$fileType, s = _ref3.onUploadProgress, r = _ref3.config;
  30936. if (!("string" !== d(t))) {
  30937. _context.next = 3;
  30938. break;
  30939. }
  30940. throw new Q({
  30941. code: "INVALID_PARAM",
  30942. message: "cloudPath必须为字符串类型"
  30943. });
  30944. case 3:
  30945. if (t = t.trim()) {
  30946. _context.next = 5;
  30947. break;
  30948. }
  30949. throw new Q({
  30950. code: "CLOUDPATH_REQUIRED",
  30951. message: "cloudPath不可为空"
  30952. });
  30953. case 5:
  30954. if (!/:\/\//.test(t)) {
  30955. _context.next = 7;
  30956. break;
  30957. }
  30958. throw new Q({
  30959. code: "INVALID_PARAM",
  30960. message: "cloudPath不合法"
  30961. });
  30962. case 7:
  30963. i = r && r.envType || this.config.envType;
  30964. _context.next = 10;
  30965. return this.getOSSUploadOptionsFromPath({
  30966. env: i,
  30967. filename: t
  30968. });
  30969. case 10:
  30970. o = _context.sent.result;
  30971. a = "https://" + o.cdnDomain + "/" + o.ossPath;
  30972. c = o.securityToken;
  30973. u = o.accessKeyId;
  30974. l = o.signature;
  30975. h = o.host;
  30976. f = o.ossPath;
  30977. p = o.id;
  30978. g = o.policy;
  30979. m = o.ossCallbackUrl;
  30980. y = {
  30981. "Cache-Control": "max-age=2592000",
  30982. "Content-Disposition": "attachment",
  30983. OSSAccessKeyId: u,
  30984. Signature: l,
  30985. host: h,
  30986. id: p,
  30987. key: f,
  30988. policy: g,
  30989. success_action_status: 200
  30990. };
  30991. if (c && (y["x-oss-security-token"] = c), m) {
  30992. _e7 = JSON.stringify({
  30993. callbackUrl: m,
  30994. callbackBody: JSON.stringify({
  30995. fileId: p,
  30996. spaceId: this.config.spaceId
  30997. }),
  30998. callbackBodyType: "application/json"
  30999. });
  31000. y.callback = ae.toBase64(_e7);
  31001. }
  31002. _ = {
  31003. url: "https://" + o.host,
  31004. formData: y,
  31005. fileName: "file",
  31006. name: "file",
  31007. filePath: e,
  31008. fileType: n
  31009. };
  31010. _context.next = 25;
  31011. return this.uploadFileToOSS(Object.assign({}, _, {
  31012. onUploadProgress: s
  31013. }));
  31014. case 25:
  31015. if (!m) {
  31016. _context.next = 27;
  31017. break;
  31018. }
  31019. return _context.abrupt("return", {
  31020. success: !0,
  31021. filePath: e,
  31022. fileID: a
  31023. });
  31024. case 27:
  31025. _context.next = 29;
  31026. return this.reportOSSUpload({
  31027. id: p
  31028. });
  31029. case 29:
  31030. if (!_context.sent.success) {
  31031. _context.next = 31;
  31032. break;
  31033. }
  31034. return _context.abrupt("return", {
  31035. success: !0,
  31036. filePath: e,
  31037. fileID: a
  31038. });
  31039. case 31:
  31040. throw new Q({
  31041. code: "UPLOAD_FAILED",
  31042. message: "文件上传失败"
  31043. });
  31044. case 32:
  31045. case "end":
  31046. return _context.stop();
  31047. }
  31048. }
  31049. }, _callee, this);
  31050. }));
  31051. function uploadFile(_x) {
  31052. return _uploadFile.apply(this, arguments);
  31053. }
  31054. return uploadFile;
  31055. }()
  31056. }, {
  31057. key: "getTempFileURL",
  31058. value: function getTempFileURL() {
  31059. var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31060. e = _ref4.fileList;
  31061. return new Promise(function (t, n) {
  31062. Array.isArray(e) && 0 !== e.length || n(new Q({
  31063. code: "INVALID_PARAM",
  31064. message: "fileList的元素必须是非空的字符串"
  31065. })), t({
  31066. fileList: e.map(function (e) {
  31067. return {
  31068. fileID: e,
  31069. tempFileURL: e
  31070. };
  31071. })
  31072. });
  31073. });
  31074. }
  31075. }, {
  31076. key: "getFileInfo",
  31077. value: function () {
  31078. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  31079. var _ref5,
  31080. e,
  31081. t,
  31082. _args2 = arguments;
  31083. return _regenerator.default.wrap(function _callee2$(_context2) {
  31084. while (1) {
  31085. switch (_context2.prev = _context2.next) {
  31086. case 0:
  31087. _ref5 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref5.fileList;
  31088. if (!(!Array.isArray(e) || 0 === e.length)) {
  31089. _context2.next = 3;
  31090. break;
  31091. }
  31092. throw new Q({
  31093. code: "INVALID_PARAM",
  31094. message: "fileList的元素必须是非空的字符串"
  31095. });
  31096. case 3:
  31097. t = {
  31098. method: "serverless.file.resource.info",
  31099. params: JSON.stringify({
  31100. id: e.map(function (e) {
  31101. return e.split("?")[0];
  31102. }).join(",")
  31103. })
  31104. };
  31105. _context2.next = 6;
  31106. return this.request(this.setupRequest(t));
  31107. case 6:
  31108. _context2.t0 = _context2.sent.result;
  31109. return _context2.abrupt("return", {
  31110. fileList: _context2.t0
  31111. });
  31112. case 8:
  31113. case "end":
  31114. return _context2.stop();
  31115. }
  31116. }
  31117. }, _callee2, this);
  31118. }));
  31119. function getFileInfo() {
  31120. return _getFileInfo.apply(this, arguments);
  31121. }
  31122. return getFileInfo;
  31123. }()
  31124. }]);
  31125. return le;
  31126. }();
  31127. var he = {
  31128. init: function init(e) {
  31129. var t = new le(e),
  31130. n = {
  31131. signInAnonymously: function signInAnonymously() {
  31132. return t.authorize();
  31133. },
  31134. getLoginState: function getLoginState() {
  31135. return Promise.resolve(!1);
  31136. }
  31137. };
  31138. return t.auth = function () {
  31139. return n;
  31140. }, t.customAuth = t.auth, t;
  31141. }
  31142. };
  31143. var de = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  31144. var fe;
  31145. !function (e) {
  31146. e.local = "local", e.none = "none", e.session = "session";
  31147. }(fe || (fe = {}));
  31148. var pe = function pe() {};
  31149. var ge = function ge() {
  31150. var e;
  31151. if (!Promise) {
  31152. e = function e() {}, e.promise = {};
  31153. var _t3 = function _t3() {
  31154. throw new Q({
  31155. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  31156. });
  31157. };
  31158. return Object.defineProperty(e.promise, "then", {
  31159. get: _t3
  31160. }), Object.defineProperty(e.promise, "catch", {
  31161. get: _t3
  31162. }), e;
  31163. }
  31164. var t = new Promise(function (t, n) {
  31165. e = function e(_e8, s) {
  31166. return _e8 ? n(_e8) : t(s);
  31167. };
  31168. });
  31169. return e.promise = t, e;
  31170. };
  31171. function me(e) {
  31172. return void 0 === e;
  31173. }
  31174. function ye(e) {
  31175. return "[object Null]" === Object.prototype.toString.call(e);
  31176. }
  31177. var _e;
  31178. function we(e) {
  31179. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  31180. var n;
  31181. var _iterator = _createForOfIteratorHelper(t),
  31182. _step;
  31183. try {
  31184. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  31185. var _e9 = _step.value;
  31186. var _t4 = _e9.isMatch,
  31187. _n4 = _e9.genAdapter,
  31188. _s4 = _e9.runtime;
  31189. if (_t4()) return {
  31190. adapter: _n4(),
  31191. runtime: _s4
  31192. };
  31193. }
  31194. } catch (err) {
  31195. _iterator.e(err);
  31196. } finally {
  31197. _iterator.f();
  31198. }
  31199. }
  31200. !function (e) {
  31201. e.WEB = "web", e.WX_MP = "wx_mp";
  31202. }(_e || (_e = {}));
  31203. var ve = {
  31204. adapter: null,
  31205. runtime: void 0
  31206. },
  31207. Se = ["anonymousUuidKey"];
  31208. var ke = /*#__PURE__*/function (_pe) {
  31209. (0, _inherits2.default)(ke, _pe);
  31210. var _super2 = _createSuper(ke);
  31211. function ke() {
  31212. var _this6;
  31213. (0, _classCallCheck2.default)(this, ke);
  31214. _this6 = _super2.call(this), ve.adapter.root.tcbObject || (ve.adapter.root.tcbObject = {});
  31215. return _this6;
  31216. }
  31217. (0, _createClass2.default)(ke, [{
  31218. key: "setItem",
  31219. value: function setItem(e, t) {
  31220. ve.adapter.root.tcbObject[e] = t;
  31221. }
  31222. }, {
  31223. key: "getItem",
  31224. value: function getItem(e) {
  31225. return ve.adapter.root.tcbObject[e];
  31226. }
  31227. }, {
  31228. key: "removeItem",
  31229. value: function removeItem(e) {
  31230. delete ve.adapter.root.tcbObject[e];
  31231. }
  31232. }, {
  31233. key: "clear",
  31234. value: function clear() {
  31235. delete ve.adapter.root.tcbObject;
  31236. }
  31237. }]);
  31238. return ke;
  31239. }(pe);
  31240. function Ie(e, t) {
  31241. switch (e) {
  31242. case "local":
  31243. return t.localStorage || new ke();
  31244. case "none":
  31245. return new ke();
  31246. default:
  31247. return t.sessionStorage || new ke();
  31248. }
  31249. }
  31250. var be = /*#__PURE__*/function () {
  31251. function be(e) {
  31252. (0, _classCallCheck2.default)(this, be);
  31253. if (!this._storage) {
  31254. this._persistence = ve.adapter.primaryStorage || e.persistence, this._storage = Ie(this._persistence, ve.adapter);
  31255. var _t5 = "access_token_".concat(e.env),
  31256. _n5 = "access_token_expire_".concat(e.env),
  31257. _s5 = "refresh_token_".concat(e.env),
  31258. _r = "anonymous_uuid_".concat(e.env),
  31259. _i = "login_type_".concat(e.env),
  31260. _o = "user_info_".concat(e.env);
  31261. this.keys = {
  31262. accessTokenKey: _t5,
  31263. accessTokenExpireKey: _n5,
  31264. refreshTokenKey: _s5,
  31265. anonymousUuidKey: _r,
  31266. loginTypeKey: _i,
  31267. userInfoKey: _o
  31268. };
  31269. }
  31270. }
  31271. (0, _createClass2.default)(be, [{
  31272. key: "updatePersistence",
  31273. value: function updatePersistence(e) {
  31274. if (e === this._persistence) return;
  31275. var t = "local" === this._persistence;
  31276. this._persistence = e;
  31277. var n = Ie(e, ve.adapter);
  31278. for (var _e10 in this.keys) {
  31279. var _s6 = this.keys[_e10];
  31280. if (t && Se.includes(_e10)) continue;
  31281. var _r2 = this._storage.getItem(_s6);
  31282. me(_r2) || ye(_r2) || (n.setItem(_s6, _r2), this._storage.removeItem(_s6));
  31283. }
  31284. this._storage = n;
  31285. }
  31286. }, {
  31287. key: "setStore",
  31288. value: function setStore(e, t, n) {
  31289. if (!this._storage) return;
  31290. var s = {
  31291. version: n || "localCachev1",
  31292. content: t
  31293. },
  31294. r = JSON.stringify(s);
  31295. try {
  31296. this._storage.setItem(e, r);
  31297. } catch (e) {
  31298. throw e;
  31299. }
  31300. }
  31301. }, {
  31302. key: "getStore",
  31303. value: function getStore(e, t) {
  31304. try {
  31305. if (!this._storage) return;
  31306. } catch (e) {
  31307. return "";
  31308. }
  31309. t = t || "localCachev1";
  31310. var n = this._storage.getItem(e);
  31311. if (!n) return "";
  31312. if (n.indexOf(t) >= 0) {
  31313. return JSON.parse(n).content;
  31314. }
  31315. return "";
  31316. }
  31317. }, {
  31318. key: "removeStore",
  31319. value: function removeStore(e) {
  31320. this._storage.removeItem(e);
  31321. }
  31322. }]);
  31323. return be;
  31324. }();
  31325. var Te = {},
  31326. Ae = {};
  31327. function Ce(e) {
  31328. return Te[e];
  31329. }
  31330. var Pe = /*#__PURE__*/(0, _createClass2.default)(function Pe(e, t) {
  31331. (0, _classCallCheck2.default)(this, Pe);
  31332. this.data = t || null, this.name = e;
  31333. });
  31334. var Ee = /*#__PURE__*/function (_Pe) {
  31335. (0, _inherits2.default)(Ee, _Pe);
  31336. var _super3 = _createSuper(Ee);
  31337. function Ee(e, t) {
  31338. var _this7;
  31339. (0, _classCallCheck2.default)(this, Ee);
  31340. _this7 = _super3.call(this, "error", {
  31341. error: e,
  31342. data: t
  31343. }), _this7.error = e;
  31344. return _this7;
  31345. }
  31346. return (0, _createClass2.default)(Ee);
  31347. }(Pe);
  31348. var Oe = new ( /*#__PURE__*/function () {
  31349. function _class() {
  31350. (0, _classCallCheck2.default)(this, _class);
  31351. this._listeners = {};
  31352. }
  31353. (0, _createClass2.default)(_class, [{
  31354. key: "on",
  31355. value: function on(e, t) {
  31356. return function (e, t, n) {
  31357. n[e] = n[e] || [], n[e].push(t);
  31358. }(e, t, this._listeners), this;
  31359. }
  31360. }, {
  31361. key: "off",
  31362. value: function off(e, t) {
  31363. return function (e, t, n) {
  31364. if (n && n[e]) {
  31365. var _s7 = n[e].indexOf(t);
  31366. -1 !== _s7 && n[e].splice(_s7, 1);
  31367. }
  31368. }(e, t, this._listeners), this;
  31369. }
  31370. }, {
  31371. key: "fire",
  31372. value: function fire(e, t) {
  31373. if (e instanceof Ee) return console.error(e.error), this;
  31374. var n = "string" == typeof e ? new Pe(e, t || {}) : e;
  31375. var s = n.name;
  31376. if (this._listens(s)) {
  31377. n.target = this;
  31378. var _e11 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  31379. var _iterator2 = _createForOfIteratorHelper(_e11),
  31380. _step2;
  31381. try {
  31382. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  31383. var _t6 = _step2.value;
  31384. _t6.call(this, n);
  31385. }
  31386. } catch (err) {
  31387. _iterator2.e(err);
  31388. } finally {
  31389. _iterator2.f();
  31390. }
  31391. }
  31392. return this;
  31393. }
  31394. }, {
  31395. key: "_listens",
  31396. value: function _listens(e) {
  31397. return this._listeners[e] && this._listeners[e].length > 0;
  31398. }
  31399. }]);
  31400. return _class;
  31401. }())();
  31402. function xe(e, t) {
  31403. Oe.on(e, t);
  31404. }
  31405. function Ue(e) {
  31406. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31407. Oe.fire(e, t);
  31408. }
  31409. function Re(e, t) {
  31410. Oe.off(e, t);
  31411. }
  31412. var Le = "loginStateChanged",
  31413. Ne = "loginStateExpire",
  31414. De = "loginTypeChanged",
  31415. Fe = "anonymousConverted",
  31416. qe = "refreshAccessToken";
  31417. var Ke;
  31418. !function (e) {
  31419. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  31420. }(Ke || (Ke = {}));
  31421. var je = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  31422. Me = {
  31423. "X-SDK-Version": "1.3.5"
  31424. };
  31425. function Be(e, t, n) {
  31426. var s = e[t];
  31427. e[t] = function (t) {
  31428. var r = {},
  31429. i = {};
  31430. n.forEach(function (n) {
  31431. var _n$call = n.call(e, t),
  31432. s = _n$call.data,
  31433. o = _n$call.headers;
  31434. Object.assign(r, s), Object.assign(i, o);
  31435. });
  31436. var o = t.data;
  31437. return o && function () {
  31438. var e;
  31439. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e12 in r) {
  31440. o.append(_e12, r[_e12]);
  31441. }
  31442. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  31443. };
  31444. }
  31445. function $e() {
  31446. var e = Math.random().toString(16).slice(2);
  31447. return {
  31448. data: {
  31449. seqId: e
  31450. },
  31451. headers: _objectSpread(_objectSpread({}, Me), {}, {
  31452. "x-seqid": e
  31453. })
  31454. };
  31455. }
  31456. var We = /*#__PURE__*/function () {
  31457. function We() {
  31458. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  31459. (0, _classCallCheck2.default)(this, We);
  31460. var t;
  31461. this.config = e, this._reqClass = new ve.adapter.reqClass({
  31462. timeout: this.config.timeout,
  31463. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  31464. restrictedMethods: ["post"]
  31465. }), this._cache = Ce(this.config.env), this._localCache = (t = this.config.env, Ae[t]), Be(this._reqClass, "post", [$e]), Be(this._reqClass, "upload", [$e]), Be(this._reqClass, "download", [$e]);
  31466. }
  31467. (0, _createClass2.default)(We, [{
  31468. key: "post",
  31469. value: function () {
  31470. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(e) {
  31471. return _regenerator.default.wrap(function _callee3$(_context3) {
  31472. while (1) {
  31473. switch (_context3.prev = _context3.next) {
  31474. case 0:
  31475. _context3.next = 2;
  31476. return this._reqClass.post(e);
  31477. case 2:
  31478. return _context3.abrupt("return", _context3.sent);
  31479. case 3:
  31480. case "end":
  31481. return _context3.stop();
  31482. }
  31483. }
  31484. }, _callee3, this);
  31485. }));
  31486. function post(_x2) {
  31487. return _post.apply(this, arguments);
  31488. }
  31489. return post;
  31490. }()
  31491. }, {
  31492. key: "upload",
  31493. value: function () {
  31494. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  31495. return _regenerator.default.wrap(function _callee4$(_context4) {
  31496. while (1) {
  31497. switch (_context4.prev = _context4.next) {
  31498. case 0:
  31499. _context4.next = 2;
  31500. return this._reqClass.upload(e);
  31501. case 2:
  31502. return _context4.abrupt("return", _context4.sent);
  31503. case 3:
  31504. case "end":
  31505. return _context4.stop();
  31506. }
  31507. }
  31508. }, _callee4, this);
  31509. }));
  31510. function upload(_x3) {
  31511. return _upload.apply(this, arguments);
  31512. }
  31513. return upload;
  31514. }()
  31515. }, {
  31516. key: "download",
  31517. value: function () {
  31518. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  31519. return _regenerator.default.wrap(function _callee5$(_context5) {
  31520. while (1) {
  31521. switch (_context5.prev = _context5.next) {
  31522. case 0:
  31523. _context5.next = 2;
  31524. return this._reqClass.download(e);
  31525. case 2:
  31526. return _context5.abrupt("return", _context5.sent);
  31527. case 3:
  31528. case "end":
  31529. return _context5.stop();
  31530. }
  31531. }
  31532. }, _callee5, this);
  31533. }));
  31534. function download(_x4) {
  31535. return _download.apply(this, arguments);
  31536. }
  31537. return download;
  31538. }()
  31539. }, {
  31540. key: "refreshAccessToken",
  31541. value: function () {
  31542. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
  31543. var e, t;
  31544. return _regenerator.default.wrap(function _callee6$(_context6) {
  31545. while (1) {
  31546. switch (_context6.prev = _context6.next) {
  31547. case 0:
  31548. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  31549. _context6.prev = 1;
  31550. _context6.next = 4;
  31551. return this._refreshAccessTokenPromise;
  31552. case 4:
  31553. e = _context6.sent;
  31554. _context6.next = 10;
  31555. break;
  31556. case 7:
  31557. _context6.prev = 7;
  31558. _context6.t0 = _context6["catch"](1);
  31559. t = _context6.t0;
  31560. case 10:
  31561. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  31562. _context6.next = 12;
  31563. break;
  31564. }
  31565. throw t;
  31566. case 12:
  31567. return _context6.abrupt("return", e);
  31568. case 13:
  31569. case "end":
  31570. return _context6.stop();
  31571. }
  31572. }
  31573. }, _callee6, this, [[1, 7]]);
  31574. }));
  31575. function refreshAccessToken() {
  31576. return _refreshAccessToken2.apply(this, arguments);
  31577. }
  31578. return refreshAccessToken;
  31579. }()
  31580. }, {
  31581. key: "_refreshAccessToken",
  31582. value: function () {
  31583. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  31584. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e13, _e14, _t7, _s8;
  31585. return _regenerator.default.wrap(function _callee7$(_context7) {
  31586. while (1) {
  31587. switch (_context7.prev = _context7.next) {
  31588. case 0:
  31589. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  31590. this._cache.removeStore(e), this._cache.removeStore(t);
  31591. i = this._cache.getStore(n);
  31592. if (i) {
  31593. _context7.next = 5;
  31594. break;
  31595. }
  31596. throw new Q({
  31597. message: "未登录CloudBase"
  31598. });
  31599. case 5:
  31600. o = {
  31601. refresh_token: i
  31602. };
  31603. _context7.next = 8;
  31604. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  31605. case 8:
  31606. a = _context7.sent;
  31607. if (!a.data.code) {
  31608. _context7.next = 21;
  31609. break;
  31610. }
  31611. _e13 = a.data.code;
  31612. if (!("SIGN_PARAM_INVALID" === _e13 || "REFRESH_TOKEN_EXPIRED" === _e13 || "INVALID_REFRESH_TOKEN" === _e13)) {
  31613. _context7.next = 20;
  31614. break;
  31615. }
  31616. if (!(this._cache.getStore(s) === Ke.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e13)) {
  31617. _context7.next = 19;
  31618. break;
  31619. }
  31620. _e14 = this._cache.getStore(r);
  31621. _t7 = this._cache.getStore(n);
  31622. _context7.next = 17;
  31623. return this.send("auth.signInAnonymously", {
  31624. anonymous_uuid: _e14,
  31625. refresh_token: _t7
  31626. });
  31627. case 17:
  31628. _s8 = _context7.sent;
  31629. return _context7.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  31630. case 19:
  31631. Ue(Ne), this._cache.removeStore(n);
  31632. case 20:
  31633. throw new Q({
  31634. code: a.data.code,
  31635. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  31636. });
  31637. case 21:
  31638. if (!a.data.access_token) {
  31639. _context7.next = 23;
  31640. break;
  31641. }
  31642. return _context7.abrupt("return", (Ue(qe), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  31643. accessToken: a.data.access_token,
  31644. accessTokenExpire: a.data.access_token_expire
  31645. }));
  31646. case 23:
  31647. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  31648. case 24:
  31649. case "end":
  31650. return _context7.stop();
  31651. }
  31652. }
  31653. }, _callee7, this);
  31654. }));
  31655. function _refreshAccessToken() {
  31656. return _refreshAccessToken3.apply(this, arguments);
  31657. }
  31658. return _refreshAccessToken;
  31659. }()
  31660. }, {
  31661. key: "getAccessToken",
  31662. value: function () {
  31663. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  31664. var _this$_cache$keys2, e, t, n, s, r, i;
  31665. return _regenerator.default.wrap(function _callee8$(_context8) {
  31666. while (1) {
  31667. switch (_context8.prev = _context8.next) {
  31668. case 0:
  31669. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  31670. if (this._cache.getStore(n)) {
  31671. _context8.next = 3;
  31672. break;
  31673. }
  31674. throw new Q({
  31675. message: "refresh token不存在,登录状态异常"
  31676. });
  31677. case 3:
  31678. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  31679. _context8.t0 = this._shouldRefreshAccessTokenHook;
  31680. if (!_context8.t0) {
  31681. _context8.next = 9;
  31682. break;
  31683. }
  31684. _context8.next = 8;
  31685. return this._shouldRefreshAccessTokenHook(s, r);
  31686. case 8:
  31687. _context8.t0 = !_context8.sent;
  31688. case 9:
  31689. _context8.t1 = _context8.t0;
  31690. if (!_context8.t1) {
  31691. _context8.next = 12;
  31692. break;
  31693. }
  31694. i = !1;
  31695. case 12:
  31696. return _context8.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  31697. accessToken: s,
  31698. accessTokenExpire: r
  31699. });
  31700. case 13:
  31701. case "end":
  31702. return _context8.stop();
  31703. }
  31704. }
  31705. }, _callee8, this);
  31706. }));
  31707. function getAccessToken() {
  31708. return _getAccessToken.apply(this, arguments);
  31709. }
  31710. return getAccessToken;
  31711. }()
  31712. }, {
  31713. key: "request",
  31714. value: function () {
  31715. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(e, t, n) {
  31716. var s, r, i, _e15, o, _e16, _e17, a, c, u, l, h, d, f, p, g;
  31717. return _regenerator.default.wrap(function _callee9$(_context9) {
  31718. while (1) {
  31719. switch (_context9.prev = _context9.next) {
  31720. case 0:
  31721. s = "x-tcb-trace_".concat(this.config.env);
  31722. r = "application/x-www-form-urlencoded";
  31723. i = _objectSpread({
  31724. action: e,
  31725. env: this.config.env,
  31726. dataVersion: "2019-08-16"
  31727. }, t);
  31728. if (!(-1 === je.indexOf(e))) {
  31729. _context9.next = 10;
  31730. break;
  31731. }
  31732. _e15 = this._cache.keys.refreshTokenKey;
  31733. _context9.t0 = this._cache.getStore(_e15);
  31734. if (!_context9.t0) {
  31735. _context9.next = 10;
  31736. break;
  31737. }
  31738. _context9.next = 9;
  31739. return this.getAccessToken();
  31740. case 9:
  31741. i.access_token = _context9.sent.accessToken;
  31742. case 10:
  31743. if ("storage.uploadFile" === e) {
  31744. o = new FormData();
  31745. for (_e16 in o) {
  31746. o.hasOwnProperty(_e16) && void 0 !== o[_e16] && o.append(_e16, i[_e16]);
  31747. }
  31748. r = "multipart/form-data";
  31749. } else {
  31750. r = "application/json", o = {};
  31751. for (_e17 in i) {
  31752. void 0 !== i[_e17] && (o[_e17] = i[_e17]);
  31753. }
  31754. }
  31755. a = {
  31756. headers: {
  31757. "content-type": r
  31758. }
  31759. };
  31760. n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  31761. c = this._localCache.getStore(s);
  31762. c && (a.headers["X-TCB-Trace"] = c);
  31763. u = t.parse, l = t.inQuery, h = t.search;
  31764. d = {
  31765. env: this.config.env
  31766. };
  31767. u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));
  31768. f = function (e, t) {
  31769. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  31770. var s = /\?/.test(t);
  31771. var r = "";
  31772. for (var _e18 in n) {
  31773. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e18, "=").concat(encodeURIComponent(n[_e18]));
  31774. }
  31775. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  31776. }(de, "//tcb-api.tencentcloudapi.com/web", d);
  31777. h && (f += h);
  31778. _context9.next = 22;
  31779. return this.post(_objectSpread({
  31780. url: f,
  31781. data: o
  31782. }, a));
  31783. case 22:
  31784. p = _context9.sent;
  31785. g = p.header && p.header["x-tcb-trace"];
  31786. if (!(g && this._localCache.setStore(s, g), 200 !== Number(p.status) && 200 !== Number(p.statusCode) || !p.data)) {
  31787. _context9.next = 26;
  31788. break;
  31789. }
  31790. throw new Q({
  31791. code: "NETWORK_ERROR",
  31792. message: "network request error"
  31793. });
  31794. case 26:
  31795. return _context9.abrupt("return", p);
  31796. case 27:
  31797. case "end":
  31798. return _context9.stop();
  31799. }
  31800. }
  31801. }, _callee9, this);
  31802. }));
  31803. function request(_x5, _x6, _x7) {
  31804. return _request.apply(this, arguments);
  31805. }
  31806. return request;
  31807. }()
  31808. }, {
  31809. key: "send",
  31810. value: function () {
  31811. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e) {
  31812. var t,
  31813. n,
  31814. _n6,
  31815. _args10 = arguments;
  31816. return _regenerator.default.wrap(function _callee10$(_context10) {
  31817. while (1) {
  31818. switch (_context10.prev = _context10.next) {
  31819. case 0:
  31820. t = _args10.length > 1 && _args10[1] !== undefined ? _args10[1] : {};
  31821. _context10.next = 3;
  31822. return this.request(e, t, {
  31823. onUploadProgress: t.onUploadProgress
  31824. });
  31825. case 3:
  31826. n = _context10.sent;
  31827. if (!("ACCESS_TOKEN_EXPIRED" === n.data.code && -1 === je.indexOf(e))) {
  31828. _context10.next = 13;
  31829. break;
  31830. }
  31831. _context10.next = 7;
  31832. return this.refreshAccessToken();
  31833. case 7:
  31834. _context10.next = 9;
  31835. return this.request(e, t, {
  31836. onUploadProgress: t.onUploadProgress
  31837. });
  31838. case 9:
  31839. _n6 = _context10.sent;
  31840. if (!_n6.data.code) {
  31841. _context10.next = 12;
  31842. break;
  31843. }
  31844. throw new Q({
  31845. code: _n6.data.code,
  31846. message: _n6.data.message
  31847. });
  31848. case 12:
  31849. return _context10.abrupt("return", _n6.data);
  31850. case 13:
  31851. if (!n.data.code) {
  31852. _context10.next = 15;
  31853. break;
  31854. }
  31855. throw new Q({
  31856. code: n.data.code,
  31857. message: n.data.message
  31858. });
  31859. case 15:
  31860. return _context10.abrupt("return", n.data);
  31861. case 16:
  31862. case "end":
  31863. return _context10.stop();
  31864. }
  31865. }
  31866. }, _callee10, this);
  31867. }));
  31868. function send(_x8) {
  31869. return _send.apply(this, arguments);
  31870. }
  31871. return send;
  31872. }()
  31873. }, {
  31874. key: "setRefreshToken",
  31875. value: function setRefreshToken(e) {
  31876. var _this$_cache$keys3 = this._cache.keys,
  31877. t = _this$_cache$keys3.accessTokenKey,
  31878. n = _this$_cache$keys3.accessTokenExpireKey,
  31879. s = _this$_cache$keys3.refreshTokenKey;
  31880. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  31881. }
  31882. }]);
  31883. return We;
  31884. }();
  31885. var ze = {};
  31886. function Je(e) {
  31887. return ze[e];
  31888. }
  31889. var He = /*#__PURE__*/function () {
  31890. function He(e) {
  31891. (0, _classCallCheck2.default)(this, He);
  31892. this.config = e, this._cache = Ce(e.env), this._request = Je(e.env);
  31893. }
  31894. (0, _createClass2.default)(He, [{
  31895. key: "setRefreshToken",
  31896. value: function setRefreshToken(e) {
  31897. var _this$_cache$keys4 = this._cache.keys,
  31898. t = _this$_cache$keys4.accessTokenKey,
  31899. n = _this$_cache$keys4.accessTokenExpireKey,
  31900. s = _this$_cache$keys4.refreshTokenKey;
  31901. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  31902. }
  31903. }, {
  31904. key: "setAccessToken",
  31905. value: function setAccessToken(e, t) {
  31906. var _this$_cache$keys5 = this._cache.keys,
  31907. n = _this$_cache$keys5.accessTokenKey,
  31908. s = _this$_cache$keys5.accessTokenExpireKey;
  31909. this._cache.setStore(n, e), this._cache.setStore(s, t);
  31910. }
  31911. }, {
  31912. key: "refreshUserInfo",
  31913. value: function () {
  31914. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {
  31915. var _yield$this$_request$, e;
  31916. return _regenerator.default.wrap(function _callee11$(_context11) {
  31917. while (1) {
  31918. switch (_context11.prev = _context11.next) {
  31919. case 0:
  31920. _context11.next = 2;
  31921. return this._request.send("auth.getUserInfo", {});
  31922. case 2:
  31923. _yield$this$_request$ = _context11.sent;
  31924. e = _yield$this$_request$.data;
  31925. return _context11.abrupt("return", (this.setLocalUserInfo(e), e));
  31926. case 5:
  31927. case "end":
  31928. return _context11.stop();
  31929. }
  31930. }
  31931. }, _callee11, this);
  31932. }));
  31933. function refreshUserInfo() {
  31934. return _refreshUserInfo.apply(this, arguments);
  31935. }
  31936. return refreshUserInfo;
  31937. }()
  31938. }, {
  31939. key: "setLocalUserInfo",
  31940. value: function setLocalUserInfo(e) {
  31941. var t = this._cache.keys.userInfoKey;
  31942. this._cache.setStore(t, e);
  31943. }
  31944. }]);
  31945. return He;
  31946. }();
  31947. var Ge = /*#__PURE__*/function () {
  31948. function Ge(e) {
  31949. (0, _classCallCheck2.default)(this, Ge);
  31950. if (!e) throw new Q({
  31951. code: "PARAM_ERROR",
  31952. message: "envId is not defined"
  31953. });
  31954. this._envId = e, this._cache = Ce(this._envId), this._request = Je(this._envId), this.setUserInfo();
  31955. }
  31956. (0, _createClass2.default)(Ge, [{
  31957. key: "linkWithTicket",
  31958. value: function linkWithTicket(e) {
  31959. if ("string" != typeof e) throw new Q({
  31960. code: "PARAM_ERROR",
  31961. message: "ticket must be string"
  31962. });
  31963. return this._request.send("auth.linkWithTicket", {
  31964. ticket: e
  31965. });
  31966. }
  31967. }, {
  31968. key: "linkWithRedirect",
  31969. value: function linkWithRedirect(e) {
  31970. e.signInWithRedirect();
  31971. }
  31972. }, {
  31973. key: "updatePassword",
  31974. value: function updatePassword(e, t) {
  31975. return this._request.send("auth.updatePassword", {
  31976. oldPassword: t,
  31977. newPassword: e
  31978. });
  31979. }
  31980. }, {
  31981. key: "updateEmail",
  31982. value: function updateEmail(e) {
  31983. return this._request.send("auth.updateEmail", {
  31984. newEmail: e
  31985. });
  31986. }
  31987. }, {
  31988. key: "updateUsername",
  31989. value: function updateUsername(e) {
  31990. if ("string" != typeof e) throw new Q({
  31991. code: "PARAM_ERROR",
  31992. message: "username must be a string"
  31993. });
  31994. return this._request.send("auth.updateUsername", {
  31995. username: e
  31996. });
  31997. }
  31998. }, {
  31999. key: "getLinkedUidList",
  32000. value: function () {
  32001. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  32002. var _yield$this$_request$2, e, t, n;
  32003. return _regenerator.default.wrap(function _callee12$(_context12) {
  32004. while (1) {
  32005. switch (_context12.prev = _context12.next) {
  32006. case 0:
  32007. _context12.next = 2;
  32008. return this._request.send("auth.getLinkedUidList", {});
  32009. case 2:
  32010. _yield$this$_request$2 = _context12.sent;
  32011. e = _yield$this$_request$2.data;
  32012. t = !1;
  32013. n = e.users;
  32014. return _context12.abrupt("return", (n.forEach(function (e) {
  32015. e.wxOpenId && e.wxPublicId && (t = !0);
  32016. }), {
  32017. users: n,
  32018. hasPrimaryUid: t
  32019. }));
  32020. case 7:
  32021. case "end":
  32022. return _context12.stop();
  32023. }
  32024. }
  32025. }, _callee12, this);
  32026. }));
  32027. function getLinkedUidList() {
  32028. return _getLinkedUidList.apply(this, arguments);
  32029. }
  32030. return getLinkedUidList;
  32031. }()
  32032. }, {
  32033. key: "setPrimaryUid",
  32034. value: function setPrimaryUid(e) {
  32035. return this._request.send("auth.setPrimaryUid", {
  32036. uid: e
  32037. });
  32038. }
  32039. }, {
  32040. key: "unlink",
  32041. value: function unlink(e) {
  32042. return this._request.send("auth.unlink", {
  32043. platform: e
  32044. });
  32045. }
  32046. }, {
  32047. key: "update",
  32048. value: function () {
  32049. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(e) {
  32050. var t, n, s, r, i, o, _yield$this$_request$3, a;
  32051. return _regenerator.default.wrap(function _callee13$(_context13) {
  32052. while (1) {
  32053. switch (_context13.prev = _context13.next) {
  32054. case 0:
  32055. t = e.nickName;
  32056. n = e.gender;
  32057. s = e.avatarUrl;
  32058. r = e.province;
  32059. i = e.country;
  32060. o = e.city;
  32061. _context13.next = 8;
  32062. return this._request.send("auth.updateUserInfo", {
  32063. nickName: t,
  32064. gender: n,
  32065. avatarUrl: s,
  32066. province: r,
  32067. country: i,
  32068. city: o
  32069. });
  32070. case 8:
  32071. _yield$this$_request$3 = _context13.sent;
  32072. a = _yield$this$_request$3.data;
  32073. this.setLocalUserInfo(a);
  32074. case 11:
  32075. case "end":
  32076. return _context13.stop();
  32077. }
  32078. }
  32079. }, _callee13, this);
  32080. }));
  32081. function update(_x9) {
  32082. return _update.apply(this, arguments);
  32083. }
  32084. return update;
  32085. }()
  32086. }, {
  32087. key: "refresh",
  32088. value: function () {
  32089. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {
  32090. var _yield$this$_request$4, e;
  32091. return _regenerator.default.wrap(function _callee14$(_context14) {
  32092. while (1) {
  32093. switch (_context14.prev = _context14.next) {
  32094. case 0:
  32095. _context14.next = 2;
  32096. return this._request.send("auth.getUserInfo", {});
  32097. case 2:
  32098. _yield$this$_request$4 = _context14.sent;
  32099. e = _yield$this$_request$4.data;
  32100. return _context14.abrupt("return", (this.setLocalUserInfo(e), e));
  32101. case 5:
  32102. case "end":
  32103. return _context14.stop();
  32104. }
  32105. }
  32106. }, _callee14, this);
  32107. }));
  32108. function refresh() {
  32109. return _refresh.apply(this, arguments);
  32110. }
  32111. return refresh;
  32112. }()
  32113. }, {
  32114. key: "setUserInfo",
  32115. value: function setUserInfo() {
  32116. var _this8 = this;
  32117. var e = this._cache.keys.userInfoKey,
  32118. t = this._cache.getStore(e);
  32119. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  32120. _this8[e] = t[e];
  32121. }), this.location = {
  32122. country: t.country,
  32123. province: t.province,
  32124. city: t.city
  32125. };
  32126. }
  32127. }, {
  32128. key: "setLocalUserInfo",
  32129. value: function setLocalUserInfo(e) {
  32130. var t = this._cache.keys.userInfoKey;
  32131. this._cache.setStore(t, e), this.setUserInfo();
  32132. }
  32133. }]);
  32134. return Ge;
  32135. }();
  32136. var Ve = /*#__PURE__*/function () {
  32137. function Ve(e) {
  32138. (0, _classCallCheck2.default)(this, Ve);
  32139. if (!e) throw new Q({
  32140. code: "PARAM_ERROR",
  32141. message: "envId is not defined"
  32142. });
  32143. this._cache = Ce(e);
  32144. var _this$_cache$keys6 = this._cache.keys,
  32145. t = _this$_cache$keys6.refreshTokenKey,
  32146. n = _this$_cache$keys6.accessTokenKey,
  32147. s = _this$_cache$keys6.accessTokenExpireKey,
  32148. r = this._cache.getStore(t),
  32149. i = this._cache.getStore(n),
  32150. o = this._cache.getStore(s);
  32151. this.credential = {
  32152. refreshToken: r,
  32153. accessToken: i,
  32154. accessTokenExpire: o
  32155. }, this.user = new Ge(e);
  32156. }
  32157. (0, _createClass2.default)(Ve, [{
  32158. key: "isAnonymousAuth",
  32159. get: function get() {
  32160. return this.loginType === Ke.ANONYMOUS;
  32161. }
  32162. }, {
  32163. key: "isCustomAuth",
  32164. get: function get() {
  32165. return this.loginType === Ke.CUSTOM;
  32166. }
  32167. }, {
  32168. key: "isWeixinAuth",
  32169. get: function get() {
  32170. return this.loginType === Ke.WECHAT || this.loginType === Ke.WECHAT_OPEN || this.loginType === Ke.WECHAT_PUBLIC;
  32171. }
  32172. }, {
  32173. key: "loginType",
  32174. get: function get() {
  32175. return this._cache.getStore(this._cache.keys.loginTypeKey);
  32176. }
  32177. }]);
  32178. return Ve;
  32179. }();
  32180. var Ye = /*#__PURE__*/function (_He) {
  32181. (0, _inherits2.default)(Ye, _He);
  32182. var _super4 = _createSuper(Ye);
  32183. function Ye() {
  32184. (0, _classCallCheck2.default)(this, Ye);
  32185. return _super4.apply(this, arguments);
  32186. }
  32187. (0, _createClass2.default)(Ye, [{
  32188. key: "signIn",
  32189. value: function () {
  32190. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  32191. var _this$_cache$keys7, e, t, n, s, r, _e19;
  32192. return _regenerator.default.wrap(function _callee15$(_context15) {
  32193. while (1) {
  32194. switch (_context15.prev = _context15.next) {
  32195. case 0:
  32196. this._cache.updatePersistence("local");
  32197. _this$_cache$keys7 = this._cache.keys;
  32198. e = _this$_cache$keys7.anonymousUuidKey;
  32199. t = _this$_cache$keys7.refreshTokenKey;
  32200. n = this._cache.getStore(e) || void 0;
  32201. s = this._cache.getStore(t) || void 0;
  32202. _context15.next = 8;
  32203. return this._request.send("auth.signInAnonymously", {
  32204. anonymous_uuid: n,
  32205. refresh_token: s
  32206. });
  32207. case 8:
  32208. r = _context15.sent;
  32209. if (!(r.uuid && r.refresh_token)) {
  32210. _context15.next = 20;
  32211. break;
  32212. }
  32213. this._setAnonymousUUID(r.uuid);
  32214. this.setRefreshToken(r.refresh_token);
  32215. _context15.next = 14;
  32216. return this._request.refreshAccessToken();
  32217. case 14:
  32218. Ue(Le);
  32219. Ue(De, {
  32220. env: this.config.env,
  32221. loginType: Ke.ANONYMOUS,
  32222. persistence: "local"
  32223. });
  32224. _e19 = new Ve(this.config.env);
  32225. _context15.next = 19;
  32226. return _e19.user.refresh();
  32227. case 19:
  32228. return _context15.abrupt("return", _e19);
  32229. case 20:
  32230. throw new Q({
  32231. message: "匿名登录失败"
  32232. });
  32233. case 21:
  32234. case "end":
  32235. return _context15.stop();
  32236. }
  32237. }
  32238. }, _callee15, this);
  32239. }));
  32240. function signIn() {
  32241. return _signIn.apply(this, arguments);
  32242. }
  32243. return signIn;
  32244. }()
  32245. }, {
  32246. key: "linkAndRetrieveDataWithTicket",
  32247. value: function () {
  32248. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16(e) {
  32249. var _this$_cache$keys8, t, n, s, r, i;
  32250. return _regenerator.default.wrap(function _callee16$(_context16) {
  32251. while (1) {
  32252. switch (_context16.prev = _context16.next) {
  32253. case 0:
  32254. _this$_cache$keys8 = this._cache.keys;
  32255. t = _this$_cache$keys8.anonymousUuidKey;
  32256. n = _this$_cache$keys8.refreshTokenKey;
  32257. s = this._cache.getStore(t);
  32258. r = this._cache.getStore(n);
  32259. _context16.next = 7;
  32260. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  32261. anonymous_uuid: s,
  32262. refresh_token: r,
  32263. ticket: e
  32264. });
  32265. case 7:
  32266. i = _context16.sent;
  32267. if (!i.refresh_token) {
  32268. _context16.next = 16;
  32269. break;
  32270. }
  32271. this._clearAnonymousUUID();
  32272. this.setRefreshToken(i.refresh_token);
  32273. _context16.next = 13;
  32274. return this._request.refreshAccessToken();
  32275. case 13:
  32276. Ue(Fe, {
  32277. env: this.config.env
  32278. });
  32279. Ue(De, {
  32280. loginType: Ke.CUSTOM,
  32281. persistence: "local"
  32282. });
  32283. return _context16.abrupt("return", {
  32284. credential: {
  32285. refreshToken: i.refresh_token
  32286. }
  32287. });
  32288. case 16:
  32289. throw new Q({
  32290. message: "匿名转化失败"
  32291. });
  32292. case 17:
  32293. case "end":
  32294. return _context16.stop();
  32295. }
  32296. }
  32297. }, _callee16, this);
  32298. }));
  32299. function linkAndRetrieveDataWithTicket(_x10) {
  32300. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  32301. }
  32302. return linkAndRetrieveDataWithTicket;
  32303. }()
  32304. }, {
  32305. key: "_setAnonymousUUID",
  32306. value: function _setAnonymousUUID(e) {
  32307. var _this$_cache$keys9 = this._cache.keys,
  32308. t = _this$_cache$keys9.anonymousUuidKey,
  32309. n = _this$_cache$keys9.loginTypeKey;
  32310. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, Ke.ANONYMOUS);
  32311. }
  32312. }, {
  32313. key: "_clearAnonymousUUID",
  32314. value: function _clearAnonymousUUID() {
  32315. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  32316. }
  32317. }]);
  32318. return Ye;
  32319. }(He);
  32320. var Qe = /*#__PURE__*/function (_He2) {
  32321. (0, _inherits2.default)(Qe, _He2);
  32322. var _super5 = _createSuper(Qe);
  32323. function Qe() {
  32324. (0, _classCallCheck2.default)(this, Qe);
  32325. return _super5.apply(this, arguments);
  32326. }
  32327. (0, _createClass2.default)(Qe, [{
  32328. key: "signIn",
  32329. value: function () {
  32330. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  32331. var t, n;
  32332. return _regenerator.default.wrap(function _callee17$(_context17) {
  32333. while (1) {
  32334. switch (_context17.prev = _context17.next) {
  32335. case 0:
  32336. if (!("string" != typeof e)) {
  32337. _context17.next = 2;
  32338. break;
  32339. }
  32340. throw new Q({
  32341. code: "PARAM_ERROR",
  32342. message: "ticket must be a string"
  32343. });
  32344. case 2:
  32345. t = this._cache.keys.refreshTokenKey;
  32346. _context17.next = 5;
  32347. return this._request.send("auth.signInWithTicket", {
  32348. ticket: e,
  32349. refresh_token: this._cache.getStore(t) || ""
  32350. });
  32351. case 5:
  32352. n = _context17.sent;
  32353. if (!n.refresh_token) {
  32354. _context17.next = 15;
  32355. break;
  32356. }
  32357. this.setRefreshToken(n.refresh_token);
  32358. _context17.next = 10;
  32359. return this._request.refreshAccessToken();
  32360. case 10:
  32361. Ue(Le);
  32362. Ue(De, {
  32363. env: this.config.env,
  32364. loginType: Ke.CUSTOM,
  32365. persistence: this.config.persistence
  32366. });
  32367. _context17.next = 14;
  32368. return this.refreshUserInfo();
  32369. case 14:
  32370. return _context17.abrupt("return", new Ve(this.config.env));
  32371. case 15:
  32372. throw new Q({
  32373. message: "自定义登录失败"
  32374. });
  32375. case 16:
  32376. case "end":
  32377. return _context17.stop();
  32378. }
  32379. }
  32380. }, _callee17, this);
  32381. }));
  32382. function signIn(_x11) {
  32383. return _signIn2.apply(this, arguments);
  32384. }
  32385. return signIn;
  32386. }()
  32387. }]);
  32388. return Qe;
  32389. }(He);
  32390. var Xe = /*#__PURE__*/function (_He3) {
  32391. (0, _inherits2.default)(Xe, _He3);
  32392. var _super6 = _createSuper(Xe);
  32393. function Xe() {
  32394. (0, _classCallCheck2.default)(this, Xe);
  32395. return _super6.apply(this, arguments);
  32396. }
  32397. (0, _createClass2.default)(Xe, [{
  32398. key: "signIn",
  32399. value: function () {
  32400. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e, t) {
  32401. var n, s, r, i, o;
  32402. return _regenerator.default.wrap(function _callee18$(_context18) {
  32403. while (1) {
  32404. switch (_context18.prev = _context18.next) {
  32405. case 0:
  32406. if (!("string" != typeof e)) {
  32407. _context18.next = 2;
  32408. break;
  32409. }
  32410. throw new Q({
  32411. code: "PARAM_ERROR",
  32412. message: "email must be a string"
  32413. });
  32414. case 2:
  32415. n = this._cache.keys.refreshTokenKey;
  32416. _context18.next = 5;
  32417. return this._request.send("auth.signIn", {
  32418. loginType: "EMAIL",
  32419. email: e,
  32420. password: t,
  32421. refresh_token: this._cache.getStore(n) || ""
  32422. });
  32423. case 5:
  32424. s = _context18.sent;
  32425. r = s.refresh_token;
  32426. i = s.access_token;
  32427. o = s.access_token_expire;
  32428. if (!r) {
  32429. _context18.next = 22;
  32430. break;
  32431. }
  32432. this.setRefreshToken(r);
  32433. if (!(i && o)) {
  32434. _context18.next = 15;
  32435. break;
  32436. }
  32437. this.setAccessToken(i, o);
  32438. _context18.next = 17;
  32439. break;
  32440. case 15:
  32441. _context18.next = 17;
  32442. return this._request.refreshAccessToken();
  32443. case 17:
  32444. _context18.next = 19;
  32445. return this.refreshUserInfo();
  32446. case 19:
  32447. Ue(Le);
  32448. Ue(De, {
  32449. env: this.config.env,
  32450. loginType: Ke.EMAIL,
  32451. persistence: this.config.persistence
  32452. });
  32453. return _context18.abrupt("return", new Ve(this.config.env));
  32454. case 22:
  32455. throw s.code ? new Q({
  32456. code: s.code,
  32457. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  32458. }) : new Q({
  32459. message: "邮箱登录失败"
  32460. });
  32461. case 23:
  32462. case "end":
  32463. return _context18.stop();
  32464. }
  32465. }
  32466. }, _callee18, this);
  32467. }));
  32468. function signIn(_x12, _x13) {
  32469. return _signIn3.apply(this, arguments);
  32470. }
  32471. return signIn;
  32472. }()
  32473. }, {
  32474. key: "activate",
  32475. value: function () {
  32476. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e) {
  32477. return _regenerator.default.wrap(function _callee19$(_context19) {
  32478. while (1) {
  32479. switch (_context19.prev = _context19.next) {
  32480. case 0:
  32481. return _context19.abrupt("return", this._request.send("auth.activateEndUserMail", {
  32482. token: e
  32483. }));
  32484. case 1:
  32485. case "end":
  32486. return _context19.stop();
  32487. }
  32488. }
  32489. }, _callee19, this);
  32490. }));
  32491. function activate(_x14) {
  32492. return _activate.apply(this, arguments);
  32493. }
  32494. return activate;
  32495. }()
  32496. }, {
  32497. key: "resetPasswordWithToken",
  32498. value: function () {
  32499. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e, t) {
  32500. return _regenerator.default.wrap(function _callee20$(_context20) {
  32501. while (1) {
  32502. switch (_context20.prev = _context20.next) {
  32503. case 0:
  32504. return _context20.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  32505. token: e,
  32506. newPassword: t
  32507. }));
  32508. case 1:
  32509. case "end":
  32510. return _context20.stop();
  32511. }
  32512. }
  32513. }, _callee20, this);
  32514. }));
  32515. function resetPasswordWithToken(_x15, _x16) {
  32516. return _resetPasswordWithToken.apply(this, arguments);
  32517. }
  32518. return resetPasswordWithToken;
  32519. }()
  32520. }]);
  32521. return Xe;
  32522. }(He);
  32523. var Ze = /*#__PURE__*/function (_He4) {
  32524. (0, _inherits2.default)(Ze, _He4);
  32525. var _super7 = _createSuper(Ze);
  32526. function Ze() {
  32527. (0, _classCallCheck2.default)(this, Ze);
  32528. return _super7.apply(this, arguments);
  32529. }
  32530. (0, _createClass2.default)(Ze, [{
  32531. key: "signIn",
  32532. value: function () {
  32533. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  32534. var n, s, r, i, o;
  32535. return _regenerator.default.wrap(function _callee21$(_context21) {
  32536. while (1) {
  32537. switch (_context21.prev = _context21.next) {
  32538. case 0:
  32539. if (!("string" != typeof e)) {
  32540. _context21.next = 2;
  32541. break;
  32542. }
  32543. throw new Q({
  32544. code: "PARAM_ERROR",
  32545. message: "username must be a string"
  32546. });
  32547. case 2:
  32548. "string" != typeof t && (t = "", console.warn("password is empty"));
  32549. n = this._cache.keys.refreshTokenKey;
  32550. _context21.next = 6;
  32551. return this._request.send("auth.signIn", {
  32552. loginType: Ke.USERNAME,
  32553. username: e,
  32554. password: t,
  32555. refresh_token: this._cache.getStore(n) || ""
  32556. });
  32557. case 6:
  32558. s = _context21.sent;
  32559. r = s.refresh_token;
  32560. i = s.access_token_expire;
  32561. o = s.access_token;
  32562. if (!r) {
  32563. _context21.next = 23;
  32564. break;
  32565. }
  32566. this.setRefreshToken(r);
  32567. if (!(o && i)) {
  32568. _context21.next = 16;
  32569. break;
  32570. }
  32571. this.setAccessToken(o, i);
  32572. _context21.next = 18;
  32573. break;
  32574. case 16:
  32575. _context21.next = 18;
  32576. return this._request.refreshAccessToken();
  32577. case 18:
  32578. _context21.next = 20;
  32579. return this.refreshUserInfo();
  32580. case 20:
  32581. Ue(Le);
  32582. Ue(De, {
  32583. env: this.config.env,
  32584. loginType: Ke.USERNAME,
  32585. persistence: this.config.persistence
  32586. });
  32587. return _context21.abrupt("return", new Ve(this.config.env));
  32588. case 23:
  32589. throw s.code ? new Q({
  32590. code: s.code,
  32591. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  32592. }) : new Q({
  32593. message: "用户名密码登录失败"
  32594. });
  32595. case 24:
  32596. case "end":
  32597. return _context21.stop();
  32598. }
  32599. }
  32600. }, _callee21, this);
  32601. }));
  32602. function signIn(_x17, _x18) {
  32603. return _signIn4.apply(this, arguments);
  32604. }
  32605. return signIn;
  32606. }()
  32607. }]);
  32608. return Ze;
  32609. }(He);
  32610. var et = /*#__PURE__*/function () {
  32611. function et(e) {
  32612. (0, _classCallCheck2.default)(this, et);
  32613. this.config = e, this._cache = Ce(e.env), this._request = Je(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), xe(De, this._onLoginTypeChanged);
  32614. }
  32615. (0, _createClass2.default)(et, [{
  32616. key: "currentUser",
  32617. get: function get() {
  32618. var e = this.hasLoginState();
  32619. return e && e.user || null;
  32620. }
  32621. }, {
  32622. key: "loginType",
  32623. get: function get() {
  32624. return this._cache.getStore(this._cache.keys.loginTypeKey);
  32625. }
  32626. }, {
  32627. key: "anonymousAuthProvider",
  32628. value: function anonymousAuthProvider() {
  32629. return new Ye(this.config);
  32630. }
  32631. }, {
  32632. key: "customAuthProvider",
  32633. value: function customAuthProvider() {
  32634. return new Qe(this.config);
  32635. }
  32636. }, {
  32637. key: "emailAuthProvider",
  32638. value: function emailAuthProvider() {
  32639. return new Xe(this.config);
  32640. }
  32641. }, {
  32642. key: "usernameAuthProvider",
  32643. value: function usernameAuthProvider() {
  32644. return new Ze(this.config);
  32645. }
  32646. }, {
  32647. key: "signInAnonymously",
  32648. value: function () {
  32649. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22() {
  32650. return _regenerator.default.wrap(function _callee22$(_context22) {
  32651. while (1) {
  32652. switch (_context22.prev = _context22.next) {
  32653. case 0:
  32654. return _context22.abrupt("return", new Ye(this.config).signIn());
  32655. case 1:
  32656. case "end":
  32657. return _context22.stop();
  32658. }
  32659. }
  32660. }, _callee22, this);
  32661. }));
  32662. function signInAnonymously() {
  32663. return _signInAnonymously.apply(this, arguments);
  32664. }
  32665. return signInAnonymously;
  32666. }()
  32667. }, {
  32668. key: "signInWithEmailAndPassword",
  32669. value: function () {
  32670. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23(e, t) {
  32671. return _regenerator.default.wrap(function _callee23$(_context23) {
  32672. while (1) {
  32673. switch (_context23.prev = _context23.next) {
  32674. case 0:
  32675. return _context23.abrupt("return", new Xe(this.config).signIn(e, t));
  32676. case 1:
  32677. case "end":
  32678. return _context23.stop();
  32679. }
  32680. }
  32681. }, _callee23, this);
  32682. }));
  32683. function signInWithEmailAndPassword(_x19, _x20) {
  32684. return _signInWithEmailAndPassword.apply(this, arguments);
  32685. }
  32686. return signInWithEmailAndPassword;
  32687. }()
  32688. }, {
  32689. key: "signInWithUsernameAndPassword",
  32690. value: function signInWithUsernameAndPassword(e, t) {
  32691. return new Ze(this.config).signIn(e, t);
  32692. }
  32693. }, {
  32694. key: "linkAndRetrieveDataWithTicket",
  32695. value: function () {
  32696. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e) {
  32697. return _regenerator.default.wrap(function _callee24$(_context24) {
  32698. while (1) {
  32699. switch (_context24.prev = _context24.next) {
  32700. case 0:
  32701. this._anonymousAuthProvider || (this._anonymousAuthProvider = new Ye(this.config)), xe(Fe, this._onAnonymousConverted);
  32702. _context24.next = 3;
  32703. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  32704. case 3:
  32705. return _context24.abrupt("return", _context24.sent);
  32706. case 4:
  32707. case "end":
  32708. return _context24.stop();
  32709. }
  32710. }
  32711. }, _callee24, this);
  32712. }));
  32713. function linkAndRetrieveDataWithTicket(_x21) {
  32714. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  32715. }
  32716. return linkAndRetrieveDataWithTicket;
  32717. }()
  32718. }, {
  32719. key: "signOut",
  32720. value: function () {
  32721. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25() {
  32722. var _this$_cache$keys10, e, t, n, s, r;
  32723. return _regenerator.default.wrap(function _callee25$(_context25) {
  32724. while (1) {
  32725. switch (_context25.prev = _context25.next) {
  32726. case 0:
  32727. if (!(this.loginType === Ke.ANONYMOUS)) {
  32728. _context25.next = 2;
  32729. break;
  32730. }
  32731. throw new Q({
  32732. message: "匿名用户不支持登出操作"
  32733. });
  32734. case 2:
  32735. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  32736. if (s) {
  32737. _context25.next = 5;
  32738. break;
  32739. }
  32740. return _context25.abrupt("return");
  32741. case 5:
  32742. _context25.next = 7;
  32743. return this._request.send("auth.logout", {
  32744. refresh_token: s
  32745. });
  32746. case 7:
  32747. r = _context25.sent;
  32748. return _context25.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), Ue(Le), Ue(De, {
  32749. env: this.config.env,
  32750. loginType: Ke.NULL,
  32751. persistence: this.config.persistence
  32752. }), r));
  32753. case 9:
  32754. case "end":
  32755. return _context25.stop();
  32756. }
  32757. }
  32758. }, _callee25, this);
  32759. }));
  32760. function signOut() {
  32761. return _signOut.apply(this, arguments);
  32762. }
  32763. return signOut;
  32764. }()
  32765. }, {
  32766. key: "signUpWithEmailAndPassword",
  32767. value: function () {
  32768. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26(e, t) {
  32769. return _regenerator.default.wrap(function _callee26$(_context26) {
  32770. while (1) {
  32771. switch (_context26.prev = _context26.next) {
  32772. case 0:
  32773. return _context26.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  32774. email: e,
  32775. password: t
  32776. }));
  32777. case 1:
  32778. case "end":
  32779. return _context26.stop();
  32780. }
  32781. }
  32782. }, _callee26, this);
  32783. }));
  32784. function signUpWithEmailAndPassword(_x22, _x23) {
  32785. return _signUpWithEmailAndPassword.apply(this, arguments);
  32786. }
  32787. return signUpWithEmailAndPassword;
  32788. }()
  32789. }, {
  32790. key: "sendPasswordResetEmail",
  32791. value: function () {
  32792. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e) {
  32793. return _regenerator.default.wrap(function _callee27$(_context27) {
  32794. while (1) {
  32795. switch (_context27.prev = _context27.next) {
  32796. case 0:
  32797. return _context27.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  32798. email: e
  32799. }));
  32800. case 1:
  32801. case "end":
  32802. return _context27.stop();
  32803. }
  32804. }
  32805. }, _callee27, this);
  32806. }));
  32807. function sendPasswordResetEmail(_x24) {
  32808. return _sendPasswordResetEmail.apply(this, arguments);
  32809. }
  32810. return sendPasswordResetEmail;
  32811. }()
  32812. }, {
  32813. key: "onLoginStateChanged",
  32814. value: function onLoginStateChanged(e) {
  32815. var _this9 = this;
  32816. xe(Le, function () {
  32817. var t = _this9.hasLoginState();
  32818. e.call(_this9, t);
  32819. });
  32820. var t = this.hasLoginState();
  32821. e.call(this, t);
  32822. }
  32823. }, {
  32824. key: "onLoginStateExpired",
  32825. value: function onLoginStateExpired(e) {
  32826. xe(Ne, e.bind(this));
  32827. }
  32828. }, {
  32829. key: "onAccessTokenRefreshed",
  32830. value: function onAccessTokenRefreshed(e) {
  32831. xe(qe, e.bind(this));
  32832. }
  32833. }, {
  32834. key: "onAnonymousConverted",
  32835. value: function onAnonymousConverted(e) {
  32836. xe(Fe, e.bind(this));
  32837. }
  32838. }, {
  32839. key: "onLoginTypeChanged",
  32840. value: function onLoginTypeChanged(e) {
  32841. var _this10 = this;
  32842. xe(De, function () {
  32843. var t = _this10.hasLoginState();
  32844. e.call(_this10, t);
  32845. });
  32846. }
  32847. }, {
  32848. key: "getAccessToken",
  32849. value: function () {
  32850. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28() {
  32851. return _regenerator.default.wrap(function _callee28$(_context28) {
  32852. while (1) {
  32853. switch (_context28.prev = _context28.next) {
  32854. case 0:
  32855. _context28.next = 2;
  32856. return this._request.getAccessToken();
  32857. case 2:
  32858. _context28.t0 = _context28.sent.accessToken;
  32859. _context28.t1 = this.config.env;
  32860. return _context28.abrupt("return", {
  32861. accessToken: _context28.t0,
  32862. env: _context28.t1
  32863. });
  32864. case 5:
  32865. case "end":
  32866. return _context28.stop();
  32867. }
  32868. }
  32869. }, _callee28, this);
  32870. }));
  32871. function getAccessToken() {
  32872. return _getAccessToken2.apply(this, arguments);
  32873. }
  32874. return getAccessToken;
  32875. }()
  32876. }, {
  32877. key: "hasLoginState",
  32878. value: function hasLoginState() {
  32879. var e = this._cache.keys.refreshTokenKey;
  32880. return this._cache.getStore(e) ? new Ve(this.config.env) : null;
  32881. }
  32882. }, {
  32883. key: "isUsernameRegistered",
  32884. value: function () {
  32885. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29(e) {
  32886. var _yield$this$_request$5, t;
  32887. return _regenerator.default.wrap(function _callee29$(_context29) {
  32888. while (1) {
  32889. switch (_context29.prev = _context29.next) {
  32890. case 0:
  32891. if (!("string" != typeof e)) {
  32892. _context29.next = 2;
  32893. break;
  32894. }
  32895. throw new Q({
  32896. code: "PARAM_ERROR",
  32897. message: "username must be a string"
  32898. });
  32899. case 2:
  32900. _context29.next = 4;
  32901. return this._request.send("auth.isUsernameRegistered", {
  32902. username: e
  32903. });
  32904. case 4:
  32905. _yield$this$_request$5 = _context29.sent;
  32906. t = _yield$this$_request$5.data;
  32907. return _context29.abrupt("return", t && t.isRegistered);
  32908. case 7:
  32909. case "end":
  32910. return _context29.stop();
  32911. }
  32912. }
  32913. }, _callee29, this);
  32914. }));
  32915. function isUsernameRegistered(_x25) {
  32916. return _isUsernameRegistered.apply(this, arguments);
  32917. }
  32918. return isUsernameRegistered;
  32919. }()
  32920. }, {
  32921. key: "getLoginState",
  32922. value: function getLoginState() {
  32923. return Promise.resolve(this.hasLoginState());
  32924. }
  32925. }, {
  32926. key: "signInWithTicket",
  32927. value: function () {
  32928. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  32929. return _regenerator.default.wrap(function _callee30$(_context30) {
  32930. while (1) {
  32931. switch (_context30.prev = _context30.next) {
  32932. case 0:
  32933. return _context30.abrupt("return", new Qe(this.config).signIn(e));
  32934. case 1:
  32935. case "end":
  32936. return _context30.stop();
  32937. }
  32938. }
  32939. }, _callee30, this);
  32940. }));
  32941. function signInWithTicket(_x26) {
  32942. return _signInWithTicket.apply(this, arguments);
  32943. }
  32944. return signInWithTicket;
  32945. }()
  32946. }, {
  32947. key: "shouldRefreshAccessToken",
  32948. value: function shouldRefreshAccessToken(e) {
  32949. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  32950. }
  32951. }, {
  32952. key: "getUserInfo",
  32953. value: function getUserInfo() {
  32954. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  32955. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  32956. requestId: e.seqId
  32957. });
  32958. });
  32959. }
  32960. }, {
  32961. key: "getAuthHeader",
  32962. value: function getAuthHeader() {
  32963. var _this$_cache$keys11 = this._cache.keys,
  32964. e = _this$_cache$keys11.refreshTokenKey,
  32965. t = _this$_cache$keys11.accessTokenKey,
  32966. n = this._cache.getStore(e);
  32967. return {
  32968. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  32969. };
  32970. }
  32971. }, {
  32972. key: "_onAnonymousConverted",
  32973. value: function _onAnonymousConverted(e) {
  32974. var t = e.data.env;
  32975. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  32976. }
  32977. }, {
  32978. key: "_onLoginTypeChanged",
  32979. value: function _onLoginTypeChanged(e) {
  32980. var _e$data = e.data,
  32981. t = _e$data.loginType,
  32982. n = _e$data.persistence,
  32983. s = _e$data.env;
  32984. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  32985. }
  32986. }]);
  32987. return et;
  32988. }();
  32989. var tt = function tt(e, t) {
  32990. t = t || ge();
  32991. var n = Je(this.config.env),
  32992. s = e.cloudPath,
  32993. r = e.filePath,
  32994. i = e.onUploadProgress,
  32995. _e$fileType = e.fileType,
  32996. o = _e$fileType === void 0 ? "image" : _e$fileType;
  32997. return n.send("storage.getUploadMetadata", {
  32998. path: s
  32999. }).then(function (e) {
  33000. var _e$data2 = e.data,
  33001. a = _e$data2.url,
  33002. c = _e$data2.authorization,
  33003. u = _e$data2.token,
  33004. l = _e$data2.fileId,
  33005. h = _e$data2.cosFileId,
  33006. d = e.requestId,
  33007. f = {
  33008. key: s,
  33009. signature: c,
  33010. "x-cos-meta-fileid": h,
  33011. success_action_status: "201",
  33012. "x-cos-security-token": u
  33013. };
  33014. n.upload({
  33015. url: a,
  33016. data: f,
  33017. file: r,
  33018. name: s,
  33019. fileType: o,
  33020. onUploadProgress: i
  33021. }).then(function (e) {
  33022. 201 === e.statusCode ? t(null, {
  33023. fileID: l,
  33024. requestId: d
  33025. }) : t(new Q({
  33026. code: "STORAGE_REQUEST_FAIL",
  33027. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  33028. }));
  33029. }).catch(function (e) {
  33030. t(e);
  33031. });
  33032. }).catch(function (e) {
  33033. t(e);
  33034. }), t.promise;
  33035. },
  33036. nt = function nt(e, t) {
  33037. t = t || ge();
  33038. var n = Je(this.config.env),
  33039. s = e.cloudPath;
  33040. return n.send("storage.getUploadMetadata", {
  33041. path: s
  33042. }).then(function (e) {
  33043. t(null, e);
  33044. }).catch(function (e) {
  33045. t(e);
  33046. }), t.promise;
  33047. },
  33048. st = function st(_ref6, t) {
  33049. var e = _ref6.fileList;
  33050. if (t = t || ge(), !e || !Array.isArray(e)) return {
  33051. code: "INVALID_PARAM",
  33052. message: "fileList必须是非空的数组"
  33053. };
  33054. var _iterator3 = _createForOfIteratorHelper(e),
  33055. _step3;
  33056. try {
  33057. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  33058. var _t8 = _step3.value;
  33059. if (!_t8 || "string" != typeof _t8) return {
  33060. code: "INVALID_PARAM",
  33061. message: "fileList的元素必须是非空的字符串"
  33062. };
  33063. }
  33064. } catch (err) {
  33065. _iterator3.e(err);
  33066. } finally {
  33067. _iterator3.f();
  33068. }
  33069. var n = {
  33070. fileid_list: e
  33071. };
  33072. return Je(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  33073. e.code ? t(null, e) : t(null, {
  33074. fileList: e.data.delete_list,
  33075. requestId: e.requestId
  33076. });
  33077. }).catch(function (e) {
  33078. t(e);
  33079. }), t.promise;
  33080. },
  33081. rt = function rt(_ref7, t) {
  33082. var e = _ref7.fileList;
  33083. t = t || ge(), e && Array.isArray(e) || t(null, {
  33084. code: "INVALID_PARAM",
  33085. message: "fileList必须是非空的数组"
  33086. });
  33087. var n = [];
  33088. var _iterator4 = _createForOfIteratorHelper(e),
  33089. _step4;
  33090. try {
  33091. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  33092. var _s9 = _step4.value;
  33093. "object" == (0, _typeof2.default)(_s9) ? (_s9.hasOwnProperty("fileID") && _s9.hasOwnProperty("maxAge") || t(null, {
  33094. code: "INVALID_PARAM",
  33095. message: "fileList的元素必须是包含fileID和maxAge的对象"
  33096. }), n.push({
  33097. fileid: _s9.fileID,
  33098. max_age: _s9.maxAge
  33099. })) : "string" == typeof _s9 ? n.push({
  33100. fileid: _s9
  33101. }) : t(null, {
  33102. code: "INVALID_PARAM",
  33103. message: "fileList的元素必须是字符串"
  33104. });
  33105. }
  33106. } catch (err) {
  33107. _iterator4.e(err);
  33108. } finally {
  33109. _iterator4.f();
  33110. }
  33111. var s = {
  33112. file_list: n
  33113. };
  33114. return Je(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  33115. e.code ? t(null, e) : t(null, {
  33116. fileList: e.data.download_list,
  33117. requestId: e.requestId
  33118. });
  33119. }).catch(function (e) {
  33120. t(e);
  33121. }), t.promise;
  33122. },
  33123. it = /*#__PURE__*/function () {
  33124. var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(_ref8, t) {
  33125. var e, n, s, r;
  33126. return _regenerator.default.wrap(function _callee31$(_context31) {
  33127. while (1) {
  33128. switch (_context31.prev = _context31.next) {
  33129. case 0:
  33130. e = _ref8.fileID;
  33131. _context31.next = 3;
  33132. return rt.call(this, {
  33133. fileList: [{
  33134. fileID: e,
  33135. maxAge: 600
  33136. }]
  33137. });
  33138. case 3:
  33139. n = _context31.sent.fileList[0];
  33140. if (!("SUCCESS" !== n.code)) {
  33141. _context31.next = 6;
  33142. break;
  33143. }
  33144. return _context31.abrupt("return", t ? t(n) : new Promise(function (e) {
  33145. e(n);
  33146. }));
  33147. case 6:
  33148. s = Je(this.config.env);
  33149. r = n.download_url;
  33150. if (!(r = encodeURI(r), !t)) {
  33151. _context31.next = 10;
  33152. break;
  33153. }
  33154. return _context31.abrupt("return", s.download({
  33155. url: r
  33156. }));
  33157. case 10:
  33158. _context31.t0 = t;
  33159. _context31.next = 13;
  33160. return s.download({
  33161. url: r
  33162. });
  33163. case 13:
  33164. _context31.t1 = _context31.sent;
  33165. (0, _context31.t0)(_context31.t1);
  33166. case 15:
  33167. case "end":
  33168. return _context31.stop();
  33169. }
  33170. }
  33171. }, _callee31, this);
  33172. }));
  33173. return function it(_x27, _x28) {
  33174. return _ref9.apply(this, arguments);
  33175. };
  33176. }(),
  33177. ot = function ot(_ref10, i) {
  33178. var e = _ref10.name,
  33179. t = _ref10.data,
  33180. n = _ref10.query,
  33181. s = _ref10.parse,
  33182. r = _ref10.search;
  33183. var o = i || ge();
  33184. var a;
  33185. try {
  33186. a = t ? JSON.stringify(t) : "";
  33187. } catch (e) {
  33188. return Promise.reject(e);
  33189. }
  33190. if (!e) return Promise.reject(new Q({
  33191. code: "PARAM_ERROR",
  33192. message: "函数名不能为空"
  33193. }));
  33194. var c = {
  33195. inQuery: n,
  33196. parse: s,
  33197. search: r,
  33198. function_name: e,
  33199. request_data: a
  33200. };
  33201. return Je(this.config.env).send("functions.invokeFunction", c).then(function (e) {
  33202. if (e.code) o(null, e);else {
  33203. var _t9 = e.data.response_data;
  33204. if (s) o(null, {
  33205. result: _t9,
  33206. requestId: e.requestId
  33207. });else try {
  33208. _t9 = JSON.parse(e.data.response_data), o(null, {
  33209. result: _t9,
  33210. requestId: e.requestId
  33211. });
  33212. } catch (e) {
  33213. o(new Q({
  33214. message: "response data must be json"
  33215. }));
  33216. }
  33217. }
  33218. return o.promise;
  33219. }).catch(function (e) {
  33220. o(e);
  33221. }), o.promise;
  33222. },
  33223. at = {
  33224. timeout: 15e3,
  33225. persistence: "session"
  33226. },
  33227. ct = {};
  33228. var ut = /*#__PURE__*/function () {
  33229. function ut(e) {
  33230. (0, _classCallCheck2.default)(this, ut);
  33231. this.config = e || this.config, this.authObj = void 0;
  33232. }
  33233. (0, _createClass2.default)(ut, [{
  33234. key: "init",
  33235. value: function init(e) {
  33236. switch (ve.adapter || (this.requestClient = new ve.adapter.reqClass({
  33237. timeout: e.timeout || 5e3,
  33238. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  33239. })), this.config = _objectSpread(_objectSpread({}, at), e), !0) {
  33240. case this.config.timeout > 6e5:
  33241. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  33242. break;
  33243. case this.config.timeout < 100:
  33244. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  33245. }
  33246. return new ut(this.config);
  33247. }
  33248. }, {
  33249. key: "auth",
  33250. value: function auth() {
  33251. var _ref11 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33252. e = _ref11.persistence;
  33253. if (this.authObj) return this.authObj;
  33254. var t = e || ve.adapter.primaryStorage || at.persistence;
  33255. var n;
  33256. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  33257. var t = e.env;
  33258. Te[t] = new be(e), Ae[t] = new be(_objectSpread(_objectSpread({}, e), {}, {
  33259. persistence: "local"
  33260. }));
  33261. }(this.config), n = this.config, ze[n.env] = new We(n), this.authObj = new et(this.config), this.authObj;
  33262. }
  33263. }, {
  33264. key: "on",
  33265. value: function on(e, t) {
  33266. return xe.apply(this, [e, t]);
  33267. }
  33268. }, {
  33269. key: "off",
  33270. value: function off(e, t) {
  33271. return Re.apply(this, [e, t]);
  33272. }
  33273. }, {
  33274. key: "callFunction",
  33275. value: function callFunction(e, t) {
  33276. return ot.apply(this, [e, t]);
  33277. }
  33278. }, {
  33279. key: "deleteFile",
  33280. value: function deleteFile(e, t) {
  33281. return st.apply(this, [e, t]);
  33282. }
  33283. }, {
  33284. key: "getTempFileURL",
  33285. value: function getTempFileURL(e, t) {
  33286. return rt.apply(this, [e, t]);
  33287. }
  33288. }, {
  33289. key: "downloadFile",
  33290. value: function downloadFile(e, t) {
  33291. return it.apply(this, [e, t]);
  33292. }
  33293. }, {
  33294. key: "uploadFile",
  33295. value: function uploadFile(e, t) {
  33296. return tt.apply(this, [e, t]);
  33297. }
  33298. }, {
  33299. key: "getUploadMetadata",
  33300. value: function getUploadMetadata(e, t) {
  33301. return nt.apply(this, [e, t]);
  33302. }
  33303. }, {
  33304. key: "registerExtension",
  33305. value: function registerExtension(e) {
  33306. ct[e.name] = e;
  33307. }
  33308. }, {
  33309. key: "invokeExtension",
  33310. value: function () {
  33311. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(e, t) {
  33312. var n;
  33313. return _regenerator.default.wrap(function _callee32$(_context32) {
  33314. while (1) {
  33315. switch (_context32.prev = _context32.next) {
  33316. case 0:
  33317. n = ct[e];
  33318. if (n) {
  33319. _context32.next = 3;
  33320. break;
  33321. }
  33322. throw new Q({
  33323. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  33324. });
  33325. case 3:
  33326. _context32.next = 5;
  33327. return n.invoke(t, this);
  33328. case 5:
  33329. return _context32.abrupt("return", _context32.sent);
  33330. case 6:
  33331. case "end":
  33332. return _context32.stop();
  33333. }
  33334. }
  33335. }, _callee32, this);
  33336. }));
  33337. function invokeExtension(_x29, _x30) {
  33338. return _invokeExtension.apply(this, arguments);
  33339. }
  33340. return invokeExtension;
  33341. }()
  33342. }, {
  33343. key: "useAdapters",
  33344. value: function useAdapters(e) {
  33345. var _ref12 = we(e) || {},
  33346. t = _ref12.adapter,
  33347. n = _ref12.runtime;
  33348. t && (ve.adapter = t), n && (ve.runtime = n);
  33349. }
  33350. }]);
  33351. return ut;
  33352. }();
  33353. var lt = new ut();
  33354. function ht(e, t, n) {
  33355. void 0 === n && (n = {});
  33356. var s = /\?/.test(t),
  33357. r = "";
  33358. for (var i in n) {
  33359. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  33360. }
  33361. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  33362. }
  33363. var dt = /*#__PURE__*/function () {
  33364. function dt() {
  33365. (0, _classCallCheck2.default)(this, dt);
  33366. }
  33367. (0, _createClass2.default)(dt, [{
  33368. key: "post",
  33369. value: function post(e) {
  33370. var t = e.url,
  33371. n = e.data,
  33372. s = e.headers;
  33373. return new Promise(function (e, r) {
  33374. X.request({
  33375. url: ht("https:", t),
  33376. data: n,
  33377. method: "POST",
  33378. header: s,
  33379. success: function success(t) {
  33380. e(t);
  33381. },
  33382. fail: function fail(e) {
  33383. r(e);
  33384. }
  33385. });
  33386. });
  33387. }
  33388. }, {
  33389. key: "upload",
  33390. value: function upload(e) {
  33391. return new Promise(function (t, n) {
  33392. var s = e.url,
  33393. r = e.file,
  33394. i = e.data,
  33395. o = e.headers,
  33396. a = e.fileType,
  33397. c = X.uploadFile({
  33398. url: ht("https:", s),
  33399. name: "file",
  33400. formData: Object.assign({}, i),
  33401. filePath: r,
  33402. fileType: a,
  33403. header: o,
  33404. success: function success(e) {
  33405. var n = {
  33406. statusCode: e.statusCode,
  33407. data: e.data || {}
  33408. };
  33409. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  33410. },
  33411. fail: function fail(e) {
  33412. n(new Error(e.errMsg || "uploadFile:fail"));
  33413. }
  33414. });
  33415. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  33416. e.onUploadProgress({
  33417. loaded: t.totalBytesSent,
  33418. total: t.totalBytesExpectedToSend
  33419. });
  33420. });
  33421. });
  33422. }
  33423. }]);
  33424. return dt;
  33425. }();
  33426. var ft = {
  33427. setItem: function setItem(e, t) {
  33428. X.setStorageSync(e, t);
  33429. },
  33430. getItem: function getItem(e) {
  33431. return X.getStorageSync(e);
  33432. },
  33433. removeItem: function removeItem(e) {
  33434. X.removeStorageSync(e);
  33435. },
  33436. clear: function clear() {
  33437. X.clearStorageSync();
  33438. }
  33439. };
  33440. var pt = {
  33441. genAdapter: function genAdapter() {
  33442. return {
  33443. root: {},
  33444. reqClass: dt,
  33445. localStorage: ft,
  33446. primaryStorage: "local"
  33447. };
  33448. },
  33449. isMatch: function isMatch() {
  33450. return !0;
  33451. },
  33452. runtime: "uni_app"
  33453. };
  33454. lt.useAdapters(pt);
  33455. var gt = lt,
  33456. mt = gt.init;
  33457. gt.init = function (e) {
  33458. e.env = e.spaceId;
  33459. var t = mt.call(this, e);
  33460. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  33461. var n = t.auth;
  33462. return t.auth = function (e) {
  33463. var t = n.call(this, e);
  33464. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  33465. t[e] = Y(t[e]).bind(t);
  33466. }), t;
  33467. }, t.customAuth = t.auth, t;
  33468. };
  33469. var yt = gt;
  33470. var _t = /*#__PURE__*/function (_le) {
  33471. (0, _inherits2.default)(_t, _le);
  33472. var _super8 = _createSuper(_t);
  33473. function _t() {
  33474. (0, _classCallCheck2.default)(this, _t);
  33475. return _super8.apply(this, arguments);
  33476. }
  33477. (0, _createClass2.default)(_t, [{
  33478. key: "getAccessToken",
  33479. value: function getAccessToken() {
  33480. var _this11 = this;
  33481. return new Promise(function (e, t) {
  33482. var n = "Anonymous_Access_token";
  33483. _this11.setAccessToken(n), e(n);
  33484. });
  33485. }
  33486. }, {
  33487. key: "setupRequest",
  33488. value: function setupRequest(e, t) {
  33489. var n = Object.assign({}, e, {
  33490. spaceId: this.config.spaceId,
  33491. timestamp: Date.now()
  33492. }),
  33493. s = {
  33494. "Content-Type": "application/json"
  33495. };
  33496. "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = ae.sign(n, this.config.clientSecret);
  33497. var r = oe();
  33498. s["x-client-info"] = encodeURIComponent(JSON.stringify(r));
  33499. var _Z = Z(),
  33500. i = _Z.token;
  33501. return s["x-client-token"] = i, {
  33502. url: this.config.requestUrl,
  33503. method: "POST",
  33504. data: n,
  33505. dataType: "json",
  33506. header: JSON.parse(JSON.stringify(s))
  33507. };
  33508. }
  33509. }, {
  33510. key: "uploadFileToOSS",
  33511. value: function uploadFileToOSS(_ref13) {
  33512. var _this12 = this;
  33513. var e = _ref13.url,
  33514. t = _ref13.formData,
  33515. n = _ref13.name,
  33516. s = _ref13.filePath,
  33517. r = _ref13.fileType,
  33518. i = _ref13.onUploadProgress;
  33519. return new Promise(function (o, a) {
  33520. var c = _this12.adapter.uploadFile({
  33521. url: e,
  33522. formData: t,
  33523. name: n,
  33524. filePath: s,
  33525. fileType: r,
  33526. success: function success(e) {
  33527. e && e.statusCode < 400 ? o(e) : a(new Q({
  33528. code: "UPLOAD_FAILED",
  33529. message: "文件上传失败"
  33530. }));
  33531. },
  33532. fail: function fail(e) {
  33533. a(new Q({
  33534. code: e.code || "UPLOAD_FAILED",
  33535. message: e.message || e.errMsg || "文件上传失败"
  33536. }));
  33537. }
  33538. });
  33539. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  33540. i({
  33541. loaded: e.totalBytesSent,
  33542. total: e.totalBytesExpectedToSend
  33543. });
  33544. });
  33545. });
  33546. }
  33547. }, {
  33548. key: "uploadFile",
  33549. value: function uploadFile(_ref14) {
  33550. var _this13 = this;
  33551. var e = _ref14.filePath,
  33552. t = _ref14.cloudPath,
  33553. _ref14$fileType = _ref14.fileType,
  33554. n = _ref14$fileType === void 0 ? "image" : _ref14$fileType,
  33555. s = _ref14.onUploadProgress;
  33556. if (!t) throw new Q({
  33557. code: "CLOUDPATH_REQUIRED",
  33558. message: "cloudPath不可为空"
  33559. });
  33560. var r;
  33561. return this.getOSSUploadOptionsFromPath({
  33562. cloudPath: t
  33563. }).then(function (t) {
  33564. var _t$result = t.result,
  33565. i = _t$result.url,
  33566. o = _t$result.formData,
  33567. a = _t$result.name;
  33568. r = t.result.fileUrl;
  33569. var c = {
  33570. url: i,
  33571. formData: o,
  33572. name: a,
  33573. filePath: e,
  33574. fileType: n
  33575. };
  33576. return _this13.uploadFileToOSS(Object.assign({}, c, {
  33577. onUploadProgress: s
  33578. }));
  33579. }).then(function () {
  33580. return _this13.reportOSSUpload({
  33581. cloudPath: t
  33582. });
  33583. }).then(function (t) {
  33584. return new Promise(function (n, s) {
  33585. t.success ? n({
  33586. success: !0,
  33587. filePath: e,
  33588. fileID: r
  33589. }) : s(new Q({
  33590. code: "UPLOAD_FAILED",
  33591. message: "文件上传失败"
  33592. }));
  33593. });
  33594. });
  33595. }
  33596. }, {
  33597. key: "deleteFile",
  33598. value: function deleteFile(_ref15) {
  33599. var e = _ref15.fileList;
  33600. var t = {
  33601. method: "serverless.file.resource.delete",
  33602. params: JSON.stringify({
  33603. fileList: e
  33604. })
  33605. };
  33606. return this.request(this.setupRequest(t)).then(function (e) {
  33607. if (e.success) return e.result;
  33608. throw new Q({
  33609. code: "DELETE_FILE_FAILED",
  33610. message: "删除文件失败"
  33611. });
  33612. });
  33613. }
  33614. }, {
  33615. key: "getTempFileURL",
  33616. value: function getTempFileURL() {
  33617. var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33618. e = _ref16.fileList;
  33619. if (!Array.isArray(e) || 0 === e.length) throw new Q({
  33620. code: "INVALID_PARAM",
  33621. message: "fileList的元素必须是非空的字符串"
  33622. });
  33623. var t = {
  33624. method: "serverless.file.resource.getTempFileURL",
  33625. params: JSON.stringify({
  33626. fileList: e
  33627. })
  33628. };
  33629. return this.request(this.setupRequest(t)).then(function (e) {
  33630. if (e.success) return {
  33631. fileList: e.result.fileList.map(function (e) {
  33632. return {
  33633. fileID: e.fileID,
  33634. tempFileURL: e.tempFileURL
  33635. };
  33636. })
  33637. };
  33638. throw new Q({
  33639. code: "GET_TEMP_FILE_URL_FAILED",
  33640. message: "获取临时文件链接失败"
  33641. });
  33642. });
  33643. }
  33644. }]);
  33645. return _t;
  33646. }(le);
  33647. var wt = {
  33648. init: function init(e) {
  33649. var t = new _t(e),
  33650. n = {
  33651. signInAnonymously: function signInAnonymously() {
  33652. return t.authorize();
  33653. },
  33654. getLoginState: function getLoginState() {
  33655. return Promise.resolve(!1);
  33656. }
  33657. };
  33658. return t.auth = function () {
  33659. return n;
  33660. }, t.customAuth = t.auth, t;
  33661. }
  33662. };
  33663. function vt(_ref17) {
  33664. var e = _ref17.data;
  33665. var t;
  33666. t = oe();
  33667. var n = JSON.parse(JSON.stringify(e || {}));
  33668. if (Object.assign(n, {
  33669. clientInfo: t
  33670. }), !n.uniIdToken) {
  33671. var _Z2 = Z(),
  33672. _e20 = _Z2.token;
  33673. _e20 && (n.uniIdToken = _e20);
  33674. }
  33675. return n;
  33676. }
  33677. function St() {
  33678. var _this14 = this;
  33679. var _ref18 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33680. e = _ref18.name,
  33681. t = _ref18.data;
  33682. var _this$__dev__ = this.__dev__,
  33683. n = _this$__dev__.localAddress,
  33684. s = _this$__dev__.localPort,
  33685. r = {
  33686. aliyun: "aliyun",
  33687. tencent: "tcb"
  33688. }[this.config.provider],
  33689. i = this.config.spaceId,
  33690. o = "http://".concat(n, ":").concat(s, "/system/check-function"),
  33691. a = "http://".concat(n, ":").concat(s, "/cloudfunctions/").concat(e);
  33692. return new Promise(function (t, n) {
  33693. X.request({
  33694. method: "POST",
  33695. url: o,
  33696. data: {
  33697. name: e,
  33698. platform: S,
  33699. provider: r,
  33700. spaceId: i
  33701. },
  33702. timeout: 3e3,
  33703. success: function success(e) {
  33704. t(e);
  33705. },
  33706. fail: function fail() {
  33707. t({
  33708. data: {
  33709. code: "NETWORK_ERROR",
  33710. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  33711. }
  33712. });
  33713. }
  33714. });
  33715. }).then(function () {
  33716. var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33717. e = _ref19.data;
  33718. var _ref20 = e || {},
  33719. t = _ref20.code,
  33720. n = _ref20.message;
  33721. return {
  33722. code: 0 === t ? 0 : t || "SYS_ERR",
  33723. message: n || "SYS_ERR"
  33724. };
  33725. }).then(function (_ref21) {
  33726. var n = _ref21.code,
  33727. s = _ref21.message;
  33728. if (0 !== n) {
  33729. switch (n) {
  33730. case "MODULE_ENCRYPTED":
  33731. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  33732. break;
  33733. case "FUNCTION_ENCRYPTED":
  33734. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  33735. break;
  33736. case "ACTION_ENCRYPTED":
  33737. console.error(s || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  33738. break;
  33739. case "NETWORK_ERROR":
  33740. {
  33741. var _e21 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";
  33742. throw console.error(_e21), new Error(_e21);
  33743. }
  33744. case "SWITCH_TO_CLOUD":
  33745. break;
  33746. default:
  33747. {
  33748. var _e22 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(s, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  33749. throw console.error(_e22), new Error(_e22);
  33750. }
  33751. }
  33752. return _this14._callCloudFunction({
  33753. name: e,
  33754. data: t
  33755. });
  33756. }
  33757. return new Promise(function (e, n) {
  33758. var s = vt.call(_this14, {
  33759. data: t
  33760. });
  33761. X.request({
  33762. method: "POST",
  33763. url: a,
  33764. data: {
  33765. provider: r,
  33766. platform: S,
  33767. param: s
  33768. },
  33769. success: function success() {
  33770. var _ref22 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33771. t = _ref22.statusCode,
  33772. s = _ref22.data;
  33773. return !t || t >= 400 ? n(new Q({
  33774. code: s.code || "SYS_ERR",
  33775. message: s.message || "request:fail"
  33776. })) : e({
  33777. result: s
  33778. });
  33779. },
  33780. fail: function fail(e) {
  33781. n(new Q({
  33782. code: e.code || e.errCode || "SYS_ERR",
  33783. message: e.message || e.errMsg || "request:fail"
  33784. }));
  33785. }
  33786. });
  33787. });
  33788. });
  33789. }
  33790. var kt = [{
  33791. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  33792. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  33793. mode: "append"
  33794. }];
  33795. var It = /[\\^$.*+?()[\]{}|]/g,
  33796. bt = RegExp(It.source);
  33797. function Tt(e, t, n) {
  33798. return e.replace(new RegExp((s = t) && bt.test(s) ? s.replace(It, "\\$&") : s, "g"), n);
  33799. var s;
  33800. }
  33801. var At = "none",
  33802. Ct = "request",
  33803. Pt = "response",
  33804. Et = "both";
  33805. var Ot = /*#__PURE__*/function () {
  33806. function Ot() {
  33807. var _ref23 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  33808. e = _ref23.secretType,
  33809. t = _ref23.uniCloudIns;
  33810. (0, _classCallCheck2.default)(this, Ot);
  33811. this.secretType = e || At, this.uniCloudIns = t;
  33812. var _this$uniCloudIns$con = this.uniCloudIns.config,
  33813. n = _this$uniCloudIns$con.provider,
  33814. s = _this$uniCloudIns$con.spaceId;
  33815. var r;
  33816. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, C("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  33817. }
  33818. (0, _createClass2.default)(Ot, [{
  33819. key: "getSystemInfo",
  33820. value: function getSystemInfo() {
  33821. return this._systemInfo || (this._systemInfo = re()), this._systemInfo;
  33822. }
  33823. }, {
  33824. key: "appId",
  33825. get: function get() {
  33826. return this.getSystemInfo().appId;
  33827. }
  33828. }, {
  33829. key: "deviceId",
  33830. get: function get() {
  33831. return this.getSystemInfo().deviceId;
  33832. }
  33833. }, {
  33834. key: "encryptData",
  33835. value: function () {
  33836. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e) {
  33837. return _regenerator.default.wrap(function _callee33$(_context33) {
  33838. while (1) {
  33839. switch (_context33.prev = _context33.next) {
  33840. case 0:
  33841. return _context33.abrupt("return", this.secretType === At || this.secretType === At ? e : this.platformEncryptData(e));
  33842. case 1:
  33843. case "end":
  33844. return _context33.stop();
  33845. }
  33846. }
  33847. }, _callee33, this);
  33848. }));
  33849. function encryptData(_x31) {
  33850. return _encryptData.apply(this, arguments);
  33851. }
  33852. return encryptData;
  33853. }()
  33854. }, {
  33855. key: "decryptResult",
  33856. value: function () {
  33857. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(e) {
  33858. var t;
  33859. return _regenerator.default.wrap(function _callee34$(_context34) {
  33860. while (1) {
  33861. switch (_context34.prev = _context34.next) {
  33862. case 0:
  33863. if (!(this.secretType === At)) {
  33864. _context34.next = 2;
  33865. break;
  33866. }
  33867. return _context34.abrupt("return", e);
  33868. case 2:
  33869. t = e.content;
  33870. return _context34.abrupt("return", t ? this.secretType === Ct ? t : this.platformDecryptResult(e) : e);
  33871. case 4:
  33872. case "end":
  33873. return _context34.stop();
  33874. }
  33875. }
  33876. }, _callee34, this);
  33877. }));
  33878. function decryptResult(_x32) {
  33879. return _decryptResult.apply(this, arguments);
  33880. }
  33881. return decryptResult;
  33882. }()
  33883. }, {
  33884. key: "wrapVerifyClientCallFunction",
  33885. value: function wrapVerifyClientCallFunction(e) {
  33886. var t = this;
  33887. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35() {
  33888. var _ref25,
  33889. n,
  33890. _ref25$data,
  33891. s,
  33892. _args35 = arguments;
  33893. return _regenerator.default.wrap(function _callee35$(_context35) {
  33894. while (1) {
  33895. switch (_context35.prev = _context35.next) {
  33896. case 0:
  33897. _ref25 = _args35.length > 0 && _args35[0] !== undefined ? _args35[0] : {}, n = _ref25.name, _ref25$data = _ref25.data, s = _ref25$data === void 0 ? {} : _ref25$data;
  33898. _context35.next = 3;
  33899. return t.prepare();
  33900. case 3:
  33901. _context35.next = 5;
  33902. return t.platformGetSignOption();
  33903. case 5:
  33904. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context35.sent;
  33905. _context35.next = 8;
  33906. return e({
  33907. name: n,
  33908. data: s
  33909. });
  33910. case 8:
  33911. return _context35.abrupt("return", _context35.sent);
  33912. case 9:
  33913. case "end":
  33914. return _context35.stop();
  33915. }
  33916. }
  33917. }, _callee35);
  33918. }));
  33919. }
  33920. }, {
  33921. key: "wrapEncryptDataCallFunction",
  33922. value: function wrapEncryptDataCallFunction(e) {
  33923. var t = this;
  33924. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36() {
  33925. var _ref27,
  33926. n,
  33927. _ref27$data,
  33928. s,
  33929. r,
  33930. i,
  33931. _args36 = arguments;
  33932. return _regenerator.default.wrap(function _callee36$(_context36) {
  33933. while (1) {
  33934. switch (_context36.prev = _context36.next) {
  33935. case 0:
  33936. _ref27 = _args36.length > 0 && _args36[0] !== undefined ? _args36[0] : {}, n = _ref27.name, _ref27$data = _ref27.data, s = _ref27$data === void 0 ? {} : _ref27$data;
  33937. _context36.next = 3;
  33938. return t.prepare();
  33939. case 3:
  33940. _context36.next = 5;
  33941. return t.encryptData(s);
  33942. case 5:
  33943. r = _context36.sent;
  33944. _context36.next = 8;
  33945. return e({
  33946. name: n,
  33947. data: r
  33948. });
  33949. case 8:
  33950. i = _context36.sent;
  33951. _context36.next = 11;
  33952. return t.decryptResult(i.result);
  33953. case 11:
  33954. i.result = _context36.sent;
  33955. return _context36.abrupt("return", i);
  33956. case 13:
  33957. case "end":
  33958. return _context36.stop();
  33959. }
  33960. }
  33961. }, _callee36);
  33962. }));
  33963. }
  33964. }]);
  33965. return Ot;
  33966. }();
  33967. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  33968. function xt(e) {
  33969. return parseInt(e) === e;
  33970. }
  33971. function Ut(e) {
  33972. if (!xt(e.length)) return !1;
  33973. for (var t = 0; t < e.length; t++) {
  33974. if (!xt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  33975. }
  33976. return !0;
  33977. }
  33978. function Rt(e, t) {
  33979. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  33980. if (Array.isArray(e)) {
  33981. if (!Ut(e)) throw new Error("Array contains invalid value: " + e);
  33982. return new Uint8Array(e);
  33983. }
  33984. if (xt(e.length) && Ut(e)) return new Uint8Array(e);
  33985. throw new Error("unsupported array-like object");
  33986. }
  33987. function Lt(e) {
  33988. return new Uint8Array(e);
  33989. }
  33990. function Nt(e, t, n, s, r) {
  33991. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  33992. }
  33993. var Dt,
  33994. Ft = {
  33995. toBytes: function toBytes(e) {
  33996. var t = [],
  33997. n = 0;
  33998. for (e = encodeURI(e); n < e.length;) {
  33999. var s = e.charCodeAt(n++);
  34000. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  34001. }
  34002. return Rt(t);
  34003. },
  34004. fromBytes: function fromBytes(e) {
  34005. for (var t = [], n = 0; n < e.length;) {
  34006. var s = e[n];
  34007. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  34008. }
  34009. return t.join("");
  34010. }
  34011. },
  34012. qt = (Dt = "0123456789abcdef", {
  34013. toBytes: function toBytes(e) {
  34014. for (var t = [], n = 0; n < e.length; n += 2) {
  34015. t.push(parseInt(e.substr(n, 2), 16));
  34016. }
  34017. return t;
  34018. },
  34019. fromBytes: function fromBytes(e) {
  34020. for (var t = [], n = 0; n < e.length; n++) {
  34021. var s = e[n];
  34022. t.push(Dt[(240 & s) >> 4] + Dt[15 & s]);
  34023. }
  34024. return t.join("");
  34025. }
  34026. }),
  34027. Kt = {
  34028. 16: 10,
  34029. 24: 12,
  34030. 32: 14
  34031. },
  34032. jt = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  34033. Mt = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  34034. Bt = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  34035. $t = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  34036. Wt = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  34037. zt = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  34038. Jt = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  34039. Ht = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  34040. Gt = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  34041. Vt = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  34042. Yt = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  34043. Qt = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  34044. Xt = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  34045. Zt = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  34046. en = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  34047. function tn(e) {
  34048. for (var t = [], n = 0; n < e.length; n += 4) {
  34049. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  34050. }
  34051. return t;
  34052. }
  34053. var nn = /*#__PURE__*/function () {
  34054. function nn(e) {
  34055. (0, _classCallCheck2.default)(this, nn);
  34056. if (!(this instanceof nn)) throw Error("AES must be instanitated with `new`");
  34057. Object.defineProperty(this, "key", {
  34058. value: Rt(e, !0)
  34059. }), this._prepare();
  34060. }
  34061. (0, _createClass2.default)(nn, [{
  34062. key: "_prepare",
  34063. value: function _prepare() {
  34064. var e = Kt[this.key.length];
  34065. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  34066. this._Ke = [], this._Kd = [];
  34067. for (var t = 0; t <= e; t++) {
  34068. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  34069. }
  34070. var n,
  34071. s = 4 * (e + 1),
  34072. r = this.key.length / 4,
  34073. i = tn(this.key);
  34074. for (t = 0; t < r; t++) {
  34075. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  34076. }
  34077. for (var o, a = 0, c = r; c < s;) {
  34078. if (o = i[r - 1], i[0] ^= Mt[o >> 16 & 255] << 24 ^ Mt[o >> 8 & 255] << 16 ^ Mt[255 & o] << 8 ^ Mt[o >> 24 & 255] ^ jt[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  34079. i[t] ^= i[t - 1];
  34080. } else {
  34081. for (t = 1; t < r / 2; t++) {
  34082. i[t] ^= i[t - 1];
  34083. }
  34084. o = i[r / 2 - 1], i[r / 2] ^= Mt[255 & o] ^ Mt[o >> 8 & 255] << 8 ^ Mt[o >> 16 & 255] << 16 ^ Mt[o >> 24 & 255] << 24;
  34085. for (t = r / 2 + 1; t < r; t++) {
  34086. i[t] ^= i[t - 1];
  34087. }
  34088. }
  34089. for (t = 0; t < r && c < s;) {
  34090. u = c >> 2, l = c % 4, this._Ke[u][l] = i[t], this._Kd[e - u][l] = i[t++], c++;
  34091. }
  34092. }
  34093. for (var u = 1; u < e; u++) {
  34094. for (var l = 0; l < 4; l++) {
  34095. o = this._Kd[u][l], this._Kd[u][l] = Qt[o >> 24 & 255] ^ Xt[o >> 16 & 255] ^ Zt[o >> 8 & 255] ^ en[255 & o];
  34096. }
  34097. }
  34098. }
  34099. }, {
  34100. key: "encrypt",
  34101. value: function encrypt(e) {
  34102. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  34103. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = tn(e), r = 0; r < 4; r++) {
  34104. s[r] ^= this._Ke[0][r];
  34105. }
  34106. for (var i = 1; i < t; i++) {
  34107. for (r = 0; r < 4; r++) {
  34108. n[r] = $t[s[r] >> 24 & 255] ^ Wt[s[(r + 1) % 4] >> 16 & 255] ^ zt[s[(r + 2) % 4] >> 8 & 255] ^ Jt[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  34109. }
  34110. s = n.slice();
  34111. }
  34112. var o,
  34113. a = Lt(16);
  34114. for (r = 0; r < 4; r++) {
  34115. o = this._Ke[t][r], a[4 * r] = 255 & (Mt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Mt[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Mt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Mt[255 & s[(r + 3) % 4]] ^ o);
  34116. }
  34117. return a;
  34118. }
  34119. }, {
  34120. key: "decrypt",
  34121. value: function decrypt(e) {
  34122. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  34123. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = tn(e), r = 0; r < 4; r++) {
  34124. s[r] ^= this._Kd[0][r];
  34125. }
  34126. for (var i = 1; i < t; i++) {
  34127. for (r = 0; r < 4; r++) {
  34128. n[r] = Ht[s[r] >> 24 & 255] ^ Gt[s[(r + 3) % 4] >> 16 & 255] ^ Vt[s[(r + 2) % 4] >> 8 & 255] ^ Yt[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  34129. }
  34130. s = n.slice();
  34131. }
  34132. var o,
  34133. a = Lt(16);
  34134. for (r = 0; r < 4; r++) {
  34135. o = this._Kd[t][r], a[4 * r] = 255 & (Bt[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (Bt[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (Bt[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (Bt[255 & s[(r + 1) % 4]] ^ o);
  34136. }
  34137. return a;
  34138. }
  34139. }]);
  34140. return nn;
  34141. }();
  34142. var sn = /*#__PURE__*/function () {
  34143. function sn(e) {
  34144. (0, _classCallCheck2.default)(this, sn);
  34145. if (!(this instanceof sn)) throw Error("AES must be instanitated with `new`");
  34146. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new nn(e);
  34147. }
  34148. (0, _createClass2.default)(sn, [{
  34149. key: "encrypt",
  34150. value: function encrypt(e) {
  34151. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  34152. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34153. Nt(e, n, 0, s, s + 16), Nt(n = this._aes.encrypt(n), t, s);
  34154. }
  34155. return t;
  34156. }
  34157. }, {
  34158. key: "decrypt",
  34159. value: function decrypt(e) {
  34160. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  34161. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34162. Nt(e, n, 0, s, s + 16), Nt(n = this._aes.decrypt(n), t, s);
  34163. }
  34164. return t;
  34165. }
  34166. }]);
  34167. return sn;
  34168. }();
  34169. var rn = /*#__PURE__*/function () {
  34170. function rn(e, t) {
  34171. (0, _classCallCheck2.default)(this, rn);
  34172. if (!(this instanceof rn)) throw Error("AES must be instanitated with `new`");
  34173. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  34174. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  34175. } else t = Lt(16);
  34176. this._lastCipherblock = Rt(t, !0), this._aes = new nn(e);
  34177. }
  34178. (0, _createClass2.default)(rn, [{
  34179. key: "encrypt",
  34180. value: function encrypt(e) {
  34181. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  34182. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34183. Nt(e, n, 0, s, s + 16);
  34184. for (var r = 0; r < 16; r++) {
  34185. n[r] ^= this._lastCipherblock[r];
  34186. }
  34187. this._lastCipherblock = this._aes.encrypt(n), Nt(this._lastCipherblock, t, s);
  34188. }
  34189. return t;
  34190. }
  34191. }, {
  34192. key: "decrypt",
  34193. value: function decrypt(e) {
  34194. if ((e = Rt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  34195. for (var t = Lt(e.length), n = Lt(16), s = 0; s < e.length; s += 16) {
  34196. Nt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  34197. for (var r = 0; r < 16; r++) {
  34198. t[s + r] = n[r] ^ this._lastCipherblock[r];
  34199. }
  34200. Nt(e, this._lastCipherblock, 0, s, s + 16);
  34201. }
  34202. return t;
  34203. }
  34204. }]);
  34205. return rn;
  34206. }();
  34207. var on = /*#__PURE__*/function () {
  34208. function on(e, t, n) {
  34209. (0, _classCallCheck2.default)(this, on);
  34210. if (!(this instanceof on)) throw Error("AES must be instanitated with `new`");
  34211. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  34212. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  34213. } else t = Lt(16);
  34214. n || (n = 1), this.segmentSize = n, this._shiftRegister = Rt(t, !0), this._aes = new nn(e);
  34215. }
  34216. (0, _createClass2.default)(on, [{
  34217. key: "encrypt",
  34218. value: function encrypt(e) {
  34219. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  34220. for (var t, n = Rt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  34221. t = this._aes.encrypt(this._shiftRegister);
  34222. for (var r = 0; r < this.segmentSize; r++) {
  34223. n[s + r] ^= t[r];
  34224. }
  34225. Nt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Nt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  34226. }
  34227. return n;
  34228. }
  34229. }, {
  34230. key: "decrypt",
  34231. value: function decrypt(e) {
  34232. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  34233. for (var t, n = Rt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  34234. t = this._aes.encrypt(this._shiftRegister);
  34235. for (var r = 0; r < this.segmentSize; r++) {
  34236. n[s + r] ^= t[r];
  34237. }
  34238. Nt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Nt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  34239. }
  34240. return n;
  34241. }
  34242. }]);
  34243. return on;
  34244. }();
  34245. var an = /*#__PURE__*/function () {
  34246. function an(e, t) {
  34247. (0, _classCallCheck2.default)(this, an);
  34248. if (!(this instanceof an)) throw Error("AES must be instanitated with `new`");
  34249. if (this.description = "Output Feedback", this.name = "ofb", t) {
  34250. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  34251. } else t = Lt(16);
  34252. this._lastPrecipher = Rt(t, !0), this._lastPrecipherIndex = 16, this._aes = new nn(e);
  34253. }
  34254. (0, _createClass2.default)(an, [{
  34255. key: "encrypt",
  34256. value: function encrypt(e) {
  34257. for (var t = Rt(e, !0), n = 0; n < t.length; n++) {
  34258. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  34259. }
  34260. return t;
  34261. }
  34262. }, {
  34263. key: "decrypt",
  34264. value: function decrypt(e) {
  34265. return this.encrypt(e);
  34266. }
  34267. }]);
  34268. return an;
  34269. }();
  34270. var cn = /*#__PURE__*/function () {
  34271. function cn(e) {
  34272. (0, _classCallCheck2.default)(this, cn);
  34273. if (!(this instanceof cn)) throw Error("Counter must be instanitated with `new`");
  34274. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Lt(16), this.setValue(e)) : this.setBytes(e);
  34275. }
  34276. (0, _createClass2.default)(cn, [{
  34277. key: "setValue",
  34278. value: function setValue(e) {
  34279. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  34280. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  34281. for (var t = 15; t >= 0; --t) {
  34282. this._counter[t] = e % 256, e = parseInt(e / 256);
  34283. }
  34284. }
  34285. }, {
  34286. key: "setBytes",
  34287. value: function setBytes(e) {
  34288. if (16 != (e = Rt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  34289. this._counter = e;
  34290. }
  34291. }, {
  34292. key: "increment",
  34293. value: function increment() {
  34294. for (var e = 15; e >= 0; e--) {
  34295. if (255 !== this._counter[e]) {
  34296. this._counter[e]++;
  34297. break;
  34298. }
  34299. this._counter[e] = 0;
  34300. }
  34301. }
  34302. }]);
  34303. return cn;
  34304. }();
  34305. var un = /*#__PURE__*/function () {
  34306. function un(e, t) {
  34307. (0, _classCallCheck2.default)(this, un);
  34308. if (!(this instanceof un)) throw Error("AES must be instanitated with `new`");
  34309. this.description = "Counter", this.name = "ctr", t instanceof cn || (t = new cn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new nn(e);
  34310. }
  34311. (0, _createClass2.default)(un, [{
  34312. key: "encrypt",
  34313. value: function encrypt(e) {
  34314. for (var t = Rt(e, !0), n = 0; n < t.length; n++) {
  34315. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  34316. }
  34317. return t;
  34318. }
  34319. }, {
  34320. key: "decrypt",
  34321. value: function decrypt(e) {
  34322. return this.encrypt(e);
  34323. }
  34324. }]);
  34325. return un;
  34326. }();
  34327. var ln = {
  34328. AES: nn,
  34329. Counter: cn,
  34330. ModeOfOperation: {
  34331. ecb: sn,
  34332. cbc: rn,
  34333. cfb: on,
  34334. ofb: an,
  34335. ctr: un
  34336. },
  34337. utils: {
  34338. hex: qt,
  34339. utf8: Ft
  34340. },
  34341. padding: {
  34342. pkcs7: {
  34343. pad: function pad(e) {
  34344. var t = 16 - (e = Rt(e, !0)).length % 16,
  34345. n = Lt(e.length + t);
  34346. Nt(e, n);
  34347. for (var s = e.length; s < n.length; s++) {
  34348. n[s] = t;
  34349. }
  34350. return n;
  34351. },
  34352. strip: function strip(e) {
  34353. if ((e = Rt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  34354. var t = e[e.length - 1];
  34355. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  34356. for (var n = e.length - t, s = 0; s < t; s++) {
  34357. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  34358. }
  34359. var r = Lt(n);
  34360. return Nt(e, r, 0, 0, n), r;
  34361. }
  34362. }
  34363. },
  34364. _arrayTest: {
  34365. coerceArray: Rt,
  34366. createArray: Lt,
  34367. copyArray: Nt
  34368. }
  34369. };
  34370. function hn(e, t, n) {
  34371. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  34372. r = ln.utils.utf8.toBytes(n),
  34373. i = ln.utils.utf8.toBytes(e),
  34374. o = new ln.ModeOfOperation.cbc(s, r),
  34375. a = ln.padding.pkcs7.pad(i),
  34376. c = o.encrypt(a);
  34377. return uni.arrayBufferToBase64(c);
  34378. }
  34379. var dn = {
  34380. code: 2e4,
  34381. message: "System error"
  34382. },
  34383. fn = {
  34384. code: 20101,
  34385. message: "Invalid client"
  34386. },
  34387. pn = {
  34388. code: 20102,
  34389. message: "Get encrypt key failed"
  34390. },
  34391. gn = {
  34392. 10001: "Secure network is not supported on current playground or unimpsdk",
  34393. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  34394. 10009: "Encrypt payload failed",
  34395. 10010: "Decrypt response failed"
  34396. };
  34397. function mn(e) {
  34398. var _ref28 = e || {},
  34399. t = _ref28.errSubject,
  34400. n = _ref28.subject,
  34401. s = _ref28.errCode,
  34402. r = _ref28.errMsg,
  34403. i = _ref28.code,
  34404. o = _ref28.message,
  34405. a = _ref28.cause;
  34406. return new Q({
  34407. subject: t || n || "uni-secure-network",
  34408. code: s || i || dn.code,
  34409. message: r || o,
  34410. cause: a
  34411. });
  34412. }
  34413. var yn,
  34414. _n,
  34415. wn = null;
  34416. var vn = /*#__PURE__*/function (_Ot) {
  34417. (0, _inherits2.default)(vn, _Ot);
  34418. var _super9 = _createSuper(vn);
  34419. function vn(e) {
  34420. var _this15;
  34421. (0, _classCallCheck2.default)(this, vn);
  34422. _this15 = _super9.call(this, e), _this15.userEncryptKey = null;
  34423. return _this15;
  34424. }
  34425. (0, _createClass2.default)(vn, [{
  34426. key: "isLogin",
  34427. value: function isLogin() {
  34428. return !!this.scopedGlobalCache.mpWeixinCode;
  34429. }
  34430. }, {
  34431. key: "prepare",
  34432. value: function () {
  34433. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37() {
  34434. return _regenerator.default.wrap(function _callee37$(_context37) {
  34435. while (1) {
  34436. switch (_context37.prev = _context37.next) {
  34437. case 0:
  34438. if (this.isLogin()) {
  34439. _context37.next = 7;
  34440. break;
  34441. }
  34442. if (this.scopedGlobalCache.initPromise) {
  34443. _context37.next = 3;
  34444. break;
  34445. }
  34446. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  34447. case 3:
  34448. _context37.next = 5;
  34449. return this.scopedGlobalCache.initPromise;
  34450. case 5:
  34451. if (this.scopedGlobalCache.mpWeixinCode) {
  34452. _context37.next = 7;
  34453. break;
  34454. }
  34455. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  34456. case 7:
  34457. case "end":
  34458. return _context37.stop();
  34459. }
  34460. }
  34461. }, _callee37, this);
  34462. }));
  34463. function prepare() {
  34464. return _prepare2.apply(this, arguments);
  34465. }
  34466. return prepare;
  34467. }()
  34468. }, {
  34469. key: "getUserEncryptKey",
  34470. value: function () {
  34471. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38() {
  34472. var _this16 = this;
  34473. var e;
  34474. return _regenerator.default.wrap(function _callee38$(_context38) {
  34475. while (1) {
  34476. switch (_context38.prev = _context38.next) {
  34477. case 0:
  34478. if (!this.userEncryptKey) {
  34479. _context38.next = 2;
  34480. break;
  34481. }
  34482. return _context38.abrupt("return", this.userEncryptKey);
  34483. case 2:
  34484. if (!(wn && wn.expireTime)) {
  34485. _context38.next = 6;
  34486. break;
  34487. }
  34488. e = Date.now();
  34489. if (!(wn.expireTime - e > 0)) {
  34490. _context38.next = 6;
  34491. break;
  34492. }
  34493. return _context38.abrupt("return", (this.userEncryptKey = wn, this.userEncryptKey));
  34494. case 6:
  34495. return _context38.abrupt("return", new Promise(function (e, t) {
  34496. uni.getUserCryptoManager().getLatestUserKey({
  34497. success: function success(t) {
  34498. wn = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  34499. },
  34500. fail: function fail(e) {
  34501. t(mn(_objectSpread(_objectSpread({}, pn), {}, {
  34502. cause: e
  34503. })));
  34504. }
  34505. });
  34506. }));
  34507. case 7:
  34508. case "end":
  34509. return _context38.stop();
  34510. }
  34511. }
  34512. }, _callee38, this);
  34513. }));
  34514. function getUserEncryptKey() {
  34515. return _getUserEncryptKey.apply(this, arguments);
  34516. }
  34517. return getUserEncryptKey;
  34518. }()
  34519. }, {
  34520. key: "getWxAppId",
  34521. value: function getWxAppId() {
  34522. return wx.getAccountInfoSync().miniProgram.appId;
  34523. }
  34524. }, {
  34525. key: "platformGetSignOption",
  34526. value: function () {
  34527. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39() {
  34528. var _yield$this$getUserEn, e, t, n;
  34529. return _regenerator.default.wrap(function _callee39$(_context39) {
  34530. while (1) {
  34531. switch (_context39.prev = _context39.next) {
  34532. case 0:
  34533. _context39.next = 2;
  34534. return this.getUserEncryptKey();
  34535. case 2:
  34536. _yield$this$getUserEn = _context39.sent;
  34537. e = _yield$this$getUserEn.encryptKey;
  34538. t = _yield$this$getUserEn.iv;
  34539. n = _yield$this$getUserEn.version;
  34540. return _context39.abrupt("return", {
  34541. verifyClientSign: hn(JSON.stringify({
  34542. data: JSON.stringify({}),
  34543. appId: this.appId,
  34544. deviceId: this.deviceId,
  34545. wxAppId: this.getWxAppId(),
  34546. simulator: "devtools" === re().platform,
  34547. timestamp: Date.now()
  34548. }), e, t),
  34549. encryptKeyId: n,
  34550. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode
  34551. });
  34552. case 7:
  34553. case "end":
  34554. return _context39.stop();
  34555. }
  34556. }
  34557. }, _callee39, this);
  34558. }));
  34559. function platformGetSignOption() {
  34560. return _platformGetSignOption.apply(this, arguments);
  34561. }
  34562. return platformGetSignOption;
  34563. }()
  34564. }, {
  34565. key: "platformEncryptData",
  34566. value: function () {
  34567. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(e) {
  34568. var _yield$this$getUserEn2, t, n, s, r;
  34569. return _regenerator.default.wrap(function _callee40$(_context40) {
  34570. while (1) {
  34571. switch (_context40.prev = _context40.next) {
  34572. case 0:
  34573. _context40.next = 2;
  34574. return this.getUserEncryptKey();
  34575. case 2:
  34576. _yield$this$getUserEn2 = _context40.sent;
  34577. t = _yield$this$getUserEn2.encryptKey;
  34578. n = _yield$this$getUserEn2.iv;
  34579. s = _yield$this$getUserEn2.version;
  34580. r = {
  34581. secretType: this.secretType,
  34582. encryptKeyId: s,
  34583. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode
  34584. };
  34585. return _context40.abrupt("return", this.secretType === Pt ? {
  34586. content: e,
  34587. _uniCloudOptions: r
  34588. } : {
  34589. content: hn(JSON.stringify({
  34590. data: JSON.stringify(e),
  34591. appId: this.appId,
  34592. deviceId: this.deviceId,
  34593. wxAppId: this.getWxAppId(),
  34594. simulator: "devtools" === re().platform,
  34595. timestamp: Date.now()
  34596. }), t, n),
  34597. _uniCloudOptions: r
  34598. });
  34599. case 8:
  34600. case "end":
  34601. return _context40.stop();
  34602. }
  34603. }
  34604. }, _callee40, this);
  34605. }));
  34606. function platformEncryptData(_x33) {
  34607. return _platformEncryptData.apply(this, arguments);
  34608. }
  34609. return platformEncryptData;
  34610. }()
  34611. }, {
  34612. key: "platformDecryptResult",
  34613. value: function () {
  34614. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41(e) {
  34615. var t, _yield$this$getUserEn3, n, s;
  34616. return _regenerator.default.wrap(function _callee41$(_context41) {
  34617. while (1) {
  34618. switch (_context41.prev = _context41.next) {
  34619. case 0:
  34620. t = e.content;
  34621. _context41.next = 3;
  34622. return this.getUserEncryptKey();
  34623. case 3:
  34624. _yield$this$getUserEn3 = _context41.sent;
  34625. n = _yield$this$getUserEn3.encryptKey;
  34626. s = _yield$this$getUserEn3.iv;
  34627. return _context41.abrupt("return", JSON.parse(function (e, t, n) {
  34628. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  34629. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  34630. i = ln.utils.utf8.toBytes(n),
  34631. o = new ln.ModeOfOperation.cbc(r, i),
  34632. a = ln.padding.pkcs7.strip(o.decrypt(s));
  34633. return ln.utils.utf8.fromBytes(a);
  34634. }(t, n, s)));
  34635. case 7:
  34636. case "end":
  34637. return _context41.stop();
  34638. }
  34639. }
  34640. }, _callee41, this);
  34641. }));
  34642. function platformDecryptResult(_x34) {
  34643. return _platformDecryptResult.apply(this, arguments);
  34644. }
  34645. return platformDecryptResult;
  34646. }()
  34647. }]);
  34648. return vn;
  34649. }(Ot);
  34650. function Sn(e) {
  34651. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  34652. n = {};
  34653. var _loop = function _loop(_s10) {
  34654. var r = t[_s10];
  34655. n[r] = function () {
  34656. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  34657. t[_key] = arguments[_key];
  34658. }
  34659. return new Promise(function (n, s) {
  34660. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  34661. var _ref29 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34662. e = _ref29.type,
  34663. t = _ref29.data,
  34664. r = _ref29.errCode,
  34665. i = _ref29.errMsg,
  34666. o = _ref29.errSubject,
  34667. a = _ref29.message;
  34668. "success" === e ? n(t) : s(mn({
  34669. errCode: r,
  34670. errMsg: gn[r] || i || a,
  34671. errSubject: o
  34672. }));
  34673. }])) : s(mn({
  34674. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  34675. }));
  34676. });
  34677. };
  34678. };
  34679. for (var _s10 = 0; _s10 < t.length; _s10++) {
  34680. _loop(_s10);
  34681. }
  34682. return n;
  34683. }
  34684. var kn = /*#__PURE__*/function (_Ot2) {
  34685. (0, _inherits2.default)(kn, _Ot2);
  34686. var _super10 = _createSuper(kn);
  34687. function kn(e) {
  34688. var _this17;
  34689. (0, _classCallCheck2.default)(this, kn);
  34690. _this17 = _super10.call(this, e), _this17.appUtils = _objectSpread({}, Sn(uni.requireNativePlugin("plus"))), _this17.systemInfo = yn || (yn = re());
  34691. return _this17;
  34692. }
  34693. (0, _createClass2.default)(kn, [{
  34694. key: "hasClientKey",
  34695. value: function () {
  34696. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  34697. return _regenerator.default.wrap(function _callee42$(_context42) {
  34698. while (1) {
  34699. switch (_context42.prev = _context42.next) {
  34700. case 0:
  34701. _context42.next = 2;
  34702. return this.appUtils.hasClientKey({
  34703. provider: this.provider,
  34704. spaceId: this.spaceId
  34705. });
  34706. case 2:
  34707. this._hasClientKey = _context42.sent;
  34708. return _context42.abrupt("return", this._hasClientKey);
  34709. case 4:
  34710. case "end":
  34711. return _context42.stop();
  34712. }
  34713. }
  34714. }, _callee42, this);
  34715. }));
  34716. function hasClientKey() {
  34717. return _hasClientKey.apply(this, arguments);
  34718. }
  34719. return hasClientKey;
  34720. }()
  34721. }, {
  34722. key: "getAppClientKey",
  34723. value: function () {
  34724. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  34725. var _yield$this$appUtils$, e, t, n, s, r;
  34726. return _regenerator.default.wrap(function _callee43$(_context43) {
  34727. while (1) {
  34728. switch (_context43.prev = _context43.next) {
  34729. case 0:
  34730. _context43.next = 2;
  34731. return this.appUtils.encryptGetClientKeyPayload({
  34732. data: JSON.stringify({})
  34733. });
  34734. case 2:
  34735. _yield$this$appUtils$ = _context43.sent;
  34736. e = _yield$this$appUtils$.data;
  34737. t = _yield$this$appUtils$.key;
  34738. _context43.next = 7;
  34739. return this.uniCloudIns.callFunction({
  34740. name: "DCloud-clientDB",
  34741. data: {
  34742. redirectTo: "encryption",
  34743. action: "getAppClientKey",
  34744. data: e,
  34745. key: t
  34746. }
  34747. });
  34748. case 7:
  34749. _context43.t0 = _context43.sent.result;
  34750. if (_context43.t0) {
  34751. _context43.next = 10;
  34752. break;
  34753. }
  34754. _context43.t0 = {};
  34755. case 10:
  34756. n = _context43.t0;
  34757. if (!(0 !== n.errCode)) {
  34758. _context43.next = 13;
  34759. break;
  34760. }
  34761. throw function (e) {
  34762. return new Q({
  34763. subject: e.errSubject || "uni-secure-network",
  34764. code: e.errCode || e.code || dn.code,
  34765. message: e.errMsg || e.message
  34766. });
  34767. }(n);
  34768. case 13:
  34769. s = n.clientKey, r = n.key;
  34770. _context43.next = 16;
  34771. return this.appUtils.setClientKey({
  34772. provider: this.provider,
  34773. spaceId: this.spaceId,
  34774. clientKey: s,
  34775. key: r
  34776. });
  34777. case 16:
  34778. case "end":
  34779. return _context43.stop();
  34780. }
  34781. }
  34782. }, _callee43, this);
  34783. }));
  34784. function getAppClientKey() {
  34785. return _getAppClientKey.apply(this, arguments);
  34786. }
  34787. return getAppClientKey;
  34788. }()
  34789. }, {
  34790. key: "ensureClientKey",
  34791. value: function () {
  34792. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44() {
  34793. var _this18 = this;
  34794. return _regenerator.default.wrap(function _callee44$(_context44) {
  34795. while (1) {
  34796. switch (_context44.prev = _context44.next) {
  34797. case 0:
  34798. _context44.t0 = !0;
  34799. _context44.next = 3;
  34800. return this.hasClientKey();
  34801. case 3:
  34802. _context44.t1 = _context44.sent;
  34803. if (!(_context44.t0 !== _context44.t1)) {
  34804. _context44.next = 6;
  34805. break;
  34806. }
  34807. return _context44.abrupt("return", (this.scopedGlobalCache.initPromise && "rejected" !== this.scopedGlobalCache.initStatus || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  34808. _this18.scopedGlobalCache.initStatus = "fullfilled";
  34809. }).catch(function (e) {
  34810. throw _this18.scopedGlobalCache.initStatus = "rejected", e;
  34811. })), this.scopedGlobalCache.initPromise));
  34812. case 6:
  34813. case "end":
  34814. return _context44.stop();
  34815. }
  34816. }
  34817. }, _callee44, this);
  34818. }));
  34819. function ensureClientKey() {
  34820. return _ensureClientKey.apply(this, arguments);
  34821. }
  34822. return ensureClientKey;
  34823. }()
  34824. }, {
  34825. key: "prepare",
  34826. value: function () {
  34827. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  34828. return _regenerator.default.wrap(function _callee45$(_context45) {
  34829. while (1) {
  34830. switch (_context45.prev = _context45.next) {
  34831. case 0:
  34832. _context45.next = 2;
  34833. return this.ensureClientKey();
  34834. case 2:
  34835. case "end":
  34836. return _context45.stop();
  34837. }
  34838. }
  34839. }, _callee45, this);
  34840. }));
  34841. function prepare() {
  34842. return _prepare3.apply(this, arguments);
  34843. }
  34844. return prepare;
  34845. }()
  34846. }, {
  34847. key: "platformGetSignOption",
  34848. value: function () {
  34849. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46() {
  34850. var _yield$this$appUtils$2, e, t;
  34851. return _regenerator.default.wrap(function _callee46$(_context46) {
  34852. while (1) {
  34853. switch (_context46.prev = _context46.next) {
  34854. case 0:
  34855. _context46.next = 2;
  34856. return this.appUtils.encrypt({
  34857. provider: this.provider,
  34858. spaceId: this.spaceId,
  34859. data: JSON.stringify({})
  34860. });
  34861. case 2:
  34862. _yield$this$appUtils$2 = _context46.sent;
  34863. e = _yield$this$appUtils$2.data;
  34864. t = _yield$this$appUtils$2.key;
  34865. return _context46.abrupt("return", {
  34866. verifyClientSign: e,
  34867. encryptKeyId: t
  34868. });
  34869. case 6:
  34870. case "end":
  34871. return _context46.stop();
  34872. }
  34873. }
  34874. }, _callee46, this);
  34875. }));
  34876. function platformGetSignOption() {
  34877. return _platformGetSignOption2.apply(this, arguments);
  34878. }
  34879. return platformGetSignOption;
  34880. }()
  34881. }, {
  34882. key: "platformEncryptData",
  34883. value: function () {
  34884. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47(e) {
  34885. var _yield$this$appUtils$3, t, n, s;
  34886. return _regenerator.default.wrap(function _callee47$(_context47) {
  34887. while (1) {
  34888. switch (_context47.prev = _context47.next) {
  34889. case 0:
  34890. _context47.next = 2;
  34891. return this.appUtils.encrypt({
  34892. provider: this.provider,
  34893. spaceId: this.spaceId,
  34894. data: JSON.stringify(e)
  34895. });
  34896. case 2:
  34897. _yield$this$appUtils$3 = _context47.sent;
  34898. t = _yield$this$appUtils$3.data;
  34899. n = _yield$this$appUtils$3.key;
  34900. s = {
  34901. secretType: this.secretType,
  34902. encryptKeyId: n
  34903. };
  34904. return _context47.abrupt("return", this.secretType === Pt ? {
  34905. content: e,
  34906. _uniCloudOptions: s
  34907. } : {
  34908. content: t,
  34909. _uniCloudOptions: s
  34910. });
  34911. case 7:
  34912. case "end":
  34913. return _context47.stop();
  34914. }
  34915. }
  34916. }, _callee47, this);
  34917. }));
  34918. function platformEncryptData(_x35) {
  34919. return _platformEncryptData2.apply(this, arguments);
  34920. }
  34921. return platformEncryptData;
  34922. }()
  34923. }, {
  34924. key: "platformDecryptResult",
  34925. value: function () {
  34926. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48(e) {
  34927. var t, _e$_uniCloudOptions, n, s, r;
  34928. return _regenerator.default.wrap(function _callee48$(_context48) {
  34929. while (1) {
  34930. switch (_context48.prev = _context48.next) {
  34931. case 0:
  34932. t = e.content;
  34933. _e$_uniCloudOptions = e._uniCloudOptions;
  34934. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  34935. s = n.encryptKeyId;
  34936. _context48.next = 6;
  34937. return this.appUtils.decrypt({
  34938. provider: this.provider,
  34939. spaceId: this.spaceId,
  34940. data: t,
  34941. key: s
  34942. });
  34943. case 6:
  34944. r = _context48.sent;
  34945. return _context48.abrupt("return", JSON.parse(r.data));
  34946. case 8:
  34947. case "end":
  34948. return _context48.stop();
  34949. }
  34950. }
  34951. }, _callee48, this);
  34952. }));
  34953. function platformDecryptResult(_x36) {
  34954. return _platformDecryptResult2.apply(this, arguments);
  34955. }
  34956. return platformDecryptResult;
  34957. }()
  34958. }]);
  34959. return kn;
  34960. }(Ot);
  34961. function In() {
  34962. var _ref30 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34963. e = _ref30.secretType;
  34964. return e === Ct || e === Pt || e === Et;
  34965. }
  34966. function bn() {
  34967. var _ref31 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34968. e = _ref31.name,
  34969. _ref31$data = _ref31.data,
  34970. t = _ref31$data === void 0 ? {} : _ref31$data;
  34971. return "app" === S && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  34972. }
  34973. function Tn() {
  34974. var _ref32 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34975. e = _ref32.provider,
  34976. t = _ref32.spaceId,
  34977. n = _ref32.functionName;
  34978. var _re = re(),
  34979. s = _re.appId,
  34980. r = _re.uniPlatform,
  34981. i = _re.osName;
  34982. var o = r;
  34983. "app" === r && (o = i);
  34984. var a = function () {
  34985. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  34986. e = _ref33.provider,
  34987. t = _ref33.spaceId;
  34988. var n = v;
  34989. if (!n) return {};
  34990. e = function (e) {
  34991. return "tencent" === e ? "tcb" : e;
  34992. }(e);
  34993. var s = n.find(function (n) {
  34994. return n.provider === e && n.spaceId === t;
  34995. });
  34996. return s && s.config;
  34997. }({
  34998. provider: e,
  34999. spaceId: t
  35000. });
  35001. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  35002. var c = a.accessControl.function || {},
  35003. u = Object.keys(c);
  35004. if (0 === u.length) return !0;
  35005. var l = function (e, t) {
  35006. var n, s, r;
  35007. for (var _i2 = 0; _i2 < e.length; _i2++) {
  35008. var _o2 = e[_i2];
  35009. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  35010. return e.trim();
  35011. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  35012. }
  35013. return n || s || r;
  35014. }(u, n);
  35015. if (!l) return !1;
  35016. if ((c[l] || []).find(function () {
  35017. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  35018. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  35019. })) return !0;
  35020. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), mn(fn);
  35021. }
  35022. function An(_ref34) {
  35023. var e = _ref34.functionName,
  35024. t = _ref34.result,
  35025. n = _ref34.logPvd;
  35026. if (this.__dev__.debugLog && t && t.requestId) {
  35027. var _s11 = JSON.stringify({
  35028. spaceId: this.config.spaceId,
  35029. functionName: e,
  35030. requestId: t.requestId
  35031. });
  35032. console.log("[".concat(n, "-request]").concat(_s11, "[/").concat(n, "-request]"));
  35033. }
  35034. }
  35035. function Cn(e) {
  35036. var t = e.callFunction,
  35037. n = function n(_n7) {
  35038. var _this19 = this;
  35039. var s = _n7.name;
  35040. _n7.data = vt.call(e, {
  35041. data: _n7.data
  35042. });
  35043. var r = {
  35044. aliyun: "aliyun",
  35045. tencent: "tcb",
  35046. tcb: "tcb"
  35047. }[this.config.provider],
  35048. i = In(_n7),
  35049. o = bn(_n7),
  35050. a = i || o;
  35051. return t.call(this, _n7).then(function (e) {
  35052. return e.errCode = 0, !a && An.call(_this19, {
  35053. functionName: s,
  35054. result: e,
  35055. logPvd: r
  35056. }), Promise.resolve(e);
  35057. }, function (e) {
  35058. return !a && An.call(_this19, {
  35059. functionName: s,
  35060. result: e,
  35061. logPvd: r
  35062. }), e && e.message && (e.message = function () {
  35063. var _ref35 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35064. _ref35$message = _ref35.message,
  35065. e = _ref35$message === void 0 ? "" : _ref35$message,
  35066. _ref35$extraInfo = _ref35.extraInfo,
  35067. t = _ref35$extraInfo === void 0 ? {} : _ref35$extraInfo,
  35068. _ref35$formatter = _ref35.formatter,
  35069. n = _ref35$formatter === void 0 ? [] : _ref35$formatter;
  35070. for (var _s12 = 0; _s12 < n.length; _s12++) {
  35071. var _n$_s = n[_s12],
  35072. _r3 = _n$_s.rule,
  35073. _i3 = _n$_s.content,
  35074. _o3 = _n$_s.mode,
  35075. _a = e.match(_r3);
  35076. if (!_a) continue;
  35077. var _c = _i3;
  35078. for (var _e23 = 1; _e23 < _a.length; _e23++) {
  35079. _c = Tt(_c, "{$".concat(_e23, "}"), _a[_e23]);
  35080. }
  35081. for (var _e24 in t) {
  35082. _c = Tt(_c, "{".concat(_e24, "}"), t[_e24]);
  35083. }
  35084. return "replace" === _o3 ? _c : e + _c;
  35085. }
  35086. return e;
  35087. }({
  35088. message: "[".concat(_n7.name, "]: ").concat(e.message),
  35089. formatter: kt,
  35090. extraInfo: {
  35091. functionName: s
  35092. }
  35093. })), Promise.reject(e);
  35094. });
  35095. };
  35096. e.callFunction = function (t) {
  35097. var _e$config = e.config,
  35098. s = _e$config.provider,
  35099. r = _e$config.spaceId,
  35100. i = t.name;
  35101. var o, a;
  35102. if (t.data = t.data || {}, y && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && I ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = St), o = St) : o = n, o = o.bind(e), bn(t)) a = n.call(e, t);else if (function (_ref36) {
  35103. var e = _ref36.name,
  35104. _ref36$data = _ref36.data,
  35105. t = _ref36$data === void 0 ? {} : _ref36$data;
  35106. return "mp-weixin" === S && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  35107. }(t)) a = o.call(e, t);else if (In(t)) {
  35108. a = new _n({
  35109. secretType: t.secretType,
  35110. uniCloudIns: e
  35111. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  35112. } else if (Tn({
  35113. provider: s,
  35114. spaceId: r,
  35115. functionName: i
  35116. })) {
  35117. a = new _n({
  35118. secretType: t.secretType,
  35119. uniCloudIns: e
  35120. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  35121. } else a = o(t);
  35122. return Object.defineProperty(a, "result", {
  35123. get: function get() {
  35124. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  35125. }
  35126. }), a;
  35127. };
  35128. }
  35129. _n = "mp-weixin" !== S && "app" !== S ? /*#__PURE__*/function () {
  35130. function _class2() {
  35131. (0, _classCallCheck2.default)(this, _class2);
  35132. throw mn({
  35133. message: "Platform ".concat(S, " is not supported by secure network")
  35134. });
  35135. }
  35136. return (0, _createClass2.default)(_class2);
  35137. }() : w ? "mp-weixin" === S ? vn : kn : /*#__PURE__*/function () {
  35138. function _class3() {
  35139. (0, _classCallCheck2.default)(this, _class3);
  35140. throw mn({
  35141. message: "Platform ".concat(S, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  35142. });
  35143. }
  35144. return (0, _createClass2.default)(_class3);
  35145. }();
  35146. var Pn = Symbol("CLIENT_DB_INTERNAL");
  35147. function En(e, t) {
  35148. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Pn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  35149. get: function get(e, n, s) {
  35150. if ("_uniClient" === n) return null;
  35151. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  35152. if (n in e || "string" != typeof n) {
  35153. var _t10 = e[n];
  35154. return "function" == typeof _t10 ? _t10.bind(e) : _t10;
  35155. }
  35156. return t.get(e, n, s);
  35157. }
  35158. });
  35159. }
  35160. function On(e) {
  35161. return {
  35162. on: function on(t, n) {
  35163. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  35164. },
  35165. off: function off(t, n) {
  35166. e[t] = e[t] || [];
  35167. var s = e[t].indexOf(n);
  35168. -1 !== s && e[t].splice(s, 1);
  35169. }
  35170. };
  35171. }
  35172. var xn = ["db.Geo", "db.command", "command.aggregate"];
  35173. function Un(e, t) {
  35174. return xn.indexOf("".concat(e, ".").concat(t)) > -1;
  35175. }
  35176. function Rn(e) {
  35177. switch (d(e)) {
  35178. case "array":
  35179. return e.map(function (e) {
  35180. return Rn(e);
  35181. });
  35182. case "object":
  35183. return e._internalType === Pn || Object.keys(e).forEach(function (t) {
  35184. e[t] = Rn(e[t]);
  35185. }), e;
  35186. case "regexp":
  35187. return {
  35188. $regexp: {
  35189. source: e.source,
  35190. flags: e.flags
  35191. }
  35192. };
  35193. case "date":
  35194. return {
  35195. $date: e.toISOString()
  35196. };
  35197. default:
  35198. return e;
  35199. }
  35200. }
  35201. function Ln(e) {
  35202. return e && e.content && e.content.$method;
  35203. }
  35204. var Nn = /*#__PURE__*/function () {
  35205. function Nn(e, t, n) {
  35206. (0, _classCallCheck2.default)(this, Nn);
  35207. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  35208. }
  35209. (0, _createClass2.default)(Nn, [{
  35210. key: "toJSON",
  35211. value: function toJSON() {
  35212. var e = this;
  35213. var t = [e.content];
  35214. for (; e.prevStage;) {
  35215. e = e.prevStage, t.push(e.content);
  35216. }
  35217. return {
  35218. $db: t.reverse().map(function (e) {
  35219. return {
  35220. $method: e.$method,
  35221. $param: Rn(e.$param)
  35222. };
  35223. })
  35224. };
  35225. }
  35226. }, {
  35227. key: "getAction",
  35228. value: function getAction() {
  35229. var e = this.toJSON().$db.find(function (e) {
  35230. return "action" === e.$method;
  35231. });
  35232. return e && e.$param && e.$param[0];
  35233. }
  35234. }, {
  35235. key: "getCommand",
  35236. value: function getCommand() {
  35237. return {
  35238. $db: this.toJSON().$db.filter(function (e) {
  35239. return "action" !== e.$method;
  35240. })
  35241. };
  35242. }
  35243. }, {
  35244. key: "isAggregate",
  35245. get: function get() {
  35246. var e = this;
  35247. for (; e;) {
  35248. var t = Ln(e),
  35249. _n8 = Ln(e.prevStage);
  35250. if ("aggregate" === t && "collection" === _n8 || "pipeline" === t) return !0;
  35251. e = e.prevStage;
  35252. }
  35253. return !1;
  35254. }
  35255. }, {
  35256. key: "isCommand",
  35257. get: function get() {
  35258. var e = this;
  35259. for (; e;) {
  35260. if ("command" === Ln(e)) return !0;
  35261. e = e.prevStage;
  35262. }
  35263. return !1;
  35264. }
  35265. }, {
  35266. key: "isAggregateCommand",
  35267. get: function get() {
  35268. var e = this;
  35269. for (; e;) {
  35270. var t = Ln(e),
  35271. _n9 = Ln(e.prevStage);
  35272. if ("aggregate" === t && "command" === _n9) return !0;
  35273. e = e.prevStage;
  35274. }
  35275. return !1;
  35276. }
  35277. }, {
  35278. key: "getNextStageFn",
  35279. value: function getNextStageFn(e) {
  35280. var t = this;
  35281. return function () {
  35282. return Dn({
  35283. $method: e,
  35284. $param: Rn(Array.from(arguments))
  35285. }, t, t._database);
  35286. };
  35287. }
  35288. }, {
  35289. key: "count",
  35290. get: function get() {
  35291. return this.isAggregate ? this.getNextStageFn("count") : function () {
  35292. return this._send("count", Array.from(arguments));
  35293. };
  35294. }
  35295. }, {
  35296. key: "remove",
  35297. get: function get() {
  35298. return this.isCommand ? this.getNextStageFn("remove") : function () {
  35299. return this._send("remove", Array.from(arguments));
  35300. };
  35301. }
  35302. }, {
  35303. key: "get",
  35304. value: function get() {
  35305. return this._send("get", Array.from(arguments));
  35306. }
  35307. }, {
  35308. key: "add",
  35309. get: function get() {
  35310. return this.isCommand ? this.getNextStageFn("add") : function () {
  35311. return this._send("add", Array.from(arguments));
  35312. };
  35313. }
  35314. }, {
  35315. key: "update",
  35316. value: function update() {
  35317. return this._send("update", Array.from(arguments));
  35318. }
  35319. }, {
  35320. key: "end",
  35321. value: function end() {
  35322. return this._send("end", Array.from(arguments));
  35323. }
  35324. }, {
  35325. key: "set",
  35326. get: function get() {
  35327. return this.isCommand ? this.getNextStageFn("set") : function () {
  35328. throw new Error("JQL禁止使用set方法");
  35329. };
  35330. }
  35331. }, {
  35332. key: "_send",
  35333. value: function _send(e, t) {
  35334. var n = this.getAction(),
  35335. s = this.getCommand();
  35336. if (s.$db.push({
  35337. $method: e,
  35338. $param: Rn(t)
  35339. }), y) {
  35340. var _e25 = s.$db.find(function (e) {
  35341. return "collection" === e.$method;
  35342. }),
  35343. _t11 = _e25 && _e25.$param;
  35344. _t11 && 1 === _t11.length && "string" == typeof _e25.$param[0] && _e25.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  35345. }
  35346. return this._database._callCloudFunction({
  35347. action: n,
  35348. command: s
  35349. });
  35350. }
  35351. }]);
  35352. return Nn;
  35353. }();
  35354. function Dn(e, t, n) {
  35355. return En(new Nn(e, t, n), {
  35356. get: function get(e, t) {
  35357. var s = "db";
  35358. return e && e.content && (s = e.content.$method), Un(s, t) ? Dn({
  35359. $method: t
  35360. }, e, n) : function () {
  35361. return Dn({
  35362. $method: t,
  35363. $param: Rn(Array.from(arguments))
  35364. }, e, n);
  35365. };
  35366. }
  35367. });
  35368. }
  35369. function Fn(_ref37) {
  35370. var e = _ref37.path,
  35371. t = _ref37.method;
  35372. return /*#__PURE__*/function () {
  35373. function _class4() {
  35374. (0, _classCallCheck2.default)(this, _class4);
  35375. this.param = Array.from(arguments);
  35376. }
  35377. (0, _createClass2.default)(_class4, [{
  35378. key: "toJSON",
  35379. value: function toJSON() {
  35380. return {
  35381. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  35382. return {
  35383. $method: e
  35384. };
  35385. })), [{
  35386. $method: t,
  35387. $param: this.param
  35388. }])
  35389. };
  35390. }
  35391. }]);
  35392. return _class4;
  35393. }();
  35394. }
  35395. function qn(e) {
  35396. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  35397. return En(new e(t), {
  35398. get: function get(e, t) {
  35399. return Un("db", t) ? Dn({
  35400. $method: t
  35401. }, null, e) : function () {
  35402. return Dn({
  35403. $method: t,
  35404. $param: Rn(Array.from(arguments))
  35405. }, null, e);
  35406. };
  35407. }
  35408. });
  35409. }
  35410. var Kn = /*#__PURE__*/function (_ref38) {
  35411. (0, _inherits2.default)(Kn, _ref38);
  35412. var _super11 = _createSuper(Kn);
  35413. function Kn() {
  35414. (0, _classCallCheck2.default)(this, Kn);
  35415. return _super11.apply(this, arguments);
  35416. }
  35417. (0, _createClass2.default)(Kn, [{
  35418. key: "_parseResult",
  35419. value: function _parseResult(e) {
  35420. return this._isJQL ? e.result : e;
  35421. }
  35422. }, {
  35423. key: "_callCloudFunction",
  35424. value: function _callCloudFunction(_ref39) {
  35425. var _this20 = this;
  35426. var e = _ref39.action,
  35427. t = _ref39.command,
  35428. n = _ref39.multiCommand,
  35429. s = _ref39.queryList;
  35430. function r(e, t) {
  35431. if (n && s) for (var _n10 = 0; _n10 < s.length; _n10++) {
  35432. var _r4 = s[_n10];
  35433. _r4.udb && "function" == typeof _r4.udb.setResult && (t ? _r4.udb.setResult(t) : _r4.udb.setResult(e.result.dataList[_n10]));
  35434. }
  35435. }
  35436. var i = this,
  35437. o = this._isJQL ? "databaseForJQL" : "database";
  35438. function a(e) {
  35439. return i._callback("error", [e]), U(R(o, "fail"), e).then(function () {
  35440. return U(R(o, "complete"), e);
  35441. }).then(function () {
  35442. return r(null, e), z(D, {
  35443. type: K,
  35444. content: e
  35445. }), Promise.reject(e);
  35446. });
  35447. }
  35448. var c = U(R(o, "invoke")),
  35449. u = this._uniClient;
  35450. return c.then(function () {
  35451. return u.callFunction({
  35452. name: "DCloud-clientDB",
  35453. type: h,
  35454. data: {
  35455. action: e,
  35456. command: t,
  35457. multiCommand: n
  35458. }
  35459. });
  35460. }).then(function (e) {
  35461. var _e$result = e.result,
  35462. t = _e$result.code,
  35463. n = _e$result.message,
  35464. s = _e$result.token,
  35465. c = _e$result.tokenExpired,
  35466. _e$result$systemInfo = _e$result.systemInfo,
  35467. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  35468. if (u) for (var _e26 = 0; _e26 < u.length; _e26++) {
  35469. var _u$_e = u[_e26],
  35470. _t12 = _u$_e.level,
  35471. _n11 = _u$_e.message,
  35472. _s13 = _u$_e.detail,
  35473. _r5 = console["app" === S && "warn" === _t12 ? "error" : _t12] || console.log;
  35474. var _i4 = "[System Info]" + _n11;
  35475. _s13 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s13)), _r5(_i4);
  35476. }
  35477. if (t) {
  35478. return a(new Q({
  35479. code: t,
  35480. message: n,
  35481. requestId: e.requestId
  35482. }));
  35483. }
  35484. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (ee({
  35485. token: s,
  35486. tokenExpired: c
  35487. }), _this20._callbackAuth("refreshToken", [{
  35488. token: s,
  35489. tokenExpired: c
  35490. }]), _this20._callback("refreshToken", [{
  35491. token: s,
  35492. tokenExpired: c
  35493. }]), z(q, {
  35494. token: s,
  35495. tokenExpired: c
  35496. }));
  35497. var l = [{
  35498. prop: "affectedDocs",
  35499. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  35500. }, {
  35501. prop: "code",
  35502. tips: "code不再推荐使用,请使用errCode替代"
  35503. }, {
  35504. prop: "message",
  35505. tips: "message不再推荐使用,请使用errMsg替代"
  35506. }];
  35507. var _loop2 = function _loop2(_t13) {
  35508. var _l$_t = l[_t13],
  35509. n = _l$_t.prop,
  35510. s = _l$_t.tips;
  35511. if (n in e.result) {
  35512. var _t14 = e.result[n];
  35513. Object.defineProperty(e.result, n, {
  35514. get: function get() {
  35515. return console.warn(s), _t14;
  35516. }
  35517. });
  35518. }
  35519. };
  35520. for (var _t13 = 0; _t13 < l.length; _t13++) {
  35521. _loop2(_t13);
  35522. }
  35523. return function (e) {
  35524. return U(R(o, "success"), e).then(function () {
  35525. return U(R(o, "complete"), e);
  35526. }).then(function () {
  35527. r(e, null);
  35528. var t = i._parseResult(e);
  35529. return z(D, {
  35530. type: K,
  35531. content: t
  35532. }), Promise.resolve(t);
  35533. });
  35534. }(e);
  35535. }, function (e) {
  35536. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  35537. return a(new Q({
  35538. code: e.code || "SYSTEM_ERROR",
  35539. message: e.message,
  35540. requestId: e.requestId
  35541. }));
  35542. });
  35543. }
  35544. }]);
  35545. return Kn;
  35546. }( /*#__PURE__*/function () {
  35547. function _class5() {
  35548. var _ref40 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35549. _ref40$uniClient = _ref40.uniClient,
  35550. e = _ref40$uniClient === void 0 ? {} : _ref40$uniClient,
  35551. _ref40$isJQL = _ref40.isJQL,
  35552. t = _ref40$isJQL === void 0 ? !1 : _ref40$isJQL;
  35553. (0, _classCallCheck2.default)(this, _class5);
  35554. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e.isDefault && (this._dbCallBacks = C("_globalUniCloudDatabaseCallback")), t || (this.auth = On(this._authCallBacks)), this._isJQL = t, Object.assign(this, On(this._dbCallBacks)), this.env = En({}, {
  35555. get: function get(e, t) {
  35556. return {
  35557. $env: t
  35558. };
  35559. }
  35560. }), this.Geo = En({}, {
  35561. get: function get(e, t) {
  35562. return Fn({
  35563. path: ["Geo"],
  35564. method: t
  35565. });
  35566. }
  35567. }), this.serverDate = Fn({
  35568. path: [],
  35569. method: "serverDate"
  35570. }), this.RegExp = Fn({
  35571. path: [],
  35572. method: "RegExp"
  35573. });
  35574. }
  35575. (0, _createClass2.default)(_class5, [{
  35576. key: "getCloudEnv",
  35577. value: function getCloudEnv(e) {
  35578. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  35579. return {
  35580. $env: e.replace("$cloudEnv_", "")
  35581. };
  35582. }
  35583. }, {
  35584. key: "_callback",
  35585. value: function _callback(e, t) {
  35586. var n = this._dbCallBacks;
  35587. n[e] && n[e].forEach(function (e) {
  35588. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  35589. });
  35590. }
  35591. }, {
  35592. key: "_callbackAuth",
  35593. value: function _callbackAuth(e, t) {
  35594. var n = this._authCallBacks;
  35595. n[e] && n[e].forEach(function (e) {
  35596. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  35597. });
  35598. }
  35599. }, {
  35600. key: "multiSend",
  35601. value: function multiSend() {
  35602. var e = Array.from(arguments),
  35603. t = e.map(function (e) {
  35604. var t = e.getAction(),
  35605. n = e.getCommand();
  35606. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  35607. return {
  35608. action: t,
  35609. command: n
  35610. };
  35611. });
  35612. return this._callCloudFunction({
  35613. multiCommand: t,
  35614. queryList: e
  35615. });
  35616. }
  35617. }]);
  35618. return _class5;
  35619. }());
  35620. var jn = "token无效,跳转登录页面",
  35621. Mn = "token过期,跳转登录页面",
  35622. Bn = {
  35623. TOKEN_INVALID_TOKEN_EXPIRED: Mn,
  35624. TOKEN_INVALID_INVALID_CLIENTID: jn,
  35625. TOKEN_INVALID: jn,
  35626. TOKEN_INVALID_WRONG_TOKEN: jn,
  35627. TOKEN_INVALID_ANONYMOUS_USER: jn
  35628. },
  35629. $n = {
  35630. "uni-id-token-expired": Mn,
  35631. "uni-id-check-token-failed": jn,
  35632. "uni-id-token-not-exist": jn,
  35633. "uni-id-check-device-feature-failed": jn
  35634. };
  35635. function Wn(e, t) {
  35636. var n = "";
  35637. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  35638. }
  35639. function zn() {
  35640. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  35641. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  35642. var n = [],
  35643. s = [];
  35644. return e.forEach(function (e) {
  35645. !0 === e.needLogin ? n.push(Wn(t, e.path)) : !1 === e.needLogin && s.push(Wn(t, e.path));
  35646. }), {
  35647. needLoginPage: n,
  35648. notNeedLoginPage: s
  35649. };
  35650. }
  35651. function Jn(e) {
  35652. return e.split("?")[0].replace(/^\//, "");
  35653. }
  35654. function Hn() {
  35655. return function (e) {
  35656. var t = e && e.$page && e.$page.fullPath || "";
  35657. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  35658. }(function () {
  35659. var e = getCurrentPages();
  35660. return e[e.length - 1];
  35661. }());
  35662. }
  35663. function Gn() {
  35664. return Jn(Hn());
  35665. }
  35666. function Vn() {
  35667. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  35668. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  35669. if (!e) return !1;
  35670. if (!(t && t.list && t.list.length)) return !1;
  35671. var n = t.list,
  35672. s = Jn(e);
  35673. return n.some(function (e) {
  35674. return e.pagePath === s;
  35675. });
  35676. }
  35677. var Yn = !!_pages.default.uniIdRouter;
  35678. var _ref41 = function () {
  35679. var _ref24 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  35680. _ref24$pages = _ref24.pages,
  35681. e = _ref24$pages === void 0 ? [] : _ref24$pages,
  35682. _ref24$subPackages = _ref24.subPackages,
  35683. n = _ref24$subPackages === void 0 ? [] : _ref24$subPackages,
  35684. _ref24$uniIdRouter = _ref24.uniIdRouter,
  35685. s = _ref24$uniIdRouter === void 0 ? {} : _ref24$uniIdRouter,
  35686. _ref24$tabBar = _ref24.tabBar,
  35687. r = _ref24$tabBar === void 0 ? {} : _ref24$tabBar;
  35688. var i = s.loginPage,
  35689. _s$needLogin = s.needLogin,
  35690. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  35691. _s$resToLogin = s.resToLogin,
  35692. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  35693. _zn = zn(e),
  35694. c = _zn.needLoginPage,
  35695. u = _zn.notNeedLoginPage,
  35696. _ref26 = function () {
  35697. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  35698. var t = [],
  35699. n = [];
  35700. return e.forEach(function (e) {
  35701. var s = e.root,
  35702. _e$pages = e.pages,
  35703. r = _e$pages === void 0 ? [] : _e$pages,
  35704. _zn2 = zn(r, s),
  35705. i = _zn2.needLoginPage,
  35706. o = _zn2.notNeedLoginPage;
  35707. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  35708. }), {
  35709. needLoginPage: t,
  35710. notNeedLoginPage: n
  35711. };
  35712. }(n),
  35713. l = _ref26.needLoginPage,
  35714. h = _ref26.notNeedLoginPage;
  35715. return {
  35716. loginPage: i,
  35717. routerNeedLogin: o,
  35718. resToLogin: a,
  35719. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(l)),
  35720. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(h)),
  35721. loginPageInTabBar: Vn(i, r)
  35722. };
  35723. }(),
  35724. Qn = _ref41.loginPage,
  35725. Xn = _ref41.routerNeedLogin,
  35726. Zn = _ref41.resToLogin,
  35727. es = _ref41.needLoginPage,
  35728. ts = _ref41.notNeedLoginPage,
  35729. ns = _ref41.loginPageInTabBar;
  35730. if (es.indexOf(Qn) > -1) throw new Error("Login page [".concat(Qn, "] should not be \"needLogin\", please check your pages.json"));
  35731. function ss(e) {
  35732. var t = Gn();
  35733. if ("/" === e.charAt(0)) return e;
  35734. var _e$split = e.split("?"),
  35735. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  35736. n = _e$split2[0],
  35737. s = _e$split2[1],
  35738. r = n.replace(/^\//, "").split("/"),
  35739. i = t.split("/");
  35740. i.pop();
  35741. for (var _e27 = 0; _e27 < r.length; _e27++) {
  35742. var _t15 = r[_e27];
  35743. ".." === _t15 ? i.pop() : "." !== _t15 && i.push(_t15);
  35744. }
  35745. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  35746. }
  35747. function rs(e) {
  35748. var t = Jn(ss(e));
  35749. return !(ts.indexOf(t) > -1) && (es.indexOf(t) > -1 || Xn.some(function (t) {
  35750. return function (e, t) {
  35751. return new RegExp(t).test(e);
  35752. }(e, t);
  35753. }));
  35754. }
  35755. function is(_ref42) {
  35756. var e = _ref42.redirect;
  35757. var t = Jn(e),
  35758. n = Jn(Qn);
  35759. return Gn() !== n && t !== n;
  35760. }
  35761. function os() {
  35762. var _ref43 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35763. e = _ref43.api,
  35764. t = _ref43.redirect;
  35765. if (!t || !is({
  35766. redirect: t
  35767. })) return;
  35768. var n = function (e, t) {
  35769. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  35770. }(Qn, t);
  35771. ns ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  35772. var s = {
  35773. navigateTo: uni.navigateTo,
  35774. redirectTo: uni.redirectTo,
  35775. switchTab: uni.switchTab,
  35776. reLaunch: uni.reLaunch
  35777. };
  35778. setTimeout(function () {
  35779. s[e]({
  35780. url: n
  35781. });
  35782. });
  35783. }
  35784. function as() {
  35785. var _ref44 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  35786. e = _ref44.url;
  35787. var t = {
  35788. abortLoginPageJump: !1,
  35789. autoToLoginPage: !1
  35790. },
  35791. n = function () {
  35792. var _Z3 = Z(),
  35793. e = _Z3.token,
  35794. t = _Z3.tokenExpired;
  35795. var n;
  35796. if (e) {
  35797. if (t < Date.now()) {
  35798. var _e28 = "uni-id-token-expired";
  35799. n = {
  35800. errCode: _e28,
  35801. errMsg: $n[_e28]
  35802. };
  35803. }
  35804. } else {
  35805. var _e29 = "uni-id-check-token-failed";
  35806. n = {
  35807. errCode: _e29,
  35808. errMsg: $n[_e29]
  35809. };
  35810. }
  35811. return n;
  35812. }();
  35813. if (rs(e) && n) {
  35814. n.uniIdRedirectUrl = e;
  35815. if (B(F).length > 0) return setTimeout(function () {
  35816. z(F, n);
  35817. }, 0), t.abortLoginPageJump = !0, t;
  35818. t.autoToLoginPage = !0;
  35819. }
  35820. return t;
  35821. }
  35822. function cs() {
  35823. !function () {
  35824. var e = Hn(),
  35825. _as = as({
  35826. url: e
  35827. }),
  35828. t = _as.abortLoginPageJump,
  35829. n = _as.autoToLoginPage;
  35830. t || n && os({
  35831. api: "redirectTo",
  35832. redirect: e
  35833. });
  35834. }();
  35835. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  35836. var _loop3 = function _loop3(_t16) {
  35837. var n = e[_t16];
  35838. uni.addInterceptor(n, {
  35839. invoke: function invoke(e) {
  35840. var _as2 = as({
  35841. url: e.url
  35842. }),
  35843. t = _as2.abortLoginPageJump,
  35844. s = _as2.autoToLoginPage;
  35845. return t ? e : s ? (os({
  35846. api: n,
  35847. redirect: ss(e.url)
  35848. }), !1) : e;
  35849. }
  35850. });
  35851. };
  35852. for (var _t16 = 0; _t16 < e.length; _t16++) {
  35853. _loop3(_t16);
  35854. }
  35855. }
  35856. function us() {
  35857. this.onResponse(function (e) {
  35858. var t = e.type,
  35859. n = e.content;
  35860. var s = !1;
  35861. switch (t) {
  35862. case "cloudobject":
  35863. s = function (e) {
  35864. if ("object" != (0, _typeof2.default)(e)) return !1;
  35865. var _ref45 = e || {},
  35866. t = _ref45.errCode;
  35867. return t in $n;
  35868. }(n);
  35869. break;
  35870. case "clientdb":
  35871. s = function (e) {
  35872. if ("object" != (0, _typeof2.default)(e)) return !1;
  35873. var _ref46 = e || {},
  35874. t = _ref46.errCode;
  35875. return t in Bn;
  35876. }(n);
  35877. }
  35878. s && function () {
  35879. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  35880. var t = B(F);
  35881. G().then(function () {
  35882. var n = Hn();
  35883. if (n && is({
  35884. redirect: n
  35885. })) return t.length > 0 ? z(F, Object.assign({
  35886. uniIdRedirectUrl: n
  35887. }, e)) : void (Qn && os({
  35888. api: "navigateTo",
  35889. redirect: n
  35890. }));
  35891. });
  35892. }(n);
  35893. });
  35894. }
  35895. function ls(e) {
  35896. !function (e) {
  35897. e.onResponse = function (e) {
  35898. $(D, e);
  35899. }, e.offResponse = function (e) {
  35900. W(D, e);
  35901. };
  35902. }(e), function (e) {
  35903. e.onNeedLogin = function (e) {
  35904. $(F, e);
  35905. }, e.offNeedLogin = function (e) {
  35906. W(F, e);
  35907. }, Yn && (C("_globalUniCloudStatus").needLoginInit || (C("_globalUniCloudStatus").needLoginInit = !0, G().then(function () {
  35908. cs.call(e);
  35909. }), Zn && us.call(e)));
  35910. }(e), function (e) {
  35911. e.onRefreshToken = function (e) {
  35912. $(q, e);
  35913. }, e.offRefreshToken = function (e) {
  35914. W(q, e);
  35915. };
  35916. }(e);
  35917. }
  35918. var hs;
  35919. var ds = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  35920. fs = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  35921. function ps() {
  35922. var e = Z().token || "",
  35923. t = e.split(".");
  35924. if (!e || 3 !== t.length) return {
  35925. uid: null,
  35926. role: [],
  35927. permission: [],
  35928. tokenExpired: 0
  35929. };
  35930. var n;
  35931. try {
  35932. n = JSON.parse((s = t[1], decodeURIComponent(hs(s).split("").map(function (e) {
  35933. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  35934. }).join(""))));
  35935. } catch (e) {
  35936. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  35937. }
  35938. var s;
  35939. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  35940. }
  35941. hs = "function" != typeof atob ? function (e) {
  35942. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !fs.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  35943. var t;
  35944. e += "==".slice(2 - (3 & e.length));
  35945. for (var n, s, r = "", i = 0; i < e.length;) {
  35946. t = ds.indexOf(e.charAt(i++)) << 18 | ds.indexOf(e.charAt(i++)) << 12 | (n = ds.indexOf(e.charAt(i++))) << 6 | (s = ds.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  35947. }
  35948. return r;
  35949. } : atob;
  35950. var gs = s(function (e, t) {
  35951. Object.defineProperty(t, "__esModule", {
  35952. value: !0
  35953. });
  35954. var n = "chooseAndUploadFile:ok",
  35955. s = "chooseAndUploadFile:fail";
  35956. function r(e, t) {
  35957. return e.tempFiles.forEach(function (e, n) {
  35958. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  35959. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  35960. return e.path;
  35961. })), e;
  35962. }
  35963. function i(e, t, _ref47) {
  35964. var s = _ref47.onChooseFile,
  35965. r = _ref47.onUploadProgress;
  35966. return t.then(function (e) {
  35967. if (s) {
  35968. var _t17 = s(e);
  35969. if (void 0 !== _t17) return Promise.resolve(_t17).then(function (t) {
  35970. return void 0 === t ? e : t;
  35971. });
  35972. }
  35973. return e;
  35974. }).then(function (t) {
  35975. return !1 === t ? {
  35976. errMsg: n,
  35977. tempFilePaths: [],
  35978. tempFiles: []
  35979. } : function (e, t) {
  35980. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  35981. var r = arguments.length > 3 ? arguments[3] : undefined;
  35982. (t = Object.assign({}, t)).errMsg = n;
  35983. var i = t.tempFiles,
  35984. o = i.length;
  35985. var a = 0;
  35986. return new Promise(function (n) {
  35987. for (; a < s;) {
  35988. c();
  35989. }
  35990. function c() {
  35991. var s = a++;
  35992. if (s >= o) return void (!i.find(function (e) {
  35993. return !e.url && !e.errMsg;
  35994. }) && n(t));
  35995. var u = i[s];
  35996. e.uploadFile({
  35997. filePath: u.path,
  35998. cloudPath: u.cloudPath,
  35999. fileType: u.fileType,
  36000. onUploadProgress: function onUploadProgress(e) {
  36001. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  36002. }
  36003. }).then(function (e) {
  36004. u.url = e.fileID, s < o && c();
  36005. }).catch(function (e) {
  36006. u.errMsg = e.errMsg || e.message, s < o && c();
  36007. });
  36008. }
  36009. });
  36010. }(e, t, 5, r);
  36011. });
  36012. }
  36013. t.initChooseAndUploadFile = function (e) {
  36014. return function () {
  36015. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  36016. type: "all"
  36017. };
  36018. return "image" === t.type ? i(e, function (e) {
  36019. var t = e.count,
  36020. n = e.sizeType,
  36021. _e$sourceType = e.sourceType,
  36022. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  36023. o = e.extension;
  36024. return new Promise(function (e, a) {
  36025. uni.chooseImage({
  36026. count: t,
  36027. sizeType: n,
  36028. sourceType: i,
  36029. extension: o,
  36030. success: function success(t) {
  36031. e(r(t, "image"));
  36032. },
  36033. fail: function fail(e) {
  36034. a({
  36035. errMsg: e.errMsg.replace("chooseImage:fail", s)
  36036. });
  36037. }
  36038. });
  36039. });
  36040. }(t), t) : "video" === t.type ? i(e, function (e) {
  36041. var t = e.camera,
  36042. n = e.compressed,
  36043. i = e.maxDuration,
  36044. _e$sourceType2 = e.sourceType,
  36045. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  36046. a = e.extension;
  36047. return new Promise(function (e, c) {
  36048. uni.chooseVideo({
  36049. camera: t,
  36050. compressed: n,
  36051. maxDuration: i,
  36052. sourceType: o,
  36053. extension: a,
  36054. success: function success(t) {
  36055. var n = t.tempFilePath,
  36056. s = t.duration,
  36057. i = t.size,
  36058. o = t.height,
  36059. a = t.width;
  36060. e(r({
  36061. errMsg: "chooseVideo:ok",
  36062. tempFilePaths: [n],
  36063. tempFiles: [{
  36064. name: t.tempFile && t.tempFile.name || "",
  36065. path: n,
  36066. size: i,
  36067. type: t.tempFile && t.tempFile.type || "",
  36068. width: a,
  36069. height: o,
  36070. duration: s,
  36071. fileType: "video",
  36072. cloudPath: ""
  36073. }]
  36074. }, "video"));
  36075. },
  36076. fail: function fail(e) {
  36077. c({
  36078. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  36079. });
  36080. }
  36081. });
  36082. });
  36083. }(t), t) : i(e, function (e) {
  36084. var t = e.count,
  36085. n = e.extension;
  36086. return new Promise(function (e, i) {
  36087. var o = uni.chooseFile;
  36088. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  36089. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  36090. });
  36091. o({
  36092. type: "all",
  36093. count: t,
  36094. extension: n,
  36095. success: function success(t) {
  36096. e(r(t));
  36097. },
  36098. fail: function fail(e) {
  36099. i({
  36100. errMsg: e.errMsg.replace("chooseFile:fail", s)
  36101. });
  36102. }
  36103. });
  36104. });
  36105. }(t), t);
  36106. };
  36107. };
  36108. }),
  36109. ms = n(gs);
  36110. var ys = "manual";
  36111. function _s(e) {
  36112. return {
  36113. props: {
  36114. localdata: {
  36115. type: Array,
  36116. default: function _default() {
  36117. return [];
  36118. }
  36119. },
  36120. options: {
  36121. type: [Object, Array],
  36122. default: function _default() {
  36123. return {};
  36124. }
  36125. },
  36126. spaceInfo: {
  36127. type: Object,
  36128. default: function _default() {
  36129. return {};
  36130. }
  36131. },
  36132. collection: {
  36133. type: [String, Array],
  36134. default: ""
  36135. },
  36136. action: {
  36137. type: String,
  36138. default: ""
  36139. },
  36140. field: {
  36141. type: String,
  36142. default: ""
  36143. },
  36144. orderby: {
  36145. type: String,
  36146. default: ""
  36147. },
  36148. where: {
  36149. type: [String, Object],
  36150. default: ""
  36151. },
  36152. pageData: {
  36153. type: String,
  36154. default: "add"
  36155. },
  36156. pageCurrent: {
  36157. type: Number,
  36158. default: 1
  36159. },
  36160. pageSize: {
  36161. type: Number,
  36162. default: 20
  36163. },
  36164. getcount: {
  36165. type: [Boolean, String],
  36166. default: !1
  36167. },
  36168. gettree: {
  36169. type: [Boolean, String],
  36170. default: !1
  36171. },
  36172. gettreepath: {
  36173. type: [Boolean, String],
  36174. default: !1
  36175. },
  36176. startwith: {
  36177. type: String,
  36178. default: ""
  36179. },
  36180. limitlevel: {
  36181. type: Number,
  36182. default: 10
  36183. },
  36184. groupby: {
  36185. type: String,
  36186. default: ""
  36187. },
  36188. groupField: {
  36189. type: String,
  36190. default: ""
  36191. },
  36192. distinct: {
  36193. type: [Boolean, String],
  36194. default: !1
  36195. },
  36196. foreignKey: {
  36197. type: String,
  36198. default: ""
  36199. },
  36200. loadtime: {
  36201. type: String,
  36202. default: "auto"
  36203. },
  36204. manual: {
  36205. type: Boolean,
  36206. default: !1
  36207. }
  36208. },
  36209. data: function data() {
  36210. return {
  36211. mixinDatacomLoading: !1,
  36212. mixinDatacomHasMore: !1,
  36213. mixinDatacomResData: [],
  36214. mixinDatacomErrorMessage: "",
  36215. mixinDatacomPage: {}
  36216. };
  36217. },
  36218. created: function created() {
  36219. var _this21 = this;
  36220. this.mixinDatacomPage = {
  36221. current: this.pageCurrent,
  36222. size: this.pageSize,
  36223. count: 0
  36224. }, this.$watch(function () {
  36225. var e = [];
  36226. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  36227. e.push(_this21[t]);
  36228. }), e;
  36229. }, function (e, t) {
  36230. if (_this21.loadtime === ys) return;
  36231. var n = !1;
  36232. var s = [];
  36233. for (var _r6 = 2; _r6 < e.length; _r6++) {
  36234. e[_r6] !== t[_r6] && (s.push(e[_r6]), n = !0);
  36235. }
  36236. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  36237. });
  36238. },
  36239. methods: {
  36240. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  36241. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  36242. var _this22 = this;
  36243. var _ref48 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36244. _ref48$getone = _ref48.getone,
  36245. e = _ref48$getone === void 0 ? !1 : _ref48$getone,
  36246. t = _ref48.success,
  36247. n = _ref48.fail;
  36248. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomGet().then(function (n) {
  36249. _this22.mixinDatacomLoading = !1;
  36250. var _n$result = n.result,
  36251. s = _n$result.data,
  36252. r = _n$result.count;
  36253. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  36254. var i = e ? s.length ? s[0] : void 0 : s;
  36255. _this22.mixinDatacomResData = i, t && t(i);
  36256. }).catch(function (e) {
  36257. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, n && n(e);
  36258. }));
  36259. },
  36260. mixinDatacomGet: function mixinDatacomGet() {
  36261. var _n12;
  36262. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  36263. var n = e.database(this.spaceInfo);
  36264. var s = t.action || this.action;
  36265. s && (n = n.action(s));
  36266. var r = t.collection || this.collection;
  36267. n = Array.isArray(r) ? (_n12 = n).collection.apply(_n12, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  36268. var i = t.where || this.where;
  36269. i && Object.keys(i).length && (n = n.where(i));
  36270. var o = t.field || this.field;
  36271. o && (n = n.field(o));
  36272. var a = t.foreignKey || this.foreignKey;
  36273. a && (n = n.foreignKey(a));
  36274. var c = t.groupby || this.groupby;
  36275. c && (n = n.groupBy(c));
  36276. var u = t.groupField || this.groupField;
  36277. u && (n = n.groupField(u));
  36278. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  36279. var l = t.orderby || this.orderby;
  36280. l && (n = n.orderBy(l));
  36281. var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  36282. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  36283. f = void 0 !== t.getcount ? t.getcount : this.getcount,
  36284. p = void 0 !== t.gettree ? t.gettree : this.gettree,
  36285. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  36286. m = {
  36287. getCount: f
  36288. },
  36289. y = {
  36290. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  36291. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  36292. };
  36293. return p && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;
  36294. }
  36295. }
  36296. };
  36297. }
  36298. function ws(e) {
  36299. return function (t) {
  36300. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36301. n = function (e) {
  36302. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  36303. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  36304. }({
  36305. customUI: !1,
  36306. loadingOptions: {
  36307. title: "加载中...",
  36308. mask: !0
  36309. },
  36310. errorOptions: {
  36311. type: "modal",
  36312. retry: !1
  36313. }
  36314. }, n);
  36315. var _n13 = n,
  36316. s = _n13.customUI,
  36317. r = _n13.loadingOptions,
  36318. i = _n13.errorOptions,
  36319. o = _n13.parseSystemError,
  36320. a = !s;
  36321. return new Proxy({}, {
  36322. get: function get(s, c) {
  36323. return function () {
  36324. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36325. e = _ref49.fn,
  36326. t = _ref49.interceptorName,
  36327. n = _ref49.getCallbackArgs;
  36328. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  36329. var _len2,
  36330. s,
  36331. _key2,
  36332. r,
  36333. i,
  36334. o,
  36335. _args = arguments;
  36336. return _regenerator.default.wrap(function _callee49$(_context49) {
  36337. while (1) {
  36338. switch (_context49.prev = _context49.next) {
  36339. case 0:
  36340. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  36341. s[_key2] = _args[_key2];
  36342. }
  36343. r = n ? n({
  36344. params: s
  36345. }) : {};
  36346. _context49.prev = 2;
  36347. _context49.next = 5;
  36348. return U(R(t, "invoke"), _objectSpread({}, r));
  36349. case 5:
  36350. _context49.next = 7;
  36351. return e.apply(void 0, s);
  36352. case 7:
  36353. i = _context49.sent;
  36354. _context49.next = 10;
  36355. return U(R(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  36356. result: i
  36357. }));
  36358. case 10:
  36359. return _context49.abrupt("return", i);
  36360. case 13:
  36361. _context49.prev = 13;
  36362. _context49.t0 = _context49["catch"](2);
  36363. o = _context49.t0;
  36364. _context49.next = 18;
  36365. return U(R(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  36366. error: o
  36367. }));
  36368. case 18:
  36369. throw o;
  36370. case 19:
  36371. _context49.prev = 19;
  36372. _context49.next = 22;
  36373. return U(R(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  36374. error: o
  36375. }) : _objectSpread(_objectSpread({}, r), {}, {
  36376. result: i
  36377. }));
  36378. case 22:
  36379. return _context49.finish(19);
  36380. case 23:
  36381. case "end":
  36382. return _context49.stop();
  36383. }
  36384. }
  36385. }, _callee49, null, [[2, 13, 19, 23]]);
  36386. }));
  36387. }({
  36388. fn: function () {
  36389. var _s14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51() {
  36390. var h,
  36391. _len3,
  36392. u,
  36393. _key3,
  36394. d,
  36395. f,
  36396. _ref51,
  36397. p,
  36398. g,
  36399. m,
  36400. y,
  36401. _e30,
  36402. _yield,
  36403. _t18,
  36404. _n14,
  36405. _args4 = arguments;
  36406. return _regenerator.default.wrap(function _callee51$(_context51) {
  36407. while (1) {
  36408. switch (_context51.prev = _context51.next) {
  36409. case 0:
  36410. a && uni.showLoading({
  36411. title: r.title,
  36412. mask: r.mask
  36413. });
  36414. for (_len3 = _args4.length, u = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  36415. u[_key3] = _args4[_key3];
  36416. }
  36417. d = {
  36418. name: t,
  36419. type: l,
  36420. data: {
  36421. method: c,
  36422. params: u
  36423. }
  36424. };
  36425. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  36426. var n = t.data.method,
  36427. s = e.secretMethods || {},
  36428. r = s[n] || s["*"];
  36429. r && (t.secretType = r);
  36430. }(n, d);
  36431. f = !1;
  36432. _context51.prev = 5;
  36433. _context51.next = 8;
  36434. return e.callFunction(d);
  36435. case 8:
  36436. h = _context51.sent;
  36437. _context51.next = 14;
  36438. break;
  36439. case 11:
  36440. _context51.prev = 11;
  36441. _context51.t0 = _context51["catch"](5);
  36442. f = !0, h = {
  36443. result: new Q(_context51.t0)
  36444. };
  36445. case 14:
  36446. _ref51 = h.result || {}, p = _ref51.errSubject, g = _ref51.errCode, m = _ref51.errMsg, y = _ref51.newToken;
  36447. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (ee(y), z(q, _objectSpread({}, y))), g)) {
  36448. _context51.next = 39;
  36449. break;
  36450. }
  36451. _e30 = m;
  36452. if (!(f && o)) {
  36453. _context51.next = 24;
  36454. break;
  36455. }
  36456. _context51.next = 20;
  36457. return o({
  36458. objectName: t,
  36459. methodName: c,
  36460. params: u,
  36461. errSubject: p,
  36462. errCode: g,
  36463. errMsg: m
  36464. });
  36465. case 20:
  36466. _context51.t1 = _context51.sent.errMsg;
  36467. if (_context51.t1) {
  36468. _context51.next = 23;
  36469. break;
  36470. }
  36471. _context51.t1 = m;
  36472. case 23:
  36473. _e30 = _context51.t1;
  36474. case 24:
  36475. if (!a) {
  36476. _context51.next = 37;
  36477. break;
  36478. }
  36479. if (!("toast" === i.type)) {
  36480. _context51.next = 29;
  36481. break;
  36482. }
  36483. uni.showToast({
  36484. title: _e30,
  36485. icon: "none"
  36486. });
  36487. _context51.next = 37;
  36488. break;
  36489. case 29:
  36490. if (!("modal" !== i.type)) {
  36491. _context51.next = 31;
  36492. break;
  36493. }
  36494. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  36495. case 31:
  36496. _context51.next = 33;
  36497. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  36498. var _ref53,
  36499. e,
  36500. t,
  36501. n,
  36502. s,
  36503. r,
  36504. _args3 = arguments;
  36505. return _regenerator.default.wrap(function _callee50$(_context50) {
  36506. while (1) {
  36507. switch (_context50.prev = _context50.next) {
  36508. case 0:
  36509. _ref53 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref53.title, t = _ref53.content, n = _ref53.showCancel, s = _ref53.cancelText, r = _ref53.confirmText;
  36510. return _context50.abrupt("return", new Promise(function (i, o) {
  36511. uni.showModal({
  36512. title: e,
  36513. content: t,
  36514. showCancel: n,
  36515. cancelText: s,
  36516. confirmText: r,
  36517. success: function success(e) {
  36518. i(e);
  36519. },
  36520. fail: function fail() {
  36521. i({
  36522. confirm: !1,
  36523. cancel: !0
  36524. });
  36525. }
  36526. });
  36527. }));
  36528. case 2:
  36529. case "end":
  36530. return _context50.stop();
  36531. }
  36532. }
  36533. }, _callee50);
  36534. }))({
  36535. title: "提示",
  36536. content: _e30,
  36537. showCancel: i.retry,
  36538. cancelText: "取消",
  36539. confirmText: i.retry ? "重试" : "确定"
  36540. });
  36541. case 33:
  36542. _yield = _context51.sent;
  36543. _t18 = _yield.confirm;
  36544. if (!(i.retry && _t18)) {
  36545. _context51.next = 37;
  36546. break;
  36547. }
  36548. return _context51.abrupt("return", s.apply(void 0, u));
  36549. case 37:
  36550. _n14 = new Q({
  36551. subject: p,
  36552. code: g,
  36553. message: m,
  36554. requestId: h.requestId
  36555. });
  36556. throw _n14.detail = h.result, z(D, {
  36557. type: M,
  36558. content: _n14
  36559. }), _n14;
  36560. case 39:
  36561. return _context51.abrupt("return", (z(D, {
  36562. type: M,
  36563. content: h.result
  36564. }), h.result));
  36565. case 40:
  36566. case "end":
  36567. return _context51.stop();
  36568. }
  36569. }
  36570. }, _callee51, null, [[5, 11]]);
  36571. }));
  36572. function s() {
  36573. return _s14.apply(this, arguments);
  36574. }
  36575. return s;
  36576. }(),
  36577. interceptorName: "callObject",
  36578. getCallbackArgs: function getCallbackArgs() {
  36579. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36580. e = _ref54.params;
  36581. return {
  36582. objectName: t,
  36583. methodName: c,
  36584. params: e
  36585. };
  36586. }
  36587. });
  36588. }
  36589. });
  36590. };
  36591. }
  36592. function vs(e) {
  36593. return C("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  36594. }
  36595. function Ss() {
  36596. return _Ss.apply(this, arguments);
  36597. }
  36598. function _Ss() {
  36599. _Ss = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53() {
  36600. var _ref58,
  36601. _ref58$callLoginByWei,
  36602. e,
  36603. t,
  36604. n,
  36605. s,
  36606. _args6 = arguments;
  36607. return _regenerator.default.wrap(function _callee53$(_context53) {
  36608. while (1) {
  36609. switch (_context53.prev = _context53.next) {
  36610. case 0:
  36611. _ref58 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref58$callLoginByWei = _ref58.callLoginByWeixin, e = _ref58$callLoginByWei === void 0 ? !1 : _ref58$callLoginByWei;
  36612. t = vs(this);
  36613. if (!("mp-weixin" !== S)) {
  36614. _context53.next = 4;
  36615. break;
  36616. }
  36617. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(S, "`"));
  36618. case 4:
  36619. _context53.next = 6;
  36620. return new Promise(function (e, t) {
  36621. uni.login({
  36622. success: function success(t) {
  36623. e(t.code);
  36624. },
  36625. fail: function fail(e) {
  36626. t(new Error(e.errMsg));
  36627. }
  36628. });
  36629. });
  36630. case 6:
  36631. n = _context53.sent;
  36632. s = this.importObject("uni-id-co", {
  36633. customUI: !0
  36634. });
  36635. _context53.next = 10;
  36636. return s.secureNetworkHandshakeByWeixin({
  36637. code: n,
  36638. callLoginByWeixin: e
  36639. });
  36640. case 10:
  36641. t.mpWeixinCode = n;
  36642. return _context53.abrupt("return", {
  36643. code: n
  36644. });
  36645. case 12:
  36646. case "end":
  36647. return _context53.stop();
  36648. }
  36649. }
  36650. }, _callee53, this);
  36651. }));
  36652. return _Ss.apply(this, arguments);
  36653. }
  36654. function ks(_x37) {
  36655. return _ks.apply(this, arguments);
  36656. }
  36657. function _ks() {
  36658. _ks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(e) {
  36659. var t;
  36660. return _regenerator.default.wrap(function _callee54$(_context54) {
  36661. while (1) {
  36662. switch (_context54.prev = _context54.next) {
  36663. case 0:
  36664. t = vs(this);
  36665. return _context54.abrupt("return", (t.initPromise || (t.initPromise = Ss.call(this, e)), t.initPromise));
  36666. case 2:
  36667. case "end":
  36668. return _context54.stop();
  36669. }
  36670. }
  36671. }, _callee54, this);
  36672. }));
  36673. return _ks.apply(this, arguments);
  36674. }
  36675. function Is(e) {
  36676. return function () {
  36677. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36678. _ref55$callLoginByWei = _ref55.callLoginByWeixin,
  36679. t = _ref55$callLoginByWei === void 0 ? !1 : _ref55$callLoginByWei;
  36680. return ks.call(e, {
  36681. callLoginByWeixin: t
  36682. });
  36683. };
  36684. }
  36685. function bs(_x38, _x39) {
  36686. return _bs.apply(this, arguments);
  36687. }
  36688. function _bs() {
  36689. _bs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55(e, t) {
  36690. var n, _e32, s;
  36691. return _regenerator.default.wrap(function _callee55$(_context55) {
  36692. while (1) {
  36693. switch (_context55.prev = _context55.next) {
  36694. case 0:
  36695. n = "http://".concat(e, ":").concat(t, "/system/ping");
  36696. _context55.prev = 1;
  36697. _context55.next = 4;
  36698. return s = {
  36699. url: n,
  36700. timeout: 500
  36701. }, new Promise(function (e, t) {
  36702. X.request(_objectSpread(_objectSpread({}, s), {}, {
  36703. success: function success(t) {
  36704. e(t);
  36705. },
  36706. fail: function fail(e) {
  36707. t(e);
  36708. }
  36709. }));
  36710. });
  36711. case 4:
  36712. _e32 = _context55.sent;
  36713. return _context55.abrupt("return", !(!_e32.data || 0 !== _e32.data.code));
  36714. case 8:
  36715. _context55.prev = 8;
  36716. _context55.t0 = _context55["catch"](1);
  36717. return _context55.abrupt("return", !1);
  36718. case 11:
  36719. case "end":
  36720. return _context55.stop();
  36721. }
  36722. }
  36723. }, _callee55, null, [[1, 8]]);
  36724. }));
  36725. return _bs.apply(this, arguments);
  36726. }
  36727. function Ts(e) {
  36728. if (e.initUniCloudStatus && "rejected" !== e.initUniCloudStatus) return;
  36729. var t = Promise.resolve();
  36730. var n;
  36731. n = 1, t = new Promise(function (e) {
  36732. setTimeout(function () {
  36733. e();
  36734. }, n);
  36735. }), e.isReady = !1, e.isDefault = !1;
  36736. var s = e.auth();
  36737. e.initUniCloudStatus = "pending", e.initUniCloud = t.then(function () {
  36738. return s.getLoginState();
  36739. }).then(function (e) {
  36740. return e ? Promise.resolve() : s.signInAnonymously();
  36741. }).then(function () {
  36742. if (!y) return Promise.resolve();
  36743. if ("app" === S) {
  36744. var _re2 = re(),
  36745. _e31 = _re2.osName,
  36746. _t19 = _re2.osVersion;
  36747. "ios" === _e31 && function (e) {
  36748. if (!e || "string" != typeof e) return 0;
  36749. var t = e.match(/^(\d+)./);
  36750. return t && t[1] ? parseInt(t[1]) : 0;
  36751. }(_t19) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发模式生效,发行模式会连接uniCloud云端服务)");
  36752. }
  36753. if (y && e.__dev__.debugInfo) {
  36754. var _e$__dev__$debugInfo = e.__dev__.debugInfo,
  36755. _t20 = _e$__dev__$debugInfo.address,
  36756. _n15 = _e$__dev__$debugInfo.servePort;
  36757. return function () {
  36758. var _ref56 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52(e, t) {
  36759. var n, _s15, _r7;
  36760. return _regenerator.default.wrap(function _callee52$(_context52) {
  36761. while (1) {
  36762. switch (_context52.prev = _context52.next) {
  36763. case 0:
  36764. _s15 = 0;
  36765. case 1:
  36766. if (!(_s15 < e.length)) {
  36767. _context52.next = 11;
  36768. break;
  36769. }
  36770. _r7 = e[_s15];
  36771. _context52.next = 5;
  36772. return bs(_r7, t);
  36773. case 5:
  36774. if (!_context52.sent) {
  36775. _context52.next = 8;
  36776. break;
  36777. }
  36778. n = _r7;
  36779. return _context52.abrupt("break", 11);
  36780. case 8:
  36781. _s15++;
  36782. _context52.next = 1;
  36783. break;
  36784. case 11:
  36785. return _context52.abrupt("return", {
  36786. address: n,
  36787. port: t
  36788. });
  36789. case 12:
  36790. case "end":
  36791. return _context52.stop();
  36792. }
  36793. }
  36794. }, _callee52);
  36795. }));
  36796. return function (_x40, _x41) {
  36797. return _ref56.apply(this, arguments);
  36798. };
  36799. }()(_t20, _n15);
  36800. }
  36801. }).then(function () {
  36802. var _ref57 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  36803. t = _ref57.address,
  36804. n = _ref57.port;
  36805. if (!y) return Promise.resolve();
  36806. var s = console["app" === S ? "error" : "warn"];
  36807. if (t) e.__dev__.localAddress = t, e.__dev__.localPort = n;else if (e.__dev__.debugInfo) {
  36808. var _t21 = "";
  36809. "remote" === e.__dev__.debugInfo.initialLaunchType ? (e.__dev__.debugInfo.forceRemote = !0, _t21 = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : _t21 = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", _t21 += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === S && (_t21 += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === S.indexOf("mp-") && (_t21 += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), s(_t21);
  36810. }
  36811. }).then(function () {
  36812. te(), e.isReady = !0, e.initUniCloudStatus = "fulfilled";
  36813. }).catch(function (t) {
  36814. console.error(t), e.initUniCloudStatus = "rejected";
  36815. });
  36816. }
  36817. var As = {
  36818. tcb: yt,
  36819. tencent: yt,
  36820. aliyun: he,
  36821. private: wt
  36822. };
  36823. var Cs = new ( /*#__PURE__*/function () {
  36824. function _class6() {
  36825. (0, _classCallCheck2.default)(this, _class6);
  36826. }
  36827. (0, _createClass2.default)(_class6, [{
  36828. key: "init",
  36829. value: function init(e) {
  36830. var t = {};
  36831. var n = As[e.provider];
  36832. if (!n) throw new Error("未提供正确的provider参数");
  36833. t = n.init(e), t.__dev__ = {}, t.__dev__.debugLog = y && ("web" === S && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === S);
  36834. var s = k;
  36835. y && s && !s.code && (t.__dev__.debugInfo = s), Ts(t), t.reInit = function () {
  36836. Ts(this);
  36837. }, Cn(t), function (e) {
  36838. var t = e.uploadFile;
  36839. e.uploadFile = function (e) {
  36840. return t.call(this, e);
  36841. };
  36842. }(t), function (e) {
  36843. e.database = function (t) {
  36844. if (t && Object.keys(t).length > 0) return e.init(t).database();
  36845. if (this._database) return this._database;
  36846. var n = qn(Kn, {
  36847. uniClient: e
  36848. });
  36849. return this._database = n, n;
  36850. }, e.databaseForJQL = function (t) {
  36851. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  36852. if (this._databaseForJQL) return this._databaseForJQL;
  36853. var n = qn(Kn, {
  36854. uniClient: e,
  36855. isJQL: !0
  36856. });
  36857. return this._databaseForJQL = n, n;
  36858. };
  36859. }(t), function (e) {
  36860. e.getCurrentUserInfo = ps, e.chooseAndUploadFile = ms.initChooseAndUploadFile(e), Object.assign(e, {
  36861. get mixinDatacom() {
  36862. return _s(e);
  36863. }
  36864. }), e.importObject = ws(e), e.initSecureNetworkByWeixin = Is(e);
  36865. }(t);
  36866. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  36867. if (!t[e]) return;
  36868. var n = t[e];
  36869. t[e] = function () {
  36870. return t.reInit(), n.apply(t, Array.from(arguments));
  36871. }, t[e] = Y(t[e], e).bind(t);
  36872. }), t.init = this.init, t;
  36873. }
  36874. }]);
  36875. return _class6;
  36876. }())();
  36877. (function () {
  36878. var e = I;
  36879. var t = {};
  36880. if (e && 1 === e.length) t = e[0], Cs = Cs.init(t), Cs.isDefault = !0;else {
  36881. var _t22 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  36882. var _n16;
  36883. _n16 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : b ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t22.forEach(function (e) {
  36884. Cs[e] = function () {
  36885. return console.error(_n16), Promise.reject(new Q({
  36886. code: "SYS_ERR",
  36887. message: _n16
  36888. }));
  36889. };
  36890. });
  36891. }
  36892. Object.assign(Cs, {
  36893. get mixinDatacom() {
  36894. return _s(Cs);
  36895. }
  36896. }), ls(Cs), Cs.addInterceptor = O, Cs.removeInterceptor = x, Cs.interceptObject = L, y && "web" === S && (window.uniCloud = Cs);
  36897. })();
  36898. var Ps = Cs;
  36899. exports.default = Ps;
  36900. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  36901. /***/ }),
  36902. /* 358 */
  36903. /*!****************************************************************!*\
  36904. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  36905. \****************************************************************/
  36906. /*! no static exports found */
  36907. /***/ (function(module, exports, __webpack_require__) {
  36908. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 334);
  36909. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  36910. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 359);
  36911. var construct = __webpack_require__(/*! ./construct.js */ 15);
  36912. function _wrapNativeSuper(Class) {
  36913. var _cache = typeof Map === "function" ? new Map() : undefined;
  36914. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  36915. if (Class === null || !isNativeFunction(Class)) return Class;
  36916. if (typeof Class !== "function") {
  36917. throw new TypeError("Super expression must either be null or a function");
  36918. }
  36919. if (typeof _cache !== "undefined") {
  36920. if (_cache.has(Class)) return _cache.get(Class);
  36921. _cache.set(Class, Wrapper);
  36922. }
  36923. function Wrapper() {
  36924. return construct(Class, arguments, getPrototypeOf(this).constructor);
  36925. }
  36926. Wrapper.prototype = Object.create(Class.prototype, {
  36927. constructor: {
  36928. value: Wrapper,
  36929. enumerable: false,
  36930. writable: true,
  36931. configurable: true
  36932. }
  36933. });
  36934. return setPrototypeOf(Wrapper, Class);
  36935. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36936. return _wrapNativeSuper(Class);
  36937. }
  36938. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36939. /***/ }),
  36940. /* 359 */
  36941. /*!*****************************************************************!*\
  36942. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  36943. \*****************************************************************/
  36944. /*! no static exports found */
  36945. /***/ (function(module, exports) {
  36946. function _isNativeFunction(fn) {
  36947. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  36948. }
  36949. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  36950. /***/ }),
  36951. /* 360 */
  36952. /*!**********************************************************************!*\
  36953. !*** D:/project/项目模板/uniapp/pages.json?{"type":"origin-pages-json"} ***!
  36954. \**********************************************************************/
  36955. /*! no static exports found */
  36956. /***/ (function(module, exports, __webpack_require__) {
  36957. "use strict";
  36958. Object.defineProperty(exports, "__esModule", {
  36959. value: true
  36960. });
  36961. exports.default = void 0;
  36962. var _default = {
  36963. "pages": [{
  36964. "path": "pages/index/index",
  36965. "style": {
  36966. "navigationBarTitleText": "首页"
  36967. }
  36968. }],
  36969. "subPackages": [{
  36970. "root": "pagesCommon",
  36971. "pages": [{
  36972. "path": "test/index",
  36973. "style": {
  36974. "navigationBarTitleText": "测试一",
  36975. "enablePullDownRefresh": true
  36976. }
  36977. }]
  36978. }, {
  36979. "root": "pagesHome",
  36980. "pages": [{
  36981. "path": "home/index",
  36982. "style": {
  36983. "navigationBarTitleText": "首页",
  36984. "enablePullDownRefresh": false
  36985. }
  36986. }, {
  36987. "path": "hot/index",
  36988. "style": {
  36989. "navigationBarTitleText": "热播",
  36990. "enablePullDownRefresh": false
  36991. }
  36992. }, {
  36993. "path": "app/index",
  36994. "style": {
  36995. "navigationBarTitleText": "应用",
  36996. "enablePullDownRefresh": false
  36997. }
  36998. }, {
  36999. "path": "find/index",
  37000. "style": {
  37001. "navigationBarTitleText": "发现",
  37002. "enablePullDownRefresh": false
  37003. }
  37004. }, {
  37005. "path": "account/index",
  37006. "style": {
  37007. "navigationBarTitleText": "账户",
  37008. "enablePullDownRefresh": false
  37009. }
  37010. }]
  37011. }, {
  37012. "root": "pagesAccount",
  37013. "pages": [{
  37014. "path": "login/index",
  37015. "style": {
  37016. "navigationBarTitleText": "账号登录",
  37017. "enablePullDownRefresh": false
  37018. }
  37019. }, {
  37020. "path": "register/index",
  37021. "style": {
  37022. "navigationBarTitleText": "账号注册",
  37023. "enablePullDownRefresh": false
  37024. }
  37025. }, {
  37026. "path": "other/agree",
  37027. "style": {
  37028. "navigationBarTitleText": "用户协议",
  37029. "enablePullDownRefresh": false
  37030. }
  37031. }, {
  37032. "path": "like/index",
  37033. "style": {
  37034. "navigationBarTitleText": "我的喜欢",
  37035. "enablePullDownRefresh": true
  37036. }
  37037. }, {
  37038. "path": "collect/index",
  37039. "style": {
  37040. "navigationBarTitleText": "我的收藏",
  37041. "enablePullDownRefresh": true
  37042. }
  37043. }, {
  37044. "path": "basic/index",
  37045. "style": {
  37046. "navigationBarTitleText": "账号信息",
  37047. "enablePullDownRefresh": false
  37048. }
  37049. }]
  37050. }, {
  37051. "root": "pagesVideo",
  37052. "pages": [{
  37053. "path": "video/index",
  37054. "style": {
  37055. "navigationBarTitleText": "详细信息",
  37056. "enablePullDownRefresh": false
  37057. }
  37058. }, {
  37059. "path": "search/index",
  37060. "style": {
  37061. "navigationBarTitleText": "视频筛选",
  37062. "enablePullDownRefresh": true
  37063. }
  37064. }, {
  37065. "path": "more/index",
  37066. "style": {
  37067. "navigationBarTitleText": "更多",
  37068. "enablePullDownRefresh": true
  37069. }
  37070. }]
  37071. }],
  37072. "globalStyle": {
  37073. "navigationBarTextStyle": "white",
  37074. "navigationBarTitleText": "益智游戏",
  37075. "navigationBarBackgroundColor": "#111111",
  37076. "backgroundColor": "#000000"
  37077. },
  37078. "uniIdRouter": {}
  37079. };
  37080. exports.default = _default;
  37081. /***/ }),
  37082. /* 361 */
  37083. /*!*********************************************************!*\
  37084. !*** D:/project/项目模板/uniapp/pages.json?{"type":"stat"} ***!
  37085. \*********************************************************/
  37086. /*! no static exports found */
  37087. /***/ (function(module, exports, __webpack_require__) {
  37088. "use strict";
  37089. Object.defineProperty(exports, "__esModule", {
  37090. value: true
  37091. });
  37092. exports.default = void 0;
  37093. var _default = {
  37094. "appid": "__UNI__2080341"
  37095. };
  37096. exports.default = _default;
  37097. /***/ }),
  37098. /* 362 */,
  37099. /* 363 */,
  37100. /* 364 */,
  37101. /* 365 */,
  37102. /* 366 */,
  37103. /* 367 */,
  37104. /* 368 */,
  37105. /* 369 */,
  37106. /* 370 */,
  37107. /* 371 */,
  37108. /* 372 */,
  37109. /* 373 */,
  37110. /* 374 */,
  37111. /* 375 */,
  37112. /* 376 */
  37113. /*!**********************************************************************************!*\
  37114. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/popup.js ***!
  37115. \**********************************************************************************/
  37116. /*! no static exports found */
  37117. /***/ (function(module, exports, __webpack_require__) {
  37118. "use strict";
  37119. Object.defineProperty(exports, "__esModule", {
  37120. value: true
  37121. });
  37122. exports.default = void 0;
  37123. var _default = {
  37124. data: function data() {
  37125. return {};
  37126. },
  37127. created: function created() {
  37128. this.popup = this.getParent();
  37129. },
  37130. methods: {
  37131. /**
  37132. * 获取父元素实例
  37133. */
  37134. getParent: function getParent() {
  37135. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'uniPopup';
  37136. var parent = this.$parent;
  37137. var parentName = parent.$options.name;
  37138. while (parentName !== name) {
  37139. parent = parent.$parent;
  37140. if (!parent) return false;
  37141. parentName = parent.$options.name;
  37142. }
  37143. return parent;
  37144. }
  37145. }
  37146. };
  37147. exports.default = _default;
  37148. /***/ }),
  37149. /* 377 */
  37150. /*!***************************************************************************************!*\
  37151. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/index.js ***!
  37152. \***************************************************************************************/
  37153. /*! no static exports found */
  37154. /***/ (function(module, exports, __webpack_require__) {
  37155. "use strict";
  37156. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37157. Object.defineProperty(exports, "__esModule", {
  37158. value: true
  37159. });
  37160. exports.default = void 0;
  37161. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 378));
  37162. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 379));
  37163. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 380));
  37164. var _default = {
  37165. en: _en.default,
  37166. 'zh-Hans': _zhHans.default,
  37167. 'zh-Hant': _zhHant.default
  37168. };
  37169. exports.default = _default;
  37170. /***/ }),
  37171. /* 378 */
  37172. /*!**************************************************************************************!*\
  37173. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/en.json ***!
  37174. \**************************************************************************************/
  37175. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37176. /***/ (function(module) {
  37177. module.exports = JSON.parse("{\"uni-popup.cancel\":\"cancel\",\"uni-popup.ok\":\"ok\",\"uni-popup.placeholder\":\"pleace enter\",\"uni-popup.title\":\"Hint\",\"uni-popup.shareTitle\":\"Share to\"}");
  37178. /***/ }),
  37179. /* 379 */
  37180. /*!*******************************************************************************************!*\
  37181. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json ***!
  37182. \*******************************************************************************************/
  37183. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37184. /***/ (function(module) {
  37185. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"确定\",\"uni-popup.placeholder\":\"请输入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  37186. /***/ }),
  37187. /* 380 */
  37188. /*!*******************************************************************************************!*\
  37189. !*** D:/project/项目模板/uniapp/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json ***!
  37190. \*******************************************************************************************/
  37191. /*! exports provided: uni-popup.cancel, uni-popup.ok, uni-popup.placeholder, uni-popup.title, uni-popup.shareTitle, default */
  37192. /***/ (function(module) {
  37193. module.exports = JSON.parse("{\"uni-popup.cancel\":\"取消\",\"uni-popup.ok\":\"確定\",\"uni-popup.placeholder\":\"請輸入\",\"uni-popup.title\":\"提示\",\"uni-popup.shareTitle\":\"分享到\"}");
  37194. /***/ }),
  37195. /* 381 */,
  37196. /* 382 */,
  37197. /* 383 */,
  37198. /* 384 */,
  37199. /* 385 */,
  37200. /* 386 */,
  37201. /* 387 */,
  37202. /* 388 */,
  37203. /* 389 */,
  37204. /* 390 */,
  37205. /* 391 */,
  37206. /* 392 */,
  37207. /* 393 */,
  37208. /* 394 */,
  37209. /* 395 */
  37210. /*!***********************************************************************************************!*\
  37211. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  37212. \***********************************************************************************************/
  37213. /*! no static exports found */
  37214. /***/ (function(module, exports, __webpack_require__) {
  37215. "use strict";
  37216. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37217. Object.defineProperty(exports, "__esModule", {
  37218. value: true
  37219. });
  37220. exports.default = void 0;
  37221. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 396));
  37222. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 397));
  37223. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 398));
  37224. var _default = {
  37225. en: _en.default,
  37226. 'zh-Hans': _zhHans.default,
  37227. 'zh-Hant': _zhHant.default
  37228. };
  37229. exports.default = _default;
  37230. /***/ }),
  37231. /* 396 */
  37232. /*!**********************************************************************************************!*\
  37233. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  37234. \**********************************************************************************************/
  37235. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37236. /***/ (function(module) {
  37237. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  37238. /***/ }),
  37239. /* 397 */
  37240. /*!***************************************************************************************************!*\
  37241. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  37242. \***************************************************************************************************/
  37243. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37244. /***/ (function(module) {
  37245. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  37246. /***/ }),
  37247. /* 398 */
  37248. /*!***************************************************************************************************!*\
  37249. !*** D:/project/项目模板/uniapp/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  37250. \***************************************************************************************************/
  37251. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  37252. /***/ (function(module) {
  37253. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  37254. /***/ }),
  37255. /* 399 */,
  37256. /* 400 */,
  37257. /* 401 */,
  37258. /* 402 */,
  37259. /* 403 */,
  37260. /* 404 */,
  37261. /* 405 */,
  37262. /* 406 */
  37263. /*!******************************************************************************************************!*\
  37264. !*** D:/project/项目模板/uniapp/uni_modules/uni-transition/components/uni-transition/createAnimation.js ***!
  37265. \******************************************************************************************************/
  37266. /*! no static exports found */
  37267. /***/ (function(module, exports, __webpack_require__) {
  37268. "use strict";
  37269. /* WEBPACK VAR INJECTION */(function(uni) {
  37270. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  37271. Object.defineProperty(exports, "__esModule", {
  37272. value: true
  37273. });
  37274. exports.createAnimation = createAnimation;
  37275. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  37276. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  37277. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  37278. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  37279. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  37280. // const defaultOption = {
  37281. // duration: 300,
  37282. // timingFunction: 'linear',
  37283. // delay: 0,
  37284. // transformOrigin: '50% 50% 0'
  37285. // }
  37286. var MPAnimation = /*#__PURE__*/function () {
  37287. function MPAnimation(options, _this) {
  37288. (0, _classCallCheck2.default)(this, MPAnimation);
  37289. this.options = options;
  37290. this.animation = uni.createAnimation(options);
  37291. this.currentStepAnimates = {};
  37292. this.next = 0;
  37293. this.$ = _this;
  37294. }
  37295. (0, _createClass2.default)(MPAnimation, [{
  37296. key: "_nvuePushAnimates",
  37297. value: function _nvuePushAnimates(type, args) {
  37298. var aniObj = this.currentStepAnimates[this.next];
  37299. var styles = {};
  37300. if (!aniObj) {
  37301. styles = {
  37302. styles: {},
  37303. config: {}
  37304. };
  37305. } else {
  37306. styles = aniObj;
  37307. }
  37308. if (animateTypes1.includes(type)) {
  37309. if (!styles.styles.transform) {
  37310. styles.styles.transform = '';
  37311. }
  37312. var unit = '';
  37313. if (type === 'rotate') {
  37314. unit = 'deg';
  37315. }
  37316. styles.styles.transform += "".concat(type, "(").concat(args + unit, ") ");
  37317. } else {
  37318. styles.styles[type] = "".concat(args);
  37319. }
  37320. this.currentStepAnimates[this.next] = styles;
  37321. }
  37322. }, {
  37323. key: "_animateRun",
  37324. value: function _animateRun() {
  37325. var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37326. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  37327. var ref = this.$.$refs['ani'].ref;
  37328. if (!ref) return;
  37329. return new Promise(function (resolve, reject) {
  37330. nvueAnimation.transition(ref, _objectSpread({
  37331. styles: styles
  37332. }, config), function (res) {
  37333. resolve();
  37334. });
  37335. });
  37336. }
  37337. }, {
  37338. key: "_nvueNextAnimate",
  37339. value: function _nvueNextAnimate(animates) {
  37340. var _this2 = this;
  37341. var step = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  37342. var fn = arguments.length > 2 ? arguments[2] : undefined;
  37343. var obj = animates[step];
  37344. if (obj) {
  37345. var styles = obj.styles,
  37346. config = obj.config;
  37347. this._animateRun(styles, config).then(function () {
  37348. step += 1;
  37349. _this2._nvueNextAnimate(animates, step, fn);
  37350. });
  37351. } else {
  37352. this.currentStepAnimates = {};
  37353. typeof fn === 'function' && fn();
  37354. this.isEnd = true;
  37355. }
  37356. }
  37357. }, {
  37358. key: "step",
  37359. value: function step() {
  37360. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  37361. this.animation.step(config);
  37362. return this;
  37363. }
  37364. }, {
  37365. key: "run",
  37366. value: function run(fn) {
  37367. this.$.animationData = this.animation.export();
  37368. this.$.timer = setTimeout(function () {
  37369. typeof fn === 'function' && fn();
  37370. }, this.$.durationTime);
  37371. }
  37372. }]);
  37373. return MPAnimation;
  37374. }();
  37375. var animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', 'translateZ'];
  37376. var animateTypes2 = ['opacity', 'backgroundColor'];
  37377. var animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'];
  37378. animateTypes1.concat(animateTypes2, animateTypes3).forEach(function (type) {
  37379. MPAnimation.prototype[type] = function () {
  37380. var _this$animation;
  37381. (_this$animation = this.animation)[type].apply(_this$animation, arguments);
  37382. return this;
  37383. };
  37384. });
  37385. function createAnimation(option, _this) {
  37386. if (!_this) return;
  37387. clearTimeout(_this.timer);
  37388. return new MPAnimation(option, _this);
  37389. }
  37390. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  37391. /***/ })
  37392. ]]);
  37393. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map